/* ============================================================
   EMBERS — A Campfire Companion
   ============================================================ */

* { box-sizing: border-box; }

:root {
  --night-1: #0a0816;
  --night-2: #120c22;
  --night-3: #1a112e;
  --fire-1: #ffd27a;
  --fire-2: #ff9a3c;
  --fire-3: #ff5a1f;
  --fire-4: #c2310a;
  --ember:  #ffb066;
  --ink:    #ece5d2;
  --ink-dim:#a89e85;
}

html, body {
  margin: 0; padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(ellipse at 50% 100%, #2a1407 0%, #120822 32%, #07051a 60%, #02010a 100%);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

body::before {
  /* nebula wash */
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(82,42,120,0.35), transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 15%, rgba(40,80,140,0.25), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   STARFIELD
   ============================================================ */
.starfield {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
}
.star {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.85;
  box-shadow: 0 0 6px rgba(255,255,255,0.6);
  animation: twinkle var(--dur,4s) ease-in-out infinite;
  animation-delay: var(--delay,0s);
}
.star.big { width: 3px; height: 3px; box-shadow: 0 0 10px rgba(255,255,255,0.9); }
.star.tiny { width: 1px; height: 1px; opacity: 0.6; }

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50%      { opacity: 1;    transform: scale(1.2); }
}

/* shooting star */
.shooting {
  position: absolute;
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  opacity: 0;
  transform: rotate(-20deg);
}

/* ============================================================
   SCENE
   ============================================================ */
.scene {
  position: fixed; inset: 0;
  z-index: 2;
  overflow: hidden;
}

.layer { position: absolute; width: 100%; left: 0; }
.mountains-far  { bottom: 38%; height: 32%; opacity: 1; }
.mountains-snow { bottom: 38%; height: 32%; }
.mountains-mid  { bottom: 30%; height: 30%; }

.trees-left  { position: absolute; left: 0;  bottom: 0; width: 28%; height: 60%; }
.trees-right { position: absolute; right: 0; bottom: 0; width: 28%; height: 60%; }

.ground {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 32%;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(255,130,50,0.22), transparent 60%),
    linear-gradient(to bottom, #0c0814 0%, #06040c 100%);
}
.ground-glow {
  position: absolute;
  left: 50%; bottom: 0;
  width: 90vw; height: 28vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center bottom, rgba(255,140,50,0.35) 0%, rgba(255,90,20,0.12) 30%, transparent 70%);
  pointer-events: none;
  animation: groundFlicker 4s ease-in-out infinite;
}
@keyframes groundFlicker {
  0%,100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50%     { opacity: 1;    transform: translateX(-50%) scale(1.04); }
}

.grass {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%; height: 60px;
  pointer-events: none;
}

/* ============================================================
   CHARACTERS
   ============================================================ */
.character {
  position: absolute;
  bottom: 9%;
  width: 180px;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.6));
  animation: breathe 5.2s ease-in-out infinite;
}
.character svg { width: 100%; height: auto; display: block; overflow: visible; }

.cowboy-left {
  left: calc(50% - 260px);
  bottom: 19%;
  transform: translateX(-100%) scaleX(1);
  width: 180px;
  animation-delay: -1.2s;
  z-index: 3;
}
.person-right {
  right: calc(50% - 260px);
  bottom: 19%;
  transform: translateX(100%) scaleX(-1);
  width: 180px;
  animation-delay: -2.6s;
  z-index: 3;
}
.person-back {
  left: 50%;
  bottom: 30%;
  transform: translateX(-50%) scale(0.68);
  width: 180px;
  opacity: 0.92;
  animation-delay: -3.6s;
  z-index: 1;
}
.dog {
  left: calc(50% - 180px);
  bottom: 17%;
  width: 95px;
  transform: translateX(-100%);
  animation-delay: -0.6s;
  z-index: 3;
}

@keyframes breathe {
  0%,100% { transform: translateX(var(--tx,0)) scale(1) scaleX(var(--sx,1)); }
  50%     { transform: translateX(var(--tx,0)) scale(1.012) scaleX(var(--sx,1)); }
}
/* keep transforms set above; just use a subtle opacity sway instead */
.character { animation-name: characterSway; }
@keyframes characterSway {
  0%,100% { filter: drop-shadow(0 6px 10px rgba(0,0,0,0.6)) brightness(1); }
  50%     { filter: drop-shadow(0 8px 14px rgba(0,0,0,0.7)) brightness(1.06); }
}

/* ============================================================
   CAMPFIRE
   ============================================================ */
.fire-stage {
  position: absolute;
  left: 50%; bottom: 24%;
  width: 300px; height: 280px;
  transform: translateX(-50%);
  z-index: 2;
}

.fire-ground-glow {
  position: absolute;
  left: 50%; bottom: -10px;
  width: 520px; height: 120px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255,140,40,0.55), rgba(255,80,10,0.18) 40%, transparent 70%);
  filter: blur(8px);
  animation: groundFlicker 1.6s ease-in-out infinite;
  pointer-events: none;
}

.logs {
  position: absolute;
  left: 50%; bottom: 14px;
  width: 300px; height: 120px;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.7));
}
.ember-glow {
  animation: emberPulse 1.8s ease-in-out infinite;
  transform-origin: center;
}
@keyframes emberPulse {
  0%,100% { opacity: 0.7; }
  50%     { opacity: 1; }
}

/* flames -- stacked teardrops */
.flames {
  position: absolute;
  left: 50%; bottom: 60px;
  transform: translateX(-50%);
  width: 160px; height: 220px;
  pointer-events: none;
}

.flame {
  position: absolute;
  left: 50%; bottom: 0;
  border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
  transform-origin: 50% 100%;
  mix-blend-mode: screen;
  filter: blur(0.5px);
}

.flame-outer {
  width: 150px; height: 210px;
  margin-left: -75px;
  background: radial-gradient(ellipse at 50% 90%, rgba(255,80,20,0.85) 0%, rgba(255,80,20,0.5) 40%, rgba(255,80,20,0) 75%);
  animation: flameSway 2.6s ease-in-out infinite;
  filter: blur(8px);
}
.flame-middle {
  width: 110px; height: 170px;
  margin-left: -55px;
  background: radial-gradient(ellipse at 50% 90%, rgba(255,140,40,0.95) 0%, rgba(255,140,40,0.6) 45%, rgba(255,140,40,0) 80%);
  animation: flameSway 1.9s ease-in-out infinite reverse;
  filter: blur(4px);
}
.flame-inner {
  width: 72px; height: 130px;
  margin-left: -36px;
  background: radial-gradient(ellipse at 50% 90%, rgba(255,210,90,1) 0%, rgba(255,190,80,0.85) 50%, rgba(255,190,80,0) 85%);
  animation: flameFlicker 0.9s ease-in-out infinite;
  filter: blur(2px);
}
.flame-core {
  width: 38px; height: 90px;
  margin-left: -19px;
  background: radial-gradient(ellipse at 50% 90%, rgba(255,255,220,1) 0%, rgba(255,240,180,0.9) 40%, rgba(255,220,140,0) 90%);
  animation: flameFlicker 0.55s ease-in-out infinite reverse;
  filter: blur(1px);
}

@keyframes flameSway {
  0%, 100% { transform: translateX(-2px) scaleY(1)    scaleX(1)   skewX(-2deg); }
  25%      { transform: translateX(3px)  scaleY(1.06) scaleX(0.96) skewX(3deg); }
  50%      { transform: translateX(-1px) scaleY(0.96) scaleX(1.04) skewX(-1deg); }
  75%      { transform: translateX(2px)  scaleY(1.08) scaleX(0.94) skewX(2deg); }
}
@keyframes flameFlicker {
  0%, 100% { transform: scaleY(1)    scaleX(1)    translateX(0); opacity: 1; }
  20%      { transform: scaleY(1.1)  scaleX(0.92) translateX(2px); opacity: 0.95; }
  40%      { transform: scaleY(0.92) scaleX(1.06) translateX(-2px); opacity: 1; }
  60%      { transform: scaleY(1.08) scaleX(0.94) translateX(1px); opacity: 0.92; }
  80%      { transform: scaleY(0.96) scaleX(1.04) translateX(-1px); opacity: 1; }
}

/* little flickering tongues that randomly pop up */
.tongue {
  position: absolute;
  bottom: 0;
  width: 10px; height: 40px;
  border-radius: 50% 50% 20% 20%;
  background: radial-gradient(ellipse at 50% 90%, rgba(255,220,120,0.9), rgba(255,140,30,0) 80%);
  mix-blend-mode: screen;
  filter: blur(1px);
  transform-origin: 50% 100%;
  animation: tongue 1.3s ease-in-out infinite;
}
.t1 { left: 20%; animation-delay: 0.1s; }
.t2 { left: 38%; animation-delay: 0.6s; height: 60px; }
.t3 { left: 52%; animation-delay: 0.25s; height: 50px; }
.t4 { left: 66%; animation-delay: 0.45s; height: 45px; }
.t5 { left: 80%; animation-delay: 0.8s; }
@keyframes tongue {
  0%,100% { transform: scaleY(0.6) scaleX(1); opacity: 0; }
  40%     { transform: scaleY(1.3) scaleX(0.9); opacity: 1; }
  70%     { transform: scaleY(1) scaleX(1.1); opacity: 0.8; }
}

/* radial light glow */
.fire-light {
  position: absolute;
  left: 50%; bottom: 30px;
  width: 1200px; height: 1200px;
  transform: translate(-50%, 30%);
  background: radial-gradient(circle at center,
    rgba(255,170,80,0.28) 0%,
    rgba(255,130,40,0.12) 18%,
    rgba(255,80,20,0.05) 35%,
    transparent 55%);
  pointer-events: none;
  animation: lightPulse 3.2s ease-in-out infinite;
  z-index: -1;
}
@keyframes lightPulse {
  0%,100% { opacity: 0.85; transform: translate(-50%, 30%) scale(1);    }
  50%     { opacity: 1;    transform: translate(-50%, 30%) scale(1.04); }
}

/* sparks */
.sparks {
  position: absolute;
  left: 50%; bottom: 90px;
  width: 100px; height: 200px;
  transform: translateX(-50%);
  pointer-events: none;
}
.sparks span {
  position: absolute;
  bottom: 0; left: 50%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #ffd28a;
  box-shadow: 0 0 8px #ffb066, 0 0 4px #fff7d6;
  opacity: 0;
  animation: spark var(--d,3.5s) linear infinite;
  animation-delay: var(--del,0s);
}
.sparks span:nth-child(1)  { --d: 3.2s; --del: 0s;   --x: -20px; }
.sparks span:nth-child(2)  { --d: 4.1s; --del: 0.4s; --x: 30px;  }
.sparks span:nth-child(3)  { --d: 2.8s; --del: 0.9s; --x: -10px; }
.sparks span:nth-child(4)  { --d: 3.6s; --del: 1.3s; --x: 25px;  }
.sparks span:nth-child(5)  { --d: 4.4s; --del: 1.8s; --x: -30px; }
.sparks span:nth-child(6)  { --d: 3.0s; --del: 0.2s; --x: 15px;  }
.sparks span:nth-child(7)  { --d: 3.9s; --del: 0.7s; --x: -25px; }
.sparks span:nth-child(8)  { --d: 4.6s; --del: 1.1s; --x: 35px;  }
.sparks span:nth-child(9)  { --d: 3.3s; --del: 1.5s; --x: -15px; }
.sparks span:nth-child(10) { --d: 4.0s; --del: 2.0s; --x: 20px;  }
.sparks span:nth-child(11) { --d: 3.5s; --del: 2.4s; --x: -35px; }
.sparks span:nth-child(12) { --d: 4.3s; --del: 2.8s; --x: 28px;  }
.sparks span:nth-child(13) { --d: 3.1s; --del: 0.3s; --x: -22px; }
.sparks span:nth-child(14) { --d: 3.8s; --del: 0.8s; --x: 12px;  }
.sparks span:nth-child(15) { --d: 4.2s; --del: 1.2s; --x: -18px; }
.sparks span:nth-child(16) { --d: 3.4s; --del: 1.7s; --x: 24px;  }
.sparks span:nth-child(17) { --d: 4.5s; --del: 2.1s; --x: -28px; }
.sparks span:nth-child(18) { --d: 2.9s; --del: 2.5s; --x: 16px;  }
.sparks span:nth-child(19) { --d: 3.7s; --del: 2.9s; --x: -12px; }
.sparks span:nth-child(20) { --d: 4.1s; --del: 3.2s; --x: 32px;  }

@keyframes spark {
  0%   { transform: translate(0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: translate(var(--x,20px), -260px) scale(0.2); opacity: 0; }
}

/* smoke wisps */
.smoke {
  position: absolute;
  left: 50%; bottom: 200px;
  width: 80px; height: 280px;
  transform: translateX(-50%);
  pointer-events: none;
}
.smoke span {
  position: absolute;
  left: 50%; bottom: 0;
  width: 60px; height: 60px;
  margin-left: -30px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(120,110,130,0.25), rgba(120,110,130,0) 70%);
  filter: blur(8px);
  opacity: 0;
  animation: smoke 7s linear infinite;
}
.smoke span:nth-child(1) { animation-delay: 0s; }
.smoke span:nth-child(2) { animation-delay: 1.2s; }
.smoke span:nth-child(3) { animation-delay: 2.4s; }
.smoke span:nth-child(4) { animation-delay: 3.6s; }
.smoke span:nth-child(5) { animation-delay: 4.8s; }
.smoke span:nth-child(6) { animation-delay: 6.0s; }
@keyframes smoke {
  0%   { transform: translate(0,0) scale(0.6); opacity: 0; }
  15%  { opacity: 0.6; }
  100% { transform: translate(40px, -340px) scale(2.4); opacity: 0; }
}

/* vignette */
.vignette {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
  z-index: 5;
}

/* ============================================================
   UI — TOP BAR
   ============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.brand {
  display: flex; align-items: center; gap: 10px;
}
.brand-mark {
  width: 22px; height: 22px;
  filter: drop-shadow(0 0 8px rgba(255,170,80,0.7));
  animation: brandFlicker 2s ease-in-out infinite;
}
@keyframes brandFlicker {
  0%,100% { filter: drop-shadow(0 0 6px rgba(255,170,80,0.5)); }
  50%     { filter: drop-shadow(0 0 14px rgba(255,200,100,0.9)); }
}
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  text-transform: none;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-weight: 500;
}
.meta { display: flex; align-items: center; gap: 14px; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); }
.meta-item { font-variant-numeric: tabular-nums; }
.meta-link {
  color: var(--ink-dim);
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
  transition: color 0.2s ease;
}
.meta-link:hover { color: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: fixed;
  top: 14%;
  left: 0; right: 0;
  z-index: 6;
  text-align: center;
  pointer-events: none;
}
.title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 84px);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
.title span { display: block; }
.title em {
  font-style: italic;
  color: var(--ember);
  text-shadow: 0 0 30px rgba(255,176,102,0.4);
}
.subtitle {
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

/* ============================================================
   DOCK / CONTROLS
   ============================================================ */
.dock {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 28px;
  background: rgba(14, 9, 22, 0.55);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255,176,102,0.15);
  border-radius: 22px;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.02) inset,
    0 0 40px rgba(255,140,50,0.08);
  max-width: calc(100vw - 40px);
  flex-wrap: wrap;
  justify-content: center;
}

.play {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 18px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  color: #1a0e04;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #ffd27a 0%, #ff9a3c 60%, #ff6f1f 100%);
  box-shadow:
    0 10px 24px -8px rgba(255,120,40,0.7),
    0 0 0 1px rgba(255,255,255,0.2) inset,
    0 0 24px rgba(255,160,60,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.play:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(255,120,40,0.85), 0 0 0 1px rgba(255,255,255,0.3) inset, 0 0 30px rgba(255,160,60,0.5); }
.play:active { transform: translateY(0); }
.play svg { width: 18px; height: 18px; }
.play .icon-pause { display: none; }
.play.playing .icon-play { display: none; }
.play.playing .icon-pause { display: block; }

.sliders {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.slider-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 110px;
}
.slider-group label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.slider-group .val {
  position: absolute;
  margin-top: 26px;
  font-size: 10px;
  color: var(--ember);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.slider-group:hover .val { opacity: 1; }

input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 110px; height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd27a, #ff9a3c);
  box-shadow: 0 0 10px rgba(255,160,60,0.7), 0 2px 4px rgba(0,0,0,0.4);
  border: 2px solid #1a0e04;
  cursor: pointer;
  transition: transform 0.15s ease;
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type=range]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd27a, #ff9a3c);
  border: 2px solid #1a0e04;
  cursor: pointer;
}

.presets {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: rgba(0,0,0,0.25);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
}
.preset {
  padding: 8px 12px;
  background: transparent;
  color: var(--ink-dim);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}
.preset:hover { color: var(--ink); background: rgba(255,255,255,0.05); }
.preset.active {
  color: #1a0e04;
  background: linear-gradient(135deg, rgba(255,210,122,0.95), rgba(255,154,60,0.95));
  box-shadow: 0 0 12px rgba(255,160,60,0.4);
}

/* ============================================================
   MUSIC SIDEBAR (small floating panel on the left)
   ============================================================ */
.music-sidebar {
  position: fixed;
  left: 24px;
  bottom: 28px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(14, 9, 22, 0.55);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255,176,102,0.15);
  border-radius: 16px;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.02) inset;
  max-width: 200px;
}
.music-sidebar-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-dim);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.music-icon {
  display: block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}
.music-tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
}
.music-btn {
  padding: 6px 10px;
  background: transparent;
  color: var(--ink-dim);
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: all 0.2s ease;
}
.music-btn:hover { color: var(--ink); background: rgba(255,255,255,0.05); }
.music-btn.active {
  color: #1a0e04;
  background: linear-gradient(135deg, rgba(255,210,122,0.95), rgba(255,154,60,0.95));
  box-shadow: 0 0 10px rgba(255,160,60,0.35);
}
.music-btn.loading {
  color: var(--ember);
  opacity: 0.7;
  pointer-events: none;
}
input.music-volume[type=range] {
  width: 100%;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: fixed;
  bottom: 6px; left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  color: rgba(168,158,133,0.4);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 11;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .hero { top: 22%; }
  .title { font-size: 42px; }
  .subtitle { font-size: 11px; padding: 0 24px; }
  .dock { gap: 14px; padding: 14px 16px; }
  .sliders { gap: 12px; }
  .slider-group { min-width: 90px; }
  input[type=range] { width: 80px; }
  .character { width: 130px !important; }
  .cowboy-left { left: calc(50% - 200px); }
  .person-right { right: calc(50% - 200px); }
  .dog { width: 80px; left: calc(50% - 170px); }
  .topbar { padding: 16px 20px; font-size: 11px; }
}
@media (max-width: 540px) {
  .presets { display: none; }
  .meta-item:last-child { display: none; }
  .music-sidebar {
    left: 12px; right: 12px; bottom: auto; top: 70px;
    max-width: none;
    padding: 10px 12px;
  }
  .music-sidebar-head { font-size: 9px; }
  .music-btn { padding: 5px 8px; font-size: 10px; }
}
@media (max-width: 880px) and (min-width: 541px) {
  .music-sidebar { left: 16px; bottom: 24px; max-width: 180px; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .flame, .tongue, .sparks span, .smoke span, .ember-glow,
  .ground-glow, .fire-light, .star, .character, .brand-mark, .fire-ground-glow {
    animation: none !important;
  }
}

/* ============================================================
   MOBILE / LOW-POWER PERFORMANCE
   - heavy blurs are the biggest paint cost; trim them
   - drop later sparks/smoke wisps so we composite fewer layers
   ============================================================ */
@media (max-width: 760px) {
  .flame-outer  { filter: blur(5px); }
  .flame-middle { filter: blur(3px); }
  .flame-inner  { filter: blur(1.5px); }
  .flame-core   { filter: none; }
  .fire-ground-glow { filter: blur(5px); }
  .smoke span:nth-child(n+4) { display: none; }
  .sparks span:nth-child(n+11) { display: none; }
  .trees-left, .trees-right { width: 22%; }
  .vignette { background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.5) 100%); }
}
