/* Ряд сугробов и фигур по низу */
.snowdrift-tiles-row {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  display: flex;
  flex-direction: row;
  justify-content: stretch;
  align-items: flex-end;
  z-index: 600;
  pointer-events: none;
  height: 38px;
}
.bottom-snowdrift-tile {
  height: 38px;
  width: 100%;
  max-width: none;
  object-fit: contain;
  display: block;
  margin: 0;
  pointer-events: none;
  flex: 1 1 0;
}
.bottom-figures-row {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  width: 100vw;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: flex-end;
  z-index: 602;
  pointer-events: none;
}
.bottom-figure {
  font-size: 32px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.10));
  user-select: none;
  margin-bottom: 0;
  position: relative;
  z-index: 603;
}
@media (max-width: 768px) {
  .snowdrift-tiles-row { height: 24px; }
  .bottom-snowdrift-tile { height: 24px; }
  .bottom-figures-row { bottom: 10px; }
  .bottom-figure { font-size: 20px; }
}
@media (max-width: 576px) {
  .snowdrift-tiles-row { height: 14px; }
  .bottom-snowdrift-tile { height: 14px; }
  .bottom-figures-row { bottom: 4px; }
  .bottom-figure { font-size: 12px; }
}
/* Сугроб-полоса и фигуры поверх */
.snowdrift-strip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 38px;
  z-index: 600;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
}
.bottom-snowdrift-strip {
  width: 100vw;
  min-width: 100%;
  height: 38px;
  object-fit: contain;
  display: block;
  margin: 0;
  pointer-events: none;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 601;
}
.bottom-figures {
  position: relative;
  width: 100vw;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  z-index: 602;
  margin-bottom: 10px;
  pointer-events: none;
}
.bottom-figures .bottom-emoji {
  font-size: 38px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.10));
  user-select: none;
  margin-bottom: 0;
  position: relative;
  z-index: 603;
}
@media (max-width: 768px) {
  .snowdrift-strip { height: 24px; }
  .bottom-snowdrift-strip { height: 24px; }
  .bottom-figures .bottom-emoji { font-size: 22px; }
}
@media (max-width: 576px) {
  .snowdrift-strip { height: 16px; }
  .bottom-snowdrift-strip { height: 16px; }
  .bottom-figures .bottom-emoji { font-size: 12px; }
}
/* Сугробы внизу */
.bottom-snowdrift {
  height: 38px;
  width: auto;
  margin: 0 4px;
  vertical-align: bottom;
  display: inline-block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.10));
}
@media (max-width: 768px) {
  .bottom-snowdrift { height: 28px; }
}
@media (max-width: 576px) {
  .bottom-snowdrift { height: 18px; }
}
@keyframes starSwing {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(var(--star-amp, 20px)); }
}

@keyframes starSwingLeft {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(calc(-1 * var(--star-amp, 20px))); }
}
/* =====================================================
   NEW YEAR DECORATIONS (Новогодние украшения)
   ===================================================== */

/* Снежинки падающие */
@keyframes snowfall {
  0% {
    transform: translateY(-100vh) translateX(0);
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) translateX(100px);
    opacity: 0;
  }
}

@keyframes snowSway {
  0% { transform: translateX(0); }
  25% { transform: translateX(20px); }
  50% { transform: translateX(0); }
  75% { transform: translateX(-20px); }
  100% { transform: translateX(0); }
}

/* Контейнер для снега */
.snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Снежинка */
.snowflake {
  position: fixed;
  top: -10px;
  z-index: 2;
  user-select: none;
  cursor: default;
  color: #fff;
  font-size: 1em;
  font-family: Arial, sans-serif;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.snowflake:nth-child(1) {
  left: 10%;
  animation: snowfall 12s linear infinite;
  font-size: 1.2em;
}

.snowflake:nth-child(2) {
  left: 20%;
  animation: snowfall 14s linear infinite 2s;
  font-size: 0.8em;
}

.snowflake:nth-child(3) {
  left: 30%;
  animation: snowfall 16s linear infinite 4s;
  font-size: 1em;
}

.snowflake:nth-child(4) {
  left: 40%;
  animation: snowfall 13s linear infinite 1s;
  font-size: 1.1em;
}

.snowflake:nth-child(5) {
  left: 50%;
  animation: snowfall 15s linear infinite 3s;
  font-size: 0.9em;
}

.snowflake:nth-child(6) {
  left: 60%;
  animation: snowfall 14s linear infinite 2.5s;
  font-size: 1em;
}

.snowflake:nth-child(7) {
  left: 70%;
  animation: snowfall 16s linear infinite 1.5s;
  font-size: 1.2em;
}

.snowflake:nth-child(8) {
  left: 80%;
  animation: snowfall 12s linear infinite 4s;
  font-size: 0.85em;
}

.snowflake:nth-child(9) {
  left: 90%;
  animation: snowfall 15s linear infinite 3.5s;
  font-size: 1em;
}

.snowflake:nth-child(10) {
  left: 5%;
  animation: snowfall 17s linear infinite 2s;
  font-size: 0.9em;
}

.snowflake:nth-child(11) {
  left: 15%;
  animation: snowfall 14s linear infinite 1s;
  font-size: 0.95em;
}

.snowflake:nth-child(12) {
  left: 25%;
  animation: snowfall 16s linear infinite 3s;
  font-size: 1em;
}

.snowflake:nth-child(13) {
  left: 35%;
  animation: snowfall 15s linear infinite 2.5s;
  font-size: 0.85em;
}

.snowflake:nth-child(14) {
  left: 45%;
  animation: snowfall 13s linear infinite 1.5s;
  font-size: 1.1em;
}

.snowflake:nth-child(15) {
  left: 55%;
  animation: snowfall 17s linear infinite 3.5s;
  font-size: 0.9em;
}

.snowflake:nth-child(16) {
  left: 65%;
  animation: snowfall 14s linear infinite 2s;
  font-size: 1em;
}

.snowflake:nth-child(17) {
  left: 75%;
  animation: snowfall 16s linear infinite 1s;
  font-size: 0.95em;
}

.snowflake:nth-child(18) {
  left: 85%;
  animation: snowfall 15s linear infinite 2.5s;
  font-size: 1.1em;
}

.snowflake:nth-child(19) {
  left: 95%;
  animation: snowfall 13s linear infinite 3s;
  font-size: 0.85em;
}

.snowflake:nth-child(20) {
  left: 12%;
  animation: snowfall 17s linear infinite 1.5s;
  font-size: 1em;
}

/* Гирлянда - по всей ширине */
@keyframes garlandBlink {
  0%, 100% { 
    opacity: 1;
    text-shadow: 0 0 12px currentColor, 0 0 20px currentColor;
    filter: brightness(1.2);
  }
  50% {
    opacity: 0.4;
    text-shadow: 0 0 8px currentColor;
    filter: brightness(0.9);
  }
}

@keyframes garlandSway {
  0%, 100% { transform: translateY(0) rotateZ(-1deg); }
  25% { transform: translateY(-5px) rotateZ(-0.5deg); }
  50% { transform: translateY(0) rotateZ(0deg); }
  75% { transform: translateY(-5px) rotateZ(0.5deg); }
}

@keyframes garlandGlow {
  0%, 100% { background: radial-gradient(circle, rgba(255,255,255,0.3), rgba(255,255,255,0)); }
  50% { background: radial-gradient(circle, rgba(255,255,255,0.6), rgba(255,255,255,0)); }
}

.garland-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(180deg, rgba(220, 20, 60, 0.15), rgba(0, 100, 200, 0.1), transparent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  pointer-events: none;
  padding: 0;
  overflow: visible;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.garland-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.garland-string {
  width: 100%;
  height: 70px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  animation: garlandSway 4s ease-in-out infinite;
  box-sizing: border-box;
}

.garland-string::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent, 
    #8B4513 5%, 
    #8B4513 95%, 
    transparent);
  z-index: 0;
}

.garland-light {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 0 15px currentColor, inset 0 0 10px rgba(255,255,255,0.3);
  animation: garlandBlink 2.5s ease-in-out infinite;
  z-index: 1001;
  position: relative;
  transition: transform 0.3s ease;
}

.garland-light:hover {
  transform: scale(1.15);
}

.garland-light:nth-child(1) { 
  background: #ff4444;
  color: #ff4444;
  animation-delay: 0s;
}

.garland-light:nth-child(2) { 
  background: #ffdd00;
  color: #ffdd00;
  animation-delay: 0.25s;
}

.garland-light:nth-child(3) { 
  background: #00dd00;
  color: #00dd00;
  animation-delay: 0.5s;
}

.garland-light:nth-child(4) { 
  background: #0088ff;
  color: #0088ff;
  animation-delay: 0.75s;
}

.garland-light:nth-child(5) { 
  background: #ff4444;
  color: #ff4444;
  animation-delay: 1s;
}

.garland-light:nth-child(6) { 
  background: #ffdd00;
  color: #ffdd00;
  animation-delay: 1.25s;
}

.garland-light:nth-child(7) { 
  background: #00dd00;
  color: #00dd00;
  animation-delay: 1.5s;
}

.garland-light:nth-child(8) { 
  background: #0088ff;
  color: #0088ff;
  animation-delay: 1.75s;
}

.garland-light:nth-child(9) { 
  background: #ff4444;
  color: #ff4444;
  animation-delay: 0.1s;
}

.garland-light:nth-child(10) { 
  background: #ffdd00;
  color: #ffdd00;
  animation-delay: 0.35s;
}

.garland-light:nth-child(11) { 
  background: #00dd00;
  color: #00dd00;
  animation-delay: 0.6s;
}

.garland-light:nth-child(12) { 
  background: #0088ff;
  color: #0088ff;
  animation-delay: 0.85s;
}

.garland-light:nth-child(13) { 
  background: #ff4444;
  color: #ff4444;
  animation-delay: 1.1s;
}

.garland-light:nth-child(14) { 
  background: #ffdd00;
  color: #ffdd00;
  animation-delay: 1.35s;
}

.garland-light:nth-child(15) { 
  background: #00dd00;
  color: #00dd00;
  animation-delay: 1.6s;
}

.garland-light:nth-child(16) { 
  background: #0088ff;
  color: #0088ff;
  animation-delay: 1.85s;
}

.garland-light:nth-child(17) { 
  background: #ff4444;
  color: #ff4444;
  animation-delay: 0.05s;
}

.garland-light:nth-child(18) { 
  background: #ffdd00;
  color: #ffdd00;
  animation-delay: 0.3s;
}

.garland-light:nth-child(19) { 
  background: #00dd00;
  color: #00dd00;
  animation-delay: 0.55s;
}

.garland-light:nth-child(20) { 
  background: #0088ff;
  color: #0088ff;
  animation-delay: 0.8s;
}

/* Дед Мороз */
.santa-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 500;
  pointer-events: none;
}

@keyframes santaWave {
  0%, 100% { 
    transform: translateY(0) rotateZ(0deg);
  }
  25% { 
    transform: translateY(-10px) rotateZ(-2deg);
  }
  50% { 
    transform: translateY(-5px) rotateZ(2deg);
  }
  75% { 
    transform: translateY(-8px) rotateZ(-2deg);
  }
}

.santa {
  font-size: 100px;
  animation: santaWave 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transform-origin: 70% 80%;
}

/* Адаптивность */
@media (max-width: 768px) {
  .santa-container {
    right: 10px;
    bottom: 60px;
  }
  
  .santa {
    font-size: 60px;
  }
  
  .garland-container {
    height: 85px;
  }
  
  .garland-string {
    padding: 0 20px;
    height: 60px;
  }
  
  .garland-light {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 576px) {
  .santa-container {
    right: 5px;
    bottom: 50px;
  }
  
  .santa {
    font-size: 45px;
  }
  
  .garland-container {
    height: 75px;
  }
  
  .garland-string {
    padding: 0 10px;
    height: 55px;
  }
  
  .garland-light {
    width: 18px;
    height: 18px;
    box-shadow: 0 0 8px currentColor;
  }
  
  .snowflake {
    font-size: 0.8em !important;
  }
}

/* Колокольчики новогодние */
@keyframes bellSwing {
  0%, 100% { transform: rotateZ(-5deg); }
  25% { transform: rotateZ(-10deg); }
  50% { transform: rotateZ(0deg); }
  75% { transform: rotateZ(10deg); }
}

.christmas-bell {
  position: fixed;
  font-size: 24px;
  animation: bellSwing 2.5s ease-in-out infinite;
  z-index: 800;
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transform-origin: center top;
}

@media (max-width: 768px) {
  .christmas-bell {
    display: none;
  }
}

/* Конфетти */
@keyframes confettiFall {
  0% {
    transform: translateY(0) rotateZ(0deg) rotateX(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotateZ(720deg) rotateX(360deg);
    opacity: 0;
  }
}

.confetti {
  position: fixed;
  width: 8px;
  height: 8px;
  pointer-events: none;
  z-index: 400;
}

.confetti-piece {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  animation: confettiFall linear infinite;
}

.confetti:nth-child(1) .confetti-piece { background: #ff4444; animation-duration: 5s; animation-delay: 0s; left: 10%; }
.confetti:nth-child(2) .confetti-piece { background: #ffdd00; animation-duration: 6s; animation-delay: 0.5s; left: 20%; }
.confetti:nth-child(3) .confetti-piece { background: #00dd00; animation-duration: 5.5s; animation-delay: 1s; left: 30%; }
.confetti:nth-child(4) .confetti-piece { background: #0088ff; animation-duration: 6.5s; animation-delay: 0.2s; left: 40%; }
.confetti:nth-child(5) .confetti-piece { background: #ff00ff; animation-duration: 5.2s; animation-delay: 0.8s; left: 50%; }
.confetti:nth-child(6) .confetti-piece { background: #ff4444; animation-duration: 6.2s; animation-delay: 0.4s; left: 60%; }
.confetti:nth-child(7) .confetti-piece { background: #ffdd00; animation-duration: 5.8s; animation-delay: 1.2s; left: 70%; }
.confetti:nth-child(8) .confetti-piece { background: #00dd00; animation-duration: 6.1s; animation-delay: 0.6s; left: 80%; }
.confetti:nth-child(9) .confetti-piece { background: #0088ff; animation-duration: 5.5s; animation-delay: 0.9s; left: 90%; }
.confetti:nth-child(10) .confetti-piece { background: #ff00ff; animation-duration: 6.3s; animation-delay: 0.3s; left: 25%; }

/* Эффект блеска на странице */
@keyframes shimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}


.christmas-star {
  position: fixed;
  font-size: 20px;
  z-index: 999;
  color: #ffd700;
  text-shadow: 0 0 10px #ffd700;
  pointer-events: none;
}

.christmas-star:nth-child(odd) {
  animation: starSwing 5s cubic-bezier(0.42, 0, 0.58, 1) infinite, shimmer 3s ease-in-out infinite;
}

.christmas-star:nth-child(even) {
  animation: starSwingLeft 5s cubic-bezier(0.42, 0, 0.58, 1) infinite, shimmer 3s ease-in-out infinite;
}

/* Нижний ряд декора */
.bottom-decor {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  z-index: 600;
  pointer-events: none;
  padding-bottom: 8px;
}
.bottom-emoji {
  font-size: 36px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  user-select: none;
}
@media (max-width: 768px) {
  .bottom-emoji { font-size: 26px; }
}
@media (max-width: 576px) {
  .bottom-emoji { font-size: 18px; }
}

/* Крупные парящие снежинки */
@keyframes floatingDrift {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 1; }
  25% { transform: translateY(-20px) translateX(10px) scale(1.1); }
  50% { transform: translateY(-40px) translateX(0) scale(1); }
  75% { transform: translateY(-20px) translateX(-10px) scale(1.1); }
}

/* Скрыть на мобильных */
@media (max-width: 768px) {
  .christmas-star {
    display: none;
  }
}
