.climate-effect {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 12px;
  pointer-events: none;
}

.climate-effect::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 72% 43%, #ffc56b46, transparent 68%);
  opacity: 0;
  transition: opacity 280ms var(--ease-out);
}

.climate-effect__badge {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  display: grid;
  place-items: center;
  inline-size: clamp(30px, 3vw, 42px);
  aspect-ratio: 1;
  border: 1px solid;
  border-radius: 50%;
}
.climate-effect__badge .icon { inline-size: 55%; block-size: 55%; }
.climate-effect__sun {
  background: #342516;
  color: #ffe0a1;
  border-color: #f7bd62;
  box-shadow: 0 0 20px #f7bd6240;
  opacity: 0;
  transform: translateY(5px) scale(0.92);
  transition: opacity 240ms var(--ease-out), transform 280ms var(--ease-out);
}
[data-weather="heat"]::before { opacity: 1; }
[data-weather="heat"] .climate-effect__sun { opacity: 1; transform: none; }

.climate-effect__snow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 58% 20%, #addaff45, transparent 74%);
  opacity: 0;
  transition: opacity 260ms var(--ease-out);
}
.climate-effect__flake { background: #15293d; color: #e5f4ff; border-color: #86c0e9; }
.climate-effect__snow::before, .climate-effect__snow::after {
  content: "";
  position: absolute;
  inset: 4% 5% 12%;
}
.climate-effect__snow::before {
  background:
    radial-gradient(circle 3px at 13% 12%, #f5fbff 42%, transparent),
    radial-gradient(circle 1.75px at 35% 25%, #daefff 44%, transparent),
    radial-gradient(circle 2.5px at 54% 9%, #f5fbff 40%, transparent),
    radial-gradient(circle 3px at 71% 28%, #f5fbff 42%, transparent),
    radial-gradient(circle 2.25px at 89% 41%, #daefff 40%, transparent),
    radial-gradient(circle 2.5px at 29% 65%, #f5fbff 42%, transparent),
    radial-gradient(circle 3px at 61% 79%, #daefff 43%, transparent),
    radial-gradient(circle 2.25px at 83% 86%, #daefff 42%, transparent);
}
.climate-effect__snow::after {
  background:
    radial-gradient(circle 1.75px at 8% 47%, #e6f4ff 38%, transparent),
    radial-gradient(circle 2px at 23% 36%, #e6f4ff 38%, transparent),
    radial-gradient(circle 1.5px at 44% 56%, #f5fbff 40%, transparent),
    radial-gradient(circle 2px at 58% 36%, #e6f4ff 38%, transparent),
    radial-gradient(circle 1.5px at 76% 59%, #f5fbff 40%, transparent),
    radial-gradient(circle 1.75px at 38% 88%, #e6f4ff 38%, transparent);
}
[data-weather="snow"] .climate-effect__snow { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  [data-weather="snow"] .climate-effect__snow::before,
  [data-weather="snow"] .climate-effect__snow::after {
    /* O padrão cobre duas alturas da cena e avança uma por ciclo. */
    inset-block: -100% 0;
    background-size: 100% 50%;
    background-repeat: repeat-y;
    animation: climate-snowfall 5s linear infinite;
  }
  [data-weather="snow"] .climate-effect__snow::after {
    animation-duration: 7s;
    animation-delay: -3.5s;
  }
  @keyframes climate-snowfall { to { transform: translateY(50%); } }
}
