/* Pubquiz (Modus des Ausscheidungs-Quiz): Spitzname, Schätzung, eigener Stand */
.pq-name,
.pq-estimate {
  display: grid;
  gap: 0.75rem;
  max-width: 28rem;
}
.pq-estimate-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pq-estimate-row input {
  flex: 1;
  min-height: 2.75rem;
  font-size: 1.25rem;
}
.pq-estimate-unit {
  font-weight: 600;
}
/* „±“ neben Zahlenfeldern (signToggle.js): Handy-Zahlentastaturen haben oft kein Minus. Schmal, aber volle Tippfläche. */
.sign-toggle {
  flex: 0 0 auto;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.6rem;
  font-size: 1.25rem;
  line-height: 1;
}
.qe-value-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.qe-value-row input {
  flex: 1;
  min-width: 0;
}
.pq-correct {
  font-size: 1.25rem;
  font-weight: 700;
}
/* Erklärung nach der Auflösung (Handy, Zuschauer, Moderation, Leinwand): Text bricht um, Bezeichnung hervorgehoben. */
.pq-explanation {
  margin: 0.6rem 0 0;
  font-size: 1.05rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.pq-explanation__label {
  font-weight: 800;
}
.pq-frame .pq-explanation {
  margin: 0;
  padding: 0 4px;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.pq-stage--ended > .pq-explanation {
  flex: 0 0 auto;
  margin: 0 auto;
  max-width: 90%;
  text-align: center;
  font-size: calc(3 * var(--pq-k));
}
.pq-stage > .music-stage[data-mode="reveal"] .music-reveal__explanation {
  margin: 0;
  max-width: 100%;
  text-align: inherit;
  font-size: max(16px, calc(2.6 * var(--pq-k) * var(--music-fit, 1)));
}
.pq-me {
  margin-top: 0.75rem;
  font-weight: 600;
}
.pq-ranking ol,
.pq-nearest ol {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.35rem;
}
.pq-ranking-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto auto;
  gap: 0.75rem;
  align-items: baseline;
}
.pq-score {
  font-weight: 700;
}
/* Pubquiz, Moderation: beste Tipper und falsche Tipps als schlichte Listen (ohne Bewegung) */
.pq-modlist {
  margin-top: 1rem;
}
.pq-modlist__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.pq-modlist__list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.35rem;
}
.pq-modlist__row {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 0.75rem;
  align-items: baseline;
}
.pq-modlist__row--tip {
  grid-template-columns: 1fr auto;
}
.pq-modlist__detail {
  font-variant-numeric: tabular-nums;
}
.pq-modlist__none,
.pq-modlist__more {
  margin: 0.5rem 0 0;
}

/* Pubquiz, Moderation: Buzzer-Statistik (E4) als schlichte Tabelle, scrollt in ihrem Rahmen statt die Seite zu weiten */
.pq-buzzstats__scroll {
  overflow-x: auto;
  margin-top: 0.5rem;
}
.pq-buzzstats__table {
  border-collapse: collapse;
  min-width: 100%;
  font-variant-numeric: tabular-nums;
}
.pq-buzzstats__table th,
.pq-buzzstats__table td {
  text-align: left;
  padding: 0.3rem 0.75rem 0.3rem 0;
  white-space: nowrap;
}
.pq-buzzstats__table thead th {
  font-weight: 600;
  font-size: 0.9em;
}
.pq-buzzstats__table tbody th {
  font-weight: 600;
  white-space: normal;
}

.pq-delta {
  font-size: 0.9em;
}
.pq-settings {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
/* Schalter der Figuren (Spec 2026-10-16-avatar-animationen-garderobe, Abschnitt 6.3) */
.qe-avatar-fx {
  display: grid;
  gap: 0.25rem;
  margin: 0.75rem 0;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem 0.75rem;
}
.qe-avatar-fx__title {
  margin: 0;
  font-weight: 650;
}
.qe-avatar-fx .hint {
  margin: 0 0 0.25rem 1.75rem;
}
.qe-estimate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Pubquiz Teams im Editor (E2): je Team Name, Farbauswahl (Radiogruppe, Farbe immer mit Namen) und „Team entfernen“. */
.pq-team-settings {
  min-width: 0;
}
/* Spielregeln (E4): Buzzer-Regeln, Gleichstand und Frühstart-Hinweis in einem Rahmen */
.pq-rules-settings {
  min-width: 0;
}
.pq-team-row {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  margin: 0.5rem 0;
  padding: 0.5rem 0.75rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}
.pq-team-row > legend {
  font-weight: 650;
  padding: 0 0.25rem;
}
.pq-team-remove {
  justify-self: start;
  min-height: 44px;
}
.pq-colorpick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}
.pq-colorpick__opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  padding: 0.25rem 0.6rem 0.25rem 0.4rem;
  border: 2px solid var(--line, #c7ccd4);
  border-radius: 999px;
  background: var(--ui-surface, #fff);
  color: var(--ui-label, #1c1c1e);
  cursor: pointer;
}
.pq-colorpick__opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.pq-colorpick__swatch {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--pq-team, currentColor);
  border: 2px solid rgba(0, 0, 0, 0.35);
}
.pq-colorpick__opt:has(input:checked) {
  border-color: var(--ui-tint-ink, #005f94);
  box-shadow: inset 0 0 0 1px var(--ui-tint-ink, #005f94);
  background: var(--ui-tint-soft, #e9f3fa);
  font-weight: 650;
}
.pq-colorpick__opt:has(input:checked) .pq-colorpick__swatch::after {
  content: "✓";
  display: grid;
  place-items: center;
  height: 100%;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
  text-shadow: 0 0 2px #000;
}
.pq-colorpick__opt:has(input:focus-visible) {
  outline: 3px solid var(--focus, #0052cc);
  outline-offset: 2px;
}
.pq-team-dup:empty {
  display: none;
}
.pq-team-dup {
  margin: 0;
  color: #8a4b00;
  font-weight: 650;
}

/* Teamlage in der Moderation (wie im Startcheck): eine Zeile je Team, Warnung unter der Mindestgröße. */
.pq-teamlage {
  list-style: none;
  margin: 0.25rem 0 0.5rem;
  padding: 0;
  display: grid;
  gap: 0.15rem;
  font-size: 0.9rem;
}
.pq-teamlage__row.is-ok > span:first-child {
  color: #2a9d6f;
  font-weight: 700;
}
.pq-teamlage__row.is-warn {
  color: #8a4b00;
  font-weight: 650;
}

/* Pubquiz Teams: Kacheln, Kennzeichen (Farbe immer mit Form und Name) */
.pq-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
}
.pq-team-tile {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  min-height: 6rem;
  padding: 0.75rem;
  border: 3px solid var(--pq-team, currentColor);
  border-radius: 0.75rem;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.pq-team-tile[aria-pressed="true"] {
  background: var(--pq-team, currentColor);
  color: #fff;
}
/* Helle Teamfarben: dunkle Schrift (Kontrast ≥ 4,5:1, weiß läge bei 2:1 bis 3,5:1). */
.pq-team-tile.pq-team--green[aria-pressed="true"],
.pq-team-tile.pq-team--yellow[aria-pressed="true"],
.pq-team-tile.pq-team--orange[aria-pressed="true"] {
  color: #1a1a1a;
}
.pq-team-tile:disabled,
.pq-team-tile[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}
.pq-team-name {
  font-weight: 700;
}
.pq-myteam {
  font-size: 1.25rem;
  font-weight: 700;
  border-left: 0.5rem solid var(--pq-team, currentColor);
  padding-left: 0.75rem;
}
.qe-roster-tile[class*="pq-team--"] {
  border: 4px solid var(--pq-team, currentColor);
  border-radius: 0.75rem;
}
/* Teamname klein unter dem Namen: Die Teamfarbe des Rands steht nie allein (Formen entfallen seit dem 14. Oktober 2026). */
.qe-roster-team {
  max-width: 100%;
  font-size: calc(var(--qe-font, 16px) * 0.75);
  line-height: 1.25;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Sehr viele Personen ohne Namen: der Teamname bleibt für Screenreader lesbar. */
.qe-roster-grid.is-nameless .qe-roster-team {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Pubquiz Show: Quizshow-Raster (Buchstabe, je Antwort eine dunkle Farbfläche mit weißer Schrift ≥ 4,5:1) */
.pq-opt-0 { --pq-opt: #b3123a; }
.pq-opt-1 { --pq-opt: #1f4e9c; }
.pq-opt-2 { --pq-opt: #1b6b3a; }
.pq-opt-3 { --pq-opt: #6b2c91; }
.pq-opt-4 { --pq-opt: #8a4b00; }
.pq-opt-5 { --pq-opt: #0f6470; }
.pq-roundhead {
  margin: 0.25em 0 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stage-quiz-options.pq-show-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pq-show-grid .stage-quiz-opt {
  justify-content: flex-start;
  background: var(--pq-opt, #1f4e9c);
  color: #ffffff;
  min-height: 2.6em;
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.pq-show-grid .stage-quiz-opt.is-dimmed {
  opacity: 0.25;
  filter: grayscale(1);
}
.pq-show-grid .stage-quiz-opt.is-revealed {
  box-shadow: 0 0 0 calc(5 * var(--su, 1px)) #ffffff, 0 0 calc(28 * var(--su, 1px)) var(--pq-opt);
}
.pq-mark {
  display: inline-flex;
  align-items: baseline;
  flex: none;
  min-width: 1.2em;
  font-variant-numeric: tabular-nums;
}
.pq-mark b {
  font-weight: 800;
}
.quiz-elimination .quiz-opt[class*="pq-opt-"] {
  display: flex;
  align-items: center;
  gap: 0.5em;
  text-align: left;
  border-left: 0.5em solid var(--pq-opt);
}
@media (prefers-reduced-motion: reduce) {
  .pq-show-grid .stage-quiz-opt { transition: none; }
}

/* Pubquiz Show: Teambalken (Breite per transform, Farbe mit Form und Name) */
.pq-team-bars ol {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.5rem;
}
.pq-bar-row {
  display: grid;
  grid-template-columns: minmax(8em, 16em) 1fr auto;
  align-items: center;
  gap: 0.75rem;
}
.pq-bar-row.is-out {
  opacity: 0.55;
}
.pq-bar-name {
  font-weight: 700;
}
.pq-bar-track {
  height: 1.2em;
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.18);
  overflow: hidden;
}
.pq-bar {
  display: block;
  height: 100%;
  background: var(--pq-team, currentColor);
  transform-origin: left center;
}
.pq-bar-score {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Pubquiz Show: Bühnenlicht (dezent bewegt, letzte 5 Sekunden lebhafter; bei reduzierter Bewegung ein stiller Verlauf) */
/* Eigener Stapelkontext: die Ebene liegt über dem Seitenhintergrund, aber unter dem Inhalt. */
:has(> .pq-stagebg) {
  isolation: isolate;
}
.pq-stagebg {
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 55% at 25% 0%, color-mix(in srgb, var(--primary-color, #007cc1) 22%, transparent), transparent 70%),
    radial-gradient(40% 55% at 75% 0%, color-mix(in srgb, var(--primary-color, #007cc1) 16%, transparent), transparent 70%);
  animation: pq-light-drift 14s ease-in-out infinite alternate;
  opacity: 0.8;
  transition: opacity 0.6s ease;
}
.pq-stagebg[data-phase="lobby"] { opacity: 0.55; }
.pq-stagebg[data-phase="urgent"] { animation-duration: 4s; opacity: 1; }
.pq-stagebg[data-phase="reveal"],
.pq-stagebg[data-phase="finale"] { opacity: 1; }
@keyframes pq-light-drift {
  from { transform: translate3d(-4%, 0, 0); }
  to { transform: translate3d(4%, 2%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .pq-stagebg { animation: none; transition: none; }
}
.pq-podium-host {
  width: 100%;
}

/* Pubquiz Show (Korrekturen): Balken mit fester Breite, richtige Karte behält ihre Farbe, Finale in zwei Spalten */
.pq-team-bars {
  width: min(100%, 60rem);
}
.pq-bar-row {
  grid-template-columns: minmax(8em, 14em) minmax(12em, 1fr) 11em;
}
.pq-bars-slot {
  width: min(100%, 60rem);
}
.pq-show-grid .stage-quiz-opt.is-correct {
  background: var(--pq-opt, #1f4e9c);
  color: #ffffff;
  box-shadow: 0 0 0 calc(5 * var(--su, 1px)) #ffffff;
}
.quiz-elimination.pq-finale-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  align-content: start;
  column-gap: 4vw;
  row-gap: 1.5vh;
}
.quiz-elimination.pq-finale-layout > .quiz-elimination-header {
  display: none;
}
.quiz-elimination.pq-finale-layout > .qe-finale-host {
  grid-column: 1;
  grid-row: 1 / span 6;
}
.quiz-elimination.pq-finale-layout > :not(.qe-finale-host) {
  grid-column: 2;
}

/* ------------------------- Pubquiz Schritt 4: Auswahl (wer wählt, Kategorien, Glücksrad, Karte) ------------------------- */
.pq-pick {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 1rem 0;
  text-align: center;
}
.pq-pick-title {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  line-height: 1.2;
}
.pq-pick-title[class*="pq-team--"] {
  text-decoration: underline;
  text-decoration-color: var(--pq-team, currentColor);
  text-decoration-thickness: 0.18em;
  text-underline-offset: 0.2em;
}
.pq-pick-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
  width: min(100%, 60rem);
}
.pq-pick-cards > .hint {
  grid-column: 1 / -1;
  margin: 0;
}
.pq-pick-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.25rem;
  min-height: 4.5rem;
  padding: 0.75rem;
  border: 3px solid transparent;
  border-radius: 0.9rem;
  background: var(--pq-cat, #455a64);
  color: var(--pq-cat-ink, #fff);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.pq-pick-card:disabled {
  cursor: default;
}
.pq-pick-card:focus-visible {
  outline: 3px solid var(--text-color, #1a1a1a);
  outline-offset: 3px;
}
.pq-pick-card[aria-pressed="true"] {
  border-color: var(--text-color, #1a1a1a);
  transform: scale(1.04);
}
.pq-pick-card.is-dimmed {
  opacity: 0.4;
}
.pq-sym-svg {
  display: inline-block;
  vertical-align: -0.15em;
}
.pq-pick-symbol {
  font-size: 1.8rem;
  line-height: 1;
}
.pq-pick--stage .pq-pick-card {
  min-height: 11rem;
  font-size: 1.6rem;
}
.pq-pick--stage .pq-pick-symbol {
  font-size: 3.5rem;
}
.pq-pick--stage .pq-pick-ring {
  width: 10rem;
}
.pq-pick--stage .pq-pick-seconds {
  font-size: 1.15rem;
}
.pq-pick-ring {
  --pq-left: 1;
  display: grid;
  place-items: center;
  width: 6.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--primary-color, #007cc1) calc(var(--pq-left) * 360deg), color-mix(in srgb, currentColor 12%, transparent) 0);
}
.pq-pick-seconds {
  display: grid;
  place-items: center;
  width: 78%;
  aspect-ratio: 1;
  padding: 0.25rem;
  border-radius: 50%;
  background: var(--bg-color, #fff);
  font-size: 0.8rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.pq-pick-result {
  margin: 0;
  font-size: clamp(1.1rem, 3vw, 2rem);
  font-weight: 700;
}
.pq-reel {
  height: 1.25em;
  overflow: hidden;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.25;
  border-block: 0.12em solid var(--pq-team, var(--primary-color, #007cc1));
  padding-inline: 0.5em;
}
.pq-reel-strip {
  will-change: transform;
}
.pq-pick-card.is-hop {
  border-color: var(--text-color, #1a1a1a);
  transform: scale(1.06);
}
.pq-wheel {
  position: relative;
  width: min(62vh, 36rem);
  aspect-ratio: 1;
  margin-top: 1.2rem;
}
.pq-wheel-rotor,
.pq-wheel-rotor svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pq-wheel-rotor {
  will-change: transform;
  filter: drop-shadow(0 0.8rem 1.6rem rgb(18 20 42 / 0.35));
}
.pq-wheel-rotor path[data-pq-slot] {
  transition: opacity 0.35s ease;
}
.pq-wheel.is-landed path[data-pq-slot]:not(.is-win) {
  opacity: 0.28;
}
.pq-wheel-rotor path.is-win {
  stroke: #ffffff;
  stroke-width: 2.5;
}
/* Stopper: oben mittig, dreht um seinen Kopf; die Spitze reicht bis zu den Nägeln. */
.pq-wheel-stopper {
  position: absolute;
  top: -1.6rem;
  left: 50%;
  z-index: 2;
  width: 3.2rem;
  margin-left: -1.6rem;
  transform-origin: 50% 23%;
  filter: drop-shadow(0 0.25rem 0.35rem rgb(0 0 0 / 0.4));
}
.pq-wheel-stopper svg {
  display: block;
  width: 100%;
}
.pq-wheel-banner {
  position: absolute;
  top: 74%;
  left: 50%;
  z-index: 3;
  padding: 0.3em 0.85em;
  border: 0.12em solid #ffffff;
  border-radius: 999px;
  background: var(--pq-level, #7a3fd1);
  color: var(--pq-level-ink, #ffffff);
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  box-shadow: 0 0.6rem 2rem rgb(18 20 42 / 0.4);
}
.pq-wheel-banner[hidden] {
  display: none;
}
/* ------------------------- Glücksrad zum Selberdrehen: Rad mit Spezialfeldern, Kraftbalken, Wisch-Fläche, Freie Wahl ------------------------- */
.pq-wheel-name {
  letter-spacing: 0.01em;
}
.pq-wheel--small .pq-wheel-name {
  display: none;
}
.pq-wheel-banner__main,
.pq-wheel-banner__sub {
  display: block;
}
.pq-wheel-banner__sub {
  margin-top: 0.15em;
  font-size: 0.5em;
  font-weight: 700;
  line-height: 1.15;
}
.pq-wheel-banner:has(.pq-wheel-banner__sub) {
  border-radius: 0.7em;
  padding-block: 0.25em 0.3em;
}
/* Handys und Moderation: Rad kleiner, Banner unter dem Rad statt darüber. */
.pq-pick--participant .pq-wheel,
.pq-pick--presenter .pq-wheel {
  margin-top: 1.6rem;
}
.pq-pick--participant .pq-wheel--big {
  width: min(86vw, 46vh, 26rem);
}
.pq-pick--participant .pq-wheel--small {
  width: min(74vw, 36vh, 18rem);
}
.pq-pick--participant.pq-pick--spinflow .pq-pick-ring {
  width: 5.2rem;
}
.pq-pick--participant.pq-pick--spinflow .pq-pick-seconds {
  font-size: 0.72rem;
}
.pq-pick--spinflow .pq-pick-seconds {
  text-align: center;
}
.pq-pick--presenter .pq-wheel {
  width: min(70vw, 18rem);
}
.pq-pick--participant .pq-wheel--small .pq-wheel-stopper,
.pq-pick--presenter .pq-wheel-stopper {
  top: -1.1rem;
  width: 2.2rem;
  margin-left: -1.1rem;
}
.pq-pick--participant .pq-wheel-banner,
.pq-pick--presenter .pq-wheel-banner {
  position: static;
  display: inline-block;
  max-width: 100%;
  font-size: clamp(1.15rem, 5.6vw, 1.7rem);
  white-space: normal;
  text-wrap: balance;
  transform: none;
}
.pq-wheel-side {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  width: 100%;
}
.pq-pick--participant .pq-wheel-side,
.pq-pick--presenter .pq-wheel-side {
  max-width: 26rem;
}
.pq-pick--participant.pq-pick--spinflow {
  gap: 0.6rem;
}
/* Wisch-Fläche: das Rad selbst; kein Scrollen und keine Textauswahl unter dem Finger. */
.pq-wheel.is-swipe {
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.pq-wheel.is-swipe:not(.is-sent) .pq-wheel-rotor {
  animation: pq-wheel-wait 1.8s ease-in-out infinite;
}
.pq-wheel.is-swipe.is-sent {
  opacity: 0.8;
}
.pq-wheel.is-shake {
  animation: pq-wheel-shake 0.4s ease-in-out;
}
@keyframes pq-wheel-wait {
  0%, 100% { filter: drop-shadow(0 0.8rem 1.6rem rgb(18 20 42 / 0.35)); }
  50% { filter: drop-shadow(0 0.4rem 1.2rem rgb(245 159 0 / 0.75)); }
}
@keyframes pq-wheel-shake {
  0%, 100% { translate: 0 0; }
  20% { translate: -0.5rem 0; }
  45% { translate: 0.5rem 0; }
  70% { translate: -0.3rem 0; }
}
.pq-swipe-hint {
  margin: 0;
  font-size: clamp(1.4rem, 7vw, 2.1rem);
  font-weight: 900;
  line-height: 1.1;
}
.pq-swipe-weak {
  margin: 0;
  padding: 0.3em 0.9em;
  border-radius: 999px;
  background: #b91c1c;
  color: #ffffff;
  font-size: clamp(1.2rem, 5.5vw, 1.6rem);
  font-weight: 900;
}
.pq-swipe-weak[hidden] {
  display: none;
}
.pq-swipe-auto {
  margin: 0;
}
.pq-swipe-release {
  margin: 0;
}
.pq-swipe-hint.is-touched {
  opacity: 0.55;
}
.pq-wheel.is-swipe:focus-visible {
  outline: 4px solid #8be9ff;
  outline-offset: 6px;
  border-radius: 50%;
}
/* Wischhinweis: Hand, Spur und Pfeil über dem Rad; berührt der Finger das Rad, verschwindet er. */
.pq-swipe-demo {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.pq-swipe-demo[hidden] {
  display: none;
}
.pq-swipe-demo svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.45));
}
/* Eigener Kraftbalken des Drehers: größer, damit er unter dem Finger gut zu lesen ist. */
.pq-power[data-pq-power-local] .pq-power__track {
  height: 1.7rem;
}
.pq-power[data-pq-power-local] .pq-power__label {
  font-size: 1rem;
  opacity: 1;
}
/* Kraftbalken „Schwung“ */
.pq-power {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  max-width: 26rem;
  text-align: left;
}
.pq-power__label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}
.pq-power__track {
  position: relative;
  height: 1.15rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, currentColor 22%, transparent);
}
.pq-power__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--pq-power, 0) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, #2fb36d, #f5c400 60%, #e8590c 85%, #d6336c) left / calc(100% / max(var(--pq-power, 0), 0.02)) 100% no-repeat;
  transition: width 0.12s linear;
}
.pq-power__mark {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  margin-left: -1.5px;
  background: currentColor;
  opacity: 0.55;
}
.pq-power.is-enough .pq-power__label::after {
  content: " ✓";
}
.pq-pick--stage .pq-power {
  max-width: calc(46 * var(--pq-k));
  gap: calc(0.8 * var(--pq-k));
}
.pq-pick--stage .pq-power__label {
  font-size: calc(2.4 * var(--pq-k));
}
.pq-pick--stage .pq-power__track {
  height: calc(3 * var(--pq-k));
}
/* Freie Wahl (Handy des Drehers) */
.pq-free {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  width: min(100%, 26rem);
}
.pq-free > .hint {
  margin: 0;
}
.pq-free__chip {
  margin: 0;
  padding: 0.25em 0.9em;
  border-radius: 999px;
  background: #f1f3f5;
  color: #12142a;
  font-size: 1.1rem;
  font-weight: 900;
}
.pq-free__cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}
.pq-free__catlabel {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.75;
}
.pq-free__cat {
  min-height: 2.6rem;
  padding: 0.3rem 0.8rem;
  border: 3px solid transparent;
  border-radius: 999px;
  background: var(--pq-cat, #455a64);
  color: var(--pq-cat-ink, #ffffff);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.pq-free__cat[aria-pressed="true"] {
  border-color: var(--text-color, #1a1a1a);
}
.pq-free__levels {
  display: grid;
  gap: 0.5rem;
  width: 100%;
}
.pq-free__level {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.6rem;
  padding: 0.4rem 1rem 0.4rem 0.7rem;
  border: 3px solid transparent;
  border-radius: 0.9rem;
  background: var(--pq-level);
  color: var(--pq-level-ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.pq-free__level:disabled {
  cursor: default;
  opacity: 0.55;
}
.pq-free__level[aria-pressed="true"] {
  border-color: var(--text-color, #1a1a1a);
  opacity: 1;
}
.pq-free__n {
  display: grid;
  place-items: center;
  width: 2.2rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.28);
  font-size: 1.4rem;
  font-weight: 900;
}
.pq-free__name {
  font-size: 1.1rem;
}
.pq-free__pts {
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.9;
}
.pq-free__done {
  margin: 0;
  font-weight: 700;
}
.pq-free__done[hidden] {
  display: none;
}
/* Leinwand: Rad rechts, links Überschrift, Ergebnis und Seitenspalte (Kraftbalken, Restzeit) */
.pq-pick--stage.pq-pick--wheel > .pq-wheel-side {
  grid-column: 1;
  grid-row: 4;
  justify-items: start;
}
.pq-pick--stage.pq-pick--spinner.pq-pick--wheel > .pq-reel {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
}
.pq-pick--stage.pq-pick--spinner.pq-pick--wheel > .pq-pick-title {
  grid-row: 3;
}
.pq-pick--stage.pq-pick--spinner.pq-pick--wheel > .pq-pick-result {
  grid-row: 4;
}
/* Abzeichen in der Rundenkopfzeile (Leinwand, Moderation) und auf der Rundenkarte */
.pq-wheel-badge {
  display: inline-block;
  padding: 0 0.55em;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 900;
  line-height: 1.5;
  vertical-align: 0.05em;
}
.pq-wheel-badge--double {
  background: #ffe14d;
  color: #3b2a00;
}
.pq-wheel-badge--joker {
  background: #0e2a5c;
  color: #8be9ff;
}
.pq-rcard__x2 {
  display: inline-block;
  margin-left: 0.3em;
  padding: 0 0.5em;
  border-radius: 999px;
  background: #ffe14d;
  color: #3b2a00;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}
/* Joker 50:50 auf dem Handy: zwei falsche Antworten ausgegraut */
.pq-joker-hint {
  margin: 0 0 0.6rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.7rem;
  background: #0e2a5c;
  color: #8be9ff;
  font-weight: 700;
  text-align: center;
}
.quiz-opt.is-joker-off {
  opacity: 0.32;
  filter: grayscale(1);
  cursor: not-allowed;
  text-decoration: line-through;
}
@media (prefers-reduced-motion: reduce) {
  .pq-wheel.is-swipe:not(.is-sent) .pq-wheel-rotor,
  .pq-wheel.is-shake {
    animation: none;
  }
  .pq-power__fill {
    transition: none;
  }
}

.pq-card-stack {
  position: relative;
  display: grid;
  width: min(40vh, 18rem);
  aspect-ratio: 3 / 4;
  perspective: 900px;
}
.pq-card {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.5rem;
  border-radius: 1rem;
  background: var(--pq-cat, #455a64);
  color: var(--pq-cat-ink, #fff);
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 0.4rem 1.2rem rgb(0 0 0 / 0.25);
  backface-visibility: hidden;
}
.pq-card--back {
  font-size: 4rem;
  opacity: 0.85;
}
/* Die gedrehten Karten darunter bilden eigene Ebenen; die vordere Karte liegt ausdrücklich darüber. */
.pq-card--front {
  position: relative;
  z-index: 1;
}
.pq-card--back:nth-child(1) { transform: rotate(-6deg) translate(-6%, 3%); }
.pq-card--back:nth-child(2) { transform: rotate(4deg) translate(5%, 2%); }
.pq-card--back:nth-child(3) { transform: rotate(-1deg); }
.pq-card--front .pq-pick-symbol {
  font-size: 4rem;
}
.pq-card-level {
  font-size: 1.2rem;
  font-weight: 600;
}

