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

body {
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#game-container canvas {
    display: block;
}

/* High Score Overlay */
#hs-overlay {
    position: fixed; inset: 0; display: none; flex-direction: column;
    align-items: center; justify-content: center;
    background: rgba(0,0,0,0.85); color: #fff;
    font-family: Arial, sans-serif; text-align: center; z-index: 1000;
}
#hs-title {
    font-size: 48px; font-weight: bold; color: #ffd700;
    text-shadow: 0 0 10px #ffd700; margin-bottom: 20px;
}
#score-list {
    background: rgba(255,215,0,0.1); border: 2px solid #ffd700;
    border-radius: 8px; padding: 20px; width: 400px;
    margin-bottom: 30px;
}
.score-row {
    display: flex; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid rgba(255,215,0,0.3);
    font-size: 24px; font-weight: bold;
}
.score-row:last-child { border-bottom: none; }
.score-rank { color: #888; width: 40px; }
.score-name { color: #fff; flex: 1; text-align: center; letter-spacing: 2px; }
.score-val  { color: #00ff88; text-align: right; }
.score-row.top .score-name, .score-row.top .score-val { color: #ffd700; }

#initials-box { display: none; flex-direction: column; align-items: center; gap: 15px; margin-bottom: 30px; }
#hs-enter-label { font-size: 24px; color: #ccc; }
#initials-display { display: flex; gap: 10px; }
.initial-slot {
    width: 50px; height: 60px; border: 2px solid #ffd700; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; font-weight: bold; color: #ffd700;
    background: rgba(255,215,0,0.1); transition: all 0.2s;
}
.initial-slot.filled { border-color: #00ff88; color: #00ff88; box-shadow: 0 0 10px #00ff88 inset; }
.initial-slot.active { border-color: #fff; color: #fff; animation: blink 0.8s infinite; }

#close-hs-btn {
    padding: 12px 30px; font-size: 24px; font-weight: bold;
    background: #1a472a; color: white; border: 2px solid #00ff88;
    border-radius: 8px; cursor: pointer; transition: background 0.2s;
}
#close-hs-btn:hover { background: #2ecc71; }

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