:root {
  --bg: #041c16;
  --bg-deep: #02130f;
  --gold: #f5c66a;
  --gold-strong: #ffde8e;
  --mint: #2cb985;
  --light: #ecfff7;
  --danger: #ff615e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--light);
  background:
    radial-gradient(circle at 20% 10%, #0e3f31 0%, transparent 50%),
    radial-gradient(circle at 80% 5%, #164635 0%, transparent 45%),
    linear-gradient(160deg, var(--bg), var(--bg-deep));
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  width: 34vw;
  height: 34vw;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.24;
  z-index: 0;
}

.ambient-left {
  left: -10vw;
  bottom: 0;
  background: #1fd39a;
}

.ambient-right {
  right: -10vw;
  top: 10vh;
  background: #ffcf65;
}

.layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 20px;
  padding: 32px 16px;
}

.hero {
  max-width: 760px;
  text-align: center;
}

.logo-main {
  width: 168px;
  margin-bottom: 6px;
}

.logo-alt {
  width: min(340px, 85vw);
  display: block;
  margin: 0 auto 12px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

h1 {
  margin: 10px 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.subtitle {
  margin: 0;
  color: #c3e6d8;
}

.wheel-wrap {
  width: min(460px, 92vw);
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 222, 142, 0.25);
  border-radius: 24px;
  padding: 20px 16px 18px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

.pointer {
  width: 0;
  height: 0;
  margin: 0 auto -8px;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 24px solid var(--danger);
  filter: drop-shadow(0 0 8px rgba(255, 97, 94, 0.8));
}

.wheel {
  width: min(370px, 80vw);
  aspect-ratio: 1;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 10px solid #f4d07a;
  background:
    radial-gradient(circle at center, #ffffff 0 11%, transparent 11.5% 100%),
    conic-gradient(
      #f1b93d 0deg 45deg,
      #2fbf8a 45deg 90deg,
      #ffd773 90deg 135deg,
      #198060 135deg 180deg,
      #f8c55e 180deg 225deg,
      #33cb96 225deg 270deg,
      #f4d790 270deg 315deg,
      #0f6a4f 315deg 360deg
    );
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.4),
    inset 0 0 25px rgba(0, 0, 0, 0.3);
  transition: transform 5.2s cubic-bezier(0.12, 0.88, 0.2, 1);
  position: relative;
}

.wheel::after {
  content: "";
  position: absolute;
  inset: 41%;
  border-radius: 50%;
  background: #fff9ea;
  border: 3px solid #d2a84f;
}

.spin-btn,
.cta {
  width: min(320px, 85%);
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.88rem;
}

.spin-btn {
  background: linear-gradient(90deg, var(--gold), var(--gold-strong));
  color: #17322a;
  cursor: pointer;
}

.spin-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.result {
  min-height: 1.3em;
  margin: 12px 0;
  color: #fff3d6;
  font-weight: 700;
}

.cta {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(90deg, #00a36a, var(--mint));
  color: #fff;
}

.note {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: #b8cbbf;
}

@media (max-width: 500px) {
  .wheel-wrap {
    padding: 16px 10px 14px;
    border-radius: 18px;
  }
}
