/* Arcade lettering belongs to names and scores; instructions stay easy to read. */
.leaderboard-open .game-controls { visibility: hidden; }
.leaderboard-dialog { width: min(560px, 100%); padding: 32px; }
.leaderboard-dialog h2 { font: 700 clamp(27px, 4vw, 36px)/1.1 'Consolas', 'Cascadia Mono', monospace; letter-spacing: .04em; color: #b7eaff; margin: 12px 0 10px; text-shadow: 0 0 24px #5acbff30; }
.leaderboard-intro { color: #8daabd; font-size: 12px; line-height: 1.8; margin: 0 0 22px; }
.leaderboard-display { border-top: 1px solid #416579; border-bottom: 1px solid #294252; padding: 5px 0; background: repeating-linear-gradient(0deg, #6bcbef04, #6bcbef04 1px, transparent 1px, transparent 4px); }
.leaderboard-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.leaderboard-table th { color: #638ba3; font-size: 10px; font-weight: 400; text-align: left; padding: 11px 12px; }
.leaderboard-table td { padding: 10px 12px; font: 500 19px/1.1 'Consolas', 'Cascadia Mono', monospace; color: #afcbd8; border-top: 1px solid #7fb9d00c; }
.leaderboard-table td:first-child { width: 22%; color: #668ba1; font-size: 14px; }
.leaderboard-table td:nth-child(2) { letter-spacing: .23em; color: #d0f2ff; }
.leaderboard-table td:last-child, .leaderboard-table th:last-child { text-align: right; }
.leaderboard-table .podium td { color: #efce91; }
.leaderboard-table .your-score { background: #204b624d; box-shadow: inset 2px 0 #a2e4ff; }
.leaderboard-table .your-score td { color: #dcf7ff; }
.leaderboard-status { margin: 0; padding: 12px 0; font-size: 12px; line-height: 1.8; color: #88a9be; }
.leaderboard-status:empty { display: none; }
.leaderboard-foot { margin-top: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; color: #668ca2; font-size: 11px; }
.leaderboard-foot button { color: #9dc9df; background: none; border: 1px solid #31536c; padding: 6px 12px; border-radius: 3px; font-size: 11px; }
.leaderboard-own { color: #ade6f5; font-size: 12px; margin: 12px 0 0; }
.gameover-dialog { width: min(540px, 100%); }
.final-score-line { font: 700 clamp(42px, 8vw, 62px)/1.1 'Consolas', 'Cascadia Mono', monospace; color: #e8d3a7; margin: 16px 0 10px; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.final-score-line small { margin-left: 10px; color: #7097ae; font: 11px 'Segoe UI', 'Microsoft YaHei', sans-serif; letter-spacing: .1em; }
.score-entry { padding-top: 22px; margin-top: 22px; border-top: 1px solid #2c455b; }
.score-entry label { display: block; font-size: 13px; color: #c4dae5; margin-bottom: 7px; }
.initials-help { color: #7497af; margin: 0 0 15px; font-size: 11px; }
.initials-controls { display: flex; gap: 16px; align-items: stretch; }
#player-initials { min-width: 0; width: 155px; border: 1px solid #52758a; border-radius: 3px; background: #030c17; color: #e9d6ae; font: 700 30px/1.2 'Consolas', 'Cascadia Mono', monospace; padding: 10px 7px 10px 19px; letter-spacing: .38em; text-transform: uppercase; caret-color: #bcecff; }
#player-initials::placeholder { color: #354d60; }
#player-initials:disabled { color: #a8d7e8; opacity: .8; }
#score-submit-status { min-height: 20px; margin: 12px 0 0; color: #8daec0; font-size: 12px; line-height: 1.7; }
[data-tone='error'] { color: #efb99b !important; }
[data-tone='success'] { color: #a8e9d5 !important; }
button:disabled { opacity: .45; cursor: default; transform: none !important; }
.leaderboard-dialog .button-row, .gameover-dialog .button-row { gap: 8px; margin-top: 22px; }
.gameover-dialog .button-row button { padding: 10px 15px; }
@media (max-width: 600px) {
  .leaderboard-dialog { padding: 27px 20px 22px; }
  .leaderboard-table td { padding: 9px 8px; font-size: 17px; }
  .leaderboard-table th { padding: 10px 8px; }
  .initials-controls { gap: 10px; }
  #player-initials { width: 134px; font-size: 27px; padding-left: 13px; }
  #submit-score { flex: 1; padding: 10px; }
}
