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

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

#game-container {
    position: relative;
    width: 800px;
    max-width: 100%;
    border: 4px solid #fff;
    background: #6b8cff;
    box-shadow: 0 0 30px rgba(107, 140, 255, 0.5);
}

#hud {
    display: flex;
    justify-content: space-around;
    padding: 8px 12px;
    background: #000;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    border-bottom: 2px solid #fff;
}

#hud span {
    text-shadow: 2px 2px 0 #555;
}

#game {
    display: block;
    background: #6b8cff;
    image-rendering: pixelated;
    width: 100%;
    height: auto;
    max-height: 70vh;
}

#start-screen, #game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
}

#start-screen h1, #game-over h1 {
    font-size: 48px;
    color: #ff0000;
    text-shadow: 4px 4px 0 #000, -2px -2px 0 #fff;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

#start-screen p, #game-over p {
    font-size: 16px;
    margin: 8px 0;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
}

.controls {
    margin-top: 20px;
    font-size: 12px;
    opacity: 0.8;
}

.hidden {
    display: none !important;
}

#game-over {
    background: rgba(0, 0, 0, 0.9);
}

#game-over h1 {
    color: #ff4444;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}
