/* Klapphandys und kleine Touch-Bildschirme (Pixel Fold): innen fast quadratisch, außen schmal und lang. */

/* innen (z. B. 790 × 830): Brett und Seitenleiste nebeneinander, Leiste schmaler, Brett so groß wie möglich */
@media (min-width: 700px) and (max-width: 900px) and (min-aspect-ratio: 4/5) {
  header.top .bar, .inner, main { padding-left: 16px; padding-right: 16px; }
  .analyse-body, .play-body {
    --board: max(280px, min(calc(100 * var(--vh) - 250px), calc(100 * var(--vw) - 32px - 260px - 44px)));
    gap: 0 12px;
  }
  .analyse-body { grid-template-columns: 14px var(--board) minmax(240px, 1fr); }
  .play-body { grid-template-columns: var(--board) minmax(240px, 1fr); }
  .editor { grid-template-columns: min(calc((100 * var(--vh) - 226px) / 1.3), calc(100% - 270px)) minmax(240px, 1fr); gap: 16px; }
  .band.compact .lead { display: none; }
}

/* außen (schmal): Zusatzzeile im Titelband (FEN, Beschreibung) weg, damit das Brett höher beginnt */
@media (max-width: 699px) {
  .band.compact .lead { display: none; }
  .band.compact .inner { padding-top: 10px; padding-bottom: 10px; }
  main.tight { padding-top: 6px; }
  .pbar { height: 30px; }
}
