:root{
  /* SwiftScore palette — confident teal-green on deep slate. Anchor --brand
     stays #16c784 (matches the hardcoded mask-icon colour in head-extra.ejs);
     everything else is tuned around it for a sharper, premium, AA-compliant look.
     NOTE: variable NAMES are contract — only values change here. */
  --bg:#0b0f14; --surface:#141a22; --surface-2:#1d2430; --line:#283140;
  --text:#eef3f8; --muted:#94a1b2; --brand:#16c784; --brand-2:#0c9e64;
  --accent:#4d8dff; --warn:#f5b921; --danger:#f2615c;
  --win:#16c784; --radius:13px; --maxw:1080px;
  --shadow:0 8px 28px rgba(0,0,0,.34);
  --header-h:62px; /* single source of truth for the sticky header height; drops to 56px on mobile */
  /* derived brand tints (new vars only — safe to add) */
  --brand-3:#3ddc9b; --brand-tint:rgba(22,199,132,.12); --brand-tint-2:rgba(22,199,132,.18);
  --grad-brand:linear-gradient(90deg,var(--brand-2),var(--brand));
  font-synthesis:none;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 18px}
h1,h2,h3,h4{line-height:1.2;margin:0 0 .5em}
.muted{color:var(--muted)} .small{font-size:.82rem} .center{text-align:center}
.empty{color:var(--muted);padding:2rem;text-align:center;background:var(--surface);border-radius:var(--radius)}
.hp-field{position:absolute!important;left:-9999px!important;top:auto;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none} /* honeypot — hidden from humans, bait for bots */

/* Header */
.site-header{background:linear-gradient(180deg,#10161e,#0b0f14);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40}
.header-inner{display:flex;align-items:center;gap:1.5rem;height:var(--header-h)}
.brand{font-weight:800;font-size:1.24rem;letter-spacing:-.02em;display:flex;align-items:center;gap:.5rem;color:var(--text)}
.brand .brand-mark{width:26px;height:26px;flex:none;display:block}
.brand .brand-name{display:inline-flex;align-items:baseline}
.brand .brand-name b{font-weight:800;color:var(--text)}
.brand .brand-name i{font-weight:800;font-style:normal;color:var(--brand)}
.brand:hover .brand-name i{color:var(--brand-3)}
.brand .ball{font-size:1.3rem} /* legacy fallback if a view still uses the emoji */
.main-nav{display:flex;gap:1.1rem;margin-left:.5rem;flex:1}
.main-nav a{color:var(--muted);font-weight:600;font-size:.93rem;padding:.3rem 0;border-bottom:2px solid transparent}
.main-nav a:hover,.main-nav a.active{color:var(--text);border-color:var(--brand)}
.header-cta{display:flex;align-items:center;gap:.6rem}
.tier-pill{font-size:.7rem;font-weight:700;padding:.2rem .5rem;border-radius:20px;text-transform:uppercase;letter-spacing:.04em}
.tier-free{background:#243; color:var(--muted);background:var(--surface-2)}
.tier-premium{background:rgba(22,199,132,.15);color:var(--brand)}

/* Buttons */
.btn{display:inline-block;border:1px solid transparent;border-radius:10px;padding:.55rem .95rem;font-weight:700;font-size:.9rem;cursor:pointer;transition:transform .12s,background .15s,border-color .15s,box-shadow .15s;text-align:center}
.btn:active{transform:translateY(1px)}
.btn-primary{background:linear-gradient(180deg,var(--brand-3),var(--brand));color:#04140d;box-shadow:0 1px 0 rgba(255,255,255,.12) inset,0 6px 16px rgba(22,199,132,.22)}
.btn-primary:hover{background:linear-gradient(180deg,var(--brand),var(--brand-2));box-shadow:0 1px 0 rgba(255,255,255,.12) inset,0 8px 20px rgba(22,199,132,.3)}
.btn-ghost{background:var(--surface);border-color:var(--line);color:var(--text)}
.btn-ghost:hover{border-color:var(--brand);background:var(--surface-2)}
.btn-small{padding:.35rem .7rem;font-size:.8rem}
.btn-lg{padding:.75rem 1.3rem;font-size:1rem}
.btn-block{display:block;width:100%}

/* Ads */
.ad-slot{background:repeating-linear-gradient(45deg,#12171e,#12171e 10px,#141a22 10px,#141a22 20px);border:1px dashed var(--line);color:var(--muted);font-size:.78rem;text-align:center;padding:.8rem;border-radius:8px}
.ad-leaderboard{max-width:var(--maxw);margin:14px auto;}
.ad-rect{margin:1.5rem 0;min-height:90px;display:flex;align-items:center;justify-content:center}

/* Hero */
.hero{display:grid;grid-template-columns:1.4fr 1fr;gap:2rem;align-items:center;padding:2.5rem 0 1.5rem}
.hero h1{font-size:2.3rem;letter-spacing:-.02em;background:linear-gradient(90deg,#fff,#c7f9e8);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p{color:var(--muted);font-size:1.05rem;max-width:46ch}
.hero-cta{display:flex;gap:.7rem;margin:1.1rem 0 .6rem;flex-wrap:wrap}
.hero-stats{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem;text-align:center}
.stat:first-child{grid-column:span 2}
.stat-num{display:block;font-size:1.9rem;font-weight:800;color:var(--brand)}
.stat-label{color:var(--muted);font-size:.82rem}

/* Sections */
.section{margin:2.2rem 0}
.section-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:1rem}
.section-head h2{margin:0;font-size:1.3rem}
.see-all{color:var(--brand);font-weight:600;font-size:.9rem}
.page-head{padding:1.8rem 0 1rem}
.page-head h1{font-size:1.8rem}

/* Pick cards */
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem}
.pick-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1rem;transition:.15s;display:block}
.pick-card:hover{border-color:var(--brand);transform:translateY(-2px)}
.pick-league{color:var(--muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.04em}
.pick-teams{font-size:1.05rem;margin:.4rem 0}
.pick-line{display:flex;align-items:center;justify-content:space-between;margin:.3rem 0}
.pick-prob{font-weight:800;font-size:1.2rem;color:var(--brand)}
.conf-bar{height:6px;background:var(--surface-2);border-radius:6px;overflow:hidden;margin:.5rem 0}
.conf-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--brand-2),var(--brand))}
.pick-foot{display:flex;justify-content:space-between;align-items:center}

/* Badges */
.fx-pick{font-weight:700;font-size:.78rem;padding:.18rem .5rem;border-radius:6px;white-space:nowrap}
.badge-H{background:rgba(22,199,132,.16);color:var(--brand)}
.badge-A{background:rgba(59,130,246,.16);color:#7eb0ff}
.badge-D{background:rgba(240,180,41,.16);color:var(--warn)}
.conf-high{color:var(--brand)} .conf-med{color:var(--warn)} .conf-low{color:var(--muted)}

/* Fixture list */
.day-head{font-size:.9rem;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin:1.3rem 0 .5rem}
.fixture-list{display:flex;flex-direction:column;gap:.4rem}
.fixture-row{display:grid;grid-template-columns:120px 1fr auto auto auto;align-items:center;gap:.8rem;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:.6rem .9rem;transition:.12s}
.fixture-row:hover{border-color:var(--brand)}
.fx-time{color:var(--muted);font-size:.8rem}
.fx-teams{display:flex;align-items:center;gap:.5rem;font-weight:600}
.fx-v{color:var(--muted);font-weight:400}
.fx-probs{display:flex;gap:.3rem}
.fx-probs .p{font-size:.78rem;color:var(--muted);background:var(--surface-2);padding:.12rem .35rem;border-radius:5px;min-width:38px;text-align:center}
.fx-probs .p.win{color:var(--brand);background:rgba(22,199,132,.12);font-weight:700}
.fx-conf{font-weight:800;min-width:28px;text-align:center}
/* Mobile fixture row: KEEP kickoff time + the winning probability (the core
   product value) — only the two non-winning pills are hidden to save width. */
@media(max-width:680px){.fixture-row{grid-template-columns:auto minmax(0,1fr) auto auto auto;gap:.45rem;padding:.55rem .7rem}.fx-time{font-size:.72rem}.fx-probs{gap:.2rem}.fx-probs .p:not(.win){display:none}}

/* League page */
.league-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:1.6rem;align-items:start}
.table{width:100%;border-collapse:collapse;font-size:.88rem;background:var(--surface);border-radius:var(--radius);overflow:hidden}
.table th,.table td{padding:.5rem .6rem;text-align:center;border-bottom:1px solid var(--line)}
.table th{color:var(--muted);font-weight:600;font-size:.76rem;text-transform:uppercase;background:var(--surface-2)}
.table td.t-name,.table th:nth-child(2){text-align:left}
.t-pts{font-weight:800;color:var(--brand)}
@media(max-width:820px){.league-grid{grid-template-columns:1fr}}

/* League filter chips */
.league-filter{display:flex;gap:.5rem;flex-wrap:wrap;margin:.6rem 0 1.2rem}
.chip{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:.35rem .8rem;font-size:.85rem;font-weight:600;color:var(--muted)}
.chip:hover,.chip.active{color:var(--text);border-color:var(--brand);background:rgba(22,199,132,.08)}

/* Acca promo */
.acca-promo{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.3rem}
.acca-head h2{display:flex;align-items:center;gap:.5rem;margin:0}
.premium-tag{font-size:.65rem;background:linear-gradient(90deg,var(--brand-2),var(--brand));color:#06231a;padding:.15rem .45rem;border-radius:5px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.acca-body{margin-top:.8rem;position:relative}
.acca-body.locked .acca-leg span:last-child{filter:blur(4px)}
.acca-leg{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0;border-bottom:1px solid var(--line)}
.acca-summary{display:flex;gap:1.5rem;align-items:center;justify-content:flex-end;padding-top:.8rem;flex-wrap:wrap}

/* Match page */
.crumbs{color:var(--muted);font-size:.82rem;margin:1rem 0}
.crumbs a{color:var(--muted)} .crumbs a:hover{color:var(--brand)}
.match-head{text-align:center;margin:1rem 0 1.5rem}
.match-league{color:var(--muted);font-size:.85rem}
.match-title{display:flex;align-items:center;justify-content:center;gap:1.2rem;font-size:1.7rem;font-weight:800;margin-top:.3rem;flex-wrap:wrap}
.mt-v{color:var(--muted);font-size:1rem;font-weight:400}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.3rem;margin-bottom:1.2rem}
.prob-bars{display:flex;flex-direction:column;gap:.7rem;margin:1rem 0}
.pb-label{display:flex;justify-content:space-between;font-size:.85rem;margin-bottom:.25rem}
.pb-label span{font-weight:700}
.pb-track{height:12px;background:var(--surface-2);border-radius:8px;overflow:hidden}
.pb-fill{display:block;height:100%;background:var(--surface-2);background:linear-gradient(90deg,#39424f,#4a5666)}
.pb-fill.win{background:linear-gradient(90deg,var(--brand-2),var(--brand))}
.prediction-verdict{display:flex;gap:2rem;flex-wrap:wrap;padding-top:1rem;border-top:1px solid var(--line)}
.prediction-verdict>div{display:flex;flex-direction:column;gap:.3rem}
.verdict-pick{align-self:flex-start}
.verdict-conf{font-weight:800;color:var(--brand)}
.preview p{font-size:1.02rem}

/* Markets */
.markets h2{display:flex;align-items:center;gap:.5rem}
.market-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.9rem;margin:1rem 0}
.market{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:1rem;text-align:center}
.market h3{font-size:.8rem;color:var(--muted);text-transform:uppercase;letter-spacing:.03em;margin-bottom:.4rem}
.market-big{font-size:1.4rem;font-weight:800;margin:0}
.market-grid.gated .market-big{color:var(--muted)}
.value-yes{color:var(--brand)}
.market-unlock{text-align:center;background:linear-gradient(180deg,rgba(22,199,132,.08),transparent);border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem;display:flex;flex-direction:column;gap:.6rem;align-items:center}

/* Accuracy */
.acc-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin:1rem 0 2rem}
.acc-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.3rem;text-align:center;display:flex;flex-direction:column;gap:.2rem}
.acc-num{font-size:2.2rem;font-weight:800;color:var(--brand)}
.acc-label{font-weight:600}
.result-row{grid-template-columns:120px 1fr auto}
.result-tag{font-size:.78rem;font-weight:700;padding:.18rem .5rem;border-radius:6px}
.result-tag.hit{background:rgba(22,199,132,.16);color:var(--brand)}
.result-tag.miss{background:rgba(242,95,92,.16);color:var(--danger)}

/* Plans */
.plans{display:grid;grid-template-columns:1fr 1fr;gap:1.3rem;max-width:760px;margin:1.5rem auto}
.plan{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.6rem;position:relative}
.plan-featured{border-color:var(--brand);box-shadow:var(--shadow)}
.plan-badge{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:var(--brand);color:#06231a;font-size:.72rem;font-weight:800;padding:.2rem .7rem;border-radius:20px}
.plan-price{font-size:2rem;font-weight:800;margin:.3rem 0 1rem}
.plan-price span{font-size:.9rem;color:var(--muted);font-weight:500}
.plan-feats{list-style:none;padding:0;margin:0 0 1.2rem;display:flex;flex-direction:column;gap:.5rem;font-size:.92rem}
.plan-feats .off{color:var(--muted)}
.plan form{margin-top:.5rem}
@media(max-width:680px){.plans{grid-template-columns:1fr}.hero{grid-template-columns:1fr}.hero-stats{grid-template-columns:1fr 1fr}}

/* Account + auth */
.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}
.account-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin:.6rem 0}
@media(max-width:680px){.account-grid{grid-template-columns:1fr}}
.auth-card{max-width:380px;margin:2.5rem auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.8rem}
.auth-card label{display:block;margin-bottom:.9rem;font-size:.85rem;color:var(--muted)}
.auth-card input[type=email],.auth-card input[type=password]{width:100%;margin-top:.3rem;padding:.6rem;border-radius:8px;border:1px solid var(--line);background:var(--bg);color:var(--text);font-size:1rem}
.auth-card .check{display:flex;gap:.5rem;align-items:flex-start;color:var(--text)}
.form-error,.notice{padding:.7rem .9rem;border-radius:8px;margin-bottom:1rem;font-size:.9rem}
.form-error{background:rgba(242,95,92,.14);color:#ffb3b1;border:1px solid rgba(242,95,92,.3)}
.notice{background:rgba(22,199,132,.12);color:var(--brand);border:1px solid rgba(22,199,132,.3)}

/* Prose */
.prose{max-width:720px;margin:1.5rem auto}
.prose h1{font-size:1.9rem} .prose h2{font-size:1.25rem;margin-top:1.6rem}
.prose p,.prose li{color:#cdd6e0} .prose a{color:var(--brand)}
.prose ul{padding-left:1.2rem}

/* Footer */
.site-footer{border-top:1px solid var(--line);margin-top:3rem;background:#0b0e13;padding:1.5rem 0 2.5rem}
.rg-banner{background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:.8rem 1rem;font-size:.85rem;color:var(--muted);margin-bottom:1.5rem}
.rg-banner a{color:var(--brand)} .rg-banner strong{color:var(--text)}
.footer-cols{display:grid;grid-template-columns:2fr 1fr 1fr;gap:1.5rem;margin-bottom:1.2rem}
.footer-cols h4{margin-bottom:.5rem} .footer-cols a{display:block;color:var(--muted);font-size:.88rem;padding:.15rem 0}
.footer-cols a:hover{color:var(--brand)}
.copyright{color:var(--muted);font-size:.78rem;text-align:center;border-top:1px solid var(--line);padding-top:1rem}
@media(max-width:680px){.footer-cols{grid-template-columns:1fr 1fr}}

/* Modal + consent */
.modal-overlay{position:fixed;inset:0;background:rgba(6,9,13,.92);display:flex;align-items:center;justify-content:center;z-index:100;padding:1rem}
.modal{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:2rem;max-width:420px;text-align:center}
.modal h2{font-size:1.5rem}
.modal-actions{display:flex;gap:.7rem;justify-content:center;margin:1.2rem 0 .8rem}
.consent-bar{position:fixed;bottom:0;left:0;right:0;background:var(--surface-2);border-top:1px solid var(--line);padding:.8rem 1rem;display:flex;gap:1rem;align-items:center;justify-content:center;font-size:.85rem;z-index:90;flex-wrap:wrap}
.consent-bar a{color:var(--brand)}

/* ---- additions: ROI, ML, screener, analysis, a11y, mobile ---- */
.pos{color:var(--brand)} .neg{color:var(--danger)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.notice-info{background:rgba(59,130,246,.12);color:#9cc2ff;border:1px solid rgba(59,130,246,.3)}

/* hero solid-color fallback for gradient-clipped text */
.hero h1{color:#eafff7}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .hero h1{background:linear-gradient(90deg,#fff,#c7f9e8);-webkit-background-clip:text;background-clip:text;color:transparent}
}
@media (forced-colors: active){.hero h1{color:CanvasText;-webkit-text-fill-color:CanvasText}}
.stat-hero{grid-column:span 2}
.stat-num.pos{color:var(--brand)} .stat-num.neg{color:var(--danger)}

/* ROI cards */
.roi-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:1rem;margin:1rem 0}
.roi-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.3rem;display:flex;flex-direction:column;gap:.3rem}
.roi-card.big{border-color:var(--brand)}
.roi-card.big.neg{border-color:var(--line)}
.roi-label{color:var(--muted);font-size:.8rem;text-transform:uppercase;letter-spacing:.03em}
.roi-num{font-size:2rem;font-weight:800}
.roi-card.big .roi-num{font-size:2.6rem}
.roi-sub{color:var(--muted);font-size:.85rem}
@media(max-width:680px){.roi-grid{grid-template-columns:1fr}}

/* ML component scorecard */
.component-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:1rem;margin:1rem 0}
.component{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem;display:flex;flex-direction:column;gap:.3rem}
.c-name{font-weight:700} .c-acc{font-size:1.7rem;font-weight:800;color:var(--brand)}
.c-bar{height:6px;background:var(--surface-2);border-radius:6px;overflow:hidden}
.c-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--accent),#7eb0ff)}

/* Analysis section on match page */
.key-factors{list-style:none;padding:0;margin:0 0 1rem;display:flex;flex-direction:column;gap:.5rem}
.key-factors li{background:var(--surface-2);border-left:3px solid var(--brand);padding:.5rem .8rem;border-radius:0 8px 8px 0;font-size:.92rem}
.analysis-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}
.an-box{background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:.9rem}
.an-label{display:block;color:var(--muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.03em;margin-bottom:.5rem}
.form-row,.comp-row{display:flex;justify-content:space-between;align-items:center;padding:.25rem 0;font-size:.9rem}
.form-str i{font-style:normal;display:inline-block;width:18px;height:18px;line-height:18px;text-align:center;border-radius:4px;font-size:.7rem;font-weight:700;margin-left:2px}
.fr-W{background:rgba(22,199,132,.2);color:var(--brand)} .fr-D{background:rgba(240,180,41,.2);color:var(--warn)} .fr-L{background:rgba(242,95,92,.2);color:var(--danger)}

/* Screener */
.screener-filters{display:flex;flex-wrap:wrap;gap:.8rem;align-items:flex-end;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1rem;margin-bottom:1rem}
.screener-filters label{display:flex;flex-direction:column;gap:.3rem;font-size:.78rem;color:var(--muted);font-weight:600}
.screener-filters select{background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:.45rem;font-size:.9rem}
.screener-filters .check-inline{flex-direction:row;align-items:center;gap:.4rem;color:var(--text)}
.screener-table th,.screener-table td{text-align:left}
.clickable-row{cursor:pointer}
.clickable-row:hover{background:var(--surface-2)}
.empty-cell{text-align:center;color:var(--muted);padding:2rem}
.chip-cta{border-color:var(--brand);color:var(--brand)}

/* Age gate interstitial */
.agegate-body{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:1rem}
.agegate-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:2.5rem;max-width:460px;text-align:center}
.agegate-brand{font-weight:800;font-size:1.2rem;margin-bottom:1rem}
.agegate-actions{display:flex;gap:.7rem;justify-content:center;margin:1.4rem 0 1rem;flex-wrap:wrap}

/* Mobile nav: let header wrap and nav scroll instead of overflowing */
/* alternative markets grid */
.alt-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:1rem}
.alt-box{background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:.9rem}
.alt-box .comp-row{font-size:.9rem}

/* team crests / badges */
.crest{width:18px;height:18px;object-fit:contain;vertical-align:middle;margin-right:6px;flex:none}
.fx-team{display:inline-flex;align-items:center;gap:6px}
.pick-teams{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pick-teams .crest{width:16px;height:16px;margin-right:2px}
.mt-crest{width:38px;height:38px;object-fit:contain;vertical-align:middle;margin-right:10px}
.match-title .mt-team{display:inline-flex;align-items:center;gap:10px}

/* live scores strip */
.live-strip{max-width:var(--maxw);margin:12px auto 0;display:flex;gap:1.2rem;align-items:center;overflow-x:auto;white-space:nowrap;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:.5rem .9rem;font-size:.85rem}
.live-dot{color:var(--danger);font-weight:800;font-size:.7rem;letter-spacing:.05em;animation:pulse 1.6s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
.live-item{color:var(--text)} .live-item b{font-weight:700}

/* Ask AI */
.ask-form{display:flex;gap:.6rem;max-width:640px;margin:0 auto 1rem}
.ask-form input{flex:1;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:.7rem .9rem;color:var(--text);font-size:1rem}
.ask-suggest{display:flex;gap:.5rem;justify-content:center;flex-wrap:wrap;margin-bottom:1.5rem}
.ask-answer{max-width:760px;margin:0 auto}
.ask-bubble{background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--brand);border-radius:0 12px 12px 0;padding:1.1rem 1.3rem;margin-bottom:1rem}
.ask-bubble p{margin:.3rem 0 0;font-size:1.05rem}
.ask-badge{font-size:.7rem;font-weight:800;color:var(--brand);text-transform:uppercase;letter-spacing:.05em}

/* Bet builder */
.builder-layout{display:grid;grid-template-columns:1fr 320px;gap:1.4rem;align-items:start}
.builder-picks{display:flex;flex-direction:column;gap:.4rem}
.builder-row{display:grid;grid-template-columns:1fr auto auto auto auto;align-items:center;gap:.8rem;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:.55rem .9rem}
.builder-row.selected{border-color:var(--brand);background:rgba(22,199,132,.07)}
.br-main{display:flex;flex-direction:column}
.br-teams{font-weight:600}
.br-prob{color:var(--brand);font-weight:700;min-width:42px;text-align:right}
.br-odds{font-weight:700;min-width:48px;text-align:right}
.builder-slip{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem;position:sticky;top:80px}
.slip-leg{display:flex;justify-content:space-between;padding:.4rem 0;border-bottom:1px solid var(--line);font-size:.9rem}
.slip-summary{display:flex;flex-direction:column;gap:.5rem;margin:1rem 0;padding-top:1rem;border-top:1px solid var(--line)}
.slip-summary>div{display:flex;justify-content:space-between;align-items:center}
.slip-summary strong{font-size:1.1rem;color:var(--brand)}
@media(max-width:760px){.builder-layout{grid-template-columns:1fr}.builder-slip{position:static}.builder-row{grid-template-columns:1fr auto auto;gap:.5rem}.br-prob{display:none}}

/* plain-language verdict */
.verdict-plain{font-size:1.05rem;margin:.4rem 0 1rem;color:#dbe6f0}
.pick-verdict{margin:.4rem 0;line-height:1.35}

/* floating persistent betslip */
.slip-fab{position:fixed;right:18px;bottom:18px;z-index:120;background:var(--brand);color:#06231a;border:none;border-radius:30px;padding:.7rem 1.1rem;font-weight:800;font-size:.95rem;cursor:pointer;box-shadow:var(--shadow)}
.slip-fab #slip-fab-count{display:inline-block;background:#06231a;color:var(--brand);border-radius:20px;padding:0 .45rem;margin-left:.3rem}
.slip-fab.bump{transform:scale(1.08);transition:.15s}
.slip-drawer{position:fixed;right:18px;bottom:70px;z-index:120;width:320px;max-width:calc(100vw - 36px);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem;box-shadow:var(--shadow)}
.slip-drawer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.6rem}
.slip-x{background:none;border:none;color:var(--muted);font-size:1rem;cursor:pointer}
.slip-drawer-legs{max-height:40vh;overflow-y:auto}
.slip-remove{background:none;border:none;color:var(--danger);cursor:pointer;font-size:.8rem;margin-left:.3rem}
@media(max-width:560px){.slip-drawer{left:18px;width:auto}}

/* factor breakdown bars */
.factor-title{font-size:.85rem;color:var(--muted);font-weight:600;margin:1.1rem 0 .6rem}
.factor-bars{display:flex;flex-direction:column;gap:.6rem}
.fbar{display:grid;grid-template-columns:160px 1fr 64px;align-items:center;gap:.7rem}
.fbar-label{font-size:.85rem}
.fbar-track{position:relative;height:12px;background:var(--surface-2);border-radius:8px;overflow:hidden}
.fbar-mid{position:absolute;left:50%;top:0;bottom:0;width:2px;background:var(--line);transform:translateX(-1px);z-index:1}
.fbar-fill{position:absolute;top:0;bottom:0;border-radius:6px}
.fbar-side{text-align:right;font-weight:700}
@media(max-width:560px){.fbar{grid-template-columns:110px 1fr 48px;gap:.4rem}.fbar-label{font-size:.78rem}}

/* head-to-head */
.h2h-list{display:flex;flex-direction:column;gap:.3rem}
.h2h-row{display:flex;justify-content:space-between;align-items:center;padding:.45rem .2rem;border-bottom:1px solid var(--line)}
.h2h-score strong{color:var(--brand)}

/* match recap (finished fixtures) */
.recap{border-left:4px solid var(--line)}
.recap.recap-win{border-left-color:var(--brand)}
.recap.recap-loss{border-left-color:var(--danger)}
.recap-score{font-size:1.4rem;font-weight:800;text-align:center;margin-bottom:.4rem}
.recap-line{text-align:center;margin:0}
.recap.recap-win .recap-line{color:var(--brand)}
.recap.recap-loss .recap-line{color:var(--danger)}

/* team hub */
.team-head{display:flex;align-items:center;gap:1rem}
.team-crest{width:56px;height:56px;object-fit:contain;flex:none}
a.mt-team{color:inherit}
a.mt-team:hover{color:var(--brand)}
.table td.t-name a:hover{color:var(--brand)}

/* live-updating match prediction banner */
.live-prob{color:var(--brand);font-weight:700}
.match-live{background:var(--surface);border:1px solid var(--brand);border-radius:var(--radius);padding:1.1rem;margin:1rem 0;box-shadow:0 0 0 3px rgba(22,199,132,.08)}
.ml-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.3rem}
.ml-score{font-size:1.3rem;font-weight:800}
.match-live h2{font-size:1rem;margin:.3rem 0 .6rem}
.ml-bar{margin:.4rem 0}
.ml-lbl{font-size:.85rem}
.ml-track{height:10px;background:var(--surface-2);border-radius:6px;overflow:hidden;margin-top:.2rem}
.ml-track span{display:block;height:100%;background:linear-gradient(90deg,var(--brand-2),var(--brand))}

/* formation pitch (FotMob-style, mobile-friendly) */
.pitch-wrap{max-width:440px;margin:0 auto}
.pitch-formations{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}
.pitch{position:relative;width:100%;aspect-ratio:2/3;border-radius:12px;border:1px solid var(--line);
  background:linear-gradient(0deg,#0f3d24,#114a2b);overflow:hidden}
.pitch-mark{position:absolute;border:2px solid rgba(255,255,255,.18)}
.pitch-centre{left:0;right:0;top:50%;height:0;border-width:1px 0 0 0}
.pitch-circle{left:50%;top:50%;width:26%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%)}
.pitch-box-top{left:25%;right:25%;top:0;height:14%;border-top:0}
.pitch-box-bottom{left:25%;right:25%;bottom:0;height:14%;border-bottom:0}
.player{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:1px;width:60px;text-align:center}
.player i{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:.7rem;font-weight:800;box-shadow:0 1px 4px rgba(0,0,0,.4)}
.player.home i{background:var(--brand);color:#06231a}
.player.away i{background:#7eb0ff;color:#06231a}
.player b{font-size:.62rem;font-weight:700;color:#fff;line-height:1;max-width:60px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.player em{font-size:.58rem;color:#bfe;font-style:normal}
.pitch-note{text-align:center;margin-top:.6rem}

/* match stats comparison */
.stat-compare{display:flex;flex-direction:column;gap:.55rem}
.sc-row{display:flex;flex-direction:column;gap:.3rem;padding:.15rem 0}
.sc-top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem}
.sc-h{text-align:right;font-weight:700;color:var(--brand)}
.sc-a{text-align:left;font-weight:700;color:#7eb0ff}
.sc-name{color:var(--muted);font-size:.82rem;text-align:center}
.sc-bar{display:flex;height:6px;border-radius:3px;overflow:hidden;background:var(--line)}
.sc-bh{background:var(--brand);transition:width .3s}
.sc-ba{background:#7eb0ff;transition:width .3s}
.recap-xg{margin-top:.4rem}
/* match highlight videos (Highlightly, licensed) */
.highlights-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.8rem}
.hl-card{display:block;border:1px solid var(--line);border-radius:10px;overflow:hidden;text-decoration:none;color:inherit;background:rgba(255,255,255,.02)}
.hl-card .hl-thumb{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;background:#0b1220}
.hl-card .hl-title{padding:.5rem .6rem;font-size:.82rem;line-height:1.3}
.hl-play{position:relative}
.hl-play::after{content:"\25B6";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:1.6rem;color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.6);pointer-events:none}
/* market vs our AI */
.mkt-compare{display:flex;flex-direction:column;gap:.6rem}
.mkt-grp{display:flex;flex-direction:column;gap:.25rem}
.mkt-grp .mkt-lbl{color:var(--muted);font-size:.8rem}
.mkt-bar{height:18px;border-radius:4px;background:var(--line);position:relative;overflow:hidden}
.mkt-bar > span{position:absolute;left:0;top:0;bottom:0;display:flex;align-items:center;padding-left:.4rem;font-size:.72rem;font-weight:700;color:#fff;white-space:nowrap}
.mkt-bar.ours > span{background:var(--brand)}
.mkt-bar.mkt > span{background:#5a6b8c}
.mkt-edge{font-size:.82rem;margin-top:.5rem;color:var(--muted)}
.mkt-edge .pos{color:var(--brand);font-weight:700}
/* match facts (venue / weather / referee) */
.facts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.8rem}
.fact{display:flex;gap:.5rem;align-items:flex-start}
.fact-ico{font-size:1.2rem;line-height:1.2}
/* match timeline */
.timeline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.3rem}
.tl-row{display:grid;grid-template-columns:42px 22px 1fr;align-items:center;gap:.5rem;padding:.25rem 0;border-bottom:1px solid var(--line)}
.tl-row:last-child{border-bottom:0}
.tl-min{color:var(--muted);font-size:.8rem;font-variant-numeric:tabular-nums;text-align:right}
.tl-ico{text-align:center}
.tl-away .tl-txt{color:#7eb0ff}
.tl-home .tl-txt{color:var(--brand)}
/* line-up cards: starting XI / bench / manager + per-player event badges */
.lineup-cards{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:.8rem}
.lc-col{min-width:0}
.lc-team{font-size:.95rem;margin:0 0 .4rem;display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}
.lc-dot.badge-H{color:var(--brand)}
.lc-dot.badge-A{color:#7eb0ff}
.lc-mgr{color:var(--muted);font-weight:400;font-size:.8rem}
.lc-label{text-transform:uppercase;font-size:.7rem;letter-spacing:.04em;color:var(--muted);margin:.55rem 0 .25rem}
.pcard{display:flex;align-items:center;gap:.5rem;padding:.45rem .5rem;border:1px solid var(--line);border-radius:8px;margin-bottom:.3rem;background:rgba(255,255,255,.02)}
.pcard-num{flex:0 0 1.7rem;text-align:center;font-weight:700;font-variant-numeric:tabular-nums;color:var(--muted);font-size:.85rem}
.pcard-name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.88rem}
.pcard-ev{white-space:nowrap}
.pcard-pos{flex:0 0 auto;font-size:.66rem;color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:.05rem .32rem}
.pcard-sub{opacity:.85}
.pdot-ev{position:absolute;top:-7px;right:-7px;font-size:.58rem;line-height:1;white-space:nowrap}
@media (max-width:640px){ .lineup-cards{grid-template-columns:1fr} }
/* homepage feature strip (new-feature discovery) */
.feature-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.8rem}
.feature-card{display:flex;flex-direction:column;gap:.2rem;padding:1rem;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.02);text-decoration:none;color:inherit;transition:border-color .2s,transform .2s}
.feature-card:hover{border-color:var(--brand);transform:translateY(-2px)}
.feature-emoji{font-size:1.6rem;line-height:1}
.feature-title{font-weight:700}
.feature-hl{border-color:var(--brand);background:linear-gradient(180deg,rgba(22,199,132,.12),rgba(255,255,255,.02))}

/* FotMob-style match header + tabs */
.sticky-match{padding:.3rem 0 .6rem;border-bottom:1px solid var(--line);margin-bottom:.5rem}
.mh-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:start;gap:.5rem;margin-top:.4rem}
.mh-team{display:flex;flex-direction:column;align-items:center;gap:.35rem;text-decoration:none;color:inherit;min-width:0}
.mh-team .mt-crest{width:34px;height:34px;object-fit:contain}
.mh-name{font-size:.82rem;text-align:center;font-weight:600;max-width:100%;line-height:1.2}
.mh-center{display:flex;flex-direction:column;align-items:center;min-width:64px;padding-top:.3rem}
.mh-score{font-size:1.7rem;font-weight:800;font-variant-numeric:tabular-nums}
.mh-dash{opacity:.5;margin:0 .15rem}
.mh-kick{font-size:1.1rem;font-weight:700}
.mh-status{font-size:.62rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.mh-ft{color:var(--brand)}
.match-tabs{display:flex;gap:.35rem;overflow-x:auto;padding:.4rem 0 .7rem;margin-bottom:.4rem;-webkit-overflow-scrolling:touch}
.mtab{flex:0 0 auto;padding:.45rem .85rem;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--muted);font-size:.85rem;font-weight:600;cursor:pointer;white-space:nowrap}
.mtab.is-active{background:var(--brand);border-color:var(--brand);color:#04130c}
.tabpanel{display:none}
.tabpanel.is-active{display:block}

/* sticky match tabs (FotMob feel) + polish */
.match-tabs{position:sticky;top:var(--header-h);z-index:30;background:var(--bg)}
@media(max-width:680px){ .mh-score{font-size:1.5rem} .mh-name{font-size:.78rem} }
.match .card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem;margin-bottom:.9rem}
.match .card h2{font-size:1.05rem;margin:0 0 .8rem}
.trust-stamp{display:inline-flex;align-items:center;gap:.35rem;font-size:.72rem;color:var(--muted);margin-top:.7rem;border:1px solid var(--line);border-radius:6px;padding:.25rem .5rem}
.news-list{display:flex;flex-direction:column;gap:.6rem}
.news-item{display:flex;gap:.7rem;align-items:flex-start;text-decoration:none;color:inherit;border:1px solid var(--line);border-radius:10px;padding:.6rem;background:rgba(255,255,255,.02)}
.news-item:hover{border-color:var(--brand)}
.news-thumb{width:64px;height:64px;border-radius:8px;object-fit:cover;flex:0 0 auto;background:#0b1220}
.news-tx{min-width:0}
.news-tt{font-size:.9rem;font-weight:600;line-height:1.3}
.news-src{font-size:.72rem;color:var(--muted)}

/* === nav declutter + FotMob-style mobile bottom tab bar === */
.main-nav{flex-wrap:nowrap}
.nav-premium{color:var(--warn)}
.nav-premium.active,.nav-premium:hover{color:var(--warn);border-color:var(--warn)}
.bottom-nav{display:none}
@media(max-width:760px){
  :root{ --header-h:56px } /* header shrinks on mobile; every sticky offset follows via the token */
  .main-nav{display:none}
  .header-inner{height:var(--header-h);flex-wrap:nowrap;padding-top:0;padding-bottom:0;gap:.5rem}
  .header-cta{margin-left:auto}
  .bottom-nav{display:grid;grid-template-columns:repeat(7,1fr);position:fixed;left:0;right:0;bottom:0;z-index:60;background:var(--surface);border-top:1px solid var(--line);padding:.3rem 0 calc(.3rem + env(safe-area-inset-bottom,0px))}
  .bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.12rem;color:var(--muted);font-size:.6rem;font-weight:600;padding:.2rem 0;min-height:44px;border:0}
  .bottom-nav a.active{color:var(--brand)}
  .bottom-nav .bn-ico{font-size:1.2rem;line-height:1}
  body{padding-bottom:62px}
}

/* === premium visual polish (design-spec P2/P3) === */
:root{ --ring:inset 0 1px 0 rgba(255,255,255,.045); --shadow-md:0 4px 16px rgba(0,0,0,.35); }
.card,.pick-card,.stat,.market,.feature-card,.predcard,.acca-promo,.an-box,.alt-box{box-shadow:var(--ring)}
.pick-card:hover,.feature-card:hover{box-shadow:var(--ring),var(--shadow-md)}
.pick-prob,.stat-num,.fx-conf,.t-pts,.market-big,.mh-kick,.mh-score,.pc-pick-prob,.gs-cell b,.pb-label span{font-variant-numeric:tabular-nums}
.site-header{background:rgba(11,15,20,.82);backdrop-filter:saturate(150%) blur(12px);-webkit-backdrop-filter:saturate(150%) blur(12px)}
.fixture-row:hover{background:var(--surface-2);border-color:var(--line)}
/* non-winning probability pills use the solid --muted token (5.9:1, AA-compliant) */
.section-head h2{display:flex;align-items:center;gap:.5rem}
.section-head h2::before{content:"";width:4px;height:1.05em;border-radius:3px;background:linear-gradient(180deg,var(--brand-3),var(--brand-2));display:inline-block;flex:0 0 auto}
.see-all{color:var(--muted)}
.see-all:hover{color:var(--brand)}
.nav-premium{background:linear-gradient(90deg,var(--warn),#ffd166);color:#1a1300 !important;border-radius:999px;padding:.32rem .85rem !important;font-weight:800;border-bottom:0 !important;align-self:center}
.nav-premium:hover{filter:brightness(1.06);border-color:transparent}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--brand-3);outline-offset:2px;border-radius:6px}
input:focus-visible,select:focus-visible{outline-offset:1px}
/* inputs gain a brand ring on focus for a premium, intentional feel */
.auth-card input:focus,.ask-form input:focus,.screener-filters select:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-tint)}
@media(max-width:760px){
  .slip-fab{bottom:76px}
  .slip-drawer{bottom:76px}
  .consent-bar{bottom:64px}
}

/* metrics key (explainer for screener/tables) */
.metrics-key{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:.55rem .9rem;margin:0 0 1.1rem}
.metrics-key>summary{cursor:pointer;font-weight:700;color:var(--text);list-style:none}
.metrics-key>summary::-webkit-details-marker{display:none}
.metrics-key .mk-grid{display:grid;grid-template-columns:1fr 1fr;gap:.55rem .9rem;margin:.8rem 0 .3rem;font-size:.86rem;line-height:1.45}
.metrics-key .mk-grid b{color:var(--text)}
.screener-table th[title]{cursor:help;text-decoration:underline dotted var(--muted) 1px;text-underline-offset:3px}
@media(max-width:680px){.metrics-key .mk-grid{grid-template-columns:1fr}}

/* ===== metric-name ⓘ explainer — moved here from partials/metric-name.ejs so it
   loads ONCE site-wide (the per-request inline guard couldn't survive EJS include
   scope and duplicated the block on every data-heavy page). Trigger is a <button>. */
.metric-name{display:inline-flex;align-items:center;gap:.28em;white-space:nowrap}
.metric-name .mn-info{display:inline-flex;align-items:center;justify-content:center;width:1.05em;height:1.05em;padding:0;border-radius:50%;border:1px solid var(--line);background:var(--surface-2);color:var(--muted);font-size:.72em;line-height:1;font-style:normal;font-weight:600;font-family:inherit;cursor:help;position:relative;flex:0 0 auto;appearance:none;-webkit-appearance:none}
.metric-name .mn-info:hover,.metric-name .mn-info:focus-visible{color:var(--text);border-color:var(--brand);outline:none}
.metric-name .mn-tip{position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);width:min(240px,72vw);background:var(--surface-2);color:var(--text);border:1px solid var(--line);border-radius:var(--radius);padding:.55em .7em;font-size:.82rem;font-weight:400;line-height:1.35;white-space:normal;text-align:left;box-shadow:0 6px 20px rgba(0,0,0,.35);z-index:60;opacity:0;visibility:hidden;transition:opacity .12s ease;pointer-events:none}
.metric-name .mn-tip::after{content:"";position:absolute;top:100%;left:50%;transform:translateX(-50%);border:6px solid transparent;border-top-color:var(--line)}
.metric-name .mn-info:hover .mn-tip,.metric-name .mn-info:focus-visible .mn-tip{opacity:1;visibility:visible}
@media (hover:none){.metric-name .mn-info:focus .mn-tip,.metric-name .mn-info:active .mn-tip{opacity:1;visibility:visible}}

/* skip-to-content link (WCAG 2.4.1) — off-screen until focused */
.skip-link{position:absolute;left:-9999px;top:0;z-index:200;background:var(--brand);color:#04140d;font-weight:800;padding:.6rem 1rem;border-radius:0 0 8px 0;text-decoration:none}
.skip-link:focus{left:0}

/* respect reduced-motion for the live pulse (matches the other stylesheets) */
@media (prefers-reduced-motion: reduce){ .live-dot{animation:none} }
