/* North American Championship site (NAC brand, 12/3): navy #0E1A2B, navy light #16263D, gold #C5A15A, ivory #F2ECE1,
   slate #8E9AAD. Barlow / Barlow Condensed stand in for Bahnschrift on the web (brand guide). */
:root {
  --bg: #0e1a2b; --bg2: #0a1422; --surface: #16263d; --surface2: #1d304b; --surface3: #263c5c; --line: rgba(242,236,225,.09); --line2: rgba(242,236,225,.17);
  --ink: #f2ece1; --ink2: #d6cfc1; --muted: #8e9aad; --accent: #c5a15a; --accent2: #d7b877; --gold: #c5a15a; --on-accent: #0e1a2b; --win: #22c98a; --draw: #8e9aad; --loss: #ff5d6c; --live: #ff3355;
  --shadow: 0 10px 30px rgba(0,0,0,.35); --radius: 16px;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif; --body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {   /* softer light mode (11/25: the first one was too bright/washed out) */
  --bg: #e9e2d4; --bg2: #e1d9c9; --surface: #f8f4ec; --surface2: #efe9dc; --surface3: #e2dac9; --line: rgba(14,26,43,.13); --line2: rgba(14,26,43,.24);
  --ink: #0e1a2b; --ink2: #26364d; --muted: #5a6678; --accent: #8a6a24; --accent2: #7a5c1c; --gold: #8a6a24; --on-accent: #fffaf0; --shadow: 0 8px 24px rgba(14,26,43,.16);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0 }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); min-height: 100vh; overflow-x: hidden }
body::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 420px; z-index: -1; pointer-events: none;
  background: radial-gradient(800px 320px at 15% -10%, rgba(197,161,90,.13), transparent 70%), radial-gradient(600px 300px at 95% -20%, rgba(142,154,173,.12), transparent 70%) }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent }
img { display: block; max-width: 100% }
.muted { color: var(--muted) } .small { font-size: 12.5px } .tnum { font-variant-numeric: tabular-nums }
.hide { display: none !important }

/* ---------- header / nav */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line) }
.top-in { max-width: 1240px; margin: 0 auto; height: 64px; padding: 0 18px; display: flex; align-items: center; gap: 18px }
.brand { display: flex; align-items: center; gap: 10px; flex: none }
.brand .lockup { height: 38px; width: auto }
.on-light { display: none !important }
:root[data-theme="light"] .on-light { display: block !important }
:root[data-theme="light"] .on-dark { display: none !important }
@media (max-width: 420px) { .brand .lockup { height: 32px } .top-in { gap: 8px; padding: 0 12px } }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0 }
.nav a { padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap }
.nav a:hover { color: var(--ink); background: var(--surface) }
.nav a.on { color: var(--ink); background: var(--surface2); box-shadow: inset 0 -2px 0 var(--accent) }
.top-tools { display: flex; align-items: center; gap: 6px; margin-left: auto }
.iconbtn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--ink2) }
.iconbtn:hover { background: var(--surface) }
.iconbtn svg { width: 20px; height: 20px }
.livepill { display: none; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--live) 16%, transparent); color: var(--live); font: 700 14px var(--display); letter-spacing: .06em; text-transform: uppercase }
.livepill.on { display: inline-flex }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255,51,85,.6); animation: pulse 1.6s infinite }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255,51,85,0) } 100% { box-shadow: 0 0 0 0 rgba(255,51,85,0) } }
.tabs-mobile { display: none }
@media (max-width: 820px) { .nav { display: none } }
@media (max-width: 820px) {
  .tabs-mobile { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg2) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line) }
  .tabs-mobile a, .tabs-mobile button { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 10.5px; font-weight: 600; color: var(--muted) }
  .tabs-mobile svg { width: 22px; height: 22px }
  .tabs-mobile .on { color: var(--ink) } .tabs-mobile .on svg { color: var(--accent2) }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)) }
}
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(3,6,15,.6); backdrop-filter: blur(3px) }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--surface); border-radius: 22px 22px 0 0; padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line2) }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line2); margin: 2px auto 12px }
.sheet nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px }
.sheet nav a { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface2); font-weight: 700 }
.sheet nav a svg { width: 20px; height: 20px; color: var(--accent2) }

/* ---------- page layout */
.page { max-width: 1240px; margin: 0 auto; padding: 18px 18px 40px; display: grid; gap: 18px }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start }
.cols > .rail { display: grid; gap: 18px; position: sticky; top: 82px }
@media (max-width: 1080px) { .cols { grid-template-columns: 1fr } .cols > .rail { position: static } }
.stack { display: grid; gap: 18px; min-width: 0 }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr } .page { padding: 12px 12px 30px; gap: 14px } }

/* ---------- cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0 }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px }
.card-h h2 { font: 700 20px/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; display: flex; align-items: center; gap: 10px }
.card-h h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(var(--accent), var(--gold)) }
.card-h a.more, .more { font-size: 13px; font-weight: 600; color: var(--accent2) }
.empty { padding: 22px 16px; color: var(--muted); text-align: center }
.pad { padding: 0 16px 16px }
.sep { border-top: 1px solid var(--line) }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; font-weight: 700; background: var(--surface2); border: 1px solid var(--line2) }
.btn svg { width: 18px; height: 18px }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--on-accent) }
.btn.twitch { background: #9146ff; border-color: transparent; color: #fff }
.btn.goals { background: #f2ece1; border-color: transparent; color: #0e1a2b }
.btn.goals .n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #0e1a2b; color: #f2ece1; font-size: 12px; display: inline-flex; align-items: center; justify-content: center }
#goal-clips { scroll-margin-top: 96px }
.btn.live { background: var(--live); border-color: transparent; color: #fff }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 }
.chips::-webkit-scrollbar { display: none }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line2); font-weight: 600; font-size: 13.5px; color: var(--ink2); white-space: nowrap }
.chip.on { background: var(--ink); color: var(--bg); border-color: transparent }
.chip .crest { width: 20px; height: 20px }
.tabbar { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none }
.tabbar::-webkit-scrollbar { display: none }
.tabbar button, .tabbar a { padding: 12px 12px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap }
.tabbar .on { color: var(--ink); border-bottom-color: var(--accent) }

/* ---------- atoms */
.crest { object-fit: contain; flex: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)) }
.crest-blank { display: inline-grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--cc, var(--surface3)), color-mix(in srgb, var(--cc, var(--surface3)) 62%, #000)); color: #fff; font: 800 11px/1 var(--display); letter-spacing: .02em; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); filter: none; overflow: hidden }
.face { position: relative; flex: none; border-radius: 50%; overflow: hidden; background: var(--surface3); box-shadow: 0 0 0 2px var(--fc, var(--accent)) }
.face img { width: 100%; height: 100%; object-fit: cover }
.face-init { display: inline-grid; place-items: center; font-family: var(--display); font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--fc, var(--accent)), color-mix(in srgb, var(--fc, var(--accent)) 40%, #000)) }
.rt { display: inline-grid; place-items: center; min-width: 38px; height: 24px; padding: 0 6px; border-radius: 7px; font: 700 15px/1 var(--display); color: #0b1230; font-variant-numeric: tabular-nums }
.rt.big { min-width: 52px; height: 34px; font-size: 22px; border-radius: 9px }
.r-elite { background: #3ad6ff } .r-good { background: #22c98a } .r-ok { background: #c4e35a } .r-meh { background: #ffb347 } .r-bad { background: #ff6b6b } .r-none { background: var(--surface3); color: var(--muted) }
.form { display: inline-flex; gap: 3px }
.form i { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font: 700 12px var(--display); font-style: normal; color: #fff }
.f-W { background: var(--win) } .f-D { background: var(--draw) } .f-L { background: var(--loss) }
.clublink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0 }
.clublink span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.plink:hover, .clublink:hover span { color: var(--accent2) }
.pos { display: inline-block; font: 700 11px var(--display); letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; background: var(--surface3); color: var(--ink2) }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--surface3); color: var(--ink2) }
.tag.live { background: color-mix(in srgb, var(--live) 18%, transparent); color: var(--live) }
.tag.gold { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold) }
.tag.ff { background: color-mix(in srgb, var(--loss) 15%, transparent); color: var(--loss) }

/* ---------- hero scoreboard */
.hero { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line2); background: linear-gradient(135deg, var(--c1, #263c5c) -20%, transparent 45%), linear-gradient(225deg, var(--c2, #c5a15a) -20%, transparent 45%), var(--surface) }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 60px, rgba(255,255,255,.025) 60px 61px) }
.hero-in { position: relative; z-index: 1; padding: 18px 20px 20px }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px }
.board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px }
.board .side { display: grid; justify-items: center; gap: 8px; text-align: center; min-width: 0 }
.board .side b { font: 700 22px/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em }
.board .side .crest { width: 72px; height: 72px }
.board .mid { display: grid; justify-items: center; gap: 4px }
.score { font: 800 64px/0.9 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 14px }
.score i { font-style: normal; color: var(--muted); font-size: 40px }
.score.small { font-size: 40px }
.board .when { font: 700 14px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2) }
.scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; font-size: 13px; color: var(--ink2) }
.scorers div { display: grid; gap: 2px; align-content: start } .scorers .r { text-align: right }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 16px }
@media (max-width: 760px) { .board .side .crest { width: 54px; height: 54px } .board .side b { font-size: 17px } .score { font-size: 48px } .hero-in { padding: 14px 14px 16px } }

/* ---------- match rows */
.mrow { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto minmax(0, 1fr) 42px; align-items: center; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--line); position: relative }
.mrow:first-child { border-top: 0 }
.mrow:hover { background: var(--surface2) }
.mrow .t { display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 600 }
.mrow .t.r { flex-direction: row-reverse; text-align: right }
.mrow .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.mrow .t.won span { font-weight: 800 }
.mrow .sc { font: 800 22px/1 var(--display); font-variant-numeric: tabular-nums; padding: 5px 10px; border-radius: 9px; background: var(--surface2); min-width: 64px; text-align: center }
.mrow .sc.up { font-size: 15px; color: var(--ink2) }
.mrow .meta { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.25 }
.mrow .ex { justify-self: end; display: flex; gap: 4px; color: var(--muted) }
.mrow .ex svg { width: 16px; height: 16px }
.mrow::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: linear-gradient(var(--c1, transparent), var(--c2, transparent)); opacity: .9 }
@media (max-width: 560px) { .mrow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding: 10px 12px } .mrow .meta, .mrow .ex { display: none } .mrow .sc { font-size: 19px; min-width: 56px } }
.dayh { padding: 10px 16px; font: 700 14px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg2); border-top: 1px solid var(--line) }

/* ---------- tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px }
.tbl th { font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 8px 6px; border-bottom: 1px solid var(--line) }
.tbl td { text-align: center; padding: 9px 6px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums }
.tbl tr:first-child td { border-top: 0 }
.tbl .l { text-align: left } .tbl .pts { font: 800 17px var(--display) }
.tbl tbody tr:hover { background: var(--surface2) }
.tbl .posn { width: 34px; color: var(--muted); font-weight: 700; position: relative }
.tbl .zone-top .posn::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--accent) }
.tbl .zone-bottom .posn::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--loss) }
.tbl .gone td { opacity: .45 }
.tbl-wrap { overflow-x: auto }
@media (max-width: 560px) { .tbl .hs { display: none } .tbl td, .tbl th { padding: 8px 4px } }
.ded { font: 700 11px var(--display); color: var(--loss); background: color-mix(in srgb, var(--loss) 14%, transparent); padding: 1px 6px; border-radius: 6px; margin-left: 6px }

/* ---------- leader lists */
.lead { display: grid; grid-template-columns: 26px 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line) }
.lead:first-child { border-top: 0 }
.lead:hover { background: var(--surface2) }
.lead .rk { font: 700 16px var(--display); color: var(--muted); text-align: center }
.lead b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.lead small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px }
.lead small .crest { width: 14px; height: 14px; filter: none }
.lead .v { font: 800 22px var(--display); font-variant-numeric: tabular-nums }
.lead.first { background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 12%, transparent), transparent) }
.lead.first .rk { color: var(--gold) }

/* ---------- news */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding: 0 16px 16px }
.story { display: grid; border-radius: 14px; overflow: hidden; background: var(--surface2); border: 1px solid var(--line) }
.story .cv { aspect-ratio: 16/9; background: var(--surface3) center/cover no-repeat }
.story .tx { padding: 12px 14px 14px; display: grid; gap: 6px }
.story b { font: 700 19px/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em }
.story p { color: var(--ink2); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.story:hover b { color: var(--accent2) }
.story.lead-story { grid-column: 1 / -1; grid-template-columns: 1.4fr 1fr }
.story.lead-story .cv { aspect-ratio: auto; min-height: 240px }
.story.lead-story b { font-size: 28px }
@media (max-width: 760px) { .story.lead-story { grid-template-columns: 1fr } .story.lead-story .cv { min-height: 0; aspect-ratio: 16/9 } .story.lead-story b { font-size: 22px } }
.article { max-width: 760px; margin: 0 auto; width: 100% }
.article h1 { font: 800 clamp(30px, 6vw, 48px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 12px 0 }
.article .cover { border-radius: 16px; overflow: hidden; margin: 14px 0 }
.article .body { font-size: 16.5px; line-height: 1.7; color: var(--ink2); display: grid; gap: 14px }
.article .body b, .article .body strong { color: var(--ink) }

/* ---------- pitch (lineups) */
.pitch { position: relative; aspect-ratio: 3/4; max-width: 540px; margin: 0 auto; width: 100%; border-radius: 14px; overflow: hidden;
  background: repeating-linear-gradient(180deg, #13502f 0 10%, #155a35 10% 20%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.18) }
.pitch .ln { position: absolute; border: 2px solid rgba(255,255,255,.22) }
.pitch .ln.half { left: 0; right: 0; top: 50%; border-width: 2px 0 0 }
.pitch .ln.circle { width: 22%; aspect-ratio: 1; border-radius: 50%; left: 39%; top: 50%; transform: translateY(-50%) }
.pitch .ln.box1 { left: 25%; right: 25%; top: 0; height: 14%; border-top: 0 } .pitch .ln.box2 { left: 25%; right: 25%; bottom: 0; height: 14%; border-bottom: 0 }
.pp { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 3px; width: 92px; text-align: center }
.pp b { font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); padding: 1px 6px; border-radius: 6px; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.pp .rt { position: absolute; top: -6px; right: 12px; min-width: 30px; height: 18px; font-size: 12px; border-radius: 5px }
.pp .gl { position: absolute; top: -4px; left: 16px; font-size: 13px }
.pitch-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; font: 700 15px var(--display); letter-spacing: .05em; text-transform: uppercase }
@media (max-width: 560px) { .pp { width: 70px } .pp b { font-size: 10px; max-width: 70px } }

/* ---------- stat bars */
.bars { display: grid; gap: 12px; padding: 4px 16px 16px }
.bar-row { display: grid; gap: 5px }
.bar-row .lbl { display: flex; justify-content: space-between; font-weight: 700; font-variant-numeric: tabular-nums }
.bar-row .lbl span { color: var(--muted); font-weight: 600; font-size: 13px }
.bar { display: grid; grid-template-columns: var(--a) var(--b); gap: 4px; height: 8px }
.bar i { border-radius: 4px; background: var(--h, var(--accent)) } .bar i + i { background: var(--aw, var(--surface3)) }

/* ---------- player page */
.pcard { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line2); background: radial-gradient(500px 260px at 0% 0%, color-mix(in srgb, var(--fc) 45%, transparent), transparent 70%), linear-gradient(160deg, var(--surface2), var(--surface)) }
.pcard-in { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 22px }
.pcard h1 { font: 800 clamp(30px, 5vw, 46px)/0.95 var(--display); text-transform: uppercase }
.pcard .sub { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; color: var(--ink2) }
.pcard .big-rt { display: grid; justify-items: center; gap: 4px }
.pcard .big-rt small { font: 700 12px var(--display); letter-spacing: .12em; color: var(--muted); text-transform: uppercase }
@media (max-width: 640px) { .pcard-in { grid-template-columns: auto 1fr; } .pcard .big-rt { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; align-items: center } }
.statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; padding: 0 16px 16px }
.stat { border-radius: 12px; padding: 12px; background: var(--surface2); border: 1px solid var(--line) }
.stat b { display: block; font: 800 28px/1 var(--display); font-variant-numeric: tabular-nums }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600 }
.stat small { display: block; font-size: 11px; color: var(--accent2); font-weight: 700; margin-top: 3px }
.spark { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding: 0 16px 6px }
.spark div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100% }
.spark i { width: 100%; max-width: 36px; border-radius: 6px 6px 2px 2px; background: var(--accent) }
.spark span { font: 700 12px var(--display) }

/* ---------- club page */
.chead { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line2); background: linear-gradient(120deg, color-mix(in srgb, var(--c1) 55%, transparent), transparent 60%), linear-gradient(300deg, color-mix(in srgb, var(--c2) 35%, transparent), transparent 55%), var(--surface) }
.chead-in { display: flex; align-items: center; gap: 20px; padding: 22px }
.chead .crest { width: 96px; height: 96px }
.chead h1 { font: 800 clamp(32px, 6vw, 52px)/0.95 var(--display); text-transform: uppercase }
.kpis { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px }
.kpis div b { display: block; font: 800 26px/1 var(--display) } .kpis div span { font-size: 12px; color: var(--muted); font-weight: 600 }
@media (max-width: 560px) { .chead .crest { width: 64px; height: 64px } .chead-in { padding: 16px; gap: 14px } }
.squad { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; padding: 0 16px 16px }
.sq { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line) }
.sq b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.sq small { color: var(--muted); font-size: 12px }

/* ---------- transfers */
.tr { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line) }
.tr:first-child { border-top: 0 }
.tr b { font-weight: 700 }
.tr .move { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); flex-wrap: wrap; margin-top: 2px }
.tr .move svg { width: 14px; height: 14px; color: var(--muted) }
.tr .move .mv { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap }
.tr .when { font-size: 12px; color: var(--muted); font-weight: 600; text-align: right }
.ttype { font: 700 11px var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px }
.ttype.in { background: color-mix(in srgb, var(--win) 18%, transparent); color: var(--win) } .ttype.out { background: color-mix(in srgb, var(--loss) 15%, transparent); color: var(--loss) }

/* ---------- season */
.prob { display: grid; grid-template-columns: 30px minmax(0, 1fr) 70px; gap: 10px; align-items: center; padding: 9px 16px; border-top: 1px solid var(--line) }
.prob:first-child { border-top: 0 }
.prob .meter { height: 10px; border-radius: 5px; background: var(--surface3); overflow: hidden; margin-top: 5px }
.prob .meter i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--accent), var(--gold)) }
.prob .v { font: 800 20px var(--display); text-align: right; font-variant-numeric: tabular-nums }

/* ---------- live */
.live-strip { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: linear-gradient(90deg, color-mix(in srgb, var(--live) 22%, transparent), transparent); border-bottom: 1px solid var(--line) }
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; padding: 0 16px 16px }
.clip { border-radius: 12px; overflow: hidden; background: #000; position: relative; aspect-ratio: 16/9 }
.clip video { width: 100%; height: 100%; object-fit: cover; display: block }
.clip .cap { position: absolute; left: 8px; bottom: 8px; font: 700 13px var(--display); background: rgba(0,0,0,.6); color: #fff; padding: 2px 8px; border-radius: 6px; pointer-events: none }

/* ---------- search */
.search { position: fixed; inset: 0; z-index: 70; background: rgba(3,6,15,.7); backdrop-filter: blur(4px); display: grid; align-items: start; justify-items: center; padding: 70px 14px }
.search-box { width: min(620px, 100%); background: var(--surface); border: 1px solid var(--line2); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow) }
.search-box input { width: 100%; padding: 16px 18px; background: none; border: 0; outline: 0; color: var(--ink); font: 600 17px var(--body); border-bottom: 1px solid var(--line) }
.search-res { max-height: 60vh; overflow: auto }
.search-res a { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--line) }
.search-res a:hover, .search-res a.sel { background: var(--surface2) }
.loading { display: grid; place-items: center; min-height: 50vh; color: var(--muted); font: 700 18px var(--display); letter-spacing: .12em; text-transform: uppercase }
.footer { max-width: 1240px; margin: 0 auto; padding: 10px 18px 40px; color: var(--muted); font-size: 12.5px; text-align: center }
.footer img { margin: 0 auto 8px } .footer a { color: var(--accent2); font-weight: 600 }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px }
.back svg { width: 18px; height: 18px }

/* ===================== simplicity pass (11/25): calmer, FotMob-clear ===================== */
.card-h { padding: 14px 16px 8px }
.card-h h2 { font: 700 16px/1.2 var(--body); letter-spacing: 0; text-transform: none }
.card-h h2::before { display: none }
.dayh { font: 600 13px var(--body); letter-spacing: 0; text-transform: none; padding: 9px 16px }
.board .side b { font: 700 18px/1.15 var(--body); text-transform: none; letter-spacing: 0 }
.board .when { font: 600 12px var(--body); letter-spacing: .02em; text-transform: none; color: var(--muted) }
.hero { background: linear-gradient(135deg, color-mix(in srgb, var(--c1, #263c5c) 55%, transparent) -30%, transparent 45%), linear-gradient(225deg, color-mix(in srgb, var(--c2, #c5a15a) 55%, transparent) -30%, transparent 45%), var(--surface) }
.hero::after { display: none }
.pcard h1, .chead h1 { font: 800 clamp(26px, 4.4vw, 38px)/1.05 var(--body); text-transform: none; letter-spacing: -.01em }
.story b { font: 700 16px/1.25 var(--body); text-transform: none; letter-spacing: 0 }
.story.lead-story b { font-size: 22px }
.article h1 { font: 800 clamp(26px, 5vw, 40px)/1.1 var(--body); text-transform: none; letter-spacing: -.01em }
.tag { font: 700 11px var(--body); letter-spacing: .04em }
.pos { font: 700 11px var(--body); letter-spacing: .02em }
.tbl th { font: 600 12px var(--body); letter-spacing: 0; text-transform: none }
.lead small, .mrow .meta { font-weight: 500 }
.mrow .t { font-weight: 600 }
.mrow .t.won span { font-weight: 800 }
.nav a, .navmore { padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--muted); white-space: nowrap }
.navmore:hover { color: var(--ink); background: var(--surface) }
.navmore.on { color: var(--ink); background: var(--surface2); box-shadow: inset 0 -2px 0 var(--accent) }
.navmenu { position: fixed; z-index: 75; min-width: 220px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line2); box-shadow: var(--shadow); display: grid }
.navmenu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px }
.navmenu a:hover { background: var(--surface2) }
.navmenu svg { width: 18px; height: 18px; color: var(--accent2) }
.tabs-mobile { grid-template-columns: repeat(5, 1fr) }
/* day strip */
.daystrip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px 12px 10px; border-bottom: 1px solid var(--line); scroll-behavior: auto }
.daystrip::-webkit-scrollbar { display: none }
.dchip { flex: none; display: grid; justify-items: center; gap: 1px; min-width: 58px; padding: 7px 8px; border-radius: 12px; color: var(--muted) }
.dchip b { font: 800 20px/1.1 var(--body); color: var(--ink2) }
.dchip small { font-size: 11px; font-weight: 600 }
.dchip:hover { background: var(--surface2) }
.dchip.on { background: var(--accent); color: var(--on-accent) } .dchip.on b { color: var(--on-accent) }
.dayhead { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 6px; font-weight: 700 }
/* live card on home */
.livecard { display: grid; grid-template-columns: auto minmax(0,1fr) auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--live) 40%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--live) 14%, var(--surface)), var(--surface)) }
.lc-t { display: flex; align-items: center; gap: 8px; min-width: 0 } .lc-t.r { justify-content: flex-end }
.lc-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.lc-s { display: grid; justify-items: center; font: 800 26px/1 var(--display) } .lc-s small { font: 600 11px var(--body); color: var(--live); margin-top: 3px }
.lc-go svg { width: 20px; height: 20px; color: var(--muted) }
@media (max-width: 560px) { .livecard { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); } .livecard .tag, .lc-go { display: none } }
/* compact news rows */
.nrow { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line) }
.nrow:first-of-type { border-top: 0 }
.nrow:hover { background: var(--surface2) }
.nimg { width: 64px; height: 44px; border-radius: 8px; background: var(--surface3) center/cover no-repeat }
.nrow b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; font-size: 14px; line-height: 1.3 }
.nrow small { font-size: 12px }
/* quieter percentile bars */
.pctbar { height: 6px; border-radius: 3px; background: var(--surface3); overflow: hidden } .pctbar i { display: block; height: 100%; border-radius: 3px; background: var(--accent) }
.board-card:not(.open) .extra { display: none }
.showmore { display: block; width: 100%; padding: 12px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--accent2) }
.lead .v { font: 800 18px var(--body) }
.hero-actions:empty { display: none }

/* ===================== NAC brand pieces (12/3) ===================== */
.kicker { display: block; font: 700 12.5px/1.2 "Barlow", var(--body); letter-spacing: .3em; text-transform: uppercase; color: var(--gold) }
.nac-hero { background: linear-gradient(120deg, var(--bg2), var(--surface) 55%, var(--surface2)); border-color: color-mix(in srgb, var(--gold) 34%, transparent) }
.nac-hero::before { content: ""; position: absolute; right: -70px; top: -90px; width: 460px; height: 460px; background: url(/brand/nac-star.svg) center/contain no-repeat; opacity: .07; pointer-events: none }
:root[data-theme="light"] .nac-hero::before { background-image: url(/brand/nac-star-navy.svg); opacity: .08 }
.nac-hero .hero-in { padding: 30px 28px 28px }
.nac-hero h1 { margin: 14px 0 0; font: 700 clamp(15px, 2.3vw, 23px)/1.1 "Barlow", var(--body); letter-spacing: .34em; text-transform: uppercase; color: var(--gold) }
.nac-hero h1 span { display: block; margin-top: 6px; font: 700 clamp(36px, 7.2vw, 78px)/.98 "Barlow", var(--body); letter-spacing: .07em; color: var(--ink) }
.nac-hero p { max-width: 640px; margin-top: 16px; font-size: 15px }
.nac-hero .kpis { margin-top: 20px; gap: 30px } .nac-hero .kpis div b { font-size: 34px; color: var(--ink) }
.nac-hero .hero-actions { justify-content: flex-start; margin-top: 22px }
.nac-hero::after { display: block; content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: auto; height: 3px; background: var(--gold); inset: auto 0 0 0 }
@media (max-width: 760px) { .nac-hero .hero-in { padding: 22px 16px 20px } .nac-hero::before { width: 300px; height: 300px; right: -80px; top: -60px } .nac-hero .kpis { gap: 22px } }

/* ---- 12/4/2026 accounts: Discord sign-in, follow a team, alerts switch, fan votes, staff desk ---- */
#mebox { display: inline-flex }
.mebtn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); font-weight: 700; font-size: 13.5px; color: var(--ink) }
.mebtn:hover { background: var(--surface) }
.mebtn svg { width: 18px; height: 18px; color: var(--gold) }
.mebtn.in { padding: 0; width: 38px; justify-content: center; border-color: var(--gold); overflow: hidden }
.mebtn.in img { width: 100%; height: 100%; object-fit: cover; display: block }
.me-init { display: grid; place-items: center; width: 100%; height: 100%; background: var(--surface3); color: var(--gold); font: 800 16px var(--display) }
@media (max-width: 520px) { .mebtn:not(.in) span { display: none } .mebtn:not(.in) { width: 38px; padding: 0; justify-content: center } }
.btn.discord { background: #5865f2; border-color: transparent; color: #fff }
.btn.discord:hover { background: #4752c4 }
.btn.sm { padding: 7px 12px; border-radius: 10px; font-size: 13px }
.btn.sm svg { width: 15px; height: 15px }
.btn.danger { color: var(--loss); border-color: color-mix(in srgb, var(--loss) 40%, transparent); background: transparent }
.btn[disabled] { opacity: .55; cursor: default }
.btn.follow { background: color-mix(in srgb, var(--bg) 55%, transparent); border-color: color-mix(in srgb, var(--gold) 55%, transparent); color: var(--ink); backdrop-filter: blur(4px) }
.btn.follow svg { color: var(--gold) }
.btn.follow.on { background: var(--accent); border-color: transparent; color: var(--on-accent) }
.btn.follow.on svg { color: var(--on-accent) }
.btn.vote.on { background: var(--accent); border-color: transparent; color: var(--on-accent) }
.chead-act { margin-left: auto; align-self: flex-start }
@media (max-width: 640px) { .chead-in { flex-wrap: wrap } .chead-act { margin-left: 0; width: 100%; align-self: auto } .chead-act .btn { width: 100% } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 90; max-width: min(520px, calc(100vw - 28px)); padding: 12px 18px; border-radius: 14px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: var(--shadow); text-align: center; animation: toast-in .18s ease-out }
.toast.bad { background: var(--loss); color: #fff }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px) } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none } }
.search-box.ask { padding: 22px; overflow: visible }
.search-box.ask h2 { font: 800 24px/1.1 var(--display); text-transform: uppercase; margin: 0 0 8px }
.search-box.ask p { margin: 0 0 16px; font-size: 14.5px }
.ask-row { display: flex; gap: 10px; flex-wrap: wrap }
.me-top { display: flex; align-items: center; gap: 16px; padding: 18px; flex-wrap: wrap }
.me-av { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; flex: none; font-size: 30px }
.me-name { font: 800 clamp(26px, 5vw, 38px)/1 var(--display); text-transform: uppercase; margin: 0 0 4px; overflow-wrap: anywhere }
.nac-hero h1.me-h { margin-top: 12px; font: 700 clamp(30px, 6vw, 56px)/1 "Barlow", var(--body); letter-spacing: .05em; color: var(--ink) }
.nac-hero p.me-p { max-width: 680px }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 4px 16px 18px }
.perks div { padding: 14px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line) }
.perks b { display: flex; align-items: center; gap: 8px; margin-bottom: 6px }
.perks b svg { width: 18px; height: 18px; color: var(--gold); flex: none }
.perks span { color: var(--muted); font-size: 13.5px; line-height: 1.45; display: block }
.lead.frow:hover { background: none }
.lead.frow a b { display: block }
.switchrow { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding-top: 4px }
.switchrow > div { min-width: 0 } .switchrow b { display: block; margin-bottom: 3px }
.switch { flex: none; width: 54px; height: 32px; border-radius: 999px; background: var(--surface3); border: 1px solid var(--line2); position: relative; transition: background .15s }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink2); transition: transform .15s, background .15s }
.switch.on { background: var(--accent); border-color: transparent } .switch.on i { transform: translateX(22px); background: var(--on-accent) }
.switch:focus-visible, .vrow:focus-visible, .mebtn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px }
.note { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface2); font-size: 13.5px; border: 1px solid var(--line) }
.note.warn { border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: color-mix(in srgb, var(--gold) 10%, transparent) }
.yteam + .yteam { border-top: 1px solid var(--line2) }
.yteam .lead { border-top: 0 }
/* votes */
.votebox { padding: 0 12px 12px }
.vote-h { display: flex; justify-content: space-between; gap: 10px; padding: 0 4px 10px }
.vote-h b { color: var(--ink2); white-space: nowrap }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px }
.vrow { position: relative; overflow: hidden; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); text-align: left; color: var(--ink) }
.vrow:not([disabled]):hover { border-color: var(--gold) }
.vrow[disabled] { cursor: default }
.vrow .vbar { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--gold) 20%, transparent); pointer-events: none; transition: width .3s }
.vrow > :not(.vbar) { position: relative }
.vrow .vn { min-width: 0 } .vrow .vn b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px }
.vrow .vn small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11.5px }
.vrow .vn small .crest { width: 14px; height: 14px }
.vrow .vp { font: 700 13px var(--body); font-variant-numeric: tabular-nums; color: var(--ink2) }
.vrow.mine { border-color: var(--gold) } .vrow.mine .vp { color: var(--gold) }
.vrow.won { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, var(--surface2)) }
.cliprow { display: flex; align-items: center; justify-content: space-between; gap: 10px }
.cliprow .btn, .cliprow .tag { flex: none }
.weekh { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline }
/* staff desk forms */
.sform { display: grid; gap: 12px; padding-top: 4px }
.sform label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink2); min-width: 0 }
.sform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
@media (max-width: 520px) { .sform .two, .mfix .two { grid-template-columns: 1fr } }
.inp { width: 100%; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); color: var(--ink); font: 500 15px var(--body) }
.inp:focus { outline: 2px solid var(--gold); outline-offset: 1px }
select.inp { appearance: auto }
.sform .btn { justify-self: start }
.dedgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px }
.sform label.dedrow { grid-template-columns: 26px minmax(0, 1fr) 84px; align-items: center; gap: 10px; color: var(--ink); font-size: 14.5px }
.mfix { display: block } .mfix details { margin-top: 6px } .mfix summary { cursor: pointer; list-style: none; display: inline-block }
.mfix summary::-webkit-details-marker { display: none }
.mfix .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px }
.mfix label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink2) }

.sform [hidden] { display: none !important; }   /* the score boxes only show for "played, no match file" */
.grid2 > * { min-width: 0 }   /* one column on phones: a long dropdown must not push the page wider than the screen */
[data-mount="staffdesk"] { min-width: 0 } .mfix > span { display: block; min-width: 0 } .mfix b { white-space: normal } .mfix small { display: block }   /* long match names wrap or trim instead of widening the phone page */

/* two columns of cards with no holes: each column stacks on its own (cards keep their order down the left, then the right) */
.grid2.tight { display: block; columns: 2; column-gap: 18px }
.grid2.tight > * { break-inside: avoid; margin: 0 0 18px; display: block }
.grid2.tight > .card { display: block }
@media (max-width: 760px) { .grid2.tight { columns: 1 } .grid2.tight > * { margin-bottom: 14px } }
