/* ==========================================================================
   Retro 2D Arcade — Modernized 16-Bit Arcade Stylesheet
   ========================================================================== */

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #06070a;
    color: #e8edf4;
    font-family: 'Press Start 2P', monospace;
    user-select: none;
    -webkit-user-select: none;
}

/* Retro CRT Vignette & Subtle Scanlines */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 65%, rgba(0, 0, 0, 0.55) 100%),
                repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.08) 0px, rgba(0, 0, 0, 0.08) 1px, transparent 1px, transparent 3px);
    z-index: 50;
}

/* Game Canvas Container */
#game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #06070a;
    z-index: 1;
}

canvas {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
}

/* Bottom Left Navigation Dock (Completely away from top HUD) */
.bottom-nav-dock {
    position: fixed;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 14, 22, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 230, 118, 0.35);
    border-radius: 999px;
    padding: 6px 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
    z-index: 100;
}

.nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 9px;
    font-family: 'Press Start 2P', monospace;
    text-decoration: none;
    color: #78909c;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-tab.active {
    color: #06070a;
    background: #00e676;
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.6);
}

/* Bottom Center Control Prompt Banner */
.bottom-controls-hint {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(8, 12, 18, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 8px;
    color: #ffd600;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    z-index: 90;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bottom-controls-hint kbd {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

/* Bottom Right Arcade Touch / Click Thrust Button */
.thrust-btn-anchor {
    position: fixed;
    bottom: 16px;
    right: 20px;
    z-index: 100;
}

.arcade-thrust-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ff5252 0%, #d50000 80%);
    border: 3px solid #ff8a80;
    color: #ffffff;
    box-shadow: 0 6px 0 #b71c1c, 0 10px 25px rgba(213, 0, 0, 0.6);
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.arcade-thrust-btn:hover {
    background: radial-gradient(circle at 35% 35%, #ff7961 0%, #e53935 80%);
}

.arcade-thrust-btn:active,
.arcade-thrust-btn.pressed {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #b71c1c, 0 4px 15px rgba(213, 0, 0, 0.8);
    background: radial-gradient(circle at 35% 35%, #ff1744 0%, #c62828 80%);
}

.thrust-icon {
    font-size: 22px;
}

@media (max-width: 768px) {
    .bottom-nav-dock {
        bottom: 8px;
        left: 8px;
        padding: 4px 8px;
    }
    .nav-tab {
        padding: 5px 8px;
        font-size: 7px;
    }
    .bottom-controls-hint {
        display: none;
    }
    .arcade-thrust-btn {
        width: 72px;
        height: 72px;
        bottom: 12px;
        right: 12px;
        font-size: 7px;
    }
    .thrust-icon {
        font-size: 16px;
    }
}
