/* ════════════════════════════════════════════════════════════════════
   🎄 Emilia — Edição de Natal (apenas visual do site)
   Substitui o antigo tema de Halloween. Não altera estrutura nem o bot.
   ════════════════════════════════════════════════════════════════════ */

#natalCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.nt-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.nt-garland {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46px;
  background:
    radial-gradient(circle 6px at 4% 20px, #ff5a5a 0 90%, transparent 92%),
    radial-gradient(circle 6px at 12% 8px, #ffd95a 0 90%, transparent 92%),
    radial-gradient(circle 6px at 20% 20px, #5affa0 0 90%, transparent 92%),
    radial-gradient(circle 6px at 28% 8px, #5ac8ff 0 90%, transparent 92%),
    radial-gradient(circle 6px at 36% 20px, #ff5a5a 0 90%, transparent 92%),
    radial-gradient(circle 6px at 44% 8px, #ffd95a 0 90%, transparent 92%),
    radial-gradient(circle 6px at 52% 20px, #5affa0 0 90%, transparent 92%),
    radial-gradient(circle 6px at 60% 8px, #5ac8ff 0 90%, transparent 92%),
    radial-gradient(circle 6px at 68% 20px, #ff5a5a 0 90%, transparent 92%),
    radial-gradient(circle 6px at 76% 8px, #ffd95a 0 90%, transparent 92%),
    radial-gradient(circle 6px at 84% 20px, #5affa0 0 90%, transparent 92%),
    radial-gradient(circle 6px at 92% 8px, #5ac8ff 0 90%, transparent 92%);
  opacity: .55;
  animation: nt-twinkle 2.6s ease-in-out infinite alternate;
}
@keyframes nt-twinkle { from { opacity: .3; } to { opacity: .65; } }

.nt-flake {
  position: absolute;
  top: -8%;
  left: var(--x, 10%);
  color: #fff;
  opacity: var(--alpha, .8);
  font-size: var(--size, 14px);
  filter: blur(var(--blur, 0px));
  animation: nt-fall var(--dur, 12s) linear var(--delay, 0s) infinite,
             nt-sway var(--sway, 4s) ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes nt-fall {
  from { transform: translateY(-10vh); }
  to   { transform: translateY(110vh); }
}
@keyframes nt-sway {
  from { margin-left: -16px; }
  to   { margin-left: 16px; }
}

.nt-mascot {
  position: relative;
  display: inline-flex;
  margin: 0 auto 18px;
  width: fit-content;
  cursor: pointer;
  user-select: none;
}
.nt-mascot img {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ff5a5a;
  box-shadow: 0 0 24px rgba(255, 90, 90, .45);
}
.nt-mascot .hat {
  position: absolute;
  top: -22px;
  left: 6px;
  width: 64px;
  height: auto;
  transform: rotate(-8deg);
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.35));
}
.nt-mascot .orb {
  position: absolute;
  font-size: 20px;
  animation: nt-bob 3s ease-in-out infinite;
}
.nt-mascot .o1 { top: -6px; right: -14px; animation-delay: 0s; }
.nt-mascot .o2 { bottom: 4px; left: -18px; animation-delay: .5s; }
.nt-mascot .o3 { top: 50%; right: -24px; animation-delay: 1s; }
@keyframes nt-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.nt-mascot .bubble {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, 8px) scale(.85);
  opacity: 0;
  white-space: nowrap;
  background: #fff;
  color: #1a2e1a;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 10px;
  transition: transform .25s ease, opacity .25s ease;
  pointer-events: none;
}
.nt-mascot.boo .bubble { transform: translate(-50%, -6px) scale(1); opacity: 1; }

.nt-countdown {
  text-align: center;
  margin: 10px auto 0;
}
.nt-countdown .lbl {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #ff5a5a;
  margin-bottom: 6px;
}
.nt-cd {
  display: inline-flex;
  gap: 10px;
}
.nt-cd > div {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(90, 200, 255, .3);
  border-radius: 10px;
  padding: 6px 10px;
  min-width: 46px;
  text-align: center;
}
.nt-cd strong { display: block; font-size: 18px; color: #fff; }
.nt-cd small { font-size: 10px; color: #b9c9d9; text-transform: uppercase; }

#ntToggle,
#ntSound {
  position: fixed;
  right: 14px;
  z-index: 40;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(90, 200, 255, .35);
  background: rgba(10, 20, 30, .7);
  backdrop-filter: blur(6px);
  font-size: 18px;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
#ntToggle { bottom: 14px; }
#ntSound { bottom: 62px; }
#ntToggle:hover,
#ntSound:hover { transform: scale(1.08); }
#ntToggle.off,
#ntSound.off { opacity: .45; }


body.nt-off .nt-flake,
body.nt-off .nt-garland { display: none; }

@media (max-width: 720px) {
  .nt-mascot img { width: 84px; height: 84px; }
  .nt-mascot .hat { width: 50px; top: -18px; }
}

@media (prefers-reduced-motion: reduce) {
  .nt-flake, .nt-garland, .nt-mascot .orb { animation: none !important; }
}
