:root {
  color-scheme: dark;
  --background: #100c19;
  --panel: #1b1428;
  --ink: #faf5ff;
  --muted: #c4b8d6;
  --line: #48375f;
  --accent: #d7b5ff;
  --green: #d6f98b;
  font-family: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); font-size: 15px; line-height: 1.55; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-nav, .brand, .actions { display: flex; align-items: center; }
.site-nav { min-height: 75px; justify-content: space-between; gap: 10px; }
.brand { text-decoration: none; font-weight: 800; gap: 8px; white-space: nowrap; }
.actions { flex-wrap: wrap; gap: 8px; }
.button {
  display: inline-flex; gap: 8px; justify-content: center; align-items: center; min-height: 44px;
  border: 1px solid transparent; border-radius: 8px; padding: 8px 15px; text-decoration: none;
  font-size: .88rem; font-weight: 750; color: var(--ink); background: transparent;
}
.button.primary { background: var(--green); color: #182308; }
.button.primary:hover { background: #e4ffb6; }
.button.secondary { background: #231833; border-color: #654a82; }
.button.secondary:hover, .button.ghost:hover { background: #39294c; }
.button.ghost { padding-inline: 10px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 800; }
h2 { font-size: clamp(32px, 4.7vw, 48px); line-height: 1; }
h3 { font-size: 1.16rem; line-height: 1.28; }
.muted { color: var(--muted); }
.hero {
  position: relative; isolation: isolate; min-height: 440px; display: grid; align-items: center;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(90deg, #140e22 3%, #140e22ed 37%, #140e221c 78%),
    url('/stadium-hero.jpg') 66% center / cover no-repeat;
}
.hero-copy { padding: clamp(24px, 6vw, 72px); }
.hero h1 { font-size: clamp(58px, 8.8vw, 114px); line-height: .82; letter-spacing: -.025em; margin: 13px 0 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.eyebrow { color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { margin-inline: 3px; color: var(--green); }
.intro { max-width: 40ch; color: #e7d9f6; margin-bottom: 20px; }
section:not(.hero) { margin-block: 42px; scroll-margin: 14px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-head p { margin-top: 5px; }
.slate-status { margin-bottom: 10px; }
.pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pick-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 12px; }
.pick-head, .pick-quote { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.league { font-weight: 800; font-size: .72rem; letter-spacing: .08em; color: var(--accent); }
.league.nfl { color: var(--green); }
.pick-head time { font-size: .8rem; }
.matchup { margin-top: 4px; font-size: .83rem; }
.pick-quote { padding-top: 10px; border-top: 1px solid var(--line); font-size: .82rem; }
.pick-quote strong { color: var(--green); font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.source { font-size: .8rem; margin-top: 10px; }
.source a { text-underline-offset: 3px; }
.feature-shell { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.feature-buttons { display: flex; gap: 3px; padding: 6px; border-bottom: 1px solid var(--line); }
.feature-button { flex: 1; min-height: 44px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); font-size: .84rem; font-weight: 700; padding: 7px 4px; }
.feature-button[aria-pressed="true"] { border-color: #735494; background: #39274d; color: var(--ink); }
.feature-panel { padding: clamp(15px, 3vw, 32px); display: grid; gap: 18px; grid-template-columns: 1fr 1fr; align-items: center; }
.feature-panel h3, .join-strip p { margin-bottom: 4px; }
.demo { min-width: 0; background: #100c1a; border: 1px solid var(--line); border-radius: 9px; padding: 12px; }
.demo-row { padding-block: 8px; display: flex; gap: 6px; align-items: center; justify-content: space-between; font-size: .83rem; }
.demo-row + .demo-row { border-top: 1px solid var(--line); }
.mini-tag { color: var(--accent); font-size: .72rem; white-space: nowrap; }
.demo-dot { background: var(--green); border-radius: 50%; width: 8px; height: 8px; }
progress { width: 100%; accent-color: var(--green); }
.join-strip { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.footer { border-top: 1px solid var(--line); padding-block: 16px; color: var(--muted); font-size: .82rem; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; }
dialog { width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 24px); overflow: auto; border: 1px solid var(--line); border-radius: 13px; padding: 18px; background: var(--panel); color: var(--ink); }
dialog::backdrop { background: #080610cc; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.close { border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--ink); min-width: 44px; min-height: 44px; font-size: 1.3rem; }
label, input { display: block; width: 100%; }
label { margin-block: 10px; }
input { margin-top: 3px; border: 1px solid #806a9a; border-radius: 6px; background: var(--background); padding: 8px 10px; color: var(--ink); min-height: 44px; font-size: 16px; }
#password-help { font-size: .84rem; margin-bottom: 8px; }
.auth-links { display: flex; flex-wrap: wrap; gap: 6px; }
#auth-status { min-height: 1.6em; margin-block: 10px; }
.page-status { padding-bottom: 10px; }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 28px); }
  .site-nav { min-height: 64px; }
  .brand { font-size: .86rem; }
  .brand img { width: 26px; height: 26px; }
  .site-nav .button { padding-inline: 8px; }
  .hero { min-height: 350px; align-items: end; background-position: 62% center; background-image: linear-gradient(0deg, #140e22 6%, #140e22f0 43%, #140e2240 100%), url('/stadium-hero.jpg'); }
  .hero h1 { font-size: clamp(50px, 12vw, 76px); }
  .pick-grid, .feature-panel { grid-template-columns: 1fr; }
  .pick-card { gap: 8px; padding: 12px; }
  section:not(.hero) { margin-block: 30px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
