/* Temas de datas comemorativas da Sorody RH (carregado só quando <html data-tema="..."> tem tema).

   Ideia de cada tema: como uma sala decorada para a data. Um enfeite no alto da página ou espiando atrás da foto
   da equipe (some ao rolar), poucas partículas no ar, um detalhe comemorando na bandeira do topo da escada e um fio
   de luz na cor do tema logo abaixo do vidro do topo depois que a pessoa rola (dentro da camada do tema).

   O que um tema pode fazer (e nada além disso):
   - partículas e o fio de luz numa camada própria fixa (.tema-camada, criada por temas.js), sem cliques e sem foco;
   - enfeites em ::before/::after com position: absolute presos a peças que JÁ têm posição própria e cujos
     ::before/::after o site não usa (.hero, .hero-foto-in, .degrau-bandeira): não mudam tamanho, lugar
     nem ordem de nada. Os do alto da página e os da foto ficam atrás do conteúdo (z-index -1);
   - um brilho de cor no fundo (body::before fixo, atrás de todo o conteúdo);
   - cor de detalhes decorativos (barra de leitura, separadores da faixa de serviços).
   Nunca: texto, margin, padding, width/height, display, fonte ou ordem de elementos do site.

   Camadas (z-index): brilho de fundo e enfeites do alto -1 (atrás do conteúdo); partículas 19, acima do conteúdo
   (que vai no máximo a z 1) e abaixo do botão do WhatsApp (20), do véu (26), do menu do celular (28) e do topo
   (30). Assim as partículas passam por trás do vidro do topo (que as desfoca), somem sob o véu quando o menu abre
   e nunca cobrem o botão flutuante. A textura do site (45) continua por cima de tudo.

   Movimento: só transform e opacity, em animação CSS, e só em peças pequenas (animar um enfeite largo, como um
   varal de ponta a ponta, obriga o navegador a repintá-lo a cada quadro). Aba oculta: html.tema-pausado pausa tudo. "Menos
   movimento": sem partículas e enfeites parados. Impressão e alto contraste: sem enfeites.

   Os desenhos longos (varais e enfeites da foto) são SVG em data: URI (o CSP do site permite img-src data:). */

/* 1. Partículas */
.tema-camada { position: fixed; inset: 0; z-index: 19; overflow: hidden; pointer-events: none; contain: strict; }
.tema-camada i { position: absolute; left: 0; top: 0; display: block; pointer-events: none; }
.tema-camada .tp { will-change: transform, opacity; animation: tm-cai var(--t) linear var(--a) infinite both; }
.tema-camada .tp.sobe { animation-name: tm-sobe; }
.tema-camada .tp.voa { animation-name: tm-voa; }
.tema-camada .tp.volta { animation-name: tm-volta; }
.tema-camada .tp.pisca { animation: none; will-change: auto; }
.tema-camada .tf { position: relative; opacity: var(--o, 0.6); }
.tema-camada .tf.vira { animation: tm-vira var(--tg) linear var(--ag) infinite; }
.tema-camada .tf.gira { animation: tm-gira var(--tg) linear var(--ag) infinite; }
.tema-camada .tf.inclina { transform-origin: 50% 0; animation: tm-inclina var(--tg) cubic-bezier(0.45, 0, 0.55, 1) var(--ag) infinite alternate; }
.tema-camada .tf.bate { animation: tm-bate var(--tg) cubic-bezier(0.45, 0, 0.55, 1) var(--ag) infinite; }
.tema-camada .pisca .tf { animation: tm-pisca var(--t) cubic-bezier(0.45, 0, 0.55, 1) var(--a) infinite both; }
.tema-camada .tf svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tema-camada .tf.espelho svg { transform: scaleX(-1); }

.tema-camada .tf-neve { border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 28%, rgba(232, 241, 255, 0.5) 50%, rgba(232, 241, 255, 0) 70%); }
.tema-camada .tf-bolha { border-radius: 50%; border: 1px solid var(--c); background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.75) 0 15%, transparent 28%); }
.tema-camada .tf-confete, .tema-camada .tf-degrau { background: var(--c); clip-path: polygon(24% 0, 100% 0, 76% 100%, 0 100%); }
.tema-camada .tf-petala { border-radius: 0 85% 0 85%; background: linear-gradient(135deg, var(--c) 25%, rgba(255, 255, 255, 0.85)); }
.tema-camada .tf-faisca { border-radius: 50%; background: radial-gradient(circle, #fff7e0 0 22%, var(--c) 42%, transparent 70%); }

/* queda, subida e voo já trazem o balanço lateral (senoide em 16 trechos): uma animação só por partícula, o que
   pesa menos na linha principal do que duas animações aninhadas */
@keyframes tm-cai {
  0% { transform: translate3d(calc(var(--amp, 12px) * 0), calc((100vh + 120px) * 0 - 60px), 0); }
  6.25% { transform: translate3d(calc(var(--amp, 12px) * 0.7071), calc((100vh + 120px) * 0.0625 - 60px), 0); }
  12.5% { transform: translate3d(calc(var(--amp, 12px) * 1), calc((100vh + 120px) * 0.125 - 60px), 0); }
  18.75% { transform: translate3d(calc(var(--amp, 12px) * 0.7071), calc((100vh + 120px) * 0.1875 - 60px), 0); }
  25% { transform: translate3d(calc(var(--amp, 12px) * 0), calc((100vh + 120px) * 0.25 - 60px), 0); }
  31.25% { transform: translate3d(calc(var(--amp, 12px) * -0.7071), calc((100vh + 120px) * 0.3125 - 60px), 0); }
  37.5% { transform: translate3d(calc(var(--amp, 12px) * -1), calc((100vh + 120px) * 0.375 - 60px), 0); }
  43.75% { transform: translate3d(calc(var(--amp, 12px) * -0.7071), calc((100vh + 120px) * 0.4375 - 60px), 0); }
  50% { transform: translate3d(calc(var(--amp, 12px) * 0), calc((100vh + 120px) * 0.5 - 60px), 0); }
  56.25% { transform: translate3d(calc(var(--amp, 12px) * 0.7071), calc((100vh + 120px) * 0.5625 - 60px), 0); }
  62.5% { transform: translate3d(calc(var(--amp, 12px) * 1), calc((100vh + 120px) * 0.625 - 60px), 0); }
  68.75% { transform: translate3d(calc(var(--amp, 12px) * 0.7071), calc((100vh + 120px) * 0.6875 - 60px), 0); }
  75% { transform: translate3d(calc(var(--amp, 12px) * 0), calc((100vh + 120px) * 0.75 - 60px), 0); }
  81.25% { transform: translate3d(calc(var(--amp, 12px) * -0.7071), calc((100vh + 120px) * 0.8125 - 60px), 0); }
  87.5% { transform: translate3d(calc(var(--amp, 12px) * -1), calc((100vh + 120px) * 0.875 - 60px), 0); }
  93.75% { transform: translate3d(calc(var(--amp, 12px) * -0.7071), calc((100vh + 120px) * 0.9375 - 60px), 0); }
  100% { transform: translate3d(calc(var(--amp, 12px) * 0), calc((100vh + 120px) * 1 - 60px), 0); }
}
@keyframes tm-sobe {
  0% { transform: translate3d(calc(var(--amp, 12px) * 0), calc((100vh + 40px) * 1 + var(--fim, -40px) * 0), 0); opacity: 0; }
  6.25% { transform: translate3d(calc(var(--amp, 12px) * 0.7071), calc((100vh + 40px) * 0.9375 + var(--fim, -40px) * 0.0625), 0); }
  12.5% { transform: translate3d(calc(var(--amp, 12px) * 1), calc((100vh + 40px) * 0.875 + var(--fim, -40px) * 0.125), 0); opacity: 1; }
  18.75% { transform: translate3d(calc(var(--amp, 12px) * 0.7071), calc((100vh + 40px) * 0.8125 + var(--fim, -40px) * 0.1875), 0); }
  25% { transform: translate3d(calc(var(--amp, 12px) * 0), calc((100vh + 40px) * 0.75 + var(--fim, -40px) * 0.25), 0); }
  31.25% { transform: translate3d(calc(var(--amp, 12px) * -0.7071), calc((100vh + 40px) * 0.6875 + var(--fim, -40px) * 0.3125), 0); }
  37.5% { transform: translate3d(calc(var(--amp, 12px) * -1), calc((100vh + 40px) * 0.625 + var(--fim, -40px) * 0.375), 0); }
  43.75% { transform: translate3d(calc(var(--amp, 12px) * -0.7071), calc((100vh + 40px) * 0.5625 + var(--fim, -40px) * 0.4375), 0); }
  50% { transform: translate3d(calc(var(--amp, 12px) * 0), calc((100vh + 40px) * 0.5 + var(--fim, -40px) * 0.5), 0); }
  56.25% { transform: translate3d(calc(var(--amp, 12px) * 0.7071), calc((100vh + 40px) * 0.4375 + var(--fim, -40px) * 0.5625), 0); }
  62.5% { transform: translate3d(calc(var(--amp, 12px) * 1), calc((100vh + 40px) * 0.375 + var(--fim, -40px) * 0.625), 0); }
  68.75% { transform: translate3d(calc(var(--amp, 12px) * 0.7071), calc((100vh + 40px) * 0.3125 + var(--fim, -40px) * 0.6875), 0); }
  75% { transform: translate3d(calc(var(--amp, 12px) * 0), calc((100vh + 40px) * 0.25 + var(--fim, -40px) * 0.75), 0); opacity: 1; }
  81.25% { transform: translate3d(calc(var(--amp, 12px) * -0.7071), calc((100vh + 40px) * 0.1875 + var(--fim, -40px) * 0.8125), 0); }
  87.5% { transform: translate3d(calc(var(--amp, 12px) * -1), calc((100vh + 40px) * 0.125 + var(--fim, -40px) * 0.875), 0); }
  93.75% { transform: translate3d(calc(var(--amp, 12px) * -0.7071), calc((100vh + 40px) * 0.0625 + var(--fim, -40px) * 0.9375), 0); }
  100% { transform: translate3d(calc(var(--amp, 12px) * 0), calc((100vh + 40px) * 0 + var(--fim, -40px) * 1), 0); opacity: 0; }
}
@keyframes tm-voa {
  0% { transform: translate3d(calc((100vw + 160px) * 0 - 80px), calc(var(--amp, 12px) * 0), 0); }
  6.25% { transform: translate3d(calc((100vw + 160px) * 0.0625 - 80px), calc(var(--amp, 12px) * 0.7071), 0); }
  12.5% { transform: translate3d(calc((100vw + 160px) * 0.125 - 80px), calc(var(--amp, 12px) * 1), 0); }
  18.75% { transform: translate3d(calc((100vw + 160px) * 0.1875 - 80px), calc(var(--amp, 12px) * 0.7071), 0); }
  25% { transform: translate3d(calc((100vw + 160px) * 0.25 - 80px), calc(var(--amp, 12px) * 0), 0); }
  31.25% { transform: translate3d(calc((100vw + 160px) * 0.3125 - 80px), calc(var(--amp, 12px) * -0.7071), 0); }
  37.5% { transform: translate3d(calc((100vw + 160px) * 0.375 - 80px), calc(var(--amp, 12px) * -1), 0); }
  43.75% { transform: translate3d(calc((100vw + 160px) * 0.4375 - 80px), calc(var(--amp, 12px) * -0.7071), 0); }
  50% { transform: translate3d(calc((100vw + 160px) * 0.5 - 80px), calc(var(--amp, 12px) * 0), 0); }
  56.25% { transform: translate3d(calc((100vw + 160px) * 0.5625 - 80px), calc(var(--amp, 12px) * 0.7071), 0); }
  62.5% { transform: translate3d(calc((100vw + 160px) * 0.625 - 80px), calc(var(--amp, 12px) * 1), 0); }
  68.75% { transform: translate3d(calc((100vw + 160px) * 0.6875 - 80px), calc(var(--amp, 12px) * 0.7071), 0); }
  75% { transform: translate3d(calc((100vw + 160px) * 0.75 - 80px), calc(var(--amp, 12px) * 0), 0); }
  81.25% { transform: translate3d(calc((100vw + 160px) * 0.8125 - 80px), calc(var(--amp, 12px) * -0.7071), 0); }
  87.5% { transform: translate3d(calc((100vw + 160px) * 0.875 - 80px), calc(var(--amp, 12px) * -1), 0); }
  93.75% { transform: translate3d(calc((100vw + 160px) * 0.9375 - 80px), calc(var(--amp, 12px) * -0.7071), 0); }
  100% { transform: translate3d(calc((100vw + 160px) * 1 - 80px), calc(var(--amp, 12px) * 0), 0); }
}
@keyframes tm-volta {
  0% { transform: translate3d(calc((100vw + 160px) * 1 - 80px), calc(var(--amp, 12px) * 0), 0); }
  6.25% { transform: translate3d(calc((100vw + 160px) * 0.9375 - 80px), calc(var(--amp, 12px) * 0.7071), 0); }
  12.5% { transform: translate3d(calc((100vw + 160px) * 0.875 - 80px), calc(var(--amp, 12px) * 1), 0); }
  18.75% { transform: translate3d(calc((100vw + 160px) * 0.8125 - 80px), calc(var(--amp, 12px) * 0.7071), 0); }
  25% { transform: translate3d(calc((100vw + 160px) * 0.75 - 80px), calc(var(--amp, 12px) * 0), 0); }
  31.25% { transform: translate3d(calc((100vw + 160px) * 0.6875 - 80px), calc(var(--amp, 12px) * -0.7071), 0); }
  37.5% { transform: translate3d(calc((100vw + 160px) * 0.625 - 80px), calc(var(--amp, 12px) * -1), 0); }
  43.75% { transform: translate3d(calc((100vw + 160px) * 0.5625 - 80px), calc(var(--amp, 12px) * -0.7071), 0); }
  50% { transform: translate3d(calc((100vw + 160px) * 0.5 - 80px), calc(var(--amp, 12px) * 0), 0); }
  56.25% { transform: translate3d(calc((100vw + 160px) * 0.4375 - 80px), calc(var(--amp, 12px) * 0.7071), 0); }
  62.5% { transform: translate3d(calc((100vw + 160px) * 0.375 - 80px), calc(var(--amp, 12px) * 1), 0); }
  68.75% { transform: translate3d(calc((100vw + 160px) * 0.3125 - 80px), calc(var(--amp, 12px) * 0.7071), 0); }
  75% { transform: translate3d(calc((100vw + 160px) * 0.25 - 80px), calc(var(--amp, 12px) * 0), 0); }
  81.25% { transform: translate3d(calc((100vw + 160px) * 0.1875 - 80px), calc(var(--amp, 12px) * -0.7071), 0); }
  87.5% { transform: translate3d(calc((100vw + 160px) * 0.125 - 80px), calc(var(--amp, 12px) * -1), 0); }
  93.75% { transform: translate3d(calc((100vw + 160px) * 0.0625 - 80px), calc(var(--amp, 12px) * -0.7071), 0); }
  100% { transform: translate3d(calc((100vw + 160px) * 0 - 80px), calc(var(--amp, 12px) * 0), 0); }
}
@keyframes tm-vira { from { transform: rotate3d(var(--rx, 1), var(--ry, 0.4), 1, 0deg); } to { transform: rotate3d(var(--rx, 1), var(--ry, 0.4), 1, 360deg); } }
@keyframes tm-gira { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes tm-inclina { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes tm-bate { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.5); } }
@keyframes tm-pisca { 0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); } 50% { opacity: var(--o, 0.6); transform: scale(1) rotate(45deg); } }

/* 2. Base dos enfeites presos (sem "content" nada é gerado; cada tema liga só os seus) */
html[data-tema] body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--tm-brilho, none); }
html[data-tema] .hero::before, html[data-tema] .hero::after,
html[data-tema] .hero-foto-in::before, html[data-tema] .hero-foto-in::after,
html[data-tema] .degrau-bandeira::before, html[data-tema] .degrau-bandeira::after {
  position: absolute; pointer-events: none; background-repeat: no-repeat; background-position: center; background-size: contain;
}
/* atrás do conteúdo: os do alto da página e os que espiam atrás da foto (dentro da moldura, atrás da imagem) */
html[data-tema] .hero::before, html[data-tema] .hero::after,
html[data-tema] .hero-foto-in::before, html[data-tema] .hero-foto-in::after { z-index: -1; }
/* varal no alto: na faixa livre entre o topo e o logo, repetido de 480 em 480 px a partir do centro */
html[data-tema] .hero::before { background-position: 50% 0; }

/* fio de luz na cor do tema logo abaixo do vidro do topo (peça da camada do tema, alinhada com a barra), só
   quando o vidro aparece: o site põe .rolou no <header class="topo">, irmão da camada no <body> */
.tema-camada .tema-fio {
  left: 16px; right: 16px; top: calc(var(--topo-margem, 12px) + var(--topo-alto, 64px)); max-width: var(--wrap, 1200px); margin: 0 auto; height: 8px;
  opacity: 0; transition: opacity 0.4s;
}
.topo.rolou ~ .tema-camada .tema-fio { opacity: 1; }
.tema-camada .tema-fio::before, .tema-camada .tema-fio::after { content: ""; position: absolute; pointer-events: none; }
.tema-camada .tema-fio::before { left: 12%; right: 12%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--tm-fio, #7ad3a8) 30% 70%, transparent); }
.tema-camada .tema-fio::after { left: 22%; right: 22%; top: -5px; height: 12px; background: radial-gradient(50% 50% at 50% 50%, var(--tm-fio-brilho, rgba(122, 211, 168, 0.25)), transparent 72%); }

@keyframes tm-respira { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes tm-flutua { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -4px, 0); } }
@keyframes tm-pendulo { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes tm-balanca { from { transform: rotate(-3deg); } to { transform: rotate(2.5deg); } }
@keyframes tm-fogos {
  0% { opacity: 0; transform: scale(0.6); }
  14% { opacity: 1; }
  62% { opacity: 0.9; transform: scale(1.04); }
  82%, 100% { opacity: 0; transform: scale(1.06); }
}
@keyframes tm-orelhas { 0%, 86%, 100% { transform: rotate(0deg); } 90% { transform: rotate(-5deg); } 94% { transform: rotate(3deg); } }
@keyframes tm-pipa { from { transform: rotate(-5deg); } to { transform: rotate(4deg); } }

/* 3. Ano Novo */
html[data-tema="ano-novo"] {
  --tm-fio: #f3d58e; --tm-fio-brilho: rgba(243, 213, 142, 0.3);
  --tm-brilho: radial-gradient(1100px 660px at 50% -12%, rgba(243, 213, 142, 0.1), transparent 62%), radial-gradient(700px 500px at 100% 70%, rgba(223, 230, 242, 0.05), transparent 60%);
}
html[data-tema="ano-novo"] .progresso { background: linear-gradient(90deg, #c99a3e, #f3d58e, #fff4d6); }
/* varal de estrelas douradas e prateadas no alto */
html[data-tema="ano-novo"] .hero::before {
  content: ""; left: 0; right: 0; top: calc(var(--topo-margem) + var(--topo-alto) + 2px); height: 54px;
  background-repeat: repeat-x; background-size: 480px 54px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 54'><path d='M0 3Q240 52 480 3' fill='none' stroke='%23f3d58e' stroke-opacity='.55' stroke-width='1'/><path d='M26.7 8.1v6' stroke='%23f3d58e' stroke-opacity='.6' stroke-width='.7'/><path transform='translate(20.5 14.1) scale(0.517)' fill='%23f3d58e' d='M12 0c.9 7.6 4.4 11.1 12 12-7.6.9-11.1 4.4-12 12-.9-7.6-4.4-11.1-12-12 7.6-.9 11.1-4.4 12-12z'/><path d='M80 16.6v15' stroke='%23e3e9f3' stroke-opacity='.6' stroke-width='.7'/><path transform='translate(75 31.6) scale(0.417)' fill='%23e3e9f3' d='M12 0c.9 7.6 4.4 11.1 12 12-7.6.9-11.1 4.4-12 12-.9-7.6-4.4-11.1-12-12 7.6-.9 11.1-4.4 12-12z'/><path d='M133.3 22.7v6' stroke='%23f3d58e' stroke-opacity='.6' stroke-width='.7'/><path transform='translate(127.1 28.7) scale(0.517)' fill='%23f3d58e' d='M12 0c.9 7.6 4.4 11.1 12 12-7.6.9-11.1 4.4-12 12-.9-7.6-4.4-11.1-12-12 7.6-.9 11.1-4.4 12-12z'/><path d='M186.7 26.3v15' stroke='%23f3d58e' stroke-opacity='.6' stroke-width='.7'/><path transform='translate(181.7 41.3) scale(0.417)' fill='%23f3d58e' d='M12 0c.9 7.6 4.4 11.1 12 12-7.6.9-11.1 4.4-12 12-.9-7.6-4.4-11.1-12-12 7.6-.9 11.1-4.4 12-12z'/><path d='M240 27.5v6' stroke='%23e3e9f3' stroke-opacity='.6' stroke-width='.7'/><path transform='translate(233.8 33.5) scale(0.517)' fill='%23e3e9f3' d='M12 0c.9 7.6 4.4 11.1 12 12-7.6.9-11.1 4.4-12 12-.9-7.6-4.4-11.1-12-12 7.6-.9 11.1-4.4 12-12z'/><path d='M293.3 26.3v15' stroke='%23f3d58e' stroke-opacity='.6' stroke-width='.7'/><path transform='translate(288.3 41.3) scale(0.417)' fill='%23f3d58e' d='M12 0c.9 7.6 4.4 11.1 12 12-7.6.9-11.1 4.4-12 12-.9-7.6-4.4-11.1-12-12 7.6-.9 11.1-4.4 12-12z'/><path d='M346.7 22.7v6' stroke='%23f3d58e' stroke-opacity='.6' stroke-width='.7'/><path transform='translate(340.5 28.7) scale(0.517)' fill='%23f3d58e' d='M12 0c.9 7.6 4.4 11.1 12 12-7.6.9-11.1 4.4-12 12-.9-7.6-4.4-11.1-12-12 7.6-.9 11.1-4.4 12-12z'/><path d='M400 16.6v15' stroke='%23e3e9f3' stroke-opacity='.6' stroke-width='.7'/><path transform='translate(395 31.6) scale(0.417)' fill='%23e3e9f3' d='M12 0c.9 7.6 4.4 11.1 12 12-7.6.9-11.1 4.4-12 12-.9-7.6-4.4-11.1-12-12 7.6-.9 11.1-4.4 12-12z'/><path d='M453.3 8.1v6' stroke='%23f3d58e' stroke-opacity='.6' stroke-width='.7'/><path transform='translate(447.1 14.1) scale(0.517)' fill='%23f3d58e' d='M12 0c.9 7.6 4.4 11.1 12 12-7.6.9-11.1 4.4-12 12-.9-7.6-4.4-11.1-12-12 7.6-.9 11.1-4.4 12-12z'/></svg>");
}
/* fogos finos em volta da bandeira (o centro fica vazio: a bandeira continua inteira à vista) */
html[data-tema="ano-novo"] .degrau-bandeira::before,
html[data-tema="ano-novo"] .degrau-bandeira::after {
  content: ""; opacity: 0.9;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-52 -52 104 104'><g fill='none' stroke='%23f3d58e'><circle r='33' stroke-width='18' stroke-dasharray='1.3 24.62'/><circle r='32' stroke-width='8' stroke-dasharray='1.1 24.03' stroke-dashoffset='-12.57'/><circle r='47' stroke-width='2.6' stroke-linecap='round' stroke-dasharray='0 36.91'/></g></svg>");
}
html[data-tema="ano-novo"] .degrau-bandeira::before { width: 110px; height: 110px; left: -38px; top: -37px; }
html[data-tema="ano-novo"] .degrau-bandeira::after {
  width: 64px; height: 64px; left: -66px; top: -64px; opacity: 0.75;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-52 -52 104 104'><g fill='none' stroke='%23e3e9f3'><circle r='33' stroke-width='18' stroke-dasharray='1.3 24.62'/><circle r='32' stroke-width='8' stroke-dasharray='1.1 24.03' stroke-dashoffset='-12.57'/><circle r='47' stroke-width='2.6' stroke-linecap='round' stroke-dasharray='0 36.91'/></g></svg>");
}
@media (prefers-reduced-motion: no-preference) {
  html[data-tema="ano-novo"] .degrau-bandeira::before { animation: tm-respira 5s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
  html[data-tema="ano-novo"] .degrau-bandeira::after { animation: tm-fogos 5.5s cubic-bezier(0.16, 1, 0.3, 1) 1.2s infinite both; }
}

/* 4. Carnaval */
html[data-tema="carnaval"] {
  --tm-fio: #ff5d8f; --tm-fio-brilho: rgba(255, 201, 74, 0.25);
  --tm-brilho: radial-gradient(900px 600px at 92% -6%, rgba(255, 93, 143, 0.1), transparent 60%), radial-gradient(800px 560px at -6% 40%, rgba(63, 208, 201, 0.08), transparent 60%);
}
html[data-tema="carnaval"] .tema-camada .tema-fio::before { background: linear-gradient(90deg, transparent, #ff5d8f 22%, #ffc94a 42%, #3fd0c9 62%, #9b8cff 80%, transparent); }
html[data-tema="carnaval"] .progresso { background: linear-gradient(90deg, #ff5d8f, #ffc94a, #3fd0c9, #9b8cff); }
html[data-tema="carnaval"] .faixa-lista li:nth-child(4n+1)::after { background: #ff5d8f; }
html[data-tema="carnaval"] .faixa-lista li:nth-child(4n+2)::after { background: #ffc94a; }
html[data-tema="carnaval"] .faixa-lista li:nth-child(4n+3)::after { background: #3fd0c9; }
html[data-tema="carnaval"] .faixa-lista li:nth-child(4n+4)::after { background: #9b8cff; }
/* varal de serpentinas no alto */
html[data-tema="carnaval"] .hero::before {
  content: ""; left: 0; right: 0; top: calc(var(--topo-margem) + var(--topo-alto) + 2px); height: 56px;
  background-repeat: repeat-x; background-size: 480px 56px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 56'><path d='M0 3Q240 52 480 3' fill='none' stroke='%23e9dcc0' stroke-opacity='.45' stroke-width='1'/><path d='M26.7 8.1q-5.5 3.3 0 6.5q5.5 3.3 0 6.5q-5.5 3.3 0 6.5q5.5 3.3 0 6.5' fill='none' stroke='%23ff5d8f' stroke-width='1.8' stroke-linecap='round'/><path d='M80 16.6q5.5 2.3 0 4.5q-5.5 2.3 0 4.5q5.5 2.3 0 4.5q-5.5 2.3 0 4.5' fill='none' stroke='%23ffc94a' stroke-width='1.8' stroke-linecap='round'/><path d='M133.3 22.7q-5.5 2.9 0 5.8q5.5 2.9 0 5.8q-5.5 2.9 0 5.8q5.5 2.9 0 5.8' fill='none' stroke='%233fd0c9' stroke-width='1.8' stroke-linecap='round'/><path d='M186.7 26.3q5.5 2 0 4q-5.5 2 0 4q5.5 2 0 4q-5.5 2 0 4' fill='none' stroke='%239b8cff' stroke-width='1.8' stroke-linecap='round'/><path d='M240 27.5q-5.5 3.1 0 6.3q5.5 3.1 0 6.3q-5.5 3.1 0 6.3q5.5 3.1 0 6.3' fill='none' stroke='%2356c08e' stroke-width='1.8' stroke-linecap='round'/><path d='M293.3 26.3q5.5 2.1 0 4.3q-5.5 2.1 0 4.3q5.5 2.1 0 4.3q-5.5 2.1 0 4.3' fill='none' stroke='%23ff8a5b' stroke-width='1.8' stroke-linecap='round'/><path d='M346.7 22.7q-5.5 2.8 0 5.5q5.5 2.8 0 5.5q-5.5 2.8 0 5.5q5.5 2.8 0 5.5' fill='none' stroke='%23ff5d8f' stroke-width='1.8' stroke-linecap='round'/><path d='M400 16.6q5.5 2.4 0 4.8q-5.5 2.4 0 4.8q5.5 2.4 0 4.8q-5.5 2.4 0 4.8' fill='none' stroke='%23ffc94a' stroke-width='1.8' stroke-linecap='round'/><path d='M453.3 8.1q-5.5 3.3 0 6.5q5.5 3.3 0 6.5q-5.5 3.3 0 6.5q5.5 3.3 0 6.5' fill='none' stroke='%233fd0c9' stroke-width='1.8' stroke-linecap='round'/></svg>");
}
/* serpentinas saindo da bandeira */
html[data-tema="carnaval"] .degrau-bandeira::before {
  content: ""; width: 80px; height: 60px; left: -27px; top: -56px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 60'><g fill='none' stroke-width='1.8' stroke-linecap='round'><path d='M44 57C36 50 47 44 40 36S30 23 37 15 33 5 27 2' stroke='%23ff5d8f'/><path d='M49 57C58 50 50 42 59 36S71 24 66 15 69 5 75 3' stroke='%23ffc94a'/><path d='M46 58C41 52 31 52 25 46S13 41 9 33' stroke='%233fd0c9'/></g><g><path d='M17 12h6l-1.5 2.6h-6z' fill='%239b8cff' transform='rotate(-20 19 13)'/><path d='M55 6h6l-1.5 2.6h-6z' fill='%233fd0c9' transform='rotate(25 58 7)'/><path d='M14 52h6l-1.5 2.6h-6z' fill='%23ffc94a' transform='rotate(15 17 53)'/><path d='M66 46h6l-1.5 2.6h-6z' fill='%23ff5d8f' transform='rotate(-30 69 47)'/><path d='M33 24h5l-1.2 2.2h-5z' fill='%2356c08e' transform='rotate(40 35 25)'/></g></svg>");
}
@media (prefers-reduced-motion: no-preference) {
  html[data-tema="carnaval"] .degrau-bandeira::before { animation: tm-flutua 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
}

/* 5. Páscoa */
html[data-tema="pascoa"] {
  --tm-fio: #cdb8ff; --tm-fio-brilho: rgba(205, 184, 255, 0.28);
  --tm-brilho: radial-gradient(1000px 640px at 86% -8%, rgba(185, 166, 242, 0.12), transparent 62%), radial-gradient(760px 520px at 0% 30%, rgba(168, 230, 207, 0.07), transparent 60%);
}
/* orelhas de coelho espiando atrás da foto */
html[data-tema="pascoa"] .hero-foto-in::before {
  content: ""; width: 54px; height: 62px; right: 15%; top: -42px; transform-origin: 50% 100%;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 70'><g transform='rotate(-14 20 66)'><ellipse cx='20' cy='34' rx='9' ry='30' fill='%23ecebf6'/><ellipse cx='20' cy='38' rx='4.6' ry='22' fill='%23f2bfd0'/></g><g transform='rotate(12 40 66)'><ellipse cx='40' cy='34' rx='9' ry='30' fill='%23ecebf6'/><ellipse cx='40' cy='38' rx='4.6' ry='22' fill='%23f2bfd0'/></g></svg>");
}
/* ovo pintado no degrau do topo, ao lado da bandeira */
html[data-tema="pascoa"] .degrau-bandeira::before {
  content: ""; width: 20px; height: 25px; left: -26px; bottom: 2px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'><defs><clipPath id='c'><path d='M12 1C6 1 2 11 2 18.5a10 10 0 0 0 20 0C22 11 18 1 12 1z'/></clipPath></defs><path d='M12 1C6 1 2 11 2 18.5a10 10 0 0 0 20 0C22 11 18 1 12 1z' fill='%23cdb8ff'/><g clip-path='url(%23c)'><path d='M0 14l3-2.6 3 2.6 3-2.6 3 2.6 3-2.6 3 2.6 3-2.6 3 2.6' fill='none' stroke='%23fff3cf' stroke-width='1.5'/><path d='M0 21.5h24' stroke='%23a8e6cf' stroke-width='2.4'/><circle cx='8' cy='7.5' r='1.2' fill='%23fff3cf'/><circle cx='15.5' cy='8.5' r='1' fill='%23ffc6d9'/></g><path d='M7.5 6.5c1-2 2.2-3 3.6-3.4' stroke='%23fff' stroke-opacity='.5' stroke-width='1' fill='none' stroke-linecap='round'/></svg>");
}
@media (prefers-reduced-motion: no-preference) {
  html[data-tema="pascoa"] .hero-foto-in::before { animation: tm-orelhas 9s cubic-bezier(0.45, 0, 0.55, 1) 2s infinite; }
}

/* 6. Dia do Trabalhador */
html[data-tema="dia-do-trabalhador"] {
  --tm-fio: #ffcf7a; --tm-fio-brilho: rgba(255, 190, 110, 0.3);
  --tm-brilho: radial-gradient(1200px 700px at 50% 112%, rgba(255, 170, 80, 0.11), transparent 62%), radial-gradient(900px 600px at 88% -10%, rgba(255, 208, 138, 0.09), transparent 60%);
}
/* sol nascendo atrás da foto da equipe */
html[data-tema="dia-do-trabalhador"] .hero-foto-in::before {
  content: ""; width: 300px; height: 130px; left: 50%; margin-left: -150px; top: -124px; opacity: 0.8;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-150 -128 300 130'><defs><radialGradient id='g' cx='0' cy='0' r='126' gradientUnits='userSpaceOnUse'><stop offset='.3' stop-color='%23ffd08a' stop-opacity='.75'/><stop offset='1' stop-color='%23ffd08a' stop-opacity='0'/></radialGradient><radialGradient id='h' cx='0' cy='0' r='70' gradientUnits='userSpaceOnUse'><stop offset='0' stop-color='%23ffc77a' stop-opacity='.35'/><stop offset='1' stop-color='%23ffc77a' stop-opacity='0'/></radialGradient></defs><circle r='70' fill='url(%23h)'/><circle r='80' fill='none' stroke='url(%23g)' stroke-width='92' stroke-dasharray='3.2 17.74'/></svg>");
}
/* sol nascendo atrás da bandeira (raios a partir de 26 px do centro: a bandeira fica limpa) */
html[data-tema="dia-do-trabalhador"] .degrau-bandeira::before {
  content: ""; width: 120px; height: 82px; left: -41px; top: -46px; opacity: 0.85;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-60 -60 120 82'><defs><radialGradient id='g' cx='0' cy='0' r='58' gradientUnits='userSpaceOnUse'><stop offset='.45' stop-color='%23ffd08a' stop-opacity='.9'/><stop offset='1' stop-color='%23ffd08a' stop-opacity='0'/></radialGradient></defs><circle r='42' fill='none' stroke='url(%23g)' stroke-width='32' stroke-dasharray='2.2 8.8'/></svg>");
}

/* 7. Dia das Mães */
html[data-tema="dia-das-maes"] {
  --tm-fio: #f7a8c0; --tm-fio-brilho: rgba(247, 168, 192, 0.28);
  --tm-brilho: radial-gradient(1000px 640px at 86% -8%, rgba(242, 155, 180, 0.11), transparent 62%), radial-gradient(760px 520px at 0% 30%, rgba(255, 211, 223, 0.05), transparent 60%);
}
/* flores espiando atrás da foto */
html[data-tema="dia-das-maes"] .hero-foto-in::before {
  content: ""; width: 69px; height: 79px; left: 9%; top: -46px; transform-origin: 50% 100%;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 98'><g fill='none' stroke='%238fbf9f' stroke-width='1.3' stroke-linecap='round'><path d='M20 26C22 50 30 70 40 96'/><path d='M44 12C43 40 42 70 40 96'/><path d='M66 30C62 54 50 76 40 96'/></g><path d='M27 52c-7-2-10 2-11 6 6 1 9-1 11-6zM57 58c7-3 11 0 12 4-6 2-10 0-12-4z' fill='%238fbf9f'/><circle cx='20' cy='15.9' r='6.5' fill='%23f7a8c0'/><circle cx='27.7' cy='21.5' r='6.5' fill='%23f7a8c0'/><circle cx='24.7' cy='30.5' r='6.5' fill='%23f7a8c0'/><circle cx='15.3' cy='30.5' r='6.5' fill='%23f7a8c0'/><circle cx='12.3' cy='21.5' r='6.5' fill='%23f7a8c0'/><circle cx='20' cy='24' r='4.2' fill='%23fff1d0'/><circle cx='66' cy='20.6' r='6' fill='%23fde7ee'/><circle cx='73.1' cy='25.7' r='6' fill='%23fde7ee'/><circle cx='70.4' cy='34' r='6' fill='%23fde7ee'/><circle cx='61.6' cy='34' r='6' fill='%23fde7ee'/><circle cx='58.9' cy='25.7' r='6' fill='%23fde7ee'/><circle cx='66' cy='28' r='3.8' fill='%23f29bb4'/><circle cx='44' cy='4.6' r='6' fill='%23f29bb4'/><circle cx='51.1' cy='9.7' r='6' fill='%23f29bb4'/><circle cx='48.4' cy='18' r='6' fill='%23f29bb4'/><circle cx='39.6' cy='18' r='6' fill='%23f29bb4'/><circle cx='36.9' cy='9.7' r='6' fill='%23f29bb4'/><circle cx='44' cy='12' r='3.8' fill='%23fff1d0'/></svg>");
}
html[data-tema="dia-das-maes"] .degrau-bandeira::before {
  content: ""; width: 26px; height: 24px; left: 4px; top: -32px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 30'><path d='M16 27S3 19.5 3 10.8C3 6.9 5.8 4 9.4 4c2.8 0 5 1.6 6.6 4.2C17.6 5.6 19.8 4 22.6 4 26.2 4 29 6.9 29 10.8 29 19.5 16 27 16 27z' fill='%23f29bb4' fill-opacity='.22' stroke='%23f7b3c6' stroke-width='1.7' stroke-linejoin='round'/></svg>");
}
@media (prefers-reduced-motion: no-preference) {
  html[data-tema="dia-das-maes"] .hero-foto-in::before { animation: tm-balanca 5s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
  html[data-tema="dia-das-maes"] .degrau-bandeira::before { animation: tm-respira 4.5s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
}

/* 8. Dia do Profissional de RH */
html[data-tema="dia-do-rh"] {
  --tm-fio: #7ad3a8; --tm-fio-brilho: rgba(86, 192, 142, 0.32);
  --tm-brilho: radial-gradient(1000px 640px at 86% -8%, rgba(86, 192, 142, 0.12), transparent 62%), radial-gradient(760px 520px at 0% 40%, rgba(86, 192, 142, 0.06), transparent 60%);
}
html[data-tema="dia-do-rh"] .progresso { box-shadow: 0 0 12px rgba(86, 192, 142, 0.7); }
/* leque de degraus do logo saindo de trás da foto */
html[data-tema="dia-do-rh"] .hero-foto-in::before {
  content: ""; width: 126px; height: 86px; right: 6%; top: -62px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 96'><path transform='translate(14.8 74.1) rotate(272) scale(1.5)' d='M-3 -1.7h8l-2 3.4h-8z' fill='%2356c08e'/><path transform='translate(32.8 68.4) rotate(302.4) scale(1.5)' d='M-3 -1.7h8l-2 3.4h-8z' fill='%23a8e6cf'/><path transform='translate(24.8 43.9) rotate(332.8) scale(1.5)' d='M-3 -1.7h8l-2 3.4h-8z' fill='%23eef2f8'/><path transform='translate(45.9 48.2) rotate(315.2) scale(1.5)' d='M-3 -1.7h8l-2 3.4h-8z' fill='%237ad3a8'/><path transform='translate(55.1 33.9) rotate(345.6) scale(1.5)' d='M-3 -1.7h8l-2 3.4h-8z' fill='%2356c08e'/><path transform='translate(70 50) rotate(376) scale(1.5)' d='M-3 -1.7h8l-2 3.4h-8z' fill='%23a8e6cf'/><path transform='translate(85.9 30) rotate(358.4) scale(1.5)' d='M-3 -1.7h8l-2 3.4h-8z' fill='%23eef2f8'/><path transform='translate(93.1 49.9) rotate(388.8) scale(1.5)' d='M-3 -1.7h8l-2 3.4h-8z' fill='%237ad3a8'/><path transform='translate(109.7 49.7) rotate(419.2) scale(1.5)' d='M-3 -1.7h8l-2 3.4h-8z' fill='%2356c08e'/><path transform='translate(107.2 68.4) rotate(401.6) scale(1.5)' d='M-3 -1.7h8l-2 3.4h-8z' fill='%23a8e6cf'/><path transform='translate(129 72.8) rotate(432) scale(1.5)' d='M-3 -1.7h8l-2 3.4h-8z' fill='%23eef2f8'/></svg>");
}
/* leque de degraus comemorando acima da bandeira */
html[data-tema="dia-do-rh"] .degrau-bandeira::before {
  content: ""; width: 70px; height: 50px; left: -18px; top: -46px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 50'><path transform='translate(4.9 35.1) rotate(276)' d='M-3 -1.7h8l-2 3.4h-8z' fill='%2356c08e'/><path transform='translate(16 31.4) rotate(307.5)' d='M-3 -1.7h8l-2 3.4h-8z' fill='%23a8e6cf'/><path transform='translate(16.6 19.8) rotate(339)' d='M-3 -1.7h8l-2 3.4h-8z' fill='%23eef2f8'/><path transform='translate(27.8 23.1) rotate(328.5)' d='M-3 -1.7h8l-2 3.4h-8z' fill='%237ad3a8'/><path transform='translate(35 14)' d='M-3 -1.7h8l-2 3.4h-8z' fill='%2356c08e'/><path transform='translate(42.2 23.1) rotate(31.5)' d='M-3 -1.7h8l-2 3.4h-8z' fill='%23a8e6cf'/><path transform='translate(53.4 19.8) rotate(21)' d='M-3 -1.7h8l-2 3.4h-8z' fill='%23eef2f8'/><path transform='translate(54 31.4) rotate(52.5)' d='M-3 -1.7h8l-2 3.4h-8z' fill='%237ad3a8'/><path transform='translate(65.1 35.1) rotate(84)' d='M-3 -1.7h8l-2 3.4h-8z' fill='%2356c08e'/></svg>");
}
@media (prefers-reduced-motion: no-preference) {
  html[data-tema="dia-do-rh"] .hero-foto-in::before,
  html[data-tema="dia-do-rh"] .degrau-bandeira::before { animation: tm-flutua 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
}

/* 9. Festa Junina */
html[data-tema="festa-junina"] {
  --tm-fio: #ffb347; --tm-fio-brilho: rgba(255, 150, 70, 0.3);
  --tm-brilho: radial-gradient(1100px 620px at 50% 115%, rgba(255, 138, 61, 0.14), transparent 62%), radial-gradient(800px 520px at 90% -10%, rgba(255, 196, 110, 0.07), transparent 60%);
}
html[data-tema="festa-junina"] .faixa-lista li:nth-child(4n+1)::after { background: #e5485c; }
html[data-tema="festa-junina"] .faixa-lista li:nth-child(4n+2)::after { background: #e9b84a; }
html[data-tema="festa-junina"] .faixa-lista li:nth-child(4n+3)::after { background: #4d8fd6; }
/* bandeirinhas no alto */
html[data-tema="festa-junina"] .hero::before {
  content: ""; left: 0; right: 0; top: calc(var(--topo-margem) + var(--topo-alto) + 2px); height: 48px;
  background-repeat: repeat-x; background-size: 480px 48px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 48'><path d='M0 3Q240 52 480 3' fill='none' stroke='%23e8dcc0' stroke-opacity='.6' stroke-width='1'/><path d='M14.8 6.7h14v17l-7 -4.6l-7 4.6z' fill='%23e5485c'/><path d='M58.5 13.9h14v17l-7 -4.6l-7 4.6z' fill='%23e9b84a'/><path d='M102.1 19.6h14v17l-7 -4.6l-7 4.6z' fill='%234d8fd6'/><path d='M145.7 23.7h14v17l-7 -4.6l-7 4.6z' fill='%2356c08e'/><path d='M189.4 26.1h14v17l-7 -4.6l-7 4.6z' fill='%23ee8a4a'/><path d='M233 26.9h14v17l-7 -4.6l-7 4.6z' fill='%23a98bd9'/><path d='M276.6 26.1h14v17l-7 -4.6l-7 4.6z' fill='%23efe4cf'/><path d='M320.3 23.7h14v17l-7 -4.6l-7 4.6z' fill='%23e5485c'/><path d='M363.9 19.6h14v17l-7 -4.6l-7 4.6z' fill='%23e9b84a'/><path d='M407.5 13.9h14v17l-7 -4.6l-7 4.6z' fill='%234d8fd6'/><path d='M451.2 6.7h14v17l-7 -4.6l-7 4.6z' fill='%2356c08e'/></svg>");
}
/* cordão de bandeirinhas saindo do mastro da bandeira da escada */
html[data-tema="festa-junina"] .degrau-bandeira::before {
  content: ""; width: 120px; height: 44px; left: -113px; top: -2px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 44'><path d='M118,2 Q62,36 4,30' fill='none' stroke='%23e8dcc0' stroke-opacity='.6' stroke-width='.8'/><path d='M102.3 8.4h9v11l-4.5 -3.1l-4.5 3.1z' fill='%23e9b84a'/><path d='M85.4 16.5h9v11l-4.5 -3.1l-4.5 3.1z' fill='%234d8fd6'/><path d='M68.4 22.8h9v11l-4.5 -3.1l-4.5 3.1z' fill='%2356c08e'/><path d='M51.3 27.3h9v11l-4.5 -3.1l-4.5 3.1z' fill='%23ee8a4a'/><path d='M34.1 30h9v11l-4.5 -3.1l-4.5 3.1z' fill='%23a98bd9'/><path d='M16.9 30.9h9v11l-4.5 -3.1l-4.5 3.1z' fill='%23efe4cf'/></svg>");
}

/* 10. Dia dos Pais */
html[data-tema="dia-dos-pais"] {
  --tm-fio: #d5dfee; --tm-fio-brilho: rgba(143, 179, 224, 0.3);
  --tm-brilho: radial-gradient(1000px 640px at 86% -8%, rgba(143, 179, 224, 0.13), transparent 62%), radial-gradient(760px 520px at 0% 30%, rgba(210, 222, 240, 0.05), transparent 60%);
}
/* varal de gravatas no alto */
html[data-tema="dia-dos-pais"] .hero::before {
  content: ""; left: 0; right: 0; top: calc(var(--topo-margem) + var(--topo-alto) + 2px); height: 56px;
  background-repeat: repeat-x; background-size: 480px 56px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 56'><path d='M0 3Q240 52 480 3' fill='none' stroke='%23d5dfee' stroke-opacity='.5' stroke-width='1'/><g transform='translate(26.7 7.5) scale(1.35)' fill='%238fb3e0'><path d='M-2.6 0h5.2l-1.1 3.2h-3z'/><path d='M-1.7 3.6h3.4l2.3 11.4-4 4.2-4-4.2z'/><path d='M-1.2 7l2.6 2.4M-1.8 11l3.6 3.2' stroke='%230a1428' stroke-opacity='.3' stroke-width='.6'/></g><g transform='translate(80 16) scale(1.35)' fill='%23d5dfee'><path d='M-2.6 0h5.2l-1.1 3.2h-3z'/><path d='M-1.7 3.6h3.4l2.3 11.4-4 4.2-4-4.2z'/><path d='M-1.2 7l2.6 2.4M-1.8 11l3.6 3.2' stroke='%230a1428' stroke-opacity='.3' stroke-width='.6'/></g><g transform='translate(133.3 22.1) scale(1.35)' fill='%235f86c2'><path d='M-2.6 0h5.2l-1.1 3.2h-3z'/><path d='M-1.7 3.6h3.4l2.3 11.4-4 4.2-4-4.2z'/><path d='M-1.2 7l2.6 2.4M-1.8 11l3.6 3.2' stroke='%230a1428' stroke-opacity='.3' stroke-width='.6'/></g><g transform='translate(186.7 25.7) scale(1.35)' fill='%238fb3e0'><path d='M-2.6 0h5.2l-1.1 3.2h-3z'/><path d='M-1.7 3.6h3.4l2.3 11.4-4 4.2-4-4.2z'/><path d='M-1.2 7l2.6 2.4M-1.8 11l3.6 3.2' stroke='%230a1428' stroke-opacity='.3' stroke-width='.6'/></g><g transform='translate(240 26.9) scale(1.35)' fill='%23d5dfee'><path d='M-2.6 0h5.2l-1.1 3.2h-3z'/><path d='M-1.7 3.6h3.4l2.3 11.4-4 4.2-4-4.2z'/><path d='M-1.2 7l2.6 2.4M-1.8 11l3.6 3.2' stroke='%230a1428' stroke-opacity='.3' stroke-width='.6'/></g><g transform='translate(293.3 25.7) scale(1.35)' fill='%235f86c2'><path d='M-2.6 0h5.2l-1.1 3.2h-3z'/><path d='M-1.7 3.6h3.4l2.3 11.4-4 4.2-4-4.2z'/><path d='M-1.2 7l2.6 2.4M-1.8 11l3.6 3.2' stroke='%230a1428' stroke-opacity='.3' stroke-width='.6'/></g><g transform='translate(346.7 22.1) scale(1.35)' fill='%238fb3e0'><path d='M-2.6 0h5.2l-1.1 3.2h-3z'/><path d='M-1.7 3.6h3.4l2.3 11.4-4 4.2-4-4.2z'/><path d='M-1.2 7l2.6 2.4M-1.8 11l3.6 3.2' stroke='%230a1428' stroke-opacity='.3' stroke-width='.6'/></g><g transform='translate(400 16) scale(1.35)' fill='%23d5dfee'><path d='M-2.6 0h5.2l-1.1 3.2h-3z'/><path d='M-1.7 3.6h3.4l2.3 11.4-4 4.2-4-4.2z'/><path d='M-1.2 7l2.6 2.4M-1.8 11l3.6 3.2' stroke='%230a1428' stroke-opacity='.3' stroke-width='.6'/></g><g transform='translate(453.3 7.5) scale(1.35)' fill='%235f86c2'><path d='M-2.6 0h5.2l-1.1 3.2h-3z'/><path d='M-1.7 3.6h3.4l2.3 11.4-4 4.2-4-4.2z'/><path d='M-1.2 7l2.6 2.4M-1.8 11l3.6 3.2' stroke='%230a1428' stroke-opacity='.3' stroke-width='.6'/></g></svg>");
}
/* dois brilhos prateados junto da bandeira */
html[data-tema="dia-dos-pais"] .degrau-bandeira::before {
  content: ""; width: 40px; height: 34px; left: 20px; top: -30px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'><path fill='%23e3ebf7' d='M14 4c.7 5.7 3.3 8.3 9 9-5.7.7-8.3 3.3-9 9-.7-5.7-3.3-8.3-9-9 5.7-.7 8.3-3.3 9-9z'/><path fill='%23a9c4e6' d='M31 18c.4 3.4 2 5 5.4 5.4-3.4.4-5 2-5.4 5.4-.4-3.4-2-5-5.4-5.4 3.4-.4 5-2 5.4-5.4z'/></svg>");
}
@media (prefers-reduced-motion: no-preference) {
  html[data-tema="dia-dos-pais"] .degrau-bandeira::before { animation: tm-respira 5s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
}

/* 11. Dia das Crianças */
html[data-tema="dia-das-criancas"] {
  --tm-fio: #5fc8e8; --tm-fio-brilho: rgba(255, 201, 74, 0.25);
  --tm-brilho: radial-gradient(900px 600px at 90% -8%, rgba(95, 200, 232, 0.11), transparent 60%), radial-gradient(760px 520px at 0% 36%, rgba(255, 201, 74, 0.06), transparent 60%);
}
html[data-tema="dia-das-criancas"] .tema-camada .tema-fio::before { background: linear-gradient(90deg, transparent, #ff6b8b 20%, #ffc94a 40%, #56c08e 60%, #7aa8ff 80%, transparent); }
html[data-tema="dia-das-criancas"] .progresso { background: linear-gradient(90deg, #ff6b8b, #ffc94a, #56c08e, #3fd0c9, #7aa8ff, #b48cff); }
/* três balões amarrados atrás da foto */
html[data-tema="dia-das-criancas"] .hero-foto-in::before {
  content: ""; width: 77px; height: 88px; right: 7%; top: -58px; transform-origin: 50% 100%;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 110'><g fill='none' stroke='%23e8eef8' stroke-opacity='.5' stroke-width='.8'><path d='M24 40C26 60 40 80 46 108'/><path d='M50 26C49 50 47 80 46 108'/><path d='M74 44C70 64 52 84 46 108'/></g><path d='M24 39.4l-1.6 2.6h3.2z' fill='%23ff6b8b'/><ellipse cx='24' cy='26' rx='12' ry='13.8' fill='%23ff6b8b'/><ellipse cx='19.4' cy='20.6' rx='2.6' ry='4.6' transform='rotate(25 19.4 20.6)' fill='%23fff' fill-opacity='.38'/><path d='M74 42.9l-1.6 2.6h3.2z' fill='%233fd0c9'/><ellipse cx='74' cy='30' rx='11.5' ry='13.2' fill='%233fd0c9'/><ellipse cx='69.6' cy='24.8' rx='2.5' ry='4.4' transform='rotate(25 69.6 24.8)' fill='%23fff' fill-opacity='.38'/><path d='M50 28l-1.6 2.6h3.2z' fill='%23ffc94a'/><ellipse cx='50' cy='14' rx='12.5' ry='14.4' fill='%23ffc94a'/><ellipse cx='45.3' cy='8.4' rx='2.8' ry='4.8' transform='rotate(25 45.3 8.4)' fill='%23fff' fill-opacity='.38'/></svg>");
}
/* pipa presa no mastro da bandeira */
html[data-tema="dia-das-criancas"] .degrau-bandeira::before {
  content: ""; width: 48px; height: 72px; left: -41px; top: -70px; transform-origin: 100% 100%;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 72'><path d='M17 17C30 30 38 50 46 70' fill='none' stroke='%23e8eef8' stroke-opacity='.45' stroke-width='.7'/><path d='M17 34C14 42 20 48 13 56S12 66 6 71' fill='none' stroke='%23e8eef8' stroke-opacity='.6' stroke-width='.9'/><path d='M16.5 45l-4-2.2v4.4zM16.5 45l4-2.2v4.4z' fill='%23ff6b8b'/><path d='M11.5 58l-4-2.2v4.4zM11.5 58l4-2.2v4.4z' fill='%233fd0c9'/><path d='M17 2L31 17 17 34 3 17z' fill='%23ffc94a'/><path d='M17 2L31 17H17z' fill='%23ff6b8b'/><path d='M17 17H3l14 17z' fill='%233fd0c9'/><path d='M17 2v32M3 17h28' stroke='%23fff' stroke-opacity='.55' stroke-width='.7'/></svg>");
}
@media (prefers-reduced-motion: no-preference) {
  html[data-tema="dia-das-criancas"] .hero-foto-in::before { animation: tm-balanca 4.2s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
  html[data-tema="dia-das-criancas"] .degrau-bandeira::before { animation: tm-pipa 3.6s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
}

/* 12. Halloween */
html[data-tema="halloween"] {
  --tm-fio: #f28c28; --tm-fio-brilho: rgba(242, 140, 40, 0.3);
  --tm-brilho: radial-gradient(1000px 640px at 88% -8%, rgba(150, 110, 220, 0.12), transparent 62%), radial-gradient(900px 560px at 10% 112%, rgba(242, 140, 40, 0.09), transparent 62%);
}
html[data-tema="halloween"] .progresso { background: linear-gradient(90deg, #b8541a, #f28c28, #ffc06b); }
/* aranha descendo do alto da página, balançando devagar */
html[data-tema="halloween"] .hero::before {
  content: ""; width: 24px; height: 112px; left: 25%; top: 0; transform-origin: 50% 0;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 112'><path d='M12 0V93' stroke='%23d6dceb' stroke-opacity='.45' stroke-width='.7'/><g transform='translate(0 54)'><g stroke='%23c8c2de' stroke-width='1' fill='none' stroke-linecap='round' stroke-linejoin='round'><path d='M9.5 44l-4-3-1.5-4M9.3 46l-5-1-2.3-3M9.3 48l-5 1.2-2 3.3M9.8 50l-3.6 3-1 3.6M14.5 44l4-3 1.5-4M14.7 46l5-1 2.3-3M14.7 48l5 1.2 2 3.3M14.2 50l3.6 3 1 3.6'/></g><ellipse cx='12' cy='48' rx='3.6' ry='4.6' fill='%23c8c2de'/><circle cx='12' cy='41.8' r='2.4' fill='%23c8c2de'/></g></svg>");
}
/* lua no alto da página */
html[data-tema="halloween"] .hero::after {
  content: ""; width: 118px; height: 118px; right: 2%; top: calc(var(--topo-margem) + var(--topo-alto) + 14px);
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'><defs><radialGradient id='h'><stop offset='.25' stop-color='%23ffd9a0' stop-opacity='.2'/><stop offset='1' stop-color='%23ffd9a0' stop-opacity='0'/></radialGradient><mask id='m'><rect width='120' height='120' fill='%23fff'/><circle cx='71' cy='51' r='21' fill='%23000'/></mask></defs><circle cx='60' cy='60' r='60' fill='url(%23h)'/><circle cx='60' cy='60' r='23' fill='%23f3e3c3' mask='url(%23m)'/></svg>");
}
/* abóbora no degrau do topo, ao lado da bandeira */
html[data-tema="halloween"] .degrau-bandeira::before {
  content: ""; width: 28px; height: 25px; left: -32px; bottom: 1px; filter: drop-shadow(0 0 6px rgba(255, 170, 80, 0.35));
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30'><path d='M17 8c-.4-3 .6-5.2 3.2-6.4' fill='none' stroke='%236fae7f' stroke-width='2' stroke-linecap='round'/><g fill='%23e9822e' stroke='%23a9551a' stroke-width='.8'><ellipse cx='10.5' cy='18.5' rx='8.5' ry='10'/><ellipse cx='23.5' cy='18.5' rx='8.5' ry='10'/><ellipse cx='17' cy='18.5' rx='8' ry='10.6'/></g><g fill='%23ffd98a'><path d='M10 16.5l2.6-3.2 2.6 3.2z'/><path d='M18.8 16.5l2.6-3.2 2.6 3.2z'/><path d='M10.5 20.5C14 24.5 20 24.5 23.5 20.5L21.5 21.6 19.8 20.6 18.1 21.7 16.9 20.6 15.2 21.7 13.5 20.6 12 21.6z'/></g></svg>");
}
@media (prefers-reduced-motion: no-preference) {
  html[data-tema="halloween"] .hero::before { animation: tm-pendulo 4.6s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
}

/* 13. Black Friday */
html[data-tema="black-friday"] {
  --tm-fio: #e2c27a; --tm-fio-brilho: rgba(226, 194, 122, 0.3);
  --tm-brilho: radial-gradient(1000px 640px at 86% -8%, rgba(226, 194, 122, 0.08), transparent 62%), radial-gradient(800px 520px at 0% 60%, rgba(226, 194, 122, 0.04), transparent 60%);
}
html[data-tema="black-friday"] .progresso { background: linear-gradient(90deg, #8a6a2c, #e2c27a, #fff1c9); }
/* duas etiquetas pretas e douradas penduradas no alto, em alturas diferentes */
html[data-tema="black-friday"] .hero::before,
html[data-tema="black-friday"] .hero::after { content: ""; top: 0; transform-origin: 50% 0; }
html[data-tema="black-friday"] .hero::before {
  width: 30px; height: 106px; left: 23%;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 106'><path d='M15 0v73' stroke='%23e2c27a' stroke-opacity='.6' stroke-width='.8'/><g transform='translate(0 42)'><path d='M6 34l9-8 9 8v26a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3z' fill='%23090c13' stroke='%23e2c27a' stroke-width='1.1' stroke-linejoin='round'/><circle cx='15' cy='33' r='2' fill='none' stroke='%23e2c27a' stroke-width='1'/><g stroke='%23e2c27a' stroke-width='1.2' fill='none' stroke-linecap='round'><circle cx='11.5' cy='43' r='2'/><circle cx='18.5' cy='53' r='2'/><path d='M19.5 41.5l-9 13'/></g></g></svg>");
}
html[data-tema="black-friday"] .hero::after {
  width: 23px; height: 63px; left: calc(23% + 40px);
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 82'><path d='M15 0v49' stroke='%23e2c27a' stroke-opacity='.6' stroke-width='.8'/><g transform='translate(0 18)'><path d='M6 34l9-8 9 8v26a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3z' fill='%23090c13' stroke='%23e2c27a' stroke-width='1.1' stroke-linejoin='round'/><circle cx='15' cy='33' r='2' fill='none' stroke='%23e2c27a' stroke-width='1'/><g stroke='%23e2c27a' stroke-width='1.2' fill='none' stroke-linecap='round'><circle cx='11.5' cy='43' r='2'/><circle cx='18.5' cy='53' r='2'/><path d='M19.5 41.5l-9 13'/></g></g></svg>");
}
/* etiquetinha dourada presa na ponta da bandeira da escada */
html[data-tema="black-friday"] .degrau-bandeira::before {
  content: ""; width: 13px; height: 24px; left: 21px; top: 15px; transform-origin: 50% 0;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 26'><path d='M7 0v7' stroke='%23e2c27a' stroke-opacity='.7' stroke-width='.7'/><path d='M2 11l5-4.5 5 4.5v12.4a1.6 1.6 0 0 1-1.6 1.6H3.6A1.6 1.6 0 0 1 2 23.4z' fill='%23090c13' stroke='%23e2c27a' stroke-width='.9' stroke-linejoin='round'/><circle cx='7' cy='10.4' r='1' fill='none' stroke='%23e2c27a' stroke-width='.7'/><path d='M4.6 16h4.8M4.6 19.4h3.2' stroke='%23e2c27a' stroke-opacity='.75' stroke-width='.9' stroke-linecap='round'/></svg>");
}
@media (prefers-reduced-motion: no-preference) {
  html[data-tema="black-friday"] .degrau-bandeira::before { animation: tm-pendulo 3.8s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
  html[data-tema="black-friday"] .hero::before { animation: tm-pendulo 5.2s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
  html[data-tema="black-friday"] .hero::after { animation: tm-pendulo 4.4s cubic-bezier(0.45, 0, 0.55, 1) -2s infinite alternate; }
}

/* 14. Natal */
html[data-tema="natal"] {
  --tm-brilho: radial-gradient(1000px 640px at 84% -8%, rgba(255, 212, 140, 0.09), transparent 62%), radial-gradient(760px 520px at 0% 22%, rgba(190, 220, 255, 0.06), transparent 60%);
}
/* varal de luzinhas no alto (duas fileiras, lâmpadas douradas e brancas; paradas de propósito: piscar um enfeite
   largo assim custava ~40 ms por segundo na linha principal do celular com a CPU 4x mais lenta) */
html[data-tema="natal"] .hero::before,
html[data-tema="natal"] .hero::after {
  content: ""; left: 0; right: 0; top: calc(var(--topo-margem) + var(--topo-alto) + 2px); height: 42px;
  background-repeat: repeat-x; background-position: 50% 0; background-size: 480px 42px;
}
html[data-tema="natal"] .hero::before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 42'><defs><radialGradient id='a'><stop offset='0' stop-color='%23ffd27a' stop-opacity='.5'/><stop offset='1' stop-color='%23ffd27a' stop-opacity='0'/></radialGradient></defs><path d='M0 3Q240 52 480 3' fill='none' stroke='%23e9dcc0' stroke-opacity='.42' stroke-width='1'/><circle cx='20' cy='13.4' r='9' fill='url(%23a)'/><rect x='18.5' y='6.6' width='3' height='2.8' rx='.6' fill='%23cbbf9f'/><ellipse cx='20' cy='13.2' rx='2.7' ry='3.8' fill='%23ffd27a'/><circle cx='100' cy='25.7' r='9' fill='url(%23a)'/><rect x='98.5' y='18.9' width='3' height='2.8' rx='.6' fill='%23cbbf9f'/><ellipse cx='100' cy='25.5' rx='2.7' ry='3.8' fill='%23ffd27a'/><circle cx='180' cy='32.5' r='9' fill='url(%23a)'/><rect x='178.5' y='25.7' width='3' height='2.8' rx='.6' fill='%23cbbf9f'/><ellipse cx='180' cy='32.3' rx='2.7' ry='3.8' fill='%23ffd27a'/><circle cx='260' cy='33.8' r='9' fill='url(%23a)'/><rect x='258.5' y='27' width='3' height='2.8' rx='.6' fill='%23cbbf9f'/><ellipse cx='260' cy='33.6' rx='2.7' ry='3.8' fill='%23ffd27a'/><circle cx='340' cy='29.7' r='9' fill='url(%23a)'/><rect x='338.5' y='22.9' width='3' height='2.8' rx='.6' fill='%23cbbf9f'/><ellipse cx='340' cy='29.5' rx='2.7' ry='3.8' fill='%23ffd27a'/><circle cx='420' cy='20.2' r='9' fill='url(%23a)'/><rect x='418.5' y='13.4' width='3' height='2.8' rx='.6' fill='%23cbbf9f'/><ellipse cx='420' cy='20' rx='2.7' ry='3.8' fill='%23ffd27a'/></svg>"); }
html[data-tema="natal"] .hero::after { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 42'><defs><radialGradient id='b'><stop offset='0' stop-color='%23fff1d0' stop-opacity='.45'/><stop offset='1' stop-color='%23fff1d0' stop-opacity='0'/></radialGradient></defs><circle cx='60' cy='20.2' r='9' fill='url(%23b)'/><rect x='58.5' y='13.4' width='3' height='2.8' rx='.6' fill='%23cbbf9f'/><ellipse cx='60' cy='20' rx='2.7' ry='3.8' fill='%23fff1d0'/><circle cx='140' cy='29.7' r='9' fill='url(%23b)'/><rect x='138.5' y='22.9' width='3' height='2.8' rx='.6' fill='%23cbbf9f'/><ellipse cx='140' cy='29.5' rx='2.7' ry='3.8' fill='%23fff1d0'/><circle cx='220' cy='33.8' r='9' fill='url(%23b)'/><rect x='218.5' y='27' width='3' height='2.8' rx='.6' fill='%23cbbf9f'/><ellipse cx='220' cy='33.6' rx='2.7' ry='3.8' fill='%23fff1d0'/><circle cx='300' cy='32.5' r='9' fill='url(%23b)'/><rect x='298.5' y='25.7' width='3' height='2.8' rx='.6' fill='%23cbbf9f'/><ellipse cx='300' cy='32.3' rx='2.7' ry='3.8' fill='%23fff1d0'/><circle cx='380' cy='25.7' r='9' fill='url(%23b)'/><rect x='378.5' y='18.9' width='3' height='2.8' rx='.6' fill='%23cbbf9f'/><ellipse cx='380' cy='25.5' rx='2.7' ry='3.8' fill='%23fff1d0'/><circle cx='460' cy='13.4' r='9' fill='url(%23b)'/><rect x='458.5' y='6.6' width='3' height='2.8' rx='.6' fill='%23cbbf9f'/><ellipse cx='460' cy='13.2' rx='2.7' ry='3.8' fill='%23fff1d0'/></svg>"); }
/* depois de rolar: luzinhas douradas logo abaixo do vidro do topo (no lugar do fio de luz) */
html[data-tema="natal"] .tema-camada .tema-fio::before,
html[data-tema="natal"] .tema-camada .tema-fio::after {
  left: 26px; right: 26px; top: 1px; height: 6px;
  background: radial-gradient(circle, #ffd98a 0 1.5px, rgba(255, 217, 138, 0.35) 2.2px, transparent 3px) 0 50% / 34px 6px repeat-x;
}
html[data-tema="natal"] .tema-camada .tema-fio::after { background-image: radial-gradient(circle, #fff3d6 0 1.3px, rgba(255, 243, 214, 0.3) 2px, transparent 3px); background-position: 17px 50%; }
/* estrela no topo da escada, como no alto de uma árvore */
html[data-tema="natal"] .degrau-bandeira::before {
  content: ""; width: 46px; height: 46px; left: -6px; top: -42px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><defs><radialGradient id='h'><stop offset='0' stop-color='%23ffe2a0' stop-opacity='.55'/><stop offset='1' stop-color='%23ffe2a0' stop-opacity='0'/></radialGradient><linearGradient id='o' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23fff3cf'/><stop offset='1' stop-color='%23e8b84e'/></linearGradient></defs><circle cx='20' cy='20' r='20' fill='url(%23h)'/><path d='M20 9l2.7 7.3 7.8.3-6.1 4.8 2.1 7.5-6.5-4.3-6.5 4.3 2.1-7.5-6.1-4.8 7.8-.3z' fill='url(%23o)'/></svg>");
}
@media (prefers-reduced-motion: no-preference) {
  html[data-tema="natal"] .degrau-bandeira::before { animation: tm-respira 4.5s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
}

/* 15. Celular: varais do alto na metade do tamanho, enfeites da foto menores e longe do texto. Na escada do
   celular (linha do tempo, com a bandeira pequena à esquerda e o texto colado nela) não há espaço livre: lá o tema
   fica só nas partículas. */
@media (max-width: 640px) {
  .tema-camada .tema-fio { left: 10px; right: 10px; }
  html[data-tema] .degrau-bandeira::before, html[data-tema] .degrau-bandeira::after { content: none; }
  html[data-tema="natal"] .hero::before, html[data-tema="natal"] .hero::after { height: 21px; background-size: 240px 21px; top: calc(var(--topo-margem) + var(--topo-alto) + 1px); }
  html[data-tema="ano-novo"] .hero::before { height: 27px; background-size: 240px 27px; top: calc(var(--topo-margem) + var(--topo-alto) + 1px); }
  html[data-tema="dia-dos-pais"] .hero::before { height: 28px; background-size: 240px 28px; top: calc(var(--topo-margem) + var(--topo-alto) + 1px); }
  html[data-tema="carnaval"] .hero::before { height: 28px; background-size: 240px 28px; top: calc(var(--topo-margem) + var(--topo-alto) + 1px); }
  html[data-tema="festa-junina"] .hero::before { height: 24px; background-size: 240px 24px; top: calc(var(--topo-margem) + var(--topo-alto) + 1px); }
  html[data-tema="halloween"] .hero::before { width: 18px; height: 84px; left: 60%; }
  html[data-tema="halloween"] .hero::after { width: 84px; height: 84px; right: 6px; top: calc(var(--topo-margem) + var(--topo-alto) + 4px); }
  html[data-tema="black-friday"] .hero::before { width: 24px; height: 85px; left: 57%; }
  html[data-tema="black-friday"] .hero::after { width: 18px; height: 49px; left: calc(57% + 32px); }
  html[data-tema="pascoa"] .hero-foto-in::before { width: 40px; height: 46px; top: -26px; }
  html[data-tema="dia-do-trabalhador"] .hero-foto-in::before { width: 120px; height: 52px; left: 72%; margin-left: -60px; top: -46px; opacity: 0.6; }
  html[data-tema="dia-das-maes"] .hero-foto-in::before { width: 48px; height: 55px; top: -24px; }
  html[data-tema="dia-do-rh"] .hero-foto-in::before { width: 88px; height: 60px; top: -38px; }
  html[data-tema="dia-das-criancas"] .hero-foto-in::before { width: 54px; height: 62px; top: -30px; }
}

/* 16. Aba oculta, menos movimento, impressão e alto contraste */
html.tema-pausado .tema-camada i, html.tema-pausado .tema-camada i::before, html.tema-pausado .tema-camada i::after,
html.tema-pausado[data-tema] .hero::before, html.tema-pausado[data-tema] .hero::after,
html.tema-pausado[data-tema] .hero-foto-in::before, html.tema-pausado[data-tema] .hero-foto-in::after,
html.tema-pausado[data-tema] .degrau-bandeira::before, html.tema-pausado[data-tema] .degrau-bandeira::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .tema-camada .tp { display: none; }
  .tema-camada i::before, .tema-camada i::after,
  html[data-tema] .hero::before, html[data-tema] .hero::after,
  html[data-tema] .hero-foto-in::before, html[data-tema] .hero-foto-in::after,
  html[data-tema] .degrau-bandeira::before, html[data-tema] .degrau-bandeira::after { animation: none !important; }
}
@media print, (forced-colors: active) {
  .tema-camada,
  html[data-tema] body::before,
  html[data-tema] .hero::before, html[data-tema] .hero::after,
  html[data-tema] .hero-foto-in::before, html[data-tema] .hero-foto-in::after,
  html[data-tema] .degrau-bandeira::before, html[data-tema] .degrau-bandeira::after { display: none; }
}
