html,
body {
  background: #fff;
}

body {
  overflow-x: hidden;
}

.app-shell {
  width: 100%;
  max-width: 1008px;
  background: #fff;
  box-shadow: none;
}

.topbar {
  height: 106px;
  padding: 25px 36px;
}

.brand {
  font-size: 26px;
}

.brand-mark {
  font-size: 33px;
}

.game-stage {
  padding: 14px 28px 0;
}

.eyebrow {
  font-size: 14px;
}

.game-stage h1 {
  font-size: clamp(42px, 7.3vw, 59px);
  max-width: 630px;
}

.intro {
  font-size: 19px;
}

.wheel-pedestal-section {
  position: relative;
  width: 100%;
  margin: clamp(72px, 12vh, 150px) auto 0;
  isolation: isolate;
}

.wheel-wrap {
  width: min(100vw, 689px);
  margin: 32px auto -11px;
  z-index: 1;
}

.wheel {
  cursor: default;
}

.wheel-center-disc,
.center-image {
  cursor: pointer;
}

.pointer {
  width: 66px;
  height: 78px;
  top: -17px;
}

.pointer span {
  width: 13px;
  height: 13px;
  top: 15px;
  left: 27px;
}

.pedestal {
  width: min(88vw, 603px);
  margin: -121px auto -22px;
}

.result-dialog[hidden] {
  display: none;
}

.result-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #20212499;
}

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

.confetti-piece {
  position: absolute;
  left: calc(50% + var(--x));
  top: 44%;
  width: 9px;
  height: 16px;
  border-radius: 2px;
  transform: rotate(var(--rotate));
  animation: confetti-fall 1.15s ease-out var(--delay) forwards;
}

.result-dialog-card {
  position: relative;
  width: min(100%, 430px);
  padding: 32px 28px 28px;
  border-radius: 28px;
  background: #fff;
  text-align: center;
  box-shadow: 0 22px 70px #17262955;
  animation: winner-pop .45s cubic-bezier(.2,.85,.25,1.25);
}

.result-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f4f2;
  color: #202124;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.result-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}

.result-image-wrap {
  width: 92px;
  height: 92px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0f2;
}

.result-image-wrap img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  transform: none;
  rotate: none;
}

.result-dialog-card h2 {
  margin: 0;
  color: var(--ink);
  font: 800 30px/1.05 'Baloo 2', sans-serif;
}

.result-dialog-card > p:not(.result-kicker) {
  margin: 10px auto 20px;
  max-width: 330px;
  color: #697171;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.result-spin-again {
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
}

@keyframes winner-pop {
  from { opacity: 0; transform: scale(.78) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes confetti-fall {
  from { opacity: 1; transform: translateY(0) rotate(var(--rotate)); }
  to { opacity: 0; transform: translateY(var(--y)) rotate(calc(var(--rotate) + 250deg)); }
}

@media (max-width: 600px) {
  .topbar {
    height: 91px;
    padding: 22px 26px;
  }

  .brand {
    font-size: 23px;
  }

  .brand-mark {
    font-size: 31px;
  }

  .game-stage {
    padding-inline: 15px;
  }

  .game-stage h1 {
    font-size: clamp(40px, 10.8vw, 52px);
  }

  .intro {
    font-size: 18px;
  }

  .wheel-wrap {
    width: 100vw;
  }

  .pedestal {
    width: 88vw;
  }
}
