:root {
  --quiz-bg: #fff8ee;
  --quiz-theme: #e31b23;
  --quiz-ink: #3a2415;
  --quiz-width: 28rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #fff8ee;
  color: var(--quiz-ink);
  font-family: Nunito, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji";
  font-size: 16px;
  line-height: 1.4;
}

body.quiz-on {
  background: var(--quiz-bg);
}

.quiz-progress {
  height: 8px;
  margin: 0;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(227, 27, 35, 0.12);
}

.quiz-progress > span {
  display: block;
  height: 100%;
  background: #e31b23;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.quiz-shell {
  width: min(var(--quiz-width), 100%);
  margin: 0 auto;
  min-height: 95svh;
  padding: 12px 12px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}

.quiz-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-back {
  align-self: flex-start;
  width: 14px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e31b23;
  cursor: pointer;
}

.quiz-back svg {
  display: block;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

.quiz-flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
  margin-bottom: 24px;
}

.quiz-flow h2 {
  margin: 6px 0;
  font-size: 1.45rem;
  line-height: 1.28;
  font-weight: 800;
  color: #e31b23;
}

.quiz-flow h3 {
  margin: 4px 0;
  font-size: 1.3rem;
  line-height: 1.25;
  font-weight: 700;
  color: #e31b23;
}

.quiz-flow p { margin: 8px 0; }

.quiz-flow .ql-align-center { text-align: center; }
.quiz-flow .ql-align-right { text-align: right; }
.quiz-flow .ql-align-justify { text-align: justify; }
.quiz-flow .ql-size-small { font-size: 0.85em; }

.quiz-flow strong[style*="background-color: rgb"] {
  padding: 0 0.12em;
  border-radius: 4px;
}

.quiz-text { padding: 4px 0; word-wrap: break-word; }

.quiz-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.quiz-timer {
  background: #fff6e6;
  color: #cf9600;
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.quiz-timer p { margin: 0; }

.quiz-btn {
  appearance: none;
  width: 100%;
  min-height: 56px;
  margin-top: 0;
  border: 0;
  border-radius: 16px;
  background: var(--quiz-theme);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.quiz-btn:disabled {
  cursor: default;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.quiz-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 64px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(227, 27, 35, 0.28);
  background: #fff;
  color: #09090b;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.quiz-option.is-selected {
  background: #fff3c4;
  border-color: #f5c400;
  color: #3a2415;
}

.quiz-option-lead {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.quiz-option-emoji {
  width: 2.5rem;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.quiz-option-html {
  flex: 1;
  padding: 12px 8px 12px 0;
  color: #09090b;
}
.quiz-option-html p { margin: 0; }

.quiz-option.is-end .quiz-option-html {
  padding-left: 0;
}

.quiz-option-chevron {
  width: 26px;
  height: 26px;
  margin-right: 12px;
  border-radius: 999px;
  background: #fff8ee;
  color: #e31b23;
  border: 1px solid #e31b23;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.quiz-option-chevron svg {
  display: block;
  width: 16px;
  height: 16px;
}

.quiz-option.is-end .quiz-option-chevron {
  margin-left: 8px;
}

.quiz-alert {
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 14px 16px;
}

.quiz-alert p, .quiz-alert h3 { margin: 4px 0; }

.quiz-plans {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quiz-plan {
  background: #fff;
  border: 1px solid rgba(113, 61, 53, 0.35);
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
}

.quiz-plan-photo {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.quiz-plan.is-featured {
  border: 2px solid #e31b23;
  box-shadow: 0 8px 24px rgba(227, 27, 35, 0.12);
}

.quiz-plan-head {
  padding: 14px 14px 0;
}

.quiz-plan-badge {
  display: inline-block;
  margin-bottom: 6px;
  background: #fff3c4;
  color: #8a5a00;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}

.quiz-plan-warning {
  color: #b45309;
  font-size: 13px;
  font-weight: 700;
}

.quiz-plan h3 {
  margin: 4px 0 8px;
  color: #e31b23;
  font-size: 1.2rem;
}

.quiz-plan-lead {
  margin: 0 0 8px;
  color: #6b5344;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.quiz-plan-contents {
  margin: 0;
  padding: 8px 14px 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e31b23;
}

.quiz-plan ul {
  margin: 0;
  padding: 0 14px 4px;
  list-style: none;
}

.quiz-plan li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 7px 0;
  font-size: 14px;
  line-height: 1.35;
}

.kit-check {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.kit-check svg {
  display: block;
  width: 18px;
  height: 18px;
}

.quiz-plan-price {
  padding: 4px 14px 14px;
}

.quiz-plan-old {
  margin: 0;
  color: #6b7280;
  text-decoration: line-through;
  font-size: 14px;
}

.quiz-plan-new {
  margin: 0;
  color: #e31b23;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.quiz-plan-new sup {
  font-size: 1rem;
}

.quiz-plan-save {
  margin: 6px 0 0;
  color: #166534;
  font-weight: 700;
  font-size: 14px;
}

.quiz-plan-note {
  margin: 4px 0 0;
  color: #374151;
  font-size: 13px;
}

.quiz-plan .quiz-btn {
  margin-top: 10px;
}

.quiz-plan.is-featured .quiz-btn {
  background: #e31b23;
}

.quiz-btn.is-secondary {
  background: transparent;
  color: #e31b23;
  border: 1px solid #e31b23;
}

.prize-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 140;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(245, 196, 0, 0.28), transparent 42%),
    rgba(28, 8, 10, 0.88);
  overflow: hidden;
}

.prize-popup[hidden] { display: none !important; }

.prize-popup.is-open {
  display: flex;
}

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

.prize-popup-confetti i {
  position: absolute;
  top: -12px;
  left: calc(4% + (var(--i) * 4.3%));
  width: 8px;
  height: 12px;
  border-radius: 2px;
  background: #f5c400;
  opacity: 0;
  animation: prize-fall 1.8s ease-in forwards;
  animation-delay: calc(var(--i) * 0.05s);
}

.prize-popup-confetti i:nth-child(3n) { background: #e31b23; width: 7px; height: 7px; border-radius: 50%; }
.prize-popup-confetti i:nth-child(3n+1) { background: #fff3b0; transform: rotate(18deg); }
.prize-popup-confetti i:nth-child(4n) { background: #ff6b70; }

@keyframes prize-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(110vh) rotate(220deg); opacity: 0.15; }
}

.prize-popup-card {
  position: relative;
  width: min(380px, 100%);
  text-align: center;
  padding: 26px 22px 22px;
  border-radius: 28px;
  background: #ffffff;
  border: 3px solid #f5c400;
  box-shadow:
    0 0 0 5px #e31b23,
    0 0 0 10px rgba(245, 196, 0, 0.35),
    0 28px 60px rgba(0, 0, 0, 0.45);
  animation: prize-pop 0.55s cubic-bezier(0.18, 1.2, 0.32, 1) both;
}

@keyframes prize-pop {
  0% { transform: scale(0.72) translateY(24px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.prize-popup-brand {
  margin: 0 0 6px;
  font-family: Pacifico, cursive;
  color: #e31b23;
  font-size: 28px;
  line-height: 1;
}

.prize-popup-kicker {
  display: inline-block;
  margin: 0 0 8px;
  background: #fff3c4;
  color: #8a5a00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 10px;
}

.prize-popup-card h2 {
  margin: 0 0 14px;
  color: #3a2415;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.1;
}

.prize-popup-badge {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto 16px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff6c4, #f5c400 46%, #c48a00 100%);
  box-shadow:
    0 0 0 8px #e31b23,
    0 0 0 12px #fff3b0,
    0 16px 30px rgba(196, 22, 29, 0.35);
  animation: prize-pulse 1.6s ease-in-out infinite;
}

.prize-popup-badge::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px dashed rgba(122, 12, 18, 0.22);
}

.prize-popup-pct {
  position: relative;
  color: #7a0c12;
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.prize-popup-off {
  position: relative;
  display: block;
  margin-top: 2px;
  color: #7a0c12;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

@keyframes prize-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.prize-popup-lead {
  margin: 0 0 10px;
  color: #3a2415;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.prize-popup-lead strong { color: #e31b23; }

.prize-popup-limit {
  margin: 0 0 16px;
  color: #8a5a00;
  font-size: 13px;
  font-weight: 800;
  background: #fff8e1;
  border-radius: 999px;
  padding: 8px 12px;
}

.prize-popup-cta {
  appearance: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 10px 12px 12px 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ff4047 0%, #e31b23 48%, #c4161d 100%);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 1.02rem;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(120, 8, 12, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42) inset,
    0 -3px 0 rgba(140, 10, 16, 0.36) inset,
    0 12px 24px rgba(180, 18, 24, 0.38);
}

.prize-popup-cta::before {
  content: "";
  position: absolute;
  inset: 0 0 48% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.prize-popup-cta span { position: relative; z-index: 1; }

.prize-popup-cta-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.prize-popup-cta:active { transform: translateY(1px); }

.plan-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
}

.plan-popup.is-open {
  display: flex;
}

.plan-popup-box {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100svh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px 22px;
}

.plan-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: none;
  color: #6b7280;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.plan-popup-tag {
  display: inline-block;
  margin-bottom: 10px;
  background: #e31b23;
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-popup-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0 0 12px;
  background: #fff;
}

.plan-popup-box h2 {
  margin: 0 0 8px;
  color: #09090b;
  font-size: 1.25rem;
  line-height: 1.3;
}

.plan-popup-sub {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

.plan-popup-items {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.plan-popup-items li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 13px;
  font-weight: 700;
}

.plan-popup-items li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='10' fill='%2316a34a'/%3E%3Cpath d='M5.8 10.3 8.5 13l5.7-6.2' stroke='%23fff' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.plan-popup-price {
  text-align: center;
  margin-bottom: 12px;
}

.plan-popup-old {
  margin: 0;
  color: #6b7280;
  text-decoration: line-through;
}

.plan-popup-new {
  margin: 0;
  color: #e31b23;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.plan-popup-new sup {
  font-size: 1rem;
}

.plan-popup .quiz-btn {
  background: #e31b23;
}

.plan-popup-skip {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: none;
  color: #6b7280;
  font: inherit;
  font-size: 13px;
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
}

.plan-popup-warning {
  margin: 10px 0 0;
  background: #fff8e1;
  color: #b8860b;
  border-radius: 8px;
  padding: 7px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.quiz-price {
  width: 100%;
  border: 5px solid #00c950;
  border-radius: 8px;
  background: #fff;
  padding: 16px 14px 14px;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.quiz-price-featured {
  display: inline-block;
  margin-bottom: 8px;
  background: #dcfce7;
  color: #166534;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
}

.quiz-price-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.quiz-price-before {
  color: #6b7280;
  text-decoration: line-through;
  margin-top: 4px;
}

.quiz-price-value {
  color: #16a34a;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 4px 0;
}

.quiz-price-after {
  color: #374151;
  font-size: 0.95rem;
}

.quiz-carousel { position: relative; }

.quiz-carousel-viewport {
  overflow: hidden;
  border-radius: 12px;
}

.quiz-carousel-track {
  display: flex;
  transition: transform 0.35s ease;
}

.quiz-slide {
  min-width: 100%;
  margin: 0;
}

.quiz-slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.quiz-slide figcaption {
  text-align: center;
  padding: 8px 4px 0;
  font-weight: 600;
}

.quiz-slide figcaption p { margin: 0; }

.quiz-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.quiz-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #e4c7c3;
  padding: 0;
}

.quiz-dots button.is-on { background: var(--quiz-theme); }

.quiz-loading { text-align: center; padding: 24px 8px 8px; }

.quiz-loading-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.quiz-bar {
  height: 10px;
  border-radius: 999px;
  background: #f3d7d3;
  overflow: hidden;
  margin: 14px 0 8px;
}

.quiz-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--quiz-theme);
  transition: width 0.2s linear;
}

.quiz-percent {
  font-weight: 800;
  color: var(--quiz-theme);
}

.quiz-quotes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quiz-quote {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(113, 61, 53, 0.08);
}

.quiz-quote-photo {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #f3eee6;
}

.quiz-quote-body {
  padding: 12px 16px 14px;
}

.quiz-stars { color: #f5b301; letter-spacing: 2px; margin-bottom: 6px; }

.quiz-quote-name { font-weight: 800; }
.quiz-quote-activity { color: #6b7280; font-size: 0.9rem; margin-bottom: 6px; }
.quiz-quote-body p { margin: 0; line-height: 1.4; }

.quiz-toast {
  position: relative;
  width: 100%;
  margin-top: -10px;
  background: #fff;
  color: #111;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 12px 16px;
  z-index: 1;
}

.quiz-toast-title { font-weight: 800; line-height: 1.35; }
.quiz-toast-title strong { font-weight: 800; }
.quiz-toast p { margin: 4px 0 0; font-size: 14px; line-height: 1.35; }

body.sco-open .quiz-toast { display: none; }

#quiz-app:has(.quiz-shell--wheel),
body.quiz-on:has(.quiz-shell--wheel) {
  background: #9b1016;
}

.quiz-shell--wheel {
  width: 100%;
  max-width: 28rem;
  min-height: 100svh;
  background: radial-gradient(120% 70% at 50% 0%, #ff5a5a 0%, #e31b23 42%, #8b0e14 100%);
  color: #fff8ee;
  padding: 10px 12px 28px;
}

.quiz-shell--wheel .quiz-progress { display: none; }
.quiz-shell--wheel .quiz-back { color: #fff8ee; }
.quiz-shell--wheel .quiz-flow {
  flex: 1;
  justify-content: center;
  gap: 0;
}

.bd-wheel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.bd-wheel-kicker {
  margin: 0 0 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 243, 180, 0.18);
  color: #ffe27a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bd-wheel-title {
  margin: 0 0 6px !important;
  font-size: 1.7rem !important;
  color: #fff8ee !important;
  font-weight: 900 !important;
  text-shadow: 0 2px 0 rgba(80, 0, 0, 0.25);
}

.bd-wheel-sub {
  margin: 0 0 10px !important;
  color: rgba(255, 248, 238, 0.86);
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 20rem;
}

.bd-wheel-stage {
  --wheel: min(340px, 86vw);
  position: relative;
  width: var(--wheel);
  height: var(--wheel);
  margin: 8px auto 6px;
}

.bd-wheel-shadow {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -16px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  filter: blur(10px);
  z-index: 0;
}

.bd-wheel-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  padding: 26px;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.55), transparent 28%),
    conic-gradient(from 0deg, #fff1a3, #d4a017 18%, #fff6c4 34%, #b8860b 52%, #ffe27a 70%, #c4890a 86%, #fff1a3);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.35),
    inset 0 3px 0 rgba(255, 255, 255, 0.55),
    inset 0 -6px 10px rgba(90, 40, 0, 0.35);
}

.bd-wheel-bulbs {
  position: absolute;
  inset: 5px;
  z-index: 3;
  pointer-events: none;
}

.bd-wheel-bulb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  margin: -5.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #ffe27a 42%, #d4a017);
  box-shadow: 0 0 8px rgba(255, 226, 122, 0.95), inset 0 -1px 1px rgba(120, 70, 0, 0.4);
  transform: rotate(calc(var(--i) * 18deg)) translateY(calc(var(--wheel) / -2 + 10px));
}

.bd-wheel.is-spinning .bd-wheel-bulb {
  animation: bd-bulb 0.22s linear infinite;
  animation-delay: calc(var(--i) * 35ms);
}

.bd-wheel.is-win .bd-wheel-bulb {
  background: radial-gradient(circle at 35% 30%, #fff, #fff 40%, #f5c400);
  box-shadow: 0 0 12px #fff3b0;
}

@keyframes bd-bulb {
  50% {
    background: radial-gradient(circle at 35% 30%, #fff, #e31b23 55%, #8b0e14);
    box-shadow: 0 0 10px #e31b23;
  }
}

.bd-wheel-spin {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #8b0e14;
  box-shadow:
    inset 0 0 0 4px #8b0e14,
    inset 0 0 18px rgba(0, 0, 0, 0.28);
  will-change: transform;
}

.bd-wheel-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.bd-wheel-pin {
  position: absolute;
  top: -18px;
  left: 50%;
  z-index: 8;
  width: 54px;
  height: 72px;
  margin-left: -27px;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.bd-wheel-pin svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bd-wheel-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: 86px;
  height: 86px;
  margin: -43px 0 0 -43px;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff6c4, #f5c400 46%, #c4890a);
  color: #9b1016;
  font: inherit;
  box-shadow:
    0 10px 0 #8a5a00,
    0 14px 18px rgba(0, 0, 0, 0.28),
    inset 0 3px 0 rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.bd-wheel-hub span {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.bd-wheel-hub:active { transform: translate(-0px, 3px); box-shadow: 0 7px 0 #8a5a00, 0 8px 10px rgba(0,0,0,.25); }

.bd-wheel-status {
  margin: 14px 0 12px !important;
  min-height: 1.4em;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffe27a;
  text-shadow: 0 1px 0 rgba(80, 0, 0, 0.3);
}

.bd-wheel.is-win .bd-wheel-status {
  color: #fff8ee;
  font-size: 1.05rem;
}

.bd-wheel-btn {
  appearance: none;
  width: min(300px, 100%);
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(#ffe27a, #f5c400);
  color: #9b1016;
  font: inherit;
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 0 #b8860b, 0 10px 18px rgba(0, 0, 0, 0.25);
}

.bd-wheel-btn:hover:not(:disabled) { filter: brightness(1.04); }
.bd-wheel-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 3px 0 #b8860b; }
.bd-wheel-btn:disabled { cursor: default; }

.bd-wheel.is-win .bd-wheel-btn {
  background: linear-gradient(#fff, #ffe27a);
}

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

.bd-wheel-confetti i {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  opacity: 0;
  background: #f5c400;
}

.bd-wheel-confetti i:nth-child(3n) { background: #fff8ee; }
.bd-wheel-confetti i:nth-child(3n+1) { background: #ffe27a; }
.bd-wheel-confetti i:nth-child(3n+2) { width: 10px; height: 10px; border-radius: 50%; }

.bd-wheel.is-win .bd-wheel-confetti i {
  animation: bd-confetti 1.2s ease-out forwards;
}

@keyframes bd-confetti {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(70vh) rotate(260deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bd-wheel.is-spinning .bd-wheel-bulb { animation: none; }
  .bd-wheel.is-win .bd-wheel-confetti i { animation: none; }
}
