/* Woodstock55 league site.

   Built on Apple's grammar for sports and fitness apps: a large title, one
   floating glass tab bar, inset grouped lists on a grouped background, and
   type from the system San Francisco family. Hierarchy comes from weight and
   size, not from outlines or colour.

   Colour is the league's own. Blue is the W55 logo's, and carries every
   interactive element. Yellow and red come from the jersey 55 and are used
   as accents only: titles, the game of the week, the history card. Semantic
   green/red mark wins and losses and are separate from the brand accents.

   Light is the default. Dark is an explicit choice from the toggle, stored
   per browser, applied before first paint by the inline script in index.html. */

:root {
  --bg:        #f1f4fa;   /* grouped background, a hint of logo blue */
  --card:      #ffffff;
  --card-2:    #f6f8fc;
  --scroll-shade: rgba(19, 40, 80, .16);
  --fill:      rgba(19, 66, 135, .07);
  --fill-2:    rgba(19, 66, 135, .12);
  --sep:       rgba(19, 66, 135, .12);
  --ink:       #0b1220;
  --ink-2:     rgba(30, 42, 66, .64);
  --ink-3:     rgba(30, 42, 66, .38);

  --tint:      #134287;   /* W55 logo blue */
  --tint-2:    #1d58b3;
  --gold:      #ffcd00;   /* jersey 55 fill */
  --gold-ink:  #7a5c00;   /* gold that reads as text on white */
  --red:       #c8102e;   /* jersey 55 stroke */
  --win:       #1a8f47;
  --loss:      #c8102e;

  --glass:      rgba(255, 255, 255, .72);
  --glass-edge: rgba(255, 255, 255, .95);
  --shadow:     0 1px 2px rgba(19, 66, 135, .05), 0 8px 24px rgba(19, 66, 135, .07);
  --hero-a:     #1a4c98;
  --hero-b:     #0c2c60;

  --font:  -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Helvetica Neue", Arial, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:  ui-monospace, "SF Mono", Menlo, monospace;

  --r-lg: 22px;
  --r:    14px;
  --r-sm: 10px;
  --max:  1120px;
  --pad:  20px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #060a14; --card: #111a2c; --card-2: #16213a; --scroll-shade: rgba(0, 0, 0, .55);
  --fill: rgba(120, 150, 210, .12); --fill-2: rgba(120, 150, 210, .2);
  --sep: rgba(120, 150, 210, .16);
  --ink: #f2f5fb; --ink-2: rgba(220, 230, 250, .62); --ink-3: rgba(220, 230, 250, .34);
  --tint: #6f9cff; --tint-2: #8fb2ff; --gold-ink: #ffcd00; --red: #ff4d63;
  --win: #34c759; --loss: #ff5a6a;
  --glass: rgba(22, 32, 54, .66); --glass-edge: rgba(255, 255, 255, .12);
  --shadow: 0 0 0 1px rgba(255, 255, 255, .04);
  --hero-a: #134287; --hero-b: #08204a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.42; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 3px solid var(--tint); outline-offset: 2px; border-radius: 8px; }
.num, td.n, th.n { font-variant-numeric: tabular-nums; }
.dim { color: var(--ink-2); }
.neg, td.neg { color: var(--loss); }
.up { color: var(--win); }
.dn { color: var(--loss); }
.hidden { display: none !important; }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2;
        stroke-linecap: round; stroke-linejoin: round; vertical-align: -.125em; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
main.wrap { padding-block: 0 48px; min-height: 60vh; }
footer.wrap { padding-block: 8px 40px; text-align: center; font-size: 12px; color: var(--ink-3); }

/* ------------------------------------------------------------ the jersey 55 */
/* Hawks yellow fill, torch red stroke drawn behind the fill so the numerals
   stay crisp at small sizes. */
.j55 {
  font-style: normal; color: var(--gold);
  -webkit-text-stroke: .07em var(--red); paint-order: stroke fill;
}
@supports not (paint-order: stroke) { .j55 { -webkit-text-stroke: 0; } }

/* -------------------------------------------------------- floating tab bar */
.tabbar {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 50;
  display: flex; justify-content: center; margin-top: 12px; pointer-events: none;
}
.tabbar nav {
  pointer-events: auto; display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 0 0 .5px var(--glass-edge), 0 6px 24px rgba(10, 30, 70, .12);
}
.tabbar button {
  display: flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.tabbar button:hover { color: var(--ink); }
.tabbar button.on { background: var(--fill-2); color: var(--tint); }
.tabbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2;
              stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 700px) {
  .tabbar { position: fixed; top: auto; left: 0; right: 0; margin: 0;
            /* Sit down in the home-indicator area like a native floating tab
               bar, clearing the indicator itself; 10px when there is none. */
            bottom: max(10px, calc(env(safe-area-inset-bottom, 0px) - 12px)); }
  .tabbar nav { width: calc(100% - 32px); max-width: 420px; justify-content: space-between; }
  .tabbar button { flex: 1; flex-direction: column; gap: 2px; padding: 6px 0; font-size: 10.5px; }
  .tabbar svg { width: 22px; height: 22px; }
  main.wrap { padding-bottom: 110px; }
  footer.wrap { padding-bottom: 120px; }
}

/* ------------------------------------------------------------- large title */
.lt { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
      flex-wrap: wrap; padding-top: 30px; }
.lt .date { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-2); }
.lt h1 { margin: 2px 0 0; font-size: clamp(32px, 6vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.brandrow { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.brandrow img { width: 50px; height: 50px; border-radius: 12px; box-shadow: var(--shadow); flex: none; }
.lt-right { display: flex; align-items: center; gap: 10px; }
.chip-status {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: var(--card); padding: 7px 12px; border-radius: 999px; box-shadow: var(--shadow);
}
.chip-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--win); }
.chip-status .upd { display: inline-flex; align-items: center; gap: 7px; }
.chip-status .phase { color: var(--ink); font-weight: 600; }
.chip-status .phase::before { content: "·"; margin-right: 7px; color: var(--ink-3); font-weight: 400; }
.chip-status .season { display: none; }
.lt-theme { display: none; }
@media (max-width: 700px) {
  .lt.home { display: block; }
  .lt.home .brandrow { gap: 12px; }
  .lt.home h1 { font-size: clamp(26px, 8.4vw, 44px); white-space: nowrap; }
  .lt.home .lt-theme { display: block; flex: none; margin-left: auto; }
  .lt.home .lt-right .theme { display: none; }
  .lt.home .lt-right { margin-top: 14px; }
  .lt.home .chip-status { display: grid; grid-template-columns: 1fr auto; row-gap: 9px; width: 100%;
                          border-radius: 14px; padding: 11px 14px 12px; }
  .lt.home .chip-status .phase::before { content: none; }
  .lt.home .chip-status .season { display: block; grid-column: 1 / -1; height: 4px; border-radius: 4px;
                                  background: var(--fill-2); overflow: hidden; }
  .lt.home .chip-status .season b { display: block; height: 100%; border-radius: 4px; background: var(--tint); }
}
.theme { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
         background: var(--card); box-shadow: var(--shadow); color: var(--tint); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2;
             stroke-linecap: round; stroke-linejoin: round; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }

/* page title for inner tabs: same family, slightly smaller */
.pt { padding-top: 30px; }
.pt .date { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-2); }
.pt h1 { margin: 2px 0 0; font-size: clamp(30px, 5vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }

/* sub-navigation inside a tab (History: Champions / Records / ...) */
.subnav { display: flex; gap: 8px; overflow-x: auto; padding: 18px 2px 4px; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav button {
  flex: none; padding: 8px 15px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow);
}
.subnav button.on { background: var(--tint); color: #fff; }

/* -------------------------------------------------------- section headers */
.sec { margin: 34px 4px 12px; }
.sh { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px;
      flex-wrap: wrap; margin: 34px 4px 10px; }
.sec h2, .sh h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.sec p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); max-width: 70ch; }
.sh .sub { color: var(--ink-2); font-size: 13px; font-weight: 400; margin-left: 8px; letter-spacing: 0; }
.sh .link, .link { color: var(--tint); font-size: 15px; font-weight: 500; cursor: pointer; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }

/* ------------------------------------------------------------------- cards */
.card { display: flow-root; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); min-width: 0; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.cols.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) {
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols, .cols.even { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 620px) { .g2 { grid-template-columns: minmax(0, 1fr); } }

.stat { padding: 16px 18px; }
.stat .k { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.stat .v { font-family: var(--round); font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0;
           font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat .s { font-size: 12.5px; color: var(--ink-2); }

/* the big statement card used by inner pages (Trades, a season's champion) */
.hero {
  margin-top: 18px; border-radius: 26px; padding: 26px 28px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(110% 80% at 100% 0%, rgba(255, 255, 255, .12), transparent 55%),
              linear-gradient(160deg, var(--hero-a), var(--hero-b));
}
.hero .eyebrow { color: var(--gold); display: flex; align-items: center; gap: 8px; }
.hero .eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--red); }
.hero h1 { margin: 6px 0 8px; font-size: clamp(28px, 5vw, 44px); line-height: 1.05; letter-spacing: -.03em;
           font-weight: 800; text-wrap: balance; }
.hero .lede { margin: 0; color: rgba(255, 255, 255, .74); max-width: 62ch; }

/* ------------------------------------------------------- grouped list rows */
.list { padding: 4px 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; position: relative; min-width: 0; }
.row + .row::before { content: ""; position: absolute; top: 0; right: 0; left: 62px; height: .5px; background: var(--sep); }
.row .rk { width: 20px; text-align: right; font-weight: 600; color: var(--ink-2); flex: none; }
.row .who { flex: 1; min-width: 0; }
.row .who b { display: block; font-weight: 600; }
.row .who span { display: block; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.tap { cursor: pointer; }
.row.tap:hover { background: var(--fill); }
.me-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--tint);
          margin-left: 6px; vertical-align: 2px; }

.av {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font: 700 13px/1 var(--round); letter-spacing: 0; overflow: hidden;
}
.av.sm { width: 28px; height: 28px; font-size: 11px; }

.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 4px; flex-wrap: wrap; }
.card-h .hint { font-size: 12px; color: var(--ink-2); }
.cols-h { display: flex; gap: 12px; padding: 12px 16px 2px; font-size: 11px; font-weight: 600;
          color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.cols-h span:first-child { flex: 1; padding-left: 78px; }
.st-pf  { width: 64px; text-align: right; color: var(--ink-2); }
.st-rec { width: 56px; text-align: right; font-weight: 600; }
.st-strk { width: 34px; text-align: right; font-size: 13px; font-weight: 600; }
.cut { display: flex; align-items: center; gap: 10px; padding: 6px 16px; font-size: 11px; font-weight: 600;
       color: var(--tint); text-transform: uppercase; letter-spacing: .04em; }
.cut::before, .cut::after { content: ""; height: 1px; flex: 1; background: var(--tint); opacity: .35; }
.cut + .row::before { display: none; }
@media (max-width: 700px) {
  .st-pf { display: none; }
  .cols-h span:first-child { padding-left: 74px; }
}

/* segmented control */
.seg { display: inline-grid; grid-auto-flow: column; background: var(--fill-2); border-radius: 9px; padding: 2px; max-width: 100%; overflow-x: auto; }
.seg button { padding: 5px 14px; border-radius: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.seg button.on { background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
.picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
select {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); background: var(--card);
  border: 0; border-radius: 12px; padding: 9px 34px 9px 14px; box-shadow: var(--shadow); max-width: 100%;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}

/* --------------------------------------------------------------- matchups */
.scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min(300px, calc(100% - 44px)), 1fr); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 12px; scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .scroller { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }
.mu { scroll-snap-align: start; padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.mu.featured { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--gold); }
.mu .top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.mu .gow { flex: none; white-space: nowrap; background: var(--gold); color: #3a2a00; padding: 1px 8px; border-radius: 999px; margin: -1px 0; }
.mu .side { display: flex; align-items: center; gap: 10px; }
.mu .side .who { flex: 1; min-width: 0; }
.mu .side .who b { display: block; font-size: 16px; font-weight: 600; }
.mu .side .who span { display: block; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu .side .who .sub { display: flex; min-width: 0; }
.mu .side .who .sub span { display: inline; min-width: 0; }
.mu .side .who .tm { overflow: hidden; text-overflow: ellipsis; }
.mu .side .who .rec { flex: none; white-space: pre; }
.mu .side .proj { flex: none; font-family: var(--round); font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mu .side.fav .proj { color: var(--ink); }
.mu .top span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mu .top { gap: 8px; }
.mu .side .proj { font-size: 26px; min-width: 1.4em; text-align: right; }
.mu .mu-hist { display: flex; align-items: center; gap: 10px; padding-top: 2px; }
.mu .mu-hist .lbl { flex: none; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.mu .mtgs { display: flex; gap: 6px; min-width: 0; }
.mtg { display: grid; justify-items: center; gap: 2px; }
.mtg i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff;
         font: 700 10px var(--round); font-style: normal; letter-spacing: -.01em; }
.mtg.po i { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--gold); }
.mtg em { font-style: normal; font-size: 10px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mu .mu-note { margin: 0; font-size: 13px; line-height: 1.35; color: var(--ink); }
.wp { height: 4px; border-radius: 4px; background: var(--fill-2); overflow: hidden; display: flex; }
.wp i { background: var(--tint); }
.mu .foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-2); }
.mu .foot span { white-space: nowrap; }
.mu .foot span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------- power ranking */
.pr .mv { width: 34px; flex: none; font-size: 12px; font-weight: 700; text-align: center; }
.pr .mv.flat { color: var(--ink-3); }
button.row { width: 100%; text-align: left; font: inherit; }
.pr .score { flex: none; text-align: right; font: 700 17px var(--round); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr .score small { font-size: 11px; font-weight: 600; color: var(--ink-3); margin-left: 1px; }
.card-foot .link { font-size: 12px; font-weight: 600; }
.pr-item + .pr-item { border-top: .5px solid var(--sep); }
.pr .rkcol { display: grid; justify-items: center; width: 30px; flex: none; line-height: 1.1; }
.pr .rkcol .rk { width: auto; text-align: center; font-size: 16px; color: var(--ink); }
.pr .rkcol .mv { width: auto; font-size: 11px; }
.pr .chev { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 2.4;
            stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; margin-left: -4px; }
.pr-row[aria-expanded="true"] .chev { transform: rotate(180deg); }
.pr-row[aria-expanded="true"] { background: var(--fill); }
.pr-more { padding: 4px 16px 16px 16px; background: var(--fill); display: grid; gap: 14px; }
.pr-more[hidden] { display: none; }
.pr-more .take { margin: 0; font-size: 14px; line-height: 1.4; }
.pr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pr-stats div { background: var(--card); border-radius: 12px; padding: 9px 10px; }
.pr-stats b { display: block; font: 700 17px var(--round); font-variant-numeric: tabular-nums; }
.pr-stats span { display: block; font-size: 11px; line-height: 1.3; color: var(--ink-2); margin-top: 2px; }
.pr-sec { display: grid; gap: 6px; }
.pr-sec .lbl { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.pr-pos, .pr-next { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-pos span, .pr-next span { font-size: 12.5px; padding: 4px 9px; border-radius: 999px; background: var(--card); color: var(--ink-2); }
.pr-pos b, .pr-next b { color: var(--ink); font-weight: 600; }
.pr-pos .good { background: color-mix(in srgb, var(--win) 14%, var(--card)); }
.pr-pos .good b { color: var(--win); }
.pr-pos .bad { background: color-mix(in srgb, var(--loss) 12%, var(--card)); }
.pr-pos .bad b { color: var(--loss); }
.pr-next em, .pr-top em { font-style: normal; color: var(--ink-3); font-size: 11.5px; }
.pr-top { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 12px; }
.pr-top li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; font-size: 14px; }
.pr-top li + li { border-top: .5px solid var(--sep); }
.pr-top b { font-variant-numeric: tabular-nums; }
.pr-full { justify-self: start; font-size: 13px; font-weight: 600; }
.card-foot { padding: 10px 16px 14px; font-size: 12px; color: var(--ink-2); border-top: .5px solid var(--sep); margin-top: 4px; }

/* ------------------------------------------------------------ transactions */
.tx-day { padding: 12px 16px 2px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tx .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.tx .ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tx .ic.add   { background: color-mix(in srgb, var(--win) 15%, transparent);  color: var(--win); }
.tx .ic.drop  { background: color-mix(in srgb, var(--loss) 13%, transparent); color: var(--loss); }
.tx .ic.trade { background: color-mix(in srgb, var(--tint) 15%, transparent); color: var(--tint); }
.tx .who b { font-weight: 500; white-space: normal; }
.tx .who b strong { font-weight: 700; }
.tx .who b .pos { display: inline; font-size: 11px; font-weight: 600; color: var(--ink-3); margin-left: 4px; }
.tx .who > span { white-space: normal; }
.bid { flex: none; font: 700 15px var(--round); font-variant-numeric: tabular-nums; }
.bid.zero { color: var(--ink-3); font-weight: 600; }

/* ------------------------------------------------------------------- FAAB */
.faab { padding: 6px 16px 14px; display: grid; gap: 11px; }
.fb { display: grid; grid-template-columns: 54px minmax(0, 1fr) 48px; align-items: center; gap: 10px; }
.fb .n { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb .bar { height: 10px; border-radius: 6px; background: var(--fill-2); overflow: hidden; }
.fb .bar i { display: block; height: 100%; border-radius: 6px; background: var(--tint); }
.fb.low .bar i { background: var(--red); }
.fb .amt { text-align: right; font: 700 14px var(--round); font-variant-numeric: tabular-nums; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 16px 16px 4px;
        background: var(--sep); border-radius: 12px; overflow: hidden; }
.kpis div { background: var(--card-2); padding: 10px 12px; min-width: 0; }
.kpis b { display: block; font: 700 20px var(--round); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpis span { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.3; color: var(--ink-2); }

/* ---------------------------------------------------- the history card */
.hist {
  margin-top: 36px; border-radius: 28px; color: #fff; overflow: hidden;
  background: radial-gradient(110% 80% at 100% 0%, rgba(255, 255, 255, .12), transparent 55%),
              linear-gradient(160deg, var(--hero-a), var(--hero-b));
  padding: 28px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px;
}
@media (max-width: 800px) { .hist { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; } }
.hist .eyebrow { color: var(--gold); display: flex; align-items: center; gap: 8px; }
.hist .eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--red); }
.hist h3 { margin: 6px 0 8px; font-size: clamp(26px, 4.5vw, 38px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
.hist p { margin: 0 0 18px; color: rgba(255, 255, 255, .74); max-width: 46ch; }
.hist .reign { display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .08); border-radius: 18px;
               padding: 14px 16px; margin-bottom: 18px; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14); }
.trophy { width: 44px; height: 44px; border-radius: 12px; background: var(--gold); color: #2a1f00;
          display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 2px var(--red); }
.trophy svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hist .reign b { display: block; font-size: 17px; }
.hist .reign span { font-size: 13px; color: rgba(255, 255, 255, .7); }
.cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
       background: #fff; color: #134287; font-weight: 600; font-size: 15px; }
.cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.hgrid > div { background: rgba(255, 255, 255, .07); border-radius: 16px; padding: 14px; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .1); min-width: 0; }
.hgrid b { display: block; font: 700 26px var(--round); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hgrid b small { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .6); }
.hgrid span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .7); margin-top: 2px; }
.hgrid .wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.titles { display: flex; gap: 4px; flex-wrap: wrap; }
.titles i { width: 10px; height: 18px; border-radius: 3px; background: var(--gold); }

/* ------------------------------------------------------- draft notes (2026) */
.notes-lede { margin: 0 4px 12px; color: var(--ink-2); max-width: 75ch; }
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.note { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px 18px; }
.note .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
             padding: 2px 8px; border-radius: 999px; background: var(--fill-2); color: var(--tint); }
.note.good .tag { background: color-mix(in srgb, var(--win) 14%, transparent); color: var(--win); }
.note.bad .tag  { background: color-mix(in srgb, var(--loss) 12%, transparent); color: var(--loss); }
.note .hd { font-weight: 700; font-size: 16px; margin: 8px 0 4px; letter-spacing: -.01em; }
.note .bd { font-size: 14px; color: var(--ink-2); }

/* post-draft power list */
.pw { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 4px 0; }
.pw-row { display: grid; grid-template-columns: 34px minmax(0, 1.2fr) minmax(0, 1.4fr) 84px; gap: 14px;
          align-items: center; padding: 12px 16px; cursor: pointer; position: relative; }
.pw-row + .pw-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--sep); }
.pw-row:hover { background: var(--fill); }
.pw-rank { font: 700 20px var(--round); color: var(--ink-2); text-align: center; }
.pw-row:nth-child(1) .pw-rank { color: var(--gold-ink); }
.pw-who b { display: block; }
.pw-who span { font-size: 12.5px; color: var(--ink-2); }
.pw-bar { height: 8px; background: var(--fill-2); border-radius: 5px; overflow: hidden; }
.pw-bar i { display: block; height: 100%; background: var(--tint); border-radius: 5px; }
.pw-bar-l { font-size: 12px; color: var(--ink-2); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-proj { text-align: right; }
.pw-proj b { display: block; font: 700 18px var(--round); font-variant-numeric: tabular-nums; }
.pw-proj span { font-size: 11px; color: var(--ink-2); }
.roster-open { grid-column: 1 / -1; padding-top: 6px; cursor: default; }
@media (max-width: 700px) {
  .pw-row { grid-template-columns: 28px minmax(0, 1fr) 70px; }
  .pw-bar-wrap { display: none; }
}
.lineup { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 18px; }
.lu { display: grid; grid-template-columns: 48px minmax(0, 1fr) 34px 48px; gap: 8px; align-items: center; padding: 5px 0; font-size: 13.5px; }
.lu .slot { font-size: 11px; font-weight: 700; color: var(--tint); }
.lu .pos { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.lu .pts { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.lu.bench { color: var(--ink-2); }
.lu.bench .slot { color: var(--ink-3); }

/* ----------------------------------------------------------------- tables */
.tbl-wrap { border-radius: var(--r-lg); box-shadow: var(--shadow); overflow-x: auto;
  /* "more this way" fade on the right edge. The first layer scrolls with the
     content and covers the fade once the end is reached. */
  background:
    linear-gradient(to left, var(--card) 60%, transparent) right / 44px 100% no-repeat local,
    linear-gradient(to left, var(--scroll-shade), transparent) right / 22px 100% no-repeat scroll,
    var(--card); }
td.stack b { display: block; font-weight: 600; }
td.stack span { display: block; font-size: 12px; font-weight: 400; color: var(--ink-2); margin-top: 1px;
                max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.tbl-wrap.pin th:nth-child(1), .tbl-wrap.pin td:nth-child(1) { width: 44px; min-width: 44px; max-width: 44px; padding-left: 10px; padding-right: 12px; box-sizing: border-box; }
.pin-2 th:nth-child(-n+2), .pin-2 td:nth-child(-n+2),
.pin-1 th:nth-child(1), .pin-1 td:nth-child(1) { position: sticky; left: 0; z-index: 1; background: var(--card); }
.pin-2 th:nth-child(2), .pin-2 td:nth-child(2) { left: 44px; }
.pin-2 tbody tr:hover td:nth-child(-n+2), .pin-1 tbody tr:hover td:nth-child(1) {
  background: linear-gradient(var(--fill), var(--fill)), var(--card); }
.pin-2.scrolled th:nth-child(2), .pin-2.scrolled td:nth-child(2),
.pin-1.scrolled th:nth-child(1), .pin-1.scrolled td:nth-child(1) { box-shadow: 6px 0 8px -6px var(--scroll-shade); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
     color: var(--ink-3); padding: 12px 12px 8px; white-space: nowrap; }
td { padding: 9px 12px; border-top: .5px solid var(--sep); white-space: nowrap; }
tbody tr:first-child td { border-top: 0; }
tbody tr:hover td { background: var(--fill); }
th:first-child, td:first-child { padding-left: 16px; }
th:last-child, td:last-child { padding-right: 16px; }
td.n, th.n { text-align: right; }
th.srt { cursor: pointer; user-select: none; }
th.srt:hover { color: var(--ink-2); }
th.srt .arw { display: inline-block; width: 0; height: 0; margin-left: 5px; vertical-align: 2px; opacity: 0;
              border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 5px solid currentColor; }
th.srt:hover .arw { opacity: .4; }
th.srt.on { color: var(--tint); }
th.srt.on .arw { opacity: 1; }
th.srt.on.desc .arw { transform: rotate(180deg); }
td.name { font-weight: 600; }
.pos-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px;
           background: var(--fill-2); color: var(--tint); }

/* --------------------------------------------------------------- champions */
.champ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; align-items: start; }
.champ { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.champ-hd { display: flex; align-items: center; gap: 14px; padding: 18px 18px 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 26%, var(--card)), color-mix(in srgb, var(--gold) 8%, var(--card)) 70%);
  border-bottom: .5px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.cup { width: 54px; height: 54px; flex: none; }
.cup-lt { fill: var(--gold); }
.cup-dk { fill: #d9a300; }
.cup-sh { fill: rgba(255, 255, 255, .45); }
.champ-id { min-width: 0; }
.champ .yr { font: 700 12px var(--round); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }
.champ .who { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; line-height: 1.15; }
.champ .tm { font-size: 13.5px; color: var(--ink-2); margin-top: 1px; }
.champ-body { padding: 14px 18px 18px; display: grid; gap: 14px; }
.champ-story { margin: 0; font-size: 14.5px; line-height: 1.4; }
.champ-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.champ-stats div { background: var(--card-2); border-radius: 12px; padding: 9px 11px; }
.champ-stats b { display: block; font: 700 18px var(--round); font-variant-numeric: tabular-nums; }
.champ-stats span { display: block; font-size: 11px; color: var(--ink-2); margin-top: 1px; }
.champ-sec { display: grid; gap: 6px; }
.champ-sec .lbl { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.champ-run, .champ-top { list-style: none; margin: 0; padding: 0; background: var(--card-2); border-radius: 12px; }
.champ-run li, .champ-top li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 14px; }
.champ-run li + li, .champ-top li + li { border-top: .5px solid var(--sep); }
.champ-run .rd { width: 42px; flex: none; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.champ-run .op { flex: 1; min-width: 0; color: var(--ink-2); }
.champ-run b, .champ-top b { font-variant-numeric: tabular-nums; font-weight: 700; }
.champ-run li.fin { background: color-mix(in srgb, var(--gold) 16%, var(--card-2)); }
.champ-run li.fin:last-child { border-radius: 0 0 12px 12px; }
.champ-run li.fin .rd { color: var(--gold-ink); }
.champ-top li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.champ-top em, .champ-mvp em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.champ-mvp { font-size: 13px; color: var(--ink-2); }
.champ-mvp b { color: var(--ink); }

.case { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 4px 0; }
.case-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; position: relative; }
.case-row + .case-row::before { content: ""; position: absolute; top: 0; left: 18px; right: 0; height: .5px; background: var(--sep); }
.case-pos { font: 700 17px var(--round); color: var(--ink-3); text-align: center; }
.case-row.king .case-pos { color: var(--gold-ink); }
.case-titles { font: 700 30px/1 var(--round); text-align: right; }
.case-titles.has { color: var(--gold-ink); }
.case-titles small { display: block; font: 600 10.5px var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.rings { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.ring { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
        background: color-mix(in srgb, var(--gold) 26%, transparent); color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.ring.f { background: var(--fill-2); color: var(--ink-2); }

/* ------------------------------------------------------------ head to head */
.h2h-wrap { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: auto; max-height: 75vh; }
table.h2h { font-size: 12.5px; }
table.h2h th, table.h2h td { padding: 7px 8px; text-align: center; border-top: .5px solid var(--sep); }
table.h2h thead th { position: sticky; top: 0; background: var(--card); z-index: 2; border-top: 0; text-transform: none; letter-spacing: 0; font-size: 12px; }
table.h2h tbody th { position: sticky; left: 0; background: var(--card); z-index: 1; text-align: left; color: var(--ink);
                     text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; padding-left: 16px; }
table.h2h thead th:first-child { left: 0; z-index: 3; }
table.h2h tbody tr:hover td, table.h2h tbody tr:hover th { background: var(--card-2); }
.cell { font-variant-numeric: tabular-nums; font-weight: 600; }
.cell.self { background: var(--fill) !important; }
.cell.up { color: var(--win); }
.cell.dn { color: var(--loss); }
.cell.ev { color: var(--ink-2); }

/* ---------------------------------------------------------------- records */
.rec-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 4px 0 8px; min-width: 0; }
.rec-head { padding: 14px 18px 8px; }
.rec-head b { display: block; font-size: 17px; letter-spacing: -.01em; }
.rec-head span { font-size: 12.5px; color: var(--ink-2); }
.rec-list { display: grid; }
.rec-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: baseline;
            padding: 7px 18px; font-size: 13.5px; position: relative; }
.rec-item + .rec-item::before { content: ""; position: absolute; top: 0; left: 50px; right: 0; height: .5px; background: var(--sep); }
.rec-item .i { color: var(--ink-3); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.rec-item .d { color: var(--ink-2); }
.rec-item .v { font: 700 14px var(--round); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rec-item:first-child .v { color: var(--gold-ink); font-size: 16px; }
.rec-card.cold .rec-item:first-child .v { color: var(--loss); }

.fun { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 20px; }
.fun .t { font-weight: 700; font-size: 16px; letter-spacing: -.01em; margin-bottom: 6px; }
.fun .b { color: var(--ink-2); font-size: 14.5px; }
.fun .hl { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ trades */
.tchart { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding: 20px 18px 14px;
          background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow-x: auto; }
.tbar { flex: 1 0 22px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.tbar i { width: 100%; max-width: 34px; background: var(--tint); border-radius: 6px 6px 3px 3px; opacity: .85; }
.tbar:hover i { opacity: 1; }
.tbar .tv { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tbar .ty { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.minibar { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.minibar i { display: block; height: 7px; border-radius: 4px; background: var(--tint); }
.minibar span { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ owners */
.profile-hd { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px 24px;
              display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.profile-hd h2 { margin: 2px 0; font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.profile-hd .meta { font-size: 13.5px; color: var(--ink-2); }
.pstats { display: flex; gap: 26px; flex-wrap: wrap; }
.pstats b { display: block; font: 700 28px/1 var(--round); font-variant-numeric: tabular-nums; }
.pstats b.gold { color: var(--gold-ink); }
.pstats span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

/* ------------------------------------------------------------------ sheets */
dialog.sheet {
  border: 0; padding: 0; color: var(--ink); background: var(--card);
  width: min(620px, calc(100% - 32px)); max-width: none; max-height: min(86vh, 920px);
  max-height: min(86dvh, 920px);   /* dvh tracks the visible height as Safari shows and hides its toolbars */
  border-radius: 24px; box-shadow: 0 30px 80px rgba(5, 15, 40, .35); overflow: hidden;
}
dialog.sheet::backdrop { background: rgba(5, 12, 30, .38); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
body:has(dialog.sheet[open]) { overflow: hidden; }
.sheet-in { max-height: inherit; overflow-y: auto; padding: 0 22px 24px; overscroll-behavior: contain; }
.sheet-in:focus { outline: none; }
.sheet-hd { position: sticky; top: 0; z-index: 2; background: var(--card); display: flex; align-items: center;
            justify-content: space-between; gap: 12px; padding: 18px 0 10px; }
.sheet-hd h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.sheet .x { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--fill-2); color: var(--ink-2);
            display: grid; place-items: center; }
.sheet .x svg { width: 14px; height: 14px; stroke-width: 2.6; }
.sheet h4 { margin: 22px 0 8px; font-size: 15px; font-weight: 700; }
.sheet .kpis { margin: 4px 0 0; }
.sheet .tbl-wrap.flat { box-shadow: none; background: var(--card-2); border-radius: 14px; }
.sheet .tbl-wrap.flat tbody tr:hover td { background: transparent; }
.lede-s { margin: 0 0 6px; font-size: 15.5px; }
.small { font-size: 12.5px; }
.steps { margin: 12px 0 14px; padding-left: 20px; display: grid; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.steps b { color: var(--ink); font-weight: 600; }
.ts-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ts-hd b { display: block; font-size: 17px; }
.ts-hd span { font-size: 13px; color: var(--ink-2); }
.take { margin: 14px 0 0; font-size: 15px; }
.wkchart { display: flex; align-items: flex-end; gap: 5px; height: 130px; padding: 12px 12px 8px; background: var(--card-2); border-radius: 14px; }
.wkb { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.wkb i { width: 100%; max-width: 30px; background: var(--tint); border-radius: 5px 5px 2px 2px; }
.wkb.low i { background: var(--red); }
.wkb .v { font-size: 10px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wkb .w { font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lu-t td { padding-top: 7px; padding-bottom: 7px; }
.lu-t .slot { width: 1%; font-size: 11px; font-weight: 700; color: var(--tint); }
.lu-t .pos { font-size: 11px; font-weight: 600; color: var(--ink-3); margin-left: 4px; }
.lu-t .inj { font-size: 10.5px; font-weight: 700; color: var(--red); text-transform: capitalize; margin-left: 4px; }
.lu-t td.name { white-space: normal; }
.lu-t tbody.bn td { color: var(--ink-2); }
.lu-t tbody.bn tr:first-child td { border-top: 1px solid var(--sep); }
.lu-t tbody.bn .slot { color: var(--ink-3); }
@media (max-width: 700px) {
  dialog.sheet { width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 90vh; max-height: 88dvh; }
  .sheet-in { padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .sheet-hd { padding-top: 22px; }
  .lu-t { font-size: 13px; }
  .lu-t th, .lu-t td { padding-left: 6px; padding-right: 6px; }
  .lu-t th:first-child, .lu-t td:first-child { padding-left: 10px; }
  .lu-t th:last-child, .lu-t td:last-child { padding-right: 10px; }
  .lu-t .pos { display: none; }
  .sheet-hd::before { content: ""; position: absolute; top: 7px; left: 50%; width: 36px; height: 5px; margin-left: -18px;
                      border-radius: 3px; background: var(--fill-2); }
}
@media (prefers-reduced-motion: no-preference) {
  dialog.sheet[open] { animation: sheet-in .32s cubic-bezier(.2, .9, .25, 1); }
  dialog.sheet[open]::backdrop { animation: fade-in .25s ease-out; }
  @media (max-width: 700px) { dialog.sheet[open] { animation-name: sheet-up; } }
}
@keyframes sheet-in { from { opacity: 0; transform: scale(.96) translateY(8px); } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }

.loading { padding: 80px 20px; text-align: center; color: var(--ink-2); }
.loading code { font-family: var(--mono); font-size: 13px; }

@media (max-width: 700px) {
  :root { --pad: 16px; }
  .lt, .pt { padding-top: 18px; }
  .hero { padding: 22px 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .wp i, .fb .bar i, .pw-bar i { transition: width .6s cubic-bezier(.2, .8, .2, 1); }
}

/* ----------------------------------------------------- head-to-head sheet */
.mu.tap { cursor: pointer; }
.mu.tap:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; }
.h2h-hd { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 4px 0 16px; }
.h2h-side { display: grid; justify-items: center; gap: 4px; color: var(--ink-2); }
.h2h-side b { font-size: 15px; color: var(--ink); }
.h2h-side .num { font: 700 34px var(--round); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.h2h-side.lead .num { color: var(--ink); }
.h2h-mid { font-size: 12px; font-weight: 600; color: var(--ink-3); text-align: center; white-space: nowrap; }
.h2h-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.h2h-facts div { background: var(--card-2); border-radius: 12px; padding: 9px 12px; min-width: 0; }
.h2h-facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.h2h-facts dt { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); }
.h2h-facts dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.h2h-cols, .h2h-g { display: grid; grid-template-columns: 28px 1fr 148px; align-items: center; gap: 10px; }
.h2h-cols { margin: 20px 0 -6px; padding: 0 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.h2h-cols > span:last-child, .h2h-sc { display: grid; grid-template-columns: 1fr 14px 1fr; text-align: center; }
.h2h-cols > span:last-child b { font-weight: 600; }
.h2h-cols > span:last-child b:last-child { grid-column: 3; }
.h2h-yr { margin: 16px 0 6px !important; font-size: 13px !important; color: var(--ink-2); }
.h2h-list { list-style: none; margin: 0; padding: 0; background: var(--card-2); border-radius: 14px; }
.h2h-g { padding: 8px 12px; }
.h2h-g + .h2h-g { border-top: .5px solid var(--sep); }
.h2h-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff;
           font: 700 10px var(--round); }
.h2h-g.k-p .h2h-dot { box-shadow: 0 0 0 2px var(--card-2), 0 0 0 3.5px var(--gold); }
.h2h-wk { font-size: 13.5px; color: var(--ink-2); min-width: 0; }
.h2h-wk em { font-style: normal; display: block; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.h2h-g.k-p .h2h-wk em { color: var(--gold-ink, var(--ink-2)); }
.h2h-sc { font: 500 15px var(--round); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.h2h-sc i { font-style: normal; }
.h2h-sc .w { color: var(--ink); font-weight: 700; }

/* ------------------------------------------------------------- beer mile */
.bm-hook { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 14px; }
.bm-hook .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
                padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--loss) 12%, transparent); color: var(--loss); }
.bm-hook b { display: block; font-size: 16px; margin: 6px 0 2px; letter-spacing: -.01em; }
.bm-hook span { font-size: 14px; color: var(--ink-2); }
.bm-row { cursor: default; }
.bm-row:hover { background: none; }
.bm-row .pw-bar i { background: var(--gold); }
.bm-who { display: flex; align-items: center; gap: 10px; }
.bm-foot { margin-top: 12px; }
.bm-other { margin-top: 4px; }
