:root {
  --primary: #12b76a;
  --secondary: #facc15;
  --accent: #ef4444;
  --ink: #101828;
  --muted: #667085;
  --surface: #ffffff;
  --line: rgba(16, 24, 40, 0.12);
  --shadow: 0 18px 60px rgba(16, 24, 40, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef7f1;
}

body.theme-neon,
body.theme-fantasy,
body.theme-gold {
  background: #090516;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 18px clamp(14px, 3vw, 40px) 96px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(140deg, rgba(18, 183, 106, 0.22), rgba(250, 204, 21, 0.24)),
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.88), transparent 28%),
    #e9f8ef;
}

body.theme-neon .hero__bg {
  background:
    radial-gradient(circle at 22% 18%, rgba(236, 72, 153, 0.28), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(139, 92, 246, 0.36), transparent 30%),
    linear-gradient(145deg, #130522 0%, #25063d 48%, #07020d 100%);
}

body.theme-fantasy .hero__bg {
  background:
    radial-gradient(circle at 75% 20%, rgba(34, 211, 238, 0.3), transparent 28%),
    radial-gradient(circle at 16% 18%, rgba(249, 115, 22, 0.22), transparent 24%),
    linear-gradient(145deg, #08111f 0%, #0f2a50 48%, #020713 100%);
}

body.theme-gold .hero__bg {
  background:
    radial-gradient(circle at 78% 16%, rgba(250, 204, 21, 0.38), transparent 28%),
    radial-gradient(circle at 22% 24%, rgba(22, 101, 52, 0.56), transparent 31%),
    linear-gradient(145deg, #07140a 0%, #123a1c 52%, #050906 100%);
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: auto -8% -22% -8%;
  height: 46%;
  background: var(--primary);
  clip-path: polygon(0 38%, 100% 0, 100% 100%, 0 100%);
  opacity: 0.92;
}

body.theme-neon .hero__bg::before,
body.theme-fantasy .hero__bg::before,
body.theme-gold .hero__bg::before {
  opacity: 0.18;
}

body.theme-neon .hero::after,
body.theme-fantasy .hero::after,
body.theme-gold .hero::after {
  content: "";
  position: absolute;
  inset: 70px 4% auto auto;
  z-index: -1;
  width: min(38vw, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.45;
  filter: blur(1px);
  background:
    radial-gradient(circle at 34% 30%, var(--secondary) 0 0.65rem, transparent 0.7rem),
    radial-gradient(circle at 64% 22%, #ffffff 0 0.45rem, transparent 0.5rem),
    radial-gradient(circle at 70% 62%, var(--accent) 0 0.75rem, transparent 0.8rem),
    radial-gradient(circle at 22% 70%, var(--primary) 0 0.65rem, transparent 0.7rem);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto 22px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
  font-weight: 900;
}

body.theme-neon .brand-mark,
body.theme-fantasy .brand-mark,
body.theme-gold .brand-mark {
  color: #111827;
  background: var(--secondary);
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.32);
}

.brand-name,
.brand-subtitle {
  margin: 0;
}

.brand-name {
  font-size: 16px;
  font-weight: 900;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 13px;
}

body.theme-neon .brand-name,
body.theme-neon .brand-subtitle,
body.theme-fantasy .brand-name,
body.theme-fantasy .brand-subtitle,
body.theme-gold .brand-name,
body.theme-gold .brand-subtitle {
  color: #ffffff;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(300px, 1fr) minmax(280px, 0.86fr);
  gap: 20px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-copy {
  padding: 12px 0;
}

.eyebrow,
.chance {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
}

.highlight {
  display: inline-block;
  margin: 14px 0 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--secondary);
  color: #111827;
  font-size: 18px;
  font-weight: 950;
}

.subheadline {
  max-width: 36ch;
  margin: 14px 0 0;
  color: #344054;
  font-size: 17px;
  line-height: 1.45;
}

body.theme-neon .subheadline,
body.theme-fantasy .subheadline,
body.theme-gold .subheadline {
  color: rgba(255, 255, 255, 0.78);
}

.jackpot {
  width: min(100%, 350px);
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

body.theme-neon .jackpot,
body.theme-fantasy .jackpot,
body.theme-gold .jackpot,
body.theme-neon .game-panel,
body.theme-fantasy .game-panel,
body.theme-gold .game-panel,
body.theme-neon .lead-panel,
body.theme-fantasy .lead-panel,
body.theme-gold .lead-panel {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}

.jackpot span,
.jackpot strong {
  display: block;
}

.jackpot span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

body.theme-neon .jackpot span,
body.theme-fantasy .jackpot span,
body.theme-gold .jackpot span,
body.theme-neon label,
body.theme-fantasy label,
body.theme-gold label,
body.theme-neon .modal p,
body.theme-fantasy .modal p,
body.theme-gold .modal p {
  color: rgba(255, 255, 255, 0.72);
}

.jackpot strong {
  margin-top: 2px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.game-panel,
.lead-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.game-panel {
  display: grid;
  justify-items: center;
  padding: clamp(16px, 3vw, 28px);
}

.wheel-wrap {
  position: relative;
  width: min(78vw, 380px);
  aspect-ratio: 1;
  margin: 2px auto 18px;
}

.wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-right: 17px solid transparent;
  border-left: 17px solid transparent;
  border-top: 36px solid var(--accent);
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.22));
}

.wheel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 12px solid #ffffff;
  border-radius: 50%;
  background: conic-gradient(
    var(--secondary) 0deg 60deg,
    #ffffff 60deg 120deg,
    var(--primary) 120deg 180deg,
    #ffffff 180deg 240deg,
    #ff8a00 240deg 300deg,
    #ffffff 300deg 360deg
  );
  box-shadow: inset 0 0 0 3px rgba(16, 24, 40, 0.12), 0 20px 40px rgba(16, 24, 40, 0.22);
  transition: transform 3.4s cubic-bezier(0.15, 0.84, 0.18, 1);
}

body.theme-neon .wheel {
  background: conic-gradient(#facc15 0deg 60deg, #7c3aed 60deg 120deg, #ec4899 120deg 180deg, #111827 180deg 240deg, #22d3ee 240deg 300deg, #ffffff 300deg 360deg);
  box-shadow: 0 0 0 8px rgba(236, 72, 153, 0.18), 0 0 60px rgba(236, 72, 153, 0.45);
}

body.theme-fantasy .wheel {
  background: conic-gradient(#22d3ee 0deg 60deg, #2563eb 60deg 120deg, #f97316 120deg 180deg, #ffffff 180deg 240deg, #7dd3fc 240deg 300deg, #0f172a 300deg 360deg);
  box-shadow: 0 0 0 8px rgba(34, 211, 238, 0.16), 0 0 62px rgba(34, 211, 238, 0.3);
}

body.theme-gold .wheel {
  background: conic-gradient(#facc15 0deg 60deg, #166534 60deg 120deg, #fde68a 120deg 180deg, #dc2626 180deg 240deg, #22c55e 240deg 300deg, #fff7ed 300deg 360deg);
  box-shadow: 0 0 0 8px rgba(250, 204, 21, 0.2), 0 0 62px rgba(250, 204, 21, 0.34);
}

.wheel span {
  position: absolute;
  width: 86px;
  margin-left: -43px;
  left: 50%;
  top: 50%;
  color: #111827;
  font-size: 13px;
  font-weight: 950;
  text-align: center;
  transform-origin: 43px 0;
}

.wheel span:nth-child(1) { transform: rotate(28deg) translateY(-132px) rotate(-28deg); }
.wheel span:nth-child(2) { transform: rotate(88deg) translateY(-132px) rotate(-88deg); }
.wheel span:nth-child(3) { transform: rotate(148deg) translateY(-132px) rotate(-148deg); }
.wheel span:nth-child(4) { transform: rotate(208deg) translateY(-132px) rotate(-208deg); }
.wheel span:nth-child(5) { transform: rotate(268deg) translateY(-132px) rotate(-268deg); }
.wheel span:nth-child(6) { transform: rotate(328deg) translateY(-132px) rotate(-328deg); }

.wheel-center {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 4;
  width: 94px;
  height: 94px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.26);
  font-weight: 950;
  cursor: pointer;
}

.primary-btn,
.submit-btn,
.ghost-btn {
  min-height: 50px;
  border-radius: 8px;
  font-weight: 950;
  cursor: pointer;
}

.primary-btn,
.submit-btn {
  border: 0;
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.26);
}

.primary-btn {
  width: min(100%, 260px);
  padding: 0 18px;
}

.lead-panel {
  padding: 18px;
}

.lead-panel h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

form {
  display: grid;
  gap: 11px;
}

label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 850;
}

input,
select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
}

body.theme-neon input,
body.theme-neon select,
body.theme-fantasy input,
body.theme-fantasy select,
body.theme-gold input,
body.theme-gold select {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.9);
}

.submit-btn {
  width: 100%;
  padding: 0 16px;
}

.submit-btn:disabled,
.primary-btn:disabled,
.wheel-center:disabled {
  cursor: progress;
  opacity: 0.68;
}

.status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.proof-toast {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: min(340px, calc(100vw - 92px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(16, 24, 40, 0.2);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

body.theme-neon .proof-toast,
body.theme-fantasy .proof-toast,
body.theme-gold .proof-toast {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(10, 10, 20, 0.9);
  color: #ffffff;
}

.proof-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.proof-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--primary);
}

.proof-toast p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.sticky-whatsapp {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 31;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #25d366;
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.25);
  font-size: 28px;
  text-decoration: none;
}

.modal[hidden] {
  display: none;
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.62);
}

.modal__panel {
  position: relative;
  width: min(420px, 100%);
  padding: 24px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: center;
}

body.theme-neon .modal__panel,
body.theme-fantasy .modal__panel,
body.theme-gold .modal__panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #111827;
  color: #ffffff;
}

body.theme-neon .ghost-btn,
body.theme-fantasy .ghost-btn,
body.theme-gold .ghost-btn {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.modal__badge {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--primary);
  font-size: 32px;
  font-weight: 950;
}

.modal h2 {
  margin: 0 0 8px;
}

.modal p {
  margin: 0 0 18px;
  color: var(--muted);
}

.ghost-btn {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

@media (max-width: 980px) {
  .hero {
    padding-bottom: 100px;
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .hero-copy {
    grid-column: 1 / -1;
  }

  h1 {
    max-width: 13ch;
    font-size: 48px;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 100svh;
    padding: 12px 12px 92px;
  }

  .topbar {
    margin-bottom: 8px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand-name {
    font-size: 14px;
  }

  .brand-subtitle {
    font-size: 12px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-copy {
    padding: 0;
    order: 1;
  }

  .lead-panel {
    order: 2;
  }

  .game-panel {
    order: 3;
  }

  .eyebrow {
    margin-bottom: 5px;
    font-size: 11px;
  }

  h1 {
    max-width: none;
    font-size: 32px;
    line-height: 1;
  }

  .highlight {
    margin-top: 8px;
    padding: 6px 8px;
    font-size: 14px;
  }

  .subheadline {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.32;
  }

  .jackpot {
    margin-top: 10px;
    padding: 9px 10px;
  }

  .jackpot strong {
    font-size: 27px;
  }

  .chance {
    margin-bottom: 6px;
    font-size: 12px;
  }

  .wheel-wrap {
    width: min(60vw, 210px);
    margin-bottom: 8px;
  }

  .wheel {
    border-width: 8px;
  }

  .wheel span {
    display: none;
  }

  .wheel-center {
    width: 66px;
    height: 66px;
    font-size: 13px;
  }

  .primary-btn,
  .submit-btn,
  .ghost-btn {
    min-height: 44px;
  }

  .lead-panel {
    padding: 12px;
  }

  .lead-panel h2 {
    margin-bottom: 8px;
    font-size: 18px;
  }

  form {
    gap: 8px;
  }

  label {
    gap: 4px;
    font-size: 12px;
  }

  input,
  select {
    height: 42px;
  }

  .proof-toast {
    left: 12px;
    bottom: 12px;
    width: calc(100vw - 88px);
    max-width: 300px;
    padding: 10px;
  }

  .proof-toast p {
    font-size: 12px;
  }

  .sticky-whatsapp {
    right: 12px;
    bottom: 12px;
    width: 54px;
    height: 54px;
  }
}
