/* Camada sazonal: partículas delicadas acima da chuva e abaixo dos controles. */
#seasonal-canvas {
  position: fixed;
  z-index: 33;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: .78;
}

.seasonal-garland {
  position: fixed;
  z-index: 36;
  inset: var(--header, 76px) 0 auto;
  height: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding-inline: 2.5vw;
  pointer-events: none;
}
.seasonal-garland::before {
  position: absolute;
  top: 3px;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: rgba(31, 67, 74, .4);
}
.seasonal-garland span {
  position: relative;
  z-index: 1;
  width: 6px;
  height: 8px;
  border-radius: 45% 45% 55% 55%;
  background: var(--light-color, #f0c65a);
  box-shadow: 0 0 9px rgba(240, 198, 90, .36);
  animation: seasonal-twinkle 2.8s ease-in-out infinite alternate;
}
.seasonal-garland span:nth-child(3n) { animation-delay: -.9s; }
.seasonal-garland span:nth-child(3n + 1) { animation-delay: -1.8s; }
.seasonal-garland span:nth-child(4n) { transform: translateY(3px); }
.seasonal-garland span:nth-child(5n + 1) { background: #f2c55b; }
.seasonal-garland span:nth-child(5n + 2) { background: #e77c78; }
.seasonal-garland span:nth-child(5n + 3) { background: #6dcda5; }
.seasonal-garland span:nth-child(5n + 4) { background: #80c9e8; }
.seasonal-garland span:nth-child(5n) { background: #eaa9bb; }

@keyframes seasonal-twinkle {
  from { opacity: .42; filter: brightness(.86); }
  to { opacity: 1; filter: brightness(1.12); }
}

/* O controle fica compacto; abre somente por ação deliberada de quem testa o Preview. */
.seasonal-preview {
  position: fixed;
  z-index: 45;
  top: calc(var(--header, 76px) + 12px);
  left: 16px;
  width: min(340px, calc(100vw - 32px));
  display: block;
  padding: 0;
  border: 0;
  color: #edf6ff;
  background: transparent;
  box-shadow: none;
  font: 500 12px/1.4 var(--font-ui, Inter, system-ui, sans-serif);
}
.seasonal-preview-toggle {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(121, 190, 223, .35);
  border-radius: 999px;
  color: #edf6ff;
  background: rgba(5, 18, 32, .94);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.seasonal-preview-toggle::after { content: "+"; color: #8fdcf2; font-size: 16px; line-height: 1; }
.seasonal-preview-toggle:hover { border-color: rgba(121, 190, 223, .62); }
.seasonal-preview-toggle:focus-visible { outline: 2px solid #75dfff; outline-offset: 3px; }
.seasonal-preview.is-open .seasonal-preview-toggle {
  width: 100%;
  justify-content: space-between;
  border-radius: 10px 10px 0 0;
  border-bottom-color: transparent;
  box-shadow: none;
}
.seasonal-preview.is-open .seasonal-preview-toggle::after { content: "−"; }
.seasonal-preview-content {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 12px 12px;
  border: 1px solid rgba(121, 190, 223, .35);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: rgba(5, 18, 32, .96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .24);
}
.seasonal-preview.is-open .seasonal-preview-content { display: grid; }
.seasonal-preview-content strong { grid-column: 1 / -1; font-size: 12px; font-weight: 700; }
.seasonal-preview-content label { color: #a9bbcc; font-size: 10px; }
.seasonal-preview-content small { grid-column: 1 / -1; color: #a9bbcc; font-size: 10px; }
.seasonal-preview-content select {
  min-height: 34px;
  max-width: 210px;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(146, 180, 207, .38);
  border-radius: 7px;
  color: #f3f8ff;
  background: #10253b;
  font: inherit;
}
.seasonal-preview-content select:focus-visible { outline: 2px solid #75dfff; outline-offset: 3px; }
.seasonal-preview-status { grid-column: 1 / -1; min-height: 14px; color: #8fdcf2; font-size: 10px; }

@media (max-width: 480px) {
  .seasonal-garland { padding-inline: 12px; }
  .seasonal-garland span { width: 5px; height: 6px; }
  .seasonal-preview { top: calc(var(--header, 76px) + 2px); bottom: auto; left: 10px; width: min(350px, calc(100vw - 20px)); }
  .seasonal-preview-content { grid-template-columns: minmax(0, 1fr); }
  .seasonal-preview-content select { width: 100%; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .seasonal-garland span { animation: none; opacity: .82; }
  .seasonal-preview, .seasonal-preview-toggle { transition: none; }
}
