:root {
  --bg: #0a100e; --surface: #111917; --surface-2: #17211e; --line: #24322d;
  --text: #e9f1ec; --muted: #8fa39a; --accent: #b8f04a; --on-accent: #0c1512;
  --home: #34d3a6; --draw: #70827b; --away: #f4a63a;
  --win: #4cd68a; --loss: #f0625f; --warn: #f4a63a;
  --radius: 14px; --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f5f0; --surface: #ffffff; --surface-2: #eef2ea; --line: #d9e0d5;
  --text: #11211a; --muted: #5d6f66; --accent: #1d7a4a; --on-accent: #ffffff;
  --home: #12936d; --draw: #8b9a93; --away: #d9861a;
  --win: #15884f; --loss: #cf3d3a; --warn: #b96a06;
  --shadow: 0 10px 40px rgba(20, 40, 30, .16);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, select, input { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.loading, .empty { padding: 56px 0; text-align: center; color: var(--muted); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -.03em; }
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 8px 12px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); background: var(--surface-2); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 14px; font-weight: 650; cursor: pointer; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn.small { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 17px; }
.slip-btn .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 12px; text-align: center; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* hero */
.hero { padding: 44px 0 26px; display: grid; gap: 26px; grid-template-columns: 1.15fr .85fr; align-items: center; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede { color: var(--muted); font-size: 17px; max-width: 54ch; margin: 14px 0 20px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 30px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }

/* tip of the day */
.totd { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 62%); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 18px; padding: 20px; cursor: pointer; }
.totd .tag { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--accent); }
.totd .teams { font-size: 22px; font-weight: 800; margin: 8px 0 2px; letter-spacing: -.02em; }
.totd .big { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
.totd .big b { font-size: 40px; font-weight: 800; letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums; }

/* sections */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 30px 0 14px; }
.section-head h2 { font-size: 24px; font-weight: 800; }
.page-head { padding: 34px 0 6px; }
.page-head h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
.page-head p { color: var(--muted); max-width: 70ch; margin: 10px 0 0; }
.note { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 10px; padding: 12px 14px; margin: 16px 0; }
.note.warn { border-left-color: var(--warn); }

/* filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 13px; cursor: pointer; white-space: nowrap; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.field { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 11px; min-width: 0; }
input.field { width: 190px; }
.day-label { margin: 22px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

/* match cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--muted); transform: translateY(-1px); }
.card-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.card-top .lg { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teams-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 10px 0 12px; align-items: center; }
.team { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form { display: flex; gap: 3px; }
.form i { width: 16px; height: 16px; border-radius: 4px; font: 700 9.5px/16px ui-sans-serif, system-ui; text-align: center; color: #06120d; }
.form .W { background: var(--win); } .form .D { background: var(--draw); color: #fff; } .form .L { background: var(--loss); color: #fff; }
.bar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; gap: 2px; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.bar span { display: flex; align-items: center; justify-content: center; min-width: 30px; color: #06120d; }
.bar .h { background: var(--home); } .bar .d { background: var(--draw); color: #fff; } .bar .a { background: var(--away); }
.bar-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 3px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.pick { font-weight: 750; }
.pick small { color: var(--muted); font-weight: 600; }
.pips { display: inline-flex; gap: 2px; vertical-align: middle; margin-left: 6px; }
.pips i { width: 5px; height: 12px; border-radius: 2px; background: var(--line); }
.pips i.on { background: var(--accent); }
.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.tag { font-size: 11.5px; font-weight: 650; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tag.safe { background: color-mix(in srgb, var(--win) 18%, transparent); color: var(--win); }
.tag.value { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.add { border: 1px solid var(--line); background: transparent; border-radius: 8px; padding: 4px 9px; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.add:hover, .add.on { background: var(--accent); color: var(--on-accent); border-color: transparent; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: var(--surface-2); }
td.r, th.r { text-align: right; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 750; }
.badge.won { background: color-mix(in srgb, var(--win) 18%, transparent); color: var(--win); }
.badge.lost { background: color-mix(in srgb, var(--loss) 18%, transparent); color: var(--loss); }
.badge.pending { background: var(--surface-2); color: var(--muted); }

/* tiles / charts */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile h3 { font-size: 13px; color: var(--muted); font-weight: 650; letter-spacing: 0; }
.tile b { font-size: 28px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.meter { height: 6px; border-radius: 99px; background: var(--surface-2); margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel h3 { font-size: 16px; margin-bottom: 4px; }
.panel > p { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; }
.months { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.months div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; font-size: 10.5px; color: var(--muted); }
.months i { width: 100%; max-width: 34px; background: var(--home); border-radius: 5px 5px 0 0; }
.months b { font-size: 10.5px; font-weight: 700; color: var(--text); }
.hbar { display: grid; grid-template-columns: 150px 1fr 48px; gap: 10px; align-items: center; font-size: 13px; margin: 6px 0; }
.hbar div { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 3px; }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font-weight: 650; cursor: pointer; color: var(--muted); }
.tabs button.on { background: var(--text); color: var(--bg); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: s; }
.steps .panel::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 800; margin-bottom: 10px; }
.compare td:nth-child(n+2), .compare th:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.best { color: var(--win); font-weight: 750; }

/* detail dialog */
dialog.detail { border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 18px; padding: 0; width: min(880px, calc(100vw - 20px)); max-height: calc(100vh - 28px); box-shadow: var(--shadow); }
dialog.detail::backdrop { background: rgba(0, 0, 0, .6); }
.d-head { position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px 20px; display: flex; justify-content: space-between; gap: 12px; align-items: start; z-index: 2; }
.d-head h2 { font-size: 22px; font-weight: 800; }
.d-body { padding: 18px 20px 24px; display: grid; gap: 16px; }
.mk { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.mk button { display: flex; justify-content: space-between; gap: 8px; align-items: center; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 11px; cursor: pointer; }
.mk button:hover { border-color: var(--muted); }
.mk button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.mk small { display: block; color: var(--muted); font-size: 11.5px; }
.mk b { font-variant-numeric: tabular-nums; }
.heat { border-collapse: separate; border-spacing: 3px; width: auto; font-variant-numeric: tabular-nums; }
.heat td, .heat th { border: 0; padding: 0; width: 46px; height: 34px; text-align: center; font-size: 12px; border-radius: 6px; }
.heat th { color: var(--muted); font-size: 11px; letter-spacing: 0; text-transform: none; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px 14px; font-size: 14px; align-items: center; }
.vs .l { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; } .vs .c { color: var(--muted); font-size: 12px; text-align: center; } .vs .rr { font-weight: 700; font-variant-numeric: tabular-nums; }
.list { margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.list li { padding: 5px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 10px; }
.list li:last-child { border: 0; }

/* slip */
.slip { position: fixed; right: 16px; bottom: 16px; width: min(360px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 100px)); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); z-index: 30; padding: 16px; }
.slip h3 { font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.slip-item { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.slip-item b { display: block; }
.slip-total { display: grid; grid-template-columns: 1fr auto; gap: 4px; margin-top: 12px; font-size: 14px; }
.slip-total b { text-align: right; font-variant-numeric: tabular-nums; }
.x { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 6px; }

.foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 22px 0 40px; font-size: 13px; color: var(--muted); }
.foot strong { color: var(--text); }

@media (max-width: 820px) {
  .hero, .two { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .top-in { gap: 10px; }
  .brand span { display: none; }
  .grid { grid-template-columns: 1fr; }
  input.field { width: 100%; }
  .hbar { grid-template-columns: 110px 1fr 44px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* dropdown navigation */
.nav { overflow: visible; align-items: center; }
.dd { position: relative; }
.dd > summary { list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; white-space: nowrap; user-select: none; }
.dd > summary::-webkit-details-marker { display: none; }
.nav .dd > summary::after { content: "▾"; margin-left: 5px; font-size: 11px; opacity: .7; }
.dd > summary:hover, .dd[open] > summary { color: var(--text); }
.dd.on > summary { color: var(--text); background: var(--surface-2); }
.menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 40; }
.dd.right .menu { left: auto; right: 0; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 550; white-space: nowrap; border: 0; background: none; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu h4 { margin: 6px 10px 2px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.menu-cols { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 2px 8px; }
.nav a.premium { color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); margin-left: 6px; }
.nav a.premium.on, .nav a.premium:hover { background: var(--accent); color: var(--on-accent); }
.avatar { width: 38px; height: 38px; padding: 0 !important; border-radius: 50% !important; background: var(--accent); color: var(--on-accent) !important; font-weight: 800 !important; display: grid; place-items: center; }
.burger { display: none; }
a.chip { text-decoration: none; }
a.tile.link { text-decoration: none; display: block; transition: border-color .15s; }
a.tile.link:hover { border-color: var(--muted); }

/* account dialog */
dialog.auth { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 18px; padding: 22px; width: min(400px, calc(100vw - 24px)); box-shadow: var(--shadow); }
dialog.auth::backdrop { background: rgba(0, 0, 0, .6); }
#auth-form { display: grid; gap: 12px; }
#auth-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 650; color: var(--muted); }
#auth-form input { width: 100%; background: var(--bg); color: var(--text); font-weight: 400; }
#auth-form .tabs { justify-self: start; }
.auth-msg { margin: 0; padding: 9px 11px; border-radius: 9px; font-size: 13.5px; }
.auth-msg.err { background: color-mix(in srgb, var(--loss) 16%, transparent); color: var(--loss); }
.auth-msg.ok { background: color-mix(in srgb, var(--win) 16%, transparent); color: var(--win); }
.linkish { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; justify-self: start; padding: 0; }
.btn:disabled { opacity: .6; cursor: default; }

/* premium lock */
.lock { position: relative; margin-top: 18px; }
.lock-preview { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); filter: blur(5px); opacity: .55; min-height: 240px; pointer-events: none; }
.lock-card { position: absolute; inset: 0; margin: auto; height: fit-content; width: min(440px, 100%); text-align: center; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 18px; padding: 26px 22px; box-shadow: var(--shadow); }
.lock-card h2 { font-size: 24px; font-weight: 800; }

@media (max-width: 1320px) {
  .burger { display: block; }
  .brand span { display: none; }
  .nav { display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 40px; background: var(--bg); overflow-y: auto; z-index: 25; }
  .top-in { justify-content: space-between; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { display: flex; }
  .nav > a, .nav .dd > summary { padding: 12px; font-size: 16px; }
  .nav .menu { position: static; box-shadow: none; border: 0; background: var(--surface); margin: 2px 0 8px; }
  .menu-cols { grid-template-columns: 1fr 1fr; }
  .nav a.premium { margin: 8px 0 0; text-align: center; }
  .slip-btn { padding: 8px 10px; }
}

/* league pages */
.standings td, .standings th, .players td, .players th { padding: 9px 12px; }
.standings td:nth-child(2), .players td:nth-child(2) { white-space: normal; min-width: 150px; }
.table-wrap.flat { border: 0; border-radius: 0; background: none; }
.players td:first-child, .players th:first-child { padding-left: 0; }
.players td:last-child, .players th:last-child { padding-right: 0; }
.section-head[id], #league-scorers, #league-assists { scroll-margin-top: 76px; }
.tile.link p + p { margin-top: 0; }

/* blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 18px; }
.section-head + .post-grid { margin-top: 0; }
.post-card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; font-size: 13px; transition: border-color .15s; }
.post-card:hover { border-color: var(--muted); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; }
.post-card h3 { font-size: 19px; font-weight: 800; }
.post-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.post-card .tags { margin-top: auto; padding-top: 4px; }
.post { max-width: 720px; margin: 0 auto; padding-top: 30px; }
.post > a { text-decoration: none; font-weight: 600; font-size: 14px; }
.post h1 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; margin: 14px 0 8px; }
.post .cover { width: 100%; border-radius: var(--radius); margin: 14px 0 0; }
.prose { font-size: 17px; line-height: 1.7; margin-top: 22px; overflow-wrap: break-word; }
.prose h2 { font-size: 24px; font-weight: 800; margin: 34px 0 10px; }
.prose h3 { font-size: 19px; font-weight: 750; margin: 26px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); text-underline-offset: 3px; font-weight: 600; }
.prose img { max-width: 100%; border-radius: 10px; }
.prose blockquote { margin: 0 0 16px; padding: 4px 16px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.prose table { font-size: 15px; margin-bottom: 16px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

/* sponsor adverts */
.ad { position: relative; display: flex; align-items: center; gap: 14px; text-decoration: none; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--warn) 55%, var(--line)); border-radius: var(--radius); padding: 14px 16px; }
.ad:hover { border-style: solid; }
.ad-label { position: absolute; top: -9px; left: 12px; background: var(--bg); padding: 0 6px; font-size: 10.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); }
.ad-copy { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ad-copy strong { font-size: 15.5px; }
.ad-copy span { color: var(--muted); font-size: 13.5px; }
.ad img { max-height: 64px; max-width: 220px; border-radius: 8px; object-fit: contain; }
.ad .btn { white-space: nowrap; }
.ad-banner { margin-top: 18px; }
.ad-article { margin-top: 30px; }
.ad-feed { flex-direction: column; align-items: flex-start; justify-content: center; }
.ad-feed img { max-width: 100%; max-height: 110px; }
.ad.house { border-color: var(--line); }
.ad.house .ad-label { color: var(--muted); }
@media (max-width: 560px) { .ad { flex-wrap: wrap; } .ad img { max-width: 100%; } }

/* footer: social and support links */
.foot-links { display: flex; flex-wrap: wrap; gap: 18px 48px; padding-bottom: 20px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.foot-links h4 { margin: 0 0 10px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; }
.social { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 650; font-size: 14px; }
a.social:hover { border-color: var(--accent); color: var(--accent); }
.social.off { color: var(--muted); border-style: dashed; cursor: default; }
.social small { display: block; font-size: 11px; font-weight: 500; }

/* logo */
.brand { gap: 10px; color: var(--text); }
.brand-mark { flex: none; }
.brand-word { display: block; width: auto; }
@media (max-width: 560px) { .brand-word { display: none; } }
.top .wrap { max-width: 1360px; }
.top-actions .btn, .nav > a { white-space: nowrap; }
.top-actions { flex: none; }

/* footer: legal links */
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.foot-nav a { color: var(--text); font-weight: 600; text-decoration: none; }
.foot-nav a:hover { color: var(--accent); }
.foot-nav span { border: 1px solid var(--line); border-radius: 99px; padding: 1px 9px; font-size: 12px; font-weight: 700; }

#auth-form label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
#auth-form label.check input { width: auto; }

/* favourite teams */
.team-picker { display: grid; gap: 10px; }
.team-picker input { width: 100%; max-width: 360px; }
.team-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.team-chip { display: inline-flex; align-items: center; gap: 6px; cursor: default; padding-right: 6px; }
.team-chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; opacity: .7; }
.team-chip button:hover { opacity: 1; }
.pick-teams { display: grid; gap: 6px; font-size: 13px; font-weight: 650; color: var(--muted); }
.pick-teams small { font-weight: 400; }
.pick-teams .team-picker input { max-width: none; background: var(--bg); color: var(--text); font-weight: 400; }
.follow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---------- home page ---------- */
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("assets/fonts/barlow-condensed-800-italic.woff2") format("woff2"); }
html { overflow-x: clip; }
.btn.outline { background: transparent; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.btn.outline:hover { border-color: var(--accent); }
.btn.big { padding: 14px 24px; font-size: 16px; border-radius: 12px; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
#account { display: inline-flex; gap: 8px; align-items: center; }
.linkish.strong { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 14px; }

.home-hero { position: relative; margin-inline: calc(50% - 50vw); color: #f3f7f2; background: linear-gradient(180deg, #060d0a, #0a1611 55%, #07100c); border-bottom: 1px solid #1c2a24; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 90% at 82% -10%, rgba(184, 240, 74, .22), transparent 62%), radial-gradient(40% 70% at 55% 120%, rgba(52, 211, 166, .14), transparent 60%); }
.hero-bg::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, .55) 1px, transparent 1.6px); background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(48% 70% at 80% 0%, #000, transparent 75%); mask-image: radial-gradient(48% 70% at 80% 0%, #000, transparent 75%); opacity: .5; }
.hero-bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: repeating-linear-gradient(90deg, rgba(184, 240, 74, .05) 0 90px, transparent 90px 180px);
  -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000); }
.hero-bg i { position: absolute; top: -20%; height: 150%; width: 46px; transform: skewX(-24deg); background: linear-gradient(180deg, transparent, #b8f04a 45%, transparent); opacity: .5; filter: blur(.3px); }
.hero-bg i:nth-child(1) { right: 9%; width: 70px; opacity: .55; }
.hero-bg i:nth-child(2) { right: 15%; width: 14px; opacity: .8; }
.hero-bg i:nth-child(3) { right: 40%; width: 26px; opacity: .22; }
.hero-bg i:nth-child(4) { right: 2%; width: 20px; opacity: .35; }
.hero-in { max-width: 1360px; margin: 0 auto; padding: 44px 24px 48px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; min-height: 430px; }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 18px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #dfe9e2; }
.hero-tags span + span::before { content: "/"; margin-right: 14px; color: #6f8279; }
.hero-tags span:first-child { background: #b8f04a; color: #0c1512; padding: 6px 14px; border-radius: 99px; }
.home-hero h1 { font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif; font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(46px, 6.6vw, 96px); line-height: .9; letter-spacing: -.005em; margin: 0; }
.home-hero h1 em { display: block; width: fit-content; color: #b8f04a; font-size: 1.14em; transform: skewX(-4deg) rotate(-2deg); transform-origin: left; text-shadow: 0 6px 30px rgba(184, 240, 74, .35); margin: .04em 0 .02em; }
.hero-lede { font-size: clamp(16px, 1.5vw, 20px); color: #d6e2da; margin: 20px 0 24px; max-width: 56ch; }
.home-hero .btn.outline { color: #f3f7f2; }
.home-hero .btn.primary { background: #b8f04a; color: #0c1512; }
.hero-art { position: relative; min-height: 340px; }
.hero-photo { position: absolute; inset: -44px -24px -48px 0; width: calc(100% + 24px); height: calc(100% + 92px); object-fit: cover; object-position: center top; }
.hero-card { position: absolute; left: 6%; right: 16%; top: 14px; background: linear-gradient(160deg, rgba(27, 43, 35, .96), rgba(13, 22, 18, .96)); border: 1px solid rgba(184, 240, 74, .45); border-radius: 20px; padding: 20px 22px; box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 6px rgba(184, 240, 74, .06); transform: rotate(-2.5deg); cursor: pointer; transition: transform .2s; }
.hero-card:hover { transform: rotate(-1deg) translateY(-3px); }
.hero-card.back { left: 22%; right: 0; top: 150px; transform: rotate(5deg); opacity: .6; cursor: default; padding: 16px 18px 70px; border-color: #2b3d35; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.hc-tag { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #b8f04a; }
.hc-teams { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; font-size: 19px; }
.hc-teams b { font-weight: 800; line-height: 1.1; overflow-wrap: break-word; }
.hc-teams i { color: #8fa39a; font-style: normal; font-size: 14px; }
.hc-big { display: flex; align-items: center; gap: 14px; margin: 10px 0 14px; color: #c6d3cb; font-size: 13.5px; line-height: 1.35; }
.hc-big > b { font-size: 52px; font-weight: 800; letter-spacing: -.04em; color: #b8f04a; font-variant-numeric: tabular-nums; line-height: 1; }
.hc-big strong { color: #f3f7f2; font-size: 16px; }
.hero-slogan { position: absolute; right: 0; bottom: -6px; margin: 0; font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif; font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.9vw, 42px); line-height: .95; text-align: right; transform: rotate(-7deg); text-shadow: 0 4px 18px rgba(0, 0, 0, .6); }
.hero-slogan em { color: #b8f04a; border-bottom: 5px solid #b8f04a; }

.crest { display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-weight: 800; letter-spacing: -.02em; color: #fff; background: linear-gradient(150deg, hsl(var(--h) 62% 44%), hsl(var(--h) 70% 26%)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22), 0 2px 6px rgba(0, 0, 0, .3); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }

.feature-strip { margin-inline: calc(50% - 50vw); padding: 0 max(24px, calc(50vw - 680px + 24px)); display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); background: var(--surface); }
.feature-strip > * { display: flex; align-items: center; gap: 14px; padding: 22px 18px; color: var(--text); text-decoration: none; min-width: 0; }
.feature-strip > * + * { border-left: 1px solid var(--line); }
.feature-strip svg { color: var(--accent); flex: none; }
.feature-strip p { margin: 0; font-size: 13.5px; color: var(--muted); }
.feature-strip strong { display: block; font-size: 15.5px; color: var(--text); }

.featured-head h2 { display: flex; align-items: center; gap: 16px; }
.live-dot { font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }

@media (max-width: 1100px) {
  .feature-strip { grid-template-columns: repeat(3, 1fr); }
  .feature-strip > *:nth-child(4) { border-left: 0; }
  .feature-strip > *:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; padding: 30px 16px 34px; min-height: 0; }
  .hero-art { min-height: 300px; }
  .hero-card { left: 0; right: 8%; }
  .hero-photo { position: static; width: 100%; height: 260px; border-radius: 16px; }
  .feature-strip { grid-template-columns: 1fr 1fr; padding: 0 16px; }
  .feature-strip > * { padding: 16px 10px; border-left: 0 !important; border-top: 1px solid var(--line); }
  .feature-strip > *:nth-child(-n+2) { border-top: 0; }
  .feature-strip > *:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .feature-strip > *:last-child { grid-column: 1 / -1; border-left: 0 !important; }
}
@media (max-width: 700px) { .btn-login { display: none; } .hc-big > b { font-size: 42px; } .hero-slogan { bottom: -14px; } }
@media (max-width: 700px) { .hc-teams { font-size: 16px; gap: 8px; } .hc-teams .crest { width: 34px !important; height: 34px !important; font-size: 12px !important; } }
/* hero picture: fades into the banner on its left edge so the headline stays readable */
.hero-photo { -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }
@media (max-width: 980px) { .hero-photo { -webkit-mask-image: none; mask-image: none; } }

/* hero, second version: brand lockup headline and a picture on the right */
.home-hero h1 { display: grid; justify-items: start; font-size: inherit; line-height: 1; }
.hero-kicker { font-size: clamp(20px, 2.2vw, 32px); letter-spacing: .16em; color: #b8f04a; }
.hero-brand { font-size: clamp(64px, 9.4vw, 138px); line-height: .86; letter-spacing: -.01em; margin: 6px 0 14px; text-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.home-hero h1 .hero-brand em { display: inline; font-size: 1em; transform: none; margin: 0; text-shadow: 0 6px 34px rgba(184, 240, 74, .35); }
.hero-sub { display: flex; align-items: center; gap: 18px; font-size: clamp(16px, 1.9vw, 28px); letter-spacing: .42em; padding-left: .2em; }
.hero-sub::before, .hero-sub::after { content: ""; width: clamp(34px, 6vw, 88px); height: 5px; border-radius: 3px; background: #b8f04a; transform: skewX(-20deg); }
.home-hero .btn.big { text-transform: uppercase; letter-spacing: .02em; font-weight: 750; }
.has-photo .hero-in { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.has-photo .hero-bg i { display: none; }
.hero-photo { -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 16%, #000 80%, transparent); object-position: center; }
.has-photo .hero-slogan { right: 6px; bottom: 6px; }
.nav > a.on, .nav .dd.on > summary { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
@media (max-width: 980px) {
  .has-photo .hero-in { grid-template-columns: 1fr; }
  .has-photo .hero-art { min-height: 0; }
  .hero-photo { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); height: auto; aspect-ratio: 830 / 465; }
  .has-photo .hero-slogan { bottom: 0; }
  .hero-sub { letter-spacing: .28em; gap: 10px; }
}
/* wide screens: the picture fills the banner's right side edge to edge */
.hero-sub { white-space: nowrap; letter-spacing: .3em; }
@media (min-width: 981px) {
  .has-photo .hero-art { position: static; min-height: 0; }
  .has-photo .hero-photo { position: absolute; inset: 0 0 0 auto; width: 62%; height: 100%; z-index: -1; object-position: 30% center;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%); mask-image: linear-gradient(90deg, transparent, #000 28%); }
  .has-photo .hero-slogan { right: max(24px, calc(50vw - 660px)); bottom: 22px; }
  .has-photo .hero-in { min-height: 470px; }
}

/* club crests, flags and competition logos */
.crest-img, .league-logo { object-fit: contain; flex: none; vertical-align: middle; }
.team .crest-img, .team .crest { margin-right: 8px; vertical-align: -5px; }
.team .crest { display: inline-grid; }
.lg .league-logo { margin-right: 6px; vertical-align: -3px; }
.with-crest { display: inline-flex; align-items: center; gap: 8px; }
h1.with-crest { display: flex; gap: 14px; }
.vs-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* premium plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 12px; margin-top: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px 18px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 40px color-mix(in srgb, var(--accent) 12%, transparent); }
.plan h3 { font-size: 17px; }
.plan-badge { position: absolute; top: -12px; left: 16px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.plan-price b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--muted); }
.plan-note { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; min-height: 40px; }
.plan .btn { margin-top: auto; text-align: center; }
.premium-head h1 { font-size: clamp(30px, 4.4vw, 48px); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.feature { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.feature-icon { font-size: 24px; line-height: 1.2; }
.feature p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.steps-list { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.units { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 6px; }
.units i { width: 14px; height: 8px; border-radius: 3px; background: var(--line); }
.units i.on { background: var(--accent); }
.panel p a, .page-head p a { color: var(--accent); }

/* payment window */
.pay-list { display: grid; gap: 10px; margin-top: 10px; }
.pay-method { display: block; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text); text-decoration: none; transition: border-color .15s; }
a.pay-method, .pay-method > summary { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; }
.pay-method > summary { list-style: none; }
.pay-method > summary::-webkit-details-marker { display: none; }
.pay-method:hover, .pay-method[open] { border-color: var(--accent); }
.pay-method span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.pay-method small { color: var(--muted); font-size: 13px; }
.pay-method b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pay-icon { font-size: 26px; line-height: 1; }
.pay-crypto { padding: 0 16px 16px; display: grid; gap: 10px; font-size: 14px; }
.pay-crypto p { margin: 0; }
.pay-address { display: flex; gap: 10px; align-items: center; background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; }
.pay-address code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13.5px; }

.pay-country { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.pay-country select { flex: 1; min-width: 180px; max-width: 320px; background: var(--bg); color: var(--text); font-weight: 400; }
#auth-form select { width: 100%; background: var(--bg); color: var(--text); font-weight: 400; }

button.pay-method { display: flex; align-items: center; gap: 14px; padding: 14px 16px; width: 100%; text-align: left; cursor: pointer; font: inherit; }
