/* ============================================================ tokens */
:root {
  --night-0: #05100e;
  --night-1: #081714;
  --night-2: #0c211d;
  --night-3: #123029;
  --line: #1d413a;
  --line-soft: #16332d;

  --ink: #eaf4f1;
  --ink-dim: #a7bfb9;
  --ink-mute: #6f8b85;

  --gold: #e9c65a;
  --gold-deep: #b8912f;
  --grass: #2fbf6d;
  --grass-deep: #0f6b3c;
  --loss: #e5604d;

  --pitch-a: #1d7a45;
  --pitch-b: #196b3d;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo Black", "Arial Black", var(--font);

  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 620px at 50% -12%, #17423a 0%, transparent 62%),
    radial-gradient(900px 520px at 88% 6%, #113029 0%, transparent 58%),
    linear-gradient(180deg, var(--night-1) 0%, var(--night-0) 62%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Two cones of light raking down from above the stand. */
.floodlights {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    conic-gradient(from 186deg at 18% -8%, transparent 0deg, rgba(210, 255, 235, .07) 6deg, transparent 13deg),
    conic-gradient(from 174deg at 82% -8%, transparent 0deg, rgba(210, 255, 235, .07) 6deg, transparent 13deg);
  mix-blend-mode: screen;
}

/* ============================================================ chrome */
.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(14px, 4vw, 34px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 16, 14, .72);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #23180a;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -.5px;
  box-shadow: 0 5px 16px rgba(233, 198, 90, .26);
}
.brand-mark-x { font-size: 11px; }

.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .04em;
}
.brand-name span { color: var(--grass); }

.topnav { display: flex; gap: 4px; }

.topnav button {
  padding: 8px 13px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-dim);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.topnav button:hover { background: var(--night-3); color: var(--ink); }
.topnav button.is-active { background: var(--night-3); color: var(--grass); }

/* ============================================================ screens */
#main { position: relative; z-index: 2; }

.screen { display: none; }
.screen.is-active { display: block; animation: rise .3s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* =============================================================== home */
.hero {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 86px) clamp(18px, 5vw, 24px) 70px;
  text-align: center;
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(38px, 8.4vw, 74px);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold) 10%, #fff0bd 50%, var(--gold-deep) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--ink-dim);
  font-size: clamp(14.5px, 2vw, 16.5px);
  line-height: 1.65;
}

.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 15px;
  margin-bottom: 34px;
  text-align: left;
}

.mode {
  position: relative;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--night-2) 0%, var(--night-1) 100%);
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.mode:hover {
  transform: translateY(-3px);
  border-color: var(--grass);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}

.mode-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 15px;
  border-radius: 10px;
  background: var(--night-3);
  color: var(--grass);
}
.mode-icon svg { width: 20px; height: 20px; }

.mode h2 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: .01em;
}
.mode p {
  margin: 0 0 16px;
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.5;
}
.mode-go {
  color: var(--grass);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero-foot {
  margin: 0;
  color: var(--ink-mute);
  font-size: 12.5px;
  letter-spacing: .05em;
}

/* ============================================================== draft */
.draft {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: clamp(20px, 3.5vw, 44px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(20px, 4vh, 40px) clamp(16px, 4vw, 30px) 70px;
}

.draft-left { display: flex; flex-direction: column; gap: 16px; }

/* --- reels --- */
.reels { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; }

.reel {
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--night-2), var(--night-1));
}

.reel-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-mute);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.reel-window {
  position: relative;
  height: 54px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #04100d;
  box-shadow: inset 0 0 0 1px var(--line-soft), inset 0 14px 20px -14px #000, inset 0 -14px 20px -14px #000;
}

.reel-strip { will-change: transform; }

.reel-item {
  display: grid;
  place-items: center;
  height: 54px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: .01em;
  color: var(--ink);
}
.reel[data-reel="era"] .reel-item { color: var(--gold); }

.reel.is-locked .reel-window {
  box-shadow: inset 0 0 0 1px var(--grass), inset 0 0 22px rgba(47, 191, 109, .16);
}

/* --- spin --- */
.spin {
  position: relative;
  padding: 17px 20px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--grass) 0%, #17a259 100%);
  color: #04150c;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(47, 191, 109, .26);
  transition: transform .14s, box-shadow .14s, filter .14s;
}
.spin:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(47, 191, 109, .34); }
.spin:active:not(:disabled) { transform: translateY(0); }
.spin:disabled { filter: grayscale(.7) brightness(.66); cursor: not-allowed; box-shadow: none; }

.draft-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink-dim);
  font-size: 13px;
}
.draft-progress strong { color: var(--ink); font-size: 15px; }

.draft-mode-tag {
  margin-left: auto;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-mute);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* --- candidates --- */
.candidates {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 23, 20, .82);
}

.candidates-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.candidate-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.cand {
  display: grid;
  grid-template-columns: 4px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--night-2);
  color: inherit;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: border-color .15s, background .15s, transform .12s;
}
.cand:hover { border-color: var(--grass); background: var(--night-3); transform: translateX(2px); }

.cand-stripe { align-self: stretch; background: var(--club, var(--grass)); }

.cand-body { padding: 10px 0; min-width: 0; }

.cand-name {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cand-meta {
  display: block;
  margin-top: 3px;
  color: var(--ink-mute);
  font-size: 11.5px;
  letter-spacing: .03em;
}

.cand-ovr {
  padding-right: 13px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--grass);
}
.cand-ovr[data-hidden="1"] { color: var(--ink-mute); font-size: 15px; letter-spacing: .1em; }

/* Choosing which shirt a versatile player fills. */
.cand-slots {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 13px 12px;
}
.cand-slots-label {
  width: 100%;
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.slot-chip {
  padding: 5px 11px;
  border: 1px solid var(--grass);
  border-radius: 999px;
  background: rgba(47, 191, 109, .12);
  color: var(--grass);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.slot-chip:hover { background: var(--grass); color: #04150c; }

/* --- the two re-spin lifelines --- */
.respin {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
}

.respin-label {
  width: 100%;
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.respin-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  background: rgba(233, 198, 90, .1);
  color: var(--gold);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.respin-btn:hover:not(:disabled) { background: var(--gold); color: #23180a; }

.respin-btn b {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(233, 198, 90, .22);
  font-family: var(--font-display);
  font-size: 11px;
}
.respin-btn:hover:not(:disabled) b { background: rgba(0, 0, 0, .18); }

.respin-btn:disabled {
  border-color: var(--line);
  background: none;
  color: var(--ink-mute);
  cursor: not-allowed;
  text-decoration: line-through;
}
.respin-btn:disabled b { background: var(--night-3); text-decoration: none; }

.respin-note {
  margin: 11px 0 0;
  color: var(--gold);
  font-size: 12.5px;
  line-height: 1.5;
}

.play-season {
  padding: 17px 20px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #23180a;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(233, 198, 90, .28);
  animation: pulse 2.1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 34px rgba(233, 198, 90, .22); }
  50%      { box-shadow: 0 12px 44px rgba(233, 198, 90, .44); }
}

.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-mute);
  font: inherit;
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link:hover { color: var(--ink); }
.restart { align-self: flex-start; }

/* --- pitch --- */
.pitch {
  position: relative;
  aspect-ratio: 68 / 92;
  /* Height is derived from width, so cap the width to keep the whole pitch on screen. */
  max-width: min(100%, calc((100dvh - 150px) * 68 / 92));
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    repeating-linear-gradient(180deg, var(--pitch-a) 0 8.333%, var(--pitch-b) 8.333% 16.666%);
  box-shadow: var(--shadow), inset 0 0 120px rgba(0, 0, 0, .45);
}

/* Markings, drawn rather than drawn on. */
.pitch-lines { position: absolute; inset: 0; }
.pitch-lines span { position: absolute; border: 2px solid rgba(255, 255, 255, .3); }

.pl-box { left: 22%; width: 56%; height: 13%; }
.pl-box-far { top: 0; border-top: 0; }
.pl-box-near { bottom: 0; border-bottom: 0; }
.pl-circle {
  top: 50%; left: 50%;
  width: 30%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.pl-half { top: 50%; left: 0; width: 100%; height: 0; border-width: 2px 0 0; }
.pl-spot {
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  border: 0;
}

.shirts { position: absolute; inset: 0; }

.shirt {
  position: absolute;
  transform: translate(-50%, -50%);
  width: clamp(58px, 15%, 88px);
  text-align: center;
}

.shirt-disc {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, .4);
  background: rgba(4, 20, 14, .42);
  color: rgba(255, 255, 255, .72);
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: .04em;
  transition: transform .2s, border-color .2s, background .2s;
}

.shirt.is-open .shirt-disc {
  border-color: rgba(255, 255, 255, .62);
}

.shirt.is-target .shirt-disc {
  border-style: solid;
  border-color: var(--gold);
  background: rgba(233, 198, 90, .22);
  animation: beat 1s ease-in-out infinite;
}
@keyframes beat {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.09); }
}

.shirt.is-filled .shirt-disc {
  border-style: solid;
  border-color: rgba(255, 255, 255, .8);
  background: var(--club, #0d2b1f);
  color: var(--club-ink, #fff);
  font-size: 11px;
  line-height: 1.15;
  padding: 4px;
  animation: land .35s cubic-bezier(.2, 1.5, .4, 1) both;
}
@keyframes land {
  from { transform: scale(.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.shirt-name {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
}
.shirt-sub {
  display: block;
  font-size: 9.5px;
  color: rgba(255, 255, 255, .68);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
}

/* ============================================================= result */
.result {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(26px, 5vh, 52px) clamp(16px, 4vw, 28px) 80px;
}

.verdict { text-align: center; margin-bottom: 40px; }

.verdict-word {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(46px, 13vw, 108px);
  line-height: .96;
  letter-spacing: -.02em;
}
.verdict-word.is-treble {
  background: linear-gradient(100deg, var(--gold-deep) 4%, #fff3c4 46%, var(--gold) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 26px rgba(233, 198, 90, .3));
}
.verdict-word.is-miss { color: var(--ink); }

.verdict-sub {
  margin: 0 auto;
  max-width: 500px;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* --- the three trophies --- */
.trophies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.trophy {
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--night-2), var(--night-1));
}
.trophy.is-won {
  border-color: rgba(233, 198, 90, .5);
  background: linear-gradient(170deg, rgba(233, 198, 90, .1), var(--night-1));
}

.trophy-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.trophy-cup { width: 30px; height: 30px; flex: none; color: var(--ink-mute); }
.trophy.is-won .trophy-cup { color: var(--gold); filter: drop-shadow(0 2px 8px rgba(233, 198, 90, .5)); }

.trophy-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .02em;
}
.trophy-stage {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.trophy.is-won .trophy-stage { color: var(--gold); }
.trophy.is-lost .trophy-stage { color: var(--loss); }

.trophy-headline {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.trophy-detail { margin: 0; padding: 0; list-style: none; }
.trophy-detail li {
  padding: 4px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-dim);
  font-size: 12.5px;
}

/* --- panels --- */
.panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.panel {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--night-2), var(--night-1));
}

.panel h3 {
  margin: 0 0 15px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.bar-row { margin-bottom: 12px; }
.bar-row:last-child { margin-bottom: 0; }

.bar-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 12.5px;
}
.bar-top strong { font-family: var(--font-display); font-size: 14px; }

.bar {
  height: 6px;
  border-radius: 999px;
  background: var(--night-3);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #17a259, var(--grass));
}
.bar.is-gold i { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }

.odds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.odd {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--night-3);
}
.odd-value {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--grass);
}
.odd.is-hero { grid-column: 1 / -1; background: rgba(233, 198, 90, .12); }
.odd.is-hero .odd-value { color: var(--gold); font-size: 34px; }
.odd-label {
  display: block;
  margin-top: 3px;
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.notes { margin: 0; padding: 0; list-style: none; }
.notes li {
  padding: 6px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--ink-dim);
}
.notes li:first-child { border-top: 0; }
.notes li.is-plus { color: var(--grass); }
.notes li.is-minus { color: var(--loss); }

/* --- squad list --- */
.squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 8px;
}
.squad-cell {
  display: grid;
  grid-template-columns: 3px 1fr auto;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--night-2);
  overflow: hidden;
}
.squad-cell > i { align-self: stretch; background: var(--club, var(--grass)); }
.squad-cell span { padding: 8px 0; font-size: 12.5px; font-weight: 600; }
.squad-cell small {
  display: block;
  color: var(--ink-mute);
  font-size: 10.5px;
  font-weight: 400;
}
.squad-cell b {
  padding-right: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--grass);
}

/* --- actions --- */
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.btn {
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--night-2);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--grass); background: var(--night-3); }
.btn-primary {
  border-color: transparent;
  background: linear-gradient(160deg, var(--grass), #17a259);
  color: #04150c;
}
.btn-primary:hover { filter: brightness(1.07); background: linear-gradient(160deg, var(--grass), #17a259); }

.name-input {
  flex: 1 1 170px;
  min-width: 150px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #04100d;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
}
.name-input:focus { outline: 2px solid var(--grass); outline-offset: -1px; }

.save-note { margin: 12px 0 0; color: var(--grass); font-size: 13px; }

/* ======================================================== leaderboard */
.board, .prose {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 5vh, 56px) clamp(16px, 4vw, 28px) 80px;
}

.page-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -.01em;
}
.page-sub { margin: 0 0 28px; color: var(--ink-dim); font-size: 14.5px; }

.board-body { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.row {
  display: grid;
  grid-template-columns: 46px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--night-1);
}
.row:last-child { border-bottom: 0; }
.row.is-head {
  background: var(--night-2);
  color: var(--ink-mute);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.row-rank { font-family: var(--font-display); font-size: 16px; color: var(--ink-mute); }
.row.is-treble .row-rank { color: var(--gold); }
.row-manager { font-size: 14px; font-weight: 600; min-width: 0; }
.row-manager small {
  display: block;
  margin-top: 2px;
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-trophies { display: flex; gap: 3px; }
.row-trophies svg { width: 15px; height: 15px; color: var(--gold); }
.row-odds { font-family: var(--font-display); font-size: 14px; color: var(--grass); min-width: 52px; text-align: right; }

.muted { color: var(--ink-mute); font-size: 14px; padding: 20px; margin: 0; }

/* ================================================================ how */
.prose h2 {
  margin: 30px 0 10px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: .01em;
}
.prose p, .prose li {
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.68;
}
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }

/* ========================================================= responsive */
@media (max-width: 900px) {
  .draft { grid-template-columns: 1fr; }
  .draft-right { order: -1; }
  .pitch { max-width: 420px; margin: 0 auto; }
  .candidate-list { max-height: none; }
}

@media (max-width: 520px) {
  .topnav button { padding: 7px 9px; font-size: 12.5px; }
  .brand-name { display: none; }
  .odds-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 34px 1fr auto; }
  .row-odds { display: none; }
  .row.is-head span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
