/* New Year's Eve 2026 - static styles (loaded on homepage only) */
body.ny-2026 {
  --background: linear-gradient(180deg, #020617 0%, #07142a 100%);
  --foreground: #fff;
  --accent: #ffd700;
  color: var(--foreground);
  background: var(--background);
  transition: background 0.8s ease, color 0.8s ease;
}

.ny-banner {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,215,0,0.06);
  color: var(--accent);
  padding: .4rem .9rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .06em;
  z-index: 10000;
  box-shadow: 0 6px 24px rgba(0,0,0,0.6);
  pointer-events: none;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.ny-banner .shimmer {
  display: inline-block;
  background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.95), rgba(255,255,255,0.2));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* slowed to 0.25x speed */
  animation: shimmer 12s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0 }
  100% { background-position: -200% 0 }
}

.ny-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* keep overlay visually behind content so headings remain readable */
  z-index: 0;
  overflow: hidden;
}

/* raise main content above the overlay */
body.ny-2026 main, body.ny-2026 .section {
  position: relative;
  z-index: 1;
}

.ny-glitter {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.85) 0 1px, transparent 2px), radial-gradient(circle at 70% 40%, rgba(255,215,0,0.9) 0 1px, transparent 2px);
  mix-blend-mode: screen;
  /* lower opacity so bright spots don't wash out text */
  opacity: .65;
  /* slowed to 0.25x speed */
  animation: glitter-move 32s linear infinite;
  background-size: 30px 30px, 50px 50px;
}

@keyframes glitter-move {
  from { transform: translateY(-8%) }
  to { transform: translateY(8%) }
}

canvas#ny-confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.ny-headline {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(90deg, #fff, #ffd700 40%, #fff 80%);
  /* slowed to 0.25x speed */
  animation: shimmer 12s linear infinite;
  text-transform: uppercase !important;
  letter-spacing: .12em;
  /* reinforce contrast when overlay is behind content */
  text-shadow: 0 4px 18px rgba(0,0,0,0.85);
}

.fade-out { opacity: 0; transition: opacity 1s ease; pointer-events: none }

@media (prefers-reduced-motion: reduce) {
  .ny-glitter, .ny-banner .shimmer, .ny-headline { animation: none !important; }
  canvas#ny-confetti { display: none; }
}
