/* AssistUK Halloween — Aussehen. Grundlage: Coaster/src/css/coaster.css (Raster 10 × 6, Fußleiste 32 px,
   Knöpfe mit Verweil-Punkt, nichts kleiner als eine Rasterzelle). Farben: dunkel-lila und orange.
   AssistUK Arcade (04.11.2026): alles gilt nur in #app (den Halloween-Bildschirmen); die Rahmen-Bildschirme in
   #oberflaeche (Einstellungen, Einrichten, Info) gestaltet ../kern/css/spiel.css — Abschnitt ganz unten: nur die paar
   Halloween-Teile darin. Die Farben/Maße hängen an #app, damit sie spiel.css (--akzent, --rand, --text …) nicht überschreiben. */
#app {
  --fuss: 32px;
  --luecke: 8px;
  --radius: clamp(10px, 1.4vw, 18px);
  --schrift: "DM Sans", system-ui, "Segoe UI", Roboto, Arial, sans-serif;   /* Menü-Audit 14.11.2026: DM Sans wie alle Arcade-Spiele (kern/spiel.css lädt sie) */
  font-family: var(--schrift); color: var(--text); -webkit-text-size-adjust: 100%;
}
#app, :root[data-theme="dunkel"] #app {
  --bg: #1a0b2e; --bg2: #24103f; --karte: linear-gradient(140deg, #2e1550, #3d1d66);
  --text: #fff; --text-leise: rgba(255,255,255,0.75); --akzent: #ff8c1a; --rand: rgba(255,255,255,0.14);
}
:root[data-theme="kontrast"] #app {
  --bg: #000; --bg2: #000; --karte: #111; --text: #fff; --text-leise: #ddd; --akzent: #ff0; --rand: #fff; --radius: 6px;
}

html, body { margin: 0; padding: 0; width: 100%; height: 100%; height: 100dvh; overflow: hidden; }
body { background: #1a0b2e; }
:root[data-theme="kontrast"] body { background: #000; }
/* Mauszeiger: freundlicher Geist (Lars 11.10.2026), Zeigepunkt in der Mitte — auch über Knöpfen und der Bühne
   (!important: spiel.css setzt .knopf { cursor: pointer }) */
html, body, body * { cursor: url('../assets/img/zeiger-geist.png') 24 22, auto !important;
  cursor: -webkit-image-set(url('../assets/img/zeiger-geist.png') 1x, url('../assets/img/zeiger-geist@2x.png') 2x) 24 22, auto !important; }
#app button { font: inherit; color: inherit; }
/* spiel.css setzt * { box-sizing: border-box } — Halloween war ohne gebaut (Knöpfe sind ohnehin border-box) */
#app *:not(button):not(input):not(select):not(textarea) { box-sizing: content-box; }
#app[hidden] { display: none; }

/* --- Bildschirm-Raster ---------------------------------------------------- */
#app .schirm, #app .ueberlagerung {
  position: fixed; left: 0; right: 0; top: 0; bottom: var(--fuss);
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: var(--luecke); padding: var(--luecke); box-sizing: border-box;
  padding-bottom: max(var(--luecke), env(safe-area-inset-bottom));
}
#app .ueberlagerung { z-index: 50; background: color-mix(in srgb, var(--bg) 95%, transparent); }

#app .titel {
  display: flex; align-items: center; justify-content: center; gap: 0.5em; text-align: center;
  font-weight: 800; font-size: clamp(18px, 3.4vh, 40px); line-height: 1.1;
}
#app .titel { margin: 0; color: inherit; text-shadow: none; }
#app .titel-symbol { height: 1.6em; width: auto; border-radius: 22%; }

/* --- Knöpfe (Maus, Touch, Verweilen) -------------------------------------- */
#app .knopf {
  position: relative; overflow: hidden; min-width: 0; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35em;
  border: 2px solid var(--rand); border-radius: var(--radius); background: var(--karte); color: var(--text);
  padding: 6px; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: rgba(255,255,255,0.1);
  font-weight: 700; font-size: clamp(13px, 2.1vh, 24px); text-align: center; line-height: 1.15;
  transition: transform 0.1s, border-color 0.15s;
}
#app .knopf { box-shadow: none; }
#app .knopf svg { width: auto; height: 46%; max-width: 70%; flex: 0 1 auto; }
#app .knopf:hover, #app .knopf:focus-visible { border-color: var(--akzent); outline: none; }
/* Tab-Fokus sofort deutlich (Arcade-Prüfung 04.11.2026: der Rand allein kam erst nach dem Übergang — wirkte unsichtbar):
   weißer Ring außen wie --fokus des Kerns, ohne Übergang */
#app .knopf:focus-visible { outline: 4px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 8px #000; }
#app .knopf:active { transform: scale(0.97); }
#app .knopf small { font-weight: 600; font-size: 0.72em; color: var(--text-leise); }
#app .knopf-haupt { background: linear-gradient(140deg, #e8620c, #ff9a2e); }
:root[data-theme="kontrast"] #app .knopf-haupt { background: #111; border-color: var(--akzent); }
#app .knopf.gewaehlt { border-color: var(--akzent); box-shadow: inset 0 0 0 4px var(--akzent); }
#app .knopf[hidden] { display: none; }
#app .knopf span { overflow-wrap: anywhere; hyphens: auto; text-align: center; }
#app .dwell-dot { position: absolute; z-index: 10; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none; width: 0; height: 0; }

/* Start: großer Knopf „Fahren", drei Gruselstufen */
#app .kachel { font-size: clamp(18px, 3.2vh, 38px); }
#app .kachel-bild { width: min(80%, 36vh); height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35); }
#app .grusel-warnung { z-index: 60; }
#app .warn-text { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.4em;
  padding: 0 4vw; font-size: clamp(15px, 2.4vh, 26px); line-height: 1.35; overflow: auto; }
#app .warn-text h2 { margin: 0; font-size: 1.5em; color: var(--akzent); }
#app .warn-text p { margin: 0; max-width: 60em; }
#app .warn-text svg { width: 3em; height: 3em; color: var(--akzent); flex: none; }
#app .hinweis-toast { position: fixed; left: 50%; bottom: 14vh; transform: translateX(-50%); z-index: 70; max-width: 80vw;
  padding: 0.8em 1.2em; border-radius: 14px; background: var(--karte); border: 2px solid var(--akzent); color: var(--text);
  font-size: clamp(15px, 2.4vh, 26px); text-align: center; pointer-events: none; }
#app .kachel-kuerbis { background: linear-gradient(150deg, #f08a24, #a8401a 62%, #4b1d7a); }
:root[data-theme="kontrast"] #app .kachel { background: #111; }
#app .marke-zeile { display: flex; align-items: center; justify-content: center; gap: 0.8em; color: var(--text-leise);
  font-size: clamp(13px, 2vh, 22px); font-weight: 600; }
#app .marke-logo { height: 70%; max-height: 64px; width: auto; }

/* --- Info, Einstellungen, Eimer, Fragen ------------------------------------ */
#app .info-text { overflow-y: auto; padding: 0.4em 1.2em; background: var(--bg2); border-radius: var(--radius);
  border: 2px solid var(--rand); font-size: clamp(15px, 2.2vh, 22px); line-height: 1.45; }
#app .info-text h2 { font-size: 1.15em; margin: 0.9em 0 0.3em; color: var(--akzent); display: flex; align-items: center; gap: 0.4em; }
#app .info-text a { color: var(--akzent); display: inline-block; padding: 16px 10px; margin: -16px -10px; }
#app .info-logo { float: right; height: 64px; margin: 0.6em 0 0.6em 1em; }
#app .einst-liste { display: grid; grid-auto-rows: minmax(0, 1fr); gap: 6px; min-height: 0; }
#app .einst-zeile { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: var(--luecke); min-height: 0; }
#app .einst-wort { display: flex; align-items: center; font-weight: 700; font-size: clamp(13px, 2vh, 22px); }
#app .einst-werte { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; min-height: 0; }
#app .einst-wert { font-size: clamp(11px, 1.8vh, 20px); }
/* Seite „Meine Figur": Farbpunkte für Haut und Haare (wie Coaster), größere Zeilen */
#app .farbpunkt { display: inline-block; width: 1.8em; height: 1.8em; border-radius: 50%; border: 2px solid rgba(255,255,255,0.7); flex: none; }
#app .einst-figur .einst-wert { font-size: clamp(13px, 2.4vh, 26px); }
#app .nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#app .frage-text { display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: clamp(20px, 4vh, 44px); font-weight: 800; padding: 0 1em; }
#app .fortschritt { align-self: center; height: 22px; border-radius: 11px; background: var(--bg2); border: 2px solid var(--rand); overflow: hidden; }
#app .fortschritt i { display: block; height: 100%; width: 0; background: var(--akzent); transition: width 0.2s; }
#app .leer { align-self: center; text-align: center; font-size: clamp(16px, 2.8vh, 30px); color: var(--text-leise); }
#app .eimer-werte { display: grid; grid-template-rows: 2fr 1fr 1fr 1fr; gap: 6px; min-height: 0; padding: 0.4em 0.8em;
  background: var(--bg2); border: 2px solid var(--rand); border-radius: var(--radius); }
#app .eimer-werte > div { display: flex; align-items: center; gap: 0.5em; min-height: 0; font-weight: 800; font-size: clamp(14px, 2.4vh, 26px); }
#app .eimer-werte svg { height: 2.2em; width: auto; color: var(--akzent); flex: none; }
#app .eimer-werte .eimer-gross { justify-content: center; }
#app .eimer-werte .eimer-gross svg { height: 90%; }
#app .fotoliste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--luecke); min-height: 0; }
#app .fotoliste img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); border: 3px solid #fff; }

/* --- Kürbis-Werkstatt: Vorschau links (5 × 4 Zellen), Bildkarten rechts, Schritte unten ------------------- */
#app .k-buehne { position: relative; min-height: 0; min-width: 0; overflow: hidden; border-radius: var(--radius);
  border: 2px solid var(--rand); background: #1d0d33; }
#app .k-leinwand { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity 0.3s; }
#app .k-leinwand.baut { opacity: 0.8; }
#app .k-laden { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 1em;
  text-align: center; font-weight: 700; font-size: clamp(15px, 2.4vh, 26px); color: var(--text-leise); }
#app .k-wahl { display: grid; grid-auto-rows: minmax(0, 1fr); gap: var(--luecke); min-height: 0; min-width: 0; }
#app .k-karte { font-size: clamp(13px, 2.1vh, 24px); gap: 0.2em; }
#app .k-karte svg { height: 66%; width: auto; max-width: 92%; }
#app .k-karte.knopf-haupt svg { color: #fff; }
#app .k-zahl { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-leise);
  font-size: clamp(14px, 2.2vh, 24px); }
#app .k-schritte { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1.6vw, 28px); min-width: 0; }
#app .k-schritte i { display: flex; color: var(--text-leise); opacity: 0.4; }
#app .k-schritte i.war { opacity: 0.75; }
#app .k-schritte i.jetzt { color: var(--akzent); opacity: 1; }
#app .k-schritte svg { height: clamp(24px, 5.5vh, 52px); width: auto; }
#app .k-schritte i.jetzt svg { height: clamp(30px, 7vh, 66px); }
#app .k-meldung { position: relative; z-index: 20; align-self: end; display: flex; align-items: center; gap: 0.6em; margin: 0 10px 10px;
  padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,0.95); color: #1a0b2e; font-weight: 800;
  font-size: clamp(14px, 2.1vh, 22px); box-shadow: 0 6px 24px rgba(0,0,0,0.35); transition: opacity 0.8s; }
#app .k-meldung img { height: clamp(48px, 9vh, 90px); width: auto; border-radius: 8px; flex: none; }
#app .k-meldung svg { height: 2em; width: auto; flex: none; color: #c4520a; }
#app .k-meldung small { display: block; font-weight: 600; font-size: 0.8em; margin-top: 0.2em; }
#app .k-meldung.weg { opacity: 0; }
:root[data-theme="kontrast"] #app .k-buehne { border-color: #fff; }


/* --- Fahren: Bühne über allem, Mitmachen links, Süßigkeiten oben rechts, Aussteigen unten links ------ */
#app .schirm-fahren { position: fixed; left: 0; right: 0; top: 0; bottom: var(--fuss); background: #12082a; }
#app .schirm-fahren .buehne { position: absolute; inset: 0; }
#app .fahren-laden { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 0.7em 1.2em; max-width: 80vw;
  border-radius: 14px; background: rgba(26,11,46,0.85); color: #fff; font-weight: 700; font-size: clamp(16px, 2.6vh, 28px); text-align: center; }
#app .fahren-laden[hidden] { display: none; }
#app .zaehler { position: absolute; z-index: 25; right: var(--luecke); top: var(--luecke); display: flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 10px; border-radius: 16px; background: rgba(26,11,46,0.82); color: #fff; pointer-events: none; }
#app .zaehler svg { color: var(--akzent); height: clamp(36px, 6vh, 56px); width: auto; }
#app .zaehler b { font-size: clamp(26px, 5vh, 50px); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; min-width: 1.2em; text-align: center; }
#app .mitmach { position: absolute; z-index: 30; left: var(--luecke); top: 150px; display: flex; flex-direction: column; gap: 10px; }
#app .mitmach .knopf { width: clamp(120px, 13vh, 140px); height: clamp(96px, 11vh, 130px);   /* AssistUK Arcade: mind. 120 × 96 */
  color: #fff; background: rgba(46,21,80,0.82);
  font-size: clamp(12px, 1.6vh, 17px); }
#app .mitmach .knopf svg { height: 46%; width: auto; }
/* lange Wörter (Taschenlampe) an der Silbe trennen statt mitten im Wort umbrechen (WebKit/iPad, 13.10.2026) */
#app .mitmach .knopf span { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: normal; word-break: normal; }
/* niedrige Fenster (Grid-3 1024×600): Mitmachen kompakter, Platz für Aussteigen ≥ 120×96 */
@media (max-height: 640px) {
  #app .mitmach { top: 96px; gap: 6px; }
  #app .mitmach .knopf { width: 120px; height: 96px; }
}
#app .knopf-los { position: absolute; z-index: 31; left: 50%; bottom: var(--luecke); transform: translateX(-50%);
  width: clamp(180px, 26vw, 320px); height: clamp(96px, 14vh, 140px); font-size: clamp(18px, 3vh, 30px); }
#app .knopf-los[hidden] { display: none; }
/* Spukgarten mit Tasten/Scannen (13.10.2026): Steuerleiste unten in der Mitte (nur in den Tasten-Modi zu sehen) */
#app .garten-leiste { position: absolute; z-index: 30; left: 50%; bottom: var(--luecke); transform: translateX(-50%); display: flex; gap: 8px; }
#app .garten-leiste[hidden] { display: none; }
#app .garten-leiste .knopf { width: clamp(120px, 14vh, 140px); height: clamp(96px, 13vh, 132px);   /* mind. 120 × 96 */
  color: #fff; background: rgba(46,21,80,0.86);
  font-size: clamp(11px, 1.55vh, 16px); }
#app .garten-leiste .knopf svg { height: 44%; width: auto; }
@media (max-width: 900px) { #app .garten-leiste .knopf { width: 120px; height: 96px; font-size: 11px; } }
/* Aussteigen: nie unter 120 × 96 (17.11.2026 UX: bei 1024×600 fiel die Grid-Höhe auf ~72–86 px) */
#app .knopf-aussteigen { position: absolute; z-index: 30; left: var(--luecke); bottom: var(--luecke); color: #fff;
  min-width: 120px; min-height: 96px;
  width: max(120px, calc((100vw - 11 * var(--luecke)) / 10 * 2 + var(--luecke)));
  height: max(96px, calc((100dvh - var(--fuss) - 7 * var(--luecke)) / 6));
  background: rgba(26,11,46,0.85); }
#app .foto-toast { position: absolute; z-index: 35; right: var(--luecke); top: calc(var(--luecke) + 90px); width: min(28vw, 320px); padding: 6px;
  border-radius: 12px; background: rgba(255,255,255,0.95); color: #1a0b2e; font-weight: 800; text-align: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35); transition: opacity 0.8s, transform 0.8s; }
#app .foto-toast img { display: block; width: 100%; border-radius: 8px; }
#app .foto-toast.weg { opacity: 0; transform: translateY(-12px); }

/* Rundenkarte */
#app .rundenkarte { background: rgba(26,11,46,0.95); z-index: 40; position: absolute; bottom: 0; color: #fff; }
#app .rundenkarte .knopf:not(.knopf-haupt) { background: #3d1d66; color: #fff; }
:root[data-theme="kontrast"] #app .rundenkarte { background: rgba(0,0,0,0.93); }
#app .runde-wert { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3em; min-height: 0; }
#app .runde-wert svg { color: var(--akzent); height: 55%; width: auto; }
#app .runde-wert strong { font-size: clamp(20px, 4vh, 44px); text-align: center; }
#app .runde-eimer { display: flex; align-items: center; justify-content: center; gap: 0.5em; font-weight: 800; font-size: clamp(16px, 2.8vh, 30px); }
#app .runde-eimer svg { color: var(--akzent); height: 1.4em; width: auto; }

/* --- „Sag was!" (12.10.2026): Bildkarten unten, gewählte Karte groß oben; oben bleibt die Bühne sichtbar ------- */
#app .knopf-sagwas { position: absolute; z-index: 30; right: var(--luecke); bottom: var(--luecke); color: #fff;
  /* Mindestmaß 120 × 96 (Hausregel; QA 23.11.2026: 1024×600 war 195×85, 600×900 war 110×141) */
  width: max(120px, calc((100vw - 11 * var(--luecke)) / 10 * 2 + var(--luecke))); height: max(96px, calc((100dvh - var(--fuss) - 7 * var(--luecke)) / 6));
  background: rgba(26,11,46,0.85); flex-direction: row; gap: 0.5em; }
#app .knopf-sagwas img { height: 80%; max-height: 96px; aspect-ratio: 1; border-radius: 10px; background: #fff; flex: none; }
#app .knopf-sagwas img[hidden] { display: none; }
/* Geisterbahn: unten rechts sitzt der runde Knopf „Ansicht" der Bühne (104 px, 16 px Rand) — daneben bleiben */
#app .schirm-fahren:not(.schirm-garten) > .knopf-sagwas { right: calc(16px + 104px + 12px); }
/* Hochkant ist der Knopf schmal (120 px): Bild über dem Wort, sonst bricht „Sag was!" Buchstabe für Buchstabe um */
@media (orientation: portrait) {
  #app .schirm-fahren > .knopf-sagwas { flex-direction: column; gap: 0.15em; }
  #app .schirm-fahren > .knopf-sagwas img { height: 62%; }
}
#app .rundenkarte .knopf-sagwas, #app .knopf-sagwas.im-raster { position: relative; right: auto; bottom: auto; width: auto; height: auto; }
#app .sagwas-leiste { position: absolute; inset: 0; z-index: 45; display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: var(--luecke); padding: var(--luecke); box-sizing: border-box; color: #fff;
  background: linear-gradient(rgba(10,4,20,0.35), rgba(10,4,20,0.35)); }   /* oben leicht abgedunkelt: dort wirkt gerade nichts */
#app .sagwas-leiste::before { content: ''; grid-column: 1 / 11; grid-row: 3 / 7; margin: calc(-1 * var(--luecke));
  margin-top: calc(-0.5 * var(--luecke)); background: rgba(26,11,46,0.94); border-top: 3px solid var(--akzent); }
:root[data-theme="kontrast"] #app .sagwas-leiste::before { background: #000; }
#app .sagwas-leiste .knopf { color: #fff; background: #3d1d66; }
#app .sag-gross { grid-column: 3 / 9; grid-row: 1 / 3; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 0; padding: 6px 18px 6px 6px; border-radius: var(--radius); background: #fff; color: #1a0b2e;
  border: 4px solid var(--akzent); box-shadow: 0 8px 30px rgba(0,0,0,0.5); font-weight: 900; font-size: clamp(20px, 4.4vh, 48px);
  line-height: 1.1; text-align: left; overflow: hidden; }
#app .sag-gross[hidden] { display: none; }
#app .sag-gross img { height: 100%; aspect-ratio: 1; flex: none; border-radius: 10px; }
#app .sag-gross span { min-width: 0; overflow-wrap: anywhere; }
#app .sag-gross.neu { animation: sag-auf 0.35s ease-out; }
@keyframes sag-auf { from { transform: scale(0.85); opacity: 0.2; } to { transform: none; opacity: 1; } }
#app .sag-reiter { grid-column: 1 / 9; grid-row: 3; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--luecke); min-height: 0; }
#app .sag-tab { font-size: clamp(14px, 2.3vh, 26px); }
#app .sag-zu { grid-column: 9 / 11; grid-row: 3; z-index: 1; }
#app .sag-blaettern { grid-row: 4 / 7; z-index: 1; font-size: clamp(12px, 1.8vh, 20px); }
#app .sag-blaettern svg { height: auto; width: 60%; max-width: 64px; }
#app .sag-blaettern small { color: var(--text-leise); }
#app .sag-vor { grid-column: 1; }
#app .sag-nach { grid-column: 10; }
#app .sag-karten { grid-column: 2 / 10; grid-row: 4 / 7; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--luecke); min-height: 0; }
#app .sag-karte { gap: 0.2em; padding: 4px; font-size: clamp(12px, 2vh, 22px); }
#app .sag-karte img { height: 72%; max-width: 92%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: #fff; flex: none; }
#app .sag-karte span:not(.dwell-dot) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#app .sag-karte.gewaehlt { box-shadow: inset 0 0 0 4px #ffc23d; border-color: #ffc23d; }
#app .sag-karten .leer { grid-column: 1 / 5; grid-row: 1 / 3; }
@media (orientation: portrait) {
  #app .sag-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); }
  #app .sag-gross { grid-column: 1 / 11; }
}

/* --- Fußleiste mit AssistUK ------------------------------------------------ */
#app .fuss { position: fixed; left: 0; right: 0; bottom: 0; height: var(--fuss); z-index: 100;
  display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 10px;
  background: rgba(0,0,0,0.8); color: rgba(255,255,255,0.75); font-size: 12px; white-space: nowrap; overflow: hidden; }
#app .fuss a { color: inherit; text-decoration: none; }
#app .fuss a:hover { color: #fff; }
#app .fuss-logo { height: 18px; width: auto; }
#app .fuss-privat { color: #ffb366; }
#app .fuss-version { color: rgba(255,255,255,0.75); }   /* Kontrast ≥ 4,5 : 1 (vorher halb durchsichtig) */
@media (max-width: 700px) { #app .fuss-privat { display: none; } }

/* iPad hochkant: nichts abschneiden */
@media (orientation: portrait) {
  #app .knopf { font-size: clamp(12px, 1.6vh, 20px); }
  #app .fotoliste { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  #app *, #app *::before, #app *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Startbildschirm international (Lars 12.10.2026: „eher Logo und Name, kein weiterer Text") */
#auk-splash .auk-tippen, #auk-splash .auk-leitsatz { display: none !important; }

/* --- Rahmen-Bildschirme (#oberflaeche, ../kern/css/spiel.css): Halloween-Teile der Seite „Spiel“ und der Info ------- */
#oberflaeche .farbpunkt { display: inline-block; width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.8); }
#oberflaeche .nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Warnung vor den gruseligen Stufen */
#oberflaeche .hw-warnung { max-width: 1100px; margin: 2vh auto 0; text-align: center; font-size: clamp(18px, 2.4vh, 26px); line-height: 1.4;
  background: #0b1622e0; border: 3px solid var(--akzent); border-radius: 22px; padding: 14px 28px; }
#oberflaeche .hw-warnung h2 { margin: 4px 0 8px; color: var(--akzent); font-size: 1.4em; }
#oberflaeche .hw-warnung p { margin: 6px 0; }
#oberflaeche .hw-warnung svg { color: var(--akzent); }
#oberflaeche .hw-warnung-schirm .leiste-unten .knopf { max-width: 46vw; }
#oberflaeche[hidden] { display: none !important; }
/* Info des Rahmens: Zwischenüberschriften der Halloween-Info (texte.js RAHMEN_TEXTE) */
#oberflaeche .hw-ueber { display: flex; align-items: center; gap: 0.4em; color: var(--akzent); font-size: 1.2em; margin-top: 0.4em; }
#oberflaeche .hw-ueber svg { flex: none; }

/* Fußleiste auf kleinen Bildschirmen aus: sehr flach (iPhone SE quer) und Handy hoch — jede Zeile zählt */
@media (max-height: 360px) {
  #app { --fuss: 0px; }
  #app .fuss { display: none; }
}
@media (max-width: 600px) and (orientation: portrait) {
  #app { --fuss: 0px; }
  #app .fuss { display: none; }
}

/* --- Startseite im Arcade-Standard (Lars 14.11.2026; app.js startseite()) --------------------------------------------------
   Ein Rahmen-Bildschirm in #oberflaeche: Kopf, „Spielen“ und Kopfknöpfe aus kern/css/spiel.css (kern/LAYOUT.md). Eigen sind
   nur der Grund, die Reihe der Gruselstufen und die Bildkacheln. Alles ≥ 120 × 96 (unter 420 px Höhe ≥ 96 × 72).
   Kompakt (Höhe ≤ 500): „Spielen“ + Kacheln in einer Reihe, darunter die Stufen. Handy hoch (≤ 560): Kachel „Gruselstufe“
   statt der Stufen-Reihe (sie öffnet die Wahl als eigene Seite). */
.bildschirm.halloween-start { background: radial-gradient(ellipse at 50% -10%, #4b1d7a 0%, #2a1048 45%, #1a0b2e 80%); }
body.bf-cvi .bildschirm.halloween-start { background: #000; }
.halloween-start .start-unten.mit-modi { flex: 1 1 auto; justify-content: flex-end; }
@media (min-width: 2400px) and (min-height: 1300px) { .halloween-start .start-unten.mit-modi { max-width: 1800px; } }   /* 4K: Kacheln wachsen mit */
.hw-stufen { display: flex; gap: var(--luecke); }
.knopf.hw-stufe { flex: 1 1 0; min-width: var(--knopf-b); min-height: var(--knopf-min-h); flex-direction: row; gap: 12px; font-size: var(--s-knopf); font-weight: 700;
  border-width: 3px; }
.knopf.hw-stufe > span:not(.dwell-dot) { display: flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.15; }
.knopf.hw-stufe small { margin-top: 2px; }
.knopf.hw-stufe.gewaehlt { border-color: var(--akzent); box-shadow: inset 0 0 0 3px var(--akzent); }
.knopf.hw-stufe.gewaehlt svg { color: var(--akzent); }
.knopf.hw-stufe.gesperrt { opacity: 0.55; filter: grayscale(1); }
.knopf.hw-stufe.gesperrt::after { content: ""; position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: var(--hw-schloss) center / contain no-repeat; mask: var(--hw-schloss) center / contain no-repeat; }
.hw-stufe-lustig { background: linear-gradient(160deg, #3d2a73, #2e5a8a); }
.hw-stufe-etwas { background: linear-gradient(160deg, #3d1d66, #5a2a6e); }
.hw-stufe-richtig { background: linear-gradient(160deg, #2a0d33, #5c1a2a); }
:root { --hw-schloss: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V7a6 6 0 0 1 12 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1zm2 0h8V7a4 4 0 0 0-8 0z'/%3E%3C/svg%3E"); }
.halloween-start .modus-reihe { display: flex; gap: var(--luecke); flex: 0 1 clamp(300px, 46vh, 640px); min-height: var(--knopf-min-h); }
.halloween-start .knopf.modus-kachel { flex: 1 1 0; min-width: var(--knopf-b); min-height: var(--knopf-min-h); padding: var(--innen); gap: var(--luecke);
  font-size: var(--s-h3); font-weight: 800; color: #fff; text-shadow: 0 2px 6px #0009; border: 3px solid #ffffff80; overflow: hidden;
  container-type: size; }   /* Bild quadratisch nach dem Platz der Kachel (cqw/cqh) */
.halloween-start .knopf.modus-kachel small { color: #fff; opacity: 0.9; font-size: 0.66em; font-weight: 600; }
.halloween-start .modus-garten { background: linear-gradient(150deg, #3b2a6e, #1f5a52 62%, #142a3a); }
.halloween-start .modus-kuerbis { background: linear-gradient(150deg, #c86a14, #8c3414 62%, #4b1d7a); }
.halloween-start .modus-basteln { background: linear-gradient(150deg, #8c2a8a, #4b1d7a); }
.halloween-start .modus-basteln > svg { color: #ffc04d; }
.halloween-start .modus-stufe { display: none; background: linear-gradient(160deg, #3d2a73, #2e5a8a); }
.halloween-start .modus-bild { flex: none; width: min(80cqw, calc(100cqh - 4.4em), 360px); height: auto; aspect-ratio: 1; object-fit: contain;
  border-radius: var(--r-mittel); box-shadow: 0 4px 14px #0006; }
.halloween-start .modus-kachel > svg { width: min(120px, 40cqh); height: min(120px, 40cqh); flex: none; }
.hw-eimer svg { color: var(--akzent); }
body.bf-cvi .halloween-start .knopf.modus-kachel, body.bf-cvi .knopf.hw-stufe { background: #000; text-shadow: none; filter: none; }
body.bf-cvi .knopf.hw-stufe.gesperrt { opacity: 0.6; }
body.bf-cvi .halloween-start .modus-basteln > svg, body.bf-cvi .hw-eimer svg { color: inherit; }
/* Seite „Wie gruselig soll es sein?“ (Handy hoch): drei Stufen untereinander über der Leiste */
.bildschirm.hw-grusel-schirm { background: #1a0b2e; display: flex; flex-direction: column; gap: var(--luecke); padding-bottom: calc(var(--leiste-h) + var(--unten)); }
body.bf-cvi .bildschirm.hw-grusel-schirm { background: #000; }
.hw-stufen-seite { flex: 1 1 auto; flex-direction: column; min-height: 0; }
.hw-stufen-seite .knopf.hw-stufe { flex: 1 1 0; max-height: 200px; font-size: var(--s-h3); }
/* Hinweis „gesperrt“ auch auf der Startseite (Rahmen-Bildschirm) */
#oberflaeche .hinweis-toast { position: fixed; left: 50%; bottom: 14vh; transform: translateX(-50%); z-index: 70; max-width: 80vw;
  padding: 0.8em 1.2em; border-radius: 14px; background: #24103f; border: 2px solid var(--akzent); color: #fff;
  font-size: var(--s-text); font-weight: 600; text-align: center; pointer-events: none; }
/* kompakt (Handy quer): oben „Spielen“ + drei Kacheln (Bild links neben dem Namen, ohne Satz), darunter die Stufen */
@media (max-height: 500px) {
  .halloween-start .start-unten.mit-modi { flex: 1 1 auto; display: grid; grid-template-columns: minmax(var(--knopf-b), 1fr) 3fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "haupt modi" "stufen stufen"; max-height: 300px; }
  .halloween-start .start-unten.mit-modi > .knopf.haupt { grid-area: haupt; width: auto; min-width: 0; flex-direction: column; gap: 4px; padding: 6px; }
  .halloween-start .start-unten.mit-modi > .knopf.haupt small { font-size: 13px; }
  .halloween-start .hw-stufen { grid-area: stufen; }
  .halloween-start .modus-reihe { grid-area: modi; }
  .halloween-start .knopf.modus-kachel { flex-direction: row; font-size: 17px; padding: 6px 8px; }
  .halloween-start .knopf.modus-kachel small { display: none; }
  .halloween-start .modus-bild { width: min(40cqw, calc(100cqh - 12px), 110px); }
  .halloween-start .modus-kachel > svg { width: 40px; height: 40px; }
  .knopf.hw-stufe { font-size: 17px; }
  .knopf.hw-stufe svg { width: 36px; height: 36px; }
}
@media (max-height: 420px) and (max-width: 640px) {
  /* vier Kopf-Knöpfe und der Name passen mit 120 breit nicht in 568 px — Ausnahme 4 (≥ 96 × 72) wie kern/spiel.css „.mit-welten“ */
  .halloween-start .start-ecke .knopf.glas { min-width: 96px; max-width: 104px; padding: 4px; }
  .halloween-start .start-ecke .knopf.glas span:not(.dwell-dot) { font-size: 12px; }
  .halloween-start .start-unten.mit-modi { grid-template-columns: minmax(96px, 1fr) 3fr; }
  .halloween-start .knopf.modus-kachel, .knopf.hw-stufe, .halloween-start .start-unten.mit-modi > .knopf.haupt { min-width: 96px; min-height: 72px; }
  .halloween-start .knopf.modus-kachel { flex-direction: column; gap: 2px; font-size: 14px; }
  .halloween-start .modus-bild { width: min(60cqw, calc(100cqh - 2.4em)); }
  .halloween-start .modus-kachel > svg { width: 30px; height: 30px; }
  .knopf.hw-stufe { font-size: 15px; gap: 6px; padding: 4px 8px; }
  .knopf.hw-stufe svg { width: 28px; height: 28px; }
}
/* Handy hoch: Kachel „Gruselstufe“ statt der Stufen-Reihe; vier Kacheln 2 + 2, Bild über dem Namen, ohne Satz */
@media (max-width: 560px) {
  .halloween-start .hw-stufen { display: none; }
  .halloween-start .modus-stufe { display: flex; }
  .halloween-start .modus-reihe { flex: 1 1 auto; max-height: 440px; flex-wrap: wrap; }
  .halloween-start .knopf.modus-kachel { flex: 1 1 40%; min-height: 120px; font-size: 18px; padding: 8px; gap: 4px; }
  .halloween-start .modus-kachel > svg { width: min(72px, 40cqh); height: min(72px, 40cqh); }
  .halloween-start .modus-stufe small { display: block; }
  .halloween-start .knopf.modus-kachel:not(.modus-stufe) small { display: none; }
  .halloween-start .modus-bild { width: min(84cqw, calc(100cqh - 2.6em), 150px); }
}

/* --- CVI-Modus (Baustein „Barrierefreiheit“, body.bf-cvi): ruhiger schwarzer Grund in den Halloween-Bildschirmen; die
   Knöpfe bekommen ihren kräftigen Umriss vom Baustein (allgemeine Regel für button), Bilder bleiben (sie tragen die Bedeutung) */
body.bf-cvi #app { --bg: #000; --bg2: #000; --karte: #000; --text: #fff; --text-leise: #fff; --rand: var(--bf-cvi-text, #fff);
  --akzent: var(--bf-cvi-farbe, #ffd400); background: #000; }
body.bf-cvi #app .ueberlagerung { background: #000; }
body.bf-cvi #app :is(.eimer-werte, .info-text, .fuss, .hinweis-toast) { background: #000; border-color: #fff; }
body.bf-cvi #app .titel { color: var(--bf-cvi-farbe, #ffd400); }
/* Seite „Spiel“ auf Handy quer (Höhe ≤ 500): Zeilen mit bis zu drei Wahlknöpfen wie im Kern die Spielhilfen — Text links,
   Knöpfe rechts in einer Reihe (sonst wird die Zeile „Gruselige Stufen“ höher als der Platz über der Leiste) */
@media (max-height: 500px) and (min-width: 561px) {
  #oberflaeche.einstellungen .einst-zeile:not(:has(.wahl > .knopf:nth-child(4))) { flex-wrap: nowrap; }
  #oberflaeche.einstellungen .einst-zeile:not(:has(.wahl > .knopf:nth-child(4))) h3 { flex: 1 1 auto; min-width: 0; }
  #oberflaeche.einstellungen .einst-zeile:not(:has(.wahl > .knopf:nth-child(4))) .wahl { flex: none; flex-wrap: nowrap; }
}
