/* =============================================
   КОЛЕСО ФОРТУНЫ — Fortune Wheel Section
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Montserrat:wght@600;800&display=swap');

.fortune-section {
  position: relative;
  background: radial-gradient(ellipse at center, #1a0533 0%, #0d001a 60%, #0f121a 100%);
  padding: 50px 20px 60px;
  overflow: hidden;
  border-bottom: 2px solid rgba(255,215,0,0.15);
}

/* Фоновые частицы */
.fw-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.fw-particles span {
  position: absolute; width: 3px; height: 3px; background: gold;
  border-radius: 50%; animation: fw-float linear infinite; opacity: 0;
}
@keyframes fw-float {
  0% { transform: translateY(100%) scale(0); opacity: 0; }
  10% { opacity: 1; } 90% { opacity: 0.8; }
  100% { transform: translateY(-50px) scale(1); opacity: 0; }
}

/* Контейнер */
.fw-container {
  position: relative; z-index: 1; display: flex;
  flex-direction: column; align-items: center; gap: 25px;
  max-width: 100%; margin: 0 auto;
}

/* Заголовок */
.fw-title {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(20px, 4.5vw, 36px);
  text-transform: none;
  text-shadow: 0 0 20px rgba(255,215,0,0.6), 0 0 60px rgba(255,215,0,0.3);
  letter-spacing: 3px; text-align: center;
  animation: fw-glow-text 2s ease-in-out infinite alternate;
  margin: 0;
}
.fw-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(13px, 2.5vw, 16px);
  color: rgba(255,255,255,0.6);
  text-align: center; margin: 0;
  letter-spacing: 1px;
}
@keyframes fw-glow-text {
  from { text-shadow: 0 0 20px rgba(255,215,0,0.6), 0 0 60px rgba(255,215,0,0.3); }
  to { text-shadow: 0 0 30px rgba(255,215,0,0.9), 0 0 80px rgba(255,215,0,0.5), 0 0 120px rgba(255,215,0,0.2); }
}

/* Обёртка колеса */
.fw-wheel-wrap {
  position: relative;
  width: clamp(280px, 70vw, 400px);
  height: clamp(280px, 70vw, 400px);
}

/* Внешнее свечение */
.fw-wheel-wrap::before {
  content: ''; position: absolute; inset: -20px; border-radius: 50%;
  background: conic-gradient(from 0deg, #ffd700, #ff6b00, #ff0055, #aa00ff, #0088ff, #00ff88, #ffd700);
  animation: fw-rotate-glow 4s linear infinite; filter: blur(15px); opacity: 0.4; z-index: -1;
}
@keyframes fw-rotate-glow { to { transform: rotate(360deg); } }

/* Рамка с лампочками */
.fw-border {
  position: absolute; inset: -14px; border-radius: 50%;
  background: linear-gradient(145deg, #2a1f00, #110d00);
  border: 3px solid #ffd700;
  box-shadow: inset 0 0 30px rgba(255,215,0,0.15), 0 0 15px rgba(255,215,0,0.25);
  z-index: 1;
}
.fw-bulb {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: #ffd700; box-shadow: 0 0 5px #ffd700, 0 0 10px #ffa500;
  transform: translate(-50%, -50%);
}
.fw-bulb.off { background: #442200; box-shadow: none; }

/* Диск колеса */
.fw-disc {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; z-index: 2;
  transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
  will-change: transform;
}

/* Центральная кнопка */
.fw-center-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd700, #b8860b);
  border: 3px solid #fff;
  box-shadow: 0 0 20px rgba(255,215,0,0.5), inset 0 -3px 8px rgba(0,0,0,0.3);
  z-index: 10; display: flex; align-items: center; justify-content: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700; font-size: 14px; color: #1a0533;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  text-transform: uppercase; user-select: none; line-height: 1.2; text-align: center;
}
.fw-center-btn:hover { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 30px rgba(255,215,0,0.8), inset 0 -3px 8px rgba(0,0,0,0.3); }
.fw-center-btn:active { transform: translate(-50%, -50%) scale(0.95); }
.fw-center-btn.disabled { pointer-events: none; opacity: 0.7; }

/* Указатель-стрелка */
.fw-pointer {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-top: 30px solid #ffd700;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5)); z-index: 15;
}
.fw-pointer.tick { animation: fw-ticker 0.1s ease-out; }
@keyframes fw-ticker {
  0% { transform: translateX(-50%) rotate(0deg); }
  50% { transform: translateX(-50%) rotate(12deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}

/* Блок результата */
.fw-result {
  min-height: 50px; padding: 12px 25px;
  background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,215,0,0.03));
  border: 1px solid rgba(255,215,0,0.25); border-radius: 10px;
  text-align: center; opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s, transform 0.5s;
}
.fw-result.show { opacity: 1; transform: translateY(0); }
.fw-result-label {
  font-size: 12px; color: rgba(255,215,0,0.7);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 4px;
  font-family: 'Montserrat', sans-serif;
}
.fw-result-value {
  font-family: 'Russo One', sans-serif; font-size: clamp(20px, 4vw, 30px);
  color: #ffd700; text-shadow: 0 0 20px rgba(255,215,0,0.5);
}

/* CTA кнопка под колесом */
.fw-cta-btn {
  display: inline-block; padding: 14px 40px;
  background: linear-gradient(135deg, #ffd700, #e6a800);
  color: #0f121a; font-family: system-ui, -apple-system, BlinkMacSystemFont,
             "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-weight: 700;
  font-size: 15px; text-decoration: none; border-radius: 8px;
  text-transform: uppercase; letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(255,215,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.fw-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(255,215,0,0.5); }

/* Конфетти */
.fw-confetti-box { position: absolute; inset: 0; pointer-events: none; z-index: 20; overflow: hidden; }
.fw-confetti {
  position: absolute; width: 10px; height: 10px; top: -10px;
  opacity: 0; animation: fw-confetti-fall linear forwards;
}
@keyframes fw-confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(600px) rotate(720deg); opacity: 0; }
}

/* Адаптивность */
@media (max-width: 480px) {
  .fortune-section { padding: 90px 20px 100px; }
  .fw-wheel-wrap { width: 280px; height: 280px; }
  .fw-center-btn { width: 50px; height: 50px; font-size: 12px; }
  .fw-pointer { border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 24px solid #ffd700; top: -12px; }
}
.fortune-section,
.fortune-section * {
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}