#score {
    display: none;
    position: absolute;
    top: 70px;
    left: 20px;
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    z-index: 10;
    text-transform: lowercase;
}

#instructions {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
    z-index: 10;
    text-transform: lowercase;
    opacity: 0.8;
}

#gameOver {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(24px, 5vw, 40px);
    font-weight: bold;
    color: #ff0000;
    background: rgba(0, 0, 0, 0.95);
    padding: 30px 50px;
    border-radius: 0; /* SNES style - no rounded corners! */
    border: 4px solid #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    z-index: 100;
    animation: gameOverPulse 1.5s ease-in-out infinite;
    max-width: 90%;
    text-align: center;
    line-height: 1.4;
}

/* High score variations - these will be applied via JavaScript */
#gameOver.highscore-rank1 {
    border-color: #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), inset 0 0 20px rgba(255, 215, 0, 0.1);
}

#gameOver.highscore-rank2 {
    border-color: #c0c0c0;
    box-shadow: 0 0 25px rgba(192, 192, 192, 0.6), inset 0 0 15px rgba(192, 192, 192, 0.1);
}

#gameOver.highscore-rank3 {
    border-color: #cd7f32;
    box-shadow: 0 0 25px rgba(205, 127, 50, 0.6), inset 0 0 15px rgba(205, 127, 50, 0.1);
}

#gameOver.highscore-top5 {
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), inset 0 0 10px rgba(0, 212, 255, 0.1);
}

#gameOver.highscore-top10 {
    border-color: #2ecc71;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.5), inset 0 0 10px rgba(46, 204, 113, 0.1);
}

#titleOverlay {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    text-align: center;
    background: none;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

#asciiTitle {
    font-family: monospace;
    font-size: clamp(6px, 1.2vw, 14px);
    color: #00d4ff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    white-space: pre;
}

#titleMessage {
    font-size: clamp(14px, 2.5vw, 20px);
    color: #ffffff;
    margin-top: 20px;
    font-weight: 600;
    animation: blink 1.5s ease-in-out infinite;
}

#readyOverlay {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    text-align: center;
    background: rgba(0, 0, 0, 0.9);
    padding: 40px 50px;
    border-radius: 0; /* SNES style - no rounded corners! */
    border: 3px solid #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

#readyContent h2 {
    color: #00d4ff;
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

#readyContent p {
    color: #ffffff;
    font-size: clamp(16px, 2.5vw, 20px);
    margin: 10px 0;
    line-height: 1.5;
}

#readyContent strong {
    color: #00d4ff;
    font-weight: 700;
}

#readyMessage {
    font-size: clamp(14px, 2.5vw, 18px);
    color: #ffffff;
    margin-top: 30px;
    font-weight: 600;
    animation: blink 1.5s ease-in-out infinite;
}
#initialsPrompt {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    padding: 30px 50px;
    border: 4px solid #00d4ff;
    border-radius: 0;
    z-index: 100;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

#initialsPrompt h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 18px;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    margin-bottom: 20px;
    text-transform: lowercase;
}

#initialsInput {
    font-family: 'Press Start 2P', monospace;
    font-size: 24px;
    text-transform: uppercase;
    text-align: center;
    width: 120px;
    padding: 10px;
    margin: 10px 0;
    background: #1a1a2e;
    border: 2px solid #00d4ff;
    border-radius: 0;
    color: #00d4ff;
    outline: none;
}

#submitInitials {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    padding: 12px 24px;
    margin-top: 20px;
    background: #5a6988;
    color: #ffffff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-transform: lowercase;
}

#submitInitials:hover {
    background: #00d4ff;
    color: #000000;
}
