/* ════════════════════════════════════════════════════════════
   Crypto Hunter — Black Friday Roulette
   Dark "Asset Recovery" design language (demo_pay):
   near-black surfaces, emerald accent, liquid glass,
   Space Grotesk display + gradient text, noise + ambient orbs.
   ════════════════════════════════════════════════════════════ */

:root {
  /* Colors (demo_pay) */
  --bg: #030304;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-solid: #0a0a0c;
  --border: rgba(255, 255, 255, 0.055);
  --border-strong: rgba(255, 255, 255, 0.1);
  --text: #f5f5f7;
  --text-secondary: #8f99a6;
  --text-muted: #83909f;

  --accent: #10b981;
  --accent-2: #059669;
  --accent-bright: #34d399;
  --accent-soft: rgba(16, 185, 129, 0.1);
  --accent-glow: rgba(16, 185, 129, 0.4);
  --accent-glow-strong: rgba(16, 185, 129, 0.6);

  /* Liquid glass (dark) */
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
  --glass-bg-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.01) 100%);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --blur-glass: 36px;
  --blur-glass-soft: 20px;
  --glass-sat: 190%;

  /* Typography */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, sans-serif;

  /* Radius (demo_pay) */
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-navigation: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 4px 24px var(--accent-glow);
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

::selection { background: rgba(16, 185, 129, 0.35); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3e; }

img, svg, canvas { display: block; }

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

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

/* ── Noise + scroll progress (demo_pay) ─────────────────── */

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  z-index: 1000;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ── Ambient glow: emerald + cyan orbs, perspective grid ── */

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* one composited layer instead of four: orbs + grid + edge fade are
     stacked backgrounds of the same element (much cheaper on scroll) */
  --grid: 64px;
  background-image:
    radial-gradient(ellipse at 68% 24%, rgba(3, 3, 4, 0) 18%, rgba(3, 3, 4, 0.55) 40%, #030304 64%),
    linear-gradient(rgba(52, 211, 153, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 211, 153, 0.055) 1px, transparent 1px),
    radial-gradient(circle 27vmax at 7vmax calc(100% - 7vmax), rgba(6, 182, 212, 0.16), rgba(6, 182, 212, 0) 72%),
    radial-gradient(circle 32vmax at calc(100% - 14vmax) 10vmax, rgba(16, 185, 129, 0.34), rgba(16, 185, 129, 0) 72%);
  background-size:
    100% 100%,
    var(--grid) var(--grid),
    var(--grid) var(--grid),
    100% 100%,
    100% 100%;
  background-repeat: no-repeat, repeat, repeat, no-repeat, no-repeat;
}

/* ── Black Friday strip ──────────────────────────────────── */

.strip {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0.04));
  border-bottom: 1px solid rgba(52, 211, 153, 0.22);
  color: #6ee7b7;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: calc(11px + env(safe-area-inset-top)) 16px 11px;
}

.strip__flame {
  color: var(--accent-bright);
  letter-spacing: -0.08em;
  margin-right: 10px;
  font-size: 10px;
  vertical-align: 1px;
  text-shadow: 0 0 12px var(--accent-glow);
}

/* ── Header: liquid glass nav (demo_pay) ────────────────── */

.header {
  position: sticky;
  top: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(var(--glass-sat)) brightness(1.06);
  backdrop-filter: blur(var(--blur-glass)) saturate(var(--glass-sat)) brightness(1.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-navigation), var(--glass-edge);
  padding: 12px 14px 12px 20px;
  margin-top: 20px;
  overflow: hidden;
}

/* specular top edge */
.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 40%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.5) 60%, transparent 100%);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__logo {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
}

.brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;   /* the jpg's black background vanishes on dark */
  transform: scale(1.08);
}

.brand__logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
}

.brand__logo--sm { width: 32px; height: 32px; }

.brand__text { display: flex; flex-direction: column; }

.brand__text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.4px;
}

.brand__text small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ── Buttons (demo_pay: 14px radius, emerald glow, sheen) ─ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  border: none;
  padding: 15px 26px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--primary {
  background: linear-gradient(135deg, #0da271 0%, #047857 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow:
    var(--shadow-primary),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn--primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transition: left 0.6s ease;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px var(--accent-glow-strong),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.btn--primary:hover::before { left: 100%; }
.btn--primary:active { transform: translateY(0) scale(0.98); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn--sm { padding: 10px 18px; font-size: 12px; }

/* ── Badges ──────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  width: fit-content;
}

.badge--dark {
  /* emerald glow pill, demo_pay .demo-availability */
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.045));
  border: 1px solid rgba(52, 211, 153, 0.34);
  color: #c9fbe0;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.11), 0 0 24px rgba(16, 185, 129, 0.12);
}

.badge--dark::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.13), 0 0 14px rgba(52, 211, 153, 0.85);
}

.badge--cream {
  background: rgba(240, 185, 11, 0.1);
  border: 1px solid rgba(240, 185, 11, 0.28);
  color: #fbd968;
  text-shadow: 0 0 14px rgba(240, 185, 11, 0.4);
}

.badge--mint {
  background: var(--accent-soft);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: var(--accent-bright);
}

.badge--live { color: var(--accent-bright); }

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.13), 0 0 14px rgba(52, 211, 153, 0.85);
  animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45), 0 0 14px rgba(52, 211, 153, 0.85); }
  70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0), 0 0 14px rgba(52, 211, 153, 0.85); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0), 0 0 14px rgba(52, 211, 153, 0.85); }
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(36px, 6vw, 72px) 0 8px;
}

.hero__copy { max-width: 520px; }

.hero__copy h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -1.8px;
  margin: 18px 0 16px;
  background: linear-gradient(180deg, #ffffff 0%, #c8c8d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 46ch;
}

.hero__sub strong { color: var(--text); }

.hero__cta { margin-top: 26px; }

/* Countdown */

.countdown { margin-top: 28px; }

.countdown__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.countdown__blocks { display: flex; gap: 10px; }

.countdown__block {
  flex: 1 1 0;
  min-width: 0;
  max-width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card), var(--glass-edge);
  padding: 12px 0;
}

.countdown__block b {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.countdown__block i {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

/* Trust row */

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: 22px;
}

.trust li {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 13px;
  transition: all 0.3s;
}

.trust li:hover {
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--accent-bright);
  background: rgba(16, 185, 129, 0.05);
}

/* ── Wheel ───────────────────────────────────────────────── */

.wheel-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-margin-top: 96px;
}

.wheel__flag {
  position: absolute;
  top: -6px;
  right: 8px;
  z-index: 3;
  transform: rotate(6deg);
}

.wheel-frame {
  position: relative;
  width: min(520px, 100%, 94vw);
  aspect-ratio: 1;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--blur-glass-soft)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--blur-glass-soft)) saturate(var(--glass-sat));
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 50%;
  box-shadow:
    var(--shadow-navigation),
    var(--glass-edge),
    0 0 90px rgba(16, 185, 129, 0.18),
    inset 0 0 50px rgba(16, 185, 129, 0.08);
}

/* specular glare arc, like a screen reflection */
.wheel-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(110% 80% at 16% 6%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 34%),
    radial-gradient(80% 60% at 88% 96%, rgba(52, 211, 153, 0.14), rgba(52, 211, 153, 0) 46%);
  pointer-events: none;
  z-index: 2;
}

.wheel-frame canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* winning glow: a composited CSS ring — the canvas stays static after a spin */
.wheel-win-glow {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  box-shadow:
    0 0 60px var(--win-glow, rgba(52, 211, 153, 0.4)),
    inset 0 0 64px var(--win-glow, rgba(52, 211, 153, 0.28));
}

.wheel-frame.is-win .wheel-win-glow { animation: win-ring 1.7s ease-in-out 3; }

@keyframes win-ring {
  0%, 100% { opacity: 0.12; }
  50%      { opacity: 0.55; }
}

.wheel-pointer {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  z-index: 3;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 14px rgba(52, 211, 153, 0.25));
}

.wheel-pointer svg { width: 100%; height: auto; }

/* slow rotating dashed ring around the SPIN hub */
.wheel-hub {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 24%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px dashed rgba(52, 211, 153, 0.5);
  pointer-events: none;
}

.wheel-btn {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22.5%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid rgba(234, 255, 246, 0.85);
  background: linear-gradient(135deg, #0da271 0%, #047857 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(14px, 2.4vw, 18px);
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow:
    0 6px 26px rgba(16, 185, 129, 0.4),
    inset 0 2px 2px rgba(255, 255, 255, 0.3),
    inset 0 -4px 10px rgba(4, 64, 47, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* travelling specular sheen — the "shine" */
.wheel-btn::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: 0;
  width: 55%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 8%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 92%);
  transform: translateX(-190%) skewX(-20deg);
  animation: sheen-sweep 3.6s cubic-bezier(0.55, 0.1, 0.45, 0.9) 1.2s 3;
  pointer-events: none;
}

@keyframes sheen-sweep {
  0%   { transform: translateX(-190%) skewX(-20deg); }
  55%  { transform: translateX(330%) skewX(-20deg); }
  100% { transform: translateX(330%) skewX(-20deg); }
}

.wheel-btn:disabled { cursor: default; background: #262a30; box-shadow: none; }
.wheel-btn:disabled::after { display: none; }

.wheel-btn:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.045);
  box-shadow:
    0 10px 34px rgba(16, 185, 129, 0.55),
    inset 0 2px 2px rgba(255, 255, 255, 0.35),
    inset 0 -4px 10px rgba(4, 64, 47, 0.5);
}

.wheel-btn:active:not(:disabled) { transform: translate(-50%, -50%) scale(0.97); }

.wheel-btn__loader {
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 42%;
  height: 42%;
  border-radius: 50%;
  border: 3.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: loader-rotate 0.9s linear infinite;
}

.wheel-btn.is-spinning .wheel-btn__label { visibility: hidden; }
.wheel-btn.is-spinning .wheel-btn__loader { display: block; }

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

.wheel-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.wheel-meta__counter {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
}

.wheel-meta__dots { display: flex; gap: 6px; }

.wheel-meta__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.wheel-meta__dots i.on {
  background: var(--accent-bright);
  box-shadow: 0 0 10px var(--accent-glow);
}

.wheel-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 40ch;
}

.wheel-note strong { color: var(--accent-bright); }

.linklike {
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ── Stats ───────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(40px, 6vw, 64px);
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.stat-card b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card i {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

/* ── Sections ────────────────────────────────────────────── */

.section { margin-top: clamp(56px, 8vw, 88px); scroll-margin-top: 96px; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -1.2px;
  background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section__head p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Prizes ──────────────────────────────────────────────── */

.prizes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prizes__row {
  display: grid;
  gap: 14px;
}

.prizes__row--featured,
.prizes__row--mini {
  grid-template-columns: repeat(3, 1fr);
}

/* featured prize cards — real product photos */
.prize-card.prize-card--featured {
  padding: 0;
  overflow: hidden;
  align-items: stretch;
  text-align: left;
  gap: 0;
  background: var(--glass-bg);
}

.prize-card.prize-card--featured::before { display: none; }

.prize-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}

.prize-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 3, 4, 0) 58%, rgba(3, 3, 4, 0.5) 100%);
  pointer-events: none;
}

.prize-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.65s cubic-bezier(0.22, 0.9, 0.3, 1), filter 0.4s ease;
  filter: saturate(1.04) contrast(1.03);
}

.prize-card--featured:hover .prize-card__media img { transform: scale(1.045); }

.prize-card__media .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  margin: 0;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.prize-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 18px 19px;
}

.prize-card.prize-card--featured .prize-card__body b { font-size: clamp(18px, 2vw, 23px); }
.prize-card.prize-card--featured .prize-card__body i { max-width: 32ch; font-size: 12px; }

/* compact crypto cards */
.prize-card.prize-card--mini { padding: 20px 14px 16px; }
.prize-card--mini .coin { width: 44px; height: 44px; font-size: 19px; }
.prize-card--mini b { font-size: 20px; }

.prize-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 14px 18px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.prize-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.prize-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 24px rgba(16, 185, 129, 0.08);
}

.coin {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--coin-bg, var(--accent-soft));
  color: var(--coin-fg, var(--accent-bright));
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 18px rgba(16, 185, 129, 0.1);
  text-shadow: 0 0 12px currentColor;
}

/* real crypto logo images */
.coin--img {
  background: transparent;
  border: none;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.14);
  text-shadow: none;
}

.coin--img img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.prize-card b {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.prize-card i {
  font-style: normal;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 20ch;
}

.tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  margin-top: 2px;
}

.tag--jackpot { background: rgba(247, 147, 26, 0.12); color: #f7a048; border: 1px solid rgba(247, 147, 26, 0.3); text-shadow: 0 0 12px rgba(247, 147, 26, 0.5); }
.tag--rare    { background: rgba(98, 126, 234, 0.12); color: #9BA3FF; border: 1px solid rgba(98, 126, 234, 0.32); text-shadow: 0 0 12px rgba(98, 126, 234, 0.5); }
.tag--common  { background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); border: 1px solid var(--border-strong); }
.tag--mint    { background: var(--accent-soft); color: var(--accent-bright); border: 1px solid rgba(52, 211, 153, 0.3); }
.tag--silver  { background: rgba(201, 212, 227, 0.1); color: #DCE6F5; border: 1px solid rgba(201, 212, 227, 0.35); text-shadow: 0 0 12px rgba(201, 212, 227, 0.4); }

.prize-card--pro {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  text-align: left;
  background:
    radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.14), transparent 45%),
    var(--glass-bg);
  border-color: rgba(52, 211, 153, 0.24);
  gap: 16px;
  padding: 20px 26px;
}

.prize-card--pro b { margin: 0; }

.prize-card--pro i { color: var(--text-secondary); max-width: 44ch; }

/* ── Live wins log ───────────────────────────────────────── */

.log {
  background: var(--bg-card);
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 320px;
}

.log-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 18px;
  animation: row-in 0.35s ease both;
}

@keyframes row-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.log-row__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--accent));
  box-shadow: 0 0 10px var(--dot, var(--accent-glow));
}

.log-row__text {
  flex: 1;
  font-size: 13.5px;
  color: var(--text-secondary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-row__text b { color: var(--text); font-weight: 600; }

.log-row__time {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ── Photo backdrop + orbiting coins around the wheel ───── */

.wheel-backdrop {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  border-radius: 40px;
  opacity: 0.30;
  z-index: -1;
  pointer-events: none;
  filter: saturate(1.15) brightness(0.9);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 72%);
}

.float-coin {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
}

.float-coin img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.28), inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}


.float-coin--gta {
  width: clamp(64px, 10vw, 96px);
  left: -4%;
  top: 12%;
  animation: coin-drift-a 9s ease-in-out infinite;
}

.float-coin--ip {
  width: clamp(46px, 7vw, 66px);
  right: -2%;
  bottom: 22%;
  animation: coin-drift-b 11s ease-in-out infinite;
}

@keyframes coin-drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-10deg); }
  50%      { transform: translate3d(10px, -18px, 0) rotate(-4deg); }
}

@keyframes coin-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(8deg); }
  50%      { transform: translate3d(-9px, 14px, 0) rotate(2deg); }
}

.wheel__flag { animation: flag-bob 5s ease-in-out infinite; }

@keyframes flag-bob {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50%      { transform: rotate(3deg) translateY(-5px); }
}

/* ── Photo marquee ───────────────────────────────────────── */

.marquee {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

.marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-roll 48s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track.is-paused { animation-play-state: paused; }

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

.shot {
  position: relative;
  width: clamp(220px, 26vw, 320px);
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  flex: none;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.shot:hover img { transform: scale(1.06); }

.shot figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #d9ffeb;
  background: rgba(3, 3, 4, 0.6);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}

/* ── Plans: FREE + PRO pricing cards (demo_pay pricing) ─── */

.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 48px 40px 32px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.pcard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.pcard--free {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.07) 0%, rgba(255, 255, 255, 0.012) 100%);
  border-color: rgba(52, 211, 153, 0.22);
}

.pcard--pro {
  border-color: rgba(52, 211, 153, 0.3);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 50px rgba(16, 185, 129, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pcard__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0da271, #047857);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 0 0 14px 14px;
  letter-spacing: 0.8px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.pcard__badge--hot { background: linear-gradient(135deg, #0da271, #047857); }

.pcard__head { text-align: center; margin-bottom: 24px; padding-top: 16px; }

.pcard__head h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.pcard__price s {
  display: block;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 500;
}

.pcard__price b {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -2.5px;
  line-height: 1.1;
  background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pcard--free .pcard__price b {
  background: linear-gradient(180deg, #d9ffeb 0%, #55dca3 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.pcard--pro .pcard__price b {
  background: linear-gradient(180deg, #d9ffeb 0%, #55dca3 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.pcard__price i {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

.pcard__income {
  text-align: center;
  padding: 13px 18px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(16, 185, 129, 0.04));
  border: 1px solid rgba(52, 211, 153, 0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  color: var(--accent-bright);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.06);
}

.pcard__list {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.pcard__list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.pcard__list li:hover { color: var(--text); }
.pcard__list li:last-child { border-bottom: none; }

.check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(52, 211, 153, 0.05));
  border: 1px solid rgba(52, 211, 153, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  font-size: 11px;
  margin-top: 1px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(52, 211, 153, 0.1);
}

.check--off {
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.pcard__dim { color: rgba(255, 255, 255, 0.55); }

.pcard__cta { width: 100%; padding: 16px; font-size: 15px; }

.pcard__fine {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

.pcard__fine b { color: var(--text-secondary); }

/* ── Hero entrance + card stagger ────────────────────────── */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__copy > *,
.wheel-zone > * {
  animation: rise-in 0.7s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

.hero__copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero__copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.19s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.26s; }
.hero__copy > *:nth-child(5) { animation-delay: 0.33s; }
.hero__copy > *:nth-child(6) { animation-delay: 0.40s; }
.wheel-zone > *:nth-child(1) { animation-delay: 0.20s; }
.wheel-zone > *:nth-child(2) { animation-delay: 0.26s; }
.wheel-zone > *:nth-child(3) { animation-delay: 0.30s; }
.wheel-zone > *:nth-child(4) { animation-delay: 0.15s; }
.wheel-zone > *:nth-child(5) { animation-delay: 0.34s; }
.wheel-zone > *:nth-child(6) { animation-delay: 0.38s; }
.wheel-zone > *:nth-child(7) { animation-delay: 0.42s; }

/* staggered cards inside reveal sections */
.js .stat-card,
.js .prize-card,
.js .step-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22, 0.9, 0.3, 1), transform 0.55s cubic-bezier(0.22, 0.9, 0.3, 1), border-color 0.35s, box-shadow 0.35s;
}

.js .active .stat-card,
.js .active .prize-card,
.js .active .step-card {
  opacity: 1;
  transform: translateY(0);
}

.js .active .stat-card:nth-child(2),
.js .active .prize-card:nth-child(2),
.js .active .step-card:nth-child(2) { transition-delay: 0.08s; }

.js .active .stat-card:nth-child(3),
.js .active .prize-card:nth-child(3),
.js .active .step-card:nth-child(3) { transition-delay: 0.16s; }

.js .active .prize-card:nth-child(4) { transition-delay: 0.24s; }
.js .active .prize-card:nth-child(5) { transition-delay: 0.32s; }
.js .active .prize-card:nth-child(6) { transition-delay: 0.40s; }
.js .active .prize-card:nth-child(7) { transition-delay: 0.48s; }

/* ── Steps (demo_pay scan-workflow) ──────────────────────── */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.13), transparent 45%);
  pointer-events: none;
}

.step-card:hover {
  border-color: rgba(16, 185, 129, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 24px rgba(16, 185, 129, 0.08);
}

.step-card__num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0da271, #047857);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 20px var(--accent-glow);
  margin-bottom: 30px;
  overflow: hidden;
}

.step-card__num::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
}

.step-card h3 {
  position: relative;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.step-card p {
  position: relative;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ── FAQ ─────────────────────────────────────────────────── */

.faq { display: grid; gap: 12px; }

.faq details {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 22px;
  transition: border-color 0.3s;
}

.faq details[open] { border-color: rgba(16, 185, 129, 0.18); }

.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  padding: 18px 0;
  transition: color 0.2s ease;
}

.faq summary:hover { color: var(--accent-bright); }

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "−";
  background: var(--accent-soft);
  border-color: rgba(52, 211, 153, 0.3);
  color: var(--accent-bright);
}

.faq details p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  padding: 0 40px 18px 0;
  margin-top: -6px;
}

/* ── Footer ──────────────────────────────────────────────── */

.footer {
  margin-top: clamp(64px, 9vw, 96px);
  padding: 36px 0 calc(44px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.brand--footer { gap: 10px; }

.brand--footer strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
}

.footer__fine {
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 62ch;
}

.footer__nav {
  display: flex;
  gap: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer__nav a { transition: color 0.3s; }
.footer__nav a:hover { color: var(--accent-bright); }

.footer small { font-size: 11.5px; color: var(--text-muted); }

/* ── Result modal: dark liquid glass ─────────────────────── */

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
}

.modal__card {
  position: relative;
  overflow: hidden;
  width: min(420px, 100%);
  background: linear-gradient(180deg, rgba(20, 22, 26, 0.92) 0%, rgba(10, 11, 13, 0.88) 100%);
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(var(--glass-sat)) brightness(1.06);
  backdrop-filter: blur(var(--blur-glass)) saturate(var(--glass-sat)) brightness(1.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-navigation), var(--glass-edge);
  padding: 36px 30px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: modal-in 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.modal__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(52, 211, 153, 0.5) 40%, rgba(255, 255, 255, 0.6) 50%, rgba(52, 211, 153, 0.5) 60%, transparent 100%);
  pointer-events: none;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 1;
}

.modal__close:hover {
  background: var(--accent-soft);
  border-color: rgba(52, 211, 153, 0.3);
  color: var(--accent-bright);
}

.modal__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-bright);
  text-shadow: 0 0 16px var(--accent-glow);
}

.modal__coin {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--coin-bg, var(--accent-soft));
  color: var(--coin-fg, var(--accent-bright));
  font-size: 30px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 26px rgba(16, 185, 129, 0.18);
  text-shadow: 0 0 16px currentColor;
}

.modal__coin--photo {
  width: 84px;
  height: 84px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
  text-shadow: none;
}

.modal__coin--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.modal__card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.8px;
}

.modal__note {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 32ch;
}

.modal__spinid {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.07);
  border: 1.5px dashed rgba(52, 211, 153, 0.4);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
}

.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}

.modal__actions .btn { width: 100%; padding: 14px 22px; font-size: 13px; }

/* ── Confetti canvas ─────────────────────────────────────── */

.confetti {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Reveal on scroll (demo_pay) — only when JS is live ──── */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.js .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ── Liquid glass pass on shared surfaces ────────────────── */

.countdown__block,
.stat-card,
.prize-card,
.log-row,
.faq details,
.btn--ghost,
.modal__close,
.modal__spinid {
  -webkit-backdrop-filter: blur(var(--blur-glass-soft)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--blur-glass-soft)) saturate(var(--glass-sat));
}

/* ── Firefox: backdrop-filter over animated content is the main
      scroll/spin cost there (much slower than in Chromium) ───────── */
@supports (-moz-appearance: none) {
  .header,
  .wheel-frame,
  .modal__card,
  .modal__backdrop,
  .pcard,
  .countdown__block,
  .stat-card,
  .prize-card,
  .log-row,
  .faq details,
  .btn--ghost,
  .modal__close,
  .modal__spinid,
  .prize-card__media .tag {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .header {
    background: linear-gradient(180deg, rgba(18, 24, 22, 0.94), rgba(7, 9, 11, 0.96));
  }

  .wheel-frame {
    background: radial-gradient(circle at 50% 46%, rgba(17, 23, 21, 0.92), rgba(5, 7, 9, 0.97) 74%);
  }

  .modal__backdrop { background: rgba(0, 0, 0, 0.68); }

  /* the full-viewport grain layer is cheap alone, but costs a full-screen
     blend on every scroll frame in Firefox */
  .noise { display: none; }

  /* a fixed five-layer ambient background re-blends the whole viewport on
     every scroll frame in Firefox's software path — keep the two signature
     glows only, drop the tiled grid and the fade layer there */
  .bg-glow {
    background-image:
      radial-gradient(circle 27vmax at 7vmax calc(100% - 7vmax), rgba(6, 182, 212, 0.16), rgba(6, 182, 212, 0) 72%),
      radial-gradient(circle 32vmax at calc(100% - 14vmax) 10vmax, rgba(16, 185, 129, 0.34), rgba(16, 185, 129, 0) 72%);
    background-size: 100% 100%, 100% 100%;
    background-repeat: no-repeat, no-repeat;
  }
}

/* Off-screen sections used to be skipped via content-visibility:auto, but
   Firefox shifted the layout while scrolling (the page height changed under
   the user and anchors overshot). Normal rendering is stable and measurably
   no slower in Firefox, so sections are always laid out. */

/* ── Transparency / contrast preferences ─────────────────── */

@media (prefers-reduced-transparency: reduce) {
  .bg-glow, .noise { display: none; }
  .header, .countdown__block, .stat-card, .prize-card, .log-row,
  .faq details, .btn--ghost, .modal__card, .modal__close,
  .modal__spinid, .wheel-frame, .pcard {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--bg-solid);
  }
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero__copy { max-width: 560px; }
  .wheel-zone { order: 2; }
  .pricing { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .pcard { padding: 44px 28px 26px; }
}

@media (max-width: 700px) {
  /* perf: cheaper glass on phones */
  :root {
    --blur-glass: 18px;
    --blur-glass-soft: 10px;
    --glass-sat: 150%;
  }
  .bg-glow i { animation-duration: 60s; }
  .bg-glow { --grid: 48px; }
  .modal__backdrop { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
  .header { position: static; }
  .strip { font-size: 10.5px; letter-spacing: 0.1em; }
  .header { padding: 12px 14px; gap: 10px; }
  .brand { gap: 10px; min-width: 0; }
  .brand__logo { width: 38px; height: 38px; }
  .brand__text strong { font-size: 16px; }
  .brand__text small { font-size: 10px; white-space: nowrap; max-width: 148px; overflow: hidden; text-overflow: ellipsis; }
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .stat-card { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 20px; }
  .prizes__row--featured, .prizes__row--mini { grid-template-columns: 1fr; }
  .prize-card__body { padding: 14px 16px 16px; }
  .prize-card.prize-card--mini { flex-direction: row; text-align: left; align-items: center; gap: 12px; padding: 14px 16px; }
  .prize-card--mini b { font-size: 18px; }
  .prize-card--mini i { flex: 1 1 auto; max-width: none; font-size: 11.5px; }
  .prize-card--mini .tag { flex: none; margin-top: 0; }
  .prize-card--pro { flex-direction: column; text-align: center; align-items: center; padding: 22px 16px 18px; }
  .prize-card--pro i { max-width: 26ch; }
  .steps { grid-template-columns: 1fr; }
  .step-card { min-height: 0; padding: 22px; }
  .step-card__num { margin-bottom: 18px; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .countdown__blocks { flex-wrap: wrap; }
  .wheel-btn { font-size: 13px; border-width: 3px; }
  .wheel-backdrop { inset: -2%; width: 104%; height: 104%; opacity: 0.22; }
  .float-coin--ip { display: none; }
  .float-coin--gta { width: 56px; left: -2%; top: 6%; }
  .pricing { gap: 14px; }
  .pcard { padding: 42px 20px 24px; border-radius: 26px; }
  .pcard__price b { font-size: 42px; }
  .pcard__list li { font-size: 13px; padding: 8px 0; }
  .shot { width: 200px; }
}

/* ── Reduced motion ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Buy spins: wheel CTA + checkout (reworked from payment_demo) ── */

.wheel-buy {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 9px 18px 9px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0.05));
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.25s ease, background 0.25s ease;
}

.wheel-buy:hover {
  transform: translateY(-1px);
  border-color: rgba(52, 211, 153, 0.55);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.09));
}

.wheel-buy__plus {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #031a12;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 16px var(--accent-glow);
}

.wheel-buy__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.wheel-buy__text b { font-size: 11.5px; letter-spacing: 0.12em; }
.wheel-buy__text small { font-size: 10px; color: var(--text-secondary); letter-spacing: 0.03em; }

.buy-open { overflow: hidden; }

.buy[hidden] { display: none !important; }

.buy {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
}

.buy__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 4, 0.78);
}

.buy__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 26px 26px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #111713 0%, #070a09 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.buy__dialog:focus { outline: none; }

.buy__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.buy__close:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); }

.buy__steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.buy__step-dot {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 10px;
}

.buy__step-dot.is-active,
.buy__step-dot.is-done {
  color: #d9ffeb;
  border-color: rgba(110, 231, 183, 0.6);
  background: rgba(16, 185, 129, 0.16);
}

.buy__head h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.buy__head p {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.5;
}

.buy__qty {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 18px;
}

.buy__qty-btn {
  width: 46px;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.buy__qty-btn:hover { border-color: rgba(52, 211, 153, 0.4); background: rgba(16, 185, 129, 0.08); }

.buy__qty-field {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.08);
}

.buy__qty-field input {
  width: 118px;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.buy__qty-field input::-webkit-outer-spin-button,
.buy__qty-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy__qty-field span { color: var(--text-secondary); font-size: 12px; }

.buy__presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.buy__presets button {
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font: 600 11.5px var(--font-body);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.buy__presets button:hover { color: var(--text); border-color: rgba(52, 211, 153, 0.4); }

.buy__presets button.is-active {
  color: #eafff4;
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(16, 185, 129, 0.14);
}

.buy__cap {
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 11px;
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  font-size: 11.5px;
  line-height: 1.45;
}

.buy__label {
  display: block;
  margin: 18px 0 8px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.buy__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  outline: 0;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: 500 13px var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.buy__input::placeholder { color: #5f6b66; }

.buy__input:focus {
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.buy__coins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.buy__coin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 11px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font: 600 12px var(--font-body);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.buy__coin img { width: 24px; height: 24px; border-radius: 50%; }

.buy__coin-glyph {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #345d9d;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.buy__coin:hover,
.buy__coin.is-active {
  color: #effff7;
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(16, 185, 129, 0.12);
}

.buy__nets { display: flex; flex-wrap: wrap; gap: 7px; }

.buy__nets button {
  flex: 1;
  min-width: 92px;
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font: 600 11.5px var(--font-body);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.buy__nets button.is-active {
  color: #eafff4;
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(16, 185, 129, 0.12);
}

.buy__total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.buy__total span { color: var(--text-secondary); font-size: 12px; }
.buy__total strong {
  color: #d8ffeb;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.buy__cta { width: 100%; margin-top: 18px; justify-content: center; }

.buy__fine {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
}

.buy__back {
  display: block;
  margin: 12px auto 0;
  padding: 7px 13px;
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.05);
  color: #a6cdb8;
  font: 600 11px var(--font-body);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.buy__back:hover { color: #e2ffed; border-color: rgba(52, 211, 153, 0.4); background: rgba(16, 185, 129, 0.12); }

.buy__details {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(52, 211, 153, 0.26);
  border-radius: 18px;
  background: rgba(16, 185, 129, 0.05);
}

.buy__qr {
  width: 100%;
  aspect-ratio: 1;
  padding: 9px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.buy__qr img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }

.buy__amount {
  margin: 3px 0 12px;
  color: #d8ffeb;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.buy__addr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.28);
}

.buy__addr code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font: 700 11.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.buy__addr button {
  flex: none;
  padding: 8px 10px;
  border: 1px solid rgba(52, 211, 153, 0.26);
  border-radius: 9px;
  background: rgba(16, 185, 129, 0.14);
  color: #d8ffeb;
  font: 700 9.5px var(--font-body);
  letter-spacing: 0.05em;
  cursor: pointer;
}

.buy__hint { margin-top: 8px; color: var(--text-muted); font-size: 10.5px; line-height: 1.5; }
.buy__hint b { color: var(--text-secondary); }

.buy__timer { margin-top: 14px; }
.buy__timer-title { color: var(--text-muted); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; }

.buy__clock {
  margin-top: 6px;
  color: #eafff4;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.buy__progress {
  height: 3px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
}

.buy__progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6ee7b7, #10b981);
  transition: width 1s linear;
}

.buy__live { margin-top: 12px; color: #7be9b8; font-size: 10.5px; text-align: center; }

.buy__expired {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(251, 113, 133, 0.34);
  border-radius: 11px;
  background: rgba(190, 24, 93, 0.12);
  color: #fecdd3;
  font-size: 11.5px;
}

.buy__expired[hidden] { display: none; }

.buy__expired button {
  padding: 8px 10px;
  border: 1px solid rgba(251, 113, 133, 0.4);
  border-radius: 9px;
  background: rgba(190, 24, 93, 0.14);
  color: #ffe4e6;
  font: 700 10px var(--font-body);
  cursor: pointer;
}

.buy__success { padding: 8px 0 4px; text-align: center; }

.buy__success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 8px auto 16px;
  border: 1px solid rgba(110, 231, 183, 0.52);
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18);
  color: #d7ffeb;
  font-size: 26px;
}

.buy__success h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.buy__success p { max-width: 34ch; margin: 8px auto 0; color: var(--text-secondary); font-size: 13px; line-height: 1.55; }

.buy__invoice {
  max-width: none !important;
  color: #8ee9c0 !important;
  font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
}

.buy__confirm[disabled] { opacity: 0.55; cursor: not-allowed; }

@media (max-width: 640px) {
  .buy { padding: 10px; }
  .buy__dialog { max-height: calc(100vh - 20px); padding: 22px 18px 20px; border-radius: 22px; }
  .buy__head h2 { font-size: 23px; }
  .buy__coins { grid-template-columns: repeat(3, 1fr); }
  .buy__details { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .buy__qr { width: min(210px, 100%); margin: 0 auto; }
  .buy__total strong { font-size: 23px; }
}

/* transient wheel status (server errors, promo closed) */
.wheel-flash {
  margin-top: 10px;
  padding: 7px 14px;
  border: 1px solid rgba(251, 113, 133, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(190, 24, 93, 0.1);
  color: #fda4af;
  font-size: 11.5px;
  text-align: center;
}
