@import url('../vendor/fonts/fonts.css');

:root {
    --sat: env(safe-area-inset-top, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
}

html, body, #phoneFrame, .app-magical-bg {
    font-family: 'Fredoka', 'Quicksand', sans-serif;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    font-size: 16px;
    border-radius: 0 !important;
}

body {
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    min-height: 100vh;
}

/* Correção definitiva de line-height compacto para a fonte Fredoka ao quebrar linha */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.16 !important;
    letter-spacing: -0.015em;
}

p, span, label, button, a {
    line-height: 1.25;
}

/* Fundo lúdico inspirado no design de referência com manchas suaves, nuvens e raios solares */
.app-magical-bg {
    background: linear-gradient(180deg, #fffbf5 0%, #fff7ed 30%, #fef3c7 65%, #e0f2fe 100%);
    position: relative;
}

/* Manchas orgânicas suaves e elementos ilustrados de fundo */
.app-magical-bg::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -40px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(254, 215, 170, 0.45) 0%, rgba(254, 215, 170, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(16px);
}

.app-magical-bg::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(186, 230, 253, 0.5) 0%, rgba(254, 240, 138, 0.2) 40%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(20px);
}

/* Ilustrações decorativas de fundo nítidas (sem borrão excessivo) */
.decor-bg-item {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.decor-sun {
    bottom: 25px;
    right: 20px;
    width: 140px;
    height: 140px;
    opacity: 0.85;
}

.decor-moon {
    top: 60px;
    right: 20px;
    width: 130px;
    height: 130px;
    opacity: 0.85;
}

.decor-rocket {
    bottom: 30px;
    left: 20px;
    width: 130px;
    height: 130px;
    opacity: 0.85;
}

/* Nuvens Flutuantes com Efeito Parallax Lento e Natural */
.decor-cloud {
    opacity: 0.75;
}

.cloud-parallax-1 {
    top: 65px;
    left: -80px;
    width: 140px;
    height: 85px;
    animation: parallaxCloud 42s linear infinite;
}

.cloud-parallax-2 {
    top: 130px;
    left: -120px;
    width: 100px;
    height: 60px;
    opacity: 0.5;
    animation: parallaxCloud 58s linear infinite;
    animation-delay: -20s;
}

.cloud-parallax-3 {
    top: 360px;
    left: -100px;
    width: 110px;
    height: 65px;
    opacity: 0.45;
    animation: parallaxCloud 68s linear infinite;
    animation-delay: -38s;
}

@keyframes parallaxCloud {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(620px);
    }
}

/* Estilo dos cards de seleção harmoniosos e modernos */
.ref-card {
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 8px 20px -4px rgba(249, 115, 22, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    border: 2px solid #f1f5f9;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.ref-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(249, 115, 22, 0.14);
}

.ref-card.active-card {
    border-color: #f97316;
    background: #ffffff;
    box-shadow: 0 10px 25px -4px rgba(249, 115, 22, 0.22);
    transform: translateY(-2px);
}

/* Selo de Check animado para herói selecionado */
.char-check-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.45);
    animation: checkPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

@keyframes checkPop {
    0% { transform: scale(0.3); opacity: 0; }
    70% { transform: scale(1.18); }
    100% { transform: scale(1); opacity: 1; }
}

/* Personagens bloqueados em Preto e Branco (P&B elegante com selo discreto) */
.char-locked {
    position: relative;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.char-locked-img {
    filter: grayscale(100%) contrast(90%) opacity(70%);
    transition: filter 0.3s ease;
}

.char-locked:hover .char-locked-img {
    filter: grayscale(85%) contrast(95%) opacity(85%);
}

.badge-lock-plan {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2.5px 10px;
    background: rgba(30, 41, 59, 0.78);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.01em;
    pointer-events: none;
}

/* Título marcante do app nas etapas com tipografia lúdica azul royal */
.ref-wizard-title {
    color: #1e3a8a;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Rodapé fixo do Wizard integrado com a arte da base */
.wizard-footer {
    position: relative;
    z-index: 20;
    flex-shrink: 0;
    padding: 0.75rem 1.25rem calc(1.15rem + 2.5px + var(--sab));
    background: linear-gradient(to top, rgba(224, 242, 254, 0.92) 40%, rgba(254, 243, 199, 0.5) 75%, transparent 100%);
    backdrop-filter: blur(6px);
}

.wizard-footer .btn-ref-primary {
    margin-top: 0;
}

/* Fundo Imersivo do Wizard de Criação de Histórias */
.wizard-screen-bg {
    background-image: url('../images/fundo-geracao-historias.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

/* Botão Próximo Passo Imponente, Ergonômico e Mágico */
.btn-ref-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    padding: 1rem 1.75rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 45%, #ea580c 100%);
    box-shadow: 0 12px 28px -4px rgba(234, 88, 12, 0.45), 0 4px 12px -2px rgba(251, 146, 60, 0.35);
    border-top: 1.5px solid rgba(255, 255, 255, 0.45);
    border-bottom: 2px solid rgba(194, 65, 12, 0.4);
    border-left: none;
    border-right: none;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(124, 45, 18, 0.35);
}

.btn-ref-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 16px 32px -4px rgba(234, 88, 12, 0.55), 0 6px 16px -2px rgba(251, 146, 60, 0.45);
    background: linear-gradient(135deg, #fcd34d 0%, #fb923c 45%, #ea580c 100%);
}

.btn-ref-primary:active {
    transform: scale(0.97);
    box-shadow: 0 6px 16px -2px rgba(234, 88, 12, 0.4);
}

.btn-ref-primary:disabled,
.btn-ref-primary[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(45%);
    box-shadow: none !important;
    transform: none !important;
    border-top: none;
    border-bottom: none;
}

.btn-magic-home {
    min-height: 58px !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    flex-shrink: 0 !important;
}

/* Barra Flutuante de Ações Superiores */
.app-floating-nav {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 19px);
    left: 0;
    right: 0;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 40;
}

/* Botões Superiores Refinados (Voltar e 3 Pontinhos) */
.floating-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.14), 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1.5px solid rgba(254, 215, 170, 0.95);
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    font-size: 1.05rem;
}

.floating-nav-btn:hover {
    background: #ffffff;
    border-color: #f97316;
    color: #ea580c;
    transform: translateY(-1.5px) scale(1.05);
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.25);
}

.floating-nav-btn:active {
    transform: scale(0.92);
}

/* Dropdown Menu dos Três Pontinhos (...) */
.more-menu-dropdown {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 68px);
    right: 16px;
    width: 285px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px -4px rgba(0, 0, 0, 0.2), 0 4px 14px rgba(249, 115, 22, 0.1);
    border: 1.5px solid #fed7aa;
    padding: 1.25rem;
    z-index: 50;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
}

.more-menu-dropdown.menu-closed {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
}

.more-menu-dropdown.menu-open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.btn-ref-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -4px rgba(249, 115, 22, 0.45);
}

.btn-ref-primary:active {
    transform: scale(0.98);
}

/* Movimento lento sincronizado com a duração de cada cena. */
@keyframes kb-zoom-out {
    0% { transform: scale(1.22) translate(0, 0); }
    100% { transform: scale(1.02) translate(-2%, -1.5%); }
}

@keyframes kb-zoom-in {
    0% { transform: scale(1.02) translate(0, 0); }
    100% { transform: scale(1.22) translate(2%, -2%); }
}

@keyframes kb-pan-right {
    0% { transform: scale(1.15) translate(-3.5%, 0); }
    100% { transform: scale(1.18) translate(3.5%, -1.5%); }
}

@keyframes kb-pan-left {
    0% { transform: scale(1.18) translate(3.5%, 0); }
    100% { transform: scale(1.15) translate(-3.5%, 1.5%); }
}

.kenburns-zoom-out {
    animation: kb-zoom-out var(--ken-burns-duration, 60s) linear forwards !important;
}

.ref-card.villain-card {
    background: #fff1f2;
    border-color: transparent;
    box-shadow: 0 8px 20px -4px rgba(225, 29, 72, 0.12);
}

.ref-card.villain-card.active-card {
    background: #fff1f2;
    border-color: #f97316;
    box-shadow: 0 10px 25px -4px rgba(249, 115, 22, 0.24);
}

.kenburns-zoom-in {
    animation: kb-zoom-in var(--ken-burns-duration, 60s) linear forwards !important;
}

.kenburns-pan-right {
    animation: kb-pan-right var(--ken-burns-duration, 60s) linear forwards !important;
}

.kenburns-pan-left {
    animation: kb-pan-left var(--ken-burns-duration, 60s) linear forwards !important;
}

#screen-player.player-paused .kenburns-zoom-out,
#screen-player.player-paused .kenburns-zoom-in,
#screen-player.player-paused .kenburns-pan-right,
#screen-player.player-paused .kenburns-pan-left {
    animation-play-state: paused !important;
}

#playerTopControls,
#playerControlsPanel,
#playerChromeGradient {
    transition: opacity 220ms ease;
}

#screen-player.player-chrome-hidden #playerTopControls,
#screen-player.player-chrome-hidden #playerControlsPanel,
#screen-player.player-chrome-hidden #playerChromeGradient {
    opacity: 0;
    pointer-events: none;
}

#btnPlayerFavorite.player-favorite-active {
    background-color: rgba(244, 63, 94, 0.92);
}

#playerHeroImgA, #playerHeroImgB {
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Glow e Efeitos Mágicos */
.magic-glow {
    box-shadow: 0 0 35px rgba(249, 115, 22, 0.4);
}

.sparkle-pulse {
    animation: pulse-sparkle 2.5s infinite ease-in-out;
}

@keyframes pulse-sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.95; }
    50% { transform: scale(1.08) rotate(4deg); opacity: 1; filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.6)); }
}

/* Animação da Varinha Mágica 3D (Sem Círculos, Conjurando Feitiço) */
.wand-3d-wrapper {
    display: inline-block;
    position: relative;
    z-index: 10;
    transform-origin: 25% 85%;
    animation: wandCastMagic3D 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.wand-3d-image {
    filter: drop-shadow(0 12px 28px rgba(245, 158, 11, 0.45));
    animation: wandAuraGlow 2.8s ease-in-out infinite;
}

@keyframes wandCastMagic3D {
    0% {
        transform: translateY(0) rotate(-6deg) scale(1);
    }
    20% {
        transform: translateY(-8px) rotate(14deg) scale(1.06);
    }
    45% {
        transform: translateY(-4px) rotate(-4deg) scale(1.02);
    }
    70% {
        transform: translateY(-12px) rotate(18deg) scale(1.09);
    }
    85% {
        transform: translateY(-5px) rotate(5deg) scale(1.03);
    }
    100% {
        transform: translateY(0) rotate(-6deg) scale(1);
    }
}

@keyframes wandAuraGlow {
    0%, 100% {
        filter: drop-shadow(0 10px 24px rgba(245, 158, 11, 0.4)) drop-shadow(0 0 10px rgba(251, 191, 36, 0.4));
    }
    50% {
        filter: drop-shadow(0 14px 36px rgba(249, 115, 22, 0.65)) drop-shadow(0 0 24px rgba(251, 191, 36, 0.9));
    }
}

/* Partículas e Estrelas Mágicas Flutuando ao Redor da Estrela da Varinha */
.magic-particle {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    z-index: 20;
}

.particle-1 {
    top: 6px;
    right: 28px;
    animation: magicFloat 2s ease-in-out infinite;
}

.particle-2 {
    top: -10px;
    right: 65px;
    animation: magicFloat 2.4s ease-in-out infinite 0.4s;
}

.particle-3 {
    top: 42px;
    right: 14px;
    animation: magicFloat 2.1s ease-in-out infinite 0.8s;
}

.particle-4 {
    top: 20px;
    right: 90px;
    animation: magicFloat 2.6s ease-in-out infinite 1.2s;
}

.particle-5 {
    top: 65px;
    right: 48px;
    animation: magicFloat 2.2s ease-in-out infinite 1.6s;
}

@keyframes magicFloat {
    0% {
        transform: scale(0.2) translate(0, 0);
        opacity: 0;
    }
    50% {
        transform: scale(1.25) translate(-8px, -14px);
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.95));
    }
    100% {
        transform: scale(0.4) translate(12px, -26px);
        opacity: 0;
    }
}

/* Splash Screen */
#splashScreen {
    position: absolute;
    inset: 0;
    z-index: 60;
    background: linear-gradient(180deg, #fffbf5 0%, #fff7ed 35%, #fed7aa 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
}

.splash-fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

.splash-icon-pulse {
    animation: splashIconGlow 2.4s infinite ease-in-out;
}

@keyframes splashIconGlow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 14px 24px rgba(249, 115, 22, 0.38)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 20px 32px rgba(249, 115, 22, 0.55)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
    }
}

/* Scrollbar invisível */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Notyf Toasts Estilizados */
.notyf {
    z-index: 99999 !important;
    bottom: 32px !important;
}
.notyf__toast {
    border-radius: 1.25rem !important;
    box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.35), 0 8px 12px -6px rgba(0, 0, 0, 0.2) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    max-width: 92vw !important;
    background: #1e293b !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px) !important;
}
.notyf__toast--warning {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    color: #ffffff !important;
    border-color: rgba(251, 191, 36, 0.3) !important;
}
.notyf__toast--error {
    background: linear-gradient(135deg, #e11d48, #be123c) !important;
    color: #ffffff !important;
    border-color: rgba(253, 164, 175, 0.3) !important;
}
.notyf__toast--success {
    background: linear-gradient(135deg, #059669, #047857) !important;
    color: #ffffff !important;
    border-color: rgba(110, 231, 183, 0.3) !important;
}
.notyf__toast--info {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    color: #ffffff !important;
    border-color: rgba(125, 211, 252, 0.3) !important;
}
.notyf__message {
    font-size: 0.85rem !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}
.notyf__dismiss-btn {
    opacity: 0.8 !important;
}
.notyf__dismiss-btn:hover {
    opacity: 1 !important;
}

/* Botão Menu Flutuante Específico para a Home (sobre o céu escuro da janela) */
.nav-btn-home {
    background: rgba(15, 23, 42, 0.65) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(10px) !important;
}

.nav-btn-home:hover {
    background: rgba(15, 23, 42, 0.85) !important;
    color: #fb923c !important;
    transform: scale(1.05);
}

/* Sliders Mágicos de Toque (Grandes, Ergonômicos e Modernos) */
.magic-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 16px;
    border-radius: 9999px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
    touch-action: pan-y;
    transition: background 0.15s ease;
}

/* WebKit / Blink (Chrome, Safari, Edge, Android WebView, iOS) */
.magic-range-slider::-webkit-slider-runnable-track {
    height: 16px;
    border-radius: 9999px;
}

.magic-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 36px;
    height: 36px;
    margin-top: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    border: 3.5px solid #ffffff;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.45), 0 2px 4px rgba(0, 0, 0, 0.12);
    cursor: grab;
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
}

.magic-range-slider:active::-webkit-slider-thumb {
    cursor: grabbing;
    transform: scale(1.18);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.65), 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Firefox */
.magic-range-slider::-moz-range-track {
    height: 16px;
    border-radius: 9999px;
    background: #e2e8f0;
}

.magic-range-slider::-moz-range-thumb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    border: 3.5px solid #ffffff;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.45), 0 2px 4px rgba(0, 0, 0, 0.12);
    cursor: grab;
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
}

.magic-range-slider:active::-moz-range-thumb {
    cursor: grabbing;
    transform: scale(1.18);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.65), 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Notyf Toast Customizações Mobile & Cobertura Total do Efeito Ripple */
.notyf {
    z-index: 99999 !important;
}

.notyf__toast {
    max-width: min(92vw, 450px) !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 14px 35px -6px rgba(0, 0, 0, 0.45) !important;
    overflow: hidden !important;
}

.notyf__wrapper {
    padding: 14px 18px !important;
}

.notyf__message {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

/* Garante que o efeito ripple se expanda por toda a largura do toaster sem parar pela metade */
.notyf__ripple {
    height: 1400px !important;
    width: 1400px !important;
    transform: scale(0) translateY(-45%) translateX(13%) !important;
}

@-webkit-keyframes ripple {
    0% { transform: scale(0) translateY(-45%) translateX(13%); }
    to { transform: scale(1) translateY(-45%) translateX(13%); }
}

@keyframes ripple {
    0% { transform: scale(0) translateY(-45%) translateX(13%); }
    to { transform: scale(1) translateY(-45%) translateX(13%); }
}

/* Espaçamento Superior Reduzido na Home (-10px adicionais, -25px total) */
.home-content-wrap {
    padding-top: calc(40vh - 25px) !important;
}
@media (min-width: 640px) {
    .home-content-wrap {
        padding-top: calc(42vh - 25px) !important;
    }
}
@media (min-width: 768px) {
    .home-content-wrap {
        padding-top: 315px !important;
    }
}

/* Efeito Shimmer e Skeleton Screen */
@keyframes shimmerWave {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.animate-shimmer {
    animation: shimmerWave 1.6s infinite;
}

/* Notyf Toasters com margem do topo de 30px */
.notyf {
    top: calc(env(safe-area-inset-top, 0px) + 30px) !important;
    z-index: 99999 !important;
}

.notyf__toast {
    border-radius: 1.25rem !important;
    box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.22) !important;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
    will-change: transform, opacity;
}

.notyf__toast:active {
    cursor: grabbing;
}

.notyf__toast.is-swipe-dismissing {
    pointer-events: none;
}

/* Movimento contínuo sem indicar uma porcentagem fictícia da geração. */
.loading-progress-track {
    position: relative;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.08);
}

.loading-progress-runner {
    width: 38%;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.65);
    animation: loadingProgressSweep 2.5s ease-in-out infinite;
}

@keyframes loadingProgressSweep {
    0% { transform: translateX(-115%); opacity: 0.7; }
    50% { opacity: 1; }
    100% { transform: translateX(275%); opacity: 0.7; }
}

.loading-progress-track.is-complete .loading-progress-runner {
    width: 100%;
    transform: none;
    animation: none;
    transition: width 0.45s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .loading-progress-runner { animation-duration: 6s; }
}



