/* ==========================================================================
   GAMEHUB — Starter Pack campaign
   Single stylesheet, no framework. Organised as:
     1. Tokens        2. Reset / base     3. Utilities
     4. Buttons       5. Navbar           6. Hero
     7. Cards         8. Spin section     9. Form
    10. Gallery      11. Steps           12. Community
    13. FAQ          14. Final CTA       15. Footer
    16. Sticky CTA   17. Modals          18. Motion + responsive
   ========================================================================== */

/* ============================== 1. TOKENS ============================== */
:root {
  --void-950: #05060F;
  --void-900: #080A16;
  --void-800: #0C0F20;
  --void-700: #12162E;

  --fg: #EDF0FF;
  --fg-dim: #94A3B8;
  --fg-mute: #64748B;

  --violet: #8B5CF6;
  --purple: #A855F7;
  --cyan: #22D3EE;
  --blue: #3B82F6;
  --pink: #F472B6;
  --gold: #FBBF24;

  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-hi: rgba(255, 255, 255, 0.075);

  --ring: #8B5CF6;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --shadow-panel: 0 24px 70px -30px rgba(0, 0, 0, 0.95);
  --shadow-glow: 0 10px 40px -12px rgba(139, 92, 246, 0.9);

  --font-display: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Set from JS so the wheel hub always scales with the wheel, not the viewport. */
  --hub-size: 26%;
}

/* =========================== 2. RESET / BASE =========================== */
*, *::before, *::after { box-sizing: border-box; }

* { -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;      /* keeps anchors clear of the sticky navbar */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background-color: var(--void-950);
  background-image:
    radial-gradient(900px 520px at 12% -8%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(760px 460px at 88% 4%, rgba(34, 211, 238, 0.16), transparent 62%),
    radial-gradient(900px 700px at 50% 110%, rgba(244, 114, 182, 0.12), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Several components set display on elements that are also toggled with the
   [hidden] attribute. A class beats the UA `[hidden]{display:none}` rule, so
   make the attribute win explicitly. */
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.14; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(139, 92, 246, 0.42); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--void-900); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #4c1d95, #1e293b); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #6d28d9, #334155); }

/* ============================ 3. UTILITIES ============================ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
}
.skip-link:focus {
  left: 16px; top: 16px; padding: 12px 20px; border-radius: 12px;
  background: var(--violet); color: #fff; font-weight: 600;
}

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .container { padding: 0 32px; } }

.section { position: relative; padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }

.section-head { max-width: 760px; margin: 0 auto; text-align: center; }
.section-head--left { margin: 0; text-align: left; max-width: 620px; }
.section-head h2 { margin-top: 20px; font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; }
.section-head .lede { margin-top: 16px; color: var(--fg-dim); font-size: clamp(1rem, 1.6vw, 1.125rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: #C4B5FD;
}

.text-grad {
  background: linear-gradient(90deg, #fff, #DDD6FE 45%, #A5F3FC);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-hot {
  background: linear-gradient(90deg, var(--gold), var(--pink) 55%, var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================= 4. BUTTONS ============================= */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; border: 0; cursor: pointer; overflow: hidden;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  transition: transform .28s ease, box-shadow .28s ease, background-position .5s ease,
              background-color .28s ease, border-color .28s ease, opacity .2s ease;
}
.btn:disabled { opacity: .55; pointer-events: none; }
.btn:active { transform: scale(.985); }
.btn__icon { width: 20px; height: 20px; flex: none; }

/* min-height rather than height: below 640px labels are allowed to wrap onto
   a second line rather than overflowing a narrow viewport. */
.btn--md { min-height: 46px; padding: 10px 20px; font-size: 0.82rem; border-radius: 12px; }
.btn--lg { min-height: 54px; padding: 13px 28px; font-size: 0.94rem; border-radius: 16px; }
.btn--xl { min-height: 62px; padding: 15px 30px; font-size: 0.96rem; border-radius: 18px; }
.btn--block { width: 100%; }

/* Once there is room, keep labels on one line and let the CTA row wrap instead. */
@media (min-width: 640px) { .btn { white-space: nowrap; } }

.btn--primary {
  color: #fff;
  background-image: linear-gradient(110deg, #7C3AED 0%, #A855F7 35%, #3B82F6 70%, #22D3EE 100%);
  background-size: 200% 100%;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { background-position: 100% 0; box-shadow: 0 14px 50px -10px rgba(139, 92, 246, 1); transform: translateY(-2px); }

/* Single sweep highlight — one composited transform, nothing else. */
.btn--primary::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: transform .7s ease;
}
.btn--primary:hover::after { transform: translateX(100%); }

.btn--outline {
  color: #fff; background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.20); backdrop-filter: blur(10px);
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.35); transform: translateY(-2px); }

.btn--ghost { color: var(--fg-mute); background: transparent; text-transform: none; font-weight: 600; letter-spacing: 0; }
.btn--ghost:hover { color: var(--fg); background: rgba(255, 255, 255, 0.06); }

.btn__spinner { display: none; width: 16px; height: 16px; flex: none; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .btn__spinner { display: block; }

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

/* ============================== 5. NAVBAR ============================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent; transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled {
  background: rgba(5, 6, 15, 0.82); backdrop-filter: blur(18px);
  border-bottom-color: var(--line); box-shadow: 0 10px 40px -24px rgba(0, 0, 0, 1);
}
.nav.is-menu-open { background: rgba(5, 6, 15, 0.96); backdrop-filter: blur(18px); }

.nav__inner {
  width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px;
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
@media (min-width: 640px) { .nav__inner { padding: 0 32px; } }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 0 24px -4px rgba(139, 92, 246, 0.55);
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }

.nav__links { display: none; align-items: center; gap: 4px; }
.nav__links a { padding: 8px 16px; border-radius: 10px; font-size: 0.9rem; font-weight: 500; color: var(--fg-dim); transition: color .2s ease; }
.nav__links a:hover { color: #fff; }

.nav__actions { display: none; align-items: center; gap: 12px; }
.nav__signin { padding: 8px 16px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; color: var(--fg-dim); transition: color .2s ease; }
.nav__signin:hover { color: #fff; }

.nav__toggle {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.06); color: #fff;
}
.nav__toggle svg { width: 20px; height: 20px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

.nav__drawer { padding: 16px 20px 24px; border-top: 1px solid var(--line); }
.nav__drawer ul { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.nav__drawer a { display: block; padding: 13px 16px; border-radius: 12px; font-size: 1rem; font-weight: 500; color: #E2E8F0; }
.nav__drawer a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }

@media (min-width: 1024px) {
  .nav__links, .nav__actions { display: flex; }
  .nav__toggle, .nav__drawer { display: none !important; }
}

/* =============================== 6. HERO =============================== */
.hero { position: relative; padding-top: 72px; overflow: hidden; }

.hero__grid-backdrop {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148, 163, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.hero__glow {
  position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 560px; max-width: 140vw; border-radius: 50%;
  background: rgba(139, 92, 246, 0.18); filter: blur(120px); pointer-events: none;
}

.hero__inner {
  position: relative; display: grid; gap: 48px; align-items: center;
  padding: 48px 20px 64px;
}
@media (min-width: 640px) { .hero__inner { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: 32px; padding: 80px 32px 96px; }
}

.hero__copy { text-align: center; }
@media (min-width: 1024px) { .hero__copy { text-align: left; } }

.hero__title {
  margin-top: 24px; font-size: clamp(2.3rem, 6vw, 4.25rem); font-weight: 800; line-height: 1.05;
}
.hero__lede {
  margin-top: 20px; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.05rem, 2.1vw, 1.3rem); color: rgba(196, 181, 253, 0.92);
  max-width: 34ch; margin-left: auto; margin-right: auto;
}
.hero__sub { margin-top: 16px; color: var(--fg-dim); max-width: 40ch; margin-left: auto; margin-right: auto; }
@media (min-width: 1024px) { .hero__lede, .hero__sub { margin-left: 0; margin-right: 0; } }

.hero__ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
@media (min-width: 560px) {
  .hero__ctas { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}
@media (min-width: 1024px) { .hero__ctas { justify-content: flex-start; } }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: center; margin-top: 36px;
  font-size: 0.9rem; font-weight: 500; color: #CBD5E1;
}
@media (min-width: 1024px) { .hero__trust { justify-content: flex-start; } }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }

.dot-live {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34D399;
}
.dot-live::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: #34D399;
  animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }

.float-emoji { display: inline-block; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.scroll-cue {
  display: none; margin: 0 auto 40px; padding: 8px 16px; border: 0; background: none; cursor: pointer;
  flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-mute);
  transition: color .2s ease;
}
.scroll-cue:hover { color: #CBD5E1; }
.scroll-cue svg { width: 16px; height: 16px; animation: float 6s ease-in-out infinite; }
@media (min-width: 768px) { .scroll-cue { display: flex; } }

/* Loot crate artwork */
.crate { position: relative; width: 100%; max-width: 440px; margin: 0 auto; }
.crate__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.crate__glow--violet {
  left: 50%; top: 50%; width: 85%; height: 85%; transform: translate(-50%, -50%);
  background: rgba(124, 58, 237, 0.25); filter: blur(70px); animation: pulseGlow 3.5s ease-in-out infinite;
}
.crate__glow--cyan {
  left: 58%; top: 62%; width: 45%; height: 45%; transform: translate(-50%, -50%);
  background: rgba(34, 211, 238, 0.2); filter: blur(60px);
}
@keyframes pulseGlow { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }

.crate__float { position: relative; animation: floatSlow 7s ease-in-out infinite; }
@keyframes floatSlow { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(1.2deg); } }
.crate__svg { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 30px 60px rgba(88, 28, 135, 0.55)); }

.chip {
  position: absolute; z-index: 2; display: none; align-items: center; gap: 8px;
  padding: 9px 13px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(12, 15, 32, 0.8); backdrop-filter: blur(14px);
  font-size: 0.78rem; font-weight: 600; color: #E2E8F0;
  box-shadow: 0 10px 40px -16px var(--accent);
  animation: float 5.5s ease-in-out infinite;
}
.chip span {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; font-size: 0.95rem;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
@media (min-width: 640px) { .chip { display: flex; } }
.chip--a { left: -4%; top: 18%; animation-delay: 0s; }
.chip--b { right: -6%; top: 34%; animation-delay: 1.1s; }
.chip--c { left: 2%; bottom: 12%; animation-delay: 2.2s; }

/* =============================== 7. CARDS =============================== */
.cards-grid { display: grid; gap: 20px; margin-top: 56px; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative; height: 100%; padding: 26px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035); backdrop-filter: blur(18px);
  transition: transform .4s ease, border-color .4s ease, background-color .4s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.06); }

.card__blob {
  position: absolute; right: -40px; top: -40px; width: 128px; height: 128px; border-radius: 50%;
  background: var(--accent); filter: blur(48px); opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.card:hover .card__blob { opacity: .6; }

.card__shine {
  position: absolute; top: 0; bottom: 0; left: -100%; width: 50%;
  transform: skewX(12deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left .7s ease; pointer-events: none;
}
.card:hover .card__shine { left: 150%; }

.card__ico {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  transition: transform .4s ease;
}
.card:hover .card__ico { transform: scale(1.1); }
.card__ico svg { width: 28px; height: 28px; }

.card h3 { position: relative; margin-top: 20px; font-size: 1.12rem; font-weight: 700; }
.card p { position: relative; margin-top: 10px; font-size: 0.9rem; color: var(--fg-dim); }

/* ============================ 8. SPIN SECTION ============================ */
.spin-section { scroll-margin-top: 90px; }
.spin-section__spotlight {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 35%, rgba(124, 58, 237, 0.16), transparent 70%);
}

.spin-panel {
  position: relative; margin-top: 56px; padding: 20px; border-radius: var(--radius-xl);
  background: rgba(8, 10, 22, 0.6); backdrop-filter: blur(22px); box-shadow: var(--shadow-panel);
}
@media (min-width: 640px) { .spin-panel { padding: 32px; } }
@media (min-width: 1024px) { .spin-panel { padding: 40px; } }

/* Gradient hairline border via a masked pseudo-element. */
.spin-panel::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(139, 92, 246, .85), rgba(34, 211, 238, .5), rgba(244, 114, 182, .6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

.spin-panel__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) {
  .spin-panel__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 56px; }
  /* Wheel is first in the DOM (mobile priority) but sits right on desktop. */
  .spin-panel__wheel { order: 2; }
  .spin-panel__form { order: 1; }
}

/* -------------------------------- wheel -------------------------------- */
.wheel { position: relative; width: 100%; max-width: min(92vw, 520px); margin: 0 auto; }

.wheel__halo {
  position: absolute; left: 50%; top: 50%; width: 92%; height: 92%; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(124, 58, 237, 0.25); filter: blur(60px); pointer-events: none;
  animation: pulseGlow 3.5s ease-in-out infinite;
}

.wheel__stage { position: relative; aspect-ratio: 1 / 1; }
/* Fallback for browsers without aspect-ratio support. */
@supports not (aspect-ratio: 1 / 1) {
  .wheel__stage::before { content: ''; display: block; padding-top: 100%; }
}

.wheel__pointer {
  position: absolute; left: 50%; top: -14px; z-index: 30; transform: translateX(-50%);
  transform-origin: 50% 18%; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .75));
}
.wheel__pointer svg { width: 46px; height: 60px; }
.wheel.is-spinning .wheel__pointer { animation: tick .18s ease-in-out infinite; }
@keyframes tick {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  35% { transform: translateX(-50%) rotate(-7deg); }
  70% { transform: translateX(-50%) rotate(4deg); }
}

.wheel__rotor { position: absolute; inset: 0; will-change: transform; }
.wheel__svg { width: 100%; height: 100%; }
/* Sized in viewBox units, so labels scale with the wheel. */
.wheel__label { font-family: var(--font-display); font-size: 14px; font-weight: 800; letter-spacing: 0.03em; }

.wheel__hub {
  position: absolute; left: 50%; top: 50%; z-index: 20; transform: translate(-50%, -50%);
  width: var(--hub-size); height: var(--hub-size);
}

.hub-btn {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%;
  border-radius: 50%; cursor: pointer; border: 3px solid rgba(255, 255, 255, 0.8);
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  background: radial-gradient(circle at 30% 25%, #A855F7, #6D28D9 55%, #3B0764);
  color: #fff; box-shadow: 0 0 50px -6px rgba(168, 85, 247, 0.95);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
.hub-btn:hover:not(:disabled) { transform: scale(1.05); }
.hub-btn:active:not(:disabled) { transform: scale(.95); }
.hub-btn:disabled {
  cursor: not-allowed; border-color: rgba(255, 255, 255, 0.25);
  background: rgba(12, 15, 32, 0.92); color: var(--fg-mute); box-shadow: inset 0 2px 12px rgba(0, 0, 0, .6);
}

.hub-btn__ping {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(196, 181, 253, 0.6);
  animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
.wheel.is-locked .hub-btn__ping, .wheel.is-spinning .hub-btn__ping { display: none; }

.hub-btn__inner { display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1; }
.hub-btn__inner svg { width: 22px; height: 22px; }
@media (min-width: 640px) { .hub-btn__inner svg { width: 26px; height: 26px; } }
.hub-btn__label { font-size: 0.62rem; }
@media (min-width: 640px) { .hub-btn__label { font-size: 0.72rem; } }

.hub-btn__lock { display: none; }
.wheel.is-locked .hub-btn__lock { display: block; }
.wheel.is-locked .hub-btn__spark { display: none; }
.wheel.is-spinning .hub-btn__spark { animation: spin 2.4s linear infinite; }

.wheel__hint { margin-top: 20px; text-align: center; font-size: 0.88rem; color: var(--fg-dim); }

/* =============================== 9. FORM =============================== */
.form-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(12, 15, 32, 0.5); }
@media (min-width: 640px) { .form-card { padding: 28px; } }

.form-card__title { font-size: 1.5rem; font-weight: 700; }
.form-card__sub { margin-top: 6px; font-size: 0.9rem; color: var(--fg-dim); }
.form-card__foot {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 14px; font-size: 0.76rem; color: var(--fg-mute); text-align: center;
}
.form-card__foot svg { width: 14px; height: 14px; flex: none; }

.field { margin-top: 16px; }
/* :not(.check) so the opt-in checkbox label keeps its own left-aligned layout
   instead of inheriting the label/optional split used by text fields. */
.field > label:not(.check) {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px; font-size: 0.88rem; font-weight: 500; color: #CBD5E1;
}
.field__optional { font-size: 0.75rem; font-weight: 400; color: var(--fg-mute); }

.field__control {
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; background: rgba(8, 10, 22, 0.6);
  transition: border-color .2s ease, background-color .2s ease;
}
.field__control:focus-within { border-color: rgba(167, 139, 250, 0.7); background: rgba(8, 10, 22, 0.9); }
.field__control.has-error { border-color: rgba(251, 113, 133, 0.6); }

.field__icon { width: 17px; height: 17px; flex: none; color: var(--fg-mute); }

.field__control input {
  flex: 1; width: 100%; height: 50px; border: 0; background: none; outline: none;
  font-family: inherit; font-size: 0.98rem; color: #fff;
}
.field__control input::placeholder { color: #475569; }

.field__reveal {
  display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: none; cursor: pointer; color: var(--fg-mute); transition: color .2s ease;
}
.field__reveal:hover { color: #fff; }
.field__reveal svg { width: 17px; height: 17px; }
.field__reveal.is-revealed { color: #C4B5FD; }

.field__hint { margin-top: 6px; font-size: 0.76rem; color: var(--fg-mute); }
.field__error {
  display: flex; align-items: flex-start; gap: 6px;
  margin-top: 6px; font-size: 0.76rem; font-weight: 500; color: #FDA4AF;
}
.field__error::before { content: '⚠'; flex: none; }

.field--check { margin-top: 18px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.86rem; color: var(--fg-dim); }
.check input {
  width: 17px; height: 17px; margin: 3px 0 0; flex: none; cursor: pointer; accent-color: var(--violet);
}

.form-alert {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 16px;
  padding: 11px 14px; border: 1px solid rgba(251, 113, 133, 0.3); border-radius: 14px;
  background: rgba(244, 63, 94, 0.1); font-size: 0.86rem; color: #FECDD3;
}
.form-alert::before { content: '⚠'; flex: none; }

#submitButton { margin-top: 20px; }

/* State cards */
.state-card { padding: 24px; border-radius: var(--radius-lg); text-align: center; }
.state-card__ico { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto; border-radius: 16px; }
.state-card__ico svg { width: 24px; height: 24px; }
.state-card h3 { margin-top: 16px; font-size: 1.2rem; font-weight: 700; }
.state-card p { margin-top: 8px; font-size: 0.88rem; color: var(--fg-dim); }

.state-card--unlocked { border: 1px solid rgba(167, 139, 250, 0.3); background: rgba(139, 92, 246, 0.09); }
.state-card--unlocked .state-card__ico { background: rgba(167, 139, 250, 0.2); color: #DDD6FE; }
.state-card--unlocked h3 { font-size: 1.3rem; }
.state-card--unlocked p { color: #CBD5E1; }

.state-card--claimed { border: 1px solid rgba(52, 211, 153, 0.25); background: rgba(52, 211, 153, 0.07); }
.state-card--claimed .state-card__ico { background: rgba(52, 211, 153, 0.15); color: #6EE7B7; }

/* Previous reward */
.prev-reward {
  margin-top: 20px; padding: 20px; border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--accent, #A78BFA) 27%, transparent);
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent, #A78BFA) 8%, transparent), rgba(12, 15, 32, 0.6));
}
.prev-reward__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-dim); }
.prev-reward__row { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.prev-reward__ico {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 16px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.prev-reward__ico svg { width: 24px; height: 24px; }
.prev-reward__meta { min-width: 0; }
.prev-reward__name { display: block; font-family: var(--font-display); font-weight: 700; }
.prev-reward__code {
  display: block; font-family: ui-monospace, monospace; font-size: 0.76rem;
  letter-spacing: 0.12em; color: var(--fg-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prev-reward .btn { margin-top: 16px; }

.fine-print { margin-top: 16px; text-align: center; font-size: 0.76rem; color: var(--fg-mute); }

/* ============================== 10. GALLERY ============================== */
.gallery { overflow: hidden; }
.gallery__head { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 768px) { .gallery__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

.gallery__arrows { display: none; gap: 8px; flex: none; }
@media (min-width: 768px) { .gallery__arrows { display: flex; } }

.arrow-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.06); color: #E2E8F0;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}
.arrow-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.13); border-color: var(--line-strong); color: #fff; }
.arrow-btn:disabled { opacity: .35; pointer-events: none; }
.arrow-btn svg { width: 20px; height: 20px; }

.gallery__wrap { position: relative; margin-top: 48px; }
.gallery__track {
  display: flex; gap: 20px; padding: 0 20px 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .gallery__track { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1284px) { .gallery__track { padding-left: calc((100vw - 1220px) / 2 + 32px); } }

.gallery__track > li { flex: none; width: 268px; scroll-snap-align: start; }
@media (min-width: 640px) { .gallery__track > li { width: 300px; } }

.gallery__fade { position: absolute; top: 0; bottom: 0; width: 48px; pointer-events: none; }
.gallery__fade--l { left: 0; background: linear-gradient(90deg, var(--void-950), transparent); }
.gallery__fade--r { right: 0; background: linear-gradient(270deg, var(--void-950), transparent); }

.gcard {
  position: relative; height: 100%; padding: 24px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(12, 15, 32, 0.5); backdrop-filter: blur(18px);
  transition: transform .4s ease, border-color .4s ease;
}
.gcard:hover { transform: translateY(-8px); border-color: rgba(255, 255, 255, 0.25); }

.gcard__tint {
  position: absolute; inset: 0; opacity: .55; transition: opacity .5s ease; pointer-events: none;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%);
}
.gcard:hover .gcard__tint { opacity: 1; }

.gcard__blob {
  position: absolute; right: -32px; top: -32px; width: 112px; height: 112px; border-radius: 50%;
  background: var(--accent); filter: blur(48px); opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.gcard:hover .gcard__blob { opacity: .7; }

.gcard__ico {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  transition: transform .4s ease;
}
.gcard:hover .gcard__ico { transform: translateY(-4px) rotate(-6deg); }
.gcard__ico svg { width: 28px; height: 28px; }

.gcard__sub { position: relative; margin-top: 20px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.gcard h3 { position: relative; margin-top: 6px; font-size: 1.25rem; font-weight: 700; }
.gcard__desc { position: relative; margin-top: 10px; font-size: 0.88rem; color: var(--fg-dim); }

/* =============================== 11. STEPS =============================== */
.steps { position: relative; margin-top: 64px; }
.steps__line {
  display: none; position: absolute; left: 16.6%; right: 16.6%; top: 54px; height: 1px;
  background: linear-gradient(90deg, rgba(139, 92, 246, .1), rgba(34, 211, 238, .45), rgba(244, 114, 182, .1));
}
@media (min-width: 768px) { .steps__line { display: block; } }

.steps__list { display: grid; gap: 24px; }
@media (min-width: 768px) { .steps__list { grid-template-columns: repeat(3, 1fr); } }

.step {
  position: relative; height: 100%; padding: 28px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035); backdrop-filter: blur(18px);
  transition: transform .3s ease, border-color .3s ease, background-color .3s ease;
}
.step:hover { transform: translateY(-6px); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.06); }

.step__num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto;
  border-radius: 20px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 20%, transparent), rgba(10, 12, 26, 0.95));
  border: 1px solid color-mix(in srgb, var(--accent) 33%, transparent);
  box-shadow: 0 0 34px -10px var(--accent);
  transition: transform .3s ease;
}
.step:hover .step__num { transform: scale(1.05); }

.step__ico {
  display: grid; place-items: center; width: 40px; height: 40px; margin: 20px auto 0; border-radius: 12px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.step__ico svg { width: 20px; height: 20px; }

.step h3 { margin-top: 16px; font-size: 1.25rem; font-weight: 700; }
.step p { margin-top: 10px; font-size: 0.88rem; color: var(--fg-dim); }

.center-cta { display: flex; justify-content: center; margin-top: 48px; }

/* ============================= 12. COMMUNITY ============================= */
.community__glow {
  position: absolute; left: 0; right: 0; top: 25%; height: 384px; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(34, 211, 238, 0.09), transparent 70%);
}

.sample-note {
  display: flex; align-items: flex-start; justify-content: center; gap: 8px;
  max-width: 680px; margin: 24px auto 0; padding: 10px 16px;
  border: 1px solid rgba(251, 191, 36, 0.25); border-radius: 14px; background: rgba(251, 191, 36, 0.07);
  font-size: 0.78rem; color: rgba(253, 230, 138, 0.9); text-align: center;
}
.sample-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.sample-note code { font-size: 0.72rem; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 48px 0 0; }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat {
  height: 100%; padding: 24px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035); backdrop-filter: blur(18px);
}
.stat dd { margin: 0; }
.stat__value {
  display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800;
  background: linear-gradient(90deg, #fff, #DDD6FE 45%, #A5F3FC);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { display: block; margin-top: 6px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute); }

.community__grid { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 1024px) { .community__grid { grid-template-columns: minmax(0, 1fr) 360px; } }

.testimonials { display: grid; gap: 16px; }
@media (min-width: 640px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials { grid-template-columns: 1fr; } }
@media (min-width: 1280px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }

.quote {
  height: 100%; margin: 0; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035); backdrop-filter: blur(18px);
  transition: transform .3s ease, border-color .3s ease;
}
.quote:hover { transform: translateY(-4px); border-color: var(--line-strong); }
@media (min-width: 640px) and (max-width: 1023px) { .quote--wide { grid-column: span 2; } }
@media (min-width: 1280px) { .quote--wide { grid-column: span 2; } }

.quote__mark { width: 24px; height: 24px; color: var(--accent); }
.quote blockquote { margin: 14px 0 0; font-size: 0.9rem; color: #CBD5E1; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote__name { display: block; font-size: 0.88rem; font-weight: 600; color: #fff; }
.quote__role { display: block; font-size: 0.76rem; color: var(--fg-mute); }

.avatar {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
  font-size: 0.72rem; font-weight: 700; color: #fff;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 33%, transparent);
}

.activity {
  height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(12, 15, 32, 0.5); backdrop-filter: blur(18px);
}
.activity h3 { font-size: 1.12rem; font-weight: 700; }
.activity__sub { margin-top: 4px; font-size: 0.76rem; color: var(--fg-mute); }
.activity ul { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.activity li {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.03);
  transition: background-color .2s ease;
}
.activity li:hover { background: rgba(255, 255, 255, 0.06); }
.activity li .avatar { width: 36px; height: 36px; font-size: 0.66rem; }
.activity p { font-size: 0.88rem; color: #CBD5E1; min-width: 0; }
.activity__reward { font-weight: 600; color: var(--accent); }

/* ================================ 13. FAQ ================================ */
.faq { max-width: 780px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 12px; }

.faq__item {
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(18px);
  transition: border-color .3s ease, background-color .3s ease;
}
.faq__item:hover { border-color: var(--line-strong); }
.faq__item.is-open { border-color: rgba(167, 139, 250, 0.35); background: rgba(139, 92, 246, 0.06); }

.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 18px 20px; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: #fff;
}
@media (min-width: 640px) { .faq__q { padding: 18px 24px; font-size: 1.1rem; } }

.faq__plus {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.06); color: var(--fg-dim);
  transition: transform .3s ease, background-color .3s ease, border-color .3s ease, color .3s ease;
}
.faq__plus svg { width: 16px; height: 16px; }
.faq__item.is-open .faq__plus {
  transform: rotate(45deg); border-color: rgba(167, 139, 250, 0.5);
  background: rgba(139, 92, 246, 0.2); color: #DDD6FE;
}

.faq__panel p { padding: 0 20px 20px; font-size: 0.9rem; color: var(--fg-dim); }
@media (min-width: 640px) { .faq__panel p { padding: 0 24px 20px; font-size: 0.95rem; } }

/* ============================= 14. FINAL CTA ============================= */
.final {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); text-align: center;
  padding: 64px 24px; box-shadow: var(--shadow-panel);
  background: linear-gradient(150deg, rgba(76, 29, 149, 0.5), rgba(8, 10, 22, 0.9) 55%, rgba(14, 116, 144, 0.35));
}
@media (min-width: 640px) { .final { padding: 80px 48px; } }

.final::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(139, 92, 246, .85), rgba(34, 211, 238, .5), rgba(244, 114, 182, .6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

.final__glow {
  position: absolute; top: -96px; left: 50%; transform: translateX(-50%);
  width: 520px; height: 256px; max-width: 120%; border-radius: 50%;
  background: rgba(139, 92, 246, 0.25); filter: blur(90px); pointer-events: none;
}

.final__inner { position: relative; max-width: 640px; margin: 0 auto; }
.final__inner h2 { margin-top: 24px; font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 800; }
.final__inner > p { margin-top: 20px; font-size: clamp(1rem, 1.8vw, 1.125rem); color: #CBD5E1; }
.final__inner .btn { margin-top: 36px; }
.final__fine { margin-top: 20px; font-size: 0.88rem; font-weight: 500; color: var(--fg-dim); }

/* ============================== 15. FOOTER ============================== */
.footer { position: relative; border-top: 1px solid var(--line); background: rgba(5, 6, 15, 0.7); }
.footer .container { padding-top: 56px; padding-bottom: 56px; }

.footer__grid { display: grid; gap: 48px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }

.footer__blurb { max-width: 300px; margin-top: 16px; font-size: 0.88rem; color: var(--fg-mute); }

.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--fg-mute);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.socials a:hover { color: #fff; background: rgba(139, 92, 246, 0.15); border-color: rgba(167, 139, 250, 0.4); }
.socials svg { width: 18px; height: 18px; }

.footer h2 { font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.footer nav ul { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.footer nav a { font-size: 0.88rem; color: var(--fg-mute); transition: color .2s ease; }
.footer nav a:hover { color: #fff; }

.footer__base { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.footer__base p { font-size: 0.76rem; color: #475569; }
.footer__base p + p { margin-top: 16px; }

/* =========================== 16. STICKY CTA =========================== */
.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: rgba(5, 6, 15, 0.92); backdrop-filter: blur(18px);
  transform: translateY(110%); transition: transform .32s cubic-bezier(.22,1,.36,1);
}
.sticky-cta.is-visible { transform: none; }
@media (min-width: 1024px) { .sticky-cta { display: none !important; } }

/* ============================== 17. MODALS ============================== */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
@media (min-width: 640px) { .modal { padding: 24px; } }

.modal__backdrop {
  position: absolute; inset: 0; background: rgba(5, 6, 15, 0.85); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .25s ease;
}
.modal.is-open .modal__backdrop { opacity: 1; }

.modal__panel {
  position: relative; z-index: 1; width: 100%; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 28px; outline: none; box-shadow: var(--shadow-panel);
  background: rgba(12, 15, 32, 0.92); backdrop-filter: blur(24px);
  opacity: 0; transform: scale(.94) translateY(24px);
  transition: opacity .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__panel--reward { max-width: 460px; }
.modal__panel--exit { max-width: 520px; }

.modal__panel::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(139, 92, 246, .85), rgba(34, 211, 238, .5), rgba(244, 114, 182, .6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

.modal__close {
  position: absolute; right: 16px; top: 16px; z-index: 20;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.06); color: #CBD5E1;
  transition: background-color .2s ease, color .2s ease;
}
.modal__close:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.modal__close svg { width: 16px; height: 16px; }

.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

.modal__body { position: relative; z-index: 10; padding: 36px 24px 28px; text-align: center; }
@media (min-width: 640px) { .modal__body { padding: 40px 32px 28px; } }

.modal__body::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 160px; pointer-events: none;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.25), transparent);
}

.modal__eyebrow { position: relative; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: #C4B5FD; }
.modal__title { position: relative; margin-top: 8px; font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; }
.modal__lede { position: relative; max-width: 34ch; margin: 14px auto 0; font-size: 0.95rem; color: var(--fg-dim); }

.reward-card {
  position: relative; overflow: hidden; margin-top: 24px; padding: 24px; border-radius: 26px;
  border: 1px solid color-mix(in srgb, var(--accent, #A78BFA) 33%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent, #A78BFA) 12%, transparent), rgba(12, 15, 32, 0.85));
  box-shadow: 0 0 60px -18px var(--accent, #A78BFA);
}
.reward-card__shimmer {
  position: absolute; top: 0; bottom: 0; left: -100%; width: 50%; transform: skewX(12deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: shimmer 2.4s ease-in-out infinite;
}
@keyframes shimmer { 0% { left: -100%; } 100% { left: 200%; } }

.reward-card__ico {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto; border-radius: 20px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 33%, transparent);
}
.reward-card__ico svg { width: 32px; height: 32px; }
.reward-card h3 { position: relative; margin-top: 16px; font-size: 1.5rem; font-weight: 700; }
.reward-card p { position: relative; margin-top: 8px; font-size: 0.9rem; color: #CBD5E1; }

.code-label { margin-top: 24px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-dim); }
.code-row { display: flex; align-items: stretch; gap: 8px; margin-top: 8px; }
.code-row code {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 14px 16px;
  border: 1px dashed rgba(167, 139, 250, 0.45); border-radius: 14px; background: rgba(8, 10, 22, 0.8);
  font-size: 1rem; font-weight: 700; letter-spacing: 0.14em; color: #EDE9FE; word-break: break-all;
}
@media (min-width: 640px) { .code-row code { font-size: 1.1rem; } }

.code-copy {
  display: grid; place-items: center; width: 52px; flex: none; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.06); color: #CBD5E1;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.code-copy:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.code-copy svg { width: 20px; height: 20px; }
.code-copy .ico-check { display: none; }
.code-copy.is-copied { border-color: rgba(52, 211, 153, 0.5); background: rgba(52, 211, 153, 0.15); color: #6EE7B7; }
.code-copy.is-copied .ico-copy { display: none; }
.code-copy.is-copied .ico-check { display: block; }

.modal__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.modal__note { margin-top: 20px; font-size: 0.76rem; color: var(--fg-mute); }
.modal__terms {
  display: inline-block; margin-top: 12px; font-size: 0.7rem; color: #475569;
  text-underline-offset: 2px;
}
.modal__terms:hover { color: #CBD5E1; text-decoration: underline; }

.exit__ico {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto; border-radius: 20px;
  border: 1px solid rgba(167, 139, 250, 0.4); background: rgba(139, 92, 246, 0.15); color: #DDD6FE;
  animation: float 6s ease-in-out infinite;
}
.exit__ico svg { width: 32px; height: 32px; }
.modal__panel--exit .modal__title { margin-top: 24px; font-size: clamp(1.4rem, 4vw, 1.9rem); }

/* ====================== 18. MOTION + RESPONSIVE ====================== */

/* Global reduced-motion contract: every decorative animation stops, and the
   wheel + reveals still function — they just arrive instantly. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .gallery__track { scroll-behavior: auto; }
  /* The rotor keeps its inline transition (set in JS) so the wheel still
     travels to the winning segment, just briefly and without spinning. */
  .wheel__rotor { transition-duration: .6s !important; }
}

/* color-mix() fallback for older browsers: solid tints instead of blends. */
@supports not (color: color-mix(in srgb, red 50%, transparent)) {
  .card__ico, .gcard__ico, .reward-card__ico, .prev-reward__ico, .step__ico, .avatar, .chip span {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
  }
}
