/* ===========================================================
   IXON 2026 — "fire" layer
   Loaded after aura.css. Adds ember particles, flame-orange
   accents, flicker glow, and a heat-shimmer hero backdrop.
   =========================================================== */

:root {
  --fire-1: #ff4d1c;
  --fire-2: #ff8a1f;
  --fire-3: #ffc233;
  --fire-core: #fff2c9;
  --ember-glow: rgba(255, 106, 26, 0.55);
}

/* swap the cool aurora glow for a warm fire glow */
body::before {
  background:
    radial-gradient(40% 36% at 20% 8%, rgba(255, 77, 28, 0.30), transparent 70%),
    radial-gradient(34% 30% at 84% 4%, rgba(255, 140, 20, 0.20), transparent 70%),
    radial-gradient(46% 40% at 55% 100%, rgba(255, 40, 10, 0.22), transparent 70%),
    radial-gradient(30% 26% at 60% 85%, rgba(255, 194, 51, 0.10), transparent 70%);
  filter: blur(22px) saturate(130%);
}

.cursor-glow {
  background: radial-gradient(circle, rgba(255, 106, 26, 0.16), transparent 62%);
}

/* fire-tinted gradient text + primary buttons */
.grad-text {
  background: linear-gradient(100deg, var(--fire-2), var(--fire-3) 45%, var(--fire-1) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-primary, .nav-cta {
  background: linear-gradient(120deg, var(--fire-1), var(--fire-2) 50%, #c92a0a);
  background-size: 180% 100%;
}

.btn-primary:hover, .nav-cta:hover {
  box-shadow: 0 16px 44px -12px var(--ember-glow), 0 0 46px -6px var(--ember-glow);
}

.step-num {
  background: linear-gradient(135deg, var(--fire-1), var(--fire-2));
  box-shadow: 0 0 24px -4px var(--ember-glow);
}

.ring-grad, .plan-card::before, .panel::before, .ticker-mock::before, .redeem-card::before {
  background: linear-gradient(135deg, rgba(255, 138, 31, 0.9), rgba(255, 76, 28, 0.4) 45%, rgba(255, 194, 51, 0.4));
}

/* flame-flicker on the brand mark */
.brand .dot {
  background: radial-gradient(circle at 35% 30%, var(--fire-core), var(--fire-2) 45%, var(--fire-1) 80%);
  box-shadow: 0 0 10px 2px var(--ember-glow);
  animation: ix-flicker 2.4s ease-in-out infinite;
}

@keyframes ix-flicker {
  0%, 100% { opacity: 1; filter: brightness(1); }
  8%  { opacity: 0.85; filter: brightness(0.9); }
  20% { opacity: 1; filter: brightness(1.15); }
  35% { opacity: 0.92; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.1); }
  70% { opacity: 0.88; filter: brightness(0.95); }
  85% { opacity: 1; filter: brightness(1.05); }
}

/* live pill + snipe badge burn a little hotter */
.live-pill, .od-live {
  color: var(--fire-3);
}
.pulse, .od-live-dot {
  background: var(--fire-1);
  box-shadow: 0 0 0 0 rgba(255, 77, 28, 0.6);
  animation: ix-fire-pulse 1.5s ease-out infinite;
}
@keyframes ix-fire-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 77, 28, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 77, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 28, 0); }
}

/* ---------- ember particle field ---------- */
#ember-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ember {
  position: absolute;
  bottom: -8%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--fire-core), var(--fire-2) 55%, transparent 75%);
  opacity: 0;
  will-change: transform, opacity;
  animation-name: ix-ember-rise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes ix-ember-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.6);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  50% {
    transform: translate3d(var(--drift, 30px), -55vh, 0) scale(1);
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translate3d(calc(var(--drift, 30px) * 1.8), -108vh, 0) scale(0.3);
    opacity: 0;
  }
}

/* heat shimmer strip under the hero */
.hero {
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -40px;
  height: 90px;
  background: linear-gradient(180deg, rgba(255, 106, 26, 0.10), transparent);
  filter: blur(14px);
  pointer-events: none;
  animation: ix-heat 4.5s ease-in-out infinite alternate;
}
@keyframes ix-heat {
  from { transform: translateY(0) scaleX(1); opacity: 0.7; }
  to   { transform: translateY(-4px) scaleX(1.04); opacity: 1; }
}

/* ---------- music widget ---------- */
#ix-music {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--glass-strong, rgba(24, 21, 40, 0.78));
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.75);
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s var(--ease, ease), box-shadow 0.3s ease, border-color 0.3s ease;
  font-family: var(--display, 'Space Grotesk', sans-serif);
  color: var(--text, #f3f2fa);
}
#ix-music:hover {
  transform: translateY(-3px);
  border-color: var(--edge-strong, rgba(255,255,255,0.22));
  box-shadow: 0 20px 54px -16px var(--ember-glow);
}
#ix-music .ix-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  width: 18px;
}
#ix-music .ix-bars span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--fire-3), var(--fire-1));
  animation: ix-bar-bounce 1s ease-in-out infinite;
}
#ix-music .ix-bars span:nth-child(1) { animation-delay: -0.6s; height: 40%; }
#ix-music .ix-bars span:nth-child(2) { animation-delay: -0.2s; height: 100%; }
#ix-music .ix-bars span:nth-child(3) { animation-delay: -0.9s; height: 65%; }
#ix-music.paused .ix-bars span { animation-play-state: paused; height: 25% !important; }

@keyframes ix-bar-bounce {
  0%, 100% { height: 25%; }
  50% { height: 100%; }
}

#ix-music .ix-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#ix-music .ix-sub {
  font-size: 10.5px;
  color: var(--text-dim, #9a99b3);
  display: block;
  font-weight: 500;
}

@media (max-width: 640px) {
  #ix-music .ix-label { max-width: 84px; }
  #ix-music { right: 12px; bottom: 12px; padding: 9px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand .dot, .pulse, .od-live-dot, .hero::after, .ember { animation: none !important; }
}
