:root {
  --bg: #07040c;
  --bg-alt: #100816;
  --panel: #160b22;
  --panel-2: #1d122c;
  --line: rgba(232, 196, 92, 0.28);
  --line-strong: #e8c45c;
  --gold: #e8c45c;
  --gold-bright: #f8e7a8;
  --gold-ink: #2a1c04;
  --neon: #ff2f92;
  --purple: #8b5cf6;
  --purple-deep: #3b0764;
  --cream: #f6f1e6;
  --muted: #b7a9c9;
  --win: #5ee9b5;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Cinzel", Palatino, "Palatino Linotype", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --radius: 20px;
  --header-h: 4.6rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--cream);
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(255, 47, 146, 0.16), transparent 52%),
    radial-gradient(800px 380px at 100% 0%, rgba(232, 196, 92, 0.14), transparent 48%),
    linear-gradient(180deg, var(--bg) 0%, #0c0614 42%, var(--bg-alt) 100%);
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--gold-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold);
}

h1,
h2,
h3,
.brand-text strong,
.cabinet-kicker,
.btn-spin span {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 4.1rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  padding: 0.6rem 0.9rem;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 0.6rem;
}

.compliance-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.55rem 1rem;
  background: linear-gradient(90deg, #3b0764, #1a0a24 45%, #3b0764);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.compliance-banner p {
  margin: 0 auto;
  max-width: 1100px;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-header {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 4, 12, 0.82);
  backdrop-filter: blur(16px);
}

.header-inner,
.hero,
.features,
.download,
.legal-wrap,
.footer-inner {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
  z-index: 2;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  box-shadow: 0 0 16px rgba(232, 196, 92, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.2rem;
}

.brand-text em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--gold-bright);
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.primary-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--gold);
}

.header-cta {
  flex-shrink: 0;
}

.age-badge {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.35rem;
  border: 2px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 0.85rem;
}

.age-badge-lg {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 0.8rem;
  font-size: 1rem;
}

.btn,
.btn-spin {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover,
.btn-spin:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn:disabled,
.btn-spin:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  filter: none;
}

.btn {
  border-radius: 999px;
  padding: 0.72rem 1.1rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 0.95rem 1.35rem;
  font-size: 1rem;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--gold-ink);
  box-shadow: 0 8px 24px rgba(232, 196, 92, 0.28);
}

.btn-glow {
  box-shadow:
    0 0 0 4px rgba(232, 196, 92, 0.12),
    0 10px 32px rgba(255, 47, 146, 0.28);
  animation: cta-pulse 2.4s ease-in-out infinite;
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: 2.4rem 0 3rem;
}

.hero-glow {
  position: absolute;
  inset: 8% 5% auto;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 47, 146, 0.16), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.lede {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-points {
  margin: 1.2rem 0 0;
  padding-left: 1.1rem;
  color: var(--cream);
}

.hero-points li + li {
  margin-top: 0.35rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.wheel-panel,
.feature-card,
.download-card,
.legal-card,
.age-gate-card,
.prize-modal-card {
  background: linear-gradient(180deg, rgba(32, 18, 48, 0.94), rgba(14, 8, 22, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.wheel-panel {
  position: relative;
  padding: 1.3rem 1.15rem 1.4rem;
  text-align: center;
  overflow: hidden;
  box-shadow:
    var(--shadow),
    0 0 40px rgba(255, 47, 146, 0.12);
}

.cabinet-kicker {
  color: var(--gold-bright);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 0.45rem;
}

.wheel-panel h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.wheel-stage {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 0.4rem auto 1rem;
}

.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid var(--gold-bright);
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.wheel-ring {
  width: 100%;
  height: 100%;
  padding: 12px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #8a6a18, var(--gold-bright), #9a6b12, var(--gold), #f3d56a);
  box-shadow:
    0 0 48px rgba(255, 47, 146, 0.28),
    0 0 28px rgba(232, 196, 92, 0.35),
    inset 0 0 0 7px #120816;
}

.wheel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background: conic-gradient(
    #e0b83a 0 60deg,
    #2a103c 60deg 120deg,
    #f0cc5a 120deg 180deg,
    #41145a 180deg 240deg,
    #e8c45c 240deg 300deg,
    #1b0c28 300deg 360deg
  );
  transform: rotate(0deg);
  transition: transform 4s cubic-bezier(0.12, 0.68, 0.18, 1);
}

.wheel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, transparent 0 59.35deg, rgba(7, 4, 12, 0.55) 59.35deg 60deg);
  pointer-events: none;
}

.wheel.is-spinning {
  pointer-events: none;
}

.wheel-label {
  position: absolute;
  inset: 0;
  transform: rotate(calc(var(--i) * 60deg + 30deg));
  transform-origin: 50% 50%;
  pointer-events: none;
}

.wheel-label span {
  position: absolute;
  top: 9%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: clamp(0.64rem, 1.7vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wheel-label:nth-child(odd) span {
  color: var(--gold-ink);
}

.wheel-label:nth-child(even) span {
  color: var(--gold-bright);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.wheel-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff4c8, var(--gold));
  color: var(--gold-ink);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 7px #120816, 0 8px 20px rgba(0, 0, 0, 0.45);
}

.spin-result {
  min-height: 3em;
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.spin-result.is-win {
  color: var(--win);
  font-weight: 700;
}

.btn-spin {
  width: 100%;
  flex-direction: column;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8e7a8, #c9a227);
  color: var(--gold-ink);
  box-shadow: 0 10px 28px rgba(232, 196, 92, 0.3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn-spin span {
  font-size: 1.2rem;
}

.btn-spin small {
  letter-spacing: 0.06em;
  font-weight: 600;
  opacity: 0.78;
}

.btn-spin.is-spinning {
  animation: spin-pulse 0.45s linear infinite;
}

.features,
.download {
  padding: 1rem 0 3.2rem;
}

.section-heading {
  max-width: 40rem;
  margin-bottom: 1.6rem;
}

.section-heading p:last-child {
  margin-top: 0.6rem;
  color: var(--muted);
}

.features-grid {
  display: grid;
  gap: 1rem;
}

.feature-card {
  padding: 1.35rem 1.2rem 1.4rem;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.8rem;
  border-radius: 12px;
  background: rgba(232, 196, 92, 0.1);
  border: 1px solid var(--line);
  font-size: 1.4rem;
}

.feature-card p {
  margin-top: 0.55rem;
  color: var(--muted);
}

.download-card {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  text-align: center;
  background:
    radial-gradient(600px 180px at 50% 0%, rgba(255, 47, 146, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(32, 18, 48, 0.94), rgba(14, 8, 22, 0.94));
}

.download-card h2 {
  max-width: 18ch;
  margin: 0 auto;
}

.download-card > p {
  max-width: 40rem;
  margin: 0.85rem auto 0;
  color: var(--muted);
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.4rem 0 0.9rem;
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  margin-top: 1rem;
  padding: 2rem 0 1.8rem;
  border-top: 1px solid var(--line);
  background: #080510;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.2rem;
}

.footer-brand p + p {
  color: var(--muted);
  margin: 0.4rem 0 0.7rem;
  max-width: 28rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
}

.site-footer nav a {
  color: var(--cream);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--gold);
}

.footer-notice {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  background: rgba(76, 29, 149, 0.22);
  color: var(--gold-bright);
  font-size: 0.9rem;
  font-weight: 600;
}

.mobile-cta {
  display: none;
}

.age-gate,
.prize-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(28rem, calc(100% - 2rem));
}

.age-gate::backdrop,
.prize-modal::backdrop {
  background: rgba(4, 2, 8, 0.78);
}

.age-gate-card,
.prize-modal-card {
  padding: 1.6rem 1.3rem 1.4rem;
  text-align: center;
}

.age-gate-card p,
.prize-modal-card p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.age-gate-actions,
.prize-modal-card .store-actions {
  margin-top: 1.2rem;
}

.age-gate-exit {
  color: #fb7185 !important;
  font-weight: 700;
}

.modal-redirect {
  font-size: 0.85rem;
}

.legal-page .legal-wrap {
  padding: 2.4rem 0 3.5rem;
}

.legal-card {
  padding: clamp(1.3rem, 3vw, 2.2rem);
}

.legal-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.legal-meta {
  color: var(--muted);
  margin: 0.7rem 0 1.4rem;
}

.legal-card h2 {
  margin: 1.6rem 0 0.55rem;
  font-size: 1.3rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card p + p,
.legal-card ul {
  margin-top: 0.7rem;
}

.legal-quote {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--gold);
  background: rgba(76, 29, 149, 0.28);
  color: var(--gold-bright);
  font-weight: 600;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.coin-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.coin-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.coin-balance {
  color: var(--gold-bright);
}

@keyframes cta-pulse {
  0%,
  100% { box-shadow: 0 0 0 4px rgba(232, 196, 92, 0.12), 0 10px 32px rgba(255, 47, 146, 0.22); }
  50% { box-shadow: 0 0 0 7px rgba(232, 196, 92, 0.2), 0 12px 36px rgba(255, 47, 146, 0.38); }
}

@keyframes spin-pulse {
  50% { filter: brightness(1.16); }
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .wheel-stage {
    width: 360px;
  }

  .wheel-label {
    font-size: 0.74rem;
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding-top: 3.4rem;
  }

  .wheel-panel {
    padding: 1.5rem 1.4rem 1.6rem;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    padding: 1rem 1.1rem 1.2rem;
    background: #120816;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    flex-direction: column;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .site-footer {
    padding-bottom: 5.5rem;
  }

  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: block;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(7, 4, 12, 0.94);
    border-top: 1px solid var(--line);
  }

  .mobile-cta .btn {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .compliance-banner p,
  .footer-notice {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: none;
  }

  .hero-actions .btn,
  .store-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
