:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --bg-2: #12110f;
  --bg-3: #181513;
  --surface: rgba(18, 15, 13, 0.86);
  --surface-strong: rgba(20, 16, 14, 0.95);
  --ink: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.66);
  --line: rgba(1, 58, 15, 0.3);
  --accent: #013a0f;
  --accent-2: #0e5a22;
  --accent-3: #0b2913;
  --forest: #013a0f;
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(120% 120% at 10% 15%, rgba(1, 58, 15, 0.35), transparent 55%),
    radial-gradient(130% 130% at 90% 10%, rgba(1, 58, 15, 0.22), transparent 60%),
    linear-gradient(135deg, var(--bg), var(--bg-2) 55%, var(--bg-3));
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(0, 0, 0, 0.12) 1px, transparent 1px);
  background-size: 18px 18px, 24px 24px;
  background-position: 0 0, 6px 6px;
  opacity: 0.35;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.app {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 18px 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.hero {
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(1, 58, 15, 0.35);
  backdrop-filter: blur(8px);
}

.hero::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(1, 58, 15, 0.35), transparent 70%);
  opacity: 0.6;
}

.hero__brand {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__mood {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  color: rgba(246, 239, 229, 0.6);
}

.hero__title {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.25;
  font-weight: 700;
}

.hero__subtitle {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.card-gate {
  padding: 26px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(1, 58, 15, 0.28);
  backdrop-filter: blur(8px);
}

.card-gate h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 600;
}

.card-gate__text {
  margin: 0;
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #f7f2e8;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(1, 58, 15, 0.35), 0 0 0 1px rgba(1, 58, 15, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(1, 58, 15, 0.45);
}

.card-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-form label {
  font-weight: 600;
}

.card-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

input[type="number"],
input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-size: 16px;
  font-family: inherit;
  background: rgba(16, 12, 10, 0.7);
  color: var(--ink);
}

input[type="number"]:focus,
input[type="tel"]:focus {
  outline: none;
  border-color: rgba(1, 58, 15, 0.7);
  box-shadow: 0 0 0 2px rgba(1, 58, 15, 0.25);
}

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

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ghost {
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(1, 58, 15, 0.2);
  color: var(--ink);
  font-weight: 600;
  border: 1px solid rgba(1, 58, 15, 0.4);
}

.card-hint {
  margin: 0;
  color: var(--muted);
}

.card-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 8px 0;
}

.wheel-section {
  padding: 28px;
  background: var(--surface-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  align-items: center;
  gap: 18px;
  flex-direction: column;
  animation: fadeIn 0.6s ease;
  border: 1px solid rgba(1, 58, 15, 0.35);
}

.wheel-section.active {
  display: flex;
}

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

#wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px rgba(1, 58, 15, 0.6), 0 18px 40px rgba(0, 0, 0, 0.45);
  background: #1a1411;
}

.pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 24px;
  background: var(--accent);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
  animation: float 2.4s ease-in-out infinite;
}

.coin-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(1, 58, 15, 0.18);
  border: 1px solid rgba(1, 58, 15, 0.4);
  font-weight: 600;
  flex-wrap: wrap;
  justify-content: center;
}

.coin-panel strong {
  font-size: 20px;
  color: var(--ink);
}

.coin-note {
  font-size: 12px;
  color: var(--muted);
}

.spin {
  padding: 14px 32px;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #f7f2e8;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 18px 30px rgba(1, 58, 15, 0.45);
  transition: transform 0.2s ease;
}

.spin:hover {
  transform: translateY(-2px);
}

.result {
  min-height: 48px;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
}

.result img {
  width: 48px;
  height: 48px;
  vertical-align: middle;
  margin-right: 10px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.prize-list {
  padding: 26px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(1, 58, 15, 0.3);
}

.prize-list h2 {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
}

.prize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.prize-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(18, 13, 10, 0.65);
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  font-weight: 600;
  border: 1px solid rgba(1, 58, 15, 0.28);
  color: var(--ink);
}

.prize-card__media {
  position: relative;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
}

.prize-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.prize-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #f4f1ea;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes float {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(4px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .app {
    padding: 20px 14px 40px;
  }

  .card-form__row {
    grid-template-columns: 1fr;
  }

  .wheel-section {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pointer,
  .wheel-section {
    animation: none;
  }

  .cta,
  .spin {
    transition: none;
  }
}
