/* Árvore de Natal: o anúncio 300 x 525 do iframe. Fundo = vídeo em loop (a árvore 3D, o fio dourado e a faísca já
   gravados); por cima, em HTML: título, cartão da logo da vez, contagem e botão. Medidas iguais às da prévia aprovada. */
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/fonts/playfair-italico.woff2") format("woff2"); font-style: italic; font-weight: 700; font-display: block; }

html, body { margin: 0; padding: 0; background: #0b1033; overflow: hidden; }
.bn { position: relative; width: 300px; height: 525px; overflow: hidden; background: #141d5a url("/arvore.jpg") center / cover no-repeat;
  font-family: Montserrat, system-ui, sans-serif; user-select: none; -webkit-user-select: none; transform-origin: 0 0; }
.bn a { -webkit-tap-highlight-color: transparent; }
.fundo { position: absolute; inset: 0; width: 300px; height: 525px; object-fit: cover; display: block; pointer-events: none; }
.tudo { position: absolute; inset: 0; z-index: 1; }

.tit { position: absolute; top: 13px; left: 0; right: 0; text-align: center; pointer-events: none; z-index: 2; }
.sup { font-weight: 700; font-size: 9.5px; letter-spacing: .34em; padding-left: .34em; color: #f3dca2; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.boas { margin-top: 1px; font: italic 700 39px/1.05 "Playfair Display", Georgia, serif; letter-spacing: .005em;
  background: linear-gradient(100deg, #b98a2e 0%, #f7e3a6 22%, #d8a646 40%, #fff4cf 50%, #d39f3f 62%, #f5dc98 80%, #b3832a 100%);
  background-size: 240% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.55)); animation: brilho 11.1s linear infinite; }
@keyframes brilho { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.cartao { position: absolute; left: 26px; top: 382px; width: 248px; height: 78px; border-radius: 9px; z-index: 2; display: block;
  background: linear-gradient(180deg, #ffffff 0%, #f7f3ea 100%); box-shadow: 0 10px 26px rgba(4,8,30,.55), inset 0 0 0 1px rgba(201,160,80,.55); }
.cartao::before { content: ""; position: absolute; left: 50%; top: -7px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3c8, #d6a54a 55%, #8f6a22); box-shadow: 0 0 8px rgba(255,210,120,.9); }
.logo { position: absolute; inset: 8px 14px; display: flex; align-items: center; justify-content: center; text-align: center;
  opacity: 0; transform: translateY(8px) scale(.97); filter: blur(2.2px);
  transition: opacity .3s ease, transform .3s ease, filter .3s ease; }
.logo.on { opacity: 1; transform: none; filter: none; transition-duration: .42s; }
.logo.sai { opacity: 0; transform: translateY(-6px); filter: blur(1.8px); }
.logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.logo.p1 { inset: 6px; border-radius: 6px; background: linear-gradient(180deg, #18236a, #0f1648); padding: 0 16px; }
.logo.nome { color: #172160; font-weight: 800; font-size: 17px; line-height: 1.15; letter-spacing: .01em; }
.logo.convite { flex-direction: column; gap: 3px; color: #172160; }
.logo.convite b { font-weight: 800; font-size: 16px; letter-spacing: .08em; }
.logo.convite small { font-weight: 600; font-size: 10.5px; color: #8a6a24; letter-spacing: .02em; }

.conta { position: absolute; top: 468px; left: 0; right: 0; text-align: center; font-weight: 600; font-size: 10.6px; color: #d6defc;
  letter-spacing: .02em; pointer-events: none; z-index: 2; }
.conta b { color: #f3d58c; font-weight: 800; }
.cta { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; display: flex; align-items: center; justify-content: center; gap: 6px; z-index: 2;
  background: linear-gradient(180deg, #f8e2a2 0%, #e2b458 55%, #c9973c 100%); color: #172160; font-weight: 800; font-size: 11.4px; letter-spacing: .09em;
  text-decoration: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); overflow: hidden; }
.cta span { font-size: 17px; line-height: 1; margin-top: -2px; }
.cta::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%, transparent 100%);
  background-size: 300% 100%; background-position: 160% 0; animation: reflexo 5.8s linear infinite; }
@keyframes reflexo { from { background-position: 160% 0; } to { background-position: -100% 0; } }
.cta:hover, .cta:focus-visible { filter: brightness(1.06); }
.cartao:focus-visible, .cta:focus-visible, .tudo:focus-visible { outline: 2px solid #fff4cf; outline-offset: -3px; }

@media (prefers-reduced-motion: reduce) {
  .boas, .cta::after { animation: none; }
  .logo, .logo.on { transition-duration: .01s; }
}
