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

body {
    overflow: hidden;
    background: #000;
    font-family: 'Courier New', monospace;
}

canvas {
    display: block;
}

/* ─── Menu / Blocker ────────────────────────────────────────── */
#blocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

#menu {
    text-align: center;
    color: #00ff44;
}

#menu h1 {
    font-size: 3.5em;
    text-shadow: 0 0 30px #00ff44, 0 0 60px #00ff44;
    letter-spacing: 6px;
    margin-bottom: 10px;
    animation: flicker 3s infinite alternate;
}

.subtitle {
    color: #88aacc;
    font-size: 1.2em;
    margin-bottom: 40px;
}

@keyframes flicker {
    0%, 90%, 100% { opacity: 1; }
    92% { opacity: 0.7; }
    94% { opacity: 1; }
    96% { opacity: 0.6; }
    98% { opacity: 1; }
}

button {
    background: transparent;
    color: #00ff44;
    border: 2px solid #00ff44;
    padding: 15px 60px;
    font-size: 1.5em;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    letter-spacing: 4px;
    transition: all 0.3s;
    margin-bottom: 30px;
}

button:hover {
    background: #00ff44;
    color: #000;
    box-shadow: 0 0 30px #00ff44;
}

.controls-info {
    color: #668888;
    font-size: 0.9em;
    line-height: 2;
}

.controls-info strong {
    color: #00ff88;
}

.death-text {
    font-size: 2em;
    color: #ff0044;
    text-shadow: 0 0 20px #ff0044;
    margin-bottom: 20px;
    animation: pulse-red 1s infinite;
}

@keyframes pulse-red {
    0%, 100% { text-shadow: 0 0 20px #ff0044; }
    50% { text-shadow: 0 0 40px #ff0044, 0 0 60px #ff0044; }
}

#final-score {
    color: #aaaacc;
    font-size: 1.3em;
    margin-bottom: 30px;
}

#death-screen button {
    border-color: #ff0044;
    color: #ff0044;
}

#death-screen button:hover {
    background: #ff0044;
    color: #000;
    box-shadow: 0 0 30px #ff0044;
}

/* ─── HUD ───────────────────────────────────────────────────── */
#hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(0, 255, 68, 0.7);
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 5px #00ff44;
}

#health-bar {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 200px;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 68, 0.3);
    border-radius: 2px;
}

#health-fill {
    height: 100%;
    width: 100%;
    background: #00ff44;
    transition: width 0.3s, background-color 0.3s;
    border-radius: 1px;
    box-shadow: 0 0 10px currentColor;
}

#health-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 0 3px #000;
}

#spoon-display {
    position: absolute;
    bottom: 30px;
    right: 30px;
    color: #ccccdd;
    font-size: 1.8em;
    text-shadow: 0 0 10px rgba(200, 200, 220, 0.5);
}

#spoon-count {
    font-size: 1.2em;
    font-weight: bold;
}

#slinky-display {
    position: absolute;
    bottom: 70px;
    right: 30px;
    color: #ff44aa;
    font-size: 1.8em;
    text-shadow: 0 0 10px rgba(255, 68, 170, 0.5);
}

#slinky-count {
    font-size: 1.2em;
    font-weight: bold;
}

#score-display {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #00ff44;
    font-size: 1.3em;
    text-shadow: 0 0 10px rgba(0, 255, 68, 0.4);
}

#wave-display {
    position: absolute;
    top: 50px;
    right: 30px;
    color: #8888cc;
    font-size: 1em;
}

#wave-announce {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4em;
    color: #ff4400;
    text-shadow: 0 0 40px #ff4400, 0 0 80px #ff4400;
    letter-spacing: 8px;
    animation: wave-in 0.5s ease-out;
}

@keyframes wave-in {
    from {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

#damage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(255, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.hidden {
    display: none !important;
}
