.weather-rain-art {
  --drop-highlight: #c0fffb;
  --drop-middle: #46dce9;
  --drop-shadow: #159ac6;
  --drop-edge: #13577e;
  position: relative;
}

#dashboard[data-mode="night"] .weather-rain-art {
  --drop-highlight: #d2fffc;
  --drop-middle: #67eaf6;
  --drop-shadow: #21b2d9;
  --drop-edge: #aef8ff;
}

.weather-rain-art .weather-rain-base {
  display: block;
  width: 100%;
  height: 100%;
  margin-inline: auto;
  object-fit: contain;
}

/* Keep the licensed cloud and lightning artwork while masking its old drops. */
.weather-rain-art[data-weather-kind="rain"] .weather-rain-base {
  clip-path: inset(0 0 37.5% 0);
}

.weather-rain-art[data-weather-kind="storm"] .weather-rain-base {
  clip-path: polygon(
    0 0, 100% 0, 100% 63.7%, 61% 63.7%, 61% 70%, 48% 86%,
    43% 86%, 43% 68%, 35% 68%, 35% 63.7%, 0 63.7%
  );
}

/* Give an existing snow, storm, fog, or clear-sky mark its own space above the drops. */
.weather-rain-art[data-rain-count]:not([data-weather-kind="rain"]) .weather-rain-base {
  width: 82%;
  height: 82%;
}

.weather-drops {
  position: absolute;
  inset: auto 2% 4% 2%;
  display: flex;
  height: 26%;
  align-items: center;
  justify-content: center;
  gap: 11%;
}

.weather-drop {
  display: block;
  box-sizing: border-box;
  width: 15%;
  aspect-ratio: 1;
  transform: rotate(29deg);
  border: 1px solid var(--drop-edge);
  border-radius: 12% 55% 55%;
  background: linear-gradient(130deg, var(--drop-highlight), var(--drop-middle) 52%, var(--drop-shadow));
}

.weather-rain-art[data-rain-count="2"] .weather-drop { width: 17%; }
.weather-rain-art[data-rain-count="3"] .weather-drop { width: 19%; }

.weather-rain-missing {
  position: absolute;
  inset: auto 0 4%;
  color: var(--secondary);
  font-weight: 600;
  line-height: 1;
  text-align: center;
}
