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

body {
    background: #0a0a0f;
    font-family: 'Courier New', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    display: inline-block;
    padding: 0;
    margin: 0;
    line-height: 0;
}

#game-canvas {
    border: none;
    background: #87ceeb;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    display: block;
}

#game-ui {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 0 #000;
    z-index: 5;
    pointer-events: none;
}

#health {
    display: flex;
    gap: 5px;
}

#combo {
    color: #ffeb3b;
}

.screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 40px;
    border: 4px solid #fff;
    text-align: center;
    z-index: 10;
}

.screen.hidden {
    display: none;
}

.screen h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ffeb3b;
    text-shadow: 4px 4px 0 #ff6b6b;
}

.screen p {
    font-size: 20px;
    margin: 10px 0;
}

.controls {
    margin-top: 30px;
    font-size: 16px;
    opacity: 0.8;
}

.controls p {
    margin: 5px 0;
}

/* Retro CRT effect (optional) */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.98; }
}

#game-canvas {
    animation: flicker 0.15s infinite;
}
