/* Dynasty Clock — "Prime Time": broadcast graphics on a night-game navy. */
:root {
  --ground: #0A0F1F;
  --panel: #121A33;
  --panel-2: #172042;
  --line: #26315A;
  --line-soft: #1C2547;
  --ink: #F4F6FF;
  --ink-2: #A9B3D6;
  --ink-3: #6C7BB0;
  --accent: #FF6A2B;
  --accent-hi: #FF8A52;
  --accent-foot: #A33A0E;
  --gold: #FFC93C;
  --good: #3DDC84;
  /* one job per colour: orange = what you do, gold = titles, cyan = the forecast,
     violet = the future, coral = trouble, green = good news */
  --cyan: #3FD6E8;
  --violet: #A4AEFF;
  --coral: #FF5E6C;
  --led: #FF3B2F;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ground); color: var(--ink); font-family: var(--body); }
body { -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2 { margin: 0; font-weight: inherit; }

.screen {
  height: 100dvh; max-width: 480px; margin: 0 auto;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);       /* the ticker's long line must not size the column */
}
.scroll, .dock { min-width: 0; }
.scroll {
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(env(safe-area-inset-top) + 14px) var(--gutter) 18px;
  display: flex; flex-direction: column; gap: 12px;
}

/* masthead */
.masthead { display: flex; flex-direction: column; gap: 10px; }
.masthead__top { display: flex; align-items: center; gap: 12px; padding-right: 46px; }
.masthead__meta { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.masthead__main { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.tag {
  align-self: flex-start; background: var(--ink); color: var(--ground);
  font: 800 13px/1 var(--display); letter-spacing: .12em; padding: 5px 12px 4px; transform: skewX(-14deg);
}
.team { font: italic 800 clamp(52px, 16vw, 68px)/.84 var(--display); letter-spacing: .005em; text-transform: uppercase; min-width: 0; }
.team--long { font-size: clamp(40px, 12.5vw, 56px); }
/* the banner hangs from the top edge, like one in the rafters */
.brand { flex: none; width: 58px; align-self: flex-start; margin-top: -14px; }
.brand__svg { display: block; width: 100%; height: auto; }
.rings { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1; padding-bottom: 2px; }
.rings__n { font: 800 44px/1 var(--display); color: var(--gold); }
.rings__l { font: 700 12px/1 var(--display); letter-spacing: .18em; color: var(--ink-2); }

/* scoreboard */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.board__cell { background: var(--panel); border-top: 3px solid var(--ink-3); padding: 8px 10px 9px; display: flex; flex-direction: column; min-width: 0; }
.board__cell--wins { border-top-color: var(--cyan); }
.board__cell--title { border-top-color: var(--gold); }
.board__cell--rank { border-top-color: var(--violet); }
.board__n { font: 800 34px/1 var(--display); }
.board__n--good { color: var(--gold); }
.board__l { font: 700 11px/1.2 var(--body); letter-spacing: .1em; color: var(--ink-2); margin-top: 2px; }
.board__s { font: 600 11px/1.2 var(--body); color: var(--ink-3); margin-top: 1px; }

/* panels */
.panel { background: var(--panel); padding: 10px 10px 10px; }
.panel__head, .five__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.panel__title { font: 800 16px/1 var(--display); letter-spacing: .12em; }
.panel__aside { font: 600 11px/1 var(--body); color: var(--ink-2); white-space: nowrap; }

/* the curve */
.curve__units { margin: 4px 0 0; font: 600 11.5px/1.3 var(--body); color: var(--ink-3); }
.curve__chart { margin-top: 6px; touch-action: pan-y; }
.curve__chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.curve__readout {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; margin-top: 4px;
  font: 600 13px/1.25 var(--body); color: var(--ink-2);
}
.curve__readout b { grid-row: span 2; font: 800 26px/1 var(--display); color: var(--ink); letter-spacing: .02em; white-space: nowrap; }
.curve__readout b small { font-size: 15px; color: var(--ink-2); margin-right: 6px; }
.curve__readout .gold { color: var(--gold); font-weight: 700; }
.callouts { display: flex; gap: 6px; margin-top: 8px; }
.callout { flex: 1; background: var(--panel-2); padding: 7px 9px; display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--gold); }
.callout { border-left-color: var(--violet); }
.callout:first-child { border-left-color: var(--gold); }
.callout--warn { border-left-color: var(--coral); }
.callout__k { font: 700 10.5px/1.1 var(--body); letter-spacing: .1em; color: var(--ink-2); }
.callout__v { font: 800 17px/1.05 var(--display); letter-spacing: .02em; }

/* starting five */
.five__head { padding-bottom: 5px; border-bottom: 2px solid var(--line); }
.five__cols { display: grid; grid-template-columns: minmax(0, 1fr) 50px 54px; gap: 8px; align-items: baseline; }
.five__col { font: 700 11px/1 var(--display); letter-spacing: .12em; color: var(--ink-2); text-align: right; }
.five__list { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 50px 54px; align-items: center; gap: 8px; min-height: 50px; border-bottom: 1px solid var(--line-soft); }
.row__later { font: 700 18px/1 var(--display); text-align: right; color: var(--violet); opacity: .85; }
.row__who { display: flex; flex-direction: column; min-width: 0; }
.row__name { font: 800 20px/1.05 var(--display); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__meta { font: 600 12px/1.3 var(--body); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__spark { width: 46px; height: 22px; }
.row__rating { font: 800 26px/1 var(--display); text-align: right; }
.row__rating--star { color: var(--gold); }

/* payroll */
.cap svg { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }

/* dock: the console. It's the only part of the screen that changes anything, so it's built from
   a different material than the broadcast above it: chalk white, edged in action orange */
.dock {
  position: relative; z-index: 2; padding: 12px var(--gutter) 0; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 -14px 28px rgba(0,0,0,.6);
  --dock-ink: #0E1430; --dock-ink-2: #4E5A86;
  background: linear-gradient(#F4F6FB, #E3E8F3);
  border-top: 4px solid var(--accent);
}
.console { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
.clock { display: flex; flex-direction: column; align-items: center; gap: 3px; background: #0B0B0E; padding: 7px 10px 5px;
  border-radius: 6px; box-shadow: inset 0 0 0 2px #2A2A31, 0 3px 0 rgba(0,0,0,.35); }
.clock__face { display: block; width: 30px; height: 48px; }
.clock__face svg { display: block; width: 100%; height: 100%; }
.seg { fill: var(--led); fill-opacity: .13; }
.seg--on { fill-opacity: 1; filter: drop-shadow(0 0 3px rgba(255,59,47,.85)); }
.clock__cap { font: 800 9.5px/1 var(--display); letter-spacing: .16em; color: #F2E9DA; }
.console__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.console__label { font: italic 800 22px/1 var(--display); letter-spacing: .04em; color: var(--dock-ink); }
.console__sub { font: 600 12.5px/1.3 var(--body); color: var(--dock-ink-2); }
.actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.btn {
  height: 54px; border-radius: 6px; cursor: pointer; font: 800 20px/1 var(--display); letter-spacing: .06em;
  transition: transform .07s ease, box-shadow .07s ease;
}
.btn--primary { border: 0; color: #1A0A02; background: linear-gradient(var(--accent-hi), var(--accent));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.4), inset 0 0 0 2px rgba(120,40,6,.35), 0 4px 0 var(--accent-foot); }
.btn--ghost { border: 2px solid #3A4778; color: var(--ink); background: linear-gradient(#1A2448, var(--panel));
  box-shadow: inset 0 1px 0 #3A4778, 0 4px 0 #050812; }
.dock .btn--ghost { border: 0; color: var(--ink); background: linear-gradient(#24305E, #141C3C);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.14), 0 4px 0 #050812; }
/* a button that spends one of your moves: navy face, orange edge and lettering */
.btn--move { border: 2px solid var(--accent); color: var(--accent-hi); background: linear-gradient(#1F2850, #141C3C);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 4px 0 var(--accent-foot); }
.btn--move:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 0 var(--accent-foot); }
.btn:active { transform: translateY(3px); }
.btn--primary:active { box-shadow: inset 0 2px 0 rgba(255,255,255,.4), inset 0 0 0 2px rgba(120,40,6,.35), 0 1px 0 var(--accent-foot); }
.btn--ghost:active, .dock .btn--ghost:active { box-shadow: inset 0 1px 0 #3A4778, 0 1px 0 #050812; }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.dock .btn:focus-visible { outline-color: #0E1430; }

.wire {
  margin: 0 calc(-1 * var(--gutter)); height: calc(34px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: #060A16; border-top: 0; display: flex; align-items: stretch; overflow: hidden;
}
/* League News: a red bottom-line bug, white italic lettering, a slanted edge into the crawl */
.wire__label { display: flex; align-items: center; background: linear-gradient(#E8141B, #B80A10); color: #fff; font: italic 800 15px/1 var(--display);
  letter-spacing: .06em; padding: 0 18px 0 12px; flex: none; clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%); text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.wire__track { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.wire__text { display: inline-block; white-space: nowrap; padding-left: 12px; font: 700 14px/1 var(--display); letter-spacing: .04em; color: #fff;
  animation: wire 26s linear infinite; }
@keyframes wire { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wire__text { animation: none; } }

/* short phones: tighten the vertical rhythm, keep everything readable */
@media (max-height: 700px) {
  .scroll { gap: 10px; }
  .team { font-size: clamp(46px, 14vw, 56px); }
  .board__n { font-size: 30px; }
  .row { min-height: 46px; }
  .btn { height: 50px; }
  .clock__face { width: 26px; height: 42px; }
}

/* ---------------------------------------------------------------- move flow */
.view { display: flex; flex-direction: column; gap: 12px; }
.view[hidden] { display: none; }
.dock__home { display: flex; flex-direction: column; gap: 9px; }
.dock__home[hidden], .dock__sub[hidden] { display: none; }
.dock__sub { display: flex; align-items: center; gap: 12px; }
.btn--back { width: 112px; flex: none; }
.dock__note { font: 600 13px/1.3 var(--body); color: var(--dock-ink-2); }

.sub-head { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.sub-head__kicker { align-self: flex-start; max-width: calc(100% - 8px); background: var(--ink); color: var(--ground); font: 800 13px/1.15 var(--display);
  letter-spacing: .12em; padding: 5px 12px 4px; transform: skewX(-14deg); }
.sub-head__title { font: italic 800 clamp(40px, 12vw, 52px)/.9 var(--display); text-transform: uppercase; }
.sub-head__top { display: flex; align-items: flex-end; gap: 14px; }
.sub-head__top .brand { width: 96px; }
.sub-head__titles { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-bottom: 8px; }
.sub-head__title--big { font-size: clamp(50px, 15vw, 64px); line-height: .86; }
.sub-head__top + .sub-head__kicker { margin-top: 6px; }
.sub-head__lede { font: 600 14px/1.35 var(--body); color: var(--ink-2); margin: 0; }

/* the move menu */
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.menu__item { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; align-items: stretch; background: var(--panel);
  min-height: 70px; width: 100%; border: 0; padding: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.menu__item:disabled { cursor: default; }
.menu__bar { background: var(--accent); }
.menu__item:disabled .menu__bar { background: #2A3459; }
.menu__body { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 10px 12px; min-width: 0; }
.menu__name { font: 800 21px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.menu__item:disabled .menu__name { color: var(--ink-2); }
.menu__ctx { font: 600 12.5px/1.3 var(--body); color: var(--ink-2); }
.menu__end { display: flex; align-items: center; padding-right: 12px; }
.menu__go { font: 800 22px/1 var(--display); color: var(--accent); }
.soon { font: 800 10.5px/1 var(--display); letter-spacing: .12em; color: var(--ink-3); border: 1.5px solid #2A3459; padding: 4px 6px 3px; }

/* player picker */
.pick { display: grid; grid-template-columns: minmax(0, 1fr) auto 26px; align-items: center; gap: 10px; width: 100%;
  min-height: 58px; padding: 0 12px 0 0; background: none; border: 0; border-bottom: 1px solid var(--line-soft); color: inherit;
  font: inherit; text-align: left; cursor: pointer; }
.pick:active { background: var(--panel); }
.pick__who { display: flex; flex-direction: column; min-width: 0; padding-left: 2px; }
.pick__note { font: 700 11px/1.2 var(--body); color: var(--violet); letter-spacing: .02em; }
.pick__rating { font: 800 24px/1 var(--display); text-align: right; }

/* offers */
.offer { background: var(--panel); display: flex; flex-direction: column; }
.offer__stripe { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--panel-2);
  border-top: 3px solid var(--offer); }
.offer__label { font: 800 17px/1 var(--display); letter-spacing: .14em; color: var(--offer); }
.offer__from { font: 700 12px/1 var(--display); letter-spacing: .1em; color: var(--ink-2); text-transform: uppercase; }
.offer--now { --offer: var(--gold); }
.offer--future { --offer: var(--violet); }
.offer--cap { --offer: var(--good); }
.offer__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.swap { display: grid; grid-template-columns: 54px minmax(0, 1fr); row-gap: 6px; column-gap: 10px; align-items: start; }
.swap__k { font: 800 11px/1.5 var(--display); letter-spacing: .12em; color: var(--ink-3); padding-top: 3px; }
.swap__list { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.swap__p { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: baseline; }
.swap__name { font: 800 18px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swap__r { font: 800 18px/1 var(--display); }
.swap__meta { grid-column: 1 / -1; font: 600 11.5px/1.25 var(--body); color: var(--ink-2); }
.swap__pick { font: 800 15px/1.2 var(--display); letter-spacing: .06em; color: var(--violet); text-transform: uppercase; }
.effect { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.effect__cell { background: var(--ground); padding: 7px 8px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.effect__k { font: 700 10px/1.1 var(--body); letter-spacing: .1em; color: var(--ink-2); }
.effect__v { font: 800 19px/1 var(--display); white-space: nowrap; }
.effect__d { font: 700 11.5px/1 var(--body); color: var(--ink-3); }
.effect__d--up { color: var(--good); }
.effect__d--down { color: var(--coral); }
.mini { background: var(--ground); padding: 6px 8px 4px; }
.mini svg { display: block; width: 100%; height: auto; overflow: visible; }
.mini__legend { display: flex; gap: 14px; font: 600 11px/1 var(--body); color: var(--ink-2); padding: 4px 0 2px; }
.mini__legend i { display: inline-block; width: 16px; height: 3px; vertical-align: middle; margin-right: 6px; }
.offer__note { font: 600 11.5px/1.35 var(--body); color: var(--ink-3); margin: 0; }
.mini__sum { margin-left: auto; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mini__sum--up { color: var(--good); }
.rule { background: var(--panel); border-left: 3px solid var(--violet); margin: 0 0 12px; padding: 10px 12px; font: 600 12.5px/1.4 var(--body); color: var(--ink-2); }
.offer .btn { width: 100%; }
.empty { background: var(--panel); padding: 16px; font: 600 14px/1.4 var(--body); color: var(--ink-2); }

/* trade banner: a broadcast lower third */
.banner { position: fixed; left: 0; right: 0; bottom: calc(150px + env(safe-area-inset-bottom)); max-width: 480px; margin: 0 auto;
  display: flex; align-items: stretch; transform: translateX(-105%); transition: transform .32s cubic-bezier(.2,.9,.2,1); z-index: 5; }
.banner.is-in { transform: translateX(0); }
.banner[hidden] { display: none; }
.banner__tag { background: var(--gold); color: var(--ground); font: 800 15px/1 var(--display); letter-spacing: .14em; padding: 12px 12px; display: flex; align-items: center; }
.banner__text { flex: 1; background: var(--ink); color: var(--ground); font: 800 17px/1.15 var(--display); letter-spacing: .03em; padding: 10px 12px; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .banner { transition: none; } }

/* ---------------------------------------------------------------- the season loop */
.btn--next { flex: 1; }
.btn[hidden], .dock__note[hidden] { display: none; }
.final { background: var(--panel); border-left: 4px solid var(--cyan); padding: 12px 12px 13px; display: flex; flex-direction: column; gap: 4px; }
.final--champ { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(255,201,60,.14), var(--panel) 70%); }
.final__line { font: italic 800 30px/1 var(--display); letter-spacing: .02em; }
.final--champ .final__line { color: var(--gold); }
.final__sub { font: 600 13px/1.35 var(--body); color: var(--ink-2); }
.final__ring { align-self: flex-start; margin-top: 4px; background: var(--gold); color: var(--ground); font: 800 13px/1 var(--display);
  letter-spacing: .14em; padding: 5px 12px 4px; transform: skewX(-14deg); }
.ser { list-style: none; margin: 6px 0 0; padding: 0; }
.ser__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 40px;
  border-bottom: 1px solid var(--line-soft); }
.ser__row:last-child { border-bottom: 0; }
.ser__row--empty { grid-template-columns: minmax(0, 1fr); }
.ser__round { font: 700 11px/1 var(--display); letter-spacing: .12em; color: var(--ink-3); min-width: 34px; }
.ser__opp { font: 800 17px/1.1 var(--display); letter-spacing: .02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ser__score { font: 800 17px/1 var(--display); letter-spacing: .02em; text-align: right; white-space: nowrap; }
.ser__row--out .ser__opp, .ser__row--out .ser__score { color: var(--ink-2); }
.ser__row--out .ser__score { color: var(--coral); }
.ser__row--won .ser__score { color: var(--good); }
.ser__row--you .ser__opp, .ser__row--you .ser__score { color: var(--cyan); }
.ser__row--gold .ser__opp, .ser__row--gold .ser__score { color: var(--gold); }
.ser__row--empty .ser__opp { font: 600 13px/1.3 var(--body); color: var(--ink-3); white-space: normal; }
.champ { background: var(--panel-2); border-top: 3px solid var(--gold); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; }
.champ__k { font: 700 11px/1 var(--display); letter-spacing: .14em; color: var(--gold); }
.champ__v { font: italic 800 28px/1 var(--display); letter-spacing: .02em; }
.champ__s { font: 600 13px/1.3 var(--body); color: var(--ink-2); }

/* ---------------------------------------------------------------- free agency and extensions */
.books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.books__c { background: var(--panel); padding: 7px 9px; display: flex; flex-direction: column; gap: 2px; border-top: 3px solid var(--ink-3); min-width: 0; }
.books__c--over { border-top-color: var(--coral); }
.books__k { font: 700 10.5px/1.1 var(--body); letter-spacing: .08em; color: var(--ink-2); }
.books__v { font: 800 19px/1 var(--display); letter-spacing: .02em; }
.books__c--over .books__v { color: var(--coral); }
.fa { background: var(--panel); padding: 10px 10px 11px; display: flex; flex-direction: column; gap: 8px; }
.fa--done { border-left: 3px solid var(--good); }
.fa__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.fa__terms { margin: 0; font: 600 12.5px/1.35 var(--body); color: var(--ink-2); }
.fa__btn { width: 100%; height: 48px; font-size: 18px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.dock .btn--primary:disabled { opacity: 1; filter: saturate(.55) brightness(.92); }
.choice { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.choice__b { min-height: 52px; border-radius: 6px; border: 2px solid #3A4778; background: linear-gradient(#1A2448, var(--panel)); color: var(--ink);
  font: 800 15px/1.05 var(--display); letter-spacing: .06em; cursor: pointer; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.choice__b small { font: 600 11px/1.1 var(--body); letter-spacing: 0; color: var(--ink-2); }
.choice__b.is-on { border-color: var(--accent); background: linear-gradient(var(--accent-hi), var(--accent)); color: #1A0A02; }
.choice__b.is-on small { color: #3A1505; }
.choice__b:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.fa__impact { color: var(--ink); font-weight: 700; }

/* ---------------------------------------------------------------- the season, live */
.live__record { font: italic 800 clamp(64px, 20vw, 84px)/.86 var(--display); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.live__game { font: 800 14px/1 var(--display); letter-spacing: .14em; color: var(--cyan); }
.strip { display: grid; grid-template-columns: repeat(41, minmax(0, 1fr)); gap: 2px; }
.strip__g { height: 9px; background: var(--line-soft); border-radius: 1px; }
.strip__g--w { background: var(--good); }
.strip__g--l { background: var(--coral); opacity: .8; }
.stand .ser__row { min-height: 34px; }
.stand__cut { border-bottom: 2px solid var(--ink-3); }
.stand__far { border-top: 2px dashed var(--line); }

.game { display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; align-items: center; gap: 10px; background: var(--panel); padding: 12px; border-left: 4px solid var(--line); }
.game__k { font: 800 11px/1 var(--display); letter-spacing: .14em; color: var(--ink-3); }
.game__v { font: 800 22px/1 var(--display); letter-spacing: .02em; }
.game__r { font: 800 26px/1 var(--display); text-align: right; color: var(--ink-3); }
.game--live { border-left-color: var(--cyan); animation: pulse .5s ease-in-out infinite alternate; }
.game--w { border-left-color: var(--good); } .game--w .game__r { color: var(--good); }
.game--l { border-left-color: var(--coral); } .game--l .game__r { color: var(--coral); }

.series { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.series__team { background: var(--panel); border-top: 3px solid var(--ink-3); padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; min-width: 0; }
.series__team--you { border-top-color: var(--cyan); }
.series__name { font: 800 20px/1 var(--display); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.series__team--you .series__name { color: var(--cyan); }
.series__n { font: 800 52px/1 var(--display); font-variant-numeric: tabular-nums; }
.pop { animation: pop .42s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { 0% { transform: scale(1.5); color: var(--gold); } 100% { transform: scale(1); } }
.games { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.games__g { background: var(--panel); border-bottom: 3px solid var(--line); padding: 7px 2px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.games__no { font: 800 14px/1 var(--display); letter-spacing: .06em; }
.games__at { font: 700 9.5px/1 var(--display); letter-spacing: .1em; color: var(--ink-3); }
.games__r { font: 800 22px/1 var(--display); min-height: 22px; }
.games__g--live { border-bottom-color: var(--cyan); animation: pulse .45s ease-in-out infinite alternate; }
.games__g--w { border-bottom-color: var(--good); } .games__g--w .games__r { color: var(--good); }
.games__g--l { border-bottom-color: var(--coral); } .games__g--l .games__r { color: var(--coral); }
.games__g--off { opacity: .3; }
@keyframes pulse { from { background: var(--panel); } to { background: #1E2B57; } }

.verdict:empty { display: none; }
.verdict { padding: 14px 12px; font: italic 800 26px/1.05 var(--display); letter-spacing: .03em; text-align: center; }
.verdict--won { background: linear-gradient(90deg, #8A5E04, #FFC93C 30%, #FFE58A 50%, #FFC93C 70%, #8A5E04); color: #1A1102;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 4px 0 #6B4803; }
.verdict--lost { background: var(--panel); color: var(--ink-2); border-left: 4px solid var(--coral); text-align: left; }
.verdict--slam { animation: slam .5s cubic-bezier(.2, 1.5, .35, 1); }
@keyframes slam { 0% { transform: scale(1.8); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1); } }

.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 30; }

/* the ring ceremony */
.ceremony { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 20px var(--gutter);
  background: radial-gradient(circle at 50% 36%, #4A3608, #1A1A24 46%, #07090F 78%); opacity: 0; transition: opacity .3s ease; }
.ceremony--in { opacity: 1; }
.ceremony--out { opacity: 0; }
.ceremony__box { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ceremony__k { font: 800 14px/1 var(--display); letter-spacing: .2em; color: var(--gold); }
.ring { width: min(70vw, 270px); filter: drop-shadow(0 18px 30px rgba(0,0,0,.55)); }
.ring__art { display: block; width: 100%; height: auto; }
.ceremony--in .ring { animation: ringIn 1.1s cubic-bezier(.18, 1.25, .35, 1) both; }
@keyframes ringIn { 0% { transform: scale(.2) rotateY(540deg) translateY(40px); opacity: 0; } 55% { opacity: 1; } 100% { transform: none; } }
.ring__t { font-family: var(--display); font-weight: 800; fill: #FFE07A; }
.ring__t--small { font-size: 11px; letter-spacing: 2px; }
.ring__t--big { font-size: 46px; letter-spacing: 1px; font-style: italic; }
.ring__shine { animation: shine 2.6s ease-in-out .9s infinite; }
@keyframes shine { 0% { transform: skewX(-18deg) translateX(0); } 45%, 100% { transform: skewX(-18deg) translateX(420px); } }
.ceremony__title { font: italic 800 clamp(54px, 17vw, 72px)/.9 var(--display); color: #fff; letter-spacing: .01em; }
.ceremony--in .ceremony__title { animation: slam .55s cubic-bezier(.2, 1.5, .35, 1) .75s both; }
.ceremony__sub { font: 600 14px/1.3 var(--body); color: var(--ink-2); }
.ceremony__count { margin-top: 2px; background: var(--gold); color: #1A1102; font: 800 14px/1 var(--display); letter-spacing: .14em; padding: 6px 14px 5px; transform: skewX(-14deg); }
.ceremony--in .ceremony__count { animation: slam .5s cubic-bezier(.2, 1.5, .35, 1) 1.05s both; }
.ceremony__go { margin-top: 14px; width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .ceremony--in .ring, .ceremony--in .ceremony__title, .ceremony--in .ceremony__count, .ring__shine, .verdict--slam, .pop, .game--live, .games__g--live { animation: none; }
}

/* ---------------------------------------------------------------- the bracket */
.br { background: var(--panel); padding: 10px 8px 10px; }
.br__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 8px; }
.br__col { display: grid; gap: 5px; }
.br__col--r1 { grid-template-rows: repeat(4, 1fr); }
.br__col--r2 { grid-template-rows: repeat(2, 1fr); }
.br__col--r3 { grid-template-rows: 1fr; }
.br__box { align-self: center; background: var(--ground); border-left: 3px solid var(--line); padding: 4px 5px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.br__box--done { border-left-color: var(--ink-3); }
.br--finals .br__box { margin-top: 8px; max-width: 220px; }
.br__t { display: grid; grid-template-columns: 13px minmax(0, 1fr) 11px; gap: 4px; align-items: baseline; min-height: 17px; }
.br__seed { font: 700 10px/1 var(--display); color: var(--ink-3); }
.br__name { font: 800 12.5px/1.2 var(--display); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br__w { font: 800 13px/1 var(--display); text-align: right; }
.br__t--won .br__w { color: var(--gold); }
.br__t--out { opacity: .38; }
.br__t--you .br__name { color: var(--cyan); }
.br__box--done { animation: brIn .35s ease-out; }
@keyframes brIn { from { background: #22305F; } to { background: var(--ground); } }

/* ---------------------------------------------------------------- draft night */
.lotto .ser__row { min-height: 34px; transition: opacity .25s ease, transform .25s ease; }
.lotto--hidden { opacity: 0; transform: translateX(-12px); }
.lotto--in:nth-child(-n+4) { animation: slam .45s cubic-bezier(.2, 1.5, .35, 1); }
.lotto--up .ser__score { color: var(--good); }
.lotto .ser__score { color: var(--ink-3); font-size: 14px; }
.verdict--you { background: var(--panel); border-left: 4px solid var(--cyan); color: var(--cyan); text-align: left; font-size: 22px; }
.scout { gap: 9px; }
.scout__src { font: 700 11.5px/1.3 var(--body); color: var(--ink-2); }
.scout__src--fr { margin: 0; color: var(--violet); }
.scout__line { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.scout__c { background: var(--ground); padding: 6px 4px 5px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.scout__v { font: 800 17px/1 var(--display); font-variant-numeric: tabular-nums; }
.scout__k { font: 700 9.5px/1 var(--display); letter-spacing: .1em; color: var(--ink-3); }
.odds { display: flex; height: 10px; gap: 2px; }
.odds__seg { display: block; flex-basis: 0; border-radius: 1px; }
.odds__seg--bust { background: var(--coral); }
.odds__seg--below { background: var(--ink-3); }
.odds__seg--above { background: var(--cyan); }
.odds__seg--plus3 { background: var(--gold); }
.odds__legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 700 10.5px/1.2 var(--display); letter-spacing: .06em; color: var(--ink-2); }
.odds__dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; vertical-align: -1px; }
@media (prefers-reduced-motion: reduce) { .br__box--done, .lotto--in:nth-child(-n+4) { animation: none; } .lotto .ser__row { transition: none; } }

/* head coach */
.coach { font: 800 12px/1.15 var(--display); letter-spacing: .14em; color: var(--ink-2); }
.coach:empty { display: none; }
.coach__h { margin-top: 6px; }

/* the trade deadline */
.strip__g--deadline { box-shadow: -2px 0 0 var(--gold); }
.deadline { background: var(--panel); border-left: 4px solid var(--gold); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.deadline__k { font: 800 13px/1 var(--display); letter-spacing: .16em; color: var(--gold); }
.deadline__v { font: italic 800 22px/1.1 var(--display); letter-spacing: .02em; }
.deadline__s { font: 600 13px/1.35 var(--body); color: var(--ink-2); }

.picks { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0; }

/* player stats on decision cards */
.pstats { display: flex; flex-direction: column; gap: 8px; }
.pstats__toggle { align-self: flex-start; background: none; border: 0; padding: 2px 0; color: var(--cyan); font: 800 12px/1 var(--display); letter-spacing: .14em; cursor: pointer; }
.pstats__toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.pstats__body { display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--line-soft); padding-top: 8px; }
.pstats__body[hidden] { display: none; }
.pstats__cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.pstats__c { background: var(--ground); padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pstats__k, .pstats__lk { font: 700 10px/1.2 var(--display); letter-spacing: .12em; color: var(--ink-3); }
.pstats__v { font: 800 16px/1.1 var(--display); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pstats__line { margin: 0; font: 600 12.5px/1.35 var(--body); color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; }
.pstats__cap { margin: 2px 0 0; }
.pstats__table { display: grid; grid-template-columns: 1.3fr repeat(9, minmax(0, 1fr)); gap: 3px 2px; font-variant-numeric: tabular-nums; }
.pstats__th { font: 700 9.5px/1 var(--display); letter-spacing: .06em; color: var(--ink-3); text-align: right; }
.pstats__th:first-child, .pstats__td:nth-child(10n+1) { text-align: left; }
.pstats__td { font: 700 12.5px/1.2 var(--display); text-align: right; }
.pstats__td--real { color: var(--ink-2); }

/* ---------------------------------------------------------------- the decade */
.dec { background: var(--panel); padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 6px; border-top: 4px solid var(--ink-3); }
.dec--rings { border-top-color: var(--gold); background: radial-gradient(circle at 85% 20%, rgba(255,201,60,.18), var(--panel) 60%); }
.dec__k { font: 800 13px/1 var(--display); letter-spacing: .14em; color: var(--ink-2); }
.dec__n { font: italic 800 clamp(58px, 18vw, 80px)/.9 var(--display); color: var(--ink-2); }
.dec--rings .dec__n { color: var(--gold); }
.dec__rings { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.dec__ring { width: 58px; display: flex; flex-direction: column; align-items: center; gap: 2px; font: 800 12px/1 var(--display); letter-spacing: .08em; color: var(--gold); }
.dec__ring svg { width: 100%; height: auto; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.dec__rec { font: 800 17px/1.2 var(--display); letter-spacing: .03em; }
.dec__verdict { margin: 2px 0 0; font: 600 13.5px/1.4 var(--body); color: var(--ink-2); }
.chart svg { display: block; width: 100%; height: auto; margin-top: 6px; }
.chart__v { font: 800 11px var(--display); fill: var(--ink); }
.chart__t { font: 700 10px var(--display); fill: var(--ink-3); letter-spacing: .04em; }
.mvp { background: linear-gradient(180deg, rgba(255,201,60,.12), var(--panel) 70%); border-left: 4px solid var(--gold); padding: 14px; display: flex; flex-direction: column; gap: 5px; }
.mvp__k { font: 800 13px/1 var(--display); letter-spacing: .16em; color: var(--gold); }
.mvp__name { font: italic 800 34px/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.mvp__line { font: 600 13.5px/1.35 var(--body); color: var(--ink-2); }
.mvp__val { font: 800 15px/1.2 var(--display); letter-spacing: .04em; color: var(--ink); margin-top: 2px; }
.gm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sharebox { position: fixed; inset: 0; z-index: 25; background: rgba(5,8,18,.92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sharebox__in { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px; }
.sharebox__img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.sharebox__row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }

/* you vs an average front office */
.cf { background: var(--panel); padding: 14px; display: flex; flex-direction: column; gap: 6px; border-left: 4px solid var(--ink-3); min-height: 120px; }
.cf--up { border-left-color: var(--good); }
.cf--down { border-left-color: var(--coral); }
.cf__k { font: 800 13px/1 var(--display); letter-spacing: .16em; color: var(--ink-2); }
.cf__v { font: italic 800 40px/1 var(--display); letter-spacing: .01em; }
.cf--up .cf__v { color: var(--good); }
.cf--down .cf__v { color: var(--coral); }
.cf__s { font: 600 13.5px/1.4 var(--body); color: var(--ink-2); }
.cf__plot { display: block; width: 100%; height: auto; margin: 4px 0; }
.cf:empty::before { content: 'Comparing with 40 AI-run decades…'; font: 600 13px var(--body); color: var(--ink-3); }
.fact { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.fact:last-child { border-bottom: 0; padding-bottom: 2px; }
.fact__k { font: 700 11px/1 var(--display); letter-spacing: .14em; color: var(--ink-3); }
.fact__v { font: 800 20px/1.1 var(--display); letter-spacing: .02em; }
.fact__s { font: 600 13px/1.3 var(--body); color: var(--ink-2); }

/* team picker */
.team-pick { grid-template-columns: minmax(0, 1fr) auto 18px; }
.team-pick__n { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.team-pick__w { font: 800 22px/1 var(--display); }
.team-pick__t { font: 700 11.5px/1 var(--display); letter-spacing: .08em; color: var(--gold); }

/* how to play */
.screen { position: relative; }
.menubtn { position: absolute; top: calc(env(safe-area-inset-top) + 12px); right: var(--gutter); z-index: 4; width: 38px; height: 34px; border-radius: 6px;
  border: 2px solid var(--ink-2); background: var(--ground); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.menubtn span { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: var(--ink); }
.menubtn[aria-expanded="true"] { border-color: var(--ink); background: var(--panel-2); }
.menubtn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.navmenu { position: absolute; top: calc(env(safe-area-inset-top) + 52px); right: var(--gutter); z-index: 25; width: min(260px, calc(100% - 2 * var(--gutter)));
  background: var(--panel); border-top: 4px solid var(--accent); box-shadow: 0 14px 34px rgba(0,0,0,.55); padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.navmenu__i { appearance: none; border: 0; background: var(--panel-2); color: var(--ink); text-align: left; padding: 13px 12px; font: 800 17px/1 var(--display); letter-spacing: .1em; cursor: pointer; }
.navmenu__i:hover, .navmenu__i:focus-visible { background: var(--line); outline: none; }
.navmenu__i--danger { color: var(--coral); }
.navmenu__q { margin: 4px 6px 6px; font: 600 14px/1.4 var(--body); color: var(--ink); }
.sub-head { padding-right: 44px; }
.help { position: fixed; inset: 0; z-index: 26; background: rgba(5,8,18,.88); display: flex; align-items: center; justify-content: center; padding: 16px; }
.help__in { width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--panel); border-top: 4px solid var(--accent); padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.help__t { font: italic 800 34px/1 var(--display); letter-spacing: .02em; }
.help__s { display: flex; flex-direction: column; gap: 3px; }
.help__k { font: 800 13px/1 var(--display); letter-spacing: .16em; color: var(--gold); }
.help__p { margin: 0; font: 600 14.5px/1.45 var(--body); color: var(--ink); }

/* free agency: your odds, and who said no */
.fa__odds { margin: 2px 0 0; font: 700 12.5px/1.3 var(--body); color: var(--cyan); }
/* an offer's answer */
.offerbox__in { gap: 8px; text-align: left; }
.offerbox__k { font: 800 12px/1 var(--display); letter-spacing: .16em; color: var(--ink-2); }
.offerbox__name { margin: 0; font: italic 800 34px/1 var(--display); letter-spacing: .01em; }
.offerbox__terms { font: 700 14px/1.3 var(--body); color: var(--ink-2); }
.offerbox__v { margin-top: 6px; padding: 14px 12px 12px; font: italic 800 30px/1 var(--display); letter-spacing: .02em; text-align: center; }
.offerbox__v--wait { background: var(--panel-2); color: var(--ink-2); animation: pulse .6s ease-in-out infinite alternate; }
.offerbox__v--yes { background: var(--good); color: #062A16; }
.offerbox__v--no { background: var(--coral); color: #2A0609; }
.offerbox__more { min-height: 1.45em; }
.offerbox .btn[hidden] { display: none; }

/* season awards */
.awards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.award { background: var(--panel); border-top: 3px solid var(--gold); padding: 10px 12px 11px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.award--you { border-top-color: var(--cyan); background: var(--panel-2); }
.award__k { font: 800 12px/1 var(--display); letter-spacing: .14em; color: var(--gold); }
.award--you .award__k { color: var(--cyan); }
.award__name { font: italic 800 30px/1 var(--display); letter-spacing: .01em; margin-top: 3px; }
.award__team { font: 800 13px/1.1 var(--display); letter-spacing: .1em; color: var(--ink-2); }
.award__line { font: 600 13.5px/1.3 var(--body); color: var(--ink); }

/* a playoff round: seeds, the regular-season series, game scores */
.series__seed { font: 800 14px/1 var(--display); color: var(--ink-3); margin-right: 6px; vertical-align: 3px; }
.series__team--you .series__seed { color: var(--cyan); opacity: .75; }
.h2h { background: var(--panel); padding: 9px 12px; display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 4px 12px; }
.h2h__k { font: 800 12px/1 var(--display); letter-spacing: .14em; color: var(--ink-2); }
.h2h__v { font: 800 24px/1 var(--display); font-variant-numeric: tabular-nums; }
.h2h__s { font: 600 13px/1.3 var(--body); color: var(--ink-2); text-align: right; }
.games__s { font: 800 12.5px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .01em; min-height: 13px; white-space: nowrap; }
.games__g--w .games__s { color: var(--good); } .games__g--l .games__s { color: var(--coral); }
