:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #ffffff;
  background: #050812;
  --gold: #f8c24e;
  --rose: #f43f5e;
  --cyan: #22d3ee;
  --green: #10b981;
  --line: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  background:
    radial-gradient(circle at 50% 16%, rgba(248, 194, 78, 0.34), transparent 22rem),
    radial-gradient(circle at 80% 24%, rgba(168, 85, 247, 0.18), transparent 24rem),
    linear-gradient(180deg, rgba(5, 8, 18, 0.22), #050812 82%),
    url("./assets/hero-prize-studio.png") center top / cover no-repeat fixed,
    #050812;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.08), transparent 18rem),
    linear-gradient(180deg, rgba(5, 8, 18, 0.05), rgba(5, 8, 18, 0.94) 76%);
}

button,
input {
  font: inherit;
}

input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

button {
  border: 0;
}

.hidden {
  display: none !important;
}

#fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.copy-toast {
  position: fixed;
  left: 50%;
  top: 22px;
  z-index: 70;
  min-width: min(86vw, 280px);
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 12px 22px;
  border: 1px solid rgba(16, 185, 129, 0.44);
  border-radius: 999px;
  color: #052e1b;
  background:
    radial-gradient(circle at 30% 20%, #ffffff 0%, rgba(255, 255, 255, 0) 28%),
    linear-gradient(135deg, #bbf7d0, #34d399);
  box-shadow: 0 22px 64px rgba(16, 185, 129, 0.34);
  font-size: 1rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
  animation: toastIn 0.22s ease both;
  pointer-events: none;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, -12px) scale(0.96);
  }
}

.app {
  min-height: 100vh;
}

.play-scene,
.win-scene {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  align-items: center;
  gap: 12px;
  padding: clamp(18px, 4vw, 34px) 16px 28px;
}

.scene-out {
  animation: sceneOut 0.52s ease forwards;
}

.scene-in {
  animation: sceneIn 0.58s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes sceneOut {
  to {
    opacity: 0;
    transform: scale(0.96) translateY(18px);
  }
}

@keyframes sceneIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(24px);
  }
}

.headline-stack {
  width: min(680px, 100%);
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.spark-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 13px;
  border: 1px solid rgba(248, 194, 78, 0.34);
  border-radius: 999px;
  color: #ffe8a5;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 780px;
  color: #ffffff;
  font-size: clamp(2.35rem, 9vw, 6.1rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.62);
}

.headline-stack p,
.winner-note,
.winner-copy {
  color: #d7e4f4;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.45;
  font-weight: 760;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.round-status {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 7px 15px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 999px;
  color: #c8fbff;
  background: rgba(34, 211, 238, 0.1);
  box-shadow: 0 16px 44px rgba(34, 211, 238, 0.18);
  font-size: 0.88rem;
  font-weight: 1000;
}

.live-feed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(430px, 100%);
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(5, 18, 26, 0.68);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.32);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.live-feed .status-dot {
  flex: 0 0 auto;
}

.feed-in {
  animation: feedIn 0.28s ease both;
}

@keyframes feedIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

.wheel-stage {
  position: relative;
  width: min(92vw, 650px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.wheel-stage::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(248, 194, 78, 0.42), transparent 58%),
    radial-gradient(circle at 65% 35%, rgba(34, 211, 238, 0.28), transparent 32%),
    radial-gradient(circle at 30% 70%, rgba(244, 63, 94, 0.24), transparent 34%);
  filter: blur(18px);
  animation: aura 2.8s ease-in-out infinite;
}

@keyframes aura {
  50% {
    opacity: 0.72;
    transform: scale(1.07);
  }
}

.pointer {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 9;
  width: clamp(42px, 10vw, 66px);
  height: clamp(58px, 13vw, 86px);
  transform: translateX(-50%);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  border-radius: 0 0 20px 20px;
  background:
    radial-gradient(circle at 50% 20%, #ffffff 0%, #fff4c2 26%, transparent 28%),
    linear-gradient(180deg, #ffffff, var(--gold) 62%, #fb7185);
  filter: drop-shadow(0 20px 18px rgba(0, 0, 0, 0.44));
}

.miss-stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 12;
  width: min(78vw, 360px);
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 12px 22px;
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(244, 63, 94, 0.94), rgba(15, 23, 42, 0.94));
  box-shadow:
    0 24px 70px rgba(244, 63, 94, 0.32),
    0 0 0 10px rgba(244, 63, 94, 0.08);
  font-size: clamp(1.2rem, 5.5vw, 2.2rem);
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.stamp-in {
  animation: stampIn 1.45s ease both;
}

@keyframes stampIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7) rotate(-7deg);
  }

  18% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06) rotate(-2deg);
  }

  72% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94) rotate(2deg);
  }
}

.wheel-ring {
  position: relative;
  z-index: 3;
  width: min(100%, 590px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.wheel-ring::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 0%, #fff8c7 0 6px, transparent 7px),
    radial-gradient(circle at 69% 4%, #fff8c7 0 5px, transparent 6px),
    radial-gradient(circle at 85% 15%, #fff8c7 0 6px, transparent 7px),
    radial-gradient(circle at 96% 31%, #fff8c7 0 5px, transparent 6px),
    radial-gradient(circle at 100% 50%, #fff8c7 0 6px, transparent 7px),
    radial-gradient(circle at 96% 69%, #fff8c7 0 5px, transparent 6px),
    radial-gradient(circle at 85% 85%, #fff8c7 0 6px, transparent 7px),
    radial-gradient(circle at 69% 96%, #fff8c7 0 5px, transparent 6px),
    radial-gradient(circle at 50% 100%, #fff8c7 0 6px, transparent 7px),
    radial-gradient(circle at 31% 96%, #fff8c7 0 5px, transparent 6px),
    radial-gradient(circle at 15% 85%, #fff8c7 0 6px, transparent 7px),
    radial-gradient(circle at 4% 69%, #fff8c7 0 5px, transparent 6px),
    radial-gradient(circle at 0% 50%, #fff8c7 0 6px, transparent 7px),
    radial-gradient(circle at 4% 31%, #fff8c7 0 5px, transparent 6px),
    radial-gradient(circle at 15% 15%, #fff8c7 0 6px, transparent 7px),
    radial-gradient(circle at 31% 4%, #fff8c7 0 5px, transparent 6px);
  filter: drop-shadow(0 0 10px rgba(248, 194, 78, 0.9));
  animation: bulbs 1.1s ease-in-out infinite;
}

@keyframes bulbs {
  50% {
    opacity: 0.68;
    filter: drop-shadow(0 0 16px rgba(248, 194, 78, 1));
  }
}

.wheel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 999px;
  border: clamp(12px, 3.2vw, 22px) solid #ffd66b;
  box-shadow:
    0 0 0 9px rgba(111, 54, 12, 0.95),
    0 0 0 16px rgba(255, 218, 92, 0.24),
    inset 0 0 0 4px rgba(255, 255, 255, 0.14),
    inset 0 0 52px rgba(0, 0, 0, 0.46),
    0 0 70px rgba(248, 194, 78, 0.28),
    0 34px 100px rgba(0, 0, 0, 0.58);
  transition: transform 5.05s cubic-bezier(0.11, 0.78, 0.09, 1);
  will-change: transform;
}

.wheel::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: inherit;
  border: 2px dashed rgba(255, 246, 181, 0.38);
}

.wheel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 29%, rgba(255, 255, 255, 0.13) 30%, transparent 31%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.18), transparent 24%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.34), transparent 22% 78%, rgba(255, 255, 255, 0.1));
  pointer-events: none;
}

.wheel.near-miss {
  animation: nearMiss 0.58s ease both;
}

@keyframes nearMiss {
  18% {
    filter: brightness(1.4) saturate(1.25);
    box-shadow:
      0 0 0 10px rgba(248, 194, 78, 0.24),
      0 0 50px rgba(248, 194, 78, 0.34),
      inset 0 0 0 4px rgba(255, 255, 255, 0.16),
      inset 0 0 42px rgba(0, 0, 0, 0.42),
      0 34px 90px rgba(0, 0, 0, 0.55);
  }

}

.segment-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(62px, 15vw, 102px);
  min-height: 28px;
  display: grid;
  place-items: center;
  transform:
    translate(-50%, -50%)
    rotate(var(--segment-angle))
    translateY(clamp(-216px, -36vw, -116px))
    rotate(90deg);
  transform-origin: center;
  font-size: clamp(0.5rem, 1.65vw, 0.78rem);
  font-weight: 1000;
  line-height: 1.04;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.44);
  white-space: normal;
  pointer-events: none;
}

.segment-label.is-lose {
  width: clamp(54px, 12vw, 82px);
  font-size: clamp(0.36rem, 1vw, 0.54rem);
  line-height: 0.9;
}

.segment-label.is-lose br {
  display: block;
}

.hub {
  position: absolute;
  z-index: 6;
  width: clamp(112px, 22vw, 166px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 8px solid #fff8c7;
  border-radius: 999px;
  cursor: pointer;
  color: #111827;
  background:
    radial-gradient(circle at 35% 24%, #ffffff 0%, #fff1b6 28%, transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #ffd84d 48%, #c97819 100%);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.48),
    0 0 42px rgba(248, 194, 78, 0.35);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
  animation: hubPulse 1.45s ease-in-out infinite;
}

.hub:hover {
  transform: scale(1.045);
  filter: brightness(1.04);
}

.hub:disabled {
  cursor: wait;
  animation: hubPulse 0.8s ease-in-out infinite;
  filter: brightness(1.08);
}

.hub span {
  max-width: 86%;
  font-size: clamp(1rem, 4vw, 1.82rem);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 0.95;
  text-align: center;
}

.hub:disabled span {
  font-size: clamp(0.78rem, 3vw, 1.18rem);
}

@keyframes hubPulse {
  50% {
    box-shadow:
      0 22px 40px rgba(0, 0, 0, 0.44),
      0 0 0 12px rgba(248, 194, 78, 0.12),
      0 0 36px rgba(248, 194, 78, 0.42);
  }
}

.claim-cta,
.secondary-action,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease;
}

.claim-cta {
  width: min(440px, 100%);
  min-height: 62px;
  padding: 15px 22px;
  color: #111827;
  background:
    radial-gradient(circle at 30% 20%, #ffffff 0%, rgba(255, 255, 255, 0) 26%),
    linear-gradient(135deg, #fff8d3, var(--gold) 45%, #fb7185);
  box-shadow: 0 18px 44px rgba(248, 194, 78, 0.28);
  font-size: 1rem;
  font-weight: 1000;
}

.claim-cta:hover,
.secondary-action:hover,
.icon-button:hover {
  transform: translateY(-2px);
}

.claim-cta:disabled,
.secondary-action:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.inline-alert {
  width: min(440px, 100%);
  color: #fecdd3;
  background: rgba(244, 63, 94, 0.13);
  border: 1px solid rgba(244, 63, 94, 0.32);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
}

.package-panel {
  width: min(760px, 100%);
  display: grid;
  justify-items: center;
  gap: 0;
  padding: clamp(16px, 4vw, 24px);
  border: 1px solid rgba(248, 194, 78, 0.28);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(248, 194, 78, 0.25), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(5, 8, 18, 0.88));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  text-align: center;
  backdrop-filter: blur(14px);
  animation: sceneIn 0.45s ease both;
}

.package-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4.6rem);
  line-height: 0.94;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
}

.package-panel p {
  max-width: 560px;
  color: #d7e4f4;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 850;
}

.package-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.package-option {
  min-height: 126px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: #ffffff;
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.94), rgba(244, 63, 94, 0.88) 52%, rgba(248, 194, 78, 0.9));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
  cursor: pointer;
}

.package-option strong {
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  line-height: 1;
}

.package-option span {
  color: #fff7d6;
  font-size: 0.88rem;
  font-weight: 1000;
}

.package-option:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 24px 60px rgba(248, 194, 78, 0.24);
}

.win-scene {
  grid-template-rows: 1fr;
  padding: 22px 16px;
  position: relative;
  overflow: hidden;
}

.win-scene::before {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 42%, rgba(248, 194, 78, 0.44), transparent 32%),
    radial-gradient(circle at 42% 35%, rgba(34, 211, 238, 0.22), transparent 26%),
    radial-gradient(circle at 58% 58%, rgba(244, 63, 94, 0.2), transparent 28%);
  filter: blur(26px);
  opacity: 0.9;
  animation: winAura 2.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes winAura {
  50% {
    transform: scale(1.08);
    opacity: 0.72;
  }
}

.win-shell {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.win-shell h2 {
  color: #ffffff;
  font-size: clamp(3.2rem, 14vw, 8.4rem);
  line-height: 0.84;
  letter-spacing: 0;
  text-shadow:
    0 18px 70px rgba(0, 0, 0, 0.7),
    0 0 42px rgba(248, 194, 78, 0.28);
}

.winner-copy {
  color: #ffffff;
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 1000;
}

.prize-pill {
  display: grid;
  place-items: center;
  min-width: min(100%, 430px);
  min-height: clamp(88px, 20vw, 132px);
  padding: 18px 28px;
  border: 1px solid rgba(248, 194, 78, 0.44);
  border-radius: 28px;
  color: #111827;
  background:
    radial-gradient(circle at 30% 20%, #ffffff 0%, rgba(255, 255, 255, 0) 28%),
    linear-gradient(135deg, #ffffff, var(--gold) 58%, #fb7185);
  box-shadow:
    0 26px 70px rgba(248, 194, 78, 0.24),
    inset 0 -10px 24px rgba(0, 0, 0, 0.1);
  font-size: clamp(2.6rem, 12vw, 5.4rem);
  font-weight: 1000;
  line-height: 1;
  animation: prizePop 0.82s cubic-bezier(0.16, 1, 0.3, 1) both, prizeGlow 1.4s ease-in-out infinite;
}

@keyframes prizePop {
  from {
    opacity: 0;
    transform: scale(0.78) translateY(18px);
  }
}

@keyframes prizeGlow {
  50% {
    box-shadow:
      0 34px 92px rgba(248, 194, 78, 0.42),
      0 0 70px rgba(34, 211, 238, 0.16),
      inset 0 -10px 24px rgba(0, 0, 0, 0.1);
    filter: brightness(1.05);
  }
}

.winner-note {
  max-width: 560px;
}

.reserve-timer,
.checkout-timer {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(248, 194, 78, 0.34);
  border-radius: 999px;
  color: #fff1b6;
  background: rgba(5, 8, 18, 0.52);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  font-size: 0.9rem;
  font-weight: 900;
}

.reserve-timer strong,
.checkout-timer strong {
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  font-size: 1.08rem;
}

.claim-cta {
  animation: pulseCta 1.3s ease-in-out infinite;
}

@keyframes pulseCta {
  50% {
    transform: scale(1.035);
    box-shadow: 0 24px 70px rgba(248, 194, 78, 0.42);
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(4, 8, 14, 0.76);
  backdrop-filter: blur(10px);
}

.checkout-modal {
  position: relative;
  width: min(530px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(13, 18, 31, 0.96);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.48);
  text-align: center;
}

.checkout-modal.paid-mode {
  width: min(460px, 100%);
  padding: 30px 24px;
}

.checkout-modal.paid-mode .modal-heading {
  display: none;
}

.checkout-modal.package-mode .checkout-timer {
  display: none;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
}

.icon-button {
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1;
}

.modal-heading {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 4px 38px 0;
}

.modal-heading h2 {
  color: #ffffff;
  font-size: clamp(1.9rem, 6vw, 2.65rem);
  line-height: 0.95;
  text-wrap: balance;
}

.modal-heading p,
.paid-panel p {
  color: #bac6d8;
  line-height: 1.45;
  font-weight: 650;
  max-width: 390px;
}

.checkout-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.checkout-form label {
  display: grid;
  gap: 7px;
  color: #dbe7f7;
  font-size: 0.9rem;
  font-weight: 850;
}

.checkout-form input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
}

.checkout-form input::placeholder {
  color: rgba(219, 231, 247, 0.55);
}

.checkout-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(248, 194, 78, 0.13);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-cta {
  width: 100%;
  border-radius: 16px;
  animation: pulseCta 1.3s ease-in-out infinite;
}

.share-unlock {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: #bac6d8;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.share-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 18px;
  background: rgba(34, 211, 238, 0.08);
}

.share-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.2rem, 4.4vw, 1.65rem);
  line-height: 1.05;
}

.share-card p {
  margin: 0;
  color: #dbe7f7;
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 750;
}

.share-meter {
  width: 100%;
  display: grid;
  gap: 8px;
}

.share-meter strong {
  color: #a7f3d0;
  font-size: 1.15rem;
}

.share-track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.share-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #22d3ee, #10b981, var(--gold));
  transition: width 0.25s ease;
}

.whatsapp-action {
  width: 100%;
  border-color: rgba(16, 185, 129, 0.36);
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.14);
}

.share-message {
  color: #fff1b6 !important;
}

.pix-panel {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.auto-confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.09);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 850;
}

.auto-confirm span:last-child {
  max-width: 310px;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.44);
  animation: dotPulse 1.2s ease-out infinite;
}

@keyframes dotPulse {
  70% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.copy-primary {
  width: 100%;
  border-radius: 16px;
  animation: pulseCta 1.3s ease-in-out infinite;
}

.qr-box {
  display: grid;
  place-items: center;
  min-height: 230px;
  border-radius: 18px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, var(--gold), var(--rose), var(--cyan)) border-box;
  border: 2px solid transparent;
}

.qr-box img {
  width: min(220px, 72vw);
  height: auto;
  display: block;
}

.pix-copy {
  display: grid;
  gap: 7px;
}

.pix-copy span {
  color: #dbe7f7;
  font-weight: 850;
  font-size: 0.9rem;
}

.pix-copy code {
  display: block;
  max-height: 96px;
  overflow: auto;
  padding: 12px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  word-break: break-all;
  font-size: 0.82rem;
}

.checkout-actions {
  display: grid;
  gap: 10px;
}

.secondary-action {
  min-height: 50px;
  padding: 12px 16px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  font-weight: 900;
}

.qr-toggle {
  width: 100%;
  border-radius: 16px;
}

.compact {
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  animation: none;
}

.paid-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 6px;
  padding: 18px 0 4px;
  text-align: center;
  color: var(--green);
}

.paid-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #ffffff, var(--green));
  font-size: 1.2rem;
  font-weight: 1000;
}

.paid-panel span {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
}

.paid-panel strong {
  color: #a7f3d0;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 1;
}

.payout-form {
  width: 100%;
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.pix-key-box {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(248, 194, 78, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  text-align: center;
}

.pix-key-box span {
  color: #fff1b6;
  font-size: 1rem;
  font-weight: 1000;
}

.pix-key-box input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 0 14px;
  color: #ffffff;
  background: rgba(5, 8, 18, 0.46);
  outline: none;
  text-align: center;
}

.pix-key-box input::placeholder {
  color: rgba(219, 231, 247, 0.54);
}

.pix-key-box input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(248, 194, 78, 0.13);
}

.payout-progress,
.payout-success {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 16px;
}

.progress-track {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #bbf7d0, #34d399, var(--gold));
  animation: progressFill 2.35s ease forwards;
}

@keyframes progressFill {
  to {
    width: 100%;
  }
}

.payout-progress p {
  color: #dbeafe;
  font-weight: 900;
}

.payout-success {
  min-height: 94px;
  place-content: center;
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: 18px;
  color: #bbf7d0;
  background: rgba(16, 185, 129, 0.1);
}

.payout-success strong {
  color: #bbf7d0;
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  line-height: 1.08;
}

.site-footer {
  display: grid;
  gap: 12px;
  padding: 22px 16px 28px;
  color: #bac6d8;
  background: rgba(5, 8, 18, 0.92);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.82rem;
}

.site-footer div {
  display: grid;
  gap: 4px;
  max-width: 760px;
  margin: 0 auto;
}

.site-footer strong {
  color: #ffffff;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.site-footer a {
  color: #ffe8a5;
  font-weight: 850;
  text-decoration: none;
}

.legal-page {
  min-height: 100vh;
  padding: 42px 16px;
  background: #050812;
}

.legal-shell {
  width: min(860px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  color: #dbe7f7;
}

.legal-shell h1 {
  font-size: clamp(2.1rem, 8vw, 4.4rem);
}

.legal-shell h2 {
  margin-top: 8px;
  color: #ffffff;
  font-size: 1.25rem;
}

.legal-shell p,
.legal-shell li {
  line-height: 1.6;
}

.legal-shell a {
  color: #ffe8a5;
  font-weight: 900;
}

@media (max-width: 720px) {
  .play-scene {
    grid-template-rows: auto auto auto auto;
    align-content: center;
    gap: 18px;
    padding-top: 24px;
  }

  .wheel-stage {
    width: min(92vw, 430px);
  }

  .field-row,
  .checkout-actions,
  .package-grid {
    grid-template-columns: 1fr;
  }

  .package-option {
    min-height: 94px;
  }

  .pix-panel {
    gap: 12px;
  }

  .pix-copy {
    display: none;
  }

  .qr-box {
    display: none;
  }

  .qr-box.qr-open {
    display: grid;
  }
}

@media (max-width: 420px) {
  .play-scene {
    padding-left: 12px;
    padding-right: 12px;
  }

  .wheel-stage {
    width: min(94vw, 350px);
  }

  .wheel-ring::before {
    inset: -12px;
  }

  .claim-cta {
    min-height: 58px;
  }

  .segment-label {
    width: 62px;
    font-size: 0.5rem;
  }

  .segment-label.is-lose {
    width: 44px;
    font-size: 0.34rem;
    line-height: 0.88;
  }

  .modal-heading {
    padding-left: 24px;
    padding-right: 24px;
  }
}
