@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: 'Press Start 2P', cursive;
    touch-action: none;
}

#container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #0d0a05;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    background: #050508;
}

#ui {
    position: absolute;
    top: 20px;
    width: 90%;
    pointer-events: none;
    color: #fff;
    font-size: 10px;
    display: flex;
    justify-content: space-between;
    text-shadow: 2px 2px #000;
    z-index: 5;
}

.hud-box {
    background: rgba(0,0,0,0.6);
    padding: 8px;
    border: 2px solid #444;
    border-radius: 4px;
}

#msg-overlay {
    position: absolute;
    background: rgba(0,0,0,0.95);
    border: 4px solid #fff;
    padding: 30px;
    color: #fff;
    text-align: center;
    display: none;
    width: 80%;
    max-width: 400px;
    z-index: 10;
    border-radius: 8px;
}

.fuel-bar {
    width: 80px;
    height: 10px;
    border: 2px solid #fff;
    display: inline-block;
    position: relative;
    vertical-align: middle;
}

#fuel-level {
    background: #0f0;
    height: 100%;
    width: 100%;
    transition: width 0.1s;
}

.v-spd-warn {
    color: #f00;
    animation: blink 0.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
}

#ctrl-hint {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: #666;
    font-size: 8px;
    pointer-events: none;
}

#mute-btn {
    pointer-events: auto;
    background: rgba(0,0,0,0.6);
    border: 2px solid #444;
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    text-shadow: 2px 2px #000;
    height: fit-content;
}

#mute-btn:hover {
    border-color: #fff;
}
