/* Guess the Match — website styles.
   Design system "Floodlit Night Match" (see DESIGN.md): a dark floodlit-stadium
   world, one sodium-amber accent, redaction-bar / case-file detective framing,
   condensed stadium display type (Anton) and a glowing seven-segment scoreboard
   face (DSEG7) for big totals. Tokens mirror Theme.swift so the site reads as the
   same product as the app. */

/* Seven-segment scoreboard face — matches the app's DSEG7Classic-Bold. */
@font-face {
  font-family: 'DSEG7-Classic';
  src: url('https://cdn.jsdelivr.net/npm/dseg@0.46.0/fonts/DSEG7-Classic/DSEG7Classic-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:        #0B1411;  /* deep pitch-night */
  --bloom:     #10241B;  /* lit pitch inside the floodlight pool */
  --surface:   #13211B;  /* card */
  --raised:    #1B2E25;  /* raised card / option / key */
  --ink:       #F5F1E6;  /* warm white (never pure white) */
  --dim:       #8DA295;  /* pitch-sage secondary */
  --accent:    #FFC23C;  /* floodlight amber — the hero */
  --accent-2:  #FFB31E;
  --accent-wash: rgba(255,194,60,0.10);
  --green:     #36C172;  /* pitch line / correct */
  --success:   #2BD46A;  /* back of the net */
  --error:     #E2473B;  /* conceded */
  --hairline:  #2A3A31;
  --redaction: #081109;  /* near-black hidden bar */
  --paper:     #F4ECD8;  /* programme paper */
  --paper-ink: #1A1410;
  --paper-tag: #9A6B12;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The floodlight: one amber pool from above a dark pitch. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 620px at 50% -200px, rgba(255,194,60,0.16), transparent 62%),
    radial-gradient(760px 520px at 50% -120px, rgba(16,36,27,0.85), transparent 70%),
    radial-gradient(1300px 820px at 50% 122%, rgba(0,0,0,0.50), transparent 60%);
}
/* Faint chalk pitch-marking texture. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background:
    linear-gradient(transparent 0 119px, rgba(245,241,230,0.018) 119px 120px),
    linear-gradient(90deg, transparent 0 119px, rgba(245,241,230,0.018) 119px 120px);
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
  z-index: 1;
}

a { color: var(--accent); text-underline-offset: 3px; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .wordmark, .hero-title {
  font-family: 'Anton', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.005em;
}

/* ---- Shared bits ---- */

.stamp {
  display: inline-block;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.stamp.red { color: var(--error); }
.stamp.sage { color: var(--dim); }

/* Redaction bar — black classified bar like the app's [REDACTED]. */
.redact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--redaction);
  color: rgba(245,241,230,0.30);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  border-radius: 4px;
  border: 1px solid rgba(245,241,230,0.06);
  padding: 9px 14px;
}

/* ---- Masthead ---- */

.masthead {
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--hairline);
}
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 24px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.wordmark .badge {
  width: 26px; height: 26px; flex: none;
  position: relative; top: 1px;
}
.tagline {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.nav {
  margin-left: auto;
  font-size: 12px;
  font-family: ui-monospace, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a {
  color: var(--ink);
  margin-left: 18px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { text-decoration: none; color: var(--accent); border-bottom-color: var(--accent); }

/* ---- Hero ---- */

.hero { text-align: center; padding: 60px 0 30px; }
.hero-badge {
  display: inline-block;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--hairline);
  background: var(--accent-wash);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 26px;
}
.hero-title {
  font-size: 76px;
  line-height: 0.94;
  margin: 0 0 18px;
  text-transform: uppercase;
  text-shadow: 0 0 60px rgba(255,194,60,0.18);
}
.hero-title .hot { color: var(--accent); }
.hero-sub {
  font-size: 18.5px;
  color: var(--dim);
  max-width: 580px;
  margin: 0 auto 30px;
}

/* The case-file hero prop */
.casefile {
  max-width: 560px;
  margin: 30px auto 0;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(27,46,37,0.55), rgba(19,33,27,0.95));
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8);
  position: relative;
  overflow: hidden;
}
.casefile::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 180px at 50% -40px, rgba(255,194,60,0.10), transparent 70%);
  pointer-events: none;
}
.casefile .cf-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.cf-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.cf-teams .redact { width: 100%; height: 44px; font-size: 13px; }
.cf-vs {
  font-family: 'DSEG7-Classic', ui-monospace, monospace;
  color: var(--accent);
  font-size: 26px;
  text-shadow: 0 0 18px rgba(255,194,60,0.5);
  letter-spacing: 0.04em;
}
.cf-evidence { display: flex; flex-direction: column; gap: 8px; }
.cf-clue {
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px; color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px 13px;
}
.cf-clue .dot { color: var(--accent); flex: none; }
.cf-clue.locked { color: var(--dim); }
.cf-clue.locked .dot { color: var(--dim); }

/* ---- Buttons ---- */

.cta-row { margin-top: 32px; }
.cta {
  display: inline-block;
  background: linear-gradient(180deg, #FFD877, var(--accent-2));
  color: var(--paper-ink);
  font-family: 'Anton', sans-serif;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: 14px;
  box-shadow: 0 10px 30px -8px rgba(255,194,60,0.45);
}
.cta:hover { text-decoration: none; filter: brightness(1.05); }
.cta.ghost {
  background: var(--accent-wash);
  color: var(--accent);
  border: 1px solid rgba(255,194,60,0.45);
  box-shadow: none;
  margin-left: 10px;
}
.cta.ghost:hover { background: rgba(255,194,60,0.16); }

/* ---- Cards & layout ---- */

main { padding: 26px 0 12px; }

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 22px;
}

.kicker {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1 { font-size: 44px; line-height: 1.02; margin-bottom: 6px; text-transform: uppercase; }
h2 { font-size: 30px; line-height: 1.05; margin: 4px 0 12px; text-transform: uppercase; }
h3 { font-size: 17px; font-family: 'Instrument Sans', sans-serif; font-weight: 700; letter-spacing: 0; margin: 18px 0 6px; }
p { margin-bottom: 14px; }
ul { margin: 0 0 14px 22px; }
li { margin-bottom: 7px; }
strong { font-weight: 600; color: var(--ink); }

.lede { font-size: 19px; color: var(--dim); }
.updated {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-bottom: 18px;
}

/* ---- Numbered steps ---- */

.step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.step:last-child { border-bottom: 0; }
.step .num {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--raised);
  border: 1px solid var(--hairline);
  color: var(--accent);
  font-family: 'DSEG7-Classic', ui-monospace, monospace;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  text-shadow: 0 0 12px rgba(255,194,60,0.4);
}
.step h3 { margin: 5px 0 3px; }
.step p { margin: 0; color: var(--dim); font-size: 15px; }

/* ---- The three calls ---- */

.calls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 4px; }
.call {
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 20px 18px;
  text-align: center;
}
.call .n {
  font-family: 'DSEG7-Classic', monospace;
  color: var(--accent); font-size: 18px;
  text-shadow: 0 0 12px rgba(255,194,60,0.4);
}
.call h3 { margin: 8px 0 8px; font-size: 16px; }
.call .opts { display: flex; flex-direction: column; gap: 6px; }
.call .opt {
  font-size: 13px; color: var(--dim);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 7px;
}
.call .opt.on { color: var(--paper-ink); background: var(--accent); border-color: var(--accent); font-weight: 600; }

/* ---- Two-mode grid ---- */

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode {
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 22px;
}
.mode .tag {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.mode.daily { border-top: 3px solid var(--accent); }
.mode.cold { border-top: 3px solid var(--green); }
.mode.cold .tag { color: var(--green); }
.mode h3 { margin: 8px 0 6px; font-size: 19px; font-family: 'Anton', sans-serif; font-weight: 400; letter-spacing: 0.01em; text-transform: uppercase; }
.mode p { margin: 0; color: var(--dim); font-size: 15px; }

/* ---- Scoreboard (scoring) ---- */

.board {
  background: linear-gradient(180deg, var(--raised), var(--surface));
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}
.board .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
}
.board .row:last-child { border-bottom: 0; }
.board .row .what { font-size: 15px; }
.board .row .pts {
  font-family: 'DSEG7-Classic', ui-monospace, monospace;
  font-size: 16px;
  color: var(--accent);
  background: rgba(255,194,60,0.07);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 5px 13px;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(255,194,60,0.35);
  letter-spacing: 0.04em;
}
.board .row.bonus .pts { color: var(--green); background: rgba(54,193,114,0.08); text-shadow: 0 0 12px rgba(54,193,114,0.35); }

/* ---- Achievements grid ---- */

.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.badge-card {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 15px 16px;
}
.badge-card .em { font-size: 20px; flex: none; line-height: 1.2; }
.badge-card h3 { margin: 0 0 2px; font-size: 15px; }
.badge-card p { margin: 0; color: var(--dim); font-size: 13.5px; line-height: 1.45; }

/* ---- Feature rows ---- */

.feature {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.feature:last-child { border-bottom: 0; }
.feature .ico {
  font-size: 22px; flex: none; width: 30px; text-align: center; line-height: 1.4;
}
.feature h3 { margin: 0 0 2px; }
.feature p { margin: 0; color: var(--dim); font-size: 15px; }

/* ---- Programme card (the cream AI voice) ---- */

.programme {
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.6);
}
.programme .ptag {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-tag);
  margin-bottom: 10px;
}
.programme .quote {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 21px;
  line-height: 1.4;
  margin: 0 0 10px;
}
.programme .by { font-size: 13px; color: #6c5a3e; margin: 0; }

/* ---- Callout ---- */

.callout {
  background: var(--raised);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
}
.callout p:last-child { margin-bottom: 0; }

.fineprint {
  font-size: 13px;
  color: var(--dim);
  border: 1px dashed var(--hairline);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 6px;
}
.fineprint p:last-child { margin-bottom: 0; }

/* ---- FAQ ---- */

.faq-q { font-family: 'Instrument Sans', sans-serif; font-weight: 700; color: var(--ink); margin-top: 22px; margin-bottom: 4px; }
.rule { border: 0; border-top: 1px solid var(--hairline); margin: 24px 0; }

/* ---- Footer ---- */

.footer {
  border-top: 1px solid var(--hairline);
  margin-top: 30px;
  padding: 26px 0 46px;
}
.footer p { font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.footer .nav-foot { font-family: ui-monospace, Menlo, monospace; letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; }
.footer .nav-foot a { color: var(--ink); margin-right: 16px; }
.footer .copy {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 22px; }
  .hero-title { font-size: 48px; }
  .card { padding: 22px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .modes { grid-template-columns: 1fr; }
  .calls { grid-template-columns: 1fr; }
  .badges { grid-template-columns: 1fr; }
  .nav { width: 100%; margin-left: 0; margin-top: 6px; }
  .nav a { margin-left: 0; margin-right: 16px; }
  .cta.ghost { margin-left: 0; margin-top: 10px; }
  .cf-teams { gap: 8px; }
}
