:root {
  --green-950: #003d25;
  --green-800: #006b3c;
  --green-600: #00a859;
  --yellow: #ffdf00;
  --yellow-strong: #ffc600;
  --blue: #003f9f;
  --blue-bright: #146de0;
  --white: #ffffff;
  --ink: #08231a;
  --wheel-size: min(64vw, 34dvh, 310px);
  --mascot-width: min(55vw, 245px);
  --wheel-lift: clamp(38px, 12vw, 54px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
}

body {
  position: relative;
  min-width: 280px;
  background:
    radial-gradient(circle at 50% 31%, rgba(255, 223, 0, 0.16), transparent 31%),
    linear-gradient(152deg, #00964e 0%, #006c3d 48%, #00452d 100%);
  color: var(--white);
  font-family:
    Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.background-effects,
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.background-effects::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.085;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath fill='%23fff' fill-opacity='.8' d='M24 7l2.5 5 5.5.8-4 3.9.9 5.5-4.9-2.6-4.9 2.6.9-5.5-4-3.9 5.5-.8z'/%3E%3C/svg%3E");
}

.glow {
  position: absolute;
  width: 48vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(20px);
}

.glow--yellow {
  top: -37vmax;
  right: -21vmax;
  background: rgba(255, 223, 0, 0.15);
}

.glow--blue {
  bottom: -36vmax;
  left: -28vmax;
  background: rgba(0, 63, 159, 0.32);
}

.pitch-line {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.pitch-line--one {
  width: 45vmax;
  height: 45vmax;
  top: 31%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pitch-line--two {
  width: 95vw;
  height: 36vh;
  top: 13%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 24px;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  height: 100dvh;
  margin: 0 auto;
  padding:
    max(10px, var(--safe-top))
    18px
    max(12px, var(--safe-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(6px, 1.15dvh, 12px);
}

.hero {
  flex: 0 0 auto;
  text-align: center;
}

.cup-ribbon {
  height: 32px;
  margin: 0 auto 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--yellow);
  filter: drop-shadow(0 3px 4px rgba(0, 42, 24, 0.28));
  animation: cup-enter 650ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cup-ribbon::before,
.cup-ribbon::after {
  content: "";
  width: clamp(22px, 8vw, 46px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 223, 0, 0.7));
}

.cup-ribbon::after {
  background: linear-gradient(90deg, rgba(255, 223, 0, 0.7), transparent);
}

.cup-ribbon__stars {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  white-space: nowrap;
  animation: stars-shine 2.2s ease-in-out infinite;
}

.cup-ribbon__trophy {
  position: relative;
  width: 25px;
  height: 28px;
  display: grid;
  place-items: end center;
}

.cup-ribbon__trophy svg {
  width: 22px;
  height: 25px;
  overflow: visible;
  fill: var(--yellow);
  stroke: var(--yellow);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cup-ribbon__crown {
  position: absolute;
  top: -6px;
  left: 50%;
  color: var(--white);
  font-size: 0.54rem;
  transform: translateX(-50%);
  animation: crown-pulse 1.6s ease-in-out infinite;
}

h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.55rem, 6.9vw, 3rem);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-shadow: 0 5px 0 rgba(0, 55, 33, 0.3);
  animation: title-enter 650ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

h1 span {
  display: block;
  margin-top: 3px;
  color: var(--yellow);
  font-size: 0.83em;
  font-style: italic;
  transform: rotate(-1deg);
  text-shadow:
    0 4px 0 #b47c00,
    0 8px 20px rgba(0, 35, 20, 0.3);
  animation: title-pulse 2.4s ease-in-out 900ms infinite;
}

.game {
  width: 100%;
  flex: 0 0 auto;
}

.game-showcase {
  position: relative;
  width: 100%;
  height: max(var(--wheel-size), calc(var(--mascot-width) * 1.61));
}

.wheel-stage {
  position: absolute;
  z-index: 2;
  right: -5%;
  bottom: calc(7% + var(--wheel-lift));
  width: var(--wheel-size);
  height: var(--wheel-size);
  filter: drop-shadow(0 18px 24px rgba(0, 29, 17, 0.32));
}

.lucas-mascot {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: -8%;
  width: var(--mascot-width);
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 8px 8px rgba(0, 30, 18, 0.28));
}

.wheel-frame {
  width: 100%;
  height: 100%;
  padding: clamp(7px, 2.2vw, 11px);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff9c3, var(--yellow-strong) 38%, #aa7300 72%, #fff1a2);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.8),
    inset 0 0 0 2px rgba(112, 66, 0, 0.35),
    inset 0 0 18px rgba(255, 255, 255, 0.7);
}

.wheel {
  --spin-angle: 0deg;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: conic-gradient(
    var(--yellow) 0deg 90deg,
    var(--blue-bright) 90deg 180deg,
    var(--white) 180deg 270deg,
    var(--green-600) 270deg 360deg
  );
  transform: rotate(0deg);
  will-change: transform;
}

.wheel.is-spinning {
  transition: transform var(--spin-duration, 4.6s) cubic-bezier(0.12, 0.66, 0.08, 1);
  transform: rotate(var(--spin-angle));
}

.wheel.has-result {
  transform: rotate(45deg);
}

.wheel__shine {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.36), transparent 23%),
    radial-gradient(circle, transparent 45%, rgba(0, 25, 14, 0.17) 100%);
  pointer-events: none;
}

.wheel__separator {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 2px rgba(0, 34, 18, 0.2);
  transform-origin: center;
}

.wheel__separator--one {
  transform: translate(-50%, -50%) rotate(45deg);
}

.wheel__separator--two {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.wheel__label {
  position: absolute;
  z-index: 3;
  width: 36%;
  display: grid;
  justify-items: center;
  color: var(--white);
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 2px rgba(0, 30, 17, 0.3);
}

.wheel__label strong {
  font-size: clamp(1.35rem, calc(var(--wheel-size) * 0.09), 2.35rem);
  font-weight: 950;
  letter-spacing: -0.06em;
}

.wheel__label span {
  margin-top: 2px;
  font-size: clamp(0.56rem, calc(var(--wheel-size) * 0.032), 0.78rem);
  font-weight: 850;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.wheel__label--10 {
  top: 20%;
  right: 7.5%;
  color: var(--green-950);
  text-shadow: none;
}

.wheel__label--20 {
  right: 7.5%;
  bottom: 20%;
}

.wheel__label--30 {
  bottom: 20%;
  left: 7.5%;
  color: var(--blue);
  text-shadow: none;
}

.wheel__label--50 {
  top: 20%;
  left: 7.5%;
}

.wheel__hub {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: 21%;
  aspect-ratio: 1;
  padding: 10px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-bright), var(--blue));
  box-shadow:
    0 5px 12px rgba(0, 26, 71, 0.35),
    inset 0 2px 3px rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
}

.wheel__hub span {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  transform: rotate(45deg);
  background: var(--yellow);
  box-shadow: inset 0 0 0 3px rgba(0, 107, 60, 0.22);
}

.pointer {
  position: absolute;
  z-index: 10;
  top: clamp(-10px, -2vw, -6px);
  left: 50%;
  width: clamp(34px, 11vw, 48px);
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 5px 3px rgba(0, 28, 16, 0.36));
}

.pointer svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.pointer path {
  fill: var(--yellow);
  stroke: var(--white);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.pointer circle {
  fill: var(--blue);
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2;
}

.action-panel {
  width: min(100%, 430px);
  min-height: 104px;
  margin: 0 auto;
  flex: 0 0 auto;
  display: grid;
  align-items: end;
}

.spin-state,
.result-state {
  width: 100%;
}

.spin-state {
  position: relative;
  padding-top: 43px;
}

.spin-state[hidden],
.result-state[hidden] {
  display: none;
}

.spin-coachmark {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: coachmark-pop 520ms cubic-bezier(0.18, 0.86, 0.25, 1.18) 750ms both;
  pointer-events: none;
}

.spin-coachmark[hidden] {
  display: none;
}

.spin-coachmark__bubble {
  min-width: 202px;
  min-height: 33px;
  padding: 7px 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(0, 63, 159, 0.94);
  box-shadow:
    0 6px 16px rgba(0, 27, 15, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.015em;
  white-space: nowrap;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: coachmark-float 1.35s ease-in-out 1.3s infinite;
}

.spin-coachmark__bubble svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spin-coachmark__arrow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(0, 63, 159, 0.96);
  transform: translateX(-50%) rotate(45deg);
}

.primary-button {
  position: relative;
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 17px;
  color: var(--green-950);
  background: linear-gradient(180deg, #fff274 0%, var(--yellow) 48%, #ffc800 100%);
  box-shadow:
    0 7px 0 #bd8200,
    0 11px 22px rgba(0, 28, 16, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.08;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 150ms ease,
    filter 150ms ease,
    box-shadow 150ms ease;
}

.primary-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button:active {
  transform: translateY(4px);
  box-shadow:
    0 3px 0 #bd8200,
    0 6px 14px rgba(0, 28, 16, 0.24),
    inset 0 2px 0 rgba(255, 255, 255, 0.65);
}

.primary-button:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

.primary-button:disabled {
  cursor: wait;
  filter: saturate(0.65);
}

.primary-button--spin {
  overflow: hidden;
  animation: button-breathe 1.8s ease-in-out infinite;
}

.primary-button--spin::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid rgba(255, 239, 96, 0.72);
  border-radius: 15px;
  animation: button-ring 1.8s ease-out infinite;
  pointer-events: none;
}

.primary-button--spin::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -28%;
  width: 18%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: rotate(18deg);
  animation: button-shine 2.3s ease-in-out 1s infinite;
  pointer-events: none;
}

.primary-button--spin > * {
  position: relative;
  z-index: 1;
}

.spin-state > p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 650;
  text-align: center;
}

.result-state {
  position: fixed;
  z-index: 50;
  top: max(12px, var(--safe-top));
  left: 50%;
  width: min(calc(100% - 24px), 440px);
  padding: 13px 14px 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 236, 70, 0.96);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 223, 0, 0.36), transparent 53%),
    linear-gradient(145deg, rgba(0, 83, 48, 0.98), rgba(0, 47, 108, 0.98));
  box-shadow:
    0 8px 0 rgba(0, 32, 20, 0.46),
    0 20px 45px rgba(0, 20, 12, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: var(--white);
  isolation: isolate;
  transform: translateX(-50%);
  animation: prize-popup-drop 850ms cubic-bezier(0.16, 1.15, 0.34, 1) both;
}

.prize-popup::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -80%;
  left: -24%;
  width: 30%;
  height: 260%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: rotate(21deg);
  animation: prize-popup-shine 2.8s ease-in-out 900ms infinite;
}

.prize-popup__burst {
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 24%;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  opacity: 0.2;
  background: repeating-conic-gradient(
    from 0deg,
    var(--yellow) 0deg 8deg,
    transparent 8deg 20deg
  );
  transform: translate(-50%, -50%);
  animation: prize-rays-spin 12s linear infinite;
}

.prize-popup__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--yellow);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.prize-popup__eyebrow span {
  color: var(--white);
  font-size: 0.58rem;
  animation: stars-shine 1.4s ease-in-out infinite;
}

.prize-popup__content {
  margin: 8px 0 11px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.prize-popup__medal {
  width: 92px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 27%, #fff881, var(--yellow) 50%, #ffb800);
  box-shadow:
    0 0 0 5px rgba(255, 223, 0, 0.18),
    0 9px 18px rgba(0, 24, 14, 0.35),
    inset 0 -7px 10px rgba(188, 111, 0, 0.25);
  color: var(--green-950);
  line-height: 0.85;
  text-align: center;
  transform: rotate(-5deg);
  animation: prize-medal-pop 900ms cubic-bezier(0.16, 1.32, 0.34, 1) 280ms both;
}

.prize-popup__medal strong {
  font-size: 2.05rem;
  font-weight: 1000;
  letter-spacing: -0.08em;
}

.prize-popup__medal span {
  margin-top: 5px;
  font-size: 0.56rem;
  font-weight: 950;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.prize-popup__copy {
  min-width: 0;
  text-align: left;
}

.prize-popup__copy strong {
  display: block;
  color: var(--white);
  font-size: clamp(1.12rem, 5.5vw, 1.5rem);
  font-weight: 1000;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.prize-popup__copy p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.68rem, 3vw, 0.82rem);
  font-weight: 650;
  line-height: 1.25;
}

.primary-button--cta {
  min-height: 62px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.72);
  font-size: clamp(0.82rem, 3.8vw, 1.02rem);
  animation: prize-cta-pulse 1.45s ease-in-out 1s infinite;
}

.primary-button--cta::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -32%;
  width: 22%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.76), transparent);
  transform: rotate(19deg);
  animation: button-shine 1.8s ease-in-out 850ms infinite;
}

.primary-button--cta > * {
  position: relative;
  z-index: 1;
}

.prize-popup__hint {
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.prize-popup__hint span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5eff82;
  box-shadow: 0 0 9px rgba(94, 255, 130, 0.9);
  animation: bonus-ready-pulse 1.2s ease-in-out infinite;
}

.confetti {
  z-index: 60;
}

.confetti__piece {
  position: absolute;
  top: -20px;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 0.55);
  border-radius: 2px;
  background: var(--color);
  opacity: 0;
  animation: confetti-fall var(--duration) var(--delay) cubic-bezier(0.18, 0.7, 0.35, 1)
    forwards;
}

@keyframes title-enter {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.93);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cup-enter {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes stars-shine {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 9px rgba(255, 223, 0, 0.85);
  }
}

@keyframes crown-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: translateX(-50%) scale(0.9);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.15);
  }
}

@keyframes title-pulse {
  0%,
  100% {
    transform: rotate(-1deg) scale(1);
  }
  50% {
    transform: rotate(-1deg) scale(1.035);
  }
}

@keyframes coachmark-pop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px) scale(0.82);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes coachmark-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes button-breathe {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.08);
  }
}

@keyframes button-ring {
  0% {
    opacity: 0.72;
    transform: scale(0.95);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes button-shine {
  0%,
  35% {
    left: -28%;
  }
  70%,
  100% {
    left: 112%;
  }
}

@keyframes prize-popup-drop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-125%) scale(0.82) rotate(-2deg);
  }
  72% {
    opacity: 1;
    transform: translateX(-50%) translateY(7px) scale(1.025) rotate(0.5deg);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes prize-medal-pop {
  from {
    opacity: 0;
    transform: rotate(-18deg) scale(0.25);
  }
  to {
    opacity: 1;
    transform: rotate(-5deg) scale(1);
  }
}

@keyframes prize-rays-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes prize-popup-shine {
  0%,
  42% {
    left: -24%;
  }
  75%,
  100% {
    left: 112%;
  }
}

@keyframes prize-cta-pulse {
  0%,
  100% {
    filter: brightness(1);
    box-shadow:
      0 7px 0 #bd8200,
      0 11px 22px rgba(0, 28, 16, 0.28),
      0 0 0 0 rgba(255, 223, 0, 0.4);
  }
  50% {
    filter: brightness(1.1);
    box-shadow:
      0 7px 0 #bd8200,
      0 11px 22px rgba(0, 28, 16, 0.28),
      0 0 0 8px rgba(255, 223, 0, 0);
  }
}

@keyframes bonus-ready-pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translate3d(0, -3vh, 0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), 105vh, 0) rotate(var(--rotation));
  }
}

@media (hover: hover) {
  .primary-button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
  }
}

@media (max-height: 700px) {
  :root {
    --wheel-size: min(58vw, 31dvh, 250px);
    --mascot-width: min(48vw, 220px);
  }

  .page-shell {
    padding-top: max(6px, var(--safe-top));
  }

  .cup-ribbon {
    height: 27px;
    margin-bottom: 2px;
    transform: scale(0.9);
  }

  .action-panel {
    min-height: 122px;
  }

  .primary-button {
    min-height: 49px;
    padding-block: 11px;
  }

  .spin-state > p {
    margin-top: 7px;
  }

  .result-state {
    padding: 11px 12px 10px;
  }

  .prize-popup__medal {
    width: 82px;
  }

  .prize-popup__medal strong {
    font-size: 1.82rem;
  }

  .primary-button--cta {
    min-height: 56px;
  }
}

@media (max-height: 560px), (orientation: landscape) and (max-height: 620px) {
  :root {
    --wheel-size: min(28vw, 48dvh, 240px);
    --mascot-width: min(23vw, 210px);
  }

  .page-shell {
    width: min(100%, 820px);
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(230px, 1fr);
    grid-template-rows: 1fr auto;
    column-gap: 24px;
    padding-inline: 24px;
  }

  .hero {
    grid-column: 1;
    grid-row: 1;
  }

  .game {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .action-panel {
    grid-column: 1;
    grid-row: 2;
    min-height: 90px;
  }

  h1 {
    font-size: clamp(1.55rem, 5vw, 2.7rem);
  }

  .spin-state > p {
    display: none;
  }

  .spin-state {
    padding-top: 39px;
  }

  .spin-coachmark__bubble {
    min-width: 182px;
    font-size: 0.66rem;
  }

  .result-state {
    width: min(calc(100% - 18px), 440px);
  }

  .prize-popup__content {
    margin-block: 6px 8px;
  }

  .lucas-mascot {
    left: -4%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .wheel.is-spinning {
    transition-duration: 700ms;
  }

  .confetti {
    display: none;
  }
}
