/* ============================================================
   LUMAYN v2 OVERLAY — EDITORIAL PREMIUM
   Visible font changes + kinetic typography + new injected elements
   ============================================================ */

/* ===== Factor IO — YooKassa's font (loaded from their public CDN) ===== */
@font-face {
  font-family: 'Factor IO';
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url('https://static.yoomoney.ru/files-front/fonts/factor-io-light.woff2') format('woff2'),
       url('https://static.yoomoney.ru/files-front/fonts/factor-io-light.woff') format('woff');
}
@font-face {
  font-family: 'Factor IO';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('https://static.yoomoney.ru/files-front/fonts/factor-io-regular.woff2') format('woff2'),
       url('https://static.yoomoney.ru/files-front/fonts/factor-io-regular.woff') format('woff');
}
@font-face {
  font-family: 'Factor IO';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('https://static.yoomoney.ru/files-front/fonts/factor-io-medium.woff2') format('woff2'),
       url('https://static.yoomoney.ru/files-front/fonts/factor-io-medium.woff') format('woff');
}
@font-face {
  font-family: 'Factor IO';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('https://static.yoomoney.ru/files-front/fonts/factor-io-bold.woff2') format('woff2'),
       url('https://static.yoomoney.ru/files-front/fonts/factor-io-bold.woff') format('woff');
}

/* ===== FONTS — radically different from v1 ===== */
body.v2-body {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif !important;
  font-variation-settings: "wdth" 100, "opsz" 18;
  font-feature-settings: "cv11";
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

/* Body paragraphs */
body.v2-body p,
body.v2-body .section-subtitle,
body.v2-body .game-card p,
body.v2-body .faq-answer,
body.v2-body .delivery-step,
body.v2-body .navbar-links a {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif !important;
  font-variation-settings: "wdth" 95, "opsz" 18;
}

/* Display headings — UNBOUNDED (but NOT hero h1 — that keeps v1 style) */
body.v2-body h2,
body.v2-body h3,
body.v2-body h4,
body.v2-body .section-title,
body.v2-body .access-card h2,
body.v2-body .page-title,
body.v2-body .footer h4 {
  font-family: 'Unbounded', 'Inter', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.035em !important;
}

/* Game card titles — Factor IO SemiBold (bolder per user request) */
body.v2-body .game-card h3 {
  font-family: 'Factor IO', 'Inter', Helvetica, Arial, sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  font-size: 1.15rem !important;
  letter-spacing: -0.02em !important;
  color: #1d1d1f !important;
  font-feature-settings: "ss01" 0, "ss02" 0, "ss03" 0, "ss04" 0, "ss05" 0, "calt" 0, "liga" 0 !important;
  font-variant-ligatures: none !important;
}

/* ===== STATIC game icons — stop pulsing glow ===== */
body.v2-body .game-icon-img {
  animation: none !important;
}

/* ===== Game detail page — use Factor IO for title + modal h3 ===== */
body.v2-body .game-detail-header h1 {
  font-family: 'Factor IO', 'Inter', Helvetica, Arial, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  font-feature-settings: "ss01" 0, "ss02" 0, "calt" 0, "liga" 0 !important;
  font-variant-ligatures: none !important;
}
body.v2-body .instruction-modal-header h3,
body.v2-body .transfer-step h3,
body.v2-body .delivery-title {
  font-family: 'Factor IO', 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-feature-settings: "ss01" 0, "calt" 0 !important;
}

/* HERO h1 — keep v1 look (font, color, gradient) */
/* No overrides here — inherits from /css/style.css */

/* PRICES — Unbounded for clear chunky price display */
body.v2-body .price,
body.v2-body .game-price-current,
body.v2-body .game-price-old,
body.v2-body .game-discount-badge,
body.v2-body .timer-value,
body.v2-body .order-number {
  font-family: 'Unbounded', sans-serif !important;
  font-feature-settings: "tnum";
  letter-spacing: -0.03em !important;
  font-weight: 600 !important;
}
body.v2-body .credential-box .value {
  font-family: 'Unbounded', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
}

/* Button labels — bold Bricolage */
body.v2-body .btn {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif !important;
  font-variation-settings: "wdth" 100, "opsz" 14, "wght" 600;
  font-weight: 600 !important;
  letter-spacing: -0.005em !important;
}

/* Orders page title — Unbounded as "Доступные" on home */
body.v2-body .orders-page h1 {
  font-family: 'Unbounded', sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: -0.035em !important;
}
/* Support header — Factor IO (like game titles) but slightly bolder */
body.v2-body .support-header h3 {
  font-family: 'Factor IO', 'Inter', Helvetica, Arial, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  font-feature-settings: "ss01" 0, "ss02" 0, "calt" 0, "liga" 0 !important;
  font-variant-ligatures: none !important;
}
body.v2-body .orders-page h1 {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem) !important;
  display: inline-block;
  line-height: 1.1;
}
body.v2-body .orders-page h1 .v2-italic {
  font-family: 'Fraunces', serif !important;
  font-style: italic !important;
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 400;
  font-weight: 400 !important;
  color: var(--blue);
  letter-spacing: -0.015em !important;
  font-size: 1.22em !important;
  line-height: 1 !important;
  display: inline;
  margin-left: 0.1em;
  vertical-align: baseline;
}
body.v2-body .support-header h3 {
  font-size: 1.05rem !important;
  font-family: 'Factor IO', 'Inter', Helvetica, Arial, sans-serif !important;
}

/* "Заказов пока нет" — Factor IO, как названия игр */
body.v2-body .orders-empty h2,
body.v2-body .chat-step h3,
body.v2-body .chat-step h3[style] {
  font-family: 'Factor IO', 'Inter', Helvetica, Arial, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  font-feature-settings: "ss01" 0, "ss02" 0, "calt" 0, "liga" 0 !important;
  font-variant-ligatures: none !important;
}

/* Section title — centered (preserve v1 alignment), balanced size */
body.v2-body .section-title {
  font-family: 'Unbounded', sans-serif !important;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem) !important;
  font-weight: 500 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.15 !important;
  text-align: center !important;
  display: block !important;
}

/* Italic accent — inline, visually matching Unbounded caps */
body.v2-body .v2-italic {
  font-family: 'Fraunces', serif !important;
  font-style: italic !important;
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 400;
  font-weight: 400 !important;
  color: var(--blue);
  letter-spacing: -0.015em !important;
  font-size: 1.22em !important;
  line-height: 1 !important;
  display: inline;
  margin-left: 0.1em;
  vertical-align: baseline;
}

/* ===== DECORATIVE SPARKS in hero corners ===== */
body.v2-body .hero::before {
  content: '✦';
  position: absolute;
  top: 140px;
  left: 24px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: rgba(0, 122, 255, 0.12);
  animation: v2-spin-slow 14s linear infinite;
  z-index: 0;
  pointer-events: none;
}
body.v2-body .hero::after {
  content: '✦';
  position: absolute;
  bottom: 80px;
  right: 24px;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: rgba(0, 122, 255, 0.1);
  animation: v2-spin-slow 18s linear infinite reverse;
  z-index: 0;
  pointer-events: none;
}
@keyframes v2-spin-slow {
  to { transform: rotate(360deg); }
}

/* Hide v1 scroll chevrons on hero (per user) */
body.v2-body .scroll-hint,
body.v2-body .scroll-chevron,
body.v2-body .scroll-chevron-2 { display: none !important; }

/* Hero closer to slider, but keep subtitle fully visible */
body.v2-body .hero { padding-bottom: 12px !important; }
body.v2-body .hero-fade { display: none !important; }

/* Static gate icon (no float / ring pulse) */
body.v2-body .gate-icon,
body.v2-body .gate-icon::after {
  animation: none !important;
  transform: none !important;
}

/* Slightly more compact access/quiz card on mobile */
@media (max-width: 520px) {
  body.v2-body .access-card {
    padding: 20px 16px !important;
    border-radius: 18px !important;
  }
  body.v2-body .gate-icon {
    width: 56px !important;
    height: 56px !important;
    margin: 0 auto 12px !important;
  }
  body.v2-body .gate-icon svg {
    width: 28px !important;
    height: 28px !important;
  }
  body.v2-body .access-card h2 {
    font-size: 1.35rem !important;
    margin-bottom: 4px !important;
  }
  body.v2-body .access-card .subtitle {
    font-size: 0.82rem !important;
    margin-bottom: 18px !important;
  }
  body.v2-body .quiz-q-text {
    font-size: 0.85rem !important;
    margin-bottom: 10px !important;
  }
  body.v2-body .quiz-image {
    border-radius: 10px !important;
  }
  body.v2-body .quiz-options {
    gap: 8px !important;
    margin-top: 12px !important;
  }
  body.v2-body .quiz-option {
    padding: 11px 13px !important;
    font-size: 0.82rem !important;
    border-radius: 10px !important;
    gap: 10px !important;
  }
  body.v2-body .quiz-option-num {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.78rem !important;
  }
  body.v2-body .access-card .btn {
    padding: 12px 16px !important;
    font-size: 0.88rem !important;
  }
}

/* ===== INJECTED TRUST FACTS SLIDER — YooKassa style ===== */
.v2-slider {
  margin: -16px auto 4px;
  max-width: 1180px;
  width: 100%;
  padding: 0 clamp(12px, 3vw, 24px);
  position: relative;
}
.v2-slider-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.v2-slider-viewport {
  position: relative;
  flex: 1;
  min-height: 200px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f2ff 0%, #f3f8ff 100%);
  box-shadow: 0 4px 20px -10px rgba(0, 122, 255, 0.12);
}
@media (min-width: 768px) {
  .v2-slider-viewport { min-height: 240px; }
}

.v2-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.v2-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.v2-slide.prev { transform: translateX(-30px); }
.v2-slide.next { transform: translateX(30px); }

.v2-slide-visual {
  position: relative;
  flex-shrink: 0;
  width: 42%;
  max-width: 380px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.v2-slide-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 4px;
  box-sizing: border-box;
}

.v2-slide-text {
  flex: 1;
  padding: clamp(16px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.v2-slide-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  background: rgba(0, 122, 255, 0.1);
  color: var(--blue-dark);
  border-radius: 100px;
  font-family: 'Factor IO', 'Inter', sans-serif !important;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.v2-slide-title {
  font-family: 'Factor IO', 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem) !important;
  color: #1d1d1f !important;
  letter-spacing: -0.025em !important;
  line-height: 1.15 !important;
  margin: 0 !important;
  font-feature-settings: "ss01" 0, "calt" 0 !important;
  font-variant-ligatures: none !important;
}
.v2-slide-desc {
  font-family: 'Factor IO', 'Inter', sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #4a4a55;
  margin: 0;
  max-width: 380px;
}
.v2-slide-cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 10px 18px;
  background: #fff;
  color: #1d1d1f;
  border-radius: 100px;
  font-family: 'Factor IO', 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}
.v2-slide-cta span {
  font-size: 0.95em;
  display: inline-block;
}
.v2-slide-cta:hover { background: #fff; }
.v2-slide-cta:hover span { transform: none; }

.v2-slider-arrow {
  align-self: center;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: background 0.2s ease, transform 0.15s ease;
  padding: 0;
}
.v2-slider-arrow:hover { background: #f5f9ff; }
.v2-slider-arrow:active { transform: scale(0.92); }
.v2-slider-arrow svg { width: 22px; height: 22px; }

.v2-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.v2-slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.16);
  border: none;
  cursor: pointer;
  transition: width 0.4s cubic-bezier(0.32, 0.72, 0, 1),
              background 0.3s ease;
  padding: 0;
}
.v2-slider-dot.active {
  width: 26px;
  border-radius: 6px;
  background: var(--blue-dark);
}

@media (max-width: 640px) {
  .v2-slider { margin: 4px auto 4px; padding: 0 12px; position: relative; }
  /* Arrows at bottom corners, aligned with dots row */
  .v2-slider-arrow {
    position: absolute;
    bottom: 8px;
    top: auto;
    transform: none;
    width: 30px; height: 30px;
    z-index: 3;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  .v2-slider-prev { left: 16px; }
  .v2-slider-next { right: 16px; }
  .v2-slider-arrow svg { width: 16px; height: 16px; }
  .v2-slider-arrow:active {
    transform: scale(0.9);
    background: #f0f4ff;
  }
  .v2-slider-arrow:hover { background: #fafbfe; }
  /* Keep horizontal layout on mobile — image on left, text on right */
  .v2-slide { flex-direction: row; }
  .v2-slide-visual {
    width: 48%;
    max-width: 180px;
    min-width: 130px;
    height: auto;
    min-height: 100%;
    align-self: stretch;
  }
  .v2-slide-text { padding: 14px 14px 14px 10px; gap: 5px; }
  .v2-slider-viewport { min-height: 210px; }
  .v2-slide-title { font-size: 0.92rem !important; letter-spacing: -0.02em !important; line-height: 1.15 !important; }
  .v2-slide-desc {
    font-size: 0.72rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .v2-slide-cta { padding: 6px 12px; font-size: 0.72rem; margin-top: 4px; }
  .v2-slide-pill { font-size: 0.58rem; padding: 3px 8px; letter-spacing: 0.03em; }
  .v2-slider-dots { margin-top: 10px; }
  .v2-slider-dot { width: 8px; height: 8px; }
  .v2-slider-dot.active { width: 22px; }
}

/* Hero — no override on h1, v1 styling preserved */

/* Mascot breathes + slight rotation */
@keyframes v2-mascotFloat {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  25% { transform: translateY(-8px) rotate(-2deg) scale(1.02); }
  75% { transform: translateY(-4px) rotate(2deg) scale(1.01); }
}
body.v2-body .hero-logo {
  animation: v2-mascotFloat 5s ease-in-out infinite !important;
  filter: drop-shadow(0 20px 40px rgba(0, 122, 255, 0.28)) !important;
  will-change: transform;
  transform-origin: center bottom;
}

/* Sparkle orbits around mascot */
.v2-sparkle {
  position: absolute;
  color: var(--blue);
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 400;
  pointer-events: none;
  animation: v2-sparkleFloat 3s ease-in-out infinite;
  opacity: 0;
}
@keyframes v2-sparkleFloat {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0; }
  20%, 80% { opacity: 1; }
  50% { transform: translateY(-20px) scale(1.2) rotate(180deg); opacity: 0.8; }
}

/* ===== GAME CARDS — NO hover effects (user request) ===== */
body.v2-body .game-card {
  border-radius: 28px !important;
  transition: none !important;
  position: relative;
}
/* Remove shine, tilt, icon rotation — cards stay static */
body.v2-body .game-card::after { display: none !important; }
body.v2-body .game-card:hover {
  transform: none !important;
}
body.v2-body .game-icon-img { transition: none !important; }
body.v2-body .game-card:hover .game-icon-img { transform: none !important; }

/* No hover animation on buttons anywhere */
body.v2-body .game-card .btn-primary,
body.v2-body .game-card .btn-primary:hover {
  transform: none !important;
  box-shadow: 0 6px 16px -4px rgba(0, 122, 255, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transition: none !important;
}

/* ===== BUTTONS — NO hover animation ===== */
body.v2-body .btn {
  position: relative;
  overflow: hidden;
  transition: none !important;
}
body.v2-body .btn-primary {
  box-shadow: 0 6px 16px -4px rgba(0, 122, 255, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}
body.v2-body .btn-primary:hover {
  transform: none !important;
  box-shadow: 0 6px 16px -4px rgba(0, 122, 255, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}
body.v2-body .btn:active {
  transform: scale(0.985) !important;
  transition: transform 0.12s ease !important;
}

/* Use v1's btn-shine but slow it down and soften */
body.v2-body .btn-shine::after {
  animation: btnShine 6s cubic-bezier(0.65, 0, 0.35, 1) infinite !important;
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,0.22) 50%, transparent 65%) !important;
}

/* Ripple */
.v2-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: v2-ripple 0.7s ease-out;
  pointer-events: none;
  z-index: 1;
}
@keyframes v2-ripple {
  to { transform: scale(4); opacity: 0; }
}

/* ===== NAVBAR — premium pill style ===== */
body.v2-body .navbar {
  backdrop-filter: blur(22px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
  transition: box-shadow 0.4s ease, background 0.3s ease !important;
}
body.v2-body .navbar.v2-scrolled {
  box-shadow: 0 4px 30px rgba(0, 122, 255, 0.08);
}
body.v2-body .navbar-links {
  position: relative;
  background: rgba(0, 122, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 100px;
  padding: 4px;
  border: 1px solid rgba(0, 122, 255, 0.08);
}

/* Sliding indicator pill — subtle transparent light-blue, no border */
body.v2-body .navbar-links::before {
  content: '';
  position: absolute;
  top: 4px;
  left: var(--v2-nav-left, 4px);
  width: var(--v2-nav-width, 80px);
  height: calc(100% - 8px);
  border-radius: 100px;
  background: rgba(0, 122, 255, 0.12);
  transition:
    left 0.55s cubic-bezier(0.32, 0.72, 0, 1),
    width 0.55s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.3s ease;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}
body.v2-body .navbar-links:not(.v2-has-active)::before { opacity: 0; }

body.v2-body .navbar-links a {
  position: relative;
  z-index: 1;
  font-family: 'Factor IO', 'Inter', Helvetica, Arial, sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.9rem;
  padding: 9px 18px !important;
  border-radius: 100px !important;
  color: var(--text-secondary) !important;
  background: transparent !important;
  transition: color 0.45s cubic-bezier(0.32, 0.72, 0, 1) !important;
  letter-spacing: -0.015em;
  font-feature-settings: "ss01" 0, "ss02" 0, "calt" 0, "liga" 0 !important;
  font-variant-ligatures: none !important;
}
body.v2-body .navbar-links a::after { display: none !important; }
body.v2-body .navbar-links a:hover {
  color: var(--text-primary) !important;
}
/* Active link: dark text (not white), slightly stronger color to read clearly on soft pill */
body.v2-body .navbar-links a.active {
  color: var(--blue-dark) !important;
  font-weight: 600 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 640px) {
  body.v2-body .navbar-links {
    gap: 2px;
    padding: 3px;
  }
  body.v2-body .navbar-links a {
    padding: 7px 12px !important;
    font-size: 0.82rem;
  }
}

/* Scroll progress bar and custom cursor removed per user request */
.v2-scroll-progress,
.v2-cursor-dot,
.v2-cursor-ring { display: none !important; }

/* ===== REVEAL ===== */
body.v2-body [data-v2-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
body.v2-body [data-v2-reveal].v2-in {
  opacity: 1;
  transform: translateY(0);
}

body.v2-body [data-v2-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
body.v2-body [data-v2-stagger].v2-in > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
body.v2-body [data-v2-stagger].v2-in > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
body.v2-body [data-v2-stagger].v2-in > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
body.v2-body [data-v2-stagger].v2-in > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }

/* ===== PAGE LOADER — contextual, branded, fast ===== */
.v2-loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, #f5faff 0%, #fff 70%);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  overflow: hidden;
}
.v2-loader.v2-fade {
  opacity: 0;
  transform: scale(1.04);
}
.v2-loader-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Orbit with logo in center */
.v2-loader-orbit {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v2-loader-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  animation: v2-loader-pulse 1.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  box-shadow: 0 10px 24px -6px rgba(0, 122, 255, 0.35);
}
@keyframes v2-loader-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.08) rotate(6deg); }
}

/* Rotating ring around logo */
.v2-loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--blue);
  border-right-color: rgba(90, 200, 250, 0.45);
  animation: v2-loader-spin 1s linear infinite;
}
@keyframes v2-loader-spin { to { transform: rotate(360deg); } }

/* Sparkle dots around orbit */
.v2-loader-orbit::before,
.v2-loader-orbit::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
}
.v2-loader-orbit::before {
  top: -3px;
  left: 50%;
  animation: v2-loader-dot1 2s ease-in-out infinite;
}
.v2-loader-orbit::after {
  bottom: -3px;
  right: 50%;
  animation: v2-loader-dot2 2s ease-in-out infinite;
}
@keyframes v2-loader-dot1 {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.3; transform: translateX(-50%) scale(0.6); }
}
@keyframes v2-loader-dot2 {
  0%, 100% { opacity: 0.3; transform: translateX(50%) scale(0.6); }
  50% { opacity: 1; transform: translateX(50%) scale(1); }
}

/* Section name */
.v2-loader-section {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: #1d1d1f;
  line-height: 1;
  opacity: 0;
  transform: translateY(8px);
  animation: v2-loader-textIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
  text-align: center;
}
.v2-loader-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--blue);
  text-transform: uppercase;
  opacity: 0;
  animation: v2-loader-textIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
  text-align: center;
  margin-top: 2px;
}
@keyframes v2-loader-textIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Bottom hairline progress bar inside the loader */
.v2-loader-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(0, 122, 255, 0.08);
}
.v2-loader-bar-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, transparent, var(--blue) 50%, transparent);
  animation: v2-loader-bar 1.3s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes v2-loader-bar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* ===== FAQ ===== */
body.v2-body .faq-item {
  border-radius: 18px !important;
  transition: border-color 0.4s cubic-bezier(0.33, 1, 0.68, 1),
              box-shadow 0.5s cubic-bezier(0.33, 1, 0.68, 1) !important;
}
body.v2-body .faq-item:hover {
  box-shadow: 0 6px 18px rgba(0, 122, 255, 0.06);
}
body.v2-body .faq-question {
  font-family: 'Factor IO', 'Inter', Helvetica, Arial, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.015em !important;
  font-size: 0.98rem !important;
}
body.v2-body .faq-question span,
body.v2-body .faq-question * {
  font-family: 'Factor IO', 'Inter', Helvetica, Arial, sans-serif !important;
  font-weight: 400 !important;
}
body.v2-body .faq-answer,
body.v2-body .faq-answer * {
  font-family: 'Factor IO', 'Inter', Helvetica, Arial, sans-serif !important;
}

/* ===== SMOOTH FAQ open/close ===== */
body.v2-body .faq-answer {
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  transition:
    max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.55s cubic-bezier(0.22, 1, 0.36, 1) !important;
  padding-bottom: 0 !important;
}
body.v2-body .faq-item.open .faq-answer {
  max-height: 500px !important;
  opacity: 1 !important;
  transition:
    max-height 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
    padding 0.55s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
body.v2-body .faq-answer p {
  transform: translateY(-4px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
body.v2-body .faq-item.open .faq-answer p {
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.12s !important;
}
body.v2-body .faq-chevron {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              color 0.3s ease !important;
}
body.v2-body .faq-item.open .faq-chevron {
  color: var(--blue) !important;
}

/* ===== CREDENTIAL BOX ===== */
body.v2-body .credential-box {
  transition: border-color 0.3s ease, box-shadow 0.4s ease, transform 0.3s ease !important;
}
body.v2-body .credential-box:hover {
  box-shadow: 0 10px 28px rgba(0, 122, 255, 0.12);
  transform: translateY(-2px);
}
body.v2-body .credential-box .value {
  font-size: 1.12rem !important;
  font-weight: 500 !important;
}
body.v2-body .copy-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.2);
}

/* ===== TIMER ===== */
body.v2-body .timer-value {
  font-weight: 600 !important;
  font-size: 1.8rem !important;
}

/* ===== Chat/RBox FAB ===== */
body.v2-body .chat-fab,
body.v2-body .rbox-fab {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease !important;
}
body.v2-body .chat-fab:hover {
  transform: scale(1.12) rotate(-10deg);
  box-shadow: 0 20px 40px -8px rgba(0, 122, 255, 0.6);
}
body.v2-body .rbox-fab:hover {
  transform: scale(1.12) rotate(10deg);
}

/* ===== STEP NUMBERS — no hover animation ===== */
body.v2-body .step-num,
body.v2-body .delivery-step:hover .step-num {
  transform: none !important;
  transition: none !important;
}

/* ===== INPUTS ===== */
body.v2-body input:focus,
body.v2-body textarea:focus,
body.v2-body select:focus,
body.v2-body .purchase-email:focus {
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15) !important;
}

/* ===== ORDERS ===== */
body.v2-body .order-card {
  transition: none !important;
}
body.v2-body .order-card:hover {
  transform: none !important;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.08) !important;
}
body.v2-body .order-actions .btn,
body.v2-body .order-actions .btn:hover,
body.v2-body .order-actions .btn:active {
  transition: none !important;
  transform: none !important;
}
body.v2-body .order-actions .btn-primary:hover {
  background: var(--blue) !important;
  box-shadow: none !important;
}

/* ===== QUIZ ===== */
body.v2-body .quiz-option {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
body.v2-body .quiz-option:not(.correct):not(.wrong):hover {
  transform: translateY(-2px);
  border-color: rgba(0, 122, 255, 0.4) !important;
  box-shadow: 0 8px 22px rgba(0, 122, 255, 0.1);
}

/* ===== BADGES glow ===== */
@keyframes v2-badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(90, 200, 250, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(90, 200, 250, 0); }
}
body.v2-body .game-badges .game-badge {
  animation: v2-badgeGlow 2.5s ease-in-out infinite;
}

/* Game page — breathing space at top, tighter on mobile */
body.v2-body .game-detail-header-spaced {
  margin-top: 40px;
}
@media (max-width: 640px) {
  body.v2-body .game-detail-header-spaced {
    margin-top: 16px;
  }
}

/* ===== GAME PAGE PLAY COUNTER ===== */
body.v2-body .play-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 18px;
  padding: 8px 14px 8px 12px;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.045) 0%, rgba(90, 200, 250, 0.045) 100%);
  border: none;
  border-radius: 100px;
  font-family: 'Factor IO', 'Inter', Helvetica, Arial, sans-serif;
  font-feature-settings: "ss01" 0, "calt" 0;
  font-variant-ligatures: none;
  width: fit-content;
}
body.v2-body .play-counter-icon {
  color: var(--blue);
  flex-shrink: 0;
}
body.v2-body .play-counter-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #4a4a55;
  letter-spacing: -0.01em;
  padding-right: 8px;
  border-right: 1px solid rgba(0, 122, 255, 0.14);
}
body.v2-body .play-counter-value {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.01em;
}
@media (max-width: 380px) {
  body.v2-body .play-counter {
    padding: 7px 12px 7px 10px;
    gap: 7px;
    margin-bottom: 14px;
  }
  body.v2-body .play-counter-label { font-size: 0.72rem; padding-right: 7px; }
  body.v2-body .play-counter-value { font-size: 0.78rem; }
  body.v2-body .play-counter-icon { width: 14px; height: 14px; }
}

/* Lock body scroll while any modal is open (payment picker, etc.) */
html.no-scroll, body.no-scroll {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none !important;
  overscroll-behavior: contain !important;
}

/* ===== PAYMENT METHOD PICKER — styles moved to style.css (V5 frosted glass) ===== */

/* ===== SELECTION ===== */
body.v2-body ::selection {
  background: rgba(0, 122, 255, 0.25);
}

/* ===== v1 fade-in preserved ===== */
body.v2-body .fade-in {
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Native scroll — instant user wheel, smooth only for anchor navigation (JS) */

/* ===== Page top padding — balanced everywhere (navbar ~64px + comfort) ===== */

/* Support page: tight header, ensure doesn't overlap navbar */
body.v2-body .support-page {
  padding-top: 72px !important;
  height: 100vh !important;
  height: 100dvh !important;
}
body.v2-body .support-container {
  height: calc(100vh - 80px) !important;
  height: calc(100dvh - 80px) !important;
}
@media (min-width: 600px) {
  body.v2-body .support-container {
    height: calc(100vh - 100px) !important;
  }
}

/* Orders page: reduce — user said too much spacing */
body.v2-body .orders-page {
  padding-top: 72px !important;
}

/* Waiting / expired / access / rbox: comfortable */
body.v2-body .waiting-page,
body.v2-body .expired-page,
body.v2-body .access-page,
body.v2-body .rbox-page {
  padding-top: 84px !important;
}

/* Game detail: user said too close — increase */
body.v2-body .game-detail {
  padding-top: 96px !important;
}

@media (prefers-reduced-motion: reduce) {
  body.v2-body *, body.v2-body *::before, body.v2-body *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .v2-cursor-dot, .v2-cursor-ring { display: none !important; }
}

/* ============================================================
   v2 Hero banners — animated SVG visuals (Lumayn)
   ============================================================ */
.v2-banner-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  padding: 0;
}
/* Banner visuals draw outside their bbox during charge-up animation —
   parent visual must NOT clip them. */
.v2-slide.v2-banner-1 .v2-slide-visual,
.v2-slide.v2-banner-2 .v2-slide-visual,
.v2-slide.v2-banner-3 .v2-slide-visual {
  overflow: visible;
}

/* Banner animations restart from frame 0 every time a slide becomes active.
   On inactive slides we strip animation entirely; CSS automatically starts
   the animation fresh when the rule no longer matches (i.e. .active is added). */
.v2-slide:not(.active) .b1-halo,
.v2-slide:not(.active) .b1-orbit-out,
.v2-slide:not(.active) .b1-orbit-dot,
.v2-slide:not(.active) .b1-clock,
.v2-slide:not(.active) .b1-clock-hand,
.v2-slide:not(.active) .b1-bolt,
.v2-slide:not(.active) .b1-spark,
.v2-slide:not(.active) .b2-shield,
.v2-slide:not(.active) .b2-check,
.v2-slide:not(.active) .b2-orbit-out,
.v2-slide:not(.active) .b2-orbit-in,
.v2-slide:not(.active) .b2-orbit-dot,
.v2-slide:not(.active) .b3-card,
.v2-slide:not(.active) .b3-lock,
.v2-slide:not(.active) .b3-shine,
.v2-slide:not(.active) .b3-flow,
.v2-slide:not(.active) .b3-flow-dot {
  animation: none !important;
}


/* ---------- BANNER 1 — BIG clock + corner bolt badge (static-style like b2/b3) ---------- */
.b1-halo {
  transform-origin: 50px 50px;
  transform-box: fill-box;
  animation: b1-halo 5s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes b1-halo {
  0%, 100% { opacity: .5; transform: scale(1) }
  50%      { opacity: .6; transform: scale(1.04) }
}
.b1-orbit-out {
  transform-origin: 50px 50px;
  animation: b1-spin-cw 14s linear infinite;
}
@keyframes b1-spin-cw { to { transform: rotate(360deg) } }
.b1-orbit-dot {
  transform-origin: center;
  animation: b1-orbit-dot 5s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes b1-orbit-dot {
  0%, 100% { opacity: .85 }
  50%      { opacity: .35 }
}
.b1-clock {
  transform-origin: 50px 50px;
  transform-box: fill-box;
  animation: b1-clock 5s cubic-bezier(.4,0,.2,1) infinite;
  will-change: transform;
}
@keyframes b1-clock {
  0%, 100% { transform: scale(1) }
  6%       { transform: scale(1.04) }
  18%      { transform: scale(1) }
  60%      { transform: scale(1.02) }
}
.b1-clock-hand {
  transform-origin: 50px 50px;
  animation: b1-clock-hand 5s cubic-bezier(.4,0,.2,1) infinite;
  will-change: transform;
}
@keyframes b1-clock-hand {
  0%   { transform: rotate(0deg) }
  100% { transform: rotate(360deg) }
}
/* corner bolt badge: fully static, no animation */
.b1-bolt { /* intentionally empty */ }
/* sparks disabled in static mode */
.b1-spark { opacity: 0; }
/* legacy streak nodes (none in markup, keep zeroed) */
.b1-streak { opacity: 0 !important; }

/* ---------- BANNER 2 — Shield + orbits ---------- */
.b2-shield {
  transform-origin: 140px 140px;
  animation: b2-pulse 5s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes b2-pulse {
  0%        { transform: scale(1) }
  18%       { transform: scale(1.06) }
  30%       { transform: scale(1) }
  78%, 100% { transform: scale(1) }
}
.b2-check {
  stroke-dasharray: 90 200;
  stroke-dashoffset: 90;
  animation: b2-draw 5s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes b2-draw {
  0%, 10% { stroke-dashoffset: 90 }
  28%     { stroke-dashoffset: 0 }
  78%     { stroke-dashoffset: 0 }
  92%     { stroke-dashoffset: -95 }
  100%    { stroke-dashoffset: -95 }
}
.b2-orbit-out {
  transform-origin: 140px 140px;
  animation: b2-spin-cw 8s linear infinite;
}
.b2-orbit-in {
  transform-origin: 140px 140px;
  animation: b2-spin-ccw 8s linear infinite;
}
@keyframes b2-spin-cw  { to { transform: rotate(360deg) } }
@keyframes b2-spin-ccw { to { transform: rotate(-360deg) } }
.b2-orbit-dot {
  transform-origin: center;
  animation: b2-dot 5s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes b2-dot {
  0%, 100% { opacity: .85 }
  50%      { opacity: .35 }
}

/* ---------- BANNER 3 — Card + shine ---------- */
.b3-card {
  transform-origin: 140px 140px;
  transform-style: preserve-3d;
  animation: b3-tilt 4s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes b3-tilt {
  0%   { transform: perspective(600px) rotateX(0deg)  rotateY(-6deg) translateY(0) }
  25%  { transform: perspective(600px) rotateX(3deg)  rotateY(0deg)  translateY(-3px) }
  50%  { transform: perspective(600px) rotateX(0deg)  rotateY(6deg)  translateY(0) }
  75%  { transform: perspective(600px) rotateX(-3deg) rotateY(0deg)  translateY(-3px) }
  100% { transform: perspective(600px) rotateX(0deg)  rotateY(-6deg) translateY(0) }
}
.b3-lock {
  transform-origin: 70px 134px;
  animation: b3-lock-pulse 2s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes b3-lock-pulse {
  0%, 100% { opacity: .7 }
  50%      { opacity: 1 }
}
.b3-shine {
  animation: b3-shine 3.5s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes b3-shine {
  0%   { transform: translateX(120px); opacity: 0 }
  20%  { opacity: .9 }
  60%  { opacity: .9 }
  80%  { transform: translateX(-160px); opacity: 0 }
  100% { transform: translateX(-160px); opacity: 0 }
}
.b3-flow {
  stroke-dasharray: 4 10;
  animation: b3-flow 6s linear infinite;
}
@keyframes b3-flow {
  to { stroke-dashoffset: -140 }
}
.b3-flow-dot {
  animation: b3-flow-dot 2.6s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes b3-flow-dot {
  0%, 100% { opacity: .5 }
  50%      { opacity: 1 }
}

/* ---------- Reduced motion freeze ---------- */
@media (prefers-reduced-motion: reduce) {
  .b1-halo, .b1-bolt, .b1-streak, .b1-spark, .b1-orbit-out, .b1-orbit-dot, .b1-clock, .b1-clock-hand,
  .b2-shield, .b2-check, .b2-orbit-out, .b2-orbit-in, .b2-orbit-dot,
  .b3-card, .b3-lock, .b3-shine, .b3-flow, .b3-flow-dot {
    animation: none !important;
  }
  .b1-spark, .b1-streak { opacity: 0 }
  .b1-bolt  { opacity: 1; transform: rotate(-8deg) scale(1) }
  .b1-halo  { opacity: .4 }
  .b2-check { stroke-dashoffset: 0 }
}
