/* Chama Inseparável — cores progressivas, respiração orgânica e Aurora 365. */
.amlealt-live-flame{--fire-a:#f95e20;--fire-b:#ffa43d;--fire-c:#ffe089;--fire-d:#fff2ae;--fire-e:#fff;--fire-glow:rgba(255,145,54,.35);color:#ffc46a;display:inline-flex;width:72px;height:82px;flex:none;vertical-align:middle;position:relative;align-items:center;justify-content:center;isolation:isolate;filter:drop-shadow(0 7px 13px var(--fire-glow))}
.amlealt-live-flame svg{display:block;width:100%;height:100%;overflow:visible}
.amlealt-live-flame .flame-stop-1{stop-color:var(--fire-a)}.amlealt-live-flame .flame-stop-2{stop-color:var(--fire-b)}.amlealt-live-flame .flame-stop-3{stop-color:var(--fire-c)}.amlealt-live-flame .flame-core-1{stop-color:var(--fire-d)}.amlealt-live-flame .flame-core-2{stop-color:var(--fire-e)}.amlealt-live-flame .flame-glow-start{stop-color:var(--fire-glow)}
.amlealt-live-flame .flame-body{transform-box:fill-box;transform-origin:50% 86%;animation:amlealtFireBodyFlow 11.6s ease-in-out infinite}.amlealt-live-flame .flame-front{transform-box:fill-box;transform-origin:50% 84%;animation:amlealtFireCoreFlow 9.8s ease-in-out infinite}
.amlealt-live-flame .flame-sparks{transform-origin:50% 50%}.amlealt-live-flame .flame-spark-one,.amlealt-live-flame .flame-spark-two,.amlealt-live-flame .flame-spark-three{transform-box:fill-box;transform-origin:center}
.amlealt-live-flame .flame-spark-one{animation:amlealtFireSparkOne 13.4s ease-in-out -3.7s infinite}
.amlealt-live-flame .flame-spark-two{animation:amlealtFireSparkTwo 15.2s ease-in-out -8.3s infinite}
.amlealt-live-flame .flame-spark-three{animation:amlealtFireSparkThree 12.8s ease-in-out -5.1s infinite}
.amlealt-live-flame .flame-aura{animation:amlealtFireAuraFlow 17.6s ease-in-out infinite;transform-origin:center;transform-box:fill-box}
.amlealt-live-flame.flame-compact{width:25px;height:30px;filter:drop-shadow(0 2px 4px var(--fire-glow))}
.amlealt-live-flame.flame-adormecida{--fire-a:#6d819a;--fire-b:#96b2c4;--fire-c:#c9e3f4;--fire-d:#f1f8ff;--fire-glow:rgba(125,160,190,.18)}
.amlealt-live-flame.flame-ambar{--fire-a:#ff551f;--fire-b:#ff9d21;--fire-c:#ffdb58;--fire-d:#ffe78b;--fire-glow:rgba(255,147,33,.32)}
.amlealt-live-flame.flame-solar{--fire-a:#f52952;--fire-b:#ff733b;--fire-c:#ffcb74;--fire-d:#ffb9a4;--fire-glow:rgba(255,88,105,.35)}
.amlealt-live-flame.flame-aurora{--fire-a:#df3d80;--fire-b:#ff7a94;--fire-c:#ffd59f;--fire-d:#ffc5ee;--fire-glow:rgba(231,76,174,.4)}
.amlealt-live-flame.flame-violeta{--fire-a:#7737df;--fire-b:#b65cfc;--fire-c:#eab5ff;--fire-d:#e0b6ff;--fire-glow:rgba(139,84,250,.42)}
.amlealt-live-flame.flame-celeste{--fire-a:#175ff5;--fire-b:#4fcbf5;--fire-c:#aff2ff;--fire-d:#bafaff;--fire-glow:rgba(62,162,255,.43)}
.amlealt-live-flame.flame-prisma{--fire-a:#4655ed;--fire-b:#5ce5e9;--fire-c:#f3a9fc;--fire-d:#ffdf9b;--fire-glow:rgba(112,159,255,.48);color:#b0f5ff}
.amlealt-live-flame.flame-aurora365{--fire-a:#bb73f5;--fire-b:#ffe6a3;--fire-c:#fffef0;--fire-d:#fef8d8;--fire-e:#fff;--fire-glow:rgba(255,201,106,.58);color:#ffd681;filter:drop-shadow(0 0 14px rgba(255,196,100,.55)) drop-shadow(0 0 21px rgba(166,119,255,.3))}
.amlealt-live-flame.flame-aurora365 .flame-halo{transform-origin:80px 90px;animation:amlealtFireOrbit 28s linear infinite}
.amlealt-live-flame.flame-aurora365 .flame-body{animation-duration:12.4s}
.amlealt-live-flame.flame-aurora365:not(.flame-compact){width:122px;height:138px}
.amlealt-live-flame.flame-compact.flame-aurora365{width:33px;height:36px}
.laco-hero-icon .amlealt-live-flame{width:110px;height:125px}
.laco-hero-icon .amlealt-live-flame.flame-aurora365{width:142px;height:157px}
.laco-society-badge .amlealt-live-flame{width:23px;height:27px}
.laco-celebration-icon .amlealt-live-flame{width:100px;height:115px}
.minha-stat-card .amlealt-live-flame{width:52px;height:59px}
.dashboard-chip .amlealt-live-flame{width:22px;height:25px}
.amlealt-checkin-banner .amlealt-live-flame{width:18px;height:22px;margin-right:4px}
.amlealt-checkin-flame .amlealt-live-flame{width:120px;height:137px;animation:amlealtFireUnlock .95s cubic-bezier(.16,1,.3,1) both}
.amlealt-checkin-flame .amlealt-live-flame.flame-aurora365{width:150px;height:156px}
.amlealt-checkin-celebration-card.is-aurora365{background:radial-gradient(ellipse at 50% 4%,rgba(252,210,124,.24),transparent 67%),var(--surface-page,#fff);border:1px solid rgba(243,181,85,.5);box-shadow:0 24px 90px rgba(128,80,40,.24),0 0 55px rgba(200,133,243,.19)}
.amlealt-checkin-celebration-card .amlealt-checkin-flame{height:auto;width:auto;min-height:132px;display:grid;place-items:center;animation:none}
.amlealt-checkin-celebration-card .amlealt-checkin-flame svg{filter:none;animation:none}
.amlealt-flame-edition{display:inline-block;margin:6px 0 7px;padding:5px 13px;border:1px solid rgba(202,153,74,.35);border-radius:99px;letter-spacing:.09em;text-transform:uppercase;color:#a87925;background:linear-gradient(125deg,rgba(255,223,143,.13),rgba(213,151,244,.13));font-size:10px;font-weight:850}
.amlealt-flame-next{font-size:12px;font-weight:650;opacity:.78}
@keyframes amlealtFireBodyFlow{0%,100%{transform:rotate(-.55deg) scale(.995,1.002)}22%{transform:rotate(.2deg) scale(1.006,.998)}47%{transform:rotate(.7deg) scale(.997,1.006)}73%{transform:rotate(-.15deg) scale(1.003,.997)}}
@keyframes amlealtFireCoreFlow{0%,100%{transform:scale(.985,1.005) translate(0,0)}28%{transform:scale(1.01,.994) translate(.5px,-.5px)}55%{transform:scale(.995,1.008) translate(-.5px,0)}78%{transform:scale(1.005,.998) translate(.3px,.3px)}}
@keyframes amlealtFireSparkOne{0%,100%{opacity:.46;transform:translateY(2px) scale(.94)}27%{opacity:.76;transform:translateY(-1px) scale(1)}54%{opacity:.58;transform:translateY(-3px) scale(.97)}79%{opacity:.82;transform:translateY(-.5px) scale(1.02)}}
@keyframes amlealtFireSparkTwo{0%,100%{opacity:.38;transform:translateY(1px) scale(.94)}24%{opacity:.7;transform:translateY(-2px) scale(1.03)}52%{opacity:.5;transform:translateY(-3.5px) scale(.98)}78%{opacity:.74;transform:translateY(-1px) scale(1)}}
@keyframes amlealtFireSparkThree{0%,100%{opacity:.48;transform:translateY(2px) scale(.96)}30%{opacity:.78;transform:translateY(-1.5px) scale(1.02)}57%{opacity:.55;transform:translateY(-3px) scale(.97)}82%{opacity:.8;transform:translateY(-.5px) scale(1.01)}}
@keyframes amlealtFireAuraFlow{0%,100%{opacity:.54;transform:scale(.96)}25%{opacity:.66;transform:scale(1.012)}51%{opacity:.57;transform:scale(.985)}76%{opacity:.7;transform:scale(1.025)}}
@keyframes amlealtFireOrbit{to{transform:rotate(360deg)}}
@keyframes amlealtFireUnlock{0%{opacity:0;transform:translateY(17px) scale(.67);filter:brightness(1.8)}62%{opacity:1;transform:translateY(-6px) scale(1.07)}100%{opacity:1;transform:translateY(0) scale(1);filter:brightness(1)}}
@media(max-width:768px){.minha-stat-card .amlealt-live-flame{width:26px;height:29px}}
@media(prefers-reduced-motion:reduce){.amlealt-live-flame *, .amlealt-checkin-flame .amlealt-live-flame{animation:none!important;transition:none!important}}

/* Ascensão contínua: cada marco de 30 dias altera a paleta e acrescenta detalhes. */
.amlealt-live-flame.flame-ascended{
  filter:hue-rotate(var(--flame-hue,0deg)) drop-shadow(0 0 17px var(--fire-glow));
}
.amlealt-live-flame.flame-ascended .flame-halo{
  transform-origin:80px 90px;
  animation:amlealtFireOrbit 24s linear infinite;
}
.amlealt-live-flame.flame-ascended .flame-orbit-two{transform-origin:80px 90px;animation:amlealtFireOrbit 34s linear infinite reverse}
.amlealt-live-flame.flame-ascended .flame-orbit-three{transform-origin:80px 90px;animation:amlealtFireOrbit 46s linear infinite}
.amlealt-live-flame.flame-ascended .flame-evolution-star{transform-box:fill-box;transform-origin:center;animation:amlealtFireStarFlow 7.8s ease-in-out infinite}
.amlealt-live-flame.flame-ascended .flame-evolution-star:nth-child(even){animation-delay:-3.1s}
.amlealt-live-flame.flame-eterna{
  --fire-a:#5532bd;--fire-b:#25bfc4;--fire-c:#ffe6a0;--fire-d:#c8fff5;--fire-e:#fff9df;
  --fire-glow:rgba(111,213,218,.7);
  color:#ffe1a0;
  filter:drop-shadow(0 0 17px rgba(112,218,226,.62)) drop-shadow(0 0 30px rgba(174,125,255,.36));
}
.amlealt-live-flame.flame-eterna .flame-eternal-crown{transform-origin:80px 90px;animation:amlealtFireOrbit 42s linear infinite}
.amlealt-live-flame.flame-eterna .flame-eternal-wings{transform-origin:80px 90px;animation:amlealtEternalWingsFlow 9.2s ease-in-out infinite}
.amlealt-live-flame.flame-eterna .flame-body{animation-duration:13.2s}
.amlealt-live-flame.flame-eterna .flame-front{animation-duration:10.7s}
.amlealt-live-flame.flame-eterna .flame-heart{opacity:1;filter:drop-shadow(0 0 5px white)}
.amlealt-live-flame.flame-eterna .flame-evolution-star{animation:amlealtFireStarFlow 8.4s ease-in-out infinite}
.laco-hero-icon .amlealt-live-flame{width:100%;height:100%;max-width:100%;max-height:100%}
@keyframes amlealtFireStarFlow{0%,100%{opacity:.52;transform:scale(.94)}28%{opacity:.72;transform:scale(1.015)}56%{opacity:.58;transform:scale(.98)}82%{opacity:.76;transform:scale(1.035)}}
@keyframes amlealtEternalWingsFlow{0%,100%{transform:scale(.99) translateY(.5px)}26%{transform:scale(1.004) translateY(-.4px)}52%{transform:scale(.995) translateY(.25px)}78%{transform:scale(1.008) translateY(-.3px)}}
@media(prefers-reduced-motion:reduce){
  .amlealt-live-flame.flame-ascended .flame-halo,
  .amlealt-live-flame.flame-ascended .flame-orbit-two,
  .amlealt-live-flame.flame-ascended .flame-orbit-three,
  .amlealt-live-flame.flame-ascended .flame-evolution-star,
  .amlealt-live-flame.flame-eterna .flame-eternal-crown,
  .amlealt-live-flame.flame-eterna .flame-eternal-wings,
  .amlealt-live-flame.flame-eterna .flame-evolution-star{animation:none!important}
}


/* Off-screen flames sleep; IntersectionObserver resumes them near the viewport. */
.amlealt-live-flame,
.amlealt-live-flame * {
  animation-play-state: var(--flame-motion-play-state, running) !important;
}

/* WebView smartphone performance: keep the organic body/core animation, without
   expensive animated SVG glow layers and large drop-shadow rasterizations.
   Tablet/desktop visual treatment stays unchanged. */
@media (max-width:767px) and (hover:none) and (pointer:coarse) {
  .amlealt-live-flame {
    filter:none!important;
    backface-visibility:hidden;
    -webkit-backface-visibility:hidden;
    transform:translateZ(0);
  }
  .amlealt-live-flame svg {
    backface-visibility:hidden;
    -webkit-backface-visibility:hidden;
  }
  .amlealt-live-flame .flame-body,
  .amlealt-live-flame .flame-front {
    will-change:transform;
  }
  .amlealt-live-flame .flame-aura,
  .amlealt-live-flame .flame-spark-one,
  .amlealt-live-flame .flame-spark-two,
  .amlealt-live-flame .flame-spark-three,
  .amlealt-live-flame .flame-evolution-star,
  .amlealt-live-flame .flame-eternal-wings,
  .amlealt-live-flame .flame-orbit-two,
  .amlealt-live-flame .flame-orbit-three {
    animation:none!important;
  }
  .amlealt-live-flame .flame-heart {filter:none!important}
  /* Preserve the achieved ascent palette without stacking SVG drop shadows. */
  .amlealt-live-flame.flame-ascended {
    filter:hue-rotate(var(--flame-hue,0deg))!important;
  }
  .amlealt-live-flame.flame-eterna {
    filter:none!important;
  }
}
