/* sproutinvaders.silicon-wizardry.com: the high-score page's own parts, on top of site.css (a copy of the main site's).
   Same rule as the main site: components read var(--token) only, so all three styles work. */

/* The hero holds the code form instead of the stats. */
.hero { align-items: flex-start; }

.enter-panel {
  flex: 1 1 360px; min-width: 0;
  display: flex; flex-direction: column; gap: 18px;
  padding: 22px;
  background: var(--panel); border: var(--bw) solid var(--line);
  box-shadow: var(--cardShadow);
  scroll-margin-top: 24px;
}
.panel-title { font-size: var(--h3); line-height: var(--h3lh); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--fM); font-size: var(--mono); text-transform: var(--upper); }
.field input {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px;
  font-family: var(--fM); font-size: var(--body);
  background: var(--inputBg); color: var(--ink);
  border: var(--bw) solid var(--line); border-radius: 0;
}
#code { letter-spacing: 2px; text-transform: uppercase; }
#code::placeholder { letter-spacing: 2px; color: var(--muted); opacity: 0.6; }
.help { font-size: var(--small); color: var(--muted); }

.notice {
  padding: 12px 14px;
  background: var(--card); color: var(--ink);
  border: var(--bw) solid var(--pub);
  font-size: var(--small);
}
.notice-error { border-color: var(--unrel); border-style: dashed; }

/* Scores look like the game's: 8 digits. */
.score { font-family: var(--fM); color: var(--num); font-variant-numeric: tabular-nums; }
.score .lead { opacity: 0.4; }

/* ---------- The table ---------- */

.table-wrap { overflow-x: auto; border: var(--bw) solid var(--line); background: var(--card); box-shadow: var(--cardShadow); }

.scores { width: 100%; border-collapse: collapse; }
.scores th {
  padding: 12px 16px;
  background: var(--tickerBg); color: var(--tickerInk);
  font-family: var(--fM); font-size: var(--mono); font-weight: 500;
  text-transform: uppercase; text-align: left;
}
.scores td { padding: 10px 16px; border-top: 1px solid var(--line); vertical-align: baseline; }
.scores tbody tr:nth-child(even) { background: var(--panel); }
.scores .num { text-align: right; }
.scores td.name { font-family: var(--fD); color: var(--head); }
.scores .pos { font-family: var(--fD); color: var(--muted); width: 1%; }
.scores tbody tr:nth-child(-n+3) .pos { color: var(--num); }
.scores td.date { font-family: var(--fM); font-size: var(--mono); color: var(--muted); white-space: nowrap; }
.scores td.score { font-size: var(--body); }
.scores tr { scroll-margin-top: 24px; }
.scores tr.is-new, .scores tr:target { outline: 3px solid var(--link); outline-offset: -3px; }

@media (max-width: 600px) {
  .scores th, .scores td { padding-left: 10px; padding-right: 10px; }
  .scores .date { display: none; }
}
