:root {
  --bg: #121a24; --panel: #18222e; --panel2: #1e2a38; --line: #2a3a4d; --text: #e3e9f0; --muted: #9aa8b8;
  --accent: #9fd8c4; --ink: #0d3a2f; --violet: #b9c6ff; --up: #8fe0b0; --down: #ffb4ab; --gold: #f4d08e; --cyan: #b9c6ff;
  --hl: #1f4e42; --glass: rgba(30, 42, 56, .62); --edge: rgba(255,255,255,.12);
  font-family: 'Flex', -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --bg: #eef3f1; --panel: #f8fbfa; --panel2: #e6eeeb; --line: #c6d3ce; --text: #18231f; --muted: #586863;
  --accent: #2f6b5b; --ink: #ffffff; --violet: #4d5d97; --up: #1f7a4c; --down: #ba1a1a; --gold: #8a6100; --cyan: #4d5d97;
  --hl: #c4eedd; --glass: rgba(255,255,255,.7); --edge: rgba(255,255,255,.9); color-scheme: light; } }
:root[data-theme="light"] {
  --bg: #eef3f1; --panel: #f8fbfa; --panel2: #e6eeeb; --line: #c6d3ce; --text: #18231f; --muted: #586863;
  --accent: #2f6b5b; --ink: #ffffff; --violet: #4d5d97; --up: #1f7a4c; --down: #ba1a1a; --gold: #8a6100; --cyan: #4d5d97;
  --hl: #c4eedd; --glass: rgba(255,255,255,.7); --edge: rgba(255,255,255,.9); color-scheme: light; }
@font-face { font-family: 'Flex'; font-display: swap; font-weight: 100 1000; font-stretch: 25% 151%; src: url(/fonts/roboto-flex-latin-standard-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Flex'; font-display: swap; font-weight: 100 1000; font-stretch: 25% 151%; src: url(/fonts/roboto-flex-latin-ext-standard-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+20A0-20AB,U+20AD-20C0,U+A720-A7FF; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); background-image: radial-gradient(1200px 600px at 60% -240px, color-mix(in oklab, var(--violet) 16%, transparent), transparent 70%); color: var(--text); min-height: 100vh; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.topbar { position: sticky; top: 12px; z-index: 100; display: flex; align-items: center; gap: 24px; padding: 10px 16px; margin: 12px auto 0; max-width: 1220px; width: calc(100% - 24px); background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); border: 1px solid var(--edge); border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 36px rgba(3,8,14,.25); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 18px; }
.brand img { width: 30px; height: 30px; }
.brand b { color: var(--accent); }
#topnav { display: flex; gap: 4px; flex-wrap: wrap; }
#topnav a { text-decoration: none; color: var(--muted); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: background-color .2s; }
#topnav a.on, #topnav a:hover { color: var(--text); background: var(--panel2); }
#topnav a.app { border: 1px solid var(--line); }
main { max-width: 1240px; margin: 0 auto; padding: 24px 28px 60px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 30px; }
h1 { font-size: 40px; margin: 8px 0 6px; letter-spacing: -.02em; font-weight: 780; font-stretch: 112%; }
h2 { font-size: 22px; margin: 0 0 4px; }
h3 { font-size: 16px; margin: 0 0 10px; }
.sub { color: var(--muted); margin: 0 0 16px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 11px; }
.pos { color: var(--up); } .neg { color: var(--down); } .gold { color: var(--gold); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } main { padding: 16px; } .topbar { padding: 10px 14px; gap: 10px; flex-wrap: wrap; } }
.card { background: var(--panel); border-radius: 24px; padding: 20px; }
.card.hl { background: linear-gradient(150deg, var(--hl), var(--panel) 75%); }
.section { margin: 30px 0 0; }
.sec-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.sec-h .n { width: 34px; height: 34px; border-radius: 12px; background: var(--hl); color: var(--text); font-weight: 800; display: grid; place-items: center; flex: none; }
.kpi .v { font-size: 38px; font-weight: 820; font-stretch: 118%; letter-spacing: -.03em; }
.kpi .l { color: var(--muted); font-size: 14px; font-weight: 600; }
.arrow { font-size: 28px; font-weight: 900; letter-spacing: .02em; }
.arrow.green { color: var(--up); } .arrow.red { color: var(--down); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--panel2); font-size: 13px; font-weight: 600; }
.chip.up { background: rgba(61,220,132,.16); color: var(--up); } .chip.down { background: rgba(255,107,122,.16); color: var(--down); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: right; color: var(--muted); font-weight: 600; font-size: 12px; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { text-align: right; padding: 9px 8px; border-bottom: 1px solid #1c2640; }
th:first-child, td:first-child { text-align: left; }
tr.click { cursor: pointer; } tr.click:hover td { background: #16203a; }
tr.me td { background: color-mix(in oklab, var(--hl) 60%, transparent); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.tabs button { padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 14px; }
.tabs button.on { background: var(--hl); color: var(--text); border-color: transparent; }
.btn { background: var(--accent); color: var(--ink); font-weight: 700; padding: 12px 22px; border-radius: 999px; transition: border-radius .35s cubic-bezier(.34,1.56,.64,1), transform .35s cubic-bezier(.34,1.56,.64,1); }
.btn:active { border-radius: 16px; transform: scale(.97); }
.btn.ghost { background: var(--panel2); color: var(--text); }
input, select { background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 11px 13px; font: inherit; }
.hero { text-align: center; padding: 60px 0 30px; }
.hero h1 { font-size: 60px; font-stretch: 120%; line-height: 1.02; }
.hero .search { display: flex; gap: 10px; max-width: 560px; margin: 22px auto 0; }
.hero .search input { flex: 1; font-size: 17px; }
.tools { margin-top: 34px; }
.tool { text-decoration: none; display: block; }
.tool b { display: block; margin-bottom: 4px; }
.bar { height: 8px; background: #0b1224; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--cyan); border-radius: 99px; }
.gap { position: relative; height: 14px; background: #0b1224; border-radius: 99px; }
.gap i { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.gap .mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--muted); }
.pl { display: inline-flex; align-items: center; gap: 8px; }
.pl img { width: 22px; height: 22px; object-fit: contain; }
.face { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #0b1224; }
.tag { font-size: 16px; }
.ms { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 6px 0; }
.ms div { flex: none; text-align: center; background: var(--panel2); border-radius: 12px; padding: 8px 12px; min-width: 84px; }
.ms div.you { background: var(--accent); color: var(--ink); }
.ms b { display: block; font-size: 15px; }
.ev { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid #1c2640; }
.ev .ic { width: 30px; text-align: center; font-size: 18px; }
.ev .tx { flex: 1; }
.ev .im { text-align: right; min-width: 90px; font-weight: 700; }
.fix { border-radius: 20px; padding: 16px; background: var(--panel2); }
.fix h4 { margin: 0 0 8px; display: flex; justify-content: space-between; }
.evrow { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px dashed #26324f; font-size: 14px; }
.pitchmini { display: grid; gap: 8px; }
.pitchmini .ln { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pp { width: 108px; background: #0e1a14; border: 1px solid #234a3a; border-radius: 12px; padding: 8px 6px; text-align: center; cursor: pointer; }
.pp img { width: 30px; height: 30px; object-fit: contain; }
.pp b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp .s { font-size: 12px; color: var(--muted); }
.pp .p { font-weight: 800; color: var(--accent); }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }
.modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.modal-body { position: relative; background: var(--panel); border: 1px solid var(--edge); border-radius: 28px; padding: 20px; width: min(560px, 94vw); max-height: 86vh; overflow: auto; }
.skel { height: 160px; border-radius: 18px; background: linear-gradient(90deg, var(--panel) 0%, var(--panel2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: sh 1.2s infinite; margin: 14px 0; }
@keyframes sh { to { background-position: -200% 0; } }
.d1 { background: #2fbf71; color: #04210f; } .d2 { background: #9fe07a; color: #13240a; } .d3 { background: #c8cfdb; color: #1b2230; } .d4 { background: #ff9e6d; color: #2a0f02; } .d5 { background: #ff5d6c; color: #2b0207; }
.tick td { text-align: center; padding: 4px 2px; } .tick td span { display: block; border-radius: 6px; padding: 5px 0; font-size: 12px; font-weight: 700; }
.prob { display: inline-block; min-width: 54px; padding: 3px 8px; border-radius: 8px; font-weight: 800; text-align: center; }
.badge-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--down); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
svg.chart text { fill: var(--muted); font-size: 11px; }
.modal[hidden] { display: none; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- projections, schedule, plans, accounts ---------- */
.g2 { grid-template-columns: repeat(auto-fit, minmax(max(340px, calc(50% - 12px)), 1fr)); }
table.proj td, table.proj th { white-space: nowrap; }
table.proj th.click { cursor: pointer; }
table.proj th.on, table.proj td.hl { color: var(--accent); }
table.proj td.hl { font-weight: 800; }
table.sched td.hc { --h: 50%; text-align: center; line-height: 1.15; background: color-mix(in oklab, var(--accent) calc(var(--h) * 0.5), color-mix(in oklab, var(--down) 14%, var(--panel))); }
table.sched td.hc span { display: block; font-size: 11px; color: var(--muted); }
.upsell { max-width: 620px; margin: 30px auto; text-align: center; }
.upsell .btn { display: inline-block; text-decoration: none; margin-top: 8px; }
.plans .plan { display: grid; gap: 10px; align-content: start; }
.plan .price { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan ul { padding-left: 18px; margin: 0; line-height: 1.55; }
.plan.pro { outline: 2px solid var(--accent); outline-offset: -2px; }
.narrow { max-width: 460px; margin: 40px auto; }
.authf { display: grid; gap: 12px; }
.authf label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.authf input[type=email], .authf input[type=password], .nl input { background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: 14px; padding: 12px 14px; font: inherit; }
.authf .chk { grid-template-columns: 22px 1fr; align-items: center; color: var(--text); }
.article { max-width: 720px; margin: 20px auto; }
.article h1 { font-size: 34px; line-height: 1.15; margin: 6px 0 16px; }
.article p { line-height: 1.65; }
.nl { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.nl .row { display: flex; gap: 8px; } .nl input { flex: 1; }
.foot a, .card a { color: var(--accent); }

/* ===== "Hub" palette: charcoal + cyan (overrides the tokens above) ===== */
:root, :root[data-theme="dark"] {
  --bg: #2c3134; --panel: #1b1f21; --panel2: #0c0e10; --line: #383e41; --text: #ffffff; --muted: #a5aaad;
  --accent: #1fd2ff; --ink: #052833; --violet: #1fd2ff; --up: #5cc27b; --down: #e46a6a; --gold: #fac515; --cyan: #1fd2ff;
  --hl: #11343f; --glass: rgba(12,14,16,.92); --edge: rgba(255,255,255,.06); color-scheme: dark;
}
:root[data-theme="light"] { --accent: #0083ad; --ink: #ffffff; --violet: #0083ad; --cyan: #0083ad; --hl: #d3f1fb; }
body { background-image: none; }
.topbar { box-shadow: 0 10px 30px rgba(0,0,0,.35); border-radius: 18px; }
.card { border-radius: 16px; }
.btn { border-radius: 12px; padding: 10px 18px; font-weight: 650; }
.btn.ghost { background: var(--panel2); color: var(--text); }
.tabs button { border-radius: 999px; padding: 6px 13px; font-size: 13px; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.tabs button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
#topnav a.on, #topnav a:hover { background: #2c3134; color: #fff; }
td { border-bottom-color: var(--line); }
tr.click:hover td { background: #23282b; }
.bar, .gap { background: var(--panel2); }
/* ===== home ===== */
.home-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 56px 0 24px; }
@media (max-width: 900px) { .home-hero { grid-template-columns: 1fr; padding-top: 28px; } }
.hh-status { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.hh-status > span { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.hh-status > span.live { color: var(--text); }
.hh-status b { color: var(--accent); font-variant-numeric: tabular-nums; }
.home-hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 800; }
.home-hero .sub { font-size: 18px; max-width: 46ch; }
.home-hero .search { display: flex; gap: 10px; max-width: 520px; margin-top: 22px; }
.home-hero .search input { flex: 1; font-size: 16px; background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 12px 14px; }
.hh-cta { display: flex; gap: 10px; margin-top: 14px; }
.hh-cta .btn { text-decoration: none; }
#results { max-width: 520px; margin-top: 10px; }
.tool-group { margin-top: 34px; }
.tool-group h2 { font-size: 15px; color: var(--muted); font-weight: 700; margin: 0 0 12px; }
.tool { transition: background .2s, transform .2s; }
.tool:hover { background: #23282b; transform: translateY(-2px); }
.tool b { font-size: 17px; }
/* ===== pitch with shirts ===== */
.wpitch { position: relative; border-radius: 20px; padding: 22px 8px 12px; overflow: hidden;
  background: repeating-linear-gradient(180deg, #6a907b 0 54px, #648a75 54px 108px); box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); }
.wpitch::before { content: ""; position: absolute; left: 25%; right: 25%; top: -2px; height: 62px; border: 2px solid rgba(255,255,255,.3); border-top: 0; border-radius: 0 0 12px 12px; }
.wl { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; position: relative; }
.wp { width: 92px; display: grid; justify-items: center; gap: 2px; position: relative; color: #fff; }
.wp .kit { filter: drop-shadow(0 5px 6px rgba(0,0,0,.35)); }
.wp b { font-size: 12px; background: #0c0e10; padding: 4px 6px; border-radius: 8px 8px 2px 2px; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp span { font-size: 11px; background: #f1f4f5; color: #1b1f21; padding: 3px 6px; border-radius: 2px 2px 8px 8px; width: 100%; font-weight: 700; }
.wp-c { position: absolute; top: -4px; right: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #1c1600; font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; z-index: 1; }
.wbench { display: flex; justify-content: center; gap: 6px; margin: 6px -8px -12px; padding: 12px 8px; background: rgba(12,14,16,.45); }
.pl .kit { flex: none; }
/* charts on the website */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); } .chart .ax { fill: var(--muted); font-size: 10px; } .chart .ax.g { fill: var(--up); font-weight: 700; } .chart .ax.l { fill: var(--down); font-weight: 700; }
.chart .lbl { fill: var(--text); font-size: 11px; font-weight: 600; }
.chart .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.chart .dot { fill: var(--panel); stroke: var(--accent); stroke-width: 2; } .chart .dot.live { fill: var(--accent); stroke: rgba(31,210,255,.3); stroke-width: 6; }
.chart .mark { stroke: var(--accent); stroke-dasharray: 3 4; opacity: .6; }
.chart rect.gain { fill: var(--up); } .chart rect.loss { fill: var(--down); }
:root { --primary: var(--accent); }
/* team projections */
table.tp td, table.tp th { text-align: center; white-space: nowrap; }
table.tp td:first-child, table.tp th:first-child { text-align: left; }
table.tp td.hc { --h: 50%; background: color-mix(in oklab, var(--accent) calc(var(--h) * 0.55), var(--panel)); line-height: 1.15; }
table.tp td.hc span { display: block; font-size: 10px; color: var(--muted); }
.fxgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 14px; }
.fxc { background: var(--panel); border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; }
.fxc-top { display: flex; justify-content: space-between; }
.fxc-row { display: grid; grid-template-columns: 1fr 48px 48px; align-items: center; gap: 6px; }
.fxc-row .pl b { font-size: 15px; }
.fxc-n { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.fxc-cs { text-align: right; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.fxc-foot { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.wdl { display: flex; height: 6px; border-radius: 6px; overflow: hidden; background: var(--panel2); }
.wdl i { display: block; height: 100%; } .wdl .w { background: var(--up); } .wdl .d { background: #6b7378; } .wdl .l { background: var(--down); }
/* captain podium */
.cap-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .cap-podium { grid-template-columns: 1fr; } }
.cap-card { position: relative; background: var(--panel); border-radius: 20px; padding: 22px 16px 18px; display: grid; justify-items: center; gap: 6px; color: var(--text); text-align: center; border: 1px solid var(--line); }
.cap-card.first { background: linear-gradient(180deg, rgba(31,210,255,.16), var(--panel) 70%); border-color: rgba(31,210,255,.45); }
.cap-card b { font-size: 20px; }
.cap-rank { position: absolute; top: 12px; left: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--panel2); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.cap-card.first .cap-rank { background: var(--gold); color: #1c1600; }
.cap-x { font-size: 30px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.cap-x small { font-size: 12px; color: var(--muted); font-weight: 600; }
.modal-body { width: min(620px, 94vw); }
select#fxmd { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
table.capt td:nth-child(2), table.capt th:nth-child(2) { text-align: left; }

/* light mode */
:root[data-theme="light"] { --bg: #eef1f3; --panel: #ffffff; --panel2: #e8ecef; --line: #d6dde1; --text: #121619; --muted: #5b656c; --accent: #0083ad; --ink: #ffffff; --up: #1f8a4c; --down: #c62f2f; --gold: #9a6b00; --hl: #d3f1fb; --glass: rgba(255,255,255,.92); --edge: rgba(0,0,0,.06); color-scheme: light; }
:root[data-theme="light"] .topbar { box-shadow: 0 10px 30px rgba(20,30,40,.12); }
:root[data-theme="light"] #topnav a.on, :root[data-theme="light"] #topnav a:hover { background: var(--panel2); color: var(--text); }
:root[data-theme="light"] tr.click:hover td { background: #f2f5f6; }
:root[data-theme="light"] .tool:hover { background: #f6f8f9; }
:root[data-theme="light"] .wp b { background: #121619; color: #fff; }
.theme-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--text); background: var(--panel2); flex: none; }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* ===== Next XI-style display type, dashboard ===== */
h1.display { font-stretch: 72%; font-weight: 900; text-transform: uppercase; letter-spacing: -0.005em; line-height: .92; }
h1.display i { font-style: normal; color: var(--accent); }
.home-hero h1.display { font-size: clamp(48px, 7.4vw, 96px); }
h1 { font-stretch: 85%; font-weight: 850; }
.hh-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hh-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; min-height: 130px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; text-decoration: none; color: var(--text); transition: transform .2s, border-color .2s; position: relative; overflow: hidden; }
.hh-card b { font-size: 24px; font-stretch: 75%; font-weight: 900; text-transform: uppercase; }
.hh-card span { color: var(--muted); font-size: 14px; }
.hh-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.hh-card.accent { background: linear-gradient(135deg, rgba(31,210,255,.28), var(--panel) 75%); border-color: rgba(31,210,255,.5); }
.hh-card::after { content: "↗"; position: absolute; top: 16px; right: 18px; color: var(--muted); font-size: 18px; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 28px; }
.w { background: var(--panel); border-radius: 22px; padding: 18px; border: 1px solid var(--line); min-width: 0; }
.w-l { grid-column: span 6; } .w-m { grid-column: span 6; } .w-s { grid-column: span 3; }
@media (max-width: 1000px) { .w-l, .w-m { grid-column: span 12; } .w-s { grid-column: span 6; } }
@media (max-width: 640px) { .w-s { grid-column: span 12; } }
.w header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.w header h3 { margin: 0; font-size: 22px; font-stretch: 75%; font-weight: 900; text-transform: uppercase; }
.w header span { display: flex; gap: 10px; align-items: center; }
.w header a { color: var(--accent); font-weight: 700; font-size: 13px; text-decoration: none; }
.w-x { color: var(--muted); opacity: .5; font-size: 12px; } .w-x:hover { opacity: 1; }
.mini-cap { display: grid; gap: 8px; }
.mc { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; background: var(--panel2); border-radius: 14px; padding: 8px 12px; color: var(--text); }
.mc .kit { grid-row: span 2; }
.mc b { font-size: 15px; } .mc span { font-size: 12px; color: var(--muted); grid-column: 2; }
.mc em { grid-row: 1 / span 2; grid-column: 3; font-style: normal; font-size: 22px; font-weight: 800; color: var(--accent); }
.mc.first { background: linear-gradient(135deg, rgba(31,210,255,.18), var(--panel2)); }
.ai-cta-t { font-size: 17px; line-height: 1.4; margin: 6px 0 16px; }
table.mini td { padding: 7px 6px; }
.pp-pill { font-size: 12px; font-weight: 800; padding: 3px 7px; border-radius: 7px; }
.pp-pill.up { background: rgba(92,194,123,.18); color: var(--up); } .pp-pill.down { background: rgba(228,106,106,.18); color: var(--down); }
table.tick td { text-align: center; padding: 4px 2px; }
table.tick td:first-child { text-align: left; }
.fd { display: inline-block; min-width: 46px; padding: 5px 4px; border-radius: 7px; font-size: 11px; font-weight: 800; color: #fff; }
.fd small { font-size: 9px; opacity: .8; margin-left: 2px; }
.fd.d1 { background: #2f7d52; } .fd.d2 { background: #57a46e; } .fd.d3 { background: #59626a; } .fd.d4 { background: #b35a5a; } .fd.d5 { background: #8a2f3a; }
/* AI transfers page */
.ai-head { display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: center; margin-bottom: 14px; }
.ring { width: 130px; height: 130px; } .ring-bg { fill: none; stroke: var(--panel2); stroke-width: 10; }
.ring-fg { fill: none; stroke-width: 10; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 65px 65px; }
.ring-n { fill: var(--text); font-size: 36px; font-weight: 850; } .ring-s { fill: var(--muted); font-size: 12px; }
.ai-move { margin-bottom: 12px; }
.ai-swap { display: grid; grid-template-columns: 1fr 26px 1fr auto; gap: 10px; align-items: start; }
.ai-swap > div { cursor: pointer; }
.ai-arrow { color: var(--accent); font-weight: 900; font-size: 20px; padding-top: 4px; }
.ai-out b { text-decoration: line-through; text-decoration-color: var(--down); color: var(--muted); }
.ai-flags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ai-flags span { font-size: 11px; font-weight: 700; color: var(--down); background: rgba(228,106,106,.15); padding: 3px 7px; border-radius: 6px; }
.ai-gain { background: rgba(92,194,123,.18); color: var(--up); font-weight: 850; padding: 6px 10px; border-radius: 10px; }
.ai-why { margin: 12px 0 0; padding: 10px 0 0 18px; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.7; font-size: 14px; }
.wp.is-new b { background: var(--accent); color: #052833; }
.wp-n { position: absolute; top: -4px; left: 12px; background: var(--accent); color: #052833; font-style: normal; font-size: 9px; font-weight: 800; padding: 2px 5px; border-radius: 5px; z-index: 1; }
/* schedule controls */
.md-row { align-items: center; }
.md-row .muted { margin-right: 6px; }
.tabs button.off { text-decoration: line-through; opacity: .55; border-style: dashed; }
table.sched th.click { cursor: pointer; } table.sched th.on { color: var(--accent); }
.w a.btn, .hh-cta a.btn { text-decoration: none; } .bento { align-items: start; }
/* ===== charts, world-class pass ===== */
.chart-wrap { padding-bottom: 10px; }
.chart .axl { fill: var(--muted); font-size: 11px; font-weight: 600; }
.chart .qlbl { fill: var(--muted); font-size: 11px; font-weight: 700; opacity: .7; text-transform: uppercase; letter-spacing: .04em; }
.chart .trend { stroke: var(--muted); stroke-dasharray: 5 5; stroke-width: 1.5; opacity: .6; }
.chart.scatter .pt circle { fill-opacity: .55; stroke: rgba(0,0,0,.25); stroke-width: 1; transition: fill-opacity .15s, r .15s; }
.chart.scatter .pt.hl circle { fill-opacity: .95; stroke: #fff; stroke-width: 1.5; }
.chart.scatter .pt { cursor: pointer; } .chart.scatter .pt:hover circle { fill-opacity: 1; }
.chart .plbl { fill: var(--text); font-size: 11px; font-weight: 700; paint-order: stroke; stroke: var(--panel); stroke-width: 3px; }
.chart.lines .sl { fill: none; stroke-width: 2.2; opacity: .75; stroke-linejoin: round; }
.chart.lines .ser.hl .sl { stroke-width: 3.5; opacity: 1; }
.chart.lines .lg { font-size: 11px; font-weight: 700; }
.chart.bars2 .b { fill: var(--accent); } .chart.bars2 .b.hl { fill: var(--gold); } .chart.bars2 .b.ghost { fill: var(--accent); opacity: .3; }
.chart .bv { fill: var(--text); font-size: 11px; font-weight: 700; }
.legend { display: inline-flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 700; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.dist-kpis { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 8px; gap: 8px; align-content: center; }
.dist-kpis div { background: var(--panel2); border-radius: 12px; padding: 10px 12px; display: grid; }
.dist-kpis span { font-size: 12px; color: var(--muted); } .dist-kpis b { font-size: 22px; font-weight: 850; font-variant-numeric: tabular-nums; }
.modal-body { width: min(760px, 95vw); }
.modal-body .kit { flex: none; }
/* ===== premium chart finish ===== */
.lf-tip { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 650; white-space: nowrap;
  color: #fff; background: rgba(20, 24, 26, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 10px 30px rgba(0,0,0,.35); font-variant-numeric: tabular-nums; }
.chart.lines .ser.hl .sl { filter: drop-shadow(0 0 6px currentColor); }
.chart.scatter .pt.hl circle { filter: drop-shadow(0 0 6px rgba(31,210,255,.55)); }
.chart .area { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .chart.lines .sl { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lf-draw 1.1s cubic-bezier(.3,.7,.2,1) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
  .chart.lines .area { opacity: 0; animation: lf-fade .8s .5s forwards; }
  .chart.bars2 rect.b { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); animation: lf-grow .7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i, 0) * 45ms); }
  .chart.scatter .pt circle { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: lf-pop .5s cubic-bezier(.3,1.5,.5,1) forwards; animation-delay: calc(var(--i, 0) * 8ms); }
}
@keyframes lf-draw { to { stroke-dashoffset: 0; } }
@keyframes lf-fade { to { opacity: 1; } }
@keyframes lf-grow { to { transform: scaleY(1); } }
@keyframes lf-pop { to { transform: scale(1); } }
/* card finish: a faint top light so panels read as lit surfaces, dark theme only */
:root:not([data-theme="light"]) .card { background-image: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 120px); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.3); }
/* icon set */
.ic { display: inline-block; vertical-align: -0.18em; flex: none; }
.ic-starFill { color: var(--gold, #fac515); }
.ic-fire { color: #ff8a3d; } .ic-skull { color: #e5484d; } .ic-heartBreak { color: #e5484d; }
.ic-shield { color: #5cc27b; }
.tag .ic { width: 15px; height: 15px; }
/* ===== home hero stage ===== */
.hero-stage { position: relative; border-radius: 28px; padding: 18px; background: radial-gradient(120% 80% at 50% 0%, rgba(31,210,255,.16), transparent 60%), var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.hs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 4px 6px 14px; }
.hs-head .hs-k { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 650; }
.hs-head b { display: block; font-size: 40px; font-weight: 900; font-stretch: 72%; line-height: 1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.hs-rank { text-decoration: none; color: var(--text); text-align: right; background: var(--panel2); border-radius: 16px; padding: 10px 14px; border: 1px solid var(--line); }
.hs-rank span { display: block; font-size: 12px; color: var(--muted); } .hs-rank b { font-size: 24px; margin: 2px 0 0; color: var(--accent); }
.hs-pitch { position: relative; border-radius: 20px; padding: 14px 6px; display: grid; gap: 10px; background: linear-gradient(180deg, #5f8a72, #6a907b 50%, #5f8a72); overflow: hidden; }
.hs-pitch::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255,255,255,.045) 0 34px, transparent 34px 68px); }
.hs-lines { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); fill: none; stroke: rgba(255,255,255,.35); stroke-width: .5; vector-effect: non-scaling-stroke; }
.hs-l { position: relative; display: flex; justify-content: center; gap: 6px; }
.hs-p { position: relative; display: grid; justify-items: center; gap: 2px; background: none; border: 0; color: #fff; cursor: pointer; width: 76px; padding: 0; font: inherit; }
.hs-p .kit { filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); transition: transform .2s; }
.hs-p:hover .kit { transform: translateY(-3px); }
.hs-p b { font-size: 11.5px; font-weight: 700; background: rgba(12,14,16,.82); padding: 2px 7px; border-radius: 6px; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-p em, .hs-p span { font-style: normal; font-size: 12px; font-weight: 850; background: var(--accent); color: #062430; padding: 1px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.hs-p .wp-c { position: absolute; top: -2px; right: 12px; }
@media (max-width: 560px) { .hs-p { width: 62px; } .hs-p .kit { width: 38px; height: 38px; } .hs-p b { font-size: 10px; max-width: 62px; } }
:root[data-theme="light"] .hero-stage { box-shadow: 0 30px 60px -30px rgba(30,50,60,.35); background: radial-gradient(120% 80% at 50% 0%, rgba(0,131,173,.10), transparent 60%), #fff; }
/* price change imminent: a slow pulse, nothing else on the page moves */
@media (prefers-reduced-motion: no-preference) {
  .prob.soon, .pp-pill.soon { animation: lf-pulse 2.2s ease-in-out infinite; }
}
@keyframes lf-pulse { 0%, 100% { opacity: 1; filter: none; } 50% { opacity: .72; filter: brightness(1.25); } }
.prob.soon, .pp-pill.soon { font-weight: 800; }
.share-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn .ic { margin-right: 4px; }
.hs-share { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.hero-stage .hs-head { padding-right: 52px; }
.hs-share:hover { color: var(--accent); }
/* light theme tuning */
:root[data-theme="light"] .hs-p em { color: #fff; }
:root[data-theme="light"] .chart.scatter .pt circle { fill-opacity: .6; stroke: rgba(255,255,255,.9); }
:root[data-theme="light"] .chart.scatter .pt.hl circle { stroke: #fff; filter: drop-shadow(0 2px 6px rgba(0,60,90,.3)); }
:root[data-theme="light"] .chart.lines .ser.hl .sl { filter: none; }
:root[data-theme="light"] .lf-tip { color: #10181c; background: rgba(255,255,255,.82); border-color: rgba(0,0,0,.08); box-shadow: 0 10px 30px rgba(30,50,60,.18); }
:root[data-theme="light"] .card { box-shadow: 0 1px 2px rgba(20,40,50,.06), 0 8px 24px -12px rgba(20,40,50,.12); }
:root[data-theme="light"] .ic-starFill { color: #b07d00; }
/* ===== rank: LiveFPL layout ===== */
.lr-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin: 8px 0 16px; }
.lr-head h1 { margin: 4px 0 0; }
.lr-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 1150px) { .lr-grid { grid-template-columns: 1fr 1fr; } .lr-team { grid-column: 1 / -1; order: -1; } }
@media (max-width: 700px) { .lr-grid { grid-template-columns: 1fr; } }
.lr-card { position: relative; }
.lr-badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), #7ae0c3); color: #062430; margin-bottom: 12px; }
.lr-k { font-size: 12px; color: var(--muted); margin-top: 10px; }
.lr-big { font-size: 40px; font-weight: 900; font-stretch: 72%; line-height: 1.05; font-variant-numeric: tabular-nums; }
.lr-big small { font-size: 14px; font-weight: 600; font-stretch: 100%; color: var(--muted); }
.lr-move { display: inline-flex; align-items: center; gap: 4px; font-weight: 750; font-size: 13px; margin-top: 4px; padding: 3px 8px; border-radius: 8px; }
.lr-move.up { color: var(--up); background: rgba(61,220,132,.12); } .lr-move.down { color: var(--down); background: rgba(255,107,122,.12); }
.lr-dl { margin: 14px 0 0; display: grid; gap: 0; }
.lr-dl div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.lr-dl dt { color: var(--muted); } .lr-dl dd { margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.lr-tools { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs.tight { margin: 0; gap: 6px; align-items: center; } .tabs.tight button { padding: 6px 12px; font-size: 13px; } .tabs.tight small { opacity: .6; margin-left: 2px; }
.lr-pitch { border-radius: 18px; padding: 16px 6px; display: grid; gap: 14px; background: repeating-linear-gradient(180deg, rgba(255,255,255,.04) 0 40px, transparent 40px 80px), linear-gradient(180deg, #5f8a72, #6a907b 50%, #5f8a72); }
.lr-line { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.lr-p { position: relative; display: grid; justify-items: center; gap: 2px; width: 84px; background: none; border: 0; color: #fff; cursor: pointer; font: inherit; padding: 0; transition: opacity .2s, transform .2s; }
.lr-p:hover { transform: translateY(-2px); }
.lr-p.dim { opacity: .28; }
.lr-p .kit { filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); }
.lr-p b { font-size: 11.5px; background: rgba(12,14,16,.85); padding: 2px 7px; border-radius: 6px 6px 0 0; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-p .lr-pts { font-size: 13px; font-weight: 900; padding: 1px 10px; border-radius: 0; min-width: 44px; text-align: center; }
.lr-p .lr-eo { font-size: 10.5px; font-weight: 700; background: rgba(12,14,16,.7); padding: 1px 8px; border-radius: 0 0 6px 6px; min-width: 44px; text-align: center; }
.lr-p.st-live .lr-pts { background: #1fd2ff; color: #062430; }
.lr-p.st-played .lr-pts { background: #e9eef0; color: #14191c; }
.lr-p.st-toplay .lr-pts { background: #fac515; color: #2a2100; }
.lr-p.st-missed .lr-pts { background: #e5484d; color: #fff; }
.lr-p.st-live::before { content: ''; position: absolute; top: 4px; left: 16px; width: 8px; height: 8px; border-radius: 50%; background: #1fd2ff; box-shadow: 0 0 0 0 rgba(31,210,255,.7); animation: lf-live 1.6s infinite; }
@keyframes lf-live { 70% { box-shadow: 0 0 0 8px rgba(31,210,255,0); } 100% { box-shadow: 0 0 0 0 rgba(31,210,255,0); } }
.lr-sub { position: absolute; top: 0; left: 12px; color: #fff; }
.lr-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; margin-top: 10px; align-items: center; }
.lr-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.lr-legend i.st-live { background: #1fd2ff; } .lr-legend i.st-toplay { background: #fac515; } .lr-legend i.st-played { background: #e9eef0; } .lr-legend i.st-missed { background: #e5484d; }
.lr-status { display: grid; gap: 10px; }
.lr-status .card { padding: 14px 16px; }
.lr-status h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0 0 6px; }
.lr-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.lr-row:first-of-type { border-top: 0; }
.lr-row > span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.lr-empty { padding: 4px 0; }
.lr-ranges td, .lr-ranges th { text-align: right; } .lr-ranges td:first-child, .lr-ranges th:first-child { text-align: left; }
.lr-ranges tr.me td { color: var(--accent); font-weight: 800; }
.lr-tabs { margin-top: 24px; } .lr-pane { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .lr-p.st-live::before { animation: none; } }
/* ===== prices: FPL layout ===== */
.fp-title { font-size: clamp(34px, 4vw, 48px); margin: 18px 0 18px; }
.fp-seg { display: grid; grid-template-columns: 1fr 1fr; max-width: 640px; padding: 4px; border-radius: 12px; background: var(--panel2); gap: 4px; margin-bottom: 22px; }
.fp-seg button { border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; padding: 10px; border-radius: 9px; cursor: pointer; }
.fp-seg button.on { background: var(--panel); box-shadow: 0 1px 3px rgba(0,0,0,.25); font-weight: 700; }
.fp-find { display: block; margin-bottom: 16px; } .fp-find > span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.fp-search { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 0 16px; color: var(--muted); }
.fp-search:focus-within { border-color: var(--accent); }
.fp-search input { flex: 1; border: 0; background: none; color: var(--text); font: inherit; font-size: 17px; padding: 15px 0; outline: none; }
.fp-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.fp-dd select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 15px; color: var(--text); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid var(--line); border-radius: 10px; padding: 9px 36px 9px 14px; cursor: pointer; }
.fp-reset { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 15px; }
.fp-card { padding: 22px 24px; margin-bottom: 16px; }
.fp-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.fp-next { font-size: 18px; } .fp-next b { font-size: 26px; font-weight: 800; margin-left: 8px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.fp-upd { text-align: right; font-size: 15px; }
.fp-scroll { overflow-x: auto; }
.fp-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.fp-table th { text-align: left; font-size: 14px; font-weight: 700; color: var(--muted); padding: 14px 10px; white-space: nowrap; }
.fp-table td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fp-who { display: inline-flex; align-items: center; gap: 12px; }
.fp-who > span { display: grid; line-height: 1.25; }
.fp-who b { font-size: 15.5px; font-weight: 700; }
.fp-who small { font-size: 12.5px; color: var(--muted); } .fp-who em { font-style: normal; margin-left: 8px; }
.fp-mine { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); vertical-align: middle; margin-left: 4px; }
.fp-status { display: inline-block; font-size: 13.5px; font-weight: 650; padding: 4px 8px; border-radius: 4px; }
.fp-status.down { background: #e5484d; color: #fff; } .fp-status.down-soft { background: rgba(229,72,77,.18); color: var(--down); }
.fp-status.up { background: #1f9d55; color: #fff; } .fp-status.up-soft { background: rgba(31,157,85,.18); color: var(--up); }
.fp-status.flat { background: var(--panel2); color: var(--muted); }
.fp-pill { display: inline-block; font-size: 13px; font-weight: 750; padding: 3px 7px; border-radius: 4px; }
.fp-pill.down { background: #e5484d; color: #fff; } .fp-pill.up { background: #1f9d55; color: #fff; }
.fp-trend { font-size: 15px; } .fp-trend .ic { vertical-align: -2px; }
.fp-table .watch { background: none; border: 0; color: var(--muted); cursor: pointer; }
@media (prefers-reduced-motion: no-preference) { .fp-pill.soon { animation: lf-pulse 2.2s ease-in-out infinite; } }
/* page content fades out under the floating nav instead of showing through above it */
body::before { content: ''; position: fixed; inset: 0 0 auto 0; height: 76px; z-index: 9; pointer-events: none; background: linear-gradient(180deg, var(--bg) 55%, transparent); }
table.num-right td:not(:first-child), table.num-right th:not(:first-child) { text-align: right; }
/* ===== AI transfers settings ===== */
.ai-set { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: flex-end; margin-bottom: 16px; }
.ai-set > div > span { display: block; font-size: 12px; color: var(--muted); font-weight: 650; margin-bottom: 6px; }
.seg-s { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--panel2); }
.seg-s button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 650; padding: 7px 12px; border-radius: 9px; cursor: pointer; min-width: 38px; }
.seg-s button.on { background: var(--accent); color: #062430; }
:root[data-theme="light"] .seg-s button.on { color: #fff; }
.ai-tags { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.ai-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 650; padding: 5px 10px; border-radius: 999px; text-decoration: none; color: var(--text); background: var(--panel2); border: 1px solid var(--line); }
.ai-tag.lock { border-color: rgba(92,194,123,.5); } .ai-tag.ban { border-color: rgba(229,72,77,.5); } .ai-tag.clear { color: var(--muted); }
.ai-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ai-acts .btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.ai-gain { font-size: 26px; font-weight: 900; font-stretch: 75%; color: var(--up); white-space: nowrap; } .ai-gain small { font-size: 12px; font-weight: 700; margin-left: 2px; }
.ai-arrow { color: var(--accent); display: grid; place-items: center; }
.ai-squad td { vertical-align: middle; } .ai-squad th:last-child { width: 30px; }
.ai-lock { color: var(--muted); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; }
.ai-lock.on { color: #5cc27b; background: rgba(92,194,123,.15); }
.ai-flag-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e5484d; margin-left: 4px; vertical-align: middle; }
.ai-loading { display: flex; align-items: center; gap: 14px; padding: 28px; }
.ai-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--panel2); border-top-color: var(--accent); animation: lf-spin .8s linear infinite; }
@keyframes lf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) { .ai-move { animation: lf-rise .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 90ms); } }
@keyframes lf-rise { from { opacity: 0; transform: translateY(10px); } }
.fp-table td, .fp-table th { text-align: left; }
/* ===== recoveries counter ===== */
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.rc-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; cursor: pointer; transition: transform .15s, border-color .15s; }
.rc-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.rc-card.mine { box-shadow: inset 0 0 0 1.5px var(--accent); }
.rc-top { display: flex; align-items: center; gap: 10px; } .rc-top > div { display: grid; flex: 1; min-width: 0; }
.rc-top b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rc-top span { font-size: 12px; color: var(--muted); }
.rc-n { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 8px; } .rc-n b { font-size: 44px; font-weight: 900; font-stretch: 72%; line-height: 1; font-variant-numeric: tabular-nums; } .rc-n span { color: var(--muted); font-size: 13px; }
.rc-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.rc-pips { display: inline-flex; gap: 5px; } .rc-pips i { width: 26px; height: 8px; border-radius: 4px; background: var(--panel2); }
.rc-pips i.on { background: var(--accent); box-shadow: 0 0 10px rgba(31,210,255,.5); }
/* ===== suspensions ===== */
.sp-cards { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 6px; }
.sp-cards i { width: 11px; height: 15px; border-radius: 2px; background: var(--panel2); border: 1px solid var(--line); }
.sp-cards i.on { background: #f5c518; border-color: #f5c518; }
.sp-group { margin-top: 16px; } .sp-group.red { border-color: rgba(229,72,77,.45); } .sp-group.amber { border-color: rgba(245,197,24,.45); }
/* ===== top transfers ===== */
.tt-row { display: grid; grid-template-columns: 22px minmax(120px, 1.2fr) 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.tt-row:first-of-type { border-top: 0; }
.tt-rank { color: var(--muted); font-weight: 800; font-variant-numeric: tabular-nums; }
.tt-bar { height: 8px; border-radius: 4px; background: var(--panel2); overflow: hidden; } .tt-bar i { display: block; height: 100%; border-radius: 4px; background: var(--up); transform-origin: left; }
.tt.out .tt-bar i { background: var(--down); }
.tt h3 { display: flex; align-items: center; gap: 8px; } .tt.in h3 { color: var(--up); } .tt.out h3 { color: var(--down); }
@media (prefers-reduced-motion: no-preference) { .tt-bar i { animation: lf-bar .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 40ms); } }
@keyframes lf-bar { from { transform: scaleX(0); } }
.pro-t td { vertical-align: middle; }
/* ===== grouped navigation ===== */
.nav-g { position: relative; }
.nav-b { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 600; font-size: 14px; color: var(--muted); background: none; border: 0; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.nav-b svg { transition: transform .2s; }
.nav-g.on > .nav-b, .nav-b:hover, .nav-g.open > .nav-b { color: var(--text); background: var(--panel2); }
.nav-g.open > .nav-b svg { transform: rotate(180deg); }
.nav-p { position: absolute; top: calc(100% + 12px); left: -8px; min-width: 260px; padding: 8px; display: grid; gap: 2px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 24px 60px -18px rgba(0,0,0,.55); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility 0s .16s; z-index: 30; }
.nav-g.open > .nav-p { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .16s; }
@media (hover: hover) { .nav-g:hover > .nav-p { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .16s; } .nav-g::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px; } }
#topnav .nav-p a { display: grid; gap: 1px; border-radius: 14px; padding: 10px 14px; color: var(--text); }
#topnav .nav-p a b { font-weight: 700; font-size: 14.5px; } #topnav .nav-p a small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
#topnav .nav-p a.on, #topnav .nav-p a:hover { background: var(--panel2); }
#topnav .nav-p a.on b { color: var(--accent); }
@media (max-width: 760px) { .nav-p { position: fixed; left: 12px; right: 12px; top: 78px; min-width: 0; } }
.tp th.click { cursor: pointer; } .tp th.on { color: var(--accent); }
.grid > .card, .grid > div { min-width: 0; }
.card table { max-width: 100%; }
/* ===== live rank, LiveFPL structure ===== */
.lr-anchors { position: sticky; top: 84px; z-index: 20; display: flex; gap: 6px; overflow-x: auto; padding: 8px; margin: 8px 0 18px; border-radius: 16px; background: color-mix(in srgb, var(--panel) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); scrollbar-width: none; }
.lr-anchors a { flex: none; padding: 7px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 650; font-size: 14px; }
.lr-anchors a:hover { color: var(--text); background: var(--panel2); }
.lr-sec { margin: 34px 0; scroll-margin-top: 150px; }
.lr-sec .sec-h { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.lr-sec .sec-h .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #062430; font-weight: 850; flex: none; }
.lr-sec .sec-h h2 { margin: 0; font-size: 24px; }
.bl-grid { display: grid; gap: 14px; }
.bl-arrow { display: grid; grid-template-columns: auto 1fr minmax(260px, 420px); gap: 22px; align-items: center; padding: 26px; position: relative; overflow: hidden; }
.bl-arrow.is-green { background: radial-gradient(80% 140% at 0% 0%, rgba(61,220,132,.18), transparent 60%), var(--panel); }
.bl-arrow.is-red { background: radial-gradient(80% 140% at 0% 0%, rgba(255,107,122,.18), transparent 60%), var(--panel); }
.bl-ic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; }
.is-green .bl-ic { background: rgba(61,220,132,.16); color: var(--up); } .is-red .bl-ic { background: rgba(255,107,122,.16); color: var(--down); } .is-flat .bl-ic { background: var(--panel2); color: var(--muted); }
.bl-k { font-size: 13px; color: var(--muted); font-weight: 650; display: flex; align-items: center; gap: 6px; }
.bl-word { font-size: 44px; line-height: 1; font-weight: 900; font-stretch: 72%; text-transform: uppercase; margin: 4px 0; }
.is-green .bl-word { color: var(--up); } .is-red .bl-word { color: var(--down); }
.bl-sub { color: var(--muted); font-weight: 600; }
.bl-rank { margin-top: 14px; } .bl-rank b { display: block; font-size: 40px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.05; }
.seg-mini { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--panel2); margin: 8px 0; }
.seg-mini button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.seg-mini button.on { background: var(--text); color: var(--bg, #1b1f21); }
.bl-move { font-weight: 750; font-variant-numeric: tabular-nums; }
.bl-spark .chart { width: 100%; height: auto; }
.bl-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bl-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bl-cap { display: grid; gap: 10px; align-content: start; }
.bl-capn { display: flex; gap: 10px; align-items: center; }
.bl-cmp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.bl-cmp div { display: grid; text-align: center; } .bl-cmp span { font-size: 11px; color: var(--muted); } .bl-cmp b { font-size: 17px; font-variant-numeric: tabular-nums; }
.bl-tp { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.ms-ladder { display: grid; gap: 0; position: relative; padding-left: 18px; }
.ms-ladder::before { content: ''; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.ms { position: relative; display: grid; padding: 7px 0; }
.ms::before { content: ''; position: absolute; left: -17px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--panel2); border: 2px solid var(--muted); }
.ms.you::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.ms b { font-variant-numeric: tabular-nums; } .ms span { font-size: 12px; color: var(--muted); }
.ms.you b { color: var(--accent); font-size: 18px; }
.why-list { display: flex; flex-wrap: wrap; gap: 8px; }
.why-c { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); padding: 6px 12px 6px 8px; border-radius: 14px; font: inherit; cursor: pointer; }
.why-c b { font-weight: 700; } .why-p { font-weight: 850; font-variant-numeric: tabular-nums; }
.why-c.g .why-g { color: var(--up); font-weight: 800; } .why-c.b .why-g { color: var(--down); font-weight: 800; }
.why-s { width: 18px; display: grid; place-items: center; color: var(--muted); }
.why-c.st-played .why-s { color: var(--up); } .why-c.st-missed .why-s { color: var(--down); }
.why-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: 13px; }
.why-legend span { display: inline-flex; gap: 6px; align-items: center; }
.sq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.rd h3 { margin-top: 0; }
.rd-top { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rd-top b { font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; }
.rd-h { margin: 14px 0 6px; font-weight: 750; display: flex; gap: 6px; align-items: center; }
.rd-dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.rd-dl div { background: var(--panel2); border-radius: 10px; padding: 8px; } .rd-dl dt { font-size: 11px; color: var(--muted); } .rd-dl dd { margin: 2px 0 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.rd-sfk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.rd-sfk div { display: grid; gap: 2px; background: var(--panel2); border-radius: 10px; padding: 8px; cursor: pointer; } .rd-sfk b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rd-sfk span:last-child { font-size: 12px; font-weight: 700; }
.lr-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.lr-legend span { display: inline-flex; gap: 5px; align-items: center; }
.ow-r { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(40px, 1fr) auto; grid-template-rows: auto auto; gap: 2px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.ow-n { display: grid; grid-row: 1 / 3; } .ow-n b { font-size: 14px; }
.ow-b { height: 8px; border-radius: 4px; background: var(--panel2); overflow: hidden; } .ow-b i { display: block; height: 100%; border-radius: 4px; } .ow-b i.pos { background: var(--up); } .ow-b i.neg { background: var(--down); margin-left: auto; }
.ow-r > b { text-align: right; font-variant-numeric: tabular-nums; } .ow-r > span { grid-column: 2 / 4; text-align: right; }
@media (max-width: 1100px) { .bl-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sq-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .bl-arrow { grid-template-columns: 1fr; } .bl-kpis, .bl-row { grid-template-columns: 1fr; } .lr-anchors { top: 70px; } }
.rf-big { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--panel2); margin: 6px 0 10px; font-size: 12px; color: var(--muted); }
.rf-big b { color: var(--text); font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.rf-big b br, .rf-big b span.muted { display: none; }
.rf-h { font-weight: 700; margin-top: 8px; }
.rf-more summary, .rf-all summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: 13px; margin-top: 8px; list-style: none; }
.rf-all { margin-top: 14px; } .rf-all summary { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.rf-all[open] summary { margin-bottom: 14px; }

/* ===================== Champions night (final theme layer) ===================== */
@font-face { font-family: 'Unbounded'; font-display: swap; font-weight: 200 900; src: url(/fonts/unbounded-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Unbounded'; font-display: swap; font-weight: 200 900; src: url(/fonts/unbounded-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+20A0-20AB,U+20AD-20C0,U+A720-A7FF; }
:root, :root[data-theme="dark"] {
  --bg: #0a0f1e; --panel: #111934; --panel2: #18234a; --line: #243163; --text: #eef2ff; --muted: #97a3c7;
  --accent: #3ee0ff; --ink: #04202b; --violet: #9b87ff; --cyan: #3ee0ff; --gold: #f6c453; --up: #46d68c; --down: #ff6b81;
  --hl: #142e52; --glass: rgba(13, 19, 40, .78); --edge: rgba(160, 180, 255, .14);
  --grad: linear-gradient(120deg, #3ee0ff 0%, #9b87ff 100%);
  --display: 'Unbounded', 'Flex', system-ui, sans-serif;
}
:root[data-theme="light"] {
  --bg: #f2f4fb; --panel: #ffffff; --panel2: #eef1fa; --line: #dde2f1; --text: #0e1430; --muted: #5a6385;
  --accent: #0077b6; --ink: #ffffff; --violet: #6a4fe0; --cyan: #0077b6; --gold: #a46f00; --up: #138a4f; --down: #d22f4c;
  --hl: #dcecff; --glass: rgba(255,255,255,.86); --edge: rgba(14, 20, 48, .08);
  --grad: linear-gradient(120deg, #0077b6 0%, #6a4fe0 100%);
}
body { background-color: var(--bg); background-image:
  radial-gradient(900px 520px at 8% -140px, color-mix(in srgb, var(--cyan) 22%, transparent), transparent 70%),
  radial-gradient(900px 560px at 96% -180px, color-mix(in srgb, var(--violet) 24%, transparent), transparent 70%),
  radial-gradient(color-mix(in srgb, var(--text) 7%, transparent) 1px, transparent 1.4px);
  background-size: auto, auto, 26px 26px; background-attachment: fixed; }
body::before { background: linear-gradient(180deg, var(--bg) 40%, transparent); opacity: .9; }
/* display type */
h1, h2, .sec-h h2, .lr-sec .sec-h h2, h1.display { font-family: var(--display); letter-spacing: -0.02em; }
h1 { font-weight: 800; } h2 { font-weight: 700; } h3 { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0; }
h1.display { font-stretch: normal; font-weight: 800; letter-spacing: -0.03em; line-height: .98; }
.kpi .v, .bl-word, .bl-rank b, .hs-head b, .rc-n b, .rd-top b, .lr-big, .hs-rank b, .ms.you b { font-family: var(--display); font-stretch: normal; letter-spacing: -0.03em; font-weight: 800; }
.kpi .v { font-size: clamp(26px, 3vw, 38px); }
.bl-word { font-size: clamp(30px, 4vw, 46px); background: none; }
.is-green .bl-word { color: var(--up); text-shadow: 0 0 36px color-mix(in srgb, var(--up) 45%, transparent); }
.is-red .bl-word { color: var(--down); text-shadow: 0 0 36px color-mix(in srgb, var(--down) 45%, transparent); }
.brand span { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 18px; }
/* lit cards: a hairline that catches the floodlights */
.card { border: 1px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(160deg, color-mix(in srgb, var(--cyan) 30%, transparent), var(--edge) 35%, var(--edge) 65%, color-mix(in srgb, var(--violet) 30%, transparent)) border-box; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 40px -24px rgba(0,0,0,.6); }
:root[data-theme="light"] .card { box-shadow: 0 1px 2px rgba(14,20,48,.05), 0 16px 32px -20px rgba(14,20,48,.18); }
/* gradient accents on the things you press */
.tabs button.on, .chips .on, .seg-s button.on, .tabs a.on, .btn:not(.ghost):not(.tonal) { background: var(--grad); color: #07122a; border-color: transparent; }
:root[data-theme="light"] .tabs button.on, :root[data-theme="light"] .btn:not(.ghost):not(.tonal) { color: #fff; }
.lr-sec .sec-h .n, .sec-h .n { background: var(--grad); color: #07122a; font-family: var(--display); font-weight: 700; box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--violet) 60%, transparent); }
h1.display i { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar { background: var(--glass); border: 1px solid var(--edge); box-shadow: 0 18px 50px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); }
#topnav a.on, .nav-b[aria-expanded="true"], .nav-g.active > .nav-b { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); }
.nav-p { background: var(--panel); border: 1px solid var(--edge); backdrop-filter: blur(18px); z-index: 120; }
.nav-p a:hover { background: var(--panel2); }
.lr-anchors { z-index: 40; background: var(--glass); border-color: var(--edge); }
.lr-anchors a:hover { color: var(--text); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.badge-live { background: var(--down); box-shadow: 0 0 0 4px color-mix(in srgb, var(--down) 25%, transparent); }
.hero-stage { background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--violet) 18%, transparent), transparent 60%), var(--panel); }
table th { font-family: 'Flex', system-ui, sans-serif; letter-spacing: .01em; }
::selection { background: color-mix(in srgb, var(--violet) 45%, transparent); }
.home-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.home-hero h1.display { font-size: clamp(38px, 5.4vw, 74px); }
.w > header h3 { font-size: 17px; letter-spacing: -0.01em; line-height: 1.15; }
.hero-stage { max-width: 100%; }
.alert-kinds { display: grid; gap: 2px; margin: 8px 0 14px; }
.sw-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); cursor: pointer; }
.sw-row input { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); position: relative; cursor: pointer; transition: background .15s; flex: none; }
.sw-row input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.sw-row input:checked { background: var(--grad); border-color: transparent; } .sw-row input:checked::after { transform: translateX(18px); background: #fff; }
.aw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.aw { display: grid; gap: 4px; }
.aw-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #07122a; margin-bottom: 6px; }
.aw b { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.aw-v { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.h2h-f { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.h2h-f span:last-child { text-align: right; } .h2h-f b { font-variant-numeric: tabular-nums; } .h2h-f .win { color: var(--up); font-weight: 750; }
tr.me td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero h1.display { font-size: clamp(34px, 10vw, 56px); }
}
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 6px 10px; padding: 10px 12px; border-radius: 20px; }
  .topbar #topnav { order: 3; width: 100%; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 2px; scrollbar-width: none; margin: 0 -4px; }
  .topbar #topnav::-webkit-scrollbar { display: none; }
  .topbar #topnav > * { flex: none; }
  .topbar #themebtn { margin-left: auto; }
  h1 { font-size: clamp(30px, 9vw, 44px); }
  h1.display { font-size: clamp(32px, 10vw, 52px); }
  .hs-p { width: 58px; } .hero-stage { padding: 12px; }
}
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 9999; padding: 14px 22px; border-radius: 999px; background: var(--grad); color: #07122a; font-weight: 750; box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); }
.uefa-steps { padding-left: 20px; line-height: 1.6; display: grid; gap: 12px; }
.uefa-steps .btn { cursor: grab; margin-left: 6px; }
#uefa-cookie { width: 100%; background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 10px; font: inherit; font-size: 13px; }
.card a.btn, a.btn { text-decoration: none; }
.card a.btn:not(.ghost) { color: #07122a; }
.card a.btn.ghost { color: var(--text); }
.uefa-steps .btn { display: inline-flex; white-space: nowrap; vertical-align: middle; }
.promo-f { display: flex; gap: 8px; margin: 14px 0 4px; max-width: 360px; }
.promo-f input { flex: 1; min-width: 0; background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 9px 12px; font: inherit; text-transform: uppercase; }

/* ===================== Charcoal (final theme layer, Nov 2026) =====================
   Charcoal ground, one warm accent (trophy gold) for the things that matter,
   floodlit pitches, Unbounded for display, Roboto Flex for everything you read. */
:root, :root[data-theme="dark"] {
  --bg: #131415; --panel: #1b1c1e; --panel2: #232427; --panel3: #2a2c2f; --line: #2d2f32; --text: #f2f1ed; --muted: #9c9b96; --faint: #6e6d69;
  --accent: #e8c37a; --ink: #1c1406; --gold: #e8c37a; --cyan: #8cc4ff; --violet: #b3a6ff; --up: #5fd49c; --down: #ff7d88;
  --hl: #2b2618; --glass: rgba(27, 28, 30, .78); --edge: rgba(255,255,255,.07);
  --grad: linear-gradient(180deg, #f0cf8c, #e0b763);
  --r-lg: 22px; --r-md: 16px; --r-sm: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,.035) inset, 0 20px 40px -28px rgba(0,0,0,.8);
  --turf-a: #1f3b2b; --turf-b: #234331; --turf-line: rgba(235, 245, 238, .2);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f4f2; --panel: #ffffff; --panel2: #f0f0ed; --panel3: #e8e8e4; --line: #e3e3df; --text: #171716; --muted: #686762; --faint: #9a9993;
  --accent: #8f6312; --ink: #ffffff; --gold: #9a6b10; --cyan: #1f6fd1; --violet: #5b48c9; --up: #13804a; --down: #cf2f45;
  --hl: #f6ecd6; --glass: rgba(255,255,255,.82); --edge: rgba(0,0,0,.07);
  --grad: linear-gradient(180deg, #232322, #161615);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 16px 32px -24px rgba(0,0,0,.22);
  --turf-a: #3f7a57; --turf-b: #46845f; --turf-line: rgba(255,255,255,.5);
  color-scheme: light;
}
html { background: var(--bg); }
body { background: var(--bg); background-image: radial-gradient(1100px 520px at 50% -260px, rgba(255, 236, 196, .06), transparent 70%); background-attachment: fixed; font-size: 15px; line-height: 1.5; text-rendering: optimizeLegibility; }
:root[data-theme="light"] body { background-image: none; }
body::before { background: linear-gradient(180deg, var(--bg) 45%, transparent); opacity: 1; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
main { max-width: 1200px; padding: 40px 32px 96px; }
@media (max-width: 900px) { main { padding: 24px 16px 72px; } }

/* type */
h1, h2, h1.display { font-family: var(--display); color: var(--text); }
h1 { font-weight: 650; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 10px; }
h1.display { font-weight: 650; text-transform: none; letter-spacing: -0.045em; line-height: 1; font-size: clamp(34px, 4.6vw, 56px); margin: 0 0 12px; }
h1.display i, h1 i { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--accent); font-style: normal; }
h2 { font-weight: 600; font-size: 22px; letter-spacing: -0.03em; line-height: 1.2; }
h3, .w header h3, .w > header h3 { font-family: 'Flex', system-ui, sans-serif; font-weight: 650; font-size: 16px; letter-spacing: -0.01em; text-transform: none; font-stretch: 100%; line-height: 1.3; }
.sub { color: var(--muted); font-size: 16px; max-width: 64ch; margin: 0 0 28px; }
.small { font-size: 13px; } .tiny { font-size: 11.5px; }
.kpi .v, .bl-word, .bl-rank b, .hs-head b, .rc-n b, .rd-top b, .lr-big, .hs-rank b, .ms.you b { font-weight: 650; letter-spacing: -0.04em; }
.bl-word { text-transform: none; text-shadow: none !important; font-size: clamp(30px, 3.6vw, 44px); }
.kpi .l { font-size: 13px; font-weight: 550; }
th { font-weight: 550; font-size: 12px; color: var(--faint); letter-spacing: .01em; }
td { border-bottom-color: var(--line); }
tr.click:hover td, :root[data-theme="light"] tr.click:hover td { background: color-mix(in srgb, var(--text) 3.5%, transparent); }

/* surfaces: quiet, flat, one hairline */
.card, .w, .rc-card, .hh-card, .lr-card, .tool { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--shadow); background-image: none; }
:root[data-theme="light"] .card, :root[data-theme="light"] .w { box-shadow: var(--shadow); }
.card { padding: 24px; }
.w { padding: 22px 22px 20px; }
.card.hl { background: var(--panel); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.hh-card.accent { background: var(--panel); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.rc-card:hover, .hh-card:hover, .tool:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--panel); transform: translateY(-2px); }
.grid { gap: 20px; } .bento { gap: 20px; margin-top: 40px; }
.section { margin-top: 56px; }
.sec-h { gap: 14px; margin-bottom: 18px; align-items: center; }
.sec-h .n, .lr-sec .sec-h .n { width: 30px; height: 30px; border-radius: 50%; background: var(--panel2); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); font-size: 13px; font-weight: 600; }

/* top bar */
.topbar { max-width: 1176px; background: var(--glass); border: 1px solid var(--edge); box-shadow: 0 18px 40px -24px rgba(0,0,0,.7); padding: 8px 10px 8px 18px; -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); }
:root[data-theme="light"] .topbar { box-shadow: 0 10px 30px -18px rgba(0,0,0,.2); }
.brand span { font-weight: 650; letter-spacing: -0.035em; font-size: 17px; }
#topnav a, .nav-b { color: var(--muted); font-weight: 550; }
#topnav a.on, #topnav a:hover, .nav-b:hover, .nav-b[aria-expanded="true"], .nav-g.active > .nav-b { background: var(--panel2); color: var(--text); }
#topnav a.app { border-color: var(--line); color: var(--text); }
.nav-p { background: var(--panel); border: 1px solid var(--edge); box-shadow: 0 24px 48px -16px rgba(0,0,0,.6); }
.nav-p a small { color: var(--faint); }
.theme-btn { color: var(--muted); } .theme-btn:hover { color: var(--text); }

/* controls: solid gold for the one action, quiet for the rest */
.btn:not(.ghost):not(.tonal), .tabs button.on, .chips .on, .seg-s button.on, .tabs a.on { background: var(--accent); color: var(--ink); box-shadow: none; }
:root[data-theme="light"] .btn:not(.ghost):not(.tonal) { background: var(--text); color: #fff; }
:root[data-theme="light"] .tabs button.on, :root[data-theme="light"] .seg-s button.on, :root[data-theme="light"] .tabs a.on, :root[data-theme="light"] .chips .on { background: var(--text); color: #fff; }
.btn { font-weight: 650; padding: 11px 20px; letter-spacing: -0.005em; }
.btn:not(.ghost):not(.tonal):hover { filter: brightness(1.06); }
.btn.ghost, .btn.tonal { background: var(--panel2); color: var(--text); border: 1px solid var(--line); }
.card a.btn:not(.ghost) { color: var(--ink); }
:root[data-theme="light"] .card a.btn:not(.ghost) { color: #fff; }
.tabs button, .tabs a { background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 550; }
.tabs button:hover { color: var(--text); border-color: var(--faint); }
input, select, textarea { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.chip { background: var(--panel2); font-weight: 550; }
.chip.up, .lr-move.up { background: color-mix(in srgb, var(--up) 13%, transparent); }
.chip.down, .lr-move.down { background: color-mix(in srgb, var(--down) 13%, transparent); }
.w header a { color: var(--muted); font-weight: 600; } .w header a:hover { color: var(--accent); }
.sw-row input:checked { background: var(--accent); }
.aw-ic { background: var(--panel2); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.toast { background: var(--text); color: var(--bg); }
.lr-badge { background: var(--accent); color: var(--ink); }
.rc-pips i.on { background: var(--accent); box-shadow: none; }
.bar, .gap { background: var(--panel2); } .bar i { background: var(--accent); }
.lr-anchors { background: var(--glass); border-color: var(--edge); }
.badge-live { background: var(--down); }

/* the pitch: floodlit turf at night */
.wpitch, .hs-pitch, .lr-pitch {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(255, 248, 225, .10), transparent 70%),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.32)),
    repeating-linear-gradient(180deg, var(--turf-a) 0 9.09%, var(--turf-b) 9.09% 18.18%);
}
.wpitch { padding: 26px 8px 16px; } .lr-pitch { padding: 22px 6px 18px; } .hs-pitch { padding: 18px 6px 14px; }
.wpitch::before, .wpitch::after, .hs-pitch::before { content: none; display: none; }
.hs-lines { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); fill: none; stroke: var(--turf-line); stroke-width: 1; vector-effect: non-scaling-stroke; z-index: -1; pointer-events: none; }
.hs-lines * { vector-effect: non-scaling-stroke; }
.wl, .lr-line, .hs-l { position: relative; }
.wp b, .hs-p b, .lr-p b { background: rgba(14, 15, 16, .86); color: #fff; font-weight: 600; letter-spacing: -0.005em; border-radius: 6px; box-shadow: 0 4px 10px -4px rgba(0,0,0,.5); }
:root[data-theme="light"] .wp b { background: rgba(14,15,16,.86); }
.wp b { border-radius: 7px 7px 2px 2px; } .wp span { border-radius: 2px 2px 7px 7px; background: rgba(255,255,255,.94); color: #171716; }
.hs-p em, .hs-p span, :root[data-theme="light"] .hs-p em { background: var(--gold); color: #1c1406; font-weight: 750; border-radius: 6px; }
:root[data-theme="light"] .hs-p em, :root[data-theme="light"] .hs-p span { background: #f0cf8c; }
.wp-c { background: #fff; color: #171716; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.wp .kit, .hs-p .kit, .lr-p .kit { filter: drop-shadow(0 8px 8px rgba(0,0,0,.4)); }
.wbench { background: rgba(0,0,0,.28); border-top: 1px solid rgba(255,255,255,.06); }
.hero-stage { background: var(--panel); border: 1px solid var(--edge); box-shadow: var(--shadow); }
:root[data-theme="light"] .hero-stage { background: var(--panel); }
.hs-rank { background: var(--panel2); border-color: var(--line); } .hs-rank b { color: var(--accent); }

/* home */
.home-hero { gap: 56px; align-items: center; padding: 24px 0 8px; }
.home-hero h1.display { font-size: clamp(40px, 5.2vw, 72px); letter-spacing: -0.05em; line-height: .98; }
.mc { background: var(--panel2); border-radius: 14px; }
.hh-card b { text-transform: none; font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; font-size: 20px; font-stretch: normal; }
.bento { grid-auto-flow: row dense; }

/* footer */
.foot { color: var(--faint); max-width: 760px; margin: 0 auto; line-height: 1.6; padding: 40px 24px 56px; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }

/* sign-in providers */
.oauth { display: grid; gap: 10px; margin: 4px 0 18px; }
.oauth a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); text-decoration: none; font-weight: 600; transition: border-color .15s, background .15s; }
.oauth a:hover { border-color: var(--faint); background: var(--panel3); }
.oauth svg { width: 18px; height: 18px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; margin: 4px 0 16px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (min-width: 1001px) {
  .bento > .w-l:first-child { grid-row: span 2; }
  .bento > .w-m:last-child:nth-child(5) { grid-column: 1 / -1; }
}
.fd { font-weight: 650; letter-spacing: .01em; color: #f4f3ef; border-radius: 6px; }
.fd.d1 { background: #2e6b4b; } .fd.d2 { background: #3f5f4a; } .fd.d3 { background: #3a3b3e; } .fd.d4 { background: #6b4040; } .fd.d5 { background: #823a44; }
:root[data-theme="light"] .fd.d1 { background: #2f8a5a; } :root[data-theme="light"] .fd.d2 { background: #7fae8c; } :root[data-theme="light"] .fd.d3 { background: #c9c9c4; color: #171716; } :root[data-theme="light"] .fd.d4 { background: #d68c86; } :root[data-theme="light"] .fd.d5 { background: #c2414f; }
.d1 { background: #2e6b4b; color: #f4f3ef; } .d2 { background: #3f5f4a; color: #f4f3ef; } .d3 { background: #3a3b3e; color: #f4f3ef; } .d4 { background: #6b4040; color: #f4f3ef; } .d5 { background: #823a44; color: #f4f3ef; }
table.sched td.hc { background: color-mix(in srgb, var(--up) calc(var(--h) * 0.42), var(--panel)); }
table.tp td.hc { background: color-mix(in srgb, var(--accent) calc(var(--h) * 0.4), var(--panel)); }
.lr-p .lr-pts { font-weight: 750; border-radius: 0; }
.lr-p b { border-radius: 6px 6px 0 0; }
.lr-p .lr-eo { background: rgba(14,15,16,.78); color: #d8d7d2; font-weight: 600; }
.lr-p.st-live .lr-pts, .lr-legend i.st-live { background: #8cc4ff; color: #0b1a2b; }
.lr-p.st-played .lr-pts, .lr-legend i.st-played { background: #f2f1ed; color: #171716; }
.lr-p.st-toplay .lr-pts, .lr-legend i.st-toplay { background: #e8c37a; color: #1c1406; }
.lr-p.st-missed .lr-pts, .lr-legend i.st-missed { background: #ff7d88; color: #2a0a0e; }
.sp-cards i.on { background: var(--accent); border-color: var(--accent); }
.auth-card { max-width: 440px; margin: 24px auto 0; padding: 36px 32px 28px; }
.auth-card h1 { font-size: 30px; margin-bottom: 6px; }
.auth-card .sub { font-size: 15px; }
.auth-err { background: color-mix(in srgb, var(--down) 12%, transparent); color: var(--down); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 0 0 16px; }
.authf { gap: 14px; }
.authf label { font-size: 13px; font-weight: 550; color: var(--muted); }
.authf .btn { width: 100%; justify-content: center; padding: 13px 20px; }
.oauth-row { display: grid; grid-template-columns: 170px 1fr 1fr auto; gap: 12px; align-items: end; padding: 14px 0; border-top: 1px solid var(--line); }
.oauth-row .authf .btn, .oauth-row .btn { width: auto; }
.oauth-name { display: flex; align-items: center; gap: 8px; color: var(--text); padding-bottom: 10px; }
.oauth-name svg { width: 18px; height: 18px; }
.oauth-btns { display: flex; gap: 6px; }
@media (max-width: 760px) { .oauth-row { grid-template-columns: 1fr; } }
.hero .sub { margin-left: auto; margin-right: auto; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); }
.plan .price { font-family: var(--display); font-weight: 650; letter-spacing: -0.04em; font-size: 38px; }
.plan h3 { font-size: 15px; color: var(--muted); font-weight: 600; }
.plan.pro { outline: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: -1px; }
.plan ul { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.plan li { position: relative; padding-left: 24px; line-height: 1.45; }
.plan li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
a { text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.card p a, .sub a, .auth-card a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.wl { gap: 6px; }
.wp { flex: 0 1 92px; min-width: 0; width: auto; }
.wp .kit { max-width: 100%; height: auto; }
@media (max-width: 760px) {
  #topnav a, .nav-b { padding: 7px 10px; font-size: 13.5px; }
  .topbar { padding: 8px 10px 8px 14px; }
  .wl { gap: 4px; } .wp b, .wp span { font-size: 10.5px; padding: 3px 4px; }
  .wpitch { padding: 18px 4px 12px; }
  .card { padding: 18px; } .w { padding: 18px 16px 16px; }
  .home-hero { gap: 28px; }
}
.fp-status, .fp-pill { border-radius: 999px; padding: 4px 10px; font-weight: 600; font-size: 12.5px; }
.fp-status.down, .fp-pill.down { background: color-mix(in srgb, var(--down) 18%, transparent); color: var(--down); }
.fp-status.down-soft { background: color-mix(in srgb, var(--down) 9%, transparent); color: var(--down); }
.fp-status.up, .fp-pill.up { background: color-mix(in srgb, var(--up) 18%, transparent); color: var(--up); }
.fp-status.up-soft { background: color-mix(in srgb, var(--up) 9%, transparent); color: var(--up); }
.fp-pill { font-variant-numeric: tabular-nums; }
.ic-skull, .ic-heartBreak, .ai-flag-dot { color: var(--down); } .ai-flag-dot { background: var(--down); }
.plan-plus { margin: 6px 0 -2px; font-size: 13px; font-weight: 600; color: var(--accent); }
.ad { margin: 32px 0; padding: 14px 14px 16px; border-radius: var(--r-lg); border: 1px dashed var(--line); min-height: 120px; }
.ad-l { display: block; font-size: 11.5px; color: var(--faint); margin-bottom: 8px; }
.ad-l a { color: var(--muted); }
.ad ins:not([data-ad-status]) { min-height: 90px; }

/* ===== matchday briefing ===== */
.bf-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
.eyebrow-live { margin: 0 0 6px; color: var(--accent); font-weight: 600; font-size: 14px; }
.bf-dl { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 16px 20px; display: grid; gap: 4px; min-width: 280px; box-shadow: var(--shadow); }
.bf-dl > span { font-size: 13px; color: var(--muted); font-weight: 550; }
.bf-dl small { color: var(--faint); font-size: 12.5px; }
.cd { display: flex; gap: 10px; align-items: baseline; font-variant-numeric: tabular-nums; }
.cd b { font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -0.04em; color: var(--text); }
.cd i { font-style: normal; color: var(--muted); font-size: 13px; margin-left: 1px; margin-right: 4px; }
.bf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bf-grid .span2 { grid-column: span 2; }
@media (max-width: 1050px) { .bf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .bf-grid { grid-template-columns: 1fr; } .bf-grid .span2 { grid-column: auto; } .bf-dl { min-width: 0; width: 100%; } }
.bf header { margin-bottom: 14px; } .bf header h3 { margin: 0 0 2px; } .bf header p { margin: 0; }
.bf-list { display: grid; }
.bf-row { display: grid; grid-template-columns: 18px minmax(0, 1.7fr) 64px minmax(30px, .9fr) 44px; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.bf-row:first-child { border-top: 0; }
.bf-row .pl { min-width: 0; overflow: hidden; } .bf-row .pl { white-space: nowrap; text-overflow: ellipsis; }
.bf-n { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.bf-opp { font-size: 13px; white-space: nowrap; }
.bf-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.bf-own { display: none; }
.bf-row:not(:has(.bf-opp)) { grid-template-columns: 20px minmax(0, 1fr) auto; }
.bf-row.news { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
.bf-row.news .bf-news { grid-column: 1 / -1; }
.tag-st { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.tag-st.st-I, .tag-st.st-S, .tag-st.st-U, .tag-st.st-N { background: color-mix(in srgb, var(--down) 15%, transparent); color: var(--down); }
.mb { display: block; height: 6px; border-radius: 99px; background: var(--panel2); overflow: hidden; }
.mb i { display: block; height: 100%; border-radius: 99px; background: var(--muted); }
.mb.gold i { background: var(--accent); } .mb.up i { background: var(--up); } .mb.blue i { background: var(--cyan); }
.bf-t td, .bf-t th { padding: 8px 6px; }
.mo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.mo { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 10px; }
.mo-t { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; font-size: 14px; }
.mo-t .pl.r { justify-content: flex-end; text-align: right; }
.mo-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.mo-s { text-align: center; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.03em; display: grid; line-height: 1.1; }
.mo-s small { font-family: 'Flex', sans-serif; font-size: 11px; color: var(--faint); font-weight: 500; letter-spacing: 0; }
.mo-bar { display: flex; gap: 3px; height: 8px; }
.mo-bar i { border-radius: 99px; } .mo-bar .h { background: var(--accent); } .mo-bar .d { background: var(--panel3); } .mo-bar .a { background: var(--cyan); }
.mo-l, .mo-x { display: flex; justify-content: space-between; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mo-l span:first-child { color: var(--accent); } .mo-l span:last-child { color: var(--cyan); } .mo-l span:nth-child(2) { color: var(--muted); }
.bf-feed { text-align: center; margin-top: 32px; }
.hh-brief { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; padding: 14px 18px; border-radius: var(--r-md); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); background: color-mix(in srgb, var(--accent) 6%, var(--panel)); text-decoration: none; max-width: 520px; transition: border-color .15s; }
.hh-brief b { color: var(--text); font-weight: 650; } .hh-brief span { color: var(--muted); font-size: 14px; }
.hh-brief:hover { border-color: var(--accent); }
/* GK rotation + watchlist */
.gk-t td, .gk-t th { text-align: center; } .gk-t td:first-child, .gk-t th:first-child { text-align: left; }
.gk-pair { display: grid; gap: 4px; }
.gk-c { white-space: nowrap; } .gk-c span { display: block; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.gk-c span.on { color: var(--accent); font-weight: 700; }
.empty-w { max-width: 560px; }
.lr-anchors { top: 82px; }
.lr-anchors a { transition: color .2s, background-color .2s; }
.lr-anchors a.on { color: var(--ink); background: var(--accent); }
:root[data-theme="light"] .lr-anchors a.on { color: #fff; background: var(--text); }

/* ===== AI transfers settings ===== */
.ai-set { display: block; padding: 22px; }
.ai-presets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
@media (max-width: 900px) { .ai-presets { grid-template-columns: repeat(2, 1fr); } }
.ai-preset { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel2); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s, background-color .2s; }
.ai-preset b { font-weight: 650; font-size: 14px; } .ai-preset span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.ai-preset:hover { border-color: var(--faint); transform: translateY(-2px); }
.ai-preset.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--panel2)); }
.ai-main { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-end; }
.ai-set span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.ai-more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.ai-more summary { cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.ai-more summary::-webkit-details-marker { display: none; }
.ai-more summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .25s; margin-right: 2px; }
.ai-more[open] summary::before { transform: rotate(45deg); }
.ai-count { display: inline-block !important; margin: 0 !important; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--ink) !important; font-size: 11px !important; }
.ai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px 28px; margin-top: 16px; }
.ai-grid .wide { grid-column: 1 / -1; }
.ai-grid small { display: block; margin-top: 4px; font-size: 11.5px; }
.ai-teams { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-teams button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px 5px 6px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); transition: border-color .15s, color .15s, background-color .15s; }
.ai-teams button:hover { color: var(--text); border-color: var(--faint); }
.ai-teams button.on { color: var(--down); border-color: color-mix(in srgb, var(--down) 50%, transparent); background: color-mix(in srgb, var(--down) 10%, transparent); text-decoration: line-through; }
.ai-reset { margin: 18px 0 0; }
.ai-pro { align-self: center; margin-left: 8px; }
.ai-plan .ai-step { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.ai-plan .ai-step:first-of-type { border-top: 0; }
.seg-s { flex-wrap: wrap; }

/* ===================== Motion ===================== */
@keyframes viewIn { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.motion #view.view-in { animation: viewIn .5s cubic-bezier(.2,.7,.2,1) both; }
/* reveal: uses translate/scale so hover transforms keep working */
.motion .rv { opacity: 0; translate: 0 22px; scale: .985; transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), translate .85s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), scale .85s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), border-color .25s, background-color .25s, box-shadow .3s; }
.motion .rv.in { opacity: 1; translate: 0 0; scale: 1; }
/* rows inside a revealed card follow one after another */
@keyframes rowIn { from { opacity: 0; translate: -8px 0; } to { opacity: 1; translate: 0 0; } }
.motion .rv.in .bf-row, .motion .rv.in .lr-dl > div, .motion .rv.in .mc, .motion .rv.in .ai-step, .motion .rv.in tr:nth-child(-n+16) { animation: rowIn .55s cubic-bezier(.2,.7,.2,1) both; }
.motion .rv.in :is(.bf-row, .mc, .ai-step, .lr-dl > div):nth-child(1), .motion .rv.in tr:nth-child(1) { animation-delay: calc(var(--d, 0ms) + 60ms); }
.motion .rv.in :is(.bf-row, .mc, .ai-step, .lr-dl > div):nth-child(2), .motion .rv.in tr:nth-child(2) { animation-delay: calc(var(--d, 0ms) + 100ms); }
.motion .rv.in :is(.bf-row, .mc, .ai-step, .lr-dl > div):nth-child(3), .motion .rv.in tr:nth-child(3) { animation-delay: calc(var(--d, 0ms) + 140ms); }
.motion .rv.in :is(.bf-row, .mc, .ai-step, .lr-dl > div):nth-child(4), .motion .rv.in tr:nth-child(4) { animation-delay: calc(var(--d, 0ms) + 180ms); }
.motion .rv.in :is(.bf-row, .mc, .ai-step, .lr-dl > div):nth-child(5), .motion .rv.in tr:nth-child(5) { animation-delay: calc(var(--d, 0ms) + 220ms); }
.motion .rv.in :is(.bf-row, .mc, .ai-step, .lr-dl > div):nth-child(6), .motion .rv.in tr:nth-child(6) { animation-delay: calc(var(--d, 0ms) + 260ms); }
.motion .rv.in :is(.bf-row, .mc, .ai-step, .lr-dl > div):nth-child(7), .motion .rv.in tr:nth-child(7) { animation-delay: calc(var(--d, 0ms) + 300ms); }
.motion .rv.in :is(.bf-row, .mc, .ai-step, .lr-dl > div):nth-child(8), .motion .rv.in tr:nth-child(8) { animation-delay: calc(var(--d, 0ms) + 340ms); }
.motion .rv.in :is(.bf-row, .mc, .ai-step, .lr-dl > div):nth-child(n+9), .motion .rv.in tr:nth-child(n+9) { animation-delay: calc(var(--d, 0ms) + 380ms); }
/* bars grow from the left */
@keyframes grow { from { scale: 0 1; } to { scale: 1 1; } }
.motion .rv.in :is(.mb i, .bar i, .mo-bar i, .rc-pips i.on, .gap i) { transform-origin: left center; animation: grow 1.1s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d, 0ms) + 200ms); }
/* headlines rise word by word */
.motion h1.split .wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.motion h1.split .wd > span { display: inline-block; animation: wordUp .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--w) * 70ms + 60ms); }
@keyframes wordUp { from { translate: 0 105%; rotate: 3deg; } to { translate: 0 0; rotate: 0deg; } }
.motion h1.split i { display: inline-block; animation: dotPop .7s cubic-bezier(.34,1.8,.5,1) both; animation-delay: .65s; }
@keyframes dotPop { 0% { scale: 0; } 100% { scale: 1; } }
/* players run onto the pitch */
@keyframes kitIn { 0% { opacity: 0; translate: 0 26px; scale: .6; } 60% { opacity: 1; scale: 1.06; } 100% { opacity: 1; translate: 0 0; scale: 1; } }
.motion .pitch-in :is(.wp, .hs-p, .lr-p) { animation: kitIn .75s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms + 80ms); }
.motion .pitch-in .hs-lines { animation: linesIn 1.6s ease both; }
@keyframes linesIn { from { opacity: 0; } to { opacity: 1; } }
/* floodlight under the cursor */
.card, .w, .mo, .rc-card, .plan, .ai-preset { --mx: 50%; --my: -200px; }
:is(.card, .w, .mo, .rc-card, .plan, .ai-preset):hover { background-image: radial-gradient(520px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 7%, transparent), transparent 45%); }
:root[data-theme="light"] :is(.card, .w, .mo, .rc-card, .plan, .ai-preset):hover { background-image: radial-gradient(520px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 6%, transparent), transparent 45%); }
.card:hover, .w:hover { border-color: color-mix(in srgb, var(--text) 11%, transparent); }
/* buttons: lean towards the cursor, press with a spring */
.btn { transition: translate .35s cubic-bezier(.2,.8,.2,1), scale .2s, filter .2s, background-color .2s, border-radius .35s cubic-bezier(.34,1.56,.64,1); }
.btn:active { scale: .96; }
.btn:not(.ghost):not(.tonal) { position: relative; overflow: hidden; isolation: isolate; }
.btn:not(.ghost):not(.tonal)::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); translate: -120% 0; transition: translate .7s cubic-bezier(.2,.7,.2,1); }
.btn:not(.ghost):not(.tonal):hover::after { translate: 120% 0; }
/* top bar settles on scroll */
.topbar { transition: padding .35s cubic-bezier(.2,.7,.2,1), background-color .35s, box-shadow .35s, translate .35s; }
body.scrolled .topbar { background: color-mix(in srgb, var(--panel) 90%, transparent); box-shadow: 0 20px 50px -24px rgba(0,0,0,.85); }
/* nav menus open with a little drop */
@keyframes menuIn { from { opacity: 0; translate: 0 -6px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }
.nav-g.open .nav-p, .nav-b[aria-expanded="true"] + .nav-p { animation: menuIn .22s cubic-bezier(.2,.8,.2,1) both; }
/* live dot breathes */
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--down) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.badge-live { animation: livePulse 1.6s ease-out infinite; }
/* gold full stops glint now and then */
@keyframes glint { 0%, 92%, 100% { filter: none; } 95% { filter: drop-shadow(0 0 10px var(--accent)) brightness(1.4); } }
h1.display i { animation: glint 7s ease-in-out infinite; }
.motion h1.split i { animation: dotPop .7s cubic-bezier(.34,1.8,.5,1) .65s both, glint 7s ease-in-out 2s infinite; }
/* deadline digits tick */
@keyframes tickIn { from { translate: 0 -40%; opacity: .2; } to { translate: 0 0; opacity: 1; } }
.cd b:last-of-type { display: inline-block; }
/* skeletons shimmer */
@keyframes shimmer { from { background-position: -600px 0; } to { background-position: 600px 0; } }
.skel { background: linear-gradient(90deg, var(--panel) 0%, var(--panel2) 50%, var(--panel) 100%) !important; background-size: 1200px 100% !important; animation: shimmer 1.4s linear infinite; border-radius: var(--r-lg); }
/* toast springs up */
@keyframes toastIn { from { opacity: 0; translate: -50% 20px; scale: .9; } to { opacity: 1; translate: -50% 0; scale: 1; } }
.toast { transform: none; translate: -50% 0; animation: toastIn .45s cubic-bezier(.34,1.56,.64,1) both; }
/* AI move cards slide in from the side */
.ai-gain { transition: scale .3s cubic-bezier(.34,1.56,.64,1); } .ai-move:hover .ai-gain { scale: 1.06; }
/* view transition for the theme wipe */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
@media (prefers-reduced-motion: reduce) { .badge-live, h1.display i, .skel { animation: none !important; } }

/* ===== home: about, tools, questions (also what search engines read) ===== */
.about-lf { margin-top: 80px; display: grid; gap: 36px; }
.ab-intro h2 { font-size: clamp(24px, 2.6vw, 34px); max-width: 22ch; margin-bottom: 10px; }
.ab-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ab-tool { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--edge); background: var(--panel); text-decoration: none; color: var(--text); transition: border-color .2s, translate .25s cubic-bezier(.2,.8,.2,1); }
.ab-tool b { font-weight: 650; } .ab-tool span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.ab-tool:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); translate: 0 -2px; }
.ab-faq { max-width: 820px; }
.ab-faq h2 { margin-bottom: 8px; }
.ab-faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.ab-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.ab-faq summary::-webkit-details-marker { display: none; }
.ab-faq summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; transition: rotate .25s; }
.ab-faq details[open] summary::after { rotate: 45deg; }
.ab-faq p { margin: 0 0 16px; color: var(--muted); max-width: 70ch; }
/* server-rendered copy shown for a moment before the page script takes over */
.ssr { max-width: 960px; }
.ssr h1 { font-size: clamp(30px, 4vw, 48px); }
.ssr table { margin: 8px 0 24px; } .ssr h2 { margin-top: 28px; }
.ssr-links ul { columns: 3 220px; padding-left: 18px; }
.ssr-links a { color: var(--muted); }
