/* ==========================================================================
 * Tema de Natal da página inicial — "Noite Mágica"
 * ==========================================================================
 *
 * Carregado apenas na home (ver components/layout-hotsite.blade.php) e apenas
 * durante o período de config/christmas.php.
 *
 * Todo seletor deste arquivo desce da classe .natal no <body>. Isso não é
 * capricho de organização: o layout-hotsite também serve a página de leitura
 * de notícias, e sem essa raiz comum o tema vazaria para lá no dia em que
 * alguém carregasse o arquivo por engano.
 *
 * O céu é azul-meia-noite de propósito. O hotsite inteiro é construído em
 * azul, então escurecer o mesmo azul troca a atmosfera por completo sem
 * abandonar a identidade visual do município.
 *
 * Decoração é decoração: as camadas de fundo usam pointer-events: none e
 * aria-hidden no HTML. Só os bonecos de neve e a estrela da árvore reativam o
 * ponteiro, porque são as duas coisas em que a criança clica de propósito.
 * ========================================================================== */

.natal {
    /* Céu */
    --natal-ceu-topo: #04091c;
    --natal-ceu-meio: #0c1f4d;
    --natal-ceu-base: #1d4080;

    /* Neve e gelo */
    --natal-neve: #f5faff;
    --natal-neve-sombra: #cfe3f7;
    --natal-gelo: #9fd8ff;

    /* Cores de Natal */
    --natal-vermelho: #e8404b;
    --natal-vermelho-escuro: #b01f2a;
    --natal-verde: #23945f;
    --natal-verde-escuro: #11603b;
    --natal-ouro: #ffd560;
    --natal-ouro-quente: #f7a93b;
    --natal-rosa: #ff9ebb;

    /* Luzes da guirlanda */
    --luz-1: 255, 213, 96;
    --luz-2: 120, 226, 255;
    --luz-3: 255, 107, 129;
    --luz-4: 140, 240, 170;
}

/* --------------------------------------------------------------------------
 * 1. O céu
 * --------------------------------------------------------------------------
 *
 * O fundo vai no <body> e não numa camada fixa porque a página é mais alta
 * que a tela: um gradiente fixo no body acompanha a rolagem sem repetir.
 */

.natal {
    background: linear-gradient(
        180deg,
        var(--natal-ceu-topo) 0%,
        var(--natal-ceu-meio) 45%,
        var(--natal-ceu-base) 100%
    ) !important;
    background-attachment: fixed !important;
    color: var(--natal-neve);

    /* O cenário do chão sangra para a largura da janela com 100vw, e 100vw
     * conta a barra de rolagem vertical: sobram uns 15px de largura. "clip"
     * corta isso sem criar um contêiner rolável; "hidden" fica antes como
     * reserva para navegadores que ainda não conhecem "clip". */
    overflow-x: hidden;
    overflow-x: clip;
}

/* Camadas decorativas que cobrem a tela inteira. */
.natal-ceu,
.natal-neve-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    user-select: none;
}

.natal-ceu {
    z-index: 0;
    overflow: hidden;
}

.natal-neve-canvas {
    z-index: 2;
}

/* A aurora: duas manchas de luz que respiram devagar no alto do céu. É o que
 * dá a sensação de "noite mágica" em vez de "fundo escuro". */
.natal-aurora {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 70%;
    background: radial-gradient(45% 40% at 20% 40%, rgba(120, 226, 255, 0.18), transparent 70%),
    radial-gradient(40% 35% at 70% 25%, rgba(167, 139, 250, 0.16), transparent 70%),
    radial-gradient(35% 30% at 45% 55%, rgba(74, 222, 170, 0.12), transparent 70%);
    filter: blur(12px);
    animation: natal-aurora 18s ease-in-out infinite alternate;
}

@keyframes natal-aurora {
    from {
        transform: translate3d(-2%, 0, 0) scale(1);
        opacity: 0.75;
    }
    to {
        transform: translate3d(3%, 2%, 0) scale(1.08);
        opacity: 1;
    }
}

/* Estrelas. Cada uma é um elemento com delay próprio, gerado no Blade. */
.natal-estrela {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.8);
    animation: natal-piscar 3.5s ease-in-out infinite;
}

.natal-estrela--grande {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 10px 2px rgba(190, 230, 255, 0.9);
}

@keyframes natal-piscar {
    0%, 100% {
        opacity: 0.25;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* A lua, com halo. */
.natal-lua {
    position: absolute;
    top: 7%;
    right: 8%;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fffdf2 0%, #ffeec2 55%, #f2d79b 100%);
    box-shadow: 0 0 40px 12px rgba(255, 236, 190, 0.35),
    0 0 120px 50px rgba(255, 228, 160, 0.14),
    inset -10px -6px 20px rgba(190, 160, 110, 0.35);
    animation: natal-lua-brilho 8s ease-in-out infinite alternate;
}

/* As crateras deixam a lua parecer desenhada, não um círculo amarelo. */
.natal-lua::before,
.natal-lua::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(214, 183, 130, 0.35);
}

.natal-lua::before {
    width: 18px;
    height: 18px;
    top: 24px;
    left: 20px;
}

.natal-lua::after {
    width: 11px;
    height: 11px;
    bottom: 22px;
    right: 26px;
}

@keyframes natal-lua-brilho {
    from {
        filter: brightness(1);
    }
    to {
        filter: brightness(1.12);
    }
}

/* --------------------------------------------------------------------------
 * 2. O trenó
 * --------------------------------------------------------------------------
 *
 * Atravessa o céu de tempos em tempos, e não sem parar: o que aparece sempre
 * deixa de ser visto. O atraso longo faz a criança esperar pela próxima
 * passagem — e chamar alguém para ver.
 */

.natal-treno {
    position: absolute;
    top: 14%;
    left: -22%;
    width: 190px;
    animation: natal-treno-voo 26s linear infinite;
    animation-delay: 6s;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}

.natal-treno svg {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes natal-treno-voo {
    0% {
        transform: translate3d(0, 0, 0) rotate(-3deg);
        opacity: 0;
    }
    4% {
        opacity: 1;
    }
    25% {
        transform: translate3d(40vw, -5vh, 0) rotate(2deg);
    }
    50% {
        transform: translate3d(80vw, 3vh, 0) rotate(-2deg);
    }
    70% {
        transform: translate3d(118vw, -4vh, 0) rotate(2deg);
        opacity: 1;
    }
    76%, 100% {
        transform: translate3d(140vw, -6vh, 0) rotate(0deg);
        opacity: 0;
    }
}

/* O rastro de poeira mágica atrás do trenó. */
.natal-treno-rastro {
    position: absolute;
    top: 50%;
    right: 100%;
    width: 130px;
    height: 4px;
    background: linear-gradient(270deg, rgba(255, 213, 96, 0.75), transparent);
    border-radius: 4px;
    filter: blur(2px);
}

/* --------------------------------------------------------------------------
 * 3. A guirlanda de luzes
 * --------------------------------------------------------------------------
 *
 * Fica fixa no topo, pendurada sobre o cabeçalho. O fio é desenhado com
 * border-radius para dar a curva do arame; cada lâmpada pisca no seu tempo.
 */

.natal-guirlanda {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 10px;
    pointer-events: none;
    list-style: none;
    margin: 0;
}

.natal-guirlanda li {
    position: relative;
    flex: 1 1 auto;
    max-width: 46px;
    height: 26px;
    border-radius: 0 0 46% 46%;
    border: 2px solid rgba(23, 51, 97, 0.9);
    border-top: 0;
}

/* O bulbo. */
.natal-guirlanda li::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%);
    width: 11px;
    height: 17px;
    border-radius: 50% 50% 46% 46% / 38% 38% 62% 62%;
    animation: natal-luz 2.4s ease-in-out infinite;
}

/* O casquilho que prende o bulbo no fio. */
.natal-guirlanda li::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 5px;
    border-radius: 2px;
    background: #16325d;
    z-index: 1;
}

.natal-guirlanda li:nth-child(4n + 1)::after {
    background: rgb(var(--luz-1));
    box-shadow: 0 0 14px 4px rgba(var(--luz-1), 0.85);
    animation-delay: 0s;
}

.natal-guirlanda li:nth-child(4n + 2)::after {
    background: rgb(var(--luz-2));
    box-shadow: 0 0 14px 4px rgba(var(--luz-2), 0.85);
    animation-delay: 0.6s;
}

.natal-guirlanda li:nth-child(4n + 3)::after {
    background: rgb(var(--luz-3));
    box-shadow: 0 0 14px 4px rgba(var(--luz-3), 0.85);
    animation-delay: 1.2s;
}

.natal-guirlanda li:nth-child(4n + 4)::after {
    background: rgb(var(--luz-4));
    box-shadow: 0 0 14px 4px rgba(var(--luz-4), 0.85);
    animation-delay: 1.8s;
}

@keyframes natal-luz {
    0%, 100% {
        opacity: 1;
        filter: brightness(1.25);
    }
    50% {
        opacity: 0.35;
        filter: brightness(0.6);
    }
}

/* --------------------------------------------------------------------------
 * 4. Cabeçalho e rodapé
 * --------------------------------------------------------------------------
 *
 * O cabeçalho vira vidro fosco escuro para o céu aparecer através dele. O
 * componente não foi tocado: as classes do Tailwind continuam lá e só são
 * sobrescritas enquanto .natal estiver no <body>.
 */

.natal header {
    position: relative;
    z-index: 30;
    background: rgba(8, 20, 46, 0.82) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(159, 216, 255, 0.22) !important;
    box-shadow: 0 6px 30px rgba(4, 9, 28, 0.5) !important;
    padding-top: 14px;
}

.natal header .text-blue-600 {
    color: var(--natal-neve) !important;
}

.natal header .text-gray-600 {
    color: #bcd8f7 !important;
}

.natal header a:hover {
    color: var(--natal-ouro) !important;
}

/* A logo do município ganha um fundo claro para não sumir no escuro. */
.natal header img {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    padding: 3px;
}

.natal footer {
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, #0a1733 0%, #050c1e 100%) !important;
    border-top: 1px solid rgba(159, 216, 255, 0.18);
}

/* A borda de neve acumulada no topo do rodapé. */
.natal footer::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 16px;
    background: radial-gradient(14px 14px at 14px 14px, var(--natal-neve) 13px, transparent 14px) 0 0 / 28px 16px repeat-x;
}

.natal footer .text-gray-300 {
    color: #c6dcf5 !important;
}

.natal footer a:hover {
    color: var(--natal-ouro) !important;
}

/* --------------------------------------------------------------------------
 * 5. Tipografia festiva
 * --------------------------------------------------------------------------
 *
 * Uma fonte arredondada muda o tom da página mais do que qualquer enfeite:
 * é a diferença entre "site do governo com neve" e "site de Natal". A pilha
 * de reserva é toda de fontes locais, então uma falha no Google Fonts deixa
 * a página feia, nunca ilegível.
 */

.natal {
    --natal-fonte: 'Baloo 2', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
 * 6. O conteúdo acima das camadas de fundo
 * -------------------------------------------------------------------------- */

.natal #main-content {
    position: relative;
    z-index: 10;
}

/* --------------------------------------------------------------------------
 * 7. O banner de boas-vindas
 * -------------------------------------------------------------------------- */

.natal-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 24px;
    margin-bottom: 3rem;
    padding: 40px 44px;
    border-radius: 28px;
    background: radial-gradient(120% 120% at 85% 10%, rgba(120, 226, 255, 0.16), transparent 60%),
    linear-gradient(145deg, rgba(14, 33, 74, 0.92), rgba(8, 18, 42, 0.95));
    border: 1px solid rgba(159, 216, 255, 0.28);
    box-shadow: 0 24px 60px rgba(3, 8, 24, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

/* A neve acumulada na borda de cima do banner. */
.natal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 22px;
    background: radial-gradient(16px 16px at 16px 9px, var(--natal-neve) 15px, transparent 16px) 0 100% / 32px 18px repeat-x,
    linear-gradient(var(--natal-neve), var(--natal-neve)) 0 0 / 100% 10px no-repeat;
    z-index: 2;
}

/* Um facho de luz girando devagar atrás do texto. */
.natal-hero-brilho {
    position: absolute;
    top: -60%;
    left: -10%;
    width: 70%;
    height: 220%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255, 213, 96, 0.1) 18deg,
        transparent 40deg,
        transparent 180deg,
        rgba(120, 226, 255, 0.08) 200deg,
        transparent 230deg
    );
    animation: natal-girar 24s linear infinite;
    pointer-events: none;
}

@keyframes natal-girar {
    to {
        transform: rotate(360deg);
    }
}

.natal-hero-conteudo {
    position: relative;
    z-index: 3;
}

.natal-hero-sobre {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(232, 64, 75, 0.18);
    border: 1px solid rgba(255, 158, 187, 0.45);
    color: #ffd0d8;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.natal-hero-titulo {
    margin: 0 0 14px;
    font-family: var(--natal-fonte);
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--natal-ouro);
    filter: drop-shadow(0 4px 14px rgba(255, 190, 80, 0.45));
}

/* Cada letra do título entra caindo, como floco que assenta. O índice é
 * definido no HTML para o atraso sair em cascata. */
.natal-hero-letra {
    display: inline-block;
    background: linear-gradient(180deg, #fffdf5 0%, var(--natal-ouro) 50%, var(--natal-ouro-quente) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: natal-cair-letra 0.7s cubic-bezier(0.22, 1.3, 0.36, 1) backwards;
    animation-delay: calc(var(--i, 0) * 70ms);
}

/* O espaço entre as palavras: um <span> com um espaço dentro colapsaria. */
.natal-hero-espaco {
    display: inline-block;
    width: 0.3em;
}

@keyframes natal-cair-letra {
    from {
        opacity: 0;
        transform: translateY(-40px) rotate(-12deg) scale(0.7);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.natal-hero-texto {
    max-width: 44ch;
    margin: 0 0 24px;
    color: #cfe3ff;
    font-size: 1.05rem;
    line-height: 1.65;
}

.natal-hero-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* A cena do banner: boneco de neve, árvore e presentes. */
.natal-hero-cena {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    min-height: 240px;
}

/* --------------------------------------------------------------------------
 * 8. Bonecos de neve
 * --------------------------------------------------------------------------
 *
 * Os bonecos são clicáveis: é a recompensa de quem cutuca a tela. Ganham
 * cursor, foco visível e role="button" no HTML, porque brincadeira que só
 * funciona com mouse exclui metade das crianças.
 */

.natal-boneco {
    position: relative;
    display: block;
    width: var(--boneco-largura, 150px);
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.natal-boneco svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 10px 20px rgba(3, 10, 30, 0.45));
}

.natal-boneco:focus-visible {
    outline: 3px dashed var(--natal-ouro);
    outline-offset: 8px;
    border-radius: 18px;
}

/* A respiração: o corpo inteiro sobe e desce de leve. */
.natal-boneco-corpo {
    animation: natal-flutuar 3.4s ease-in-out infinite;
    transform-box: view-box;
    transform-origin: 60px 196px;
}

@keyframes natal-flutuar {
    0%, 100% {
        transform: translateY(0) scale(1, 1);
    }
    50% {
        transform: translateY(-5px) scale(0.995, 1.005);
    }
}

/* O braço que acena. */
.natal-boneco-braco {
    transform-box: view-box;
    transform-origin: 86px 100px;
    animation: natal-acenar 2.6s ease-in-out infinite;
}

@keyframes natal-acenar {
    0%, 60%, 100% {
        transform: rotate(0deg);
    }
    70% {
        transform: rotate(-22deg);
    }
    80% {
        transform: rotate(-6deg);
    }
    90% {
        transform: rotate(-20deg);
    }
}

/* O piscar: a pálpebra fecha por um instante só. */
.natal-boneco-olhos {
    animation: natal-piscar-olhos 5.2s infinite;
    transform-box: view-box;
    transform-origin: 60px 57px;
}

@keyframes natal-piscar-olhos {
    0%, 92%, 100% {
        transform: scaleY(1);
    }
    95% {
        transform: scaleY(0.08);
    }
}

/* A ponta do cachecol no vento. */
.natal-boneco-cachecol {
    transform-box: view-box;
    transform-origin: 72px 86px;
    animation: natal-cachecol 3.1s ease-in-out infinite;
}

@keyframes natal-cachecol {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(7deg);
    }
}

/* Clique: o boneco dá um pulinho e volta. A classe é posta e retirada pelo
 * script, então a animação roda do começo a cada clique. */
.natal-boneco--pula .natal-boneco-corpo {
    animation: natal-pulo 0.75s cubic-bezier(0.3, 1.4, 0.4, 1);
}

@keyframes natal-pulo {
    0% {
        transform: translateY(0) scale(1, 1);
    }
    25% {
        transform: translateY(4px) scale(1.08, 0.9);
    }
    55% {
        transform: translateY(-34px) scale(0.94, 1.1) rotate(-5deg);
    }
    75% {
        transform: translateY(0) scale(1.06, 0.94);
    }
    100% {
        transform: translateY(0) scale(1, 1);
    }
}

/* A falinha que aparece sobre o boneco ao clicar. */
.natal-fala {
    position: absolute;
    left: 50%;
    bottom: calc(100% - 6px);
    transform: translateX(-50%) scale(0.6);
    padding: 10px 16px;
    border-radius: 16px;
    background: var(--natal-neve);
    color: #123;
    font-family: var(--natal-fonte);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(3, 10, 30, 0.4);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

.natal-fala::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 9px solid transparent;
    border-top-color: var(--natal-neve);
}

.natal-fala--visivel {
    animation: natal-fala 2.2s ease forwards;
}

@keyframes natal-fala {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px) scale(0.6);
    }
    14% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1.06);
    }
    22% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
    78% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-14px) scale(0.9);
    }
}

/* --------------------------------------------------------------------------
 * 9. A árvore de Natal
 * -------------------------------------------------------------------------- */

.natal-arvore {
    position: relative;
    width: var(--arvore-largura, 190px);
}

.natal-arvore svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 12px 26px rgba(3, 10, 30, 0.5));
}

/* As bolas da árvore acendem em tempos diferentes. */
.natal-bola {
    animation: natal-bola-brilho 2.2s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.natal-bola:nth-of-type(3n) {
    animation-delay: 0.4s;
}

.natal-bola:nth-of-type(3n + 1) {
    animation-delay: 0.9s;
}

.natal-bola:nth-of-type(3n + 2) {
    animation-delay: 1.5s;
}

@keyframes natal-bola-brilho {
    0%, 100% {
        opacity: 0.55;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* A estrela do topo é um botão: clicar acende a árvore toda. */
.natal-estrela-topo {
    cursor: pointer;
    pointer-events: auto;
    transform-box: fill-box;
    transform-origin: center;
    animation: natal-estrela-gira 6s ease-in-out infinite;
}

@keyframes natal-estrela-gira {
    0%, 100% {
        transform: rotate(-8deg) scale(1);
    }
    50% {
        transform: rotate(8deg) scale(1.08);
    }
}

.natal-arvore--acesa svg {
    filter: drop-shadow(0 0 40px rgba(255, 213, 96, 0.65)) drop-shadow(0 12px 26px rgba(3, 10, 30, 0.5));
}

.natal-arvore--acesa .natal-bola {
    animation-duration: 0.6s;
}

.natal-arvore--acesa .natal-estrela-topo {
    animation: natal-estrela-festa 0.6s ease-in-out 3;
}

@keyframes natal-estrela-festa {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-20deg) scale(1.3);
    }
    75% {
        transform: rotate(20deg) scale(1.3);
    }
}

/* --------------------------------------------------------------------------
 * 10. O cenário do chão
 * --------------------------------------------------------------------------
 *
 * Fecha a página antes do rodapé, no lugar onde a rolagem termina. Sangra
 * para fora da coluna de conteúdo porque a faixa de neve só convence se
 * atravessar a tela de ponta a ponta.
 */

.natal-cenario {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: -2rem;
    padding: 0 clamp(12px, 5vw, 80px);
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    overflow: hidden;
    pointer-events: none;
}

/* Os morros de neve, em três camadas, do mais distante ao mais próximo. */
.natal-morros {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 150px;
    pointer-events: none;
}

.natal-morros svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* A fila de pinheiros ao fundo. */
.natal-pinheiros {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 76px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    opacity: 0.5;
    pointer-events: none;
}

.natal-pinheiros svg {
    width: clamp(22px, 3vw, 46px);
    height: auto;
}

.natal-pinheiros svg:nth-child(even) {
    width: clamp(16px, 2.2vw, 34px);
    opacity: 0.75;
}

.natal-cenario-grupo {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: clamp(4px, 1.5vw, 22px);
    padding-bottom: 54px;
}

/* Os presentes empilhados. */
.natal-presentes {
    position: relative;
    width: clamp(70px, 9vw, 130px);
}

.natal-presentes svg {
    display: block;
    width: 100%;
    height: auto;
}

.natal-presente {
    transform-box: fill-box;
    transform-origin: bottom center;
    animation: natal-presente-mexe 4s ease-in-out infinite;
}

.natal-presente:nth-of-type(2) {
    animation-delay: 0.8s;
}

.natal-presente:nth-of-type(3) {
    animation-delay: 1.6s;
}

@keyframes natal-presente-mexe {
    0%, 86%, 100% {
        transform: rotate(0deg);
    }
    90% {
        transform: rotate(-3.5deg);
    }
    95% {
        transform: rotate(3.5deg);
    }
}

/* --------------------------------------------------------------------------
 * 11. Botões natalinos
 * --------------------------------------------------------------------------
 *
 * Botão de brinquedo: corpo arredondado, uma sombra sólida embaixo fazendo
 * de "altura" e neve acumulada na borda de cima. No :active ele afunda na
 * própria sombra — é o detalhe que faz a criança clicar de novo só para
 * sentir o botão responder.
 */

.natal-botao {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px 13px;
    border: 0;
    border-radius: 999px;
    font-family: var(--natal-fonte);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(180deg, var(--natal-botao-claro), var(--natal-botao-escuro));
    box-shadow: 0 6px 0 var(--natal-botao-base),
    0 16px 30px rgba(3, 10, 30, 0.45);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
    -webkit-tap-highlight-color: transparent;
}

/* A neve na borda de cima. */
.natal-botao::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 11px;
    background: radial-gradient(8px 8px at 8px 5px, var(--natal-neve) 7px, transparent 8px) 0 100% / 16px 11px repeat-x,
    linear-gradient(var(--natal-neve), var(--natal-neve)) 0 0 / 100% 5px no-repeat;
    pointer-events: none;
}

/* O brilho que passa por cima quando o ponteiro chega. */
.natal-botao::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-18deg);
    transition: left 0.55s ease;
    pointer-events: none;
}

.natal-botao:hover {
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 0 9px 0 var(--natal-botao-base),
    0 22px 38px rgba(3, 10, 30, 0.5);
    filter: brightness(1.06);
}

.natal-botao:hover::after {
    left: 115%;
}

.natal-botao:active {
    transform: translateY(4px) scale(0.98);
    box-shadow: 0 1px 0 var(--natal-botao-base),
    0 6px 14px rgba(3, 10, 30, 0.4);
}

.natal-botao:focus-visible {
    outline: 3px solid var(--natal-ouro);
    outline-offset: 4px;
}

.natal-botao svg,
.natal-botao i {
    flex: none;
}

.natal-botao--vermelho {
    --natal-botao-claro: #f4555f;
    --natal-botao-escuro: #d32b36;
    --natal-botao-base: #8d1a22;
}

.natal-botao--verde {
    --natal-botao-claro: #2fae70;
    --natal-botao-escuro: #1b7d4c;
    --natal-botao-base: #0f4e2f;
}

.natal-botao--ouro {
    --natal-botao-claro: #ffdd7a;
    --natal-botao-escuro: #f2a52f;
    --natal-botao-base: #b06f10;
    color: #4a2a00;
}

/* --------------------------------------------------------------------------
 * 12. Títulos das seções
 * --------------------------------------------------------------------------
 *
 * As seções da home chegam com text-gray-800, que no céu escuro fica
 * ilegível. A troca de cor aqui não é enfeite: é o que mantém o conteúdo
 * acessível depois de escurecer o fundo.
 */

.natal #home-page section > h2 {
    position: relative;
    display: block;
    font-family: var(--natal-fonte);
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    font-weight: 800;
    color: var(--natal-neve) !important;
    text-shadow: 0 2px 20px rgba(120, 190, 255, 0.45);
}

/* Os raminhos de azevinho dos dois lados do título. */
.natal #home-page section > h2::before,
.natal #home-page section > h2::after {
    content: '';
    display: inline-block;
    width: clamp(26px, 6vw, 58px);
    height: 2px;
    margin: 0 14px;
    vertical-align: middle;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--natal-ouro));
}

.natal #home-page section > h2::after {
    background: linear-gradient(90deg, var(--natal-ouro), transparent);
}

/* --------------------------------------------------------------------------
 * 13. Módulos: os cards viram caixas de presente
 * --------------------------------------------------------------------------
 *
 * O !important aqui é proposital. As cores chegam como utilitários do
 * Tailwind direto no HTML (bg-blue-600, hover:bg-blue-700) e a alternativa
 * seria encher o componente de condicionais de Natal. Um arquivo sazonal que
 * sobrescreve por fora é mais fácil de ligar, desligar e jogar fora depois.
 */

.natal .natal-modulo {
    position: relative;
    overflow: hidden;
    border-radius: 22px !important;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 16px 36px rgba(3, 10, 30, 0.45) !important;
    transition: transform 0.3s cubic-bezier(0.2, 1.2, 0.3, 1), box-shadow 0.3s ease;
}

.natal .natal-modulo:nth-child(3n + 1) {
    background: linear-gradient(160deg, #ef5560, #b01f2a) !important;
}

.natal .natal-modulo:nth-child(3n + 2) {
    background: linear-gradient(160deg, #2bab6d, #11603b) !important;
}

.natal .natal-modulo:nth-child(3n + 3) {
    background: linear-gradient(160deg, #3d7bd4, #16356e) !important;
}

/* A neve na tampa da caixa. */
.natal .natal-modulo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 18px;
    background: radial-gradient(13px 13px at 13px 7px, var(--natal-neve) 12px, transparent 13px) 0 100% / 26px 15px repeat-x,
    linear-gradient(var(--natal-neve), var(--natal-neve)) 0 0 / 100% 8px no-repeat;
    z-index: 2;
    pointer-events: none;
}

/* A fita do presente, atravessando o card. */
.natal .natal-modulo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent calc(50% - 13px), rgba(255, 213, 96, 0.5) calc(50% - 13px), rgba(255, 213, 96, 0.5) calc(50% + 13px), transparent calc(50% + 13px)),
    radial-gradient(60% 55% at 50% 0%, rgba(255, 255, 255, 0.2), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.natal .natal-modulo > div {
    position: relative;
    z-index: 3;
    padding-top: 10px;
}

.natal .natal-modulo:hover {
    transform: translateY(-10px) scale(1.04) rotate(-0.8deg) !important;
    box-shadow: 0 28px 50px rgba(3, 10, 30, 0.55) !important;
}

/* O ícone ganha um disco de neve atrás. */
.natal .natal-modulo [data-lucide],
.natal .natal-modulo svg {
    position: relative;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

.natal .natal-modulo h3 {
    font-family: var(--natal-fonte);
    font-size: 1.2rem;
    font-weight: 800;
}

.natal .natal-modulo .text-blue-100 {
    color: rgba(255, 255, 255, 0.88) !important;
}

/* O laço no canto da caixa, que balança — e se agita no hover.
 *
 * Desenhado aqui, como imagem de fundo, e não no Blade: assim o componente
 * dos módulos só precisou ganhar a classe .natal-modulo, sem um @if de Natal
 * no meio do markup que fica lá os doze meses do ano.
 */
.natal .natal-modulo > div::before {
    content: '';
    position: absolute;
    top: -18px;
    right: -6px;
    z-index: 4;
    width: 52px;
    height: 44px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 50'%3E%3Cpath d='M30 31 Q11 7 5 21 Q1 35 30 33 Z' fill='%23ffd560'/%3E%3Cpath d='M30 31 Q49 7 55 21 Q59 35 30 33 Z' fill='%23ffd560'/%3E%3Cpath d='M30 31 Q13 11 7 23' fill='none' stroke='%23f0a32c' stroke-width='1.6'/%3E%3Cpath d='M30 31 Q47 11 53 23' fill='none' stroke='%23f0a32c' stroke-width='1.6'/%3E%3Cellipse cx='30' cy='32' rx='8.5' ry='7.5' fill='%23f0a32c'/%3E%3Cellipse cx='30' cy='31' rx='6' ry='5' fill='%23ffe9a8'/%3E%3C/svg%3E") center / contain no-repeat;
    transform-origin: top center;
    animation: natal-laco 4.5s ease-in-out infinite;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

.natal .natal-modulo:hover > div::before {
    animation: natal-laco-rapido 0.6s ease-in-out infinite;
}

@keyframes natal-laco {
    0%, 100% {
        transform: rotate(-4deg);
    }
    50% {
        transform: rotate(4deg);
    }
}

@keyframes natal-laco-rapido {
    0%, 100% {
        transform: rotate(-12deg) scale(1.1);
    }
    50% {
        transform: rotate(12deg) scale(1.1);
    }
}

/* --------------------------------------------------------------------------
 * 14. Destaque de notícias
 * -------------------------------------------------------------------------- */

.natal .natal-destaque {
    background: linear-gradient(135deg, #16356e 0%, #0b1e48 55%, #112a5e 100%) !important;
    border: 1px solid rgba(159, 216, 255, 0.25);
    box-shadow: 0 24px 56px rgba(3, 10, 30, 0.55) !important;
}

/* Um véu de estrelinhas sobre o destaque. */
.natal .natal-destaque::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, 0.9), transparent 100%),
    radial-gradient(1.5px 1.5px at 28% 68%, rgba(255, 255, 255, 0.7), transparent 100%),
    radial-gradient(2px 2px at 46% 18%, rgba(190, 230, 255, 0.85), transparent 100%),
    radial-gradient(1.5px 1.5px at 62% 52%, rgba(255, 255, 255, 0.7), transparent 100%),
    radial-gradient(1.5px 1.5px at 78% 30%, rgba(255, 255, 255, 0.8), transparent 100%),
    radial-gradient(2px 2px at 88% 72%, rgba(255, 213, 96, 0.8), transparent 100%);
    z-index: 1;
    pointer-events: none;
    animation: natal-ceu-estrelas 6s ease-in-out infinite alternate;
}

@keyframes natal-ceu-estrelas {
    from {
        opacity: 0.45;
    }
    to {
        opacity: 1;
    }
}

.natal .natal-destaque #news-slider,
.natal .natal-destaque #slider-dots {
    position: relative;
    z-index: 2;
}

/* As setas já são absolutas: aqui só sobem de camada, sem mexer na posição. */
.natal .natal-destaque > button {
    z-index: 2;
}

.natal .natal-destaque h2 {
    font-family: var(--natal-fonte);
    font-weight: 800;
}

.natal .natal-destaque .bg-yellow-400 {
    background: linear-gradient(180deg, #ffdd7a, #f2a52f) !important;
    color: #4a2a00 !important;
    box-shadow: 0 4px 0 #b06f10;
    border-radius: 999px !important;
}

.natal .natal-destaque .bg-blue-200 {
    background: linear-gradient(180deg, #a9e6ff, #5fc4f0) !important;
    color: #07294a !important;
    box-shadow: 0 4px 0 #1d6f9c;
    border-radius: 999px !important;
}

.natal .natal-destaque .text-blue-100 {
    color: #cfe3ff !important;
}

/* --------------------------------------------------------------------------
 * 15. Notícias, links úteis e contato
 * --------------------------------------------------------------------------
 *
 * Os cards de notícia continuam claros. Texto escuro sobre branco é o que
 * garante a leitura: o tema escurece a moldura, não o conteúdo.
 */

.natal .natal-noticias article,
.natal .natal-links > div {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(159, 216, 255, 0.5);
    border-radius: 18px !important;
    box-shadow: 0 14px 34px rgba(3, 10, 30, 0.4) !important;
    overflow: hidden;
}

.natal .natal-noticias article {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Neve acumulada no alto do card em destaque. */
.natal .natal-noticias .lg\:col-span-2 article::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 16px;
    background: radial-gradient(12px 12px at 12px 6px, var(--natal-neve) 11px, transparent 12px) 0 100% / 24px 14px repeat-x,
    linear-gradient(var(--natal-neve), var(--natal-neve)) 0 0 / 100% 7px no-repeat;
    z-index: 3;
    pointer-events: none;
}

.natal .natal-noticias article:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(3, 10, 30, 0.5) !important;
}

.natal .natal-noticias .bg-blue-600 {
    background: linear-gradient(180deg, #ef5560, #b01f2a) !important;
    border-radius: 999px !important;
}

.natal .natal-noticias h3,
.natal .natal-noticias h4 {
    font-family: var(--natal-fonte);
}

.natal .natal-links img {
    background: #fff !important;
    padding: 4px;
    border-radius: 8px;
}

/* O aviso de "nenhuma notícia" do BladewindUI vem com texto cinza-escuro,
 * pensado para fundo claro, e fica ilegível sobre o céu noturno. Só aparece
 * em município sem notícia publicada, que é justamente quem não ia notar. */
.natal .bw-empty-state,
.natal .bw-empty-state div {
    color: #cfe3ff !important;
}

.natal .natal-contato > div {
    border-radius: 26px !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(160deg, #1b7d4c, #0f4e2f) !important;
    box-shadow: 0 24px 56px rgba(3, 10, 30, 0.55) !important;
    overflow: hidden;
}

.natal .natal-contato .bg-blue-700 {
    background: linear-gradient(170deg, #13743f, #0a4526) !important;
    position: relative;
}

.natal .natal-contato h2 {
    font-family: var(--natal-fonte);
    font-size: 1.9rem;
    font-weight: 800;
}

.natal .natal-contato .text-blue-100 {
    color: #d4f3e1 !important;
}

/* O painel do formulário fica branco: campo de texto precisa de contraste. */
.natal .natal-contato .bg-white {
    background: #fdfeff !important;
}

/* O que a pessoa digita.
 *
 * O preflight do Tailwind 4 manda os campos herdarem a cor do texto
 * (color: inherit) e deixa o fundo transparente. Como o tema pinta o <body>
 * de branco-neve, o que era digitado saía branco sobre o painel branco: dava
 * para ler o placeholder, que tem cor própria, e mais nada.
 *
 * A cor e o fundo ficam declarados aqui em vez de herdados, justamente para
 * não dependerem do que o tema faz com o <body>.
 */
.natal .natal-contato input,
.natal .natal-contato textarea,
.natal .natal-contato select {
    color: #1f2937;
    background-color: #ffffff;
}

.natal .natal-contato input:focus,
.natal .natal-contato textarea:focus {
    --tw-ring-color: var(--natal-verde) !important;
    border-color: var(--natal-verde) !important;
}

/* O botão de enviar recebe o mesmo tratamento dos botões do banner. */
.natal .natal-contato button[type="submit"] {
    position: relative;
    overflow: hidden;
    border-radius: 999px !important;
    font-family: var(--natal-fonte);
    font-size: 1.05rem;
    font-weight: 700;
    padding-top: 15px !important;
    background: linear-gradient(180deg, #f4555f, #d32b36) !important;
    box-shadow: 0 6px 0 #8d1a22, 0 16px 30px rgba(3, 10, 30, 0.35) !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.natal .natal-contato button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 11px;
    background: radial-gradient(8px 8px at 8px 5px, var(--natal-neve) 7px, transparent 8px) 0 100% / 16px 11px repeat-x,
    linear-gradient(var(--natal-neve), var(--natal-neve)) 0 0 / 100% 5px no-repeat;
    pointer-events: none;
}

.natal .natal-contato button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-3px);
    filter: brightness(1.07);
    box-shadow: 0 9px 0 #8d1a22, 0 22px 38px rgba(3, 10, 30, 0.45) !important;
}

.natal .natal-contato button[type="submit"]:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #8d1a22, 0 6px 14px rgba(3, 10, 30, 0.35) !important;
}

.natal .natal-contato button[type="submit"]:disabled {
    background: linear-gradient(180deg, #9aa7b8, #78869a) !important;
    box-shadow: 0 6px 0 #4f5a69 !important;
}

/* --------------------------------------------------------------------------
 * 16. Faíscas
 * --------------------------------------------------------------------------
 *
 * Criadas pelo script no clique e removidas quando a animação termina. As
 * variáveis de deslocamento vêm inline, do próprio script.
 */

.natal-faisca {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 60;
    will-change: transform, opacity;
    animation: natal-faisca var(--duracao, 900ms) cubic-bezier(0.25, 0.8, 0.4, 1) forwards;
}

@keyframes natal-faisca {
    from {
        transform: translate3d(var(--x0), var(--y0), 0) scale(0.3) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translate3d(var(--x1), var(--y1), 0) scale(var(--escala, 1)) rotate(var(--giro, 180deg));
        opacity: 0;
    }
}

/* --------------------------------------------------------------------------
 * 17. Telas estreitas
 * --------------------------------------------------------------------------
 *
 * No celular o banner empilha e a cena do chão encolhe. Enfeite que empurra
 * o conteúdo para fora da tela deixa de ser enfeite.
 */

@media (max-width: 900px) {
    .natal-hero {
        grid-template-columns: 1fr;
        padding: 34px 24px 24px;
        text-align: center;
    }

    .natal-hero-texto {
        margin-left: auto;
        margin-right: auto;
    }

    .natal-hero-acoes {
        justify-content: center;
    }

    .natal-hero-cena {
        min-height: 200px;
        order: -1;
    }

    .natal-lua {
        width: 58px;
        height: 58px;
        top: 5%;
        right: 6%;
    }

    .natal-lua::before {
        width: 12px;
        height: 12px;
        top: 16px;
        left: 13px;
    }

    .natal-lua::after {
        width: 8px;
        height: 8px;
        bottom: 15px;
        right: 17px;
    }

    .natal-treno {
        width: 120px;
    }

    .natal-guirlanda li {
        max-width: 30px;
        height: 18px;
    }

    .natal-cenario {
        min-height: 220px;
        padding: 0 8px;
    }

    .natal-morros {
        height: 110px;
    }

    .natal-pinheiros {
        bottom: 58px;
    }

    .natal-cenario-grupo {
        padding-bottom: 36px;
        gap: 2px;
    }
}

@media (max-width: 560px) {
    .natal #home-page section > h2::before,
    .natal #home-page section > h2::after {
        width: 20px;
        margin: 0 8px;
    }

    .natal-botao {
        width: 100%;
        font-size: 1rem;
    }

    .natal-cenario {
        min-height: 180px;
    }

    .natal-presentes {
        display: none;
    }
}

/* --------------------------------------------------------------------------
 * 18. Movimento reduzido
 * --------------------------------------------------------------------------
 *
 * Quem pediu menos movimento no sistema continua vendo o cenário inteiro —
 * céu, bonecos, árvore, presentes —, apenas parado. O script também lê essa
 * preferência e não liga a neve. Tirar a animação não é tirar o Natal.
 */

@media (prefers-reduced-motion: reduce) {
    .natal *,
    .natal *::before,
    .natal *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .natal-treno {
        display: none;
    }

    .natal-hero-brilho {
        display: none;
    }

    .natal-hero-letra {
        opacity: 1;
    }
}

/* --------------------------------------------------------------------------
 * 19. O controle de música
 * --------------------------------------------------------------------------
 *
 * Uma bolinha de árvore de Natal no canto da tela. Começa sempre desligada,
 * com um anel pulsando em volta para quem quiser achar — e quem não quiser
 * simplesmente ignora. É a diferença entre oferecer música e impor música.
 */

.natal-musica {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 70;
    width: 58px;
    height: 58px;
}

/* O anel que chama a atenção enquanto está no mudo. */
.natal-musica::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 213, 96, 0.7);
    animation: natal-musica-chama 2.8s ease-out infinite;
    pointer-events: none;
}

.natal-musica--tocando::before {
    display: none;
}

@keyframes natal-musica-chama {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }
    70%, 100% {
        transform: scale(1.75);
        opacity: 0;
    }
}

/* A argola da bolinha. */
.natal-musica::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 13px;
    height: 10px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #ffe08a, #cf9520);
    pointer-events: none;
}

.natal-musica-botao {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 2px solid rgba(255, 213, 96, 0.9);
    border-radius: 50%;
    background: linear-gradient(160deg, #f4555f, #b01f2a);
    color: #fff;
    box-shadow: 0 8px 22px rgba(3, 10, 30, 0.5),
    inset 0 3px 0 rgba(255, 255, 255, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

/* A neve na tampa da bolinha. */
.natal-musica-botao::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 9px;
    background: radial-gradient(7px 7px at 7px 4px, var(--natal-neve) 6px, transparent 7px) 0 100% / 14px 9px repeat-x,
    linear-gradient(var(--natal-neve), var(--natal-neve)) 0 0 / 100% 4px no-repeat;
    pointer-events: none;
}

.natal-musica-botao:hover {
    transform: translateY(-3px) scale(1.06);
    filter: brightness(1.08);
    box-shadow: 0 14px 28px rgba(3, 10, 30, 0.55), inset 0 3px 0 rgba(255, 255, 255, 0.28);
}

.natal-musica-botao:active {
    transform: translateY(1px) scale(0.97);
}

.natal-musica-botao:focus-visible {
    outline: 3px solid var(--natal-ouro);
    outline-offset: 4px;
}

/* Os dois ícones ocupam a mesma célula; só um aparece de cada vez. */
.natal-musica-icone {
    grid-area: 1 / 1;
    width: 23px;
    height: 23px;
    margin-top: 3px;
}

.natal-musica-icone--som {
    display: none;
}

.natal-musica--tocando .natal-musica-icone--mudo {
    display: none;
}

.natal-musica--tocando .natal-musica-icone--som {
    display: block;
}

/* Tocando: a bolinha balança no barbante. */
.natal-musica--tocando .natal-musica-botao {
    animation: natal-musica-balanca 2.6s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes natal-musica-balanca {
    0%, 100% {
        transform: rotate(-7deg);
    }
    50% {
        transform: rotate(7deg);
    }
}

/* As notinhas que sobem. */
.natal-musica-notas {
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 0;
    pointer-events: none;
}

.natal-musica-notas i {
    position: absolute;
    bottom: 0;
    font-style: normal;
    font-size: 18px;
    line-height: 1;
    color: var(--natal-ouro);
    text-shadow: 0 2px 8px rgba(255, 190, 80, 0.6);
    opacity: 0;
    --dx: 0px;
}

.natal-musica--tocando .natal-musica-notas i {
    animation: natal-nota 3.2s ease-out infinite;
}

.natal-musica--tocando .natal-musica-notas i:nth-child(2) {
    animation-delay: 1.05s;
    font-size: 22px;
    --dx: 16px;
}

.natal-musica--tocando .natal-musica-notas i:nth-child(3) {
    animation-delay: 2.1s;
    font-size: 15px;
    --dx: -15px;
}

@keyframes natal-nota {
    0% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx)), 8px) rotate(-12deg) scale(0.6);
    }
    18% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx)), -74px) rotate(16deg) scale(1.1);
    }
}

/* A etiqueta, que aparece ao passar o ponteiro ou ao chegar pelo teclado. */
.natal-musica-dica {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(4, 9, 28, 0.92);
    border: 1px solid rgba(159, 216, 255, 0.35);
    color: #dbeafe;
    font-family: var(--natal-fonte);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-50%) translateX(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.natal-musica:hover .natal-musica-dica,
.natal-musica-botao:focus-visible ~ .natal-musica-dica {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 560px) {
    .natal-musica {
        right: 14px;
        bottom: 14px;
        width: 50px;
        height: 50px;
    }

    .natal-musica-icone {
        width: 20px;
        height: 20px;
    }

    /* Em tela pequena a etiqueta não cabe ao lado sem apertar o conteúdo. */
    .natal-musica-dica {
        display: none;
    }
}
