/* ============================================================================
   Daily Grand Contest — "Midnight Trust" design system
   Layer order: reset → tokens → base → layout → components → utilities → state
   Concept: dark aurora hero/header/footer + light, calm, compliant content body.
   Signature motifs: number-ball gems, aurora mesh, hairline depth.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   0. FONTS (self-hosted variable woff2; one file per family, weight range)
   ------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url("/assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Sora"; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url("/assets/fonts/sora-700.woff2") format("woff2");
}

/* ----------------------------------------------------------------------------
   1. RESET
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
body { min-height: 100svh; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
fieldset { min-inline-size: 0; } /* kill the min-content quirk that breaks grid wrapping on narrow screens */
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; } /* beat component display:flex/grid */
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ----------------------------------------------------------------------------
   2. TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* — Brand / dark surfaces (hero, header, footer) — */
  --ink-900: #0C1016;     /* base charcoal */
  --ink-800: #11161F;
  --ink-700: #151B24;     /* elevated dark */
  --ink-600: #1D2531;
  --ink-500: #2A3340;

  /* — Aurora accent stops — */
  --aurora-teal:   #14C0A8;
  --aurora-cyan:   #2BD4E6;
  --aurora-blue:   #2C6BE6;
  --aurora-violet: #6E5CF0;

  /* — Functional brand — */
  --navy:   #0B2A4A;      /* BC deep navy */
  --teal:   #0E9C8E;      /* Pacific teal (primary action) */
  --teal-deep: #0B7E73;
  --green:  #1FA971;      /* GameSense / success */
  --gold:   #E8B04B;      /* prize accent */
  --gold-deep: #C98E28;
  --danger: #D6453E;
  --warning:#E08A1E;

  /* — Light content surfaces — */
  --bg:        #F6F8FB;   /* page body */
  --surface:   #FFFFFF;   /* cards */
  --surface-2: #EEF2F8;   /* subtle fills */
  --surface-3: #E3EAF3;

  /* — Text — */
  --text:        #14202E; /* ink on light */
  --text-soft:   #44566A;
  --text-faint:  #5C6B7C;
  --on-dark:     #EAF1F8; /* text on dark */
  --on-dark-soft:#9FB1C4;

  /* — Lines — */
  --line:        #DBE3EC; /* hairline on light */
  --line-strong: #C4D0DD;
  --line-dark:   rgba(255,255,255,.10);

  /* — Semantic mapped — */
  --focus: var(--aurora-cyan);

  /* — Type — */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* fluid scale, ratio ~1.25 */
  --fs-300: clamp(.78rem, .76rem + .1vw, .82rem);
  --fs-400: 1rem;
  --fs-500: clamp(1.06rem, 1.01rem + .25vw, 1.2rem);
  --fs-600: clamp(1.25rem, 1.15rem + .5vw, 1.55rem);
  --fs-700: clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --fs-800: clamp(2.05rem, 1.7rem + 1.7vw, 3rem);
  --fs-900: clamp(2.6rem, 2rem + 3vw, 4.4rem);

  /* — Spacing (8px grid) — */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem;
  --sp-9: 6rem; --sp-10: 8rem;

  /* — Radii — */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;

  /* — Elevation (3 levels) — */
  --sh-1: 0 1px 2px rgba(11,42,74,.06), 0 2px 8px rgba(11,42,74,.05);
  --sh-2: 0 6px 18px rgba(11,42,74,.09), 0 2px 6px rgba(11,42,74,.06);
  --sh-3: 0 22px 48px rgba(11,42,74,.16), 0 8px 18px rgba(11,42,74,.08);
  --sh-glow: 0 14px 40px rgba(20,192,168,.30);

  /* — Motion — */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .16s; --t: .26s; --t-slow: .5s;

  --container: 1180px;
  --header-h: 68px;
}

/* ----------------------------------------------------------------------------
   3. BASE
   ------------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-400);
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
h1 { font-size: var(--fs-900); letter-spacing: -.03em; }
h2 { font-size: var(--fs-800); }
h3 { font-size: var(--fs-600); }
h4 { font-size: var(--fs-500); }
p { color: var(--text-soft); }
strong { color: var(--text); font-weight: 600; }
small { font-size: var(--fs-300); }
::selection { background: var(--aurora-teal); color: #04201c; }

/* Inline icon default — every Lucide SVG uses currentColor; size via em so it
   tracks the text it sits beside. Specific components override below. */
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.18em; stroke-width: 2; }

/* ----------------------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-4); }
@media (min-width: 768px) { .container { padding-inline: var(--sp-6); } }

.section { padding-block: clamp(var(--sp-7), 4vw + 1rem, var(--sp-9)); }
.section--tight { padding-block: var(--sp-7); }
.section--dark { background: var(--ink-900); color: var(--on-dark); }
.section--dark :is(h1, h2, h3, h4) { color: #fff; }
.section--alt { background: linear-gradient(180deg, var(--surface-2), var(--bg)); }

.stack > * + * { margin-top: var(--sp-4); }
.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.skip-link {
  position: absolute; left: var(--sp-3); top: -120%; z-index: 200;
  background: var(--navy); color: #fff; padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm); font-weight: 600; box-shadow: var(--sh-3);
}
.skip-link:focus { top: var(--sp-3); }

/* Section heading block */
.sect-head { max-width: 62ch; margin-bottom: var(--sp-6); }
.sect-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-300);
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep);
  margin-bottom: var(--sp-3);
}
.section--dark .eyebrow { color: var(--aurora-cyan); }
.sect-head p { font-size: var(--fs-500); margin-top: var(--sp-3); }

/* ----------------------------------------------------------------------------
   5. COMPONENTS
   ------------------------------------------------------------------------- */

/* — Buttons — */
.btn {
  --btn-bg: var(--teal); --btn-fg: #042b27;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: 0 var(--sp-5);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-400);
  color: var(--btn-fg); background: var(--btn-bg);
  border-radius: var(--r-pill); position: relative; overflow: hidden;
  transition: transform var(--t) var(--ease-out), box-shadow var(--t), background var(--t);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-glow); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.15em; height: 1.15em; }
/* shine sweep */
.btn::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
}
.btn:hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }
.btn--lg { min-height: 56px; padding: 0 var(--sp-6); font-size: var(--fs-500); }
.btn--primary { --btn-bg: linear-gradient(135deg, var(--aurora-teal), var(--teal)); --btn-fg: #04231f; }
.btn--gold { --btn-bg: linear-gradient(135deg, #F4C76A, var(--gold)); --btn-fg: #3a2706; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--teal); transform: translateY(-2px); }
.btn--on-dark { --btn-fg: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.btn--on-dark:hover { box-shadow: inset 0 0 0 1.5px var(--aurora-cyan); }
.btn--block { width: 100%; }

/* — Cards — */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-6);
  box-shadow: var(--sh-1); transition: transform var(--t) var(--ease-out), box-shadow var(--t), border-color var(--t);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--line-strong); }
.card__icon {
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: var(--r-md); margin-bottom: var(--sp-4);
  background: linear-gradient(135deg, rgba(20,192,168,.16), rgba(44,107,230,.14));
  color: var(--teal-deep);
}
.card__icon .icon { width: 26px; height: 26px; }
.card h3 { font-size: var(--fs-500); }
.card p { margin-top: var(--sp-2); font-size: var(--fs-400); }

/* — Number-ball gem (signature motif) — */
.ball {
  --ball-c1: var(--aurora-cyan); --ball-c2: var(--aurora-blue);
  display: inline-grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; font-family: var(--font-display); font-weight: 800;
  font-size: 1.3rem; color: #04181f; position: relative; flex: none;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.95), rgba(255,255,255,0) 42%),
    radial-gradient(circle at 50% 55%, var(--ball-c1), var(--ball-c2));
  box-shadow: 0 4px 10px rgba(20,40,74,.22);
}
.ball::after { content: ""; position: absolute; top: 15%; left: 24%; width: 26%; height: 20%; border-radius: 50%; background: rgba(255,255,255,.55); filter: blur(2px); }
.ball--grand { --ball-c1: #F6CE7A; --ball-c2: var(--gold-deep); color: #3a2706; }
.ball--sm { width: 40px; height: 40px; font-size: 1rem; }
.ball--lg { width: 72px; height: 72px; font-size: 1.7rem; }

/* — Prize cards — */
.prize {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  padding: var(--sp-6); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-2);
}
.prize--feature {
  color: var(--on-dark); border-color: transparent;
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(20,192,168,.28), transparent 55%),
    radial-gradient(120% 160% at 100% 100%, rgba(110,92,240,.30), transparent 55%),
    var(--ink-700);
}
.prize--feature h3, .prize--feature .prize__reward { color: #fff; }
.prize__tier { display: inline-flex; align-items: center; gap: var(--sp-2); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-300); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); }
.prize--feature .prize__tier { color: var(--gold); }
.prize__reward { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-700); color: var(--navy); margin-top: var(--sp-3); line-height: 1.05; }
.prize__lump { color: var(--text-faint); margin-top: var(--sp-2); }
.prize--feature .prize__lump { color: var(--on-dark-soft); }
.prize__match { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line); color: var(--text-soft); font-size: var(--fs-400); }
.prize--feature .prize__match { border-top-color: var(--line-dark); color: var(--on-dark-soft); }

/* — Pills / badges — */
.badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill);
  font-size: var(--fs-300); font-weight: 600; line-height: 1.4;
  background: var(--surface-2); color: var(--text-soft);
}
.badge .icon { width: 1em; height: 1em; }
.badge--age { background: var(--navy); color: #fff; }
.badge--green { background: rgba(31,169,113,.14); color: #0c7a4f; }
.badge--gold { background: rgba(232,176,75,.18); color: #97670f; }
.badge--ghost-dark { background: rgba(255,255,255,.07); color: var(--on-dark); border: 1px solid var(--line-dark); }

/* — Trust pillars — */
.pillar { display: flex; gap: var(--sp-4); align-items: flex-start; }
.pillar__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: var(--r-md); background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); color: var(--aurora-cyan); }
.pillar__icon .icon { width: 22px; height: 22px; }
.pillar h3 { font-size: var(--fs-500); color: #fff; }
.pillar p { color: var(--on-dark-soft); font-size: var(--fs-400); margin-top: var(--sp-1); }

/* — Steps (how it works) — */
.step { position: relative; padding-left: calc(var(--sp-7) + var(--sp-1)); }
.step__num {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px;
  display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--aurora-blue), var(--aurora-violet));
  box-shadow: 0 6px 16px rgba(44,107,230,.35);
}
.step h3 { font-size: var(--fs-500); }
.step p { margin-top: var(--sp-2); }

/* — Accordion (FAQ) — */
.accordion { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.accordion + .accordion { margin-top: var(--sp-3); }
.accordion__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5); text-align: left; font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-500); color: var(--navy);
}
.accordion__btn .icon { width: 22px; height: 22px; color: var(--teal); transition: transform var(--t) var(--ease); flex: none; }
.accordion__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t) var(--ease); }
.accordion__panel > div { overflow: hidden; }
.accordion__btn[aria-expanded="true"] + .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel p { padding: 0 var(--sp-5) var(--sp-5); }

/* — Tabs — */
.tabs__list { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.tabs__tab { padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill); font-weight: 600; color: var(--text-soft); background: var(--surface-2); transition: var(--t); }
.tabs__tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.tabs__panel[hidden] { display: none; }

/* — Forms — */
.field { display: block; }
.field + .field { margin-top: var(--sp-5); }
/* side-by-side fields share a row — drop the stacking margin so columns align at the top */
@media (min-width: 700px) { .grid--2 > .field + .field { margin-top: 0; } }
.field__label { display: block; font-weight: 600; color: var(--navy); margin-bottom: var(--sp-2); font-size: var(--fs-400); }
.field__hint { color: var(--text-faint); font-size: var(--fs-300); margin-top: var(--sp-2); }
.input, .select {
  width: 100%; min-height: 50px; padding: 0 var(--sp-4); font-size: var(--fs-400);
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color var(--t), box-shadow var(--t);
}
textarea.input { padding-top: var(--sp-3); min-height: 120px; resize: vertical; }
.input:focus, .select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14,156,142,.16); }
.input::placeholder { color: var(--text-faint); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: var(--fs-300); margin-top: var(--sp-2); font-weight: 600; }
.checkrow { display: flex; gap: var(--sp-3); align-items: flex-start; }
.checkrow input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.checkrow label { font-size: var(--fs-400); color: var(--text-soft); }
fieldset { border: 0; padding: 0; }

/* — Number picker — */
.picker__grid { display: grid; grid-template-columns: repeat(auto-fit, 44px); justify-content: center; gap: var(--sp-2); }
@media (min-width: 560px) { .picker__grid { grid-template-columns: repeat(auto-fit, 50px); gap: var(--sp-3); } }
.pick { max-width: 50px; }
.pick {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-400);
  background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--navy);
  transition: transform var(--t-fast) var(--ease-out), background var(--t), color var(--t), border-color var(--t);
}
.pick:hover { transform: scale(1.08); border-color: var(--teal); }
.pick[aria-pressed="true"] {
  color: #04181f; border-color: transparent;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.95), rgba(255,255,255,0) 40%),
    radial-gradient(circle at 50% 55%, var(--aurora-cyan), var(--aurora-blue));
  box-shadow: 0 3px 9px rgba(20,40,74,.30);
}
.pick--grand[aria-pressed="true"] {
  color: #3a2706;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.95), rgba(255,255,255,0) 40%),
    radial-gradient(circle at 50% 55%, #F6CE7A, var(--gold-deep));
}
.pick:disabled { opacity: .4; cursor: not-allowed; }

/* — Countdown — */
.countdown { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.cd-unit { text-align: center; min-width: 64px; padding: var(--sp-3); border-radius: var(--r-md); background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); }
.cd-unit b { font-family: var(--font-display); font-size: var(--fs-700); color: #fff; font-variant-numeric: tabular-nums; display: block; line-height: 1; }
.cd-unit span { font-size: var(--fs-300); color: var(--on-dark-soft); text-transform: uppercase; letter-spacing: .08em; }

/* — Marquee — */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: var(--sp-7); width: max-content; animation: marquee 32s linear infinite; }
.marquee__track > * { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--on-dark-soft); font-weight: 600; white-space: nowrap; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* — Callout / note — */
.note { display: flex; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); background: var(--surface-2); border-left: 4px solid var(--teal); }
.note .icon { width: 22px; height: 22px; color: var(--teal-deep); flex: none; margin-top: 2px; }
.note--gold { border-left-color: var(--gold); background: rgba(232,176,75,.10); }
.note--gold .icon { color: var(--gold-deep); }

/* — Prose (legal / article) — */
.prose { max-width: 75ch; }
.prose h2 { font-size: var(--fs-600); margin-top: var(--sp-7); }
.prose h3 { font-size: var(--fs-500); margin-top: var(--sp-5); }
.prose p, .prose li { color: var(--text-soft); }
.prose p + p { margin-top: var(--sp-4); }
.prose ul, .prose ol { margin-top: var(--sp-4); padding-left: var(--sp-5); }
.prose li + li { margin-top: var(--sp-2); }
.prose a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }

/* — Table — */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table.data { width: 100%; border-collapse: collapse; min-width: 480px; }
.data th, .data td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--line); }
.data th { font-family: var(--font-display); font-size: var(--fs-300); text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); background: var(--surface-2); }
.data tr:last-child td { border-bottom: 0; }
.data tbody tr:hover { background: var(--surface-2); }

/* ----------------------------------------------------------------------------
   6. UTILITIES
   ------------------------------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.flow > * + * { margin-top: var(--sp-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.cluster--center { justify-content: center; }
.mt-6 { margin-top: var(--sp-6); }
.mt-5 { margin-top: var(--sp-5); }
.gradient-text { background: linear-gradient(110deg, var(--aurora-cyan), var(--aurora-violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: var(--fs-500); color: var(--text-soft); }
.section--dark .lead { color: var(--on-dark-soft); }

/* ----------------------------------------------------------------------------
   7. STATE / ANIMATION
   ------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* ============================================================================
   8. CHROME — brand, header, nav, footer
   ========================================================================== */

/* — Brand mark (signature number balls) — */
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); }
.brand__logo { height: 52px; width: auto; flex: none; }
.brand__logo--lg { display: block; height: 88px; margin-inline: auto; filter: drop-shadow(0 8px 20px rgba(0,0,0,.45)); }
.brand__mark { display: inline-flex; }
.brand__ball {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: .95rem; color: #04181f;
  background: radial-gradient(circle at 32% 28%, #fff, var(--aurora-cyan) 42%, var(--aurora-blue));
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.2), 0 4px 10px rgba(20,40,74,.3);
}
.brand__ball--grand { margin-left: -12px; color: #3a2706; background: radial-gradient(circle at 32% 28%, #fff, #F6CE7A 42%, var(--gold-deep)); }
.brand__mark--lg .brand__ball { width: 52px; height: 52px; font-size: 1.4rem; }
.brand__mark--lg .brand__ball--grand { margin-left: -16px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: #fff; letter-spacing: -.02em; }
.brand__text small { font-size: .72rem; color: var(--on-dark-soft); letter-spacing: .04em; }

/* — Header — */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12,16,22,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
  transition: background var(--t), box-shadow var(--t);
}
.site-header.is-stuck { background: rgba(12,16,22,.95); box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.site-header__bar { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header-h); }
.nav { display: none; margin-inline: auto; }
.nav__list { display: flex; gap: var(--sp-1); }
.nav__link {
  display: inline-flex; align-items: center; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  color: var(--on-dark-soft); font-weight: 500; font-size: .95rem; transition: color var(--t), background var(--t);
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav__link[aria-current="page"] { color: #fff; }
.nav__link[aria-current="page"]::after { content: ""; }
.site-header__actions { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }
.nav__login { display: none; }
/* On the narrowest screens the header CTA lives in the mobile menu instead */
.site-header__actions > .btn--primary { display: none; }
@media (min-width: 560px) { .site-header__actions > .btn--primary { display: inline-flex; } }
.nav-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-sm); color: #fff; border: 1px solid var(--line-dark); }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle:hover { background: rgba(255,255,255,.06); }

@media (min-width: 980px) {
  .nav { display: block; }
  .nav__login { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* — Mobile nav sheet — */
.mobile-nav {
  position: fixed; inset: 0; z-index: 150; background: var(--ink-900);
  display: flex; flex-direction: column; padding-block: var(--sp-4);
  opacity: 0; transition: opacity var(--t) var(--ease); color: var(--on-dark);
}
.mobile-nav.is-open { opacity: 1; }
.mobile-nav[hidden] { display: none; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav__body { margin-top: var(--sp-5); }
.mobile-nav__body ul { display: flex; flex-direction: column; }
.mobile-nav__body li { border-bottom: 1px solid var(--line-dark); }
.mobile-nav__body a { display: block; padding: var(--sp-4) 0; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--on-dark); }
.mobile-nav__body a[aria-current="page"] { color: var(--aurora-cyan); }
.mobile-nav__cta { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
.mobile-nav__note { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-5); color: var(--on-dark-soft); }
.mobile-nav__note .icon { width: 18px; height: 18px; }
body.nav-open { overflow: hidden; }

/* — Footer — */
.site-footer { background: var(--ink-900); color: var(--on-dark-soft); padding-block: var(--sp-8) var(--sp-6); }
.site-footer__top { display: grid; gap: var(--sp-7); }
.site-footer__brand p { margin-top: var(--sp-4); color: var(--on-dark-soft); max-width: 42ch; }
.footer-badges { margin-top: var(--sp-4); }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.footer-col h3 { font-size: var(--fs-300); text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: var(--sp-3); }
.footer-col ul { display: grid; gap: var(--sp-2); }
.footer-col a { display: inline-block; padding-block: 3px; color: var(--on-dark-soft); transition: color var(--t); }
.footer-col a:hover { color: #fff; }
.site-footer__support { display: grid; gap: var(--sp-5); margin-top: var(--sp-7); padding-block: var(--sp-6); border-block: 1px solid var(--line-dark); }
.footer-label { display: block; font-size: var(--fs-300); text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-soft); margin-bottom: var(--sp-2); }
.footer-strong { display: inline-flex; align-items: center; gap: var(--sp-2); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-600); color: #fff; }
.footer-strong .icon { width: 22px; height: 22px; color: var(--aurora-cyan); }
.site-footer__support small { display: block; margin-top: var(--sp-1); }
.footer-link { display: inline-flex; align-items: center; gap: var(--sp-1); margin-top: var(--sp-2); font-weight: 600; color: var(--aurora-cyan); }
.footer-link .icon { width: 15px; height: 15px; }
.footer-link:hover { color: #fff; }
.site-footer__legal { margin-top: var(--sp-6); font-size: var(--fs-300); line-height: 1.7; }
.site-footer__copy { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line-dark); }
.site-footer__copy a:hover { color: #fff; }
.trust__grid { gap: var(--sp-6); }

/* footer trust badges + payment methods strip */
.site-footer__assure { display: flex; flex-wrap: wrap; gap: var(--sp-5); align-items: center; justify-content: space-between; margin-top: var(--sp-6); padding-block: var(--sp-6); border-top: 1px solid var(--line-dark); }
.footer-trust { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.fbadge { display: inline-grid; place-items: center; height: 50px; min-width: 64px; padding: 0 var(--sp-4); background: #fff; border-radius: var(--r-sm); box-shadow: var(--sh-1); }
a.fbadge { transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
a.fbadge:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
/* one height for every tile; cap width so wide logos (gambling help, paypal) stay contained, not sprawling */
.fbadge img { max-height: 30px; max-width: 104px; width: auto; }
.fbadge__txt { font-family: var(--font-display); font-weight: 800; font-size: .95rem; letter-spacing: -.01em; color: var(--navy); white-space: nowrap; }
.fbadge--age { background: var(--navy); min-width: 46px; padding: 0 var(--sp-3); }
.fbadge--age .fbadge__txt { color: #fff; }
.footer-pay { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
.footer-pay__label { font-size: var(--fs-300); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--on-dark-soft); }
.footer-pay__list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.fbadge--pay { height: 50px; min-width: 60px; padding: 0 var(--sp-4); }
.fbadge--pay img { max-height: 28px; max-width: 100px; }
.fbadge--dark { background: var(--ink-700); box-shadow: inset 0 0 0 1px var(--line-dark); }
@media (max-width: 700px) { .site-footer__assure { flex-direction: column; align-items: flex-start; } }

@media (min-width: 720px) {
  .site-footer__support { grid-template-columns: 1fr 1fr; }
  .site-footer__nav { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .site-footer__top { grid-template-columns: 1.2fr 2fr; gap: var(--sp-8); }
}

/* ============================================================================
   9. HERO (aurora — signature first screen)
   ========================================================================== */
.hero { position: relative; background: var(--ink-900); color: var(--on-dark); overflow: hidden; padding-block: var(--sp-8) var(--sp-9); isolation: isolate; }
.hero__aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(46% 50% at 14% 8%, rgba(20,192,168,.34), transparent 60%),
    radial-gradient(46% 52% at 88% 14%, rgba(110,92,240,.30), transparent 60%),
    radial-gradient(60% 60% at 60% 100%, rgba(44,107,230,.26), transparent 60%);
  filter: saturate(1.1);
}
.hero__grid { position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 78%); mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 78%);
}
.hero__noise { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__photo { position: absolute; inset: 0; z-index: -4; width: 100%; height: 100%; object-fit: cover; }
.hero__veil { position: absolute; inset: 0; z-index: -3; background: linear-gradient(180deg, rgba(12,16,22,.80), rgba(12,16,22,.92)); }

/* twinkling starfield — two offset layers shimmer independently over the photo */
.hero__stars { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero__stars::before, .hero__stars::after {
  content: ""; position: absolute; inset: 0; background-repeat: no-repeat;
  -webkit-mask-image: radial-gradient(100% 75% at 50% 0%, #000 55%, transparent 100%);
          mask-image: radial-gradient(100% 75% at 50% 0%, #000 55%, transparent 100%);
  animation: twinkle 5s ease-in-out infinite;
}
.hero__stars::before {
  background-image:
    radial-gradient(1.5px 1.5px at 8% 18%, rgba(255,255,255,.95), transparent),
    radial-gradient(1px 1px   at 22% 42%, rgba(43,212,230,.85), transparent),
    radial-gradient(1.5px 1.5px at 34% 12%, rgba(255,255,255,.85), transparent),
    radial-gradient(1px 1px   at 47% 30%, rgba(255,255,255,.75), transparent),
    radial-gradient(1.5px 1.5px at 63% 16%, rgba(110,150,255,.85), transparent),
    radial-gradient(1px 1px   at 78% 38%, rgba(255,255,255,.9), transparent),
    radial-gradient(1.5px 1.5px at 90% 22%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px   at 95% 50%, rgba(20,192,168,.85), transparent);
}
.hero__stars::after {
  animation-delay: 2.5s; animation-duration: 6.5s;
  background-image:
    radial-gradient(1px 1px   at 14% 55%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 28% 8%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px   at 41% 48%, rgba(43,212,230,.8), transparent),
    radial-gradient(1.5px 1.5px at 55% 24%, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px   at 69% 44%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 84% 10%, rgba(110,150,255,.8), transparent),
    radial-gradient(1px 1px   at 88% 60%, rgba(255,255,255,.75), transparent),
    radial-gradient(1px 1px   at 5% 38%, rgba(255,255,255,.7), transparent);
}
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero__stars::before, .hero__stars::after { animation: none; opacity: .8; }
}
.hero__inner { display: grid; gap: var(--sp-7); align-items: center; }
.hero__inner > * { min-width: 0; }

/* reusable media figure (content images) */
.figure { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); border: 1px solid var(--line); background: var(--surface-2); }
.figure img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.figure--wide img { aspect-ratio: 21 / 9; }
.section--dark .figure { border-color: var(--line-dark); }
.hero__eyebrow { margin-bottom: var(--sp-4); }
.hero h1 { color: #fff; }
.hero h1 .gradient-text { display: inline; }
.hero__sub { font-size: var(--fs-500); color: var(--on-dark-soft); max-width: 46ch; margin-top: var(--sp-4); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero__assure { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-6); color: var(--on-dark-soft); font-size: var(--fs-300); }
.hero__assure span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.hero__assure .icon { width: 16px; height: 16px; color: var(--aurora-cyan); }

/* Hero showcase card (prize + balls) */
.hero__card { position: relative; padding: var(--sp-6); border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid var(--line-dark);
  box-shadow: var(--sh-3); backdrop-filter: blur(6px); }
.hero__card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.hero__card-label { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-300); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.hero__card-prize { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-800); color: #fff; line-height: 1.04; margin-top: var(--sp-3); }
.hero__card-sub { color: var(--on-dark-soft); margin-top: var(--sp-2); }
.hero__balls { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); flex-wrap: wrap; }
.hero__card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--line-dark); font-size: var(--fs-300); color: var(--on-dark-soft); }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; gap: var(--sp-8); }
}

/* floating animation for hero balls */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.hero__balls .ball { animation: floaty 4s var(--ease) infinite; }
.hero__balls .ball:nth-child(2) { animation-delay: .3s; }
.hero__balls .ball:nth-child(3) { animation-delay: .6s; }
.hero__balls .ball:nth-child(4) { animation-delay: .9s; }
.hero__balls .ball:nth-child(5) { animation-delay: 1.2s; }
.hero__balls .ball:nth-child(6) { animation-delay: 1.5s; }
@media (prefers-reduced-motion: reduce) { .hero__balls .ball { animation: none; } }

/* ============================================================================
   10. OVERLAYS — age gate, cookie, to-top
   ========================================================================== */
.age-gate, .cookie { position: fixed; z-index: 200; }
.age-gate { inset: 0; display: grid; place-items: center; padding: var(--sp-4);
  background: rgba(8,11,16,.72); backdrop-filter: blur(6px); }
.age-gate[hidden] { display: none; }
.age-gate__card { position: relative; width: min(440px, 100%); text-align: center;
  background: var(--ink-700); color: var(--on-dark); border: 1px solid var(--line-dark);
  border-radius: var(--r-lg); padding: var(--sp-7) var(--sp-6); box-shadow: var(--sh-3);
  animation: pop var(--t) var(--ease-out); }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.age-gate__card .brand__mark { justify-content: center; }
.age-gate__badge { margin-top: var(--sp-4); }
.age-gate__card h2 { color: #fff; margin-top: var(--sp-3); }
.age-gate__card p { color: var(--on-dark-soft); margin-top: var(--sp-3); }
.age-gate__card p strong { color: #fff; }
.age-gate__actions { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
.age-gate__fine { font-size: var(--fs-300); margin-top: var(--sp-5); }

.cookie { left: 0; right: 0; bottom: 0; background: var(--ink-700); color: var(--on-dark);
  border-top: 1px solid var(--line-dark); box-shadow: 0 -10px 40px rgba(0,0,0,.4);
  transform: translateY(110%); transition: transform var(--t) var(--ease-out); }
.cookie.is-open { transform: translateY(0); }
.cookie[hidden] { display: none; }
.cookie__inner { display: grid; gap: var(--sp-5); padding-block: var(--sp-5); }
.cookie__text h2 { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-500); color: #fff; }
.cookie__text h2 .icon { width: 20px; height: 20px; color: var(--aurora-cyan); }
.cookie__text p { color: var(--on-dark-soft); margin-top: var(--sp-2); font-size: var(--fs-400); }
.cookie__text a { color: var(--aurora-cyan); text-decoration: underline; }
.cookie__options { display: grid; gap: var(--sp-3); }
.cookie__opt { display: flex; gap: var(--sp-3); align-items: flex-start; }
.cookie__opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.cookie__opt span { display: flex; flex-direction: column; }
.cookie__opt strong { color: #fff; }
.cookie__opt small { color: var(--on-dark-soft); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2); }
.cookie__actions .btn { flex: 1 1 auto; }

@media (min-width: 860px) {
  .cookie__inner { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .cookie__actions { justify-content: flex-end; }
  .cookie__actions .btn { flex: 0 0 auto; }
}

.to-top { position: fixed; right: var(--sp-4); bottom: calc(var(--sp-4) + env(safe-area-inset-bottom)); z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; box-shadow: var(--sh-3);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity var(--t), transform var(--t), visibility var(--t); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal-deep); }
.to-top .icon { width: 22px; height: 22px; }

/* — Play modal — */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--sp-4); background: rgba(8,11,16,.72); backdrop-filter: blur(6px); }
.modal__card { position: relative; width: min(440px, 100%); text-align: center; background: var(--ink-700); color: var(--on-dark); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: var(--sp-7) var(--sp-6); box-shadow: var(--sh-3); animation: pop var(--t) var(--ease-out); }
.modal__balls { display: inline-flex; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.modal__card h2 { color: #fff; margin-top: var(--sp-3); }
.modal__card p { color: var(--on-dark-soft); margin-top: var(--sp-3); }
.modal__actions { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
.modal__fine { font-size: var(--fs-300); margin-top: var(--sp-5); }
.modal__close { position: absolute; top: var(--sp-3); right: var(--sp-3); width: 40px; height: 40px; display: grid; place-items: center; color: var(--on-dark-soft); border-radius: var(--r-sm); }
.modal__close:hover { background: rgba(255,255,255,.06); color: #fff; }
.modal__close .icon { width: 22px; height: 22px; }

/* disabled buttons (e.g. picker Continue before a line is complete) */
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn:disabled::after { display: none; }

/* ============================================================================
   11. PAGE LAYOUTS — register/upload grid, file upload zone
   ========================================================================== */
.reg-grid { display: grid; gap: var(--sp-6); align-items: start; }
.reg-grid > * { min-width: 0; } /* let scroll-table children shrink, no page overflow */
@media (min-width: 920px) { .reg-grid { grid-template-columns: 1.5fr .9fr; gap: var(--sp-7); } }

/* file upload */
.upload { position: relative; }
.upload__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload__input:focus-visible + .upload__drop { outline: 3px solid var(--focus); outline-offset: 2px; }
.upload__drop {
  display: grid; place-items: center; gap: var(--sp-2); text-align: center;
  padding: var(--sp-7) var(--sp-5); border: 2px dashed var(--line-strong); border-radius: var(--r-md);
  background: var(--surface-2); transition: border-color var(--t), background var(--t);
}
.upload__drop .icon { width: 30px; height: 30px; color: var(--teal-deep); }
.upload__strong { font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.upload.is-drag .upload__drop { border-color: var(--teal); background: rgba(14,156,142,.08); }
.upload.has-files .upload__drop { border-color: var(--green); }
.upload__list { margin-top: var(--sp-3); display: grid; gap: var(--sp-2); }
.upload__list li { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); background: rgba(31,169,113,.10); border-radius: var(--r-sm); font-size: var(--fs-300); color: #0c7a4f; font-weight: 600; }

/* ============================================================================
   12. LOTTERIES — accent-driven game cards (--acc1/--acc2 set inline per card)
   ========================================================================== */
.lotto-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-5); }
.lotto-grid > .lotto-card { flex: 1 1 300px; max-width: 380px; }

.lotto-card {
  --acc1: var(--aurora-teal); --acc2: var(--aurora-blue);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-6); box-shadow: var(--sh-1);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t), border-color var(--t);
}
.lotto-card::before { /* accent top edge */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--acc1), var(--acc2));
}
.lotto-card::after { /* soft corner glow */
  content: ""; position: absolute; top: -40%; right: -30%; width: 70%; height: 80%;
  background: radial-gradient(circle, color-mix(in srgb, var(--acc1) 22%, transparent), transparent 70%);
  pointer-events: none; opacity: .8;
}
.lotto-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: color-mix(in srgb, var(--acc1) 45%, var(--line)); }
.lotto-card > * { position: relative; z-index: 1; }
.lotto-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.lotto-card__badge { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-md); color: #fff; background: linear-gradient(135deg, var(--acc1), var(--acc2)); box-shadow: 0 6px 16px color-mix(in srgb, var(--acc1) 35%, transparent); }
.lotto-card__badge .icon { width: 24px; height: 24px; }
.lotto-card__price { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-300); color: var(--text-faint); }
.lotto-card__price b { display: block; font-size: var(--fs-600); color: var(--navy); line-height: 1; }
.lotto-card__name { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-600); color: var(--navy); margin-top: var(--sp-4); letter-spacing: -.02em; }
.lotto-card__headline { font-weight: 700; color: color-mix(in srgb, var(--acc2) 70%, var(--navy)); margin-top: var(--sp-1); }
.lotto-card__sub { margin-top: var(--sp-3); font-size: var(--fs-400); }
.lotto-card__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }
.lotto-card__cta { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.lotto-card__cta a { font-family: var(--font-display); font-weight: 600; color: color-mix(in srgb, var(--acc2) 80%, var(--navy)); display: inline-flex; align-items: center; gap: var(--sp-2); }
.lotto-card__cta a:hover { gap: var(--sp-3); }

.lotto-grid > .lotto-card--flagship { flex: 1 1 100%; max-width: 100%; }
.lotto-card--flagship {
  color: var(--on-dark); border-color: transparent;
  background:
    radial-gradient(90% 130% at 8% 0%, color-mix(in srgb, var(--acc1) 32%, transparent), transparent 55%),
    radial-gradient(90% 130% at 100% 100%, color-mix(in srgb, var(--acc2) 34%, transparent), transparent 55%),
    var(--ink-700);
}
@media (min-width: 1000px) { .lotto-card--flagship { flex-direction: row; align-items: center; gap: var(--sp-7); } .lotto-card--flagship > div { flex: 1; } }
.lotto-card--flagship .lotto-card__name, .lotto-card--flagship .lotto-card__price b { color: #fff; }
.lotto-card--flagship .lotto-card__headline { color: var(--gold); }
.lotto-card--flagship .lotto-card__sub { color: var(--on-dark-soft); }
.lotto-card--flagship .lotto-card__price { color: var(--on-dark-soft); }
.lotto-card--flagship .lotto-card__cta { border-top-color: var(--line-dark); }
.lotto-card--flagship .lotto-card__cta a { color: var(--aurora-cyan); }

/* ============================================================================
   13. RESULTS — winning numbers display
   ========================================================================== */
.result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--sh-1); }
.result__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-2); }
.result__game { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-600); color: var(--navy); }
.result__date { color: var(--text-faint); font-size: var(--fs-300); font-weight: 600; }
.result__balls { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); align-items: center; }
.result__sep { width: 1px; height: 32px; background: var(--line-strong); margin-inline: var(--sp-2); }
.result__extra { display: flex; flex-direction: column; gap: 2px; }
.result__extra span { font-size: var(--fs-300); color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.result__extra b { font-family: var(--font-display); font-size: var(--fs-500); color: var(--navy); }
.result__none { color: var(--text-soft); margin-top: var(--sp-4); }
.past { margin-top: var(--sp-5); border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.past summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: var(--sp-2); list-style: none; }
.past summary::-webkit-details-marker { display: none; }
.past summary .icon { width: 16px; height: 16px; color: var(--teal); }
.past ul { margin-top: var(--sp-3); display: grid; gap: 0; }
.past li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2); font-size: var(--fs-300); padding: var(--sp-2) 0; border-bottom: 1px dashed var(--line); }
.past li:last-child { border-bottom: 0; }
.past li span { color: var(--text-faint); }
.past li b { font-family: var(--font-display); color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ============================================================================
   14. WINNERS — recent winners strip
   ========================================================================== */
.winner { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); }
.winner__mark { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #3a2706; }
.winner__mark .icon { width: 24px; height: 24px; }
.winner__prize { font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: var(--fs-500); }
.winner__who { color: var(--text-soft); margin-top: 2px; }
.winner__meta { color: var(--text-faint); font-size: var(--fs-300); margin-top: var(--sp-1); }

/* ============================================================================
   15. LIMITS DEMO — range controls (Set my limits)
   ========================================================================== */
.limit-row { padding: var(--sp-5) 0; border-bottom: 1px solid var(--line); }
.limit-row:last-child { border-bottom: 0; }
.limit-row__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); }
.limit-row__label { font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.limit-row__val { font-family: var(--font-display); font-weight: 800; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.limit-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin-top: var(--sp-4); border-radius: var(--r-pill); background: var(--surface-3); outline-offset: 4px; }
.limit-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff, var(--aurora-cyan) 45%, var(--aurora-blue)); box-shadow: 0 2px 8px rgba(20,40,74,.3); cursor: pointer; border: 0; }
.limit-range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--aurora-blue); cursor: pointer; border: 0; }

/* ============================================================================
   16. COOKIE re-open control (footer)
   ========================================================================== */
.cookie-reopen { background: none; color: inherit; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: var(--sp-2); }
.cookie-reopen:hover { color: #fff; }
.cookie-reopen .icon { width: 1em; height: 1em; }

/* ============================================================================
   17. JACKPOT TICKER
   ========================================================================== */
.ticker { padding-block: var(--sp-3); border-bottom: 1px solid var(--line-dark); }
.ticker__inner { display: flex; align-items: center; gap: var(--sp-4); }
.ticker__label { display: none; flex: none; align-items: center; gap: var(--sp-2); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-300); text-transform: uppercase; letter-spacing: .08em; color: var(--aurora-cyan); }
.ticker__label .icon { width: 16px; height: 16px; }
.ticker .marquee { flex: 1; min-width: 0; }
.ticker .marquee__track { gap: var(--sp-6); animation-duration: 38s; }
.ticker .marquee__track span .icon { width: 16px; height: 16px; color: var(--aurora-cyan); }
@media (min-width: 560px) { .ticker__label { display: inline-flex; } }

/* estimated-jackpot figure on a game hero */
.game-jackpot { display: flex; flex-direction: column; gap: 2px; margin-top: var(--sp-4); }
.game-jackpot span { font-size: var(--fs-300); text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 700; }
.game-jackpot b { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-800); color: #fff; line-height: 1; letter-spacing: -.02em; }

/* breadcrumb (on dark intro) */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1); margin-bottom: var(--sp-4); font-size: var(--fs-300); font-weight: 600; }
.breadcrumb a { color: var(--on-dark-soft); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .icon { width: 14px; height: 14px; color: var(--on-dark-soft); opacity: .6; }
.breadcrumb span[aria-current] { color: var(--aurora-cyan); }
