:root {
  --mono: "Share Tech Mono", ui-monospace, Menlo, Consolas, monospace;
  --red: #cc2200;
  --red-hot: #ff3b1f;
  --ink: #0a0a0b;
  --glass: rgba(10, 10, 12, .8);
  --line: rgba(255, 255, 255, .14);
  --text: #fff;
  --muted: #a9a9b0;
  --top: max(12px, env(safe-area-inset-top));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none;
  background: var(--ink); color: var(--text);
  font: 14px/1.45 var(--mono); letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
button, a { -webkit-tap-highlight-color: transparent; font-family: var(--mono); }
button { cursor: pointer; }
canvas { position: fixed; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
#labels { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.vignette { position: fixed; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(130% 95% at 50% 55%, transparent 58%, rgba(0, 0, 0, .34)); }
#flash { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 55%, transparent 35%, rgba(204, 34, 0, .6)); }

/* ---------- Kopfleiste ---------- */
.hud-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  /* Nur rechte Gruppe (Anzeigen, Vollbild, Ton, Pause). Titel und Zurueck-Pfeil
     sind seit 28.09.2026 weg (Vorgabe David): zurueck zum Deck geht ueber das Pausemenue. */
  /* row-reverse + wrap: die rechte Gruppe (.hud-rechts) steht immer rechts, die
     Lebensleiste fuellt links den Rest. Passt sie nicht mehr (schmales Handy, viele
     Anzeigen), rutscht NUR sie in eine eigene Zeile darunter. */
  display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px;
  padding: var(--top) max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
  background: linear-gradient(rgba(0, 0, 0, .55), transparent);
  pointer-events: none;
}
.hud-rechts { order: 1; flex: none; display: flex; align-items: center; gap: 8px; }
.hud-rechts > * { pointer-events: auto; }
.btn {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  color: var(--text); background: var(--glass); border: 1px solid var(--line); border-radius: 6px; text-decoration: none;
  transition: border-color .15s, background .15s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover, .btn:focus-visible { border-color: var(--red-hot); outline: none; }
.btn:active { background: var(--red); }
#fullscreen .i-off, #fullscreen.on .i-on { display: none; }
#fullscreen.on .i-off { display: block; }
#sound[aria-expanded="true"] { border-color: var(--red-hot); background: rgba(185, 0, 0, .32); }
.pill {
  flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 5px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 20px; pointer-events: none;
}
.pill .ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }
.pill .ico svg { width: 18px; height: 18px; fill: #f0cf98; stroke: #8a4f24; stroke-width: 2.4; }
.pill b { font-weight: 400; font-size: 20px; min-width: 1ch; text-align: center; }

.audio-mixer {
  position: fixed; z-index: 12; top: calc(var(--hud-h, calc(var(--top) + 50px)) + 2px); right: max(12px, env(safe-area-inset-right));
  width: min(330px, calc(100% - 24px)); padding: 14px 16px 16px;
  color: var(--text); background: rgba(10, 10, 12, .97); border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: 8px; box-shadow: 0 22px 60px rgba(0, 0, 0, .58); font-family: var(--mono);
}
.audio-mixer[hidden] { display: none; }
.audio-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--red-hot); font-size: 12px; letter-spacing: .16em; }
.audio-head button { width: 34px; height: 34px; padding: 0; color: #fff; background: transparent; border: 1px solid var(--line); border-radius: 5px; font-size: 24px; line-height: 1; }
.audio-head button:hover, .audio-head button:focus-visible { border-color: var(--red-hot); outline: none; }
.audio-mixer label { display: block; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.audio-mixer label > span { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; font-size: 12px; letter-spacing: .06em; }
.audio-mixer label small { grid-column: 1; color: var(--muted); font-size: 9px; letter-spacing: .02em; }
.audio-mixer output { grid-column: 2; grid-row: 1 / span 2; color: #fff; font-size: 11px; }
.audio-mixer input[type="range"] { width: 100%; margin: 9px 0 0; accent-color: var(--red-hot); cursor: pointer; }
/* Musikwahl (05.11.2026): Community, KI-Musik oder oSe-Creation. */
.musikwahl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 4px 0 10px; }
.musikwahl > span { grid-column: 1 / -1; font-size: 12px; letter-spacing: .06em; }
.musikwahl button { min-height: 38px; padding: 4px 6px; color: #fff; background: transparent; border: 1px solid var(--line); border-radius: 5px; font: 11px var(--mono); letter-spacing: .04em; cursor: pointer; }
.musikwahl button[aria-checked="true"] { background: var(--red); border-color: var(--red-hot); }
.musikwahl button:hover, .musikwahl button:focus-visible { border-color: var(--red-hot); outline: 2px solid #fff; outline-offset: -3px; }
.musikwahl-hinweis { margin: -4px 0 8px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.musikwahl-hinweis[hidden] { display: none; }

/* ---------- Oben links: Lebensleiste, darunter der Auftrag (28.09.2026) ---------- */
.hud-links {
  /* --hud-h = Hoehe der Kopfleiste (game.mjs misst sie), waechst mit, wenn die
     Lebensleiste in eine zweite Zeile rutscht. */
  position: fixed; z-index: 4; top: calc(var(--hud-h, calc(var(--top) + 50px)) + 4px); left: max(12px, env(safe-area-inset-left));
  width: min(340px, calc(100% - 24px)); display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
/* Lebensleiste: dieselben Werte wie /world im Cyberlook (world.css .wld-stat* +
   cyberlook.css: Herz #ff3b5c, 17px, abgeschraegte Ecken, Verlauf #7a0a1e -> #ff3b5c
   mit Leuchten, Zahl "x / y" mittig im Balken). Nur der duenne cyanfarbene
   Schildstreifen darunter ist Expedition-eigen, /world hat keinen Schild.
   Sitzt als erstes Element in .hud-top, in einer Zeile mit den Anzeigen rechts,
   und wird schmaler, wenn rechts viele Anzeigen stehen (Vorgabe David 28.09.2026). */
.leben {
  order: 2; flex: 1 1 150px; min-width: 150px; max-width: 340px; height: 40px; margin-right: auto;
  display: flex; align-items: center; gap: 7px; pointer-events: none;
}
.leben-ico { flex: none; width: 18px; text-align: center; font-size: 15.2px; line-height: 1; color: #ff3b5c; }
.leben-mitte { position: relative; flex: 1; min-width: 0; }
.leben-bar {
  position: relative; height: 17px; overflow: hidden; background: transparent;
  clip-path: polygon(0 4px, 4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
}
.leben-bar u {
  position: absolute; inset: 0 auto 0 0; width: 100%; height: 100%; overflow: hidden;
  background: linear-gradient(90deg, #7a0a1e, #ff3b5c);
  box-shadow: 0 0 10px rgba(255, 59, 92, .55);
  transition: width .18s linear;
}
/* Fluss (Vorgabe David 28.09.2026): viel langsamer und kaum wahrnehmbar, nur ein
   schwacher heller Schimmer, der in 16 s einmal durch den Balken zieht. */
.leben-bar u::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgba(255, 255, 255, .06) 50%, transparent 70%);
  background-size: 250% 100%; animation: leben-fluss 16s linear infinite;
}
.leben-bar b {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Rajdhani', "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 11.2px; font-weight: 700; letter-spacing: .09em; line-height: 1; font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px #000, 0 0 3px rgba(0, 0, 0, .9);
}
.leben-schild { position: absolute; left: 0; right: 0; top: calc(100% + 3px); display: block; height: 3px; overflow: hidden; }
.leben-schild s { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #0f7f96, #22e0ff); box-shadow: 0 0 14px rgba(34, 224, 255, .5); transition: width .18s linear; }
@keyframes leben-fluss { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.leben.low .leben-bar u { animation: leben-puls .8s ease-in-out infinite; }
@keyframes leben-puls { 50% { filter: brightness(1.8); } }
@media (prefers-reduced-motion: reduce) { .leben-bar u, .leben-bar u::after { animation: none; } }

/* ---------- Auftrag ---------- */
.mission {
  /* Eckig, ohne roten Rand links, Hintergrund 40 % durchsichtiger als --glass
     (.8 -> .48), Vorgabe David 28.09.2026. */
  padding: 10px 12px 11px;
  background: rgba(10, 10, 12, .48); border: 1px solid var(--line); border-radius: 0;
}
/* Levelname einzeilig und groesser, darunter Kapitel und Level. */
#levelName { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 400; font-size: 18px; line-height: 1.25; letter-spacing: .05em; text-transform: uppercase; color: var(--text); }
#chapter { display: block; margin-top: 2px; color: var(--red-hot); font-size: 11px; letter-spacing: .18em; }
.mission p { margin: 6px 0 9px; font-size: 13px; line-height: 1.45; }
.segments { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }
.segments span { height: 6px; background: rgba(255, 255, 255, .13); transition: background .25s; }
.segments span.carry { background: rgba(255, 59, 31, .38); }
.segments span.on { background: var(--red-hot); }
.meta { margin-top: 8px; font-size: 11px; color: var(--muted); letter-spacing: .1em; }
/* ---------- Meldungen, Beschriftungen ---------- */
#toast {
  position: fixed; z-index: 6; left: 50%; top: calc(var(--top) + 200px);
  width: max-content; max-width: min(88%, 420px); padding: 10px 16px;
  background: rgba(10, 10, 12, .9); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 6px;
  font-size: 13px; text-align: center; opacity: 0; transform: translate(-50%, 8px);
  transition: opacity .2s, transform .2s; pointer-events: none;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.lbl { position: absolute; left: 0; top: 0; white-space: nowrap; font: 11px/1.2 var(--mono); letter-spacing: .12em; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .85); will-change: transform; }
.lbl.tag { padding: 4px 8px 3px; background: rgba(10, 10, 12, .82); border: 1px solid var(--line); border-left: 2px solid var(--red); border-radius: 4px; text-shadow: none; }
.lbl.boss { min-width: 190px; padding: 5px 8px 7px; background: rgba(10, 10, 12, .82); border: 1px solid rgba(255, 59, 31, .45); border-radius: 4px; text-align: center; text-shadow: none; }
.lbl.boss b { font-weight: 400; }
.lbl.boss i { display: block; height: 5px; margin-top: 5px; background: rgba(255, 255, 255, .15); }
.lbl.boss u { display: block; height: 100%; width: 100%; background: var(--red-hot); transition: width .2s; }
.lbl.float { font-size: 20px; letter-spacing: .04em; }
.lbl.float.wood { color: #ffe0a6; }
.lbl.float.dmg { color: #ff5a3c; font-size: 22px; }

/* ---------- Joystick (schwebend, Ruhelage wie im Handyspiel unten rechts) ---------- */
#stick {
  position: fixed; z-index: 4; left: 74%; top: 79%;
  width: 136px; height: 136px; margin: -68px 0 0 -68px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .16);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .08), inset 0 0 20px rgba(0, 0, 0, .15);
  opacity: .55; pointer-events: none; transition: opacity .2s;
}
#stick.active { opacity: 1; }
#knob {
  position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%;
  background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .3), inset 0 -3px 0 rgba(0, 0, 0, .08);
}
#knob::after { content: ""; position: absolute; inset: 24px; border-radius: 50%; background: var(--red); }
.controller #stick, .controller .hint { display: none !important; }
/* Controller: die Aktionstaste bleibt als Anzeige sichtbar (was A und L3 gerade
   tun), ist aber kein Klickziel. Ein Klick faellt auf die Welt durch; auf einer
   Konsole loest er dort dieselbe Aktion aus (game.mjs). */
.controller #action { pointer-events: none; }
.controller #action::before {
  content: "A"; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px;
  border-radius: 50%; background: #fff; color: #0a0a0b; font-weight: 700; letter-spacing: 0; vertical-align: middle;
}
.hint, .credit {
  position: fixed; z-index: 4; left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); margin: 0;
  font-size: 10px; line-height: 1.7; letter-spacing: .14em; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
  pointer-events: none; transition: opacity .4s;
}
/* Hinweis eine Zeile ueber der Musik-Zeile (Vorgabe David 28.09.2026). Die
   Musik-Zeile bleibt immer stehen, auch nach der ersten Bewegung und mit Controller. */
.hint { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 17px); }
.credit { color: rgba(255, 255, 255, .6); }
body.moved .hint { opacity: 0; }

/* ---------- Start-, Pausen- und Zielfenster ---------- */
dialog {
  color: var(--text); background: rgba(10, 10, 12, .95);
  border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 8px;
  width: calc(100% - 28px); max-width: 440px; max-height: 92dvh; overflow: auto;
  padding: 24px 22px 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  font-family: var(--mono);
}
dialog::backdrop { background: rgba(0, 0, 0, .5); }
.eyebrow { color: var(--red-hot); font-size: 11px; letter-spacing: .18em; }
dialog h1 { margin: 12px 0; font-weight: 400; font-size: clamp(23px, 6.6vw, 31px); line-height: 1.12; text-transform: uppercase; letter-spacing: .02em; }
dialog p { margin: 0; color: #cfcfd5; font-size: 13.5px; line-height: 1.6; letter-spacing: 0; }
.instructions { list-style: none; margin: 16px 0 4px; padding: 0; border-top: 1px solid var(--line); }
.instructions li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.instructions b { color: var(--red-hot); font-weight: 400; }
dialog button {
  display: block; width: 100%; margin: 12px 0 0; padding: 15px;
  border: 0; border-radius: 6px; background: var(--red); color: #fff;
  font-size: 15px; letter-spacing: .08em; text-transform: uppercase; transition: background .15s;
}
dialog button:hover, dialog button:focus-visible { background: var(--red-hot); outline: 2px solid #fff; outline-offset: -4px; }
dialog button.secondary, #boot button.secondary { background: transparent; border: 1px solid rgba(255, 255, 255, .24); }
dialog button.secondary:hover, dialog button.secondary:focus-visible { background: rgba(255, 255, 255, .06); border-color: var(--red-hot); }
dialog a { display: block; padding: 12px; text-align: center; color: #bdbdc4; font-size: 12px; letter-spacing: .1em; text-decoration: none; }
dialog a:hover, dialog a:focus-visible { color: #fff; outline: none; text-decoration: underline; }
dialog small { display: block; margin-top: 4px; text-align: center; font-size: 10px; line-height: 1.6; letter-spacing: .06em; color: #7c7c85; }

/* ---------- Ladebild ---------- */
#boot {
  position: fixed; inset: 0; z-index: 20; display: grid; place-content: center; gap: 12px; padding: 24px;
  background: var(--ink); color: #fff; font-size: 13px; letter-spacing: .24em; text-align: center;
  transition: opacity .4s, visibility .4s;
}
#boot span { color: var(--red-hot); animation: caret 1s steps(2) infinite; }
#boot.hidden { opacity: 0; visibility: hidden; }
#boot.error { letter-spacing: .04em; max-width: 360px; margin: auto; }
#boot.error button { padding: 14px; border: 0; border-radius: 6px; background: var(--red); color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  #boot span { animation: none; }
  #toast, .hint { transition: none; }
}

@media (orientation: landscape) {
  #stick { left: 84%; top: 70%; }
}
@media (max-height: 520px) {
  .hud-links { top: var(--hud-h, calc(var(--top) + 50px)); width: min(300px, 44%); gap: 7px; }
  .mission { padding: 7px 10px 8px; }
  #levelName { font-size: 15px; }
  .mission p { font-size: 12px; margin: 2px 0 6px; }
  #toast { top: auto; bottom: 18px; }
  .hint { display: none; }
  #stick { width: 116px; height: 116px; margin: -58px 0 0 -58px; }
  dialog { padding: 16px 18px 12px; }
  dialog h1 { font-size: 21px; margin: 8px 0; }
  .instructions li { padding: 6px 0; }
}
@media (max-width: 360px) {
  .pill { padding-right: 12px; }
}

/* ---------- Spirit-Staub (25.09.2026) ---------- */
.pill.staub .ico { background: #1d1d22; box-shadow: inset 0 0 0 1px rgba(255, 59, 31, .6); }
.pill.staub .ico svg { fill: var(--red-hot); stroke: none; }
.pill.staub.gain { animation: staub-gain .7s ease-out; }
@keyframes staub-gain { 30% { transform: scale(1.14); border-color: var(--red-hot); } }
.lbl.float.staub { color: var(--red-hot); font-size: 21px; }
.reward { margin: 14px 0 0 !important; padding: 10px 12px; font-size: 12px !important; line-height: 1.6 !important; border: 1px solid rgba(255, 59, 31, .35); border-radius: 6px; background: rgba(204, 34, 0, .08); }
.reward b { color: var(--red-hot); font-weight: 400; }
@media (prefers-reduced-motion: reduce) {
  .pill.staub.gain { animation: none; }
}
@media (max-width: 440px) {
  .pill { padding-right: 12px; gap: 6px; }
}

/* ---------- Durchgaenge und magische Stiefel (26.09.2026) ---------- */
/* Blende beim Durchqueren einer Tuer, Treppe oder eines Aufzugs (game.mjs, uebergang). */
#blende { position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0; background: #050507; }
.pill.stiefel .ico { background: #3b1f5c; box-shadow: inset 0 0 0 1px rgba(183, 240, 255, .6); }
.pill.stiefel .ico svg { fill: #b7f0ff; stroke: none; }
.pill.stiefel.knapp b { color: #ffb3a6; }

/* ---------- Kampagne: Aktionstaste, Gespräch, Ziele, Kapitel (25.09.2026) ---------- */
#action {
  position: fixed; z-index: 6; left: max(14px, env(safe-area-inset-left)); bottom: max(22px, calc(env(safe-area-inset-bottom) + 12px));
  min-width: 132px; min-height: 56px; padding: 0 20px;
  border: 0; border-radius: 28px; background: var(--red); color: #fff;
  font: 15px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35), inset 0 -3px 0 rgba(0, 0, 0, .2);
}
#action:disabled { background: #3a3a40; color: #c9c9cf; }
#action:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
body.moved .hint { opacity: 0; }

#talk {
  position: fixed; inset: auto 0 0 0; margin: 0 auto; z-index: 8;
  width: min(640px, calc(100% - 16px)); max-width: none; max-height: 46dvh;
  padding: 14px 16px calc(12px + env(safe-area-inset-bottom));
  border-radius: 10px 10px 0 0; border-top: 3px solid var(--red);
  background: rgba(10, 10, 12, .96); overflow: auto;
}
.talk-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.talk-head b { color: var(--red-hot); font-weight: 400; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; }
.talk-head span { color: var(--muted); font-size: 12px; letter-spacing: .06em; }
#talk p { margin: 0 0 10px; color: #f2f2f4; font-size: 14px; line-height: 1.6; white-space: pre-line; }
#talk button { margin: 0; min-height: 48px; }

.instructions li { align-items: baseline; }
.instructions li.completed { color: var(--muted); }
.instructions li.completed b { color: #7cd35a; }
.instructions li.active { color: #fff; }
.instructions li.active b { color: var(--red-hot); }
.instructions li.pending b { color: #6f6f78; }
.reward.gain { border-color: #7cd35a; background: rgba(124, 211, 90, .08); }
.choice-line { margin: 12px 0 0 !important; color: #fff !important; letter-spacing: .06em; }

.chapters { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.chapters summary { cursor: pointer; padding: 10px 0; color: #d6d6dc; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.chap { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 11.5px; color: #c9c9cf; }
.chap > span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chap > div { display: flex; gap: 5px; flex: none; }
.chap button {
  width: 36px; height: 36px; margin: 0; padding: 0; border-radius: 6px;
  background: transparent; border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 12px; letter-spacing: 0; text-transform: none;
}
.chap button.done { background: var(--red); border-color: var(--red); }
.chap button.now { border-color: var(--red-hot); box-shadow: inset 0 0 0 1px var(--red-hot); }
.chap button:disabled { opacity: .3; cursor: default; }
.lbl.tag.npc { border-left-color: #fff; }
@media (max-height: 520px) {
  #talk { max-height: 60dvh; }
  #action { min-height: 48px; }
}

/* Waffe (ab Kapitel 2, 26.09.2026) */
/* Waffen untereinander statt "A + B + C" in einer Zeile (Vorgabe David 28.09.2026). */
.mission .waffe { display: block; color: var(--red-hot); letter-spacing: .12em; font-size: 11px; }
#weaponName { display: block; margin-top: 2px; font-weight: 400; color: #fff; text-transform: uppercase; white-space: pre-line; line-height: 1.6; }

/* ---------- Konsole und Controller (26.09.2026, Xbox-Bericht 769805E0) ---------- */
/* .controller: Gamepad oder erkannte Konsole. .konsole: erkannte Konsole.
   .pad-aktiv: die Gamepad-API liefert Werte. Auf der Xbox erst nach
   "Menuetaste halten -> Spielsteuerung"; bis dahin steht der Hinweis da. */
.pad-legende, .pad-hinweis, .pad-hinweis-panel { display: none; }
.controller .pad-legende { display: block; }
.konsole:not(.pad-aktiv) .pad-legende { display: none; }
.konsole:not(.pad-aktiv) .pad-hinweis, .konsole:not(.pad-aktiv) .pad-hinweis-panel { display: block; }
.pad-legende {
  position: fixed; z-index: 4; left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); margin: 0;
  font-size: 10px; line-height: 1.7; letter-spacing: .14em; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
  pointer-events: none; transition: opacity .4s;
}
body.moved .pad-legende { opacity: 0; }
.pad-hinweis {
  position: fixed; z-index: 4; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 28px); margin: 0; padding: 8px 12px; text-align: center;
  font-size: 11px; line-height: 1.7; letter-spacing: .12em; color: #fff;
  background: rgba(10, 10, 12, .78); border: 1px solid rgba(255, 255, 255, .22); border-radius: 6px; pointer-events: none;
}
.pad-hinweis-panel {
  margin: 12px 0 0 !important; padding: 10px 12px; font-size: 12px !important; line-height: 1.6 !important;
  border: 1px solid rgba(255, 255, 255, .24); border-radius: 6px; background: rgba(255, 255, 255, .05);
}
@media (prefers-reduced-motion: reduce) {
  .pad-legende { transition: none; }
}

/* ---------- Endgegner, Schild (26.09.2026) ---------- */
.bossbar { margin: 0 0 9px; }
.bossbar span { display: block; color: var(--red-hot); font-size: 11px; letter-spacing: .18em; }
.bossbar i { display: block; height: 8px; margin-top: 4px; background: rgba(255, 255, 255, .13); overflow: hidden; }
.bossbar u { display: block; height: 100%; background: var(--red-hot); transform-origin: left; transition: transform .2s; }
.bossbar.schild span { color: #6fd3ff; }
.bossbar.schild u { background: #6fd3ff; }
.pill.schild .ico { background: #12303d; box-shadow: inset 0 0 0 1px rgba(111, 211, 255, .6); }
.pill.schild .ico svg { fill: #6fd3ff; stroke: none; }
.lbl.float.schild { color: #6fd3ff; font-size: 20px; }
@media (prefers-reduced-motion: reduce) {
  .bossbar u { transition: none; }
}

/* FULLSCREEN-Schalter (David 09.11.2026): gemeinsam fuer alle Mini-Games, /js/spiel-vollbild.js.
   Immer oben rechts, auch im Start-, Pause- und Kapitelfenster. Er ersetzt den alten
   Vollbild-Knopf der Kopfleiste; Ton und Pause ruecken um seine Breite nach links. */
:root { --rw-vollbild-oben: var(--top); --rw-vollbild-rechts: max(12px, env(safe-area-inset-right)); --rw-vollbild-hoehe: 40px; }
.hud-rechts { margin-right: var(--rw-vollbild-platz, 0px); }
#fullscreen { display: none !important; }
