/* FACKELPFAD · Spielhülle „Belichteter Pfad“
   Brett zuerst, Status außerhalb des Canvas, vier eindeutige Aktionen.
   Keine dekorativen Verläufe, keine Glasflächen, keine künstliche Alterung. */
:root {
  --hintergrund: var(--farbe-hintergrund, #081317);
  --flaeche: var(--farbe-flaeche, #122A30);
  --text: var(--farbe-text, #E8DCC0);
  --gedaempft: var(--text-leise, #A8A38F);
  --akzent: var(--farbe-akzent, #D97932);
  --akzent-text: var(--farbe-akzent-text, #081317);
  --erfolg: var(--farbe-erfolg, #3E9D91);
  --warnung: var(--farbe-warnung, #D97932);
  --fehler: var(--farbe-fehler, #E17363);
  --fackel: var(--farbe-fackel, #D97932);
  --stein: var(--farbe-stein, #29454A);
  --sand: var(--farbe-sand, #E8DCC0);
  --messing: var(--farbe-gold, #E8DCC0);
  --tinte-farbe: var(--nachtplatte, #081317);
  --knopf: var(--tiefenblau, #122A30);
  --knopf-tief: var(--flaeche-tief, #0B1B20);
  --titelschrift: var(--schrift-anzeige);
  --textschrift: var(--schrift-text);
  --schmalschrift: var(--schrift-anzeige);
  --rand: var(--linie);
  --rand-stark: var(--linie-stark);
  --r-karte: var(--radius-klein, 2px);
  --r-knopf: var(--radius-klein, 2px);
  --vh: 100dvh;
  --vw: 100vw;
  --kreuz-klein: 44px;
  --kreuz-gross: clamp(52px, 15vw, 64px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; background: var(--hintergrund); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  position: fixed;
  inset: 0;
  min-width: 280px;
  height: var(--vh);
  overflow: hidden;
  background: var(--hintergrund);
  color: var(--text);
  font-family: var(--textschrift);
  font-size: 16px;
  line-height: 1.5;
  overscroll-behavior: none;
  touch-action: manipulation;
}

button,
input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
[hidden] { display: none !important; }

:focus-visible {
  outline: var(--fokus);
  outline-offset: 3px;
}

#app { position: absolute; inset: 0; }

.bildschirm {
  position: absolute;
  inset: 0;
  width: min(100%, 1240px);
  margin-inline: auto;
  padding:
    calc(8px + env(safe-area-inset-top))
    calc(12px + env(safe-area-inset-right))
    calc(8px + env(safe-area-inset-bottom))
    calc(12px + env(safe-area-inset-left));
  background: var(--hintergrund);
}

.bildschirm.menue {
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.karte {
  width: min(100%, 620px);
  margin: 0 auto 14px;
  padding: clamp(20px, 5vw, 36px);
  background: var(--flaeche);
  color: var(--text);
  border: 1px solid var(--rand-stark);
  border-left: 5px solid var(--fayence);
  border-radius: var(--r-karte);
}

.karte.mittig { margin-block: auto; }
.karte p { max-width: 68ch; margin: 9px 0; }
.klein { color: var(--gedaempft); font-size: .84rem; }
.blocker {
  width: fit-content;
  margin: 0 0 14px !important;
  padding: 5px 9px;
  border-left: 4px solid var(--fehler);
  color: var(--fehler);
  font-size: .82rem;
  font-weight: 700;
}

h2,
h3 {
  font-family: var(--titelschrift);
  font-stretch: condensed;
  text-wrap: balance;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 7vw, 2.7rem);
  line-height: 1;
}

h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 11px;
  background: var(--fayence);
}

h3 { margin: 22px 0 8px; font-size: 1.25rem; }

.knopf {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 10px 15px;
  border: 1px solid var(--rand-stark);
  border-radius: var(--r-knopf);
  background: var(--knopf);
  color: var(--text);
  font-weight: 700;
  transition: transform var(--dauer), background-color var(--dauer), color var(--dauer);
}

.knopf:hover:not(:disabled) { background: var(--flaeche-hell); }
.knopf:active:not(:disabled) { transform: translateY(2px); }
.knopf.haupt {
  border-color: var(--akzent);
  background: var(--akzent);
  color: var(--akzent-text);
}
.knopf.haupt:hover:not(:disabled) { border-color: var(--text); background: var(--text); }
.knopf.haupt.gross { min-height: 58px; font-size: 1.05rem; }
.knopf.gefahr { border-color: var(--fehler); color: var(--fehler); }
.knopf:disabled { opacity: .42; }

.reihe { display: flex; gap: 10px; }
.reihe > * { flex: 1 1 0; }

.textknopf {
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--gedaempft);
  text-decoration: underline;
  text-decoration-color: var(--rand-stark);
  text-underline-offset: 5px;
}
.textknopf:hover { color: var(--text); }

.ikonknopf {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--r-knopf);
  background: transparent;
  color: var(--gedaempft);
}
.ikonknopf:hover { border-color: var(--rand-stark); color: var(--text); }
.ikon { width: 20px; height: 20px; fill: currentColor; pointer-events: none; }

/* Titelseite */
#b-titel { padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
.titelkopf {
  width: min(100%, 720px);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--rand);
}
.vorschau-status {
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid var(--fehler);
  color: var(--gedaempft);
  font-size: .78rem;
}
.titelbuehne {
  width: min(100%, 720px);
  margin: auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "marke marke" "rest spur";
  align-items: center;
  gap: clamp(16px, 4vh, 34px) clamp(20px, 6vw, 64px);
  padding-block: clamp(24px, 6vh, 58px);
}
.titelmarke { grid-area: marke; }
.titelmarke img { display: block; width: min(100%, 480px); height: auto; aspect-ratio: 430 / 96; }
.unter {
  display: none;
  margin: 11px 0 0;
  color: var(--gedaempft);
  font-family: var(--schmalschrift);
  letter-spacing: .05em;
}
.titelspur {
  grid-area: spur;
  width: clamp(104px, 28vw, 190px);
  padding-left: clamp(12px, 3vw, 28px);
  border-left: 1px solid var(--rand-stark);
}
.titelspur img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.titelrest { grid-area: rest; min-width: 0; }
.einleitung { max-width: 40ch; margin: 0; color: var(--gedaempft); font-size: 1.03rem; }
.titelknoepfe { width: min(100%, 420px); margin-top: 20px; }
.nebenzeile {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 10px;
  margin-top: 5px;
}
.nebenzeile .textknopf { min-width: 0; font-size: .9375rem; }
.rechtszeile {
  width: min(100%, 720px);
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  border-top: 1px solid var(--rand);
}
.rechtszeile .textknopf,
.rechtszeile a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--gedaempft);
  font-size: .82rem;
  text-underline-offset: 5px;
}

/* Listen, Tabellen und Einweisung */
table.punkte {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
table.punkte tbody th,
table.punkte tbody td { padding: 9px 3px; border-bottom: 1px solid var(--rand); }
table.punkte td:last-child { text-align: right; font-weight: 700; }
table.punkte th { padding: 7px 3px; color: var(--gedaempft); font-size: .9375rem; text-align: left; }
table.punkte tbody th { color: var(--text); font-weight: 400; }
table.punkte th:last-child { text-align: right; }
.zeilenstatus { display: block; margin-top: 2px; }
table.punkte tr.summe > * { border-top: 2px solid var(--fayence); border-bottom: 0; color: var(--fayence); font-weight: 700; }
#ende-best { color: var(--fayence); font-weight: 700; }
#ende-best:empty { display: none; }
ul.regeln { margin: 10px 0 20px; padding: 0; list-style: none; }
ul.regeln li {
  position: relative;
  max-width: 68ch;
  margin: 0 0 13px;
  padding-left: 22px;
}
ul.regeln li::before {
  content: "";
  position: absolute;
  top: .68em;
  left: 0;
  width: 8px;
  height: 2px;
  background: var(--fayence);
}
.eingabe {
  width: 100%;
  min-height: 48px;
  margin: 8px 0;
  padding: 9px 4px;
  border: 0;
  border-bottom: 2px solid var(--rand-stark);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  user-select: text;
}
.eingabe:focus { border-color: var(--akzent); outline: none; }
.fortschritt {
  margin: 0 0 8px !important;
  color: var(--fayence);
  font-size: .82rem;
  font-weight: 700;
}
#ew-bild {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 14px auto;
  border: 1px solid var(--rand-stark);
  background: var(--hintergrund);
}

/* Rechtliches */
#impressum-zeilen {
  width: fit-content;
  margin: 16px 0 8px;
  padding: 12px 14px;
  border: 2px solid var(--fehler);
  color: var(--fehler);
  font-weight: 700;
}
#impressum-zeilen p { margin: 3px 0; }
#impressum-hinweis { padding-left: 12px; border-left: 3px solid var(--fehler); color: var(--fehler); }

/* Spielraster: Status liegt immer außerhalb des Canvas. */
#b-spiel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(150px, 1fr) minmax(38px, auto) auto;
  grid-template-areas:
    "kopf"
    "hud"
    "brett"
    "status"
    "steuer";
  gap: 5px;
  overflow: hidden;
}

.kopf {
  grid-area: kopf;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--rand);
}
.kopfspur { width: 30px; height: 30px; margin-left: 3px; }
.ebenenname {
  min-width: 0;
  flex: 1 1 auto;
  padding-inline: 10px;
  overflow: hidden;
  color: var(--text);
  font-family: var(--titelschrift);
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud {
  grid-area: hud;
  min-width: 0;
  min-height: 43px;
  display: grid;
  grid-template-columns: 1.05fr .9fr 1.8fr 1.45fr repeat(3, .72fr);
  border-block: 1px solid var(--rand-stark);
  background: var(--flaeche);
}
.chip {
  min-width: 0;
  min-height: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 4px;
  overflow: hidden;
  border-left: 1px solid var(--rand);
  white-space: nowrap;
}
.chip:first-child { border-left: 0; }
.chip .ikon { width: 14px; height: 14px; color: var(--text-leise); }
.chip b {
  min-width: 0;
  overflow: hidden;
  font-family: var(--schrift-zahl);
  font-size: .9375rem;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
}
.chip.fackel .ikon { color: var(--fackel); }
.chip.leben .herz { width: 12px; height: 12px; color: var(--gefahr); }
.chip.leben .herz.weg { color: var(--stein); }
.chip.leer { color: var(--gedaempft); }
.chip.leer .ikon { opacity: .45; }
.balken {
  position: relative;
  min-width: 18px;
  height: 9px;
  flex: 1 1 auto;
  overflow: hidden;
  border: 1px solid var(--rand-stark);
  background: var(--hintergrund);
}
.balken i { display: block; width: 100%; height: 100%; background: var(--fackel); transition: width var(--dauer); }
.chip.fackel.knapp .balken i { background: var(--fehler); }

.brettraum {
  grid-area: brett;
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#brett {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border: 1px solid var(--rand-stark);
  border-radius: var(--r-karte);
  background: var(--hintergrund);
  touch-action: pinch-zoom;
}
#brett:focus-visible {
  outline: var(--fokus);
  outline-offset: -3px;
}

#brett.erschuettert { animation: erschuetterung 180ms steps(4, end); }
@keyframes erschuetterung {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 2px); }
  50% { transform: translate(3px, -2px); }
  75% { transform: translate(-2px, -1px); }
  100% { transform: translate(0, 0); }
}

.statusraum {
  grid-area: status;
  position: relative;
  min-width: 0;
  min-height: 48px;
  overflow: hidden;
  border-block: 1px solid var(--rand);
  background: var(--flaeche-tief);
}
.meldung {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 7px 10px;
  overflow: hidden;
  color: var(--text);
  font-size: .9375rem;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}
.meldung:empty::before { content: "Tippe auf einen entdeckten Weg."; color: var(--gedaempft); }
.banner {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 10px;
  background: var(--flaeche);
  text-align: center;
  border-inline-start: 4px solid var(--fayence);
}
.banner::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: var(--fayence);
  content: "";
  transform: rotate(45deg);
}
.banner .btitel {
  color: var(--fayence);
  font-family: var(--titelschrift);
  font-size: .9375rem;
  white-space: nowrap;
}
.banner.gefahr { border-inline-start-color: var(--gefahr); }
.banner.gefahr::before {
  background: var(--gefahr);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: none;
}
.banner.gefahr .btitel { color: var(--gefahr); }
.banner .btext {
  min-width: 0;
  overflow: hidden;
  color: var(--text-leise);
  font-size: .8125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.steuer {
  grid-area: steuer;
  min-width: 0;
  display: flex;
  align-items: end;
  gap: 8px;
}
.taten {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}
.tat {
  min-width: 0;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 4px;
  border: 1px solid var(--rand-stark);
  border-bottom-width: 3px;
  border-radius: var(--r-knopf);
  background: var(--knopf);
  color: var(--text);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
}
.tat > span { min-width: 0; hyphens: auto; overflow-wrap: anywhere; }
.tat .ikon { width: 17px; height: 17px; flex: 0 0 17px; }
.tat-blitz { border-bottom-color: var(--fayence); }
.tat-sprengen { border-bottom-color: var(--fackelorange); }
.tat-lauschen { border-bottom-color: var(--kalk); }
.tat-karte { border-bottom-color: var(--fayence); }
.tat:hover:not(:disabled) { background: var(--flaeche-hell); }
.tat:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 1px; }
.tat:disabled { opacity: .38; }
.tat.zielmodus,
.tat[aria-pressed="true"] {
  position: relative;
  padding-top: 16px;
  border: 3px double var(--fayence);
  outline: 2px solid var(--kalk);
  outline-offset: -6px;
}
.tat.zielmodus::after,
.tat[aria-pressed="true"]::after {
  content: "Ziel wählen";
  position: absolute;
  top: 2px;
  left: 0;
  right: 0;
  color: var(--fayence);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.kreuz {
  display: grid;
  grid-template-columns: repeat(3, var(--kreuz));
  grid-template-rows: repeat(3, var(--kreuz));
  gap: 3px;
}
.kreuz-aus .kreuz { display: none; }
.kreuz-klein { --kreuz: var(--kreuz-klein); }
.kreuz-gross { --kreuz: var(--kreuz-gross); }
.kreuz-klein .steuer,
.kreuz-gross .steuer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
}
.kreuz-klein .taten,
.kreuz-gross .taten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kreuz .leer { visibility: hidden; }
.richtung,
.kreuz .kreuzmarke,
.kreuzmitte {
  width: var(--kreuz);
  height: var(--kreuz);
  min-width: 44px;
  min-height: 44px;
}
.richtung,
.kreuz .kreuzmarke {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--rand-stark);
  border-radius: var(--r-knopf);
  background: var(--knopf);
  color: var(--text);
}
.kreuz .kreuzmarke { background: transparent; color: var(--fayence); }
.kreuzmitte { display: block; border: 1px solid var(--rand); background: var(--flaeche-tief); }
.richtung:active { background: var(--fackelorange); color: var(--nachtplatte); }

.schalter { margin: 20px 0 12px; }
.schalter-name {
  display: block;
  margin-bottom: 8px;
  color: var(--gedaempft);
  font-size: .85rem;
}
.stufen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stufe {
  min-height: 44px;
  padding: 7px;
  border: 1px solid var(--rand-stark);
  background: var(--knopf);
  color: var(--gedaempft);
  font-weight: 700;
}
.stufe[aria-pressed="true"] { border: 2px solid var(--fayence); color: var(--text); }
.stufe[aria-pressed="true"]::before { content: "✓ "; color: var(--fayence); }

/* Ein einziger, funktionaler Bewegungshinweis. */
.fingerzeig { position: absolute; pointer-events: none; }
.fingerzeig .raute {
  position: absolute;
  inset: 25%;
  border: 2px solid var(--fayence);
  transform: rotate(45deg);
}
.fingerzeig .hand {
  position: absolute;
  left: 50%;
  bottom: 45%;
  width: 80%;
  height: 100%;
  margin-left: -40%;
  overflow: visible;
  animation: fingertipp 1.6s ease-in-out 2;
}
.fingerzeig .hand-flaeche { fill: var(--fackelorange); }
.fingerzeig .hand-kontur { fill: none; stroke: var(--kalk); stroke-width: 1.2; }
.fingerzeig .hand-linien { fill: none; stroke: var(--nachtplatte); stroke-width: 1.2; }
@keyframes fingertipp { 0%, 100% { transform: translateY(-12%); } 45%, 60% { transform: translateY(0); } }

/* Dialoge */
.schleier {
  position: absolute;
  z-index: 50;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--schleier);
}
.schleier .klein-karte { max-width: 420px; margin: 0; }
.schleier .klein-karte h2::after { margin-inline: auto; }
.schleier .klein-karte { text-align: center; }
#dialog { position: fixed; z-index: 80; }
.karte-dialog { width: min(100%, 680px); max-height: 100%; margin: 0; overflow: auto; }
.dialogkopf { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.dialogkopf h2 { margin-bottom: 8px; }
#kartenbrett {
  display: block;
  width: min(100%, 520px);
  height: auto;
  max-height: min(62vh, 520px);
  margin: 12px auto;
  border: 1px solid var(--rand-stark);
  background: var(--hintergrund);
}
.kartenlegende {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 5px 12px;
  margin: 10px 0 8px;
  padding: 0;
  color: var(--text-leise);
  font-size: max(.875rem, 14px);
  list-style: none;
  text-align: left;
}
.kartenlegende li { display: flex; align-items: baseline; gap: 7px; }
.kartenlegende span {
  width: 1.1em;
  color: var(--gefahr);
  font-family: var(--schrift-zahl, var(--textschrift));
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
.kartenlegende li:nth-child(-n+3) span { color: var(--kalk); }
.kartenlegende li:nth-child(2) span { color: var(--fayence); }

/* Abschluss erhält nur einen sachlichen Zielrahmen. */
#b-ende.sieg .karte,
#b-ende:has(#ende-tabelle tr:nth-child(3)) .karte { border: 3px solid var(--fayence); }

@media (max-width: 360px) {
  .bildschirm { padding-inline: 8px; }
  .kopfspur { display: none; }
  .chip { padding-inline: 2px; }
  .chip .ikon { width: 12px; height: 12px; }
  .chip b { font-size: .9375rem; }
  .tat .ikon { display: none; }
}

@media (orientation: portrait) and (max-width: 600px) {
  .hud { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chip { min-height: 32px; }
  .chip.fackel { grid-column: span 2; }
  .tat .ikon { display: none; }
  .statusraum { min-height: 66px; }
  .meldung { min-height: 64px; }
  .banner {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    justify-content: stretch;
    gap: 1px 8px;
    text-align: left;
  }
  .banner::before { grid-column: 1; grid-row: 1; align-self: center; }
  .banner .btitel { grid-column: 2; grid-row: 1; white-space: normal; }
  .banner .btext {
    grid-column: 2;
    grid-row: 2;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.2;
  }
}

@media (orientation: portrait) and (max-width: 320px) {
  .taten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (orientation: landscape), (min-width: 900px) {
  #b-spiel {
    grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
    grid-template-rows: auto minmax(150px, 1fr) minmax(36px, auto);
    grid-template-areas:
      "kopf hud"
      "brett steuer"
      "status steuer";
    gap: 6px 10px;
  }
  .kopf { align-self: start; }
  .hud {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-self: start;
  }
  .chip { min-height: 30px; }
  .chip:first-child { border-left: 1px solid var(--rand); }
  .chip.fackel,
  .chip.leben { grid-column: span 2; }
  .steuer {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
  }
  .taten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tat { min-height: 48px; font-size: .9375rem; }
  .kreuz-klein .steuer,
  .kreuz-gross .steuer {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
  }
  .kreuz-klein .taten,
  .kreuz-gross .taten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meldung { text-align: left; }
}

@media (orientation: landscape) and (max-height: 430px) {
  .bildschirm {
    padding-top: calc(4px + env(safe-area-inset-top));
    padding-bottom: calc(4px + env(safe-area-inset-bottom));
  }
  #b-spiel { grid-template-columns: minmax(0, 1fr) minmax(210px, 30vw); }
  #b-spiel.kreuz-gross { --kreuz: 56px; }
  .kopf { min-height: 44px; }
  .ikonknopf { width: 44px; height: 44px; flex-basis: 44px; }
  .hud { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chip { min-height: 26px; }
  .steuer { gap: 5px; }
  .tat { min-height: 44px; }
  .statusraum { min-height: 46px; }
  .meldung { min-height: 44px; padding-block: 5px; }

  #b-titel { padding-block: 4px; }
  .titelkopf { min-height: 40px; }
  .titelbuehne {
    grid-template-columns: minmax(0, 1fr) 136px;
    grid-template-areas: "marke spur" "rest spur";
    gap: 5px 28px;
    padding-block: 5px;
  }
  .titelmarke img { width: min(100%, 310px); }
  .titelmarke .unter { display: none; }
  .titelspur { width: 128px; padding-left: 16px; }
  .einleitung { max-width: 50ch; font-size: .82rem; line-height: 1.3; }
  .titelknoepfe { max-width: 460px; margin-top: 6px; }
  .knopf.haupt.gross { min-height: 44px; margin-top: 4px; }
  .nebenzeile .textknopf { min-height: 44px; padding-block: 4px; }
  .rechtszeile { min-height: 44px; }
  .rechtszeile .textknopf,
  .rechtszeile a { min-height: 44px; }
}

@media (orientation: portrait) and (max-height: 700px) {
  .titelbuehne { gap: 12px 22px; padding-block: 14px; }
  .titelmarke img { width: min(100%, 370px); }
  .titelspur { width: 96px; }
  .einleitung { font-size: .9rem; }
  .titelknoepfe { margin-top: 10px; }
  .knopf.haupt.gross { min-height: 50px; }
  .nebenzeile { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  .titelmarke img,
  .kopfspur { display: none; }
  .titelmarke::before {
    content: "FACKELPFAD";
    display: block;
    color: CanvasText;
    font: 700 clamp(2.25rem, 10vw, 4.25rem)/.95 var(--schmalschrift);
    letter-spacing: .08em;
  }
  .titelmarke::after {
    content: "SIEBEN EBENEN. JEDER ZUG KOSTET LICHT.";
    display: block;
    margin-top: 12px;
    color: CanvasText;
    font: 700 .9375rem/1.35 var(--textschrift);
    letter-spacing: .05em;
  }
  .tat.zielmodus,
  .tat[aria-pressed="true"],
  .stufe[aria-pressed="true"] { outline: 3px double Highlight; }
}
