/* ============================================================
   GLOBAL RESET
============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    background: #111;
    color: #fff;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* ============================================================
   TITLE BAR
============================================================ */

#titleBar {
    text-align: center;
    padding: 10px 0;
    background: #222;
    border-bottom: 2px solid #444;
}

#titleBar h1 {
    font-size: 28px;
    color: #e33;
}

#titleBar h2 {
    font-size: 16px;
    color: #aaa;
}

/* ============================================================
   GAME LAYOUT
============================================================ */

#gameContainer {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

/* ============================================================
   SPRITE PANELS
============================================================ */

.spriteBox {
    width: 150px;
    height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#playerPanel, #enemyPanel {
    width: 30%;
    text-align: center;
}

#arenaCenter {
    width: 40%;
    text-align: center;
}

/* ============================================================
   HP BARS
============================================================ */

.hpBar {
    width: 100%;
    height: 20px;
    background: #333;
    border: 2px solid #555;
    margin-top: 10px;
}

.hpFill {
    height: 100%;
    background: #e33;
    width: 100%;
}

/* ============================================================
   NAME TAGS
============================================================ */

.nameTag {
    margin-top: 5px;
    font-size: 18px;
}

/* ============================================================
   MOVE BUTTONS
============================================================ */

#moveButtons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}

.moveBtn {
    width: 120px;
    padding: 10px;
    margin: 5px;
    background: #444;
    border: 2px solid #666;
    color: #fff;
    font-size: 16px;
    border-radius: 6px;
}

.moveBtn:active {
    background: #666;
}

/* ============================================================
   CUTSCENE BOX
============================================================ */

#cutsceneBox {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.85);
    padding: 20px;
    border-top: 3px solid #900;
    font-size: 20px;
    min-height: 120px;
    z-index: 900;
}

#cutsceneBox.hidden {
    display: none;
}

#cutsceneText {
    white-space: pre-wrap;
    min-height: 60px;
}

#cutsceneContinue {
    text-align: right;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s;
}

/* ============================================================
   BOTTOM SLIDE-OUT DEV MENU (300px tall)
============================================================ */

#devMenu {
    position: fixed;
    bottom: -300px; /* hidden by default */
    left: 0;
    width: 100%;
    height: 300px;
    background: rgba(0,0,0,0.92);
    border-top: 3px solid #444;
    padding: 10px;
    overflow-y: auto;
    transition: bottom 0.3s ease;
    z-index: 999;
}

#devMenu.open {
    bottom: 0;
}

#devTab {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 30px;
    background: #900;
    color: #fff;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
}

.devBtn {
    width: 100%;
    padding: 8px;
    margin: 4px 0;
    background: #333;
    border: 2px solid #555;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
}

.devBtn:active {
    background: #555;
}

/* ============================================================
   MOBILE FIXES
============================================================ */

@media (max-width: 600px) {
    #gameContainer {
        flex-direction: column;
        align-items: center;
    }

    #playerPanel, #enemyPanel, #arenaCenter {
        width: 100%;
        margin-bottom: 10px;
    }

    .spriteBox {
        width: 120px;
        height: 120px;
    }

    .moveBtn {
        width: 45%;
    }
}