#game-panel[data-kind="over"] {
  max-height: calc(100dvh - 100px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #28517e #020918;
  background: #020918f5;
  border-color: #12305b;
  padding: 24px 28px;
}
#game-panel[data-kind="over"] [hidden] { display: none; }
#game-scores { font-family: "Silkscreen", monospace; }
#game-panel[data-scores-view="board"] { width: fit-content; }
#game-panel[data-scores-view="board"] #game-scores { max-width: 900px; margin-inline: auto; }
#game-panel[data-scores-view="entry"] h2 { font-size: 64px; margin-bottom: 12px; }
#game-panel[data-scores-view="entry"] #game-result { font-size: 22px; margin-bottom: 12px; }
#game-panel[data-scores-view="board"] h2 { width: 100%; contain: inline-size; font-size: 48px; margin-bottom: 14px; animation: none; }
.score-heading-text { display: inline-block; width: max-content; white-space: nowrap; letter-spacing: 0; }
#game-scores .score-rank-message { font-size: 20px; color: #00f5ff; margin: 10px 0 16px; text-transform: uppercase; }
#game-scores .score-entry { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0 0 16px; }
#game-scores .score-entry-label { color: #8da9c8; font-size: 15px; margin: 0; }
#game-scores .score-initials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: min(100%, 432px); }
#game-scores .score-letter { display: grid; grid-template-rows: 64px 112px 64px; row-gap: 4px; justify-items: center; min-width: 0; }
#game-scores .score-letter select {
  width: 100%;
  height: 112px;
  appearance: none;
  border: 0;
  border-bottom: 2px solid #00f5ff;
  border-radius: 0;
  background: #07172d;
  color: #e9f5ff;
  font: 400 72px/1 "Silkscreen", monospace;
  padding: 0;
  text-align: center;
  text-align-last: center;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}
#game-scores .score-letter option { background: #020918; color: #fff; font-size: 20px; }
#game-panel #game-scores button {
  width: auto;
  height: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 400 12px/1.3 "Silkscreen", monospace;
  color: #bad0ed;
  border: 1px solid #12305b;
  border-radius: 4px;
  background: #061225;
  padding: 8px 14px;
  cursor: pointer;
}
#game-panel #game-scores .score-icon-button { width: 44px; padding: 8px; }
#game-panel #game-scores .score-letter button { width: 100%; border-color: #12305b; background: #061225; height: 64px; min-height: 64px; touch-action: manipulation; }
#game-panel #game-scores .score-letter button .score-icon { width: 32px; height: 32px; }
#game-panel #game-scores button:hover { color: #00f5ff; border-color: #00f5ff; background: #0b2140; }
#game-panel #game-scores button:disabled { opacity: .5; cursor: wait; }
#game-panel #game-scores .score-submit { color: #020918; background: #00f5ff; border-color: #00f5ff; min-width: 216px; width: min(100%, 432px); height: 56px; font-size: 28px; }
#game-panel #game-scores .score-submit .score-icon { width: 28px; height: 28px; }
#game-panel #game-scores .score-submit:hover { background: #ff387a; border-color: #ff387a; color: #fff; }
#game-scores :is(button, select, input, [tabindex]):focus-visible { outline: 2px solid #e7f5ff; outline-offset: 3px; }
.score-icon { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; background: currentColor; mask: var(--score-icon) center / contain no-repeat; -webkit-mask: var(--score-icon) center / contain no-repeat; }
.score-letter-up .score-icon { transform: rotate(180deg); }
#game-scores .score-notice { margin: 8px 0; font: 400 11px/1.6 "Silkscreen", monospace; color: #d8b775; }
#game-scores .score-notice:empty { display: none; }
#game-panel[data-kind="over"] > div:last-child { margin-top: 16px; padding-top: 14px; border-top: 1px solid #12305b; }
#game-ui[data-state="over"] :is(.game-tools, #game-fire) { display: none; }
#game-scores .score-sheet-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
#game-scores .score-sheet-label { color: #96afce; font-size: 11px; margin: 0; text-align: left; }
#game-scores .score-search { width: 160px; box-sizing: border-box; font: 400 11px/1.3 "Silkscreen", monospace; color: #fff; padding: 10px; border: 1px solid #12305b; border-radius: 4px; background: #061225; text-transform: uppercase; }
#game-scores .score-search::placeholder { color: #88a0c2; opacity: 1; }
#game-scores .score-sheet-scroll { max-height: min(42dvh, 420px); min-height: 100px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #315780 #020918; border-block: 1px solid #12305b; }
#game-scores .score-sheet { width: max-content; margin-inline: auto; border-collapse: separate; border-spacing: 0; table-layout: auto; font: 400 24px/1.1 "Silkscreen", monospace; color: #d6e4f6; font-variant-numeric: tabular-nums; }
#game-scores .score-sheet, #game-scores .score-sheet * { letter-spacing: 0px; }
#game-scores .score-sheet thead th { position: sticky; top: 0; z-index: 1; background: #0b1c36; color: #9bb7dd; font-size: 11px; border-bottom: 1px solid #315780; }
#game-scores .score-sheet :is(th,td) { height: 38px; box-sizing: border-box; padding: 4px 6px; text-align: left; border-bottom: 1px solid #102541; white-space: nowrap; }
#game-scores .score-sheet tbody tr:nth-child(even) { background: #061122; }
#game-scores .score-sheet :is(.score-value,th:last-child) { text-align: right; }
#game-scores .score-number { display: inline-block; min-width: 11ch; text-align: right; }
#game-scores .score-position { color: #6c88ad; }
#game-scores .score-sheet .score-position[data-medal="gold"] { color: #ffcf33; }
#game-scores .score-sheet .score-position[data-medal="silver"] { color: #d2dae5; }
#game-scores .score-sheet .score-position[data-medal="bronze"] { color: #d79969; }
#game-scores .score-pilot { font-weight: 400; color: #f0f6ff; }
#game-scores .score-system { color: #aac0e0; }
#game-scores .score-sheet .score-wave { text-align: center; }
#game-scores .score-sheet td.score-wave { background: #6a82a2; background: color-mix(in srgb, var(--score-weapon, #6a82a2) 40%, #6a82a2); color: #061122; border-bottom-color: #06112233; }
#game-scores .score-system .score-icon { width: 26px; height: 26px; vertical-align: middle; }
#game-scores .score-system .score-icon + .score-icon { margin-left: 4px; }
#game-scores .score-current :is(th,td) { color: var(--game-max-colour, #00f5ff); background: #102541; background: color-mix(in srgb, var(--game-max-colour, #00f5ff) 9%, #020918); }
#game-scores .score-current td:first-child { border-left: 2px solid var(--game-max-colour, #00f5ff); }
#game-scores .score-empty { height: 110px !important; text-align: center !important; color: #8fa8cb; font-size: 12px; }
#game-scores .score-sheet-navigation { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#game-scores .score-arrival { animation: score-arrival-rumble 480ms ease-out 3; }
@keyframes score-arrival-rumble {
  0%, 100% { transform: translate(0, 0); }
  12% { transform: translate(-3px, 1px); }
  25% { transform: translate(3px, -2px); }
  39% { transform: translate(-2px, 1px); }
  54% { transform: translate(2px, 0); }
  70% { transform: translate(-1px, 1px); }
  85% { transform: translate(1px, 0); }
}
.score-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media(min-width:641px) and (max-width:800px) {
  #game-scores .score-sheet { font-size: 18px; }
  #game-scores .score-system .score-icon { width: 24px; height: 24px; }
  #game-scores .score-sheet :is(th,td) { padding-inline: 3px; }
}
@media(max-width:640px) {
  #game-panel[data-kind="over"] { width: calc(100% - 16px); max-width: calc(100% - 16px); max-height: calc(100dvh - 92px); padding: 18px 8px; }
  #game-panel[data-scores-view="entry"] h2 { font-size: 32px; }
  #game-panel[data-scores-view="entry"] #game-result { font-size: 17px; }
  #game-panel[data-scores-view="board"] h2 { font-size: 28px; }
  #game-scores .score-rank-message { font-size: 15px; }
  #game-scores .score-initials { gap: 12px; }
  #game-scores .score-letter { grid-template-rows: 64px 96px 64px; }
  #game-scores .score-letter select { height: 96px; font-size: 64px; }
  #game-scores .score-sheet { width: 100%; min-width: 0; table-layout: fixed; font-size: 12px; }
  #game-scores .score-sheet thead th { font-size: 6px; line-height: 1.3; white-space: normal; overflow-wrap: normal; }
  #game-scores .score-sheet :is(th,td) { height: 42px; padding: 2px; }
  #game-scores .score-sheet th:nth-child(1) { width: 12%; }
  #game-scores .score-sheet thead th:nth-child(2) { width: 10%; }
  #game-scores .score-sheet th:nth-child(3) { width: 8%; }
  #game-scores .score-sheet th:nth-child(4) { width: 9%; }
  #game-scores .score-sheet th:nth-child(5) { width: 18%; }
  #game-scores .score-sheet th:nth-child(6) { width: 14%; }
  #game-scores .score-sheet th:nth-child(7) { width: 29%; }
  #game-scores .score-number { min-width: 0; }
  #game-scores .score-sheet .score-weapon { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
  #game-scores :is(.score-time,.score-value,.score-position,.score-pilot) { font-size: 11px; }
  #game-scores :is(.score-weapon,.score-time,.score-pilot) { font-size: 10px; }
  #game-scores td.score-wave { font-size: 10px; overflow-wrap: anywhere; white-space: normal; }
  #game-scores .score-system .score-icon { display: block; width: 18px; height: 18px; margin: 0 auto; }
  #game-scores .score-system .score-icon + .score-icon { margin: 2px auto 0; }
  #game-scores .score-sheet-scroll { max-height: 38dvh; }
  #game-scores .score-sheet-label { font-size: 9px; }
  #game-scores .score-search { width: 140px; font-size: 10px; }
  #game-panel #game-scores .score-command { font-size: 10px; gap: 7px; padding-inline: 10px; }
  #game-panel #game-scores .score-submit { font-size: 20px; gap: 10px; }
  #game-panel #game-scores .score-submit .score-icon { width: 24px; height: 24px; }
  #game-scores .score-sheet-navigation { justify-content: center; }
}
@media(max-width:360px) {
  #game-scores .score-sheet { font-size: 11px; }
  #game-scores :is(.score-time,.score-value,.score-position,.score-pilot) { font-size: 10px; }
  #game-scores :is(.score-weapon,.score-time,.score-pilot) { font-size: 9px; }
  #game-scores td.score-wave { font-size: 9px; }
  #game-scores .score-sheet thead th { font-size: 6px; }
  #game-scores .score-initials { gap: 10px; }
}
@media(max-height:600px) and (min-width:641px) {
  #game-panel[data-kind="over"] { padding: 14px 20px; max-height: calc(100dvh - 60px); }
  #game-panel[data-scores-view="entry"] h2 { font-size: 40px; }
  #game-panel[data-scores-view="entry"] #game-result { font-size: 16px; }
  #game-scores .score-letter { grid-template-rows: 56px 80px 56px; }
  #game-scores .score-letter select { height: 80px; font-size: 52px; }
  #game-panel #game-scores .score-letter button { height: 56px; min-height: 56px; }
}
@media(prefers-reduced-motion:reduce) {
  #game-scores .score-arrival { animation: none; }
  #game-scores .score-current :is(th,td) { color: #ffdf33; background: #211e0a; }
  #game-scores .score-current td:first-child { border-color: #ffdf33; }
}
