
:root {
  --primary-deep: color-mix(in srgb, var(--primary) 76%, #000);
  --accent-deep: color-mix(in srgb, var(--accent) 85%, #000);
  --draw: var(--accent);
  --track: rgba(255, 255, 255, .09);

  --nav-h: 124px;

  --on-primary: var(--onbrand);
  --on-accent: #241a05;
  --on-win: #04240f;

  --cta: var(--primary);
  --on-cta: var(--on-primary);
}
@supports (color: contrast-color(red)) {
  :root {
    --on-primary: contrast-color(var(--primary));
    --on-accent: contrast-color(var(--accent));
    --on-cta: contrast-color(var(--cta));
  }
}

html { scroll-behavior: smooth; }

body.league {
  background: var(--page);
  color: #fff;
  line-height: 1.55;
  overflow-x: hidden;
}

.league .wrap { max-width: 1000px; margin: 0 auto; padding: 0 22px; }
.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: .98;
}
.tnum { font-variant-numeric: tabular-nums; }

.league header {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.league nav {
  max-width: 1200px; margin: 0 auto; padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}

.demo-flag {
  background: rgba(240, 180, 41, .10);
  border-bottom: 1px solid rgba(240, 180, 41, .22);
  color: #f0b429;
  font-family: var(--body); font-size: .72rem; font-weight: 500;
  letter-spacing: .02em; text-align: center;
  padding: .38rem 1rem; line-height: 1.35;
}
.demo-flag[hidden] { display: none; }
.demo-flag strong {
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.demo-flag .sep { opacity: .5; margin: 0 .15rem; }
@media (max-width: 480px) {
  .demo-flag { font-size: .62rem; padding: .3rem .5rem; letter-spacing: 0; }
}

.pod-nav {
  background: var(--primary);
  border-bottom: 1px solid rgba(0, 0, 0, .25);
}
.pod-nav[hidden] { display: none; }
.pod-nav-in {
  max-width: 1200px; margin: 0 auto; padding: .5rem 2rem;
  display: flex; gap: 1.6rem; list-style: none;
  overflow-x: auto; scrollbar-width: none;
}
.pod-nav-in::-webkit-scrollbar { display: none; }
.pod-nav-i {
  flex-shrink: 0; cursor: default;
  font-family: var(--body); font-size: .74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em; line-height: 1.2;
  color: color-mix(in srgb, var(--on-primary) 82%, transparent);
}
@media (max-width: 900px) {
  .pod-nav-in { padding: .45rem 1rem; gap: 1.15rem; }
  .pod-nav-i { font-size: .66rem; letter-spacing: .06em; }
}

.pod-menu[hidden] { display: none; }

.pod-menu-s {
  appearance: none; background: none; border: 0; padding: 0;
  cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: .38rem;
  font-family: inherit; color: var(--muted); font-size: .9rem; font-weight: 500;
  transition: color .2s;
}
.pod-menu-s:hover { color: #fff; }
.pod-menu-s:focus-visible { outline: 2px solid var(--on-primary); outline-offset: 3px; border-radius: 2px; }
.pm-caret {
  width: 0; height: 0;
  border-left: .28rem solid transparent; border-right: .28rem solid transparent;
  border-top: .3rem solid currentColor;
  opacity: .75; transition: transform .15s ease;
}
.pod-menu:has(.pod-menu-p:popover-open) .pm-caret { transform: rotate(180deg); }

.pod-menu-p { margin: 0; padding: 0; border: 0; background: none; color: inherit; }
.pod-menu-l {
  margin: 0; padding: .4rem; list-style: none;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: .5rem;
}
.pod-menu-l a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem .6rem; border: 0; border-radius: .35rem;
  text-decoration: none; color: #fff; background: none;
  font-size: .82rem; letter-spacing: .02em; text-transform: none; white-space: normal;
}
.pod-menu-l a:hover,
.pod-menu-l a:focus-visible { background: rgba(255, 255, 255, .1); }
.pm-ext { opacity: .5; font-size: .78em; }

@supports selector(:popover-open) {
  .pod-menu-p {
    position: fixed;
    inset: auto 1rem auto auto;
    top: calc(var(--nav-h) + .4rem);
    width: min(15rem, calc(100vw - 2rem));
    box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
    overflow: visible;
  }
  @media (min-width: 1264px) {
    .pod-menu-p { right: calc(50vw - 600px + 2rem); }
  }
  .pod-menu-p::backdrop { background: transparent; }
}

.league .logo {
  font-family: var(--display); font-size: 1.25rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; gap: .7rem; min-width: 0;
}
.league .logo img {
  display: block; height: 52px; width: 52px;
  border-radius: 50%; object-fit: cover; flex: none;
}
.league .logo .lg-mark {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: var(--primary); color: var(--on-primary);
  font-size: 1.15rem; letter-spacing: 0;
}
.league .logo .lg-mark--img { background: none; }
.league .logo .lg-mark--img img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.league .logo .lg-mark--ph {
  width: 76px; height: 44px; border-radius: 8px;
  background: none; border: 1px dashed var(--line-strong);
  color: var(--muted); overflow: hidden;
}
.lg-ph-t {
  font-family: var(--body); font-size: .48rem; font-weight: 700;
  line-height: 1.25; letter-spacing: .08em; text-transform: uppercase;
  text-align: center;
}
.league .logo .lg-mark--wide {
  --lg-h: 46px;
  display: flex; align-items: center;
  width: auto; height: var(--lg-h); max-width: 220px;
  border-radius: 0; overflow: visible;
}
.league .logo .lg-mark--wide img {
  height: var(--lg-h); width: auto; max-width: 220px; object-fit: contain;
}
.league .logo .lg-mark--round { border-radius: 50%; }
.league .logo .lg-mark--round img { object-fit: cover; }
@media (max-width: 900px) {
  .league .logo .lg-mark--wide { --lg-h: 38px; max-width: 170px; }
  .league .logo .lg-mark--wide img { max-width: 170px; }
}
.league .logo .lg-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.league .logo .lg-txt {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: .9rem;
  font-weight: 500; transition: color .2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px;
  height: 2px; background: var(--primary); border-radius: 2px;
}

.league section.hero {
  position: relative;
  padding: calc(var(--nav-h) + 42px) 0 24px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(80% 120% at 82% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    radial-gradient(90% 120% at 8% 0%, color-mix(in srgb, var(--primary) 26%, transparent), transparent 55%);
}
.hero .inner { position: relative; }
.kick {
  font-family: var(--body); font-weight: 700; text-transform: uppercase;
  letter-spacing: .18em; font-size: .72rem; color: var(--accent);
  display: flex; align-items: center; gap: .6rem;
}
.kick .d { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin: .7rem 0 0; font-size: clamp(36px, 7vw, 68px); }
.hero h1 .o { color: var(--brand-ink); }
.hero h1 .o-line { display: block; line-height: 1.02; }
.hero .sub {
  margin: 1rem 0 0; color: var(--ink); opacity: .82;
  max-width: 50ch; font-size: 1.02rem;
}
.fl-welcome {
  margin: .9rem 0 0; font-size: .92rem; color: var(--muted);
  display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
}
.fl-welcome[hidden] { display: none; }
.fl-welcome b { color: var(--ink); font-weight: 700; }
.fl-welcome a, .fl-welcome button {
  font: inherit; color: var(--muted); background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.fl-welcome a:hover, .fl-welcome button:hover { color: #fff; }
.fl-welcome .sep { opacity: .45; }

.share-row {
  margin: 1.25rem 0 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
}

.league section { padding: 44px 0 4px; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.sec-head h2 { margin: 0; font-size: clamp(22px, 3.6vw, 32px); }
.sec-head .rule { flex: 1; height: 1px; background: var(--line-strong); align-self: center; }
.sec-head .note {
  color: var(--muted); font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
}

.fb-ask { margin: 14px 2px 0; font-size: .88rem; color: var(--muted); }
.fb-ask a { color: var(--brand-ink, var(--primary)); font-weight: 600; }

.board {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
}
.board-empty { padding: 18px 20px; color: var(--muted); font-size: .9rem; }
.be-panel { padding: 26px 22px; text-align: center; }
.be-lead {
  margin: 0 0 6px; color: var(--ink); font-size: 1.05rem; font-weight: 600;
  font-family: var(--display); letter-spacing: .01em;
}
.be-next { margin: 0 0 4px; color: var(--muted); font-size: .92rem; }
.be-next b { color: var(--ink); font-weight: 700; }
.be-crowd { margin: 0; color: var(--brand-ink); font-size: .88rem; font-weight: 600; }
.be-cta { margin: 16px 0 0; }
.board-shell { position: relative; }
.board-shell::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 34px;
  pointer-events: none; opacity: 0; transition: opacity .2s; border-radius: 0 16px 16px 0;
  background: linear-gradient(90deg, transparent, var(--surface));
}
.board-shell.can-scroll::after { opacity: 1; }
.board-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.board-tbl {
  width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums;
}
.board-scroll .board-tbl { min-width: 620px; }
.board-tbl th, .board-tbl td {
  padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: right;
}
.board-tbl tr:last-child td { border-bottom: none; }
.board-tbl th:nth-child(2), .board-tbl td:nth-child(2) { text-align: left; }
.board-tbl th {
  color: var(--muted); font-weight: 700; font-size: .66rem;
  text-transform: uppercase; letter-spacing: .07em; white-space: nowrap;
  background: rgba(255, 255, 255, .03);
}

.board-scroll .board-tbl th:nth-child(1), .board-scroll .board-tbl td:nth-child(1) {
  position: sticky; left: 0; z-index: 2; background: var(--surface); width: 46px; min-width: 46px;
}
.board-scroll .board-tbl th:nth-child(2), .board-scroll .board-tbl td:nth-child(2) {
  position: sticky; left: 46px; z-index: 2; background: var(--surface);
}
.board-tbl th:nth-child(1), .board-tbl th:nth-child(2) { z-index: 3; }
.board-tbl tr.me td:nth-child(1), .board-tbl tr.me td:nth-child(2) {
  background: linear-gradient(color-mix(in srgb, var(--primary) 20%, transparent),
                              color-mix(in srgb, var(--primary) 20%, transparent)), var(--surface);
}
.board-tbl tr.me { background: color-mix(in srgb, var(--primary) 20%, transparent); }
.board-tbl tr.sep td {
  position: static; width: auto; min-width: 0; background: none;
  text-align: center; color: var(--muted); padding: 4px;
}

.board-tbl .rank { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--muted); }
.board-tbl tr.leader .rank { color: var(--accent); }
.board-tbl .pts { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.board-tbl .dim { color: var(--muted); }
.board-tbl .streak { font-weight: 800; }
.board-tbl .streak.cold { color: var(--muted); font-weight: 600; }

.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who .idn { display: flex; align-items: center; gap: .4rem; min-width: 0; line-height: 1.25; }
.who .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .rl {
  flex: none; font-size: .58rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  padding: .1rem .36rem; border-radius: 4px;
}
.who .rl.host { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.badge {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  color: var(--on-primary); font-weight: 700; font-family: var(--display);
  font-size: .85rem; background: var(--primary);
}
.badge.host { background: linear-gradient(140deg, var(--accent-deep), var(--accent)); color: var(--on-accent); }
.board-tbl tr.leader .badge { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 32%, transparent); }
.who .nm { font-weight: 700; font-size: .95rem; }
.who .you {
  flex: none; font-family: var(--body);
  font-size: .55rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--on-primary);
  background: var(--primary); padding: .1rem .34rem; border-radius: 4px;
  vertical-align: middle;
}

.board-tbl th[data-tip] {
  cursor: help; text-decoration: underline dotted var(--muted); text-underline-offset: 4px;
}
.board-tbl th[data-tip]:hover, .board-tbl th[data-tip]:focus-visible, .board-tbl th[data-tip].open {
  color: var(--ink); outline: none;
}
.chip-card[data-tip] { cursor: help; outline: none; }
.chip-card[data-tip] .k {
  text-decoration: underline dotted var(--muted); text-underline-offset: 3px;
}
.chip-card[data-tip]:hover, .chip-card[data-tip]:focus-visible, .chip-card[data-tip].open {
  border-color: var(--line-strong);
}
.chip-card[data-tip]:hover .k, .chip-card[data-tip]:focus-visible .k, .chip-card[data-tip].open .k {
  color: var(--ink);
}
#tipbox {
  position: fixed; z-index: 1200; width: max-content; max-width: min(260px, 84vw);
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 10px 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
  font-weight: 500; font-size: .75rem; line-height: 1.45; letter-spacing: 0;
  text-transform: none; color: var(--ink); text-align: left; white-space: normal;
  pointer-events: none;
}
#tipbox[hidden] { display: none; }

.rankbanner {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 12px 16px; margin: 12px 0 0; font-weight: 600; font-size: .9rem;
}
.rankbanner b { color: var(--brand-ink); }
.rankbanner .ahead { color: var(--win); }
.rankbanner .behind { color: var(--muted); }

.vsyou-line { margin-top: 10px; }
#rank-banner { margin: 0 0 12px; }

.myres-tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.myres-tbl th {
  text-align: left; padding: 8px 10px; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.myres-tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.myres-tbl tr:last-child td { border-bottom: 0; }
.myres-tbl .mr-fix { font-weight: 600; color: var(--ink); width: 100%; }
.myres-tbl .tnum, .myres-tbl .mr-pts { white-space: nowrap; }
.myres-tbl .mr-pts b { font-family: var(--display); font-size: 1.05rem; color: var(--ink); }
.myres-tbl .mr-act { text-align: right; white-space: nowrap; }
.myres-tbl tr.is-exact { background: color-mix(in srgb, var(--win) 8%, transparent); }

.myres-tag {
  display: inline-block; font-size: .66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; padding: .12rem .4rem; border-radius: 5px; vertical-align: 2px;
}
.myres-tag.exact { background: var(--win); color: var(--on-win); }
.myres-tag.miss { background: var(--track); color: var(--muted); }
.myres-tag.await { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); }
.myres-tbl tr.myres-peek > td { border-top: 0; padding: 0 10px 10px; text-align: left; }
.myres-tbl tr.myres-peek .pk-peek { margin-top: 0; }
.myres-tbl .mr-act .sharebtn + .sharebtn { margin-left: 4px; }
.myres-tbl .mr-act [data-peek][aria-expanded="true"] {
  border-color: var(--primary); color: var(--ink);
}
#vsyou .vsyou-cta td { opacity: .75; font-style: italic; }
#vsyou .vsyou-cta td:not(.rank) { text-align: left; }
#vsyou .vsyou-cta a {
  color: var(--brand-ink, var(--primary));
  font-style: normal; font-weight: 600; text-decoration: none;
}
#vsyou .vsyou-cta a:hover { text-decoration: underline; }
.board-scroll .board-tbl .vsyou-cta td[colspan] {
  position: static; width: auto; min-width: 0; background: none;
}
.cols-note { color: var(--muted); font-size: .8rem; margin: 14px 2px 0; }
.cols-note strong { color: var(--ink); }

.tblinfo { display: flex; flex-wrap: wrap; gap: .5rem; margin: 14px 2px 0; }
.tblinfo-b {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem; border-radius: 999px; cursor: pointer;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 42%, transparent);
  color: var(--ink); font: inherit; font-size: .8rem; font-weight: 600;
}
.tblinfo-b:hover { background: color-mix(in srgb, var(--primary) 22%, transparent); }
.tblinfo-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.infopop { margin: .75rem 0 0; padding: 0; border: 0; background: none; color: inherit; }
.infopop-c {
  background: var(--dark);
  border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 1rem 1.1rem 1.1rem;
}
.infopop-h { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.infopop-h h3 { margin: 0; font-size: 1.05rem; }
.infopop-x {
  flex: none; width: 1.9rem; height: 1.9rem; line-height: 1;
  border-radius: 999px; cursor: pointer; font-size: 1.2rem;
  background: none; border: 1px solid var(--line-strong); color: var(--muted);
}
.infopop-x:hover { color: var(--ink); border-color: var(--ink); }
.infopop-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.infopop-lede { margin: .5rem 0 .75rem; font-size: .86rem; color: var(--ink); }
.infopop-n { margin: .7rem 0 0; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.infopop-n b { color: var(--ink); }

.infotbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.infotbl th {
  text-align: left; padding: .35rem .5rem; font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
}
.infotbl th:last-child, .infotbl td:last-child { text-align: right; width: 4.5rem; }
.infotbl td { padding: .45rem .5rem; border-bottom: 1px solid var(--line); }
.infotbl tbody tr:last-child td { border-bottom: 0; }
.infotbl td b { color: var(--brand-ink); font-size: 1rem; }
.infotbl tr.is-top td b { color: var(--accent); }
#pop-tiebreak .infotbl th:first-child,
#pop-tiebreak .infotbl td:first-child { width: 2.5rem; text-align: left; }
#pop-tiebreak .infotbl th:last-child,
#pop-tiebreak .infotbl td:last-child { text-align: left; width: auto; }

@supports selector(:popover-open) {
  .infopop {
    width: min(30rem, calc(100vw - 2rem));
    max-height: min(80vh, 40rem);
    overflow: auto;                    
    margin: auto;
    overscroll-behavior: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
    border-radius: 12px;
  }
  .infopop-c { border-radius: 12px; }
  .infopop::backdrop { background: rgba(0, 0, 0, .55); }
}

.potw {
  position: relative;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--primary) 18%, transparent),
      color-mix(in srgb, var(--accent) 11%, transparent) 70%, transparent),
    var(--surface);
  border: 1px solid var(--line-strong); border-radius: 18px;
  padding: 22px 24px; overflow: hidden;
  display: flex; align-items: center; gap: 22px;
}
.potw::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--accent), var(--primary));
}
.potw .face {
  width: 96px; height: 96px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 2.2rem;
  background: linear-gradient(140deg, var(--primary), var(--primary-deep));
  color: var(--on-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 32%, transparent);
}
.potw .ey {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: .72rem; color: var(--accent);
}
.potw .nm { font-family: var(--display); font-weight: 700; font-size: 1.7rem; margin: .15rem 0; }
.potw .blurb { color: var(--ink); opacity: .85; font-size: .95rem; max-width: 52ch; }
.potw .meta { display: flex; gap: 10px; margin-top: .7rem; flex-wrap: wrap; align-items: center; }
.potw .callpill {
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  border-radius: 8px; padding: .35rem .6rem; font-size: .82rem; font-weight: 600;
}
.potw .callpill b { font-family: var(--display); font-weight: 700; }
.potw .bangon {
  color: var(--on-win); font-family: var(--display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; font-size: .72rem;
  padding: .35rem .6rem; border-radius: 8px; background: var(--win);
}

.chartcard {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px 20px 14px;
}
.chartcard svg { width: 100%; height: auto; display: block; }
.grid line { stroke: var(--line); stroke-width: 1; }
.axis text { fill: var(--muted); font-size: 12px; font-family: var(--body); }
.sline { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sdot { stroke: var(--surface); stroke-width: 2; }
.sline.fan { stroke-dasharray: 6 5; stroke-width: 2; }
.sdot:hover { r: 7; }
.legend {
  display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.legend .li { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.legend .sw { width: 16px; height: 4px; border-radius: 2px; }
.legend .li.dash .sw { height: 0; border-top: 3px dashed var(--muted); width: 18px; background: none !important; }
.legend .li .youtag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

#s-table > .vs-foot { padding: 22px 0 0; }
.vs-head { align-items: center; margin-bottom: 12px; flex-wrap: wrap; row-gap: 8px; }
.vs-head .verdict { margin-left: auto; }
.vs-cap {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); white-space: nowrap;
}

.tbl-tabs { display: flex; gap: .4rem; margin: 0 2px 10px; }
.tbl-tab {
  appearance: none; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 600;
  padding: .4rem .9rem; min-height: 2.2rem; border-radius: 999px;
  color: var(--muted); background: transparent; border: 1px solid var(--line-strong);
}
.tbl-tab:hover { color: var(--ink); border-color: var(--accent); }
.tbl-tab.is-on {
  color: var(--ink);
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  border-color: color-mix(in srgb, var(--primary) 55%, transparent);
}
.tbl-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tbl-tab[hidden] { display: none; }
#s-matches[data-view="results"] > #s-fixtures,
#s-matches[data-view="fixtures"] > #s-results { display: none; }
#s-matches > section { margin-top: 0; padding-top: 0; }

.verdict {
  display: inline-flex; align-items: center; gap: .7rem; margin: 0;
  align-self: center; background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-strong); padding: .4rem .8rem; border-radius: 999px;
}
.verdict[hidden] { display: none; }
.verdict .txt { font-weight: 600; font-size: .82rem; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vs .card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px; position: relative; overflow: hidden;
}
.vs .lab {
  font-size: .78rem; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
.vs .big { font-family: var(--display); font-weight: 700; font-size: 3rem; line-height: 1; margin: .4rem 0 .2rem; }
.vs .unit { color: var(--muted); font-size: .8rem; font-weight: 600; }
.vs .hosts .big { color: var(--brand-ink); }
.vs .fans .big { color: var(--accent); }
.vs .winner {
  position: absolute; top: 16px; right: 16px; font-size: .6rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--on-accent);
  background: var(--accent); padding: .24rem .5rem; border-radius: 5px;
  font-family: var(--display);
}

.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.chip-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 16px 18px; min-width: 0;
}
.chip-card .k {
  font-size: .66rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); font-weight: 700;
}
.chip-card .v {
  font-family: var(--display); font-weight: 700; font-size: 1.3rem;
  margin-top: .6rem; color: var(--brand-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chip-card .dt { color: var(--muted); font-size: .78rem; font-weight: 600; margin-top: 2px; }

.result {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; margin-bottom: 16px; overflow: hidden;
}
.result .top {
  display: flex; align-items: center; gap: 14px; padding: 15px 20px;
  background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.result .comp {
  font-size: .66rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.result .fix { font-weight: 700; font-size: 1rem; }
.result .rpill {
  font-size: .62rem; font-weight: 700; padding: .2rem .5rem; border-radius: 5px;
  color: #fff; text-transform: uppercase; letter-spacing: .05em; font-family: var(--display);
  white-space: nowrap;
}
.rpill.W { background: var(--win); color: var(--on-win); }
.rpill.D { background: var(--draw); color: var(--on-accent); }
.rpill.L { background: var(--loss); color: #fff; }
.result .score { font-family: var(--display); font-weight: 700; font-size: 1.4rem; margin-left: auto; }
.calls {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; padding: 16px 20px 14px;
}
.call {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02);
}
.call.you { border-color: color-mix(in srgb, var(--primary) 55%, transparent); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.fanline {
  margin: 0 20px; padding: 10px 0 0; border-top: 1px dashed var(--line);
  color: var(--muted); font-size: .8rem; font-weight: 600; line-height: 1.6;
}
.fanline strong { color: var(--ink); font-weight: 700; }
.fanline .tnum { color: var(--ink); }
.call .nm { font-weight: 700; font-size: .9rem; }
.call .pr { color: var(--muted); font-size: .8rem; font-weight: 600; margin-left: auto; }
.call .pt {
  font-family: var(--display); font-weight: 700; font-size: 1rem; width: 26px;
  text-align: center; border-radius: 7px; padding: .1rem 0;
}
.pt.p5 { background: var(--win); color: var(--on-win); }
.pt.p4, .pt.p3, .pt.p2 { background: color-mix(in srgb, var(--win) 20%, transparent); color: var(--win); }
.pt.p0 { background: var(--track); color: var(--muted); }

.fixtures { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.fx {
  display: grid; grid-template-columns: 150px 28px 1fr 110px;
  align-items: center; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--line);
}
.fx.nocp { grid-template-columns: 150px 28px 1fr; }

@media (max-width: 560px) {
  .vsyou-cta { display: none; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .league section.hero { padding-top: calc(var(--nav-h) + 20px); padding-bottom: 18px; }
  .league section { padding: 30px 0 4px; }
  .sec-head { margin-bottom: 14px; }
  .vs .card { padding: 16px; }
  .nextcard { padding: 16px; }
  .coming { padding: 18px; gap: 14px; }

  .result .top { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .result .top::after {
    content: ""; width: 8px; height: 8px; flex: none; margin-left: 4px;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: rotate(45deg); transition: transform .18s;
  }
  .result.is-open .top::after { transform: rotate(-135deg); }
  .result:not(.is-open) > :not(.top) { display: none; }
  .result:not(.is-open) .top { border-bottom: 0; }
  .result .top:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

  .fx { grid-template-columns: 96px 22px 1fr 44px; gap: 9px; padding: 12px 14px; }
  .fx.nocp { grid-template-columns: 96px 22px 1fr; }
  .fx .dt { font-size: .72rem; line-height: 1.35; }
  .fx .dt .kd, .fx .dt .kt { display: block; }
  .fx .dt .kt::before { content: none; }
  .fx .dt .kt { font-weight: 700; }
  .fx .cp { font-size: .6rem; letter-spacing: .04em; }
}
.fx:first-child { border-top: none; }
.fx .dt { color: var(--muted); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.fx .dt .kt::before { content: ', '; }
.fx .ha {
  font-weight: 700; font-size: .72rem; color: var(--page);
  background: var(--brand-ink); width: 24px; height: 24px; border-radius: 6px;
  display: grid; place-items: center; font-family: var(--display);
}
.fx .ha.away { background: var(--surface-2); color: var(--ink); }
.fx .opp { font-weight: 700; display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.fx .cp {
  justify-self: end; font-size: .66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
}

.nextcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.nhdr { display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.nhdr .ney { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.nhdr .nfix {
  font-family: var(--display); font-size: 1.35rem; font-weight: 800;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.nha {
  font-weight: 700; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--page); background: var(--brand-ink); padding: .22rem .55rem;
  border-radius: 999px; display: inline-flex; align-items: center; font-family: var(--display);
}
.nha.away { background: var(--surface-2); color: var(--ink); }
.ncalls { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; padding: 18px 0; }
.ncall {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 10px;
}
.ncall.awaiting { opacity: .5; }
.ncall.you {
  border-color: color-mix(in srgb, var(--primary) 55%, transparent);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.ncall.you .nface { background: var(--primary); color: #fff; }
.ncall .ntag {
  display: inline-block; font-size: .58rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; padding: .08rem .3rem; border-radius: 4px; vertical-align: 1px;
  background: var(--primary); color: #fff;
}
.ncall.awaiting .ntag { opacity: .8; }
.nface {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); font-weight: 800; font-family: var(--display);
}
.ncall.host .nface { background: linear-gradient(140deg, var(--accent-deep), var(--accent)); color: var(--on-accent); }
.ncall.host .nface.has-face { overflow: hidden; padding: 0; }
.ncall.host .nface.has-face img {
  width: 100%; height: 100%; object-fit: cover; display: block; border: 0;
}
.ncall.awaiting .nface.has-face img { filter: grayscale(1); opacity: .75; }
.ncall .nnm { font-weight: 700; font-size: .85rem; }
.ncall .npred { font-family: var(--display); font-size: 1.5rem; font-weight: 800; }
.nfoot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 16px; border-top: 1px solid var(--line);
}
.nfoot .nnote { color: var(--muted); font-size: .85rem; }

.mypick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mypick input {
  width: 58px; padding: .5rem .4rem; text-align: center;
  font-family: var(--display); font-size: 1.25rem; font-weight: 700;
  color: #fff; background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: 10px;
}
.mypick input:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 1px; }
.mypick .dash { color: var(--muted); font-weight: 700; }
.mypick .lbl { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mypick .pickscore { font-family: var(--display); font-size: 1.6rem; font-weight: 800; }
.pickmsg { font-size: .82rem; font-weight: 600; }
.pickmsg--ok { color: var(--win); }
.pickmsg--err { color: var(--loss); }

.pk {
  display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px;
}
.pk-fx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pk-teams { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.pk-dt { color: var(--muted); font-size: .8rem; font-weight: 600; }
.pk--cta { background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%), var(--surface); }

.pk--inplay {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  box-shadow: inset 3px 0 0 0 var(--primary);
}

.pk-note {
  align-self: center; color: var(--muted); font-size: .8rem; font-weight: 600;
  text-align: right;
}

.pk-ha {
  font-size: .6rem; font-weight: 800; letter-spacing: .1em; font-family: var(--display);
  color: var(--page); background: var(--brand-ink);
  padding: .2rem .5rem; border-radius: 999px; flex: 0 0 auto;
}
.pk-ha.away { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }

.pk-inputs { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.pk-side { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 6.5rem; }
.pk-team {
  font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pk-side input {
  width: 62px; padding: .45rem .3rem; text-align: center;
  font-family: var(--display); font-size: 1.35rem; font-weight: 700;
  color: #fff; background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: 10px;
}
.pk-side input:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 1px; }
.pk-dash { color: var(--muted); font-weight: 700; padding-bottom: .5rem; }
.pk-score { font-size: 1.6rem; font-weight: 800; }
.pk-locked {
  align-self: center; font-size: .66rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); font-family: var(--display);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: .35rem .7rem;
  min-width: 5.5rem; text-align: center;
}
.pk-state {
  align-self: center; min-width: 5.5rem; text-align: center;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; font-family: var(--display);
  color: var(--muted);
}
.pk-state.is-saved { color: var(--win); }

.pk-inputs .sharebtn { align-self: center; }

.sharebtn.is-ghost { visibility: hidden; pointer-events: none; }

.pk-tail, .pk-scores { display: contents; }

@media (max-width: 640px) {
  .pk {
    grid-template-columns: 1fr auto;
    grid-template-areas: "fx tail" "scores scores" "peek peek";
    align-items: center;
    gap: 8px 10px;
  }
  .pk-fx { grid-area: fx; }
  .pk-peek { grid-area: peek; }
  .pk-inputs { display: contents; }

  .pk-scores {
    grid-area: scores;
    display: flex; align-items: flex-end; gap: 10px;
  }
  .pk-tail {
    grid-area: tail;
    display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  }

  .pk-locked {
    min-width: 0; border: 0; padding: 0; border-radius: 0;
    font-size: .62rem; letter-spacing: .06em;
  }
  .pk-state { min-width: 0; font-size: .62rem; }
  .pk-inputs .sharebtn { padding: .42rem; flex: none; }
  .pk-inputs .sharebtn .ic { width: 15px; height: 15px; }

  .pk-note { grid-area: scores; text-align: left; }
}

.how-step .ladder {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: .18rem;
}
.how-step .ladder li { display: flex; align-items: baseline; gap: .5rem; font-size: .84rem; }
.how-step .ladder b {
  flex: 0 0 1.2rem; text-align: right;
  font-family: var(--display); font-size: .98rem; font-weight: 800;
  color: var(--brand-ink); font-variant-numeric: tabular-nums;
}
.how-step .ladder li span { color: var(--ink); }

.cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 55%, var(--surface)), var(--surface));
  border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 18px 22px; margin: 0 0 18px;
}
.cta-h { font-size: 1.25rem; color: #fff; margin: 0; font-weight: 600; }
.cta-sub { color: rgba(255, 255, 255, .92); font-size: .88rem; margin-top: 3px; max-width: 52ch; }
.cta-btn { white-space: nowrap; font-size: 1rem; padding: .75rem 1.4rem; }
@media (max-width: 600px) {
  .cta { padding: 16px 18px; }
  .cta-h { font-size: 1.1rem; }
}

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how-step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px; min-width: 0;
}
.how-step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-ink); color: var(--page);
  font-weight: 700; font-size: .8rem; line-height: 1;
}
.how-step h3 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .02em; font-size: 1rem; margin: 10px 0 6px; color: #fff;
}
.how-step p { color: var(--ink); opacity: .85; font-size: .88rem; line-height: 1.55; margin: 0; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }

.sharebtn {
  font-family: var(--body); font-weight: 600; font-size: .82rem; border-radius: 999px;
  padding: .45rem .9rem; cursor: pointer; display: inline-flex; align-items: center;
  gap: .45rem; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05);
  color: var(--ink); transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.sharebtn:hover {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  border-color: var(--primary); color: #fff; transform: translateY(-1px);
}
.sharebtn.primary { background: var(--cta); border-color: var(--cta); color: var(--on-cta); }
.sharebtn.primary:hover { filter: brightness(1.12); }
a.sharebtn, a.sharebtn:hover { text-decoration: none; }
.sharebtn .ic { width: 14px; height: 14px; }
.sharebtn[disabled] { opacity: .6; cursor: default; transform: none; }
.sharebtn.compact { padding: .4rem .78rem; font-size: .78rem; gap: .38rem; }
.sharebtn.compact .ic { width: 13px; height: 13px; }
.sec-head .sharebtn { margin-left: 4px; }
.morebtn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  color: var(--ink); font-weight: 700; font-size: .85rem;
  padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: border-color .18s;
}
.morebtn:hover { border-color: var(--primary); }

#board-all { margin-left: auto; margin-right: auto; }

.morebtn--locked {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line-strong));
  background: color-mix(in srgb, var(--primary) 10%, var(--surface-2));
}
.morebtn--locked:hover { border-color: var(--primary); }

.loading { text-align: center; color: var(--muted); padding: 40px 0; font-weight: 600; }
.coming {
  display: flex; gap: 22px; align-items: center; margin-top: 8px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--primary) 16%, transparent),
      color-mix(in srgb, var(--accent) 11%, transparent) 70%, transparent),
    var(--surface);
  border: 1px solid var(--line-strong); border-radius: 18px; padding: 28px;
}
.coming .ey {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: .72rem; color: var(--accent);
}
.coming h3 {
  font-family: var(--display); font-weight: 700; font-size: clamp(22px, 4vw, 30px);
  margin: .25rem 0 .5rem; text-transform: uppercase;
}
.coming p { color: var(--ink); opacity: .85; margin: 0; max-width: 60ch; }
.coming .firstfix {
  margin-top: 1rem; font-weight: 700; color: var(--ink);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  border-radius: 10px; padding: .5rem .8rem; display: inline-block;
}
.coming .firstfix b { color: #fff; }
.coming .firstfix span { color: var(--muted); font-weight: 600; }

.league footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner {
  max-width: 1000px; margin: 0 auto; padding: 28px 22px; color: var(--muted);
  font-size: .85rem; display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: space-between; align-items: center;
}
.footer-inner p { margin: 0; }
.social-links { display: flex; gap: 16px; flex-wrap: wrap; }

.powered { margin-left: auto; font-size: .78rem; opacity: .75; }
.powered a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.powered a:hover { color: var(--brand-ink); border-bottom-color: currentColor; }
@media (max-width: 560px) { .powered { margin-left: 0; width: 100%; } }
.social-links a { color: var(--muted); text-decoration: none; }
.social-links a:hover { color: #fff; }

.pod-social { display: flex; gap: 16px; flex-wrap: wrap; }
.pod-social a {
  color: var(--ink); text-decoration: none; font-weight: 700;
  font-size: .84rem; letter-spacing: .02em;
  border-bottom: 1px solid transparent; padding-bottom: 1px;
}
.pod-social a:hover, .pod-social a:focus-visible {
  color: #fff; border-bottom-color: var(--brand-ink);
}

.ob { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 1.2rem; }
.ob-back { position: absolute; inset: 0; background: rgba(5, 5, 10, .8); backdrop-filter: blur(3px); }
.ob-card {
  position: relative; width: min(26rem, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px;
  padding: 1.9rem 1.6rem 1.4rem; text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.ob-x {
  position: absolute; top: .4rem; right: .6rem; background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size: 1.7rem; line-height: 1; padding: .2rem .5rem;
}
.ob-x:hover { color: #fff; }
.ob-art {
  height: 84px; margin: 0 auto .9rem; display: grid; place-items: center;
  font-size: 3.2rem; line-height: 1;
}
.ob-art img { max-height: 84px; max-width: 190px; object-fit: contain; display: block; }
.ob-mono {
  width: 76px; height: 76px; border-radius: 18px; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); font-size: 1.9rem;
}
.ob-card h2 { margin: 0 0 .6rem; font-size: 1.5rem; color: #fff; }
.ob-p { color: var(--ink); opacity: .88; font-size: .93rem; line-height: 1.6; margin: 0 0 1.3rem; }
.ob-p strong { color: #fff; }
.ob-dots { display: flex; justify-content: center; gap: 7px; margin-bottom: 1.1rem; }
.ob-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.ob-dot.on { background: var(--brand-ink); }
.ob-nav { display: flex; gap: 10px; justify-content: center; }
.ob-nav .sharebtn { min-width: 96px; justify-content: center; }
.ob-skip {
  font: inherit; font-size: .82rem; background: none; border: 0; padding: .7rem 0 0;
  cursor: pointer; color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
  display: block; margin: 0 auto;
}
.ob-skip:hover { color: #fff; }

.sh { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; padding: 1.2rem; }
.sh[hidden] { display: none; }
.sh-back { position: absolute; inset: 0; background: rgba(5, 5, 10, .78); backdrop-filter: blur(3px); }
.sh-sheet {
  position: relative; width: min(23rem, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px;
  padding: 1.5rem 1.3rem 1.3rem; box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.sh-sheet:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.sh-close {
  position: absolute; top: .3rem; right: .55rem; background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size: 1.7rem; line-height: 1; padding: .2rem .5rem;
}
.sh-close:hover { color: #fff; }
.sh-h { margin: 0 0 .2rem; font-size: 1.25rem; color: #fff; }
.sh-sub { margin: 0 0 1rem; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.sh-sub[hidden] { display: none; }
.sh-preview {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line); margin: 0 0 1rem;
  background: var(--surface-2);
}
.sh-preview[hidden] { display: none; }
.sh-note {
  margin: .9rem 0 0; font-size: .74rem; line-height: 1.5; color: var(--muted);
}
.sh-note strong { color: var(--ink); }
.sh-ig .sh-ic { color: #e1306c; }
.sh-btns { display: flex; flex-direction: column; gap: 8px; }
.sh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sh-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  font: inherit; font-size: .88rem; font-weight: 600; text-align: left;
  color: var(--ink); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: .7rem .8rem; cursor: pointer; text-decoration: none;
  transition: border-color .15s, background .15s;
}
.sh-row:hover { border-color: var(--brand-ink); background: rgba(255, 255, 255, .05); color: #fff; }
.sh-row:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 1px; }
.sh-ic {
  width: 22px; height: 22px; flex: none; display: grid; place-items: center;
  font-weight: 700; font-size: .82rem;
}
.sh-ic svg { width: 17px; height: 17px; }
.sh-x  .sh-ic { color: #fff; }
.sh-fb .sh-ic { color: #1877f2; }
.sh-th .sh-ic { color: #fff; }
.sh-rd .sh-ic { color: #ff4500; }
.sh-wa .sh-ic { color: #25d366; }
.sh-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sh-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 500; background: var(--surface-2); color: #fff;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .6rem 1.1rem; font-size: .88rem; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

@media (max-width: 900px) {
  .league nav { flex-direction: column; align-items: stretch; padding: .6rem 1rem 0; gap: 0; }
  .league .logo { padding-bottom: .5rem; }
  .nav-links {
    flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: .4rem;
    padding: 0 0 .6rem; width: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links li { flex-shrink: 0; }
  .nav-links a {
    display: block; padding: .3rem .8rem; border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px; font-size: .78rem; white-space: nowrap;
    transition: color .2s, background .2s, border-color .2s;
  }
  .nav-links a:hover, .nav-links a:active {
    color: #fff; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .28);
  }
  .nav-links a.active {
    color: #fff; background: color-mix(in srgb, var(--primary) 20%, transparent);
    border-color: color-mix(in srgb, var(--primary) 55%, transparent);
  }
  .nav-links a.active::after { display: none; }
  .nav-links.can-scroll {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  }
  :root { --nav-h: 160px; }
}
@media (max-width: 720px) {
  .board-tbl th, .board-tbl td { padding: 10px 6px; }
  .board-scroll .board-tbl th:nth-child(2), .board-scroll .board-tbl td:nth-child(2) { max-width: 42vw; }
  .chips { grid-template-columns: 1fr 1fr; }
  .chip-card .v {
    font-size: 1.05rem; white-space: normal; overflow-wrap: anywhere;
    overflow: visible; text-overflow: clip;
  }
  .vs { grid-template-columns: 1fr; }
  .potw { flex-direction: column; align-items: flex-start; }
  .coming { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

.am { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1.2rem; }
.am[hidden] { display: none; }
.am-back { position: absolute; inset: 0; background: rgba(5, 5, 10, .78); backdrop-filter: blur(3px); }
.am-card {
  position: relative; width: min(25rem, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px;
  padding: 1.8rem 1.6rem 1.6rem; box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.am-x {
  position: absolute; top: .4rem; right: .6rem; background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size: 1.7rem; line-height: 1; padding: .2rem .5rem;
}
.am-x:hover { color: #fff; }
.am-card h2 { margin: 0 0 .5rem; font-size: 1.5rem; color: #fff; }
.am-lead { color: var(--ink); opacity: .85; font-size: .92rem; margin: 0 0 1.1rem; }
.am-lead b { color: #fff; }
.am-label {
  display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted); margin-bottom: .35rem;
}
.am-input {
  width: 100%; font: inherit; color: #fff; background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: .7rem .8rem;
}
.am-input:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 1px; }
.am-code {
  font-family: var(--display); font-size: 1.6rem; letter-spacing: .5em;
  text-align: center; font-variant-numeric: tabular-nums; padding-left: .5em;
}
.am-turnstile { margin: 1rem 0 .2rem; min-height: 65px; }
.am-go { width: 100%; justify-content: center; margin-top: 1rem; padding: .7rem 1rem; }

.am-typo {
  margin: .4rem 0 .1rem;
}
.am-typo-q {
  margin: 0;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
}
.am-typo-q strong { color: #fff; word-break: break-all; }

.am-msg { font-size: .85rem; font-weight: 600; color: var(--muted); margin: .8rem 0 0; min-height: 1.2em; }
.am-msg--err { color: var(--loss); }
.am-fine { color: var(--muted); font-size: .78rem; line-height: 1.5; margin: .9rem 0 0; }
.am-fine strong { color: var(--ink); }
.am-fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.am-fine a:hover { color: #fff; }

.am-link {
  font: inherit; font-size: .85rem; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--muted); text-decoration: underline; text-underline-offset: 3px; margin-top: .9rem;
}
.am-link:hover { color: #fff; }
body.am-locked { overflow: hidden; }

.league.page main {
  max-width: 44rem; margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
}
.league.page h2 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .02em; font-size: 1.3rem; color: #fff; margin: 0 0 .6rem;
}
.league.page .card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.5rem 1.6rem; margin-bottom: 1.25rem;
}
.league.page .fine { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.league.page .fine a { color: var(--muted); }
.league.page .fine a:hover { color: #fff; }
