.wheel-page {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  color: var(--ink);
  padding-bottom: var(--email-keyboard-inset, 0px);
}
.wheel-page [hidden] { display: none !important; }
.wheel-page :focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.wheel-page .header nav { justify-content: flex-end; }
.wheel-layout {
  display: grid;
  grid-template-columns: minmax(0, 36rem);
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  margin-block: auto;
  padding-block: clamp(1.65rem, 5vw, 4.25rem);
}
.wheel-layout[data-step="spin"], .wheel-layout[data-step="result"] {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
}
.wheel-layout[data-step="intro"] { grid-template-columns: minmax(0, 42rem); }
.wheel-layout[data-step="intro"] .wheel-content h1 em,
.wheel-layout[data-step="email"] .wheel-content h1 em { display: inline; }
.wheel-content h1 { max-width: none; margin: 0 0 .7rem; }
.wheel-content h1 em { display: block; }
.wheel-content h1 em span { color: var(--accent); }
#spin-title { margin-bottom: 0; font-size: clamp(1.35rem, 3vw, 2rem); }
.wheel-lead { max-width: 37ch; font-size: clamp(1rem, 2.1vw, 1.19rem); }
.wheel-prizes {
  display: grid;
  gap: .55rem;
  margin: 1.35rem 0;
  padding: 0;
  list-style: none;
}
.wheel-prizes li {
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: white;
}
.wheel-prizes li span {
  display: grid;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .38rem;
  background: var(--wash);
  color: var(--brand);
  font-weight: 700;
}
.wheel-prizes li + li span { background: var(--sand); color: var(--accent); }
.wheel-actions { display: flex; flex-wrap: wrap; gap: .55rem 1rem; align-items: center; }
.wheel-actions .button, .text-button { min-height: 44px; font: inherit; font-weight: 700; cursor: pointer; }
.wheel-actions .button:disabled { cursor: default; opacity: .65; }
.wheel-actions > a:not(.button), .text-button { color: var(--brand); font-size: .9rem; }
.text-button { border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: .25em; }
.wheel-stage {
  display: grid;
  place-items: center;
  border-radius: 1.5rem;
  padding: clamp(1.15rem, 4vw, 3.3rem);
  background: var(--sand);
}
.wheel-instrument {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  border: .48rem solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 12px 25px #182b2d29;
}
#wheel { display: block; width: 100%; height: 100%; border-radius: 50%; }
.wheel-pointer {
  position: absolute;
  z-index: 2;
  top: -.8rem;
  left: 50%;
  width: 2rem;
  height: 2.2rem;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateX(-50%);
}
.wheel-hub {
  position: absolute;
  inset: 33.5%;
  display: grid;
  place-content: center;
  gap: .12em;
  padding: 0;
  border: 3px solid var(--cream);
  border-radius: 50%;
  background: var(--brand);
  color: white;
  box-shadow: 0 4px 0 #103d43, 0 7px 16px #182b2d55;
  font: 800 clamp(.82rem, 2.5vw, 1.24rem)/1.1 var(--display);
  cursor: pointer;
  transition: transform .16s, background-color .16s;
}
.wheel-hub span { font-size: 1.65em; }
.wheel-hub:focus-visible { outline-color: var(--cream); }
.wheel-hub:not(:disabled):hover { background: var(--brand-hover); transform: scale(1.07); }
.wheel-hub:not(:disabled):active { transform: scale(.95); }
.wheel-hub:disabled { cursor: default; }
.is-spinning .wheel-hub span { animation: wheel-hub-turn .8s linear infinite; }
#wheel-win {
  background: var(--cream);
  color: var(--accent);
  box-shadow: 0 3px 12px #182b2d26;
  font-size: clamp(1.8rem, 6vw, 3.6rem);
  cursor: default;
  animation: wheel-win-pop .65s cubic-bezier(.2,.8,.25,1.35) both;
}
.wheel-card { padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--line); border-radius: 1rem; background: white; }
.wheel-card h2 { margin: 0 0 .6rem; font-size: clamp(1.55rem, 3.2vw, 2.25rem); }
.wheel-card form { display: grid; gap: .65rem; margin-top: 1rem; }
.wheel-card > .wheel-actions { margin-top: .9rem; }
.wheel-card label { font-weight: 700; }
.wheel-card input[type=email] {
  width: 100%;
  min-height: 44px;
  border: 1px solid #788d8c;
  border-radius: .45rem;
  padding: .5rem .65rem;
  font: inherit;
  color: var(--ink);
}
.wheel-card .check { display: flex; gap: .5rem; align-items: baseline; font-size: .9rem; font-weight: 400; }
.check input { accent-color: var(--brand); }
.wheel-note, .wheel-feedback { font-size: .86rem; }
#campaign-status, .wheel-feedback:not(:empty) { margin-top: .75rem; }
.wheel-feedback { color: var(--accent); }
.claim-code { margin-top: .65rem; padding: .6rem; background: var(--wash); overflow-wrap: anywhere; font-size: .84rem; }
.wheel-result {
  position: relative;
  isolation: isolate;
  background: var(--brand);
  color: var(--cream);
  padding: clamp(1.25rem, 3vw, 2.35rem);
  animation: wheel-reveal .55s cubic-bezier(.15,.8,.25,1.15) both;
}
.wheel-result h2 { font-size: clamp(1.8rem, 4.6vw, 3.4rem); text-wrap: balance; }
.win-kicker {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .55rem;
  color: #ffda92;
  font: 800 1.2rem/1.2 var(--display);
}
.win-kicker span { font-size: 1.55em; }
.wheel-result .claim-code { background: var(--brand-hover); border-radius: .4rem; }
.wheel-result .button { background: var(--cream); color: var(--brand-hover); }
.wheel-result .button:hover { background: #ffda92; }
.wheel-result :focus-visible { outline-color: var(--cream); }
#wheel-confetti { position: absolute; z-index: 2; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
#wheel-confetti span { position: absolute; top: 32%; left: 50%; width: .52rem; height: .73rem; border-radius: 2px; }
@keyframes wheel-reveal {
  from { opacity: 0; transform: translateY(.85rem) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes wheel-hub-turn { to { transform: rotate(1turn); } }
@keyframes wheel-win-pop {
  from { transform: scale(.58); }
  to { transform: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wheel-rules { width: min(100% - 2rem, 730px); margin-inline: auto; padding-block: clamp(1.5rem, 6vw, 4rem); }
.wheel-rules h1 { max-width: none; }
.wheel-rules h2 { margin: 1.5rem 0 .65rem; font-size: clamp(1.45rem, 3.7vw, 2rem); }
.wheel-rules p + p { margin-top: .55rem; }

@media (max-width: 730px) {
  .wheel-layout[data-step="spin"], .wheel-layout[data-step="result"] { grid-template-columns: 1fr; gap: 1rem; }
  .wheel-content h1 em { display: inline; }
  .wheel-stage { border-radius: 1rem; }
  .wheel-instrument { width: min(100%, 280px, max(190px, 42svh)); }
  .wheel-layout[data-step="result"] .wheel-instrument { width: min(100%, 175px); }
  .wheel-page .header, .wheel-page .footer { padding-block: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wheel-result, #wheel-win, .is-spinning .wheel-hub span { animation: none; }
  .wheel-hub { transition: none; }
}
