:root {
  /* Lottoland Brand */
  --ll-green: #A6CE39;
  --ll-green-bright: #B8DC5C;
  --ll-magenta: #E2007A;
  --ll-magenta-dark: #8B1E58;
  --ll-pill-bg: #5B1A56;

  /* Hintergrund */
  --bg-dark: #0E1F2F;
  --bg-card: #16293D;
  --bg-card-2: #1D344A;

  /* Underwater (Hero + Final-CTA Sections) */
  --water-deep: #0D3D5C;
  --water-mid: #1B6FA8;
  --water-light: #5BA0CC;

  /* Akzente */
  --gold: #FFC107;
  --gold-bright: #FFD54F;
  --tp-green: #00B67A;

  /* Wheel-spezifisch */
  --wheel-burgundy: #1B4566;
  --wheel-gold: #FFC107;
  --wheel-magenta: #E2007A;

  /* Text */
  --text-primary: #FFFFFF;
  --text-soft: #B8C7D6;
  --text-muted: #7B8FA3;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', Roboto, system-ui, sans-serif;
  min-height: 100dvh;
}

/* ============ TYPOGRAPHY ============ */

.font-headline {
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.font-num {
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* ============ UTILITIES ============ */

.ll-green-text {
  color: var(--ll-green);
}

.pill-bg {
  background-color: var(--ll-pill-bg);
}

.card-dark {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============ HEADER ============ */

.ll-logo {
  display: block;
  height: 28px;
  width: auto;
}

@media (min-width: 768px) {
  .ll-logo { height: 34px; }
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #FF4444;
  border-radius: 50%;
  animation: live-pulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 8px #FF4444;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ============ BUTTONS ============ */

.btn-magenta {
  background: var(--ll-green);
  color: var(--bg-dark);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(166, 206, 57, 0.35);
}

.btn-magenta:hover {
  background: var(--ll-green-bright);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(166, 206, 57, 0.5);
}

.btn-white {
  background: #fff;
  color: var(--bg-dark);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid #fff;
  transition: all 0.2s;
}

.btn-white:hover {
  background: transparent;
  color: #fff;
}

/* ============ UNDERWATER BACKGROUND ============ */

.underwater-bg {
  position: relative;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(91, 160, 204, 0.45) 0%, transparent 55%),
    linear-gradient(180deg, #4D87B0 0%, #2D6790 38%, #1A4566 100%);
  overflow: hidden;
}

.underwater-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 8%),
    radial-gradient(circle at 85% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 10%);
  pointer-events: none;
}

.underwater-bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--bg-dark));
  pointer-events: none;
}

.light-ray {
  position: absolute;
  width: 240px;
  height: 200%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 60%);
  transform: rotate(15deg);
  transform-origin: top center;
  pointer-events: none;
  filter: blur(20px);
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.2));
  pointer-events: none;
  animation: bubble-rise 10s linear infinite;
}

@keyframes bubble-rise {
  0% { transform: translateY(0) scale(0.5); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-500px) scale(1.3); opacity: 0; }
}

/* ============ FS-STEMPEL ============ */

.fs-stamp {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ll-green) 0%, #7BA82A 100%);
  box-shadow: 0 8px 24px rgba(166, 206, 57, 0.55), inset 0 -4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  text-align: center;
  line-height: 1.05;
  transform: rotate(-8deg);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .fs-stamp { width: 130px; height: 130px; }
}

.fs-stamp .big { font-size: 1.3rem; }
.fs-stamp .small { font-size: 0.6rem; text-transform: uppercase; margin-top: 2px; letter-spacing: 0.05em; }

@media (min-width: 768px) {
  .fs-stamp .big { font-size: 1.7rem; }
  .fs-stamp .small { font-size: 0.7rem; }
}

/* ============ WHEEL ============ */

.wheel-container {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.wheel-container.compact { max-width: 320px; }

.atmo {
  position: absolute;
  font-size: 1.6rem;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.atmo-1 { top: -1rem; left: -1.5rem; font-size: 1.9rem; animation: atmo-float-1 4s ease-in-out infinite; }
.atmo-2 { top: 4rem; right: -2rem; animation: atmo-float-2 5s ease-in-out infinite; }
.atmo-3 { bottom: -0.5rem; left: -1rem; animation: atmo-float-3 3.5s ease-in-out infinite; }

@keyframes atmo-float-1 { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes atmo-float-2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes atmo-float-3 { 0%, 100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-6px) rotate(-2deg); } }

.pointer {
  position: absolute;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  width: 1.75rem;
  height: 1.75rem;
  background: rgba(255, 255, 255, 0.35);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.pointer-top {
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 2.4rem;
  height: 2.6rem;
  background: #fff;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.6)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  z-index: 4;
}

.pointer-bottom { bottom: -12px; left: 50%; transform: translateX(-50%) rotate(180deg); }
.pointer-left { left: -12px; top: 50%; transform: translateY(-50%) rotate(-90deg); }
.pointer-right { right: -12px; top: 50%; transform: translateY(-50%) rotate(90deg); }

.wheel-rotor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.wheel-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid #fff;
  background:
    radial-gradient(circle at center, rgba(14, 31, 47, 0.92) 0 18%, transparent 19%),
    conic-gradient(
      from -15deg,
      var(--wheel-burgundy)  0deg  30deg,
      var(--wheel-gold)     30deg  60deg,
      var(--wheel-burgundy) 60deg  90deg,
      var(--wheel-magenta)  90deg 120deg,
      var(--wheel-burgundy) 120deg 150deg,
      var(--wheel-gold)     150deg 180deg,
      var(--wheel-burgundy) 180deg 210deg,
      var(--wheel-magenta)  210deg 240deg,
      var(--wheel-burgundy) 240deg 270deg,
      var(--wheel-gold)     270deg 300deg,
      var(--wheel-burgundy) 300deg 330deg,
      var(--wheel-magenta)  330deg 360deg
    );
  box-shadow:
    0 0 60px rgba(226, 0, 122, 0.45),
    inset 0 0 0 4px var(--bg-dark),
    inset 0 0 0 6px var(--ll-magenta);
}

.wheel-disc.disc-2 {
  background:
    radial-gradient(circle at center, rgba(14, 31, 47, 0.92) 0 18%, transparent 19%),
    conic-gradient(
      from -22.5deg,
      var(--wheel-burgundy)  0deg  45deg,
      var(--wheel-magenta)  45deg  90deg,
      var(--wheel-burgundy) 90deg 135deg,
      var(--wheel-gold)     135deg 180deg,
      var(--wheel-burgundy) 180deg 225deg,
      var(--wheel-magenta)  225deg 270deg,
      var(--wheel-burgundy) 270deg 315deg,
      var(--wheel-gold)     315deg 360deg
    );
}

.wheel-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wheel-segment-label {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  pointer-events: none;
}

.highlight-badge {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 350ms ease;
}

.highlight-text {
  transition: fill 350ms ease;
}

.wheel-rotor.revealed .highlight-badge {
  opacity: 1;
  animation: badge-pop 700ms cubic-bezier(0.34, 1.56, 0.64, 1) 1;
}

.wheel-rotor.revealed .highlight-text {
  fill: #fff;
  font-weight: 900;
}

@keyframes badge-pop {
  0% { transform: scale(0.4); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.spin-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6.2rem;
  height: 6.2rem;
  border-radius: 50%;
  padding: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 0.78rem;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  z-index: 3;
  transition: transform 200ms ease, filter 200ms ease;
  background: linear-gradient(180deg, #fff 0%, #E5EBF0 100%);
  color: var(--bg-dark);
  border: 3px solid var(--ll-green);
  box-shadow:
    0 0 0 1px var(--bg-dark),
    0 0 30px rgba(166, 206, 57, 0.5),
    0 4px 0 #7BA82A,
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  animation: btn-pulse 2s ease-in-out infinite;
}

.spin-button:hover {
  transform: translate(-50%, -50%) scale(1.06);
  animation: none;
}

.spin-button:disabled {
  cursor: default;
  filter: brightness(0.85) saturate(0.6);
  transform: translate(-50%, -50%);
  animation: none;
  color: var(--text-muted);
}

@keyframes btn-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 1px var(--bg-dark), 0 0 30px rgba(166, 206, 57, 0.5), 0 4px 0 #7BA82A, inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.04);
    box-shadow: 0 0 0 1px var(--bg-dark), 0 0 50px rgba(166, 206, 57, 0.8), 0 4px 0 #7BA82A, inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }
}

@media (min-width: 768px) {
  .wheel-container { max-width: 440px; }
  .wheel-container.compact { max-width: 380px; }
  .spin-button { width: 7rem; height: 7rem; font-size: 0.9rem; }
}

/* ============ CONFETTI ============ */

.confetti {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  z-index: 5;
  animation: confetti-burst forwards cubic-bezier(0.18, 0.7, 0.35, 1);
  will-change: transform, opacity;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@keyframes confetti-burst {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  55% { transform: translate(var(--tx), var(--ty)) rotate(calc(var(--r) * 0.5)); opacity: 1; }
  100% { transform: translate(var(--tx2), var(--ty2)) rotate(var(--r)); opacity: 0; }
}

/* ============ SOUND-TOGGLE ============ */

.sound-toggle {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.sound-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.sound-toggle[aria-pressed="true"] {
  background: var(--ll-green);
  border-color: var(--ll-green);
  color: #fff;
}

/* ============ MODAL ============ */

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 30, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-bg.show {
  display: flex;
}

/* ============ STICKY MOBILE CTA ============ */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 0.75rem 1rem;
  background: rgba(14, 31, 47, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.show {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .sticky-cta { display: none !important; }
}

/* ============ PROGRESSIVE DISCLOSURE ============ */

.funnel-locked #trust-strip,
.funnel-locked #story-bridge,
.funnel-locked #offer-stack,
.funnel-locked #social-proof,
.funnel-locked #faq,
.funnel-locked #final-cta,
.funnel-locked .sticky-cta {
  display: none;
}

/* ============ ACCORDION (FAQ) ============ */

.accordion summary { cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion[open] .chev { transform: rotate(180deg); }
.chev { transition: transform 0.2s; }

/* ============ PAYMENT PILLS ============ */

.pay-pill {
  background: #fff;
  color: #222;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.pay-pill.dark { background: #1A1A1A; color: #fff; }
.pay-pill.blue { background: #1A1F71; color: #fff; }
.pay-pill.yellow { background: #FFB400; color: #000; }
.pay-pill.pink { background: #FFA8C5; color: #000; }
.pay-pill.red { background: #EB001B; color: #fff; }
.pay-pill.tp { background: var(--tp-green); color: #fff; }

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
