body {
  font-family: "Roboto Flex", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

html {
  scroll-behavior: smooth;
}

.font-inter {
  /* Use Roboto Flex everywhere to avoid font swaps */
  font-family: "Roboto Flex", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

/* Custom Arrow Button Style */
.custom-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0.66px solid #d9d9d9;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: plus-lighter;
}

.bonus-gradient {
  background: linear-gradient(to right, #f4a81e, #ffce10);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.radial-step-icon {
  border: 0.66px solid #d9d9d9;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 9999px;
  padding: 0.75rem; /* matches p-3 */
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 1rem auto; /* mx-auto mb-4 */
  mix-blend-mode: plus-lighter;
}

/* Respect reduced motion for bouncing arrow */
@media (prefers-reduced-motion: reduce) {
  .animate-bounce {
    animation: none !important;
  }
}

/* Reveal on scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Simple delay helpers for staggered reveals */
.reveal.delay-1 { transition-delay: 120ms; }
.reveal.delay-2 { transition-delay: 240ms; }
.reveal.delay-3 { transition-delay: 360ms; }

/* Respect reduced motion: show content without animation */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.originals-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  /* border-radius: 32px; */
  /* padding: 2.5rem; */
  z-index: 10;
  /* border: 0.5px solid rgba(217, 217, 217, 0.25);
  background: linear-gradient(120deg, rgba(95, 53, 5, 0.85) 0%, rgba(32, 24, 14, 0.92) 40%, rgba(15, 15, 15, 0.95) 100%);
  box-shadow: inset 0 0 40px rgba(8, 8, 8, 0.65); */
  overflow: hidden;
}

.originals-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.originals-multiplier {
  font-size: clamp(3.25rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(90deg, #f4a81e 0%, #ffce10 55%, #ffd95c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.originals-art {
  /* flex: 1; */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}


.originals-art-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;

}

@media (min-width: 1024px) {
  .originals-card {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    /* padding: 3.5rem 4rem; */
  }

  .originals-copy {
    max-width: 520px;
      align-items: start;

  }
}

/* 
.sponsor-box {
  background: linear-gradient(90deg, #1E1E1E 0%, #303030 50%, #1E1E1E 100%);
  border: 0.5px solid #D9D9D9;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 5px 1px #5E5E5E;
} */

.fortune-wheel {
  position: relative;
  width: min(78vw, 360px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

.fortune-wheel::after {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 206, 16, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  opacity: 0.75;
  pointer-events: none;
}

.fortune-wheel__pointer {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  z-index: 6;
  pointer-events: none;
}

.fortune-wheel__pointer::before {
  content: "";
  width: 58%;
  height: 58%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3c4 0%, #ffcd45 55%, #e58d00 100%);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}

.fortune-wheel__pointer::after {
  content: "";
  position: absolute;
  bottom: -20px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid #ffcf33;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.4));
}

#exit-wheel-modal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 420ms ease, visibility 0s linear 420ms;
  overflow-x: hidden;
}

#exit-wheel-modal.exit-modal--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 420ms ease, visibility 0s linear 0s;
}

.exit-wheel__overlay {
  opacity: 0;
  transition: opacity 420ms ease;
}

#exit-wheel-modal.exit-modal--visible .exit-wheel__overlay {
  opacity: 1;
}

.exit-wheel__content {
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity 440ms ease, transform 440ms cubic-bezier(0.16, 0.76, 0.24, 1);
}

#exit-wheel-modal.exit-modal--visible .exit-wheel__content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.exit-wheel__content {
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 720px);
  overflow: hidden;
  margin: 2.25rem auto;
  box-sizing: border-box;
}

.exit-wheel__content > .grid {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.exit-wheel__content > .grid::-webkit-scrollbar {
  width: 6px;
}

.exit-wheel__content > .grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
}

@media (max-width: 768px) {
  .exit-wheel__content {
    max-height: min(70vh, 600px);
    width: min(100%, 420px);
    border-radius: 24px;
    max-width: calc(100vw - 2rem);
    margin: 1.75rem auto;
  }

  .exit-wheel__content > .grid {
    padding-top: 3.5rem;
    padding-bottom: 2.75rem;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
    gap: 2.25rem;
  }
}

#wheel-spin-btn {
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

#wheel-spin-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(241, 160, 33, 0.25);
}

#wheel-spin-btn.is-spinning {
  transform: scale(1.025);
  box-shadow: 0 0 24px rgba(255, 206, 16, 0.35);
  filter: saturate(1.15);
}

#wheel-spin-btn:disabled {
  cursor: not-allowed;
}

.fortune-wheel__disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 12px solid rgba(255, 206, 16, 0.35);
  background:
    repeating-conic-gradient(
      rgba(255, 255, 255, 0.05) 0deg 0.65deg,
      transparent 0.65deg 40deg
    ),
    radial-gradient(circle at center, rgba(17, 17, 17, 0.95) 0%, rgba(17, 17, 17, 0.82) 60%, transparent 62%),
    var(--wheel-gradient,
      conic-gradient(
        #ffd54f 0deg 40deg,
        #f6c867 40deg 80deg,
        #2b2b2b 80deg 120deg,
        #f59e0b 120deg 160deg,
        #1f1f1f 160deg 200deg,
        #f7ca7a 200deg 240deg,
        #262626 240deg 280deg,
        #ffb347 280deg 320deg,
        #333333 320deg 360deg
      )
    );
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 22px 44px rgba(0, 0, 0, 0.55);
  transform: rotate(var(--wheel-rotation, -90deg));
  transition: transform 4.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.fortune-wheel__svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.fortune-wheel__svg .fortune-wheel__segment {
  pointer-events: none;
}

.fortune-wheel__svg .fortune-wheel__segment--highlight {
  filter: brightness(1.08);
}

.fortune-wheel__svg text {
  font-family: "Roboto Flex", system-ui, -apple-system, "Segoe UI", sans-serif;
  pointer-events: none;
}

.fortune-wheel__disc::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.fortune-wheel__disc::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.fortune-wheel__hub {
  position: absolute;
  inset: 50%;
  width: 38%;
  height: 38%;
  transform: translate(-50%, -50%);
  /* border-radius: 50%; */
  /* border: 6px solid rgba(241, 160, 33, 0.65); */
  /* background: radial-gradient(circle at 30% 30%, #ffe9b3 0%, #f1a021 60%, #bf740e 100%); */
  /* box-shadow: inset 0 0 18px rgba(255, 240, 186, 0.5), 0 10px 20px rgba(0, 0, 0, 0.4); */
  display: grid;
  place-items: center;
}

.fortune-wheel__hub-inner {
  width: 75%;
  height: 75%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255) 0%, rgba(255, 206, 16) 70%, rgba(255, 206, 16) 100%);
  display: grid;
  place-items: center;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.75rem;
  color: #1e1e1e;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.fortune-wheel__hub-label {
  transform: translateY(0.05rem);
}

.fortune-wheel__hub-inner:hover,
.fortune-wheel__hub-inner:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 0 18px rgba(255, 206, 16, 0.45);
}

.fortune-wheel__hub-inner:focus,
.fortune-wheel__hub-inner:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.fortune-wheel__hub-inner.is-spinning {
  pointer-events: none;
  cursor: wait;
  transform: scale(1);
  box-shadow: none;
}

.fortune-wheel--spinning .fortune-wheel__disc {
  transition: transform 4.8s cubic-bezier(0.18, 0.89, 0.32, 1);
}

.fortune-wheel--spinning .fortune-wheel__hub-inner {
  animation: fortune-glow 0.7s ease-in-out infinite alternate;
}

.fortune-wheel--won::after {
  opacity: 1;
  background: radial-gradient(circle, rgba(255, 206, 16, 0.4) 0%, rgba(0, 0, 0, 0) 75%);
}

.fortune-wheel--won .fortune-wheel__disc::before {
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 65%);
}

.fortune-wheel--won .fortune-wheel__hub-inner {
  box-shadow: 0 0 26px rgba(255, 206, 16, 0.6), inset 0 0 18px rgba(255, 255, 255, 0.65);
}

@keyframes fortune-glow {
  from {
    box-shadow: 0 0 16px rgba(255, 206, 16, 0.35), inset 0 0 6px rgba(255, 255, 255, 0.4);
  }
  to {
    box-shadow: 0 0 26px rgba(255, 206, 16, 0.65), inset 0 0 18px rgba(255, 255, 255, 0.55);
  }
}

@media (max-width: 640px) {
  .exit-wheel__content {
    width: min(100%, 360px);
    max-height: min(70vh, 520px);
    max-width: calc(100vw - 1.5rem);
    margin: 1.5rem auto;
  }

  .exit-wheel__content > .grid {
    padding-top: 3rem;
    padding-bottom: 2.25rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    gap: 1.75rem;
  }

  .exit-wheel__content .fortune-wheel {
    width: min(82vw, 280px);
  }

  .exit-wheel__content h3 {
    font-size: 1.5rem;
    line-height: 1.35;
  }

  .exit-wheel__content p {
    font-size: 0.95rem;
  }

  .exit-wheel__content #wheel-spin-btn {
    font-size: 1rem;
    padding: 0.75rem 1.6rem;
  }

  .fortune-wheel {
    width: min(86vw, 320px);
  }

}

@media (max-width: 480px) {
  .exit-wheel__content {
    width: min(100%, 340px);
    max-height: min(68vh, 480px);
    max-width: calc(100vw - 1.25rem);
    margin: 1.25rem auto;
  }

  .exit-wheel__content > .grid {
    padding-top: 2.75rem;
    padding-bottom: 2rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .exit-wheel__content .fortune-wheel {
    width: min(88vw, 260px);
  }

  .exit-wheel__content h3 {
    font-size: 1.35rem;
  }

  .exit-wheel__content p {
    font-size: 0.9rem;
  }

  .exit-wheel__content #wheel-spin-btn {
    font-size: 0.95rem;
    padding: 0.65rem 1.35rem;
  }

  #wheel-result {
    font-size: 0.9rem;
    min-height: 1.5rem;
  }
}
