/* GOLBOT Mini App v4 — broadcast sports look: ink canvas, electric-lime accent,
   Anton scoreboard type, flat razor cards, edge-to-edge native bottom bar.
   Committed dark brand theme (with a clean light fallback). */
:root {
  --ink: #0A0A0C;
  --surface: #141419;
  --surface2: #1D1D24;
  --surface3: #26262F;
  --fg: #F5F5F7;
  --hint: #8C8C97;
  --faint: #8F8FA0;            /* ≥4.5:1 on surface (tab labels, placeholders) */
  --line: rgba(255,255,255,.075);
  --line2: rgba(255,255,255,.14);
  --acc: #2470EA;              /* electric blue — the brand (white text ≥4.5:1) */
  --acc-dim: #1E66DD;
  --acc-2: #5AA0FF;            /* lighter blue for gradients / sheen */
  --acc-ink: #FFFFFF;          /* text sitting on the blue */
  --live: #FF3B5C;
  --gold: #FFC93C;
  --blue: #2E7CF6;
  --purple: #B18BFF;
  --orange: #FF8A3D;
  --football: #29D17D; --nba: #FF8A3D; --mlb: #FF5252; --nfl: #B18BFF;
  --r: 16px; --r-sm: 11px; --r-lg: 22px;
  --tab-h: 62px; --safe-b: env(safe-area-inset-bottom, 0px);
  --display: "Anton", "Arial Narrow", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 16px 40px rgba(0,0,0,.5);
  color-scheme: dark;
}
/* clean light fallback for users who force a light Telegram theme (rarely hit — we ship dark) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ink: #F4F5F7; --surface: #FFFFFF; --surface2: #EEF0F4; --surface3: #E3E6EC;
    --fg: #0C0D10; --hint: #5B6472; --faint: #596478;   /* ≥4.5:1 on white */
    --line: rgba(10,12,20,.10); --line2: rgba(10,12,20,.18);
    --acc-ink: #FFFFFF; --shadow: 0 16px 40px rgba(20,25,40,.14);   /* white on blue in light mode too */
  }
  /* inactive tab labels measured 3.5:1 on the light tab bar (its dimming opacity); force ≥4.5:1 */
  :root:not([data-theme="dark"]) #tabs button:not(.on) { color: #3F4855; opacity: 1; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--ink); color: var(--fg);
  font-family: var(--sans); font-size: 15px; line-height: 1.45; font-weight: 500;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 6px); overscroll-behavior-y: contain; }
a { color: var(--acc); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
[hidden] { display: none !important; }
img { max-width: 100%; }
::-webkit-scrollbar { display: none; }

/* motion + layout container: phones edge-to-edge, tablets/desktop centred at 640px */
.screen { padding: 14px 15px 22px; animation: fade .2s ease; max-width: 640px; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 8px; }
button:focus:not(:focus-visible) { outline: none; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.9); } 55% { transform: scale(1.06); } 100% { transform: scale(1); } }
.pop { animation: pop .24s ease-out; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes livebar { 0%,100% { transform: scaleX(.4);} 50% { transform: scaleX(1);} }

/* type */
.h1 { font-size: 27px; font-weight: 900; letter-spacing: -.6px; margin: 2px 0 2px; line-height: 1.1; }
.h2 { font-family: var(--sans); font-size: 12px; font-weight: 800; margin: 22px 0 9px; display: flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 1.2px; color: var(--hint); }
.h2::before { content: ""; width: 4px; height: 13px; border-radius: 2px; background: var(--acc); display: inline-block; }
.h2 .more { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--acc); font-size: 13px; }
.hint { color: var(--hint); font-size: 13px; margin: 0 0 10px; line-height: 1.45; }
.bold { font-weight: 700; } .xbold { font-weight: 800; } .small { font-size: 13px; } .muted { color: var(--hint); }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num { font-variant-numeric: tabular-nums; }
.i { width: 1.15em; height: 1.15em; vertical-align: -.16em; display: inline-block; flex: none; }
.i.red { color: var(--live); } .i.acc { color: var(--acc); }

/* layout */
.row { display: flex; align-items: center; gap: 10px; } .row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; } .col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hscroll { display: flex; gap: 9px; overflow-x: auto; padding: 2px 15px 6px; margin: 0 -15px; scroll-snap-type: x mandatory; }
.hscroll > * { scroll-snap-align: start; flex: none; }

/* surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 14px; margin-bottom: 10px; }
.card.tap { transition: transform .1s ease, border-color .15s; } .card.tap:active { transform: scale(.985); border-color: var(--line2); }
.glass { background: var(--surface); }

/* hero — editorial scoreboard header. Tinted by the leading team's colour (--tint). */
.hero { --tint: var(--acc); position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 18px 18px 16px; margin-bottom: 14px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--tint) 30%, var(--surface)) 0%, var(--surface) 62%),
    var(--surface);
  border: 1px solid var(--line); color: var(--fg); box-shadow: var(--shadow); }
.hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tint); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 40%); }
.hero.sport-nba { --tint: var(--nba); } .hero.sport-mlb { --tint: var(--mlb); } .hero.sport-nfl { --tint: var(--nfl); }
.hero.gold { --tint: var(--gold); } .hero.dark { --tint: #55596b; }
.hero > * { position: relative; z-index: 1; }
.hero .big { font-family: var(--display); font-size: 38px; font-weight: 400; letter-spacing: .5px; line-height: .98; text-transform: uppercase; }
.hero .sub { color: color-mix(in srgb, var(--fg) 62%, transparent); font-size: 12px; margin-top: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; display: flex; align-items: center; gap: 6px; }
.hero .btn { width: auto; margin-top: 14px; }
.hero .wm { position: absolute; right: -18px; bottom: -22px; width: 130px; height: 130px; opacity: .16; filter: grayscale(1) contrast(1.1); z-index: 0; object-fit: contain; }
/* scoreboard row inside a hero (live / next match) */
.sboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 12px; }
.sboard .sd { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.sboard .sd .nm { font-weight: 800; font-size: 13px; text-align: center; line-height: 1.15; }
.sboard .sc { font-family: var(--display); font-size: 44px; letter-spacing: 1px; line-height: 1; }
.sboard .crest { width: 50px; height: 50px; border-radius: 13px; }
/* live strip (horizontal) */
.livestrip .card { min-width: 210px; margin-bottom: 0; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 11px; background: var(--surface2);
  border: 1px solid var(--line); font-size: 14px; font-weight: 700; transition: all .12s; white-space: nowrap; color: var(--fg); }
.chip.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 16%, var(--surface2)); color: var(--acc-2); }
.chip:active { transform: scale(.95); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px 16px; border-radius: 14px;
  background: var(--acc); color: var(--acc-ink); font-weight: 800; font-size: 16px; letter-spacing: .2px;
  transition: transform .1s ease, filter .15s; box-shadow: 0 6px 22px color-mix(in srgb, var(--acc) 26%, transparent); }
.btn:active { transform: scale(.97); filter: brightness(.95); }
.btn.secondary { background: var(--surface2); color: var(--fg); box-shadow: none; border: 1px solid var(--line2); }
.btn.gold { background: var(--gold); color: #1a1200; box-shadow: 0 6px 22px color-mix(in srgb, var(--gold) 28%, transparent); }
.btn.small { padding: 10px 15px; font-size: 14px; border-radius: 11px; width: auto; }
.btn.danger { background: color-mix(in srgb, var(--live) 16%, var(--surface2)); color: var(--live); border: 1px solid color-mix(in srgb, var(--live) 40%, transparent); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--acc); box-shadow: none; padding: 10px 12px; width: auto; }
.btn[disabled] { opacity: .45; }
/* inline validation + pressed feedback */
.input.invalid { border-color: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 18%, transparent); }
.field-err { color: var(--live); font-size: 12.5px; margin: 6px 0 0; font-weight: 600; }
.card.tap, .chip, .pick, .team-tile { -webkit-user-select: none; user-select: none; }
@media (hover: hover) { .card.tap:hover { border-color: var(--line2); } .chip:hover { border-color: var(--line2); } }

/* crests / badges / score */
.crest { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; background: #fff; padding: 3px; flex: none; }
.crest.lg { width: 54px; height: 54px; border-radius: 13px; } .crest.xl { width: 76px; height: 76px; border-radius: 18px; padding: 6px; }
.crest-ph { display: inline-flex; align-items: center; justify-content: center; background: var(--surface3); color: var(--hint); font-weight: 800; font-size: 11px; }
.badge { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 7px; background: var(--surface3); color: var(--hint);
  letter-spacing: .4px; white-space: nowrap; text-transform: uppercase; }
.badge.live { background: color-mix(in srgb, var(--live) 20%, var(--ink)); color: #ff7d92; display: inline-flex; align-items: center; gap: 5px; }
.badge.gold { background: color-mix(in srgb, var(--gold) 20%, var(--ink)); color: var(--gold); }
.badge.green { background: color-mix(in srgb, var(--acc) 18%, var(--ink)); color: var(--acc); }
.badge.blue { background: color-mix(in srgb, var(--blue) 20%, var(--ink)); color: #9dc0ff; }
.badge.purple { background: color-mix(in srgb, var(--purple) 22%, var(--ink)); color: #d3bcff; }
.score { font-family: var(--display); font-variant-numeric: tabular-nums; font-weight: 400; font-size: 30px; min-width: 66px;
  text-align: center; letter-spacing: 1px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); display: inline-block; animation: pulse 1.1s infinite; }
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%); background-size: 200% 100%;
  animation: shimmer 1.1s infinite; border-radius: 14px; height: 64px; margin-bottom: 10px; }
.empty { text-align: center; padding: 40px 16px; color: var(--hint); font-weight: 600; }
.empty .big { font-size: 46px; margin-bottom: 8px; filter: grayscale(.2); }
.empty .i { width: 46px; height: 46px; color: var(--faint); margin-bottom: 10px; display: block; margin-left: auto; margin-right: auto; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 16px); transform: translateX(-50%) translateY(8px);
  background: var(--acc); color: var(--acc-ink); padding: 12px 18px; border-radius: 12px; font-weight: 800; font-size: 14px;
  opacity: 0; transition: all .2s; pointer-events: none; z-index: 60; max-width: 90vw; text-align: center; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* misc controls */
.progress { height: 8px; border-radius: 999px; background: var(--surface3); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--acc); border-radius: 999px; transition: width .4s; }
.sw { width: 46px; height: 28px; border-radius: 999px; background: var(--surface3); border: 1px solid var(--line); position: relative; flex: none; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.sw.on { background: var(--acc); border-color: var(--acc); } .sw.on::after { left: 22px; }
.seg { display: flex; background: var(--surface2); border-radius: 12px; padding: 3px; border: 1px solid var(--line); }
.seg > button { flex: 1; padding: 9px 6px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--hint); transition: all .15s; white-space: nowrap; }
.seg > button.on { background: var(--acc); color: var(--acc-ink); }
.input { width: 100%; padding: 14px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); color: var(--fg); font-size: 16px; outline: none; font-family: inherit; }
.input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 16%, transparent); }
.input::placeholder { color: var(--faint); }
textarea.input { min-height: 90px; resize: vertical; }
.stat { text-align: center; padding: 13px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.stat b { display: block; font-family: var(--display); font-size: 26px; font-weight: 400; letter-spacing: .5px; }
.stat span { font-size: 10.5px; color: var(--hint); text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
.sport-bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--football); flex: none; }
.sport-bar.nba { background: var(--nba); } .sport-bar.mlb { background: var(--mlb); } .sport-bar.nfl { background: var(--nfl); }

/* match cards */
.match { padding: 13px 14px; }
.match .teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 8px; }
.match .team { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; }
.match .team.away { flex-direction: row-reverse; text-align: right; }
/* club names wrap to two tight lines instead of "Real Ma…" */
.match .team .ellip, .sboard .nm { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; font-size: 14px; }
.match .goals { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 12px; color: var(--hint);
  display: flex; flex-wrap: wrap; gap: 6px 12px; }

/* picks */
.picks { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 10px; } .picks.two { grid-template-columns: 1fr 1fr; }
.pick { padding: 12px 6px; border-radius: 12px; background: var(--surface2); border: 1.5px solid transparent; font-weight: 900; text-align: center; transition: all .12s; font-size: 17px; }
.pick.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 18%, var(--surface2)); color: var(--acc-2); }
.pick small { display: block; font-weight: 600; color: var(--hint); font-size: 11px; margin-top: 2px; }
.pick:active { transform: scale(.95); }

/* leaderboard */
.leader { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.leader:last-child { border-bottom: 0; }
.leader .pos { width: 28px; text-align: center; font-family: var(--display); font-weight: 400; color: var(--faint); font-size: 18px; }
.leader .av { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: var(--acc-ink); background: var(--acc); flex: none; }
.leader.me { background: color-mix(in srgb, var(--acc) 12%, transparent); margin: 0 -14px; padding: 11px 14px; border-radius: 12px; }
.leader.top1 .pos { color: var(--gold); } .leader.top1 .av { background: var(--gold); }

/* bottom bar — flush, native, with an active accent tick */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: flex; z-index: 40;
  background: color-mix(in srgb, var(--ink) 88%, transparent); backdrop-filter: blur(20px) saturate(1.2); border-top: 1px solid var(--line); }
.tabs > button { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 10px; letter-spacing: .2px; color: var(--faint); font-weight: 700; transition: color .15s; }
.tabs > button.on { color: var(--fg); }
.tabs > button.on::before { content: ""; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--acc); }
.tabs > button .ic { display: inline-flex; line-height: 1; transition: transform .15s; }
.tabs > button .ic svg { width: 23px; height: 23px; }
.tabs > button.on .ic { transform: translateY(-1px); }
/* tablets / desktop: keep the bar under the 640px content column (must come after the base .tabs rule) */
@media (min-width: 700px) {
  .tabs { left: 50%; right: auto; width: 640px; transform: translateX(-50%);
    border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

/* onboarding */
.ob { min-height: calc(100vh - 30px); display: flex; flex-direction: column; }
.ob .heroicons { text-align: center; margin: 32px 0 14px; display: flex; justify-content: center; gap: 14px; color: var(--acc); }
.ob .heroicons .i { width: 40px; height: 40px; }
.team-tile .tile-ic { display: inline-flex; } .team-tile .tile-ic .i { width: 30px; height: 30px; }
.ob .steps { display: flex; gap: 6px; justify-content: center; margin: 6px 0 22px; }
.ob .steps i { width: 30px; height: 4px; border-radius: 3px; background: var(--surface3); transition: background .2s; } .ob .steps i.on { background: var(--acc); }
.ob .footer { margin-top: auto; padding-top: 14px; display: flex; gap: 8px; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--ink) 34%); padding-bottom: 6px; }
.team-tile { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 13px 6px; border-radius: 15px; background: var(--surface); border: 1.5px solid var(--line); font-size: 12px; font-weight: 700; text-align: center; transition: all .12s; color: var(--fg); }
.team-tile.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, var(--surface)); }
.team-tile .crest { width: 44px; height: 44px; border-radius: 12px; }
.team-tile:active { transform: scale(.95); }

/* top bar / rows / tables */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 10px; }
.avatar { width: 42px; height: 42px; border-radius: 13px; background: var(--acc); color: var(--acc-ink); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 17px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; }
.list-row .ic { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--surface2); flex: none; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; color: var(--hint); font-weight: 800; font-size: 10.5px; text-transform: uppercase; padding: 6px 4px; letter-spacing: .5px; }
.table td { padding: 9px 4px; border-top: 1px solid var(--line); white-space: nowrap; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.me td { background: color-mix(in srgb, var(--acc) 12%, transparent); }
.table .zone-up td:first-child { box-shadow: inset 3px 0 0 var(--acc); } .table .zone-down td:first-child { box-shadow: inset 3px 0 0 var(--live); }
.form { display: inline-flex; gap: 3px; } .form i { width: 18px; height: 18px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; color: #fff; font-style: normal; }
.form .W { background: var(--acc); color: var(--acc-ink); } .form .D { background: #9ca3af; } .form .L { background: var(--live); }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .kv:last-child { border-bottom: 0; } .kv span:first-child { color: var(--hint); }

/* ---- v17: match timeline, ranking podium, live pulse, selection pop ---- */
.tl { position: relative; padding: 6px 0 2px; }
.tl::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line2); transform: translateX(-50%); }
.tl-row { position: relative; display: flex; align-items: center; margin: 10px 0; min-height: 40px; }
.tl-row.home { justify-content: flex-start; padding-right: 54%; }
.tl-row.away { justify-content: flex-end; padding-left: 54%; }
.tl-min { position: absolute; left: 50%; transform: translateX(-50%); z-index: 1; font-family: var(--display); font-size: 13px; letter-spacing: .5px;
  background: var(--acc); color: var(--acc-ink); border-radius: 999px; padding: 3px 8px; min-width: 38px; text-align: center; }
.tl-body { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 11px; display: flex; flex-direction: column; gap: 1px; min-width: 0; max-width: 100%; }
.tl-body b { font-size: 14px; } .tl-body .sc { font-family: var(--display); font-size: 15px; color: var(--hint); letter-spacing: .5px; }
.tl-row.away .tl-body { text-align: right; align-items: flex-end; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 4px 0 12px; text-align: center; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.pod .av { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; color: var(--acc-ink); background: var(--acc); }
.pod.p1 .av { width: 50px; height: 50px; background: var(--gold); color: #1a1200; font-size: 20px; box-shadow: 0 8px 22px color-mix(in srgb, var(--gold) 35%, transparent); }
.pod.p3 .av { background: var(--surface3); color: var(--fg); }
.pod b { font-size: 12.5px; max-width: 100%; } .pod .pts { font-family: var(--display); font-size: 18px; letter-spacing: .5px; }
.pod i { display: block; width: 100%; border-radius: 10px 10px 0 0; background: var(--surface2); border: 1px solid var(--line); border-bottom: 0; height: 30px; }
.pod.p1 i { height: 58px; background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 35%, var(--surface2)), var(--surface2)); }
.pod.p2 i { height: 42px; } .pod.p1 .pts { color: var(--gold); }
.badge.live { animation: livering 2s ease-in-out infinite; }
@keyframes livering { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 35%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
.pick.on { animation: pop .2s ease-out; }
.progress.big { height: 10px; }

/* ---- v19: spacing scale, brand mark, selection pop, tab bounce, score flash, inline errors ---- */
:root { --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; }
.brand { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 18px; letter-spacing: 1px; text-transform: uppercase; color: var(--fg); }
.brand .i { width: 22px; height: 22px; color: var(--acc); }
@keyframes chippop { 0% { transform: scale(.92); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
.chip.pop, .team-tile.pop { animation: chippop .22s ease-out; }
.tabs > button.on .ic { animation: chippop .25s ease-out; }
@keyframes scoreflash { 0% { transform: scale(1); color: var(--fg); } 30% { transform: scale(1.25); color: var(--acc-2); } 100% { transform: scale(1); color: var(--fg); } }
.score.flash, .sboard .sc.flash { animation: scoreflash .9s ease-out; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .chip.on, :root:not([data-theme="dark"]) .pick.on { color: var(--acc-dim); } }

/* pre-match odds row: three cells + attribution, muted so the score/teams stay dominant */
.odds { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--hint); flex-wrap: wrap; }
.odds span { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 8px; border-radius: 8px; background: var(--surface2); }
.odds em { font-style: normal; font-size: 10px; font-weight: 700; opacity: .75; }
.odds b { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.odds small { margin-left: auto; font-size: 10px; color: var(--hint); }   /* measured ≥5.4:1 both themes; .7 opacity was 3.1:1 */
.odds.closing span { opacity: .8; } .odds.closing b { color: var(--hint); }

/* usual XI block: one row per line (GK / DEF / MID / FWD), names as chips with starts/games */
.xi .xi-row { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; border-bottom: 1px solid var(--line); }
.xi .xi-row:last-of-type { border-bottom: 0; }
.xi .xi-ic { width: 22px; flex: none; }
.xi .xi-names { display: flex; flex-wrap: wrap; gap: 6px; }
.xi .xi-p { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 8px; border-radius: 8px; background: var(--surface2); font-size: 13px; font-weight: 600; }
.xi .xi-p small { font-size: 10px; color: var(--hint); font-weight: 600; }
.xi2 { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .xi2 { grid-template-columns: 1fr 1fr; } }
