/**
 * ──────────────────────────────────────────────────────────────
 *  Folhas do Hábito — Iniciativa B.4
 *  Cinematografia da Quebra + Cinzas Férteis
 * ──────────────────────────────────────────────────────────────
 */

/* ═══════════════════════════════════════════
   AVISO DISCRETO DE QUEBRA
   ═══════════════════════════════════════════ */
.break-notice {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
    padding: 14px 20px;
    background: linear-gradient(180deg, rgba(30, 14, 14, 0.6), rgba(20, 10, 10, 0.4));
    border: 1px solid rgba(251, 146, 60, 0.25);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    animation: break-notice-glow 3s ease-in-out infinite;
}
@keyframes break-notice-glow {
    0%, 100% { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3),  0 0 0 rgba(251, 146, 60, 0); }
    50%      { box-shadow: 0 4px 22px rgba(0, 0, 0, 0.4),  0 0 18px rgba(251, 146, 60, 0.15); }
}
.break-notice-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}
.break-notice-text {
    flex: 1;
    min-width: 0;
}
.break-notice-title {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2px;
    font-weight: 600;
}
.break-notice-sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}
.break-notice-sub strong {
    color: #fbbf24;
}
.break-notice-btn {
    flex-shrink: 0;
    background: rgba(251, 146, 60, 0.12);
    border: 1px solid rgba(251, 146, 60, 0.35);
    color: #fdba74;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.break-notice-btn:hover {
    background: rgba(251, 146, 60, 0.22);
    border-color: rgba(251, 146, 60, 0.55);
    color: #fed7aa;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   INDICADOR DE CINZAS FÉRTEIS ATIVAS
   ═══════════════════════════════════════════ */
.ashes-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
    padding: 14px 20px;
    background: linear-gradient(180deg, rgba(20, 30, 20, 0.6), rgba(10, 20, 10, 0.4));
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3),
                0 0 24px rgba(74, 222, 128, 0.08);
    backdrop-filter: blur(8px);
}
.ashes-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
    animation: ashes-icon-pulse 3s ease-in-out infinite;
}
@keyframes ashes-icon-pulse {
    0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 4px rgba(74, 222, 128, 0.5)); }
    50%      { transform: scale(1.08); filter: drop-shadow(0 0 12px rgba(74, 222, 128, 0.9)); }
}
.ashes-content {
    flex: 1;
    min-width: 0;
}
.ashes-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.ashes-title strong {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #4ade80;
    font-weight: 700;
}
.ashes-multiplier {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.25);
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
}
.ashes-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ashes-day {
    width: 32px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    transition: background 0.4s ease;
}
.ashes-day.is-used {
    background: linear-gradient(90deg, #4ade80, #22c55e);
    border-color: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

/* Animação de "preencher pela primeira vez" — pulso verde forte */
.ashes-day.just-filled {
    animation: ashes-day-fill 1.5s ease-out;
}
@keyframes ashes-day-fill {
    0%   { transform: scaleY(1);   box-shadow: 0 0 8px rgba(74, 222, 128, 0.5); }
    20%  { transform: scaleY(2.5); box-shadow: 0 0 24px rgba(74, 222, 128, 1), 0 0 40px rgba(74, 222, 128, 0.7); }
    100% { transform: scaleY(1);   box-shadow: 0 0 8px rgba(74, 222, 128, 0.5); }
}
.ashes-progress-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    margin-left: 8px;
}

/* ═══════════════════════════════════════════
   MODAL CINEMATOGRÁFICO DA QUEBRA
   ═══════════════════════════════════════════ */
.cinematic-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: radial-gradient(circle at center, rgba(8, 5, 5, 0.96) 0%, rgba(0, 0, 0, 0.99) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    animation: cine-modal-fade-in 1s ease forwards;
}
.cinematic-modal[hidden] { display: none; }

/* v12.2: cinematic em VÍDEO (Remotion → mp4). O stage antigo fica oculto (break + surpass). */
.cinematic-modal .cinematic-stage { display: none; }
.cinematic-video {
    width: min(92vw, 92vh);
    height: min(92vw, 92vh);
    max-width: 760px;
    max-height: 760px;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
@keyframes cine-modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.cinematic-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Frame 2: Chama → Fumaça ── */
.cinematic-flame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 380px;
    pointer-events: none;
    opacity: 0;
}
.cinematic-flame.is-active {
    animation: cine-flame-life 4.5s ease-in-out forwards;
}
@keyframes cine-flame-life {
    0%   { opacity: 0;   transform: translate(-50%, -50%) scale(0.7); }
    15%  { opacity: 1;   transform: translate(-50%, -50%) scale(1.1); }
    70%  { opacity: 1;   transform: translate(-50%, -50%) scale(1.05); }
    100% { opacity: 0;   transform: translate(-50%, -55%) scale(1.4); }
}
.cinematic-flame-core {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 75% at 50% 60%,
        #fffbe0 0%,
        #fef3c7 15%,
        #fbbf24 30%,
        #f97316 55%,
        #ea580c 78%,
        transparent 95%);
    border-radius: 50% 50% 40% 40% / 60% 60% 30% 30%;
    filter: blur(6px) drop-shadow(0 0 30px rgba(251, 146, 60, 0.8));
    animation: cine-flame-flicker 0.35s ease-in-out infinite alternate;
}
@keyframes cine-flame-flicker {
    0%   { transform: scale(1)    translateY(0); }
    100% { transform: scale(1.06) translateY(-4px); }
}
.cinematic-smoke {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at center, rgba(180, 180, 180, 0.5), transparent 70%);
    filter: blur(22px);
    opacity: 0;
}
.cinematic-flame.is-active .cinematic-smoke {
    animation: cine-smoke-rise 3s ease-out forwards;
    animation-delay: 1.5s;
}
@keyframes cine-smoke-rise {
    0%   { opacity: 0;   transform: translateX(-50%) translateY(0)     scale(1); }
    100% { opacity: 0.7; transform: translateX(-50%) translateY(-140px) scale(2.2); }
}

/* ── Frame 3: Semente formada ── */
.cinematic-seed {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
    filter: drop-shadow(0 0 30px var(--cine-color, #4ade80))
            drop-shadow(0 0 60px var(--cine-color, #4ade80));
    pointer-events: none;
}
.cinematic-seed.is-forming {
    animation: cine-seed-form 3s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}
@keyframes cine-seed-form {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.2) rotate(-15deg); filter: blur(20px) drop-shadow(0 0 40px var(--cine-color, #4ade80)); }
    40%  { opacity: 0.7; transform: translate(-50%, -50%) scale(0.9) rotate(0deg); filter: blur(8px)  drop-shadow(0 0 50px var(--cine-color, #4ade80)); }
    100% { opacity: 1;   transform: translate(-50%, -50%) scale(1)   rotate(0deg); filter: blur(0px)  drop-shadow(0 0 30px var(--cine-color, #4ade80)) drop-shadow(0 0 60px var(--cine-color, #4ade80)); }
}
.cinematic-seed.is-falling {
    animation: cine-seed-fall 2.5s cubic-bezier(0.55, 0, 0.85, 0.55) forwards;
}
@keyframes cine-seed-fall {
    0%   { opacity: 1;   transform: translate(-50%, -50%) scale(1)   rotate(0deg); }
    60%  { opacity: 1;   transform: translate(-50%, 30%)  scale(0.7) rotate(8deg); }
    100% { opacity: 0;   transform: translate(-50%, 100%) scale(0.4) rotate(15deg); filter: blur(6px); }
}

/* ── Frame 4: Mensagem central ── */
.cinematic-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    max-width: 90vw;
}
.cinematic-message.is-visible {
    animation: cine-message-fade 3.5s ease forwards;
}
@keyframes cine-message-fade {
    0%   { opacity: 0; transform: translate(-50%, -45%); }
    15%  { opacity: 1; transform: translate(-50%, -50%); }
    85%  { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -55%); }
}
.cinematic-message-line1 {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}
.cinematic-message-line2 {
    font-family: 'Lora', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    font-style: italic;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.9), 0 0 80px var(--cine-color, rgba(74, 222, 128, 0.4));
}

/* ── Frame 6: Aviso das cinzas ── */
.cinematic-ashes-msg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 32px;
    background: linear-gradient(180deg, rgba(20, 40, 20, 0.85), rgba(10, 25, 10, 0.9));
    border: 1px solid rgba(74, 222, 128, 0.4);
    border-radius: 18px;
    box-shadow: 0 0 60px rgba(74, 222, 128, 0.3);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
}
.cinematic-ashes-msg.is-visible {
    animation: cine-ashes-fade 2.5s ease forwards;
}
@keyframes cine-ashes-fade {
    0%   { opacity: 0; transform: translate(-50%, -45%) scale(0.9); }
    25%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.cinematic-ashes-icon {
    font-size: 2.6rem;
    line-height: 1;
    animation: ashes-icon-pulse 2s ease-in-out infinite;
}
.cinematic-ashes-text {
    color: #fff;
    text-align: left;
}
.cinematic-ashes-text strong {
    display: block;
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    color: #86efac;
    margin-bottom: 4px;
}
.cinematic-ashes-text span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ── Botão Saltar ── */
.cinematic-skip {
    position: absolute;
    bottom: 32px;
    right: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.7);
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}
.cinematic-skip:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}
.cinematic-skip[hidden] { display: none; }

/* Reduced motion */
/* Reduced motion — afeta apenas elementos ambientes (aviso, indicador,
   ícone das cinzas). A cinematografia em si NÃO é afetada porque é
   opt-in: o usuário clica explicitamente em "Honrar a despedida" pra
   vê-la. Bloquear seria contraditório. */
@media (prefers-reduced-motion: reduce) {
    .ashes-icon,
    .break-notice,
    .surpass-notice,
    .gallery-hint {
        animation-duration: 0.1s !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   B.4b — INDICADOR SUTIL NO DASHBOARD (aponta pra galeria)
   ═══════════════════════════════════════════════════════════ */
.gallery-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    padding: 10px 16px;
    background: linear-gradient(180deg, rgba(30, 24, 6, 0.3), rgba(20, 16, 4, 0.2));
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 10px;
    text-decoration: none;
    color: rgba(253, 230, 138, 0.75);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    animation: gallery-hint-glow 4s ease-in-out infinite;
}
.gallery-hint:hover {
    background: linear-gradient(180deg, rgba(30, 24, 6, 0.5), rgba(20, 16, 4, 0.35));
    border-color: rgba(251, 191, 36, 0.35);
    color: #fde68a;
    transform: translateY(-1px);
}
@keyframes gallery-hint-glow {
    0%, 100% { box-shadow: 0 0 0 rgba(251, 191, 36, 0); }
    50%      { box-shadow: 0 0 12px rgba(251, 191, 36, 0.08); }
}
.gallery-hint-icon {
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}
.gallery-hint-text {
    flex: 1;
    font-family: 'Lora', serif;
    letter-spacing: 0.2px;
}
.gallery-hint-arrow {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-hint:hover .gallery-hint-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════
   B.4b — AVISO DE SUPERAÇÃO NO ALTAR
   ═══════════════════════════════════════════════════════════ */
.surpass-notice {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px auto 0;
    max-width: 520px;
    padding: 14px 20px;
    background: linear-gradient(180deg, rgba(30, 24, 6, 0.6), rgba(20, 16, 4, 0.4));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    animation: surpass-notice-glow 3s ease-in-out infinite;
}
@keyframes surpass-notice-glow {
    0%, 100% { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3),  0 0 0 rgba(251, 191, 36, 0); }
    50%      { box-shadow: 0 4px 22px rgba(0, 0, 0, 0.4),  0 0 20px rgba(251, 191, 36, 0.15); }
}
.surpass-notice-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}
.surpass-notice-text {
    flex: 1;
    min-width: 0;
}
.surpass-notice-title {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2px;
    font-weight: 600;
}
.surpass-notice-sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}
.surpass-notice-sub strong {
    color: #fbbf24;
}
.surpass-notice-btn {
    flex-shrink: 0;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fde68a;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.surpass-notice-btn:hover {
    background: rgba(251, 191, 36, 0.22);
    border-color: rgba(251, 191, 36, 0.55);
    color: #fef3c7;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════
   B.4b — CINEMATOGRAFIA DE SUPERAÇÃO DO RECORDE
   ═══════════════════════════════════════════════════════════ */

/* Background com tom dourado quente em vez de vermelho escuro */
.surpass-cinematic {
    background: radial-gradient(circle at center, rgba(20, 14, 2, 0.96) 0%, rgba(0, 0, 0, 0.99) 70%);
}

/* ── Frame 2: Pedra antiga ── */
.surpass-old-stone {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
}
.surpass-old-stone.is-visible {
    animation: surpass-stone-appear 1s ease-out forwards;
}
@keyframes surpass-stone-appear {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.surpass-old-stone-wrap {
    position: relative;
    width: 200px;
    height: 200px;
}
.surpass-stone-svg {
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}
.surpass-old-label {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    letter-spacing: 0.5px;
}

/* Rachaduras — desenham-se com stroke-dashoffset */
.surpass-cracks {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}
.surpass-cracks path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
}
.surpass-old-stone.is-cracking .surpass-cracks {
    opacity: 1;
}
.surpass-old-stone.is-cracking .surpass-cracks path {
    animation: surpass-crack-draw 1.5s ease-out forwards;
}
.surpass-old-stone.is-cracking .surpass-cracks path:nth-child(2) {
    animation-delay: 0.2s;
}
.surpass-old-stone.is-cracking .surpass-cracks path:nth-child(3) {
    animation-delay: 0.4s;
}
.surpass-old-stone.is-cracking .surpass-cracks path:nth-child(4) {
    animation-delay: 0.6s;
}
@keyframes surpass-crack-draw {
    to { stroke-dashoffset: 0; }
}

/* Tremor durante rachaduras */
.surpass-old-stone.is-cracking .surpass-old-stone-wrap {
    animation: surpass-tremor 0.12s linear infinite;
}
@keyframes surpass-tremor {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(-3px, 1px) rotate(-1deg); }
    50%  { transform: translate(2px, -2px) rotate(1deg); }
    75%  { transform: translate(-1px, 2px) rotate(-0.5deg); }
    100% { transform: translate(1px, -1px) rotate(0.5deg); }
}

/* Explosão da pedra antiga */
.surpass-old-stone.is-exploding {
    animation: surpass-stone-explode 0.8s ease-in forwards;
}
@keyframes surpass-stone-explode {
    0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
    40%  { opacity: 0.8; transform: translate(-50%, -50%) scale(1.3); filter: blur(2px); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(2); filter: blur(12px); }
}

/* ── Frame 3: Flash branco ── */
.surpass-flash {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 248, 220, 0.95), rgba(255, 220, 100, 0.4) 40%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}
.surpass-flash.is-active {
    animation: surpass-flash-burst 1s ease-out forwards;
}
@keyframes surpass-flash-burst {
    0%   { opacity: 0; transform: scale(0.5); }
    15%  { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1.5); }
}

/* ── Frame 3-4: Partículas de pó dourado ── */
.surpass-dust {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 6;
}
.surpass-dust-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, #fde68a, #f59e0b);
    opacity: 0;
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.6);
}

/* Fase 1: partículas explodem pra fora (rotate + translateY = suporte amplo) */
.surpass-dust.is-rising .surpass-dust-particle {
    animation: surpass-dust-rise 2s ease-out forwards;
    animation-delay: calc(var(--p-i) * 0.04s);
}
@keyframes surpass-dust-rise {
    0% {
        opacity: 0;
        transform: rotate(var(--p-angle)) translateY(0) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: rotate(var(--p-angle)) translateY(-120px) scale(1);
    }
    100% {
        opacity: 0.8;
        transform: rotate(var(--p-angle)) translateY(-100px) scale(0.8);
    }
}

/* Fase 2: partículas convergem pro centro */
.surpass-dust.is-converging .surpass-dust-particle {
    animation: surpass-dust-converge 2s ease-in-out forwards;
    animation-delay: calc(var(--p-i) * 0.03s);
}
@keyframes surpass-dust-converge {
    0% {
        opacity: 0.8;
        transform: rotate(var(--p-angle)) translateY(-100px) scale(0.8);
    }
    70% {
        opacity: 1;
        transform: rotate(var(--p-angle)) translateY(-15px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: rotate(var(--p-angle)) translateY(0) scale(0);
    }
}

/* ── Frame 5: Pedra dourada nova ── */
.surpass-new-stone {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 7;
}
.surpass-new-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.35), rgba(245, 158, 11, 0.15) 40%, transparent 70%);
    filter: blur(20px);
    opacity: 0;
    pointer-events: none;
}
.surpass-new-stone .surpass-stone-svg {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.5)) drop-shadow(0 4px 24px rgba(245, 158, 11, 0.3));
}

/* Formação: escala + glow crescendo */
.surpass-new-stone.is-forming {
    animation: surpass-new-form 1.5s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}
.surpass-new-stone.is-forming .surpass-new-glow {
    animation: surpass-glow-grow 1.5s ease-out forwards;
}
@keyframes surpass-new-form {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
    60%  { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes surpass-glow-grow {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Landing: pousa com bounce suave */
.surpass-new-stone.is-landed {
    opacity: 1;
    animation: surpass-new-land 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.surpass-new-stone.is-landed .surpass-new-glow {
    opacity: 1;
    animation: surpass-glow-breathe 3s ease-in-out infinite;
}
@keyframes surpass-new-land {
    0%   { transform: translate(-50%, -55%) scale(1.05); }
    40%  { transform: translate(-50%, -48%) scale(0.97); }
    70%  { transform: translate(-50%, -51%) scale(1.02); }
    100% { transform: translate(-50%, -50%) scale(1); }
}
@keyframes surpass-glow-breathe {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

/* ── Frame 6: Mensagem ── */
.surpass-message {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    z-index: 8;
    width: 90%;
    max-width: 500px;
}
.surpass-message.is-visible {
    animation: surpass-msg-in 1.2s ease-out forwards;
}
@keyframes surpass-msg-in {
    0%   { opacity: 0; transform: translateX(-50%) translateY(12px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.surpass-message-line1 {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    color: #fde68a;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}
.surpass-message-line2 {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    letter-spacing: 0.2px;
}

/* Botão saltar dourado */
.surpass-skip {
    border-color: rgba(251, 191, 36, 0.2);
    color: rgba(251, 191, 36, 0.6);
}
.surpass-skip:hover {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.35);
    color: #fde68a;
}
