/* Sport IQ launch skin: purple neon game/sports UI.
   Loaded last to unify older inline page styles. */
:root {
  color-scheme: dark;
  --bg: #05030b;
  --surface: rgba(13, 10, 28, 0.9);
  --surface2: rgba(22, 13, 45, 0.94);
  --primary: #8b22ff;
  --primary2: #d36bff;
  --gold: #ffc84a;
  --danger: #ff386b;
  --success: #39ff6a;
  --text: #fbf8ff;
  --muted: rgba(235, 226, 255, 0.64);
  --divider: rgba(188, 96, 255, 0.18);

  --color-bg-primary: #05030b;
  --color-bg-secondary: #0d0a1c;
  --color-bg-tertiary: #160d2d;
  --color-bg-card: rgba(13, 10, 28, 0.86);
  --color-bg-card-hover: rgba(25, 13, 52, 0.96);
  --color-background: var(--color-bg-primary);
  --color-surface: var(--color-bg-secondary);
  --color-surface-2: var(--color-bg-tertiary);

  --color-primary-from: #5f00ff;
  --color-primary-to: #d36bff;
  --color-primary: #9a2cff;
  --color-primary-light: rgba(154, 44, 255, 0.18);
  --color-primary-glow: rgba(187, 71, 255, 0.62);
  --color-gold-from: #fff08a;
  --color-gold-to: #f29d18;
  --color-gold: #ffc84a;
  --color-gold-light: rgba(255, 200, 74, 0.16);
  --color-gold-glow: rgba(255, 196, 64, 0.52);
  --color-success: #39ff6a;
  --color-success-light: rgba(57, 255, 106, 0.15);
  --color-danger: #ff386b;
  --color-danger-light: rgba(255, 56, 107, 0.15);
  --color-info: #47b7ff;
  --color-warning: #ffb347;
  --color-border: rgba(168, 77, 255, 0.24);
  --color-border-strong: rgba(200, 100, 255, 0.68);
  --color-divider: rgba(188, 96, 255, 0.18);
  --color-text-primary: #fbf8ff;
  --color-text-secondary: #d7c8f5;
  --color-text-muted: #8f82ad;
  --color-text-inverse: #080410;

  --gradient-primary: linear-gradient(135deg, #6b00ff 0%, #b829ff 54%, #ff62d8 100%);
  --gradient-gold: linear-gradient(135deg, #fff08a 0%, #ffc84a 48%, #f29d18 100%);
  --gradient-danger: linear-gradient(135deg, #ff2f6d 0%, #ff6f45 100%);
  --gradient-success: linear-gradient(135deg, #1ddc5d 0%, #64ff8b 100%);
  --gradient-bg:
    radial-gradient(circle at 50% 4%, rgba(149, 47, 255, 0.34), transparent 25%),
    radial-gradient(circle at 8% 20%, rgba(255, 70, 202, 0.13), transparent 28%),
    radial-gradient(circle at 92% 24%, rgba(62, 169, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #05030b 0%, #090515 48%, #030208 100%);
  --gradient-card:
    linear-gradient(145deg, rgba(25, 14, 54, 0.92), rgba(7, 5, 17, 0.96));
  --glass-bg: rgba(13, 10, 28, 0.74);
  --glass-border: rgba(184, 83, 255, 0.31);
  --glass-blur: blur(18px);
  --glass-shadow:
    0 0 0 1px rgba(187, 71, 255, 0.14),
    0 0 28px rgba(136, 32, 255, 0.22),
    0 22px 54px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255,255,255,0.06);
  --glow-primary:
    0 0 16px rgba(187, 71, 255, 0.68),
    0 0 42px rgba(132, 33, 255, 0.3);
  --glow-gold:
    0 0 16px rgba(255, 200, 74, 0.58),
    0 0 34px rgba(242, 157, 24, 0.24);
  --glow-card-hover:
    0 0 0 1px var(--color-border-strong),
    0 0 28px rgba(180, 73, 255, 0.34),
    0 24px 58px rgba(0, 0, 0, 0.5);

  --radius-md: 0.625rem;
  --radius-lg: 0.75rem;
  --radius-xl: 0.875rem;
  --radius-2xl: 1rem;
}

html {
  background: #05030b;
}

body {
  background-color: var(--color-bg-primary) !important;
  background-image: var(--gradient-bg) !important;
  color: var(--color-text-primary);
  text-shadow: 0 0 1px rgba(255,255,255,0.14);
}

body::before {
  background:
    linear-gradient(90deg, rgba(187, 71, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(187, 71, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 18%, rgba(133, 36, 255, 0.18), transparent 36%),
    var(--gradient-bg) !important;
  background-size: 42px 42px, 42px 42px, auto, auto;
  opacity: 0.82;
}

.app-container,
body.mobile-container,
.mobile-container {
  background: rgba(5, 3, 11, 0.95) !important;
  border-inline: 1px solid rgba(184, 83, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(184, 83, 255, 0.1),
    0 0 60px rgba(135, 35, 255, 0.24),
    0 28px 80px rgba(0,0,0,0.62) !important;
}

.topbar,
.page-header,
.bottom-nav,
.hdr {
  background: rgba(5, 3, 11, 0.88) !important;
  border-color: rgba(184, 83, 255, 0.2) !important;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.card,
.glass-card,
.portal-card,
.match-card,
.trivia-card,
.combo-bar,
.player-card,
.skeleton-match-card,
.video-card,
.vip-promo,
.bell-btn,
.vip-badge,
.tabs,
.tab,
.cat-tab,
.stat-box,
.question-card,
.main-card,
.video-area,
.help-btn,
.help-remaining,
.timer-btn,
.info-chip,
.score-info,
.bottom-stats,
.game-footer > *,
.footer > *,
.warning-bar,
.progress-section,
input,
textarea,
select {
  border-color: var(--glass-border) !important;
  box-shadow: var(--glass-shadow);
}

.card,
.glass-card,
.portal-card,
.match-card,
.trivia-card,
.combo-bar,
.player-card,
.skeleton-match-card,
.bell-btn,
.stat-box,
.question-card,
.main-card,
.help-btn,
.help-remaining,
.timer-btn,
.info-chip,
.bottom-stats,
input,
textarea,
select {
  background: var(--gradient-card) !important;
}

.btn,
.portal-card,
.match-card,
.video-card,
.tab,
.cat-tab,
.nav-item,
.bell-btn,
.vip-btn,
.option,
.player-option,
.day-tab,
.calendar-tab,
.chip,
.stat-box {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.btn--primary,
.btn--gold,
.cta-pulse,
.streak-day--today .streak-day__box {
  animation: none !important;
}

.btn--primary,
.tab--active,
.nav-center-btn,
.vip-btn,
.card-badge,
.logo-icon,
.buy-btn,
.submit-btn,
.balls-buy,
.day-tab.active,
.calendar-tab--active,
.cat-tab.active,
.nav-center-btn {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  box-shadow: var(--glow-primary) !important;
  border-color: rgba(226, 134, 255, 0.75) !important;
}

.btn--gold,
.vip-badge,
.progress-bar--gold .progress-bar__fill,
.chip-points,
.points-box .stat-value {
  background: linear-gradient(145deg, rgba(255, 199, 74, 0.11), rgba(47, 26, 8, 0.55)) !important;
  color: var(--color-gold) !important;
  border-color: rgba(255, 200, 74, 0.42) !important;
}

.gradient-text,
.page-header__logo,
.logo-text span,
.feed-brand span[style*="primary"],
.gold-text,
.hdr-title,
.section-link,
.q-category,
.help-title {
  background: linear-gradient(135deg, #fff, #d36bff 62%, #8e35ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portal-card,
.match-card,
.card,
.video-card,
.question-card,
.main-card,
.stat-box,
.option,
.player-option {
  border-radius: var(--radius-xl) !important;
}

.portal-card:hover,
.match-card:hover,
.card:hover,
.video-card:hover,
.option:hover,
.player-option:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong) !important;
  box-shadow: var(--glow-card-hover) !important;
}

.nav-item.active,
.nav-item--active,
.cat-tab.active,
a:hover,
.section-link,
.lb-row__points,
.balance-chip--points {
  color: var(--color-primary-to) !important;
}

.story-ring,
.story-ring.new {
  background: conic-gradient(from 180deg, #8b22ff, #ff62d8, #ffc84a, #8b22ff) !important;
  box-shadow: 0 0 16px rgba(184, 83, 255, 0.7), 0 0 32px rgba(184, 83, 255, 0.24);
}

.story-ring.live,
.badge--live {
  background: linear-gradient(135deg, #ff386b, #ff9c2f) !important;
  box-shadow: 0 0 20px rgba(255, 56, 107, 0.44);
}

.video-overlay {
  background: linear-gradient(to top, rgba(3, 2, 8, 0.94) 0%, rgba(7, 4, 17, 0.44) 52%, rgba(7, 4, 17, 0.12) 100%) !important;
}

.vip-promo {
  background:
    radial-gradient(circle at 12% 50%, rgba(255, 200, 74, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(19, 10, 42, 0.97), rgba(8, 5, 22, 0.97)) !important;
}

.chip,
.hdr-back,
.hdr-exit,
.end-btn,
.skip-btn,
.balance-chip {
  background: rgba(16, 9, 35, 0.78) !important;
  border: 1px solid rgba(184, 83, 255, 0.24) !important;
  box-shadow: inset 0 0 20px rgba(138, 34, 255, 0.08), 0 0 16px rgba(138, 34, 255, 0.14);
}

.chip-diamonds {
  color: #39d8ff !important;
  border-color: rgba(57, 216, 255, 0.36) !important;
}

.q-fill,
.progress-fill,
.progress-bar__fill,
.combo-line.done,
.step.done {
  background: linear-gradient(90deg, #6b00ff, #bf35ff, #ff62d8) !important;
  box-shadow: 0 0 14px rgba(187, 71, 255, 0.68);
}

.timer-circle,
.timer-outer {
  box-shadow: 0 0 22px rgba(255, 56, 107, 0.38), inset 0 0 22px rgba(139, 34, 255, 0.25);
}

.option,
.player-option,
.trivia-option {
  background: rgba(9, 7, 24, 0.9) !important;
  border-color: rgba(184, 83, 255, 0.22) !important;
}

.option.correct,
.trivia-option--correct,
.answer-option--correct {
  background: linear-gradient(90deg, rgba(16, 100, 34, 0.64), rgba(13, 34, 20, 0.92)) !important;
  border-color: rgba(57, 255, 106, 0.85) !important;
  box-shadow: 0 0 18px rgba(57, 255, 106, 0.34), inset 0 0 24px rgba(57, 255, 106, 0.08) !important;
}

.option.wrong,
.trivia-option--wrong,
.answer-option--wrong {
  background: linear-gradient(90deg, rgba(116, 19, 48, 0.6), rgba(35, 9, 18, 0.92)) !important;
  border-color: rgba(255, 56, 107, 0.86) !important;
  box-shadow: 0 0 18px rgba(255, 56, 107, 0.28) !important;
}

.opt-letter,
.trivia-option__letter,
.combo-node,
.step-dot,
.step-num {
  border-color: rgba(193, 92, 255, 0.55) !important;
  box-shadow: 0 0 14px rgba(139, 34, 255, 0.32), inset 0 0 14px rgba(139, 34, 255, 0.18);
}

.combo-node.active,
.step-dot.active,
.step-num.active {
  background: var(--gradient-primary) !important;
  box-shadow: 0 0 22px rgba(187, 71, 255, 0.72), 0 0 44px rgba(187, 71, 255, 0.28) !important;
}

.combo-node.done,
.step-dot.done,
.step-num.done {
  background: linear-gradient(135deg, #ff8a00, #ff386b) !important;
  color: #fff !important;
}

.score-info,
.bottom-info,
.bottom-stats {
  border-top: 1px solid rgba(184, 83, 255, 0.18) !important;
}

.bg-overlay {
  background:
    radial-gradient(circle at 50% 32%, rgba(129, 34, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(4, 2, 10, 0.82) 0%, rgba(8, 4, 18, 0.72) 40%, rgba(3, 2, 8, 0.96) 100%) !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary-to);
  outline-offset: 3px;
}

@media (max-width: 420px) {
  .topbar,
  .hdr {
    gap: 8px;
    padding-inline: 12px !important;
  }

  .topbar-actions,
  .hdr-chips {
    gap: 6px !important;
  }

  .bell-btn,
  .chip {
    min-width: 34px !important;
    min-height: 34px !important;
    padding-inline: 8px !important;
  }

  .portal-card {
    padding: 18px !important;
    gap: 12px !important;
  }
}
