/* Quantidade de Chuva — carregado após stage.css (URL dedicada evita cache antigo do stage) */

.noc-lencol--chuva .noc-lencol__body {
  bottom: clamp(0.22rem, 0.55vw, 0.52rem);
  overflow: visible;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 10px;
}

.noc-lencol--chuva.noc-v3-quad-block {
  overflow: visible;
}

.noc-lencol--chuva .noc-lencol__viz {
  align-items: stretch;
  justify-content: flex-start;
}

.noc-chuva__viz-wrap {
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: auto;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
}

.noc-lencol--chuva .noc-chuva__frame {
  height: 100%;
  max-height: 100%;
  max-width: min(100%, 144.155px);
}

.noc-chuva__frame {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  justify-content: flex-start;
  max-width: 100%;
  height: 100%;
  aspect-ratio: 144.155 / 215;
  line-height: normal;
  vertical-align: bottom;
  overflow: hidden;
}

.noc-chuva__content {
  position: absolute;
  inset: 1.65px;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  box-sizing: border-box;
  border-radius: 15.0564px;
  overflow: hidden;
}

.noc-chuva__rain {
  position: absolute;
  inset: 8% 8% 36% 8%;
  pointer-events: none;
  overflow: hidden;
}

.noc-chuva__rain-drop {
  position: absolute;
  width: 2px;
  height: clamp(7px, 1.1vw, 10px);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(42, 166, 188, 0) 0%, rgba(42, 166, 188, 0.95) 100%);
  filter: drop-shadow(0 0 2px rgba(42, 166, 188, 0.45));
  transform: rotate(-15deg);
  opacity: 0.62;
  animation: noc-chuva-rain-fall 5.6s ease-in-out infinite;
}

.noc-chuva__rain-drop--lg {
  height: clamp(9px, 1.4vw, 13px);
  opacity: 0.72;
}

.noc-chuva__rain-drop:nth-child(1) { animation-delay: -0.8s; }
.noc-chuva__rain-drop:nth-child(2) { animation-delay: -2.2s; }
.noc-chuva__rain-drop:nth-child(3) { animation-delay: -1.4s; }
.noc-chuva__rain-drop:nth-child(4) { animation-delay: -3.1s; }
.noc-chuva__rain-drop:nth-child(5) { animation-delay: -0.4s; }
.noc-chuva__rain-drop:nth-child(6) { animation-delay: -2.7s; }
.noc-chuva__rain-drop:nth-child(7) { animation-delay: -1.7s; }
.noc-chuva__rain-drop:nth-child(8) { animation-delay: -3.6s; }

.noc-chuva__water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(54px, 34%, 74px);
  overflow: hidden;
  border-bottom-left-radius: 15.0564px;
  border-bottom-right-radius: 15.0564px;
  z-index: 0;
}

/* Blob Figma — fill com onda no topo, escala para preencher o container */
.noc-chuva__blob {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  z-index: 1;
}

/* Animação de balanço suave — dá sensação de movimento da água */
.noc-chuva__blob-wave {
  will-change: transform;
  animation: noc-chuva-blob-drift 8s ease-in-out infinite;
}

@keyframes noc-chuva-blob-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  40% {
    transform: translate3d(-4px, 0.4px, 0);
  }
  70% {
    transform: translate3d(-2px, -0.3px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .noc-chuva__blob-wave {
    animation: none;
  }
}

.noc-chuva__bottom-label {
  position: absolute;
  left: clamp(8px, 6.3%, 11px);
  right: clamp(8px, 6.3%, 11px);
  bottom: clamp(8px, 5.5%, 12px);
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  line-height: 1;
}

.noc-chuva__bottom-status {
  font-family: Bahnschrift, var(--font-figure), sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  color: #70a9b4;
  line-height: normal;
}

.noc-chuva__bottom-mm {
  display: inline-flex;
  align-items: baseline;
  color: #70a9b4;
  font-family: Bahnschrift, var(--font-figure), sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.noc-chuva__bottom-mm-num {
  font-size: 13.08px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.noc-chuva__bottom-mm-unit {
  font-size: 9.343px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

@keyframes noc-chuva-rain-fall {
  0% {
    transform: translate3d(0, -6px, 0) rotate(-15deg);
    opacity: 0.2;
  }
  40% {
    opacity: 0.72;
  }
  100% {
    transform: translate3d(0, 22px, 0) rotate(-15deg);
    opacity: 0.24;
  }
}

@media (prefers-reduced-motion: reduce) {
  .noc-chuva__rain-drop {
    animation: none;
    opacity: 0.55;
    transform: rotate(-15deg);
  }

  .noc-chuva__chart-motion--refs,
  .noc-chuva__chart-motion--wave {
    animation: none;
  }
}

.noc-chuva__fig {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.noc-lencol--chuva .noc-chuva__fig {
  max-height: 100%;
}

@media (max-width: 820px) {
  .noc-lencol--chuva .noc-chuva__viz-wrap {
    min-height: clamp(104px, 20vh, 154px);
  }
}
