/* ==========================================================================
   A CHAMA — MASCOTE, ANIMAÇÕES DA CHAMA & COSMÉTICOS (flame.css)
   ========================================================================== */

/* --- TELA DE LOADING NATIVA: A CHAMA EVOLUINDO NO BOOT --- */
#app-loading-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: radial-gradient(circle at 50% 38%, #eaf4fb 0%, #a4cbe6 60%, #8ebad6 100%);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    overflow: hidden; transition: opacity 0.5s ease;
    color: #16374a;
}
body:not(.light-theme) #app-loading-screen,
.dark-theme #app-loading-screen {
    background: radial-gradient(circle at 50% 38%, #163248 0%, #0d1e2c 60%, #061019 100%);
    color: #f1f8fc;
}
#loading-ambient-glow {
    position: absolute; top: 40%; left: 50%; width: 260px; height: 260px;
    margin-left: -130px; margin-top: -130px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 183, 3, 0.35) 0%, rgba(251, 133, 0, 0.12) 45%, transparent 72%);
    filter: blur(24px); transform: scale(0.3); opacity: 0.25;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease; pointer-events: none; z-index: 1;
}
.glow-ember { transform: scale(0.45) !important; opacity: 0.2 !important; background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, transparent 70%) !important; }
.glow-baby { transform: scale(0.85) !important; opacity: 0.55 !important; }
.glow-youth { transform: scale(1.15) !important; opacity: 0.75 !important; }
.glow-adult { transform: scale(1.55) !important; opacity: 1 !important; background: radial-gradient(circle, rgba(255, 215, 0, 0.5) 0%, rgba(251, 133, 0, 0.22) 50%, transparent 75%) !important; }

#loading-stage-center {
    position: relative; width: 180px; height: 200px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10;
}
#loading-evolution-scaler {
    position: relative; width: 120px; height: 138px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transform-origin: center center; transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.65s ease;
}
#loading-action-animator {
    position: relative; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.anim-celebrate { animation: joyJump 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important; }
.spark-particle { position: absolute; pointer-events: none; z-index: 25; animation: floatSpark 1.4s ease-out forwards; }
#loading-progress-fill { transition: width 0.5s ease-in-out; }

/* --- ALTAR E TRANSIÇÃO HEROICA --- */
#pet-stage-anchor {
    position: relative; width: 100%; flex: 1; min-height: 140px; max-height: 280px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    overflow: visible; z-index: 22;
}

#hero-flame-actor {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 150px; height: 170px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 25;
    pointer-events: none; will-change: transform; transform-origin: center center;
    transition: filter 0.2s ease, opacity 0.12s ease;
}

#hero-flame-actor.actor-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: none !important;
}

#classic-flame-body { pointer-events: auto; cursor: pointer; }

#flame-evolution-scaler {
    position: relative; width: 120px; height: 138px;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    transform-origin: center center; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

#flame-action-animator {
    position: relative; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    transform-origin: bottom center; pointer-events: none; z-index: 10;
}

#flame-fx-layer { position: absolute; inset: -25px; pointer-events: none; z-index: 40; overflow: visible; }
.fx-particle { position: absolute; font-size: 16px; pointer-events: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35)); }

.classic-flame-body {
    position: relative; width: 104px; height: 118px;
    background: linear-gradient(180deg, #ff4060 0%, #ff7a00 50%, #ffc000 100%);
    border-radius: 50% 50% 38% 38% / 62% 62% 36% 36%;
    box-shadow: 0 0 32px rgba(255, 120, 10, 0.80), 0 0 70px rgba(255, 80, 0, 0.45), inset 0 6px 14px rgba(255, 255, 255, 0.65), inset 0 -12px 18px rgba(0, 0, 0, 0.35);
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 10px;
    margin-bottom: 6px;
    will-change: transform;
    -webkit-transform-origin: bottom center;
    transform-origin: bottom center;
    -webkit-animation: classicFlameBreathe 3s ease-in-out infinite alternate;
    animation: classicFlameBreathe 3s ease-in-out infinite alternate;
    transition: background 0.4s ease, box-shadow 0.4s ease, width 0.4s ease, height 0.4s ease, border-radius 0.4s ease; z-index: 5; pointer-events: auto;
}
.classic-flame-body::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 45% 18%, rgba(255, 255, 255, 0.70) 0%, rgba(255, 240, 180, 0.22) 24%, transparent 48%);
    pointer-events: none;
    z-index: 1;
}

/* --- MINIATURA DA CHAMA NO CABEÇALHO --- */
.header-mini-flame-wrap {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: visible; pointer-events: none;
}
.header-mini-flame-scaler {
    position: relative; width: 104px; height: 118px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transform: scale(0.24); transform-origin: center center;
    pointer-events: none; filter: drop-shadow(0 0 5px rgba(251, 133, 0, 0.45));
}
.header-mini-flame-scaler .classic-flame-body {
    cursor: default; pointer-events: none; will-change: transform;
    transform-origin: center center !important;
    animation: headerMiniFlameBreathe 2.8s ease-in-out infinite alternate !important;
    box-shadow: 0 0 10px rgba(255, 123, 0, 0.5), inset 0 4px 8px rgba(255, 255, 255, 0.4), inset 0 -4px 8px rgba(194, 45, 0, 0.35) !important;
}

/* --- CORES E AURAS DA MINIATURA --- */
.header-mini-flame-scaler.Aura-dourada .classic-flame-body { box-shadow: 0 0 10px rgba(251, 191, 36, 0.6), inset 0 4px 8px rgba(255, 255, 255, 0.5) !important; }
.header-mini-flame-scaler.Aura-celeste .classic-flame-body { box-shadow: 0 0 10px rgba(6, 182, 212, 0.6), inset 0 4px 8px rgba(255, 255, 255, 0.5) !important; }
.header-mini-flame-scaler.Aura-sarca .classic-flame-body { box-shadow: 0 0 10px rgba(225, 29, 72, 0.6), inset 0 4px 8px rgba(255, 255, 255, 0.5) !important; }
.header-mini-flame-scaler.Aura-esmeralda .classic-flame-body { box-shadow: 0 0 10px rgba(16, 185, 129, 0.6), inset 0 4px 8px rgba(255, 255, 255, 0.5) !important; }
.header-mini-flame-scaler.Aura-ametista .classic-flame-body { box-shadow: 0 0 10px rgba(168, 85, 247, 0.6), inset 0 4px 8px rgba(255, 255, 255, 0.5) !important; }
.header-mini-flame-scaler.Aura-rose .classic-flame-body { box-shadow: 0 0 10px rgba(251, 113, 133, 0.6), inset 0 4px 8px rgba(255, 255, 255, 0.5) !important; }
.header-mini-flame-scaler.Aura-aurora .classic-flame-body { box-shadow: 0 0 10px rgba(168, 85, 247, 0.6), inset 0 4px 8px rgba(255, 255, 255, 0.5) !important; }
.header-mini-flame-scaler.Aura-serafim .classic-flame-body { box-shadow: 0 0 10px rgba(245, 158, 11, 0.7), inset 0 4px 8px rgba(255, 255, 255, 0.6) !important; }
.header-mini-flame-scaler.Aura-arcoiris .classic-flame-body { box-shadow: 0 0 10px rgba(168, 85, 247, 0.7), inset 0 4px 8px rgba(255, 255, 255, 0.6) !important; }
.header-mini-flame-scaler.Aura-shekinah .classic-flame-body { box-shadow: 0 0 12px rgba(254, 240, 138, 0.8), inset 0 4px 8px rgba(255, 255, 255, 0.8) !important; }
.header-mini-flame-scaler.Aura-oliva .classic-flame-body { box-shadow: 0 0 10px rgba(101, 163, 13, 0.6), inset 0 4px 8px rgba(255, 255, 255, 0.5) !important; }
.header-mini-flame-scaler.Aura-perola .classic-flame-body { box-shadow: 0 0 12px rgba(248, 250, 252, 0.75), inset 0 4px 8px rgba(255, 255, 255, 0.8) !important; }
.header-mini-flame-scaler.Aura-terracota .classic-flame-body { box-shadow: 0 0 10px rgba(234, 88, 12, 0.65), inset 0 4px 8px rgba(255, 255, 255, 0.5) !important; }
.header-mini-flame-scaler.Aura-turquesa .classic-flame-body { box-shadow: 0 0 11px rgba(20, 184, 166, 0.7), inset 0 4px 8px rgba(255, 255, 255, 0.55) !important; }
.header-mini-flame-scaler.Aura-indigo .classic-flame-body { box-shadow: 0 0 11px rgba(99, 102, 241, 0.75), inset 0 4px 8px rgba(255, 255, 255, 0.55) !important; }
.header-mini-flame-scaler.Aura-ambar_mel .classic-flame-body { box-shadow: 0 0 11px rgba(245, 158, 11, 0.75), inset 0 4px 8px rgba(255, 255, 255, 0.6) !important; }
.header-mini-flame-scaler.Aura-lirio_vale .classic-flame-body { box-shadow: 0 0 11px rgba(244, 114, 182, 0.7), inset 0 4px 8px rgba(255, 255, 255, 0.75) !important; }
.header-mini-flame-scaler.Aura-salomao .classic-flame-body { box-shadow: 0 0 12px rgba(250, 204, 21, 0.8), inset 0 4px 8px rgba(255, 255, 255, 0.7) !important; }
.header-mini-flame-scaler.Aura-carmelo .classic-flame-body { box-shadow: 0 0 12px rgba(239, 68, 68, 0.78), inset 0 4px 8px rgba(255, 255, 255, 0.6) !important; }
.header-mini-flame-scaler.Aura-safira_siao .classic-flame-body { box-shadow: 0 0 12px rgba(59, 130, 246, 0.75), inset 0 4px 8px rgba(255, 255, 255, 0.6) !important; }
.header-mini-flame-scaler.Aura-pentecostes .classic-flame-body { box-shadow: 0 0 13px rgba(254, 240, 138, 0.9), inset 0 4px 8px rgba(255, 255, 255, 0.85) !important; }
.header-mini-flame-scaler.Aura-natal_emanuel .classic-flame-body { box-shadow: 0 0 12px rgba(251, 191, 36, 0.82), 0 0 8px rgba(16, 185, 129, 0.5), inset 0 4px 8px rgba(255, 255, 255, 0.7) !important; }

.header-mini-flame-scaler.state-sleeping .classic-flame-body {
    box-shadow: 0 0 12px rgba(255, 145, 30, 0.5), 0 0 8px rgba(56, 189, 248, 0.4) !important;
}
.header-mini-flame-scaler.state-radiant .classic-flame-body {
    box-shadow: 0 0 12px rgba(255, 183, 3, 0.8), inset 0 4px 8px rgba(255, 255, 255, 0.6) !important;
}
.header-mini-flame-scaler.state-ember .classic-flame-body {
    filter: grayscale(0.88) brightness(0.6);
    box-shadow: 0 0 4px rgba(255, 60, 0, 0.3) !important;
}

/* --- AURAS E CORES CÓSMICAS DA CHAMA --- */
.Aura-dourada .flame-crest { background: linear-gradient(180deg, #f59e0b 0%, #fbbf24 100%); filter: drop-shadow(0 -4px 8px rgba(251, 191, 36, 0.6)); }
.Aura-dourada .flame-wing-left, .Aura-dourada .flame-wing-right { background: linear-gradient(180deg, #f59e0b 0%, #fef08a 100%); }
.Aura-dourada .flame-halo-crown { box-shadow: 0 0 14px #fbbf24, inset 0 0 8px #fbbf24; border-color: #fef08a; }

.Aura-celeste .flame-crest { background: linear-gradient(180deg, #2563eb 0%, #06b6d4 100%); filter: drop-shadow(0 -4px 8px rgba(6, 182, 212, 0.6)); }
.Aura-celeste .flame-wing-left, .Aura-celeste .flame-wing-right { background: linear-gradient(180deg, #2563eb 0%, #a5f3fc 100%); }
.Aura-celeste .flame-halo-crown { box-shadow: 0 0 14px #06b6d4, inset 0 0 8px #06b6d4; border-color: #a5f3fc; }

.Aura-sarca .flame-crest { background: linear-gradient(180deg, #be123c 0%, #e11d48 100%); filter: drop-shadow(0 -4px 8px rgba(225, 29, 72, 0.6)); }
.Aura-sarca .flame-wing-left, .Aura-sarca .flame-wing-right { background: linear-gradient(180deg, #be123c 0%, #fda4af 100%); }
.Aura-sarca .flame-halo-crown { box-shadow: 0 0 14px #e11d48, inset 0 0 8px #e11d48; border-color: #fda4af; }

.Aura-esmeralda .flame-crest { background: linear-gradient(180deg, #059669 0%, #10b981 100%); filter: drop-shadow(0 -4px 8px rgba(16, 185, 129, 0.6)); }
.Aura-esmeralda .flame-wing-left, .Aura-esmeralda .flame-wing-right { background: linear-gradient(180deg, #059669 0%, #a7f3d0 100%); }
.Aura-esmeralda .flame-halo-crown { box-shadow: 0 0 14px #10b981, inset 0 0 8px #10b981; border-color: #a7f3d0; }

.Aura-ametista .flame-crest { background: linear-gradient(180deg, #6d28d9 0%, #a855f7 100%); filter: drop-shadow(0 -4px 8px rgba(168, 85, 247, 0.6)); }
.Aura-ametista .flame-wing-left, .Aura-ametista .flame-wing-right { background: linear-gradient(180deg, #6d28d9 0%, #f3e8ff 100%); }
.Aura-ametista .flame-halo-crown { box-shadow: 0 0 14px #a855f7, inset 0 0 8px #a855f7; border-color: #f3e8ff; }

.Aura-rose .flame-crest { background: linear-gradient(180deg, #f43f5e 0%, #fb7185 100%); filter: drop-shadow(0 -4px 8px rgba(251, 113, 133, 0.6)); }
.Aura-rose .flame-wing-left, .Aura-rose .flame-wing-right { background: linear-gradient(180deg, #f43f5e 0%, #ffe4e6 100%); }
.Aura-rose .flame-halo-crown { box-shadow: 0 0 14px #fb7185, inset 0 0 8px #fb7185; border-color: #ffe4e6; }

.Aura-aurora .flame-crest { background: linear-gradient(180deg, #06b6d4 0%, #a855f7 100%); filter: drop-shadow(0 -4px 8px rgba(168, 85, 247, 0.6)); }
.Aura-aurora .flame-wing-left, .Aura-aurora .flame-wing-right { background: linear-gradient(180deg, #06b6d4 0%, #e0e7ff 100%); }
.Aura-aurora .flame-halo-crown { box-shadow: 0 0 14px #a855f7, inset 0 0 8px #06b6d4; border-color: #e0e7ff; }

.Aura-serafim .flame-crest { background: linear-gradient(180deg, #dc2626 0%, #f59e0b 100%); filter: drop-shadow(0 -4px 10px rgba(245, 158, 11, 0.8)); }
.Aura-serafim .flame-wing-left, .Aura-serafim .flame-wing-right { background: linear-gradient(180deg, #dc2626 0%, #fef08a 100%); }
.Aura-serafim .flame-halo-crown { box-shadow: 0 0 18px #f59e0b, inset 0 0 10px #dc2626; border-color: #fef08a; }

.Aura-arcoiris .flame-crest { background: linear-gradient(180deg, #ec4899 0%, #3b82f6 50%, #10b981 100%); filter: drop-shadow(0 -4px 10px rgba(168, 85, 247, 0.7)); }
.Aura-arcoiris .flame-wing-left, .Aura-arcoiris .flame-wing-right { background: linear-gradient(180deg, #ec4899 0%, #06b6d4 100%); }
.Aura-arcoiris .flame-halo-crown { box-shadow: 0 0 18px #06b6d4, inset 0 0 10px #ec4899; border-color: #a7f3d0; }

.Aura-shekinah .flame-crest { background: linear-gradient(180deg, #ffffff 0%, #fde047 100%); filter: drop-shadow(0 -4px 14px rgba(255, 255, 255, 0.95)); }
.Aura-shekinah .flame-wing-left, .Aura-shekinah .flame-wing-right { background: linear-gradient(180deg, #ffffff 0%, #fef08a 100%); }
.Aura-shekinah .flame-halo-crown { box-shadow: 0 0 22px #ffffff, inset 0 0 12px #fde047; border-color: #ffffff; }
.Aura-oliva .flame-crest { background: linear-gradient(180deg, #4d7c0f 0%, #84cc16 100%); filter: drop-shadow(0 -4px 8px rgba(132, 204, 22, 0.6)); }
.Aura-oliva .flame-wing-left, .Aura-oliva .flame-wing-right { background: linear-gradient(180deg, #4d7c0f 0%, #ecfccb 100%); }
.Aura-oliva .flame-halo-crown { box-shadow: 0 0 14px #84cc16, inset 0 0 8px #84cc16; border-color: #ecfccb; }
.Aura-perola .flame-crest { background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%); filter: drop-shadow(0 -4px 12px rgba(255, 255, 255, 0.85)); }
.Aura-perola .flame-wing-left, .Aura-perola .flame-wing-right { background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 100%); }
.Aura-perola .flame-halo-crown { box-shadow: 0 0 18px #ffffff, inset 0 0 10px #e2e8f0; border-color: #ffffff; }
.Aura-terracota .flame-crest { background: linear-gradient(180deg, #9a3412 0%, #ea580c 100%); filter: drop-shadow(0 -4px 8px rgba(234, 88, 12, 0.6)); }
.Aura-terracota .flame-wing-left, .Aura-terracota .flame-wing-right { background: linear-gradient(180deg, #9a3412 0%, #ffedd5 100%); }
.Aura-terracota .flame-halo-crown { box-shadow: 0 0 14px #ea580c, inset 0 0 8px #ea580c; border-color: #ffedd5; }
.Aura-turquesa .flame-crest { background: linear-gradient(180deg, #0f766e 0%, #2dd4bf 100%); filter: drop-shadow(0 -4px 8px rgba(45, 212, 191, 0.65)); }
.Aura-turquesa .flame-wing-left, .Aura-turquesa .flame-wing-right { background: linear-gradient(180deg, #0d9488 0%, #ccfbf1 100%); }
.Aura-turquesa .flame-halo-crown { box-shadow: 0 0 14px #14b8a6, inset 0 0 8px #14b8a6; border-color: #ccfbf1; }
.Aura-indigo .flame-crest { background: linear-gradient(180deg, #312e81 0%, #6366f1 100%); filter: drop-shadow(0 -4px 8px rgba(99, 102, 241, 0.65)); }
.Aura-indigo .flame-wing-left, .Aura-indigo .flame-wing-right { background: linear-gradient(180deg, #3730a3 0%, #e0e7ff 100%); }
.Aura-indigo .flame-halo-crown { box-shadow: 0 0 14px #6366f1, inset 0 0 8px #6366f1; border-color: #e0e7ff; }
.Aura-ambar_mel .flame-crest { background: linear-gradient(180deg, #b45309 0%, #fbbf24 100%); filter: drop-shadow(0 -4px 8px rgba(245, 158, 11, 0.65)); }
.Aura-ambar_mel .flame-wing-left, .Aura-ambar_mel .flame-wing-right { background: linear-gradient(180deg, #d97706 0%, #fef3c7 100%); }
.Aura-ambar_mel .flame-halo-crown { box-shadow: 0 0 14px #f59e0b, inset 0 0 8px #f59e0b; border-color: #fef3c7; }
.Aura-lirio_vale .flame-crest { background: linear-gradient(180deg, #f472b6 0%, #fbcfe8 100%); filter: drop-shadow(0 -4px 8px rgba(244, 114, 182, 0.65)); }
.Aura-lirio_vale .flame-wing-left, .Aura-lirio_vale .flame-wing-right { background: linear-gradient(180deg, #f9a8d4 0%, #fff1f2 100%); }
.Aura-lirio_vale .flame-halo-crown { box-shadow: 0 0 16px #fbcfe8, inset 0 0 8px #f472b6; border-color: #fff1f2; }
.Aura-salomao .flame-crest { background: linear-gradient(180deg, #92400e 0%, #facc15 100%); filter: drop-shadow(0 -4px 10px rgba(250, 204, 21, 0.75)); }
.Aura-salomao .flame-wing-left, .Aura-salomao .flame-wing-right { background: linear-gradient(180deg, #d97706 0%, #fef9c3 100%); }
.Aura-salomao .flame-halo-crown { box-shadow: 0 0 18px #facc15, inset 0 0 10px #b45309; border-color: #fef9c3; }
.Aura-carmelo .flame-crest { background: linear-gradient(180deg, #991b1b 0%, #f97316 100%); filter: drop-shadow(0 -4px 10px rgba(249, 115, 22, 0.75)); }
.Aura-carmelo .flame-wing-left, .Aura-carmelo .flame-wing-right { background: linear-gradient(180deg, #dc2626 0%, #fde047 100%); }
.Aura-carmelo .flame-halo-crown { box-shadow: 0 0 16px #f97316, inset 0 0 8px #dc2626; border-color: #fef08a; }
.Aura-safira_siao .flame-crest { background: linear-gradient(180deg, #1e3a8a 0%, #3b82f6 100%); filter: drop-shadow(0 -4px 10px rgba(59, 130, 246, 0.72)); }
.Aura-safira_siao .flame-wing-left, .Aura-safira_siao .flame-wing-right { background: linear-gradient(180deg, #1d4ed8 0%, #bfdbfe 100%); }
.Aura-safira_siao .flame-halo-crown { box-shadow: 0 0 16px #60a5fa, inset 0 0 8px #2563eb; border-color: #dbeafe; }
.Aura-pentecostes .flame-crest { background: linear-gradient(180deg, #ffffff 0%, #facc15 65%, #f97316 100%); filter: drop-shadow(0 -4px 14px rgba(254, 240, 138, 0.92)); }
.Aura-pentecostes .flame-wing-left, .Aura-pentecostes .flame-wing-right { background: linear-gradient(180deg, #f97316 0%, #ffffff 100%); }
.Aura-pentecostes .flame-halo-crown { box-shadow: 0 0 22px #fef08a, inset 0 0 10px #f59e0b; border-color: #ffffff; }
.Aura-natal_emanuel .flame-crest { background: linear-gradient(180deg, #dc2626 0%, #f59e0b 55%, #fef08a 100%); filter: drop-shadow(0 -4px 10px rgba(251, 191, 36, 0.8)); }
.Aura-natal_emanuel .flame-wing-left { background: linear-gradient(180deg, #15803d 0%, #6ee7b7 100%); }
.Aura-natal_emanuel .flame-wing-right { background: linear-gradient(180deg, #be123c 0%, #fecdd3 100%); }
.Aura-natal_emanuel .flame-halo-crown { box-shadow: 0 0 18px #fde047, inset 0 0 8px #10b981; border-color: #fef08a; }

.Aura-dourada .classic-flame-body { background: linear-gradient(180deg, #f59e0b 0%, #fbbf24 52%, #fef08a 100%); box-shadow: 0 0 44px rgba(251, 191, 36, 0.85), inset 0 6px 14px rgba(255, 255, 255, 0.65), inset 0 -8px 16px rgba(180, 83, 9, 0.45); }
.Aura-celeste .classic-flame-body { background: linear-gradient(180deg, #2563eb 0%, #06b6d4 55%, #a5f3fc 100%); box-shadow: 0 0 44px rgba(6, 182, 212, 0.8), inset 0 6px 14px rgba(255, 255, 255, 0.55), inset 0 -8px 16px rgba(30, 58, 138, 0.5); }
.Aura-sarca .classic-flame-body { background: linear-gradient(180deg, #be123c 0%, #e11d48 48%, #fda4af 100%); box-shadow: 0 0 44px rgba(225, 29, 72, 0.8), inset 0 6px 14px rgba(255, 255, 255, 0.5), inset 0 -8px 16px rgba(136, 19, 55, 0.55); }
.Aura-esmeralda .classic-flame-body { background: linear-gradient(180deg, #059669 0%, #10b981 52%, #a7f3d0 100%); box-shadow: 0 0 44px rgba(16, 185, 129, 0.8), inset 0 6px 14px rgba(255, 255, 255, 0.55), inset 0 -8px 16px rgba(6, 78, 59, 0.55); }
.Aura-ametista .classic-flame-body { background: linear-gradient(180deg, #6d28d9 0%, #a855f7 52%, #f3e8ff 100%); box-shadow: 0 0 44px rgba(168, 85, 247, 0.85), inset 0 6px 14px rgba(255, 255, 255, 0.55), inset 0 -8px 16px rgba(76, 29, 149, 0.55); }
.Aura-rose .classic-flame-body { background: linear-gradient(180deg, #f43f5e 0%, #fb7185 50%, #fecdd3 100%); box-shadow: 0 0 44px rgba(251, 113, 133, 0.85), inset 0 6px 14px rgba(255, 255, 255, 0.65), inset 0 -8px 16px rgba(159, 18, 57, 0.45); }
.Aura-aurora .classic-flame-body { background: linear-gradient(180deg, #06b6d4 0%, #8b5cf6 52%, #f472b6 100%); box-shadow: 0 0 44px rgba(139, 92, 246, 0.85), inset 0 6px 14px rgba(255, 255, 255, 0.65), inset 0 -8px 16px rgba(91, 33, 182, 0.5); }
.Aura-serafim .classic-flame-body { background: linear-gradient(180deg, #dc2626 0%, #f59e0b 45%, #fef08a 100%); box-shadow: 0 0 48px rgba(245, 158, 11, 0.9), inset 0 6px 14px rgba(255, 255, 255, 0.7), inset 0 -8px 16px rgba(185, 28, 28, 0.5); }
.Aura-arcoiris .classic-flame-body { background: linear-gradient(180deg, #a855f7 0%, #38bdf8 35%, #34d399 70%, #fef08a 100%); box-shadow: 0 0 48px rgba(56, 189, 248, 0.85), inset 0 6px 14px rgba(255, 255, 255, 0.7), inset 0 -8px 16px rgba(126, 34, 206, 0.45); }
.Aura-shekinah .classic-flame-body { background: linear-gradient(180deg, #ffffff 0%, #fef08a 40%, #fbbf24 100%); box-shadow: 0 0 54px rgba(255, 255, 255, 0.95), 0 0 28px rgba(250, 204, 21, 0.8), inset 0 6px 16px rgba(255, 255, 255, 0.9), inset 0 -8px 16px rgba(217, 119, 6, 0.45); }
.Aura-oliva .classic-flame-body { background: linear-gradient(180deg, #4d7c0f 0%, #65a30d 50%, #d9f99d 100%); box-shadow: 0 0 44px rgba(132, 204, 22, 0.8), inset 0 6px 14px rgba(255, 255, 255, 0.55), inset 0 -8px 16px rgba(54, 83, 20, 0.55); }
.Aura-perola .classic-flame-body { background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 45%, #e2e8f0 100%); box-shadow: 0 0 48px rgba(255, 255, 255, 0.85), inset 0 6px 14px rgba(255, 255, 255, 0.9), inset 0 -8px 16px rgba(148, 163, 184, 0.4); }
.Aura-terracota .classic-flame-body { background: linear-gradient(180deg, #9a3412 0%, #c2410c 50%, #fed7aa 100%); box-shadow: 0 0 44px rgba(234, 88, 12, 0.8), inset 0 6px 14px rgba(255, 255, 255, 0.55), inset 0 -8px 16px rgba(124, 45, 18, 0.55); }
.Aura-turquesa .classic-flame-body { background: linear-gradient(180deg, #0f766e 0%, #14b8a6 52%, #99f6e4 100%); box-shadow: 0 0 44px rgba(20, 184, 166, 0.85), inset 0 6px 14px rgba(255, 255, 255, 0.6), inset 0 -8px 16px rgba(17, 94, 89, 0.5); }
.Aura-indigo .classic-flame-body { background: linear-gradient(180deg, #1e1b4b 0%, #4338ca 52%, #c7d2fe 100%); box-shadow: 0 0 44px rgba(99, 102, 241, 0.85), inset 0 6px 14px rgba(255, 255, 255, 0.58), inset 0 -8px 16px rgba(30, 27, 75, 0.58); }
.Aura-ambar_mel .classic-flame-body { background: linear-gradient(180deg, #92400e 0%, #d97706 48%, #fde68a 100%); box-shadow: 0 0 46px rgba(245, 158, 11, 0.88), inset 0 6px 14px rgba(255, 255, 255, 0.68), inset 0 -8px 16px rgba(120, 53, 15, 0.5); }
.Aura-lirio_vale .classic-flame-body { background: linear-gradient(180deg, #ec4899 0%, #f9a8d4 48%, #fff1f2 100%); box-shadow: 0 0 44px rgba(244, 114, 182, 0.82), inset 0 6px 14px rgba(255, 255, 255, 0.85), inset 0 -8px 16px rgba(157, 23, 77, 0.4); }
.Aura-salomao .classic-flame-body { background: linear-gradient(180deg, #92400e 0%, #f59e0b 46%, #fef9c3 100%); box-shadow: 0 0 48px rgba(250, 204, 21, 0.9), inset 0 6px 14px rgba(255, 255, 255, 0.8), inset 0 -8px 16px rgba(120, 53, 15, 0.45); }
.Aura-carmelo .classic-flame-body { background: linear-gradient(180deg, #991b1b 0%, #ea580c 48%, #fde047 100%); box-shadow: 0 0 46px rgba(249, 115, 22, 0.88), inset 0 6px 14px rgba(255, 255, 255, 0.68), inset 0 -8px 16px rgba(127, 29, 29, 0.55); }
.Aura-safira_siao .classic-flame-body { background: linear-gradient(180deg, #172554 0%, #2563eb 52%, #bfdbfe 100%); box-shadow: 0 0 46px rgba(59, 130, 246, 0.88), inset 0 6px 14px rgba(255, 255, 255, 0.65), inset 0 -8px 16px rgba(30, 58, 138, 0.55); }
.Aura-pentecostes .classic-flame-body { background: linear-gradient(180deg, #f97316 0%, #facc15 44%, #ffffff 100%); box-shadow: 0 0 54px rgba(254, 240, 138, 0.95), 0 0 26px rgba(249, 115, 22, 0.78), inset 0 6px 16px rgba(255, 255, 255, 0.95), inset 0 -8px 16px rgba(194, 65, 12, 0.4); }
.Aura-natal_emanuel .classic-flame-body { background: linear-gradient(180deg, #059669 0%, #dc2626 42%, #f59e0b 72%, #fef9c3 100%); box-shadow: 0 0 46px rgba(251, 191, 36, 0.9), 0 0 28px rgba(16, 185, 129, 0.55), inset 0 6px 14px rgba(255, 255, 255, 0.78), inset 0 -8px 16px rgba(6, 78, 59, 0.45); }

/* --- PROVADOR DA CHAMA NA LOJA --- */
.shop-provador-scaler {
    position: relative; width: 104px; height: 118px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transform: scale(0.38); transform-origin: center center;
    pointer-events: none; filter: drop-shadow(0 0 6px rgba(251, 133, 0, 0.5));
}
.shop-provador-scaler .classic-flame-body {
    cursor: default; pointer-events: none; will-change: transform;
    transform-origin: center center !important;
    animation: headerMiniFlameBreathe 2.8s ease-in-out infinite alternate !important;
    box-shadow: 0 0 14px rgba(255, 123, 0, 0.55), inset 0 4px 8px rgba(255, 255, 255, 0.4), inset 0 -4px 8px rgba(194, 45, 0, 0.35) !important;
}
@keyframes shopItemHopBounce {
    0% { transform: scale(1) translateY(0); }
    20% { transform: scale(1.18, 0.82) translateY(5px); }
    48% { transform: scale(0.9, 1.2) translateY(-20px); }
    68% { transform: scale(1.1, 0.94) translateY(-3px); }
    86% { transform: scale(0.98, 1.02) translateY(0); }
    100% { transform: scale(1) translateY(0); }
}
.shop-provador-scaler .classic-flame-body.shop-item-hop {
    animation: shopItemHopBounce 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.shop-provador-scaler.Aura-dourada .classic-flame-body { box-shadow: 0 0 14px rgba(251, 191, 36, 0.65), inset 0 4px 8px rgba(255, 255, 255, 0.5) !important; }
.shop-provador-scaler.Aura-celeste .classic-flame-body { box-shadow: 0 0 14px rgba(6, 182, 212, 0.65), inset 0 4px 8px rgba(255, 255, 255, 0.5) !important; }
.shop-provador-scaler.Aura-sarca .classic-flame-body { box-shadow: 0 0 14px rgba(225, 29, 72, 0.65), inset 0 4px 8px rgba(255, 255, 255, 0.5) !important; }
.shop-provador-scaler.Aura-esmeralda .classic-flame-body { box-shadow: 0 0 14px rgba(16, 185, 129, 0.65), inset 0 4px 8px rgba(255, 255, 255, 0.5) !important; }
.shop-provador-scaler.Aura-ametista .classic-flame-body { box-shadow: 0 0 14px rgba(168, 85, 247, 0.65), inset 0 4px 8px rgba(255, 255, 255, 0.5) !important; }
.shop-provador-scaler.Aura-rose .classic-flame-body { box-shadow: 0 0 14px rgba(251, 113, 133, 0.65), inset 0 4px 8px rgba(255, 255, 255, 0.5) !important; }
.shop-provador-scaler.Aura-aurora .classic-flame-body { box-shadow: 0 0 14px rgba(168, 85, 247, 0.65), inset 0 4px 8px rgba(255, 255, 255, 0.5) !important; }
.shop-provador-scaler.Aura-serafim .classic-flame-body { box-shadow: 0 0 16px rgba(245, 158, 11, 0.75), inset 0 4px 8px rgba(255, 255, 255, 0.6) !important; }
.shop-provador-scaler.Aura-arcoiris .classic-flame-body { box-shadow: 0 0 16px rgba(168, 85, 247, 0.75), inset 0 4px 8px rgba(255, 255, 255, 0.6) !important; }
.shop-provador-scaler.Aura-shekinah .classic-flame-body { box-shadow: 0 0 20px rgba(255, 255, 255, 0.9), inset 0 4px 8px rgba(255, 255, 255, 0.8) !important; }
.shop-provador-scaler.Aura-oliva .classic-flame-body { box-shadow: 0 0 14px rgba(132, 204, 22, 0.65), inset 0 4px 8px rgba(255, 255, 255, 0.5) !important; }
.shop-provador-scaler.Aura-perola .classic-flame-body { box-shadow: 0 0 16px rgba(255, 255, 255, 0.85), inset 0 4px 8px rgba(255, 255, 255, 0.8) !important; }
.shop-provador-scaler.Aura-terracota .classic-flame-body { box-shadow: 0 0 14px rgba(234, 88, 12, 0.65), inset 0 4px 8px rgba(255, 255, 255, 0.5) !important; }
.shop-provador-scaler.Aura-turquesa .classic-flame-body { box-shadow: 0 0 15px rgba(20, 184, 166, 0.7), inset 0 4px 8px rgba(255, 255, 255, 0.55) !important; }
.shop-provador-scaler.Aura-indigo .classic-flame-body { box-shadow: 0 0 15px rgba(99, 102, 241, 0.75), inset 0 4px 8px rgba(255, 255, 255, 0.55) !important; }
.shop-provador-scaler.Aura-ambar_mel .classic-flame-body { box-shadow: 0 0 15px rgba(245, 158, 11, 0.75), inset 0 4px 8px rgba(255, 255, 255, 0.6) !important; }
.shop-provador-scaler.Aura-lirio_vale .classic-flame-body { box-shadow: 0 0 15px rgba(244, 114, 182, 0.7), inset 0 4px 8px rgba(255, 255, 255, 0.75) !important; }
.shop-provador-scaler.Aura-salomao .classic-flame-body { box-shadow: 0 0 16px rgba(250, 204, 21, 0.85), inset 0 4px 8px rgba(255, 255, 255, 0.7) !important; }
.shop-provador-scaler.Aura-carmelo .classic-flame-body { box-shadow: 0 0 16px rgba(239, 68, 68, 0.8), inset 0 4px 8px rgba(255, 255, 255, 0.6) !important; }
.shop-provador-scaler.Aura-safira_siao .classic-flame-body { box-shadow: 0 0 16px rgba(59, 130, 246, 0.8), inset 0 4px 8px rgba(255, 255, 255, 0.6) !important; }
.shop-provador-scaler.Aura-pentecostes .classic-flame-body { box-shadow: 0 0 18px rgba(254, 240, 138, 0.9), inset 0 4px 8px rgba(255, 255, 255, 0.85) !important; }
.shop-provador-scaler.Aura-natal_emanuel .classic-flame-body { box-shadow: 0 0 16px rgba(251, 191, 36, 0.85), 0 0 10px rgba(16, 185, 129, 0.55), inset 0 4px 8px rgba(255, 255, 255, 0.7) !important; }

/* --- EXPRESSÕES FACIAIS & OLHOS --- */
.classic-flame-core {
    width: 64px; height: 70px;
    background: radial-gradient(circle at 44% 34%, #ffffff 0%, #fef08a 58%, #f59e0b 100%);
    border-radius: 50% 50% 40% 40% / 60% 60% 38% 38%;
    box-shadow: 0 3px 10px rgba(180, 83, 9, 0.28), 0 0 24px rgba(254, 240, 138, 0.92), inset 0 4px 8px rgba(255, 255, 255, 0.90), inset 0 -5px 10px rgba(217, 119, 6, 0.30);
    display: flex; flex-direction: column; align-items: center; position: relative; padding-bottom: 6px; transition: transform 0.25s ease, box-shadow 0.25s ease;
    justify-content: flex-start; padding-top: 20px;
}

.flame-eyes-row { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 5px; position: relative; z-index: 5; height: 13.5px; }
.flame-eye {
    width: 10px; height: 12.5px;
    background: radial-gradient(circle at 35% 35%, #3b2316 0%, #160d08 75%);
    border-radius: 50%; position: relative;
    box-shadow: 0 2px 4px rgba(146, 64, 14, 0.35), inset 0 -2px 3px rgba(251, 191, 36, 0.25);
    transition: transform 0.14s ease, height 0.14s ease, border-radius 0.14s ease;
}
.flame-eye::before { content: ''; position: absolute; top: 2px; right: 2px; width: 4.5px; height: 4.5px; background: #ffffff; border-radius: 50%; }
.flame-eye::after { content: ''; position: absolute; bottom: 2px; left: 2.5px; width: 2.5px; height: 2.5px; background: rgba(255, 255, 255, 0.85); border-radius: 50%; }

.flame-cheeks-row { position: absolute; top: 32px; width: 50px; display: flex; justify-content: space-between; pointer-events: none; }
.flame-cheek {
    width: 9px; height: 5px;
    background: radial-gradient(circle at 40% 40%, #ff758f 0%, #f43f5e 100%);
    border-radius: 50%; opacity: 0.78;
    box-shadow: 0 1px 4px rgba(225, 29, 72, 0.35);
    transition: all 0.3s ease;
}

.flame-mouth {
    width: 14px; height: 7px; background: #1e1510; border-radius: 2px 2px 12px 12px; position: relative; overflow: hidden; transition: all 0.2s ease;
    z-index: 18; /* Mantém a boca e suas expressões sempre visíveis sobre barbas e bigodes */
}
.flame-mouth::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 70%; height: 50%; background: #fb7185; border-radius: 50% 50% 0 0;
}

.face-blink .flame-eye { transform: scaleY(0.12); }
.face-happy .flame-eye { background: transparent; border-top: 3.5px solid #1e1510; border-radius: 50% 50% 0 0; height: 7px; transform: translateY(2px); }
.face-happy .flame-eye::before, .face-happy .flame-eye::after { display: none; }
.face-happy .flame-mouth { width: 18px; height: 10px; border-radius: 3px 3px 14px 14px; }
.face-happy .flame-cheek { opacity: 0.9; transform: scale(1.25); }

.face-oil .flame-eye { transform: scale(1.18); }
.face-oil .flame-mouth { width: 16px; height: 11px; border-radius: 4px 4px 14px 14px; }
.face-oil .flame-cheek { opacity: 0.95; transform: scale(1.3); }

.face-sing .flame-eye { background: transparent; border-top: 3.5px solid #1e1510; border-radius: 50% 50% 0 0; height: 7px; transform: translateY(2px); }
.face-sing .flame-eye::before, .face-sing .flame-eye::after { display: none; }
.face-sing .flame-mouth { width: 12px; height: 14px; border-radius: 50%; animation: mouthSingPulse 0.35s ease-in-out infinite alternate; }

.face-wind .flame-eye:first-child { transform: scaleY(0.35) rotate(-8deg); }
.face-wind .flame-eye:last-child { transform: scaleY(0.65) rotate(-8deg); }
.face-wind .flame-mouth { width: 13px; height: 8px; border-radius: 50%; transform: translateX(3px); }

.face-heal .flame-eye { background: transparent; border-bottom: 3px solid #1e1510; border-radius: 0 0 50% 50%; height: 6px; transform: translateY(-1px); }
.face-heal .flame-eye::before, .face-heal .flame-eye::after { display: none; }
.face-heal .flame-mouth { width: 15px; height: 6px; border-radius: 2px 2px 12px 12px; }
.face-heal .flame-cheek { background: #34d399; opacity: 0.75; }

.face-sleep .flame-eye { background: transparent; border-bottom: 3px solid #1e1510; border-radius: 0 0 50% 50%; height: 6px; transform: translateY(-2px); }
.face-sleep .flame-eye::before, .face-sleep .flame-eye::after { display: none; }
.face-sleep .flame-mouth { width: 8px; height: 3px; border-radius: 99px; background: #1e1510; }
.face-sleep .flame-mouth::after { display: none; }

.face-sad .flame-eye { height: 10px; transform: translateY(2px); }
.face-sad .flame-eye:first-child { border-radius: 30% 60% 50% 50%; }
.face-sad .flame-eye:last-child { border-radius: 60% 30% 50% 50%; }
.face-sad .flame-eyes-row::before, .face-sad .flame-eyes-row::after { content: ''; position: absolute; top: -6px; width: 9px; height: 2.5px; background: #1e1510; border-radius: 99px; }
.face-sad .flame-eyes-row::before { left: calc(50% - 15px); transform: rotate(-20deg); }
.face-sad .flame-eyes-row::after { right: calc(50% - 15px); transform: rotate(20deg); }
.face-sad .flame-mouth { width: 14px; height: 6px; border-radius: 12px 12px 2px 2px; margin-top: 3px; }
.face-sad .flame-mouth::after { display: none; }
.face-sad .flame-cheek { opacity: 0.2; }
.face-sad.face-blink .flame-eye { transform: scaleY(0.12); }

/* --- ESTÁGIOS EVOLUTIVOS DA CHAMA (7 FAIXAS ETÁRIAS DA JORNADA ANUAL) --- */
/* 1. Centelha Viva (Início da Jornada) */
.stage-spark .classic-flame-body { width: 88px; height: 95px; border-radius: 50% 50% 46% 46% / 55% 55% 45% 45%; }
.stage-spark .classic-flame-core { width: 58px; height: 59px; padding-top: 15px; }
.stage-spark .flame-eye { width: 11px; height: 14px; }
.stage-spark .face-happy .flame-eye, .stage-spark .face-sing .flame-eye { height: 7px; }
.stage-spark .face-heal .flame-eye, .stage-spark .face-sleep .flame-eye { height: 6px; }
.stage-spark .face-sad .flame-eye { height: 11px; }
.stage-spark .flame-cheek { opacity: 0.85; transform: scale(1.2); }

/* 2. Baby Chama (Primeiros Livros do AT) */
.stage-baby .classic-flame-body { width: 94px; height: 102px; border-radius: 50% 50% 44% 44% / 56% 56% 44% 44%; }
.stage-baby .classic-flame-core { width: 61px; height: 63px; padding-top: 16px; }
.stage-baby .flame-eye { width: 11px; height: 13.5px; }
.stage-baby .face-happy .flame-eye, .stage-baby .face-sing .flame-eye { height: 7px; }
.stage-baby .face-heal .flame-eye, .stage-baby .face-sleep .flame-eye { height: 6px; }
.stage-baby .face-sad .flame-eye { height: 11px; }
.stage-baby .flame-cheek { opacity: 0.75; transform: scale(1.15); }

/* 3. Chama Aprendiz (Criança — Livros Históricos) */
.stage-child .classic-flame-body { width: 98px; height: 109px; border-radius: 50% 50% 42% 42% / 58% 58% 42% 42%; }
.stage-child .classic-flame-core { width: 64px; height: 66px; padding-top: 17px; }
.stage-child .flame-crest { transform: rotate(45deg) scale(0.68); opacity: 0.85; animation: crestFlicker 2.1s ease-in-out infinite alternate; }

/* 4. Chama Jovem (Livros Poéticos e Sabedoria) & 5. Jovem Guardiã (Profetas do AT) */
.stage-guardian .classic-flame-body { width: 104px; height: 118px; border-radius: 50% 50% 38% 38% / 62% 62% 38% 38%; }

.flame-crest {
    position: absolute; top: -12px; width: 26px; height: 26px; background: linear-gradient(180deg, #ff2a55 0%, #ff7b00 100%);
    border-radius: 0 50% 50% 50%; transform: rotate(45deg) scale(0); opacity: 0; transition: all 0.4s ease; z-index: 2; filter: drop-shadow(0 -4px 8px rgba(255, 59, 92, 0.6));
}
.stage-youth .flame-crest, .stage-guardian .flame-crest, .stage-adult .flame-crest, .stage-elder .flame-crest { transform: rotate(45deg) scale(1); opacity: 1; animation: crestFlicker 1.8s ease-in-out infinite alternate; }

/* 6. Chama Adulta (Final do Velho Testamento em diante) & 7. Sábio Ancião (Final do Novo Testamento) */
.stage-adult .classic-flame-body, .stage-elder .classic-flame-body { width: 108px; height: 126px; border-radius: 50% 50% 35% 35% / 66% 66% 34% 34%; }
.flame-wing-left, .flame-wing-right {
    position: absolute; bottom: 18px; width: 28px; height: 52px; background: linear-gradient(180deg, #ff5400 0%, #ffbe0b 100%);
    border-radius: 50% 50% 30% 30%; opacity: 0; transform: scale(0); transition: all 0.4s ease; z-index: 3;
}
.flame-wing-left { left: 2px; transform-origin: bottom right; }
.flame-wing-right { right: 2px; transform-origin: bottom left; }

.stage-guardian .flame-wing-left { opacity: 0.72; transform: rotate(-18deg) scale(0.72); }
.stage-guardian .flame-wing-right { opacity: 0.72; transform: rotate(18deg) scale(0.72); }
.stage-adult .flame-wing-left, .stage-elder .flame-wing-left { opacity: 0.9; transform: rotate(-24deg) scale(1); }
.stage-adult .flame-wing-right, .stage-elder .flame-wing-right { opacity: 0.9; transform: rotate(24deg) scale(1); }

.flame-halo-crown {
    position: absolute; top: -24px; width: 58px; height: 16px; border: 3.5px solid #fff3b0; border-radius: 50%;
    box-shadow: 0 0 14px #ffb703, inset 0 0 8px #ffb703; opacity: 0; transform: scale(0.5); transition: all 0.4s ease; z-index: 8;
}
.stage-elder .flame-halo-crown { opacity: 1; transform: scale(1); animation: floatHalo 2.2s ease-in-out infinite alternate; }

/* Estados Radiante, Dormindo e Brasa */
.state-radiant .classic-flame-body { box-shadow: 0 0 48px rgba(255, 183, 3, 0.95), 0 0 18px rgba(255, 255, 255, 0.7), inset 0 6px 14px rgba(255, 255, 255, 0.5); }
.state-sleeping .classic-flame-body { box-shadow: 0 0 30px rgba(255, 145, 30, 0.55), 0 0 20px rgba(56, 189, 248, 0.32), inset 0 6px 14px rgba(255, 255, 255, 0.52); animation-duration: 5.5s; }
.state-ember { --relight-heat: 0; }
.state-ember .classic-flame-body {
    filter: grayscale(calc(0.88 - (var(--relight-heat, 0) * 0.88))) brightness(calc(0.55 + (var(--relight-heat, 0) * 0.62))) saturate(calc(0.85 + (var(--relight-heat, 0) * 0.6)));
    box-shadow: 0 0 calc(10px + (var(--relight-heat, 0) * 44px)) rgba(255, 100, 12, calc(0.35 + (var(--relight-heat, 0) * 0.62))), inset 0 0 calc(4px + (var(--relight-heat, 0) * 18px)) rgba(255, 232, 130, calc(var(--relight-heat, 0) * 0.78));
    transform: scale(calc(0.75 + (var(--relight-heat, 0) * 0.25)));
    touch-action: none !important;
    cursor: grab;
    transition: filter 0.16s ease, box-shadow 0.16s ease, transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
.state-ember.is-rubbing .classic-flame-body {
    cursor: grabbing;
    filter: grayscale(calc(0.88 - (var(--relight-heat, 0) * 0.88))) brightness(calc(0.68 + (var(--relight-heat, 0) * 0.58))) saturate(calc(0.95 + (var(--relight-heat, 0) * 0.55))) !important;
    box-shadow: 0 0 calc(18px + (var(--relight-heat, 0) * 52px)) rgba(255, 120, 20, calc(0.5 + (var(--relight-heat, 0) * 0.48))), inset 0 0 calc(8px + (var(--relight-heat, 0) * 20px)) rgba(255, 240, 160, calc(0.2 + (var(--relight-heat, 0) * 0.7))) !important;
}

/* --- PEDESTAIS --- */
.pedestal-base { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); width: 120px; height: 40px; border-radius: 50%; z-index: 6; transition: all 0.3s ease; pointer-events: none; }
.pedestal-base.pedestal-svg { background: transparent !important; border: none !important; box-shadow: none !important; border-radius: 0 !important; filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.42)); }
.stage-spark .pedestal-base.pedestal-svg, .stage-baby .pedestal-base.pedestal-svg { transform: translateX(-50%) scale(0.92); bottom: -19px; }
.pedestal-madeira { background: linear-gradient(180deg, #8b5a2b 0%, #4a2c11 100%); border: 2px solid #a06b38; box-shadow: 0 6px 0 #2d1908, 0 10px 20px rgba(0,0,0,0.6); }
.pedestal-marmore { background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 50%, #94a3b8 100%); border: 2px solid #ffffff; box-shadow: 0 6px 0 #64748b, 0 10px 20px rgba(0,0,0,0.45); }
.pedestal-ouro { background: linear-gradient(90deg, #b38728 0%, #fbf5b7 50%, #976f1c 100%); border: 2px solid #fef08a; box-shadow: 0 6px 0 #714f0d, 0 0 25px rgba(255, 183, 3, 0.5); }
.pedestal-safira { background: linear-gradient(135deg, #1d4ed8 0%, #38bdf8 50%, #1e3a8a 100%); border: 2px solid #bae6fd; box-shadow: 0 6px 0 #172554, 0 0 24px rgba(56, 189, 248, 0.55); }
.pedestal-rubi { background: linear-gradient(135deg, #9f1239 0%, #fb7185 50%, #881337 100%); border: 2px solid #fecdd3; box-shadow: 0 6px 0 #4c0519, 0 0 24px rgba(251, 113, 133, 0.55); }
.pedestal-base_sarca { background: linear-gradient(180deg, #78350f 0%, #b45309 50%, #451a03 100%); border: 2px solid #f97316; box-shadow: 0 6px 0 #291003, 0 0 26px rgba(249, 115, 22, 0.6); }
.pedestal-base_arca { background: linear-gradient(90deg, #d97706 0%, #fef08a 40%, #f59e0b 70%, #b45309 100%); border: 2px solid #fffbeb; box-shadow: 0 6px 0 #78350f, 0 0 30px rgba(250, 204, 21, 0.7); }
.pedestal-base_cristal { background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(186,230,253,0.7) 40%, rgba(224,231,255,0.85) 100%); border: 2px solid #ffffff; box-shadow: 0 6px 0 #7dd3fc, 0 0 32px rgba(125, 211, 252, 0.75); backdrop-filter: blur(8px); }
.pedestal-base_pedra_manancial { background: linear-gradient(135deg, #334155 0%, #64748b 50%, #1e293b 100%); border: 2px solid #38bdf8; box-shadow: 0 6px 0 #0f172a, 0 0 24px rgba(56, 189, 248, 0.5); }
.pedestal-base_oliveira_rustica { background: linear-gradient(180deg, #5c3a21 0%, #3e2415 60%, #26150b 100%); border: 2px solid #854d0e; box-shadow: 0 6px 0 #1c1008, 0 8px 18px rgba(0, 0, 0, 0.6); }
.pedestal-base_podium_minimal { background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%); border: 1.5px solid #facc15; box-shadow: 0 6px 0 #020617, 0 0 22px rgba(250, 204, 21, 0.4); }
.pedestal-base_obsidian_ouro { background: radial-gradient(ellipse at 50% 35%, #334155 0%, #0f172a 55%, #020617 100%); border: 2px solid #fbbf24; box-shadow: 0 6px 0 #020617, 0 0 26px rgba(251, 191, 36, 0.55), inset 0 2px 5px rgba(255, 255, 255, 0.2); }
.pedestal-base_jardim_lirios { background: radial-gradient(ellipse at 50% 35%, #86efac 0%, #16a34a 52%, #14532d 100%); border: 2px solid #f0fdf4; box-shadow: 0 6px 0 #052e16, 0 0 24px rgba(74, 222, 128, 0.5); }
.pedestal-base_alabastro_rosa { background: radial-gradient(ellipse at 50% 35%, #fff1f2 0%, #fecdd3 52%, #fda4af 100%); border: 2px solid #ffffff; box-shadow: 0 6px 0 #be123c, 0 0 26px rgba(251, 113, 133, 0.5); }

/* --- SLOTS DE ACESSÓRIOS E COSMÉTICOS DA CHAMA (SUPORTA MÚLTIPLOS ITENS SOBREPOSTOS) --- */
.flame-cosmetic-slot { position: absolute; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.flame-cosmetic-layer { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.flame-hat-slot { top: -12px; left: 50%; transform: translateX(-50%); width: 88px; height: 48px; z-index: 16; }
.flame-glasses-slot { top: 12px; left: 50%; transform: translateX(-50%); width: 62px; height: 26px; z-index: 19; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45)); }
.flame-mustache-slot { top: 27px; left: 50%; transform: translateX(-50%); width: 56px; height: 34px; z-index: 15; }
.stage-spark .flame-mustache-slot, .stage-baby .flame-mustache-slot { top: 25px; }
.flame-makeup-slot { inset: 0; z-index: 4; transition: transform 0.14s ease; }

/* Sincronização inteligente de maquiagens com o estado dos olhos (dormindo, curando e piscando) */
.makeup-sleep-only {
    display: none !important;
}

/* 1. Ao piscar (.face-blink): o delineado e cílios abertos piscam perfeitamente junto com os olhos */
.face-blink .flame-makeup-slot .mkp-eye-sync {
    transform: scaleY(0.12);
    transform-origin: 50% 12%;
    transition: transform 0.1s ease;
}

/* 2. Olhos fechados (.face-sleep, .face-heal, .state-sleeping, .state-ember):
      oculta cílios e traços abertos que ficariam flutuando e ativa o traço delicado de repouso */
.face-sleep .flame-makeup-slot .makeup-open-only,
.face-heal .flame-makeup-slot .makeup-open-only,
.state-sleeping .flame-makeup-slot .makeup-open-only,
.state-ember .flame-makeup-slot .makeup-open-only,
#hero-flame-actor.state-sleeping .flame-makeup-slot .makeup-open-only,
#hero-flame-actor.state-ember .flame-makeup-slot .makeup-open-only {
    display: none !important;
}

.face-sleep .flame-makeup-slot .makeup-sleep-only,
.face-heal .flame-makeup-slot .makeup-sleep-only,
.state-sleeping .flame-makeup-slot .makeup-sleep-only,
.state-ember .flame-makeup-slot .makeup-sleep-only,
#hero-flame-actor.state-sleeping .flame-makeup-slot .makeup-sleep-only,
#hero-flame-actor.state-ember .flame-makeup-slot .makeup-sleep-only {
    display: block !important;
}
.flame-accessory-slot { bottom: -6px; left: 50%; transform: translateX(-50%); width: 112px; height: 46px; z-index: 14; }
.stage-guardian .flame-hat-slot { top: -15px; transform: translateX(-50%) scale(1.05); }
.stage-adult .flame-hat-slot, .stage-elder .flame-hat-slot { top: -12px; transform: translateX(-50%) scale(1.1); }
.stage-adult .flame-accessory-slot, .stage-elder .flame-accessory-slot { bottom: -2px; transform: translateX(-50%) scale(1.1); }

/* --- VAGA-LUMES E PARTICULAS DE SONO --- */
#firefly-container { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; border-radius: 38px; }
.firefly { position: absolute; width: 5px; height: 5px; background: #6ee7b7; border-radius: 50%; box-shadow: 0 0 10px 3px rgba(52, 211, 153, 0.8); animation: fireflyOrbit 9s ease-in-out infinite alternate; will-change: transform, opacity; }

.zzz-item { position: absolute; font-weight: 900; color: #7dd3fc; pointer-events: none; z-index: 25; animation: floatZzzUp 2.8s ease-out forwards; will-change: transform, opacity; text-shadow: 0 2px 10px rgba(56, 189, 248, 0.65); letter-spacing: 0.02em; }
.light-theme .zzz-item { color: #0284c7; text-shadow: 0 2px 8px rgba(14, 165, 233, 0.38); }

/* --- CARREGAMENTO INICIAL & BRASA DO BOOT --- */
#boot-ember { display: none; }
.app-booting #boot-ember {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
.boot-ember-glow {
    width: 64px; height: 72px; border-radius: 50% 50% 40% 40% / 60% 60% 38% 38%;
    background: radial-gradient(circle at 50% 65%, #ffbe0b 0%, #ff7b00 45%, rgba(255, 59, 92, 0.6) 75%, transparent 100%);
    filter: blur(1px); opacity: 0.55; will-change: transform, opacity;
    animation: bootEmberPulse 1.4s ease-in-out infinite alternate;
}
.app-booting #hero-flame-actor { opacity: 0; }
.app-booting #hero-flame-actor * { animation-play-state: paused !important; }
#tab-pet > :not(#firefly-container), header > * { transition: opacity 0.35s ease; }
.app-booting #tab-pet > :not(#firefly-container):not(#pet-stage-anchor),
.app-booting header > *, .app-booting #firefly-container { opacity: 0; }
.hero-no-anim { transition: none !important; }

/* --- ONBOARDING DA CHAMA COM ASCENSÃO REAL --- */
.ob-flame-wrapper {
    position: relative;
    padding: 18px 12px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}
.ob-flame-figure {
    position: relative;
    width: 124px;
    height: 144px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}
.ob-altar-pedestal {
    position: absolute;
    bottom: 2px;
    width: 96px;
    height: 13px;
    background: radial-gradient(ellipse at center, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55), 0 0 18px rgba(251, 146, 60, 0.18);
    z-index: 1;
}
.ob-flame-actor {
    position: relative;
    width: 98px;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    transform-origin: bottom center;
    z-index: 5;
    margin-bottom: 6px;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.8s ease;
}
.ob-flame-actor.stage-baby {
    transform-origin: bottom center;
}
.ob-flame-actor.stage-baby .flame-crest,
.ob-flame-actor.stage-baby .flame-wing-left,
.ob-flame-actor.stage-baby .flame-wing-right,
.ob-flame-actor.stage-baby .flame-halo-crown {
    opacity: 0 !important;
    transform: scale(0) !important;
    animation: none !important;
    display: none !important;
}
.ob-flame-actor.is-dormant {
    transform: scale(0.74) translateY(6px);
    filter: brightness(0.6) saturate(0.7);
}
.ob-flame-actor.is-dormant .classic-flame-body {
    animation: obEmberBreathe 2.4s ease-in-out infinite alternate !important;
    box-shadow: 0 0 16px rgba(255, 90, 0, 0.4), inset 0 2px 8px rgba(255, 255, 255, 0.2) !important;
}
.ob-flame-actor.is-dormant .flame-crest { transform: rotate(45deg) scale(0); opacity: 0; }
.ob-flame-actor.is-dormant .flame-wing-left,
.ob-flame-actor.is-dormant .flame-wing-right { opacity: 0; transform: scale(0); }
.ob-flame-actor.is-dormant .flame-halo-crown { opacity: 0; transform: scale(0); }

.ob-flame-actor.is-ignited {
    transform: scale(0.98) translateY(-4px);
    filter: brightness(1.05) saturate(1.1);
    animation: obAscendUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.ob-flame-actor.is-ignited .classic-flame-body {
    animation: classicFlameBreathe 2.8s ease-in-out infinite alternate !important;
    box-shadow: 0 0 42px rgba(255, 123, 0, 0.72), 0 0 72px rgba(255, 190, 11, 0.32), inset 0 6px 14px rgba(255, 255, 255, 0.48) !important;
}
.ob-flame-actor.stage-baby .ob-face-charisma .flame-cheeks-row,
.ob-flame-actor.stage-baby .ob-face-need .flame-cheeks-row {
    top: 31px !important;
    width: 48px !important;
}

.ob-spark {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: #fde047;
    box-shadow: 0 0 8px #f59e0b;
    animation: floatSpark 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    z-index: 10;
}
.ob-pulse-target {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 112px;
    height: 112px;
    margin-top: -54px;
    margin-left: -56px;
    border-radius: 50%;
    border: 2px dashed rgba(251, 146, 60, 0.65);
    pointer-events: none;
    animation: obTargetPulse 2s ease-in-out infinite;
    z-index: 2;
}

/* Expressão carismática com olhos bem abertos e brilho vivo no Onboarding */
.ob-brows-row {
    position: relative;
    width: 36px;
    height: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1px;
    z-index: 6;
    pointer-events: none;
}
.ob-brow {
    width: 9px;
    height: 3.5px;
    border-top: 2.3px solid #7c2d12;
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.classic-flame-core.ob-face-charisma {
    padding-top: 15px !important;
}
.ob-face-charisma .ob-brow:first-child { transform: translateY(-1px) rotate(-9deg); }
.ob-face-charisma .ob-brow:last-child { transform: translateY(-1px) rotate(9deg); }
.ob-face-charisma .flame-eyes-row {
    gap: 10px;
    margin-bottom: 4px;
    height: 15px;
}
.ob-face-charisma .flame-eye {
    width: 11px !important;
    height: 14px !important;
    background: radial-gradient(circle at 36% 32%, #4a2815 0%, #150b06 78%) !important;
    border: none !important;
    border-radius: 50% !important;
    transform-origin: center center;
    animation: obCharismaBlink 4.6s ease-in-out infinite;
    box-shadow: 0 2px 5px rgba(146, 64, 14, 0.36), inset 0 -2px 3px rgba(251, 191, 36, 0.28) !important;
}
.ob-face-charisma .flame-eye::before {
    display: block !important;
    content: '';
    top: 2px;
    right: 2px;
    width: 5px;
    height: 5px;
    background: #ffffff;
    border-radius: 50%;
}
.ob-face-charisma .flame-eye::after {
    display: block !important;
    content: '';
    bottom: 2.5px;
    left: 2.5px;
    width: 2.6px;
    height: 2.6px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
}
.ob-face-charisma .flame-cheeks-row {
    top: 34px !important;
    width: 52px !important;
}
.ob-face-charisma .flame-cheek {
    width: 10px;
    height: 5.5px;
    opacity: 0.9;
}
.ob-face-charisma .flame-mouth {
    width: 16px !important;
    height: 9px !important;
    background: #5c1313 !important;
    border: 1.5px solid #2c0909 !important;
    border-radius: 3px 3px 12px 12px !important;
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
    transform: none !important;
    box-shadow: none !important;
}
.ob-face-charisma .flame-mouth::after {
    content: '';
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: -2px;
    height: 5.5px;
    background: #fb7185;
    border-radius: 50%;
}

/* Expressão suplicante com olhos abertos quando as barras estão baixas */
.classic-flame-core.ob-face-need {
    padding-top: 15px !important;
}
.ob-face-need .ob-brow:first-child { transform: translateY(1.5px) rotate(-18deg); }
.ob-face-need .ob-brow:last-child { transform: translateY(1.5px) rotate(18deg); }
.ob-face-need .flame-eye {
    width: 11px !important;
    height: 13.5px !important;
    background: radial-gradient(circle at 38% 35%, #4a2815 0%, #150b06 80%) !important;
    border: none !important;
    border-radius: 50% !important;
}
.ob-face-need .flame-eye::before {
    display: block !important;
    width: 5.2px;
    height: 5.2px;
    top: 2px;
    right: 2px;
}
.ob-face-need .flame-eye::after {
    display: block !important;
    width: 2.6px;
    height: 2.6px;
}
.ob-face-need .flame-cheek {
    opacity: 0.55;
}
.ob-face-need .flame-mouth {
    width: 8px !important;
    height: 6.5px !important;
    background: #7f1d1d !important;
    border: 1.5px solid #450a0a !important;
    border-radius: 50% !important;
    margin-top: 1px !important;
}
.ob-happy-hop {
    animation: obHappyHop 0.52s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes obCharismaBlink {
    0%, 91%, 97%, 100% { transform: scaleY(1); }
    94% { transform: scaleY(0.14); }
}
@keyframes obHappyHop {
    0% { transform: translateY(0) scale(1); }
    38% { transform: translateY(-10px) scale(1.06, 0.96); }
    72% { transform: translateY(1px) scale(0.98, 1.03); }
    100% { transform: translateY(0) scale(1); }
}

/* Story 1: Brasinha inicial + fricção antiga (esfregar dedo / mouse) */
.ob-ember-zone {
    position: relative;
    width: 256px;
    padding: 10px 14px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}
.ob-ember-zone:active,
.ob-ember-zone.is-rubbing {
    cursor: grabbing;
}
.ob-ember-stage-visual {
    position: relative;
    width: 192px;
    height: 152px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 6px;
    overflow: visible;
}
.ob-ember-aura {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 148px;
    height: 132px;
    transform: translate(-50%, -50%) scale(calc(0.82 + var(--ob-heat, 0) * 0.58));
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 146, 60, calc(0.18 + var(--ob-heat, 0) * 0.65)) 0%, rgba(239, 68, 68, calc(0.08 + var(--ob-heat, 0) * 0.32)) 52%, transparent 74%);
    filter: blur(10px);
    pointer-events: none;
    transition: transform 0.12s ease-out;
}
#ob-ember-actor {
    position: relative;
    z-index: 4;
    transform-origin: bottom center;
}
#ob-ember-zone.is-rubbing #ob-ember-actor .classic-flame-body {
    filter: grayscale(calc(0.88 - (var(--relight-heat, 0) * 0.88))) brightness(calc(0.68 + (var(--relight-heat, 0) * 0.58))) saturate(calc(0.95 + (var(--relight-heat, 0) * 0.55)));
    box-shadow: 0 0 calc(18px + (var(--relight-heat, 0) * 52px)) rgba(255, 120, 20, calc(0.5 + (var(--relight-heat, 0) * 0.48))), inset 0 0 calc(8px + (var(--relight-heat, 0) * 20px)) rgba(255, 240, 160, calc(0.2 + (var(--relight-heat, 0) * 0.7)));
}
.ob-rub-hand {
    display: inline-block;
    animation: obRubHandMove 1.15s ease-in-out infinite;
}
.ob-heat-track {
    width: 168px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    overflow: hidden;
    margin-top: 8px;
}
.ob-heat-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316 0%, #facc15 65%, #ffffff 100%);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.85);
    transition: width 0.08s linear;
}
.ob-spark-friction {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, #ffffff 0%, #fde047 55%, #f97316 100%);
    box-shadow: 0 0 12px #fde047, 0 0 5px #ffffff;
    animation: obFrictionSpark 0.78s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    z-index: 15;
}
@keyframes obEmberPulse {
    0% { filter: brightness(0.92); }
    100% { filter: brightness(1.18); }
}
@keyframes obRubHandMove {
    0%, 100% { transform: translateX(-5px) rotate(-8deg); }
    50% { transform: translateX(5px) rotate(10deg); }
}
@keyframes obFrictionSpark {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
    100% { opacity: 0; transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, -44px))) scale(0.18); }
}
.btn-pulse-glow {
    animation: btnPulseGlow 1.8s infinite !important;
    background: linear-gradient(135deg, #fb8500 0%, #ffb703 100%) !important;
    color: #0d131f !important;
    font-weight: 900 !important;
}

/* ==========================================================================
   CENÁRIOS DO ALTAR & PROVADOR (SCENERIES)
   Ambientes minimalistas, de alto contraste e performance 60fps
   ========================================================================== */
.altar-scenery-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    transition: opacity 0.6s ease-in-out;
}

.scenery-base-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Palco focado do mascote (Fica diretamente atrás da Chama no Altar) */
.altar-stage-scenery {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 240px;
    max-width: 95vw;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: visible;
    z-index: 4;
    transition: opacity 0.4s ease;
}

/* Palco focado do mascote no provador da loja (ajustado em proporção à miniatura) */
.shop-hero-stage-scenery {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.76);
    width: 350px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: visible;
    z-index: 4;
    transition: opacity 0.4s ease;
}

/* Sinai Dusk */
.scenery-bg-sinai {
    background: radial-gradient(ellipse at 50% 40%, #1a162b 0%, #0d1326 50%, #080c18 75%, #180f08 100%);
}
.light-theme .scenery-bg-sinai {
    background: radial-gradient(ellipse at 50% 35%, #fff3e0 0%, #ffe0b2 40%, #f0e6dd 75%, #e2d9d0 100%);
}

/* Olive Garden */
.scenery-bg-olive {
    background: radial-gradient(ellipse at 50% 40%, #0a2122 0%, #08171a 50%, #051013 75%, #030a0d 100%);
}
.light-theme .scenery-bg-olive {
    background: radial-gradient(ellipse at 50% 35%, #e8f5e9 0%, #c8e6c9 40%, #e0ece2 75%, #d5e2d8 100%);
}

/* Modern Study */
.scenery-bg-study {
    background: radial-gradient(ellipse at 50% 35%, #221d28 0%, #17161b 50%, #0b0f19 75%, #060911 100%);
}
.light-theme .scenery-bg-study {
    background: radial-gradient(ellipse at 50% 35%, #fdf6ec 0%, #f5e8d7 45%, #ece1d2 75%, #dfd5c7 100%);
}

/* Lavender Dawn */
.scenery-bg-lavender {
    background: radial-gradient(ellipse at 50% 38%, #201538 0%, #150f26 50%, #0c0919 75%, #1b1229 100%);
}
.light-theme .scenery-bg-lavender {
    background: radial-gradient(ellipse at 50% 35%, #f3e8ff 0%, #e9d5ff 40%, #fae8ff 75%, #ede0f7 100%);
}

/* Anim: Fireflies */
.scenery-bg-fireflies {
    background: radial-gradient(ellipse at 50% 40%, #0d2327 0%, #09171e 50%, #051016 75%, #02090d 100%);
}
.light-theme .scenery-bg-fireflies {
    background: radial-gradient(ellipse at 50% 35%, #e0f2fe 0%, #bae6fd 40%, #dbeafe 75%, #d1e2f3 100%);
}
@keyframes sceneryFireflyOrbit1 {
    0% { transform: translate(0, 0) scale(0.9); opacity: 0.3; }
    50% { transform: translate(24px, -35px) scale(1.2); opacity: 0.95; }
    100% { transform: translate(0, 0) scale(0.9); opacity: 0.3; }
}
@keyframes sceneryFireflyOrbit2 {
    0% { transform: translate(0, 0) scale(1.1); opacity: 0.4; }
    50% { transform: translate(-30px, -45px) scale(0.85); opacity: 0.9; }
    100% { transform: translate(0, 0) scale(1.1); opacity: 0.4; }
}
@keyframes sceneryFireflyOrbit3 {
    0% { transform: translate(0, 0) scale(0.8); opacity: 0.25; }
    50% { transform: translate(35px, 25px) scale(1.25); opacity: 0.85; }
    100% { transform: translate(0, 0) scale(0.8); opacity: 0.25; }
}
/* Órbitas concentradas no palco ao redor do mascote */
@keyframes sceneryFireflyStageOrbit1 {
    0% { transform: translate(-48px, -20px) scale(0.85); opacity: 0.35; }
    35% { transform: translate(35px, -55px) scale(1.15); opacity: 0.95; }
    70% { transform: translate(55px, 20px) scale(0.9); opacity: 0.5; }
    100% { transform: translate(-48px, -20px) scale(0.85); opacity: 0.35; }
}
@keyframes sceneryFireflyStageOrbit2 {
    0% { transform: translate(45px, -35px) scale(1); opacity: 0.4; }
    40% { transform: translate(-50px, -45px) scale(1.2); opacity: 1; }
    80% { transform: translate(-25px, 30px) scale(0.8); opacity: 0.45; }
    100% { transform: translate(45px, -35px) scale(1); opacity: 0.4; }
}
@keyframes sceneryFireflyStageOrbit3 {
    0% { transform: translate(0px, 45px) scale(0.9); opacity: 0.4; }
    50% { transform: translate(-55px, 10px) scale(1.25); opacity: 0.95; }
    100% { transform: translate(0px, 45px) scale(0.9); opacity: 0.4; }
}
@keyframes sceneryFireflyStageOrbit4 {
    0% { transform: translate(50px, 35px) scale(0.8); opacity: 0.3; }
    50% { transform: translate(30px, -40px) scale(1.15); opacity: 0.9; }
    100% { transform: translate(50px, 35px) scale(0.8); opacity: 0.3; }
}

/* Anim: Starlight */
.scenery-bg-starlight {
    background: radial-gradient(ellipse at 50% 35%, #131b3b 0%, #0a1129 50%, #050816 75%, #02040b 100%);
}
.light-theme .scenery-bg-starlight {
    background: radial-gradient(ellipse at 50% 35%, #e0e7ff 0%, #c7d2fe 40%, #dfe5fb 75%, #d3dbf5 100%);
}
@keyframes sceneryStarTwinkle {
    0%, 100% { opacity: 0.25; transform: scale(0.85); }
    50% { opacity: 0.95; transform: scale(1.25); filter: drop-shadow(0 0 6px rgba(254,240,138,0.9)); }
}
@keyframes sceneryStarGlowPulse {
    0%, 100% { transform: scale(1); opacity: 0.75; }
    50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 14px rgba(251,191,36,0.95)); }
}

/* Anim: Cozy Ember */
.scenery-bg-ember {
    background: radial-gradient(ellipse at 50% 42%, #2b170e 0%, #1a0e08 50%, #0e0906 75%, #070403 100%);
}
.light-theme .scenery-bg-ember {
    background: radial-gradient(ellipse at 50% 35%, #ffedd5 0%, #fed7aa 40%, #fae2cc 75%, #ebd3bd 100%);
}
@keyframes sceneryEmberRise1 {
    0% { transform: translate(0, 0) scale(0.8); opacity: 0; }
    20% { opacity: 0.85; }
    80% { opacity: 0.7; }
    100% { transform: translate(18px, -110px) scale(0.4); opacity: 0; }
}
@keyframes sceneryEmberRise2 {
    0% { transform: translate(0, 0) scale(0.9); opacity: 0; }
    25% { opacity: 0.9; }
    75% { opacity: 0.6; }
    100% { transform: translate(-22px, -130px) scale(0.35); opacity: 0; }
}
@keyframes sceneryEmberRise3 {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    30% { opacity: 0.85; }
    80% { opacity: 0.5; }
    100% { transform: translate(12px, -95px) scale(0.5); opacity: 0; }
}
/* Brasas subindo no palco da Chama */
@keyframes sceneryStageEmberRise1 {
    0% { transform: translate(0, 0) scale(0.7); opacity: 0; }
    20% { opacity: 0.95; }
    80% { opacity: 0.7; }
    100% { transform: translate(14px, -115px) scale(0.3); opacity: 0; }
}
@keyframes sceneryStageEmberRise2 {
    0% { transform: translate(0, 0) scale(0.8); opacity: 0; }
    25% { opacity: 1; }
    75% { opacity: 0.65; }
    100% { transform: translate(-18px, -135px) scale(0.35); opacity: 0; }
}
@keyframes sceneryStageEmberRise3 {
    0% { transform: translate(0, 0) scale(0.9); opacity: 0; }
    30% { opacity: 0.9; }
    80% { opacity: 0.55; }
    100% { transform: translate(10px, -100px) scale(0.4); opacity: 0; }
}

/* Anim: Promise Bloom */
.scenery-bg-promise {
    background: radial-gradient(ellipse at 50% 38%, #141c38 0%, #0b1426 50%, #070c19 75%, #03060d 100%);
}
.light-theme .scenery-bg-promise {
    background: radial-gradient(ellipse at 50% 35%, #fef3c7 0%, #fde68a 35%, #ede9fe 75%, #e0dcf5 100%);
}
@keyframes sceneryPetalDrift1 {
    0% { transform: translate(-20px, -20px) rotate(0deg) scale(0.7); opacity: 0; }
    25% { opacity: 0.8; }
    75% { opacity: 0.75; }
    100% { transform: translate(130px, 140px) rotate(160deg) scale(0.9); opacity: 0; }
}
@keyframes sceneryPetalDrift2 {
    0% { transform: translate(20px, -10px) rotate(0deg) scale(0.8); opacity: 0; }
    30% { opacity: 0.85; }
    80% { opacity: 0.65; }
    100% { transform: translate(-120px, 160px) rotate(-180deg) scale(1); opacity: 0; }
}
/* Pétalas dançando ao redor do mascote */
@keyframes sceneryStagePetalDrift1 {
    0% { transform: translate(-65px, -45px) rotate(0deg) scale(0.8); opacity: 0; }
    20% { opacity: 0.9; }
    75% { opacity: 0.8; }
    100% { transform: translate(75px, 75px) rotate(180deg) scale(0.95); opacity: 0; }
}
@keyframes sceneryStagePetalDrift2 {
    0% { transform: translate(65px, -30px) rotate(0deg) scale(0.85); opacity: 0; }
    25% { opacity: 0.95; }
    80% { opacity: 0.7; }
    100% { transform: translate(-70px, 85px) rotate(-160deg) scale(1); opacity: 0; }
}

/* Mar da Galileia ao Amanhecer */
.scenery-bg-galilee {
    background: radial-gradient(ellipse at 50% 34%, #0c4a6e 0%, #082f49 48%, #041d2e 78%, #020c14 100%);
}
.light-theme .scenery-bg-galilee {
    background: radial-gradient(ellipse at 50% 34%, #e0f2fe 0%, #bae6fd 45%, #7dd3fc 85%, #a5f3fc 100%);
}

/* Pórtico do Templo Antigo */
.scenery-bg-temple {
    background: radial-gradient(ellipse at 50% 40%, #451a03 0%, #1c1008 50%, #110904 78%, #070402 100%);
}
.light-theme .scenery-bg-temple {
    background: radial-gradient(ellipse at 50% 38%, #fef3c7 0%, #fde68a 45%, #fed7aa 80%, #ffedd5 100%);
}

/* Aurora dos Céus */
.scenery-bg-aurora-heaven {
    background: radial-gradient(ellipse at 50% 32%, #064e3b 0%, #1e1b4b 48%, #090d1f 78%, #03050d 100%);
}
.light-theme .scenery-bg-aurora-heaven {
    background: radial-gradient(ellipse at 50% 34%, #d1fae5 0%, #cffafe 45%, #e9d5ff 82%, #fae8ff 100%);
}

/* Getsêmani Sob a Lua */
.scenery-bg-getsemani {
    background: radial-gradient(ellipse at 50% 34%, #102a27 0%, #0a1b1f 52%, #060f14 78%, #03070a 100%);
}
.light-theme .scenery-bg-getsemani {
    background: radial-gradient(ellipse at 50% 34%, #dcfce7 0%, #e0f2fe 45%, #d1fae5 82%, #cbd5e1 100%);
}

/* Águas do Jordão */
.scenery-bg-jordao {
    background: radial-gradient(ellipse at 50% 36%, #0e4a5f 0%, #082d3e 50%, #051824 78%, #020b12 100%);
}
.light-theme .scenery-bg-jordao {
    background: radial-gradient(ellipse at 50% 34%, #ccfbf1 0%, #cffafe 48%, #bae6fd 84%, #a5f3fc 100%);
}

/* Aurora no Monte Sião */
.scenery-bg-siao {
    background: radial-gradient(ellipse at 50% 36%, #4a2c0f 0%, #26161c 50%, #110b15 78%, #07040a 100%);
}
.light-theme .scenery-bg-siao {
    background: radial-gradient(ellipse at 50% 34%, #fef9c3 0%, #fde68a 45%, #ffedd5 82%, #fed7aa 100%);
}

/* Átrio do Tabernáculo */
.scenery-bg-tabernaculo {
    background: radial-gradient(ellipse at 50% 38%, #3b1752 0%, #241038 48%, #160a1c 78%, #08040c 100%);
}
.light-theme .scenery-bg-tabernaculo {
    background: radial-gradient(ellipse at 50% 34%, #fae8ff 0%, #f3e8ff 45%, #ffe4e6 82%, #fef3c7 100%);
}

/* Luz da Nova Jerusalém */
.scenery-bg-nova_jerusalem {
    background: radial-gradient(ellipse at 50% 32%, #42330c 0%, #10323a 48%, #091326 78%, #040712 100%);
}
.light-theme .scenery-bg-nova_jerusalem {
    background: radial-gradient(ellipse at 50% 34%, #fffbeb 0%, #ecfeff 45%, #fef9c3 82%, #d1fae5 100%);
}

/* Noite Santa de Belém (Natal Bíblico) */
.scenery-bg-natal_belem {
    background: radial-gradient(ellipse at 50% 30%, #1c2b4f 0%, #0c1732 48%, #0a1f1b 78%, #050a12 100%);
}
.light-theme .scenery-bg-natal_belem {
    background: radial-gradient(ellipse at 50% 32%, #fef9c3 0%, #e0f2fe 44%, #dcfce7 80%, #fee2e2 100%);
}

/* Lareira & Pisca-Piscas de Natal */
.scenery-bg-natal_lareira {
    background: radial-gradient(ellipse at 50% 42%, #7c2d12 0%, #3b120c 42%, #11241a 76%, #07090e 100%);
}
.light-theme .scenery-bg-natal_lareira {
    background: radial-gradient(ellipse at 50% 40%, #ffedd5 0%, #fee2e2 44%, #dcfce7 80%, #fef9c3 100%);
}

@keyframes xmasLightBlinkA {
    0%, 100% { opacity: 1; transform: scale(1.08); }
    50% { opacity: 0.35; transform: scale(0.88); }
}
@keyframes xmasLightBlinkB {
    0%, 100% { opacity: 0.35; transform: scale(0.88); }
    50% { opacity: 1; transform: scale(1.08); }
}
@keyframes xmasFireplaceFlicker {
    0%, 100% { transform: scaleY(1) scaleX(1); opacity: 0.92; }
    35% { transform: scaleY(1.1) scaleX(0.95); opacity: 1; }
    70% { transform: scaleY(0.92) scaleX(1.05); opacity: 0.85; }
}
.xmas-bulb-a {
    transform-box: fill-box;
    transform-origin: center;
    animation: xmasLightBlinkA 1.5s ease-in-out infinite;
}
.xmas-bulb-b {
    transform-box: fill-box;
    transform-origin: center;
    animation: xmasLightBlinkB 1.5s ease-in-out infinite;
}
.xmas-hearth-flame {
    transform-box: fill-box;
    transform-origin: bottom center;
    animation: xmasFireplaceFlicker 1.8s ease-in-out infinite;
}
.xmas-hearth-glow {
    animation: xmasFireplaceFlicker 2.3s ease-in-out infinite reverse;
}

/* =========================================================================
   NOVO ACABAMENTO OFICIAL: SOFT-3D SHADING, VOLUMETRIA & IDADES DA CHAMA
   Preserva 100% a silhueta, tamanho original, evolução e cores/degradês
   ========================================================================= */
.soft-3d-finish #flame-action-animator {
    transform-origin: bottom center;
    transform:
        translateX(var(--lean-x, 0px))
        rotateZ(var(--lean-deg, 0deg))
        scaleX(calc(var(--squash-x, 1) * var(--breath-scale, 1)))
        scaleY(calc(var(--squash-y, 1) * var(--breath-scale, 1)));
}

/* Corpo da Chama: sombra ambiente, brilho volumétrico interno e borda suave */
.soft-3d-finish .classic-flame-body {
    position: relative;
    box-shadow:
        0 0 32px rgba(255, 120, 10, 0.80),
        0 0 70px rgba(255, 80, 0, 0.45),
        inset 0 6px 14px rgba(255, 255, 255, 0.65),
        inset 0 -12px 18px rgba(0, 0, 0, 0.35);
}

/* Destaque especular 3D suave (Soft-3D Specular Highlight) que fica sobre QUALQUER degradê */
.soft-3d-finish .classic-flame-body::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 45% 18%, rgba(255, 255, 255, 0.70) 0%, rgba(255, 240, 180, 0.22) 24%, transparent 48%);
    pointer-events: none;
    z-index: 1;
}

/* Fogo padrão (sem aura da loja) */
.soft-3d-finish:not([class*="Aura-"]) .classic-flame-body,
.soft-3d-finish.color_padrao .classic-flame-body,
.soft-3d-finish .color_padrao .classic-flame-body {
    background: linear-gradient(180deg, #ff4060 0%, #ff7a00 50%, #ffc000 100%);
}

/* --- SUPORTE TOTAL PARA TODAS AS CORES E DEGRADÊS DA LOJA (SOFT-3D) --- */
.soft-3d-finish.Aura-dourada .classic-flame-body,
.soft-3d-finish .Aura-dourada .classic-flame-body {
    background: linear-gradient(180deg, #f59e0b 0%, #fbbf24 50%, #fef08a 100%) !important;
    box-shadow: 0 0 32px rgba(254, 240, 138, 0.85), 0 0 70px rgba(251, 191, 36, 0.55), inset 0 6px 14px rgba(255, 255, 255, 0.75), inset 0 -12px 18px rgba(180, 83, 9, 0.45) !important;
}

.soft-3d-finish.Aura-celeste .classic-flame-body,
.soft-3d-finish .Aura-celeste .classic-flame-body {
    background: linear-gradient(180deg, #2563eb 0%, #06b6d4 52%, #a5f3fc 100%) !important;
    box-shadow: 0 0 32px rgba(165, 243, 252, 0.80), 0 0 70px rgba(6, 182, 212, 0.55), inset 0 6px 14px rgba(255, 255, 255, 0.70), inset 0 -12px 18px rgba(30, 58, 138, 0.45) !important;
}

.soft-3d-finish.Aura-sarca .classic-flame-body,
.soft-3d-finish .Aura-sarca .classic-flame-body {
    background: linear-gradient(180deg, #be123c 0%, #f43f5e 50%, #fb923c 100%) !important;
    box-shadow: 0 0 32px rgba(253, 164, 175, 0.80), 0 0 70px rgba(244, 63, 94, 0.55), inset 0 6px 14px rgba(255, 228, 230, 0.65), inset 0 -12px 18px rgba(136, 19, 55, 0.48) !important;
}

.soft-3d-finish.Aura-esmeralda .classic-flame-body,
.soft-3d-finish .Aura-esmeralda .classic-flame-body {
    background: linear-gradient(180deg, #059669 0%, #10b981 52%, #a7f3d0 100%) !important;
    box-shadow: 0 0 32px rgba(167, 243, 208, 0.80), 0 0 70px rgba(16, 185, 129, 0.55), inset 0 6px 14px rgba(255, 255, 255, 0.68), inset 0 -12px 18px rgba(6, 78, 59, 0.48) !important;
}

.soft-3d-finish.Aura-ametista .classic-flame-body,
.soft-3d-finish .Aura-ametista .classic-flame-body {
    background: linear-gradient(180deg, #6d28d9 0%, #a855f7 50%, #f3e8ff 100%) !important;
    box-shadow: 0 0 32px rgba(216, 180, 254, 0.82), 0 0 70px rgba(168, 85, 247, 0.55), inset 0 6px 14px rgba(255, 255, 255, 0.70), inset 0 -12px 18px rgba(76, 29, 149, 0.50) !important;
}

.soft-3d-finish.Aura-rose .classic-flame-body,
.soft-3d-finish .Aura-rose .classic-flame-body {
    background: linear-gradient(180deg, #f43f5e 0%, #fb7185 50%, #fecdd3 100%) !important;
    box-shadow: 0 0 32px rgba(254, 205, 211, 0.85), 0 0 70px rgba(251, 113, 133, 0.55), inset 0 6px 14px rgba(255, 255, 255, 0.72), inset 0 -12px 18px rgba(159, 18, 57, 0.45) !important;
}

/* Degradê Aurora Boreal */
.soft-3d-finish.Aura-aurora .classic-flame-body,
.soft-3d-finish .Aura-aurora .classic-flame-body {
    background: linear-gradient(180deg, #06b6d4 0%, #8b5cf6 50%, #f472b6 100%) !important;
    box-shadow: 0 0 34px rgba(139, 92, 246, 0.85), 0 0 72px rgba(6, 182, 212, 0.55), inset 0 6px 14px rgba(255, 255, 255, 0.75), inset 0 -12px 18px rgba(91, 33, 182, 0.50) !important;
}

/* Degradê Arco-íris / Arco da Aliança */
.soft-3d-finish.Aura-arcoiris .classic-flame-body,
.soft-3d-finish .Aura-arcoiris .classic-flame-body {
    background: linear-gradient(180deg, #ec4899 0%, #8b5cf6 28%, #38bdf8 56%, #10b981 78%, #fef08a 100%) !important;
    box-shadow: 0 0 34px rgba(56, 189, 248, 0.85), 0 0 75px rgba(236, 72, 153, 0.55), inset 0 6px 14px rgba(255, 255, 255, 0.78), inset 0 -12px 18px rgba(126, 34, 206, 0.45) !important;
}

.soft-3d-finish.Aura-serafim .classic-flame-body,
.soft-3d-finish .Aura-serafim .classic-flame-body {
    background: linear-gradient(180deg, #dc2626 0%, #f59e0b 48%, #fef08a 100%) !important;
    box-shadow: 0 0 36px rgba(245, 158, 11, 0.90), 0 0 75px rgba(220, 38, 38, 0.55), inset 0 6px 14px rgba(255, 255, 255, 0.75), inset 0 -12px 18px rgba(185, 28, 28, 0.50) !important;
}

.soft-3d-finish.Aura-shekinah .classic-flame-body,
.soft-3d-finish .Aura-shekinah .classic-flame-body {
    background: linear-gradient(180deg, #ffffff 0%, #fef08a 42%, #fbbf24 100%) !important;
    box-shadow: 0 0 42px rgba(255, 255, 255, 0.95), 0 0 85px rgba(254, 240, 138, 0.70), inset 0 6px 16px rgba(255, 255, 255, 0.95), inset 0 -12px 18px rgba(217, 119, 6, 0.40) !important;
}

.soft-3d-finish.Aura-oliva .classic-flame-body,
.soft-3d-finish .Aura-oliva .classic-flame-body {
    background: linear-gradient(180deg, #4d7c0f 0%, #65a30d 50%, #d9f99d 100%) !important;
    box-shadow: 0 0 32px rgba(132, 204, 22, 0.80), 0 0 68px rgba(77, 124, 15, 0.55), inset 0 6px 14px rgba(255, 255, 255, 0.65), inset 0 -12px 18px rgba(54, 83, 20, 0.50) !important;
}

.soft-3d-finish.Aura-perola .classic-flame-body,
.soft-3d-finish .Aura-perola .classic-flame-body {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 45%, #cbd5e1 100%) !important;
    box-shadow: 0 0 34px rgba(255, 255, 255, 0.90), 0 0 70px rgba(203, 213, 225, 0.60), inset 0 6px 14px rgba(255, 255, 255, 0.90), inset 0 -12px 18px rgba(148, 163, 184, 0.40) !important;
}

.soft-3d-finish.Aura-terracota .classic-flame-body,
.soft-3d-finish .Aura-terracota .classic-flame-body {
    background: linear-gradient(180deg, #9a3412 0%, #c2410c 50%, #fed7aa 100%) !important;
    box-shadow: 0 0 32px rgba(234, 88, 12, 0.80), 0 0 68px rgba(154, 52, 18, 0.55), inset 0 6px 14px rgba(255, 255, 255, 0.65), inset 0 -12px 18px rgba(124, 45, 18, 0.50) !important;
}
.soft-3d-finish.Aura-turquesa .classic-flame-body,
.soft-3d-finish .Aura-turquesa .classic-flame-body {
    background: linear-gradient(180deg, #0f766e 0%, #14b8a6 52%, #99f6e4 100%) !important;
    box-shadow: 0 0 34px rgba(20, 184, 166, 0.85), 0 0 70px rgba(13, 148, 136, 0.50), inset 0 6px 14px rgba(255, 255, 255, 0.68), inset 0 -12px 18px rgba(17, 94, 89, 0.45) !important;
}
.soft-3d-finish.Aura-indigo .classic-flame-body,
.soft-3d-finish .Aura-indigo .classic-flame-body {
    background: linear-gradient(180deg, #1e1b4b 0%, #4338ca 52%, #c7d2fe 100%) !important;
    box-shadow: 0 0 34px rgba(99, 102, 241, 0.85), 0 0 70px rgba(49, 46, 129, 0.55), inset 0 6px 14px rgba(255, 255, 255, 0.65), inset 0 -12px 18px rgba(30, 27, 75, 0.55) !important;
}
.soft-3d-finish.Aura-ambar_mel .classic-flame-body,
.soft-3d-finish .Aura-ambar_mel .classic-flame-body {
    background: linear-gradient(180deg, #92400e 0%, #d97706 48%, #fde68a 100%) !important;
    box-shadow: 0 0 36px rgba(245, 158, 11, 0.88), 0 0 72px rgba(180, 83, 9, 0.55), inset 0 6px 14px rgba(255, 255, 255, 0.72), inset 0 -12px 18px rgba(120, 53, 15, 0.48) !important;
}
.soft-3d-finish.Aura-lirio_vale .classic-flame-body,
.soft-3d-finish .Aura-lirio_vale .classic-flame-body {
    background: linear-gradient(180deg, #ec4899 0%, #f9a8d4 48%, #fff1f2 100%) !important;
    box-shadow: 0 0 34px rgba(251, 207, 232, 0.88), 0 0 70px rgba(236, 72, 153, 0.48), inset 0 6px 14px rgba(255, 255, 255, 0.85), inset 0 -12px 18px rgba(157, 23, 77, 0.40) !important;
}
.soft-3d-finish.Aura-salomao .classic-flame-body,
.soft-3d-finish .Aura-salomao .classic-flame-body {
    background: linear-gradient(180deg, #92400e 0%, #f59e0b 46%, #fef9c3 100%) !important;
    box-shadow: 0 0 38px rgba(250, 204, 21, 0.92), 0 0 75px rgba(217, 119, 6, 0.55), inset 0 6px 14px rgba(255, 255, 255, 0.82), inset 0 -12px 18px rgba(120, 53, 15, 0.45) !important;
}
.soft-3d-finish.Aura-carmelo .classic-flame-body,
.soft-3d-finish .Aura-carmelo .classic-flame-body {
    background: linear-gradient(180deg, #991b1b 0%, #ea580c 48%, #fde047 100%) !important;
    box-shadow: 0 0 36px rgba(249, 115, 22, 0.90), 0 0 72px rgba(185, 28, 28, 0.55), inset 0 6px 14px rgba(255, 255, 255, 0.72), inset 0 -12px 18px rgba(127, 29, 29, 0.52) !important;
}
.soft-3d-finish.Aura-safira_siao .classic-flame-body,
.soft-3d-finish .Aura-safira_siao .classic-flame-body {
    background: linear-gradient(180deg, #172554 0%, #2563eb 52%, #bfdbfe 100%) !important;
    box-shadow: 0 0 36px rgba(59, 130, 246, 0.88), 0 0 72px rgba(29, 78, 216, 0.55), inset 0 6px 14px rgba(255, 255, 255, 0.70), inset 0 -12px 18px rgba(30, 58, 138, 0.52) !important;
}
.soft-3d-finish.Aura-pentecostes .classic-flame-body,
.soft-3d-finish .Aura-pentecostes .classic-flame-body {
    background: linear-gradient(180deg, #f97316 0%, #facc15 44%, #ffffff 100%) !important;
    box-shadow: 0 0 44px rgba(254, 240, 138, 0.95), 0 0 84px rgba(249, 115, 22, 0.65), inset 0 6px 16px rgba(255, 255, 255, 0.95), inset 0 -12px 18px rgba(194, 65, 12, 0.42) !important;
}
.soft-3d-finish.Aura-natal_emanuel .classic-flame-body,
.soft-3d-finish .Aura-natal_emanuel .classic-flame-body {
    background: linear-gradient(180deg, #059669 0%, #dc2626 42%, #f59e0b 72%, #fef9c3 100%) !important;
    box-shadow: 0 0 36px rgba(251, 191, 36, 0.90), 0 0 72px rgba(16, 185, 129, 0.50), inset 0 6px 14px rgba(255, 255, 255, 0.78), inset 0 -12px 18px rgba(6, 78, 59, 0.45) !important;
}

/* --- IDADES DA CHAMA (PARTES EVOLUTIVAS DESENHADAS EM SOFT-3D) --- */
/* Crista / Fagulha Superior da Chama (Surge na fase Aprendiz / Jovem) */
.soft-3d-finish .flame-crest {
    position: absolute;
    top: -12px;
    width: 26px;
    height: 26px;
    border-radius: 0 50% 50% 50%;
    z-index: 2;
    background:
        radial-gradient(circle at 40% 28%, rgba(255, 255, 255, 0.75) 0%, transparent 45%),
        linear-gradient(180deg, #ff2a55 0%, #ff7b00 100%);
    box-shadow: 0 0 14px rgba(255, 80, 0, 0.70), inset 0 2px 4px rgba(255, 255, 255, 0.70);
    filter: drop-shadow(0 -3px 6px rgba(255, 59, 92, 0.50));
    opacity: 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.soft-3d-finish .stage-child .flame-crest {
    opacity: 0.85;
    transform: rotate(45deg) scale(0.68);
    animation: crestFlicker 2.1s ease-in-out infinite alternate;
}
.soft-3d-finish .stage-youth .flame-crest,
.soft-3d-finish .stage-guardian .flame-crest,
.soft-3d-finish .stage-adult .flame-crest,
.soft-3d-finish .stage-elder .flame-crest {
    opacity: 1;
    transform: rotate(45deg) scale(1);
    animation: crestFlicker 1.8s ease-in-out infinite alternate;
}

/* Asas / Labaredas Laterais da Chama (Fase Guardiã e Adulta) */
.soft-3d-finish .flame-wing-left,
.soft-3d-finish .flame-wing-right {
    position: absolute;
    bottom: 18px;
    width: 28px;
    height: 52px;
    border-radius: 50% 50% 30% 30%;
    z-index: 3;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.65) 0%, transparent 48%),
        linear-gradient(180deg, #ff5400 0%, #ffbe0b 100%);
    box-shadow: 0 0 14px rgba(255, 120, 10, 0.60), inset 0 3px 6px rgba(255, 255, 255, 0.65);
    opacity: 0;
    transform: scale(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.soft-3d-finish .flame-wing-left { left: 2px; transform-origin: bottom right; }
.soft-3d-finish .flame-wing-right { right: 2px; transform-origin: bottom left; }

.soft-3d-finish .stage-guardian .flame-wing-left { opacity: 0.72; transform: rotate(-18deg) scale(0.72); }
.soft-3d-finish .stage-guardian .flame-wing-right { opacity: 0.72; transform: rotate(18deg) scale(0.72); }
.soft-3d-finish .stage-adult .flame-wing-left,
.soft-3d-finish .stage-elder .flame-wing-left { opacity: 0.92; transform: rotate(-24deg) scale(1); }
.soft-3d-finish .stage-adult .flame-wing-right,
.soft-3d-finish .stage-elder .flame-wing-right { opacity: 0.92; transform: rotate(24deg) scale(1); }

/* Coroa Flutuante de Glória (Fase Anciã / Celestial) */
.soft-3d-finish .flame-halo-crown {
    position: absolute;
    top: -24px;
    width: 58px;
    height: 16px;
    border: 3.5px solid #fffbeb;
    border-radius: 50%;
    box-shadow:
        0 0 18px rgba(254, 240, 138, 0.95),
        0 0 32px rgba(245, 158, 11, 0.65),
        inset 0 0 10px rgba(251, 191, 36, 0.85);
    filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.75));
    z-index: 8;
    opacity: 0;
    transform: scale(0.5);
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.soft-3d-finish .stage-elder .flame-halo-crown {
    opacity: 1;
    transform: scale(1);
    animation: floatHalo 2.2s ease-in-out infinite alternate;
}

/* Sincronização de cores das partes com as auras */
.soft-3d-finish.Aura-celeste .flame-crest, .soft-3d-finish .Aura-celeste .flame-crest { background: linear-gradient(180deg, #2563eb 0%, #06b6d4 100%) !important; }
.soft-3d-finish.Aura-celeste .flame-wing-left, .soft-3d-finish .Aura-celeste .flame-wing-left,
.soft-3d-finish.Aura-celeste .flame-wing-right, .soft-3d-finish .Aura-celeste .flame-wing-right { background: linear-gradient(180deg, #2563eb 0%, #a5f3fc 100%) !important; }

.soft-3d-finish.Aura-esmeralda .flame-crest, .soft-3d-finish .Aura-esmeralda .flame-crest { background: linear-gradient(180deg, #059669 0%, #10b981 100%) !important; }
.soft-3d-finish.Aura-esmeralda .flame-wing-left, .soft-3d-finish .Aura-esmeralda .flame-wing-left,
.soft-3d-finish.Aura-esmeralda .flame-wing-right, .soft-3d-finish .Aura-esmeralda .flame-wing-right { background: linear-gradient(180deg, #059669 0%, #a7f3d0 100%) !important; }

.soft-3d-finish.Aura-aurora .flame-crest, .soft-3d-finish .Aura-aurora .flame-crest { background: linear-gradient(180deg, #06b6d4 0%, #a855f7 100%) !important; }
.soft-3d-finish.Aura-aurora .flame-wing-left, .soft-3d-finish .Aura-aurora .flame-wing-left,
.soft-3d-finish.Aura-aurora .flame-wing-right, .soft-3d-finish .Aura-aurora .flame-wing-right { background: linear-gradient(180deg, #06b6d4 0%, #f472b6 100%) !important; }

.soft-3d-finish.Aura-arcoiris .flame-crest, .soft-3d-finish .Aura-arcoiris .flame-crest { background: linear-gradient(180deg, #ec4899 0%, #3b82f6 50%, #10b981 100%) !important; }
.soft-3d-finish.Aura-arcoiris .flame-wing-left, .soft-3d-finish .Aura-arcoiris .flame-wing-left,
.soft-3d-finish.Aura-arcoiris .flame-wing-right, .soft-3d-finish .Aura-arcoiris .flame-wing-right { background: linear-gradient(180deg, #ec4899 0%, #06b6d4 100%) !important; }

.soft-3d-finish.Aura-turquesa .flame-crest, .soft-3d-finish .Aura-turquesa .flame-crest { background: linear-gradient(180deg, #0f766e 0%, #2dd4bf 100%) !important; }
.soft-3d-finish.Aura-turquesa .flame-wing-left, .soft-3d-finish .Aura-turquesa .flame-wing-left,
.soft-3d-finish.Aura-turquesa .flame-wing-right, .soft-3d-finish .Aura-turquesa .flame-wing-right { background: linear-gradient(180deg, #0d9488 0%, #ccfbf1 100%) !important; }

.soft-3d-finish.Aura-indigo .flame-crest, .soft-3d-finish .Aura-indigo .flame-crest { background: linear-gradient(180deg, #312e81 0%, #6366f1 100%) !important; }
.soft-3d-finish.Aura-indigo .flame-wing-left, .soft-3d-finish .Aura-indigo .flame-wing-left,
.soft-3d-finish.Aura-indigo .flame-wing-right, .soft-3d-finish .Aura-indigo .flame-wing-right { background: linear-gradient(180deg, #3730a3 0%, #e0e7ff 100%) !important; }

.soft-3d-finish.Aura-ambar_mel .flame-crest, .soft-3d-finish .Aura-ambar_mel .flame-crest { background: linear-gradient(180deg, #b45309 0%, #fbbf24 100%) !important; }
.soft-3d-finish.Aura-ambar_mel .flame-wing-left, .soft-3d-finish .Aura-ambar_mel .flame-wing-left,
.soft-3d-finish.Aura-ambar_mel .flame-wing-right, .soft-3d-finish .Aura-ambar_mel .flame-wing-right { background: linear-gradient(180deg, #d97706 0%, #fef3c7 100%) !important; }

.soft-3d-finish.Aura-lirio_vale .flame-crest, .soft-3d-finish .Aura-lirio_vale .flame-crest { background: linear-gradient(180deg, #f472b6 0%, #fbcfe8 100%) !important; }
.soft-3d-finish.Aura-lirio_vale .flame-wing-left, .soft-3d-finish .Aura-lirio_vale .flame-wing-left,
.soft-3d-finish.Aura-lirio_vale .flame-wing-right, .soft-3d-finish .Aura-lirio_vale .flame-wing-right { background: linear-gradient(180deg, #f9a8d4 0%, #fff1f2 100%) !important; }

.soft-3d-finish.Aura-salomao .flame-crest, .soft-3d-finish .Aura-salomao .flame-crest { background: linear-gradient(180deg, #92400e 0%, #facc15 100%) !important; }
.soft-3d-finish.Aura-salomao .flame-wing-left, .soft-3d-finish .Aura-salomao .flame-wing-left,
.soft-3d-finish.Aura-salomao .flame-wing-right, .soft-3d-finish .Aura-salomao .flame-wing-right { background: linear-gradient(180deg, #d97706 0%, #fef9c3 100%) !important; }

.soft-3d-finish.Aura-carmelo .flame-crest, .soft-3d-finish .Aura-carmelo .flame-crest { background: linear-gradient(180deg, #991b1b 0%, #f97316 100%) !important; }
.soft-3d-finish.Aura-carmelo .flame-wing-left, .soft-3d-finish .Aura-carmelo .flame-wing-left,
.soft-3d-finish.Aura-carmelo .flame-wing-right, .soft-3d-finish .Aura-carmelo .flame-wing-right { background: linear-gradient(180deg, #dc2626 0%, #fde047 100%) !important; }

.soft-3d-finish.Aura-safira_siao .flame-crest, .soft-3d-finish .Aura-safira_siao .flame-crest { background: linear-gradient(180deg, #1e3a8a 0%, #3b82f6 100%) !important; }
.soft-3d-finish.Aura-safira_siao .flame-wing-left, .soft-3d-finish .Aura-safira_siao .flame-wing-left,
.soft-3d-finish.Aura-safira_siao .flame-wing-right, .soft-3d-finish .Aura-safira_siao .flame-wing-right { background: linear-gradient(180deg, #1d4ed8 0%, #bfdbfe 100%) !important; }

.soft-3d-finish.Aura-pentecostes .flame-crest, .soft-3d-finish .Aura-pentecostes .flame-crest { background: linear-gradient(180deg, #ffffff 0%, #facc15 65%, #f97316 100%) !important; }
.soft-3d-finish.Aura-pentecostes .flame-wing-left, .soft-3d-finish .Aura-pentecostes .flame-wing-left,
.soft-3d-finish.Aura-pentecostes .flame-wing-right, .soft-3d-finish .Aura-pentecostes .flame-wing-right { background: linear-gradient(180deg, #f97316 0%, #ffffff 100%) !important; }

.soft-3d-finish.Aura-natal_emanuel .flame-crest, .soft-3d-finish .Aura-natal_emanuel .flame-crest { background: linear-gradient(180deg, #dc2626 0%, #f59e0b 55%, #fef08a 100%) !important; }
.soft-3d-finish.Aura-natal_emanuel .flame-wing-left, .soft-3d-finish .Aura-natal_emanuel .flame-wing-left { background: linear-gradient(180deg, #15803d 0%, #6ee7b7 100%) !important; }
.soft-3d-finish.Aura-natal_emanuel .flame-wing-right, .soft-3d-finish .Aura-natal_emanuel .flame-wing-right { background: linear-gradient(180deg, #be123c 0%, #fecdd3 100%) !important; }

/* Rosto, Olhos e Bochechas Soft-3D */
.soft-3d-finish .classic-flame-core {
    background: radial-gradient(circle at 44% 34%, #ffffff 0%, #fef08a 58%, #f59e0b 100%) !important;
    box-shadow: 0 3px 10px rgba(180, 83, 9, 0.28), 0 0 24px rgba(254, 240, 138, 0.92), inset 0 4px 8px rgba(255, 255, 255, 0.90), inset 0 -5px 10px rgba(217, 119, 6, 0.30) !important;
    transform: translate(var(--core-x, 0px), var(--core-y, 0px));
}
.soft-3d-finish .flame-eyes-row { transform: translate(var(--look-x, 0px), var(--look-y, 0px)); }
.soft-3d-finish .flame-eye {
    background: radial-gradient(circle at 35% 35%, #3b2316 0%, #160d08 75%);
    box-shadow: 0 2px 4px rgba(146, 64, 14, 0.35), inset 0 -2px 3px rgba(251, 191, 36, 0.25);
}
.soft-3d-finish .flame-cheeks-row { transform: translate(calc(var(--look-x, 0px) * 0.85), calc(var(--look-y, 0px) * 0.75)); }
.soft-3d-finish .flame-cheek {
    background: radial-gradient(circle at 40% 40%, #ff758f 0%, #f43f5e 100%);
    opacity: 0.78;
    box-shadow: 0 1px 4px rgba(225, 29, 72, 0.35);
}
.soft-3d-finish .flame-mouth { transform: translate(calc(var(--look-x, 0px) * 0.75), calc(var(--look-y, 0px) * 0.75)); }
.soft-3d-finish .flame-glasses-slot, .soft-3d-finish .flame-mustache-slot { transform: translateX(-50%) translate(calc(var(--look-x, 0px) * 0.9), calc(var(--look-y, 0px) * 0.8)); }

.soft-3d-finish .flame-hat-slot svg,
.soft-3d-finish .flame-glasses-slot svg,
.soft-3d-finish .flame-mustache-slot svg,
.soft-3d-finish .flame-accessory-slot svg,
.shop-card-item svg {
    filter: url(#soft-3d-item-bevel) drop-shadow(0 4px 6px rgba(95, 24, 6, 0.40));
}

.soft-3d-finish .pedestal-ouro, .pedestal-ouro {
    border: none !important;
    background: radial-gradient(ellipse at 50% 34%, rgba(255, 250, 215, 0.95) 0%, rgba(251, 191, 36, 0.88) 45%, rgba(180, 83, 9, 0.95) 100%) !important;
    box-shadow: 0 6px 0 #78350f, 0 12px 24px rgba(0, 0, 0, 0.65), 0 -3px 20px rgba(255, 160, 40, 0.55), inset 0 3px 6px rgba(255, 255, 255, 0.85), inset 0 -4px 8px rgba(120, 53, 15, 0.65) !important;
}
.soft-3d-finish .pedestal-base.pedestal-svg, .pedestal-base.pedestal-svg {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Reflexo de chão quente */
.hero-ground-shadow {
    background: radial-gradient(ellipse at center, rgba(255, 160, 55, 0.50) 0%, rgba(251, 113, 24, 0.22) 45%, rgba(0, 0, 0, 0) 78%) !important;
    filter: blur(6px) !important;
}

/* MODO ORAÇÃO / QUARTO SECRETO NO ALTAR OFICIAL:
   Navegação e menus somem completamente para evitar alternar abas e quebrar layout.
   A chama permanece rigorosamente no centro sem mudar de tamanho, e os controles de oração surgem integrados. */
body.in-prayer-sanctuary #altar-top-stats,
body.in-prayer-sanctuary #pet-bottom-controls,
body.in-prayer-sanctuary #xp-section,
body.in-prayer-sanctuary #btn-flame-speech-bubble,
body.in-prayer-sanctuary #btn-open-prayer-sanctuary,
body.in-prayer-sanctuary #flame-speech-card,
body.in-prayer-sanctuary #altar-stage-scenery,
body.in-prayer-sanctuary .bottom-nav-bar,
body.in-prayer-sanctuary #zzz-box,
body.in-prayer-sanctuary .flame-sleep-zs,
body.in-prayer-sanctuary .makeup-sleep-only,
body.in-prayer-sanctuary #hero-flame-actor .flame-makeup-slot {
    display: none !important;
}
body.in-prayer-sanctuary #hero-flame-actor.state-sleeping .classic-flame-body {
    filter: none !important;
    box-shadow: none !important;
}
body.in-prayer-sanctuary #header-left-dock {
    pointer-events: none !important;
    opacity: 0.85;
}
body.in-prayer-sanctuary #tab-pet {
    background: radial-gradient(circle at 50% 38%, rgba(255, 140, 30, 0.22) 0%, rgba(180, 70, 10, 0.06) 42%, #03060a 68%), #03060a !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
}
body.light-theme.in-prayer-sanctuary #tab-pet {
    background: radial-gradient(circle at 50% 38%, rgba(255, 180, 70, 0.35) 0%, rgba(254, 243, 199, 0.5) 45%, #f8fafc 72%), #f8fafc !important;
}

/* Quarto Secreto no Modo Claro: acabamento límpido, sereno e quente */
body.light-theme #prayer-sanctuary-view .altar-card-porcelain {
    background: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    box-shadow: 0 10px 30px -5px rgba(245, 158, 11, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme #prayer-sanctuary-view h2 {
    color: #b45309 !important;
}
body.light-theme #prayer-sanctuary-view p {
    color: #475569 !important;
}
body.light-theme #btn-sanctuary-exit-top {
    background: rgba(241, 245, 249, 0.95) !important;
    border-color: rgba(203, 213, 225, 0.9) !important;
    color: #334155 !important;
}
body.light-theme #btn-sanctuary-exit-top:hover {
    background: rgba(226, 232, 240, 1) !important;
    color: #0f172a !important;
}
body.light-theme #btn-sanctuary-fireplace-toggle {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(226, 232, 240, 0.9) !important;
    color: #334155 !important;
}
body.light-theme #prayer-sanctuary-view button[onclick*="openPrayerWallModal"] {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
    color: #b45309 !important;
}
body.light-theme #prayer-sanctuary-view .bg-white\/10 {
    background-color: rgba(226, 232, 240, 0.9) !important;
}
#prayer-sanctuary-view {
    backdrop-filter: blur(0px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
#btn-sanctuary-fireplace-toggle.is-active,
#btn-sanctuary-fireplace-toggle.bg-amber-500\/30 {
    background: rgba(245, 158, 11, 0.22) !important;
    border-color: rgba(245, 158, 11, 0.55) !important;
    color: #fcd34d !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.25) !important;
}
body.light-theme #btn-sanctuary-fireplace-toggle.is-active,
body.light-theme #btn-sanctuary-fireplace-toggle.bg-amber-500\/30 {
    background: rgba(254, 243, 199, 0.95) !important;
    border-color: rgba(245, 158, 11, 0.55) !important;
    color: #b45309 !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15) !important;
}
body.in-prayer-sanctuary #pet-stage-anchor {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 36% !important;
    bottom: auto !important;
    margin: 0 auto !important;
    max-height: 280px !important;
    z-index: 20 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    transition: all 0.4s ease;
    transform: translateY(0) !important;
}

/* =========================================================================
   RESPIRAÇÃO VIVA DA CHAMA (SEM CRESCER O CORPO, COM MUDANÇA REAL NAS FEIÇÕES DA FACE)
   4s Inspire (boca puxando ar) • 4s Retenha (ar retido sereno) • 6s Expire (soprando suave)
   ========================================================================= */
@keyframes flameBreatheInhaleOrganic {
    0% {
        transform: translate(var(--lean-x, 0px), var(--lean-y, 0px)) scale(1, 1);
        filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.55)) drop-shadow(0 0 32px rgba(245, 158, 11, 0.35));
    }
    100% {
        transform: translate(var(--lean-x, 0px), calc(var(--lean-y, 0px) - 2px)) scale(1.025, 1.03);
        filter: drop-shadow(0 0 24px rgba(251, 191, 36, 0.80)) drop-shadow(0 0 45px rgba(245, 158, 11, 0.55));
    }
}

@keyframes flameBreatheHoldOrganic {
    0%, 100% {
        transform: translate(var(--lean-x, 0px), calc(var(--lean-y, 0px) - 2px)) scale(1.025, 1.03);
        filter: drop-shadow(0 0 24px rgba(251, 191, 36, 0.80)) drop-shadow(0 0 45px rgba(245, 158, 11, 0.55));
    }
    50% {
        transform: translate(var(--lean-x, 0px), calc(var(--lean-y, 0px) - 3px)) scale(1.03, 1.035);
        filter: drop-shadow(0 0 26px rgba(251, 191, 36, 0.85)) drop-shadow(0 0 48px rgba(245, 158, 11, 0.60));
    }
}

@keyframes flameBreatheExhaleOrganic {
    0% {
        transform: translate(var(--lean-x, 0px), calc(var(--lean-y, 0px) - 2px)) scale(1.025, 1.03);
        filter: drop-shadow(0 0 24px rgba(251, 191, 36, 0.80)) drop-shadow(0 0 45px rgba(245, 158, 11, 0.55));
    }
    100% {
        transform: translate(var(--lean-x, 0px), var(--lean-y, 0px)) scale(1, 1);
        filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.55)) drop-shadow(0 0 32px rgba(245, 158, 11, 0.35));
    }
}

@keyframes flameCoreInhaleMicro {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}
@keyframes flameCoreHoldMicro {
    0%, 100% { transform: scale(1.02); }
    50% { transform: scale(1.025); }
}
@keyframes flameCoreExhaleMicro {
    0% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* =========================================================================
   CICLO COMPLETO DE RESPIRAÇÃO GUIADA DA CHAMA (14s TOTAL • LOOP PERFEITO)
   4s Inspire (0% a 28.57%) • 4s Retenha (28.57% a 57.14%) • 6s Expire (57.14% a 100%)
   Sem cortes, sem quebras, faz a volta orgânica infinitamente.
   ========================================================================= */

@keyframes flameSanctuaryBodyCycle {
    0% {
        transform: translate(var(--lean-x, 0px), var(--lean-y, 0px)) scale(1, 1);
        filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.55)) drop-shadow(0 0 32px rgba(245, 158, 11, 0.35));
    }
    /* Final do Inspire (4s = 28.57%): expansão sutil do corpo puxando o ar e elevando */
    28.57% {
        transform: translate(var(--lean-x, 0px), calc(var(--lean-y, 0px) - 3.5px)) scale(1.04, 1.05);
        filter: drop-shadow(0 0 28px rgba(251, 191, 36, 0.85)) drop-shadow(0 0 50px rgba(245, 158, 11, 0.60));
    }
    /* Durante o Retenha (4s a 8s = 28.57% a 57.14%): sustentação serena com ar pleno */
    42.85% {
        transform: translate(var(--lean-x, 0px), calc(var(--lean-y, 0px) - 3.5px)) scale(1.04, 1.05);
        filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.90)) drop-shadow(0 0 52px rgba(245, 158, 11, 0.65));
    }
    57.14% {
        transform: translate(var(--lean-x, 0px), calc(var(--lean-y, 0px) - 3px)) scale(1.035, 1.042);
        filter: drop-shadow(0 0 26px rgba(251, 191, 36, 0.82)) drop-shadow(0 0 46px rgba(245, 158, 11, 0.55));
    }
    /* Final do Expire (8s a 14s = 57.14% a 100%): entrega suave voltando a 100% idêntico a 0% */
    100% {
        transform: translate(var(--lean-x, 0px), var(--lean-y, 0px)) scale(1, 1);
        filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.55)) drop-shadow(0 0 32px rgba(245, 158, 11, 0.35));
    }
}

@keyframes flameSanctuaryMouthCycle {
    0% {
        width: 12px;
        height: 6px;
        border-radius: 2px 2px 10px 10px;
        transform: scale(1);
    }
    /* Inalação (puxando o ar - forma boca em 'o' delicado até 28.57%) */
    14% {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        transform: scale(1.1) translateY(1px);
    }
    28.57% {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        transform: scale(1.15) translateY(1px);
    }
    /* Retenção (boca em linha serena suave fechada de 28.57% a 57.14%) */
    35% {
        width: 11px;
        height: 3.5px;
        border-radius: 99px;
        transform: translateY(1px);
    }
    57.14% {
        width: 11px;
        height: 3.5px;
        border-radius: 99px;
        transform: translateY(1px);
    }
    /* Expiração (sopro suave soltando o ar de 57.14% a 100%) */
    70% {
        width: 7.5px;
        height: 7.5px;
        border-radius: 50%;
        transform: scale(1) translateY(0.5px);
    }
    88% {
        width: 10px;
        height: 5px;
        border-radius: 2px 2px 10px 10px;
        transform: scale(0.98);
    }
    100% {
        width: 12px;
        height: 6px;
        border-radius: 2px 2px 10px 10px;
        transform: scale(1);
    }
}

@keyframes flameSanctuaryCheeksCycle {
    0% {
        opacity: 0.60;
        transform: scale(1) translateY(0);
        filter: none;
    }
    /* Cheeks inflam e coram ao puxar o ar */
    28.57% {
        opacity: 0.95;
        transform: scale(1.25) translateY(-1.5px);
        filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.55));
    }
    57.14% {
        opacity: 0.95;
        transform: scale(1.22) translateY(-1px);
        filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.55));
    }
    85% {
        opacity: 0.70;
        transform: scale(1.08) translateY(-0.5px);
    }
    100% {
        opacity: 0.60;
        transform: scale(1) translateY(0);
        filter: none;
    }
}

@keyframes flameSanctuaryEyesCycle {
    0% {
        height: 6px;
        background: transparent;
        border-top: 3.5px solid #1e1510;
        border-radius: 50% 50% 0 0;
        transform: translateY(1.5px);
    }
    /* Fechando serenamente ao puxar o ar */
    28.57% {
        height: 6px;
        background: transparent;
        border-top: 3.5px solid #1e1510;
        border-radius: 50% 50% 0 0;
        transform: translateY(2px) scaleX(1.05);
    }
    /* Segurando com serenidade meditativa */
    57.14% {
        height: 6px;
        background: transparent;
        border-top: 3.5px solid #1e1510;
        border-radius: 50% 50% 0 0;
        transform: translateY(2px);
    }
    /* Soltando o ar - relaxamento gradual */
    85% {
        height: 6px;
        background: transparent;
        border-top: 3.5px solid #1e1510;
        border-radius: 50% 50% 0 0;
        transform: translateY(1.5px);
    }
    100% {
        height: 6px;
        background: transparent;
        border-top: 3.5px solid #1e1510;
        border-radius: 50% 50% 0 0;
        transform: translateY(1.5px);
    }
}

/* Quando a respiração está ativa com a classe unificada .flame-sanctuary-breathing-active */
.flame-sanctuary-breathing-active .classic-flame-body {
    animation: none !important;
}
.flame-sanctuary-breathing-active #flame-action-animator {
    animation: flameSanctuaryBodyCycle 14s cubic-bezier(0.42, 0, 0.58, 1) infinite !important;
}
.flame-sanctuary-breathing-active .flame-mouth {
    background: #1e1510 !important;
    animation: flameSanctuaryMouthCycle 14s ease-in-out infinite !important;
}
.flame-sanctuary-breathing-active .flame-mouth::after {
    display: none !important;
}
.flame-sanctuary-breathing-active .flame-cheek {
    animation: flameSanctuaryCheeksCycle 14s ease-in-out infinite !important;
}
.flame-sanctuary-breathing-active .flame-eye {
    animation: flameSanctuaryEyesCycle 14s ease-in-out infinite !important;
}
.flame-sanctuary-breathing-active .flame-eye::before,
.flame-sanctuary-breathing-active .flame-eye::after {
    display: none !important;
}

/* Suporte de pausa */
.flame-sanctuary-breathing-paused #flame-action-animator,
.flame-sanctuary-breathing-paused .flame-mouth,
.flame-sanctuary-breathing-paused .flame-cheek,
.flame-sanctuary-breathing-paused .flame-eye {
    animation-play-state: paused !important;
}

/* Expressão Serena Geral / Meditativa do Quarto Secreto (quando a respiração não está ativa) - Mantém olhos abertos expressivos e vivos */
.face-zen:not(.face-breathing) .flame-cheek {
    opacity: 0.95 !important;
    transform: scale(1.25) !important;
    filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.55)) !important;
}
.face-zen:not(.face-breathing) .flame-mouth {
    width: 11px !important;
    height: 4.5px !important;
    border-radius: 0 0 10px 10px !important;
    background: #1e1510 !important;
    transform: translateY(1px) !important;
}

/* =========================================================================
   KARAOKÊ BÍBLICO (Sincronização de Áudio com Texto)
   Destaca o versículo ativo em dourado sutil e elegante
   ========================================================================= */
.bible-verse.verse-speaking,
.verse-speaking {
    background-color: rgba(245, 158, 11, 0.16) !important;
    border-left: 3px solid #f59e0b !important;
    padding-left: 8px !important;
    border-radius: 0 10px 10px 0 !important;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.12) !important;
    transition: all 0.25s ease !important;
}

/* =========================================================================
   UI CONTROLS: BALÃO DE FALA DA CHAMA & QUARTO SECRETO INTEGRADO
   ========================================================================= */
#btn-flame-speech-bubble {
    position: absolute;
    top: 10px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fcd34d;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 35;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
#btn-flame-speech-bubble:active {
    transform: scale(0.92);
}
#flame-speech-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9999px;
    background: #f43f5e;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f172a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}
#btn-open-prayer-sanctuary {
    position: absolute;
    top: 10px;
    left: 18px;
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fcd34d;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 35;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
#btn-open-prayer-sanctuary:hover {
    border-color: rgba(245, 158, 11, 0.7);
}
#btn-open-prayer-sanctuary:active {
    transform: scale(0.92);
}
#prayer-sanctuary-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9999px;
    background: #f43f5e;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f172a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}
#flame-speech-badge.hidden,
#prayer-sanctuary-badge.hidden {
    display: none !important;
}
body.light-theme #btn-open-prayer-sanctuary {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
    color: #b45309 !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12), 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme #prayer-sanctuary-badge {
    border-color: #ffffff !important;
}
#flame-speech-card {
    position: absolute !important;
    top: 52px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: calc(100% - 32px);
    max-width: 320px;
    z-index: 45;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top center;
}
#flame-speech-card.speech-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-50%) translateY(-8px) scale(0.96) !important;
    display: none !important;
}

/* Quarto Secreto Integrado na Tela Principal */
#prayer-sanctuary-view {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
    animation: sanctuaryFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes sanctuaryFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- FRICÇÃO DA BRASA (RESSURREIÇÃO POR ESFREGÃO CONTÍNUO) --- */
.relight-friction-zone {
    --relight-heat: 0;
    position: relative;
    touch-action: none !important;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
    background: radial-gradient(circle at 50% 42%, rgba(251, 146, 60, calc(0.10 + (var(--relight-heat, 0) * 0.42))) 0%, rgba(15, 23, 42, 0.72) 74%);
    border-color: rgba(251, 146, 60, calc(0.28 + (var(--relight-heat, 0) * 0.65))) !important;
    box-shadow: inset 0 0 calc(16px + (var(--relight-heat, 0) * 28px)) rgba(249, 115, 22, calc(0.12 + (var(--relight-heat, 0) * 0.35)));
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body.light-theme .relight-friction-zone {
    background: radial-gradient(circle at 50% 42%, rgba(251, 146, 60, calc(0.14 + (var(--relight-heat, 0) * 0.45))) 0%, rgba(255, 247, 237, 0.94) 76%);
}
.relight-modal-ember-orb {
    width: 62px;
    height: 70px;
    border-radius: 50% 50% 38% 38% / 62% 62% 36% 36%;
    background: linear-gradient(180deg, #ff4500 0%, #fb923c 55%, #fde047 100%);
    filter: grayscale(calc(0.92 - (var(--relight-heat, 0) * 0.92))) brightness(calc(0.55 + (var(--relight-heat, 0) * 0.68))) saturate(calc(0.8 + (var(--relight-heat, 0) * 0.6)));
    transform: scale(calc(0.76 + (var(--relight-heat, 0) * 0.34)));
    box-shadow: 0 0 calc(8px + (var(--relight-heat, 0) * 32px)) rgba(255, 115, 0, calc(0.32 + (var(--relight-heat, 0) * 0.65))), inset 0 4px 10px rgba(255, 255, 255, calc(0.2 + (var(--relight-heat, 0) * 0.6)));
    transition: transform 0.12s cubic-bezier(0.22, 1, 0.36, 1), filter 0.12s ease, box-shadow 0.12s ease;
}
.relight-spark-dot {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    animation: relightSparkFly 0.58s ease-out forwards;
    will-change: transform, opacity;
}
.relight-stage-rub-pill {
    cursor: grab;
    touch-action: none !important;
    user-select: none;
    -webkit-user-select: none;
}
#pet-stage-anchor.is-ember-stage,
#pet-stage-anchor.is-ember-stage #hero-flame-actor,
#pet-stage-anchor.is-ember-stage #classic-flame-body {
    touch-action: none !important;
}
#hero-flame-actor.state-ember .classic-flame-body {
    box-shadow: 0 0 calc(10px + (var(--relight-heat, 0) * 44px)) rgba(255, 100, 12, calc(0.35 + (var(--relight-heat, 0) * 0.62))), inset 0 0 calc(4px + (var(--relight-heat, 0) * 18px)) rgba(255, 232, 130, calc(var(--relight-heat, 0) * 0.78)) !important;
}
#pet-stage-anchor.is-relighting::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 24px;
    width: 190px;
    height: 110px;
    transform: translateX(-50%) scale(calc(0.85 + (var(--relight-heat, 0) * 0.35)));
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(251, 146, 60, calc(0.08 + (var(--relight-heat, 0) * 0.45))) 0%, transparent 72%);
    pointer-events: none;
    z-index: 1;
}


