/* === MS-DOS Aesthetic === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    font-family: "Courier New", Courier, monospace;
    color: #00ff00;
}

#game-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#hud {
    display: flex;
    justify-content: space-between;
    width: 800px;
    padding: 8px 12px;
    font-size: 16px;
    letter-spacing: 1px;
    border: 1px solid #00ff00;
    border-bottom: none;
    background: #0a0a0a;
    text-transform: uppercase;
}

#hud span {
    min-width: 140px;
    text-align: center;
}

#hud-score { color: #00ff00; }
#hud-level { color: #00ffff; }
#hud-lives { color: #ff00ff; }
#hud-percent { color: #ffff00; }

#game-canvas {
    border: 1px solid #00ff00;
    display: block;
    background: #000;
    image-rendering: pixelated;
}

/* Overlay for messages */
#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
}

#overlay.hidden {
    display: none;
}

#overlay-text {
    text-align: center;
    font-size: 20px;
    line-height: 2;
    color: #00ff00;
    text-shadow: 0 0 8px #00ff00;
    white-space: pre-line;
}

#overlay-text .title {
    font-size: 36px;
    color: #00ffff;
    text-shadow: 0 0 12px #00ffff;
}

#overlay-text .prompt {
    font-size: 16px;
    color: #ff00ff;
    animation: blink 1s step-end infinite;
}

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