/* ---------- Mobiles Pubquiz (Spec docs/superpowers/specs/2026-10-15-mobiles-pubquiz-design.md) ----------
 * Handy im Hochformat: Einladen, Lobby, Bühne nach der Auflösung, Siegerehrung als 16:9-Feld. */
.mpq-field {
  display: grid;
  gap: 0.5rem;
}
.mpq-field__label {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}
.mpq-effects {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.mpq-effects .mpq-field__label {
  flex: 1;
}
.mpq-field__hint {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.35;
  opacity: 0.75;
}
.mpq-stepper {
  display: grid;
  grid-template-columns: 3.5rem 1fr 3.5rem;
  align-items: center;
  gap: 0.5rem;
}
.mpq-stepper__btn {
  height: 3.5rem;
  border-radius: 999px;
  border: 2px solid currentColor;
  background: transparent;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: inherit;
}
.mpq-stepper__btn:disabled {
  opacity: 0.35;
}
.mpq-stepper__value {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.mpq-mix {
  display: grid;
  gap: 0.5rem;
}
.mpq-mix__opt {
  display: grid;
  gap: 0.15rem;
  text-align: left;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 2px solid color-mix(in srgb, currentColor 25%, transparent);
  background: var(--surface, #fff);
  color: inherit;
  font-size: 1rem;
}
.mpq-mix__opt strong {
  font-size: 1.15rem;
}
.mpq-mix__opt span {
  color: var(--muted, #3d4450);
}
.mpq-mix__opt[aria-checked="true"] {
  border-color: var(--color-pulse-primary, #007cc1);
  box-shadow: inset 0 0 0 2px var(--color-pulse-primary, #007cc1);
}
.mpq-lobby__start,
.mpq-invite__wa {
  min-height: 3.5rem;
  font-size: 1.15rem;
}
/* Startprüfung: gesperrter Start mit Grund; Rückfrage „Trotzdem starten?“ unter dem Knopf (kein Dialog). */
.mpq-lobby__reason {
  margin: 0.5rem 0 0;
}
.mpq-lobby__confirm {
  display: grid;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
}
.mpq-lobby__confirm p {
  margin: 0;
}
/* Einladen */
.mpq-invite {
  display: grid;
  gap: 0.75rem;
  justify-items: stretch;
  margin: 0 0 1.25rem;
  padding: 1rem;
  border-radius: 16px;
  background: var(--surface, #fff);
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.08);
}
.mpq-invite__title {
  margin: 0;
  font-size: 1.3rem;
}
.mpq-invite__link {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  word-break: break-all;
}
.mpq-invite__wa {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #1fa855;
  border-color: #1fa855;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.mpq-invite__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mpq-invite__row > .btn {
  flex: 1 1 8rem;
  min-height: 3rem;
}
.mpq-invite__qr {
  justify-self: center;
  width: 160px;
  height: 160px;
}
/* Lobby */
.mpq-lobby {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
  text-align: center;
}
.mpq-lobby__count {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
}
.mpq-lobby__names {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}
.mpq-lobby__names li {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-pulse-primary, #007cc1) 14%, transparent);
  font-weight: 700;
}
.mpq-lobby__status {
  margin: 0;
  font-size: 1.15rem;
}
.mpq-lobby.is-countdown .mpq-lobby__status {
  font-size: 2rem;
  font-weight: 900;
}
.mpq-lobby__facts {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.mpq-lobby__title {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  text-align: center;
}
/* Einstellungen im Warteraum: Spielleiter mit Bedienelementen, übrige nur eine Zeile (R5) */
.mpq-settings {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 1rem;
  border-radius: 16px;
  background: var(--surface, #fff);
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.08);
}
.mpq-settings__title {
  margin: 0;
  font-size: 1.3rem;
}
.mpq-seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
}
.mpq-seg__opt {
  min-height: 2.75rem;
  padding: 0.4rem 0.15rem;
  border-radius: 12px;
  border: 2px solid color-mix(in srgb, currentColor 25%, transparent);
  background: transparent;
  color: inherit;
  font-size: 0.85rem;
  font-weight: 700;
}
.mpq-seg__opt:disabled,
.mpq-settings__exclude:disabled,
.mpq-settings__select:disabled {
  opacity: 0.5;
}
.mpq-settings__locked {
  margin: 0;
  text-align: center;
}
.mpq-seg__opt[aria-pressed="true"] {
  border-color: var(--color-pulse-primary, #007cc1);
  box-shadow: inset 0 0 0 2px var(--color-pulse-primary, #007cc1);
}
.mpq-settings__exclude {
  min-height: 2.75rem;
}
.mpq-settings__field {
  display: grid;
  gap: 0.3rem;
}
.mpq-field[hidden],
.mpq-settings__field[hidden] {
  display: none;
}
.mpq-settings__select {
  min-height: 2.75rem;
  width: 100%;
}
.mpq-settings__line {
  margin: 0.75rem 0 0;
  text-align: center;
  font-weight: 700;
  overflow-wrap: anywhere;
}
/* „Freunde einladen“: kleiner Knopf, klappt den Einladen-Bereich auf */
.mpq-invite-more {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
  justify-items: center;
}
.mpq-invite-more__btn {
  min-height: 2.75rem;
}
.mpq-invite-more .mpq-invite {
  justify-self: stretch;
  margin: 0;
}
/* Bühne nach der Auflösung: Figuren (Größe nach Breite) und Rangliste */
.mpq-board {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.mpq-board__stage {
  --pq-k: 0.95vw;
  /* Handy: Figuren höchstens auf 85 % verkleinern (Schilder lesbar), sonst zweite Reihe auf der Stufe. */
  --pq-kmin: 0.85;
  display: flex;
  justify-content: center;
}
.mpq-board__stage .pq-tippers {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
}
/* Schätz- und Jahresrunden: falsche Tipps als kleine Sprechblasen (Wert, Spitzname klein), die eigene vorn und farbig. Umbrechend,
 * nie breiter als das Handy. */
.mpq-tips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem 0.4rem;
  min-width: 0;
  margin: -0.25rem 0 0;
  padding: 0 0 0.3rem;
  list-style: none;
  font-size: 0.8rem;
  line-height: 1.2;
}
.mpq-tip {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  min-width: 0;
  max-width: 100%;
  padding: 0.12em 0.6em 0.16em;
  color: #16161d;
  background: #ffffff;
  border: 1.5px solid #16161d;
  border-radius: 1em;
}
.mpq-tip::after {
  content: "";
  position: absolute;
  left: 0.9em;
  bottom: -0.3em;
  width: 0.45em;
  height: 0.45em;
  background: inherit;
  border-right: inherit;
  border-bottom: inherit;
  transform: rotate(45deg);
}
.mpq-tip__value {
  flex: none;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.mpq-tip__name {
  min-width: 0;
  max-width: 7em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85em;
  opacity: 0.75;
}
.mpq-tip--own {
  color: #ffffff;
  background: #8a1c3a;
  border-color: #8a1c3a;
}
.mpq-tip--own .mpq-tip__name {
  font-weight: 700;
  opacity: 0.9;
}
.mpq-tips__more {
  font-size: 0.85em;
  font-weight: 700;
  opacity: 0.7;
}
.mpq-board .pq-ranking ol {
  display: grid;
  gap: 0.3rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}
.mpq-board__end {
  justify-self: center;
}
/* Siegerehrung: die Szene der Leinwand als 16:9-Feld oben (Größen folgen der Breite) */
.mpq-cel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 1rem;
}
.mpq-cel > .pq-celebration {
  position: absolute;
  inset: 0;
}
/* Revanche (Handy): Frage mit Ja/Nein, Countdown-Ring, wer dabei ist; Endbildschirme; Gesamtwertung (Spec R6–R8, R11).
 * Bewegung nur über transform und opacity; der Ring wird im Takt gesetzt (keine Übergänge). */
.mpq-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mpq-rematch {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  margin: 0 0 1rem;
  padding: 1rem;
  text-align: center;
  border-radius: 16px;
  background: var(--surface, #fff);
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.08);
}
@media (prefers-reduced-motion: no-preference) {
  .mpq-rematch {
    animation: mpq-rematch-in 0.25s ease-out;
  }
}
@keyframes mpq-rematch-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.mpq-rematch__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
}
.mpq-rematch__timer {
  position: relative;
  width: 64px;
  height: 64px;
}
.mpq-rematch__ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.mpq-rematch__ring-bg {
  fill: none;
  stroke: var(--bg-soft, #e8ecf0);
  stroke-width: 7;
}
.mpq-rematch__ring-fg {
  fill: none;
  stroke: var(--timer-ok, #007cc1);
  stroke-width: 7;
  stroke-linecap: round;
}
.mpq-rematch__timer[data-urgency="warn"] .mpq-rematch__ring-fg {
  stroke: var(--timer-warn, #c2410c);
}
.mpq-rematch__timer[data-urgency="critical"] .mpq-rematch__ring-fg {
  stroke: var(--timer-critical, #b91c1c);
}
.mpq-rematch__timer[data-closed] .mpq-rematch__ring-fg {
  opacity: 0.35;
}
.mpq-rematch__count {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.mpq-rematch__votes {
  display: grid;
  gap: 0.6rem;
  width: 100%;
}
.mpq-rematch__votes[hidden] {
  display: none;
}
.mpq-rematch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 3.25rem;
  font-size: 1.15rem;
  font-weight: 800;
}
.mpq-rematch__btn:not(.primary) {
  border: 2px solid color-mix(in srgb, currentColor 40%, transparent);
  background: transparent;
  color: inherit;
}
.mpq-rematch__btn[aria-pressed="true"] {
  outline: 3px solid var(--color-pulse-primary, #007cc1);
  outline-offset: 2px;
}
.mpq-rematch__btn:disabled {
  opacity: 0.6;
}
.mpq-rematch__btn:disabled[aria-pressed="true"] {
  opacity: 1;
}
.mpq-rematch__tick[hidden] {
  display: none;
}
.mpq-rematch__note {
  margin: 0;
}
.mpq-rematch__pending {
  margin: 0;
  min-height: 1.4em;
  font-weight: 700;
}
.mpq-rematch__who {
  display: grid;
  gap: 0.4rem;
  justify-items: center;
  width: 100%;
}
.mpq-rematch__who-title {
  margin: 0;
  font-size: 1rem;
}
.mpq-rematch__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mpq-rematch__person {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  width: 4.6rem;
  min-width: 0;
}
.mpq-rematch__person .pq-figure--phone {
  --pq-k: 2.1px;
  max-height: none;
  margin: 0;
}
.mpq-rematch__name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 700;
}
.mpq-rematch__nobody {
  margin: 0;
}
.mpq-rematch__nobody[hidden] {
  display: none;
}
.mpq-rematch-end {
  display: grid;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 1rem;
  text-align: center;
  border-radius: 16px;
  background: var(--surface, #fff);
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.08);
}
.mpq-rematch-end__title {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
}
.mpq-rematch-end__body {
  margin: 0;
}
.mpq-series {
  display: grid;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
}
.mpq-series__title {
  margin: 0;
  font-size: 1.3rem;
  text-align: center;
}
.mpq-series__stage {
  --pq-k: 0.95vw;
  --pq-kmin: 0.85;
  display: flex;
  justify-content: center;
}
.mpq-series__stage .pq-tippers {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
}
.mpq-series__list {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mpq-series__row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  grid-template-areas: "rank who sum" ". meta meta" ". games games";
  align-items: center;
  gap: 0.1rem 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 6%, transparent);
}
.mpq-series__row.is-winner {
  background: color-mix(in srgb, #f5b301 22%, transparent);
  box-shadow: inset 0 0 0 2px #f5b301;
}
.mpq-series__rank {
  grid-area: rank;
  font-weight: 800;
}
.mpq-series__who {
  grid-area: who;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.mpq-series__who .list-comic {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
}
.mpq-series__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.mpq-series__sum {
  grid-area: sum;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.mpq-series__meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
  font-size: 0.85rem;
}
.mpq-series__meta:empty {
  display: none;
}
.mpq-series__badge {
  font-weight: 800;
}
.mpq-series__new {
  font-style: italic;
}
.mpq-series__games {
  grid-area: games;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
/* ---------- Mobiles Pubquiz bzw. Pubquiz am Handy: Platz (Nutzermeldung 15.10.) ----------
 * Der Rahmen füllt genau die Bildschirmhöhe: Der Quiz-Container trägt im Fokusmodus keine eigenen Abstände (sonst 36 px zu hoch, die
 * Seite scrollte und die erste Zeile der Frage lag unter dem Zeitbalken). */
#view-join.pq-focus .quiz-container.quiz-elimination {
  padding: 0;
  gap: 0;
}
/* Antworten: kurze im Raster 2 × 2 mit großer Schrift, lange untereinander über die ganze Breite (phoneOptionLayout). */
.pq-frame .quiz-options.pq-opts--cols1 {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.pq-frame .quiz-options.pq-opts--cols1 > .quiz-opt {
  min-height: 58px;
  justify-content: flex-start;
  text-align: left;
}
.pq-frame .quiz-options.pq-opts--cols2 > .quiz-opt {
  min-height: 88px;
}
.pq-frame .pq-opts--l > .quiz-opt[class*="pq-opt-"] { font-size: 1.35rem; }
.pq-frame .pq-opts--m > .quiz-opt[class*="pq-opt-"] { font-size: 1.15rem; }
.pq-frame .pq-opts--s > .quiz-opt[class*="pq-opt-"] { font-size: 0.98rem; }
.pq-frame .pq-opts--xs > .quiz-opt[class*="pq-opt-"] { font-size: 0.82rem; }
.pq-frame .pq-opts--xxs > .quiz-opt[class*="pq-opt-"] { font-size: 0.72rem; }
/* Musik auf dem Handy: kompakte Bühne quer über der Frage (Platte links, Equalizer und Hinweis rechts). */
.pq-frame .music-stage {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "deck eq" "deck caption";
  align-items: center;
  justify-items: stretch;
  gap: 6px 14px;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 10px 14px;
}
.pq-frame .music-stage .music-deck {
  grid-area: deck;
  width: min(28vw, 112px);
}
.pq-frame .music-stage .music-eq {
  grid-area: eq;
  width: 100%;
  height: 44px;
}
.pq-frame .music-stage .music-caption {
  grid-area: caption;
  margin: 0;
  text-align: left;
  font-size: 1rem;
}
.pq-frame .music-stage .music-countdown__n {
  font-size: 3rem;
}
.pq-frame .music-stage .music-countdown__n--ready {
  font-size: 1.6rem;
}
/* Nach der Auflösung keine große Bühne: Cover und Song stehen kompakt in der Songkarte (appendSongCard). */
.pq-frame .music-stage[data-mode="reveal"] {
  display: none;
}
.pq-frame .pq-song {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #f1f3f7;
  color: #16161d;
}
.pq-frame .pq-song__cover {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}
.pq-frame .pq-song__text {
  margin: 0;
  /* Lange Titel ohne Umbruchstelle sprengen sonst die Breite des Handys (Nutzermeldung 24.10.) */
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}
.pq-frame .mpq-board {
  margin-top: 0;
}

