/* Wer wird Bibel-Millionär? – Gestaltung
   Bühne bei Nacht in Lapislazuli und Blattgold. Bewusst nur ein dunkles Design,
   weil das Spiel für Beamer und abgedunkelte Säle gemacht ist. */

:root {
  color-scheme: dark;
  --nacht: #060A1C;
  --lapis-tief: #0A1540;
  --lapis: #16287A;
  --lapis-hell: #2B49B9;
  --gold: #E2B254;
  --gold-hell: #F8E6B0;
  --gold-dunkel: #8C6322;
  --silber: #C9D2EA;
  --text: #F3F5FC;
  --text-leise: #A3AED3;
  --linie: rgba(201, 210, 234, 0.34);
  --orange: #F39A2B;
  --orange-hell: #FFC46A;
  --orange-tief: #B85C0C;
  --gruen: #2DB55D;
  --gruen-hell: #7BE39A;
  --gruen-tief: #11692F;
  --rot: #D8454B;

  --f-titel: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --f-text: "Barlow Semi Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;

  --gr-frage: clamp(1.15rem, 0.7rem + 1.55vw, 2.7rem);
  --gr-antwort: clamp(1rem, 0.62rem + 1.2vw, 2.15rem);
  --gr-leiter: clamp(0.85rem, 0.45rem + 0.72vw, 1.4rem);
  --luecke: clamp(10px, 1.4vw, 28px);

  --innen-normal: radial-gradient(130% 160% at 50% -10%, var(--lapis-hell) 0%, var(--lapis) 42%, var(--lapis-tief) 100%);
  --innen-hover: radial-gradient(130% 160% at 50% -10%, #4665D6 0%, #1F37A0 45%, #0E1C55 100%);
  --innen-orange: linear-gradient(180deg, var(--orange-hell) 0%, var(--orange) 48%, var(--orange-tief) 100%);
  --innen-gruen: linear-gradient(180deg, var(--gruen-hell) 0%, var(--gruen) 48%, var(--gruen-tief) 100%);
  --rand-gold: linear-gradient(180deg, var(--gold-hell) 0%, var(--gold) 45%, var(--gold-dunkel) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: var(--f-text);
  font-weight: 500;
  background:
    radial-gradient(ellipse 70% 55% at 42% 112%, rgba(43, 73, 185, 0.55), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% -12%, rgba(22, 40, 122, 0.7), transparent 70%),
    var(--nacht);
  -webkit-font-smoothing: antialiased;
}

#sterne { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

button { font: inherit; color: inherit; }

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.4em;
  border: 1px solid var(--linie);
  border-bottom-width: 2px;
  border-radius: 4px;
  font: 600 0.78em/1.4 var(--f-text);
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--silber);
  background: rgba(10, 21, 64, 0.7);
}

.app {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-inline: clamp(16px, 2.6vw, 56px);
  overflow-x: clip;
}

.bild { flex: 1; min-height: 0; }

/* ---------- Rautenbalken (die typische Form der Show) ---------- */

.balken {
  --spitze: clamp(14px, 1.5vw, 30px);
  --form: polygon(var(--spitze) 0, calc(100% - var(--spitze)) 0, 100% 50%, calc(100% - var(--spitze)) 100%, var(--spitze) 100%, 0 50%);
  position: relative;
  display: grid; /* die Innenfläche füllt immer die volle Höhe, auch neben zweizeiligen Nachbarn */
  width: 100%;
  border: 0;
  padding: 2px;
  background: var(--rand-gold);
  clip-path: var(--form);
  cursor: pointer;
  text-align: left;
}
.balken-innen {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 2.5em;
  padding: 0.5em calc(var(--spitze) + 0.6em);
  background: var(--innen-normal);
  clip-path: var(--form);
  transition: filter 0.2s;
}
.balken:focus-visible { outline: none; }
.balken:focus-visible .balken-innen { background: var(--innen-hover); box-shadow: inset 0 0 0 3px var(--gold-hell); }
.balken:disabled { cursor: default; }

.balken.primaer .balken-innen { background: var(--innen-orange); color: #1E1102; font-weight: 700; }
.balken.primaer:hover .balken-innen, .balken.primaer:focus-visible .balken-innen { filter: brightness(1.08); }
.balken:not(.primaer):not(.antwort):not(.frage):not(.gewinn):hover .balken-innen { background: var(--innen-hover); }

/* Linie, die wie im Studio durch die Balken läuft */
.reihe { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2.4vw, 48px); }
.reihe.einzeln { grid-template-columns: 1fr; }
.reihe::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(16px, 2.6vw, 56px));
  right: calc(-1 * clamp(16px, 2.6vw, 56px));
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--linie) 12%, var(--linie) 88%, transparent);
  z-index: -1;
}

/* ---------- Startbild ---------- */

.start, .ende {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.6vh, 32px);
  padding-block: clamp(16px, 3vh, 40px);
  text-align: center;
}

.medaillon {
  width: clamp(13rem, 42vh, 27rem);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(43, 73, 185, 0.55));
}
.medaillon .m-klein { font: 600 30px var(--f-titel); letter-spacing: 0.32em; fill: var(--gold-hell); }
.medaillon .m-gross { font: 800 50px var(--f-titel); }
.medaillon .m-fuss { font: 600 15px var(--f-titel); letter-spacing: 0.42em; fill: var(--gold); }

.modus-wahl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 20rem));
  gap: clamp(12px, 2vw, 32px);
  width: 100%;
  justify-content: center;
}
.modus .balken-innen { flex-direction: column; gap: 0.1em; min-height: 4.4em; }
.modus-name { font: 800 clamp(1.1rem, 0.8rem + 1vw, 1.7rem) var(--f-titel); letter-spacing: 0.06em; color: var(--gold-hell); }
.modus-text { font-size: clamp(0.85rem, 0.75rem + 0.3vw, 1.05rem); color: var(--text-leise); line-height: 1.25; text-align: center; }
.modus[aria-checked="true"] { background: linear-gradient(180deg, #FFF6D6, var(--gold-hell) 40%, var(--gold)); }
.modus[aria-checked="true"] .balken-innen { background: var(--innen-hover); }
.modus[aria-checked="true"] .modus-text { color: var(--text); }
.modus[aria-checked="false"] .modus-name { color: var(--silber); }

.start-knoepfe {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 20rem));
  gap: clamp(12px, 2vw, 32px);
  width: 100%;
  justify-content: center;
}
.start-knoepfe .balken-innen { text-align: center; font-size: clamp(1rem, 0.85rem + 0.5vw, 1.35rem); font-weight: 600; letter-spacing: 0.02em; }

/* Fragenpaket der Woche */
.paket-bereich { position: relative; display: grid; justify-items: center; gap: 6px; width: min(100%, 42rem); }
.paket { width: 100%; }
.paket { background: linear-gradient(180deg, #FFF6D6, var(--gold-hell) 40%, var(--gold)); }
.paket .balken-innen { flex-direction: column; gap: 0.15em; min-height: 4.6em; text-align: center; }
.paket:disabled .balken-innen { background: var(--innen-normal); }
.paket-kopf { font-size: clamp(0.78rem, 0.7rem + 0.25vw, 0.95rem); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-hell); }
.paket-titel { font: 800 clamp(1.15rem, 0.85rem + 1.1vw, 1.9rem)/1.15 var(--f-titel); letter-spacing: 0.03em; color: var(--gold-hell); text-wrap: balance; }
.paket-zusatz { font-size: clamp(0.85rem, 0.75rem + 0.3vw, 1.05rem); color: var(--text); line-height: 1.25; }
.paket-naechstes { margin: 0; font-size: clamp(0.8rem, 0.75rem + 0.2vw, 0.95rem); color: var(--text-leise); }
/* Zähler wie bei einer neuen Nachricht */
.paket-zahl {
  position: absolute;
  top: -0.45em;
  right: clamp(4px, 3%, 24px);
  min-width: 1.7em;
  height: 1.7em;
  padding: 0 0.45em;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--rot);
  border: 2px solid var(--nacht);
  color: #fff;
  font: 700 clamp(0.85rem, 0.8rem + 0.2vw, 1rem)/1 var(--f-text);
  box-shadow: 0 2px 10px rgba(216, 69, 75, 0.55);
  pointer-events: none;
}
.paket-zahl.gross { position: static; font-size: 1.6rem; }
.start-zeile { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.hinweis-tafel { width: min(100%, 30rem); text-align: center; }
.hinweis-thema { margin: 0; font: 800 clamp(1.3rem, 1rem + 1.2vw, 2rem)/1.2 var(--f-titel); color: var(--gold-hell); text-wrap: balance; }
.hinweis-tafel .hilfe-regel { margin-top: -10px; }
.hinweis-frage { margin: 0; font-size: 1.05rem; font-weight: 600; }
.hinweis-knoepfe { display: grid; gap: 10px; width: min(100%, 16rem); }
.hinweis-knoepfe .balken { width: 100%; }

.pakete-tafel { width: min(100%, 36rem); }
.paket-liste { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 8px; }
.paket-zeile {
  width: 100%;
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0.55em 0.8em;
  border: 1px solid var(--linie);
  border-radius: 12px;
  background: rgba(10, 21, 64, 0.6);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.paket-zeile:hover:not(:disabled), .paket-zeile:focus-visible { border-color: var(--gold); outline: none; }
.paket-zeile.kommt { opacity: 0.6; cursor: default; }
.pz-nr { font: 800 1.2rem var(--f-titel); color: var(--gold); text-align: center; }
.pz-text { display: grid; gap: 2px; }
.pz-titel { font-weight: 700; }
.pz-zusatz { font-size: 0.85rem; color: var(--text-leise); }
.pz-status { font-size: 0.9rem; font-weight: 700; color: var(--orange-hell); text-align: right; }

.ende-paket { margin: -0.4em 0 0; font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.3rem); font-weight: 600; color: var(--gold); text-wrap: balance; }
.ende-aktionen { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.teilen-status { flex-basis: 100%; margin: 0; max-width: 46ch; font-size: 0.95rem; color: var(--text-leise); white-space: pre-line; }
.teilen-status:empty { display: none; }

/* ---------- Rangliste (nur Website) ---------- */

/* Punkte und Eintragsformular am Ende eines offiziellen Pakets */
.ende.mit-rang { justify-content: flex-start; overflow-y: auto; gap: clamp(10px, 2vh, 24px); }
.ende.mit-rang > :first-child { margin-top: auto; }
.ende.mit-rang > :last-child { margin-bottom: auto; }
.ende.mit-rang .ende-betrag { font-size: clamp(2.6rem, 1.2rem + 5vw, 6.5rem); }
.rang-ende {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(100%, 34rem);
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(226, 178, 84, 0.45);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 40, 122, 0.6), rgba(6, 10, 28, 0.78));
}
.rang-ende-titel { margin: 0; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.rang-punkte { margin: 0; font: 800 clamp(1.6rem, 1rem + 2vw, 2.6rem)/1.1 var(--f-titel); font-variant-numeric: lining-nums; color: var(--gold-hell); }
.rang-aufschluesselung { margin: 0; font-size: 0.95rem; color: var(--text-leise); font-variant-numeric: tabular-nums; }
.rang-formular { display: grid; gap: 10px; width: 100%; margin-top: 4px; text-align: left; }
.rang-feld { font-weight: 600; }
#rang-name {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.45em 0.8em;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: rgba(6, 10, 28, 0.75);
  color: var(--text);
  font: 600 1.05rem var(--f-text);
}
#rang-name::placeholder { color: var(--text-leise); opacity: 0.7; }
#rang-name:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: 1px; border-color: var(--gold); }
.rang-einverstanden { font-size: 0.92rem; color: var(--text-leise); }
.rang-einverstanden input:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: 2px; }
.rang-einverstanden a { color: var(--gold-hell); text-underline-offset: 0.2em; }
.rang-einverstanden a:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: 2px; border-radius: 2px; }
.rang-formular .feld-knopf { justify-self: center; min-height: 2.75rem; padding-inline: 1.8em; font-size: 1.05rem; }
.rang-status { margin: 0; max-width: 46ch; font-size: 0.95rem; font-weight: 600; color: var(--text-leise); }
.rang-status:empty { display: none; }
.rang-status.fehler { color: #FFC2C5; }
.rang-status.erfolg { font: 800 clamp(1.15rem, 0.9rem + 0.8vw, 1.5rem) var(--f-titel); color: var(--gold-hell); }

/* Überlage mit Wochenpaket und Saison */
.rangliste-tafel { width: min(100%, 36rem); }
.rang-blaettern { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; align-items: center; gap: 8px; width: 100%; }
.rang-blaettern .feld-knopf { height: 2.75rem; padding: 0; font-size: 1.5rem; line-height: 1; }
.rang-blaettern.saison .feld-knopf { visibility: hidden; }
.rang-was { margin: 0; font-weight: 700; text-align: center; color: var(--gold-hell); text-wrap: balance; }
.rang-tabelle { width: 100%; border-collapse: separate; border-spacing: 0 4px; table-layout: fixed; font-size: 0.98rem; font-variant-numeric: tabular-nums lining-nums; }
.rang-tabelle th { padding: 0 0.5em; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; text-align: left; color: var(--text-leise); }
.rang-tabelle th:first-child { width: 4.2em; text-align: center; }
.rang-tabelle th:nth-child(3) { width: 5.4em; }
.rang-tabelle th:nth-child(4) { width: 6.6em; }
.rang-tabelle th:nth-child(n+3), .rang-tabelle td:nth-child(n+3) { text-align: right; }
.rang-tabelle td { padding: 0.45em 0.5em; border-block: 1px solid var(--linie); background: #0B1647; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rang-tabelle td:first-child { border-left: 1px solid var(--linie); border-radius: 10px 0 0 10px; font: 800 1rem var(--f-titel); text-align: center; color: var(--gold); }
.rang-tabelle td:last-child { border-right: 1px solid var(--linie); border-radius: 0 10px 10px 0; color: var(--text-leise); }
.rang-tabelle tr.eigen td { border-color: var(--gold); background: linear-gradient(180deg, #3552C8, #172B86); color: var(--gold-hell); }
.rang-tabelle .rang-luecke td { padding-block: 0; border: 0; background: none; text-align: center; color: var(--text-leise); }
.rang-du { margin-left: 0.4em; padding: 0 0.45em; border-radius: 999px; background: rgba(226, 178, 84, 0.25); font-size: 0.78em; font-weight: 700; color: var(--gold-hell); }
.rang-meldung { margin: 0; text-align: center; color: var(--text-leise); }
.rang-meldung:empty { display: none; }

/* Kompakte Top 10 neben dem Startmenü – nur, wenn daneben Platz ist */
.rang-kompakt { display: none; }
@media (min-width: 1300px) and (min-height: 640px) {
  .rang-kompakt {
    position: absolute;
    top: 50%;
    right: clamp(16px, 2.6vw, 56px);
    transform: translateY(-50%);
    display: grid;
    gap: 10px;
    justify-items: center;
    width: 16rem;
    padding: 16px;
    border: 1px solid rgba(226, 178, 84, 0.3);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(10, 21, 64, 0.82), rgba(6, 10, 28, 0.9));
  }
}
.rang-kompakt-titel { margin: 0; font: 800 1rem var(--f-titel); letter-spacing: 0.06em; color: var(--gold-hell); }
.rang-kompakt-liste { display: grid; gap: 3px; width: 100%; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; font-variant-numeric: tabular-nums lining-nums; }
.rang-kompakt-liste li { display: grid; grid-template-columns: 1.8em minmax(0, 1fr) auto; gap: 8px; padding: 0.2em 0.5em; border-radius: 8px; text-align: left; }
.rang-kompakt-liste li.eigen { background: var(--innen-hover); box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-hell); }
.rang-kompakt-liste .rang-luecke { display: block; padding: 0; text-align: center; color: var(--text-leise); }
.rk-platz { font-weight: 700; text-align: right; color: var(--gold); }
.rk-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-punkte { color: var(--text-leise); }
.rang-kompakt-leer { margin: 0; font-size: 0.9rem; text-align: center; color: var(--text-leise); }

/* ---------- Spielbild ---------- */

.spiel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(15rem, 23vw, 25rem);
  gap: clamp(16px, 2.4vw, 48px);
  padding-block: clamp(12px, 2.2vh, 32px) clamp(8px, 1.2vh, 16px);
}
.buehne, .einstieg { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.einstieg { padding-block: clamp(12px, 2.2vh, 32px) clamp(8px, 1.2vh, 16px); }

.kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.marke { font: 800 clamp(0.95rem, 0.7rem + 0.7vw, 1.4rem) var(--f-titel); letter-spacing: 0.08em; color: var(--gold-hell); }
.chip {
  padding: 0.15em 0.8em;
  border: 1px solid rgba(226, 178, 84, 0.55);
  border-radius: 999px;
  font-size: clamp(0.8rem, 0.7rem + 0.3vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.kopf-betrag { margin-left: auto; font-weight: 600; color: var(--text-leise); font-variant-numeric: tabular-nums; }

.mitte {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.6vh, 20px);
  padding-block: clamp(12px, 2vh, 24px);
}

.buehne-unten { display: grid; gap: clamp(10px, 1.8vh, 22px); }
.antworten { display: grid; gap: clamp(10px, 1.8vh, 22px); }

.frage { --spitze: clamp(18px, 2.2vw, 44px); cursor: default; }
.frage .balken-innen {
  min-height: 3.3em;
  padding-block: 0.6em;
  font-size: var(--gr-frage);
  font-weight: 600;
  line-height: 1.22;
  text-align: center;
  text-wrap: balance;
}

.antwort .balken-innen {
  justify-content: flex-start;
  min-height: 2.35em;
  font-size: var(--gr-antwort);
  line-height: 1.15;
}
.buchstabe { flex: none; font-weight: 700; color: var(--orange); }
.antwort .text { font-weight: 600; }
#antworten.waehlbar .antwort:not(.weg):not(.gewaehlt):hover .balken-innen { background: var(--innen-hover); }

.antwort.verdeckt .buchstabe, .antwort.verdeckt .text { visibility: hidden; }
.antwort.weg { opacity: 0.55; }
.antwort.weg .buchstabe, .antwort.weg .text { visibility: hidden; }

/* Gesperrte Antworten lassen das Antippen zur Bühne durch (verdeckte Antworten sofort zeigen) */
.antwort:disabled { pointer-events: none; }

.antwort.gewaehlt .balken-innen { background: var(--innen-orange); color: #1E1102; }
.antwort.gewaehlt .buchstabe { color: #FFFFFF; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.antwort.falsch .balken-innen { background: linear-gradient(180deg, #F59A9E 0%, var(--rot) 48%, #7A1A1F 100%); color: #FFFFFF; }
.antwort.falsch .buchstabe { color: #FFFFFF; }

.antwort.richtig .balken-innen { background: var(--innen-gruen); color: #04200D; animation: gruen-blinken 1.35s linear 1; }
.antwort.richtig .buchstabe { color: #FFFFFF; }
@keyframes gruen-blinken {
  0%, 24% { background: var(--innen-gruen); }
  25%, 49% { background: var(--innen-normal); color: var(--text); }
  50%, 74% { background: var(--innen-gruen); }
  75%, 99% { background: var(--innen-normal); color: var(--text); }
  100% { background: var(--innen-gruen); }
}

.frage-neu { animation: herein 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes herein { from { opacity: 0; transform: translateY(14px) scaleX(0.96); } to { opacity: 1; transform: none; } }
.antwort.aufgedeckt .text, .antwort.aufgedeckt .buchstabe { animation: aufblenden 0.35s ease-out; }
@keyframes aufblenden { from { opacity: 0; } to { opacity: 1; } }

/* Einblendung nach der Auflösung */
.banner { display: grid; justify-items: center; gap: 0.35em; width: min(100%, 44rem); text-align: center; }
.banner .gewinn { --spitze: clamp(18px, 2vw, 36px); width: auto; min-width: min(100%, 22rem); cursor: default; }
.banner .gewinn .balken-innen {
  padding-inline: calc(var(--spitze) + 1.2em);
  font: 800 clamp(1.5rem, 0.9rem + 2.4vw, 3.6rem) var(--f-titel);
  letter-spacing: 0.04em;
  color: var(--gold-hell);
  font-variant-numeric: lining-nums;
}
.banner.falsch .gewinn .balken-innen { color: var(--text); font-size: clamp(1.3rem, 0.8rem + 1.8vw, 2.8rem); }
.banner.falsch .banner-zusatz { text-transform: none; letter-spacing: 0.01em; font-size: clamp(1.1rem, 0.85rem + 1vw, 2rem); color: var(--gruen-hell); }
.banner-zusatz { margin: 0.2em 0 0; font-size: clamp(1rem, 0.8rem + 0.6vw, 1.5rem); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.banner-stelle { margin: 0; font-size: clamp(1rem, 0.8rem + 0.7vw, 1.7rem); font-weight: 600; color: var(--text); }
.banner-info { margin: 0; max-width: 60ch; font-size: clamp(0.95rem, 0.8rem + 0.5vw, 1.35rem); line-height: 1.35; color: var(--text-leise); text-wrap: balance; }
.banner-zusatz:empty, .banner-info:empty { display: none; }
.banner:not([hidden]) { animation: herein 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* Bibeltext – nach der Auflösung und beim Bibel-Joker */
.banner { max-height: 100%; overflow-y: auto; }
.banner-bibel, .feld-bibel {
  margin: 0.2em 0 0;
  max-width: 62ch;
  max-height: 30vh;
  overflow-y: auto;
  padding: 0.55em 1em;
  border-left: 3px solid var(--gold);
  background: rgba(6, 10, 28, 0.55);
  font-size: clamp(0.95rem, 0.78rem + 0.55vw, 1.4rem);
  font-weight: 500;
  line-height: 1.42;
  text-align: left;
  color: var(--text);
}
.banner-bibel sup, .feld-bibel sup { margin-right: 0.2em; font-size: 0.62em; font-weight: 700; color: var(--gold); }
.bibel-abschnitt { display: block; margin-top: 0.35em; font-size: 0.78em; font-weight: 700; color: var(--gold); }
.bibel-abschnitt:first-child { margin-top: 0; }
.feld-bibel { max-height: 24vh; }
.feld-antwort {
  margin: 0;
  max-width: 44ch;
  padding: 0.5em 0.9em;
  border-radius: 14px 14px 14px 4px;
  background: rgba(248, 230, 176, 0.12);
  border: 1px solid rgba(226, 178, 84, 0.45);
  font-size: clamp(1rem, 0.85rem + 0.5vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
}

.start-einstellungen {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4em 1em;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: rgba(10, 21, 64, 0.6);
  color: var(--silber);
  font-size: clamp(0.85rem, 0.8rem + 0.2vw, 1rem);
  font-weight: 600;
  cursor: pointer;
}
.start-einstellungen:hover, .start-einstellungen:focus-visible { border-color: var(--gold); color: var(--text); outline: none; }

/* Sprachwahl – bis die Texte der gewählten Sprache stehen, bleibt die Seite unsichtbar */
html[data-sprache-wartet] body { visibility: hidden; }
.sprach-wahl, .umschalter { display: inline-flex; border: 1px solid var(--linie); border-radius: 999px; background: rgba(10, 21, 64, 0.6); padding: 3px; gap: 2px; }
.sprach-wahl button, .umschalter button {
  min-height: 32px;
  padding: 0.25em 0.95em;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--silber);
  font: 600 clamp(0.8rem, 0.75rem + 0.2vw, 0.95rem) var(--f-text);
  cursor: pointer;
}
.sprach-wahl button[aria-checked="true"], .umschalter button[aria-checked="true"] { background: rgba(226, 178, 84, 0.2); color: var(--gold-hell); }
.sprach-wahl button:hover, .sprach-wahl button:focus-visible, .umschalter button:hover, .umschalter button:focus-visible { color: var(--text); outline: none; box-shadow: inset 0 0 0 1px var(--gold); }

/* Einstellungen */
.hilfe-tafel.einstellungen-tafel { width: min(100%, 48rem); justify-items: stretch; gap: 18px; }
.e-gruppe { display: grid; gap: 10px; }
.e-gruppe h3 { margin: 0; font: 800 1rem var(--f-titel); letter-spacing: 0.08em; color: var(--gold); }
.e-label { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--text-leise); }
.wahl-reihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wahl-reihe.klein { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wahl {
  display: grid;
  gap: 2px;
  padding: 0.6em 0.9em;
  border: 1px solid var(--linie);
  border-radius: 12px;
  background: rgba(10, 21, 64, 0.7);
  text-align: left;
  cursor: pointer;
}
.wahl:hover, .wahl:focus-visible { border-color: var(--gold); outline: none; }
.wahl[aria-checked="true"] { border-color: var(--gold); background: var(--innen-hover); box-shadow: 0 0 0 1px var(--gold); }
.wahl-name { font-weight: 700; color: var(--text); }
.wahl[aria-checked="true"] .wahl-name { color: var(--gold-hell); }
.wahl-text { font-size: 0.9rem; line-height: 1.3; color: var(--text-leise); }
.stil-liste { display: grid; gap: 8px; }
.stil-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.probe {
  padding: 0 1em;
  border: 1px solid var(--linie);
  border-radius: 12px;
  background: rgba(10, 21, 64, 0.7);
  font-weight: 600;
  color: var(--silber);
  cursor: pointer;
  white-space: nowrap;
}
.probe:hover, .probe:focus-visible { border-color: var(--gold); color: var(--text); outline: none; }
.regler-reihe { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.regler-reihe input { width: 100%; accent-color: var(--orange); }
.schalter { display: flex; gap: 10px; align-items: flex-start; line-height: 1.35; cursor: pointer; }
.schalter input { width: 1.15em; height: 1.15em; margin-top: 0.1em; accent-color: var(--orange); flex: none; }
.einstellungen-tafel .balken { justify-self: center; }

/* ---------- Joker ---------- */

.joker-feld {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.6vw, 44px);
  width: min(100%, 54rem);
  max-height: 100%;
  padding: clamp(14px, 1.8vw, 26px) clamp(16px, 2.4vw, 36px);
  border: 1px solid rgba(226, 178, 84, 0.45);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 40, 122, 0.88), rgba(6, 10, 28, 0.92));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.feld-text { display: grid; justify-items: start; gap: clamp(6px, 1.1vh, 12px); }
.joker-feld:not([hidden]) { animation: herein 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.feld-titel { margin: 0; font: 800 clamp(1.1rem, 0.8rem + 1vw, 1.9rem) var(--f-titel); letter-spacing: 0.06em; color: var(--gold-hell); }
.feld-hinweis { margin: 0; max-width: 52ch; font-size: clamp(0.9rem, 0.8rem + 0.35vw, 1.2rem); color: var(--text-leise); }
.feld-stelle { margin: 0; font: 800 clamp(1.5rem, 0.9rem + 2.2vw, 3.2rem)/1.1 var(--f-titel); color: var(--text); }
.feld-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.feld-knopf {
  padding: 0.45em 1em;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: rgba(10, 21, 64, 0.8);
  font-weight: 600;
  cursor: pointer;
}
.feld-knopf:hover, .feld-knopf:focus-visible { border-color: var(--gold); outline: none; }
.feld-knopf.haupt { background: var(--innen-orange); color: #1E1102; border-color: transparent; }
.rang-formular .feld-knopf.haupt:focus-visible { box-shadow: 0 0 0 2px var(--nacht), 0 0 0 4px var(--gold-hell); }
.feld-knopf:disabled { opacity: 0.4; cursor: default; }
.feld-knopf:disabled:hover { border-color: var(--linie); }
.feld-knopf.nachfrage { border-color: var(--rot); color: #FFD5D7; background: rgba(120, 20, 26, 0.6); }

.diagramm {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 32px);
  width: clamp(15rem, 24vw, 26rem);
  max-width: 100%;
}
.saeule { display: grid; justify-items: center; gap: 6px; }
.saeule.weg { opacity: 0.3; }
.saeule-prozent { font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.5rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.saeule-schacht {
  position: relative;
  width: 100%;
  max-width: 4.2rem;
  height: clamp(4.5rem, 14vh, 10rem);
  border: 1px solid var(--linie);
  background: rgba(6, 10, 28, 0.6);
}
.saeule-fuellung {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--orange-hell), var(--orange) 60%, var(--orange-tief));
  transition: height 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.saeule-buchstabe { font: 800 clamp(1rem, 0.8rem + 0.7vw, 1.6rem) var(--f-titel); color: var(--gold-hell); }
.saeule-knoepfe { display: flex; gap: 4px; }
.saeule-knoepfe button {
  width: 2.1em; height: 2.1em;
  border: 1px solid var(--linie);
  border-radius: 50%;
  background: rgba(10, 21, 64, 0.8);
  font-weight: 700;
  cursor: pointer;
}
.saeule-knoepfe button:hover, .saeule-knoepfe button:focus-visible { border-color: var(--gold); outline: none; }

/* Countdown-Uhr */
.uhr { position: relative; display: grid; place-items: center; width: clamp(5.5rem, 15vh, 10rem); aspect-ratio: 1; max-width: 100%; }
.uhr:empty { display: none; }
.uhr svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.uhr-grund { fill: rgba(6, 10, 28, 0.7); stroke: rgba(201, 210, 234, 0.18); stroke-width: 6; }
.uhr-bogen { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; }
.uhr.knapp .uhr-bogen { stroke: var(--orange); }
.uhr-zahl { position: relative; font: 800 clamp(2rem, 1.2rem + 3vh, 3.8rem) var(--f-titel); font-variant-numeric: tabular-nums lining-nums; color: var(--text); }
.uhr.knapp .uhr-zahl { color: var(--orange-hell); }

/* ---------- Gewinnleiter ---------- */

.leiter {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.4vh, 16px);
  min-height: 0;
  padding: clamp(10px, 1.3vw, 20px);
  border: 1px solid rgba(226, 178, 84, 0.3);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(10, 21, 64, 0.82), rgba(6, 10, 28, 0.9));
}

.joker-leiste { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(6px, 0.7vw, 12px); }
.joker {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.55;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--innen-normal);
  color: var(--text);
  cursor: pointer;
}
.joker svg { width: 62%; height: auto; }
.joker-50 { font-size: clamp(0.72rem, 0.45rem + 0.6vw, 1.15rem); font-weight: 700; letter-spacing: 0.02em; }
.joker:hover:not(:disabled), .joker:focus-visible { background: var(--innen-hover); outline: none; box-shadow: 0 0 0 2px var(--gold-hell); }
.joker.benutzt { opacity: 0.45; cursor: default; }
.joker.benutzt::after {
  content: "";
  position: absolute;
  inset: 12% 22%;
  background:
    linear-gradient(to top right, transparent calc(50% - 2px), var(--rot) calc(50% - 2px), var(--rot) calc(50% + 2px), transparent calc(50% + 2px)),
    linear-gradient(to top left, transparent calc(50% - 2px), var(--rot) calc(50% - 2px), var(--rot) calc(50% + 2px), transparent calc(50% + 2px));
}

.stufen {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-auto-rows: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--gr-leiter);
  font-variant-numeric: tabular-nums lining-nums;
}
.stufe {
  --spitze: 0.7em;
  display: grid;
  grid-template-columns: 2em 1.1em 1fr;
  align-items: center;
  padding-inline: 0.9em;
  font-weight: 600;
  color: var(--gold);
  clip-path: polygon(var(--spitze) 0, calc(100% - var(--spitze)) 0, 100% 50%, calc(100% - var(--spitze)) 100%, var(--spitze) 100%, 0 50%);
}
.stufe-nr { text-align: right; padding-right: 0.3em; opacity: 0.8; }
.stufe-raute { visibility: hidden; font-size: 0.7em; text-align: center; color: var(--gold-hell); }
.stufe-betrag { text-align: right; }
.stufe.sicher { color: var(--text); font-weight: 700; }
.stufe.million .stufe-betrag { font-family: var(--f-titel); font-weight: 800; letter-spacing: 0.04em; }
.stufe.erreicht .stufe-raute { visibility: visible; }
.stufe.aktuell { background: var(--innen-orange); color: #1E1102; }
.stufe.aktuell .stufe-raute { color: #1E1102; }
.stufe.aktuell .stufe-nr { opacity: 1; }
.leiter-fuss { margin: 0; font-size: 0.78rem; letter-spacing: 0.06em; text-align: center; color: var(--text-leise); opacity: 0.8; }

/* ---------- Einstiegsfrage ---------- */

.einstieg-auftrag { margin: 0; font-size: clamp(1rem, 0.8rem + 0.7vw, 1.6rem); font-weight: 600; color: var(--text-leise); text-align: center; }
.loesung { margin: 0; min-height: 1.3em; font: 800 clamp(1.4rem, 0.9rem + 2.2vw, 3.2rem) var(--f-titel); letter-spacing: 0.2em; color: var(--gold-hell); }
.platz {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.6em; height: 1.6em;
  margin-left: auto;
  border-radius: 50%;
  background: #04200D;
  color: var(--gruen-hell);
  font: 800 0.85em var(--f-titel);
}
.einstieg .antwort.richtig .balken-innen { animation: none; }
#einstieg-antworten .antwort:not(:disabled):not(.gewaehlt):hover .balken-innen { background: var(--innen-hover); }
.antwort.gewaehlt .platz { background: #1E1102; color: var(--orange-hell); }
.einstieg-ergebnis { margin: 0; font: 800 clamp(1.1rem, 0.85rem + 1vw, 1.9rem) var(--f-titel); color: var(--gruen-hell); text-align: center; text-wrap: balance; }
.einstieg-ergebnis.falsch { color: var(--orange-hell); }

/* ---------- Hinweise und Fortsetzen ---------- */

.tipp {
  margin: 0;
  padding: 0.5em 0.9em;
  border: 1px dashed rgba(226, 178, 84, 0.55);
  border-radius: 12px;
  background: rgba(10, 21, 64, 0.75);
  font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.15rem);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--gold-hell);
}
.fortsetzen { width: min(100%, 42rem); background: linear-gradient(180deg, #FFF6D6, var(--gold-hell) 40%, var(--gold)); }
.fortsetzen .balken-innen { flex-direction: column; gap: 0.1em; min-height: 3.6em; text-align: center; background: var(--innen-hover); }
.fortsetzen-titel { font: 800 clamp(1.05rem, 0.85rem + 0.8vw, 1.5rem) var(--f-titel); letter-spacing: 0.04em; color: var(--gold-hell); }
.fortsetzen-zusatz { font-size: clamp(0.85rem, 0.75rem + 0.3vw, 1.05rem); color: var(--text); }

/* ---------- Zusammen spielen ---------- */

.mehr-tafel { justify-content: center; }
.mehr-runde { margin: 0; font: 800 clamp(0.95rem, 0.75rem + 0.6vw, 1.35rem) var(--f-titel); letter-spacing: 0.04em; text-align: center; color: var(--gold-hell); }
.mehr-liste { display: grid; gap: 8px; width: 100%; margin: 0; padding: 0; list-style: none; }
.mehr-liste li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0.5em 0.8em;
  border: 1px solid var(--linie);
  border-radius: 12px;
  background: rgba(10, 21, 64, 0.6);
  font-size: var(--gr-leiter);
  text-align: left;
}
.mehr-liste li.dran { border-color: var(--team, var(--gold)); background: var(--innen-hover); box-shadow: 0 0 0 1px var(--team, var(--gold)); }
.team-punkt { width: 0.9em; height: 0.9em; border-radius: 50%; background: var(--team); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }
.team-name { font-weight: 700; overflow-wrap: anywhere; }
.team-punkte { font-weight: 800; font-variant-numeric: tabular-nums lining-nums; color: var(--gold-hell); }
.chip.team { border-color: var(--team); border-width: 2px; color: var(--text); }
.ende-teams { width: min(100%, 30rem); }
.wahl-reihe.zahlen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wahl-reihe.zahlen .wahl { min-height: 48px; justify-items: center; font-size: 1.2rem; }
.mehr-wahl .hinweis-knoepfe { justify-self: center; }

/* ---------- Ende ---------- */

.ende-titel { margin: 0; font: 800 clamp(1.8rem, 1rem + 3vw, 4.2rem) var(--f-titel); letter-spacing: 0.04em; color: var(--text); text-wrap: balance; }
.ende-label { margin: 0; font-size: clamp(0.9rem, 0.8rem + 0.4vw, 1.2rem); font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.ende-betrag {
  margin: -0.1em 0 0;
  font: 800 clamp(3rem, 1.5rem + 7vw, 9rem)/1 var(--f-titel);
  font-variant-numeric: lining-nums;
  background: linear-gradient(180deg, #FFF6D6 10%, var(--gold) 55%, var(--gold-dunkel) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 30px rgba(226, 178, 84, 0.3));
}
.ende-text { margin: 0; max-width: 46ch; font-size: clamp(1.05rem, 0.85rem + 0.7vw, 1.7rem); font-weight: 600; text-wrap: balance; }
.ende-fuss { margin: 0; font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.25rem); font-style: italic; color: var(--text-leise); }

/* ---------- Steuerleiste ---------- */

.steuer {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-block: 8px calc(10px + env(safe-area-inset-bottom, 0px));
  transition: opacity 0.5s;
}
/* Abdunkeln nur mit Maus und Beamer – auf dem Handy bleiben die Knöpfe immer gut sichtbar */
@media (hover: hover) and (pointer: fine) {
  .steuer.ruhig { opacity: 0.16; }
}
.steuer:hover, .steuer:focus-within { opacity: 1; }
.steuer button {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.35em 0.85em;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: rgba(10, 21, 64, 0.7);
  color: var(--silber);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.steuer button:hover:not(:disabled), .steuer button:focus-visible { border-color: var(--gold); color: var(--text); outline: none; }
.steuer button:disabled { opacity: 0.45; cursor: default; }
.steuer .steuer-haupt { border-color: rgba(243, 154, 43, 0.7); color: var(--orange-hell); }
.steuer .nachfrage { border-color: var(--rot); color: #FFD5D7; background: rgba(120, 20, 26, 0.6); }

/* ---------- Hilfe ---------- */
.online-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.2rem; font-size: 0.85rem; }
.online-links a { color: var(--text-leise); text-underline-offset: 0.2em; }
.online-links a:hover, .online-links a:focus-visible { color: var(--gold-hell); }
.rechtsseite { max-width: 48rem; margin: 0 auto; padding: 2rem 1.25rem; line-height: 1.6; }
.rechtsseite h1, .rechtsseite h2 { color: var(--gold-hell); }
.rechtsseite a { color: var(--gold-hell); }
.rechtsseite code { overflow-wrap: anywhere; }

.ueberlage {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(6, 10, 28, 0.86);
}
.hilfe-tafel {
  display: grid;
  gap: 16px;
  justify-items: center;
  width: min(100%, 40rem);
  max-height: 100%;
  overflow: auto;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid rgba(226, 178, 84, 0.45);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--lapis-tief), var(--nacht));
}
.hilfe-tafel h2 { margin: 0; font: 800 clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem) var(--f-titel); color: var(--gold-hell); text-align: center; }
.regeln { display: grid; gap: 10px; margin: 0; padding-left: 1.2em; width: 100%; font-size: 1.02rem; line-height: 1.4; text-align: left; color: var(--text-leise); }
.regeln b { color: var(--text); }
.regeln li::marker { color: var(--gold); }
.nur-tastatur { display: grid; gap: 12px; width: 100%; padding-top: 14px; border-top: 1px solid var(--linie); }
.nur-tastatur h3 { margin: 0; font: 800 1rem var(--f-titel); letter-spacing: 0.06em; text-align: center; color: var(--gold); }
.tasten { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; width: 100%; font-size: 1.02rem; }
.tasten dt { text-align: right; white-space: nowrap; }
.tasten dd { margin: 0; color: var(--text-leise); }
.hilfe-regel { margin: 0; font-size: 0.95rem; color: var(--text-leise); text-align: center; }
.hilfe-tafel .balken { width: min(100%, 16rem); }

/* ---------- Schmale Bildschirme (Handy, Tablet hochkant) ---------- */

@media (max-width: 860px), (max-height: 520px) {
  body { overflow: auto; }
  .app { height: auto; min-height: 100%; }
  .bild { flex: 1 0 auto; min-height: auto; }
  .spiel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; }
  .buehne { gap: 10px; }
  .leiter { order: -1; flex-direction: row; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 8px 16px; padding: 10px; }
  .joker-leiste { flex: 1 1 15rem; max-width: 24rem; }
  .joker { aspect-ratio: 1.8; }
  .stufen { flex: 1 1 10rem; display: block; }
  .stufe:not(.aktuell) { display: none; }
  .stufe { padding-block: 0.35em; }
  .leiter-fuss { display: none; }
  .kopf-betrag { display: none; }
  .mitte { min-height: 0; flex: none; padding-block: 0; }
  .mehr-tafel { flex-direction: column; align-items: stretch; gap: 6px; }
  .mehr-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .mehr-liste li { padding: 0.35em 0.6em; font-size: 0.98rem; }
}

/* Handy: Steuerleiste während des Spiels unten angeheftet, der Hauptknopf groß und farbig */
@media (max-width: 860px) {
  .steuer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-inline: calc(-1 * clamp(16px, 2.6vw, 56px));
    padding: 8px clamp(16px, 2.6vw, 56px) calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(6, 10, 28, 0.97);
    border-top: 1px solid var(--linie);
  }
  body:not([data-bild="spiel"]):not([data-bild="einstieg"]) .steuer { position: static; }
  .steuer button { flex: 1 1 0; min-width: 0; min-height: 44px; justify-content: center; padding: 4px 6px; text-align: center; line-height: 1.15; }
  .steuer .steuer-haupt { flex-basis: 100%; min-height: 52px; font-size: 1.1rem; }
  body[data-bild="spiel"] #knopf-einstellungen, body[data-bild="einstieg"] #knopf-einstellungen { display: none; }
  .steuer .steuer-haupt:not(:disabled) { border-color: transparent; background: var(--innen-orange); color: #1E1102; }
}

/* Touch-Geräte: keine Tastenkürzel anzeigen, ausreichend große Tippflächen */
@media (hover: none) and (pointer: coarse) {
  kbd, .nur-tastatur, #knopf-vollbild { display: none !important; }
  .start-einstellungen, .feld-knopf, .sprach-wahl button, .umschalter button, .probe { min-height: 44px; }
  .saeule-knoepfe button { width: 44px; height: 44px; }
}

@media (max-width: 700px) {
  .joker-feld { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .feld-text { justify-items: center; }
  .feld-knoepfe { justify-content: center; }
}

@media (max-width: 560px) {
  .wahl-reihe, .wahl-reihe.klein { grid-template-columns: minmax(0, 1fr); }
  .wahl-reihe.zahlen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .regler-reihe { grid-template-columns: auto minmax(0, 1fr); }
  .reihe { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .antworten { gap: 10px; }
  .modus-wahl, .start-knoepfe { grid-template-columns: minmax(0, 1fr); }
  .medaillon { width: min(45vw, 10rem); }
  .start { gap: 12px; padding-block: 12px; }
  .modus-wahl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .modus .balken-innen { padding-inline: 12px; }
  .tasten { grid-template-columns: 1fr; gap: 2px; }
  .tasten dt { text-align: left; margin-top: 8px; }
  .rang-tabelle { font-size: 0.88rem; }
  .rang-tabelle th:first-child { width: 3.4em; }
  .rang-tabelle th:nth-child(3) { width: 4.8em; }
  .rang-tabelle th:nth-child(4) { width: 6em; }
  .rang-tabelle th, .rang-tabelle td { padding-inline: 0.35em; }
  .rang-tabelle th { font-size: 0.68rem; letter-spacing: 0.02em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
/* Online-Räume öffnen sich in der Website, ohne die Adresse zu wechseln.
   Das Startbild tritt zurück, der Sternenhimmel bleibt und scheint durch den Raum hindurch. */
html.online-offen, html.online-offen body { overflow: hidden; }
html.online-offen .app { visibility: hidden; }
.online-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); }
.online-dialog::backdrop { background: transparent; }
.online-dialog iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; color-scheme: dark; }
