#stage #chapter,
#stage #confidenceNotice {
  z-index: 5;
}
#stage #chapterText {
  padding: 4px 7px;
  background: #071726ec;
}
@media (max-width: 960px) and (max-height: 520px) {
  #stage #chapter { top: 77px; left: 16px; }
  #stage #chapterNo { width: 26px; height: 26px; flex-basis: 26px; font-size: 11px; }
  #stage #confidenceNotice { top: 111px; left: 16px; padding: 5px 8px; font-size: 12px; }
  #stage footer { padding: 5px 14px 18px; }
  #stage #legends {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 4px;
    margin-bottom: 5px;
  }
  #stage #legends .legend { min-width: 0; padding: 4px 6px; box-shadow: none; }
  #stage #legends .legend-title { font-size: 11px; line-height: 1.12; margin: 0 0 2px; }
  #stage #legends .legend-note { margin: 2px 0 0; font-size: 9px; line-height: 1.12; }
  #stage #legends .swatches { display: flex; min-width: 0; }
  #stage #legends .swatch { flex: 1 1 0; min-width: 0; width: auto; font-size: 9px; }
  #stage .forecast-line { margin: 0; font-size: 10px; }
  #stage .credits { margin-top: 4px; font-size: 8px; }
}
