/* Hops — paper + ink. Thick outlines, hard offset shadows, one display family. */
:root {
  color-scheme: light;
  --paper: #f3ede0;
  --paper-2: #e9e1cf;
  --card: #fffdf7;
  --ink: #1c1a16;
  --ink-2: #5b564c;
  --ink-3: #8c867a;
  --ball: #f05a28;
  --ball-soft: #ffe2d2;
  --dunk: #f05a28;
  --great: #2d9a58;
  --good: #e0a816;
  --ok: #e47a35;
  --miss: #b9b2a3;
  --red: #c8321e;
  --font: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  /* Headline font: logo, titles, big numbers. Same as the body font for now. */
  --font-display: var(--font);
  --display-weight: 800;
  --display-track: 0em;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  background-color: #0b0e13;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; }

/* Header ------------------------------------------------------------------ */
/* Full-screen court with the UI floating over the crowd ------------------- */
#court {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.hud {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px 24px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 12px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 4px 16px 4px 5px;
  box-shadow: var(--shadow-sm);
}
.logo-ball {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2.5px solid var(--ink);
  background:
    linear-gradient(90deg, transparent 46%, var(--ink) 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, var(--ink) 46% 54%, transparent 54%),
    var(--ball);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: var(--display-weight);
  letter-spacing: calc(-0.04em + var(--display-track));
  line-height: 1;
  font-variation-settings: "opsz" 96;
}
.top-right { display: flex; align-items: center; gap: 12px; }
.meta {
  font-size: 13px; color: var(--ink-2); text-align: right; line-height: 1.25; font-weight: 500;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 5px 11px;
  box-shadow: var(--shadow-sm);
}
.meta strong { color: var(--ink); font-weight: 800; }

.locker-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 6px 13px 6px 10px;
  font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .08s, box-shadow .08s;
}
.top-right { gap: 8px; }
@media (max-width: 640px) {
  .locker-btn span { display: none; }
  .locker-btn { padding: 7px; }
}
.locker-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.locker-btn svg { color: var(--ball); }

/* Layout ------------------------------------------------------------------ */
.wrap { padding: 0; }

.progress {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0 0 12px;
  padding: 8px;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.progress li {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  background: var(--paper);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  transition: background .25s, color .25s, transform .2s;
}
.progress li.current { background: var(--ink); color: var(--card); transform: translateY(-2px); }
.progress li.s-dunk { background: var(--dunk); color: var(--ink); }
.progress li.s-great { background: var(--great); color: #fff; }
.progress li.s-good { background: var(--good); color: var(--ink); }
.progress li.s-ok { background: var(--ok); color: var(--ink); }
.progress li.s-miss { background: var(--miss); color: var(--ink); }

.panel {
  transition: opacity .25s ease, transform .25s ease;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 24px;
  min-height: 210px;
}

/* Type -------------------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 3px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ball-soft);
  font-size: 13px;
  font-weight: 700;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: var(--display-weight);
  letter-spacing: calc(-0.035em + var(--display-track));
  line-height: 1;
  margin: 0 0 10px;
  font-variation-settings: "opsz" 96;
}
.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--display-weight);
  letter-spacing: calc(-0.02em + var(--display-track));
  margin: 22px 0 10px;
}
.lede { color: var(--ink-2); line-height: 1.5; margin: 0 0 18px; font-size: 17px; }
.question {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  text-wrap: pretty;
}

/* Rules ------------------------------------------------------------------- */
.rules { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); line-height: 1.45; font-size: 15px; }
.rules li b { color: var(--ink); }
.chip {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: var(--ink);
  background: var(--paper);
}
.rules li:nth-child(1) .chip { background: var(--dunk); }
.rules li:nth-child(2) .chip { background: var(--great); color: #fff; }
.rules li:nth-child(3) .chip { background: var(--miss); }

/* Inputs & buttons -------------------------------------------------------- */
.guess-row { display: flex; gap: 10px; align-items: stretch; }
.input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 0 16px;
  min-width: 0;
  transition: background .15s;
}
.input-wrap:focus-within { background: #fff; box-shadow: inset 0 -4px 0 var(--ball); }
.input-wrap input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  padding: 8px 0;
}
.input-wrap input::placeholder { color: var(--ink-3); font-weight: 600; }
.input-wrap input:disabled { color: var(--ink-2); }
.input-wrap .unit { color: var(--ink-2); font-size: 15px; font-weight: 600; white-space: nowrap; padding-left: 8px; }

.btn {
  appearance: none;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: var(--ball);
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 12px 24px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .08s, box-shadow .08s, background .15s;
  white-space: nowrap;
}
.btn:hover { background: #ff6d3c; }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: var(--shadow-sm); }
.btn.ghost { background: var(--card); }
.btn.ghost:hover { background: var(--paper); }
.btn.block { width: 100%; }
.btn.small { font-size: 15px; padding: 7px 14px; box-shadow: 2px 2px 0 var(--ink); }

.hint { margin: 10px 2px 0; font-size: 14px; color: var(--ink-2); min-height: 18px; }
.hint.error { color: var(--red); font-weight: 600; }

/* Shot clock -------------------------------------------------------------- */
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.q-head .eyebrow { margin: 0; flex: none; }
.shotclock {
  flex: none; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 10px 7px;
  background: linear-gradient(#2a2a2c, #111113);
  border: 3px solid var(--ink); border-radius: 10px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.12);
}
.sc-label {
  font-family: "Bebas Neue", var(--font); font-size: 11px; letter-spacing: .14em; line-height: 1;
  color: #cfc8b8; text-transform: uppercase;
}
.sc-face {
  position: relative; display: grid; place-items: center;
  min-width: 2.6ch; padding: 2px 6px;
  background: #050505; border-radius: 5px; box-shadow: inset 0 2px 5px rgba(0,0,0,.9);
  font-family: "Orbitron", ui-monospace, monospace; font-weight: 900; font-size: 30px; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.sc-ghost, .sc-digits { grid-area: 1 / 1; text-align: right; }
.sc-ghost { color: rgba(255, 60, 40, .09); }
.sc-digits { color: #ff3b24; text-shadow: 0 0 6px rgba(255, 59, 36, .85), 0 0 16px rgba(255, 59, 36, .45); }
.sc-lamp {
  position: absolute; top: -7px; left: 50%; width: 28px; height: 6px; margin-left: -14px;
  background: #5a1a12; border: 2px solid var(--ink); border-bottom: 0; border-radius: 5px 5px 0 0;
}
.shotclock.hurry .sc-digits { animation: sc-pulse .5s ease-in-out infinite alternate; }
.shotclock.buzzer .sc-lamp { background: #ff3b24; box-shadow: 0 0 12px #ff3b24; }
@keyframes sc-pulse { to { color: #ff7a5c; text-shadow: 0 0 10px #ff3b24, 0 0 24px rgba(255, 59, 36, .7); } }
@media (prefers-reduced-motion: reduce) { .shotclock.hurry .sc-digits { animation: none; } }
@media (max-width: 480px) { .sc-face { font-size: 26px; } }

/* Result ------------------------------------------------------------------ */
.result-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.points {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: var(--display-weight);
  line-height: 1;
  letter-spacing: calc(-0.04em + var(--display-track));
  font-variant-numeric: tabular-nums;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
}
.points small { font-size: 20px; color: var(--ink-2); margin-left: 4px; letter-spacing: 0; -webkit-text-stroke: 0; }
.points.s-dunk { color: var(--dunk); }
.points.s-great { color: var(--great); }
.points.s-good { color: var(--good); }
.points.s-ok { color: var(--ok); }
.points.s-miss { color: var(--miss); }
.verdict { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 16px; }
.compare div { background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 9px 12px; }
.compare span { display: block; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.compare b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 1px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.fact {
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0 0 18px;
  font-size: 15px;
  padding-left: 12px;
  border-left: 3px solid var(--ball);
}

/* Summary ----------------------------------------------------------------- */
.total { text-align: center; margin-bottom: 18px; }
.total .big { font-family: var(--font-display); font-size: 84px; font-weight: var(--display-weight); line-height: .9; letter-spacing: calc(-0.05em + var(--display-track)); font-variant-numeric: tabular-nums; }
.total .big small { font-size: 28px; color: var(--ink-3); letter-spacing: -0.02em; }
.total .rank {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 14px;
  background: var(--ink);
  color: var(--card);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
}
.recap { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.recap li {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 15px;
}
.recap .dot { width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--ink); }
.dot.s-dunk { background: var(--dunk); }
.dot.s-great { background: var(--great); }
.dot.s-good { background: var(--good); }
.dot.s-ok { background: var(--ok); }
.dot.s-miss { background: var(--miss); }
.recap .tag { font-weight: 700; }
.recap .sub { display: block; color: var(--ink-2); font-size: 13px; margin-top: 1px; }
.recap .pts { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 20px 0 0; text-align: center; }
.stats div { border: 2px solid var(--ink); border-radius: 10px; padding: 8px 4px; background: var(--paper); }
.stats b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: var(--display-weight); font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.countdown { text-align: center; color: var(--ink-2); font-size: 14px; margin-top: 16px; }
.countdown b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 800; }

/* Playing-as + locker room ------------------------------------------------ */
.playing-as {
  display: flex; align-items: center; gap: 12px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  padding: 8px 12px 8px 8px;
  margin: 0 0 16px;
}
.playing-as canvas { border-radius: 8px; flex: none; border: 2px solid var(--ink); }
.pa-text { flex: 1; display: grid; line-height: 1.25; min-width: 0; }
.pa-label { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.pa-text b { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.pa-sub { font-size: 13px; color: var(--ink-2); }

.roster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.card {
  appearance: none;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  padding: 8px 6px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: transform .08s, box-shadow .08s, background .15s;
}
.card:hover { background: var(--paper); }
.card.sel { background: var(--ball-soft); box-shadow: var(--shadow-sm); transform: translate(-2px, -2px); }
.card canvas { border-radius: 8px; margin-bottom: 5px; border: 2px solid var(--ink); }
.card-art { position: relative; display: block; }
.card.locked { cursor: not-allowed; background: var(--paper); }
.card.locked:hover { background: var(--paper); }
.card.locked canvas { filter: brightness(0) opacity(.45); }
.card.locked .card-name { color: var(--ink-2); }
.lock { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; padding-bottom: 5px; }
.unlock-bar { display: block; width: 80%; height: 5px; margin-top: 6px; border-radius: 99px; background: rgba(0,0,0,.12); overflow: hidden; }
.unlock-bar > span { display: block; height: 100%; background: var(--ball); border-radius: 99px; }
.courts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.court-card {
  appearance: none; cursor: pointer; font-family: inherit; color: var(--ink); text-align: left;
  display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px;
  border: 2.5px solid var(--ink); border-radius: 12px; background: var(--card); box-shadow: var(--shadow-sm);
  transition: transform .08s, box-shadow .08s;
}
.court-card:hover { background: var(--paper); }
.court-card.sel { background: var(--ball-soft); transform: translate(-2px, -2px); }
.court-card.locked { cursor: not-allowed; background: var(--paper); }
.court-card.locked .court-thumb { filter: grayscale(1) brightness(.55); }
.court-card.locked .card-name { color: var(--ink-2); }
.ct-text { display: grid; gap: 2px; min-width: 0; }
.court-thumb { display: block; width: 100%; height: 54px; flex: none; border-radius: 8px; border: 2px solid var(--ink); }
.court-card .ct-text { text-align: center; justify-items: center; }
.court-thumb.small { width: 44px; height: 44px; }
.ct-home { background: linear-gradient(#141a23 0 58%, var(--team, #6F263D) 58% 68%, #d39a5c 68%); }
.ct-beach { background: radial-gradient(circle at 26% 22%, #fff6c8 0 9%, transparent 10%), linear-gradient(#5db4e6 0 44%, #2b8bc2 44% 56%, #f1d9a3 56% 70%, #d8dcd2 70%); }
.ct-night { background: radial-gradient(circle at 74% 20%, #eef1f8 0 7%, transparent 8%), linear-gradient(transparent 32%, #0a0e1e 32% 34%, transparent 34%), linear-gradient(#060a18 0 40%, #121833 40% 62%, #15171d 62% 70%, #34373d 70%); }
.ct-finals { background: radial-gradient(circle at 55% 52%, #f6d777 0 7%, transparent 8%), linear-gradient(#0b0a08 0 58%, #e2b23f 58% 62%, #0b0a08 62% 68%, #f0c95e 68%); }
.unlocked { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--ball-soft); box-shadow: var(--shadow-sm); }
.unlocked canvas { border-radius: 8px; border: 2px solid var(--ink); flex: none; }
.unlocked > div { display: grid; flex: 1; min-width: 0; }
.next-unlock { text-align: center; margin: 12px 0 0; }
.card-name { font-family: var(--font-display); font-size: 14px; font-weight: var(--display-weight); line-height: 1.15; letter-spacing: -0.01em; }
.card-sub { font-size: 12px; color: var(--ink-2); line-height: 1.3; }

/* Toast & motion ---------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--ink); color: var(--card);
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700; font-size: 15px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* While a play runs the card gets out of the way */
.hud.playing .panel { opacity: 0; transform: translateY(-14px) scale(.98); pointer-events: none; }

.fade-in { animation: pop .28s cubic-bezier(.2, .9, .3, 1.2) backwards; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }

/* Hall of Fame ------------------------------------------------------------ */
.hof .section-title.first { margin-top: 4px; }
.hof-sub { font-size: 15px; font-weight: 800; margin: 16px 0 8px; letter-spacing: -0.01em; }
.hof-note { color: var(--ink-2); font-size: 14px; line-height: 1.45; margin: 8px 2px; }
.hof .stats { margin-top: 0; }
.hof-days li { grid-template-columns: 22px 1fr auto; }
.hof-account {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin: 16px 0 0; padding: 10px 12px;
  border: 2px solid var(--ink); border-radius: 12px; background: var(--paper);
  font-size: 15px;
}
.hof-account.signup { display: block; background: var(--ball-soft); }
.hof-account.signup .hof-note { margin: 0 0 8px; color: var(--ink); }
.hof-account .mini-form { flex: 1; }
.hof-pin { flex-basis: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.linkish { appearance: none; background: none; border: 0; padding: 2px 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.linkish:hover { color: var(--ink); }
.hof-pin:empty { display: none; }
.hof-pin .hof-note { margin: 0; flex-basis: 100%; }
.hof-pin span.hof-note { flex-basis: auto; flex: 1; }
.hof-signin { margin-top: 8px; }
.mini-form .input-wrap { flex: 1 1 auto; min-width: 0; }
.mini-form .input-wrap.pin { flex: 0 0 72px; }
.mini-form .input-wrap input { width: 100%; min-width: 0; }
.hof-signin + div, .hof-account.signup > div > .hof-note { margin-top: 12px; }

.mini-form .guess-row { flex-direction: row; gap: 8px; }
.mini-form .input-wrap { padding: 0 12px; background: var(--card); }
.mini-form .input-wrap input { font-size: 18px; padding: 8px 0; font-weight: 700; }
.mini-form .hint { margin: 6px 2px 0; min-height: 0; }
.mini-form .hint:empty { display: none; }

.hof-tabs { display: flex; gap: 6px; margin: 0 0 10px; }
.hof-tabs button {
  appearance: none; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--card); color: var(--ink);
  font-size: 14px; font-weight: 700; padding: 5px 13px;
}
.hof-tabs button.sel { background: var(--ink); color: var(--card); }

.board { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.board li {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center;
  border: 2px solid var(--ink); border-radius: 10px; padding: 7px 12px; font-size: 15px;
}
.board li.me { background: var(--ball-soft); box-shadow: 2px 2px 0 var(--ink); }
.board li:nth-child(1) .lb-rank { background: var(--good); }
.board li:nth-child(2) .lb-rank { background: #d9d4c8; }
.board li:nth-child(3) .lb-rank { background: #d9925a; }
.lb-rank {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--paper);
}
.hof-days .lb-rank { width: 22px; height: 22px; font-size: 12px; }
.lb-name { min-width: 0; font-weight: 700; }
.lb-name > span:first-child { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .sub { display: block; color: var(--ink-2); font-size: 13px; font-weight: 500; margin-top: 1px; }
.board .pts { font-family: var(--font-display); font-size: 22px; font-weight: var(--display-weight); font-variant-numeric: tabular-nums; }

.hof .actions { margin-top: 16px; }
.btn.danger { color: var(--red); }
.hof-back { margin-top: 22px; }
.hof-link { margin-top: 10px; }

@media (max-width: 520px) {
  .hud { padding: 0 12px 16px; }
  .top { padding-top: 12px; }
  .logo-text { font-size: 27px; }
  .locker-btn span { display: none; }
  .locker-btn { padding: 7px; }
  .panel { padding: 18px 16px 20px; }
  .hero-title { font-size: 32px; }
  .question { font-size: 20px; }
  .guess-row { flex-direction: column; }
  .compare b { font-size: 21px; }
  .points { font-size: 48px; }
  .stats b { font-size: 20px; }
  .actions { grid-template-columns: 1fr; }
  .roster { grid-template-columns: repeat(2, 1fr); }
  .courts { grid-template-columns: repeat(2, 1fr); }
  .progress li { height: 28px; font-size: 12px; }
  .hof .stats span { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { animation: none; }
}
