:root {
    --bg-color: #050510;
    --ui-color: #00ffcc;
    --text-shadow: 2px 2px #000;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    color: white;
    font-family: 'Press Start 2P', cursive;
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
    border: 4px solid #333;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #000;
    image-rendering: pixelated;
    /* Essential for 16-bit look */
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* HUD */
#hud {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    font-size: 16px;
    color: var(--ui-color);
    text-shadow: var(--text-shadow);
}

/* Screens (Start, Game Over, etc.) */
.screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.85);
    padding: 40px;
    border: 2px solid var(--ui-color);
    box-shadow: 0 0 15px var(--ui-color);
    pointer-events: auto;
}

.hidden {
    display: none;
}

h1 {
    font-size: 32px;
    color: #ff0055;
    text-shadow: 3px 3px #fff;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

p {
    font-size: 14px;
    line-height: 1.5;
    color: #fff;
}

.controls {
    margin-top: 30px;
    font-size: 12px;
    color: #aaa;
}

/* Anime Ending Container */
#anime-ending {
    width: 400px;
    height: 300px;
    margin-top: 20px;
    background-color: #000;
    border: 1px solid #fff;
    /* This will be populated with the animation/image later */
}