/* A pointed, translucent flame anchored to the existing wick and blow-out. */
.candle-scene .flame-wrap { left: 61px; width: 32px; height: 63px; }
.candle-scene .flame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform-origin: 50% 100%;
}
.candle-scene.is-lit .flame { animation: flame-breeze 3.7s ease-in-out infinite; }
.candle-scene.flame-enhanced .flame { animation: none; }
.flame-light {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 4px #ffc87870);
}
.candle-button .flame-light, .candle-button .flame-light * { stroke: none; }
.flame-aura {
  position: absolute;
  inset: -18px -30px -10px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 62%, #ffca7038 0%, #ffcd6818 35%, transparent 70%);
  opacity: .65;
  pointer-events: none;
}
.candle-scene .match-fire > span {
  border-radius: 48% 52% 46% 44% / 83% 83% 17% 17%;
  background: radial-gradient(ellipse at 50% 90%, #b5b4de55 0 7%, #fffef1 15% 28%, #ffe9a6 49%, #f2b95f 76%, #dc974c 100%);
}
.candle-scene.is-blowing .flame { animation: none; }
@keyframes flame-breeze {
  0%, 100% { transform: rotate(-6deg) scale(.96, 1.04); }
  19% { transform: rotate(8deg) scale(1.02, .95); }
  41% { transform: rotate(-10deg) scale(.94, 1.07); }
  62% { transform: rotate(5deg) scale(1.05, .97); }
  82% { transform: rotate(-3deg) scale(.98, 1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .candle-scene .flame { animation: none !important; transform: none !important; }
}
