:root {
  --bg: #0a0d0a;
  --bg-2: #0e130d;
  --ink: #ffffff;
  --muted: #9aa69a;
  --faint: #6f7a6f;
  --green: #7ed321;
  --green-2: #a4e635;
  --green-deep: #5bb30a;
  --card: rgba(255, 255, 255, 0.035);
  --card-border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --shadow-green: 0 10px 40px -8px rgba(126, 211, 33, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(900px 600px at 50% -5%, rgba(126, 211, 33, 0.14), transparent 60%),
    radial-gradient(1200px 800px at 50% 20%, #12190f 0%, var(--bg) 55%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}
.glow-top {
  top: -120px; left: 50%; transform: translateX(-50%);
  width: 620px; height: 520px;
  background: radial-gradient(circle, rgba(126, 211, 33, 0.22), transparent 70%);
}

/* HEADER */
.site-header {
  position: relative; z-index: 2;
  display: flex; justify-content: center;
  padding: 30px 20px 6px;
}
.brand-logo { height: 42px; width: auto; filter: drop-shadow(0 4px 18px rgba(126, 211, 33, 0.25)); }

main { position: relative; z-index: 1; }

/* HERO */
.hero {
  max-width: 740px;
  margin: 0 auto;
  padding: 10px 20px 20px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

/* WHEEL */
.wheel-wrap {
  position: relative;
  width: min(360px, 84vw);
  aspect-ratio: 1;
  margin: 18px auto 34px;
}

/* halo giratório atrás da roleta (dinamismo) */
.wheel-halo {
  position: absolute; inset: -14%;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg,
      transparent 0deg,
      rgba(126,211,33,0.55) 20deg,
      transparent 70deg,
      transparent 180deg,
      rgba(164,230,53,0.45) 200deg,
      transparent 250deg,
      transparent 360deg);
  filter: blur(22px);
  opacity: 0.8;
  z-index: 0;
  animation: haloSpin 7s linear infinite;
  pointer-events: none;
}
@keyframes haloSpin { to { transform: rotate(360deg); } }

.wheel-pointer {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 30px solid var(--green-2);
  z-index: 7;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6)) drop-shadow(0 0 10px rgba(126,211,33,0.8));
  transform-origin: 50% 0;
  animation: pointerPulse 1.5s ease-in-out infinite;
}
@keyframes pointerPulse {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(4px); }
}

.wheel {
  position: absolute; inset: 0;
  border-radius: 50%;
  padding: 10px;
  z-index: 1;
  background:
    radial-gradient(circle, rgba(126,211,33,0.12), transparent 72%),
    conic-gradient(from 0deg, rgba(126,211,33,0.35), rgba(126,211,33,0.05) 40%, rgba(126,211,33,0.35) 75%, rgba(126,211,33,0.05));
  box-shadow: 0 0 0 2px rgba(126,211,33,0.25), 0 30px 70px -20px rgba(0,0,0,0.9), var(--shadow-green);
}
.wheel-face {
  position: absolute; inset: 10px;
  border-radius: 50%;
  background:
    conic-gradient(
      var(--seg-dark) 0deg 45deg,
      var(--seg-green) 45deg 90deg,
      var(--seg-dark) 90deg 135deg,
      var(--seg-green) 135deg 180deg,
      var(--seg-dark) 180deg 225deg,
      var(--seg-green) 225deg 270deg,
      var(--seg-dark) 270deg 315deg,
      var(--seg-green) 315deg 360deg
    );
  --seg-dark: #10160e;
  --seg-green: #7ed321;
  box-shadow: inset 0 0 0 4px rgba(0,0,0,0.35), inset 0 0 60px rgba(0,0,0,0.45);
  transition: transform 5.4s cubic-bezier(0.16, 0.72, 0.09, 1);
  overflow: hidden;
  z-index: 2;
}
.wheel-face::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-conic-gradient(from 0deg, transparent 0deg 44.55deg, rgba(0,0,0,0.55) 44.55deg 45.45deg);
  pointer-events: none;
}

/* brilho que varre a roda (dinamismo) */
.wheel-shine {
  position: absolute; inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 18%, rgba(255,255,255,0.35), transparent 42%);
  mix-blend-mode: screen;
  z-index: 4;
  pointer-events: none;
  animation: shinePulse 2.6s ease-in-out infinite;
}
@keyframes shinePulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.7; } }

/* rótulos radiais dos segmentos */
.wheel-label {
  position: absolute;
  left: 50%; top: 0;
  width: 0; height: 50%;
  transform-origin: bottom center;
  z-index: 3;
  pointer-events: none;
}
.wheel-label .wl-text {
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  text-align: center;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.wheel-label .wl-text b { display: block; font-size: clamp(16px, 5vw, 20px); }
.wheel-label .wl-text small { display: block; font-size: 9px; font-weight: 700; font-style: normal; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.85; margin-top: 3px; }
.wheel-label.on-green .wl-text { color: #08130a; text-shadow: 0 1px 1px rgba(255,255,255,0.25); }
.wheel-label.on-dark .wl-text { color: #eafff0; }

.wheel-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 4px solid #0a0d0a;
  background: radial-gradient(circle at 35% 28%, var(--green-2), var(--green-deep));
  color: #0a0d0a;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 6;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 0 0 2px rgba(126,211,33,0.5);
  transition: transform 0.15s ease;
}
.wheel-hub svg { position: relative; z-index: 2; animation: boltPulse 1.3s ease-in-out infinite; filter: drop-shadow(0 1px 1px rgba(255,255,255,0.4)); }
@keyframes boltPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}
.hub-ring {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(126,211,33,0.7);
  animation: hubRing 1.6s ease-out infinite;
  pointer-events: none;
}
@keyframes hubRing {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}
.wheel-hub:hover { transform: translate(-50%, -50%) scale(1.06); }
.wheel-hub:active { transform: translate(-50%, -50%) scale(0.92); }

/* estados de giro */
.wheel-wrap.is-spinning .wheel-halo { animation-duration: 1.1s; opacity: 1; }
.wheel-wrap.is-spinning .wheel-pointer { animation: pointerTick 0.12s linear infinite; }
@keyframes pointerTick {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  50% { transform: translateX(-50%) rotate(-7deg); }
}
.wheel-wrap.is-won .wheel-halo { animation-duration: 3.5s; }

/* HERO TEXT */
.hero-title {
  font-size: clamp(30px, 7vw, 46px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.hero-title .accent {
  color: var(--green);
  text-shadow: 0 0 30px rgba(126,211,33,0.4);
}
.hero-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 420px;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none; border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--green-2), var(--green-deep));
  color: #0a0d0a;
  padding: 16px 36px;
  box-shadow: var(--shadow-green), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(0); }
.btn-spin { min-width: 260px; animation: ctaPulse 1.9s ease-in-out infinite; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 10px 40px -8px rgba(126,211,33,0.55), inset 0 1px 0 rgba(255,255,255,0.3); }
  50% { box-shadow: 0 12px 54px -4px rgba(126,211,33,0.95), inset 0 1px 0 rgba(255,255,255,0.3); }
}
.btn-spin.is-spinning { opacity: 0.75; pointer-events: none; animation: none; }
.btn-spin.is-done { animation: none; }
.btn-spin.is-done {
  background: linear-gradient(180deg, #1b2416, #121810);
  color: var(--green-2);
  box-shadow: inset 0 0 0 1px rgba(126,211,33,0.4);
}

.btn-ghost {
  background: rgba(126,211,33,0.08);
  color: var(--green-2);
  border: 1px solid rgba(126,211,33,0.3);
  padding: 12px 18px;
  font-size: 12px;
}
.btn-ghost:hover { background: rgba(126,211,33,0.16); }

/* TRUST ROW */
.trust-row {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  margin: 22px 0 36px;
  color: var(--muted);
  font-size: 13px;
}
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* PRIZE GRID */
.prize-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 8px;
}
.prize-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: left;
  min-height: 92px;
}
.prize-card--top {
  border-color: rgba(126,211,33,0.45);
  background: linear-gradient(180deg, rgba(126,211,33,0.12), rgba(126,211,33,0.03));
  box-shadow: 0 0 30px -8px rgba(126,211,33,0.5);
}
.prize-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--green-2), var(--green-deep));
  color: #0a0d0a;
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.prize-amount { font-size: 22px; font-weight: 900; font-style: italic; }
.prize-card--top .prize-amount { color: var(--green-2); }
.prize-meta { margin-top: 6px; font-size: 10.5px; color: var(--faint); line-height: 1.35; display: flex; gap: 5px; align-items: flex-start; }
.bolt { width: 13px; height: 13px; flex-shrink: 0; fill: var(--green-2); margin-top: 1px; filter: drop-shadow(0 0 4px rgba(126,211,33,0.9)); animation: boltFlicker 1.8s ease-in-out infinite; }
.prize-card:nth-child(2) .bolt { animation-delay: 0.3s; }
.prize-card:nth-child(3) .bolt { animation-delay: 0.6s; }
.prize-card:nth-child(4) .bolt { animation-delay: 0.9s; }
@keyframes boltFlicker {
  0%, 100% { opacity: 0.6; filter: drop-shadow(0 0 2px rgba(126,211,33,0.5)); }
  50% { opacity: 1; filter: drop-shadow(0 0 7px rgba(126,211,33,1)); }
}

/* RESULT CARD */
.result-card {
  width: 100%;
  margin-top: 26px;
  text-align: left;
  background: linear-gradient(180deg, rgba(126,211,33,0.08), rgba(10,13,10,0.6));
  border: 1px solid rgba(126,211,33,0.4);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 0 50px -10px rgba(126,211,33,0.4);
  animation: popIn 0.4s ease;
}
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.result-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--green-2); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.result-eyebrow svg { fill: var(--green-2); }
.result-prize { font-size: 28px; font-weight: 900; margin-top: 6px; }
.result-amount { font-style: italic; color: var(--green-2); }
.result-note { color: var(--muted); margin-top: 4px; font-size: 14px; }
.result-note strong { color: var(--ink); }
.code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 18px 0;
  flex-wrap: wrap;
}
.code-label { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; }
.code-value { font-size: 22px; font-weight: 900; letter-spacing: 0.14em; font-family: "Montserrat", monospace; }
.code-box .btn-copy { margin-left: auto; }
.btn-activate { width: 100%; }
.btn-activate .arrow { margin-left: 2px; }
.link-odds {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; margin-top: 14px;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-family: inherit; font-size: 12px; font-weight: 600;
}
.link-odds:hover { color: var(--green-2); }
.result-fine { margin-top: 16px; font-size: 11px; color: var(--faint); text-align: center; line-height: 1.5; }

/* SECTIONS */
.section { max-width: 920px; margin: 0 auto; padding: 44px 20px; }
.section-title { text-align: center; font-size: clamp(24px, 5vw, 34px); font-weight: 900; margin-bottom: 30px; letter-spacing: -0.01em; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 20px;
  overflow: hidden;
}
.step-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--green-2), var(--green-deep)); }
.step-icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(126,211,33,0.12);
  color: var(--green-2);
  margin-bottom: 16px;
}
.step-icon svg { width: 20px; height: 20px; }
.step-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* CHIPS */
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 13px; font-weight: 600;
}
.chips svg { width: 16px; height: 16px; color: var(--green-2); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 20px;
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.chev { width: 10px; height: 10px; border-right: 2px solid var(--green-2); border-bottom: 2px solid var(--green-2); transform: rotate(45deg); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item[open] .chev { transform: rotate(-135deg); }
.faq-item p { padding: 0 20px 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* FOOTER */
.site-footer { max-width: 920px; margin: 0 auto; padding: 36px 20px 50px; text-align: center; border-top: 1px solid var(--card-border); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 13px; }
.age-badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--green-2); color: var(--green-2); font-weight: 800; font-size: 11px; }
.sep { color: var(--faint); }
.footer-links { display: flex; justify-content: center; gap: 22px; margin: 16px 0; }
.footer-links a { color: var(--green-2); text-decoration: none; font-size: 13px; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-fine { color: var(--faint); font-size: 11px; max-width: 460px; margin: 0 auto; line-height: 1.5; }

/* RESPONSIVE */
@media (max-width: 620px) {
  .prize-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 10px; }
  .steps-grid { grid-template-columns: 1fr; }
  .code-box { flex-direction: column; align-items: flex-start; }
  .code-box .btn-copy { margin-left: 0; width: 100%; }
}

/* CONFETE / FAÍSCAS (dinamismo na vitória) */
.confetti-layer {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 60;
  overflow: hidden;
}
.confetti-layer i {
  position: absolute;
  top: 30%;
  width: 9px; height: 15px;
  border-radius: 2px;
  opacity: 0;
  will-change: transform, opacity;
  animation: confFall var(--d, 1.4s) cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
}
@keyframes confFall {
  0% { opacity: 1; transform: translate(0, -10vh) rotate(0deg); }
  100% { opacity: 0; transform: translate(calc(var(--x, 0) * 46vw), 70vh) rotate(720deg); }
}

.wheel-wrap.flash::before {
  content: "";
  position: absolute; inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(126,211,33,0.4) 40%, transparent 70%);
  z-index: 8;
  pointer-events: none;
  animation: winFlash 0.6s ease-out forwards;
}
@keyframes winFlash {
  0% { opacity: 0; transform: scale(0.6); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.15); }
}

@media (max-width: 620px) {
  .wheel-label .wl-text { width: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .wheel-face { transition: none; }
  .wheel-halo, .wheel-shine, .wheel-pointer, .wheel-hub svg, .hub-ring, .btn-spin, .bolt { animation: none !important; }
}
