.wheel-disc {
  --wheel-turn: 0deg;
  --wheel-ink: var(--cocoa);
  --wheel-duration: 4.35s;
  position: relative;
  width: 100%;
  height: 100%;
  container-type: inline-size;
  transform: rotate(var(--wheel-turn));
}

.wheel-disc,
.wheel-caption {
  transition: transform var(--wheel-duration) cubic-bezier(.16, .62, .16, 1);
}

.wheel-disc.is-resting, .wheel-disc.is-resting .wheel-caption { transition: none; }
#wheel-fields .landed-sector { stroke: var(--bronze); stroke-width: 1.4; }

#prize-wheel,
.wheel-surface,
#wheel-captions {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wheel-surface { display: block; }
#wheel-fields path { stroke: #fff7eb; stroke-width: .65; }
.wheel-hairline { fill: none; stroke: #b09774; stroke-width: .6; }

.wheel-caption {
  position: absolute;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .55cqw;
  width: max-content;
  translate: -50% -50%;
  /* Match the disc's timing so each caption stays level throughout the spin. */
  transform: rotate(calc(0deg - var(--wheel-turn)));
  color: var(--wheel-ink);
  text-align: center;
  white-space: nowrap;
}

.wheel-amount {
  font: 600 clamp(18px, 6.6cqw, 30px)/1 var(--font-display);
  font-variant-numeric: lining-nums;
  letter-spacing: -.035em;
}

.wheel-service {
  font: 550 clamp(11px, 3.65cqw, 15px)/1.13 var(--font-ui);
  letter-spacing: -.02em;
}
.wheel-caption:not(.wheel-caption-gift) .wheel-service {
  max-inline-size: 23cqw;
  white-space: normal;
}

.wheel-caption > * { position: relative; top: var(--optical-shift, -1.45cqw); }
.wheel-caption-gift { --optical-shift: -1.4cqw; gap: .65cqw; }
.wheel-caption-gift .wheel-amount { font-size: clamp(11px, 4.4cqw, 19px); line-height: .96; letter-spacing: -.045em; }
.wheel-caption-gift .wheel-service { font-size: clamp(11px, 3.4cqw, 14px); }

.wheel-caption-box { --optical-shift: -2.05cqw; gap: .7cqw; color: #fff8ed; }
.wheel-caption-box .wheel-amount {
  font-size: clamp(11px, 4.15cqw, 18px);
  font-weight: 600;
  letter-spacing: 0;
}

.wheel-bow {
  display: block;
  width: 6.8cqw;
  height: auto;
  fill: none;
  stroke: #f5e3c4;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@container (max-width: 445px) {
  .wheel-caption-gift { --optical-shift: 1.15cqw; }
  .wheel-condition { display: block; }
}

#wheel-sectors {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
}
.wheel-sector {
  position: absolute;
  inset: 1.25%;
  width: 97.5%;
  height: 97.5%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  clip-path: polygon(50% 50%, 50% 0, 100% 0);
}

.wheel-sector:hover { background: #fff8ed20; }
.wheel-sector:focus-visible {
  outline: none;
  background: #fff8ed45;
  box-shadow: inset 0 0 0 4px var(--cocoa);
}

#gate-modal.is-result {
  background: radial-gradient(ellipse at 50% 0%, #ead9bc 0%, transparent 54%), var(--paper);
  text-align: center;
}
#gate-modal.is-result[open] { animation: prize-arrival .52s cubic-bezier(.2,.72,.24,1) both; }
#gate-modal.is-result[open]::backdrop { animation: prize-backdrop .42s ease-out both; }
#gate-modal.is-result .eyebrow { margin: .45rem 2rem .75rem; }
#gate-modal.is-result h2 { padding: 0; overflow-wrap: anywhere; }
#prize-step .prize-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  line-height: 1.25;
}
#prize-step .prize-label::before, #prize-step .prize-label::after {
  content: "";
  flex: 0 1 2.1rem;
  height: 1px;
  background: var(--bronze);
  opacity: .45;
}
#prize-step .voucher {
  gap: .15rem;
  background: linear-gradient(150deg, #fffcf7, #f6eddd);
  border-color: #dbc8a9;
}

#prize-save-reminder { text-align: center; }
#prize-save-reminder h2 { padding: 0; }
#reminder-prize-code {
  display: block;
  margin: 1rem 0;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--cream);
  color: var(--ink);
  font: 600 clamp(1.25rem, 6vw, 2rem)/1.25 ui-monospace, Consolas, monospace;
  letter-spacing: .055em;
  overflow-wrap: anywhere;
}
#confirm-prize-close { background-color: transparent; }

@keyframes prize-arrival {
  from { opacity: 0; transform: translateY(1rem) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes prize-backdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .wheel-disc, .wheel-caption { transition: none; }
  #gate-modal.is-result[open], #gate-modal.is-result[open]::backdrop { animation: none; }
}
