/* ==========================================================================
   Spin & Win
   ========================================================================== */

/* The one page in the arcade that is allowed to scroll: below the wheel is a
   prize list and, on a win, a form — neither of which belongs in a fixed
   screen. The wheel itself is still sized to sit whole on the first one. */
.cab-scroll .cab {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
}

.cab-scroll .cab-main {
  display: block;
  padding: 6px 14px 34px;
}

.spin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .spin-layout {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------- wheel --- */

.wheel-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wheel-holder {
  position: relative;
  /* As wide as the screen allows, but never so tall that the Spin button
     falls off the bottom of a phone. */
  width: min(100%, 560px, 100vh - 230px);
  width: min(100%, 560px, 100dvh - 230px);
  min-width: 240px;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.6));
}

.wheel-holder canvas {
  width: 100%;
  height: auto;
}

/* Pointer sits over the top edge of the wheel */
.wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 40px solid var(--frimax-amber);
  z-index: 3;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.65));
}

.wheel-pointer::after {
  content: "";
  position: absolute;
  top: -46px;
  left: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--frimax-amber);
  border: 3px solid var(--frimax-green-dark);
}

.spin-controls {
  margin-top: 18px;
  text-align: center;
}

.spin-controls .btn {
  min-width: 210px;
}

.spins-left {
  margin: 14px 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.wheel-spinning {
  cursor: progress;
}

/* -------------------------------------------------------------- result --- */

.result-panel {
  position: sticky;
  top: 20px;
}

.result-panel h2 {
  font-size: 1.7rem;
  color: var(--frimax-amber);
  margin-bottom: 14px;
}

.prize-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prize-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.92rem;
}

.prize-art {
  width: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.prize-art img {
  width: 100%;
  height: auto;
  display: block;
}

.prize-swatch {
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.4);
}

.fine-print {
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.5;
}

.won-art img {
  width: 100%;
  height: auto;
  display: block;
}

.won-art {
  width: 132px;
  margin: 0 auto 16px;
  animation: prize-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes prize-pop {
  from {
    transform: scale(0.4) rotate(-12deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

.won-prize {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--frimax-cream);
  text-align: center;
  margin-bottom: 16px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  cursor: pointer;
}

.consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--frimax-green);
}

.voucher-code {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--frimax-ink);
  background: var(--frimax-amber);
  border-radius: var(--radius);
  padding: 16px;
  margin: 18px 0;
  user-select: all;
  word-break: break-all;
}
