:root {
  --bg: #ffffff;
  --fg: #14181f;
  --muted: #5c6672;
  --accent: #0ea571;      /* emerald */
  --accent2: #1769ff;
  --gold: #e0a200;
  --border: #e6e9ee;
  --card: #f6f8fa;
  --surface: #ffffff;     /* control / input background (themable) */
  --maxw: 900px;
}

/* ---------- Dark theme (the default — set via <html data-theme="dark">) ---------- */
:root[data-theme="dark"] {
  --bg: #0d1117;
  --fg: #e8edf3;
  --muted: #9aa6b2;
  --accent: #1fcb8e;
  --accent2: #5a93ff;
  --gold: #f0b62a;
  --border: #232c38;
  --card: #161d27;
  --surface: #1b232e;
}
[data-theme="dark"] .site-header { background: rgba(13, 17, 23, 0.92) !important; }
[data-theme="dark"] tr.adv { background: #102a1f; }
[data-theme="dark"] .sample-banner { background: #2a2410; border-color: #5a4c1a; color: #e9cf85; }
[data-theme="dark"] img.shot, [data-theme="dark"] .fc-score { box-shadow: none; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg); background: var(--bg); line-height: 1.6; font-size: 17px;
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(6px); z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; flex-wrap: nowrap; gap: 8px; }
.brand { flex-shrink: 0; }
.header-right { display: flex; align-items: center; gap: 6px; min-width: 0; }
.header-right > .nav, .header-right > .menu-wrap, .header-right > .theme-toggle, .header-right > .hdr-share { flex-shrink: 0; }
.auth-slot { min-width: 0; }
.auth-chip { min-width: 0; }
.auth-chip .chip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-chip .chip-flag, .auth-chip .chip-cog { flex-shrink: 0; }
.brand { font-weight: 800; font-size: 1.2rem; color: var(--fg); text-decoration: none; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 8px; }
.brand-logo { display: inline-flex; color: var(--accent); filter: drop-shadow(0 0 6px rgba(31,203,142,0.45)); }
.brand-logo svg { width: 26px; height: 26px; }
.theme-toggle { background: none; border: 0; padding: 6px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; border-radius: 8px; }
.theme-toggle:hover { color: var(--fg); background: var(--card); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: inline-flex; }
[data-theme="dark"] .theme-toggle .ic-sun { display: inline-flex; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
.nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 0.92rem; }
.nav a:hover { color: var(--accent); }

/* Typography */
h1 { font-size: 2rem; line-height: 1.15; letter-spacing: -0.02em; margin: 0.6em 0 0.2em; }
h2 { font-size: 1.4rem; margin: 1.4em 0 0.4em; }
p { margin: 0 0 1em; }
a { color: var(--accent2); }

/* Hero / home */
.hero { padding: 2em 0 0.6em; }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 620px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 1.6em 0 2.4em; }
.tool-card { display: block; padding: 18px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--fg); background: var(--card); transition: transform .08s ease, box-shadow .12s ease; }
.tool-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.07); }
.tool-card .ico { font-size: 1.6rem; }
.tool-card h3 { margin: 8px 0 4px; font-size: 1.08rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Home banner cards ---------- */
.home-h2 { font-size: 1.15rem; margin: 1.4em 0 0.2em; letter-spacing: -0.01em; }
.cardb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 16px; margin: 1em 0 2.6em; }
.cardb {
  display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; background: var(--surface); text-decoration: none; color: var(--fg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: transform .1s ease, box-shadow .15s ease;
}
.cardb:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.12); }
.cardb:active { transform: translateY(-1px) scale(0.995); }
.cardb-top {
  height: 92px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c1), var(--c2)); position: relative;
}
.cardb-top::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% -20%, rgba(255,255,255,0.25), transparent 60%); }
.cardb-ico { color: #fff; position: relative; z-index: 1; display: inline-flex; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.28)); }
.cardb-ico svg { width: 36px; height: 36px; }
.cardb-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.cardb-body h3 { margin: 0 0 4px; font-size: 1.12rem; letter-spacing: -0.01em; }
.cardb-body p { margin: 0 0 12px; color: var(--muted); font-size: 0.9rem; flex: 1; }
.cardb-go { font-weight: 800; font-size: 0.9rem; color: var(--accent); }
.cardb:hover .cardb-go { text-decoration: underline; }

/* Banner */
.sample-banner { background: #fff6e0; border: 1px solid #f0d488; color: #6b5200; padding: 10px 14px; border-radius: 10px; font-size: 0.88rem; margin: 14px 0; }

/* Controls */
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 1em 0 1.4em; }
/* Prediction-page stage tabs (Group Stage / Round of 32 / …) */
.fc-stages { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.fc-stage { font: inherit; font-weight: 700; font-size: 0.88rem; padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); cursor: pointer; transition: background .12s, border-color .12s; }
.fc-stage:hover { border-color: var(--accent); }
.fc-stage.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* two-control variant (predictor): keep both filters on one row on mobile */
.controls-duo { flex-wrap: nowrap; }
.controls-duo label { display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; }
.controls-duo label:last-of-type { flex: 1; }
.controls-duo select { min-width: 0; }
.controls-duo input, .controls-duo label:last-of-type select { flex: 1; width: 100%; min-width: 0; }
label { font-size: 0.9rem; color: var(--muted); }
select, input[type=text], input[type=number] {
  font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--fg);
}
button {
  font: inherit; font-weight: 600; cursor: pointer; padding: 9px 16px; border: 0; border-radius: 8px;
  background: var(--accent); color: #fff;
}
button.secondary { background: var(--card); color: var(--fg); border: 1px solid var(--border); }
button:hover { filter: brightness(1.05); }
.hint { color: var(--muted); font-size: 0.85rem; }

/* Match list */
.daygroup { margin: 1.4em 0; }
.dayhead { font-size: 0.95rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 12px 8px; border-bottom: 1px solid var(--border); }
.match .home { text-align: right; font-weight: 600; }
.match .away { text-align: left; font-weight: 600; }
.match .mid { text-align: center; color: var(--muted); font-size: 0.82rem; min-width: 120px; }
.match .mid .time { display: block; font-weight: 700; color: var(--fg); }
.match .meta { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 0.78rem; }
.badge { display: inline-block; font-size: 0.72rem; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 1px 8px; color: var(--muted); }

/* Tables (standings / sweepstake) */
table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { background: var(--card); font-weight: 700; }
td.num, th.num { text-align: center; font-variant-numeric: tabular-nums; }
tr.adv { background: #e9f7f0; }

/* Group simulator */
.group-block { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin: 14px 0; }
.score-in { width: 46px; text-align: center; }

/* Bracket */
.bracket { display: flex; gap: 22px; overflow-x: auto; padding: 10px 2px 20px; }
.round { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; min-width: 180px; }
.round h4 { margin: 0 0 4px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.tie { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.tie .pick { display: block; width: 100%; text-align: left; background: var(--card); color: var(--fg); border: 0; border-bottom: 1px solid var(--border); padding: 8px 10px; font-weight: 500; border-radius: 0; }
.tie .pick:last-child { border-bottom: 0; }
.tie .pick.sel { background: var(--accent); color: #fff; font-weight: 700; }
.champion { font-weight: 800; color: var(--gold); }

/* Dream XI pitch */
.pitch {
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, transparent 38px, rgba(255,255,255,0.16) 39px, rgba(255,255,255,0.16) 41px, transparent 42px),
    linear-gradient(transparent calc(50% - 1px), rgba(255,255,255,0.16) calc(50% - 1px), rgba(255,255,255,0.16) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(160deg, #13b27c, #0a6f48);
  border-radius: 16px; aspect-ratio: 3 / 4; max-width: 420px; margin: 1em auto; padding: 22px 12px;
  overflow: hidden; display: flex; flex-direction: column; justify-content: space-evenly;
  box-shadow: inset 0 0 70px rgba(0,0,0,0.20), 0 10px 30px rgba(0,0,0,0.28);
}
.pitch::before { content: ""; position: absolute; inset: 12px; border: 2px solid rgba(255,255,255,0.28); border-radius: 10px; pointer-events: none; }
.pitch .row { position: relative; display: flex; justify-content: space-around; z-index: 1; }
.pitch .slot { width: 84px; text-align: center; }
.pitch .slot .pos { color: rgba(255,255,255,0.92); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 4px; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.pitch .slot .slot-btn {
  width: 100%; text-align: center; font-size: 0.72rem; line-height: 1.1; padding: 7px 4px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.55); background: #ffffff; color: #0b0d12;
  font-weight: 600; white-space: normal; overflow: hidden; min-height: 34px; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.20); transition: transform .12s ease, box-shadow .12s ease;
}
.pitch .slot .slot-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(0,0,0,0.30); }
.pitch .slot .slot-btn.filled { background: #fffdf5; border-color: var(--gold); font-weight: 700; color: #0b0d12; }
.pitch .slot .slot-btn.active { outline: 3px solid var(--gold); background: #fffdf5; color: #0b0d12; }
.pitch .slot .xi-flag { width: 22px; height: 15px; display: block; margin: 0 auto 3px; border-radius: 2px; object-fit: cover; box-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.xi-titlebar { text-align: center; font-weight: 800; font-size: 1.18rem; margin: 6px 0 0; letter-spacing: -0.01em; }
.xi-card { max-width: 400px; }
.xi-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }

/* Predictor */
.predictor-help {
  background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 10px 14px; margin: 4px 0 14px; font-size: 0.9rem; color: var(--fg);
}
.predictor-help b { color: var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg-btn { background: var(--card); color: var(--fg); border: 0; border-radius: 0; padding: 8px 14px; font-size: 0.88rem; }
.seg-btn.active { background: var(--accent); color: #fff; }
.summary-panel { display: grid; grid-template-columns: repeat(4, auto) 1fr; gap: 10px 18px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin: 1em 0; }
.summary-panel .stat { text-align: center; }
.summary-panel .stat-num { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.summary-panel .stat-lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-top: 3px; }
.summary-panel .badges { text-align: left; display: flex; flex-wrap: wrap; gap: 6px; }
.badge-pill { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px; font-size: 0.8rem; font-weight: 600; }
.summary-panel .stat-note { grid-column: 1 / -1; color: var(--muted); font-size: 0.8rem; border-top: 1px solid var(--border); padding-top: 8px; }
.pmatch { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 14px; padding: 10px 6px; border-bottom: 1px solid var(--border); }
.pteams { display: flex; align-items: center; gap: 8px; }
.pteams .home { font-weight: 600; text-align: right; flex: 1; }
.pteams .away { font-weight: 600; flex: 1; }
.pick-row { display: flex; gap: 6px; justify-content: flex-end; }
.pick-row.score { align-items: center; gap: 6px; }
.pick-btn { background: var(--card); color: var(--fg); border: 1px solid var(--border); border-radius: 8px; padding: 6px 14px; font-weight: 700; min-width: 40px; }
.pick-btn.sel { background: var(--accent); color: #fff; border-color: var(--accent); }
.anno-wrap { grid-column: 1 / -1; text-align: right; min-height: 0; }
.anno { font-size: 0.82rem; font-weight: 700; }
.anno.hit { color: var(--accent); }
.anno.miss { color: #c0392b; }

@media (max-width: 600px) {
  .summary-panel { grid-template-columns: repeat(2, 1fr); }
  .summary-panel .badges, .summary-panel .stat-note { grid-column: 1 / -1; }
}

/* ---------- Swipe-deck predictor ---------- */
.deck-wrap { margin: 8px 0 18px; }
.deck-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.deck-count { font-size: 0.82rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.deck-streak { font-size: 0.82rem; font-weight: 800; color: #9a5b00; background: #fff3e0; border: 1px solid #f3d199; border-radius: 20px; padding: 2px 9px; }
[data-theme="dark"] .deck-streak { background: #2e2410; color: #f0b62a; border-color: #5a4c1a; }
.deck-bar { flex: 1; height: 8px; background: var(--border); border-radius: 6px; overflow: hidden; }
.deck-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width .3s ease; }

.deck { position: relative; height: 430px; max-width: 460px; margin: 0 auto; }
.swipe-card {
  position: absolute; inset: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; box-shadow: 0 12px 34px rgba(0,0,0,0.12); padding: 18px;
  display: flex; flex-direction: column; transform-origin: center; touch-action: none; cursor: grab;
  transition: transform .25s ease, opacity .25s ease; user-select: none; overflow: hidden;
}
.swipe-card.dragging { transition: none; cursor: grabbing; }
.sc-top { display: flex; justify-content: center; gap: 8px; margin: -4px 0 8px; }
.sc-bot { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--accent); background: rgba(31,203,142,0.10); border: 1px solid rgba(31,203,142,0.45); border-radius: 20px; padding: 6px 15px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.28); touch-action: manipulation; transition: background .12s, border-color .12s, transform .08s; }
.sc-bot:hover { background: rgba(31,203,142,0.2); border-color: var(--accent); }
.sc-bot:active { transform: scale(0.95); }
.sc-bot-ic { flex: 0 0 auto; }
.sc-undo { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 6px 15px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.28); touch-action: manipulation; transition: color .12s, border-color .12s, transform .08s; }
.sc-undo:hover { color: var(--fg); border-color: var(--accent); }
.sc-undo:active { transform: scale(0.95); }
.sc-undo[disabled] { opacity: 0.38; cursor: default; pointer-events: none; box-shadow: none; }
.sc-undo-ic { flex: 0 0 auto; }
.sc-meta { display: flex; align-items: center; justify-content: space-between; }
.sc-when { font-size: 0.8rem; color: var(--muted); }
.sc-ko { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; font-size: 0.92rem; color: var(--accent); margin: 4px 0 0; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.sc-ko-ic { flex: 0 0 auto; }
.sc-ko.locked { color: #c0392b; }
.ko-note { background: linear-gradient(180deg, rgba(14,165,113,0.12), rgba(14,165,113,0.02)); border: 1px solid rgba(14,165,113,0.32); border-radius: 12px; padding: 10px 14px; margin: 12px 0; font-size: 0.92rem; }
.ko-note-ic { vertical-align: -3px; color: var(--accent); }

/* Bigger predictor card on desktop */
@media (min-width: 720px) {
  .deck { max-width: 560px; height: 500px; }
  .swipe-card { padding: 26px; border-radius: 26px; }
  .sc-team .flag { width: 130px; height: 98px; }
  .sc-name { font-size: 1.55rem; }
  .sc-side { font-size: 0.72rem; }
  .sc-vs { width: 54px; height: 54px; font-size: 1rem; }
  .sc-ko { font-size: 1.05rem; }
  .sc-foot { font-size: 0.85rem; }
  .deck-actions .da { width: 66px; height: 66px; font-size: 1.62rem; }
  .deck-actions .da.draw { width: 58px; height: 58px; }
}
.sc-body { flex: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.sc-team { text-align: center; min-width: 0; }
.sc-team .flag { display: block; width: 104px; height: 78px; object-fit: cover; border-radius: 10px; margin: 0 auto 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.18); background: var(--card); }
.sc-team .flag-unknown { font-size: 64px; box-shadow: none; line-height: 78px; }
.sc-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.sc-side { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); margin-top: 4px; }
.sc-vs { width: 42px; height: 42px; border-radius: 50%; background: var(--fg); color: var(--bg); font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.sc-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 0.74rem; font-weight: 700; }
.sc-foot .sc-h { color: var(--accent); } .sc-foot .sc-d { color: var(--gold); } .sc-foot .sc-a { color: var(--accent2); }
/* knockout-only clarifier: your pick is the 90+ET result, not the shootout */
.sc-koinfo { margin: 10px 0 0; font-size: 0.72rem; line-height: 1.35; text-align: center; color: var(--muted);
  background: rgba(240,182,42,0.08); border: 1px solid rgba(240,182,42,0.30); border-radius: 9px; padding: 7px 10px; }
.sc-koinfo b { color: var(--gold); font-weight: 800; }
/* desktop: footer hints double as clickable pick buttons */
@media (min-width: 720px) {
  .sc-foot .sc-hint.sc-pick { cursor: pointer; padding: 5px 10px; margin: -5px -2px; border-radius: 9px; border: 1px solid transparent; transition: background .12s ease, border-color .12s ease, transform .08s ease; user-select: none; }
  .sc-foot .sc-hint.sc-pick:hover { background: rgba(255,255,255,0.06); border-color: currentColor; }
  .sc-foot .sc-hint.sc-pick:active { transform: scale(0.95); }
}

.stamp { position: absolute; top: 26px; padding: 8px 16px; font-size: 1.5rem; font-weight: 900; line-height: 1.05;
  border: 4px solid; border-radius: 12px; text-align: center; opacity: 0; pointer-events: none; text-transform: uppercase; }
.stamp-h { left: 20px; transform: rotate(-14deg); color: var(--accent); border-color: var(--accent); }
.stamp-a { right: 20px; transform: rotate(14deg); color: var(--accent2); border-color: var(--accent2); }
.stamp-d { left: 50%; margin-left: -54px; transform: rotate(-6deg); color: var(--gold); border-color: var(--gold); }
.stamp-sub { display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em; opacity: 0.85; }

.done-card, .empty-card { align-items: center; justify-content: center; text-align: center; gap: 4px; cursor: default; }
.done-card .done-emoji, .empty-card .done-emoji { font-size: 3rem; }
.done-card h3, .empty-card h3 { margin: 6px 0; font-size: 1.4rem; }
.done-card p, .empty-card p { color: var(--muted); max-width: 300px; }
#country { min-width: 150px; }
.done-card .btn-primary { margin-top: 8px; } .done-card .btn-ghost { margin-top: 8px; }

.deck-actions { display: flex; justify-content: center; gap: 18px; margin: 18px 0 6px; }
.deck-actions .da { width: 60px; height: 60px; padding: 0; border-radius: 50%; background: var(--surface);
  border: 2px solid var(--border); color: var(--fg); font-size: 1.5rem; font-weight: 800; position: relative; line-height: 1; }
.deck-actions .da span { position: absolute; left: 50%; transform: translateX(-50%); bottom: -20px; font-size: 0.66rem; font-weight: 700; color: var(--muted); }
.deck-actions .da.home { color: var(--accent); border-color: var(--accent); }
.deck-actions .da.draw { color: var(--gold); border-color: var(--gold); font-size: 1.3rem; width: 52px; height: 52px; }
.deck-actions .da.away { color: var(--accent2); border-color: var(--accent2); }
.deck-actions .da.undo { color: var(--muted); width: 46px; height: 46px; font-size: 1.1rem; }
.deck-actions .da:active { transform: scale(0.92); }
.deck-actions .da:disabled { opacity: 0.4; }
.deck-actions.is-done .da[data-act] { display: none; }
.deck-hint { text-align: center; margin: 22px 0 0; }

/* Forecast (predictions) — card look shared with the swipe predictor */
.fcard { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 14px 16px; margin: 12px 0; box-shadow: 0 4px 14px rgba(0,0,0,0.05); }
.fc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fc-when { font-size: 0.8rem; color: var(--muted); }
.fc-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 12px; }
.fc-team { text-align: center; min-width: 0; }
.fc-team .flag { display: block; width: 66px; height: 50px; object-fit: cover; border-radius: 8px; margin: 0 auto 8px; box-shadow: 0 1px 6px rgba(0,0,0,0.18); background: var(--card); }
.fc-team .flag-unknown { font-size: 40px; box-shadow: none; line-height: 50px; }
.fc-name { font-weight: 800; font-size: 1.02rem; line-height: 1.12; letter-spacing: -0.01em; }
.fc-mid { text-align: center; }
.fc-score { display: inline-block; font-weight: 800; font-size: 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 3px 12px; font-variant-numeric: tabular-nums; }
.fc-scorelbl { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 5px; }
.fc-verdict { font-size: 0.92rem; }
.fc-verdict .vk { color: var(--muted); }
.fc-verdict .vp { color: var(--accent); font-weight: 800; }
.fc-verdict .vnote { color: var(--muted); font-size: 0.8rem; font-style: italic; }
.fcard.is-hit { border-left: 4px solid var(--accent); }
.fcard.is-miss { border-left: 4px solid #c0392b; }
.fc-when.ftlbl { font-weight: 700; color: var(--fg); }
.fc-ft { margin-left: 8px; font-weight: 800; border-radius: 20px; padding: 2px 9px; font-size: 0.82rem; }
.fc-ft .fc-aet { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.03em; opacity: 0.7; }
.fc-pens { margin-top: 5px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.sch-tbd { color: var(--muted); font-weight: 700; font-style: italic; opacity: 0.85; }
.fc-ft.hit { background: #e9f7f0; color: var(--accent); border: 1px solid #b9e6d3; }
.fc-ft.miss { background: #fdecea; color: #c0392b; border: 1px solid #f3c4be; }
[data-theme="dark"] .fc-ft.hit { background: #14241d; border-color: #1f5440; }
[data-theme="dark"] .fc-ft.miss { background: #2a1614; border-color: #5a2a24; }

/* Model rolling-record banner (predictions) */
.model-record { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; border-radius: 12px; padding: 12px 16px; margin: 4px 0 8px; border: 1px solid var(--border); }
.model-record.live { background: linear-gradient(180deg, rgba(14,165,113,0.10), rgba(14,165,113,0)); }
.model-record.empty { background: var(--card); color: var(--muted); font-size: 0.9rem; }
.model-record .mr-lead { font-weight: 800; }
.model-record .mr-stat b { font-size: 1.15rem; font-weight: 800; }
.model-record .mr-hint { font-size: 0.85rem; }

/* Schedule — played matches */
.match.played .mid { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ft-score { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.ft-badge { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important; font-weight: 800; }
.match .home.win .tt-name, .match .away.win .tt-name { font-weight: 800; }
.match .home.win::after { content: " ▸"; color: var(--accent); }
.match .away.win::before { content: "◂ "; color: var(--accent); }

/* Inline flags shared across schedule / group simulator / sweepstake / wallchart */
.flag-sm { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; vertical-align: -3px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); background: var(--card); flex: 0 0 auto; }
.team-tag { display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; }
.rk { color: var(--muted); font-weight: 700; margin-right: 2px; }
.team-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 3px 11px 3px 6px; margin: 0 5px 5px 0; font-size: 0.85rem; font-weight: 600; }
.chip-cell { line-height: 2.2; }
.bar { display: flex; height: 26px; border-radius: 6px; overflow: hidden; font-size: 0.72rem; font-weight: 700; color: #fff; }
.bar span { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; }
.bar .seg-h { background: var(--accent); }
.bar .seg-d { background: #9aa3ad; }
.bar .seg-a { background: var(--accent2); }
.bar-key { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 0.74rem; color: var(--muted); }
.bar-key span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.bar-key span:nth-child(2) { flex: 0 0 auto; }
.bar-key .dot { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto; }
.bar-key .dot-h { background: var(--accent); }
.bar-key .dot-d { background: #9aa3ad; }
.bar-key .dot-a { background: var(--accent2); }
.fc-meta { margin-top: 6px; font-size: 0.85rem; color: var(--muted); }

/* Ad slots */
.ad-slot { margin: 1.6em 0; min-height: 90px; display: flex; align-items: center; justify-content: center; background: var(--card); border: 1px dashed var(--border); border-radius: 8px; color: #9aa3ad; font-size: 0.8rem; }
.ad-slot.is-live { background: transparent; border: 0; min-height: 0; }

/* Share row */
.share-row { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 1.2em 0; }
.copied { color: var(--accent); font-size: 0.85rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 3em; padding: 1.6em 0; color: var(--muted); font-size: 0.85rem; }
.footer-links a { color: var(--muted); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  .match { grid-template-columns: 1fr auto 1fr; }
}

/* ---------- Themable control surfaces (so dark mode works) ---------- */
select, input[type=text], input[type=number] { background: var(--surface); }
.seg-btn, .pick-btn, .badge-pill, button.secondary { background: var(--surface); }
.tie, .tie .pick { background: var(--surface); }

/* ---------- App buttons (anchors styled as buttons) ---------- */
.btn-primary, .btn-ghost {
  display: inline-block; font: inherit; font-weight: 700; cursor: pointer;
  text-decoration: none; text-align: center; border-radius: 10px;
  padding: 12px 18px; border: 1px solid transparent; transition: transform .06s ease, filter .12s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-primary.block { display: block; width: 100%; }
.btn-primary.sm, .btn-ghost.sm { padding: 7px 12px; border-radius: 8px; font-size: 0.85rem; }
.btn-primary:active, .btn-ghost:active, .tool-card:active, button:active { transform: scale(0.97); }

/* ---------- Home engagement hub ---------- */
.hub {
  border: 1px solid var(--border); border-radius: 16px; background: var(--card);
  padding: 16px 16px 18px; margin: 18px 0 6px;
  background-image: linear-gradient(180deg, rgba(14,165,113,0.06), rgba(14,165,113,0) 60%);
}
.hub-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hub-greet { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.hub-flame { font-weight: 700; font-size: 0.82rem; background: #fff3e0; color: #9a5b00; border: 1px solid #f3d199;
  border-radius: 20px; padding: 3px 10px; }
[data-theme="dark"] .hub-flame { background: #2e2410; color: #f0b62a; border-color: #5a4c1a; }
.hub-next { margin: 14px 0; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  text-align: center; }
.hub-next-lbl { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.hub-next-teams { font-weight: 800; font-size: 1.05rem; margin: 4px 0 6px; }
.hub-next-teams .v { color: var(--muted); font-weight: 600; }
.hub-countdown { font-size: 1.7rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.hub-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 14px; }
.hub-stat { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 6px; }
.hub-stat b { display: block; font-size: 1.45rem; line-height: 1; }
.hub-stat span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.hub-cta .btn-primary { font-size: 1.02rem; padding: 14px; }

/* ---------- Install banner ---------- */
.install-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: var(--accent); color: #fff; padding: 9px 14px; font-size: 0.9rem;
}
.install-banner .ib-msg { flex: 1; min-width: 180px; }
.install-banner b { font-weight: 800; }
.install-banner .ib-actions { display: flex; gap: 8px; }
.install-banner .btn-primary.sm { background: #fff; color: var(--accent); }
.install-banner .btn-ghost.sm { color: #fff; border-color: rgba(255,255,255,0.6); }

/* ---------- Bottom tab bar (mobile / installed app) ---------- */
.tabbar { display: none; }
@media (max-width: 720px) {
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(255,255,255,0.96); border-top: 1px solid var(--border);
    backdrop-filter: blur(8px); padding-bottom: env(safe-area-inset-bottom);
  }
  [data-theme="dark"] .tabbar { background: rgba(13,17,23,0.96); }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 2px 7px; text-decoration: none; color: var(--muted); font-size: 0.66rem; font-weight: 600;
  }
  .tabbar a .ti { line-height: 0; opacity: 0.8; }
  .tabbar a .ti svg { width: 23px; height: 23px; }
  .tabbar a.active { color: var(--accent); }
  .tabbar a.active .ti { opacity: 1; transform: translateY(-1px); }
  body { padding-bottom: 64px; }
}

/* ---------- Standalone (installed) niceties ---------- */
html.standalone .site-header { padding-top: env(safe-area-inset-top); }

/* ---------- Header hamburger menu (all pages) ---------- */
.menu-wrap { position: relative; display: inline-flex; }
.menu-btn { background: none; border: 0; padding: 6px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; border-radius: 8px; }
.menu-btn:hover { color: var(--fg); background: var(--card); }
.menu-btn[aria-expanded="true"] { color: var(--accent); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 7px; box-shadow: 0 16px 40px rgba(0,0,0,0.38); z-index: 60; display: flex; flex-direction: column; gap: 1px; }
.menu-panel[hidden] { display: none; }
/* Mobile: anchor the menu to the viewport so it never clips off-screen, wherever the
   hamburger ends up in the row. Full-width dropdown below the header. */
@media (max-width: 720px) {
  .menu-panel { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 62px); left: 10px; right: 10px; min-width: 0; max-width: none; max-height: 72vh; overflow-y: auto; }
}
.menu-panel a { color: var(--fg); text-decoration: none; padding: 10px 13px; border-radius: 9px; font-size: 0.92rem; font-weight: 600; white-space: nowrap; }
.menu-panel a:hover { background: var(--accent); color: #fff; }
.menu-divider { height: 1px; background: var(--border); margin: 6px 6px; }

/* ---------- Accounts: header chip, modal, toast ---------- */
.header-right { display: flex; align-items: center; gap: 12px; }
.auth-chip { font: inherit; font-weight: 700; font-size: 0.85rem; padding: 6px 13px; border-radius: 20px; background: var(--accent); color: #fff; border: 0; cursor: pointer; }
.auth-chip.ghost { background: transparent; color: var(--accent); border: 1px solid var(--border); }
.auth-chip:active { transform: scale(0.96); }
.link { background: none; border: 0; padding: 0; color: var(--accent2); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

.auth-modal { position: fixed; inset: 0; z-index: 100; background: rgba(10,14,18,0.55); display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(2px); }
.auth-modal[hidden] { display: none; }
.am-card { position: relative; width: 100%; max-width: 380px; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.am-card h2 { margin: 0 0 6px; font-size: 1.3rem; }
.am-sub { color: var(--muted); font-size: 0.92rem; margin: 0 0 14px; }
.am-l { display: block; font-size: 0.82rem; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.am-l input, .am-l select, .am-l textarea { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--fg); font: inherit; box-sizing: border-box; }
.am-l textarea { resize: vertical; min-height: 92px; }
.am-opt { color: var(--muted); font-weight: 500; }
.am-spam { font-size: 0.84rem; color: var(--fg); background: rgba(240,182,42,0.10); border: 1px solid rgba(240,182,42,0.34); border-radius: 10px; padding: 9px 12px; margin: 2px 0 12px; }
.am-info { font-size: 0.88rem; color: var(--accent); background: rgba(31,203,142,0.10); border: 1px solid rgba(31,203,142,0.30); border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; }

/* install banner dismiss fix (display:flex was overriding [hidden]) */
.install-banner[hidden] { display: none !important; }
.install-banner .ib-msg .ib-ic { vertical-align: -0.2em; }

/* header share button (desktop) */
.hdr-share { background: none; border: 0; padding: 6px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; border-radius: 8px; }
.hdr-share:hover { color: var(--fg); background: var(--card); }
.hdr-share svg { width: 20px; height: 20px; }
@media (max-width: 720px) { .hdr-share { display: none; } }

/* auth chip flag + settings cog */
.auth-chip .chip-flag { width: 18px; height: 13px; object-fit: cover; border-radius: 3px; vertical-align: -2px; margin-right: 5px; box-shadow: 0 0 0 1px rgba(0,0,0,0.18); }
.auth-chip { display: inline-flex; align-items: center; }
.auth-chip .chip-cog { display: inline-flex; margin-left: 6px; opacity: 0.9; }
.auth-chip .chip-cog svg { width: 15px; height: 15px; }
.auth-slot { display: inline-flex; align-items: center; gap: 10px; }
.auth-su { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 0.85rem; white-space: nowrap; padding: 0; }
.auth-su:hover { color: var(--fg); }
.am-card .btn-ghost.block { margin-top: 8px; }
#am-profile { margin: 0; }

/* leaderboard: set-your-country control */
.lb-profile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.lb-profile-lbl { font-weight: 700; font-size: 0.9rem; }
.lb-profile select { flex: 1; min-width: 150px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); color: var(--fg); font: inherit; }
.lb-profile-msg { font-size: 0.8rem; color: var(--muted); min-width: 48px; }

/* bottom tab bar — share button matches the nav items */
@media (max-width: 720px) {
  .tabbar .tab-share { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 0.66rem; font-weight: 600; font-family: inherit; }
  .tabbar .tab-share .ti { line-height: 0; opacity: 0.8; }
  .tabbar .tab-share .ti svg { width: 23px; height: 23px; }
  .tabbar .tab-share:active .ti { transform: scale(0.92); }
}
.am-msg { font-size: 0.85rem; min-height: 18px; margin: 2px 0 8px; }
.am-err { color: #c0392b; }
.am-fine { font-size: 0.74rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
.am-x { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px; }

.share-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.share-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--fg); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; width: 100%; text-align: left; }
.share-opt:hover { background: var(--card); }
.share-opt .ic { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 800; flex: 0 0 auto; }
.share-opt.wa .ic { background: #25D366; }
.share-opt.xt .ic { background: #000; }
.share-opt.fb .ic { background: #1877F2; }
.share-opt.cp .ic { background: var(--muted); }
.share-opt.nv .ic { background: var(--accent); }

.sp-toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%) translateY(20px); background: var(--fg); color: var(--bg); padding: 11px 18px; border-radius: 24px; font-size: 0.9rem; font-weight: 600; z-index: 110; opacity: 0; transition: opacity .25s, transform .25s; box-shadow: 0 8px 24px rgba(0,0,0,0.25); max-width: 90vw; text-align: center; }
.sp-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Sign-in CTAs + hub account row */
.signin-cta { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 10px; padding: 10px 14px; margin: 12px 0; font-size: 0.92rem; }

/* Guest nudges: unsaved-picks pill, would-have-scored banner, leaderboard ghost row */
.gp-pill { display: block; margin: 8px auto 2px; font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--gold); background: rgba(240,182,42,0.10); border: 1px solid rgba(240,182,42,0.45); border-radius: 18px; padding: 6px 14px; cursor: pointer; transition: background .12s ease; }
.gp-pill:hover { background: rgba(240,182,42,0.18); }
.gp-pill b { color: var(--accent); }
.gp-pill[hidden] { display: none; }
.gp-banner { position: relative; background: var(--card); border: 1px solid rgba(240,182,42,0.4); border-left: 3px solid var(--gold); border-radius: 10px; padding: 12px 40px 12px 14px; margin: 12px 0; font-size: 0.93rem; line-height: 1.5; }
.gp-banner .btn-primary.sm { display: inline-block; margin-left: 8px; padding: 6px 13px; border-radius: 8px; font-size: 0.84rem; }
.gp-banner-x { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px; }
.gp-banner[hidden] { display: none; }
.lb-ghost { cursor: pointer; opacity: 0.75; }
.lb-ghost td { border-top: 1px dashed var(--border); }
.lb-ghost .lb-you-q { font-weight: 800; }
.lb-ghost .lb-ghost-cta { color: var(--accent); font-weight: 700; font-size: 0.84rem; }
.lb-ghost:hover { opacity: 1; background: rgba(31,203,142,0.06); }
.lb-guest { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin: 12px 0; }
.lb-guest p { margin: 0; }
.hub-acct { margin-top: 12px; font-size: 0.92rem; }
.hub-acct a { font-weight: 700; white-space: nowrap; }

/* ---------- Leaderboard ---------- */
.lb-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.lb-tab { font: inherit; font-weight: 700; font-size: 0.88rem; padding: 8px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); cursor: pointer; }
.lb-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
/* Stage sub-leaderboards (Overall / Group / R32 / R16 / Finals) */
.lb-stages { display: flex; flex-wrap: wrap; gap: 7px; margin: -4px 0 14px; }
.lb-stage { position: relative; font: inherit; font-weight: 700; font-size: 0.8rem; padding: 6px 13px; border-radius: 16px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; transition: color .12s, border-color .12s; }
.lb-stage:hover { color: var(--fg); border-color: var(--accent); }
.lb-stage.active { background: rgba(31,203,142,0.12); color: var(--fg); border-color: var(--accent); }
.lb-live { margin-left: 6px; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.04em; color: #fff; background: #e0483a; border-radius: 7px; padding: 1px 5px; vertical-align: 1px; }
.lb-stage-empty { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 14px 16px; font-size: 0.92rem; line-height: 1.55; }
/* SeerPlay AI leaderboard entrant — bot badge instead of a flag */
.lb-aibadge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 16px; border-radius: 4px; background: linear-gradient(135deg, rgba(31,203,142,0.22), rgba(34,211,193,0.22)); border: 1px solid rgba(31,203,142,0.5); vertical-align: -3px; }
.lb-aiic { width: 14px; height: 14px; color: var(--accent); }
.lb-ainame { font-weight: 800; }
tr.lb-ai td { background: rgba(31,203,142,0.05); }
.lb-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.lb-updated { font-size: 0.78rem; color: var(--muted); margin: 0 0 8px; }
.lb-scope { font-size: 0.9rem; color: var(--muted); margin: 0 0 10px; }
.lb-code { background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; font-weight: 800; letter-spacing: 0.05em; color: var(--fg); }
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th, .lb-table td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; }
.lb-table th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.lb-table td.num, .lb-table th.num { text-align: center; font-variant-numeric: tabular-nums; }
.lb-table tr.lb-me { background: rgba(14,165,113,0.10); }
.lb-youtag { font-size: 0.68rem; background: var(--accent); color: #fff; border-radius: 10px; padding: 1px 7px; font-weight: 700; margin-left: 4px; vertical-align: 1px; }
.lb-player { display: inline-flex; align-items: center; gap: 8px; }
.lb-prow td { opacity: 0.92; }
.lb-preview-note { background: linear-gradient(180deg, rgba(14,165,113,0.12), rgba(14,165,113,0.02)); border: 1px solid rgba(14,165,113,0.3); border-radius: 12px; padding: 11px 14px; margin: 0 0 12px; font-size: 0.9rem; }

/* Create-your-own-league */
.lb-leagues { border: 1px solid var(--border); border-radius: 16px; background: var(--card); padding: 16px 18px; margin: 1.6em 0; }
.lb-leagues h2 { margin: 0 0 4px; font-size: 1.15rem; }
.lb-leagues > p { margin: 0 0 12px; color: var(--muted); font-size: 0.92rem; }
.lb-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.lb-preset { font: inherit; font-weight: 700; font-size: 0.88rem; padding: 9px 15px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); cursor: pointer; }
.lb-preset:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 14px rgba(14,165,113,0.18); }
.lb-table tr.lb-row { cursor: pointer; transition: background .12s ease; }
.lb-table tr.lb-row:hover { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .lb-table tr.lb-row:hover { background: rgba(255,255,255,0.06); }
.lb-view { font-size: 0.72rem; color: var(--muted); opacity: 0; transition: opacity .12s ease; margin-left: 6px; }
.lb-table tr.lb-row:hover .lb-view { opacity: 1; }
/* player predictions card */
.pv-list { list-style: none; margin: 10px 0 16px; padding: 0; max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.pv-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.pv-row:last-child { border-bottom: 0; }
.pv-match { color: var(--muted); }
.pv-pick { font-weight: 700; white-space: nowrap; }
.pv-hit { color: var(--accent); }
.pv-miss { color: #e5534b; }
/* My Predictions page */
.mp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 14px; }
.mp-stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 8px; text-align: center; }
.mp-num { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.mp-lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-top: 2px; }
.mp-edithint { text-align: center; color: var(--muted); margin: 12px 0; font-size: 0.86rem; }
.mp-list { list-style: none; margin: 12px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mp-game { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px; }
.mp-game.mp-hit { border-color: rgba(31,203,142,0.5); }
.mp-game.mp-miss { border-color: rgba(229,83,75,0.45); }
.mp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.mp-match { font-weight: 800; font-size: 0.97rem; letter-spacing: -0.01em; min-width: 0; }
.mp-ko { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 700; color: var(--accent); white-space: nowrap; flex: 0 0 auto; }
.mp-ko svg { width: 14px; height: 14px; flex: 0 0 auto; }
.mp-ft { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; flex: 0 0 auto; }
.mp-live { color: var(--gold, #e0a200); font-weight: 800; font-size: 0.78rem; white-space: nowrap; flex: 0 0 auto; }
.mp-edit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mp-opt { display: flex; align-items: center; justify-content: center; text-align: center; font: inherit; font-size: 0.82rem; font-weight: 700; line-height: 1.12; padding: 9px 5px; min-height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; transition: background .12s ease, color .12s ease, border-color .12s ease; }
.mp-opt:hover { color: var(--fg); border-color: var(--accent); }
.mp-opt.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 16px rgba(31,203,142,0.28); }
.mp-pickline { display: flex; align-items: center; gap: 7px; font-size: 0.9rem; color: var(--muted); }
.mp-pickline b { color: var(--fg); font-weight: 800; }
.mp-pickline .pv-hit svg, .mp-pickline .pv-miss svg { width: 1.05em; height: 1.05em; vertical-align: -0.14em; }
.mp-empty { text-align: center; padding: 28px 10px; }
.mp-empty p { color: var(--muted); margin-bottom: 14px; }

/* Schedule rows → match-preview links */
.match-a { display: block; color: inherit; text-decoration: none; border-radius: 12px; transition: background .12s ease; }
.match-a:hover { background: rgba(255,255,255,0.05); }
.match-a .mx-prev { color: var(--accent); font-weight: 700; }
.match-a:hover .mx-prev { text-decoration: underline; }

/* SEO pages (match / team / group / hub) */
.mx-crumb { font-size: 0.82rem; color: var(--muted); margin: 0 0 6px; }
.mx-crumb a { color: var(--muted); }
.mx-teams { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 12px 0 8px; font-size: 1.15rem; font-weight: 800; }
.mx-team { display: inline-flex; align-items: center; gap: 9px; }
.mx-team a { color: var(--fg); text-decoration: none; }
.mx-team a:hover { color: var(--accent); }
.mx-vs { color: var(--muted); font-weight: 700; font-size: 0.9rem; }
.mx-flag { border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,0.18); vertical-align: -3px; }
.mx-facts { list-style: none; padding: 0; margin: 10px 0 18px; display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 0.93rem; }
.mx-facts strong { color: var(--fg); }
.mx-card { margin: 16px 0; }
.mx-card h2 { margin-top: 0; }
.mx-bar { max-width: 420px; }
.mx-barlbl { max-width: 420px; margin-bottom: 12px; }
.mx-ft { margin: 12px 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.mx-ft-tag { display: inline-block; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; margin-bottom: 6px; }
.mx-ft-tag.hit { background: rgba(31,203,142,0.16); color: var(--accent); border: 1px solid rgba(31,203,142,0.5); }
.mx-ft-tag.miss { background: rgba(150,160,175,0.12); color: var(--muted); border: 1px solid var(--border); }
.mx-updated { font-size: 0.74rem; color: var(--muted); margin: 4px 0 0; }
.mx-fixtures { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 9px; font-size: 0.93rem; }
.mx-fixtures a { font-weight: 700; }
.mx-odds { color: var(--muted); font-size: 0.84rem; }
.mx-squad { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 18px; }
@media (min-width: 640px) { .mx-squad { grid-template-columns: repeat(4, 1fr); } }
.mx-squadcol h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 10px 0 6px; }
.mx-squadcol ul { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; display: flex; flex-direction: column; gap: 3px; }
.mx-table { width: 100%; max-width: 460px; border-collapse: collapse; font-size: 0.92rem; margin: 6px 0 10px; }
.mx-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 7px 9px; border-bottom: 1px solid var(--border); }
.mx-table td { padding: 8px 9px; border-bottom: 1px solid var(--border); }
.mx-table td a { font-weight: 700; }
.mx-more { color: var(--muted); font-size: 0.9rem; margin: 18px 0; }
.mx-teamlinks { line-height: 2; font-size: 0.92rem; }
.mx-card .hp-cta { justify-content: flex-start; margin-top: 6px; }
.mx-card .hp-btn { max-width: 320px; }

/* Admin dashboard */
.adm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 22px; }
@media (min-width: 560px) { .adm-grid { grid-template-columns: repeat(4, 1fr); } }
.adm-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 10px; text-align: center; }
.adm-card b { display: block; font-size: 1.45rem; font-weight: 900; letter-spacing: -0.02em; }
.adm-card span { display: block; margin-top: 3px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.adm-bar { display: flex; align-items: center; gap: 9px; margin: 5px 0; font-size: 0.82rem; }
.adm-bar .d { width: 84px; flex: 0 0 auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-bar i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--accent), var(--cyan)); box-shadow: 0 0 10px rgba(31,203,142,0.3); }
.adm-bar .n { font-weight: 800; font-variant-numeric: tabular-nums; }
.adm-scroll { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin: 8px 0 20px; }
.adm-table th { text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 7px 9px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.adm-table td { padding: 8px 9px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.adm-table code { background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; font-weight: 700; }
/* Model accuracy dashboard (Our Match Predictions) */
.model-record.empty { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; color: var(--muted); }
.model-record.empty .md-ic { color: var(--accent); flex: none; }
.model-record.empty .mr-hint { width: 100%; font-size: 0.85rem; }
.model-dash { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin: 12px 0 18px; }
.md-hero { display: flex; align-items: center; gap: 13px; }
.md-ic { color: var(--accent); flex: none; }
.md-big { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.md-of { font-size: 1rem; color: var(--muted); font-weight: 700; }
.md-cap { color: var(--muted); font-size: 0.86rem; margin-top: 4px; }
.md-break { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 10px; margin-top: 14px; }
.md-cell { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 8px; text-align: center; }
.md-n { font-size: 1.4rem; font-weight: 800; }
.md-l { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-top: 3px; }

@media (max-width: 600px) { .site-header .nav { display: none; } }

/* ---------- Wallchart ---------- */
.wc-head { margin: 6px 0 16px; }
.wc-title { display: flex; align-items: center; gap: 12px; }
.wc-badge { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, #0ea571, #13c08a); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.wc-badge svg { width: 26px; height: 26px; }
.wc-title h2 { margin: 0; font-size: 1.3rem; letter-spacing: -0.01em; }
.wc-title p { margin: 2px 0 0; color: var(--muted); font-size: 0.82rem; }
.wc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 12px; }
.wc-group { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); break-inside: avoid; }
.wc-gh { background: var(--accent); color: #fff; font-weight: 800; padding: 7px 12px; font-size: 0.95rem; letter-spacing: 0.01em; }
.wc-teams { list-style: none; margin: 0; padding: 8px 12px; }
.wc-teams li { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-weight: 600; font-size: 0.92rem; }
.wc-rank { color: var(--muted); font-weight: 700; width: 14px; flex: 0 0 auto; }
.wc-fixtures { border-top: 1px solid var(--border); padding: 7px 12px; background: var(--card); }
.wc-fx { display: flex; gap: 8px; font-size: 0.76rem; padding: 2px 0; }
.wc-fx-d { color: var(--muted); white-space: nowrap; min-width: 86px; }
.wc-fx-m i { color: var(--muted); font-style: normal; }

/* Knockout bracket (fillable: Round of 16 -> Final) */
.wc-bracket-page { margin-top: 26px; }
.bk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.bk-col { display: flex; flex-direction: column; }
.bk-cards { display: flex; flex-direction: column; justify-content: space-around; flex: 1; gap: 10px; }
.bk-rh { font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); padding: 6px 2px; border-bottom: 2px solid var(--accent); margin-bottom: 8px; }
.bk-rh-sm { font-size: 0.72rem; border-bottom-width: 1px; margin-top: 14px; }
.bk-match { position: relative; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 6px 8px 6px 20px; break-inside: avoid; }
.bk-no { position: absolute; left: 5px; top: 50%; transform: translateY(-50%); font-size: 0.62rem; font-weight: 700; color: var(--muted); }
.bk-slot { display: flex; align-items: center; gap: 6px; min-height: 22px; }
.bk-slot + .bk-slot { border-top: 1px dashed var(--border); margin-top: 3px; padding-top: 3px; }
.bk-line { flex: 1; border-bottom: 1px solid var(--muted); height: 14px; opacity: 0.55; }
.bk-team { flex: 1; font-weight: 600; font-size: 0.85rem; }
.bk-score { width: 20px; height: 16px; border: 1px solid var(--border); border-radius: 3px; flex: 0 0 auto; }
.bk-col-final { justify-content: flex-start; }
.bk-champ { margin-top: 14px; border: 2px solid var(--gold); border-radius: 8px; padding: 8px; text-align: center; background: rgba(224,162,0,0.08); }
.bk-champ-lbl { display: block; font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold); margin-bottom: 6px; }
.bk-third { margin-top: 6px; }

/* Print (wallchart in landscape) */
@media print {
  /* Always print on white with the light palette — regardless of dark/light mode. */
  :root, :root[data-theme="light"], :root[data-theme="dark"] {
    --bg: #ffffff; --fg: #14181f; --muted: #5c6672; --accent: #0ea571; --accent2: #1769ff;
    --gold: #e0a200; --border: #d7dce2; --card: #f6f8fa; --surface: #ffffff; --cyan: #0fa093;
  }
  html, body { background: #ffffff !important; color: #14181f !important; }
  .site-header, .site-footer, .nav, .tabbar, .install-banner, .hub, .ad-slot, .controls, .share-row, .sample-banner, .no-print { display: none !important; }
  body { font-size: 11px; padding-bottom: 0; }
  .wrap { max-width: none; padding: 0; }
  .match { padding: 3px 4px; }
  a { color: #000; text-decoration: none; }
  @page { size: A4 landscape; margin: 8mm; }
  .wc-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .wc-group { border-color: #bbb; }
  .wc-gh, .wc-badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .wc-head { margin: 0 0 6px; }
  .wc-teams li { font-size: 8.5px; padding: 1.5px 0; }
  .wc-fx { font-size: 8px; }
  .wc-fixtures { padding: 5px 8px; }
  .wc-teams { padding: 5px 8px; }
  .flag-sm { width: 15px; height: 11px; }
  /* knockout bracket prints on its own landscape page */
  .wc-bracket-page { page-break-before: always; margin-top: 0; }
  .bk-grid { gap: 8px; }
  .bk-match { border-color: #bbb; padding: 4px 6px 4px 16px; }
  .bk-line { border-bottom-color: #888; }
  .bk-team { font-size: 9px; }
  .bk-rh { font-size: 9px; }
  .bk-score { border-color: #bbb; }
  .bk-champ { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ============================================================
   Futuristic / crypto aesthetic layer
   ============================================================ */
:root { --cyan: #16c5b3; }
[data-theme="dark"] {
  --bg: #080b11;
  --muted: #9fb1c2;
  --card: rgba(255,255,255,0.045);
  --surface: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.10);
}

/* Ambient gradient background + faint grid (dark) */
[data-theme="dark"] body {
  background-color: #080b11;
  background-image:
    radial-gradient(820px 560px at 12% -8%, rgba(31,203,142,0.16), transparent 60%),
    radial-gradient(720px 520px at 100% 2%, rgba(22,197,179,0.12), transparent 55%),
    radial-gradient(760px 760px at 50% 130%, rgba(90,147,255,0.10), transparent 60%);
  background-attachment: fixed;
}
[data-theme="dark"] body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 22%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 50% 22%, #000, transparent 72%);
}

/* Glass header */
.site-header { backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
[data-theme="dark"] .site-header { background: rgba(10,14,20,0.55) !important; border-bottom: 1px solid rgba(255,255,255,0.07); }
[data-theme="dark"] .brand-logo { filter: drop-shadow(0 0 10px rgba(31,203,142,0.6)); }

/* Gradient display heading (dark) */
[data-theme="dark"] .hero h1 {
  background: linear-gradient(96deg, #ffffff 26%, var(--accent) 72%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

/* Neon primary buttons + chip */
button { background: linear-gradient(118deg, var(--accent), var(--cyan)); box-shadow: 0 6px 20px rgba(31,203,142,0.28), inset 0 1px 0 rgba(255,255,255,0.18); }
button:hover { box-shadow: 0 8px 28px rgba(31,203,142,0.42), inset 0 1px 0 rgba(255,255,255,0.25); filter: brightness(1.05); }
button.secondary { background: var(--surface); box-shadow: none; }
button.secondary:hover { box-shadow: none; }
.btn-primary { background: linear-gradient(118deg, var(--accent), var(--cyan)); box-shadow: 0 6px 20px rgba(31,203,142,0.28), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-primary:hover { box-shadow: 0 8px 28px rgba(31,203,142,0.44); }
.auth-chip:not(.ghost) { background: linear-gradient(118deg, var(--accent), var(--cyan)); box-shadow: 0 2px 14px rgba(31,203,142,0.32); }

/* Inputs — focus glow */
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,203,142,0.20); }

/* Banner cards — glass + neon edge */
[data-theme="dark"] .cardb { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.10); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 34px rgba(0,0,0,0.42); }
[data-theme="dark"] .cardb:hover { border-color: rgba(31,203,142,0.5); box-shadow: 0 0 0 1px rgba(31,203,142,0.4), 0 22px 54px rgba(0,0,0,0.55), 0 0 34px rgba(31,203,142,0.18); }
.cardb-top::before { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; z-index: 2; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent); }
.cardb-ico { filter: drop-shadow(0 0 10px rgba(255,255,255,0.45)); }

/* Engagement hub — glass + emerald glow */
[data-theme="dark"] .hub { background: linear-gradient(180deg, rgba(31,203,142,0.10), rgba(255,255,255,0.02)); border-color: rgba(31,203,142,0.26); box-shadow: 0 0 44px rgba(31,203,142,0.08), inset 0 1px 0 rgba(255,255,255,0.06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
[data-theme="dark"] .hub-next, [data-theme="dark"] .hub-stat { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.hub-countdown { text-shadow: 0 0 22px rgba(31,203,142,0.5); animation: sp-pulse 2.6s ease-in-out infinite; }

/* Glass surfaces across tools (dark) */
[data-theme="dark"] .fcard, [data-theme="dark"] .group-block, [data-theme="dark"] .model-record, [data-theme="dark"] .lb-guest, [data-theme="dark"] .signin-cta { background: rgba(255,255,255,0.035); border-color: rgba(255,255,255,0.09); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
[data-theme="dark"] .swipe-card { background: rgba(20,27,36,0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: rgba(255,255,255,0.12); box-shadow: 0 22px 54px rgba(0,0,0,0.55); }
[data-theme="dark"] .am-card { background: rgba(16,22,30,0.88); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border-color: rgba(255,255,255,0.12); box-shadow: 0 0 0 1px rgba(31,203,142,0.14), 0 30px 80px rgba(0,0,0,0.6); }

/* Neon selected / active states */
.lb-tab.active, .seg-btn.active, .pick-btn.sel { box-shadow: 0 0 16px rgba(31,203,142,0.4); }
[data-theme="dark"] .lb-table tr.lb-me { box-shadow: inset 3px 0 0 var(--accent); background: rgba(31,203,142,0.09); }
.tabbar a.active .ti { filter: drop-shadow(0 0 8px rgba(31,203,142,0.6)); }
[data-theme="dark"] .tabbar { backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }

@keyframes sp-pulse { 0%, 100% { text-shadow: 0 0 16px rgba(31,203,142,0.4); } 50% { text-shadow: 0 0 30px rgba(31,203,142,0.72); } }
@media (prefers-reduced-motion: reduce) { .hub-countdown { animation: none; } }
@media print { [data-theme] body::before { display: none !important; } }

/* ============================================================
   Apple-style homepage: full-bleed hero + feature tiles
   ============================================================ */
body { overflow-x: clip; }
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: 0 0 auto; }
.ib-ic { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.2em; }
.tier-ic { width: 1em; height: 1em; color: var(--accent); vertical-align: -0.1em; }
.done-ic, .done-emoji svg { width: 2.6rem; height: 2.6rem; color: var(--accent); }
.badge-pill svg { width: 0.95em; height: 0.95em; vertical-align: -0.12em; margin-right: 3px; }
.deck-streak svg { width: 0.95em; height: 0.95em; vertical-align: -0.12em; }
.lb-medal { display: inline-flex; }
.lb-medal svg { width: 1.2em; height: 1.2em; vertical-align: -0.25em; }
.lb-medal-g { color: #f0b62a; }
.lb-medal-s { color: #b9c4d0; }
.lb-medal-b { color: #cd7f43; }
.pv-hit svg, .pv-miss svg, .fc-ft svg, .mp-ft + svg { width: 1em; height: 1em; vertical-align: -0.12em; }
.hp-hero, .hp-tile { width: 100vw; position: relative; left: 50%; margin-left: -50vw; padding: 60px 0; text-align: center; }
.hp-hero-inner, .hp-tile-inner { max-width: 680px; margin: 0 auto; padding: 0 24px; }

/* ===== Animated swipe hero ===== */
html { overflow-x: clip; }
.sw-hero { width: 100vw; position: relative; left: 50%; margin-left: -50vw; padding: 44px 0 52px; overflow: clip;
  background: radial-gradient(680px 520px at 78% 0%, rgba(34,211,193,0.10), transparent 60%),
              radial-gradient(720px 560px at 8% 110%, rgba(31,203,142,0.16), transparent 58%); }
.sw-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(127,140,160,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(127,140,160,0.06) 1px, transparent 1px);
  background-size: 54px 54px; -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); }
.sw-hero-inner { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 0 30px; align-items: center;
  grid-template-areas: "head stage" "rest stage"; }
.sw-head { grid-area: head; align-self: end; min-width: 0; }
.sw-rest { grid-area: rest; align-self: start; min-width: 0; }
.sw-stage { grid-area: stage; }
.sw-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--accent); border: 1px solid rgba(31,203,142,0.4); background: rgba(31,203,142,0.08);
  border-radius: 20px; padding: 6px 13px; margin-bottom: 16px; }
.sw-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.sw-h1 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 900; margin: 0 0 16px; color: var(--fg); white-space: nowrap; }
.sw-h1 em { font-style: normal; color: var(--accent); font-size: 0.82em; }
.sw-h1 em .sw-ai { color: var(--fg); }
.sw-sub { font-size: 1.04rem; color: var(--muted); line-height: 1.5; max-width: 34ch; margin: 0 0 24px; }
.sw-gestures { display: none; gap: 18px; margin-top: 20px; font-size: 0.82rem; color: var(--muted); }
.sw-gestures b { color: var(--fg); }
.sw-stage { position: relative; min-width: 0; height: 392px; display: flex; align-items: center; justify-content: center; }
.sw-stage::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31,203,142,0.28), transparent 65%); filter: blur(34px); }
.sw-deck { position: relative; width: 322px; aspect-ratio: 71 / 82; }
.sw-card { position: absolute; inset: 0; border-radius: 22px; background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 22px 60px rgba(0,0,0,0.45); padding: 22px 22px 18px; display: flex; flex-direction: column;
  backface-visibility: hidden; will-change: transform, opacity; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sw-badge { align-self: flex-start; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); background: rgba(31,203,142,0.12); border: 1px solid rgba(31,203,142,0.4); border-radius: 20px; padding: 5px 12px; }
.sw-ko { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 6px; font-size: 0.82rem; color: var(--accent); font-weight: 700; }
.sw-ko svg { width: 15px; height: 15px; }
.sw-cbody { flex: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.sw-team { text-align: center; min-width: 0; }
.sw-team img { display: block; width: 100px; height: 75px; border-radius: 10px; margin: 0 auto 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.18); object-fit: cover; background: var(--card); }
.sw-nm { display: block; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.1; text-align: center; color: var(--fg); }
.sw-sd { display: block; font-size: 0.64rem; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin-top: 4px; }
.sw-vs { width: 40px; height: 40px; border-radius: 50%; background: var(--fg); color: var(--bg); font-weight: 800; font-size: 0.82rem; display: flex; align-items: center; justify-content: center; }
.sw-cfoot { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--muted); margin-top: 8px; }
.sw-stamp { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg); font-weight: 900;
  font-size: 1.4rem; letter-spacing: 0.04em; padding: 6px 15px; border-radius: 12px; opacity: 0; white-space: nowrap;
  border: 3px solid var(--accent); color: var(--accent); }
.sw-stamp.draw { border-color: var(--gold); color: var(--gold); }
/* v9-style swipe-to-reveal: card swipes partway, WIN stamp slams in, returns, next card.
   3 cards (Brazil/France/USA) staggered over a 7.5s cycle so they take turns. */
.sw-card { animation: sw-cyc 7.5s infinite; --sx: -56px; }
.sw-card.sw2 { animation-delay: -5s; } .sw-card.sw3 { animation-delay: -2.5s; }
.sw-stamp { animation: sw-stmp 7.5s infinite; }
.sw-card.sw2 .sw-stamp { animation-delay: -5s; } .sw-card.sw3 .sw-stamp { animation-delay: -2.5s; }
@keyframes sw-cyc {
  0%   { transform: translateY(16px) scale(.93); opacity: 0; z-index: 1; }
  7%   { transform: translate(0,0) rotate(0); opacity: 1; z-index: 3; }
  15%  { transform: translate(0,0) rotate(0); opacity: 1; z-index: 3; }
  23%  { transform: translate(var(--sx),-4px) rotate(-7deg); opacity: 1; z-index: 3; }
  30%  { transform: translate(var(--sx),-4px) rotate(-7deg); opacity: 1; z-index: 3; }
  37%  { transform: translate(0,0) rotate(0); opacity: 1; z-index: 3; }
  42%  { transform: translateY(14px) scale(.96); opacity: 0; z-index: 1; }
  100% { transform: translateY(16px) scale(.93); opacity: 0; z-index: 1; } }
@keyframes sw-stmp {
  0%, 17%  { opacity: 0; transform: translate(-50%,-50%) rotate(-14deg) scale(1.35); }
  23%, 31% { opacity: 1; transform: translate(-50%,-50%) rotate(-14deg) scale(1); }
  36%, 100% { opacity: 0; } }
@media (max-width: 760px) {
  .sw-hero { padding: 24px 0 30px; }
  .sw-hero-inner { grid-template-columns: 1fr; grid-template-areas: "head" "stage" "rest"; gap: 0; padding: 0 14px; }
  .sw-head, .sw-rest { text-align: center; align-self: auto; }
  .sw-h1 { font-size: 1.95rem; line-height: 1.12; margin: 0 0 6px; white-space: normal; }
  .sw-eyebrow { margin-bottom: 14px; }
  .sw-sub { font-size: 0.96rem; margin: 14px auto 20px; }
  .sw-gestures { display: none; }
  .sw-stage { height: auto; padding: 10px 0 6px; }
  .sw-stage::before { width: 76%; height: 70%; }
  .sw-deck { width: min(88vw, 332px); max-width: calc(100vw - 32px); margin-left: auto; margin-right: auto; }
  .sw-card { padding: 18px; --sx: -22px; }
  .sw-team img { width: 116px; height: 87px; }
  .sw-nm { font-size: 1.42rem; }
  .sw-badge { font-size: 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sw-card, .sw-stamp { animation: none; }
  .sw-card.sw1 { transform: translateY(0) scale(1); opacity: 1; z-index: 3; }
  .sw-card.sw2, .sw-card.sw3 { opacity: 0; }
}

/* Hero */
.hp-hero { padding: 48px 0 46px; background: radial-gradient(760px 560px at 50% 4%, rgba(31,203,142,0.20), transparent 60%); }
.hp-ball { display: inline-flex; filter: drop-shadow(0 0 26px rgba(31,203,142,0.45)); animation: hp-ball-float 6s ease-in-out infinite; }
.hp-ball-img { width: 196px; height: 196px; display: block; }
@keyframes hp-ball-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .hp-ball { animation: none; } }
.hp-wordmark { font-size: 2.95rem; font-weight: 900; letter-spacing: -0.035em; line-height: 1; margin: 14px 0 8px; background: linear-gradient(180deg, #ffffff, rgba(255,255,255,0.72)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
[data-theme="light"] .hp-wordmark { background: linear-gradient(180deg, #0e2a1f, #16a06b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hp-hero-h { font-size: 1.62rem; line-height: 1.14; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 8px; color: var(--fg); }
.hp-hero-sub { font-size: 1.08rem; color: var(--muted); max-width: 440px; margin: 0 auto 16px; }
.hp-ko { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 22px; padding: 8px 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); color: var(--accent); font-weight: 800; font-size: 0.92rem; }
.hp-ko-ic { display: inline-flex; }
.hp-ko-ic svg { width: 17px; height: 17px; }

/* CTA pills */
.hp-cta { display: flex; justify-content: center; }
.hp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 360px; font-weight: 800; font-size: 1.06rem; padding: 15px 26px; border-radius: 16px; text-decoration: none; background: linear-gradient(120deg, var(--accent), var(--cyan)); color: #fff; box-shadow: 0 12px 30px rgba(31,203,142,0.30), inset 0 0 0 1px rgba(31,203,142,0.22), 0 0 26px rgba(31,203,142,0.22); transition: transform .1s ease, box-shadow .18s ease; }
.hp-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(31,203,142,0.45), inset 0 0 0 1px rgba(31,203,142,0.30), 0 0 34px rgba(31,203,142,0.32); }
.hp-btn:active { transform: translateY(0) scale(0.985); }
.hp-btn .ar { font-weight: 700; }
.hp-btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); box-shadow: none; }

/* Feature tiles */
.hp-eyebrow { display: inline-block; font-size: 0.95rem; font-weight: 800; color: var(--accent); letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 4px; }
.hp-h { font-size: 2.45rem; line-height: 1.06; letter-spacing: -0.025em; font-weight: 800; margin: 6px 0 12px; }
.hp-sub { font-size: 1.04rem; color: var(--muted); max-width: 430px; margin: 0 auto 22px; }
.hp-visual { margin-top: 34px; display: flex; justify-content: center; }
/* Banded section zones — tint wash + alternating corner glow + hairline divider */
.hp-tile {
  background:
    radial-gradient(540px 340px at var(--gx) 122%, rgba(var(--sec), 0.22), transparent 60%),
    linear-gradient(180deg, rgba(var(--sec), 0.02) 0%, rgba(var(--sec), 0.13) 100%);
}
.hp-tile::before, .kit::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--sec), 0.5), transparent);
}
.hp-tile.t-emerald { --sec: 31,203,142; --gx: 16%; }
.hp-tile.t-blue { --sec: 90,147,255; --gx: 84%; }
.hp-tile.t-violet { --sec: 150,120,255; --gx: 16%; }
.hp-tile.t-cyan { --sec: 34,211,193; --gx: 84%; }
.hp-tile.t-gold { --sec: 240,182,42; --gx: 50%; }

/* ===== AI title-odds: homepage board + /who-will-win table ===== */
.to-board { width: 100%; max-width: 360px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 8px 12px; text-align: left; }
.to-row { display: flex; align-items: center; gap: 9px; padding: 7px 2px; border-bottom: 1px solid var(--border); }
.to-row:last-child { border-bottom: 0; }
.to-rk { width: 15px; flex: 0 0 auto; text-align: center; font-weight: 800; font-size: 0.78rem; color: var(--muted); }
.to-flag { width: 26px; height: 19px; flex: 0 0 auto; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.to-nm { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.to-track { flex: 0 0 60px; height: 7px; border-radius: 4px; background: var(--border); overflow: hidden; }
.to-fill { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.to-pct { flex: 0 0 auto; width: 40px; text-align: right; font-weight: 800; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.to-row.lead .to-nm, .to-row.lead .to-pct { color: var(--gold); }

.ww-lede { font-size: 1.08rem; }
.to-table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; }
.to-table th, .to-table td { padding: 9px 8px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.95rem; vertical-align: middle; }
.to-table th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 800; }
.to-table td.r { width: 26px; color: var(--muted); font-weight: 700; }
.to-table td.t img { width: 24px; height: 18px; border-radius: 3px; vertical-align: middle; margin-right: 8px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.to-table td.w { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.to-table tr.lead td { background: rgba(240,182,42,0.09); }
.to-table tr.lead td.t a { color: var(--gold); font-weight: 800; }
.ww-note { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }

.embed-code { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; line-height: 1.4; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--fg); resize: vertical; }

/* cross-link callout between AI Forecasts <-> Title Odds */
.xref { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 11px 14px; margin: 14px 0; font-size: 0.95rem; }
.xref a { font-weight: 800; }

/* Visual mockups */
.hpv-card { width: 268px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: 0 22px 54px rgba(0,0,0,0.45); }
.hpv-row { display: flex; align-items: center; justify-content: center; gap: 16px; }
.hpv-flag { width: 66px; height: 50px; object-fit: cover; border-radius: 8px; box-shadow: 0 3px 10px rgba(0,0,0,0.35); }
.hpv-vs { width: 34px; height: 34px; border-radius: 50%; background: var(--fg); color: var(--bg); font-weight: 800; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.hpv-names { display: flex; justify-content: space-between; margin-top: 10px; font-weight: 800; font-size: 0.92rem; }
.hpv-hints { display: flex; justify-content: space-between; margin-top: 16px; font-size: 0.74rem; font-weight: 700; }
.hpv-hints .h { color: var(--accent); } .hpv-hints .d { color: var(--gold); } .hpv-hints .a { color: var(--accent2); }

.hpv-board { width: 304px; display: flex; flex-direction: column; gap: 8px; }
.hpv-bhead { display: flex; align-items: center; gap: 10px; padding: 0 14px 2px; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 800; }
.hpv-bhead .n { flex: 1; text-align: left; }
.hpv-bhead .pl, .hpv-bhead .p { width: 32px; text-align: center; }
.hpv-brow { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 10px 14px; }
.hpv-brow .rk { width: 22px; height: 22px; border-radius: 50%; background: var(--muted); color: var(--bg); font-weight: 800; font-size: 0.72rem; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.hpv-bflag { width: 25px; height: 18px; object-fit: cover; border-radius: 3px; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); }
.hpv-brow .n { flex: 1; font-weight: 700; text-align: left; min-width: 0; }
.hpv-brow .pl { width: 32px; text-align: center; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.hpv-brow .p { width: 32px; text-align: center; color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.hpv-brow.me { box-shadow: 0 0 0 1px var(--accent), 0 0 20px rgba(31,203,142,0.22); }
.hpv-brow.me .rk { background: var(--accent); color: #fff; }

.hpv-bargroup { width: 290px; }
.hpv-bar { display: flex; height: 42px; border-radius: 11px; overflow: hidden; font-weight: 800; color: #fff; font-size: 0.82rem; }
.hpv-bar span { display: flex; align-items: center; justify-content: center; }
.hpv-bar .b-h { background: var(--accent); } .hpv-bar .b-d { background: #6b7785; } .hpv-bar .b-a { background: var(--accent2); }
.hpv-barlbl { display: flex; justify-content: space-between; margin-top: 9px; font-size: 0.74rem; color: var(--muted); }

/* Predictions tile — AI forecast card */
.hpv-aicard { width: 304px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-color: color-mix(in srgb, #9678ff 38%, var(--border)); border-radius: 20px; padding: 18px; box-shadow: 0 22px 54px rgba(0,0,0,0.45); }
.hpv-aihead { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.hpv-aibadge { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #9678ff; background: rgba(150,120,255,0.16); border: 1px solid rgba(150,120,255,0.45); box-shadow: 0 0 18px rgba(150,120,255,0.30); }
.hpv-aibadge svg { width: 24px; height: 24px; }
.hpv-aimeta { display: flex; flex-direction: column; line-height: 1.25; }
.hpv-aimeta b { font-weight: 800; font-size: 0.95rem; }
.hpv-aimeta i { font-style: normal; font-size: 0.76rem; color: var(--muted); }
.hpv-aiteams { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 800; font-size: 0.98rem; }
.hpv-ait { display: flex; align-items: center; gap: 8px; }
.hpv-ait.r { flex-direction: row-reverse; }
.hpv-ait img { width: 34px; height: 24px; object-fit: cover; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0,0,0,0.18); }

/* Your World Cup Kitbag — cool-neon glass chips */
.kit { --sec: 23,199,177; --gx: 16%; width: 100vw; position: relative; left: 50%; margin-left: -50vw; padding: 54px 0 74px; text-align: center;
  background:
    radial-gradient(620px 360px at var(--gx) 120%, rgba(var(--sec), 0.20), transparent 60%),
    linear-gradient(180deg, rgba(var(--sec), 0.02) 0%, rgba(var(--sec), 0.12) 100%); }
.kit-inner { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.kit-h { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.kit-sub { color: var(--muted); margin: 0 auto 26px; max-width: 470px; }
.kit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.kit-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; padding: 22px 12px; border-radius: 18px; text-decoration: none; color: var(--fg); background: var(--surface); border: 1px solid var(--border); border-color: color-mix(in srgb, var(--c) 50%, var(--border)); position: relative; overflow: hidden; transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease; }
.kit-chip::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 70%; background: radial-gradient(130px 70px at 50% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 72%); opacity: 0; transition: opacity .18s ease; }
.kit-chip:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 14px 34px rgba(0,0,0,0.5), 0 0 26px color-mix(in srgb, var(--c) 30%, transparent); }
.kit-chip:hover::before { opacity: 1; }
.kit-ico { color: var(--c); display: inline-flex; position: relative; filter: drop-shadow(0 0 9px color-mix(in srgb, var(--c) 55%, transparent)); }
.kit-ico svg { width: 27px; height: 27px; }
.kit-label { font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; position: relative; }
@media (min-width: 560px) { .kit-grid { grid-template-columns: repeat(3, 1fr); } }

/* Next Kickoff card */
.nk-card { width: 340px; max-width: 100%; background: var(--surface); border: 1px solid var(--border); border-color: color-mix(in srgb, var(--cyan) 42%, var(--border)); border-radius: 20px; padding: 22px 20px; box-shadow: 0 22px 54px rgba(0,0,0,0.45); }
.nk-lbl { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 800; margin-bottom: 12px; }
.nk-lbl svg { width: 17px; height: 17px; color: var(--cyan); }
.nk-teams { display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; flex-wrap: wrap; }
.nk-teams img { width: 30px; height: 22px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,0.18); }
.nk-teams .v { color: var(--muted); font-weight: 700; }
.nk-cd { font-size: 2rem; font-weight: 900; letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.nk-card .hp-btn { margin: 0 auto; max-width: 300px; }

/* Predictor stats strip */
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 22px; }
.pstat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 10px; text-align: center; }
.pstat b { display: block; font-size: 1.7rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1; color: var(--fg); }
.pstat span { display: block; margin-top: 5px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }

/* Predictor → create-league CTA (under the swipe buttons) */
.deck-league { margin: 22px auto 4px; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 420px; }
.deck-league-lead { margin: 0; color: var(--muted); font-size: 0.92rem; font-weight: 600; }

@media (min-width: 720px) {
  .hp-hero { padding: 92px 0 72px; }
  .hp-tile { padding: 88px 0; }
  .hp-ball-img { width: 244px; height: 244px; }
  .hp-wordmark { font-size: 4.6rem; }
  .hp-hero-h { font-size: 2.5rem; }
  .hp-eyebrow { font-size: 1.05rem; }
  .hp-h { font-size: 3.5rem; }
  .hp-hero-sub, .hp-sub { font-size: 1.24rem; max-width: 540px; }
  .kit-h { font-size: 2.5rem; }
}

/* ===== Live knockout bracket (/bracket) — two-sided wallchart + mobile stepper ===== */
.brk-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.brk-toolbar .fc-stages { margin: 0; }
.brk-key { display: inline-flex; gap: 14px; font-size: 0.78rem; color: var(--muted); }
.brk-key-i { display: inline-flex; align-items: center; gap: 6px; }
.brk-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.brk-dot.ai { background: var(--accent2); }
.brk-dot.ft { background: var(--accent); }
.brk-wrap { margin-top: 6px; }

/* round tabs are the primary mobile nav here — give them a 44px tap target */
.brk-toolbar .fc-stage { min-height: 44px; display: inline-flex; align-items: center; }

/* ---- the tie card: shared by both layouts ---- */
.bk-tie { border: 1px solid var(--border); border-radius: 12px; background: var(--card);
  padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; }
.bk-tie.done { border-left: 3px solid var(--accent); }
/* card-as-link (both teams known): reset anchor styling, light affordance on hover */
a.bk-tie-a { text-decoration: none; color: inherit; transition: border-color .12s, box-shadow .12s; }
a.bk-tie-a:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
a.bk-tie-a:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.bk-tie-h { display: flex; align-items: center; justify-content: space-between;
  font-size: 0.7rem; color: var(--muted); font-weight: 700; min-height: 14px; }
.bk-ko { font-variant-numeric: tabular-nums; }
.bk-await { font-style: italic; opacity: 0.8; }
.bk-badge.ft { background: var(--accent); color: #fff; border-radius: 999px;
  padding: 1px 8px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.03em; }
.bk-row { display: flex; align-items: center; gap: 7px; min-height: 24px; }
.bk-row .bf { width: 22px; height: 16px; border-radius: 2px; object-fit: cover;
  flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.bk-nm { flex: 1; font-weight: 600; font-size: 0.9rem; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.bk-row.tbd .bk-nm, .bk-tbd { color: var(--muted); font-weight: 600; font-style: italic; }
.bk-row.win .bk-nm { font-weight: 800; color: var(--accent); }
.bk-row.win::after { content: "▸"; color: var(--accent); font-weight: 900; margin-left: 2px; }
.bk-ai { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.04em; color: var(--accent2);
  border: 1px solid var(--accent2); border-radius: 4px; padding: 0 4px; flex: 0 0 auto; }
.bk-sc { font-weight: 800; font-size: 1.02rem; font-variant-numeric: tabular-nums;
  flex: 0 0 auto; min-width: 16px; text-align: right; }
.bk-ailine { font-size: 0.7rem; color: var(--accent2); font-weight: 700; border-top: 1px dashed var(--border); padding-top: 4px; }
.bk-pens { font-size: 0.66rem; color: var(--muted); font-weight: 700; margin-top: 2px; }

/* ---- champion box ---- */
.bk-champ { margin-top: 12px; border: 2px solid var(--gold); border-radius: 12px;
  padding: 12px; text-align: center; background: rgba(224,162,0,0.08);
  display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bk-champ-lbl { font-weight: 800; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--gold); }
.bk-champ .bf { width: 38px; height: 27px; border-radius: 3px; }
.bk-champ-nm { font-weight: 800; font-size: 1.05rem; }
.bk-champ.won { box-shadow: 0 0 0 1px var(--gold), 0 6px 22px rgba(224,162,0,0.22); }

/* ---- MOBILE (default): single-direction stepper, one round at a time ---- */
.bk-step-grid { display: grid; gap: 10px; }
@media (min-width: 560px) and (max-width: 859px) { .bk-step-grid { grid-template-columns: 1fr 1fr; } }

/* ---- DESKTOP (>=860px): classic two-sided wallchart ---- */
.bk-wall { display: none; }
@media (min-width: 860px) {
  .brk-toolbar { display: none; }
  /* break the wallchart out of the ~900px content column so it has room (needs ~1300px) */
  .bk-wall { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch;
    overflow-x: auto; padding: 6px 2px 18px;
    width: 96vw; max-width: 1400px; margin-left: 50%; transform: translateX(-50%); }
  .bk-wing { display: grid; gap: 12px; min-width: 0; }
  .bk-wing-l { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  .bk-wing-r { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  .bk-col { display: flex; flex-direction: column; min-width: 0; }
  .bk-rh { font-weight: 800; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--accent); padding-bottom: 5px; border-bottom: 2px solid var(--accent); margin-bottom: 10px; text-align: center; }
  .bk-wing-r .bk-rh { /* mirrored side keeps same header */ }
  .bk-cells { display: flex; flex-direction: column; justify-content: space-around; flex: 1; gap: 8px; }
  .bk-col-final { padding: 0 14px; justify-content: flex-start; min-width: 170px; }
  .bk-rh-final { color: var(--gold); border-bottom-color: var(--gold); }
  .bk-col-final .bk-cells { justify-content: flex-start; gap: 0; }
  /* connector stubs between rounds */
  .bk-wing-l .bk-cell { position: relative; }
  .bk-wing-r .bk-cell { position: relative; }
  /* right wing mirrors: AI line + winner arrow stay readable, flags lead */
  .bk-wall .bk-tie { font-size: 0.86rem; }
  .bk-wall .bk-nm { font-size: 0.84rem; }
  /* deeper rounds get a touch more breathing room so lines feel like they converge */
  .bk-col-r16 .bk-cells { gap: 26px; }
  .bk-col-qf .bk-cells { gap: 78px; }
  .bk-col-sf .bk-cells { gap: 0; justify-content: center; }
}

@media (max-width: 420px) {
  .bk-tie { padding: 7px 9px; }
  .bk-nm { font-size: 0.86rem; }
  .bk-ai { font-size: 0.58rem; padding: 0 3px; }
  .bk-ailine { font-size: 0.66rem; }
  .bk-sc { font-size: 0.96rem; }
  .brk-key { width: 100%; justify-content: center; }
}
