:root {
  --bg: #06111c;
  --bg-soft: #091827;
  --panel: #0d1d2c;
  --surface: #102638;
  --surface-strong: #14334a;
  --line: #20394c;
  --text: #f3f7fb;
  --muted: #9db1c3;
  --aqua: #23dfcb;
  --blue: #179ee8;
  --success: #57d68d;
  --warning: #ffcf6f;
  --danger: #ff8a8a;
  --focus: #f9f871;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 18px 60px #0009;
  --space: clamp(16px, 3vw, 28px);
  --bottom-nav-height: 86px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-padding-top: 84px; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: radial-gradient(circle at 20% 0, #0d3550 0, transparent 34rem), var(--bg); color: var(--text); font: 16px/1.55 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--aqua); text-decoration: none; }
a:hover { text-decoration: underline; }
a, button, input, textarea, select, summary { min-height: 44px; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 30; background: var(--focus); color: #001318; padding: 10px 14px; border-radius: 999px; font-weight: 800; }
.skip-link:focus { top: 14px; }
.site-header { position: sticky; top: 0; top: env(safe-area-inset-top); z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: calc(10px + env(safe-area-inset-top)) max(5vw, 20px) 10px; border-bottom: 1px solid var(--line); background: #06111cf2; backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 900; letter-spacing: -.02em; }
.brand img { width: 38px; height: 38px; border-radius: 12px; }
.site-header nav { display: flex; gap: 16px; align-items: center; }
.site-header nav a, .site-header nav button { color: var(--text); font-weight: 700; }
.site-header nav a[aria-current="page"], .mobile-bottom-nav a[aria-current="page"] { color: var(--aqua); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.coin-pill, .notification-pill, .profile-pill, .menu-button, .icon-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #0b1c2a; color: var(--text); }
.coin-pill span { color: var(--muted); font-size: .78rem; }
.coin-pill strong { color: var(--success); }
.notification-pill { position: relative; min-width: 44px; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--warning); color: #1f1600; font-size: .75rem; font-weight: 900; }
.menu-button { display: none; cursor: pointer; }
.app-main { max-width: 1180px; margin: auto; padding: 48px 24px; }
.signed-in-shell .app-main { padding-bottom: calc(48px + var(--bottom-nav-height) + env(safe-area-inset-bottom)); }
.hero, .dashboard-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--space); align-items: center; min-height: 58vh; }
.hero h1, .dashboard-hero h1, .detail h1, .page-head h1 { font-size: clamp(2.3rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.055em; margin: .2em 0; }
.hero h1, .dashboard-hero h1, .detail h1, .page-head h1, .panel { overflow-wrap: anywhere; min-width: 0; }
.hero p, .page-head p, .muted, .freshness-note, .form-help, small { color: var(--muted); }
.eyebrow { color: var(--aqua) !important; font-weight: 900; letter-spacing: .15em; font-size: .78rem !important; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 0; border-radius: var(--radius-sm); padding: 13px 20px; background: linear-gradient(90deg, var(--blue), var(--aqua)); color: #001318; font-weight: 900; cursor: pointer; box-shadow: 0 10px 26px #0005; }
.button.small { padding: 8px 13px; min-height: 40px; }
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.button:disabled, button:disabled { opacity: .55; cursor: not-allowed; }
.primary-action { width: 100%; font-size: 1.1rem; }
.actions, .form-actions, .install-actions, .action-stack { display: flex; flex-wrap: wrap; gap: 12px; }
.action-stack { flex-direction: column; align-items: stretch; }
.hero-card, .prediction, .empty, .auth-card, .notice, .panel, .plan-card, .hero-actions-card, .match-card, .selection-card { background: linear-gradient(145deg, var(--surface), #0a1825); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 10px 35px #0004; }
.hero-card strong { display: block; font-size: 2rem; margin: 12px 0; }
.features, .grid, .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.features article { border-top: 1px solid var(--line); padding-top: 20px; }
.auth-card { max-width: 520px; margin: 5vh auto; }
.auth-card form { display: grid; gap: 16px; }
.auth-card label { display: grid; gap: 6px; font-weight: 700; }
.auth-card input:not([type="checkbox"]) { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #071522; color: var(--text); }
.auth-card .toggle { display: flex; grid-auto-flow: column; justify-content: start; font-weight: 400; }
.dashboard-hero { min-height: auto; margin-bottom: 24px; }
.plan-card h1 { font-size: clamp(2.2rem, 5vw, 4.3rem); }
.warning-text { color: var(--warning); font-weight: 800; }
.notice { margin: 20px 0; border-color: #236d75; }
.notice.error { border-color: var(--danger); }
.muted-notice { background: #0b1c2a; }
.responsible-note { border-color: #335a6f; }
.sport-strip { display: flex; gap: 10px; overflow: auto; padding: 15px 0 28px; }
.sport, .status-pill { white-space: nowrap; border: 1px solid var(--line); padding: 9px 13px; border-radius: 999px; }
.sport.active, .status-pill { border-color: var(--aqua); color: var(--aqua); }
.sport.locked { color: #718597; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }
.section-title span, .prediction > p, .fixture-list span, .fixture-list time { color: var(--muted); }
.metrics { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.metrics span { border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; }
.fixture-list { display: grid; border-top: 1px solid var(--line); }
.fixture-list a, .list-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.detail { max-width: 940px; }
.match-card details, .selection-card details { display: grid; gap: 12px; }
.match-card summary, .selection-card summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; cursor: pointer; color: var(--text); }
.match-card-main { display: grid; gap: 4px; }
.match-card-body, .selection-card-body { margin-top: 18px; }
.evidence-row { border-top: 1px solid var(--line); padding-top: 12px; }
.install-card, .iphone-install-help { position: fixed; left: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 18; max-width: 430px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.install-card[hidden] { display: none; }
.iphone-install-help { bottom: calc(18px + env(safe-area-inset-bottom)); left: auto; right: 18px; max-width: 320px; }
.offline-page { max-width: 620px; margin: 12vh auto; padding: 28px; text-align: center; }
footer { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; padding: 35px max(5vw, 20px); border-top: 1px solid var(--line); color: var(--muted); }
footer > div { display: grid; align-content: start; gap: 8px; }
footer .brand { margin-bottom: 8px; }
.footer-notice { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; }
.messages { max-width: 900px; margin: 20px auto; padding: 0 16px; }
.messages p { background: #143429; padding: 12px; border-radius: 8px; }
.mobile-bottom-nav, .more-sheet, .more-sheet-backdrop { display: none; }
.more-sheet-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 22; background: #0007; }
.more-sheet:not([hidden]) { display: block; position: fixed; right: 18px; top: calc(74px + env(safe-area-inset-top)); z-index: 23; width: min(390px, calc(100vw - 24px)); max-height: min(82vh, 720px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.more-sheet-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.more-links { display: grid; gap: 8px; }
.more-links a, .more-links button { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #0b1c2a; color: var(--text); text-align: left; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; scroll-behavior: auto !important; transition-duration: .001ms !important; } }
@media (max-width: 960px) {
  .site-header { align-items: center; }
  .site-header nav { display: none; position: absolute; left: 12px; right: 12px; top: calc(62px + env(safe-area-inset-top)); padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; align-items: stretch; flex-direction: column; box-shadow: var(--shadow); }
  .site-header nav.is-open { display: flex; }
  .menu-button { display: inline-flex; }
  .signed-in-shell .menu-button { display: none; }
  .profile-pill { display: none; }
  .hero, .dashboard-hero, .features, .grid, .card-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 30px; }
  .fixture-list a, .list-row { grid-template-columns: 1fr; gap: 3px; }
  .app-main { padding: 28px 16px; }
  .signed-in-shell .app-main { padding-bottom: calc(34px + var(--bottom-nav-height) + env(safe-area-inset-bottom)); }
  .mobile-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; min-height: var(--bottom-nav-height); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: #071522f5; border-top: 1px solid var(--line); backdrop-filter: blur(16px); }
  .mobile-bottom-nav a { min-height: 56px; display: grid; place-items: center; gap: 2px; color: var(--muted); font-size: .76rem; font-weight: 800; border-radius: 16px; }
  .mobile-bottom-nav a span:first-child { font-size: 1.35rem; }
  .mobile-bottom-nav .mobile-clean-action { transform: translateY(-12px); background: linear-gradient(180deg, var(--aqua), var(--blue)); color: #001318; box-shadow: 0 12px 30px #0009; }
  .mobile-bottom-nav .mobile-clean-action[aria-current="page"] { color: #001318; }
  .more-sheet-backdrop:not([hidden]) { background: #0009; }
  .more-sheet:not([hidden]) { left: 10px; right: 10px; top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; }
  .install-card, .iphone-install-help { left: 12px; right: 12px; bottom: calc(var(--bottom-nav-height) + 12px + env(safe-area-inset-bottom)); max-width: none; }
  .iphone-install-help { bottom: calc(var(--bottom-nav-height) + 124px + env(safe-area-inset-bottom)); }
  footer { grid-template-columns: 1fr; padding-bottom: calc(35px + var(--bottom-nav-height) + env(safe-area-inset-bottom)); }
  .signed-in-shell footer { display: none; }
  .footer-notice { grid-column: auto; }
}
@media (max-width: 360px) {
  .site-header { padding-left: 12px; padding-right: 12px; }
  .brand { gap: 7px; }
  .brand img { width: 34px; height: 34px; }
  .coin-pill span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .coin-pill { min-width: 44px; padding-inline: 10px; }
  .header-actions { gap: 6px; }
  .mobile-bottom-nav { gap: 2px; padding-left: 4px; padding-right: 4px; }
  .mobile-bottom-nav a { font-size: .69rem; }
  .install-actions { display: grid; grid-template-columns: 1fr; }
  .install-actions .button { width: 100%; }
  .hero-card, .prediction, .empty, .auth-card, .notice, .panel, .plan-card, .hero-actions-card, .match-card, .selection-card { padding: 17px; }
  .prediction-card, .detailed-selection-card { padding: 0; }
}