:root, html[data-theme="dark"] {
  --bg: #0b1220;
  --card: #132033;
  --text: #e8eef7;
  --muted: #93a4bb;
  --accent: #34d399;
  --accent2: #2dd4bf;
  --ok: #4ade80;
  --bad: #f87171;
  --warn: #fbbf24;
  --border: #243447;
  --live: #fb923c;
  --header: #071018;
  --surface: #0e1a2b;
  --brand: #fff;
  --btn-text: #052e1c;
}
html[data-theme="light"] {
  --bg: #f0fdf6;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #059669;
  --accent2: #0d9488;
  --ok: #16a34a;
  --bad: #dc2626;
  --warn: #d97706;
  --border: #bbf7d0;
  --live: #ea580c;
  --header: #ffffff;
  --surface: #f8fafc;
  --brand: #064e3b;
  --btn-text: #ffffff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(52, 211, 153, 0.12), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(45, 212, 191, 0.1), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}
header {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--header);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
header .inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 1.3rem;
  color: var(--brand);
}
.brand span { color: var(--accent); }
.header-right { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.day-label { color: var(--muted); font-size: .9rem; }
.prefs-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.prefs-group {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.prefs-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  padding: .35rem .55rem;
  cursor: pointer;
  border-right: 1px solid var(--border);
}
.prefs-group .prefs-btn:last-child { border-right: 0; }
.prefs-btn:hover { color: var(--accent); }
.prefs-btn.active { background: var(--accent); color: var(--btn-text); }
main { max-width: 960px; margin: 0 auto; padding: 1.5rem 1.25rem 2rem; }
h1 { font-size: 1.45rem; margin: 0 0 .4rem; }
.lede { color: var(--muted); margin: 0 0 1.25rem; line-height: 1.45; }
.tip-list { display: flex; flex-direction: column; gap: .85rem; }
.tip-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: grid;
  gap: .7rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
@media (min-width: 720px) {
  .tip-card { grid-template-columns: 1.25fr 1fr auto; align-items: center; }
}
.kick { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; margin-bottom: .2rem; }
.league { color: var(--muted); font-size: .75rem; margin-bottom: .25rem; }
.teams { font-weight: 700; font-size: 1.05rem; }
.score-row { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-top: .35rem; }
.score { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.badge {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.badge.live { color: var(--live); border-color: rgba(251,146,60,.45); background: rgba(251,146,60,.1); }
.badge.ok { color: var(--ok); border-color: rgba(74,222,128,.35); }
.badge.bad { color: var(--bad); border-color: rgba(248,113,113,.35); }
.badge.warn { color: var(--warn); border-color: rgba(251,191,36,.35); }
.tip-label { font-weight: 600; font-size: .95rem; }
.tip-prob {
  display: inline-block;
  margin-top: .35rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.tip-meta { color: var(--muted); font-size: .75rem; margin-top: .2rem; }
.result-block { text-align: left; }
@media (min-width: 720px) { .result-block { text-align: right; } }
.result-title {
  font-size: .7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .25rem;
}
.empty, .error {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
}
.error { border-color: rgba(248,113,113,.45); color: var(--bad); }
footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem;
  color: var(--muted);
  font-size: .8rem;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .6rem;
  align-items: center;
  justify-content: center;
}
footer a { color: var(--accent); font-weight: 700; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.sep { opacity: .5; }
