/* ---------- Sofort speichern: Statuszeile ----------
   Kleine Zeile neben einem Feld (autoField.js): „…“ / „Gespeichert“ / „Nicht gespeichert“
   mit Knopf „Erneut versuchen“. Leer = unsichtbar, ohne Platz zu belegen. */
.auto-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--muted);
}

.auto-status:empty {
  display: none;
}

.auto-status--failed {
  color: var(--ui-red-ink, #a3162b);
}

.auto-status__retry,
.auto-status__action {
  flex-shrink: 0;
}

/* Knopf in der Rückgängig-Meldung (Toast mit Aktion) */
.toast-action {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  min-height: 32px;
  padding: 0 4px;
  cursor: pointer;
}

/* ---------- Seite „Neue Session“ (Etappe 3, K1): Name oben, Editor, Aktionen, leise Vorlagen ---------- */

.new-session__name {
  display: grid;
  gap: 0.25rem;
}

/* Name inline: wirkt wie eine Überschrift, ist aber ein Feld (keine Pflicht, leer → Vorbelegung). */
.new-session__name-input {
  width: 100%;
  max-width: 40rem;
  padding: 0.35rem 0.5rem;
  margin-left: -0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pulse-sm, 0.75rem);
  background: transparent;
  color: var(--ink, #1a1d23);
  font: inherit;
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1.25;
}

.new-session__name-input:focus-visible {
  border-color: var(--primary-color, #007cc1);
  outline: 2px solid color-mix(in srgb, var(--primary-color, #007cc1) 35%, transparent);
  outline-offset: 1px;
  background: var(--bg-elev, #fff);
}

.new-session__actions {
  flex-wrap: wrap;
}

#session-create-wizard .new-session__actions > button {
  width: auto;
  flex: 0 0 auto;
}

/* Beim Öffnen springt die Seite an den Anfang des Assistenten; die feste Kopfleiste verdeckt ihn nicht. */
#session-create-wizard {
  scroll-margin-top: 5rem;
}

.new-session__extras {
  display: grid;
  gap: 0.35rem;
  max-width: 40rem;
}

.new-session__extras-title {
  margin: 0;
  font-size: 1rem;
}

.new-session__extras-hint {
  margin: 0;
}

.new-session__extras-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1.25rem;
}

.new-session__extras-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Vorlagen leise unter dem Editor: kleinere Überschrift, keine eigene Karte. */
.new-session__templates {
  display: grid;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line, #e2e5ea);
}

.new-session__templates-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted, #5b6270);
}

/* Fertig-Seite: Links statt Eingabefelder (keine Formularfelder). */
.session-wizard__link {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  align-self: center;
}

.session-wizard__settings-hint,
.session-wizard__termin-hint {
  margin: 0;
}

.session-wizard__termin-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .session-wizard__link-row {
    flex-wrap: wrap;
  }
}

.session-wizard__stage-blocked {
  margin: 0;
  padding: 0.6rem 0.8rem;
  border-left: 4px solid var(--warn, #b45309);
  border-radius: 0 0.5rem 0.5rem 0;
  background: var(--warn-soft, rgba(180, 83, 9, 0.08));
}

/* „?“-Hinweisknopf (ui/helpTip.js): kleiner Kreis, Trefferfläche 44 × 44 px (Rand per negativem Außenabstand ausgeglichen) */
.help-tip-wrap {
  display: inline-block;
  vertical-align: middle;
}
.help-tip-text {
  display: none;
}
.help-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  margin: -10px -8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent, #1f6fb2);
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.help-tip > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 0.85rem;
}
.help-tip[aria-expanded="true"] > span {
  background: var(--accent, #1f6fb2);
  border-color: var(--accent, #1f6fb2);
  color: var(--btn-primary-ink, #fff);
}
.help-tip:focus-visible {
  outline: 2px solid var(--focus, #0052cc);
  outline-offset: -2px;
  border-radius: 10px;
}
.help-tip-bubble {
  position: fixed;
  /* über der festen Seitenleiste (.slide-panel-host--open, z-index 400), unter den Toasts (10050) */
  z-index: 450;
  box-sizing: border-box;
  max-width: min(18rem, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  padding: 0.55rem 0.75rem;
  background: var(--bg-elev, #fff);
  color: var(--ink, #1a1d23);
  border: 1px solid var(--line, #6b7280);
  border-radius: 10px;
  box-shadow: var(--shadow, 0 8px 24px rgba(0, 0, 0, 0.15));
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-align: left;
}
.help-tip-bubble[hidden] {
  display: none !important;
}

/* Handy (Etappe 5, K9): Bildschirmkarten der Fertig-Seite 64 px in einer Spalte, Symbol, Name, eine Zeile Beschreibung */
@media (max-width: 480px) {
  .session-wizard__cards {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .session-wizard__card {
    box-sizing: border-box;
    height: 64px;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0.75rem;
    overflow: hidden;
  }

  .session-wizard__card-icon {
    width: 2rem;
    height: 2rem;
  }

  .session-wizard__card-icon svg {
    width: 100%;
    height: 100%;
  }

  .session-wizard__card-title {
    margin-bottom: 0;
    font-size: 0.92rem;
    line-height: 1.15;
  }

  .session-wizard__card-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.3;
  }

}

/* Etappe 6 (B4): Seite „Rückmeldungen“ – Abschnitt „Eingang“ mit Knopf „Rückmeldung senden“ */
.bugs-page-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.bugs-page-bar .admin-form-section__title {
  margin: 0;
}

/* ---------- Pubquiz: Kategorien und Genres ausschließen (Spec docs/superpowers/specs/2026-10-15-pubquiz-kategorien-ausschluss-design.md)
 * Kasten „Im Spiel“ auf den Spielkarten und Fenster „Was soll vorkommen?“ (frontend/js/pubquiz/contentPicker.js). */
.pqc-summary {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: var(--bg-soft, #e8ecf0);
  color: var(--ink);
}
.team-card-pubquiz {
  margin-top: 0.75rem;
}
.pqc-summary[hidden] {
  display: none;
}
.pqc-summary__title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.pqc-summary__lines {
  display: grid;
  gap: 0.1rem;
}
.pqc-summary__line {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.pqc-summary__btn {
  justify-self: start;
  margin-top: 0.35rem;
  min-height: 2.5rem;
}
dialog.pqc-dialog {
  width: min(44rem, calc(100vw - 32px));
  max-width: min(44rem, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}
.pqc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.pqc-title {
  margin: 0;
  font-size: 1.3rem;
}
/* Überschrift bekommt beim Öffnen nur den Fokus für Bildschirmleser, keinen sichtbaren Rahmen. */
.pqc-dialog .pqc-title:focus,
.pqc-dialog .pqc-title:focus-visible {
  outline: none;
  box-shadow: none;
}
.pqc-close {
  flex: none;
  min-width: 2.75rem;
  min-height: 2.75rem;
  font-size: 1.4rem;
  line-height: 1;
}
.pqc-dialog .pqc-lead {
  margin: 0.25rem 0 0;
}
.pqc-section {
  margin-top: 1.1rem;
  min-width: 0;
}
.pqc-section__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.pqc-sum {
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pqc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.5rem;
}
.pqc-tile {
  display: grid;
  align-content: start;
  gap: 0.15rem;
  min-width: 0;
  min-height: 3.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 2px solid var(--accent, #007cc1);
  background: color-mix(in srgb, var(--accent, #007cc1) 12%, var(--bg-elev, #fff));
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: opacity 0.12s ease, background-color 0.12s ease;
}
.pqc-tile__name {
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.pqc-tile__n {
  font-size: 0.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pqc-tile__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.pqc-tile__badge {
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--status-info-bg, #93c5fd);
  color: var(--status-info, #1e3a8a);
}
.pqc-tile.is-off {
  border-style: dashed;
  border-color: var(--line);
  background: transparent;
  opacity: 0.6;
}
.pqc-tile.is-off .pqc-tile__name,
.pqc-tile.is-off .pqc-tile__n {
  text-decoration: line-through;
}
.pqc-tile:focus-visible {
  outline: 3px solid var(--focus, #0052cc);
  outline-offset: 2px;
}
.pqc-dialog .pqc-note {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}
.pqc-dialog .pqc-note--min {
  color: var(--ink);
  font-weight: 600;
}
.pqc-dialog .pqc-note--warn {
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  background: var(--status-warn-bg, #facc15);
  color: var(--status-warn, #1a1d23);
}
.pqc-error {
  margin: 0.75rem 0 0;
}
.pqc-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
@media (max-width: 640px) {
  dialog.pqc-dialog {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
  }
  .pqc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .pqc-tile {
    transition: none;
  }
}

/* Umziehen (Handy): Panel in der Profilkarte, je Kleidungsteil eine Zeile „◀ Name ▶“; alle Knöpfe mindestens 44 × 44 px (Spec 8). */
.qe-outfit {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border, rgba(127, 127, 127, 0.35));
  border-radius: 14px;
  background: var(--surface, transparent);
}
.qe-outfit__preview {
  display: flex;
  justify-content: center;
  min-height: 140px;
}
.qe-outfit__preview .pq-figure--phone {
  --pq-k: 7.5px;
  max-height: none;
  margin: 0 auto;
}
.qe-outfit__rows {
  display: grid;
  gap: 4px;
}
.qe-outfit__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.3fr) 44px;
  align-items: center;
  gap: 6px;
}
.qe-outfit__part {
  font-size: 0.9rem;
  color: var(--muted, inherit);
}
.qe-outfit__step {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  justify-content: center;
}
.qe-outfit__mid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  text-align: center;
  font-weight: 600;
}
.qe-outfit__swatch {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid currentColor;
}
.qe-outfit__status {
  min-height: 1.2em;
  margin: 0;
}
.qe-outfit__actions {
  justify-content: space-between;
}
.qe-outfit__actions .btn {
  min-width: 44px;
  min-height: 44px;
}
.qe-outfit-open {
  min-height: 44px;
}

/* Figurstil (m / w / egal): Frage vor der ersten Figur und Umschaltgruppe auf der Profilkarte (frontend/js/quizElimination.js). */
.qe-style {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}
.qe-style h2 {
  margin: 0;
}
.qe-style .hint {
  margin: 0;
}
.qe-style__opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qe-style__opt {
  min-height: 56px;
  width: 100%;
  font-size: 1.1rem;
}
.qe-style__opt[aria-pressed="true"] {
  border-color: var(--accent, currentColor);
}
.qe-style-switch {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.qe-style-switch[hidden] {
  display: none;
}
.qe-style-switch__opt {
  flex: 1 1 auto;
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
  font-size: 0.95rem;
}
.qe-style-switch__opt[aria-pressed="true"] {
  background: var(--accent, currentColor);
  color: var(--btn-primary-ink, #fff);
  border-color: var(--accent, currentColor);
}
.qe-style__opt:focus-visible,
.qe-style-switch__opt:focus-visible {
  outline: 3px solid var(--focus, var(--accent, currentColor));
  outline-offset: 2px;
}

/* Publikumsbühne im Warteraum der Pubquiz-Leinwand (frontend/js/quizStage/audience.js): über die ganze Breite unten, Figuren absolut
 * gesetzt (left/bottom aus audienceLayout, --pq-k nach Anzahl). Detailstufe `body` (über 40 Figuren): ohne Schild und ohne Atmen,
 * Bewegung nur als Ganzes (avatar/emotePlayer.js). Teamname als Text unter den Figuren des Teams, Farbe nur als Unterstrich. */
.pq-audience {
  position: relative;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  min-height: 0;
}
.pq-audience__crowd {
  position: absolute;
  inset: 0;
}
.pq-audience .pq-figure {
  position: absolute;
}
.pq-audience .pq-figure__pedestal {
  display: none;
}
.pq-audience[data-detail="body"] .pq-figure__sign {
  display: none;
}
.pq-audience[data-detail="body"] .pq-figure__body [data-joint="torso"],
.pq-audience[data-detail="body"] .pq-figure__armlayer [data-armlayer] {
  animation: none;
}
.pq-audience__team {
  position: absolute;
  bottom: 0;
  z-index: 5;
  transform: translateX(-50%);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 4px solid var(--pq-team, currentColor);
}
/* Namensliste nur für Vorlese-Hilfen (Figuren sind Dekoration), visuell versteckt wie .sr-only. */
.pq-audience__names {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  list-style: none;
}
.pq-audience__more {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  margin: 0;
  font-size: clamp(18px, 2vw, 40px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Mobiles Pubquiz: Seite „Spielleiter werden“ (#/admin/spielleiter/<Code>), Handy zuerst. */
.mph-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  max-width: 28rem;
  margin: 0 auto;
  padding: 1rem 16px 2rem;
  text-align: center;
}
.mph-page__back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.mph-page__title {
  margin: 0;
}
.mph-page__lead,
.mph-page__note,
.mph-page__status {
  margin: 0;
  max-width: 100%;
}
.mph-page__qr {
  width: min(240px, 100%);
  height: auto;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 12px;
}
.mph-page__become {
  min-height: 44px;
  width: 100%;
}

.mph-page__renew {
  min-height: 44px;
  width: 100%;
}
.mph-page__renew-note {
  margin: 0;
}

/* Mobiles Pubquiz: Hinweis „Ein anderes Gerät ist gerade Spielleiter“ mit „Hier übernehmen“. */
.mpq-takeover {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.mpq-takeover__note {
  margin: 0;
}
.mpq-takeover__btn {
  min-height: 44px;
}

/* Pubquiz-Abend E5: Markierungen nach der Auflösung (Moderation). Der gesetzte Zustand zeigt Haken, Rand und Schrift, nicht nur Farbe. */
.pq-flags { margin: 12px 0 0; }
.pq-flags[hidden] { display: none; }
.pq-flags__row { display: flex; flex-wrap: wrap; gap: 8px; }
.pq-flag.is-on { border-width: 2px; border-style: solid; border-color: currentColor; font-weight: 700; }
.pq-flag:disabled { opacity: .6; cursor: not-allowed; }
.pq-flags__note { margin: 6px 0 0; }


/* Öffentlicher Endstand (#/endstand/<Token>, E6 Spec E1): schlanke Seite für das Handy, kein Seitwärtsscrollen ab 320 px. */
.view-endstand {
  display: block;
  box-sizing: border-box;
  min-height: 100vh;
  padding: 16px;
  overflow-x: hidden;
}
.endstand {
  box-sizing: border-box;
  max-width: 40rem;
  margin: 0 auto;
  min-width: 0;
}
.endstand:focus {
  outline: none;
}
.endstand__title {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.6rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.endstand__sub,
.endstand__note,
.endstand__status,
.endstand__foot {
  margin: 0.4rem 0 1rem;
  overflow-wrap: anywhere;
}
.endstand__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.endstand__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.2rem 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.18));
  border-radius: 0.5rem;
  min-width: 0;
}
.endstand__h {
  margin: 1.4rem 0 0.6rem;
  font-size: 1.15rem;
  line-height: 1.25;
}
.endstand__rank {
  font-weight: 700;
  white-space: nowrap;
}
.endstand__main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.endstand__dot {
  flex: 0 0 auto;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: #888;
}
.endstand__name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}
.endstand__score {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.endstand__awards {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.endstand__award {
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.25));
  border-radius: 999px;
  font-size: 0.85em;
  overflow-wrap: anywhere;
}
/* Einzelwertung: Platzmarke (Medaille für 1 bis 3), Spitzname, darunter das Team, rechts die Punkte. */
.endstand__row--person {
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  gap: 0.75rem;
}
.endstand__place {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: inherit;
  background: rgba(127, 127, 127, 0.18);
}
.endstand__place[data-medal] {
  color: #1a1d23;
  border: 2px solid rgba(26, 29, 35, 0.35);
}
.endstand__place[data-medal="1"] {
  background: linear-gradient(145deg, #ffe27a, #e0a800);
}
.endstand__place[data-medal="2"] {
  background: linear-gradient(145deg, #f1f3f5, #aeb6bf);
}
.endstand__place[data-medal="3"] {
  background: linear-gradient(145deg, #f0b27a, #b4691f);
}
.endstand__row--person:has(.endstand__place[data-medal="1"]) {
  border-width: 2px;
}
.endstand__main--person {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}
.endstand__name--anon {
  font-style: italic;
  font-weight: 500;
}
.endstand__team {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  font-size: 0.88em;
  opacity: 0.85;
}
.endstand__teamname {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 26rem) {
  /* Schmale Handys: die Punkte stehen unter dem Teamnamen, damit der Name Platz hat (Einzelwertung bleibt dreispaltig). */
  .endstand__row:not(.endstand__row--person) {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .endstand__row:not(.endstand__row--person) .endstand__score {
    grid-column: 2;
  }
}

/* ---------- Tanz im Musikquiz (Spec 2026-10-23-avatar-glashelm-design.md, Abschnitt D) ----------
 * Leinwand: bis zu 4 Figuren unten in der Musikbühne (quizStage/danceFloor.js); eine kommt, eine geht alle 10 s.
 * Handy: Hinweis „Du tanzt gerade auf der Leinwand!“ und die hervorgehobene Emote-Leiste. */
/* Unten in der Musikbühne, je zwei Figuren links und rechts von Platte und Equalizer (die Mitte bleibt frei). */
/* Größe folgt der Leinwand: bis 1,4 % der Höhe je Einheit (16:9, rund 1/3 der Höhe je Figur), höchstens so groß, dass je zwei Figuren
 * (Box 17 statt 23 Einheiten) links bzw. rechts neben den Equalizer passen (er ist höchstens 640 px breit, Platte und Hinweis sind schmaler).
 * Die Fläche ist der Container (`cqi` = ihre Breite = Breite der Musikbühne). */
.pq-dance {
  container-type: inline-size;
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5%;
  padding: 0 2% calc(1.2 * min(1vh, 0.5625vw));
  pointer-events: none;
}
.pq-dance > .pq-dance__fig {
  --pq-k: max(2px, min(calc(min(1vh, 0.5625vw) * 1.25), calc((45.5cqi - 320px) / 34)));
  width: calc(17 * var(--pq-k));
  /* Platz für das Schild unter den Schuhen. */
  padding-bottom: calc(6 * var(--pq-k));
}
/* Nur auf der Tanzfläche: Schild mit Abstand unter den Füßen statt in den Händen, die ganze Figur bleibt sichtbar (es tanzt mit). */
.pq-dance .pq-figure__sign {
  top: calc(100% + 1.2 * var(--pq-k));
  bottom: auto;
  transform: translateX(-50%);
}
.pq-dance > .pq-dance__fig:nth-child(2) {
  margin-right: auto;
}
.pq-dance[hidden] {
  display: none;
}
.pq-dance .pq-figure__pedestal {
  display: none;
}
.pq-dance__fig--in {
  animation: pq-dance-in 300ms ease-out both;
}
/* Wechsel: kurz aus- und einblenden (danceFloor.js OUT_MS = 250), kein Gleiten. */
.pq-dance__fig--out {
  animation: pq-dance-out 250ms ease-in both;
}
@keyframes pq-dance-in {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: none; }
}
@keyframes pq-dance-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: scale(0.85); }
}
/* Reduzierte Bewegung: stehen still, dezent hervorgehoben (Lichtkegel am Boden), Wechsel ohne Bewegung. */
.pq-dance--still .pq-dance__fig {
  border-radius: 50% 50% 12px 12px;
  background: radial-gradient(ellipse at 50% 100%, rgb(255 255 255 / 0.28), transparent 70%);
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .pq-dance__fig--in,
  .pq-dance__fig--out {
    animation: none;
  }
}

.pq-dance-phone {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 0 auto 10px;
  padding: 10px 12px;
  max-width: 420px;
  border: 2px solid var(--accent-surface, #f99700);
  border-radius: var(--radius, 12px);
  background: color-mix(in srgb, var(--accent-surface, #f99700) 14%, transparent);
}
/* Unter Frage und Antworten (nicht darüber): Der Hinweis kommt und geht alle 10 s mit dem Tanzwechsel und schob sonst die Antwortfelder
 * um seine ganze Höhe auf und ab (Nutzermeldung 24.10.: Antwortfelder springen). */
.pq-frame-body > .pq-dance-phone {
  order: 1;
}
.pq-dance-phone__note {
  margin: 0;
  font-weight: 700;
  text-align: center;
}
.pq-figure-emote--dance .pq-emote-bar__btn {
  box-shadow: 0 0 0 2px var(--accent-surface, #f99700);
}

/* Statistik „Öffentliche Seiten“: Summenzeile abgesetzt. */
.stats-ux__table tfoot th,
.stats-ux__table tfoot td {
  font-weight: 600;
  border-bottom: 0;
}

.stats-pages {
  margin-bottom: var(--ui-space-3, 1rem);
}

/* Pubquiz-Startprüfung: Hinweis mit den Runden, die sich nicht bis zum Ende spielen lassen (Moderation, Fernbedienung, Handy, Baukasten). */
.pq-playable-host[hidden] {
  display: none;
}
.pq-playable {
  display: grid;
  gap: var(--ui-space-2, 0.5rem);
  margin: var(--ui-space-3, 0.75rem) 0;
  padding: var(--ui-space-3, 0.75rem) var(--ui-space-4, 1rem);
  border-radius: var(--ui-radius-m, 12px);
  background: var(--ui-red-soft, #fdeaea);
  color: var(--ui-red-ink, #b42318);
  text-align: left;
}
.pq-playable--warn {
  background: var(--pqb-tone-orange, #fff1dc);
  color: var(--pqb-tone-orange-ink, #8a4b00);
}
.pq-playable__title {
  margin: 0;
  font-weight: 600;
}
.pq-playable__list {
  margin: 0;
  padding-left: 1.25rem;
}
.pq-playable__edit {
  justify-self: start;
}
/* Drei Zustände: Symbol + Text + Farbe (geprüft, nicht spielbar, unvollständig). */
.pq-playable--ok {
  background: var(--ui-green-soft, #e6f6ec);
  color: var(--ui-green-ink, #146c3a);
}
.pq-playable__head {
  display: flex;
  align-items: flex-start;
  gap: var(--ui-space-2, 0.5rem);
}
.pq-playable__icon {
  flex: none;
  min-width: 1.25rem;
  font-weight: 700;
  text-align: center;
}
.pq-playable__sub,
.pq-playable__hint {
  margin: 0;
  font-size: 0.9rem;
}
.pq-playable__sub {
  font-weight: 600;
}
.pq-playable-confirm {
  width: min(26rem, calc(100vw - 2rem));
  padding: 1.25rem;
  border: none;
  border-radius: 12px;
}
.pq-playable-confirm h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}
.pq-playable-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}
