/* ============================================================
   $RICH - Daily Drawing on Robinhood Chain
   Theme: scratch tickets on a wooden desk
   Palette pulled from grq-photos assets
   Radius lock: cards 16px / thumbs 10px / buttons pill
   Accent lock: gold #dabb33 (only accent on the page)
   ============================================================ */

:root {
  --bg: #1d1b26;
  --bg-2: #262032;
  --line: #3d3653;
  --ink: #f0e7d3;
  --muted: #b0a9c6;
  --gold: #dabb33;
  --gold-ink: #1a1508;
  --gold-deep: #8a6b14;
  --red-deep: #c22c1c;
  --shadow-hard: 8px 8px 0 #0d0b14;
  --r-card: 16px;
  --r-thumb: 10px;
  --font-display: "Anton", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* the blue room, infomercial cut: a late-night TV cyc. Saturated
   electric blue rises behind the hero, a hot tungsten-amber key pool
   sits center-stage, a soft horizon glow runs low, plum corners at
   the floor, ceiling falls off to black.
   Static, no animation, no patterns behind text. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 11, 20, 0.6), transparent 32%),
    radial-gradient(ellipse 30% 22% at 50% 33%, rgba(242, 176, 52, 0.24), transparent 70%),
    radial-gradient(ellipse 52% 38% at 50% 35%, rgba(218, 187, 51, 0.14), transparent 70%),
    radial-gradient(ellipse 95% 14% at 50% 58%, rgba(88, 112, 234, 0.16), transparent 75%),
    radial-gradient(ellipse 72% 52% at 50% 22%, rgba(43, 118, 255, 0.4), transparent 70%),
    radial-gradient(ellipse 118% 78% at 50% 26%, rgba(45, 81, 172, 0.5), transparent 68%),
    radial-gradient(ellipse 150% 92% at 50% 115%, rgba(74, 36, 56, 0.55), transparent 70%);
}

main, .footer { position: relative; z-index: 1; }

/* film grain - fixed layer only, never on scrolling containers */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: var(--gold-ink); }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

main { display: block; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s, color 0.25s, background 0.25s;
}

.btn:active { transform: scale(0.98); }

.btn-gold {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 4px 4px 0 var(--gold-deep);
}

.btn-gold:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--gold-deep);
}

.btn-gold:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--gold-deep);
}

.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-sm { padding: 11px 22px; font-size: 14px; }

/* ---------- nav ---------- */

/* the bar is the top of a ticket stub: it closes on a dashed coupon cut
   with punched notches at both ends, so the page reads as print collateral
   from the first 68px down. */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(29, 27, 38, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 2px dashed var(--line);
}

/* half-discs flush with the edges, never past them: a notch hanging 11px
   outside widens the document and lets the whole page scroll sideways,
   which opens a gap beside every full-bleed band. */
.nav::before, .nav::after {
  content: "";
  position: absolute;
  bottom: -11px;
  width: 10px;
  height: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.nav::before {
  left: 0;
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

.nav::after {
  right: 0;
  border-right: 0;
  border-radius: 999px 0 0 999px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.nav-logo::first-letter { color: var(--gold); }

/* the printed serial on the stub, not a real draw number */
.nav-serial {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links a {
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 68px);
  min-height: calc(100dvh - 68px);
  padding: 48px clamp(20px, 4vw, 48px) 64px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 7.5vw, 96px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  margin-bottom: 24px;
}

/* 80s TV-logo chrome: explicit brief lane, display words only */
.chrome {
  background: linear-gradient(180deg,
    #fdf6d8 0%,
    #f0d95c 30%,
    #dabb33 46%,
    #7a5f10 52%,
    #f7e27a 62%,
    #c9a228 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .chrome { color: var(--gold); background: none; }
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

/* on-air chyron: countdown as a TV lower-third */
.chyron {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
}

.chyron-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.chyron-time {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.chyron-urgency {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.last-win {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.last-win .mono { font-size: 12px; }

.last-win-amt { color: var(--gold); font-weight: 700; }

/* inert action stubs (pre-backend): same look, no navigation */
button.proof, button.row-enter {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* hero collage: desk photo + scattered tickets */

.hero-collage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  justify-self: end;
  width: 100%;
}

.collage-desk {
  position: absolute;
  inset: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  transform: rotate(-2deg);
  box-shadow: 0 32px 64px rgba(9, 8, 14, 0.6);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.collage-desk img { width: 100%; height: 100%; object-fit: cover; }

/* VHS scanlines on the desk photo only: material reference, not page decoration */
.collage-desk::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
    rgba(10, 8, 10, 0.22) 0px,
    rgba(10, 8, 10, 0.22) 1px,
    transparent 1px,
    transparent 4px);
  box-shadow: inset 0 0 90px rgba(9, 8, 14, 0.55);
}

/* spinning starburst badge, text stays static */
.badge {
  position: absolute;
  top: -34px;
  right: -30px;
  width: 118px;
  height: 118px;
  z-index: 2;
}

.badge svg {
  width: 100%;
  height: 100%;
  fill: var(--gold);
  animation: spin 18s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.badge-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.collage-ticket {
  position: absolute;
  width: 30%;
  border-radius: var(--r-thumb);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(9, 8, 14, 0.55);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.collage-ticket img { width: 100%; height: 100%; object-fit: cover; object-position: top; aspect-ratio: 3 / 5; }

.collage-ticket-a { left: -8%; bottom: 6%; transform: rotate(7deg); }
.collage-ticket-b { right: -6%; top: 8%; transform: rotate(-9deg); }

.hero-collage:hover .collage-desk { transform: rotate(0deg); }
.hero-collage:hover .collage-ticket-a { transform: rotate(2deg) translateY(-6px); }
.hero-collage:hover .collage-ticket-b { transform: rotate(-3deg) translateY(6px); }

/* ---------- marquee ---------- */

/* the infomercial lower-third: yellow on deep commercial blue (AA-checked blue) */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
  background: linear-gradient(180deg, #173a96, #14327f);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  padding-right: 8px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* photo band: full-bleed shot straight under As seen on TV.
   Sized off the image's own aspect ratio (1549x581) so the whole frame
   shows at any width. The width must stay explicit: left at auto, the
   max-height cap feeds back through aspect-ratio and shrinks the band
   horizontally, opening a gap beside the image on any short, wide window
   (not just giant screens). Pinned to 100%, the cap crops via cover. */
.photo-strip {
  width: 100%;
  aspect-ratio: 1549 / 581;
  max-height: 75vh;
  background-image: url("assets/banner-shot.jpg");
  background-size: cover;
  background-position: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  filter: saturate(1.05) contrast(1.03);
}

/* ---------- sections shared ---------- */

section {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) clamp(20px, 4vw, 48px) 0;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin-bottom: clamp(32px, 4vw, 56px);
}

/* ---------- how to play ---------- */

.how-rows { border-top: 1px solid var(--line); }

.how-row {
  display: grid;
  grid-template-columns: 96px 1fr 1.4fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.how-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  justify-self: end;
}

.how-num {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  color: var(--gold);
}

.how-row h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
}

.how-row p { color: var(--muted); max-width: 52ch; }

/* ---------- as seen on tv ---------- */

.tv {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.tv-copy h2 { margin-bottom: 20px; }

.tv-copy p { color: var(--muted); max-width: 44ch; }

.tv-sub { margin-top: 16px; }

.tv-caption {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.tv-screens { position: relative; }

.tv-screen {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
}

.tv-screen video,
.tv-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* same VHS scanline treatment as the hero desk */
.tv-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
    rgba(10, 8, 10, 0.22) 0px,
    rgba(10, 8, 10, 0.22) 1px,
    transparent 1px,
    transparent 4px);
  box-shadow: inset 0 0 70px rgba(9, 8, 14, 0.5);
}

.tv-screen-wide { width: 78%; }

.tv-screen-square {
  width: 44%;
  margin-top: -16%;
  margin-left: auto;
  transform: rotate(2deg);
}

/* ---------- lotteries ---------- */

.lotto-box {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: visible;
  box-shadow: var(--shadow-hard);
}

/* coupon-cut divider with punch notches */
.lotto-featured {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: clamp(24px, 4vw, 40px);
  border-bottom: 2px dashed var(--line);
  background-image: linear-gradient(rgba(38, 32, 50, 0.9), rgba(38, 32, 50, 0.9)), url("assets/inspo-gold.jpg");
  background-size: cover;
  background-position: center;
}

.lotto-featured::before,
.lotto-featured::after {
  content: "";
  position: absolute;
  bottom: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
}

.lotto-featured::before { left: -11px; }
.lotto-featured::after { right: -11px; }

.tag-tonight {
  align-self: flex-start;
  padding: 5px 10px;
  background: var(--red-deep);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.lotto-featured-meta { display: flex; flex-direction: column; gap: 6px; }

.lotto-name { font-weight: 700; font-size: 17px; }

.lotto-id { display: flex; flex-direction: column; gap: 4px; }

.lotto-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.lotto-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lotto-pot {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
}

.lotto-pot em { font-style: normal; opacity: 0.55; font-weight: 400; }

.pot-gold { color: var(--gold); }

.pot-xl { font-size: clamp(28px, 4vw, 44px); line-height: 1; }

.lotto-row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 16px clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}

.row-enter {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}

.row-enter:hover { color: var(--gold); }

.lotto-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px clamp(24px, 4vw, 40px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.lotto-contract { color: var(--muted); }

.lotto-row:last-child { border-bottom: none; }
.lotto-row:hover { background: rgba(218, 187, 51, 0.04); }

.lotto-thumb {
  width: 40px;
  height: 56px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--r-thumb);
  transform: rotate(-4deg);
  box-shadow: 0 8px 16px rgba(9, 8, 14, 0.5);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lotto-row:hover .lotto-thumb { transform: rotate(0deg) scale(1.08); }

/* ---------- winners ledger ---------- */

.ledger { overflow-x: auto; }

.ledger-head, .ledger-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr 0.5fr;
  gap: 24px;
  min-width: 680px;
  align-items: center;
}

.ledger-head {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.ledger-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.ledger-row:last-child { border-bottom: none; }

/* empty state: no past winners until the first draw settles */
.ledger-empty {
  min-width: 680px;
  padding: clamp(32px, 5vw, 56px) 0;
}

.ledger-empty-line {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.ledger-empty-sub {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  max-width: 52ch;
}

.mono { font-family: var(--font-mono); font-size: 14px; }

.prize { color: var(--gold); font-weight: 700; }

.proof {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}

.proof:hover { color: var(--gold); }

.ledger-totals {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 72px);
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.total { display: flex; flex-direction: column; gap: 6px; }

.total-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.total-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--gold);
  white-space: nowrap;
}

.total-value em { font-style: normal; opacity: 0.55; font-weight: 400; font-size: 0.7em; }

/* ---------- the pitch ---------- */

.pitch { padding-top: clamp(72px, 10vw, 128px); }

.pitch-line {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.pitch-line + .pitch-line { margin-left: clamp(20px, 6vw, 120px); }

.pitch-line em { font-style: normal; color: var(--gold); }

.pitch-sub {
  margin-top: 36px;
  font-weight: 700;
  font-size: 19px;
  max-width: 48ch;
  color: var(--ink);
}

/* ---------- stats ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

.stat { display: flex; flex-direction: column; gap: 12px; }

.stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--gold);
}

.stat-cap { color: var(--muted); font-size: 15px; max-width: 26ch; }

.stats-foot {
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- winner quotes ---------- */

/* noir photo panel: bg image + shaded scrim, quotes sit on top as cards */
.quotes {
  position: relative;
  margin-top: clamp(72px, 10vw, 128px);
  padding: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 48px);
}

.quotes::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/noir-couple.jpg");
  background-size: cover;
  background-position: center 30%;
  border-radius: var(--r-card);
  opacity: 0.72;
  filter: saturate(1.05) contrast(1.03);
}

.quotes-shade {
  position: absolute;
  inset: 0;
  border-radius: var(--r-card);
  background: linear-gradient(100deg,
    rgba(29, 27, 38, 0.94) 0%,
    rgba(29, 27, 38, 0.72) 38%,
    rgba(29, 27, 38, 0.5) 62%,
    rgba(29, 27, 38, 0.8) 100%);
}

.quotes-z { position: relative; z-index: 1; }

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.quote {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: rgba(29, 27, 38, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  padding: 28px 30px;
}

.quote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.5;
  color: var(--gold);
  margin-bottom: 24px;
}

.quote p { font-size: 19px; line-height: 1.55; color: var(--ink); }

.quote footer {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.quote footer .mono { color: var(--gold); font-weight: 700; }

/* ---------- the dream ---------- */

.dream {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.dream-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.dream-line {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.dream-line-gold { color: var(--gold); }

.dream-img {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: var(--shadow-hard);
}

.dream-img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
    rgba(10, 8, 10, 0.22) 0px,
    rgba(10, 8, 10, 0.22) 1px,
    transparent 1px,
    transparent 4px);
}

.dream-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- closer ---------- */

/* prestige card: black metal plastic, gold mapped to our one accent */
.prestige-card {
  width: min(380px, 88vw);
  aspect-ratio: 1.586 / 1;
  margin: 0 auto clamp(32px, 4vw, 48px);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 28px);
  text-align: left;
  background:
    radial-gradient(120% 140% at 85% -10%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(135deg, #2a2f3d 0%, #14171f 42%, #05070b 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.18),
              inset 0 0 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  color: #f2eee0;
  overflow: hidden;
}

.pc-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(218, 187, 51, 0.16) 45%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 62%);
  pointer-events: none;
}

.pc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.pc-chip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  width: 38px;
  height: 28px;
  padding: 3px;
  border-radius: 5px;
  background: linear-gradient(155deg, var(--gold), var(--gold-deep));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.pc-chip span { background: rgba(0, 0, 0, 0.25); border-radius: 1px; }

.pc-network {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--gold);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.pc-number {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: clamp(15px, 2.6vw, 20px);
  letter-spacing: 0.08em;
  color: #f2eee0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  margin: 10px 0;
}

.pc-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.pc-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 238, 224, 0.5);
  margin-bottom: 4px;
}

.pc-name { font-weight: 700; font-size: clamp(13px, 2vw, 15px); letter-spacing: 0.03em; }

.pc-right { text-align: right; }

.pc-exp { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.06em; }

.pc-hologram {
  position: absolute;
  right: clamp(20px, 3vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  z-index: 1;
  background: conic-gradient(from 90deg, #ffd76a, #ff9ecb, #7ad7ff, #b3ff9e, #ffd76a);
  opacity: 0.75;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.closer {
  text-align: center;
  padding-bottom: clamp(72px, 10vw, 128px);
}

.closer h2 {
  font-size: clamp(48px, 9vw, 96px);
  margin-bottom: 16px;
}

.closer p { color: var(--muted); margin-bottom: 36px; }

.closer-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* the billboard: deliberate finale, breaks the 96px display ceiling on purpose */
.grq {
  margin-top: 64px;
  transform: skewX(-3deg);
  -webkit-user-select: none;
  user-select: none;
}

.grq-line { display: block; }

.grq-big {
  font-size: clamp(56px, 12.5vw, 168px);
  line-height: 0.94;
  letter-spacing: 0.01em;
  filter: drop-shadow(6px 6px 0 #0f0c07);
}

.grq-token {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(32px, 6.5vw, 96px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
}

/* stroke-less engines get solid gold instead of invisible text */
@supports not (-webkit-text-stroke: 1px black) {
  .grq-token { color: var(--gold); -webkit-text-stroke: 0; }
}

/* ---------- footer ---------- */

.footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 48px) max(48px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: var(--muted); }
.footer-links a { color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

.footer p {
  font-size: 12px;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.7;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- subpages (safety, faq) ---------- */

.subpage {
  max-width: 820px;
  padding-bottom: clamp(72px, 10vw, 128px);
}

.subpage h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin-bottom: 16px;
}

.page-lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.subpage h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin: 0 0 10px;
}

.subpage p {
  color: var(--muted);
  max-width: 68ch;
  margin-bottom: 14px;
}

.subpage p b, .subpage li b { color: var(--ink); }

.subpage ul { list-style: none; margin: 0 0 14px; }

.subpage li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--muted);
  max-width: 68ch;
}

.subpage li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 12px;
  color: var(--gold);
}

.subpage a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.legal-block { border-top: 1px solid var(--line); padding: 26px 0; }

.legal-block:first-of-type { border-top: none; padding-top: 0; }

/* on the results page the countdown sits at the top of a stack of board
   panels, so it takes the card's radius and sticker shadow instead of the
   hero pill shape: one surface language down the whole page. */
.results-chyron {
  margin-bottom: clamp(32px, 4vw, 48px);
  padding: 15px 22px;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-hard);
}

/* faq category tag: spec-sheet label above each question */
.q-tag {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* reassurance line at the hero commitment point */
.micro-note {
  margin: -8px 0 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  max-width: 52ch;
}

/* inert stub toast: tap-visible feedback for pre-launch buttons */
.stub-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  z-index: 70;
  max-width: min(420px, 86vw);
  padding: 12px 18px;
  background: var(--bg-2);
  border: 1px solid var(--gold);
  border-radius: var(--r-thumb);
  box-shadow: var(--shadow-hard);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.stub-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- mobile ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 40px;
  }

  .hero-collage {
    justify-self: center;
    max-width: 440px;
    margin-top: 24px;
  }

  .badge { width: 92px; height: 92px; top: -24px; right: -14px; }
  .badge-text { font-size: 9px; }

  .tv { grid-template-columns: 1fr; }
  .tv-screen-square { margin-top: -10%; }

  .how-row { grid-template-columns: 64px 1fr; }
  .how-row p { grid-column: 2; }
  .how-meta { grid-column: 2; justify-self: start; }

  .lotto-row { grid-template-columns: 48px 1fr; row-gap: 4px; }
  .lotto-pot, .lotto-row .lotto-date, .lotto-row .row-enter { grid-column: 2; justify-self: start; }
  .lotto-row .row-enter { margin-top: 8px; }

  .lotto-featured { flex-direction: column; align-items: flex-start; }

  .stats-grid { grid-template-columns: 1fr; }
  .quotes-grid { grid-template-columns: 1fr; }
  .dream { grid-template-columns: 1fr; }
  .dream-img { max-width: 440px; margin: 0 auto; }
}

@media (max-width: 900px) {
  .nav-serial { display: none; }
}

@media (max-width: 640px) {
  .nav-links { gap: 16px; letter-spacing: 0.1em; }
  .nav-links a[href="#winners"],
  .nav-links a[href$="#winners"] { display: none; }
  .hero-ctas .btn { flex: 1; }
}

@media (max-width: 480px) {
  .nav-links a[href="results.html"] { display: none; }
}

/* touch input: bigger tap targets, pointer-agnostic */
@media (pointer: coarse) {
  .btn { padding: 16px 32px; }
  .btn-sm { padding: 12px 24px; }
  .nav-links a { padding: 10px 0; }
  .footer-links a, .footer-links span { padding: 8px 0; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .badge svg { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .collage-desk, .collage-ticket, .lotto-thumb { transition: none; }
  .btn { transition: none; }
  .stub-toast { transition: none; }
}

/* ============================================================
   RESULTS PAGE: broadcast board
   ============================================================ */

/* ---------- variant B: broadcast board ---------- */

.board-panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-hard);
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 26px;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.board-eyebrow { color: var(--gold); }
.board-draw { color: var(--muted); }

.board-hero { padding: clamp(22px, 3vw, 32px) 0 0; }

.board-hero-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.board-hero-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 96px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--gold);
}

.board-hero-value em {
  font-style: normal;
  font-size: 0.3em;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-left: 8px;
}

.board-hero-note {
  margin-top: 16px;
  color: var(--muted);
  max-width: 52ch;
}

.board-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(24px, 3vw, 32px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.board-stat { display: flex; flex-direction: column; gap: 7px; }

.board-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.board-stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.board-stat-value.pending { color: var(--muted); font-weight: 400; }

.board-proofs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: default;
  transition: border-color 0.2s, color 0.2s;
}

.proof-chip:hover { border-color: var(--gold); color: var(--gold); }

.proof-chip-num { color: var(--gold); font-weight: 700; }

.receipt-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.receipt-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px;
}

.receipt-card-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 10px;
}

.receipt-card-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 6px;
}

.receipt-card p { font-size: 14px; margin: 0; }

@media (max-width: 720px) {
  .board-stats { grid-template-columns: 1fr; gap: 16px; }
  .receipt-cards { grid-template-columns: 1fr; }
}

/* ================= $GRQ functional additions (panel, hero pot/CA, tiers) ================= */
/* hero mechanic tag + live pot */
.hero-tag {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-tag span { color: var(--gold); }
.hero-pot { color: var(--gold); }
.hero-ca {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hero-ca-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-ca-addr {
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  cursor: pointer;
  word-break: break-all;
  text-align: left;
  border-bottom: 1px dashed var(--gold-deep);
  transition: border-color 0.2s;
}
.hero-ca-addr:hover { border-bottom-color: var(--gold); }
.hero-ca-link {
  font-family: var(--font-mono);
  color: var(--muted);
  text-decoration: none;
}
.hero-ca-link:hover { color: var(--gold); }
/* ---------- interactive play panel ($GRQ additions) ---------- */
.btn-wide { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; transform: none; }
.play-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.play-pot {
  display: flex; flex-direction: column; gap: 10px; padding: 30px; border: 1px solid var(--line);
  border-radius: var(--r-card); background: var(--bg-2); box-shadow: var(--shadow-hard);
}
.play-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.play-amt { font-family: var(--font-display); font-size: clamp(48px, 7vw, 82px); line-height: 1; }
.play-amt em { font-style: normal; font-size: 0.34em; color: var(--gold); }
.play-sub { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.play-pot .chyron { align-self: flex-start; }
.pos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; padding-top: 20px; }
.pos-cell { border: 1px solid var(--line); border-radius: var(--r-thumb); padding: 12px; text-align: center; }
.pos-v { display: block; font-family: var(--font-display); font-size: 20px; color: var(--gold); }
.pos-k { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.panel {
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-2); padding: 22px;
  box-shadow: var(--shadow-hard); display: flex; flex-direction: column; justify-content: center;
}
#panel-connect { display: flex; flex-direction: column; gap: 16px; text-align: center; }
.panel-hello { color: var(--muted); font-size: 15px; }
.tabs { display: flex; gap: 6px; background: rgba(0,0,0,0.28); border-radius: 999px; padding: 5px; margin-bottom: 18px; }
.tab {
  flex: 1; font-family: var(--font-body); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--muted); background: transparent; border: none; border-radius: 999px; padding: 11px; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.tab.on { color: var(--gold-ink); background: var(--gold); }
.field { display: flex; gap: 8px; margin-bottom: 12px; }
.field input {
  flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 16px; padding: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
}
.field input:focus { outline: none; border-color: var(--gold); }
.hint { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.03em; color: var(--muted); margin: -2px 0 14px; }
.hint b { color: var(--gold); }
.status { font-family: var(--font-mono); font-size: 12px; text-align: center; margin-top: 14px; min-height: 15px; color: var(--gold); }
.testbar {
  border: 1px solid var(--gold-deep); background: rgba(218,187,51,0.08); border-radius: 12px; padding: 12px 16px;
  font-size: 12.5px; color: var(--gold); text-align: center; margin-bottom: 24px;
}
.testbar b { color: var(--ink); }
@media (max-width: 860px) { .play-grid { grid-template-columns: 1fr; } }

.tier-row { display: flex; gap: 8px; margin: 0 0 10px; }
.tierbtn { flex: 1; padding: 9px 4px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; transition: all .15s; }
.tierbtn:hover { border-color: var(--gold); }
.tierbtn.on { border-color: var(--gold); color: var(--gold); background: rgba(218,187,51,.10); }
