/* ============================================================
   Punty's World Cup — Dashboard
   Design tokens + components (matched to the live subsite)
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Saira:wght@300;400;500;600;700;800;900&family=Chakra+Petch:wght@400;500;600;700&family=Rajdhani:wght@500;600;700&family=Exo+2:wght@400;500;600;700;800&family=Orbitron:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  --bg:        #09090f;
  --bg-grad-1: #0e0e18;
  --bg-grad-2: #07070c;
  --panel:     #101019;
  --panel-2:   #14141f;
  --panel-3:   #181826;
  --line:      rgba(255,255,255,.07);
  --line-2:    rgba(255,255,255,.13);

  --txt:    #ecedf4;
  --txt-2:  #9a9ab2;
  --txt-3:  #62627a;

  --green:     #3ce07d;
  --green-dim: rgba(60,224,125,.13);
  --red:       #ff5071;
  --red-dim:   rgba(255,80,113,.13);
  --blue:      #3bb4f5;
  --blue-dim:  rgba(59,180,245,.13);
  --violet:    #8b7cf6;
  --violet-dim:rgba(139,124,246,.14);
  --amber:     #f5b13b;
  --amber-dim: rgba(245,177,59,.13);
  --magenta:   #ff3d9a;
  --magenta-dim: rgba(255,61,154,.13);

  --font-display: 'Saira', system-ui, sans-serif;
  --font-body:    'Saira', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* density (overridden by [data-density]) */
  --pad: 16px;
  --gap: 14px;
  --radius: 14px;
  --radius-sm: 9px;
}
[data-density="compact"] { --pad: 12px; --gap: 10px; --radius: 11px; }
[data-density="comfy"]   { --pad: 22px; --gap: 20px; --radius: 16px; }

/* group accent colours A–L */
:root {
  --g-A:#ff3d9a; --g-B:#3bb4f5; --g-C:#3ce07d; --g-D:#f5b13b;
  --g-E:#8b7cf6; --g-F:#2dd4bf; --g-G:#ff5071; --g-H:#ff3d9a;
  --g-I:#3bb4f5; --g-J:#8b7cf6; --g-K:#f5b13b; --g-L:#2dd4bf;
}

/* ---------- Light theme (opt-in via the header toggle) ----------
   The hub's NATIVE default is DARK (the synthwave :root tokens above). This
   block activates only when the visitor flips data-theme="light" (persisted to
   localStorage['punty-theme'], same key as the live racing site so the choice
   carries across products). It re-maps EVERY colour token so every component
   inherits a light canvas with no per-component overrides.

   Accent hues keep their identity but are DARKENED for contrast on white:
   green/blue/amber especially (the neon dark-mode values wash out / fail AA on
   white). Red / magenta / violet stay vivid + legible. The *-dim background
   tints become low-alpha light tints of the darkened accent. */
:root[data-theme="light"] {
  --bg:        #f5f6fb;
  --bg-grad-1: #ffffff;
  --bg-grad-2: #eef0f7;
  --panel:     #ffffff;
  --panel-2:   #f7f8fc;
  --panel-3:   #eef0f6;
  --line:      rgba(0,0,0,.08);
  --line-2:    rgba(0,0,0,.14);

  --txt:    #15151c;
  --txt-2:  #565676;
  --txt-3:  #8a8aa0;

  --green:     #15a85a;
  --green-dim: rgba(21,168,90,.12);
  --red:       #d11f44;
  --red-dim:   rgba(209,31,68,.10);
  --blue:      #0d77c2;
  --blue-dim:  rgba(13,119,194,.10);
  --violet:    #6a4fd6;
  --violet-dim:rgba(106,79,214,.12);
  --amber:     #b8790a;
  --amber-dim: rgba(184,121,10,.12);
  --magenta:   #d61484;
  --magenta-dim: rgba(214,20,132,.10);

  /* group accents re-tuned to the darkened light-mode variants */
  --g-A:#d61484; --g-B:#0d77c2; --g-C:#15a85a; --g-D:#b8790a;
  --g-E:#6a4fd6; --g-F:#0e9c8e; --g-G:#d11f44; --g-H:#d61484;
  --g-I:#0d77c2; --g-J:#6a4fd6; --g-K:#b8790a; --g-L:#0e9c8e;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(1200px 620px at 78% -8%, rgba(139,124,246,.10), transparent 60%),
    radial-gradient(1000px 520px at 8% 4%, rgba(255,61,154,.07), transparent 55%),
    linear-gradient(180deg, var(--bg-grad-1), var(--bg-grad-2) 60%);
  background-attachment: fixed;
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* light mode: soften the radial washes so the page reads clean, not muddy */
:root[data-theme="light"] body {
  background-image:
    radial-gradient(1200px 620px at 78% -8%, rgba(106,79,214,.07), transparent 60%),
    radial-gradient(1000px 520px at 8% 4%, rgba(214,20,132,.05), transparent 55%),
    linear-gradient(180deg, var(--bg-grad-1), var(--bg-grad-2) 60%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(139,124,246,.35); }
:root[data-theme="light"] ::selection { background: rgba(106,79,214,.22); }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
*::-webkit-scrollbar { height: 9px; width: 9px; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 99px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- Header / nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
:root[data-theme="light"] .topbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 1px 10px rgba(15,21,40,.05);
}
.topbar-in {
  max-width: 1520px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 12px 26px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo { height: 42px; width: auto; display: block; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--txt-2); padding: 6px 0; position: relative; transition: color .15s;
}
.nav a:hover { color: var(--txt); }
.nav a.active { color: var(--txt); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--magenta), var(--blue)); border-radius: 2px;
}
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--txt-2); background: rgba(255,255,255,.03);
  font-size: 12px; cursor: pointer; transition: .15s;
}
.icon-btn:hover { color: var(--txt); border-color: var(--txt-3); }

/* ---------- Theme toggle (pill — mirrors the live racing site / hub) ----------
   Sits in .topbar-right next to the social icons. Sun on the left, moon on the
   right; the pill slides to the active side. data-theme="light"|"dark" on
   <html> drives the position + which glyph is lit. */
.theme-toggle {
  position: relative; flex-shrink: 0;
  width: 56px; height: 30px; border-radius: 16px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  cursor: pointer; display: flex; align-items: center;
  transition: border-color .15s, background .15s; padding: 0;
}
.theme-toggle:hover { border-color: var(--magenta); }
:root[data-theme="light"] .theme-toggle { background: rgba(0,0,0,.03); }
.theme-toggle__pill {
  position: absolute; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  transition: left .3s cubic-bezier(.4,0,.2,1), background .3s, box-shadow .3s;
}
:root[data-theme="dark"] .theme-toggle__pill,
:root:not([data-theme="light"]) .theme-toggle__pill {
  left: 30px; background: #8b7cf6; box-shadow: 0 2px 8px rgba(139,124,246,.5);
}
:root[data-theme="light"] .theme-toggle__pill {
  left: 2px; background: #f5b13b; box-shadow: 0 2px 8px rgba(245,177,59,.5);
}
.theme-toggle__icon {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 12px; line-height: 1; pointer-events: none; transition: opacity .3s;
}
.theme-toggle__sun  { left: 7px; }
.theme-toggle__moon { right: 7px; }
:root[data-theme="dark"] .theme-toggle__sun,
:root:not([data-theme="light"]) .theme-toggle__sun  { opacity: .35; }
:root[data-theme="dark"] .theme-toggle__moon,
:root:not([data-theme="light"]) .theme-toggle__moon { opacity: 1; }
:root[data-theme="light"] .theme-toggle__sun  { opacity: 1; }
:root[data-theme="light"] .theme-toggle__moon { opacity: .35; }

/* ---------- Page shell ---------- */
.page { max-width: 1520px; margin: 0 auto; padding: 22px 26px 60px; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.page-title {
  font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1;
  letter-spacing: -.5px; margin: 0;
}
.page-sub {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--txt-2); margin-top: 9px;
}
.page-sub .live-dot { color: var(--green); }
.betting-pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-2); border-radius: 99px; padding: 7px 7px 7px 14px;
  background: rgba(255,255,255,.02); font-size: 12.5px; color: var(--txt-2);
}
.betting-pill b { color: var(--txt); }
.betting-pill .tag {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--blue); background: var(--blue-dim); border: 1px solid var(--blue-dim);
  padding: 4px 9px; border-radius: 99px; font-weight: 700; white-space: nowrap;
}

/* ---------- Hero banner (framed, not full-bleed) ---------- */
.banner {
  position: relative; width: 100%; max-width: 1200px; margin: 0 auto var(--gap);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2); background: #060608;
  box-shadow: 0 14px 44px -20px rgba(0,0,0,.75);
}
.banner img { width: 100%; height: auto; display: block; }

/* ---------- Live now & Up next featured band ---------- */
.nownext { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-bottom: var(--gap); }
/* Only one featured card to show (live with nothing upcoming, or a single
   upcoming match) → collapse to a centered single column so the lone tile
   doesn't stretch sparse across the full width. */
.nownext.single { grid-template-columns: minmax(0, 520px); justify-content: center; }
.nn-card {
  position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-2);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 15px;
}
/* Whole tile is a link to the match page. */
a.nn-card { cursor: pointer; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.nn-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.35); transform: translateY(-1px); }
a.nn-card.live:hover { border-color: rgba(255,61,154,.55); }
a.nn-card.next:hover { border-color: rgba(59,180,245,.5); }
.nn-card.live { background: radial-gradient(620px 220px at 0% 0%, rgba(255,61,154,.16), transparent 70%), linear-gradient(160deg, #17101a, #0c0c13); border-color: rgba(255,61,154,.3); }
.nn-card.next { background: radial-gradient(620px 220px at 100% 0%, rgba(59,180,245,.14), transparent 70%), linear-gradient(160deg, #0d1320, #0b0c13); border-color: rgba(59,180,245,.24); }
.nn-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nn-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.nn-card.live .nn-tag { color: var(--magenta); }
.nn-card.next .nn-tag { color: var(--blue); }
.nn-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.nn-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: var(--txt-3); text-align: right; }
.nn-duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.nn-side { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.nn-side .team-av { width: 92px; height: 92px; border-radius: 20px; }
.nn-side .nm { font-family: var(--font-display); font-weight: 700; font-size: 16px; text-align: center; white-space: normal; line-height: 1.1; max-width: 100%; overflow-wrap: anywhere; }
.nn-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nn-score { font-family: var(--font-display); font-weight: 800; font-size: 42px; line-height: 1; }
.nn-clock { font-family: var(--font-mono); font-size: 11px; color: var(--magenta); letter-spacing: .5px; }
.nn-kick { font-family: var(--font-mono); font-size: 14px; color: var(--txt-3); }
.nn-when { font-family: var(--font-mono); font-size: 11px; color: var(--blue); letter-spacing: .5px; white-space: nowrap; }
.nn-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.nn-bet { display: flex; align-items: center; gap: 11px; min-width: 0; }
.nn-bet .lab { font-family: var(--font-mono); font-size: 9px; letter-spacing: .8px; text-transform: uppercase; color: var(--txt-3); }
.nn-bet .val { font-size: 14.5px; font-weight: 600; color: var(--txt); }
.nn-odds { font-family: var(--font-display); font-weight: 800; font-size: 23px; }
.nn-card.live .nn-odds { color: var(--magenta); }
.nn-card.next .nn-odds { color: var(--blue); }
/* Secondary suggested bets (Score / Scorer) on the Live & Up-next cards. */
.nn-tips { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 11px; }
.nn-tip { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2px; color: var(--txt-2); background: var(--panel-3); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.nn-tip b { color: var(--txt); font-weight: 700; margin-right: 4px; }
.nn-tip i { color: var(--magenta); font-style: normal; font-weight: 700; }
@media (max-width: 860px) { .nownext { grid-template-columns: 1fr; } .nownext.single { grid-template-columns: 1fr; } }
/* centre cells (score / vs) sit in the duel grid */
.nn-mid, .ft-mid, .m-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.m-mid { justify-self: center; }
/* Cap + centre the duel so a lone featured tile's mascots aren't flung to the
   extreme edges with a big dead middle. */
.nn-duel { max-width: 480px; margin: 0 auto; width: 100%; }
/* "View match →" affordance in the card foot. */
.view-match { font-family: var(--font-mono); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--txt-3); transition: color .15s; }
a.nn-card:hover .view-match, a.mfeat:hover .view-match, a.mrow:hover .view-match { color: var(--txt-2); }
.nn-cta, .ft-cta { display: flex; justify-content: flex-end; }
.nn-cta { margin-top: -4px; }
.ft-cta { margin-top: -2px; }
.view-match.row-hint { white-space: nowrap; }
/* Phones: stop the big score overlapping the mascots in the featured duel */
@media (max-width: 560px) {
  .nn-score { font-size: 28px; }
  .nn-side .team-av { width: 60px; height: 60px; border-radius: 14px; }
  .nn-duel { gap: 8px; }
  .nn-side .nm { font-size: 13px; }
}

/* ---------- Matches module (Today / Upcoming / Results) ---------- */
.matchlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px,1fr)); gap: 8px; }
.matchlist.single { grid-template-columns: 1fr; }
.mrow {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 16px; align-items: center;
  background: var(--panel-3); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 13px; transition: border-color .15s, box-shadow .15s;
}
/* Whole row is a link to the match page. */
a.mrow { cursor: pointer; text-decoration: none; color: inherit; }
.mrow:hover { border-color: var(--line-2); }
a.mrow:hover { box-shadow: 0 4px 16px rgba(0,0,0,.28); }
.mrow .m-fix { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 9px; min-width: 0; }
.mrow .m-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mrow .m-team .team-name { font-size: 12.5px; }
.mrow .m-team.h { flex-direction: row-reverse; }
.mrow .m-team.h .team-name { text-align: right; }
.mrow .sc { font-family: var(--font-display); font-weight: 800; font-size: 18px; padding: 0 2px; white-space: nowrap; }
.mrow .sc.live { color: var(--magenta); font-size: 12px; font-family: var(--font-mono); }
.mrow .vs { font-family: var(--font-mono); font-size: 11px; color: var(--txt-3); }
.mrow .m-meta { display: flex; align-items: center; gap: 13px; justify-self: end; }
.mrow .m-pick { text-align: right; line-height: 1.25; }
.mrow .m-pick .lab { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .7px; text-transform: uppercase; color: var(--txt-3); }
.mrow .m-pick .val { font-size: 12.5px; color: var(--txt); font-weight: 600; white-space: nowrap; }
.mrow .m-odds { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--txt); min-width: 40px; text-align: right; }
.mrow .countdown {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .4px; color: var(--blue);
  border: 1px solid rgba(59,180,245,.3); background: var(--blue-dim); border-radius: 7px; padding: 4px 8px; white-space: nowrap;
}
.mrow .countdown.soon { color: var(--magenta); border-color: rgba(255,61,154,.35); background: var(--magenta-dim); }

/* ---------- Feature match cards (Today) ---------- */
.matchlist.feature { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (max-width: 760px) { .matchlist.feature { grid-template-columns: 1fr; } }
.mfeat {
  position: relative; background: linear-gradient(180deg, var(--panel-3), var(--panel));
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px 14px 13px;
  display: flex; flex-direction: column; gap: 11px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
/* Whole feature card is a link to the match page. */
a.mfeat { cursor: pointer; text-decoration: none; color: inherit; }
.mfeat:hover { border-color: rgba(255,255,255,.2); }
a.mfeat:hover { box-shadow: 0 6px 22px rgba(0,0,0,.32); transform: translateY(-1px); }
.mfeat .ft-top { display: flex; align-items: center; justify-content: space-between; }
.mfeat .ft-grp { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .9px; text-transform: uppercase; color: var(--txt-3); }
.mfeat .ft-duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.mfeat .ft-side { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.mfeat .ft-side .team-av { width: 74px; height: 74px; border-radius: 16px; }
.mfeat .ft-side .nm { font-size: 12px; font-weight: 600; color: var(--txt); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mfeat .ft-mid { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.mfeat .ft-score { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; }
.mfeat .ft-vs { font-family: var(--font-mono); font-size: 12px; color: var(--txt-3); }
.mfeat .ft-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 11px; }
.mfeat .ft-back { font-family: var(--font-mono); font-size: 10.5px; color: var(--txt-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mfeat .ft-back b { color: var(--txt); }

/* ---------- Races promo band ---------- */
.promo {
  position: relative; overflow: hidden; border-radius: var(--radius); margin-top: var(--gap);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(640px 220px at 10% -20%, rgba(255,61,154,.20), transparent 70%),
    radial-gradient(640px 240px at 92% 130%, rgba(59,180,245,.18), transparent 70%),
    linear-gradient(120deg, #16111f, #0b0b13);
  padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.promo .p-checker {
  position: absolute; left: 0; right: 0; top: 0; height: 7px;
  background: repeating-conic-gradient(#f2f2f5 0% 25%, #0b0b13 0% 50%) 0 / 14px 14px; opacity: .55;
}
.promo .p-left { max-width: 640px; min-width: 280px; flex: 1; }
.promo .p-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--magenta); }
.promo .p-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 32px); line-height: 1.03; margin: 9px 0 7px; letter-spacing: -.5px; }
.promo .p-title em { font-style: normal; background: linear-gradient(90deg, var(--magenta), #ff7a3d 60%, #ffd23f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.promo .p-sub { color: var(--txt-2); font-size: 14px; max-width: 540px; }
.promo .p-cta {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 15px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .8px; text-transform: uppercase; font-weight: 700;
  color: #120a06; background: linear-gradient(90deg, var(--magenta), #ff7a3d 58%, #ffd23f);
  padding: 12px 20px; border-radius: 11px; transition: transform .15s, box-shadow .15s;
  box-shadow: 0 8px 24px -10px rgba(255,61,154,.5);
}
.promo .p-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(255,61,154,.6); }
.promo .silks { display: flex; gap: 11px; flex: 0 0 auto; }
.promo .saddle {
  width: 58px; height: 68px; border-radius: 9px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 27px; color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.28), 0 8px 20px -8px rgba(0,0,0,.6);
  transform: skewX(-5deg);
}
.promo .saddle span { transform: skewX(5deg); }
.promo .saddle.s1 { background: linear-gradient(160deg, #ff3d9a, #c11d6b); }
.promo .saddle.s2 { background: linear-gradient(160deg, #3bb4f5, #1f6fb0); margin-top: 14px; }
.promo .saddle.s3 { background: linear-gradient(160deg, #f5b13b, #c4860f); }
@media (max-width: 620px) { .promo .silks { display: none; } }

/* ---------- Cards / sections ---------- */
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad);
}
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-title {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--txt); position: relative; padding-bottom: 9px;
}
.sec-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--magenta), var(--blue));
}
.sec-title.green::after { background: linear-gradient(90deg, var(--green), transparent); }
.sec-title.amber::after { background: linear-gradient(90deg, var(--amber), transparent); }
.sec-title.blue::after { background: linear-gradient(90deg, var(--blue), transparent); }
.sec-link {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--blue); display: inline-flex; gap: 6px; align-items: center; transition: gap .15s;
}
.sec-link:hover { gap: 9px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .8px; text-transform: uppercase;
  font-weight: 700; padding: 3px 8px; border-radius: 99px; border: 1px solid transparent; white-space: nowrap;
}
.badge.won    { color: var(--green); background: var(--green-dim); border-color: rgba(60,224,125,.3); }
.badge.lost   { color: var(--red);  background: var(--red-dim);  border-color: rgba(255,80,113,.3); }
.badge.pending{ color: var(--amber);background: var(--amber-dim);border-color: rgba(245,177,59,.3); }
.badge.miss   { color: var(--amber);background: var(--amber-dim);border-color: rgba(245,177,59,.3); }
.badge.live   { color: var(--magenta); background: var(--magenta-dim); border-color: rgba(255,61,154,.35); }
.badge.live::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--magenta); box-shadow:0 0 0 0 rgba(255,61,154,.6); animation: pulse 1.6s infinite; }
.badge.draw   { color: var(--blue); background: var(--blue-dim); border-color: rgba(59,180,245,.3); }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,61,154,.55)} 70%{box-shadow:0 0 0 6px rgba(255,61,154,0)} 100%{box-shadow:0 0 0 0 rgba(255,61,154,0)} }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .6px; text-transform: uppercase;
  color: var(--txt-2); border: 1px solid var(--line-2); border-radius: 99px; padding: 3px 9px;
}

/* ---------- Team chip (avatar = Punty mascot on white) ---------- */
.team { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.team-av {
  width: 32px; height: 32px; border-radius: 9px; flex: 0 0 auto; position: relative; overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.4);
}
.team-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.team-av b {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 9px; color: var(--gc, #555);
}
.team-av.lg { width: 46px; height: 46px; border-radius: 11px; }
.team-av.xl { width: 64px; height: 64px; border-radius: 13px; }
.team-av.sm { width: 22px; height: 22px; border-radius: 6px; }
.team-name { font-weight: 600; font-size: 13.5px; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.team:hover .team-name { color: var(--blue); }
.team .grp { font-family: var(--font-mono); font-size: 9.5px; color: var(--txt-3); letter-spacing: .5px; }

/* ---------- KPI strip ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-bottom: var(--gap); }
/* segment card: two big stats (strike + ROI) split evenly across the card so
   they fill the width and align on both desktop and mobile, with a divider. */
.kpi.seg .seg-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 14px; }
.kpi.seg .seg-stat { min-width: 0; }
.kpi.seg .seg-stat + .seg-stat { padding-left: 18px; border-left: 1px solid var(--line-2); }
.kpi.seg .ss-val { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 4.4vw, 35px); line-height: 1; letter-spacing: -.5px; white-space: nowrap; }
.kpi.seg .ss-lab { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--txt-3); margin-top: 8px; }
.kpi {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.kpi .k-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--txt-3); }
.kpi .k-val { font-family: var(--font-display); font-weight: 800; line-height: 1; margin-top: 8px; }
.kpi.hero { grid-column: span 1; background: linear-gradient(150deg, rgba(60,224,125,.12), var(--panel) 55%); border-color: rgba(60,224,125,.22); }
.kpi.hero .k-val { font-size: 46px; color: var(--green); }
.kpi .k-val.big { font-size: 27px; }
.kpi .k-sub { font-family: var(--font-mono); font-size: 10px; color: var(--txt-2); margin-top: 7px; letter-spacing: .3px; }
/* Pin the context line to the bottom edge so equal-height tiles don't dump
   empty space at the bottom — number up top, supporting line anchored low,
   matching the hero's chart-at-bottom rhythm. */
.kpi .k-foot { font-family: var(--font-mono); font-size: 9.5px; color: var(--txt-3); margin-top: auto; padding-top: 9px; }

/* ---------- Main grid ---------- */
.grid { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: var(--gap); align-items: start; }
.col { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.rail { display: flex; flex-direction: column; gap: var(--gap); }

/* ---------- Today's slate (match cards) ---------- */
.slate { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px,1fr)); gap: 10px; }
.match {
  background: var(--panel-3); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 12px; display: flex; flex-direction: column; gap: 9px; transition: border-color .15s, transform .15s;
}
.match:hover { border-color: var(--line-2); }
.match .m-top { display: flex; align-items: center; justify-content: space-between; }
.match .m-grp { font-family: var(--font-mono); font-size: 9px; letter-spacing: .8px; color: var(--txt-3); text-transform: uppercase; }
.match .m-teams { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.match .m-side { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.match .m-side .team-name { font-size: 11.5px; max-width: 100%; text-align: center; }
.match .m-score { font-family: var(--font-display); font-weight: 800; font-size: 20px; padding: 0 6px; white-space: nowrap; }
.match .m-vs { font-family: var(--font-mono); font-size: 11px; color: var(--txt-3); padding: 0 4px; }
.match .m-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.match .m-back { font-family: var(--font-mono); font-size: 10px; color: var(--txt-2); letter-spacing: .2px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match .m-back b { color: var(--txt); }

/* ---------- Ledger table ---------- */
.ledger-wrap { overflow-x: auto; margin: 0 calc(var(--pad) * -1) calc(var(--pad) * -1); }
.ledger { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ledger thead th {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--txt-3);
  text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); font-weight: 500; white-space: nowrap;
}
.ledger tbody td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.ledger tbody tr { position: relative; transition: background .12s; }
.ledger tbody tr:hover { background: rgba(255,255,255,.025); }
.ledger tbody tr.won  td:first-child { box-shadow: inset 3px 0 0 var(--green); }
.ledger tbody tr.lost td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.ledger tbody tr.pending td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.ledger tbody tr.miss td:first-child { box-shadow: inset 3px 0 0 var(--txt-3); }
.ledger .c-date { font-family: var(--font-mono); font-size: 11px; color: var(--txt-3); }
.ledger .c-mkt  { font-family: var(--font-mono); font-size: 11px; color: var(--txt-2); }
.ledger .c-sel  { color: var(--txt); font-weight: 500; }
.ledger .c-num  { font-family: var(--font-mono); text-align: right; }
.ledger .c-odds { color: var(--txt); }
.ledger .c-stake{ color: var(--txt-3); }
.ledger .roi.pos { color: var(--green); }
.ledger .roi.neg { color: var(--red); }
.ledger .roi.nil { color: var(--txt-3); }
.ledger td.tight { width: 1%; }

/* filters */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filt {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .6px; text-transform: uppercase;
  color: var(--txt-2); border: 1px solid var(--line-2); background: transparent; border-radius: 99px;
  padding: 4px 11px; cursor: pointer; transition: .15s;
}
.filt:hover { color: var(--txt); border-color: var(--txt-3); }
.filt.active { color: #07101a; background: var(--txt); border-color: var(--txt); font-weight: 700; }
.filt.active.won  { background: var(--green); border-color: var(--green); }
.filt.active.lost { background: var(--red); border-color: var(--red); }
.filt.active.pending { background: var(--amber); border-color: var(--amber); }

/* ---------- Upcoming bets ---------- */
.upcoming { display: flex; flex-direction: column; gap: 8px; }
.upcoming.two { display: grid; grid-template-columns: repeat(auto-fill, minmax(372px,1fr)); gap: 8px; }
.ubet {
  display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: center;
  background: var(--panel-3); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; transition: border-color .15s;
}
.ubet:hover { border-color: var(--line-2); }
.ubet .u-match { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ubet .u-vs { color: var(--txt-3); font-family: var(--font-mono); font-size: 11px; padding: 0 2px; }
.ubet .u-when { font-family: var(--font-mono); font-size: 10px; color: var(--txt-3); margin-top: 3px; letter-spacing: .3px; }
.ubet .u-right { display: flex; align-items: center; gap: 16px; justify-self: end; }
.ubet .u-pick { text-align: right; }
.ubet .u-pick .lab { font-family: var(--font-mono); font-size: 9px; letter-spacing: .8px; text-transform: uppercase; color: var(--txt-3); }
.ubet .u-pick .val { font-size: 12.5px; color: var(--txt); font-weight: 600; }
.ubet .u-odds { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--txt); }
.ubet .countdown {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .5px; color: var(--blue);
  border: 1px solid rgba(59,180,245,.3); background: var(--blue-dim); border-radius: 7px; padding: 4px 8px; white-space: nowrap;
}
.ubet .countdown.soon { color: var(--magenta); border-color: rgba(255,61,154,.35); background: var(--magenta-dim); }

/* ---------- Rail modules ---------- */
.call {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 13px;
  background: linear-gradient(160deg, rgba(59,180,245,.08), var(--panel-3) 60%);
  display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px;
}
.call:last-child { margin-bottom: 0; }
.call.gold { background: linear-gradient(160deg, rgba(245,177,59,.10), var(--panel-3) 60%); }
.call .c-lab { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--txt-3); }
.call .c-team { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.call .c-team .team-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.call .c-meta { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.call .c-odds { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--blue); }
.call.gold .c-odds { color: var(--amber); }
.call .c-ret { font-family: var(--font-mono); font-size: 10px; color: var(--txt-2); }

/* title race */
.race { display: flex; flex-direction: column; gap: 9px; }
.race.race-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 26px; }
@media (max-width: 720px) { .race.race-2col { grid-template-columns: 1fr; } }
.race-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 9px; align-items: center; }
.race-row .rk { font-family: var(--font-mono); font-size: 10px; color: var(--txt-3); text-align: right; }
.race-row .rbar { position: relative; height: 34px; border-radius: 8px; background: rgba(255,255,255,.04); overflow: hidden; display: flex; align-items: center; }
.race-row .rfill { position: absolute; inset: 0 auto 0 0; border-radius: 6px; opacity: .85; }
.race-row .rname { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; padding-left: 8px; }
.race-row .rname .team-name { font-size: 12px; }
.race-row .rpct { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--txt); }

/* golden boot / scorer list */
.scorers { display: flex; flex-direction: column; }
.scorers.scorers-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
@media (max-width: 720px) { .scorers.scorers-2col { grid-template-columns: 1fr; } }
.scorer { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.scorer:last-child { border-bottom: 0; }
.scorer .rk { font-family: var(--font-mono); font-size: 11px; color: var(--violet); }
.scorer .who { display: flex; flex-direction: column; min-width: 0; }
.scorer .who .nm { font-size: 12.5px; color: var(--txt); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scorer .who .tm { font-family: var(--font-mono); font-size: 9.5px; color: var(--txt-3); text-transform: uppercase; letter-spacing: .5px; display: flex; align-items: center; gap: 6px; }
.scorer .gx { font-family: var(--font-mono); font-size: 12px; color: var(--txt); text-align: right; }
.scorer .gx small { color: var(--txt-3); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; }
.tab {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .8px; text-transform: uppercase;
  color: var(--txt-2); border: 1px solid transparent; background: transparent; border-radius: 8px;
  padding: 5px 12px; cursor: pointer; transition: .15s;
}
.tab:hover { color: var(--txt); }
.tab.active { color: var(--txt); background: rgba(255,255,255,.05); border-color: var(--line-2); }
.tabpane { display: none; }
.tabpane.active { display: block; }

/* groups mini */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 10px; }
.gcard { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; background: var(--panel-3); }
.gcard .g-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.gcard .g-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.gcard .g-win { font-family: var(--font-mono); font-size: 9px; letter-spacing: .5px; text-transform: uppercase; color: var(--green); }
.grow { display: grid; grid-template-columns: 14px 1fr 1fr auto; gap: 8px; align-items: center; padding: 4px 0; }
.grow .gpos { font-family: var(--font-mono); font-size: 10px; color: var(--txt-3); }
.grow .gpct-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.grow .gpct-bar i { display: block; height: 100%; border-radius: 3px; }
.grow .gpct { font-family: var(--font-mono); font-size: 10.5px; color: var(--txt-2); text-align: right; }
.grow.qual .gpct { color: var(--green); }

/* bracket mini */
.bracket { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.bcol { min-width: 150px; display: flex; flex-direction: column; gap: 7px; }
.bcol .bc-h { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--txt-3); margin-bottom: 2px; }
.bteam { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; background: var(--panel-3); }
.bteam .bp { font-family: var(--font-mono); font-size: 10.5px; color: var(--green); }

/* ---------- Footer ---------- */
.foot { max-width: 1520px; margin: 0 auto; padding: 26px; border-top: 1px solid var(--line); color: var(--txt-3); }
.foot a { color: var(--blue); }
.foot .f-nav { display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 12px; }
.foot .f-disc { font-size: 11px; line-height: 1.6; max-width: 760px; }

/* ---------- Team detail page ---------- */
.back-link { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--txt-2); display: inline-flex; gap: 7px; margin-bottom: 16px; }
.back-link:hover { color: var(--txt); }
.t-hero { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 18px; background: linear-gradient(150deg, rgba(139,124,246,.12), var(--panel) 60%); }
.t-hero .mascot { border-radius: 12px; background: #fff; overflow: hidden; display: grid; place-items: center; padding: 10px; }
.t-hero .mascot img { width: 100%; height: 100%; max-height: 230px; object-fit: contain; }
.t-hero .mascot-fallback { font-family: var(--font-display); font-weight: 800; font-size: 48px; color: #0a0a0f; }
.t-hero .h-body { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.t-hero .h-grp { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--txt-3); }
.t-hero .h-name { font-family: var(--font-display); font-weight: 800; font-size: 52px; line-height: .95; letter-spacing: -1px; }
.t-hero .h-verdict-l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--magenta); margin-top: 10px; }
.t-hero .h-verdict { font-size: 16px; color: var(--txt); max-width: 640px; }
.t-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap); margin: var(--gap) 0; }
.t-stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--panel-2); }
.t-stat .ts-l { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--txt-3); }
.t-stat .ts-v { font-family: var(--font-display); font-weight: 800; font-size: 26px; margin-top: 6px; }
.t-stat .ts-v.green { color: var(--green); }
.t-stat .ts-v.blue { color: var(--blue); }
.fixtures { display: flex; flex-direction: column; }
.fx { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.fx:last-child { border-bottom: 0; }
.fx .fx-opp { font-weight: 600; color: var(--txt); }
.fx .fx-when { font-family: var(--font-mono); font-size: 11px; color: var(--txt-3); text-align: right; }
.fx .fx-res { font-family: var(--font-display); font-weight: 800; font-size: 15px; }

.chart-card .chart-top { display: flex; align-items: flex-start; justify-content: space-between; }
.chart-card .chart-big { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--violet); }
.line-chart { width: 100%; height: 150px; margin-top: 10px; }

/* ---------- Team page — journey / verdict / markets / share ---------- */
.tier-badge {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.1px; text-transform: uppercase; font-weight: 700;
  padding: 5px 11px; border-radius: 99px; border: 1px solid;
}
.tier-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tier-badge.contender { color: var(--green);  background: var(--green-dim);  border-color: rgba(60,224,125,.3); }
.tier-badge.live      { color: var(--blue);   background: var(--blue-dim);   border-color: rgba(59,180,245,.3); }
.tier-badge.dark      { color: var(--violet); background: var(--violet-dim); border-color: rgba(139,124,246,.3); }
.tier-badge.long      { color: var(--amber);  background: var(--amber-dim);  border-color: rgba(245,177,59,.3); }
.tier-badge.group     { color: var(--blue);   background: var(--blue-dim);   border-color: rgba(59,180,245,.3); }
.tier-badge.minnow    { color: var(--txt-2);  background: rgba(255,255,255,.04); border-color: var(--line-2); }
.t-hero .h-quote { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px,2.4vw,25px); line-height: 1.18; color: #fff; margin-top: 12px; max-width: 660px; text-wrap: balance; }
.t-hero .h-verdict { font-size: 14.5px; color: var(--txt-2); max-width: 640px; margin-top: 8px; }

.journey p { color: var(--txt); font-size: 14.5px; line-height: 1.72; margin: 0 0 13px; text-wrap: pretty; }
.journey p:last-child { margin-bottom: 0; }
.journey strong { color: #fff; font-weight: 700; }
.journey a.inline { color: var(--blue); }

.markets { display: flex; flex-direction: column; }
.mkt-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mkt-row:last-child { border-bottom: 0; }
.mkt-row .mk-name { font-size: 13.5px; color: var(--txt); font-weight: 600; }
.mkt-row .mk-sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .4px; color: var(--txt-3); margin-top: 3px; text-transform: uppercase; }
.mkt-row .mk-prob { font-family: var(--font-mono); font-size: 12px; color: var(--txt-2); text-align: right; }
.mkt-row .mk-odds { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--amber); min-width: 56px; text-align: right; }
.mkt-row .mk-odds.dim { color: var(--txt-3); }

.cw-tier { font-family: var(--font-display); font-weight: 800; font-size: 23px; }
.cw-line { color: var(--txt-2); font-size: 13px; line-height: 1.55; margin-top: 7px; }
.cw-meter { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.cw-meter .row2 { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--txt-3); }
.cw-bar { height: 10px; border-radius: 6px; background: rgba(255,255,255,.05); overflow: hidden; position: relative; }
.cw-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: linear-gradient(90deg, var(--magenta), var(--blue)); }
.cw-bar .fav { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--txt-2); }

.nx { display: flex; flex-direction: column; gap: 12px; }
.nx-fix { display: flex; align-items: center; gap: 11px; }
.nx-fix .vs { font-family: var(--font-mono); font-size: 11px; color: var(--txt-3); }
.nx-when { font-family: var(--font-mono); font-size: 10.5px; color: var(--blue); letter-spacing: .4px; }
.nx-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--panel-3); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.nx-pick .lab { font-family: var(--font-mono); font-size: 9px; letter-spacing: .7px; text-transform: uppercase; color: var(--txt-3); }
.nx-pick .val { font-size: 13px; color: var(--txt); font-weight: 600; }
.nx-pick .od { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--blue); }

.share-quote { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; line-height: 1.3; }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--txt); border: 1px solid var(--line-2); background: rgba(255,255,255,.03); border-radius: 9px; padding: 8px 12px; cursor: pointer; transition: .15s; }
.share-btn:hover { border-color: var(--txt-3); background: rgba(255,255,255,.06); }
.share-btn.x:hover { color: #fff; }

/* ---------- helpers ---------- */
.muted { color: var(--txt-2); }
.faint { color: var(--txt-3); }
.note { font-family: var(--font-mono); font-size: 10.5px; color: var(--txt-3); margin-top: 10px; letter-spacing: .2px; }
.row { display: flex; align-items: center; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* responsive */
@media (max-width: 1100px) {
  .grid { grid-template-columns: 1fr; }
  .rail { display: grid; grid-template-columns: 1fr 1fr; }
  .kpi-row { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .kpi-row { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr; }
  .t-hero { grid-template-columns: 1fr; }
  .t-hero .mascot { max-width: 180px; }
  .t-hero .h-name { font-size: 40px; }
  .page-title { font-size: 26px; }
  .t-stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Light-mode polish — targeted fixes where a dark-tuned value
   reads wrong on a light canvas. Each rule is scoped to
   :root[data-theme="light"] so the (default) dark base is untouched.
   The Punty-mascot panels stay white in BOTH themes (background:#fff),
   which is correct, so they need no override here.
   ============================================================ */
/* white display text that sits on a now-LIGHT surface → near-black.
   .t-hero .h-quote + .journey strong live on the light hero / panel; on white
   the dark-mode #fff made them invisible. .share-quote likewise. */
:root[data-theme="light"] .t-hero .h-quote,
:root[data-theme="light"] .journey strong,
:root[data-theme="light"] .share-quote { color: var(--txt); }
/* translucent-WHITE fills (active tab, progress-bar tracks, share-btn surfaces)
   vanish on white → swap to subtle dark-on-light tints driven by the theme. */
:root[data-theme="light"] .tab.active { background: rgba(0,0,0,.05); }
:root[data-theme="light"] .grow .gpct-bar,
:root[data-theme="light"] .cw-bar { background: rgba(0,0,0,.07); }
:root[data-theme="light"] .share-btn { background: rgba(0,0,0,.03); }
:root[data-theme="light"] .share-btn:hover { background: rgba(0,0,0,.06); }
:root[data-theme="light"] .tier-badge.minnow { background: rgba(0,0,0,.05); }
/* the X share-btn hover flips text to #fff on a dark brand fill — keep that
   intent but only where the button background actually goes dark; on the light
   surface the default hover (dark text) reads fine, so leave it. */

/* ============================================================
   Compliance + a11y chrome (injected by wc-head.js)
   Age gate · skip-to-content · back-to-top · mobile bottom nav.
   Implemented here in the v2's own styles (NOT hub.css).
   ============================================================ */

/* ---------- skip-to-content (a11y) ---------- */
.wc-skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 200;
  background: var(--magenta); color: #fff; padding: 9px 16px; border-radius: 9px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .5px;
  transition: top .15s;
}
.wc-skip-link:focus { top: 8px; outline: 2px solid #fff; }

/* ---------- age gate modal ---------- */
.wc-age-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 24px;
  background: rgba(4,4,8,.86); backdrop-filter: blur(6px);
}
.wc-age-card {
  width: 100%; max-width: 440px; text-align: center;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: 0 26px 70px -24px rgba(0,0,0,.85);
}
.wc-age-title {
  font-family: var(--font-display); font-weight: 800; font-size: 24px; margin: 0 0 14px;
  letter-spacing: -.3px;
}
.wc-age-body { color: var(--txt-2); font-size: 14px; margin: 0 0 8px; line-height: 1.6; }
.wc-age-question { color: var(--txt); font-size: 15px; font-weight: 600; margin: 4px 0 20px; }
.wc-age-btnrow { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.wc-age-btn {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .6px; text-transform: uppercase;
  font-weight: 700; border-radius: 11px; padding: 12px 18px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.wc-age-btn--yes { color: #07101a; background: linear-gradient(90deg, var(--green), #2dd4bf); }
.wc-age-btn--yes:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(60,224,125,.5); }
.wc-age-btn--no { color: var(--txt-2); background: rgba(255,255,255,.04); border-color: var(--line-2); }
:root[data-theme="light"] .wc-age-btn--no { background: rgba(0,0,0,.04); }
.wc-age-btn--no:hover { color: var(--txt); border-color: var(--txt-3); }
.wc-age-rg { font-family: var(--font-mono); font-size: 10.5px; color: var(--txt-3); margin: 18px 0 0; }
.wc-age-rg a { color: var(--blue); }

/* ---------- back-to-top ---------- */
.wc-back-to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: var(--panel-3); border: 1px solid var(--line-2); color: var(--txt);
  cursor: pointer; box-shadow: 0 8px 24px -12px rgba(0,0,0,.7); transition: border-color .15s, transform .15s;
}
.wc-back-to-top:hover { border-color: var(--magenta); transform: translateY(-2px); }
@media (max-width: 860px) { .wc-back-to-top { bottom: 74px; } }

/* ---------- mobile fixed bottom navigation ---------- */
.wc-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none; justify-content: space-around; align-items: stretch;
  background: rgba(8,8,14,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-2); padding: 6px 4px env(safe-area-inset-bottom, 6px);
}
:root[data-theme="light"] .wc-bottom-nav { background: rgba(255,255,255,.97); }
.wc-bottom-nav__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 2px; color: var(--txt-3); text-decoration: none; transition: color .15s;
}
.wc-bottom-nav__item.is-active { color: var(--txt); }
.wc-bottom-nav__item.is-active .wc-bottom-nav__icon { color: var(--magenta); }
.wc-bottom-nav__item--races { color: var(--amber); }
.wc-bottom-nav__icon { display: block; }
.wc-bottom-nav__label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .5px; text-transform: uppercase; }
@media (max-width: 860px) {
  .wc-bottom-nav { display: flex; }
  body { padding-bottom: 64px; }
}

/* ============================================================
   Match detail page (match.html) — built on the v2 design tokens
   ============================================================ */
.match-wrap { max-width: 1080px; }
.match-hero {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px 22px;
  background:
    radial-gradient(560px 220px at 0% 0%, color-mix(in srgb, var(--accent-1, var(--magenta)) 18%, transparent), transparent 70%),
    radial-gradient(560px 220px at 100% 0%, color-mix(in srgb, var(--accent-2, var(--blue)) 16%, transparent), transparent 70%),
    linear-gradient(160deg, var(--panel-2), var(--panel));
}
.match-hero .mh-side { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
/* Hero team side links to the team page (tile → match → team flow). */
a.mh-side { text-decoration: none; color: inherit; cursor: pointer; transition: opacity .15s; }
a.mh-side:hover { opacity: .85; }
.match-hero .mh-side .nm { font-family: var(--font-display); font-weight: 700; font-size: 17px; text-align: center; }
.match-hero .mh-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.match-hero .mh-score { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; }
.match-hero .mh-vs { font-family: var(--font-mono); font-size: 12px; color: var(--txt-3); letter-spacing: 1px; }
.match-hero .mh-vs.live { color: var(--magenta); }
.match-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .5px; color: var(--txt-3); text-align: center; margin: 12px 0 0; text-transform: uppercase; }
.match-countdown { text-align: center; margin-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--blue); }
.match-countdown--live { color: var(--magenta); }
.match-countdown--review { color: var(--amber); }
.match-countdown__lbl { color: var(--txt-3); }

.outcome-strip {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px;
  border: 1px solid rgba(60,224,125,.3); background: var(--green-dim); border-radius: var(--radius-sm);
  padding: 11px 14px;
}
.outcome-strip.is-loss { border-color: rgba(255,80,113,.3); background: var(--red-dim); }
.outcome-strip__tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; color: var(--green); }
.outcome-strip.is-loss .outcome-strip__tag { color: var(--red); }
.outcome-strip__txt { font-size: 12.5px; color: var(--txt-2); flex: 1; min-width: 0; }
.outcome-strip__profit { font-family: var(--font-display); font-weight: 800; font-size: 20px; margin-left: auto; }
.outcome-strip__profit.pos { color: var(--green); }
.outcome-strip__profit.neg { color: var(--red); }

/* tip rows */
.section-lead { color: var(--txt-2); font-size: 13px; margin: 0 0 12px; }
.pick-rows { display: flex; flex-direction: column; gap: 8px; }
.pick-row {
  display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 10px 14px; align-items: center;
  border: 1px solid var(--line); border-left: 3px solid var(--mkt, var(--magenta));
  border-radius: var(--radius-sm); padding: 11px 14px; background: var(--panel-3);
}
.pick-row--won { border-color: rgba(60,224,125,.25); border-left-color: var(--green); }
.pick-row--lost { border-color: rgba(255,80,113,.22); border-left-color: var(--red); }
.pick-row .mkt-chip { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--mkt, var(--txt-2)); }
.pick-row .sel { font-size: 14px; font-weight: 600; color: var(--txt); }
.pick-row .odds { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.pick-row .money { display: flex; flex-direction: column; align-items: flex-end; }
.pick-row .money .lbl { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--txt-3); }
.pick-row .money .amt { font-family: var(--font-mono); font-size: 12px; color: var(--txt); }
.pick-row .money .amt.pos { color: var(--green); }
.pick-row .money .amt.neg { color: var(--red); }
.pick-note { font-family: var(--font-mono); font-size: 11px; color: var(--txt-3); margin: 2px 0 0; padding-left: 4px; }
@media (max-width: 620px) {
  .pick-row { grid-template-columns: 1fr auto; }
  .pick-row .mkt-chip { grid-column: 1 / -1; }
}

/* status pill */
.pill { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .8px; text-transform: uppercase; font-weight: 700; padding: 4px 9px; border-radius: 99px; border: 1px solid transparent; white-space: nowrap; }
.pill--won, .pill--hit { color: var(--green); background: var(--green-dim); border-color: rgba(60,224,125,.3); }
.pill--lost, .pill--miss { color: var(--red); background: var(--red-dim); border-color: rgba(255,80,113,.3); }
.pill--pending { color: var(--amber); background: var(--amber-dim); border-color: rgba(245,177,59,.3); }
.pill--tracked { color: var(--blue); background: var(--blue-dim); border-color: rgba(59,180,245,.3); }
.pill--upcoming { color: var(--violet); background: var(--violet-dim); border-color: rgba(139,124,246,.3); }

/* preview / review cards */
.preview-block { margin-top: var(--gap); }
.preview-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--panel-2); }
.preview-card h2 { font-family: var(--font-display); font-weight: 800; font-size: 21px; margin: 0 0 10px; line-height: 1.15; }
.preview-card p { color: var(--txt); font-size: 14.5px; line-height: 1.7; margin: 0 0 12px; text-wrap: pretty; }
.preview-card p:last-child { margin-bottom: 0; }
.preview-kicker { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--magenta); margin: 6px 0 4px; }

/* tips-drop card */
.tips-drop { border: 1px solid rgba(245,177,59,.28); background: var(--amber-dim); border-radius: var(--radius); padding: 18px 20px; margin-top: var(--gap); }
.tips-drop__kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--amber); }
.tips-drop__head { font-family: var(--font-display); font-weight: 800; font-size: 20px; margin: 8px 0; }
.tips-drop__when { font-family: var(--font-mono); font-size: 11px; color: var(--txt-2); }
.tips-drop__body { color: var(--txt-2); font-size: 14px; margin: 10px 0 8px; }
.tips-drop__nudge { font-family: var(--font-mono); font-size: 11px; color: var(--txt-3); margin: 0; }
.tips-drop__nudge .arrow { color: var(--amber); }

/* stat block */
.stat-section { margin-top: var(--gap); }
.statblock { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: var(--gap); }
.stat-card { background: var(--panel-2); }
.stat-card__title { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--txt-3); margin: 0 0 12px; }
.stat-card h4 { font-size: 12.5px; color: var(--txt-2); margin: 0 0 8px; font-weight: 600; }

/* win bar */
.winbar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; }
.winbar span { display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: #07101a; min-width: 0; }
.winbar .b1 { background: var(--magenta); }
.winbar .bd { background: var(--txt-3); }
.winbar .b2 { background: var(--blue); }
.winbar span.is-lead { box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.winbar-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--txt-2); }
.winbar-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.winbar-legend__item.is-lead { color: var(--txt); }
.winbar-legend .dot { width: 9px; height: 9px; border-radius: 50%; }
.winbar-legend .dot.b1 { background: var(--magenta); }
.winbar-legend .dot.bd { background: var(--txt-3); }
.winbar-legend .dot.b2 { background: var(--blue); }

/* barlist (scorelines / scorers) */
.barlist { display: flex; flex-direction: column; gap: 7px; }
.barlist .row { display: grid; grid-template-columns: 1fr 120px auto; gap: 10px; align-items: center; }
.barlist .row--pick .lbl { color: var(--txt); font-weight: 600; }
.barlist .lbl { font-size: 12.5px; color: var(--txt-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barlist .track { height: 7px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
:root[data-theme="light"] .barlist .track { background: rgba(0,0,0,.07); }
.barlist .fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--violet), var(--blue)); }
.barlist .row--pick .fill { background: linear-gradient(90deg, var(--green), #2dd4bf); }
.barlist .pct { font-family: var(--font-mono); font-size: 11px; color: var(--txt-2); text-align: right; }
.scorers-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
@media (max-width: 560px) { .scorers-cols { grid-template-columns: 1fr; } }
/* P(scores) bars sit in narrow 2-up columns — the default 1fr|120px|auto row
   crushed the player name to nothing ("C." for Chris Wood). Stack name + % over
   a full-width bar so scorer names stay readable. */
.scorers-cols .barlist .row {
  grid-template-columns: 1fr auto;
  grid-template-areas: "lbl pct" "trk trk";
  row-gap: 4px; column-gap: 8px;
}
.scorers-cols .barlist .lbl { grid-area: lbl; white-space: nowrap; }
.scorers-cols .barlist .pct { grid-area: pct; }
.scorers-cols .barlist .track { grid-area: trk; width: 100%; }
.kv-list { display: flex; flex-direction: column; gap: 8px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.kv:last-child { border-bottom: 0; }
.kv .k { font-size: 12.5px; color: var(--txt-2); }
.kv .v { font-family: var(--font-mono); font-size: 13px; color: var(--txt); font-weight: 600; }

/* generic empty state */
.empty { font-family: var(--font-mono); font-size: 12px; color: var(--txt-3); text-align: center; padding: 40px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* reviews list */
.reviews-list { display: flex; flex-direction: column; gap: 10px; }
.review-item { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; background: var(--panel-2); transition: border-color .15s, transform .15s; }
.review-item:hover { border-color: var(--line-2); transform: translateY(-1px); }
.review-item .head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.review-item .matchnm { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--txt); }
.review-item .date { font-family: var(--font-mono); font-size: 10.5px; color: var(--txt-3); white-space: nowrap; }
.review-item p { color: var(--txt-2); font-size: 13.5px; line-height: 1.65; margin: 0; text-wrap: pretty; }

/* wrap (daily column) */
.wrap-list { display: flex; flex-direction: column; gap: 26px; max-width: 760px; }
.wrap-list article { border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.wrap-list article:last-child { border-bottom: 0; }
.wrap-list h2 { font-family: var(--font-display); font-weight: 800; font-size: 26px; margin: 0 0 6px; line-height: 1.1; }
.wrap-list .date { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--txt-3); margin-bottom: 14px; }
.wrap-list p { color: var(--txt); font-size: 15px; line-height: 1.75; margin: 0 0 14px; text-wrap: pretty; }

/* teams board (teams.html) — group sections */
.teams-board { display: flex; flex-direction: column; gap: 22px; }
.group-block .gb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.group-block .gb-badge { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: #07101a; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.group-block .gb-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--txt-2); }
.teams-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 10px; }
.tcard { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-left: 3px solid var(--tc, var(--magenta)); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--panel-3); transition: border-color .15s, transform .15s; }
.tcard:hover { border-color: var(--line-2); transform: translateY(-1px); }
.tcard .tc-body { min-width: 0; flex: 1; }
.tcard .tc-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard .tc-stats { display: flex; gap: 12px; margin-top: 5px; }
.tcard .tc-stat { font-family: var(--font-mono); font-size: 10px; color: var(--txt-3); }
.tcard .tc-stat b { color: var(--txt-2); font-weight: 600; }
.tcard .tc-stat.q b { color: var(--green); }
