:root {
  --bg: oklch(13% 0.035 165);
  --surface: oklch(18% 0.038 165);
  --surface-2: oklch(22% 0.042 165);
  --surface-3: oklch(27% 0.045 165);
  --fg: oklch(94% 0.012 110);
  --muted: oklch(68% 0.018 150);
  --border: oklch(28% 0.035 165);
  --accent: oklch(82% 0.16 92);
  --accent-2: oklch(68% 0.14 145);
  --danger: oklch(64% 0.18 28);
  --warn: oklch(78% 0.15 75);
  --ok: oklch(72% 0.15 150);
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); font-family: var(--font-body); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, oklch(24% 0.055 158), var(--bg) 34rem); color: var(--fg); }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
.app-shell { width: min(100%, 460px); min-height: 100vh; margin: 0 auto; background: color-mix(in oklch, var(--bg), black 4%); border-inline: 1px solid color-mix(in oklch, var(--border), black 8%); position: relative; padding-bottom: 88px; }
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in oklch, var(--bg), black 8%); border-bottom: 1px solid var(--border); }
.brand-strip { height: 4px; background: var(--accent); }
.topbar-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; letter-spacing: .01em; }
.brand-mark { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: var(--accent); color: oklch(17% 0.04 160); font-weight: 900; }
.balance { padding: 7px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--accent); font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 6px; padding: 0 12px 10px; overflow-x: auto; scrollbar-width: none; }
.tab { flex: 0 0 auto; min-height: 34px; border: 1px solid var(--border); border-radius: 999px; padding: 7px 12px; color: var(--muted); background: var(--surface); font-size: 13px; }
.tab.active { color: oklch(17% 0.04 160); background: var(--accent); border-color: var(--accent); font-weight: 800; }
.screen { padding: 14px; display: grid; gap: 12px; }
.hero-panel { border: 1px solid var(--border); background: linear-gradient(135deg, color-mix(in oklch, var(--surface-2), var(--accent-2) 10%), var(--surface)); border-radius: 10px; padding: 16px; display: grid; gap: 12px; overflow: hidden; }
.kicker { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; }
h1, h2, h3, p { margin: 0; }
h1 { font-family: var(--font-display); font-size: clamp(28px, 9vw, 40px); line-height: .98; letter-spacing: 0; text-wrap: balance; }
h2 { font-family: var(--font-display); font-size: 20px; line-height: 1.12; }
h3 { font-size: 15px; line-height: 1.2; }
p, .copy { color: var(--muted); font-size: 14px; line-height: 1.45; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 11px; }
.stat strong { display: block; color: var(--fg); font-family: var(--font-mono); font-size: 20px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 12px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 4px; }
.link { color: var(--accent); font-size: 13px; font-weight: 800; }
.card { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; overflow: hidden; }
.card-pad { padding: 12px; }
.match-head { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: color-mix(in oklch, var(--surface-2), black 5%); border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.teams { padding: 12px; display: grid; gap: 10px; }
.team-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.team { display: flex; align-items: center; gap: 9px; font-weight: 760; }
.flag { width: 26px; height: 20px; border-radius: 3px; background: var(--surface-3); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); font-size: 10px; font-weight: 900; }
.score { color: var(--muted); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 12px 12px; }
.odd { min-height: 48px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-2); color: var(--fg); display: grid; gap: 2px; place-items: center; cursor: pointer; }
.odd small { color: var(--muted); font-size: 11px; }
.odd strong { font-family: var(--font-mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.odd[aria-pressed="true"], .odd.selected { background: var(--accent); color: oklch(17% 0.04 160); border-color: var(--accent); font-weight: 900; }
.odd[aria-pressed="true"] small, .odd.selected small { color: color-mix(in oklch, oklch(17% 0.04 160), white 18%); }
.cta { min-height: 48px; border: 0; border-radius: 8px; background: var(--accent); color: oklch(17% 0.04 160); font-weight: 900; width: 100%; cursor: pointer; }
.cta:disabled { opacity: .45; cursor: not-allowed; filter: saturate(.5); }
.secondary { min-height: 44px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--fg); font-weight: 760; width: 100%; cursor: pointer; }
.notice { border: 1px solid color-mix(in oklch, var(--accent), var(--border) 40%); background: color-mix(in oklch, var(--accent), transparent 88%); color: var(--fg); border-radius: 8px; padding: 11px; font-size: 13px; line-height: 1.35; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.pill.ok { color: var(--ok); }
.pill.warn { color: var(--warn); }
.coupon { position: sticky; bottom: 76px; z-index: 12; margin-inline: -2px; border: 1px solid var(--accent); background: color-mix(in oklch, var(--surface), black 12%); border-radius: 10px; padding: 12px; display: grid; gap: 10px; }
.coupon-row, .list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.money { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--accent); }
.rank-list { display: grid; gap: 8px; }
.rank-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 11px; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; }
.rank-pos { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-family: var(--font-mono); }
.rank-row.leader { border-color: color-mix(in oklch, var(--accent), var(--border) 35%); }
.rank-row.leader .rank-pos { background: var(--accent); color: oklch(17% 0.04 160); font-weight: 900; }
.form { display: grid; gap: 10px; }
.field { display: grid; gap: 6px; }
.field label { color: var(--muted); font-size: 12px; font-weight: 760; }
.field input, .field select { min-height: 46px; width: 100%; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--fg); padding: 0 12px; outline: 0; }
.field input:focus, .field select:focus { border-color: var(--accent); }
.bottom-nav { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 460px); display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in oklch, var(--bg), black 10%); border: 1px solid var(--border); border-bottom: 0; padding: 7px 8px 9px; z-index: 30; }
.nav-item { min-height: 48px; display: grid; place-items: center; gap: 3px; color: var(--muted); font-size: 11px; border-radius: 8px; }
.nav-item b { font-size: 17px; line-height: 1; font-family: var(--font-mono); }
.nav-item.active { background: var(--surface); color: var(--accent); }
.empty { min-height: 96px; display: grid; place-items: center; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 8px; padding: 16px; }
.toast { position: fixed; left: 50%; bottom: 78px; transform: translateX(-50%) translateY(18px); width: min(92%, 420px); background: var(--accent); color: oklch(17% 0.04 160); border-radius: 8px; padding: 12px; font-weight: 900; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 60; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.launcher { min-height: 100vh; width: min(980px, 100%); margin: 0 auto; padding: 24px 14px 36px; display: grid; gap: 18px; }
.launcher-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.screen-card { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); padding: 14px; display: grid; gap: 10px; min-height: 150px; }
.screen-card .open { color: var(--accent); font-weight: 900; margin-top: auto; }
@media (min-width: 760px) {
  body { background: radial-gradient(circle at 15% 0, oklch(26% 0.06 158), transparent 30rem), var(--bg); }
  .app-shell { margin-block: 24px; min-height: calc(100vh - 48px); border-radius: 18px; overflow: clip; border: 1px solid var(--border); box-shadow: 0 24px 80px rgb(0 0 0 / .32); }
  .bottom-nav { bottom: 24px; border-radius: 0 0 18px 18px; overflow: hidden; }
}
