@charset "UTF-8";
:root {
  --bg: #0b0620;
  --bg-2: #1a0b3d;
  --pink: #ff2fb9;
  --violet: #7b2cff;
  --gold: #ffd166;
  --gold-deep: #c98a12;
  --cyan: #3ef0ff;
  --text: #f6f1ff;
  --muted: #b8a9d9;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(120% 80% at 70% 10%, #2b0f63 0%, var(--bg-2) 35%, var(--bg) 75%);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
}

/* The wheel glow must not create sideways scrolling */
html,
body {
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
}

/* ——— Starry background ——— */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 20% 30%, rgba(255, 47, 185, 0.28), transparent 40%), radial-gradient(circle at 85% 70%, rgba(62, 240, 255, 0.14), transparent 35%), radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 32% 72%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 58% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 76% 38%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 88% 88%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 44% 46%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 82%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 66% 58%, #fff 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
  to {
    opacity: 0.65;
  }
}
/* ——— Header ——— */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, 100% - 32px);
  margin: 0 auto;
  padding: 18px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.04em;
}
.logo svg {
  width: 30px;
  height: 30px;
  fill: var(--gold);
  filter: drop-shadow(0 0 10px rgba(255, 209, 102, 0.7));
  animation: spinStar 12s linear infinite;
}
.logo b {
  color: var(--pink);
  font-weight: 900;
}

@keyframes spinStar {
  to {
    transform: rotate(360deg);
  }
}
.age {
  padding: 6px 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

/* ——— Layout ——— */
.stage {
  flex: 1;
  display: grid;
  gap: 28px;
  align-items: center;
  width: min(1180px, 100% - 32px);
  margin: 0 auto;
  padding: 8px 0 40px;
}

@media (min-width: 960px) {
  .stage {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "copy wheel" "perks wheel";
    column-gap: 56px;
    row-gap: 0;
    padding: 24px 0 56px;
  }
  .copy {
    grid-area: copy;
    align-self: end;
  }
  .wheel-zone {
    grid-area: wheel;
  }
  .perks {
    grid-area: perks;
    align-self: start;
  }
}
/* ——— Copy ——— */
.copy {
  text-align: center;
}

@media (max-width: 959px) {
  h1 {
    margin: 14px 0 10px;
  }
  .cta {
    margin-top: 22px;
  }
}
@media (min-width: 960px) {
  .copy {
    text-align: left;
  }
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #39ff88;
  box-shadow: 0 0 0 0 rgba(57, 255, 136, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(57, 255, 136, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(57, 255, 136, 0);
  }
}
h1 {
  margin: 18px 0 14px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 7.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), var(--pink) 60%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 34ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

@media (min-width: 960px) {
  .lead {
    margin: 0;
  }
}
.steps {
  display: none;
  list-style: none;
  gap: 10px;
  margin: 28px 0 0;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.steps b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  font-family: var(--display);
  font-size: 14px;
}

@media (min-width: 960px) {
  .steps {
    display: grid;
  }
}
.perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
}
.perks li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 700;
}
.perks svg {
  width: 16px;
  height: 16px;
  fill: var(--cyan);
}

@media (min-width: 960px) {
  .perks {
    justify-content: flex-start;
    margin-top: 30px;
  }
  .wheel {
    margin-top: 0;
  }
}
/* ——— Wheel ——— */
.wheel-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wheel {
  --size: min(80vw, 440px);
  position: relative;
  width: var(--size);
  height: var(--size);
  margin-top: 18px;
}

.wheel__glow {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--pink), var(--violet), var(--cyan), var(--gold), var(--pink));
  filter: blur(38px);
  opacity: 0.45;
  animation: spinStar 10s linear infinite;
}

.wheel__rotor {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  will-change: transform;
}

.wheel__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wheel__pointer {
  position: absolute;
  z-index: 3;
  top: -6%;
  left: 50%;
  width: 15%;
  transform: translateX(-50%);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45));
}

.wheel.is-spinning .wheel__pointer {
  animation: tick 0.12s ease-in-out infinite alternate;
}

@keyframes tick {
  to {
    transform: translateX(-50%) rotate(-9deg);
  }
}
.wheel__hub {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 23%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #fff6d6, var(--gold) 45%, var(--gold-deep));
  border: 4px solid #fff;
  box-shadow: 0 0 0 6px rgba(255, 47, 185, 0.6), 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 -6px 12px rgba(0, 0, 0, 0.25);
  color: #3a1a00;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(14px, 3.6vw, 20px);
  letter-spacing: 0.04em;
  transition: transform 0.2s ease;
}
.wheel__hub:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.06);
}
.wheel__hub:disabled {
  cursor: default;
}

/* Rim bulbs */
.bulb {
  fill: #fff7d6;
  animation: bulb 0.9s steps(1) infinite;
}

.bulb:nth-of-type(2n) {
  animation-delay: 0.45s;
}

@keyframes bulb {
  50% {
    fill: #ff7ad5;
  }
}
.wheel.is-spinning .bulb {
  animation-duration: 0.25s;
}

.seg-label {
  font-family: var(--display);
  font-weight: 800;
  fill: #fff;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.25);
  stroke-width: 2px;
}

.seg-label--gold {
  fill: #3a1a00;
  stroke: none;
}

.seg-win {
  animation: segWin 0.5s ease-in-out 6 alternate;
}

@keyframes segWin {
  to {
    filter: brightness(1.45);
  }
}
/* ——— CTA ——— */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  margin-top: 30px;
  padding: 0 34px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 12px 30px rgba(255, 47, 185, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.cta {
  /* shine */
}
.cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: shine 2.8s ease-in-out infinite;
}
.cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 47, 185, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.cta:disabled {
  opacity: 0.6;
  cursor: default;
}
.cta:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.cta--full {
  width: 100%;
  margin-top: 22px;
}

@keyframes shine {
  0%, 55% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}
.note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ——— Footer ——— */
.foot {
  width: min(1180px, 100% - 32px);
  margin: 0 auto;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.foot p + p {
  margin-top: 6px;
}
.foot .demo {
  opacity: 0.75;
}

/* ——— Confetti ——— */
.confetti {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ——— Modal ——— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(6, 2, 18, 0.72);
  backdrop-filter: blur(6px);
  animation: fade 0.3s ease;
}
.modal[hidden] {
  display: none;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}
.modal__card {
  position: relative;
  width: min(420px, 100%);
  padding: 34px 26px 26px;
  border-radius: 24px;
  background: radial-gradient(120% 60% at 50% 0%, rgba(255, 47, 185, 0.35), transparent 60%), linear-gradient(180deg, #24104f, #13072e);
  border: 1px solid rgba(255, 209, 102, 0.45);
  box-shadow: 0 0 0 6px rgba(255, 209, 102, 0.08), 0 30px 80px rgba(0, 0, 0, 0.6);
  text-align: center;
  animation: pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.modal__card h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  text-transform: uppercase;
}
.modal__card p {
  color: var(--muted);
}

@keyframes pop {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
}
.modal__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.modal__kicker {
  margin-bottom: 8px;
  color: var(--gold) !important;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal__prize {
  margin: 14px 0 18px;
  color: #fff !important;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.25;
}
.modal__prize span {
  display: block;
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #fff3c4, var(--gold) 50%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(255, 209, 102, 0.45));
}
.modal__prize small {
  color: var(--pink);
  font-size: 20px;
}

.code {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 14px;
  border: 1.5px dashed rgba(255, 209, 102, 0.6);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  text-align: left;
}
.code span {
  color: var(--muted);
  font-size: 12px;
}
.code b {
  flex: 1;
  font-family: var(--display);
  letter-spacing: 0.08em;
}
.code button {
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
  font-size: 13px;
}
.code button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal__fine {
  margin-top: 12px;
  font-size: 12px;
}

.modal__demo p:not(.modal__kicker) {
  margin-top: 12px;
}

.modal__link {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

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