.wheel-game {
  gap: 22px;
  overflow-x: clip;
}

.modal-panel:has(.wheel-game) {
  width: min(1120px, 100%);
}

.wheel-stage {
  display: grid;
  place-items: center;
  overflow: clip;
  padding: 34px 0 26px;
}

.wheel-assembly {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  width: min(78vw, 660px);
  aspect-ratio: 1;
}

.wheel-light-ring {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #36d8ec, #f6eb00, #e54f1c, #f2c86b, #36d8ec);
  filter: drop-shadow(0 0 9px rgba(54, 216, 236, .44)) drop-shadow(0 0 22px rgba(229, 79, 28, .25));
  animation: light-chase 9s linear infinite;
}

.wheel-light-ring::after {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #090b0d;
  content: "";
}

.wheel-frame {
  position: absolute;
  inset: 15px;
  border: 2px solid rgba(242, 200, 107, .96);
  border-radius: 50%;
  background: radial-gradient(circle, #13191d 0 68%, #252a2c 69% 72%, #090b0d 73%);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .07), inset 0 0 38px #000, 0 0 32px rgba(242, 200, 107, .24);
}

.wheel-frame::before,
.wheel-frame::after {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.wheel-frame::after {
  inset: 20px;
  border-color: rgba(54, 216, 236, .25);
}

.prize-wheel {
  position: absolute;
  inset: 5.5%;
  width: auto;
  max-width: none;
  border: 7px solid #101417;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(242, 200, 107, .8), inset 0 0 24px rgba(0, 0, 0, .38);
  transition: transform 7s cubic-bezier(.12, .68, .09, 1);
  will-change: transform;
}

.prize-wheel::after {
  content: none;
}

.wheel-label-layer {
  position: absolute;
  z-index: 2;
  inset: 5.5%;
  overflow: clip;
  border-radius: 50%;
  pointer-events: none;
  transition: opacity .25s;
}

.wheel-label-layer.labels-hidden {
  opacity: 0;
}

.wheel-label {
  position: absolute;
  display: grid;
  width: 29%;
  min-height: 36px;
  place-items: center;
  padding: 6px 8px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 227, 157, .78);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(8, 10, 12, .88), rgba(8, 10, 12, .66));
  box-shadow: 0 2px 9px rgba(0, 0, 0, .48), inset 0 0 8px rgba(242, 200, 107, .2);
  color: #fff9e8;
  font-size: clamp(12px, 1.12vw, 17px);
  font-weight: 950;
  text-align: center;
  text-shadow: 0 1px 2px #000, 0 0 9px rgba(255, 255, 255, .38);
  white-space: nowrap;
  backdrop-filter: blur(2px);
}

.wheel-label.winner-label {
  z-index: 3;
  border-color: #fff7d4;
  background: linear-gradient(180deg, #fff4c4, #f2c86b);
  color: #15100a;
  text-shadow: 0 1px rgba(255, 255, 255, .7);
  box-shadow: 0 0 0 3px rgba(242, 200, 107, .2), 0 0 24px rgba(255, 225, 143, .95);
  animation: winner-pulse .85s ease-in-out infinite alternate;
}

.wheel-center {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: 25%;
  aspect-ratio: 1;
  place-items: center;
  align-content: center;
  gap: 2px;
  transform: translate(-50%, -50%);
  border: 3px solid #f2c86b;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #30363b, #080a0c 72%);
  box-shadow: 0 0 0 7px rgba(9, 11, 13, .8), 0 0 28px rgba(242, 200, 107, .44), inset 0 0 20px #000;
  text-align: center;
}

.wheel-center span,
.wheel-center small {
  color: #36d8ec;
  font: 800 clamp(7px, .72vw, 10px)/1 ui-monospace, monospace;
  letter-spacing: 2px;
}

.wheel-center strong {
  color: #fff4c4;
  font-size: clamp(18px, 2.5vw, 34px);
  line-height: 1;
  text-shadow: 0 0 12px rgba(242, 200, 107, .65);
}

.wheel-pointer {
  position: absolute;
  z-index: 6;
  top: 10px;
  left: 50%;
  width: 44px;
  height: 64px;
  transform: translateX(-50%);
  border: 0;
  filter: drop-shadow(0 5px 9px #000);
}

.wheel-pointer::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translateX(-50%);
  border: 2px solid #fff0b5;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff5c5, #d89f37 58%, #66491d 100%);
  box-shadow: 0 0 15px rgba(242, 200, 107, .65);
  content: "";
}

.wheel-pointer span {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-top: 39px solid #f6eb00;
  border-right: 18px solid transparent;
  border-left: 18px solid transparent;
  filter: drop-shadow(0 2px 1px #672b0c);
}

.activation-field {
  display: grid;
  gap: 9px;
}

.activation-field > span {
  color: #f2c86b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}

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

.activation-input-row input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 3px;
  outline: none;
  background: #080a0c;
  color: #fff;
  font: 700 15px ui-monospace, monospace;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.activation-input-row input:focus {
  border-color: #36d8ec;
  box-shadow: 0 0 0 2px rgba(54, 216, 236, .16);
}

.activation-input-row input:disabled {
  opacity: .6;
}

.activation-input-row input::placeholder {
  color: #899399;
  font-size: 12px;
  letter-spacing: 0;
}

.verify-button {
  min-width: 144px;
  padding: 0 18px;
  border: 1px solid #36d8ec;
  background: rgba(54, 216, 236, .1);
  color: #bdf8ff;
  font-weight: 900;
  cursor: pointer;
}

.verify-button:disabled {
  opacity: .55;
  cursor: wait;
}

.activation-field > small {
  min-height: 18px;
  color: #aeb5b9;
  font-size: 12px;
}

.activation-field > small.status-ok {
  color: #89e8bb;
}

.activation-field > small.status-error {
  color: #ff8379;
}

.spin-action {
  min-height: 62px;
  background: linear-gradient(100deg, #f6eb00, #f2c86b);
  box-shadow: 0 8px 25px rgba(242, 200, 107, .16);
  font-size: 17px;
  letter-spacing: 1px;
}

.wheel-result {
  border-color: rgba(242, 200, 107, .32);
  background: linear-gradient(110deg, rgba(242, 200, 107, .08), rgba(54, 216, 236, .035));
}

.wheel-result span {
  color: #b6bec3;
  font-size: 12px;
}

.wheel-result strong {
  font-size: 19px;
}

.prize-reveal {
  position: relative;
  display: none;
  overflow: clip;
  padding: 32px 20px;
  border: 1px solid rgba(242, 200, 107, .72);
  background: radial-gradient(ellipse at 50% 120%, rgba(229, 79, 28, .32), transparent 58%), linear-gradient(145deg, #181c20, #0a0c0e);
  text-align: center;
  box-shadow: 0 0 40px rgba(229, 79, 28, .18), inset 0 0 30px rgba(242, 200, 107, .06);
}

.prize-reveal.show {
  display: block;
  animation: reveal-in .7s cubic-bezier(.18, .85, .25, 1.2) both;
}

.reveal-kicker {
  position: relative;
  z-index: 2;
  color: #f2c86b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 3px;
}

.prize-reveal h3 {
  position: relative;
  z-index: 2;
  margin: 12px 0 0;
  font-size: clamp(25px, 4vw, 38px);
}

.prize-reveal > strong {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 10px;
  color: #f6eb00;
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 950;
  text-shadow: 0 0 22px rgba(246, 235, 0, .36);
}

.prize-reveal p {
  position: relative;
  z-index: 2;
  margin: 14px 0 0;
  color: #b6bec3;
  font: 12px ui-monospace, monospace;
}

.confetti {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 7px;
  height: 13px;
  transform: translateY(-50px) rotate(0);
  background: hsl(var(--hue) 90% 62%);
  opacity: 0;
  animation: confetti-fall 1.7s cubic-bezier(.1, .7, .2, 1) var(--delay) forwards;
}

@keyframes light-chase {
  to { transform: rotate(360deg); }
}

@keyframes winner-pulse {
  to { box-shadow: 0 0 0 5px rgba(242, 200, 107, .25), 0 0 34px #ffe18f; }
}

@keyframes confetti-fall {
  0% { opacity: 0; transform: translateY(-50px) rotate(0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(220px) rotate(720deg); }
}

@keyframes reveal-in {
  0% { opacity: 0; transform: translateY(18px) scale(.96); filter: brightness(1.8); }
  65% { opacity: 1; transform: translateY(-3px) scale(1.01); filter: brightness(1.2); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: none; }
}

@media (max-width: 640px) {
  .wheel-stage { padding: 27px 0 18px; }
  .wheel-assembly { width: min(88vw, 430px); }
  .wheel-frame { inset: 10px; }
  .wheel-light-ring::after { inset: 6px; }
  .wheel-label-layer { inset: 7%; }
  .wheel-label { width: 31%; min-height: 30px; padding: 4px 3px; font-size: 11px; font-weight: 950; line-height: 1.12; white-space: normal; }
  .wheel-center { width: 27%; }
  .wheel-center span, .wheel-center small { font-size: 7px; letter-spacing: 1px; }
  .wheel-center strong { font-size: 19px; }
  .wheel-pointer { top: 8px; transform: translateX(-50%) scale(.86); }
  .activation-input-row { grid-template-columns: minmax(0, 1fr) 112px; gap: 7px; }
  .activation-input-row input { height: 48px; padding: 0 10px; font-size: 12px; letter-spacing: .4px; }
  .activation-input-row input::placeholder { font-size: 10px; }
  .verify-button { min-width: 0; padding: 0 8px; font-size: 12px; }
  .spin-action { min-height: 56px; font-size: 15px; }
  .prize-reveal { padding: 27px 14px; }
  .modal-panel:has(.wheel-game) { max-height: 96svh; }
}
