:root {
  --bg: #071217;
  --panel: rgba(10, 24, 31, 0.88);
  --panel-strong: rgba(13, 34, 43, 0.96);
  --line: rgba(159, 232, 219, 0.3);
  --text: #f1fffb;
  --muted: #b8d9dd;
  --mint: #a8f5d1;
  --amber: #d8ffd2;
  --danger: #95d8ff;
  --blue: #a8d8ff;
  --spark: #eafff7;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  position: relative;
  color: var(--text);
  font-family: "Chakra Petch", sans-serif;
  background:
    radial-gradient(circle at 12% 14%, rgba(168, 245, 209, 0.22), transparent 28rem),
    radial-gradient(circle at 86% 20%, rgba(149, 216, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 50% 95%, rgba(170, 255, 238, 0.12), transparent 26rem),
    linear-gradient(135deg, #03090d 0%, var(--bg) 55%, #061b22 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(168, 245, 209, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149, 216, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}

body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 9% 21%, var(--spark) 0 2px, transparent 3px),
    radial-gradient(circle at 18% 72%, rgba(168, 245, 209, 0.9) 0 1.5px, transparent 3px),
    radial-gradient(circle at 74% 13%, rgba(149, 216, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 91% 56%, var(--spark) 0 1.5px, transparent 3px),
    radial-gradient(circle at 58% 84%, rgba(168, 245, 209, 0.8) 0 2px, transparent 3px);
  filter: drop-shadow(0 0 8px rgba(168, 245, 209, 0.75));
  opacity: 0.7;
  animation: starDrift 7s ease-in-out infinite alternate;
  z-index: 0;
}

button,
input {
  font: inherit;
}

.wheel-shell {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
}

.wheel-hero,
.wheel-stage,
.panel-card,
.winner-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.wheel-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 24px;
  align-items: end;
  padding: clamp(24px, 4vw, 46px);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.wheel-hero > div {
  position: relative;
  z-index: 1;
}

.wheel-hero::before,
.wheel-stage::before {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 12% 18%, var(--spark) 0 2px, transparent 3px),
    radial-gradient(circle at 19% 42%, rgba(149, 216, 255, 0.9) 0 1.5px, transparent 3px),
    radial-gradient(circle at 30% 82%, rgba(168, 245, 209, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 48% 12%, rgba(241, 255, 251, 0.8) 0 1.5px, transparent 3px),
    radial-gradient(circle at 68% 20%, rgba(149, 216, 255, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 52%, rgba(168, 245, 209, 0.85) 0 1.5px, transparent 3px),
    radial-gradient(circle at 86% 74%, var(--spark) 0 1.5px, transparent 3px);
  filter: drop-shadow(0 0 10px rgba(168, 245, 209, 0.8));
  opacity: 0.75;
  z-index: 0;
  animation: sparklePulse 2.8s ease-in-out infinite alternate;
}

.wheel-hero::after {
  content: "*";
  position: absolute;
  right: -70px;
  top: -100px;
  width: 260px;
  height: 260px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(168, 245, 209, 0.3);
  border-radius: 999px;
  color: rgba(149, 216, 255, 0.22);
  font-size: 8rem;
  box-shadow:
    inset 0 0 70px rgba(168, 245, 209, 0.1),
    0 0 80px rgba(149, 216, 255, 0.12);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-family: "Rubik Mono One", sans-serif;
  font-size: clamp(2.1rem, 6vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  text-shadow:
    0 0 18px rgba(168, 245, 209, 0.42),
    0 0 36px rgba(149, 216, 255, 0.25);
}

.intro {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.6;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-links a,
button {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease;
}

.hero-links a:hover,
button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

button:disabled {
  cursor: not-allowed;
}

.winner-card {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  padding: 22px;
  background: var(--panel-strong);
}

.winner-card span {
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
}

.winner-card strong {
  display: block;
  margin-top: 10px;
  color: var(--mint);
  font-family: "Rubik Mono One", sans-serif;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.winner-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.wheel-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(320px, 420px);
  gap: 18px;
  margin-top: 18px;
}

.wheel-stage {
  position: relative;
  min-height: 680px;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 34px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(168, 245, 209, 0.2), transparent 24rem),
    radial-gradient(circle at 18% 24%, rgba(149, 216, 255, 0.1), transparent 18rem),
    rgba(3, 16, 20, 0.86);
  overflow: hidden;
}

.wheel-stage::after {
  content: "";
  position: absolute;
  inset: 7%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, var(--spark) 0 2px, transparent 4px),
    radial-gradient(circle at 23% 74%, rgba(149, 216, 255, 0.92) 0 1.5px, transparent 4px),
    radial-gradient(circle at 36% 12%, rgba(168, 245, 209, 0.9) 0 2px, transparent 4px),
    radial-gradient(circle at 52% 84%, var(--spark) 0 1.5px, transparent 4px),
    radial-gradient(circle at 63% 21%, rgba(168, 245, 209, 0.9) 0 2px, transparent 4px),
    radial-gradient(circle at 79% 64%, rgba(149, 216, 255, 0.95) 0 2px, transparent 4px),
    radial-gradient(circle at 91% 30%, var(--spark) 0 1.5px, transparent 4px);
  filter: drop-shadow(0 0 12px rgba(168, 245, 209, 0.82));
  opacity: 0.88;
  animation: starDrift 5.6s ease-in-out infinite alternate-reverse;
}

#wheel-canvas {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  height: auto;
  aspect-ratio: 1;
  display: block;
  filter:
    drop-shadow(0 26px 60px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 38px rgba(168, 245, 209, 0.28))
    drop-shadow(0 0 18px rgba(149, 216, 255, 0.22));
}

.wheel-pointer {
  position: absolute;
  z-index: 3;
  top: calc(50% - min(50vw, 340px) - 6px);
  left: 50%;
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 42px solid var(--danger);
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.42));
}

.spin-button {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: clamp(112px, 16vw, 154px);
  height: clamp(112px, 16vw, 154px);
  border-radius: 999px;
  color: #06313a;
  background: linear-gradient(135deg, var(--mint), #b7e4ff);
  border: 6px solid rgba(241, 255, 251, 0.9);
  font-family: "Rubik Mono One", sans-serif;
  font-size: clamp(0.86rem, 2vw, 1.2rem);
  letter-spacing: -0.05em;
  transform: translate(-50%, -50%);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.48),
    0 0 34px rgba(168, 245, 209, 0.38),
    inset 0 -6px 0 rgba(9, 55, 68, 0.15);
}

.spin-button:hover {
  transform: translate(-50%, calc(-50% - 1px));
}

.spin-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.winner-burst {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  width: min(520px, 72%);
  min-height: 190px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: clamp(22px, 4vw, 38px);
  text-align: center;
  border: 1px solid rgba(241, 255, 251, 0.72);
  border-radius: 32px;
  color: #06313a;
  background:
    radial-gradient(circle at 18% 22%, rgba(241, 255, 251, 0.95), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(149, 216, 255, 0.62), transparent 32%),
    linear-gradient(135deg, rgba(168, 245, 209, 0.95), rgba(183, 228, 255, 0.94));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    0 0 52px rgba(168, 245, 209, 0.42),
    inset 0 0 34px rgba(241, 255, 251, 0.28);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.76) rotate(-2deg);
  opacity: 0;
}

.winner-burst[hidden] {
  display: none;
}

.winner-burst.is-showing {
  animation: winnerBurstPop 4.8s ease forwards;
}

.winner-burst::before,
.winner-burst::after {
  content: "";
  position: absolute;
  inset: -26px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 24%, var(--spark) 0 3px, transparent 5px),
    radial-gradient(circle at 26% 86%, rgba(149, 216, 255, 0.95) 0 2px, transparent 5px),
    radial-gradient(circle at 70% 14%, var(--spark) 0 3px, transparent 5px),
    radial-gradient(circle at 91% 68%, rgba(168, 245, 209, 0.95) 0 2px, transparent 5px);
  filter: drop-shadow(0 0 12px rgba(241, 255, 251, 0.95));
  animation: burstSparkle 850ms ease-in-out infinite alternate;
}

.winner-burst::after {
  transform: rotate(28deg);
  opacity: 0.7;
  animation-delay: 180ms;
}

.winner-burst-kicker {
  position: relative;
  z-index: 1;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.78;
}

.winner-burst strong {
  position: relative;
  z-index: 1;
  max-width: 100%;
  font-family: "Rubik Mono One", sans-serif;
  font-size: clamp(1.35rem, 4.4vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.08em;
  overflow-wrap: anywhere;
  text-shadow:
    0 2px 0 rgba(241, 255, 251, 0.48),
    0 0 18px rgba(241, 255, 251, 0.64);
}

.confetti-field {
  position: absolute;
  inset: -80px -70px;
  overflow: hidden;
  border-radius: 36px;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 16px;
  border-radius: 4px;
  background: var(--confetti-color, var(--mint));
  box-shadow: 0 0 14px color-mix(in srgb, var(--confetti-color, var(--mint)) 75%, transparent);
  transform: translate(-50%, -50%) rotate(var(--rotate, 0deg));
  animation: confettiPop 1300ms cubic-bezier(0.08, 0.76, 0.24, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

.pull-handle {
  --pull-distance: 0px;
  --pull-stem-extra: 0px;
  position: absolute;
  z-index: 5;
  right: clamp(16px, 3vw, 38px);
  top: 50%;
  width: 94px;
  min-height: 230px;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  gap: 12px;
  padding: 14px 12px 18px;
  border-radius: 999px;
  color: #06313a;
  background:
    radial-gradient(circle at 50% 20%, rgba(241, 255, 251, 0.9), transparent 34%),
    linear-gradient(180deg, rgba(168, 245, 209, 0.95), rgba(149, 216, 255, 0.9));
  border: 2px solid rgba(241, 255, 251, 0.86);
  transform: translateY(-50%);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.42),
    0 0 26px rgba(168, 245, 209, 0.34),
    inset 0 -10px 18px rgba(9, 55, 68, 0.12);
  touch-action: none;
  user-select: none;
}

.pull-handle:hover {
  transform: translateY(calc(-50% - 2px));
}

.pull-handle:disabled {
  filter: grayscale(0.3) brightness(0.82);
}

.handle-label {
  color: #06313a;
  font-family: "Rubik Mono One", sans-serif;
  font-size: 0.62rem;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.handle-track {
  position: relative;
  width: 34px;
  height: 148px;
  display: grid;
  justify-items: center;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.12)),
    rgba(3, 16, 20, 0.28);
  box-shadow:
    inset 0 6px 14px rgba(0, 0, 0, 0.24),
    0 0 18px rgba(241, 255, 251, 0.2);
}

.handle-stem {
  position: absolute;
  z-index: 1;
  top: 64px;
  width: 9px;
  height: calc(58px + var(--pull-stem-extra));
  border-radius: 999px;
  background: linear-gradient(180deg, #f1fffb, #95d8ff);
  box-shadow: 0 0 14px rgba(149, 216, 255, 0.48);
  transform-origin: top center;
}

.handle-knob {
  position: absolute;
  z-index: 2;
  top: 8px;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 42% 42% 48% 48%;
  color: #06313a;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.88), transparent 18%),
    linear-gradient(135deg, #f1fffb, #a8f5d1 48%, #95d8ff);
  border: 3px solid rgba(6, 49, 58, 0.18);
  font-size: 0;
  box-shadow:
    0 12px 22px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(168, 245, 209, 0.45);
  transform: translateY(var(--pull-distance));
  transition: transform 160ms ease, filter 160ms ease;
}

.handle-knob::before {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: #06313a;
}

.handle-knob::before {
  width: 18px;
  height: 18px;
  bottom: 15px;
  left: 25px;
  box-shadow:
    -17px -16px 0 -4px #06313a,
    0 -22px 0 -4px #06313a,
    17px -16px 0 -4px #06313a;
  opacity: 0.78;
}

.pull-handle.is-pulling .handle-stem {
  animation: handleStemPull 720ms cubic-bezier(0.2, 0.92, 0.22, 1);
}

.pull-handle.is-pulling .handle-knob {
  animation: handleKnobPull 720ms cubic-bezier(0.2, 0.92, 0.22, 1);
}

.pull-handle.is-dragging {
  cursor: grabbing;
}

.pull-handle.is-dragging .handle-knob,
.pull-handle.is-dragging .handle-stem {
  transition: none;
}

.wheel-panel {
  display: grid;
  gap: 18px;
  align-content: start;
}

.panel-card {
  border-radius: 24px;
  padding: 20px;
}

.panel-card h2 {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wheel-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.wheel-form button {
  color: #06313a;
  background: linear-gradient(135deg, var(--mint), #b7e4ff);
}

.wheel-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.wheel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.wheel-row button {
  min-width: 0;
}

.wheel-row button:first-child {
  display: grid;
  gap: 2px;
  justify-items: start;
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
}

.wheel-row.is-active button:first-child {
  color: #06313a;
  background:
    radial-gradient(circle at 10% 30%, rgba(241, 255, 251, 0.8), transparent 32%),
    linear-gradient(135deg, var(--mint), #b7e4ff);
  box-shadow: 0 0 24px rgba(168, 245, 209, 0.26);
}

.wheel-row strong {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wheel-row span {
  color: currentColor;
  font-size: 0.78rem;
  opacity: 0.72;
}

.wheel-row button:last-child {
  padding-inline: 10px;
  color: var(--blue);
  background: rgba(149, 216, 255, 0.1);
}

.choice-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(5, 10, 9, 0.72);
  outline: none;
}

input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(168, 245, 209, 0.14);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.quick-actions button,
.choice-form button {
  color: #06313a;
  background: var(--mint);
}

.choice-list {
  display: grid;
  gap: 8px;
  max-height: 370px;
  margin-top: 14px;
  overflow: auto;
  padding-right: 4px;
}

.choice-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--choice-color, var(--mint)) 44%, transparent);
  border-radius: 14px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--choice-color, var(--mint)) 14%, transparent), rgba(255, 255, 255, 0.035));
}

.choice-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--choice-color, var(--mint));
  box-shadow: 0 0 14px color-mix(in srgb, var(--choice-color, var(--mint)) 70%, transparent);
}

.choice-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.choice-row button {
  padding: 7px 9px;
  border-color: rgba(149, 216, 255, 0.42);
  color: var(--danger);
  background: rgba(149, 216, 255, 0.1);
}

.history-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.clear-history-button {
  width: 100%;
  color: #06313a;
  background: linear-gradient(135deg, var(--mint), #b7e4ff);
}

@keyframes sparklePulse {
  from {
    opacity: 0.45;
    transform: scale(0.985);
  }

  to {
    opacity: 0.95;
    transform: scale(1.015);
  }
}

@keyframes starDrift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes handleKnobPull {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  46% {
    transform: translateY(72px) scale(0.96, 1.06);
  }

  70% {
    transform: translateY(54px) scale(1.03, 0.97);
  }
}

@keyframes handleStemPull {
  0%,
  100% {
    height: 58px;
  }

  46% {
    height: 110px;
  }

  70% {
    height: 94px;
  }
}

@keyframes winnerBurstPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7) rotate(-4deg);
  }

  12% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06) rotate(1deg);
  }

  20%,
  78% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92) rotate(2deg);
  }
}

@keyframes burstSparkle {
  from {
    opacity: 0.58;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes confettiPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rotate, 0deg)) scale(0.4);
  }

  16% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform:
      translate(
        calc(-50% + var(--x, 0px)),
        calc(-50% + var(--y, 0px))
      )
      rotate(calc(var(--rotate, 0deg) + 520deg))
      scale(1);
  }
}

.history-list li::marker {
  color: var(--mint);
  font-weight: 900;
}

@media (max-width: 980px) {
  .wheel-hero,
  .wheel-layout {
    grid-template-columns: 1fr;
  }

  .wheel-stage {
    min-height: auto;
  }

  .wheel-pointer {
    top: 20px;
  }

  .pull-handle {
    position: relative;
    right: auto;
    top: auto;
    width: min(280px, 86%);
    min-height: 82px;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr;
    justify-self: center;
    align-items: center;
    transform: none;
    border-radius: 28px;
  }

  .pull-handle:hover {
    transform: translateY(-1px);
  }

  .handle-track {
    width: 100%;
    height: 34px;
    align-items: center;
  }

  .handle-stem {
    top: 12px;
    left: 34px;
    width: calc(100% - 82px);
    height: 9px;
    transform-origin: left center;
    transform: scaleX(calc(1 + (var(--pull-stem-extra-number, 0) * 0.002)));
  }

  .handle-knob {
    top: 50%;
    left: 8px;
    transform: translate(var(--pull-distance), -50%);
  }

  .pull-handle.is-pulling .handle-stem {
    animation: handleStemPullMobile 720ms cubic-bezier(0.2, 0.92, 0.22, 1);
  }

  .pull-handle.is-pulling .handle-knob {
    animation: handleKnobPullMobile 720ms cubic-bezier(0.2, 0.92, 0.22, 1);
  }
}

@media (max-width: 620px) {
  .wheel-shell {
    width: min(100% - 20px, 1480px);
    padding: 16px 0;
  }

  .wheel-hero,
  .wheel-stage,
  .panel-card {
    border-radius: 20px;
    padding: 16px;
  }

  .wheel-form,
  .choice-form,
  .quick-actions {
    grid-template-columns: 1fr;
  }
}

@keyframes handleKnobPullMobile {
  0%,
  100% {
    transform: translate(0, -50%) scale(1);
  }

  46% {
    transform: translate(calc(min(280px, 86vw) - 100px), -50%) scale(0.98, 1.04);
  }

  70% {
    transform: translate(calc(min(280px, 86vw) - 126px), -50%) scale(1.02, 0.98);
  }
}

@keyframes handleStemPullMobile {
  0%,
  100% {
    transform: scaleX(1);
  }

  46% {
    transform: scaleX(1.06);
  }

  70% {
    transform: scaleX(1.02);
  }
}
