/* src/styles.css */
*, *:before, *:after {
  box-sizing: border-box;
}

html, body, #app {
  min-height: 100%;
  margin: 0;
}

body {
  background: #07090d;
}

button, input, textarea, select {
  font: inherit;
}

@keyframes title-shimmer {
  0% {
    background-position: -200%;
  }

  100% {
    background-position: 200%;
  }
}

@keyframes float-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin-glow {
  0%, 100% {
    box-shadow: 0 12px 40px #0000008c, 0 0 24px 4px var(--glow-color, #38bdf8), inset 0 0 0 4px #ffffff1a;
  }

  50% {
    box-shadow: 0 12px 40px #0000008c, 0 0 48px 12px var(--glow-color, #38bdf8), inset 0 0 0 4px #ffffff1a;
  }
}

@keyframes pointer-bob {
  0% {
    transform: translateX(-50%)translateY(0);
  }

  20% {
    transform: translateX(-50%)translateY(-10px);
  }

  45% {
    transform: translateX(-50%)translateY(4px);
  }

  65% {
    transform: translateX(-50%)translateY(-5px);
  }

  80% {
    transform: translateX(-50%)translateY(2px);
  }

  100% {
    transform: translateX(-50%)translateY(0);
  }
}

@keyframes winner-flash {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 14px #ffffffe6, 0 1px 3px #00000080;
  }

  40% {
    opacity: .35;
    text-shadow: none;
  }
}

@keyframes btn-pulse {
  0%, 100% {
    box-shadow: 0 4px 16px #c9a22759;
  }

  50% {
    box-shadow: 0 4px 28px #c9a227bf, 0 0 0 4px #c9a22726;
  }
}

@keyframes rotate-spin {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes result-pop {
  0% {
    opacity: 0;
    transform: translateY(12px)scale(.88);
  }

  60% {
    transform: translateY(-4px)scale(1.04);
  }

  100% {
    opacity: 1;
    transform: translateY(0)scale(1);
  }
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 var(--ring-color, #f0d78c80);
  }

  70% {
    box-shadow: 0 0 0 10px #0000;
  }

  100% {
    box-shadow: 0 0 #0000;
  }
}

@keyframes step-done {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.3);
  }

  70% {
    transform: scale(.9);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes card-unlock {
  0% {
    box-shadow: 0 16px 40px #00000040, 0 0 0 1px var(--c-accent, transparent);
  }

  40% {
    box-shadow: 0 16px 40px #00000040, 0 0 28px 4px var(--c-accent, transparent), 0 0 0 1px var(--c-accent, transparent);
  }

  100% {
    box-shadow: 0 16px 40px #00000040, 0 0 0 1px var(--c-accent, transparent);
  }
}

@keyframes celebrate-in {
  from {
    opacity: 0;
    transform: translateY(28px)scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0)scale(1);
  }
}

@keyframes wheel-selection-impact {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%)scaleY(0);
    filter: blur(6px);
  }

  40% {
    opacity: 1;
    transform: translate(-50%, -50%)scaleY(1.12);
    filter: blur(0);
  }

  70% {
    transform: translate(-50%, -50%)scaleY(.96);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%)scaleY(1);
    filter: blur(0);
  }
}

@keyframes wheel-selection-glow {
  0% {
    box-shadow: 0 0 0 2px #00000080, 0 0 38px 8px var(--ws-glow, #38bdf88c), inset 0 1px 0 #ffffff1a;
  }

  60% {
    box-shadow: 0 0 0 2px #00000080, 0 0 22px 3px var(--ws-glow, #38bdf852), inset 0 1px 0 #ffffff12;
  }

  100% {
    box-shadow: 0 0 0 2px #00000080, 0 0 18px 2px var(--ws-glow, #38bdf847), inset 0 1px 0 #ffffff12, inset 0 -1px 0 #ffffff0a;
  }
}

@keyframes wheel-selection-land {
  0% {
    transform: translate(-50%, -50%)scaleY(.88);
  }

  45% {
    transform: translate(-50%, -50%)scaleY(1.06);
  }

  72% {
    transform: translate(-50%, -50%)scaleY(.98);
  }

  100% {
    transform: translate(-50%, -50%)scaleY(1);
  }
}

@keyframes wheel-selection-sheen {
  0% {
    transform: translateX(-150%)skewX(-18deg);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  55% {
    opacity: .12;
  }

  100% {
    transform: translateX(160%)skewX(-20deg);
    opacity: 0;
  }
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-10px)rotate(0);
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    transform: translateY(105vh) rotate(var(--spin, 720deg));
    opacity: 0;
  }
}

@keyframes emoji-bounce {
  0%, 100% {
    transform: translateY(0)rotate(-3deg);
  }

  50% {
    transform: translateY(-12px)rotate(3deg);
  }
}

.app {
  color: #e2eaf3;
  background: radial-gradient(160% 50% at 50% -5%, #0ea5e926 0%, #0000 60%), radial-gradient(80% 40% at 85% 90%, #a855f712 0%, #0000 55%), #07090d;
  min-height: 100vh;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1rem, 3vw, 2rem);
  font-family: DM Sans, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
}

.header {
  text-align: center;
  animation: float-up .6s ease both;
  max-width: 56rem;
  margin: 0 auto 2.25rem;
}

.title {
  letter-spacing: -.035em;
  background: linear-gradient(100deg, #e8f0fa 0%, #38bdf8 25%, #c084fc 55%, #fbbf24 80%, #e8f0fa 100%) 0 0 / 250%;
  -webkit-text-fill-color: transparent;
  animation: title-shimmer 7s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  margin: 0 0 .5rem;
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 800;
}

.subtitle {
  color: #5a7284;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.steps {
  display: flex;
  animation: float-up .6s .1s ease both;
  justify-content: center;
  align-items:  center;
  gap: 0;
  max-width: 22rem;
  margin: 0 auto 2.5rem;
}

.step-item {
  display: flex;
  flex-direction: column;
  flex: none;
  align-items:  center;
  gap: .35rem;
}

.step-circle {
  display: flex;
  color: #ffffff40;
  background: #ffffff0a;
  border: 2px solid #ffffff1a;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 2.2rem;
  height: 2.2rem;
  transition: all .35s;
  font-size: .8rem;
  font-weight: 700;
}

.step-label {
  color: #ffffff38;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: color .3s;
  font-size: .68rem;
  font-weight: 600;
}

.step-item--active .step-circle {
  color: #f0d78c;
  --ring-color: #f0d78c73;
  animation: pulse-ring 1.8s ease infinite;
  border-color: #f0d78c;
}

.step-item--active .step-label {
  color: #f0d78c;
}

.step-item--done .step-circle {
  color: #1a1208;
  animation: step-done .4s cubic-bezier(.16, 1.4, .3, 1);
  background: #f0d78c;
  border-color: #f0d78c;
}

.step-item--done .step-label {
  color: #ffffff73;
}

.step-connector {
  overflow: hidden;
  position: relative;
  background: #ffffff12;
  border-radius: 2px;
  flex: 1;
  min-width: 2rem;
  max-width: 5rem;
  height: 2px;
  margin: 0 .3rem 1.55rem;
  transition: background .5s;
}

.step-connector--filled {
  background: linear-gradient(90deg, #f0d78c, #f0d78c59);
}

.grid {
  display: grid;
  animation: float-up .6s .2s ease both;
  gap: 1.25rem;
  max-width: 68rem;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  background: #ffffff08;
  border: 1px solid #fff1;
  border-radius: 1.25rem;
  flex-direction: column;
  min-width: 0;
  padding: 1.5rem 1.25rem 1.25rem;
  transition: opacity .3s, border-color .4s;
  box-shadow: 0 16px 40px #00000040;
}

.card:before {
  content: "";
  position: absolute;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% -10%, var(--c-wash, transparent) 0%, transparent 65%);
  transition: opacity .45s;
  inset: 0;
}

.card--med {
  --c-wash: #0ea5e91f;
  --c-accent: #0ea5e973;
}

.card--topic {
  --c-wash: #a855f71f;
  --c-accent: #a855f773;
}

.card--prize {
  --c-wash: #f59e0b1f;
  --c-accent: #f59e0b73;
}

.card--active:before {
  opacity: 1;
}

.card--active {
  border-color: var(--c-accent, #ffffff1f);
  animation: card-unlock .7s ease;
}

.card--done:before {
  opacity: .5;
}

.card--done {
  border-color: #ffffff14;
}

.card--locked {
  opacity: .35;
  pointer-events: none;
}

.card-header {
  display: flex;
  align-items:  center;
  gap: .55rem;
  margin-bottom: .35rem;
}

.card-badge {
  flex-shrink: 0;
  font-size: 1.35rem;
  line-height: 1;
}

.card-title {
  letter-spacing: -.01em;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.card-hint {
  color: #475f6e;
  min-height: 2.4em;
  margin: 0 0 1rem;
  font-size: .82rem;
  line-height: 1.55;
}

.card-hint strong {
  color: #ffffffa6;
  font-weight: 600;
}

.next-step {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  padding-inline-start: .25rem;
  padding-inline-end: .25rem;
}

.next-step__card {
  text-align: center;
  background: #ffffff08;
  border: 1px solid #fff1;
  border-radius: 1.25rem;
  padding: 1.4rem 1.25rem;
  box-shadow: 0 16px 40px #00000038;
}

.next-step__eyebrow {
  color: #f0d78c;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 .4rem;
  font-size: .72rem;
  font-weight: 700;
}

.next-step__title {
  letter-spacing: -.02em;
  margin: 0 0 .45rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.next-step__text {
  color: #5a7284;
  max-width: 32rem;
  margin: 0 auto 1rem;
  font-size: .92rem;
  line-height: 1.55;
}

.next-step__button {
  appearance: none;
  letter-spacing: .02em;
  cursor: pointer;
  color: #1a1208;
  background: linear-gradient(#f0d78c 0%, #c9a227 100%);
  border: none;
  border-radius: 999px;
  padding: .78rem 1.35rem;
  transition: transform .15s, box-shadow .15s;
  font-size: .95rem;
  font-weight: 700;
  box-shadow: 0 6px 18px #c9a22759;
}

.next-step__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px #c9a22773;
}

.page-section {
  max-width: 52rem;
  margin: 2rem auto 0;
  padding-inline-start: .25rem;
  padding-inline-end: .25rem;
}

.page-section__card {
  min-height: 100%;
}

.prize-breadcrumb {
  display: flex;
  animation: float-up .45s ease both;
  flex-wrap: wrap;
  justify-content: center;
  align-items:  center;
  gap: .4rem;
  margin-bottom: 1rem;
}

.prize-breadcrumb__chip {
  display: inline-flex;
  white-space: nowrap;
  border-radius: 999px;
  align-items:  center;
  gap: .3rem;
  padding: .32rem .8rem;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
}

.prize-breadcrumb__chip--med {
  color: #7dd3fc;
  background: #0ea5e924;
  border: 1px solid #0ea5e947;
}

.prize-breadcrumb__chip--topic {
  color: #d8b4fe;
  background: #a855f724;
  border: 1px solid #a855f747;
}

.prize-breadcrumb__chip--prize {
  color: #fde68a;
  background: #f59e0b24;
  border: 1px solid #f59e0b47;
}

.prize-breadcrumb__chip--pending {
  opacity: .55;
  font-style: italic;
}

.prize-breadcrumb__sep {
  color: #fff3;
  font-size: .85rem;
}

.result-tag {
  display: inline-flex;
  border-radius: 999px;
  align-items:  center;
  gap: .4rem;
  margin-top: 1rem;
  padding: .38rem .85rem;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.3;
}

.result-tag__check {
  opacity: .8;
  font-size: .7rem;
  font-style: normal;
}

.result-tag--med {
  color: #7dd3fc;
  background: #0ea5e92e;
  border: 1px solid #0ea5e959;
}

.result-tag--topic {
  color: #d8b4fe;
  background: #a855f72e;
  border: 1px solid #a855f759;
}

.result-tag--prize {
  color: #fde68a;
  background: #f59e0b2e;
  border: 1px solid #f59e0b59;
}

.result-pop-enter-active {
  animation: result-pop .5s cubic-bezier(.16, 1.4, .3, 1);
}

.result-pop-leave-active {
  transition: opacity .2s, transform .2s;
}

.result-pop-leave-to {
  opacity: 0;
  transform: translateY(6px);
}

.countdown-banner {
  display: inline-flex;
  color: #d8b4fe;
  text-align: center;
  background: #a855f724;
  border: 1px solid #a855f74d;
  border-radius: .9rem;
  justify-content: center;
  align-items:  center;
  gap: .35rem;
  min-height: 2.25rem;
  margin: 0 0 1rem;
  padding: .45rem .8rem;
  font-size: .82rem;
  font-weight: 600;
}

.countdown-slot {
  display: flex;
  justify-content: center;
  align-items:  flex-start;
  min-height: 3.25rem;
}

.countdown-banner strong {
  color: #f3e8ff;
  font-size: 1rem;
}

.countdown-banner__hint {
  color: #f3e8ffb8;
  font-size: .74rem;
  font-weight: 500;
}

.countdown-pop-enter-active {
  animation: result-pop .3s cubic-bezier(.16, 1.4, .3, 1);
}

.countdown-pop-leave-active {
  transition: opacity .2s, transform .2s;
}

.countdown-pop-leave-to {
  opacity: 0;
  transform: translateY(-4px);
}

.wheel-selection {
  position: absolute;
  z-index: 6;
  display: flex;
  border: none;
  border-top: 2.5px solid var(--ws-color, #38bdf8);
  border-bottom: 2.5px solid var(--ws-color, #38bdf8);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: 0 0 0 2px #00000080, 0 0 18px 2px var(--ws-glow, #38bdf847), inset 0 1px 0 #ffffff12, inset 0 -1px 0 #ffffff0a;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(#07090de0 0%, #07090df0 50%, #07090de0 100%);
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  gap: .18rem;
  width: 100%;
  padding: .7rem .5rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.wheel-selection--med {
  --ws-color: #38bdf8;
  --ws-glow: #38bdf852;
  --ws-text: #bae6fd;
}

.wheel-selection--topic {
  --ws-color: #c084fc;
  --ws-glow: #c084fc52;
  --ws-text: #e9d5ff;
}

.wheel-selection--prize {
  --ws-color: #fbbf24;
  --ws-glow: #fbbf2452;
  --ws-text: #fef3c7;
}

.wheel-selection:before {
  content: "";
  position: absolute;
  pointer-events: none;
  background: linear-gradient(105deg, #0000 20%, #ffffff12 50%, #0000 80%);
  inset: 0;
}

.wheel-selection:after {
  content: "";
  position: absolute;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #0000, #ffffff59 50%, #0000);
  width: 38%;
  top: 0;
  bottom: 0;
}

.wheel-selection__eyebrow {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ws-color, #38bdf8);
  opacity: .85;
  position: relative;
  z-index: 1;
  font-size: .65rem;
  font-weight: 700;
}

.wheel-selection__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  text-align: center;
  letter-spacing: -.02em;
  color: #fff;
  text-shadow: 0 0 18px var(--ws-glow, #38bdf880), 0 1px 4px #0009;
  position: relative;
  z-index: 1;
  -webkit-box-orient: vertical;
  max-width: 90%;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.15;
}

.wheel-selection--landed {
  animation: wheel-selection-land .5s cubic-bezier(.16, 1.4, .3, 1);
}

.wheel-selection-pop-enter-active {
  animation: wheel-selection-impact .58s cubic-bezier(.16, 1.4, .3, 1), wheel-selection-glow 1.2s ease 50ms both;
}

.wheel-selection-pop-enter-active:after {
  animation: wheel-selection-sheen .9s ease .12s both;
}

.wheel-selection-pop-leave-active {
  transition: opacity .15s, transform .15s;
}

.wheel-selection-pop-leave-to {
  opacity: 0;
  transform: translate(-50%, -50%)scale(.96);
}

.rw {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items:  center;
  gap: 1rem;
  width: 100%;
}

.stage {
  position: relative;
  aspect-ratio: 1;
  flex-shrink: 0;
  width: clamp(200px, 70%, 300px);
  margin: 0 auto;
}

.pointer {
  position: absolute;
  z-index: 5;
  filter: drop-shadow(0 3px 6px #00000080);
  border-top: 22px solid #f0d78c;
  border-left: 12px solid #0000;
  border-right: 12px solid #0000;
  width: 0;
  height: 0;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
}

.pointer--land {
  animation: pointer-bob .75s cubic-bezier(.36, .07, .19, .97);
}

.wheel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  transition: box-shadow .3s;
  box-shadow: 0 12px 40px #0000008c, inset 0 0 0 4px #ffffff1a;
}

.wheel-wrap--empty {
  background: repeating-conic-gradient(#ffffff08 0deg 15deg, #ffffff0f 15deg 30deg);
}

.wheel-placeholder {
  position: absolute;
  display: flex;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  gap: .55rem;
  inset: 0;
}

.wheel-placeholder__icon {
  filter: grayscale(1) opacity(.35);
  font-size: 1.75rem;
  line-height: 1;
}

.wheel-placeholder__text {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff3;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.5;
}

.stage.is-spinning .wheel-wrap {
  animation: spin-glow .85s ease infinite;
}

.wheel {
  position: relative;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}

.stage.is-spinning .wheel {
  transition: transform 3.2s cubic-bezier(.15,.85,.2,1);
}

.seg-label {
  position: absolute;
  text-align: center;
  color: #fffffff7;
  text-shadow: 0 1px 3px #0000008c;
  pointer-events: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  font-size: clamp(.5rem, 1.6vw, .63rem);
  font-weight: 700;
  line-height: 1.2;
}

.seg-label--winner {
  animation: winner-flash .55s ease 2;
  text-shadow: 0 0 14px #ffffffe6, 0 1px 3px #0000008c;
}

.wheel-cap {
  position: absolute;
  z-index: 4;
  background: #07090d;
  border-radius: 50%;
  width: 17%;
  height: 17%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px #0009, inset 0 0 0 2px #ffffff1a;
}

.spin-btn {
  appearance: none;
  letter-spacing: .025em;
  cursor: pointer;
  color: #1a1208;
  position: relative;
  overflow: hidden;
  background: linear-gradient(#f0d78c 0%, #c9a227 100%);
  border: none;
  border-radius: 999px;
  padding: .7rem 1.75rem;
  transition: transform .15s, opacity .15s, box-shadow .15s;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 16px #c9a22759;
}

.spin-btn:after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(#ffffff38 0%, #0000 55%);
  inset: 0;
}

.spin-btn--ready {
  animation: btn-pulse 2.2s ease infinite;
}

.spin-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px #c9a2278c;
}

.spin-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px #c9a22759;
}

.spin-btn--disabled, .spin-btn:disabled {
  color: #ffffff4d;
  box-shadow: none;
  cursor: not-allowed;
  animation: none;
  opacity: 1;
  background: linear-gradient(#374151 0%, #1f2937 100%);
}

.spin-btn--spinning {
  opacity: .75;
  cursor: not-allowed;
  animation: none !important;
}

.spin-btn__inner {
  display: flex;
  position: relative;
  z-index: 1;
  align-items:  center;
  gap: .4rem;
}

.spin-btn__loader {
  display: inline-block;
  animation: rotate-spin .7s linear infinite;
  font-size: 1.1rem;
}

.celebration {
  max-width: 52rem;
  margin: 2rem auto 0;
  padding-inline-start: .25rem;
  padding-inline-end: .25rem;
}

.celebration__inner {
  text-align: center;
  animation: celebrate-in .7s cubic-bezier(.16, 1.4, .3, 1);
  background: #ffffff0b;
  border: 1px solid #ffffff1a;
  border-radius: 1.5rem;
  padding: 2.25rem 1.75rem;
  box-shadow: 0 0 0 1px #f0d78c33, 0 0 70px #f0d78c12, 0 24px 60px #0006;
}

.celebration__emoji {
  animation: emoji-bounce 2s ease infinite;
  margin: 0 0 .75rem;
  font-size: 3.25rem;
  line-height: 1;
}

.celebration__title {
  letter-spacing: -.025em;
  background: linear-gradient(90deg, #fde68a, #fbbf24, #f0d78c);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.celebration__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items:  center;
  gap: .6rem;
  margin-bottom: 1.75rem;
}

.c-pill {
  animation: result-pop .55s cubic-bezier(.16, 1.4, .3, 1) both;
  border-radius: 999px;
  padding: .42rem .9rem;
  font-size: .875rem;
  font-weight: 600;
}

.c-pill--med {
  color: #7dd3fc;
  animation-delay: .1s;
  background: #0ea5e933;
  border: 1px solid #0ea5e959;
}

.c-pill--arrow {
  color: #ffffff40;
  background: none;
  font-size: 1rem;
}

.c-pill--topic {
  color: #d8b4fe;
  animation-delay: .25s;
  background: #a855f733;
  border: 1px solid #a855f759;
}

.c-pill--prize {
  color: #fde68a;
  animation-delay: .45s;
  background: #f59e0b33;
  border: 1px solid #f59e0b59;
}

.reset-btn {
  appearance: none;
  cursor: pointer;
  color: #ffffffb3;
  background: #ffffff12;
  border: 1px solid #ffffff24;
  border-radius: 999px;
  padding: .6rem 1.5rem;
  transition: background .2s, color .2s, transform .15s;
  font-size: .9rem;
  font-weight: 600;
}

.reset-btn:hover {
  color: #fff;
  background: #ffffff21;
  transform: translateY(-1px);
}

.reset-btn:active {
  transform: translateY(0);
}

.celebrate-enter-active {
  animation: celebrate-in .7s cubic-bezier(.16, 1.4, .3, 1);
}

.celebrate-leave-active {
  transition: opacity .3s, transform .3s;
}

.celebrate-leave-to {
  opacity: 0;
  transform: scale(.97)translateY(-8px);
}

.confetti-piece {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  animation: confetti-fall var(--dur, 2.5s) ease-in var(--delay, 0s) both;
  top: 0;
  left: 0;
}

@media (max-width: 699px) {
  .app {
    padding: 1.1rem .85rem 2rem;
  }

  .header {
    margin-bottom: 1.5rem;
  }

  .subtitle {
    max-width: 24rem;
    margin-inline-start: auto;
    margin-inline-end: auto;
    font-size: .92rem;
  }

  .steps {
    max-width: 100%;
    margin-bottom: 1.75rem;
  }

  .step-circle {
    width: 2rem;
    height: 2rem;
    font-size: .75rem;
  }

  .step-label {
    text-align: center;
    font-size: .6rem;
  }

  .step-connector {
    min-width: .9rem;
    margin-inline-start: .2rem;
    margin-inline-end: .2rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    padding: 1.15rem .95rem 1rem;
  }

  .card-hint {
    min-height: 0;
  }

  .stage {
    width: min(100%, 240px);
  }

  .pointer {
    border-top-width: 18px;
    border-left-width: 10px;
    border-right-width: 10px;
    top: -7px;
  }

  .spin-btn {
    padding: .68rem 1.35rem;
    font-size: .95rem;
  }

  .result-tag {
    text-align: center;
    justify-content: center;
    width: 100%;
  }

  .celebration {
    margin-top: 1.35rem;
  }

  .next-step {
    margin-top: 1.1rem;
  }

  .next-step__card, .celebration__inner {
    border-radius: 1.2rem;
    padding: 1.5rem 1rem;
  }

  .next-step__title {
    font-size: 1.15rem;
  }

  .next-step__text {
    font-size: .88rem;
  }

  .next-step__button {
    width: 100%;
  }

  .countdown-slot {
    min-height: 3.5rem;
  }

  .wheel-selection {
    padding: .55rem .4rem;
  }

  .wheel-selection__eyebrow {
    font-size: .58rem;
  }

  .wheel-selection__text {
    font-size: .88rem;
  }

  .celebration__emoji {
    font-size: 2.5rem;
  }

  .celebration__title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
  }

  .celebration__pills {
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1.2rem;
  }

  .c-pill {
    text-align: center;
    justify-content: center;
    width: 100%;
  }

  .c-pill--arrow {
    display: none;
  }

  .reset-btn {
    width: 100%;
  }
}

@media (min-width: 700px) and (max-width: 1119px) {
  .steps {
    margin-bottom: 2rem;
  }

  .grid {
    gap: 1.5rem;
  }

  .stage {
    width: min(100%, 272px);
  }

  .celebration__inner {
    padding: 2rem 1.5rem;
  }

  .page-section {
    max-width: 42rem;
  }
}

@media (min-width: 1120px) {
  .app {
    padding: clamp(2.5rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 5rem);
  }

  .header, .steps {
    margin-bottom: 3rem;
  }

  .grid {
    gap: 2rem;
  }

  .card {
    padding: 2rem 1.75rem 1.75rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-hint {
    min-height: 2.6em;
    font-size: .88rem;
  }

  .stage {
    width: clamp(280px, 28vw, 380px);
  }

  .seg-label {
    font-size: clamp(.55rem, 1.1vw, .72rem);
  }

  .page-section {
    max-width: 52rem;
    margin-top: 3rem;
  }

  .next-step {
    max-width: 44rem;
    margin-top: 2.5rem;
  }

  .next-step__card {
    padding: 2rem;
  }

  .next-step__title {
    font-size: 1.55rem;
  }

  .celebration {
    max-width: 58rem;
    margin-top: 3rem;
  }

  .celebration__inner {
    padding: 3rem 2.75rem;
  }

  .celebration__emoji {
    font-size: 3.75rem;
  }

  .celebration__title {
    margin-bottom: 1.75rem;
    font-size: 1.85rem;
  }

  .c-pill {
    padding: .5rem 1.1rem;
    font-size: .95rem;
  }
}
