/* ION.ADS Demo · Stadtbus: Punktmatrix-Schrift der Zielanzeige + Bedienelemente der Fahrt. */
@font-face {
  font-family: "BusMatrix";
  src: url("./assets/fonts/Alvera-BoldCircle.woff2") format("woff2");
  font-display: block;
}

/* Linie + Ziel: zwei Felder nebeneinander, das Linienfeld schmal */
.bus-sign { display: inline-flex; gap: 6px; align-items: center; }
.bus-sign .demo-input { width: min(200px, 44vw); }
.bus-sign .demo-input.is-line { width: 5.2em; text-align: center; }

/* Tempo: Regler mit Anzeige, nur während der Fahrt */
.bus-speed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 10, 18, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bus-speed input { width: min(150px, 34vw); accent-color: var(--accent); }
.bus-speed output { min-width: 4.6em; text-align: end; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* gewählte Ansicht hervorheben */
.demo-chip[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* Nachtfahrt: der helle Studio-Verlauf würde durch den Himmel scheinen */
body.is-drive { background: #04060b; }

/* Zielfläche für das nächste eigene Motiv */
.bus-target { width: auto; max-width: min(250px, 62vw); cursor: pointer; }
.bus-target option { color: #111; }

/* Schlanke Leiste: eine Reihe Symbol-Knöpfe, darüber das Feld mit den Einstellungen */
.bus-bar { flex-direction: column; flex-wrap: nowrap; gap: 8px; }
.bus-tools { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.bus-ico { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 14px; text-decoration: none; }
.bus-ico svg { flex-shrink: 0; }
.bus-ico-t { display: none; }
.bus-ico.is-wide .bus-ico-t { display: inline; }
@media (min-width: 900px) { .bus-ico-t { display: inline; } }
@media (max-width: 899px) { .bus-ico:not(.is-wide) { width: 44px; padding: 0; } }
.bus-panel {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center;
  max-width: min(560px, 100%); padding: 10px 12px; border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(8, 10, 18, 0.74);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.bus-panel .demo-note { flex-basis: 100%; text-align: center; padding: 0; }
/* Griff zum Einklappen: volle Breite, gut zu treffen */
.bus-fold {
  flex-basis: 100%; display: flex; justify-content: center; align-items: center; height: 28px; margin: -6px 0 -4px;
  border: 0; background: none; color: inherit; opacity: 0.7; cursor: pointer; border-radius: 12px;
}
.bus-fold:hover, .bus-fold:focus-visible { opacity: 1; }
.bus-fold:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.bus-ico[aria-expanded="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* Vollbild: nur die Szene und der Knopf zum Beenden (unten rechts, zurückgenommen) */
body.is-clean .demo-top, body.is-clean .demo-hint, body.is-clean .demo-status, body.is-clean .bus-panel,
body.is-clean .bus-tools > :not(.bus-full) { display: none !important; }
body.is-clean .bus-tools { justify-content: flex-end; width: 100%; }
body.is-clean .bus-full { opacity: 0.6; }
body.is-clean .bus-full:hover, body.is-clean .bus-full:focus-visible { opacity: 1; }

/* Lenken per Finger: zwei Halteknöpfe an den Rändern, nur am Steuer und nur ohne Maus */
.bus-steer {
  display: none; position: fixed; top: 44%; z-index: 6; width: 56px; height: 72px; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 18px; background: rgba(8, 10, 18, 0.5); color: #fff;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.bus-steer.is-a { left: 10px; }
.bus-steer.is-d { right: 10px; }
.bus-steer:active { background: var(--accent); }
@media (pointer: coarse) { body.is-wheel .bus-steer { display: flex; } }
