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

body {
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    font-family: 'Arial Black', Arial, sans-serif;
}

#game-container canvas {
    display: block;
}

/* ── HIGH SCORE OVERLAY ── */
#hs-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

#hs-title {
    font-size: 52px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 30px #ff8c00, 0 0 60px #ff4500;
    letter-spacing: 6px;
    text-transform: uppercase;
}

#initials-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#hs-enter-label {
    font-size: 20px;
    color: #ffffff;
    letter-spacing: 2px;
}

#initials-display {
    display: flex;
    gap: 14px;
}

.initial-slot {
    width: 60px; height: 70px;
    border: 3px solid #555;
    border-radius: 8px;
    font-size: 36px;
    font-weight: 900;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    transition: all 0.15s;
}
.initial-slot.active  { border-color: #ffd700; color: #ffd700; box-shadow: 0 0 12px #ffd700; }
.initial-slot.filled  { border-color: #00cc66; color: #00cc66; }

#score-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 360px;
}

.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}
.score-row.top {
    background: rgba(255,215,0,0.12);
    border-color: #ffd700;
}

.score-rank { color: #888; font-size: 18px; width: 40px; }
.score-name { color: #fff;  font-size: 22px; font-weight: 900; letter-spacing: 3px; flex: 1; text-align: center; }
.score-val  { color: #ffd700; font-size: 20px; font-weight: 700; }

#close-hs-btn {
    margin-top: 10px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #111;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform 0.1s;
}
#close-hs-btn:hover { transform: scale(1.05); }

#spacebar-prompt {
    color: #888;
    font-size: 16px;
    letter-spacing: 2px;
    animation: blink 1.4s infinite;
}

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