/* ==========================================================================
   Winter Atmospheric & Snow Effects
   РГПУ им. А. И. Герцена — Новогодняя сказка во Дворце педагогики
   ========================================================================== */

/* Snowfall Canvas - Fullscreen Background Layer */
#snow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* Sits right above body background, behind page sections with z-index: 2 */
  overflow: hidden;
}

/* Atmospheric Background Layers (Aurora, Shooting Stars) */
.aurora-bg,
.shooting-stars-sky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Subtle Frost Overlays (Disabled to preserve seamless background) */
.frost-overlay {
  display: none !important;
}

/* Ice Shimmering Stars in Background */
@keyframes twinkleStar {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.2); }
}

.snow-glow {
  position: absolute;
  top: 15%;
  left: 10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(142, 197, 252, 0.08) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: floatGlow 12s ease-in-out infinite alternate;
}

@keyframes floatGlow {
  0% { transform: translateY(0px) translateX(0px); }
  100% { transform: translateY(30px) translateX(20px); }
}

/* Ice Crystal Borders */
.crystal-border {
  position: relative;
}

.crystal-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(243, 207, 122, 0.2) 50%, rgba(255, 255, 255, 0.05) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

