/* Nav button — compact geometric fire (no diamond CTA) */

.nav-fire--navbtn {
  position: relative;
  width: 22px;
  height: 22px;
  margin: 0 auto 1px;
  transform: scale(calc(0.82 + var(--campfire-lit, 0.7) * 0.28));
  transform-origin: center bottom;
  transition: transform 0.55s ease;
  image-rendering: pixelated;
}

.nav-fire--navbtn .nav-fire__flame {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4px;
  height: 4px;
  margin-left: -2px;
}

.nav-fire__flame i {
  position: absolute;
  display: block;
  transform: rotate(45deg);
  image-rendering: pixelated;
  animation: nav-fire-rise var(--nav-fire-dur, 1.1s) ease-in-out infinite;
}

.nav-fire__flame i:nth-child(1) {
  left: -5px;
  bottom: 1px;
  width: 8px;
  height: 8px;
  background: #fde047;
  animation-delay: 0s;
}

.nav-fire__flame i:nth-child(2) {
  left: 1px;
  bottom: 0;
  width: 9px;
  height: 9px;
  background: #fb923c;
  animation-delay: 0.15s;
}

.nav-fire__flame i:nth-child(3) {
  left: -1px;
  bottom: 5px;
  width: 7px;
  height: 7px;
  background: #f97316;
  animation-delay: 0.3s;
}

.nav-fire__flame i:nth-child(4) {
  left: 4px;
  bottom: 6px;
  width: 6px;
  height: 6px;
  background: #ea580c;
  animation-delay: 0.45s;
}

body[data-campfire-tier="high"] {
  --nav-fire-dur: 0.75s;
}

body[data-campfire-tier="mid"] {
  --nav-fire-dur: 1s;
}

body[data-campfire-tier="low"] {
  --nav-fire-dur: 1.25s;
}

body[data-campfire-tier="ember"] .nav-fire__flame i {
  filter: saturate(0.75) brightness(0.85);
}

@keyframes nav-fire-rise {
  0%,
  100% {
    transform: rotate(45deg) translateY(0) scale(0.92);
    opacity: 0.9;
  }
  50% {
    transform: rotate(45deg) translateY(-3px) scale(1.04);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-fire__flame i {
    animation: none;
  }
}
