:root {
  --bg-img: url("https://images.unsplash.com/photo-1513791053-1c9c3c0c7e8e?auto=format&fit=crop&w=1600&q=80");
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(circle at top left, rgba(248, 250, 252, 0.14), transparent 55%),
    radial-gradient(circle at bottom right, rgba(250, 204, 21, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(127, 29, 29, 0.96), rgba(15, 23, 42, 0.98)),
    var(--bg-img);
  background-size: cover;
  background-position: center;
  color: #f8fafc;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
    sans-serif;
}

.snow-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.15) 0, transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.1) 0, transparent 45%);
  opacity: 0.8;
  mix-blend-mode: screen;
  z-index: -1;
}

.glass {
  backdrop-filter: blur(16px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18),
    rgba(15, 23, 42, 0.76)
  );
  border: 1px solid rgba(248, 250, 252, 0.2);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.4);
}

.ribbon-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #111827;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ribbon-badge::before,
.ribbon-badge::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 18px;
  background: linear-gradient(to bottom, #b91c1c, #7f1d1d);
  top: 70%;
  z-index: -1;
}

.ribbon-badge::before {
  left: -4px;
  transform: skewX(-16deg);
}

.ribbon-badge::after {
  right: -4px;
  transform: skewX(16deg);
}

.wheel-wrapper {
  position: relative;
}

.slot-machine {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(248, 250, 252, 0.15);
  border-radius: 24px;
  padding: 18px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 18px 45px rgba(15, 23, 42, 0.9);
}

.slot-top {
  margin-bottom: 10px;
  letter-spacing: 0.2em;
}

.slot-window {
  display: grid;
  grid-template-columns: 1fr 4px 1fr 4px 1fr;
  align-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), rgba(15, 23, 42, 0.85));
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.slot-reel {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fef9c3;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border-radius: 12px;
}

.slot-sep {
  width: 100%;
  height: 70%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  border-radius: 999px;
  opacity: 0.55;
}

.wheel {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 12px solid rgba(248, 250, 252, 0.2);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 10px rgba(15, 23, 42, 0.85),
    0 28px 70px rgba(15, 23, 42, 1);
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), rgba(15, 23, 42, 0.85) 68%);
}

.wheel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(15, 23, 42, 0) 0deg 70deg,
    rgba(15, 23, 42, 0.55) 70deg 72deg
  );
  z-index: 1;
  pointer-events: none;
}

.wheel::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.25), transparent 46%),
    radial-gradient(circle at 70% 78%, rgba(15, 23, 42, 0.7), transparent 58%);
  z-index: 0;
}

.wheel-center {
  position: absolute;
  inset: 42%;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fef9c3, #f59e0b);
  box-shadow:
    0 0 0 6px rgba(15, 23, 42, 0.8),
    0 0 22px rgba(252, 211, 77, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #1f2937;
  text-transform: uppercase;
  z-index: 3;
}

.wheel-label {
  position: absolute;
  width: 100%;
  left: 50%;
  top: 50%;
  transform-origin: left center;
  color: #f9fafb;
  text-shadow: 0 2px 5px rgba(15, 23, 42, 0.8);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

.wheel-label span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.pointer {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 30px solid #facc15;
  filter: drop-shadow(0 5px 8px rgba(15, 23, 42, 0.9));
}

.pointer::after {
  content: "";
  position: absolute;
  top: 6px;
  left: -9px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fefce8, #facc15);
  box-shadow:
    0 0 0 3px rgba(15, 23, 42, 0.8),
    0 0 12px rgba(250, 204, 21, 0.8);
}

.glow {
  box-shadow:
    0 0 45px 10px rgba(250, 204, 21, 0.7),
    0 0 0 12px rgba(250, 250, 249, 0.06);
}

.confetti {
  position: fixed;
  width: 12px;
  height: 18px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 50;
}

.primary-button {
  background: linear-gradient(135deg, #f38927, #801515);
  box-shadow:
    0 12px 40px rgba(255, 118, 20, 0.531),
    0 0 0 1px rgba(128, 60, 21, 0.6);
}

.tag-chip {
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

@media (max-width: 640px) {
  .wheel {
    width: 280px;
    height: 280px;
  }
}


