/* ============ QISHKI EFFEKT: yog'ayotgan qor, qor uyumi, kartalardagi qor ============ */
.snow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 980; /* kontent ustida, menyu va oynalar ostida */
}

/* Footer ustidagi tayyor qor uyumi */
.vf.has-snow-pile {
  position: relative;
}

.snow-pile {
  position: absolute;
  left: 0;
  right: 0;
  top: -52px;
  height: 54px;
  pointer-events: none;
}

.snow-pile img {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Qutilar va tugmalar ustidagi qor (o'lcham va joy JS'da hisoblanadi) */
.snow-cap-host {
  position: relative;
}

.snow-cap {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.snow-cap img {
  display: block;
  max-width: none;
  transform-origin: 50% 75%;
  transform: scaleY(0.62); /* oldindan yig'ilgan qor */
  transition: transform 3.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.snow-cap.is-growing img {
  will-change: transform;
}

.snow-cap.is-grown img {
  transform: scaleY(1);
}

.tier-ribbon,
.banner-badge {
  z-index: 3;
}

/* Qora kartadagi burchak ayozi */
.snow-frost {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 0 100%, rgba(255, 255, 255, 0.16), transparent 70px),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.12), transparent 90px),
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.08), transparent 60px);
}

/* Yoqish / o'chirish tugmasi */
.snow-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 985;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  color: #5b84b8;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.snow-toggle:hover {
  transform: scale(1.06);
}

body.snow-off .snow-toggle {
  color: #9ca3af;
  opacity: 0.7;
}

body.snow-off .snow-canvas,
body.snow-off .snow-pile,
body.snow-off .snow-cap,
body.snow-off .snow-frost {
  display: none;
}

@media (max-width: 480px) {
  .snow-pile {
    top: -38px;
    height: 40px;
  }

  .snow-toggle {
    width: 36px;
    height: 36px;
    right: 12px;
    bottom: 12px;
    font-size: 14px;
  }
}

/* Buyurtma sahifasida pastki tugmalar bilan to'qnashmasin */
@media (max-width: 1023px) {
  body.has-preview-btn .snow-toggle {
    bottom: 76px;
  }
}
