:root {
    --ff-blue: #000088;
    --ff-border: #ffffff;
    --ff-light-blue: #0000ff;
}

body {
    margin: 0;
    background-color: #1a1a1a;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.game-container {
    width: 100%;
    max-width: 800px;
    height: 100vh;
    max-height: 600px;
    background: linear-gradient(180deg, #111 0%, #000 100%);
    border: 4px solid #333;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.classic-box {
    background: linear-gradient(180deg, var(--ff-blue) 0%, #000033 100%);
    border: 3px solid var(--ff-border);
    border-radius: 8px;
    padding: 10px;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.centralize {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 300px;
    margin: auto;
}

.battle-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

.hidden { display: none !important; }

.enemy-area {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: center;
    z-index: 2;
}

.enemy-avatar {
    font-size: 60px;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

.player-area {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
}

.player-avatar {
    font-size: 80px;
}

.health-bar-container { width: 140px; }
.name-tag { font-weight: bold; margin-bottom: 5px; font-size: 12px; }
.health-bar { height: 10px; background: #444; border: 1px solid #fff; }
.health-fill { height: 100%; background: #00ff00; transition: width 0.5s; }

/* Bottom UI */
.battle-ui {
    height: auto;
    min-height: 200px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px;
    padding: 8px;
}

@media (min-width: 600px) {
    .battle-ui {
        grid-template-columns: 2fr 1.5fr 1.5fr;
        grid-template-rows: 1fr;
        height: 200px;
    }
    .enemy-avatar { font-size: 80px; }
    .player-avatar { font-size: 100px; }
    .health-bar-container { width: 200px; }
    .name-tag { font-size: 16px; }
    .enemy-area { top: 50px; right: 100px; }
    .player-area { bottom: 50px; left: 100px; }
}

.log-window { font-size: 12px; overflow-y: auto; max-height: 80px; }
@media (min-width: 600px) {
    .log-window { font-size: 14px; max-height: none; }
}

.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-item { background: none; border: none; color: white; text-align: left; font-size: 16px; cursor: pointer; padding: 5px; font-family: inherit; }
@media (min-width: 600px) { .menu-item { font-size: 18px; } }

.status-window { display: flex; flex-direction: column; gap: 3px; }
.status-header { border-bottom: 1px solid #fff; padding-bottom: 3px; margin-bottom: 3px; font-weight: bold; font-size: 14px; }
.status-row { display: flex; justify-content: space-between; font-size: 13px; }
@media (min-width: 600px) {
    .status-header { font-size: 16px; }
    .status-row { font-size: 16px; }
}

.classic-btn { background: var(--ff-light-blue); border: 2px solid white; color: white; padding: 10px 20px; cursor: pointer; font-family: inherit; }
.classic-btn:hover { background: white; color: var(--ff-blue); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.shake { animation: shake 0.5s; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}
