/* Layout: single phone-width column, sticky club header, fixed bottom tab bar, bottom sheets for detail */
/* Floodlight theme: Floodlight Day (light) by default, Floodlight (dark) when the phone is in dark mode.
   Blue = APB, orange = conceded / defeats, pink (away kit) = assists and highlights. */
:root {
  --bg: #f3f5fa; --surface: #ffffff; --surface-2: #e9edf6; --fg: #0b1226; --muted: #58627a; --line: #dde3ef;
  --primary: #2450e6; --primary-fg: #ffffff; --primary-soft: #e3eafe; --primary-text: #1e46cc;
  --hero: #2450e6; --hero-fg: #ffffff; --hero-muted: #d8e2ff;
  --win: #0b7f53; --win-fg: #ffffff; --loss: #d93a30; --loss-fg: #ffffff; --draw: #c5ccda; --draw-fg: #0b1226;
  --goal: #1e46cc; --assist: #d02a7c; --pink: #d02a7c; --pink-soft: #fce4f0; --pink-bright: #ff7ab8;
  --jpl-bg: #01ffff; --jpl-fg: #0b3b9f; --wfl-bg: #001d42; --wfl-fg: #ffffff;
  --tour-bg: #e28699; --tour-fg: #ffffff; --fr-bg: #e9edf6; --fr-fg: #3b475f;
  --shadow: 0 1px 2px rgba(11,18,38,.05), 0 10px 30px rgba(11,18,38,.07);
  --scrim: rgba(11,18,38,.45); --tabs-bg: rgba(255,255,255,.9);
  --gold: #f2c230; --silver: #c9d1de; --bronze: #b8723a;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 20px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #070b16; --surface: #10172a; --surface-2: #1a2340; --fg: #eef2ff; --muted: #8d98b8; --line: #222c4a;
  --primary: #3466ff; --primary-fg: #ffffff; --primary-soft: #1a2a5c; --primary-text: #8fb0ff;
  --hero: #2450e6; --hero-fg: #ffffff; --hero-muted: #d8e2ff;
  --win: #2fc589; --win-fg: #052016; --loss: #ff6b5f; --loss-fg: #2a0705; --draw: #5d6888; --draw-fg: #ffffff;
  --goal: #8fb0ff; --assist: #ff7ab8; --pink: #ff7ab8; --pink-soft: #3a1a3a; --pink-bright: #ff7ab8;
  --jpl-bg: #01d9d9; --jpl-fg: #062a6e; --wfl-bg: #2c4f86; --wfl-fg: #ffffff;
  --tour-bg: #c9677c; --tour-fg: #ffffff; --fr-bg: #1a2340; --fr-fg: #cdd5e6;
  --shadow: none; --scrim: rgba(0,0,0,.6); --tabs-bg: rgba(16,23,42,.9); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #070b16; --surface: #10172a; --surface-2: #1a2340; --fg: #eef2ff; --muted: #8d98b8; --line: #222c4a;
  --primary: #3466ff; --primary-fg: #ffffff; --primary-soft: #1a2a5c; --primary-text: #8fb0ff;
  --hero: #2450e6; --hero-fg: #ffffff; --hero-muted: #d8e2ff;
  --win: #2fc589; --win-fg: #052016; --loss: #ff6b5f; --loss-fg: #2a0705; --draw: #5d6888; --draw-fg: #ffffff;
  --goal: #8fb0ff; --assist: #ff7ab8; --pink: #ff7ab8; --pink-soft: #3a1a3a; --pink-bright: #ff7ab8;
  --jpl-bg: #01d9d9; --jpl-fg: #062a6e; --wfl-bg: #2c4f86; --wfl-fg: #ffffff;
  --tour-bg: #c9677c; --tour-fg: #ffffff; --fr-bg: #1a2340; --fr-fg: #cdd5e6;
  --shadow: none; --scrim: rgba(0,0,0,.6); --tabs-bg: rgba(16,23,42,.9); color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Header */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.crest { width: 34px; height: 37px; flex: none; display: block; object-fit: contain; }
.hdr h1 { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .02em; margin: 0; line-height: 1; text-transform: uppercase; }
.hdr .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.hdr .back { border: 0; background: var(--surface-2); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.hdr-actions { margin-left: auto; display: flex; gap: 6px; }

/* Filter bar */
.filters { display: flex; gap: 8px; align-items: center; padding-block: 10px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.season-sel { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 10px; font-weight: 600; font-size: 13px; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }

/* Generic */
.stack { display: flex; flex-direction: column; gap: 12px; }
.sec { margin-top: 20px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.link { background: none; border: 0; color: var(--primary); font-weight: 600; font-size: 13px; padding: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 14px 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tnum { font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--muted); padding: 24px 12px; font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 14px 16px; font-weight: 700; font-size: 15px; background: var(--primary); color: var(--primary-fg); }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface-2); color: var(--fg); }
.btn.danger { background: var(--loss); color: #fff; }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }

/* Badges */
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 6px; background: var(--fr-bg); color: var(--fr-fg); white-space: nowrap; }
.b-JPL { background: var(--jpl-bg); color: var(--jpl-fg); }
.b-WFL { background: var(--wfl-bg); color: var(--wfl-fg); }
.b-Tournament { background: var(--tour-bg); color: var(--tour-fg); }

/* Result pills / form */
.res { width: 26px; height: 26px; border-radius: 7px; display: inline-grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 15px; color: #fff; flex: none; }
.res.W { background: var(--win); } .res.L { background: var(--loss); } .res.D { background: var(--draw); }
.res.none { background: var(--surface-2); color: var(--muted); }
.form { display: flex; gap: 5px; }

/* Season summary */
.summary { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.summary > div { padding: 12px 4px; border-right: 1px solid var(--line); }
.summary > div:last-child { border-right: 0; }
.big { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; }
.summary .k { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.summary-foot { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; gap: 10px; flex-wrap: wrap; }

/* Match rows */
.match { display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.match .opp { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match .meta { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-top: 3px; flex-wrap: wrap; }
.score { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; white-space: nowrap; }
.vid-dot { display: inline-flex; align-items: center; gap: 3px; color: var(--primary); font-weight: 600; }

/* Leaderboard */
.lb-head, .lb-row { display: grid; grid-template-columns: 22px 1fr 34px 34px 34px 40px; align-items: center; gap: 6px; }
.lb-head { padding: 0 14px 6px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lb-head span:nth-child(n+3), .lb-row .n { text-align: right; }
.lb-row { padding: 10px 14px; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); }
.lb-row:first-child { border-top: 0; }
.lb-row .rk { font-family: var(--display); font-weight: 700; color: var(--muted); }
.lb-row .n { font-weight: 700; font-variant-numeric: tabular-nums; }
.n.g { color: var(--goal); } .n.a { color: var(--assist); }
.sortbar { display: flex; gap: 6px; margin-bottom: 10px; }

/* Avatar */
.av { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; overflow: hidden; background: var(--primary); }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.sm { width: 26px; height: 26px; font-size: 10px; }
.av.xl { width: 88px; height: 88px; font-size: 30px; font-family: var(--display); }
.pname { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pname span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }

/* Player profile */
.hero { display: flex; gap: 16px; align-items: center; }
.hero h2 { font-family: var(--display); font-size: 30px; margin: 0; line-height: 1; text-transform: uppercase; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; }
.kpi .big { font-size: 26px; }
.kpi .k { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; text-align: right; padding: 8px 10px; }
td { text-align: right; padding: 9px 10px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; }
tr.total td { font-weight: 700; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.ms { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; }
.ms .ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-family: var(--display); font-weight: 800; font-size: 13px; }
.ms.locked { opacity: .45; }

/* Bars */
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 56px 1fr 1fr; gap: 6px; align-items: center; font-size: 12px; }
.bar-row .lbl { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 16px; border-radius: 4px; background: var(--surface-2); position: relative; overflow: hidden; }
.bar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; display: block; }
.bar.for i { left: 0; background: var(--win); }
.bar.ag i { right: 0; background: var(--loss); }
.bar b { position: absolute; top: 0; font-size: 11px; line-height: 16px; font-weight: 700; color: var(--fg); padding: 0 5px; }
.bar.for b { right: 0; } .bar.ag b { left: 0; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* H2H */
.h2h-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 12px 14px; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); }
.h2h-row:first-child { border-top: 0; }
.wdl { display: flex; gap: 4px; font-family: var(--display); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.wdl span { min-width: 24px; text-align: center; padding: 2px 4px; border-radius: 5px; }
.wdl .w { color: var(--win); } .wdl .d { color: var(--draw); } .wdl .l { color: var(--loss); }
.split { height: 8px; border-radius: 4px; overflow: hidden; display: flex; background: var(--surface-2); margin-top: 6px; }
.split i { display: block; height: 100%; }

/* Sheets */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding-top: 8px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.grab { width: 40px; height: 4px; background: var(--line); border-radius: 2px; margin: 0 auto 10px; }
.sheet h3 { font-family: var(--display); font-size: 24px; margin: 0; text-transform: uppercase; }
.scoreline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; gap: 8px; padding: 12px 0; }
.scoreline .t { font-weight: 700; font-size: 14px; }
.scoreline .s { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; }
.tl { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.tl-item .min { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-item.opp .who { color: var(--muted); }
.tl-item .who { font-weight: 600; }
.tl-item .ast { font-size: 12px; color: var(--muted); }
.clip-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); text-decoration: none; white-space: nowrap; }
.clip-btn.has { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.squad-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .flabel { font-size: 13px; font-weight: 600; }
.field input[type=text], .field input[type=url], .field input[type=date], .field select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 15px; }
.hint { font-size: 12px; color: var(--muted); }
.seg { display: flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 4px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tick { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; font-weight: 600; text-align: left; }
.tick[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.tick .box { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.tick[aria-pressed="true"] .box { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }

/* Live */
.live-top { text-align: center; padding-top: 6px; }
.clock { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; color: var(--primary); font-variant-numeric: tabular-nums; }
.half-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); margin-top: 6px; }
.live-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; }
.live-score .s { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; }
.live-score .t { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.del { border: 0; background: none; color: var(--muted); font-size: 18px; width: 32px; height: 32px; border-radius: 50%; }
.notice { font-size: 13px; padding: 10px 12px; border-radius: 10px; background: var(--primary-soft); color: var(--fg); }

/* Tabs */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; display: flex; justify-content: center; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.tabs-in { display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; max-width: 480px; }
.tab { border: 0; background: none; padding: 8px 2px 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); }
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--primary); }
.tab.kick .ring { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--primary-fg); display: grid; place-items: center; margin-top: -18px; box-shadow: 0 4px 12px rgba(11,59,159,.35); }
.tab.kick.live .ring { background: var(--loss); }

.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; z-index: 60; max-width: calc(100% - 32px); }
.proto-note { font-size: 12px; color: var(--muted); text-align: center; padding: 18px 0 4px; }
video { width: 100%; border-radius: 10px; background: #000; display: block; }

/* Competition icons inside badges */
.badge { display: inline-flex; align-items: center; gap: 4px; }
.badge .ci { width: 13px; height: 13px; flex: none; display: block; }
.badge img.ci { object-fit: contain; }
.comp-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.comp-ico .ci, .comp-ico img { width: 24px; height: 24px; object-fit: contain; }

/* Tournament group card */
.tour { overflow: hidden; }
.tour-h { display: flex; gap: 12px; align-items: center; padding: 12px 14px; }
.nw { white-space: nowrap; }
.tour-name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.tour-meta { font-size: 12px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.tour-games { border-top: 1px solid var(--line); background: var(--surface-2); }
.tg { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; padding: 9px 14px 9px 66px; border-top: 1px solid var(--line); font-size: 14px; }
.tg:first-child { border-top: 0; }
.tg .res { width: 22px; height: 22px; font-size: 13px; border-radius: 6px; }
.tg .o { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg .o small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.tg .sc { font-family: var(--display); font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; }
.finish { flex: none; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); background: var(--surface); color: var(--fg); white-space: nowrap; }
.finish svg { width: 14px; height: 14px; }
.finish.add { color: var(--primary); border-style: dashed; }
.finish.gold { background: var(--gold); border-color: var(--gold); color: #2a1d00; }
.finish.silver { background: var(--silver); border-color: var(--silver); color: #1d2433; }
.finish.bronze { background: var(--bronze); border-color: var(--bronze); color: #ffffff; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opts button { padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; }
.opts button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.logo-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.logo-row:first-of-type { border-top: 0; }
.hdr .gear { border: 0; background: var(--surface-2); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .sheet { animation: up .22s ease-out; } @keyframes up { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } } }

/* Production additions */
.tabs-in.four { grid-template-columns: repeat(4, 1fr); }
.field input[type=password] { width: 100%; }
button.notice { cursor: pointer; font: inherit; color: var(--fg); }
.est { color: var(--muted); font-weight: 700; margin-left: 1px; cursor: help; }

/* Scorer summary in the match sheet: ours left, theirs right */
.sum { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 0 4px; border-top: 1px solid var(--line); }
.sum-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sum-col:first-child { text-align: right; padding-right: 12px; border-right: 1px solid var(--line); }
.sc-name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.sc-min { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.balls { letter-spacing: 1px; font-size: 12px; line-height: 1.2; margin-bottom: 2px; }
.sc-ast { font-size: 13px; color: var(--muted); margin-top: 2px; }


/* =====================================================================
   Floodlight redesign (Oct 2026). Overrides the base styles above.
   ===================================================================== */
body { font-size: 15px; }
.app { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
.big, .score, .clock, .scoreline .s, .live-score .s, .res, .tg .sc, .wdl, .lb-row .rk, .tl-item .min, .hdr h1, .hero h2, .sheet h3, .ms .ico { font-stretch: 125%; }
.h2 { margin: 0; font-size: 18px; font-weight: 800; font-stretch: 112%; letter-spacing: -.005em; }
.sec-h { align-items: center; }
.link { color: var(--primary-text); font-weight: 700; font-size: 14px; }
.vid-dot { color: var(--primary-text); }

/* Header + filters */
.hdr { background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
body::before { background: var(--bg); }
.hdr-in { padding-block: 12px 8px; }
.hdr h1 { font-size: 21px; letter-spacing: -.01em; line-height: 1.05; }
.hdr .sub { font-size: 13px; font-weight: 500; }
.hdr .back, .hdr .gear { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
.hdr .gear { color: var(--muted); }
.filters { padding-block: 6px 12px; }
.season-sel { height: 40px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--fg); }
.chip { height: 40px; padding: 0 16px; font-size: 14px; font-weight: 700; color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }

/* Cards, buttons */
.card { border-radius: var(--r); }
.pad { padding: 16px; }
.btn { border-radius: 16px; padding: 15px 16px; font-weight: 800; }
.btn.ghost { background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; }
.btn.sm { border-radius: 12px; }
.label { letter-spacing: .08em; }

/* Result pills */
.res { width: 30px; height: 30px; border-radius: 10px; font-family: var(--body); font-size: 14px; }
.res.W { background: var(--win); color: var(--win-fg); } .res.L { background: var(--loss); color: var(--loss-fg); } .res.D { background: var(--draw); color: var(--draw-fg); }

/* Home: season card (blue, with the away-kit pink stripe) */
.season { position: relative; overflow: hidden; background: var(--hero); color: var(--hero-fg); border-radius: 24px; padding: 18px 18px 24px; }
.season::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--pink-bright); }
.season-scope { font-size: 13px; font-weight: 600; color: var(--hero-muted); }
.season-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; text-align: center; }
.season-grid > div { padding: 0 4px; }
.season-grid > div + div { border-left: 1px solid rgba(255,255,255,.22); }
.season-grid .big { font-size: 40px; }
.season .k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hero-muted); }
.season-grid .k { margin-top: 6px; }
.season-rows { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.22); }
.season-rows b { font-size: 18px; font-weight: 800; }
.season .diff { font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.18); }
.season .note { font-size: 12px; font-weight: 600; color: var(--hero-muted); }
.season .form { gap: 6px; }
.season .res { width: 28px; height: 28px; border-radius: 9px; font-size: 13px; }
.season .res.W { background: var(--win); color: var(--win-fg); box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.season .res.L { background: var(--loss); color: var(--loss-fg); box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.season .res.D { background: var(--draw); color: var(--draw-fg); box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.season .res.none { background: transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); color: var(--hero-muted); }
/* Other record cards (opponent page) keep the plain summary */
.summary .big { font-size: 32px; }

/* Match rows */
.match { border-radius: 18px; padding: 12px 14px; }
.match .opp { font-size: 15px; }
.score { font-size: 24px; letter-spacing: -.01em; }

/* When goals happen */
.bar-row { grid-template-columns: 44px 1fr 1fr; }
.bar-head { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.bar-head span:nth-child(2) { text-align: right; }
.bar { height: 22px; border-radius: 7px; }
.bar i { border-radius: 7px; }
.bar b { line-height: 22px; font-size: 12px; font-weight: 800; }
.legend { margin-top: 14px; font-weight: 600; flex-wrap: wrap; }
.legend i { border-radius: 3px; }
.legend-note { margin-left: auto; }

/* Players + leaderboard */
.lb-row { padding: 12px 14px; }
.n.g { color: var(--goal); } .n.a { color: var(--assist); }
.av { background: var(--primary); }
.kpi { border-radius: 18px; padding: 12px 6px; box-shadow: var(--shadow); }
.kpi .big { font-size: 28px; }
.ms { border-radius: 14px; }
.ms .ico { background: var(--pink-soft); color: var(--pink); }
.hero h2 { font-size: 32px; letter-spacing: -.01em; }

/* Bottom sheets + match report */
.sheet { background: var(--bg); border-radius: 28px 28px 0 0; }
.grab { width: 40px; height: 5px; border-radius: 3px; margin-bottom: 14px; }
.sheet h3 { font-size: 22px; letter-spacing: -.01em; }
.score-hero { position: relative; overflow: hidden; background: var(--hero); color: var(--hero-fg); border-radius: 24px; padding: 6px 14px 22px; margin-top: 12px; }
.score-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--pink-bright); }
.score-hero .scoreline .s { font-size: 56px; letter-spacing: -.03em; }
.score-hero .dash { color: var(--hero-muted); font-weight: 600; }
.score-hero .link { color: var(--hero-fg); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; }
.score-hero .res { box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.sum { gap: 10px; border-top: 0; padding: 12px 0 0; }
.sum-col { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); align-self: start; }
.sum-col:first-child { text-align: left; padding-right: 14px; border-right: 1px solid var(--line); }
.balls { font-size: 15px; letter-spacing: 2px; }
.sc-ast { color: var(--assist); font-weight: 700; font-size: 12px; }
.rec-card { margin-top: 12px; }
.rec-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-text); display: grid; place-items: center; flex: none; }
.rec-ico svg { width: 20px; height: 20px; }
.tl.card { padding: 0 14px; }
.tl.card > .tl-item:first-child, .tl.card > .tl-break:first-child { border-top: 0; }
.tl-item .min { font-size: 17px; }
.tl-item .who { font-weight: 700; }
.tl-item .ast { color: var(--assist); font-weight: 700; }
.clip-btn { padding: 8px 12px; }
.pill { padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); }

/* Forms */
.field label, .field .flabel { font-weight: 700; }
.field input[type=text], .field input[type=url], .field input[type=date], .field select, .field input[type=password] { border-radius: 14px; padding: 13px 14px; background: var(--surface-2); }
.seg { border-radius: 14px; padding: 4px; }
.seg button { padding: 10px 4px; border-radius: 11px; font-size: 14px; font-weight: 700; }
.seg button[aria-pressed="true"] { color: var(--fg); box-shadow: 0 1px 3px rgba(11,18,38,.12); }
.tick { border-radius: 14px; min-height: 48px; }
.notice { border-radius: 14px; background: var(--primary-soft); }

/* Live match */
.live-top { display: flex; flex-direction: column; align-items: center; padding: 18px 16px 16px; }
.clock { font-size: 76px; letter-spacing: -.03em; color: var(--primary-text); }
.half-tag { font-size: 12px; font-weight: 800; padding: 4px 12px; background: var(--primary-soft); color: var(--primary-text); margin-top: 10px; }
.live-score { position: relative; overflow: hidden; background: var(--hero); color: var(--hero-fg); border-radius: 24px; padding: 16px 16px 20px; }
.live-score::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--pink-bright); }
.live-score .t { color: var(--hero-muted); font-size: 12px; }
.live-score .s { font-size: 52px; margin-top: 4px; }
.live-score .dash { font-size: 24px; font-weight: 800; color: var(--hero-muted); }
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px 8px 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-align: left; }
.pick-no { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; font-size: 14px; font-stretch: 112%; }
.pick-name { font-weight: 700; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick[aria-pressed="true"] { border: 2px solid var(--primary); background: var(--primary-soft); padding: 7px 11px 7px 7px; }
.pick[aria-pressed="true"] .pick-no { background: var(--primary); color: var(--primary-fg); }
.chips-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.chips-row::-webkit-scrollbar { display: none; }
.ast-chip[aria-pressed="true"] { background: var(--pink-soft); border-color: var(--pink); color: var(--pink); }
.del { width: 44px; height: 44px; border-radius: 12px; font-size: 20px; }
.tl-break { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.tl-break .min { width: 44px; font-weight: 800; font-size: 17px; font-stretch: 112%; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-break-name { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-text); background: var(--primary-soft); padding: 4px 10px; border-radius: 999px; }
.tl-break::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.finish-btn { background: var(--fg); color: var(--bg); }

/* Floating tab bar */
.tabs { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 0; background: transparent; border: 0; }
.tabs-in { max-width: 456px; height: 68px; align-items: center; background: var(--tabs-bg); border: 1px solid var(--line); border-radius: 24px; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.tab { padding: 8px 2px; font-size: 11px; white-space: nowrap; }
.tab[aria-current="page"] { color: var(--primary-text); font-weight: 700; }
.tab.kick .ring { width: 52px; height: 52px; border-radius: 18px; margin-top: -16px; box-shadow: 0 6px 16px rgba(36,80,230,.35); }
.tab.kick.live .ring { background: var(--pink); color: #fff; box-shadow: 0 6px 16px rgba(208,42,124,.35); }
.toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); border-radius: 14px; }
.season .diff { justify-self: end; }
.live-actions .btn { white-space: nowrap; padding-inline: 10px; font-size: 14px; }

/* Phone fit: never wider than the screen, and 16px form text so iPhone doesn't zoom in when you tap a box */
html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
input, select, textarea, .field input[type=text], .field input[type=url], .field input[type=date], .field select, .field input[type=password] { font-size: 16px; }

/* Tournament: carry on to the next match */
.tour-cont { display: flex; gap: 12px; align-items: center; }
.tour-cont b { font-size: 17px; }
.tg-add { color: var(--primary); font-weight: 700; }
.tg-add .plus { width: 22px; height: 22px; border-radius: 6px; border: 1.5px dashed currentColor; display: grid; place-items: center; font-size: 15px; line-height: 1; }

/* =====================================================================
   v2 (Nov 2026): score-first Home, Stats tab, match page with tabs,
   share & export, dark live screen. Overrides the styles above.
   ===================================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.big.w, .w.big { color: var(--win); } .big.l { color: var(--loss); }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); display: grid; place-items: center; font-size: 22px; line-height: 1; flex: none; }
.hdr .gear svg { width: 18px; height: 18px; }

/* Home: last result first */
.hero-card { position: relative; overflow: hidden; background: var(--hero); color: var(--hero-fg); border-radius: 24px; padding: 18px 18px 22px; }
.hero-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--pink-bright); }
.hc-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hero-muted); }
.hc-score { all: unset; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; margin: 14px 0 10px; }
.hc-score .t { font-weight: 800; font-size: 16px; line-height: 1.15; overflow-wrap: anywhere; }
.hc-score .t.r { text-align: right; }
.hc-score .s { font-size: 56px; font-weight: 900; font-stretch: 125%; line-height: 1; letter-spacing: -.02em; }
.hc-score:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 12px; }
.hc-line { margin: 0; font-size: 14px; line-height: 1.45; font-weight: 600; }
.hc-story { color: var(--hero-muted); font-weight: 500; }
.hc-actions { margin-top: 14px; gap: 10px; }
.hc-btn { background: #fff; color: var(--hero); padding: 12px 18px; border-radius: 22px; font-size: 14px; }
.hc-share { background: rgba(255,255,255,.18); color: #fff; width: 44px; height: 44px; padding: 0; border-radius: 22px; }
.hc-res { margin-left: auto; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.season-strip { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.season-strip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ss-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ss-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ss-grid .big { font-size: 30px; }
.ss-grid .k, .ss-form .k, .tile .k, .bento .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.ss-form { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.ss-form .note { margin-left: auto; font-size: 12px; color: var(--muted); }
.ss-form .res { width: 28px; height: 28px; font-size: 13px; border-radius: 9px; }
.live-notice { width: 100%; text-align: left; border: 0; display: flex; align-items: center; gap: 10px; }
.dot { width: 9px; height: 9px; border-radius: 5px; background: var(--pink-bright); flex: none; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

/* Segmented tabs (Stats, match page) */
.segtabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.segtabs.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.segtabs button { border: 0; background: none; min-height: 40px; border-radius: 18px; font-weight: 600; font-size: 14px; color: var(--muted); }
.segtabs button[aria-current="page"] { background: var(--surface-2); color: var(--fg); font-weight: 800; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* Stats */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile .big { font-size: 26px; margin: 4px 0 2px; }
.search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--fg); font-size: 16px; }
.search:focus-within { border-color: var(--primary); }
.h2h-row[hidden] { display: none; }

/* Player: bento */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bento .big { font-size: 34px; margin-top: 2px; }
.bento-goals { grid-column: span 2; position: relative; overflow: hidden; background: var(--hero); color: var(--hero-fg); border-radius: 24px; padding: 18px 20px 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.bento-goals::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--pink-bright); }
.bento-goals .k { color: var(--hero-muted); }
.bento-goals .big { font-size: 64px; }
.bento-tag { font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.18); }
.bento-wide { grid-column: span 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bento-wide .big { font-size: 26px; margin: 0; }

/* Match page */
.score-hero { margin-top: 16px; padding: 14px 16px 22px; }
.sh-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--hero-muted); font-weight: 600; }
.score-hero .scoreline { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.score-hero .scoreline .t { overflow-wrap: anywhere; }
.score-hero .dash { margin: 0 2px; }
.score-hero .res { width: auto; padding: 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.flow-line { position: relative; height: 56px; margin: 6px 6px 4px; }
.flow-line::before { content: ""; position: absolute; left: -6px; right: -6px; top: 27px; height: 2px; background: var(--line); border-radius: 1px; }
.flow-line i { position: absolute; width: 12px; height: 12px; margin-left: -6px; border-radius: 6px; }
.flow-line i.us { top: 8px; background: var(--goal); }
.flow-line i.op { top: 36px; background: var(--loss); }
.flow-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.ga-head, .ga-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 52px 60px; align-items: center; gap: 10px; padding: 0 16px; }
.ga-head { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; }
.ga-head span:nth-child(n+3), .ga-row .n { text-align: right; }
.ga-head .a { color: var(--assist); }
.ga-row { width: 100%; min-height: 48px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; }
.ga-row .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ga-row .n { font-weight: 800; font-stretch: 125%; font-variant-numeric: tabular-nums; }
.ktl { padding: 6px 14px; }
.ktl-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; min-height: 52px; padding: 6px 0; border-top: 1px solid var(--line); }
.ktl-row:first-child { border-top: 0; }
.ktl-mid { display: flex; flex-direction: column; align-items: center; font-stretch: 125%; }
.ktl-mid b { font-size: 14px; color: var(--goal); }
.ktl-row.opp .ktl-mid b { color: var(--loss); }
.ktl-mid span { font-size: 12px; color: var(--muted); font-weight: 700; }
.ktl-us { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; }
.ktl-us b { font-size: 15px; }
.ktl-us .ast { font-size: 12px; font-weight: 700; color: var(--assist); }
.ktl-them { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ktl .clip-btn { padding: 5px 10px; margin-top: 2px; }
.winner { font-size: 12px; font-weight: 800; color: var(--win); text-transform: uppercase; letter-spacing: .06em; }
.tick.sq { cursor: pointer; }

/* Share sheet */
.share-top { display: flex; gap: 14px; align-items: flex-start; }
.share-prev { width: 112px; aspect-ratio: 4 / 5; flex: none; border-radius: 14px; overflow: hidden; background: var(--hero); display: grid; place-items: center; }
.share-prev img { width: 100%; height: 100%; display: block; }
.rep-text { margin: 6px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font: 13px/1.45 var(--body); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 150px; overflow: auto; }
.opts-list { overflow: hidden; }
.opts-list > button { width: 100%; min-height: 56px; border: 0; border-top: 1px solid var(--line); background: none; padding: 8px 16px; display: flex; align-items: center; gap: 14px; text-align: left; font-weight: 600; font-size: 15px; color: var(--fg); }
.opts-list > button:first-child { border-top: 0; }
.opts-list > button svg { flex: none; color: var(--muted); width: 20px; height: 20px; }
#print { display: none; }
@media print {
  body.printing > *:not(#print) { display: none !important; }
  body.printing::before { display: none; }
  body.printing #print { display: block; }
  #print img { width: 60%; display: block; margin: 0 auto 16px; }
  #print pre { font: 11pt/1.5 Arial, sans-serif; white-space: pre-wrap; margin: 0 auto; width: 80%; color: #000; }
  @page { size: A4; margin: 14mm; }
}

/* Live match: dark, controls in the thumb zone */
.app.is-live { padding-bottom: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.live-hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); padding: 10px 0; }
.live-hdr .row { gap: 10px; }
.live-tag { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .04em; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-finish { background: var(--fg); color: var(--bg); border-radius: 20px; }
.live-main { flex: 1; display: flex; flex-direction: column; }
.live-hero { margin-top: 4px; position: relative; overflow: hidden; background: var(--primary); color: #fff; border-radius: 28px; padding: 16px 16px 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.live-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--pink-bright); }
.live-hero .period { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 10px; background: rgba(7,11,22,.25); }
.live-sc { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 6px; }
.live-sc .t { font-weight: 800; font-size: 15px; line-height: 1.15; overflow-wrap: anywhere; }
.live-sc .t.r { text-align: right; }
.live-sc .s { font-size: 64px; font-weight: 900; font-stretch: 125%; line-height: 1; }
.live-hero .clock { color: #fff; font-size: 40px; font-weight: 800; letter-spacing: .02em; margin-top: 4px; }
.live-note { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); margin: 10px 0 0; }
.live-tl { padding: 0 14px; }
.live-ctrls { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.app.is-live main { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.rams-goal { min-height: 76px; border-radius: 38px; font-size: 20px; font-weight: 900; font-stretch: 125%; box-shadow: 0 10px 30px rgba(52,102,255,.35); }
.rams-goal svg { width: 24px; height: 24px; }
.opp-goal { min-height: 56px; border-radius: 28px; background: var(--surface); color: var(--fg); border: 1.5px solid var(--line); font-weight: 700; }
.live-ctrls .btn.ghost { min-height: 52px; border-radius: 26px; }
.live-ctrls .brk { color: var(--pink); }
.goal-sheet .picks .pick { min-height: 54px; }
.big-btn { min-height: 60px; border-radius: 30px; font-size: 16px; }
.tabs-in .tab span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* v2.1: collapsible tournaments, player scoring strip, image-only share */
.tour-h { position: relative; }
.tour-toggle { position: absolute; inset: 0; width: 100%; border: 0; background: none; border-radius: var(--r) var(--r) 0 0; z-index: 0; }
.tour-h > :not(.tour-toggle) { position: relative; z-index: 1; pointer-events: none; }
.tour-h > .finish, .tour-h > button.finish { pointer-events: auto; }
.tour .chev { color: var(--muted); display: grid; place-items: center; transition: transform .2s; }
.tour.open .chev { transform: rotate(180deg); }
.tour-games[hidden] { display: none; }
.flow-line.pf i.us { top: 8px; background: var(--goal); }
.flow-line.pf i.as { top: 36px; background: var(--assist); }
.pf-bands { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 12px; text-align: center; }
.pf-bands div { background: var(--surface-2); border-radius: 10px; padding: 8px 2px; display: flex; flex-direction: column; gap: 2px; }
.pf-bands b { font-size: 18px; font-weight: 800; font-stretch: 125%; }
.pf-bands span { font-size: 11px; color: var(--muted); font-weight: 600; }
.share-prev.big { width: min(78%, 320px); margin: 0 auto; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.rep-full { width: 100%; border-radius: 16px; display: block; }

/* v2.1: calmer header and Home */
.hdr-in { padding-block: 12px; }
.fpill { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px 0 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-weight: 700; font-size: 13px; white-space: nowrap; }
.fpill svg { width: 16px; height: 16px; color: var(--muted); }
.hdr .gear { width: 40px; height: 40px; border-radius: 20px; }
.hero-card { padding: 16px 18px 20px; }
.hc-tap { position: absolute; inset: 0; border: 0; background: none; border-radius: 24px; cursor: pointer; z-index: 0; }
.hc-tap:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.hero-card > :not(.hc-tap) { position: relative; z-index: 1; pointer-events: none; }
.hero-card .hc-share { pointer-events: auto; width: 36px; height: 36px; border: 0; display: grid; place-items: center; }
.hc-top { align-items: center; }
.hc-score { margin: 8px 0 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.hc-score .s { font-size: 48px; }
.hc-score .t { font-size: 15px; }
.hc-line { font-size: 14px; }
.hc-story { margin: 4px 0 0; font-size: 13px; color: var(--hero-muted); font-weight: 600; }
.season-row { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin-top: 12px; }
.season-row:focus-visible { outline: 2px solid var(--primary); }
.sr-rec { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.sr-rec b { font-size: 18px; font-weight: 800; color: var(--fg); font-stretch: 125%; margin-left: 4px; }
.sr-rec b:first-child { margin-left: 0; }
.sr-rec b.w { color: var(--win); } .sr-rec b.l { color: var(--loss); }
.sr-gd { font-weight: 800; font-size: 13px; padding: 3px 8px; border-radius: 10px; background: var(--surface-2); }
.season-row .form { margin-left: auto; gap: 4px; }
.season-row .res { width: 22px; height: 22px; font-size: 11px; border-radius: 7px; }
@media (max-width: 360px) { .season-row .form .res:nth-child(n+4) { display: none; } }
.sr-rec b { margin-right: 1px; }
/* v2.1: lighter, roomier score on the Home result card */
.hc-score .s { font-weight: 700; letter-spacing: 0; }
.hc-score .s .dash { margin: 0 .12em; font-weight: 500; opacity: .85; }
.hc-story { font-size: 14px; margin-top: 2px; }
/* Season row: record + form, then goals scored / conceded / difference */
.season-row { flex-direction: column; align-items: stretch; gap: 10px; }
.sr-top { display: flex; align-items: center; gap: 10px; }
.sr-top .form { margin-left: auto; }
.sr-goals { display: flex; align-items: center; gap: 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); font-weight: 600; }
.sr-goals b { color: var(--fg); font-size: 16px; font-weight: 800; font-stretch: 125%; margin-right: 3px; }
.sr-goals .sr-gd { margin-left: auto; color: var(--fg); }
/* One score style everywhere: lighter weight, a little air around the dash */
.score, .tg .sc, .scoreline .s, .score-hero .scoreline .s, .live-sc .s, .hc-score .s { font-weight: 700; letter-spacing: 0; }
.score .dash, .tg .sc .dash, .scoreline .s .dash, .live-sc .s .dash, .hc-score .s .dash { margin: 0 .12em; font-weight: 500; opacity: .85; }
.score-hero .dash { color: inherit; }

/* =====================================================================
   v3: shared live match, insights, parent welcome
   ===================================================================== */
.live-follow { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 4px; }
.pending-dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: var(--loss); margin-right: 6px; vertical-align: 0; }
.live-notice .grow { min-width: 0; }

/* Sub-tabs on the player page and Stats: scroll sideways if they don't fit */
.subtabs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow-x: auto; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs button { flex: 1 0 auto; border: 0; background: none; min-height: 40px; padding: 0 6px; border-radius: 18px; font-weight: 600; font-size: 13px; letter-spacing: -.01em; color: var(--muted); white-space: nowrap; }
.subtabs button[aria-current="page"] { background: var(--surface-2); color: var(--fg); font-weight: 800; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.range-seg { margin-top: 14px; }
.range-seg button { font-size: 13px; padding: 10px 2px; }

/* Tiles and small text */
.k { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tiles3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tiles2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles2 .tile { text-align: left; color: inherit; font: inherit; display: flex; flex-direction: column; gap: 4px; }
.tiles3 .tile { padding: 12px; }
.tiles3 .tile .big { font-size: 26px; margin-top: 6px; }
.hero-tile { background: var(--hero); border-color: var(--hero); color: var(--hero-fg); }
.hero-tile .k { color: var(--hero-muted); }
.tiles3.mini { margin-bottom: 14px; }
.tiles3.mini > div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.tiles3.mini .hl { background: var(--hero); color: var(--hero-fg); }
.tiles3.mini .hl .k { color: var(--hero-muted); }
.tiles3.mini .k { font-size: 10px; }
.mid { font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: 22px; line-height: 1.2; }
.cap { margin: 8px 2px 0; font-size: 13px; color: var(--muted); }
.callout { margin: 14px 0 0; padding: 10px 12px; background: var(--surface-2); border-radius: 12px; font-size: 14px; line-height: 1.4; }
.legend.top { margin: 8px 0 14px; }
.legend i.dash { width: 16px; height: 0; border-top: 2px dashed var(--muted); border-radius: 0; vertical-align: 3px; }

/* Result chips (smaller than .res) */
.rc { width: 18px; height: 18px; border-radius: 5px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.rc.W { background: var(--win); color: var(--win-fg); } .rc.D { background: var(--draw); color: var(--draw-fg); } .rc.L { background: var(--loss); color: var(--loss-fg); }
.rc.big { width: 24px; height: 24px; border-radius: 7px; font-size: 13px; }
.rc.big.wide { width: auto; height: 32px; padding: 0 10px; font-size: 15px; border-radius: 9px; }

/* Column bars per match (bars sit on a baseline; label and result chip below = 42px) */
.mb { position: relative; display: flex; gap: 8px; align-items: flex-end; }
.mb.dense { gap: 3px; }
.mb-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mb-plot { width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.mb-v { font-size: 12px; font-weight: 700; }
.mb.dense .mb-v { font-size: 10px; }
.mb-bar { width: 100%; max-width: 36px; display: flex; flex-direction: column; gap: 2px; }
.mb-bar i { display: block; width: 100%; border-radius: 2px; }
.mb-bar i:first-child, .mb-bar i[style*="height:0px"] + i { border-radius: 4px 4px 2px 2px; }
.mb-bar i[style*="height:0px"] { display: none; }
.mb-bar .gl { background: var(--goal); } .mb-bar .as { background: var(--assist); } .mb-bar .rest { background: var(--draw); } .mb-bar .cn { background: var(--loss); }
.mb-zero { width: 100%; max-width: 36px; height: 3px; border-radius: 2px; background: var(--line); }
.mb-x { height: 16px; font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; max-width: 100%; }
.mb.dense .mb-x { font-size: 8.5px; }
.mb.sb .mb-col { padding-bottom: 0; }
.mb-avg { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--muted); pointer-events: none; opacity: .8; }

/* Player vs team rows */
.vs-row { display: flex; flex-direction: column; gap: 8px; }
.vs-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; font-weight: 600; }
.vs-top > span:last-child { font-weight: 400; white-space: nowrap; }
.vs-track { position: relative; height: 10px; border-radius: 5px; background: var(--surface-2); }
.vs-track i { display: block; height: 10px; border-radius: 5px; background: var(--goal); }
.vs-track b { position: absolute; top: -4px; width: 3px; height: 18px; margin-left: -1px; border-radius: 2px; background: var(--pink); }
.legend-tick { margin: 0; display: flex; align-items: center; gap: 6px; }
.legend-tick b { width: 3px; height: 12px; border-radius: 2px; background: var(--pink); }

/* Report */
.rep-hero { display: flex; align-items: flex-end; gap: 16px; padding: 18px 18px 22px; border-radius: 24px; background: var(--hero); color: var(--hero-fg); position: relative; overflow: hidden; }
.rep-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--pink-bright); }
.rep-hero.col { flex-direction: column; align-items: stretch; gap: 0; }
.rep-hero .k { color: var(--hero-muted); }
.hero-num { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 56px; line-height: 1; margin: 8px 0 6px; letter-spacing: -.02em; }
.hero-of { font-size: 22px; margin: 0 4px 0 2px; opacity: .75; }
.rep-hero .pill { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 999px; background: var(--pink-bright); color: #2a0718; font-size: 13px; font-weight: 800; }
.rh-title { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 21px; line-height: 1.2; margin: 6px 0 14px; }
.rh-bars { display: flex; gap: 8px; align-items: flex-end; height: 120px; }
.rh-bars > div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; }
.rh-bars i { display: block; width: 26px; border-radius: 5px 5px 2px 2px; background: rgba(255,255,255,.45); }
.rh-bars i.cur { background: var(--pink-bright); }
.rh-bars small { font-size: 10px; opacity: .85; white-space: nowrap; }
.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mcard { display: flex; flex-direction: column; gap: 6px; }
.mcard .k { font-size: 11px; }
.mrow { display: flex; align-items: baseline; gap: 8px; }
.mrow .big { font-size: 26px; }
.delta { font-size: 13px; font-weight: 800; }
.spark { width: 100%; height: 40px; }
.spark polyline { fill: none; stroke: var(--goal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--pink); stroke: var(--surface); stroke-width: 2; }
.hm { display: grid; grid-template-columns: repeat(auto-fill, minmax(26px, 1fr)); gap: 4px; }
.hm-cell { aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--fg); }
.hm-cell.on { color: #fff; }
.hm-months { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); }
.pb { display: flex; flex-direction: column; gap: 0; }
.pb > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border-top: 1px solid var(--line); padding: 12px 0 0; margin-top: 12px; }
.pb > div b { text-align: right; }

/* vs Team strips */
.bench-hero { align-items: center; }
.bench-hero .hero-num { color: var(--pink-bright); margin: 0; }
.bs { padding: 16px 0 12px; border-bottom: 1px solid var(--line); }
.bs:last-child { border-bottom: 0; }
.bs-plot { position: relative; height: 56px; margin: 6px 10px 0; }
.bs-line { position: absolute; left: 0; right: 0; top: 26px; height: 2px; background: var(--surface-2); }
.bs .bd { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--draw); box-shadow: 0 0 0 2px var(--surface); }
.bs-avg { position: absolute; top: 14px; width: 2px; height: 26px; background: var(--fg); }
.bs-me { position: absolute; top: 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--fg); }
.bs-mev { position: absolute; top: -4px; width: 60px; text-align: center; font-size: 12px; font-weight: 800; }
.bs-avgv { position: absolute; top: 42px; width: 80px; text-align: center; font-size: 11px; color: var(--muted); }
.bs-names { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; }
.bs-names .me { color: var(--fg); font-weight: 800; }
.legend i.me-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px var(--fg); }
.legend i.mate-dot { border-radius: 50%; background: var(--draw); }
.legend i.avg-tick { width: 2px; height: 14px; background: var(--fg); border-radius: 0; vertical-align: -3px; }
.switch { width: 52px; height: 32px; border: 0; border-radius: 16px; background: var(--draw); padding: 3px; display: flex; flex: none; transition: background .15s; }
.switch span { width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--primary); }
.switch[aria-checked="true"] span { transform: translateX(20px); }

/* Horizontal bars by opponent / competition */
.hb-row { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 118px minmax(0, 1fr) 32px; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hb-row.static { cursor: default; border-bottom: 0; padding: 0; }
.hb-row:last-of-type { border-bottom: 0; }
.hb-name { min-width: 0; font-size: 14px; }
.hb-name b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; gap: 3px; margin-top: 4px; flex-wrap: wrap; }
.hb-track { height: 10px; border-radius: 5px; background: var(--surface-2); }
.hb-track i { display: block; height: 10px; border-radius: 5px; background: var(--goal); }
.hb-track.cn i { background: var(--loss); }
.hb-v { text-align: right; font-size: 14px; }
.blk-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.blocks { display: flex; gap: 2px; margin-top: 6px; }
.blocks i { flex: 1; height: 12px; border-radius: 3px; background: var(--draw); max-width: 40px; }
.blocks i.on { background: var(--goal); }

/* Team: butterfly chart */
.bf { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 100px minmax(0, 1fr) minmax(0, 1fr) 30px; gap: 0 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.bf.bf-h { cursor: default; border-top: 0; padding: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bf-n { min-width: 0; font-size: 13px; }
.bf-n b { display: block; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-l { display: flex; justify-content: flex-end; align-items: center; gap: 4px; border-right: 2px solid var(--fg); padding-right: 2px; }
.bf-l i { display: block; height: 16px; border-radius: 4px 0 0 4px; background: var(--loss); }
.bf-r { display: flex; align-items: center; gap: 4px; margin-left: -8px; }
.bf-r i { display: block; height: 16px; border-radius: 0 4px 4px 0; background: var(--goal); }
.bf-d { text-align: right; font-size: 14px; }

/* Team: line charts */
.lc { width: 100%; height: auto; display: block; overflow: visible; }
.lc-grid { stroke: var(--line); stroke-width: 1; }
.lc-grid.zero { stroke: var(--muted); stroke-dasharray: 3 3; }
.lc-y, .lc-x { fill: var(--muted); font-size: 10px; font-family: var(--body); }
.lc-y { text-anchor: end; }
.lc-line { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.lc-line.s1 { stroke: var(--goal); } .lc-line.s2 { stroke: var(--loss); }
.lc-dot { stroke: var(--surface); stroke-width: 2; } .lc-dot.s1 { fill: var(--goal); } .lc-dot.s2 { fill: var(--loss); }
.lc-area { stroke: none; opacity: .14; } .lc-area.s1 { fill: var(--goal); }
.lc-hit { fill: transparent; }
.lc-hit:hover { fill: var(--surface-2); fill-opacity: .5; }
.lc-end { display: flex; gap: 14px; margin-top: 8px; color: var(--muted); }
.lc-end b { color: var(--fg); font-size: 15px; }
.res-strip { display: flex; flex-wrap: wrap; gap: 6px 4px; margin-top: 12px; }
.rs { border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 30px; }
.rs .rc { width: 26px; height: 26px; font-size: 13px; border-radius: 7px; }
.rs small { font-size: 9px; font-weight: 700; color: var(--muted); }
.cmp-row { display: grid; grid-template-columns: 1fr 60px 60px 20px; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.cmp-row > span:nth-child(2), .cmp-row > span:nth-child(3) { text-align: right; }
.cmp-row.cmp-h { border-top: 0; padding: 8px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cmp-t { text-align: center; font-size: 12px; color: var(--muted); }
.cmp-t.up { color: var(--win); } .cmp-t.down { color: var(--loss); }
.mini-bar { display: inline-block; width: 40px; height: 6px; border-radius: 3px; background: var(--surface-2); vertical-align: 1px; margin-right: 4px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--win); }

/* Install card on Home (browser only) */
.install-card { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; }
.install-card .icon-btn { width: 36px; height: 36px; font-size: 18px; border: 0; background: var(--surface-2); }

/* Parent welcome */
.welcome { padding-top: 24px; padding-bottom: 24px; }
.w-hero { text-align: center; padding: 28px 18px 26px; border-radius: 28px; background: var(--hero); color: var(--hero-fg); position: relative; overflow: hidden; }
.w-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--pink-bright); }
.w-hero .crest { width: 64px; height: 70px; margin: 0 auto; }
.w-hero h1 { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 30px; text-transform: uppercase; margin: 12px 0 6px; letter-spacing: .01em; }
.w-hero p { margin: 0 auto; max-width: 300px; font-size: 16px; opacity: .92; }
.w-os { margin-bottom: 12px; }
.wsteps { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.wsteps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-top: 1px solid var(--line); }
.wsteps li:first-child { border-top: 0; }
.wsteps li > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.wsteps .wcta { flex-direction: column; align-items: stretch; gap: 8px; text-align: center; }
.wn { width: 28px; height: 28px; border-radius: 14px; background: var(--primary); color: var(--primary-fg); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.wn:empty { background: none; }
.ios-share { width: 20px; height: 20px; vertical-align: -4px; margin: 0 1px; color: var(--primary); }
.w-get { display: flex; flex-direction: column; gap: 14px; }
.w-get > div { display: flex; gap: 12px; align-items: flex-start; }
.w-get > div > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.w-get svg { width: 20px; height: 20px; color: var(--primary); flex: none; }
.w-get .dot { margin: 6px 5px 0 6px; }
.w-done { text-align: center; align-items: center; }

.mb.sb.dense .mb-v { visibility: hidden; }
@media (max-width: 360px) { .subtabs button { font-size: 12.5px; padding: 0 5px; } }

/* Multi-select competition filter: a tick box on each competition */
.opts button.multi { display: flex; align-items: center; justify-content: flex-start; gap: 10px; text-align: left; padding-left: 12px; }
.opts .tick { box-sizing: border-box; width: 18px; height: 18px; min-height: 18px; align-self: center; border-radius: 5px; border: 2px solid var(--muted); flex: 0 0 18px; position: relative; padding: 0; }
.opts button[aria-pressed="true"] .tick { background: var(--primary); border-color: var(--primary); }
.opts button[aria-pressed="true"] .tick::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid var(--primary-fg); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* =====================================================================
   v3.1: parent accounts, who tracked, full time, tour
   ===================================================================== */
.tracked-by { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: 13px; opacity: .9; }
.tracked-by svg { width: 16px; height: 16px; flex: none; }
.tracked-by.live { margin: -4px 0 10px; color: var(--muted); flex-wrap: wrap; }
.tracked-by.live .link { font-size: 13px; }
.live-tag.ft .dot, .live-notice.ft .dot { background: var(--muted); animation: none; }
.member-card .ok-dot, .member-card .wait-dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; margin-right: 8px; vertical-align: 1px; background: var(--win); }
.member-card .wait-dot { background: #e0a43a; }
.members .mem-h { padding: 12px 16px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mem-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
.mem-row .av { width: 36px; height: 36px; border-radius: 18px; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.mem-row .grow { min-width: 0; }
.mem-row .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-btn.primary { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.icon-btn.sm { width: 32px; height: 32px; font-size: 16px; }

/* Parent account */
.join { padding-bottom: 24px; }
.join .field { display: flex; flex-direction: column; gap: 6px; }
.join .field label { font-weight: 700; font-size: 14px; }
.join .field input { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); font-size: 16px; }
.join .center { text-align: center; }
.join-done { text-align: center; align-items: center; padding: 28px 20px; }
.join-tick { width: 56px; height: 56px; border-radius: 28px; background: var(--primary); color: var(--primary-fg); display: grid; place-items: center; font-size: 26px; font-weight: 800; }
.join-tick svg { width: 26px; height: 26px; }
.w-join { gap: 8px; }

/* Tour: swipe sideways through the cards */
.guide { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.guide-top { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 6px; }
.guide-top .link { font-weight: 700; padding: 10px 4px; }
.guide-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.guide-track::-webkit-scrollbar { display: none; }
.guide-slide { flex: 0 0 100%; scroll-snap-align: center; box-sizing: border-box; padding: 12px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.guide-slide h2 { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 30px; text-transform: uppercase; margin: 14px 0 0; }
.guide-slide p { margin: 0; max-width: 320px; font-size: 16px; line-height: 1.45; color: var(--muted); }
.guide-slide .btn { margin-top: 10px; }
.guide-foot { padding-top: 10px; padding-bottom: 22px; display: flex; flex-direction: column; gap: 16px; }
.guide-dots { display: flex; justify-content: center; gap: 4px; }
.guide-dots button { width: 28px; height: 28px; border: 0; background: none; padding: 0; display: grid; place-items: center; }
.guide-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .2s, background .2s; }
.guide-dots button[aria-selected="true"]::before { width: 22px; background: var(--primary); }

/* Tour illustrations: a simplified phone, with the tab to tap lit up */
.ta { width: 200px; height: 300px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.ta-screen { flex: 1; padding: 16px 14px; display: flex; flex-direction: column; gap: 9px; }
.ta-screen i { display: block; }
.ta-hero { height: 72px; border-radius: 14px; background: var(--hero); box-shadow: inset 0 -4px 0 var(--pink-bright); display: grid; place-items: center; color: var(--hero-fg); }
.ta-hero b { font-family: var(--display); font-stretch: 125%; font-size: 26px; }
.ta-hero.dim { opacity: .35; height: 56px; }
.ta-row { height: 30px; border-radius: 9px; background: var(--surface-2); }
.ta-row.short { width: 64%; }
.ta-mrow { height: 36px; border-radius: 9px; background: var(--surface-2); display: flex; align-items: center; padding: 0 8px; }
.ta-mrow em { width: 18px; height: 18px; border-radius: 5px; background: var(--win); }
.ta-mrow em.d { background: var(--draw); } .ta-mrow em.l { background: var(--loss); }
.ta-prow { height: 34px; display: flex; align-items: center; gap: 8px; }
.ta-prow em { width: 24px; height: 24px; border-radius: 12px; background: var(--draw); flex: none; }
.ta-prow s { height: 10px; border-radius: 5px; background: var(--goal); text-decoration: none; }
.ta-chart { height: 84px; border-radius: 12px; background: var(--surface-2); padding: 8px; box-sizing: border-box; }
.ta-chart svg { width: 100%; height: 100%; }
.ta-chart polyline { fill: none; stroke: var(--goal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ta-live { height: 44px; border-radius: 12px; background: var(--surface-2); border: 2px solid var(--pink); display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 12px; font-weight: 800; animation: ta-pulse 1.6s ease-in-out infinite; }
.ta-live em { width: 8px; height: 8px; border-radius: 4px; background: var(--pink); }
.ta-live b { margin-left: auto; font-size: 15px; }
@keyframes ta-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--pink) 25%, transparent); } }
.ta-tabs { height: 48px; border-top: 1px solid var(--line); display: flex; justify-content: space-around; align-items: center; }
.ta-tab { width: 34px; height: 34px; border-radius: 17px; display: grid; place-items: center; color: var(--muted); }
.ta-tab svg { width: 18px; height: 18px; }
.ta-tab.on { background: var(--primary); color: var(--primary-fg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 30%, transparent); }
.ta.ta-join { width: 120px; height: 120px; border-radius: 60px; display: grid; place-items: center; color: var(--primary); }
.ta.ta-join svg { width: 52px; height: 52px; }
@media (prefers-reduced-motion: reduce) { .ta-live { animation: none; } .guide-track { scroll-behavior: auto; } }
.ta em, .ta s { display: block; flex: none; }
.ta-prow s { flex: 0 0 auto; }
/* Last 10 results: one row, newest on the left */
.res-strip { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.res-strip .rs { width: auto; min-width: 0; }
.res-strip .rs small { max-width: 100%; overflow: hidden; }
/* Goal difference each match: bars up for wins, down for defeats */
.gd { flex: 1; min-width: 0; display: flex; gap: 2px; height: 144px; align-items: stretch; position: relative; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.gd::after { content: ""; position: absolute; left: 0; right: 0; top: 71px; border-top: 1px solid var(--muted); opacity: .6; pointer-events: none; }
.gd-col { flex: 1; min-width: 0; border: 0; background: none; padding: 0; display: flex; flex-direction: column; cursor: pointer; }
.gd-up, .gd-dn { height: 72px; display: flex; justify-content: center; }
.gd-up { align-items: flex-end; } .gd-dn { align-items: flex-start; }
.gd-col i { display: block; width: 100%; max-width: 18px; }
.gd-up i { border-radius: 4px 4px 0 0; } .gd-dn i { border-radius: 0 0 4px 4px; }
.gd-col i.W { background: var(--win); } .gd-col i.L { background: var(--loss); }
.gd-col i.D { width: 8px; height: 8px; border-radius: 4px; background: var(--draw); margin-top: -4px; }
.gd-col:hover i, .gd-col:focus-visible i { filter: brightness(1.15); }
.gd-x { display: flex; justify-content: space-between; margin-top: 6px; padding-left: 34px; }
.gd-keys { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; color: var(--muted); }
.gd-keys b { color: var(--fg); }
/* Home: LATEST MATCH title above the competition and date */
.hc-meta { display: flex; flex-direction: column; gap: 3px; }
.hc-label { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--hero-fg); }

/* v3.2 opening screen (Matchday Labs splash, option A) */
#splash { position: fixed; inset: 0; z-index: 9999; background: #10162F; font-family: Archivo, 'Helvetica Neue', Arial, sans-serif; display: flex; flex-direction: column; align-items: center; padding: env(safe-area-inset-top, 0px) 32px calc(56px + env(safe-area-inset-bottom, 0px)); transition: opacity .35s ease; }
#splash.splash-out { opacity: 0; pointer-events: none; }
.sp-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.sp-mid img { width: 156px; height: 171px; display: block; }
.sp-t { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: #F4F4F0; }
.sp-sub { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #A9AFC4; }
.sp-bar { width: 120px; height: 3px; border-radius: 2px; background: #222C4A; overflow: hidden; margin-bottom: 40px; }
.sp-bar i { display: block; width: 45%; height: 3px; background: #FF5A1F; animation: sp-load 1.2s ease-in-out infinite alternate; }
@keyframes sp-load { from { width: 45%; } to { width: 100%; } }
.sp-pw { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sp-pw small { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #A9AFC4; }
.sp-wm { display: flex; align-items: center; gap: 8px; }
.sp-wm > span { font-size: 22px; letter-spacing: -.035em; line-height: 1; }
.sp-wm b { font-weight: 800; color: #F4F4F0; } .sp-wm b + span { font-weight: 400; color: #FF5A1F; }
@media (prefers-reduced-motion: reduce) { .sp-bar i { animation: none; } #splash { transition: none; } }

/* v3.2.2 goal-difference axis + legend */
.gd-wrap { display: flex; gap: 6px; align-items: stretch; }
.gd-y { width: 28px; flex: none; position: relative; height: 146px; }
.gd-y span { position: absolute; right: 0; line-height: 1; transform: translateY(-50%); }
.gd-y span:nth-child(1) { top: 1px; } .gd-y span:nth-child(2) { top: 73px; } .gd-y span:nth-child(3) { top: 145px; }
.gd-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; color: var(--muted); }
.gd-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gd-legend i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.gd-legend i.W { background: var(--win); } .gd-legend i.L { background: var(--loss); } .gd-legend i.D { background: var(--draw); border-radius: 5px; }

/* v3.3 People & permissions (super admin) */
.perm-key { display: flex; flex-direction: column; gap: 4px; }
.perm-list { overflow: hidden; }
.perm-row { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.perm-row:first-child { border-top: 0; }
.perm-row .av { width: 36px; height: 36px; border-radius: 18px; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.perm-seg button { font-size: 13px; padding: 8px 4px; }
.perm-seg button:disabled { opacity: .5; }
.perm-admin { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-text); background: var(--primary-soft); padding: 6px 10px; border-radius: 8px; }
