@font-face{font-family:'Figtree';font-style:normal;font-weight:300 900;font-display:swap;src:url(fonts/figtree-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Figtree';font-style:normal;font-weight:300 900;font-display:swap;src:url(fonts/figtree-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Big Shoulders Display';font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/big-shoulders-display-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Big Shoulders Display';font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/big-shoulders-display-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* Layout: sticky bar (brand, search, my team) over a deep-blue hero with three rotating banners,
   then a stats row, week cards with a day-by-day match list, and a teams directory.
   Match and team pages reuse the bar and a smaller blue band. White ground, one blue family.
   Single light theme by choice: the brief is white and blue. */
:root {
  --paper: #ffffff;
  --mist: #f2f6fd;
  --sky: #e3edff;
  --line: #d5e1f4;
  --ink: #0b1f3f;
  --ink-2: #4b6086;
  --blue: #1450c8;
  --blue-mid: #0f3fa3;
  --blue-deep: #0a2a6b;
  --on-blue: #ffffff;
  --on-blue-2: #c9daf8;
  --display: 'Big Shoulders Display', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: inherit; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hero :focus-visible, .m-band :focus-visible { outline-color: #fff; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding-block: 10px 6px; }
.brand { order: 1; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue-deep); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-t { font-family: var(--display); font-weight: 900; font-size: 28px; line-height: 1; letter-spacing: .03em; text-transform: uppercase; }
.brand-s { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.myteam.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.myteam { order: 2; margin-left: auto; height: 42px; max-width: 190px; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; background: var(--paper); font-weight: 600; font-size: 14px; }
.search { order: 3; position: relative; flex: 1 1 100%; min-width: 0; }
.search input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px 0 42px; background: var(--mist); }
.search input::placeholder { color: var(--ink-2); }
.search > svg { position: absolute; left: 15px; top: 12px; width: 18px; height: 18px; color: var(--ink-2); pointer-events: none; }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(10, 42, 107, .18); max-height: min(70vh, 540px); overflow: auto; z-index: 20; padding-block: 6px; }
.res-h { padding: 10px 16px 4px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.res { display: flex; align-items: center; gap: 12px; padding: 9px 16px; text-decoration: none; }
.res:hover, .res:focus-visible { background: var(--mist); }
.res .t { min-width: 0; display: flex; flex-direction: column; }
.res .t b { font-weight: 600; overflow-wrap: anywhere; }
.res .t span { font-size: 12.5px; color: var(--ink-2); }
.res-none, .res-more { padding: 14px 16px; color: var(--ink-2); font-size: 14px; }
@media (min-width: 760px) {
  .search { order: 2; flex: 1 1 320px; max-width: 520px; margin-left: 14px; }
  .myteam { order: 3; }
}

/* ---------- crest ---------- */
.crest { --s: 34px; width: var(--s); height: var(--s); flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--c, var(--blue)); color: #fff; font-family: var(--display); font-weight: 800; font-size: calc(var(--s) * .44); letter-spacing: .03em; line-height: 1; overflow: hidden; }
.crest.logo { border-radius: 22%; background: #fff; box-shadow: 0 0 0 1px rgba(11, 31, 63, .12); }
.crest img { width: 100%; height: 100%; object-fit: cover; display: block; }
.install { height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.install:hover { background: var(--blue-mid); }
.bar .install { order: 2; }
.foot-install { margin-top: 10px; }
@media (max-width: 759px) { .bar .install { display: none; } }
.crest.tbd { background: var(--mist); color: var(--ink-2); border: 1.5px dashed var(--line); font-family: var(--body); font-weight: 700; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--on-blue); background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue-mid) 55%, var(--blue) 100%); }
.hero .pitch { position: absolute; right: -80px; top: 50%; width: min(640px, 100vw); transform: translateY(-50%); opacity: .14; pointer-events: none; }
.hero-in { position: relative; padding-block: 34px 26px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-blue-2); }
.hero h1 { margin: 6px 0 4px; font-family: var(--display); font-weight: 900; font-size: clamp(60px, 13vw, 118px); line-height: .88; letter-spacing: .005em; text-transform: uppercase; text-wrap: balance; }
.hero .sub { margin: 0; font-size: 16px; color: var(--on-blue-2); }
.banner { margin-top: 22px; padding: 20px 20px 14px; border: 1px solid rgba(255, 255, 255, .26); border-radius: 18px; background: rgba(255, 255, 255, .1); }
.slides { display: grid; }
.slide { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.slide.on { opacity: 1; visibility: visible; }
.big { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 5vw, 44px); line-height: 1; text-transform: uppercase; text-wrap: balance; }
.vs-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 5vw, 42px); line-height: 1; text-transform: uppercase; }
.vs-line .v { font-size: .6em; letter-spacing: .1em; color: var(--on-blue-2); }
.vs-line .tm { display: inline-flex; align-items: center; gap: 10px; }
.meta-line { margin: 0; color: var(--on-blue-2); font-weight: 500; }
.cd { display: flex; gap: 10px; flex-wrap: wrap; }
.cd div { min-width: 68px; padding: 8px 6px 6px; text-align: center; border-radius: 10px; background: #fff; color: var(--blue-deep); }
.cd b { display: block; font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.cd span { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.live { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .75); background: transparent; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.btn:hover { background: rgba(255, 255, 255, .14); }
.btn.solid { background: #fff; color: var(--blue-deep); border-color: #fff; }
.btn.solid:hover { background: var(--sky); }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.blue:hover { background: var(--blue-mid); }
.btn.line { border-color: var(--line); color: var(--blue-deep); }
.btn.line:hover { background: var(--mist); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 5px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; }
.pick:hover { background: rgba(255, 255, 255, .24); }
.dots { display: flex; gap: 6px; margin-top: 10px; }
.dot { width: 34px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.dot::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.dot[aria-current="true"]::after { background: #fff; }

/* ---------- stats ---------- */
.stats { border-bottom: 1px solid var(--line); }
.stats-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 18px 14px 16px; border-left: 1px solid var(--line); min-width: 0; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.stat .l { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.stat .s { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- sections ---------- */
.sec { padding-block: 36px 8px; }
.sec h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 5vw, 46px); line-height: 1; text-transform: uppercase; color: var(--blue-deep); }
.lead { margin: 8px 0 20px; max-width: 62ch; color: var(--ink-2); }
#sched { scroll-margin-top: 130px; }
.wks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wk { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px; text-align: left; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); cursor: pointer; min-width: 0; }
.wk:hover { border-color: var(--blue); }
.wk .k { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.wk .d { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.05; text-transform: uppercase; color: var(--blue-deep); }
.wk .m { font-size: 13.5px; color: var(--ink-2); }
.wk .st { margin-top: 8px; padding: 2px 9px; border-radius: 999px; background: var(--sky); color: var(--blue-deep); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wk.on { background: var(--blue); border-color: var(--blue); }
.wk.on .k, .wk.on .m { color: var(--on-blue-2); }
.wk.on .d { color: #fff; }
.wk.on .st { background: rgba(255, 255, 255, .2); color: #fff; }
.panel { margin-top: 8px; }
.day { margin-top: 22px; }
.day h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); }
.row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 22px; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.row:first-child { border-top: 0; }
a.row:hover { background: var(--mist); }
.row.mine { background: #eaf2ff; box-shadow: inset 4px 0 0 var(--blue); }
.when { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.when .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--sky); color: var(--blue-deep); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: normal; }
.chip.ko { background: var(--blue-deep); color: #fff; }
.chip.me { background: var(--blue); color: #fff; }
.fix { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.fix .v { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.side { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; }
.side.a { justify-content: flex-end; text-align: right; }
.side.tbd { color: var(--ink-2); font-weight: 600; }
.side .nm { min-width: 0; overflow-wrap: anywhere; }
.go { color: var(--ink-2); font-size: 22px; line-height: 1; text-align: right; }
.ev { display: flex; flex-direction: column; min-width: 0; }
.ev span { color: var(--ink-2); font-size: 13.5px; }
.row.event { background: var(--mist); }
.note { margin: 14px 2px 0; color: var(--ink-2); font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding-bottom: 36px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: var(--paper); min-width: 0; }
.tile:hover { border-color: var(--blue); background: var(--mist); }
.tile .t { display: flex; flex-direction: column; min-width: 0; }
.tile b { font-weight: 700; }
.tile .t span { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- match + team pages ---------- */
.m-band { color: #fff; background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue-mid) 60%, var(--blue) 100%); position: relative; overflow: hidden; }
.m-band .pitch { position: absolute; left: 50%; top: 50%; width: min(560px, 120vw); transform: translate(-50%, -50%); opacity: .1; pointer-events: none; }
.m-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; }
.back { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; font-weight: 700; font-size: 14px; color: var(--on-blue-2); text-decoration: none; }
.back:hover { color: #fff; }
.m-vs { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding-block: 22px 26px; }
.m-team { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; text-align: center; color: #fff; text-decoration: none; }
a.m-team:hover .m-name { text-decoration: underline; }
.m-name { font-family: var(--display); font-weight: 900; font-size: clamp(20px, 5.6vw, 52px); line-height: .95; text-transform: uppercase; overflow-wrap: break-word; }
.m-cap { font-size: 13px; color: var(--on-blue-2); }
.m-v { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 4vw, 34px); letter-spacing: .08em; color: var(--on-blue-2); }
.facts { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .26); }
.fact { padding: 14px 14px 16px 0; min-width: 0; }
.fact .l { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-blue-2); }
.fact .v { display: block; margin-top: 2px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.squads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-block: 28px 8px; }
.squad { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-width: 0; background: var(--paper); }
.squad > header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--mist); border-bottom: 1px solid var(--line); }
.squad > header b { display: block; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; color: var(--blue-deep); }
.squad > header div span { font-size: 13px; color: var(--ink-2); }
.squad ol { margin: 0; padding: 0; list-style: none; }
.squad li { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line); }
.squad li:first-child { border-top: 0; }
.squad li .i { width: 24px; flex: none; color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.squad li .p { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.squad li.hl { background: var(--sky); box-shadow: inset 0 0 0 2px var(--blue); }
.tag { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tag.c { background: var(--blue); color: #fff; }
.tag.r { background: var(--sky); color: var(--blue-deep); }
.pending { padding: 26px 20px; border: 1.5px dashed var(--line); border-radius: 14px; color: var(--ink-2); background: var(--mist); }
.pending b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 22px 36px; }
.t-head { position: relative; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-block: 18px 24px; }
.t-head h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(40px, 8vw, 72px); line-height: .92; text-transform: uppercase; overflow-wrap: anywhere; }
.t-head .grow { flex: 1 1 260px; min-width: 0; }
.sec-h { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; color: var(--blue-deep); }
.block { padding-top: 28px; }
.lost { padding-block: 60px; }
.lost h1 { margin: 0 0 6px; font-family: var(--display); font-size: 44px; text-transform: uppercase; color: var(--blue-deep); }

footer { margin-top: 20px; border-top: 1px solid var(--line); background: var(--mist); }
footer p { margin: 0; padding-block: 18px 26px; color: var(--ink-2); font-size: 13.5px; }

@media (max-width: 760px) {
  .squads { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wks { grid-template-columns: minmax(0, 1fr); }
  .wk .d { font-size: 28px; }
  .row { grid-template-columns: minmax(0, 1fr) 18px; row-gap: 10px; padding: 12px 14px; }
  .when { grid-column: 1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .fix { grid-column: 1; font-size: 14px; gap: 8px; }
  .side { gap: 8px; }
  .go { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .row.event .ev { grid-column: 1; }
  .m-vs { gap: 6px; }
  .banner { padding: 16px 16px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}

/* ================= MVP 2 additions ================= */
.tabs { order: 4; flex: 1 1 100%; display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink-2); }
.tab:hover { background: var(--mist); color: var(--ink); }
.tab[aria-current="page"] { background: var(--sky); color: var(--blue-deep); }

.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: min(92vw, 460px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; text-align: center; z-index: 30; box-shadow: 0 10px 30px rgba(10, 42, 107, .3); }
.toast.err { background: #9b1c1c; }

/* results inside schedule rows */
.mid { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.resl { text-align: center; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.resl b { color: var(--blue-deep); }
.side.won .nm { color: var(--blue-deep); font-weight: 800; }
.side.lost .nm { color: var(--ink-2); font-weight: 600; }

/* page header band for Table, Predict, Admin */
.p-head { position: relative; padding-block: 22px 26px; }
.p-head h1 { margin: 4px 0 6px; font-family: var(--display); font-weight: 900; font-size: clamp(40px, 8vw, 68px); line-height: .92; text-transform: uppercase; }
.p-head p { margin: 0; color: var(--on-blue-2); max-width: 62ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chipb { padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .12); color: #fff; font-size: 13px; font-weight: 700; }
.pad { padding-block: 24px 8px; }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
table.pts { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 540px; font-variant-numeric: tabular-nums; }
.pts th, .pts td { padding: 11px 10px; text-align: center; border-top: 1px solid var(--line); white-space: nowrap; background: var(--paper); }
.pts thead th { border-top: 0; background: var(--mist); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.pts .rk { width: 40px; color: var(--ink-2); }
.pts .tm { text-align: left; position: sticky; left: 0; min-width: 150px; }
.pts tr.mine td { background: #eaf2ff; }
.pts tr.cut td { border-bottom: 2px solid var(--blue); }
.pts td.pt { font-weight: 800; color: var(--blue-deep); font-size: 16px; }
.pts td.neg { color: #9b1c1c; }
.teamcell { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.teamcell:hover .nm { text-decoration: underline; }
.form { display: inline-flex; gap: 3px; }
.f { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--mist); color: var(--ink-2); border: 1px solid var(--line); }
.f.W { background: var(--blue); border-color: var(--blue); color: #fff; }
.f.L { background: var(--sky); border-color: var(--sky); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 2px 0; color: var(--ink-2); font-size: 13.5px; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 2px solid var(--blue); margin-right: 6px; vertical-align: -1px; }
.rules { margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--mist); padding: 2px 16px; }
.rules summary { cursor: pointer; font-weight: 700; padding: 12px 0; color: var(--blue-deep); }
.rules ul { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); }
@media (max-width: 700px) { .pts .opt { display: none; } table.pts { min-width: 440px; } }

/* sign-in and forms */
.card { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); padding: 22px; max-width: 520px; }
.card h2 { margin: 0 0 4px; font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; text-transform: uppercase; color: var(--blue-deep); }
.card p { margin: 6px 0 0; color: var(--ink-2); }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; min-width: 0; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select { height: 44px; width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--paper); }
.gbtn { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 46px; margin-top: 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font-weight: 700; cursor: pointer; }
.gbtn:hover { background: var(--mist); }
.or { text-align: center; color: var(--ink-2); margin: 14px 0 0; font-size: 13px; }
.msg { margin-top: 12px; font-size: 14px; overflow-wrap: anywhere; }
.msg.err { color: #9b1c1c; }
.msg.ok { color: #1b7a43; }
.tiny { font-size: 12px; color: var(--ink-2); }
.btn.blue[disabled] { opacity: .6; cursor: default; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* predict */
.you { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: var(--mist); border: 1px solid var(--line); }
.you .n { font-weight: 800; color: var(--blue-deep); font-size: 17px; overflow-wrap: anywhere; }
.you .s { color: var(--ink-2); font-size: 13.5px; }
.psub { display: flex; gap: 6px; margin: 18px 0 4px; border-bottom: 1px solid var(--line); }
.psub button { border: 0; background: transparent; padding: 10px 16px; font-weight: 700; color: var(--ink-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.psub button[aria-pressed="true"] { color: var(--blue-deep); border-bottom-color: var(--blue); }
.grp { margin-top: 26px; }
.grp > h2 { margin: 0 0 4px; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; color: var(--blue-deep); }
.grp > p { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
.pc { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: 16px; margin-bottom: 12px; }
.pc.focus { box-shadow: 0 0 0 3px var(--blue); }
.pc-h { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.pc-h a { color: inherit; }
.pc-h .lock { color: var(--blue-deep); font-weight: 700; }
.duel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; margin-top: 12px; }
.duel .v { align-self: center; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--ink-2); text-transform: uppercase; }
.pick-btn { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; font-weight: 700; text-align: left; }
.pick-btn:hover:not(:disabled) { border-color: var(--blue); }
.pick-btn[aria-pressed="true"] { border-color: var(--blue); background: var(--sky); color: var(--blue-deep); }
.pick-btn:disabled { cursor: default; }
.pick-btn:disabled:not([aria-pressed="true"]) { opacity: .6; }
.pick-btn.ok { border-color: #1b7a43; background: #e6f6ec; color: #14532d; }
.pick-btn.bad { border-color: #b3261e; background: #fdeceb; color: #8a1c14; }
.pick-btn .nm { min-width: 0; overflow-wrap: anywhere; }
.momrow { margin-top: 12px; display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.momrow .lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.momchip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 999px; background: var(--sky); color: var(--blue-deep); font-weight: 700; min-width: 0; }
.momchip.ok { background: #e6f6ec; color: #14532d; }
.momchip.bad { background: #fdeceb; color: #8a1c14; }
.momchip button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; }
.momchip .nm { overflow-wrap: anywhere; }
.btn.small { height: 34px; padding: 0 14px; font-size: 13px; }
.mompanel { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mompanel input { width: 100%; height: 44px; border: 0; border-bottom: 1px solid var(--line); padding: 0 14px; background: var(--mist); }
.momlist { max-height: 250px; overflow: auto; }
.momlist button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 14px; border: 0; border-top: 1px solid var(--line); background: var(--paper); cursor: pointer; text-align: left; font-weight: 600; }
.momlist button:first-child { border-top: 0; }
.momlist button:hover { background: var(--mist); }
.momlist .sub { margin-left: auto; font-size: 12px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.momlist .none { padding: 14px; color: var(--ink-2); font-size: 14px; }
.pts-out { margin-top: 12px; display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.badge { padding: 3px 10px; border-radius: 999px; background: var(--sky); color: var(--blue-deep); font-weight: 800; font-size: 13px; }
.badge.zero { background: var(--mist); color: var(--ink-2); }
.split { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; font-size: 13.5px; color: var(--ink-2); }
.split .barx { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--mist); margin: 6px 0 4px; }
.split .barx i { display: block; background: var(--blue); }
.split .barx i + i { background: #8fb0ee; }
.split .lg { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; color: var(--ink); }
.split ul { margin: 8px 0 0; padding-left: 18px; }
.lbwk { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 12px; }
.pill { padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-size: 13.5px; cursor: pointer; color: var(--ink-2); }
.pill[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.lb td.nm { text-align: left; font-weight: 700; overflow-wrap: anywhere; white-space: normal; min-width: 130px; }

/* match page result box */
.m-res { margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--paper); }
.m-res .rl { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 5vw, 34px); text-transform: uppercase; color: var(--blue-deep); line-height: 1.05; }
.m-res .sc { margin-top: 6px; color: var(--ink-2); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.m-res .mm { margin-top: 12px; display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.cta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* admin */
.adm-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.adm-row:first-child { border-top: 0; }
.adm-row .t { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.adm-row .w { font-weight: 700; font-size: 13.5px; }
.fx { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); }
.fx:first-child { border-top: 0; }
.fx select { height: 40px; min-width: 0; width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 8px; background: var(--paper); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.form-grid .span2 { grid-column: 1 / -1; }
.inn { border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.inn h3 { margin: 0; font-size: 15px; color: var(--blue-deep); }
.r3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.chk { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; }
.chk input { width: 18px; height: 18px; flex: none; }
.prev { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--mist); border: 1px solid var(--line); overflow-wrap: anywhere; }
.prev b { color: var(--blue-deep); }
.warn { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: #fff7e0; border: 1px solid #f1d78a; color: #6b5300; font-size: 14px; }
.errs { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: #fdeceb; border: 1px solid #f2b8b5; color: #8a1c14; font-size: 14px; }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .adm-row { grid-template-columns: minmax(0, 1fr) auto; }
  .adm-row .w { grid-column: 1 / -1; }
  .fx { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fx > span:first-child { grid-column: 1 / -1; }
  .fx > button { grid-column: 1 / -1; }
}

/* ================= bottom tab bar (phones) and Auction / More ================= */
.btabs { display: none; }
@media (max-width: 759px) {
  .tabs { display: none; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .btabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding: 0 max(4px, env(safe-area-inset-left, 0px)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-right, 0px)); box-shadow: 0 -4px 18px rgba(10, 42, 107, .07); }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
.bt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 60px; text-decoration: none; color: var(--ink-2); font-size: 10.5px; font-weight: 700; letter-spacing: .02em; position: relative; -webkit-tap-highlight-color: transparent; }
.bt svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bt[aria-current="page"] { color: var(--blue); }
.bt[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); }
.bt[aria-current="page"] svg { stroke-width: 2.2; }
.bt:active { background: var(--mist); }

.stats-in.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c3 .stat:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.c3 .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
.c3 .stat b { font-size: 32px; }
@media (max-width: 520px) { .stats-in:not(.c3) .stat b { font-size: 32px; } .stats-in:not(.c3) .stat { padding-inline: 10px; } .stats-in:not(.c3) .stat:first-child { padding-left: 0; } }
.sec-h2 { margin: 28px 0 4px; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; text-transform: uppercase; color: var(--blue-deep); }
.sub-h { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
.px { flex: none; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13.5px; color: var(--blue-deep); }
.px.dim { font-weight: 600; color: var(--ink-2); }
.cell2 { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; }
.cell2 .nm { display: block; font-weight: 700; overflow-wrap: anywhere; line-height: 1.2; }
.cell2 .su { display: block; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.sbar { height: 6px; border-radius: 3px; background: var(--sky); margin-top: 5px; min-width: 70px; overflow: hidden; }
.sbar i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.auc td, .auc th { white-space: nowrap; }
.auc td.tm { white-space: normal; }
.auc table.pts { min-width: 460px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.two > div { min-width: 0; }
@media (max-width: 700px) { .two { grid-template-columns: minmax(0, 1fr); } }
.menu { display: grid; gap: 10px; max-width: 520px; }
.mrow { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); text-decoration: none; color: var(--ink); }
.mrow:hover { background: var(--mist); }
.mrow svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mrow b { display: block; font-size: 16px; }
.mrow span.d { display: block; color: var(--ink-2); font-size: 13.5px; }
.mrow .go { margin-left: auto; color: var(--ink-2); font-size: 22px; }
.soon { padding: 22px; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--mist); margin-bottom: 14px; max-width: 620px; }
.soon h2 { margin: 0 0 4px; font-family: var(--display); font-weight: 800; font-size: 28px; text-transform: uppercase; color: var(--blue-deep); line-height: 1; }
.soon p { margin: 0; color: var(--ink-2); }
.soon .tag { background: var(--sky); color: var(--blue-deep); margin-bottom: 8px; display: inline-block; }

/* global My team / All switch */
.scope { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.scope .lbl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-right: 2px; }
.scope button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; }
.scope button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.scope .crest { --s: 20px; }
.scope.nudge { padding: 10px 14px; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--mist); color: var(--ink-2); font-size: 14px; }
.scope.pin { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--sky); gap: 4px 12px; color: var(--blue-deep); }
.scope.pin b { font-size: 16px; }
