/* ============================================================
   SPIN & WIN — casino-style theme
   Palette lives here as CSS variables — change these to restyle
   the whole page without touching layout rules below.
   ============================================================ */
:root {
  --bg-deep: #0B0B1F;
  --bg-deep-2: #170B2E;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-border: rgba(255, 255, 255, 0.12);
  --gold: #FFD166;
  --gold-deep: #F4A300;
  --red: #FF3B5C;
  --magenta: #FF2D9E;
  --cyan: #2FE6E6;
  --white: #FFFFFF;
  --text-soft: rgba(255, 255, 255, 0.72);
  --text-faint: rgba(255, 255, 255, 0.5);
  --shadow-glow-gold: 0 0 28px rgba(255, 209, 102, 0.45);
  --shadow-glow-magenta: 0 0 28px rgba(255, 45, 158, 0.35);
  --radius-lg: 26px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  color: var(--white);
  background:
    radial-gradient(600px 400px at 15% 10%, rgba(255, 45, 158, 0.18), transparent 60%),
    radial-gradient(700px 500px at 85% 20%, rgba(255, 209, 102, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
.display {
  font-family: 'Luckiest Guy', cursive;
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0.5px;
}

main {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  background-image: url("./img/theme-2560-confetti.svg");
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  padding: 20px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: 'Luckiest Guy', cursive;
  font-size: 24px;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(255, 209, 102, 0.55);
}

.badge-pill {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* ---------- Hero ---------- */
.hero {
  padding: 26px 0 30px;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(30px, 6vw, 50px);
  color: var(--white);
  text-shadow: 0 0 18px rgba(255, 45, 158, 0.35);
  max-width: 600px;
  margin: 0 auto;
}

.hero h1 .accent {
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255, 209, 102, 0.6);
}

.hero .sub {
  max-width: 440px;
  margin: 14px auto 0;
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.55;
}

/* floating decorative coins */
.coin {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFE9AE, var(--gold-deep) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Luckiest Guy', cursive;
  font-size: 14px;
  color: #7A4E00;
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.55);
  opacity: 0.85;
  animation: float 5s ease-in-out infinite;
  pointer-events: none;
}

.coin.c1 {
  top: 6px;
  left: 6%;
  animation-delay: 0s;
}

.coin.c2 {
  top: 70px;
  right: 8%;
  width: 24px;
  height: 24px;
  font-size: 11px;
  animation-delay: 1.2s;
}

.coin.c3 {
  bottom: -10px;
  left: 12%;
  width: 20px;
  height: 20px;
  font-size: 9px;
  animation-delay: 2.4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

/* ---------- Wheel ---------- */
.wheel-stage {
  margin: 18px auto 0;
  position: relative;
  width: min(400px, 88vw);
}

.wheel-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  margin: 0 auto;
  filter: drop-shadow(0 0 40px rgba(255, 45, 158, 0.3)) drop-shadow(0 0 18px rgba(255, 209, 102, 0.25));
}

.wheel-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  box-shadow: 0 0 24px rgba(255, 209, 102, 0.55), inset 0 0 24px rgba(255, 209, 102, 0.25);
  pointer-events: none;
}

.wheel-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 30px solid var(--gold);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
  z-index: 6;
}

.spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FF6FB6, var(--magenta) 65%, #B8106A 100%);
  color: var(--white);
  border: 4px solid var(--gold);
  box-shadow: var(--shadow-glow-magenta), 0 6px 0 #8A0A4E;
  font-family: 'Luckiest Guy', cursive;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 1px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: pulse 2.2s ease-in-out infinite;
}

.spin-btn:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.06);
}

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

.spin-btn:disabled {
  background: #5A5A6E;
  border-color: #7A7A8E;
  box-shadow: none;
  cursor: not-allowed;
  animation: none;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: var(--shadow-glow-magenta), 0 6px 0 #8A0A4E;
  }

  50% {
    box-shadow: 0 0 40px rgba(255, 45, 158, 0.65), 0 6px 0 #8A0A4E;
  }
}

.spin-hint {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-faint);
  min-height: 20px;
}

/* ---------- Trust chips ---------- */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 24px auto 46px;
  max-width: 520px;
}

.trust-chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* ---------- How it works ---------- */
.how {
  padding: 10px 0 50px;
}

.how h2 {
  text-align: center;
  font-size: clamp(24px, 3.6vw, 32px);
  color: var(--gold);
  margin-bottom: 32px;
  text-shadow: 0 0 16px rgba(255, 209, 102, 0.35);
}

.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 780px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.steps li {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  backdrop-filter: blur(6px);
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: #3A2500;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Luckiest Guy', cursive;
  font-size: 16px;
  margin: 0 auto 12px;
}

.steps h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  margin-bottom: 6px;
}

.steps p {
  font-size: 13.5px;
  color: var(--text-faint);
  line-height: 1.5;
}

/* ---------- Footer ---------- */
footer {
  padding: 20px 0 44px;
  text-align: center;
}

footer p {
  font-size: 12px;
  color: var(--text-faint);
  max-width: 520px;
  margin: 0 auto 6px;
  line-height: 1.6;
}

@media (max-width:560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Claim modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 4, 18, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 18px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: linear-gradient(180deg, #1B1035 0%, #120A26 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 50px rgba(255, 209, 102, 0.35);
  padding: 30px 24px 26px;
  text-align: center;
  overflow: hidden;
}

#confettiCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-faint);
  line-height: 1;
  padding: 4px;
}

.modal-kicker {
  font-family: 'Luckiest Guy', cursive;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 4px;
  text-shadow: 0 0 14px rgba(255, 45, 158, 0.5);
}

.modal-prize {
  font-family: 'Luckiest Guy', cursive;
  font-size: 52px;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(255, 209, 102, 0.65);
  margin: 6px 0 4px;
}

.modal-msg {
  font-size: 13.5px;
  color: var(--text-soft);
  max-width: 290px;
  margin: 0 auto 20px;
  line-height: 1.55;
}

.claim-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.claim-form label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 5px;
  display: block;
}

.claim-form input {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  padding: 12px 13px;
  border-radius: 10px;
  border: 1.5px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.claim-form input::placeholder {
  color: var(--text-faint);
}

.field-error {
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  min-height: 14px;
}

.claim-cta {
  margin-top: 6px;
  font-family: 'Luckiest Guy', cursive;
  font-size: 17px;
  letter-spacing: 0.5px;
  padding: 14px 18px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(180deg, #FFE29A, var(--gold-deep));
  color: #3A2500;
  box-shadow: 0 6px 0 #8A5A00, 0 0 24px rgba(255, 209, 102, 0.5);
  transition: transform 0.12s ease;
}

.claim-cta:hover {
  transform: translateY(-1px);
}

.claim-cta:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #8A5A00;
}

.modal-fine {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 14px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .coin {
    animation: none;
  }

  .spin-btn {
    animation: none;
  }
}