/* Farben: sanftes, mattes Koboldgruen auf hellem Grund; Tinte ein dunkles
   Moosgruen. Die Stichwortfarben der Karten bleiben. Nachtmodus in denselben
   Rollen, dunkel und matt, nicht schwarz. */
:root { --glas: #14100C; --auf-glas: #fff; --grund: #EEF3E6; --karte: #FAFCF5; --tinte: #27331F; --gruen: #7CA36A; --gruen-dunkel: #5C804E; --gruen-hell: #D7E4CC; --auf-gruen: #FFFFFF;
        --laune: #D8DFCF; --rolle: #C9D8E1; --linie: #C9D6BC;
        --ja: #DDEBD3; --ja-rand: #4C7A5A; --nein: #F3D9D3; --nein-rand: #A3392C; --achse: #5E8250; --bildtext: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; --glas: #E3D7B8; --auf-glas: #2A2118; --grund: #1B221A; --karte: #252E23; --tinte: #E6EEDC; --gruen: #7CA36A; --gruen-dunkel: #9BC088; --gruen-hell: #34452F; --auf-gruen: #1B221A;
        --laune: #3B4636; --rolle: #37464F; --linie: #3F4C3A; --ja: #2F4A35; --ja-rand: #9BC088; --nein: #5A2C27; --nein-rand: #F0A090; --achse: #9BC088; } }
:root[data-theme="dark"] { color-scheme: dark; --glas: #E3D7B8; --auf-glas: #2A2118; --grund: #1B221A; --karte: #252E23; --tinte: #E6EEDC; --gruen: #7CA36A; --gruen-dunkel: #9BC088; --gruen-hell: #34452F; --auf-gruen: #1B221A;
        --laune: #3B4636; --rolle: #37464F; --linie: #3F4C3A; --ja: #2F4A35; --ja-rand: #9BC088; --nein: #5A2C27; --nein-rand: #F0A090; --achse: #9BC088; }
/* Kontrast (9.10.2026, WCAG AA, Entscheidung des Autors: Farbton bleibt, nur die Helligkeit in OKLCH):
   --kopf hell #7CA36A -> #5A8048, dunkel #5E8250 -> #5B7F4D, so dass Weiss UND die schwarze Schrift im Kopf
   (Rumpel, Ehrlich geklaut!, Startseite) je mindestens 4,5:1 haben (Fenster nur zwischen Leuchtdichte 0,175 und 0,183).
   --gruen-dunkel hell #5E8250 -> #5C804E (Weiss 4,5:1). --auf-gruen ist die Schrift auf --gruen-dunkel: hell Weiss,
   dunkel #1B221A (auf #9BC088 8,0:1 statt Weiss 2,0:1). */
/* Bewegung (2.10.2026, app/bewegung.js): eine kurze und eine mittlere Zeit, eine Feder. Wer
   "Bewegung reduzieren" eingestellt hat, bekommt am Ende der Datei alles auf null. */
:root { --t-kurz: .15s; --t-mittel: .35s; --t-feder: cubic-bezier(.3,1.6,.5,1); --kopf: #5A8048; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --kopf: #5B7F4D; } }
:root[data-theme="dark"] { --kopf: #5B7F4D; }
* { box-sizing: border-box; }
/* 112,5 % = 18 px bei Standard-Einstellung, folgt aber der Schriftgroesse des Geraets (2.10.2026). */
html { font-size: 112.5%; }
html[data-text="gross"] { font-size: 131.25%; }   /* grosse Schrift (10.10.2026, NORMEN-PLAN C6): +1/6, alles in rem waechst mit */
html, body { margin: 0; background: var(--grund); color: var(--tinte); font-family: "Nunito", "Trebuchet MS", "Segoe UI", Verdana, sans-serif; line-height: 1.45; }
h1, h2, h3, .laune h2, button.gross, button.weiter { font-family: "Fredoka", "Nunito", "Trebuchet MS", Verdana, sans-serif; font-weight: 600; letter-spacing: .01em; }
h1, h2, h3 { text-wrap: balance; }
/* App 356 (Fund des Autors am Handy 26.10.2026: "wenn die untere Systembar verschwindet, wird oben etwas abgeschnitten"): der Kopf
   klebt an 0 und traegt den sicheren Bereich als Innenabstand; vorher klebte er bei env(safe-area-inset-top), das beim Ausblenden der
   Systemleisten wuchs und den Kopf ueber die Seite schob. --kopfh enthaelt den Bereich damit schon, darunter nichts mehr dazurechnen. */
#kopf { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px; background: var(--kopf); color: #fff; border-bottom: 0; z-index: 2; }
#kopf button.leise { color: #fff; font-family: "Fredoka", "Nunito", sans-serif; font-size: 1.15rem; }
#kopfinfo { font-size: .85rem; opacity: 1; text-align: center; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { padding: 14px 14px 90px; max-width: 900px; margin: 0 auto; }
h1 { font-size: 1.7rem; margin: 6px 0 12px; }
h2 { font-size: 1.3rem; margin: 18px 0 8px; }
h3 { font-size: 1.1rem; margin: 14px 0 6px; }
p { margin: 8px 0; }
button { font: inherit; font-size: 1.05rem; padding: 12px 18px; border: 2px solid var(--gruen-dunkel); border-radius: 14px; background: var(--karte); color: var(--tinte); cursor: pointer; min-height: 48px; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
/* Zugang (11.10.2026, NORMEN-ABGLEICH Phase 1, app/zugang.js): Skip-Link "Zum Inhalt" erst beim Fokus sichtbar (WCAG 2.4.1);
   Kopf (sticky) und Weiter-Knopf (fixiert) verdecken einen fokussierten Knopf nicht (WCAG 2.4.11, scroll-padding). */
.sprunglink { position: fixed; left: 8px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--karte); color: var(--tinte); border: 3px solid var(--gruen-dunkel);
  font-weight: 700; text-decoration: none; transform: translateY(-200%); }
.sprunglink:focus, .sprunglink:focus-visible { transform: none; outline: 3px solid var(--gruen); outline-offset: 2px; }
main[tabindex="-1"]:focus { outline: none; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px); scroll-padding-bottom: 96px; }
a:focus-visible, [tabindex]:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
button.gross { display: block; width: 100%; margin: 10px 0; font-size: 1.25rem; padding: 18px; font-weight: 700; }
button.leise { border-color: transparent; background: transparent; padding: 6px 10px; min-height: 0; }
button.weiter { position: fixed; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); max-width: 872px; margin: 0 auto; font-weight: 700; font-size: 1.2rem; background: var(--gruen-dunkel); color: var(--auf-gruen); border-color: var(--gruen-dunkel); border-radius: 18px; box-shadow: 0 4px 14px rgba(39,51,31,.18); z-index: 2; }
button.weiter[disabled], button.weiter.gesperrt { opacity: .5; }
button.an { background: var(--gruen-dunkel); color: var(--auf-gruen); border-color: var(--gruen-dunkel); }
button.klein { padding: 6px 12px; min-height: 44px; font-size: .95rem; }
button.rot { border-color: var(--nein-rand); color: var(--nein-rand); }
input[type=text], input[type=email], input[type=number], select { font: inherit; font-size: 1.1rem; padding: 10px 12px; border: 2px solid var(--linie); border-radius: 12px; background: var(--karte); color: var(--tinte); width: 100%; }
input[type=number] { width: 5.5em; text-align: center; }
label { display: block; margin: 8px 0; }
.reihe { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.reihe .name { flex: 1; font-weight: 700; }
.reihe .info { font-size: .85rem; opacity: .75; }
.kasten { background: var(--karte); border: 1.5px solid var(--linie); border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.hinweis { font-size: .95rem; opacity: .85; }
.warn { color: var(--nein-rand); font-weight: 700; }
.ok { color: var(--ja-rand); font-weight: 700; }
.badge { display: inline-block; font-family: Helvetica, Arial, sans-serif; font-size: .8rem; letter-spacing: .04em; padding: 2px 9px; border-radius: 999px; background: var(--laune); vertical-align: middle; }
.badge.grund { background: var(--rolle); }
.badge.dick { background: var(--nein-rand); color: #fff; border: 1px solid var(--nein-rand); }
.badge.korsett { background: var(--ja-rand); color: #fff; border: 1px solid var(--ja-rand); }
.badge.hunger { background: var(--rolle); border: 1px dashed var(--linie); margin-left: 4px; }   /* Hungerhaken (App 295): wer hinten liegt, Rettungsring */
/* Launenkarte: hochkant, Bildschirmhoehe */
.laune { background: var(--karte); border: 2px solid var(--linie); border-left: 8px solid var(--achse); border-radius: 16px; padding: 14px 16px; margin: 10px 0; }
/* Zeichen "ab Nacht 2" (App 300, data/ab-nacht.mjs): Mond mit Nachtzahl wie unten auf der Mondlaune; in App, Spiel, Heft und
   Regelheft. Die Sichel bleibt elfenbein mit dunkler Kontur wie auf der Karte, die Ziffer nimmt die Textfarbe (dunkles Thema). */
.abnacht { display: inline-block; line-height: 0; vertical-align: -0.3em; margin: 0 .25em; letter-spacing: 0; }
.abnacht svg { width: 1.4em; height: 1.4em; }
.abnacht svg text { fill: currentColor; }
.zeichenbild.abnacht svg { width: 1.6em; height: 1.6em; }
.laune .stichwort { font-family: Helvetica, Arial, sans-serif; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.laune h2 { margin: 2px 0 6px; font-size: 1.6rem; }
textarea.export { width: 100%; font: inherit; font-size: .85rem; margin-top: 8px; border: 1.5px solid var(--linie); border-radius: 8px; background: var(--karte); color: var(--tinte); }
.laune .bild { width: 100%; max-width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; border: 1.5px solid var(--linie); display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; font-style: italic; color: var(--tinte); background: var(--gruen-hell); margin: 8px 0; overflow: hidden; }
.laune .bild img { width: 100%; height: 100%; object-fit: cover; }
/* Aufdecken: erst nur das Bild, gross, der Kobold liest vor (29.9.2026). */
.laune.aufdecken { text-align: center; }
.aufdeckbild { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 14px; overflow: hidden; min-height: 0; cursor: pointer; }
.aufdeckbild img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.aufdeckbild span { display: block; padding: 40px 16px; font-style: italic; font-size: 1.3rem; background: var(--gruen-hell); }
.hinweis.mitte { text-align: center; }
/* Vorlesen direkt unter dem Bild, mittig (Wunsch des Autors, 29.9.2026). */
.laune .vorlesen { display: flex; justify-content: center; margin: 2px 0 6px; }
.laune .spruch { font-style: italic; opacity: .85; margin: 6px 0; }
.laune .regel { font-size: 1.1rem; margin: 8px 0; }
.laune .kurz { font-weight: 700; margin-top: 6px; }
/* Zaehlblock quer */
.zaehlblock { overflow-x: auto; }
.zaehlblock table { border-collapse: collapse; width: 100%; min-width: 480px; background: var(--karte); }
.zaehlblock th, .zaehlblock td { border: 1px solid var(--linie); padding: 6px 8px; text-align: center; white-space: nowrap; }
.zaehlblock th { background: var(--gruen-hell); }
.zaehlblock td.stand { font-weight: 700; }
.zaehlblock tr.fuehrt td { font-weight: 700; }
.herleitung { font-size: .85rem; opacity: .8; }
/* display: flex schlug das hidden-Attribut: die Leiste lag immer ueber dem Inhalt. */
#musikLeiste[hidden], #themaFrage[hidden] { display: none; }
/* Musik als Fenster ueber abgedunkeltem Hintergrund (29.9.2026), seit 2.10.2026 als Bottom-Sheet (unten). */
#musikLeiste { position: fixed; inset: 0; background: rgba(12, 16, 10, .66); display: flex; align-items: center; justify-content: center; z-index: 20; padding: 16px; }
.musikkarte { position: relative; background: var(--karte); border: 2px solid var(--gruen-dunkel); border-radius: 20px; padding: 86px 22px 20px; width: min(360px, 100%); text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.musikkarte h2 { margin: 0 0 10px; }
.musikkarte label { display: block; margin: 8px 0 14px; }
.musikkarte input[type=range] { width: 100%; accent-color: var(--gruen-dunkel); }
.musikkarte .musikfigur { position: absolute; left: 50%; top: -92px; transform: translateX(-50%); height: 170px; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
#musikHinweis { font-size: .8rem; opacity: .75; width: 100%; }
/* Suche klebt unter der Kopfleiste; die Trefferliste haengt daran, damit sie
   nach einem Sprung ins Heft weiter sichtbar bleibt (Fund des Autors). */
.suche { position: sticky; top: var(--kopfh, 52px); background: var(--grund); padding: 8px 0; z-index: 1; }
.treffer { max-height: 38vh; overflow-y: auto; }
.treffer button { display: block; width: 100%; text-align: left; margin: 4px 0; padding: 8px 12px; min-height: 44px; }
/* Sprungziele: Abstand fuer Kopfleiste und Suchzeile, sonst liegt die erste Zeile darunter. */
.heft [id], #launeAnzeige, [id^="laune-"] { scroll-margin-top: calc(var(--kopfh, 52px) + var(--festh, 78px) + 8px); }
.treffer .art { float: right; font-size: .8rem; opacity: .75; }
.heft h2 { border-bottom: 2px solid var(--gruen); }
.heft table { border-collapse: collapse; margin: 8px 0; font-size: .95rem; }
.heft th, .heft td { border: 1px solid var(--linie); padding: 4px 8px; }
.heft blockquote { border-left: 4px solid var(--rolle); margin: 8px 0; padding: 4px 12px; background: var(--karte); }
.zeit { font-family: Helvetica, Arial, sans-serif; font-size: 2rem; text-align: center; margin: 12px 0; }
.stand-liste { display: flex; flex-wrap: wrap; gap: 8px; }
.stand-liste .kachel { background: var(--karte); border: 1.5px solid var(--linie); border-radius: 12px; padding: 6px 10px; }

.zeigen select { width: auto; }
@media (min-width: 760px) { .spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; } }

/* Launenauswahl als Kacheln: Bildfeld in Stichwortfarbe, Titel darunter. */
.kachelgitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.kachel-laune { padding: 0; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-height: 0; border-color: var(--linie); }
.kachel-laune.an { border-color: var(--gruen-dunkel); box-shadow: 0 0 0 3px var(--gruen-hell); }
.kachel-laune[disabled] { opacity: .35; }
.kachel-laune .kbild { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--achse); color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.kachel-laune .kbild img { width: 100%; height: 100%; object-fit: cover; }
.kachel-laune .ktitel { padding: 6px 6px 8px; font-size: .9rem; font-weight: 700; line-height: 1.15; }

/* Stichpruefer */
.knopfreihe { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
button.art { border-color: var(--art); border-left-width: 8px; }
button.art.an { background: var(--art); border-color: var(--art); color: var(--auf-art, #fff); }
.zahlgitter { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 8px 0; }
.zahlgitter button { padding: 6px 0; min-height: 44px; font-weight: 700; }
.zahlgitter button[disabled], .knopfreihe button[disabled] { opacity: .35; }
.stichreihe { display: flex; flex-wrap: wrap; gap: 6px; min-height: 44px; align-items: center; }
button.stichkarte { border-color: var(--art); border-left-width: 8px; font-weight: 700; }
button.stichkarte .wer { font-weight: 400; opacity: .75; }
.ergebnis { border-color: var(--ja-rand); background: var(--ja); }
.ergebnis.leer { border-color: var(--nein-rand); background: var(--nein); }
.ergebnis .urteil { font-family: "Fredoka", "Nunito", sans-serif; font-size: 1.25rem; margin: 0 0 6px; }
.ergebnis ol { margin: 6px 0 8px; padding-left: 1.3em; }
.kurzurteil { min-height: 1.6em; margin: 4px 0 2px; font-weight: 700; }
.kurzurteil.leer { color: var(--nein-rand); }
.kurzurteil.sieg { color: var(--ja-rand); }

/* Nummer von der Karte eintippen (Launenauswahl) */
.nummernfeld input { width: 7em; font-size: 1.2rem; padding: 8px 10px; margin-left: 6px; letter-spacing: .05em; }
.nummernfeld { margin: 8px 0 4px; }

/* Feste Launen-Nummer unten auf der Karte, wie gedruckt */
.laune .kartennr { text-align: center; font-weight: 700; letter-spacing: .06em; opacity: .85; margin: 6px 0 8px; }

/* Startbildschirm mit laufender Partie: Fortsetzen und Abbrechen nebeneinander (29.9.2026). */
.startreihe { display: flex; gap: 8px; margin: 10px 0; }
/* width:auto und min-width:0, sonst erben beide die volle Breite von
   button.gross und der rechte ragt ueber den Rand (Fund des Autors, 29.9.2026). */
.startreihe button.gross { width: auto; min-width: 0; margin: 0; }
.startreihe button.gross:first-child { flex: 3 1 0; }
.startreihe button.abbruch, .startreihe button.gross.rot { flex: 2 1 0; }
button.gross.rot { background: var(--nein); border-color: var(--nein-rand); color: var(--nein-rand); }
span.stichkarte { display: inline-block; border: 2px solid var(--art); border-left-width: 8px; border-radius: 10px; padding: 6px 12px; font-weight: 700; }

/* Symbole neben den Knoepfen (29.9.2026): rundes Medaillon links, Text daneben. */
button.gross.mitsym { display: flex; align-items: center; gap: 14px; text-align: left; padding: 10px 16px; }
button.gross.mitsym .sym { width: 56px; height: 56px; border-radius: 50%; flex: none; object-fit: cover; box-shadow: 0 1px 4px rgba(39,51,31,.3); }
button.gross.mitsym .zahl-gross { font-size: 1.9rem; line-height: 1; min-width: 1.2em; text-align: center; }
.startreihe button.gross.mitsym { font-size: 1rem; gap: 8px; padding: 10px; }
.startreihe button.gross .sym { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; }
/* Abbrechen: Symbol oben, Text darunter, nie mitten im Wort getrennt. */
.startreihe button.abbruch { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px 6px; font-size: .95rem; line-height: 1.15; text-align: center; hyphens: none; overflow-wrap: normal; }
.rueckfrage { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.rueckfrage button.gross { margin: 0; }

/* ===== Freigestellte Kobolde (29.9.2026) ===== */
.figur { display: block; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(39,51,31,.28)); }
/* Knoepfe: der Kobold steht links und ragt oben ueber den Rand. */
button.gross.mitfig { position: relative; display: flex; align-items: center; min-height: 76px; margin: 26px 0 10px; padding: 10px 16px 10px 112px; text-align: left; overflow: visible; }
button.gross.mitfig .figur { position: absolute; left: 10px; bottom: 2px; height: 132%; max-width: 96px; object-fit: contain; object-position: bottom center; }
button.gross.mitfig .knopftext small { display: block; font-size: .8rem; font-weight: 600; opacity: .85; }
button.gross.mitfig .zahl-gross { font-size: 1.9rem; margin-right: 6px; vertical-align: -3px; }
.startreihe { align-items: stretch; margin-top: 26px; }
.startreihe button.gross.mitfig { margin: 0; padding-left: 74px; font-size: 1rem; }
.startreihe button.gross.mitfig .figur { height: 122%; max-width: 64px; left: 4px; }
.startreihe button.abbruch.mitfig { display: flex; flex-direction: row; text-align: left; padding: 8px 8px 8px 60px; font-size: .95rem; }
.startreihe button.abbruch.mitfig .figur { max-width: 54px; }
.datenstand { font-size: .8rem; opacity: .75; margin: 18px 0 2px; text-align: center; }
.startinfo { text-align: center; font-size: .85rem; margin-top: 0; }
.abmeldezeile { text-align: center; margin: 4px 0 0; }
.abmeldezeile button { font-size: .85rem; opacity: .7; text-decoration: underline; }
.rechtliches { font-size: .8rem; opacity: .7; }
.rechtliches a { color: inherit; }

/* Vorbereitung */
.vb-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.vb-kopf h1 { margin: 0 0 4px; }
.vb-schritt { font-family: Helvetica, Arial, sans-serif; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; margin: 0; }
.vb-kern { font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; }
.vb-figur { height: 140px; max-width: 40%; object-fit: contain; flex: none; }
.vb-kopf > div { min-width: 0; }
.vb-kopf h1 small { font-size: .6em; opacity: .7; }
.vb-punkte { display: flex; gap: 6px; margin: 6px 0 10px; }
.vb-punkte span { flex: 1; height: 6px; border-radius: 3px; background: var(--linie); }
.vb-punkte span.fertig { background: var(--gruen); }
.vb-punkte span.an { background: var(--gruen-dunkel); }
.vb-text ul.punkte { list-style: none; padding: 0; margin: 0; }
.vb-text ul.punkte li { position: relative; padding: 6px 0 6px 28px; border-bottom: 1px dashed var(--linie); }
.vb-text ul.punkte li:last-child { border-bottom: 0; }
.vb-text ul.punkte li::before { content: "✦"; position: absolute; left: 4px; color: var(--gruen-dunkel); }
ol.schrittliste { counter-reset: schritt; list-style: none; padding: 0; margin: 0 0 8px; }
ol.schrittliste li { counter-increment: schritt; position: relative; padding: 6px 0 6px 42px; min-height: 30px; font-weight: 700; }
ol.schrittliste li::before { content: counter(schritt); position: absolute; left: 0; top: 4px; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gruen-dunkel); color: var(--auf-gruen); font-family: "Fredoka", sans-serif; }

/* Historie: der Chronist im Hintergrund, der Text liegt darueber. */
.figur.hintergrund { position: fixed; right: -24px; bottom: 0; height: 62vh; max-width: 70vw; object-fit: contain; object-position: bottom right; opacity: .22; z-index: 0; filter: none; }
.figur.hintergrund ~ * { position: relative; z-index: 1; }

/* Spielregeln */
.regelkopf { display: flex; align-items: flex-end; justify-content: space-between; }
.regelkopf .kopffigur { height: 110px; }
nav.kapitel { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
nav.kapitel button { min-height: 36px; padding: 4px 10px; font-size: .88rem; border-radius: 999px; }
.regelfigur { width: 118px; margin: 6px 0 4px 10px; float: right; shape-outside: margin-box; }
.regelfigur.links { float: left; margin: 6px 10px 4px 0; }
.regelfigur .figur { width: 100%; height: auto; }
.heft h2 { clear: both; margin-top: 28px; padding: 6px 10px; background: var(--gruen-hell); border-bottom: 0; border-left: 6px solid var(--gruen-dunkel); border-radius: 8px; }
.heft h3 { color: var(--gruen-dunkel); margin-top: 20px; }
.heft h5 { font-size: 1.05rem; margin: 30px 0 4px; }
.heft h4 + h5 { margin-top: 14px; }
.heft ul, .heft ol { padding-left: 1.3em; }
.heft li { margin: 4px 0; }
.heft blockquote { border-left: 4px solid var(--rolle); border-radius: 0 10px 10px 0; font-style: italic; }
.heft table { background: var(--karte); }

/* Stichpruefer: nummerierte Bloecke, gesperrt bis die Pflicht davor erledigt ist. */
section.stichblock { background: var(--karte); border: 1.5px solid var(--linie); border-left: 6px solid var(--gruen); border-radius: 14px; padding: 10px 12px 12px; margin: 14px 0; }
section.stichblock.erledigt { border-left-color: var(--ja-rand); }
section.stichblock.gesperrt { opacity: .45; border-left-color: var(--linie); }
.blockkopf { display: flex; align-items: center; gap: 10px; min-height: 64px; }
.blockkopf h2 { margin: 0; flex: 1; font-size: 1.2rem; }
.blocknr { font-family: "Fredoka", sans-serif; font-size: 1.6rem; font-weight: 600; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 21px; background: var(--gruen-dunkel); color: var(--auf-gruen); display: inline-flex; align-items: center; justify-content: center; }
.blocknr:not(:empty) { flex: none; }
section.stichblock:first-of-type .blocknr { font-size: .85rem; letter-spacing: .06em; background: var(--gruen-hell); color: var(--tinte); }
.blockfigur { height: 78px; margin: -18px 0 -6px; flex: none; }
.kachel-laune[disabled] { opacity: 1; }
section.stichblock .kachelgitter { grid-template-columns: repeat(3, 1fr); gap: 6px; }
section.stichblock .kachel-laune .ktitel { font-size: .78rem; padding: 4px 4px 6px; }

/* ===== Nacht, Setup, Geist - zweite Runde (29.9.2026) ===== */
.nachtnav { display: flex; justify-content: space-between; min-height: 0; }
.nachtleiste { display: flex; gap: 3px; margin: 2px 0 6px; overflow-x: auto; scrollbar-width: none; }
.nachtleiste span { flex: 1 0 auto; font-family: Helvetica, Arial, sans-serif; font-size: .8rem; letter-spacing: .03em; text-transform: uppercase; text-align: center; padding: 4px 5px 3px; border-bottom: 4px solid var(--linie); opacity: .75; white-space: nowrap; }
.nachtleiste span.fertig { border-color: var(--gruen); opacity: .85; }
.nachtleiste span.an { border-color: var(--gruen-dunkel); opacity: 1; font-weight: 700; }
h2.abschnitt { font-size: 1.05rem; margin: 16px 0 6px; padding-left: 10px; border-left: 5px solid var(--gruen-dunkel); }
.eckdaten { display: flex; gap: 8px; margin: 8px 0; }
.eckdaten > div { flex: 1; background: var(--karte); border: 1.5px solid var(--linie); border-radius: 14px; padding: 8px 6px; text-align: center; display: flex; flex-direction: column; min-width: 0; }
.eckdaten .ezahl { font-family: "Fredoka", sans-serif; font-size: 1.7rem; font-weight: 600; color: var(--gruen-dunkel); line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eckdaten > div > span:last-child { font-size: .78rem; opacity: .8; }
.stand-liste .kachel { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 96px; padding: 8px 12px; }
.stand-liste .kpunkte { font-family: "Fredoka", sans-serif; font-size: 1.5rem; font-weight: 600; line-height: 1; }
.stand-liste .kchips { font-size: .78rem; opacity: .8; letter-spacing: .1em; }
.launezeile { display: flex; gap: 10px; align-items: center; background: var(--karte); border: 1.5px solid var(--linie); border-left: 6px solid var(--achse); border-radius: 12px; padding: 6px; margin: 6px 0; }
.launezeile img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex: none; }
.launezeile span { font-size: .9rem; }
/* Stichpruefer: die Plaetze des Stichs in Legereihenfolge */
.plaetze { display: flex; gap: 6px; margin: 10px 0; }
.platz { flex: 1; min-width: 0; background: var(--karte); border: 2px solid var(--linie); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.platz .platznr { font-family: "Fredoka", sans-serif; width: 26px; height: 26px; border-radius: 50%; background: var(--linie); color: var(--tinte); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.platz .platzwer { font-weight: 700; font-size: .9rem; margin-top: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platz .platzkarte { font-size: .85rem; opacity: .75; }
.platz.dran { border-color: var(--gruen-dunkel); box-shadow: 0 0 0 3px var(--gruen-hell); }
.platz.dran .platznr { background: var(--gruen-dunkel); color: var(--auf-gruen); }
.platz.gelegt { border-color: var(--art); border-left-width: 8px; }
.platz.gelegt .platzkarte { opacity: 1; font-weight: 700; }
.platz.gesperrt { opacity: .45; }
/* Setup */
.namenliste { padding: 8px 12px; }
.namenzeile { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.namenzeile input { flex: 1; min-width: 0; width: auto; }   /* neben der Nummer, nicht ueber den Rand */
.namenzeile .blocknr { min-width: 34px; height: 34px; font-size: 1.1rem; }
.namenwahl button.gross { margin: 8px 0; }
button.option { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; margin: 10px 0; padding: 8px 12px 8px 6px; border-radius: 16px; background: var(--karte); border: 2px solid var(--linie); min-height: 88px; }
button.option.an { border-color: var(--gruen-dunkel); background: var(--gruen-hell); }
button.option[disabled] { opacity: .5; cursor: default; }   /* App 406b: Dickwanst-Praemie ohne Dickwanst */
.optionfigur { height: 84px; width: 70px; object-fit: contain; flex: none; margin-top: -18px; }
.optiontext { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.optiontext span { font-size: .85rem; opacity: .8; }
.schalter { flex: none; width: 50px; height: 28px; border-radius: 14px; background: var(--linie); position: relative; transition: background .2s; }
.schalter span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.schalter.an { background: var(--gruen-dunkel); }
.schalter.an span { left: 25px; }
.zweiwahl { display: flex; gap: 8px; }
.ziehwahl button.gross.mitfig { flex: 1 1 0; min-width: 0; }
.ziehwahl .knopftext { white-space: nowrap; }
.zweiwahl button.gross { margin: 0; }

/* Kartenbilder im Heft der App (29.9.2026): wie im Druck rechts neben dem Kartentext. */
.heft img.kartebild { float: right; width: 38%; max-width: 170px; margin: 2px 0 8px 12px; border-radius: 8px; box-shadow: 0 2px 8px rgba(39,51,31,.25); }
.heft h5 { clear: both; }
/* Reiter der Spielregeln (29.9.2026) */
nav.reiter { position: sticky; top: var(--kopfh, 52px); z-index: 2; display: flex; gap: 4px; background: var(--grund); padding: 6px 0 8px; margin-bottom: 8px; border-bottom: 2px solid var(--linie); overflow-x: auto; scrollbar-width: none; }
nav.reiter button { flex: 1 1 auto; min-width: 0;    display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 0; padding: 6px 2px; font-size: .78rem; font-weight: 700; border-radius: 12px; border: 1.5px solid var(--linie); background: var(--karte); }
nav.reiter button img.reiterfigur { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
nav.reiter button.an { background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); color: var(--auf-gruen); }
.suche { position: static; }
/* Modus: eingeschaltete Option lesbar halten (erbte sonst weisse Schrift von button.an). */
button.option.an { color: var(--tinte); }
/* Erweiterungen (3.10.2026): Schachtel-Schalter im Spielstart, Kasten in der Nacht, Heft-Reiter. */
button.option.schachtel .untertitel { font-weight: 400; opacity: .75; }
button.option.schachtel .schachtelzahlen { font-size: .78rem; opacity: .65; }
/* Volles Haus (9.10.2026): kein Schalter, ein Kaestchen in der Farbe der Schachtel; folgt der Koboldzahl */
.option.schachtelauto { display: flex; gap: 10px; align-items: center; border: 2px solid var(--box); border-left-width: 6px; border-radius: 12px; padding: 8px 10px; margin: 8px 0; background: color-mix(in srgb, var(--box) 10%, transparent); }
.option.schachtelauto.an { background: color-mix(in srgb, var(--box) 22%, transparent); }
.option.schachtelauto .optiontext { display: flex; flex-direction: column; gap: 2px; }
.option.schachtelauto .untertitel { font-weight: 400; opacity: .75; }
.option.schachtelauto .schachtelzahlen { font-size: .78rem; opacity: .65; }
.schachtelauto-text { font-weight: 700; }
.option.schachtelauto.an .schachtelauto-text::before { content: "\2714  "; }
.knopftext .nurmit { display: block; font-size: .72rem; font-weight: 400; opacity: .75; }
.kasten.schachtelkasten { display: flex; gap: 10px; align-items: flex-start; border-left: 6px solid var(--box, var(--linie)); }
.kasten.schachtelkasten > div { flex: 1; min-width: 0; }
.kasten.schachtelkasten .kastenfigur { height: 64px; width: 54px; object-fit: contain; flex: none; margin-top: -6px; }
.heft .boxkarte { margin: 6px 0; padding-left: 10px; border-left: 3px solid var(--linie); }
.heft h2 small { font-weight: 400; opacity: .7; font-size: .8em; }

/* Spielerzahl: je Kobold eine Figur, leicht ueberlappend (29.9.2026). */
button.gross.mitbande { display: flex; align-items: center; gap: 12px; min-height: 76px; margin: 26px 0 10px; padding: 8px 14px 8px 8px; text-align: left; overflow: visible; }
.bande { display: flex; align-items: flex-end; flex: none; margin-top: -30px; padding-right: 20px; }
.bande .bandefigur { height: clamp(62px, 23vw, 92px); width: auto; margin-right: calc(clamp(62px, 23vw, 92px) * -.22); }
.bande.b5 .bandefigur { height: clamp(56px, 20vw, 84px); margin-right: calc(clamp(56px, 20vw, 84px) * -.3); }
.bande.b6 .bandefigur { height: clamp(52px, 18vw, 78px); margin-right: calc(clamp(52px, 18vw, 78px) * -.34); }
button.gross.mitbande .knopftext { white-space: nowrap; }

/* Ansagen: je Kobold eine Karte, Name ueber dem Feld (29.9.2026). */
.ansagekarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 8px 0; }
.ansagekarte { background: var(--karte); border: 1.5px solid var(--linie); border-radius: 14px; padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.ansagekarte .ansagename { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ansagekarte input[type=number] { width: 100%; font-size: 1.5rem; text-align: center; }
.ansagekarte .badge { align-self: flex-start; }
.ansagekarte button.klein { min-height: 36px; }

/* Sticheingabe gegliedert (29.9.2026): Plaetze, dann Art-Kacheln, dann Zahl. */
.stichplaetze { flex-wrap: wrap; }
.stichplaetze .platz { flex: 1 0 84px; }
button.platz { font: inherit; cursor: pointer; }
.wahlschritt { background: var(--grund); border-radius: 12px; padding: 8px 10px; margin: 8px 0; }
.wahlschritt.gesperrt { opacity: .45; }
.wahltitel { display: block; font-family: Helvetica, Arial, sans-serif; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; margin-bottom: 6px; }
.wahlart { display: inline-block; letter-spacing: 0; text-transform: none; font-weight: 700; color: var(--auf-art, #fff); background: var(--art); border-radius: 999px; padding: 0 8px; margin-left: 4px; }
.artkacheln { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
button.artkachel { min-height: 54px; padding: 4px 2px; border-radius: 12px; border: 2px solid var(--art); border-bottom-width: 6px; background: var(--karte); color: var(--tinte); font-weight: 700; font-size: .9rem; }
button.artkachel.an { background: var(--art); color: var(--auf-art, #fff); }
button.artkachel[disabled] { opacity: .35; }
/* Ergebnis leuchtet in der Farbe der Karte, die den Stich bekommt. */
.ergebnis.leuchtet { border: 3px solid var(--sieg); background: color-mix(in srgb, var(--sieg) 14%, var(--karte)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sieg) 30%, transparent), 0 0 24px color-mix(in srgb, var(--sieg) 55%, transparent); animation: aufleuchten 1.2s ease-out 1; }
.ergebnis.leuchtet .urteil { color: color-mix(in srgb, var(--sieg) 75%, var(--tinte)); }
@keyframes aufleuchten { 0% { box-shadow: 0 0 0 0 var(--sieg), 0 0 0 var(--sieg); } 60% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--sieg) 40%, transparent), 0 0 40px var(--sieg); } }
/* Geist-Stiche (29.9.2026): was der Geist legt und wer den Stich bekommt,
   erscheint gross, bis man antippt. */
button.gross-anzeige { --sieg: var(--art, var(--gruen-dunkel)); position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; margin: 14px 0 10px; padding: 16px 16px 14px;
  border-radius: 20px; border: 3px solid var(--sieg); background: color-mix(in srgb, var(--sieg) 14%, var(--karte)); color: var(--tinte); text-align: center; min-height: 0;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sieg) 25%, transparent), 0 0 26px color-mix(in srgb, var(--sieg) 50%, transparent); animation: aufleuchten 1.2s ease-out 1; }
button.gross-anzeige .grossfigur { height: 96px; width: auto; margin-bottom: 4px; }
button.gross-anzeige .gross-titel { font-family: "Fredoka", "Nunito", sans-serif; font-size: 1.1rem; opacity: .8; }
button.gross-anzeige .gross-wert { font-family: "Fredoka", "Nunito", sans-serif; font-size: 2.6rem; font-weight: 600; line-height: 1.1; margin: 4px 0 6px; color: color-mix(in srgb, var(--sieg) 70%, var(--tinte)); }
button.gross-anzeige .gross-info { font-size: .95rem; font-weight: 700; }
button.gross-anzeige .gross-tipp { font-size: .85rem; opacity: .7; margin-top: 4px; }
/* Spielart (29.9.2026): die digitalen Arten sind sichtbar, aber noch gesperrt. */
button.option.spielart { min-height: 96px; }
button.option.spielart.bald { opacity: .55; cursor: default; }
button.option.spielart .optiontext span { font-size: .9rem; }
/* Spielarten als Karten (4.10.2026 nachts): zwei Stapel, je Karte ein Kobold, der oben herausragt, schraeg hingeworfen;
   Antippen richtet die Karte auf und hebt sie an. */
.spielartgruppe { margin: 6px 0 14px; }
.spielartgruppe + .spielartgruppe { margin-top: 30px; }   /* Abstand, damit die Kobolde der zweiten Reihe nicht an der ersten kleben */
.spielartkopf { margin: 0 0 4px; font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--gruen-dunkel, #4C7A5A); letter-spacing: .02em; text-align: center; }
.spielartreihe { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 46px; }
button.option.spielart.spielkarte { position: relative; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; margin: 0; padding: 52px 10px 12px; min-height: 0; text-align: center;
  border-radius: 14px; border: 2.5px solid var(--tinte, #2A2118); background: var(--karte, #F2E8C9); box-shadow: 0 5px 0 rgba(42, 33, 24, .18), 0 8px 18px rgba(42, 33, 24, .14);
  transform: rotate(calc((var(--k, 0) - 1.5) * 1.6deg)); transition: transform .25s var(--t-feder, ease-out), box-shadow .25s; }
button.option.spielart.spielkarte:nth-child(2) { transform: rotate(2deg); }
button.option.spielart.spielkarte:nth-child(1) { transform: rotate(-2.4deg); }
button.option.spielart.spielkarte .optionfigur { position: absolute; left: 50%; top: -48px; width: 92px; height: 96px; margin: 0; transform: translateX(-50%); object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 6px 4px rgba(42, 33, 24, .35)); transition: transform .25s var(--t-feder, ease-out); }
button.option.spielart.spielkarte .optiontext { align-items: center; gap: 4px; }
button.option.spielart.spielkarte .optiontext b { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: 1.02rem; line-height: 1.15; }
button.option.spielart.spielkarte .optiontext span { font-size: .8rem; line-height: 1.3; opacity: .8; }
button.option.spielart.spielkarte:hover, button.option.spielart.spielkarte:focus-visible { transform: rotate(0) translateY(-4px); box-shadow: 0 9px 0 rgba(42, 33, 24, .16), 0 14px 24px rgba(42, 33, 24, .18); }
button.option.spielart.spielkarte:hover .optionfigur, button.option.spielart.spielkarte:focus-visible .optionfigur { transform: translateX(-50%) translateY(-6px) rotate(-4deg); }
button.option.spielart.spielkarte:active { transform: rotate(0) translateY(1px) scale(.98); }
@media (prefers-reduced-motion: reduce) { button.option.spielart.spielkarte, button.option.spielart.spielkarte .optionfigur { transition: none; } }
@media (max-width: 340px) { .spielartreihe { grid-template-columns: 1fr; } }

/* Querformat am Handy (1.10.2026, Wunsch des Autors): greift von selbst, sobald das Handy quer
   liegt und der Bildschirm niedrig ist. Kopf flach, Inhalt nutzt die Breite (mit Abstand zur
   Kamera-Aussparung), Startknoepfe in zwei Spalten, der Weiter-Knopf rechts statt ueber die
   ganze Breite, Dialoge passen in die Hoehe. Das digitale Spiel hat eigene Regeln (spiel.css). */
@media (orientation: landscape) and (max-height: 520px) {
  #kopf { padding: calc(3px + env(safe-area-inset-top, 0px)) 12px 3px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
  main { max-width: none; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 80px max(16px, env(safe-area-inset-left, 0px)); }
  h1 { font-size: 1.35rem; margin: 2px 0 8px; }
  .startknoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; align-items: stretch; }
  .startknoepfe > button.gross, .startknoepfe > .startreihe, .startknoepfe > .kasten { margin: 22px 0 0; }
  .startknoepfe > .kasten { grid-column: 1 / -1; }
  .startknoepfe button.gross { padding-top: 14px; padding-bottom: 14px; }
  button.weiter { left: auto; right: max(14px, env(safe-area-inset-right, 0px)); width: min(420px, 46vw); bottom: calc(8px + env(safe-area-inset-bottom, 0px)); padding: 10px 18px; }
  #musikLeiste, #themaFrage { align-items: center; padding: 8px; }
  .musikkarte { padding: 16px 18px 16px 150px; width: min(560px, 100%); max-height: 94vh; overflow-y: auto; text-align: left; }
  .musikkarte .musikfigur { left: 14px; top: 50%; transform: translateY(-50%); height: min(150px, 70vh); }
  .figur.hintergrund { height: 80vh; }
  #kopf button.leise, #kopf a.leise { padding: 2px 10px; min-height: 0; line-height: 1.2; }
  .startknoepfe > button.gross, .startknoepfe > .startreihe, .startknoepfe > .kasten { margin-top: 18px; }
  .startknoepfe button.gross { padding-top: 10px; padding-bottom: 10px; }
  /* Launenkacheln (Stichpruefung, Auswahl): mehr Spalten statt riesiger Bilder */
  .kachelgitter, section.stichblock .kachelgitter { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  .zahlgitter { grid-template-columns: repeat(10, 1fr); }
}

/* Drehrad fuer Zahlen (1.10.2026): waagerecht, die gewaehlte Zahl gross in der Mitte */
.stichzeile { margin: 10px 0 4px; }
.stichzeile .reihe { margin: 0; }
/* Ansage nach dem Aufnehmen um 1 aendern (App 226, Wendehals/Hinterbaenkler): je Kobold -1 | bleibt | +1 in einer Reihe. */
.ansagenachkasten .reihe { margin: 0; }
.ansagenachknoepfe { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ansagenachknoepfe button:disabled { opacity: .4; cursor: default; }
.zahlrad { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px calc(50% - 26px); scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent); }
.zahlrad::-webkit-scrollbar { display: none; }
.radzahl { flex: none; width: 52px; height: 52px; min-height: 0; padding: 0; border-radius: 14px; scroll-snap-align: center; font-family: "Fredoka", "Nunito", sans-serif; font-size: 1.35rem; font-weight: 600;
  opacity: .55; transition: transform .15s ease-out, opacity .15s; }
.radzahl.an { opacity: 1; background: var(--gruen-dunkel); color: var(--auf-gruen); border-color: var(--gruen-dunkel); transform: scale(1.15); }
@media (prefers-reduced-motion: reduce) { .radzahl { transition: none; } }
/* Gesperrtes Rad (Ansage bei Sturkopf/Papagei, 2.10.2026): nur Anzeige, kein Wischen */
.zahlrad.gesperrt { pointer-events: none; }
.zahlrad.gesperrt .radzahl.an { background: var(--linie); border-color: var(--linie); color: inherit; }
/* Laut gesagte Zusatzansage (Schwindler): Sprechblase, damit klar ist, dass sie gesprochen und nur notiert wird */
.lautblase { position: relative; margin: 12px 0 6px; padding: 12px 12px 8px; border: 2px dashed var(--achse); border-radius: 18px; background: color-mix(in srgb, var(--ja) 55%, var(--karte)); }
.lautblase::after { content: ""; position: absolute; left: 28px; bottom: -11px; width: 18px; height: 18px; background: inherit; border-right: 2px dashed var(--achse); border-bottom: 2px dashed var(--achse); transform: rotate(45deg); }
.lautkopf { display: block; font-weight: 700; font-size: .9rem; color: var(--achse); letter-spacing: .02em; }
.dfrage.dlaut { border: 2px dashed var(--achse); border-radius: 16px; padding: 6px 10px; background: color-mix(in srgb, var(--ja) 55%, var(--karte)); }
.dfrage.dlaut .lautkopf { font-size: .78rem; }

/* Sprachknopf (2.10.2026): ein Kobold haelt die Flagge der aktiven Sprache hoch (app/sprache.js) */
#sprachplatz { display: contents; }
#kopf .sprachknopf { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 0 6px; min-height: 0; height: auto; color: #fff; font-family: "Fredoka", "Nunito", sans-serif; font-size: .8rem; font-weight: 600; }   /* 6.10.2026: Beschriftung "Sprache"/"Language" unter dem Kobold, wie die anderen Kopfknoepfe */
#kopf .sprachknopf img { height: 46px; width: auto; margin: -6px -2px -2px -4px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
@media (orientation: landscape) and (max-height: 520px) { #kopf .sprachknopf { height: 28px; } #kopf .sprachknopf img { height: 28px; margin: 0; } #kopf .sprachknopf span { display: none; } }
/* Schmale Handys: im Kopf nur der Flaggen-Kobold, ohne Sprachkuerzel, und "Rumpel" bricht nicht um */
@media (max-width: 480px) {
  #kopf .sprachknopf span { display: none; }
  #kopf .sprachknopf { padding: 0 2px; }
  #kopf #zurueck, #kopf > a.leise { white-space: nowrap; }
  #kopf button.leise { padding-left: 6px; padding-right: 6px; }
}

/* Bewertung der Mondlaune (2.10.2026): zwei Kobolde, Daumen hoch und runter */
.daumenfrage p { margin: 0 0 8px; }
.daumenwahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
button.daumen { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px 10px; font-weight: 700; font-size: .95rem; line-height: 1.2; text-align: center; }
button.daumen .daumenfigur { height: 120px; width: auto; }
button.daumen.an { background: var(--gruen-dunkel); color: var(--auf-gruen); border-color: var(--gruen-dunkel); }
button.daumen[data-daumen="runter"].an { background: var(--nein-rand); border-color: var(--nein-rand); }
.zaehlblock tr.nein td { background: var(--nein); }
@media (orientation: landscape) and (max-height: 520px) { button.daumen .daumenfigur { height: 80px; } }

/* Kopf-Kobolde statt Text (2.10.2026): Regeln, Stichpruefung, Musik. Die Figur ragt leicht ueber
   den Kopf hinaus wie der Flaggen-Kobold, ohne ihn hoeher zu machen. */
#kopf button.kopffigknopf { padding: 0 4px; min-height: 0; height: 40px; display: inline-flex; align-items: center; }
/* Feste Beschriftung (6.10.2026, Vorgabe des Autors: keine Hover-Tooltips): Figur oben, Name darunter. */
#kopf button.kopffigknopf:has(.kopffigtext) { flex-direction: column; justify-content: center; gap: 0; height: auto !important; }
#kopf .kopffigtext { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: .72rem; line-height: 1; color: #fff; white-space: nowrap; }
@media (max-width: 520px) { #kopf .kopffigtext { font-size: .6rem; } }
/* "Spielregeln" (App 216, Benennung des Autors) ist breiter als die Figur: die Beschriftung darf auf schmalen Handys
   links und rechts in den Abstand ragen, statt den Kopf zu verbreitern (sonst wird "Ehrlich geklaut!" abgeschnitten). */
@media (max-width: 520px) { #kopf #regelnKnopf .kopffigtext { margin: 0 -12px; letter-spacing: -.01em; } }
@media (max-width: 380px) { #kopf #regelnKnopf .kopffigtext { margin: 0 -4px; font-size: .54rem; } }
.mauschelknopf .mauscheltext { display: block; font-size: .7rem; line-height: 1; font-weight: 600; }
#kopf .kopffig { height: 46px; width: auto; margin: -6px -2px -2px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); pointer-events: none; }
#kopf button.kopffigknopf:hover .kopffig, #kopf button.kopffigknopf:focus-visible .kopffig { transform: translateY(-2px) scale(1.06); }
@media (orientation: landscape) and (max-height: 520px) { #kopf button.kopffigknopf { height: 28px; } #kopf .kopffig { height: 28px; margin: 0; } }
/* Glas ist immer schwarz (2.10.2026, Wunsch des Autors). Bisher war es im dunklen Design hell
   (beige), damit es auf dunklem Grund sichtbar bleibt - unintuitiv. Jetzt bleibt es #2A2118, und im
   dunklen Design bekommt alles in Glas-Farbe einen Elfenbein-Grund mit koboldgruenem Rahmen
   (wie die Karten selbst); Glas-Schrift einen hellen Schein. Erkannt am Inline-Stil (--art bzw. color). */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --glas: #14100C; --auf-glas: #FFFFFF; } }
:root[data-theme="dark"] { --glas: #14100C; --auf-glas: #FFFFFF; }
/* Glas-Knoepfe wie die anderen Arten (3.10.2026, Wunsch des Autors: im Stichpruefer fiel Glas als schwarzer Knopf
   mit gruenem Ring aus der Reihe). Jetzt derselbe Knopf mit Tinten-Balken links; im dunklen Design ist der Balken
   Elfenbein, damit er auf dunklem Grund zu sehen ist. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) button[style*="--art:var(--glas)"]:not(.dkarte) { border-left-color: #F2E8C9; } }
:root[data-theme="dark"] button[style*="--art:var(--glas)"]:not(.dkarte) { border-left-color: #F2E8C9; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [style*="color:var(--glas)"] { text-shadow: 0 0 2px #F2E8C9, 0 0 5px #F2E8C9; }
}
:root[data-theme="dark"] [style*="color:var(--glas)"] { text-shadow: 0 0 2px #F2E8C9, 0 0 5px #F2E8C9; }

/* Kopf (2.10.2026): "Rumpel" mit Untertitel darunter, kein Bild mehr im Banner. */
#kopf .kopftitel { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
#kopf .kopfslogan { font-family: "Nunito", sans-serif; font-size: .7rem; font-weight: 700; letter-spacing: .04em; opacity: .85; white-space: nowrap; }
/* Kopf passt auch bei 320 px: Kobolde duerfen schrumpfen statt rechts hinauszuragen. */
#kopf { overflow: hidden; }
#kopf > * { flex-shrink: 0; }
#kopf #kopfinfo { flex-shrink: 1; }
@media (max-width: 400px) {
  #kopf { gap: 2px; padding-left: 8px; padding-right: 6px; }
  #kopf button.kopffigknopf { padding: 0 1px; }
  #kopf .kopffig { height: 40px; margin: -4px -3px -2px; }
  #kopf .sprachknopf img { height: 40px; }
}
/* Sehr schmale Handys (8.10.2026, Pruefung nach dem Fund des Autors "Seitenbreite auf einmal anders"): Bei 360 px ragte der
   Musik-Kobold 22 px aus der Kopfzeile, das Handy zoomte die ganze Seite heraus (Startseite der App auf 412 px: 11 px zu breit,
   Layout 468 px). Kleinere Kopf-Kobolde, der Titel darf schrumpfen; contain haelt die Kopfzeile in jedem Fall bildschirmbreit. */
#kopf { contain: inline-size; }
/* Waagrecht scrollt keine Seite (8.10.2026): Was trotzdem hinausragt (Starrer am Rand), wird abgeschnitten statt die Seite zu verbreitern. */
html, body { overflow-x: clip; }
@media (max-width: 440px) {
  #kopf .kopffig, #kopf .sprachknopf img { height: 34px; margin: -2px -3px -1px; }
  #kopf #zurueck { flex-shrink: 1; min-width: 0; overflow: hidden; }
  #kopf .kopfby { display: none; }
}

/* Startbildschirm: Profil-Kobold links neben "Rumpel", Tuer-Kobold rechts. */
.startkopf { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
.startkopf h1 { margin: 0; flex: 1; }
.startkopf .profilknopf, .startkopf .tuerknopf { padding: 0; min-height: 0; border: 0; background: none; line-height: 0; }
.startkopf .profilknopf img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 3px var(--gruen), 0 2px 6px rgba(0, 0, 0, .3); transition: transform .15s; }
.startkopf .profilknopf.an img { transform: scale(1.08); box-shadow: 0 0 0 3px var(--gruen-dunkel), 0 2px 10px rgba(0, 0, 0, .4); }
.startkopf .tuerknopf img { height: 78px; width: auto; margin: -14px -4px -8px 0; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); transition: transform .15s; }
.startkopf .tuerknopf:hover img, .startkopf .tuerknopf:focus-visible img { transform: translateY(-2px) scale(1.05); }
.profilkasten { margin-bottom: 14px; }
.profilkasten p { margin: 6px 0; }
.profilkasten .profilversion { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; text-align: center; }   /* mittig wie die Zeilen darunter (4.10.2026, Wunsch des Autors) */

/* Titelliste im Musikfenster */
.musikliste { list-style: none; margin: 14px 0 0; padding: 0; text-align: left; max-height: 34vh; overflow-y: auto; }
.musikliste li + li { border-top: 1px solid rgba(0, 0, 0, .08); }
.musikliste button { width: 100%; text-align: left; padding: 8px 6px; min-height: 44px; }
.musikliste button.an { font-weight: 700; background: var(--gruen-dunkel); color: var(--grund); border-radius: 8px; }
/* Der Kopf liegt ueber dem Musikfenster: ein zweiter Tipp auf den Musik-Kobold schliesst es (2.10.2026). */
#kopf { z-index: 25; }
@media (orientation: portrait), (min-height: 521px) {
  #musikLeiste { padding-top: calc(env(safe-area-inset-top, 0px) + 128px); align-items: flex-start; }
  #musikLeiste .musikkarte { padding-top: 64px; }
  #musikLeiste .musikkarte .musikfigur { height: 130px; top: -70px; }
  .musikliste { max-height: 22vh; }
}

/* Kopf-Kobolde groesser und mit Luft (2.10.2026, Wunsch des Autors). */
#kopf { gap: 4px; }
#kopf button.kopffigknopf, #kopf .sprachknopf { height: 50px; padding: 0 7px; }
#kopf .kopffig, #kopf .sprachknopf img { height: 58px; margin: -8px 0 -4px; }
#kopf .kopffigknopf + .kopffigknopf, #kopf #sprachplatz + .kopffigknopf { margin-left: 6px; }
@media (max-width: 460px) {
  #kopf { gap: 2px; }
  #kopf button.kopffigknopf, #kopf .sprachknopf { padding: 0 3px; }
  #kopf .kopffig, #kopf .sprachknopf img { height: 50px; margin: -6px 0 -4px; }
  #kopf .kopffigknopf + .kopffigknopf, #kopf #sprachplatz + .kopffigknopf { margin-left: 4px; }
}
@media (max-width: 380px) {
  #kopf .kopffig, #kopf .sprachknopf img { height: 44px; }
  #kopf .kopffigknopf + .kopffigknopf, #kopf #sprachplatz + .kopffigknopf { margin-left: 2px; }
  #kopf .kopfslogan { font-size: .55rem; }
}
@media (orientation: landscape) and (max-height: 520px) {
  #kopf button.kopffigknopf, #kopf .sprachknopf { height: 30px; }
  #kopf .kopffig, #kopf .sprachknopf img { height: 34px; margin: -2px 0; }
}
/* Kontoseite: Code-Knoepfe waehrend des 30-s-Countdowns sichtbar gesperrt (2.10.2026). */
button[data-code-neu][disabled], button[data-code-schicken][disabled] { opacity: .55; cursor: not-allowed; font-variant-numeric: tabular-nums; }
/* Gruende nach "Daumen runter" (2.10.2026): kleine Knoepfe zum Antippen, mehrere moeglich. */
.daumengruende { margin-top: 10px; }
.daumengruende .hinweis { margin: 0 0 6px; }
.gruendewahl { display: flex; flex-wrap: wrap; gap: 6px; }
.gruendewahl .grund { min-height: 44px; padding: 6px 12px; font-size: .85rem; border-radius: 999px; }
.gruendewahl .grund.an { background: var(--gruen); color: #fff; border-color: var(--gruen-dunkel); }

/* ===== Bewegung (2.10.2026, BIGBOX-PLAN.md §4) ===== */
.dpartikel { position: absolute; z-index: 9; border-radius: 50%; pointer-events: none; }
/* Tipp-Squash: jeder Knopf gibt beim Druecken kurz nach. */
button { transition: transform var(--t-kurz) ease-out; }
button:active:not([disabled]):not([aria-disabled="true"]) { transform: scale(.97); }
/* Bewegung reduzieren: nichts bewegt sich, alles steht sofort da. */
/* App 405 (A5): auch der Verzug faellt weg. Vorher blieb, was mit "backwards"/"both" erst nach einem Verzug erscheint (Siegerfigur
   der Stichauswertung), 3-5 s unsichtbar, obwohl die Dauer schon auf null stand. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; animation-delay: 0s !important; transition-delay: 0s !important; }
}
/* Bewegung aus (9.10.2026, WCAG 2.3.3): die eigene Einstellung, app/bewegung.js setzt data-bewegung="aus" auf <html>. Dieselbe
   Notbremse wie darueber; die einzelnen Regeln unter "reduce" schaltet bewegung.js zusaetzlich an (medienAnpassen). */
html[data-bewegung="aus"] *, html[data-bewegung="aus"] *::before, html[data-bewegung="aus"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; animation-delay: 0s !important; transition-delay: 0s !important; }
/* Zurueck im Kopf (2.10.2026): der Titel ist der Zurueck-Knopf, das Chevron erscheint, sobald es zurueck geht. */
#zurueck { display: inline-flex; align-items: center; gap: 2px; }
#zurueck .chevron { display: inline-block; width: 0; opacity: 0; overflow: hidden; font-size: 1.5rem; line-height: 1; transition: width var(--t-kurz), opacity var(--t-kurz); }
#zurueck[data-zurueck="1"] .chevron { width: .55em; opacity: 1; }
/* Toast: eine Zeile ueber dem Weiter-Knopf, kommt von unten. */
#toast { position: fixed; left: 14px; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin: 0 auto; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--tinte); color: var(--grund); box-shadow: 0 6px 20px rgba(0,0,0,.3); font-size: .95rem; animation: toastauf var(--t-mittel) var(--t-feder); }
#toast[hidden] { display: none; }
#toast span { flex: 1; }
#toast button.klein { background: var(--grund); color: var(--tinte); border-color: var(--grund); min-height: 40px; }
@keyframes toastauf { from { transform: translateY(16px); opacity: 0; } }

/* ===== Gestaltung statt Erklaertext (2.10.2026) ===== */
/* Vorbereitung als Raster: je Punkt ein Kobold und eine Zeile, Kacheln staffeln ein. */
.vb-raster { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.vb-kachel { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; background: var(--karte); border: 1.5px solid var(--linie); border-radius: 14px; padding: 10px 8px 12px; font-size: .92rem; line-height: 1.25; animation: kachelauf var(--t-mittel) var(--t-feder) both; animation-delay: calc(var(--i, 0) * 60ms); }
.vb-kachelfig { height: 76px; width: auto; }
.vb-raster.nummern .vb-kachel { position: relative; }
.vb-raster.nummern .vb-kachel::before { content: attr(data-nr); position: absolute; left: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--gruen-dunkel); color: var(--auf-gruen); font-family: "Fredoka", sans-serif; display: inline-flex; align-items: center; justify-content: center; }
@keyframes kachelauf { from { transform: translateY(10px) scale(.96); opacity: 0; } }
/* Sitzkreis: Namensfelder im Kreis, Platz 1 oben, linksherum; der Pfeil in der Mitte zeigt die Richtung. */
.sitzkreis { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin: 6px auto 10px; }
.sitzkreis .kreispfeil { position: absolute; inset: 24%; width: 52%; height: 52%; color: var(--gruen); opacity: .6; }
.sitzkreis .kreisfigur { position: absolute; left: 50%; top: 50%; height: 24%; width: auto; transform: translate(-50%, -50%); }
.sitzkreis .sitz { position: absolute; width: clamp(88px, 28vw, 112px); margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; transform: translate(-50%, -50%); }
.sitzkreis .sitz .blocknr { min-width: 28px; height: 28px; font-size: 1rem; }
.sitzkreis .sitz input { width: 100%; text-align: center; padding: 8px 6px; font-size: 1rem; transition: border-color var(--t-kurz), box-shadow var(--t-kurz); }
input.doppelt, input[aria-invalid="true"] { border-color: var(--nein-rand); box-shadow: 0 0 0 3px var(--nein); }
/* Summenleiste der Stiche: fuellt sich, "3/5", Haken bei voll, rot bei zu viel. */
.summenleiste { position: relative; height: 46px; margin: 14px 0 6px; border-radius: 23px; background: var(--karte); border: 2px solid var(--linie); overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: "Fredoka", "Nunito", sans-serif; font-size: 1.25rem; transition: border-color var(--t-kurz); }
.summenleiste .fuell { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gruen-hell); transition: width var(--t-mittel) var(--t-feder), background var(--t-mittel); }
.summenleiste .summetext, .summenleiste .haken { position: relative; }
.summenleiste .haken { color: var(--ja-rand); opacity: 0; transform: scale(.4); transition: opacity var(--t-kurz), transform var(--t-mittel) var(--t-feder); }
.summenleiste.voll { border-color: var(--ja-rand); } .summenleiste.voll .fuell { background: var(--ja); } .summenleiste.voll .haken { opacity: 1; transform: scale(1); }
.summenleiste.zuviel { border-color: var(--nein-rand); } .summenleiste.zuviel .fuell { background: var(--nein); }
/* Anspieler als Kachel mit Pfeil. */
.anspielkachel { display: flex; align-items: center; gap: 10px; background: var(--karte); border: 2px solid var(--gruen-dunkel); border-radius: 16px; padding: 6px 14px 6px 8px; margin: 8px 0 10px; }
.anspielfigur { height: 72px; width: auto; margin: -16px 0 -4px; }
.anspielpfeil { font-size: 1.6rem; color: var(--gruen-dunkel); animation: pfeilwippen 1.2s ease-in-out infinite; }
.anspielname { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.anspielname b { font-family: "Fredoka", "Nunito", sans-serif; font-size: 1.4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anspielname small { font-size: .85rem; opacity: .8; }
@keyframes pfeilwippen { 50% { transform: translateX(4px); } }
/* Mauscheln als Zweitaktion: kleiner Kobold neben dem Namen, Rueckfrage, dann rote Marke. */
.mauschelknopf { padding: 0 4px; opacity: .55; min-height: 44px; transition: opacity var(--t-kurz); }
.mauschelknopf:hover, .mauschelknopf:focus-visible { opacity: 1; }
/* Null-Krach als Vermerk (20.10.2026): kleiner Zaehler unter der Zeile eines 0-Sagers, Knoepfe 44 px hoch */
.vermerk { display: flex; align-items: center; gap: 6px; margin: 2px 0 4px; font-size: .9rem; }
.vermerk button { min-width: 44px; min-height: 44px; }
.vermerk b { min-width: 1.4em; text-align: center; }
.vermerk.hat { font-weight: 600; }
.mauschelfig { height: 42px; width: auto; display: inline-block; vertical-align: middle; filter: none; }
button.mauschelmarke { display: inline-flex; align-items: center; gap: 4px; background: var(--nein-rand); border-color: var(--nein-rand); color: #fff; padding: 2px 10px 2px 4px; }
button.mauschelmarke .mauschelfig { height: 34px; }
.mauschelfrage { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; font-size: .9rem; background: var(--nein); border-radius: 12px; padding: 4px 8px; animation: kachelauf var(--t-kurz) ease-out; }
/* Zaehlblock: Hierarchie statt Legende - klein Ansage/Stiche, Punkte mit Vorzeichen in Farbe, Stand fett. */
.zaehlblock .punkte.plus { color: var(--ja-rand); font-weight: 700; }
.zaehlblock .punkte.minus { color: var(--nein-rand); font-weight: 700; }
.zaehlblock .stand { font-weight: 700; font-size: 1.1em; }
details.kasten summary { cursor: pointer; font-weight: 700; }
/* Stichpruefer: der Richter wartet sichtbar (gedaempft), bis das Ergebnis da ist. */
section.stichblock.wartet .blockfigur { opacity: .45; filter: grayscale(.6); }
/* Laune aufdecken als Kartendrehung: Mondruecken dreht zur Vorderseite; solange der Kobold liest, pulst ein Ring. */
.kartendreh { position: relative; transform-style: preserve-3d; animation: kartendrehen .9s var(--t-feder) both; }
.kartendreh .kartenvorn, .kartendreh .kartenrueck { display: block; width: 100%; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.kartendreh .kartenvorn img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.kartendreh .kartenvorn > span { display: block; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 40px 16px; font-style: italic; font-size: 1.3rem; background: var(--gruen-hell); }
.kartendreh .kartenrueck { position: absolute; inset: 0; transform: rotateY(180deg); background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.08), transparent 60%), #1B2238; display: flex; align-items: flex-end; justify-content: center; }
.kartendreh .mond { position: absolute; left: 50%; top: 30%; width: 44%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 40% 40%, #FFF7DC, #F2E8C9 60%, #D9CBA4); box-shadow: 0 0 40px 12px rgba(242, 232, 201, .35); }
.kartendreh .mondfigur { position: relative; height: 48%; width: auto; filter: brightness(0) drop-shadow(0 0 2px rgba(0,0,0,.6)); }
@keyframes kartendrehen { from { transform: rotateY(180deg); } to { transform: rotateY(0); } }
.aufdecken[data-liest] .kartendreh::after { content: ""; position: absolute; inset: -7px; border-radius: 20px; border: 4px solid var(--achse); pointer-events: none; animation: ring 1.4s ease-in-out infinite; }
@keyframes ring { 50% { transform: scale(1.02); opacity: .35; } }

/* ===== Motion (2.10.2026) ===== */
/* View Transitions: die neue Seite gleitet herein (zurueck: von links), Kopf und Toast stehen fest, die Nachtleiste gleitet. */
#kopf { view-transition-name: kopf; }
#toast { view-transition-name: toast; }
.nachtleiste { view-transition-name: nachtleiste; }
::view-transition-old(kopf), ::view-transition-new(kopf), ::view-transition-old(toast), ::view-transition-new(toast) { animation: none; }
/* App 407b: Handschrift - hoechstens 200 ms und nur 12 px (vorher 350 ms und 28 px); gilt in der App und zwischen den Seiten. */
::view-transition-old(root) { animation: vt-raus var(--h-mittel) var(--h-raus) both; }
::view-transition-new(root) { animation: vt-rein var(--h-mittel) var(--h-rein) both; }
html[data-richtung="zurueck"]::view-transition-old(root) { animation-name: vt-raus-zurueck; }
html[data-richtung="zurueck"]::view-transition-new(root) { animation-name: vt-rein-zurueck; }
@keyframes vt-rein { from { transform: translateX(12px); opacity: 0; } }
@keyframes vt-raus { to { transform: translateX(-12px); opacity: 0; } }
@keyframes vt-rein-zurueck { from { transform: translateX(-12px); opacity: 0; } }
@keyframes vt-raus-zurueck { to { transform: translateX(12px); opacity: 0; } }
main { position: relative; }   /* Konfetti wird in der Buehne positioniert */
/* Startbildschirm: Knoepfe staffeln ein, die Kobolde atmen. */
.staffeln > * { animation: startauf var(--t-mittel) var(--t-feder) both; animation-delay: calc(var(--i, 0) * 70ms); }
.staffeln > :nth-child(1) { --i: 0; } .staffeln > :nth-child(2) { --i: 1; } .staffeln > :nth-child(3) { --i: 2; } .staffeln > :nth-child(4) { --i: 3; } .staffeln > :nth-child(5) { --i: 4; } .staffeln > :nth-child(6) { --i: 5; }
@keyframes startauf { from { transform: translateY(14px) scale(.97); opacity: 0; } }
button.gross.mitfig .figur { transform-origin: bottom center; animation: atmen 3.8s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.7s); }
@keyframes atmen { 50% { transform: translateY(-2px) scaleY(1.025); } }
/* Der Floeten-Kobold im Kopf wippt, solange Musik laeuft. */
#musikKnopf[data-spielt="1"] .kopffig { animation: wippen 1.1s ease-in-out infinite; transform-origin: bottom center; }
@keyframes wippen { 25% { transform: rotate(-5deg) translateY(-1px); } 75% { transform: rotate(5deg) translateY(-1px); } }
/* Titellied-Angebot unter dem Kopf. */
.angebot { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--gruen-hell); border-bottom: 1.5px solid var(--linie); animation: toastauf var(--t-mittel) var(--t-feder); }
.angebot .musikfigur { position: static; height: 52px; width: auto; margin: -8px 0 -6px; transform: none; }
.angebot .angebottext { flex: 1; font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; }
.angebot button.klein { min-height: 40px; padding: 4px 12px; }
/* Raste am Rad: die gewaehlte Zahl poppt. */
.radzahl.an { animation: radpop var(--t-mittel) var(--t-feder); }
@keyframes radpop { 0% { transform: scale(1); } 50% { transform: scale(1.32); } 100% { transform: scale(1.15); } }
/* Nachtwertung: Zeilen staffeln, Treffer gruen, Fehlgriff rot. */
.wertungzeile { animation: zeileauf var(--t-mittel) ease-out both; animation-delay: calc(var(--i, 0) * 90ms); }
.wertungzeile.treffer { border-color: var(--ja-rand); background: var(--ja); }
.wertungzeile.daneben { border-color: var(--nein-rand); }
.wertungzeile .punkte { font-family: "Fredoka", "Nunito", sans-serif; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.wertungzeile .punkte.plus { color: var(--ja-rand); } .wertungzeile .punkte.minus { color: var(--nein-rand); }
@keyframes zeileauf { from { transform: translateX(-12px); opacity: 0; } }
/* Stand: Krone und Tuertreter-Marke an der Kachel (sie wandern von Nacht zu Nacht). */
.stand-liste .kname { display: inline-flex; align-items: center; gap: 4px; }
.stand-liste .krone { display: inline-block; }
.stand-liste .ttmarke { display: inline-flex; }
.stand-liste .ttfig { height: 32px; width: auto; margin: -8px 0 -6px; filter: none; }
/* Endstand als Podest: Zweiter, Sieger mit Krone, Dritter; die Stufen wachsen hoch. */
.podest { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 10px 0 14px; min-height: 220px; }
.podest .stufe { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; animation: stufehoch .7s var(--t-feder) both; animation-delay: calc(.2s + var(--i, 0) * .25s); transform-origin: bottom center; }
.podest .pname { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.podest .pname b { font-family: "Fredoka", "Nunito", sans-serif; font-size: 1.2rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.podest .krone { font-size: 1.8rem; line-height: 1; animation: kronewippen 2.4s ease-in-out infinite; }
.podest .pzahl { font-family: "Fredoka", "Nunito", sans-serif; font-size: 1.6rem; font-weight: 600; color: var(--gruen-dunkel); }
.podest small { font-size: .78rem; opacity: .75; }
.podest .psockel { width: 100%; border-radius: 12px 12px 0 0; background: var(--gruen-dunkel); color: var(--auf-gruen); font-family: "Fredoka", sans-serif; font-size: 1.6rem; display: flex; align-items: flex-start; justify-content: center; padding-top: 6px; }
.podest .s1 .psockel { height: 110px; background: var(--gruen-dunkel); } .podest .s2 .psockel { height: 78px; background: var(--gruen); } .podest .s3 .psockel { height: 56px; background: var(--gruen); opacity: .85; }
.podest .s1 .pzahl { font-size: 2rem; }
@keyframes stufehoch { from { transform: translateY(30px) scaleY(.6); opacity: 0; } }
@keyframes kronewippen { 50% { transform: rotate(-8deg) translateY(-2px); } }
.endliste { padding-left: 1.6em; }
/* Musik-Fenster als Bottom-Sheet: kommt von unten, Griff oben, der Kobold schaut ueber den Rand. */
#musikLeiste, #musikLeiste[hidden] { }
@media (orientation: portrait), (min-height: 521px) {
  #musikLeiste { align-items: flex-end; padding: 0; }
  #musikLeiste .musikkarte { width: 100%; max-width: 600px; border-radius: 22px 22px 0 0; border-bottom: 0; padding: 22px 22px calc(18px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 30px rgba(0,0,0,.35); animation: hochschieben var(--t-mittel) var(--t-feder); }
  #musikLeiste .musikkarte::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--linie); margin: -8px auto 10px; }
  #musikLeiste .musikkarte .musikfigur { left: auto; right: 10px; top: -84px; height: 120px; transform: none; }
  #musikLeiste .musikkarte h2 { text-align: left; }
  .musikliste { max-height: 26vh; }
}
@keyframes hochschieben { from { transform: translateY(40px); opacity: 0; } }
/* ===== Prahlrad (2.10.2026): rundes SVG-Rad fuer die Ansage, das lineare Rad dahinter nur noch fuer Tastatur und Vorleseprogramm ===== */
.prahlrad { position: relative; }
.prsvg { display: block; width: min(100%, 220px); margin: 0 auto; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.prsvg:active { cursor: grabbing; }
.prrand { fill: var(--gruen-dunkel); }
.prflaeche { fill: var(--karte); stroke: var(--linie); stroke-width: 2; }
.prscheibe { transform-origin: 100px 100px; transform-box: view-box; will-change: transform; }
.prscheibe.rastet { transition: transform .55s var(--t-feder); }
.prkerbe { stroke: var(--linie); stroke-width: 3; stroke-linecap: round; }
.prz { font-family: "Fredoka", "Nunito", sans-serif; font-size: 26px; font-weight: 600; fill: var(--tinte); text-anchor: middle; dominant-baseline: central; opacity: .65; pointer-events: none; }
.prz.an { opacity: 1; fill: var(--gruen-dunkel); font-size: 34px; }
/* Fragezeichen-Feld (App 226): ohne Ansage steht es oben, rot wie der Zeiger - "noch nicht eingestellt". */
.prz.prfrage.an { fill: var(--nein-rand); }
.prnabe { fill: var(--gruen-hell); stroke: var(--gruen-dunkel); stroke-width: 3; }
.przeiger { fill: var(--nein-rand); filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.prahlrad[data-aus] .prsvg { opacity: .6; cursor: default; }
html[data-prahlrad="1"] .prahlrad .zahlrad { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
html[data-prahlrad="1"] .prahlrad .zahlrad:focus-within { position: static; width: auto; height: auto; margin: 0; clip: auto; clip-path: none; overflow-x: auto; }
.ansagekarte .prahlrad { margin: 2px 0; }

/* Eigene Tooltips (4.10.2026, Wunsch des Autors): statt der gelben, verzoegerten Browser-Tooltips ein Schild in
   Rumpel-Farben mit runden Ecken, sofort beim Ueberfahren oder Fokus da, sofort wieder weg. data-tooltip statt title (nicht data-tipp: das ist der Verdacht-Tipp am Rad). */
[data-tooltip] { position: relative; }
[data-tooltip]::after { content: attr(data-tooltip); position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 40; pointer-events: none;
  display: none; padding: 4px 10px; border-radius: 10px; background: #2A2118; color: #F2E8C9; border: 2px solid #D9A520; box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: .82rem; line-height: 1.2; white-space: nowrap; }
@media (hover: hover) { [data-tooltip]:hover::after { display: block; } }
[data-tooltip]:focus-visible::after { display: block; }
/* Im Kopf (overflow hidden, 70 px hoch): das Schild links neben der Figur, auf halber Hoehe, statt darunter */
#kopf [data-tooltip]::after { top: 50%; left: auto; right: calc(100% + 6px); transform: translateY(-50%); }

/* Startkreis (4.10.2026, Wunsch des Autors): die fuenf Kobolde kreisfoermig um das runde Rumpel-Logo. Jeder Knopf steht
   auf seinem Winkel --a (Polarkoordinaten mit cos/sin, Radius 40 % der Flaeche), traegt Kobold und Beschriftung wie bisher,
   aber kompakt statt in voller Breite. Laeuft eine Partie, steht oben "Fortsetzen" und unten klein "Abbrechen". */
/* Der Kreis steht still (5.10.2026, Wunsch des Autors: das Drehen war zu viel); die Kobolde springen nur auf ihren
   Plaetzen. --kreis bleibt als Winkel 0, falls er spaeter wieder wandern soll. */
@property --kreis { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.startkreis { position: relative; width: min(100%, 560px); aspect-ratio: 1; margin: 6px auto 12px; }
/* Der Kreis laesst unter sich Platz fuer das Schild mit An- und Abmelden (6.10.2026): hoechstens Bildschirmhoehe minus
   Kopf, Schild und Abstaende, nie kleiner als 300 px. */
.startkreis { width: min(100%, max(300px, min(560px, calc(100dvh - 270px)))); }
.startkreis .dlogotext { display: grid; place-items: center; background: var(--gruen, #4a6b3a); color: #F2E8C9; font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: clamp(1.2rem, 5vw, 2rem); }
.startkreis .startlogo { position: absolute; left: 50%; top: 50%; width: 38%; height: 38%; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 8px 24px rgba(42, 33, 24, .35), 0 0 0 4px var(--karte); object-fit: cover; }
.startkreis button.gross.mitfig.kreis { position: absolute; left: calc(50% + 40% * cos(calc(var(--a, 90deg) + var(--kreis, 0deg)))); top: calc(50% - 40% * sin(calc(var(--a, 90deg) + var(--kreis, 0deg)))); transform: translate(-50%, -50%); width: 34%; min-width: 0; min-height: 0; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding: 6px 6px 8px; text-align: center; font-size: clamp(.8rem, 2.6vw, 1rem); line-height: 1.15; }
/* Kobold statt Kasten (4.10.2026, Wunsch des Autors: "die Kobolde haben einen Schatten"; die helle Scheibe darunter ist
   seit dem 4.10. nachts wieder weg): der Knopf selbst ist unsichtbar, der Kobold steht mit Schlagschatten frei,
   die Beschriftung sitzt als Pille darunter. Keine neuen Figuren: der Schatten ist
   ein CSS-Filter auf den vorhandenen Freistellungen. */
.startkreis button.gross.mitfig.kreis { padding: 0; gap: 0; background: none; border: 0; box-shadow: none; overflow: visible; }
.startkreis button.gross.mitfig.kreis .figur { position: relative; z-index: 2; left: auto; bottom: auto; transform: none; height: auto; width: 72%; max-width: 124px; aspect-ratio: 1; object-fit: contain; object-position: bottom center; margin: 0;
  filter: drop-shadow(0 10px 5px rgba(42, 33, 24, .38)) drop-shadow(0 1px 1px rgba(42, 33, 24, .25)); transition: transform .25s, filter .25s; }
.startkreis button.gross.mitfig.kreis .knopftext { position: relative; z-index: 1; display: block; margin-top: 10px; padding: 4px 14px 5px; border-radius: 999px; background: var(--karte, #F2E8C9); border: 1.5px solid var(--gruen-dunkel, #4C7A5A); color: var(--tinte, #2A2118); box-shadow: 0 2px 6px rgba(42, 33, 24, .22); white-space: nowrap; }
/* Die ovale Scheibe unter jedem Kobold ist seit dem 4.10.2026 nachts wieder weg (Autor: "die ovalen Discs sollen weg"). */
.startkreis button.gross.mitfig.kreis:hover .figur, .startkreis button.gross.mitfig.kreis:focus-visible .figur { filter: drop-shadow(0 16px 7px rgba(42, 33, 24, .3)) drop-shadow(0 1px 1px rgba(42, 33, 24, .25)); }
.startkreis button.gross.mitfig.kreis.an .knopftext { background: var(--gruen-dunkel, #4C7A5A); color: var(--auf-gruen, #fff); }
.startkreis button.gross.mitfig.kreis.rot .knopftext { background: var(--nein); border-color: var(--nein-rand); color: var(--nein-rand); }
.startkreis button.gross.mitfig.kreis.abbruch .figur { width: 60%; }
/* Steckbriefwand unter dem Profilbild (App 213, Wunsch des Autors): kleiner als die beiden Hauptkacheln, damit sie im Kreis
   bleibt und die Startseite auf 360 x 640 nicht scrollt. */
.startkreis button.gross.mitfig.kreis.kreisunten { left: 50%; top: 84%; width: 26%; }
/* App 311 (Fund des Autors 20.10.2026: Feedback und Steckbriefe lagen uebereinander): beide unter dem Profilbild nebeneinander,
   Feedback links. Abstand der Mitten 32 %, mindestens 124 px: am Handy ist der Kreis nur rund 165 px breit, die Pillen sind bis 110 px breit. */
.startkreis button.gross.mitfig.kreis.kreisunten.kreisunten-l { left: min(34%, calc(50% - 62px)); top: 88%; }
.startkreis button.gross.mitfig.kreis.kreisunten.kreisunten-r { left: max(66%, calc(50% + 62px)); top: 88%; }
.startkreis button.gross.mitfig.kreis.kreisunten .knopftext { margin-top: 4px; padding: 3px 10px 4px; font-size: .9em; }
.startkreis button.gross.mitfig.kreis .knopftext small { font-size: .72em; }
.startkreis button.gross.mitfig.kreis.abbruch { width: 26%; font-size: clamp(.7rem, 2.2vw, .85rem); padding: 4px 6px 6px; }
.startkreis button.gross.mitfig.kreis:hover, .startkreis button.gross.mitfig.kreis:focus-visible { transform: translate(-50%, -52%) scale(1.04); }
@media (orientation: landscape) and (max-height: 520px) {
  .startkreis { width: min(78vh, 420px); margin: 0 auto 4px; }
  .startkreis button.gross.mitfig.kreis { font-size: .78rem; padding: 4px 6px 6px; }
}
@media (prefers-reduced-motion: reduce) { .startkreis { animation: none; } .startkreis button.gross.mitfig.kreis:hover { transform: translate(-50%, -50%); } }

/* Huepfen auf der Stelle (seit 4.10.2026 nachts statt der Wippe ueber die Scheibe): jeder Kobold steht, wippt kurz in die
   Knie und springt dann hoch, leicht gedreht; das Schild schaukelt nach. Je Knopf versetzt (--i), damit nie alle zugleich. */
.startkreis button.gross.mitfig.kreis .figur { animation: dhuepf 5.2s ease-in-out calc(var(--i, 0) * -1.1s) infinite; transform-origin: 50% 100%; }
.startkreis button.gross.mitfig.kreis .knopftext { animation: dschaukel 5.2s ease-in-out calc(var(--i, 0) * -1.1s) infinite; transform-origin: 50% 0; }
@keyframes dhuepf {
  0%, 62%, 100% { transform: translateY(0) scale(1, 1) rotate(0); }
  68% { transform: translateY(0) scale(1.06, .9) rotate(0); }           /* in die Knie */
  76% { transform: translateY(-22px) scale(.96, 1.05) rotate(-5deg); }  /* hoch */
  84% { transform: translateY(0) scale(1.05, .93) rotate(2deg); }       /* landen */
  90% { transform: translateY(-5px) scale(1, 1) rotate(0); }
  95% { transform: translateY(0); }
}
@keyframes dschaukel { 0%, 74%, 100% { transform: rotate(0); } 80% { transform: rotate(-3deg); } 86% { transform: rotate(2.5deg); } 92% { transform: rotate(-1deg); } }
.startkreis button.gross.mitfig.kreis:nth-child(2) { --i: 0; } .startkreis button.gross.mitfig.kreis:nth-child(3) { --i: 1; } .startkreis button.gross.mitfig.kreis:nth-child(4) { --i: 2; }
.startkreis button.gross.mitfig.kreis:nth-child(5) { --i: 3; } .startkreis button.gross.mitfig.kreis:nth-child(6) { --i: 4; } .startkreis button.gross.mitfig.kreis:nth-child(7) { --i: 5; } .startkreis button.gross.mitfig.kreis:nth-child(8) { --i: 6; }
.startkreis button.gross.mitfig.kreis:hover .figur, .startkreis button.gross.mitfig.kreis:hover .knopftext { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .startkreis button.gross.mitfig.kreis .figur, .startkreis button.gross.mitfig.kreis .knopftext { animation: none; } }

/* ===== Paket D (ANIMATIONEN.md §5, 4.10.2026): Stichpruefer, Wertung, Endstand, Tuer ===== */
/* Stichpruefer mit Ergebnis (.fertig): die Siegerkarte hebt sich, Abwuerfe sinken, die gefressene Karte ist
   angebissen (dieselben vier Bisse wie am Tisch des Spiels), die verbrannte vergilbt mit verkohlter Ecke. */
.stichplaetze.fertig .platz.gelegt { transition: transform var(--t-mittel) var(--t-feder), opacity var(--t-mittel); }
.stichplaetze.fertig .platz.sieg { position: relative; z-index: 2; transform: translateY(-6px) scale(1.06); box-shadow: 0 6px 16px rgba(42, 33, 24, .25); animation: siegauf .55s var(--t-feder) calc(.25s * var(--tempo, 1)) backwards; }
.stichplaetze.fertig .platz.abwurf { opacity: .6; transform: translateY(4px); }
/* App 393: Karte hinter der 1 ist sicher - Schild in der Ecke (sprachfrei, wie im Spiel der Zettel "sicher!") */
.stichplaetze.fertig .platz.sicher { position: relative; }
.stichplaetze.fertig .platz.sicher::before { content: "🛡️"; position: absolute; right: 4px; top: 4px; font-size: 1.1rem; line-height: 1; z-index: 2; pointer-events: none; }
.stichplaetze.fertig .platz.gefressen { --bisse: radial-gradient(ellipse 32% 23% at 100% 18%, transparent 96%, #000 100%), radial-gradient(ellipse 37% 26.5% at 100% 52%, transparent 96%, #000 100%),
    radial-gradient(ellipse 42% 30% at 62% 0%, transparent 96%, #000 100%), radial-gradient(ellipse 47% 33.6% at 100% 86%, transparent 96%, #000 100%);
  -webkit-mask-image: var(--bisse); mask-image: var(--bisse); -webkit-mask-composite: source-in; mask-composite: intersect; opacity: .85; }
.stichplaetze.fertig .platz.verbrannt { position: relative; overflow: hidden; filter: sepia(.6) saturate(1.2); opacity: .9; }
.stichplaetze.fertig .platz.verbrannt::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 55% 45% at 100% 100%, #0c0806 0%, #1c110b 35%, rgba(74, 37, 16, .9) 55%, rgba(255, 138, 30, .55) 66%, rgba(255, 138, 30, 0) 78%);
  animation: brandauf .5s ease-in calc(1.1s * var(--tempo, 1)) backwards; }
.stichplaetze.fertig .platz.gelegt .platzkarte { position: relative; z-index: 2; }
@keyframes siegauf { from { transform: translateY(0) scale(1); } 60% { transform: translateY(-9px) scale(1.09); } }
@keyframes brandauf { from { opacity: 0; } }
/* Glut (BEWEGUNG.verbrennen) und Ring (BEWEGUNG.ring) wie im Spiel. */
.dglut { position: absolute; inset: 0; transform-origin: bottom; pointer-events: none; mix-blend-mode: multiply; border-radius: inherit;
  background: linear-gradient(to top, #2a1a10 0%, #c2410c 30%, #f59e0b 55%, rgba(253, 224, 71, .6) 75%, rgba(253, 224, 71, 0) 100%); }
.dring { position: absolute; z-index: 7; border: 3px solid #FFD45A; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); box-shadow: 0 0 12px rgba(255, 212, 90, .7); }
/* Chip der Ausrede (BEWEGUNG.chip): rollt in der Wertung zur Zeile des Kobolds. */
.dchip { position: absolute; z-index: 8; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #9A6FB0; pointer-events: none;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55), 0 2px 4px rgba(0, 0, 0, .35); }
.dchip::after { content: ""; position: absolute; left: 50%; top: 3px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: rgba(255, 255, 255, .7); }
/* Streichnacht: ein Strich waechst durch die Zeile. */
.wertungzeile.gestrichen { position: relative; }
.wertungzeile.gestrichen::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 3px; border-radius: 2px; background: var(--nein-rand); transform-origin: left center;
  animation: strich .6s ease-out calc(.7s * var(--tempo, 1)) backwards; }
@keyframes strich { from { transform: scaleX(0); } }
/* Endstand: der Jubel-Kobold steht auf der obersten Stufe und huepft, sobald er aufgesprungen ist. */
.podest .pfigur { height: 72px; width: auto; margin-bottom: -6px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3)); animation: pjubel 1.2s ease-in-out calc(1.3s * var(--tempo, 1)) infinite; transform-origin: bottom center; }
@keyframes pjubel { 0%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-9px) scale(1.04, .96) rotate(-4deg); } 60% { transform: translateY(-3px) rotate(3deg); } }
/* Tuer-Kobold (BEWEGUNG.tuer): die Angel sitzt links, das Bild darf raeumlich klappen. */
.startkopf .tuerknopf { perspective: 500px; }
@media (prefers-reduced-motion: reduce) { .stichplaetze.fertig .platz.sieg, .stichplaetze.fertig .platz.verbrannt::after, .wertungzeile.gestrichen::after, .podest .pfigur { animation: none; } }

/* Regelkarte einer Schachtel in der Moderationsapp (5.10.2026), wie im digitalen Spiel. */
button.leise.schachtelregeln { display: block; margin: -4px 0 10px auto; font-size: .85rem; text-decoration: underline; }
.boxregeln { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 12px; background: rgba(42, 33, 24, .55); }
.boxkarte { width: min(640px, 100%); max-height: 88vh; overflow-y: auto; background: var(--karte, #F2E8C9); color: var(--tinte, #2A2118); border-radius: 18px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.boxkopf { display: flex; gap: 12px; align-items: center; }
.boxkopf .boxfig { width: 72px; height: 72px; object-fit: contain; flex: none; }
.boxkopf h2 { margin: 0; } .boxunter { margin: 0; opacity: .75; font-weight: 700; }
.boxteil { position: relative; margin: 10px 0; padding: 8px 10px 8px 58px; border-radius: 12px; background: rgba(255, 255, 255, .5); border: 1.5px solid rgba(110, 75, 44, .2); }
.boxteil .boxteilfig { position: absolute; left: 6px; top: 8px; width: 44px; height: 44px; object-fit: contain; }
.boxteil h3 { margin: 0 0 4px; font-size: 1.05rem; } .boxteil ul { margin: 0; padding-left: 1.1em; } .boxteil li { margin: 3px 0; line-height: 1.35; }

/* Reiter der Regelkarte in der Moderationsapp (5.10.2026). */
.boxreiter { position: sticky; top: -14px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; padding: 6px 0; background: var(--karte, #F2E8C9); }
/* App 358: "Das Wichtigste" oben (5-8 Punkte, Bloecke mit Ueberschrift), die vier Reiter darunter zugeklappt. */
.boxwichtig { margin: 10px 0; padding: 8px 10px; border-radius: 12px; background: #F2E8C9; color: #2A2118; border: 2px solid rgba(110, 75, 44, .3); }
/* App 364 (F-0023): im dunklen Thema erbten Zeilen und Hervorhebungen helle Farben auf dem hellen Kasten. Alles dunkel auf Elfenbein. */
.boxwichtig * { color: #2A2118; } .boxwichtig .rzkopf { color: #2F5E22; }
.boxwichtig h3 { margin: 0 0 4px; font-size: 1.1rem; }
.boxwichtig .boxblock { margin: 10px 0 2px; font-size: .95rem; letter-spacing: .02em; color: #3B5A2F; }
.boxwichtig .boxvorrang { margin: 8px 0 0; font-weight: 600; }
.boxalles { margin: 8px 0; } .boxalles > summary { cursor: pointer; font-weight: 700; padding: 8px 4px; min-height: 24px; }
.boxreiter button { flex: 1 1 auto; border-radius: 999px; min-height: 0; padding: 6px 10px; }
.boxreiter button.an { background: var(--gruen-dunkel, #4C7A5A); color: var(--auf-gruen, #fff); }
.boxteil[hidden] { display: none; }
/* Heft "Schachteln" (5.10.2026): Leiste mit den fuenf Schachteln, darunter nur die gewaehlte; "Auf einen Blick" offen,
   alles Weitere in aufklappbaren Abschnitten. */
.heftboxen { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0 14px; }
.heftboxen button { display: inline-flex; align-items: center; gap: 6px; min-height: 0; padding: 4px 12px 4px 4px; border-radius: 999px; border: 2px solid var(--box, var(--linie)); background: var(--karte); color: var(--tinte); font-weight: 600; }
.heftboxen button.an { background: var(--box); color: #fff; }   /* weiss statt Elfenbein (9.10.2026): Tafelsilber lag bei 4,0:1 */
.heftboxen .heftboxfig { width: 34px; height: 34px; object-fit: contain; }
.heftbox[hidden] { display: none; }
.heftbox > h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-left: 6px solid var(--box); padding-left: 8px; }
.heftbox .heftboxkopf { width: 48px; height: 48px; object-fit: contain; }
.heftblick { margin: 8px 0 12px; }
.heftblick .heftkurz { font-weight: 600; }
.heftblick .boxteil[hidden] { display: block; }
.heftteil { margin: 8px 0; border-radius: 12px; border: 1.5px solid var(--linie); background: var(--karte); }
.heftteil > summary { display: flex; align-items: center; gap: 8px; padding: 6px 10px; cursor: pointer; font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: 1.05rem; list-style: none; }
.heftteil > summary::-webkit-details-marker { display: none; }
.heftteil > summary::after { content: "▸"; margin-left: auto; transition: transform var(--t-kurz, .15s); }
.heftteil[open] > summary::after { transform: rotate(90deg); }
.heftteil .heftteilfig { width: 36px; height: 36px; object-fit: contain; }
.heftteilinhalt { padding: 0 12px 10px; }
.heft .boxkarteheft { margin: 8px 0; padding-left: 10px; border-left: 3px solid var(--box, var(--linie)); }
/* Logo als Konto-Knopf (5.10.2026): darueber schimmert "Anmelden" bzw. "Abmelden". */
.startkreis .startlogoknopf { padding: 0; border: 0; overflow: hidden; cursor: pointer; background: none; }
.startkreis .startlogoknopf img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.startkreis .startlogoknopf .logoschimmer { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); padding: 4px 14px 5px; border-radius: 999px; white-space: nowrap;
  font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: clamp(.8rem, 3vw, 1rem); color: #2A2118;
  background: linear-gradient(110deg, #F2E8C9 30%, #FFF8DA 45%, #F2E8C9 60%) 0 0 / 250% 100%; box-shadow: 0 2px 8px rgba(0, 0, 0, .35), 0 0 0 2px var(--gruen-dunkel, #4C7A5A);
  animation: logoschimmer 3.2s ease-in-out infinite; }
@keyframes logoschimmer { 0% { background-position: 100% 0; } 60%, 100% { background-position: -50% 0; } }
.startkreis .startlogoknopf:hover .logoschimmer, .startkreis .startlogoknopf:focus-visible .logoschimmer { background: #FFF8DA; }
@media (prefers-reduced-motion: reduce) { .startkreis .startlogoknopf .logoschimmer { animation: none; } }
/* Kopfzeile (5.10.2026): kleines Logo im gruenen Kreis, daneben "Rumpel" dunkel, "Ehrlich geklaut!" groesser und schwarz. */
#kopf .kopftitel { position: relative; padding-left: 44px; min-height: 38px; justify-content: center; color: #000; font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: 1.25rem; }
#kopf .kopftitel::before { content: ""; position: absolute; left: 0; top: 50%; width: 36px; height: 36px; transform: translateY(-50%); border-radius: 50%;
  background: url("icons/icon-192.png") center / cover; box-shadow: 0 0 0 2.5px var(--gruen-dunkel, #4C7A5A), 0 2px 5px rgba(0, 0, 0, .3); }
#kopf .kopfslogan { font-size: .82rem; color: #000; opacity: 1; letter-spacing: .02em; }
/* "Startseite" unter dem Logo (6.10.2026, Vorgabe des Autors): das Logo fuehrt immer zur Startseite und sagt es auch. */
#kopf .kopfstarttext { position: absolute; left: 18px; top: calc(50% + 21px); transform: translateX(-50%); font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: .6rem; line-height: 1; color: #000; white-space: nowrap; letter-spacing: .02em; }
@media (max-width: 420px) { #kopf .kopfstarttext { left: 15px; top: calc(50% + 18px); font-size: .55rem; } }
@media (max-width: 420px) { #kopf .kopftitel { font-size: 1.05rem; padding-left: 38px; } #kopf .kopftitel::before { width: 30px; height: 30px; } #kopf .kopfslogan { font-size: .68rem; } }
/* Spanisch (11.10.2026, Bildschirmtest test/i18n-bildschirme.test.mjs): «¡Robado con honradez!» ist laenger als «Ehrlich
   geklaut!» und lief am Handy unter den Flaggen-Kobold; schmal darf es in zwei Zeilen stehen. */
@media (max-width: 420px) { html[lang="es"] #kopf .kopfslogan { white-space: normal; max-width: 7.6rem; line-height: 1.05; } }
.startkreis.staffeln { margin-top: clamp(40px, 7vw, 64px); margin-bottom: clamp(48px, 8vw, 72px); }   /* unten der Werkstatt-Kobold (6.10.2026) */   /* ohne Logo-Zeile darueber (5.10.2026): Platz fuer den obersten Kobold */
/* Koboldranking (5.10.2026). */
.rangliste { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 4px; }
.rangliste li { display: grid; grid-template-columns: 3em 1fr auto; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--karte); border: 1px solid var(--linie); }
.rangliste li:nth-child(-n+3) .rangplatz { color: #B07D00; font-weight: 700; }
.rangliste li.ich { border: 2px solid var(--gruen-dunkel, #4C7A5A); background: color-mix(in srgb, var(--gruen, #7CA36A) 18%, var(--karte)); }
.rangplatz { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; text-align: right; }
.rangpunkte { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Name mit Melde-Fahne (9.10.2026, app/melden-ui.js): eine Rasterzelle, die Fahne direkt hinter dem Namen */
.rangname, .dtagliste .rangname { display: flex; align-items: center; min-width: 0; } .rangname b { overflow: hidden; text-overflow: ellipsis; }
.rangregeln ul { margin: 6px 0 0; padding-left: 1.2em; } .rangregeln li { margin: 4px 0; line-height: 1.35; }
nav.reiter.rangreiter { position: static; margin-bottom: 12px; }
/* Tagespartie: Heute / Monat (10.10.2026) - kleine Pillen unter den grossen Reitern, der gewaehlte gruen. */
nav.tagreiter { display: flex; gap: 6px; margin: 0 0 10px; }
nav.tagreiter button { flex: 1 1 0; border-radius: 999px; }
nav.tagreiter button.an { background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); color: var(--auf-gruen); }
/* "Ueber die App" als kleines Fenster oben links (5.10.2026, Autor: "riesiges Banner, nervt"); Tipp daneben schliesst. */
.profilschleier { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .12); border: 0; padding: 0; margin: 0; min-height: 0; cursor: default; }
.profilschleier:active { transform: none; }
.profilkasten { position: fixed; z-index: 41; top: calc(64px + env(safe-area-inset-top, 0px)); left: 12px; width: min(320px, calc(100vw - 24px)); margin: 0; padding: 10px 14px; font-size: .9rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
/* Logo-Knopf behaelt beim Druecken seine Position in der Kreismitte (vorher sprang er nach rechts unten). */
.startkreis .startlogoknopf:active:not([disabled]) { transform: translate(-50%, -50%) scale(.97); }
/* Kobolde auf den Ranking-Reitern gross, sie ragen oben aus dem Feld (5.10.2026, Wunsch des Autors). */
nav.reiter.rangreiter { margin-top: 46px; overflow: visible; }
nav.reiter.rangreiter button { overflow: visible; padding-top: 0; }
nav.reiter.rangreiter button img.reiterfigur { width: 92px; height: 92px; margin: -52px 0 -4px; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .3)); }
.startkreis button.gross.mitfig.kreis .knopftext { margin-top: -6px; }   /* Fuesse stehen auf der Oberkante der Beschriftung (5.10.2026, Wunsch des Autors) */

/* Koboldausweis unter dem Startkreis (6.10.2026): abgemeldet "Anmelden", angemeldet Name (zum Konto) plus "Abmelden".
   Seit dem Umbau am selben Tag sitzt hier An- und Abmelden, das Logo in der Mitte bleibt blank. */
.profilchip { display: flex; align-items: stretch; width: fit-content; max-width: 94%; margin: 10px auto 0; border-radius: 999px; overflow: hidden;
  background: var(--karte, #F2E8C9); border: 2px solid var(--gruen-dunkel, #2F5D3A); box-shadow: 0 3px 10px rgba(42, 33, 24, .2); position: relative; z-index: 1; }
.profilchiplink { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; color: inherit; text-decoration: none; background: none; border: 0; border-radius: 0; min-height: 0; font: inherit; text-align: left; cursor: pointer; }
.profilchipfig { width: 40px; height: 40px; object-fit: contain; transform-origin: 50% 90%; }
.profilchiptext { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.profilchiptext b { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profilchiptext small { font-size: .74rem; opacity: .8; }
.profilchippfeil { font-size: 1.6rem; line-height: 1; margin-left: 2px; color: var(--gruen-dunkel, #2F5D3A); transition: transform .18s; }
.profilchipraus { display: flex; align-items: center; gap: 4px; padding: 4px 12px 4px 8px; min-height: 0; border: 0; border-left: 2px solid var(--gruen-dunkel, #2F5D3A); border-radius: 0;
  background: color-mix(in srgb, var(--gruen-dunkel, #2F5D3A) 10%, transparent); font-size: .8rem; font-weight: 700; color: inherit; cursor: pointer; }
.profilchiprausfig { width: 30px; height: 30px; object-fit: contain; }
.profilchiplink:hover .profilchipfig, .profilchiplink:focus-visible .profilchipfig { animation: dwippen .5s ease-in-out 2; }
.profilchiplink:hover .profilchippfeil, .profilchiplink:focus-visible .profilchippfeil { transform: translateX(4px); }
.profilchipraus:hover .profilchiprausfig, .profilchipraus:focus-visible .profilchiprausfig { animation: dwippen .5s ease-in-out 2; }
.profilchiplink:active, .profilchipraus:active { transform: scale(.97); }
@media (max-width: 420px) { .profilchiptext small { display: none; } }
@keyframes dwippen { 50% { transform: translateY(-3px) rotate(-4deg); } }
.profilkasten .knopffig { width: 28px; height: 28px; vertical-align: middle; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .profilchiplink:hover .profilchipfig, .profilchipraus:hover .profilchiprausfig { animation: none; } .profilchippfeil { transition: none; } }
/* Link als Knopf (Profil: "Mein Konto", 6.10.2026), sieht aus wie button.gross */
a.knopf.gross { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; text-decoration: none; font-size: 1.1rem; font-weight: 700; padding: 14px; margin: 8px 0; border: 2px solid var(--gruen-dunkel); border-radius: 14px; background: var(--karte); color: var(--tinte); }
a.knopf.gross.an { background: var(--gruen-dunkel); color: var(--auf-gruen); }

/* Schliessen oben rechts (6.10.2026, wie .dpopupzu im Spiel): rund, rot, pulsierend, das X dreht sich beim Zeigen. */
/* .profilkasten bleibt fixed (Popup); relative haette ihn in den Fluss geholt und alles nach unten geschoben (6.10.2026). */
.boxkarte, .musikkarte { position: relative; }
.popupzu { position: sticky; top: 0; float: right; z-index: 5; margin: -6px -6px -34px auto; width: 40px; height: 40px; min-height: 40px; flex: none; align-self: flex-end; padding: 0; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.25rem; font-weight: 700; line-height: 1; background: #B0303A; color: #fff; border: 2.5px solid #fff; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.3); animation: popupzupuls 1.8s ease-in-out infinite; }
@keyframes popupzupuls { 0%, 100% { box-shadow: 0 2px 6px rgba(0,0,0,.3), 0 0 0 0 rgba(176,48,58,.55); } 60% { box-shadow: 0 2px 6px rgba(0,0,0,.3), 0 0 0 9px rgba(176,48,58,0); } }
.popupzu span { display: block; transition: transform .18s; }
.popupzu:hover span, .popupzu:focus-visible span { transform: rotate(90deg); }
.popupzu:active { transform: scale(.9); }
/* Profil als mittiges Popup (6.10.2026, Wunsch des Autors: das Feld oben links wirkte verrutscht). */
.profilkasten .popupzu { margin: -8px -11px -34px auto; }   /* gleich weit von der Ecke wie im Spiel (14/8 px) */
.profilkasten { top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 14px 18px 14px; border-radius: 18px; animation: profilauf .28s cubic-bezier(.3,1.4,.5,1); }
@keyframes profilauf { from { transform: translate(-50%, -46%) scale(.9); opacity: 0; } }
.profilschleier { background: rgba(12, 16, 10, .45); }
@media (prefers-reduced-motion: reduce) { .profilkasten { animation: none; } }
@media (prefers-reduced-motion: reduce) { .popupzu, .willkommenzu { animation: none; } .popupzu span { transition: none; } }

/* Die zwei Starrer (6.10.2026, Wunsch des Autors): links schaut einer nach rechts, rechts einer nach links, beide
   versuchen grimmig zu sein. Fester Hintergrund hinter allem (z-index -1, keine Klicks). Breit: gross an den Raendern,
   neben dem Inhalt. Schmal: kleiner, blasser, unten in den Ecken angeschnitten. Bewegung nur transform: abwechselnd
   beugt sich einer vor, selten zuckt der Dicke zurueck, der Duenne schwitzt (kurzes Zittern). */
.starrer { display: none; position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; contain: strict; }   /* contain (8.10.2026): die halb hinausragenden Starrer machten die Startseite auf dem Handy breiter (Layout 468 px bei 412 px Schirm, waagrecht scrollbar) */
/* z-index -1 verschwand hinter dem eigenen Hintergrund von body; deshalb Ebene 0 und der Inhalt eine darueber. */
body.mitstarrern > main, body.mitstarrern > header, body.mitstarrern > footer { position: relative; z-index: 1; }
body.mitstarrern .starrer { display: block; }
/* Teil des Hintergrunds (6.10.2026, Wunsch des Autors): etwas durchsichtig und leicht entsaettigt, damit sich die Mitte
   immer abhebt, auch wo sie die Figuren ueberlappt. */
.starrer img { --sh: clamp(240px, 62vh, 760px); position: absolute; height: var(--sh); width: auto; opacity: .5; filter: saturate(.85);
  /* Etwas unter den Rand (6.10.2026, Fund des Autors): beim Vorbeugen und Zurueckzucken (bis 3 Grad) hob sich sonst
     die gerade Unterkante des Bildes sichtbar vom Bildschirmrand ab. */
  bottom: calc(var(--sh) * -.09); }
.starrer-l { left: 0; transform-origin: 20% 100%; translate: -12% 0; animation: starrenL 9s ease-in-out infinite; }
.starrer-r { right: 0; transform-origin: 80% 100%; translate: 10% 0; animation: starrenR 9s ease-in-out infinite; }
@keyframes starrenL {
  0%, 18%, 100% { transform: none; }
  24% { transform: translateX(14px) rotate(2.5deg); }          /* beugt sich vor */
  30%, 44% { transform: translateX(10px) rotate(2deg); }
  50% { transform: none; }
  80% { transform: none; }
  82% { transform: translateX(-2px); } 84% { transform: translateX(2px); } 86% { transform: none; }   /* Zittern: der Schweiss */
}
@keyframes starrenR {
  0%, 52%, 100% { transform: none; }
  58% { transform: translateX(-16px) rotate(-2.5deg) scale(1.02); }   /* blaeht sich vor */
  64%, 74% { transform: translateX(-12px) rotate(-2deg) scale(1.03); }
  78% { transform: translateX(10px) rotate(3deg); }                    /* zuckt zurueck */
  84% { transform: none; }
}
/* Schmal und hoch (Handy): Inhalt hat Vorrang. */
@media (max-width: 900px) {
  .starrer img { --sh: clamp(180px, 34vh, 360px); opacity: .35; }
  .starrer-l { translate: -30% 0; } .starrer-r { translate: 26% 0; }
}
@media (prefers-reduced-motion: reduce) { .starrer img { animation: none; } }

/* Handy (6.10.2026, Wunsch des Autors): das Schild unter dem Kreis leicht durchscheinend, die Starrer schimmern durch. */
@media (max-width: 900px) {
  .profilchip { background: color-mix(in srgb, var(--karte, #F2E8C9) 62%, transparent); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
}
/* Wo die Starrer stehen, sind sie der Hintergrund: die alte Hintergrundfigur der Historie (Jubel, Chronist) lag sonst
   halb ueber dem rechten Starrer (6.10.2026, Fund des Autors). */
body.mitstarrern .figur.hintergrund { display: none; }

.boxkarte .popupzu { margin-right: -8px; }   /* boxkarte hat 16 px Innenabstand: X 8 px von der Kante wie ueberall */

/* Regelzeilen der Schachteln im Stil der Hausordnung (6.10.2026): Kobold der Schachtel, Zeilen im Wechsel getoent, ein
   fetter Kopf vor dem Doppelpunkt; nacheinander aufploppen, das Bildchen wackelt beim Zeigen. */
ul.rzeilen { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.rzeile { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; padding: 3px 4px; border-radius: 8px; line-height: 1.35; }
.rzeile:nth-child(odd) { background: rgba(110, 75, 44, .07); }
.rzbild { width: 28px; height: 28px; display: grid; place-items: center; transform-origin: 50% 85%; }
.rzfig { width: 28px; height: 28px; object-fit: contain; }
.rzkopf { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; color: var(--gruen-dunkel, #2F5D3A); }
.rzeile { animation: rzauf .4s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(var(--j, 0) * .06s); }
@keyframes rzauf { from { opacity: 0; transform: translateX(-10px) scale(.95); } }
.rzeile:hover .rzbild, .rzeile:active .rzbild { animation: rzwackel .36s ease-in-out 2; }
@keyframes rzwackel { 25% { transform: rotate(-12deg) scale(1.12); } 75% { transform: rotate(10deg) scale(1.12); } }
.dstill .rzeile { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .rzeile, .rzeile:hover .rzbild { animation: none; } }

/* Zweierfragen im Spielstart (6.10.2026): zwei Karten nebeneinander (am Handy untereinander), die Frage gross darueber. */
.zweierfrage { text-align: center; margin: 4px 0 14px; }
.spielartreihe.zweier { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 520px) { .spielartreihe.zweier { grid-template-columns: minmax(0, 1fr); row-gap: 64px; margin-top: 40px; } }   /* Platz fuer den Kobold, der oben aus der Karte ragt */
.feinheiten { margin-top: 16px; }
.feinheiten summary { cursor: pointer; font-weight: 700; opacity: .8; }
/* Umbenannte Freunde (6.10.2026) */
.umbenannt { display: block; font-size: .78rem; opacity: .8; font-weight: 400; }
/* Mondkalender und Launen-Draft (6.10.2026) */
.mondheute { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.mondkasten { display: flex; align-items: center; gap: 12px; text-align: left; }
.mondsvg { vertical-align: middle; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.draftwahl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.draftkarte { background: none; border: 0; padding: 0; cursor: pointer; animation: draftrein .5s cubic-bezier(.2,1.4,.4,1) both; animation-delay: calc(var(--j, 0) * 160ms); }
.draftkarte:hover, .draftkarte:focus-visible { transform: translateY(-4px) rotate(-1deg); transition: transform .2s; }
@keyframes draftrein { from { transform: translateY(-30px) rotate(-8deg) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .draftkarte { animation: none; } }
@media (max-width: 520px) { .draftwahl { grid-template-columns: 1fr; } }
.werkstattlink { margin-top: 4px; } .werkstattlink .knopf { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
/* Einladung auf dem Startbildschirm (6.10.2026) */
.einladungkasten { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border: 2px solid var(--gruen-dunkel, #4C7A5A); animation: einladungrein .5s cubic-bezier(.2,1.4,.4,1) both; }
.einladungfig { width: 56px; height: 56px; object-fit: contain; animation: einladungwink 1.4s ease-in-out infinite; }
.einladungknoepfe { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.einladungknoepfe .knopf { margin: 0; padding: 8px 14px; }
@keyframes einladungrein { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes einladungwink { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .einladungkasten, .einladungfig { animation: none; } }
/* Feste helle Flaeche braucht feste dunkle Schrift (App 226, Fund des Autors: "weiss auf hellem Grund, besonders beim Kopfgeld"
   - im Dunkelmodus erbte der Kasten --tinte #E6EEDC). test/kontrast-css.test.mjs prueft das fuer jede feste Flaeche. */
.kopfgeldkasten { display: flex; align-items: center; gap: 10px; border: 2px dashed #8B5A2B; background: #F6E7C9; color: #2A2118; } .kopfgeldfig { width: 52px; height: 52px; object-fit: contain; transform: rotate(-4deg); }

/* Spiel abbrechen (6.10.2026, Vorgabe des Autors: "deutlich ersichtlich"): kraeftig rot unter dem Startkreis. */
.startabbruch { margin: -8px 0 16px; display: flex; justify-content: center; }
.startabbruch button.abbruchknopf { display: inline-flex; align-items: center; gap: 10px; width: auto; padding: 8px 22px 8px 12px; background: #C0392B; border: 2px solid #8E2A20; color: #fff; font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: 1.05rem; border-radius: 999px; box-shadow: 0 3px 10px rgba(142, 42, 32, .35); }
.startabbruch .abbruchknopf .knopffig { width: 40px; height: 40px; object-fit: contain; margin: -10px 0 -6px; }
.startabbruch button.abbruchknopf:hover, .startabbruch button.abbruchknopf:focus-visible { background: #A93226; }

/* Unter dem Startkreis (6.10.2026): Abzeichen und Mehr als Kobolde mit Beschriftung, wie die Kreis-Kobolde. */
.startextras { display: flex; justify-content: center; gap: 4px 22px; flex-wrap: wrap; margin: -6px 0 14px; }
.startextras button.startextra { display: inline-flex; flex-direction: column; align-items: center; background: none; border: 0; box-shadow: none; padding: 0; min-height: 0; width: auto; cursor: pointer; color: var(--tinte, #2A2118); }
.startextra .startextrafig { width: 64px; height: 64px; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 4px 3px rgba(42, 33, 24, .25)); transition: transform .2s; }
.startextra:hover .startextrafig, .startextra:focus-visible .startextrafig { transform: translateY(-3px) scale(1.06); }
.startextra span { margin-top: 2px; padding: 3px 12px 4px; border-radius: 999px; background: var(--karte, #F2E8C9); border: 1.5px solid var(--gruen-dunkel, #4C7A5A); font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: .85rem; white-space: nowrap; box-shadow: 0 2px 6px rgba(42, 33, 24, .2); }
@media (prefers-reduced-motion: reduce) { .startextra .startextrafig { transition: none; } }

/* Schliessen immer exakt rund (6.10.2026 nachts, Fund des Autors): feste 40 x 40, auch gegen allgemeine Knopfregeln. */
button.popupzu { box-sizing: border-box; width: 40px; height: 40px; min-width: 40px; min-height: 40px; max-width: 40px; max-height: 40px; aspect-ratio: 1; padding: 0; flex: none; border-radius: 50%; }

/* Kontoseite (6.10.2026 nachts): Reiter als Kobolde mit Beschriftung, "Mehr" als Kobold-Knoepfe. */
.kreiter { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 6px 0 14px; }
.kreiter button.kreiterknopf { display: inline-flex; flex-direction: column; align-items: center; background: none; border: 0; box-shadow: none; padding: 0; min-height: 0; width: auto; cursor: pointer; color: var(--tinte, #2A2118); }
.kreiterknopf .kreiterfig { width: 54px; height: 54px; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 3px 3px rgba(42, 33, 24, .25)); transition: transform .2s; }
.kreiterknopf span { margin-top: 2px; padding: 3px 12px 4px; border-radius: 999px; background: var(--karte, #F2E8C9); border: 1.5px solid var(--gruen-dunkel, #4C7A5A); font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: .82rem; white-space: nowrap; }
.kreiterknopf.an span { background: var(--gruen-dunkel, #4C7A5A); color: var(--auf-gruen, #fff); }
.kreiterknopf.an .kreiterfig, .kreiterknopf:hover .kreiterfig, .kreiterknopf:focus-visible .kreiterfig { transform: translateY(-3px) scale(1.06); }
.kmehrreihe { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin: 10px 0; }
.kmehrknopf { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--tinte, #2A2118); }
.kmehrknopf img { width: 60px; height: 60px; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 3px 3px rgba(42, 33, 24, .25)); transition: transform .2s; }
.kmehrknopf span { margin-top: 2px; padding: 3px 12px 4px; border-radius: 999px; background: var(--karte, #F2E8C9); border: 1.5px solid var(--gruen-dunkel, #4C7A5A); font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: .85rem; }
.kmehrknopf:hover img, .kmehrknopf:focus-visible img { transform: translateY(-3px) scale(1.06); }
.kmehrrecht { text-align: center; margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .kreiterknopf .kreiterfig, .kmehrknopf img { transition: none; } }
@media (max-width: 460px) { .kreiter { gap: 2px 4px; } .kreiterknopf .kreiterfig { width: 44px; height: 44px; } .kreiterknopf span { padding: 2px 8px 3px; font-size: .74rem; } }
/* Unter dem Kontoschild (6.10.2026 nachts, Wunsch des Autors): Version, Impressum, Datenschutz als blasser grauer Text. */
.startfuss { text-align: center; margin: 10px 0 18px; font-size: .78rem; color: #6E6B63; }   /* (9.10.2026, WCAG 1.4.3) hell 4,7:1 statt 3,2:1 */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .startfuss { color: #8A877F; } }
:root[data-theme="dark"] .startfuss { color: #8A877F; }
.startfuss a { color: inherit; text-decoration: underline; text-decoration-color: rgba(138, 135, 127, .5); }
.startfuss a:hover, .startfuss a:focus-visible { color: #5E5B54; }

/* Launen zweispaltig (6.10.2026, Wunsch des Autors): die Kasten-Launen jeder Stichwort-Gruppe als
   Kacheln, je zwei in einer Zeile wie im gedruckten Heft (src/launen-heft.mjs). Die ausfuehrlich
   erklaerten Launen davor bleiben in voller Breite. Oben eine Sprungleiste zu den Gruppen. */
.launensprung { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.launensprung button { padding: 5px 11px; border-radius: 999px; font-size: .9rem; border: 1.5px solid var(--linie); background: var(--karte); }
.heft .launen { clear: both; margin: 12px 0 6px; }
.heft .launen .zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.heft .laune { min-width: 0; background: var(--karte); border: 1.5px solid var(--linie); border-radius: 12px; padding: 8px 10px; overflow: hidden; }
.heft .laune h5 { margin: 0 0 4px; font-size: 1rem; }
.heft .laune p { margin: 4px 0; }
.heft .laune blockquote { margin: 6px 0; padding: 3px 8px; border-left-width: 3px; background: transparent; }
.heft .laune img.kartebild { width: 34%; max-width: 110px; margin: 0 0 6px 8px; }
@media (max-width: 520px) {
  .heft .launen .zeile { gap: 6px; margin-bottom: 6px; }
  .heft .laune { padding: 6px 7px; font-size: .86rem; line-height: 1.35; hyphens: auto; }
  .heft .laune h5 { font-size: .93rem; }
  .heft .laune img.kartebild { width: 40%; margin: 0 0 4px 6px; }
}
/* Stichwort-Gruppen als Band, damit man im langen Launen-Reiter sieht, wo eine Gruppe beginnt. */
.heft h4 { clear: both; margin: 28px 0 8px; padding: 5px 12px; font-size: 1.15rem; background: var(--karte); border-left: 5px solid var(--rolle); border-radius: 8px; }

/* Namensschild (6.10.2026 nachts): angemeldet ein Zettel mit Tesastreifen unter dem Startkreis, fuehrt zum Konto */
.namensschild { display: flex; justify-content: center; margin: 6px 0 2px; padding-bottom: 8px; }   /* Luft fuer die Drehung und das Hover-Wachsen (App 189: sonst 2 px Scrollleiste im Mittelteil) */
.namensschildlink { position: relative; display: inline-flex; border: 0; cursor: pointer; min-height: 0; font-size: 1rem; flex-direction: column; align-items: center; gap: 1px; padding: 10px 26px 8px; background: #FBF4DC; color: var(--tinte); text-decoration: none; border-radius: 3px; box-shadow: 0 3px 8px rgba(39, 51, 31, .25); transform: rotate(-2deg); font-family: "Fredoka", "Nunito", sans-serif; }
.namensschildlink b { font-size: 1.15rem; letter-spacing: .3px; }
.namensschildlink small { font-family: "Nunito", sans-serif; font-size: .72rem; opacity: .7; }
.namensschildlink::before, .namensschildlink::after { content: ""; position: absolute; top: -8px; width: 44px; height: 16px; background: rgba(255, 244, 180, .75); border: 1px solid rgba(120, 100, 40, .25); transform: rotate(-6deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.namensschildlink::before { left: -14px; }
.namensschildlink::after { right: -14px; transform: rotate(7deg); }
.namensschildlink:hover { transform: rotate(0deg) scale(1.03); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .namensschildlink { background: #5A5240; color: #F7F1E1; } }
:root[data-theme="dark"] .namensschildlink { background: #5A5240; color: #F7F1E1; }

/* Die Ratte huscht ueber die Startseite (6.10.2026 nachts): nur Zierde, nicht antippbar */
.startratte { position: fixed; left: 0; z-index: 30; pointer-events: auto; cursor: pointer; touch-action: none; will-change: transform; }   /* seit 7.10.2026 antippbar */
.startrattefig { width: 72px; height: auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
/* Schatten der Ratte (7.10.2026): ovaler weicher Fleck unter den Pfoten, laeuft im selben Element mit; beim Rennen wippt er */
.startratte { width: 72px; }
.startratte .startrattefig { position: relative; display: block; }
.startratteschatten { position: absolute; left: 10px; right: 6px; bottom: -3px; height: 10px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, .18) 45%, rgba(0, 0, 0, 0) 72%); }
.startratte.rennt .startratteschatten { animation: ratteschatten .22s ease-in-out infinite alternate; }
@keyframes ratteschatten { from { transform: scaleX(1); opacity: 1; } to { transform: scaleX(.78); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .startratte.rennt .startratteschatten { animation: none; } }
/* Registrieren (7.10.2026): drei Schritte als nummerierte Kreise */
/* Anmeldung mit Google (App 280): Trennzeile "oder" und Platz fuer den Knopf von Google */
.koder { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; opacity: .8; }
.koder::before, .koder::after { content: ""; flex: 1; border-top: 1px solid var(--linie); }
.kgoogle { display: flex; justify-content: center; min-height: 44px; margin-bottom: 6px; }
/* App 320 (N7): eigener Google-Knopf, Google laedt erst nach dem Tipp; Farben nach Googles Vorgabe fuer helle Knoepfe */
.kgoogleknopf { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px 8px 14px; border-radius: 999px; background: #fff; color: #1F1F1F;
  border: 1px solid #747775; font: inherit; font-weight: 600; cursor: pointer; }
.kgoogleknopf:hover { background: #F2F2F2; color: #1F1F1F; }
.kgoogleknopf:focus-visible { outline: 3px solid var(--gruen-dunkel, #4C7A5A); outline-offset: 2px; }
.kgoogleg { width: 20px; height: 20px; flex: none; }
.kschritte { list-style: none; counter-reset: kschritt; padding: 0; margin: 8px 0 14px; display: grid; gap: 8px; }
.kschritte li { counter-increment: kschritt; display: flex; align-items: center; gap: 10px; }
.kschritte li::before { content: counter(kschritt); flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: Fredoka, Nunito, sans-serif; font-weight: 600; border: 2px solid var(--ja-rand); color: var(--ja-rand); }
/* Gefangene Startratte (7.10.2026): Holzkorb ueber ihr, sie bleibt hinter den Latten sichtbar */
.startratte.gefangen .startratteschatten { animation: none; transform: scaleX(1.25); }
.startrattekorb { position: absolute; left: 50%; margin-left: -44px; width: 92px; bottom: -4px; height: 60px;   /* 7.10.2026 abends (Autor): tiefer, die Ratte (rund 33 px hoch, Sprung 7 px) bleibt innen */ pointer-events: none; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); }
/* 1UP nach dem Fang (7.10.2026) */
.startratte1up { position: fixed; z-index: 40; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: Fredoka, Nunito, sans-serif; font-weight: 600; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.startratte1up b { font-size: 1.6rem; color: #2E8B3A; -webkit-text-stroke: 1px #fff; }
.startratte1up small { font-size: .85rem; color: #6E4A82; background: rgba(255, 255, 255, .85); padding: 1px 8px; border-radius: 10px; }
/* Made in Switzerland (7.10.2026, Wunsch des Autors): dezent, kleine Flagge */
.madein { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px 0 10px; font-size: .78rem; opacity: .75; }
.madein .chflagge { width: 14px; height: 14px; flex: none; }
/* Laufrhythmus der Startratte (7.10.2026, Wunsch des Autors: "mehr animiert"): Huepfen, Stauchen und Kippen im Galopp,
   bis echte Einzelbilder gemalt sind. Nur das Bild bewegt sich, der Lauf ueber den Schirm kommt aus app.js. */
.startratte.rennt .startrattefig { animation: rattengalopp .28s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes rattengalopp {
  0% { transform: translateY(0) scale(1.06, .94) rotate(2deg); }
  35% { transform: translateY(-7px) scale(.96, 1.05) rotate(-5deg); }
  70% { transform: translateY(-2px) scale(1.02, .99) rotate(1deg); }
  100% { transform: translateY(0) scale(1.06, .94) rotate(2deg); } }
.startratte.gefangen .startrattefig { animation: none; }
.startratte.links .startrattefig { scale: -1 1; }   /* 7.10.2026: Lauf von rechts nach links, Bild gespiegelt (scale wirkt neben dem Galopp-transform) */
@media (prefers-reduced-motion: reduce) { .startratte.rennt .startrattefig { animation: none; } }
/* Update-Banner (7.10.2026 abends, app/update.js): Popups halten Abstand, damit es nie ein Schliessen-X verdeckt. */
.boxregeln { padding-top: max(12px, calc(var(--updateh, 0px) + 8px)); }

/* Nichts markierbar (8.10.2026, Wunsch des Autors: "zerstoert Optik und Flair, im Spiel stoert es"): weder mit dem Finger noch
   mit Strg+A, kein Lupen-/Kopiermenue beim langen Druecken. Eingabefelder bleiben markierbar (tippen, einfuegen); die
   Admin-Seite schaltet es in admin.css wieder ein (Tabellen kopieren). */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable], [contenteditable] * { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
/* Selbstauskunft ab 16 beim Registrieren (8.10.2026) */
.kalter { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; cursor: pointer; font-size: 1rem; }
.kalter input { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--gruen-dunkel); }
/* Rueckfragen im Rumpel-Stil (app/frage.js, 8.10.2026): Karte mit runden Ecken, Kobold oben drauf. */
.rfrage { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(20, 16, 12, .6); animation: rfrageauf .25s ease-out; }
.rfragekarte { position: relative; width: min(380px, 100%); margin-top: 70px; padding: 74px 18px 16px; border-radius: 22px; background: var(--karte, #F7F1E1); color: var(--tinte, #2A2118);
  border: 3px solid #8B5A2B; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); text-align: center; }
.rfragefig { position: absolute; left: 50%; top: -86px; width: 150px; height: 150px; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); animation: rfragewackel 2.4s ease-in-out infinite; }
.rfragetext { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: 1.2rem; line-height: 1.3; margin: 0 0 14px; }
.rfrageknoepfe { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.rfrageknoepfe button { flex: 1 1 140px; }
@keyframes rfrageauf { from { opacity: 0; } }
@keyframes rfragewackel { 0%, 100% { transform: translateX(-50%) rotate(-2deg); } 50% { transform: translateX(-50%) rotate(2deg) translateY(2px); } }
@media (prefers-reduced-motion: reduce) { .rfrage, .rfragefig { animation: none; } }
/* Erzaehlerstimme in der Spielregel der App (8.10.2026) */
button.erzaehlknopf { min-height: 0; padding: 4px 12px; border-radius: 999px; font-size: .9rem; margin: -2px 0 10px; }

/* Kopf (8.10.2026, Wunsch des Autors): oben "Rumpel by cosic.eu", darunter "Ehrlich geklaut!", auf allen Seiten. */
#kopf .kopfname { display: inline-flex; align-items: baseline; gap: .3em; white-space: nowrap; }
#kopf .kopfby { font-family: "Nunito", sans-serif; font-weight: 700; font-size: .6rem; letter-spacing: .02em; color: #000; opacity: 1; }
@media (max-width: 420px) { #kopf .kopfby { font-size: .52rem; } }

/* Spielregeln (8.10.2026, Wunsch des Autors): Titel, Suche und Reiter bleiben stehen, nur das Heft darunter scrollt.
   Auf niedrigen Bildschirmen (Handy quer) klebt nur die Reiterzeile, sonst bliebe kaum Platz zum Lesen. */
.regelfest { position: sticky; top: var(--kopfh, 52px); z-index: 2; background: var(--grund); }
.regelfest .suche, .regelfest nav.reiter { position: static; }
.regelfest .regelkopf { margin-top: 0; padding-top: 6px; }
@media (max-height: 560px) { .regelfest { position: static; } .regelfest nav.reiter { position: sticky; } }

/* Lebendige Kobolde (8.10.2026, Wunsch des Autors: "alle Figuren bewegen sich etwas, wie auf der Startseite, ohne hektisch").
   Jede freigestellte Figur atmet und wippt leise, jede dritte huepft selten ein wenig; die Takte sind versetzt, damit nie
   alle zugleich gehen. Nur ueber die Einzel-Eigenschaften translate/rotate/scale: Sie addieren sich zu einem vorhandenen
   transform (Figuren, die so positioniert sind, bleiben an ihrem Platz). :where() haelt die Spezifitaet bei 0, darum gewinnt
   jede eigene Bewegung (Startkreis, Jubel, Ratte, Starrer) wie bisher. */
:where(img.figur, img.kreiterfig, .kmehrknopf img, .wk-bild img, .wk-kopf img) { animation: figleben 6.4s ease-in-out infinite; transform-origin: 50% 100%; }
:where(img.figur:nth-of-type(2n)) { animation-duration: 7.3s; animation-delay: -2.1s; }
:where(img.figur:nth-of-type(3n)) { animation-name: fighupf; animation-duration: 9.5s; animation-delay: -4.3s; }
:where(button:nth-child(2n) img.figur, li:nth-child(2n) img.figur, section:nth-child(2n) img.figur) { animation-delay: -3.4s; }
:where(button:nth-child(3n) img.figur, li:nth-child(3n) img.figur) { animation-name: fighupf; animation-duration: 10.2s; animation-delay: -6.2s; }
@keyframes figleben {
  0%, 100% { translate: 0 0; rotate: 0deg; scale: 1 1; }
  25% { translate: 0 -1.5px; rotate: -1.6deg; }
  50% { scale: 1.015 .985; }
  75% { translate: 0 -1.5px; rotate: 1.6deg; }
}
@keyframes fighupf {
  0%, 70%, 100% { translate: 0 0; rotate: 0deg; scale: 1 1; }
  74% { scale: 1.04 .94; }
  80% { translate: 0 -7px; rotate: -3deg; scale: .98 1.03; }
  86% { translate: 0 0; rotate: 1.5deg; scale: 1.03 .96; }
  91% { translate: 0 -2px; rotate: 0deg; scale: 1 1; }
}
@media (prefers-reduced-motion: reduce) { :where(img.figur, img.kreiterfig, .kmehrknopf img, .wk-bild img, .wk-kopf img) { animation: none; } }

/* Startratte gefangen (8.10.2026, Fund des Autors: "laeuft die Ratte oben, verdeckt das Banner Fangkiste und Feuerwerk"):
   Ratte und Korb liegen ueber dem Kopf (z-index 25), das Feuerwerk in einer eigenen Ebene darueber. */
.startfeuerwerk { position: fixed; inset: 0; z-index: 35; pointer-events: none; overflow: hidden; }

/* Rumpelfeste in der Moderationsapp (8.10.2026): Hinweis in der ersten Nacht wie der Mondkasten. */
.festkasten { display: flex; align-items: center; gap: 10px; border: 2px dashed #9A6FB0; background: #F5EEF8; color: #2A2118; }   /* feste helle Flaeche, feste dunkle Schrift (App 226) */
/* Heller Grund in beiden Themen, also auch im dunklen Thema dunkle Schrift (App 208, axe: 1,04:1 mit var(--tinte)). */
.festkasten, .festkasten b, .festkasten small, .festkasten button { color: #2A2118; }
/* Ankuendigung auf der Startseite (9.10.2026): Fest oder Jahreszeit in drei Tagen, mit den Launen als kleine Bilder. */
.festansage { flex-wrap: wrap; }
.festansage > span:first-of-type { flex: 1 1 200px; }
.festansage.heute { border-style: solid; background: linear-gradient(135deg, #FFF3D6, #F5EEF8); color: #2A2118; }
.festlaunen { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; justify-content: center; }
.festlaune { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 84px; text-align: center; }
.festlaune img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }

/* Schachteln in der Vorbereitung (9.10.2026): Leiste "Was spielt mit?" wie im Heft-Reiter, Kacheln je Schachtel mit
   Farbrand und Namen; im Ablauf traegt die Schachtel-Kachel die Nummer ihres Nachtschritts in Schachtelfarbe. */
.vbboxen { margin: 2px 0 6px; }
.vbboxen button { transition: background var(--t-kurz), transform var(--t-kurz); }
.vbboxen button:not(.an) { opacity: .7; }
.vbboxen button:not(.an) .heftboxfig { filter: grayscale(.8); }
.vbboxen button.an { transform: translateY(-1px); }
.vb-kachel.vb-box { border: 2px solid var(--box); border-left-width: 7px; background: color-mix(in srgb, var(--box) 9%, var(--karte)); }
.vb-kachel.vb-box .vb-boxname { display: block; color: color-mix(in srgb, var(--box) 72%, #000); font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .8rem; letter-spacing: .02em; margin-bottom: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vb-kachel.vb-box .vb-boxname { color: color-mix(in srgb, var(--box) 45%, #fff); } }
:root[data-theme="dark"] .vb-kachel.vb-box .vb-boxname { color: color-mix(in srgb, var(--box) 45%, #fff); }
.vb-raster.nummern .vb-kachel.vb-box::before { background: var(--box); color: #fff; }
.vbboxen button.an[data-vbbox="grund"] { color: var(--auf-gruen); }
/* Schachtel-Kacheln als breite, flache Zeile unter ihrer Phase (kompakt, klar zugeordnet), Einblenden hoechstens 0,5 s versetzt. */
.vb-kachel.vb-box { grid-column: 1 / -1; flex-direction: row; align-items: center; text-align: left; gap: 10px; padding: 8px 10px; }
.vb-kachel.vb-box .vb-kachelfig { height: 48px; flex: none; }
.vb-raster.nummern .vb-kachel.vb-box { padding-left: 40px; }
.vb-raster.nummern .vb-kachel.vb-box::before { top: 50%; transform: translateY(-50%); }
.vb-raster .vb-kachel { animation-delay: calc(min(var(--i, 0), 8) * 60ms); }
/* Profilbild (9.10.2026, Entscheidung des Autors): Profilkobold fuer alle, der eigene, gewidmete Kobold nur fuer den Besteller.
   Profilkobolde sind freigestellte Figuren; der eigene Kobold ist ein Ausschnitt aus dem Kartenbild und sitzt deshalb rund in
   einem goldenen Ring mit sanftem Glanz. Bewegung aus und "reduce" halten den Glanz an (Notbremse oben plus eigene Regeln). */
.profilbild { width: 40px; height: 40px; object-fit: contain; vertical-align: middle; flex: none; }
.profilbild.eigen, .dprofilbild.eigen { object-fit: cover; border-radius: 50%; border: 2px solid #D9A400; box-shadow: 0 0 0 2px rgba(255, 230, 140, .55), 0 2px 6px rgba(0, 0, 0, .25); background: #FBF4DC; }
.kfreundbild, .krangbild, .rangbild { width: 30px; height: 30px; margin-right: 6px; }
.namensschildbild { width: 46px; height: 46px; margin: -4px 0 2px; }
.kprofilkopf { display: flex; flex-direction: column; align-items: center; text-align: center; }
.kprofilgross { width: 84px; height: 84px; }
.kprofilwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.kprofilknopf { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 76px; padding: 6px; border-radius: 10px; background: #FBF4DC; color: #2A2118; border: 2px solid transparent; cursor: pointer; }
.kprofilknopf .profilbild { width: 56px; height: 56px; }
.kprofilknopf.an { border-color: #4C7A5A; box-shadow: 0 0 0 3px rgba(76, 122, 90, .25); }
.kprofilknopf:focus-visible { outline: 3px solid #4C7A5A; outline-offset: 2px; }
.kprofilknopf.keigen { grid-column: 1 / -1; flex-direction: row; gap: 12px; position: relative; overflow: hidden; background: linear-gradient(135deg, #FFF3C4, #F6D77A); color: #2A2118; }
.kprofilknopf.keigen .profilbild { width: 72px; height: 72px; }
.keigenname { display: flex; flex-direction: column; align-items: flex-start; font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: 1.1rem; }
.keigenname small { font-family: "Nunito", sans-serif; font-weight: 700; font-size: .78rem; opacity: .75; }
.kprofilknopf.keigen::after { content: ""; position: absolute; top: -40%; bottom: -40%; left: -60%; width: 40%; transform: rotate(18deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: kglanz 3.8s ease-in-out infinite; pointer-events: none; }
@keyframes kglanz { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.keigenneu { text-align: center; border: 2px solid #D9A400; background: linear-gradient(180deg, #FFF7D6, #FBF4DC); color: #2A2118; }
.keigenneubild { width: 110px; height: 110px; display: block; margin: 4px auto 8px; animation: keigenpop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes keigenpop { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .kprofilknopf.keigen::after, .keigenneubild { animation: none; } }
html[data-bewegung="aus"] .kprofilknopf.keigen::after, html[data-bewegung="aus"] .keigenneubild { animation: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kprofilknopf { background: #3A3528; color: #F7F1E1; } :root:not([data-theme="light"]) .kprofilknopf.keigen { background: linear-gradient(135deg, #6A5A26, #806A2C); color: #FFF7D6; } }
:root[data-theme="dark"] .kprofilknopf { background: #3A3528; color: #F7F1E1; }
:root[data-theme="dark"] .kprofilknopf.keigen { background: linear-gradient(135deg, #6A5A26, #806A2C); color: #FFF7D6; }
/* Einstellungen fuers Profil (9.10.2026): Kopf mit Kobold, Regler in voller Breite, gemerktes Haus leicht hervorgehoben. */
.keinstkopf { display: flex; gap: 12px; align-items: center; }
.keinstkopf .figur { width: 56px; height: 56px; object-fit: contain; flex: none; }
.keinstkopf p { margin: 0; }
.keinst .knopfreihe { flex-wrap: wrap; }
.kregler { display: flex; flex-direction: column; gap: 6px; }
.kregler input[type="range"] { width: 100%; accent-color: var(--gruen-dunkel, #4C7A5A); }
.khaus { border-style: dashed; }

/* --- Startseite zwischen zwei Baendern (10.10.2026, Wunsch des Autors) -------------------------------------------------
   Unten ein gruenes Band wie der Kopf, halb so hoch (waechst mit grosser Schrift), mit Version, Rechtlichem und
   "Made in Switzerland" in zwei Zeilen. Dazwischen passt alles ohne Scrollen: Der Kobold-Kreis nimmt den freien Platz
   (Container-Einheiten cqw/cqh), die Kaesten oben und der Zettel unten behalten ihre Hoehe. Wird es trotzdem zu eng (viele
   Kaesten, sehr grosse Schrift), scrollt nur der Mittelteil, nie die Baender. Die Starrer stehen um die Bandhoehe hoeher. */
body.mitband { --fussh: var(--fussb, calc(var(--kopfh, 64px) / 2 + env(safe-area-inset-bottom, 0px))); padding-bottom: var(--fussh); }
body.mitband.startseite { padding-bottom: 0; }
.startbanner { display: none; }
body.mitband .startbanner { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 24; flex-direction: column; align-items: center;
  justify-content: center; gap: 1px; min-height: calc(var(--kopfh, 64px) / 2 + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; padding: 3px 12px calc(3px + env(safe-area-inset-bottom, 0px));
  background: var(--kopf); color: #fff; text-align: center; font-size: clamp(.58rem, 2.3vw, .68rem); line-height: 1.2; }   /* 189: etwas kleiner (Wunsch des Autors) */
body.mitband .startbanner p { margin: 0; }
body.mitband .startbanner .startfuss, body.mitband .startbanner .madein { color: #fff; opacity: 1; font-size: inherit; }
body.mitband .startbanner a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .55); }
body.mitband .startbanner a:hover, body.mitband .startbanner a:focus-visible { color: #fff; text-decoration-color: #fff; }
body.startseite #buehne { height: calc(100dvh - var(--kopfh, 64px) - var(--fussh) - var(--fragh, 0px)); box-sizing: border-box;
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 4px; }
body.startseite #buehne > * { flex: none; }
body.startseite #buehne > .startmitte { flex: 1 1 auto; min-height: 150px; container-type: size; display: grid; place-items: start center; padding-bottom: 14px; box-sizing: border-box; }
/* App 297 (K4, startseite-baender 360x640 "176 px zu viel"): der Schriftzug steht seit 297 ueber dem Kreis, und der Mittelteil
   hatte min-height min(440px, 92vw); am kleinen Handy scrollte die Startseite. Im Kreis stehen nur links und rechts Kobolde
   (angemeldet dazu unten die Steckbriefwand): Oben (18 %) und ohne Konto auch unten (20 %) ist er leer. Diese leeren Boegen
   zaehlen nicht mehr zur Hoehe (negative Raender), der Kreis darf dafuer groesser sein als der Mittelteil hoch ist. */
body.startseite .startmitte .startkreis { --kw: min(100cqw, calc(100cqh / .62), 560px); width: var(--kw); margin: calc(var(--kw) * -.18) auto calc(var(--kw) * -.2); }
body.startseite .startmitte .startkreis:has(.kreisunten) { --kw: min(100cqw, calc(100cqh / .82), 560px); margin-bottom: 0; }
/* App 297 (K4, hilfe.test Reflow 320 px): Die Beschriftung links und rechts sitzt mittig unter ihrem Kobold und darf nicht
   umbrechen. Bei sehr grosser Schrift und weiten Textabstaenden ist sie breiter als der Knopf und ragte rechts aus dem Bild.
   Jetzt rueckt sie nur so weit nach innen, wie sie sonst ueber den Rand des Mittelteils ginge (50cqw - .4 * Kreis = Abstand
   der Knopfmitte zum Rand, 50 % = halbe eigene Breite), und ist hoechstens halb so breit wie der Mittelteil (dann bricht sie
   ausnahmsweise um), damit sich die beiden nie ueberdecken. Bei normaler Schrift aendert sich nichts. */
body.startseite .startmitte .startkreis button.kreis.kreislinks .knopftext,
body.startseite .startmitte .startkreis button.kreis.kreisrechts .knopftext { width: max-content; max-width: calc(50cqw - 4px); box-sizing: border-box; white-space: normal; overflow-wrap: anywhere; }
body.startseite .startmitte .startkreis button.kreis.kreislinks .knopftext { translate: max(0px, calc(50% - 50cqw + .4 * var(--kw))) 0; }
body.startseite .startmitte .startkreis button.kreis.kreisrechts .knopftext { translate: min(0px, calc(50cqw - .4 * var(--kw) - 50%)) 0; }
body.mitband .starrer img { bottom: calc(var(--sh) * -.09 + var(--fussh)); }
body.mitband .startbanner .madein { gap: 0 5px; flex-wrap: wrap; justify-content: center; }
/* App 360 (F-0010, Handy mit grosser Schrift: "Version / 358" brach innen um, Zeilen lagen uebereinander): jedes Teil
   bleibt ganz, eng wird umgebrochen zwischen den Teilen. */
body.mitband .startbanner .madein > span, body.mitband .startbanner .startfuss a { white-space: nowrap; }
/* Tagespartie als dezente Zeile zum Aufklappen (11.10.2026, Wunsch des Autors; vorher ein grosser Kasten mit Figur). */
.tagzeile { position: relative; z-index: 5; align-self: center; width: fit-content; margin: 4px auto 12px; padding: 0; font-size: .95rem; }
.tagzeile > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  background: rgba(76, 122, 90, .10); opacity: .85; transition: opacity var(--t-kurz, .15s), background var(--t-kurz, .15s); }
.tagzeile > summary::-webkit-details-marker { display: none; }
.tagzeile > summary::after { content: "▸"; transition: transform var(--t-kurz, .15s); }
.tagzeile[open] > summary::after { transform: rotate(90deg); }
.tagzeile > summary:hover, .tagzeile > summary:focus-visible, .tagzeile[open] > summary { opacity: 1; background: rgba(76, 122, 90, .18); }
/* Offen schwebt die Erklaerung ueber dem Kreis, statt ihn zu verschieben. */
.tagzeileinnen { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); width: min(92vw, 560px); box-sizing: border-box;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-radius: 12px;
  background: var(--karte); border: 1.5px solid var(--linie); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); animation: tagzeileauf var(--t-kurz, .15s) ease-out; }
@keyframes tagzeileauf { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } }
.tagzeileinnen > span { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }   /* lange Texte (Spanisch) umbrechen statt hinausragen */
.tagzeileinnen .knopf { margin: 0 0 0 auto; padding: 6px 14px; min-height: 38px; }
@media (prefers-reduced-motion: reduce) { .tagzeileinnen { animation: none; } .tagzeile > summary::after { transition: none; } }

/* --- Kobold-Grafiken mit Schatten (10.10.2026, Wunsch des Autors: "plastischer und optisch beeindruckender") --------------
   Jede freigestellte Figur (figuren/...) bekommt einen weichen Schlagschatten, der ihrer Silhouette folgt, und einen kurzen
   Kontaktschatten darunter. :where() haelt die Regel auf der niedrigsten Stufe: Wo eine Figur schon einen eigenen Filter traegt
   (Kopfleiste, Starrer, die schwarze Silhouette eines noch nicht erhaltenen Abzeichens), bleibt dieser. */
:where(img[src*="figuren/"]) { filter: drop-shadow(0 6px 5px rgba(42, 33, 24, .28)) drop-shadow(0 1px 1px rgba(42, 33, 24, .3)); }
/* Ton-Frage beim Oeffnen (10.10.2026): wegtippbar ohne Antwort */
.angebot .themazu { flex: none; width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: rgba(42, 33, 24, .1); color: inherit; font-size: 1rem; line-height: 1; cursor: pointer; }
/* Ton-Frage auf schmalen Handys (360 px): eine Zeile, kleiner Kobold, damit die Startseite nicht scrollt (App 184). */
@media (max-width: 420px) {
  #themaFrage { gap: 6px; padding: 4px 8px; }
  #themaFrage .musikfigur { height: 40px; margin: -4px 0; }
  #themaFrage .angebottext { font-size: .92rem; line-height: 1.15; }
  #themaFrage button.klein { min-height: 36px; padding: 4px 10px; white-space: nowrap; }
}
/* Stichleiter im Reiter Schachteln (10.10.2026): Stufen mit Schachtel-Marke in der Schachtelfarbe */
.stichleiter { margin: 4px 0 0; padding-left: 1.6em; }
.stichleiter li { margin: 0 0 8px; padding-left: 6px; border-left: 4px solid var(--box, transparent); }
.stichleiter .leiterbox { display: inline-block; padding: 0 6px; border-radius: 8px; background: var(--box); color: #fff; font-size: .75rem; font-weight: 700; vertical-align: 1px; }

/* Sanfter Wechsel zwischen Startseite und Profil (App 190): die Startseite blendet aus, die Kontoseite blendet ein. Chromium
   ueberblendet Seitenwechsel zusaetzlich selbst (@view-transition). "Bewegung aus" stoppt beides (globale Notbremse oben). */
@view-transition { navigation: auto; }
body.seitenwechsel #buehne, body.seitenwechsel .starrer, body.seitenwechsel #themaFrage { opacity: 0; transition: opacity .45s ease-in; }
body[data-musik-ort="profil"] #buehne, body[data-musik-ort="profil"] .starrer { animation: seiterein var(--h-mittel) var(--h-rein) both; }   /* App 407b: 200 ms statt 0,5 s */
@keyframes seiterein { from { opacity: 0; } to { opacity: 1; } }
/* Musik-Fenster kompakter (App 195, Fund des Autors: "das Musik-Popup auf der Startseite ist zu gross"): Regler einzeilig
   (Beschriftung links, Regler rechts), kleinerer Start/Pause-Knopf, kuerzere Liste; das Blatt endet ueber dem gruenen Band. */
#musikLeiste .musikkarte label { display: grid; grid-template-columns: minmax(7.5em, auto) 1fr; align-items: center; gap: 10px; margin: 4px 0; text-align: left; }
#musikLeiste .musikkarte #musikStart { padding: 6px 18px; min-height: 40px; font-size: 1rem; margin: 8px 0 4px; }
#musikLeiste .musikkarte h2 { margin-bottom: 4px; }
#musikLeiste .musikliste { max-height: min(22svh, 220px); margin-top: 8px; }
@media (orientation: portrait), (min-height: 521px) {
  body.mitband #musikLeiste { padding-bottom: var(--fussh, 0px); }
}
/* Stichpruefung: die Launen zur Auswahl halb so gross (11.10.2026, Wunsch des Autors), eine waehlbar. */
section.stichblock .kachelgitter.stichwahl, .kachelgitter.stichwahl { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 5px; }
.kachelgitter.stichwahl .kachel-laune { border-radius: 9px; }
.kachelgitter.stichwahl .kachel-laune .ktitel { font-size: .66rem; padding: 3px 3px 4px; overflow-wrap: anywhere; hyphens: auto; }
/* Am Tisch (11.10.2026): Vorbereitung oben mittig, darunter die beiden Arten nebeneinander. */
.spielartreihe.zweier.mitoben > :first-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); margin-bottom: 64px; }
@media (max-width: 520px) { .spielartreihe.zweier.mitoben { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 78px 10px; margin-top: 40px; }
  .spielartreihe.zweier.mitoben > :first-child { width: 72%; margin-bottom: 0; } }
/* Schriftzug im Startkreis (11.10.2026, Wunsch des Autors): oben im Kreis, wo frueher Spielstart stand, wie im Banner. */
/* Schriftzug ueber dem Startkreis (App 297, Fund des Autors "Startseite noch nicht schoen strukturiert"): bis App 296 lag er
   absolut im Kreis, der Untertitel brach dort um ("Robado con / honradez") und lief in das Profilbild. Jetzt ein eigener Block
   ueber dem Kreis, der Kreis bekommt den Rest. */
.startmarke { display: flex; flex-direction: column; align-items: center; line-height: 1; pointer-events: none; text-align: center; margin: 10px auto 0; max-width: 100%; position: relative; z-index: 1; }
.startmarke b { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: clamp(2.2rem, 8vw, 3.4rem); color: var(--tinte); letter-spacing: .01em; text-shadow: 0 2px 0 var(--karte), 0 4px 10px rgba(42, 33, 24, .18); }
.startmarke span { margin-top: 4px; font-family: "Nunito", sans-serif; font-weight: 800; font-size: clamp(.95rem, 3.6vw, 1.25rem); color: var(--tinte); letter-spacing: .03em; text-wrap: balance; }   /* Tinte statt Gruen: 4,5:1 (axe) */
/* Profilbild in der Mitte des Startkreises (11.10.2026): eigener Kobold rund wie das Logo, Profilkobold freigestellt auf Creme. */
.startkreis .startlogo.startlogo-eigen { background: #FBF4DC; }
.startkreis .startlogo.startlogo-figur { background: #FBF4DC; object-fit: contain; object-position: center bottom; padding: 4% 4% 0; box-sizing: border-box; }
/* --- 11.10.2026: Kobold ragt aus dem Kreis, Rangliste auf der Startseite ------------------------------------------------- */
/* Logo: freigestellt, Kopf und Ohren ueber dem Kreis (Bild hat den Kreis schon drin), daher groesser und ohne Rundung. */
.startkreis .startlogo.startlogo-raus { width: 48%; height: 48%; top: 47%; border-radius: 0; box-shadow: none; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(42, 33, 24, .35)); }
/* Rundes Profilbild: volles Bild bleibt im Kreis; mit Durchsicht (.frei) ragt der Kobold oben heraus. Die Maske ist der Kreis
   plus alles oberhalb seiner Mitte; das Bild ist 130 % gross und unten buendig mit dem Kreis (11.10.2026: vorher 112 % und 16 % hoch,
   unten blieb ein Spalt), die Kreismitte liegt bei 61,5 % des Bildes.
   App 211 (Fund des Autors: ein Fuss neben dem Ring wirkte wie ein abgeschnittener Stummel): Der Kobold ragt nur NACH OBEN heraus.
   Statt des vollen Rechtecks ueber der Kreismitte ein Trapez: auf Hoehe der Kreismitte so breit wie der Kreis (11,54 % bis
   88,46 % des 130-%-Bildes), nach oben schraeg breiter bis zur vollen Breite bei 38 %. Ohren und Arme oben bleiben ganz, was
   seitlich neben der unteren Ringhaelfte oder in Hoehe der Mitte steht (Fuesse, Muenzen), faellt weg. Ein senkrechter Schnitt auf
   Kreisbreite hackte die Ohren ab (Bildschirmfoto). */
.profilrund { display: inline-block; position: relative; border-radius: 50%; background: #FBF4DC; box-shadow: 0 0 0 3px #D9A400, 0 0 0 6px rgba(255, 230, 140, .45), 0 6px 18px rgba(42, 33, 24, .3); overflow: hidden; }
.profilrund img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profilrund.frei { overflow: visible; }
/* Schemen-Kobold (App 213): wer kein eigenes Bild hat, haengt an den Waenden als verschwommene Silhouette; ein heller Saum
   haelt die Kontur auch auf dunklem Grund (dunkles Thema, Hochkontrast) sichtbar. */
.profilrund.schemen img { opacity: .82; filter: drop-shadow(0 0 2px rgba(251, 244, 220, .7)); }
.profilrund.frei img { position: absolute; left: -15%; bottom: 0; top: auto; width: 130%; height: 130%; object-fit: contain; object-position: center bottom; border-radius: 0;
  -webkit-mask: radial-gradient(ellipse 38.46% 38.46% at 50% 61.54%, #000 99%, transparent 100%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 100,0 100,38 88.46,61.54 11.54,61.54 0,38'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: radial-gradient(ellipse 38.46% 38.46% at 50% 61.54%, #000 99%, transparent 100%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 100,0 100,38 88.46,61.54 11.54,61.54 0,38'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  filter: drop-shadow(0 3px 4px rgba(42, 33, 24, .3)); }
.startkreis .startlogo.profilrund { position: absolute; left: 50%; top: 50%; width: 38%; height: 38%; transform: translate(-50%, -50%); }
/* Tagespartie und Rangliste nebeneinander, auf schmalen Bildschirmen untereinander */
.startzeilen { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; }
.startzeilen > .tagzeile { margin: 4px 0 10px; }
/* Aufgeklapptes immer mittig unter der ganzen Gruppe (11.10.2026, Fund des Autors: das Fenster der linken Zeile ragte links,
   das der rechten rechts aus dem Bild). Die Zeilen selbst sind dafuer nicht positioniert, die Gruppe ist der Bezug. */
.startzeilen { position: relative; }
.startzeilen > .tagzeile { position: static; }
.startzeilen > .tagzeile > .tagzeileinnen { z-index: 20; }
/* Fest-Ankuendigung als Zeile (11.10.2026): zu nur Kopf mit Fahne, offen Text und Launen mit Bild; am Festtag leuchtet sie. */
.festzeile > summary { background: rgba(154, 111, 176, .14); }
.festzeile.heute > summary { background: rgba(154, 111, 176, .3); font-weight: 600; opacity: 1; }
.festzeile > summary svg { vertical-align: -1px; }
.festinnen .festlaunen { flex: 1 1 100%; margin-top: 6px; gap: 8px 16px; }
.festinnen .festlaune { width: auto; min-width: 84px; }
.festlaunename { white-space: nowrap; }
/* App 209: das Abzeichen der Laune sitzt klein unten rechts am Launenbild (nimmt keine Breite, nichts laeuft bei 360 px ueber) */
.festlaunebild { position: relative; display: block; width: 72px; height: 72px; }
.festlaunebild > img { display: block; }
/* Niedrige Bildschirme (360 x 640): Countdown und Bilder kleiner, damit das Fenster ueber dem Fussband endet */
@media (max-height: 700px) {
  .festinnen .festuhrkachel { --kachel: clamp(40px, 12vw, 50px); }
  .festinnen .festuhrkachel em { font-size: 1.3rem; }
  .festinnen .festuhrkopf, .festinnen .festuhrfuss { font-size: .72rem; }
  .festinnen .festlaunebild, .festinnen .festlaunebild > img:not(.festabzbild) { width: 56px; height: 56px; }
  .festinnen .festlaunen { margin-top: 0; }
  .festinnen.tagzeileinnen { row-gap: 4px; padding-top: 8px; padding-bottom: 8px; }
}
.festlaunename svg { vertical-align: -1px; }
.rangkurz { list-style: none; margin: 0; padding: 0; flex: 1 1 100%; display: grid; gap: 3px; }
.rangkurz li { display: flex; align-items: center; gap: 6px; padding: 2px 6px; border-radius: 8px; }
.rangkurz li.ich { background: var(--gruen-hell); font-weight: 700; }
.rangkurz li.luecke { margin-top: 6px; }
.rangkurz li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rangkurz li small { font-weight: 700; }
.rangkurz .rangbild { width: 24px; height: 24px; }
/* Zuschauen und Kobolde gesucht (11.10.2026, ZUSCHAUEN-PLAN.md §8.1): dieselbe Zeile wie Tagespartie und Rangliste, zu eine
   einzige Zeile mit Ellipse, aufgeklappt untereinander, Namen umbrechen, nie eine waagerechte Scrollleiste. */
.zuschauzeile > summary { max-width: min(92vw, 560px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
.zuschaueule { display: inline-block; }
.zuschauinnen { flex-wrap: wrap; }
.zuschauinhalt { flex: 1 1 100%; display: grid; gap: 10px; min-width: 0; }
.zuschauteil { display: grid; gap: 4px; min-width: 0; }
.zuschauteil > b { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; }
.zuschauteil > .knopf, .zuschauteil > a.klein { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.zuschauliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.zuschauliste li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 10px; background: rgba(76, 122, 90, .08); }
.zuschauliste li > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.zuschauliste li small { display: block; opacity: .8; }
.zuschauliste .knopf { margin: 0; min-height: 44px; flex: none; }
.zuschauliste .rangbild { width: 22px; height: 22px; vertical-align: middle; margin-right: 3px; }
.zuschaunamen .zkob { opacity: .75; }
.zuschauvoll { flex: 0 1 40%; font-size: .85em; }
/* Profilkarte (11.10.2026): rundes Profilbild links, der Kobold ragt oben heraus. */
.kprofilkopf.mitbild { flex-direction: row; align-items: center; justify-content: center; gap: 18px; text-align: left; padding-top: 22px; }
.kprofilkopf .kprofilrund { width: 92px; height: 92px; flex: none; }
.kprofilkopf .kprofiltext p { margin: 4px 0; }
@media (max-width: 380px) { .kprofilkopf.mitbild { flex-direction: column; text-align: center; } }
/* Hausmeister oben mittig im Banner (11.10.2026), nur wenn dort kein Seitentitel steht. */
/* Bis App 217 ein Wort mittig im Banner; seit App 218 ein Kopf-Kobold (.hausmeisterknopf, Bauart wie Sprache/Hilfe/Musik). */
#kopf a.kopfhausmeister { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; color: #fff; font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: 1rem; text-decoration: none; letter-spacing: .02em; }
#kopf a.kopfhausmeister::before { content: "🔧 "; }
#kopf a.kopfhausmeister:hover, #kopf a.kopfhausmeister:focus-visible { text-decoration: underline; }
#kopf #kopfinfo:not(:empty) ~ a.kopfhausmeister { display: none; }
#kopf .hausmeisterknopf + #sprachplatz { margin-left: 6px; }
@media (max-width: 480px) { #kopf .hausmeisterknopf .kopffigtext { display: none; } #kopf .hausmeisterknopf { padding: 0 2px; } }
/* Kobold am Namensschild (11.10.2026): links, ragt oben ueber den Aufkleber, nach unten ausgeblendet. */
.namensschildlink:has(.namensschildkobold) { padding-left: 98px; }
.namensschildkobold { position: absolute; left: 8px; top: -30px; width: 84px; height: 96px; object-fit: contain; object-position: center bottom; pointer-events: none;
  -webkit-mask: linear-gradient(to bottom, #000 55%, transparent 100%); mask: linear-gradient(to bottom, #000 55%, transparent 100%); filter: drop-shadow(0 2px 2px rgba(42, 33, 24, .25)); }
.namensschildlink:not(.frei) .namensschildkobold { border-radius: 50% 50% 10px 10px; }
/* Spielstart (11.10.2026, Fund des Autors: "das untere Banner verdeckt Buttons"): "Weiter" steht ueber dem Band, mit Luft; kein
   Knopf ist breiter als der Bildschirm; die Startseite laesst unten Platz zum Band. */
body.mitband button.weiter { bottom: calc(var(--fussh) + 12px); }
@media (max-height: 520px) and (orientation: landscape) { body.mitband button.weiter { bottom: calc(var(--fussh) + 8px); } }
body.mitband main { padding-bottom: calc(96px + 12px); }
button.gross.mitbande { min-width: 0; max-width: 100%; }
button.gross.mitbande .knopftext { white-space: normal; min-width: 0; }
button.gross.mitbande .knopftext .nurmit { display: block; white-space: normal; }
body.startseite #buehne { padding-bottom: 16px; }
/* Kobold in den Klappfenstern der Startseite (11.10.2026, Wunsch des Autors): links, ragt oben und links ueber den Rand,
   atmet leise. Ohne Bewegungswunsch steht er still. */
.tagzeileinnen.mitfig { padding-left: 92px; min-height: 92px; overflow: visible; }
.tagzeileinnen .tagzeilefig { position: absolute; left: -18px; top: -30px; width: 104px; height: 118px; object-fit: contain; object-position: center bottom; pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(42, 33, 24, .3)); transform-origin: 50% 100%; animation: tagzeileatmen 3.2s ease-in-out infinite; }
@keyframes tagzeileatmen { 0%, 100% { transform: scale(1, 1) rotate(0deg); } 50% { transform: scale(1.03, .975) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .tagzeileinnen .tagzeilefig { animation: none; } }
.tagzeileinnen > span small { display: block; margin-top: 4px; font-size: .85em; opacity: .8; }
.tagzeileinnen > span b { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; }
/* Schwarze Kontur am Kreis (11.10.2026, Wunsch des Autors): als Schatten des Rahmens, liegt also unter dem herausragenden Kobold. */
.startkreis .startprofil.profilrund { box-shadow: 0 0 0 4px #1E1813, 0 8px 22px rgba(42, 33, 24, .35); }
/* Kachel "Dein eigener Kobold" (11.10.2026, Wunsch des Autors): derselbe runde Rahmen, der Kobold ragt oben heraus; die Kachel
   schneidet wegen des Glanzes ab, darum oben mehr Luft. */
.kprofilknopf.keigen { padding-top: 30px; }
.kprofilknopf.keigen .keigenrund { width: 76px; height: 76px; flex: none; }

/* === Hilfe-Kobold und Einstellungen der Barrierefreiheit (11.10.2026, NORMEN-ABGLEICH-2026-10-11.md Phase 3/4) ========
   app/hilfe.js setzt den Knopf neben den Flaggen-Kobold (#hilfeplatz) und oeffnet einen modalen <dialog>; app/zugang.js
   setzt vor dem ersten Zeichnen data-text, data-lesehilfe und data-kontrast auf <html>. */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#hilfeplatz { display: contents; }
#kopf #hilfeplatz + .kopffigknopf { margin-left: 6px; }
@media (max-width: 460px) { #kopf #hilfeplatz + .kopffigknopf { margin-left: 4px; } }
@media (max-width: 380px) { #kopf #hilfeplatz + .kopffigknopf { margin-left: 2px; } }
/* Schmale Handys: wie beim Flaggen-Kobold nur die Figur, das Ziel bleibt mindestens 44 px hoch */
@media (max-width: 480px) { #kopf .hilfeknopf .kopffigtext { display: none; } #kopf .hilfeknopf { padding: 0 2px; min-width: 30px; } }
@media (orientation: landscape) and (max-height: 520px) { #kopf .hilfeknopf .kopffigtext { display: none; } }
/* 320-360 px: mit dem Hilfe-Kobold ein Kopf-Kobold mehr; alle etwas schmaler, damit "Rumpel" lesbar bleibt (Reflow 320 px). */
@media (max-width: 360px) {
  #kopf .kopffig, #kopf .sprachknopf img { height: 36px; margin: -2px -4px -1px; }
  #kopf button.kopffigknopf, #kopf .sprachknopf { padding: 0 1px; }
  #kopf .kopffigknopf + .kopffigknopf, #kopf #sprachplatz + .kopffigknopf, #kopf #hilfeplatz + .kopffigknopf { margin-left: 0; }
  #kopf .hilfeknopf { min-width: 28px; }
  #kopf { gap: 1px; padding-left: 6px; padding-right: 4px; }
}

.hilfedialog { width: min(540px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 18px; background: var(--karte); color: var(--tinte);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .35); overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; }
.hilfedialog::backdrop { background: rgba(12, 16, 10, .5); }
.hilfekarte { padding: 14px 18px 18px; }
.hilfekopf { display: flex; align-items: center; gap: 12px; margin-right: 40px; }
.hilfekopf > div { min-width: 0; }
.hilfekopf h2 { margin: 0; }
.hilfefig { height: 92px; width: auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.hilfegruss { margin: 4px 0 0; }
.hilfewahl { border: 1.5px solid var(--linie); border-radius: 14px; padding: 6px 12px 10px; margin: 12px 0; min-width: 0; }
.hilfewahl legend { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: 1.1rem; padding: 0 6px; }
.hilfepillen { display: flex; flex-wrap: wrap; gap: 6px; }
.hilfepille { position: relative; margin: 0; }
.hilfepille input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hilfepille span { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 2px solid var(--gruen-dunkel); border-radius: 999px; background: var(--karte); color: var(--tinte); font-weight: 700; }
.hilfepille input:checked + span { background: var(--gruen-dunkel); color: var(--auf-gruen); }
.hilfepille input:checked + span::before { content: "✓"; margin-right: 6px; }
.hilfepille input:focus-visible + span { outline: 3px solid var(--gruen); outline-offset: 2px; }
.hilfevorschau { margin: 6px 0 2px; padding: 6px 10px; border-radius: 10px; background: var(--gruen-hell); }
.hilfezeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 10px 0; padding: 4px 12px; }
.hilfezeile > div { flex: 1 1 10em; min-width: 0; }
.hilfetasten li { overflow-wrap: anywhere; }
.hilfewahl .hilfezeile { padding: 0; }
.hilfezeile .hinweis { margin: 2px 0 0; }
.hilfeschalter { flex: none; min-width: 76px; }
.hilferegler { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.hilferegler span { flex: 0 0 9.5em; }
.hilferegler input { flex: 1; min-width: 0; min-height: 44px; accent-color: var(--gruen-dunkel); }
.hilfetasten { margin: 12px 0; padding: 8px 12px; border: 1.5px solid var(--linie); border-radius: 14px; }
.hilfetasten summary { cursor: pointer; font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
kbd { font-family: inherit; font-weight: 700; font-size: .9em; padding: 0 .35em; border: 1.5px solid var(--linie); border-bottom-width: 3px; border-radius: 6px; background: var(--grund); }
.hilfemeldenkopf { display: flex; align-items: center; gap: 10px; }
.hilfebug { height: 44px; width: 44px; object-fit: contain; flex: none; }
.hilfemeldenfeld { margin: 6px 0; }
.hilfemeldenfeld textarea { width: 100%; font: inherit; padding: 8px 10px; border: 2px solid var(--linie); border-radius: 12px; background: var(--karte); color: var(--tinte); resize: vertical; }
.hilfemeldung:empty { display: none; }
.hilfezurueck { margin: 0; }
/* Gruppen (11.10.2026): jede Gruppe ein Rahmen, darin Teile mit feiner Trennlinie; Fuss mit Erklaerung und Zuruecksetzen. */
.hilfeteil { padding: 8px 0; border-top: 1px dashed var(--linie); }
.hilfegruppe > .hilfeteil:first-of-type { border-top: 0; padding-top: 2px; }
.hilfeteil > b { display: block; margin-bottom: 4px; }
.hilfeteil .hinweis { margin: 0 0 6px; }
.hilfeteil .hilfezeile { margin: 4px 0; }
.hilfepille.groesse-gross span { font-size: 1.17em; }
.hilfepille.groesse-sehrgross span { font-size: 1.42em; }
.hilfemeldenreihe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.hilfesprache { margin: 8px 4px; }
.hilfefuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 12px; padding-top: 10px; border-top: 1.5px solid var(--linie); }
@media (max-width: 400px) { .hilfekarte { padding: 12px 12px 16px; } .hilferegler { flex-wrap: wrap; } .hilferegler span { flex-basis: 100%; } .hilfefig { height: 72px; } }

/* Reflow (WCAG 1.4.10): Bei grosser Schrift bricht das Angebotsband ("Mit Musik spielen?") um, statt rechts hinauszuragen. */
html[data-text] .angebot, html[data-lesehilfe] .angebot { flex-wrap: wrap; }
/* Lange Woerter und Adressen (Impressum: Links) brechen lieber um, als die Seite zu verbreitern (WCAG 1.4.10/1.4.12). */
main { overflow-wrap: break-word; }
html[data-text] .angebot .angebottext, html[data-lesehilfe] .angebot .angebottext { flex: 1 1 8em; min-width: 0; }
/* Sehr grosse Schrift (Hilfe-Kobold, WCAG 1.4.4): 160 % der Geraeteschrift, alles in rem waechst mit. */
html[data-text="sehrgross"] { font-size: 160%; }
/* Lesehilfe (WCAG 1.4.12-Werte): mehr Zeilen-, Buchstaben- und Wortabstand, Links unterstrichen. */
html[data-lesehilfe="an"] body { line-height: 1.6; letter-spacing: .06em; word-spacing: .16em; }
html[data-lesehilfe="an"] p, html[data-lesehilfe="an"] li { line-height: 1.7; }
html[data-lesehilfe="an"] main p { margin-bottom: 1em; }
html[data-lesehilfe="an"] a { text-decoration: underline; text-decoration-thickness: .1em; text-underline-offset: .18em; }
/* Hoher Kontrast (WCAG 1.4.3/1.4.11): dunklere Tinte, reiner Grund, kraeftige Linien, nichts Durchscheinendes. Der Kopf bleibt,
   seine Farben sind auf Weiss und Schwarz zugleich abgestimmt. Gilt auch, wenn das Geraet mehr Kontrast wuenscht. */
html[data-kontrast="hoch"] { --tinte: #000; --karte: #fff; --grund: #fff; --linie: #333; --gruen-dunkel: #2E4A24; --auf-gruen: #fff; --achse: #2E4A24; --ja-rand: #1F4A2B; --nein-rand: #8A1F14; }
@media (prefers-contrast: more) { html:not([data-kontrast]) { --tinte: #000; --karte: #fff; --grund: #fff; --linie: #333; --gruen-dunkel: #2E4A24; --auf-gruen: #fff; --achse: #2E4A24; } }
@media (prefers-color-scheme: dark) {
  html[data-kontrast="hoch"]:not([data-theme="light"]) { --tinte: #fff; --karte: #000; --grund: #000; --linie: #ddd; --gruen-dunkel: #BFE3A8; --auf-gruen: #000; --achse: #BFE3A8; --ja-rand: #BFE3A8; --nein-rand: #FFB4A6; }
}
@media (prefers-color-scheme: dark) and (prefers-contrast: more) { html:not([data-kontrast]):not([data-theme="light"]) { --tinte: #fff; --karte: #000; --grund: #000; --linie: #ddd; --gruen-dunkel: #BFE3A8; --auf-gruen: #000; --achse: #BFE3A8; } }
html[data-kontrast="hoch"][data-theme="dark"] { --tinte: #fff; --karte: #000; --grund: #000; --linie: #ddd; --gruen-dunkel: #BFE3A8; --auf-gruen: #000; --achse: #BFE3A8; --ja-rand: #BFE3A8; --nein-rand: #FFB4A6; }
html[data-kontrast="hoch"] .hinweis, html[data-kontrast="hoch"] .reihe .info, html[data-kontrast="hoch"] .kopfslogan, html[data-kontrast="hoch"] button.weiter[disabled], html[data-kontrast="hoch"] button.weiter.gesperrt { opacity: 1; }
html[data-kontrast="hoch"] .kasten, html[data-kontrast="hoch"] .laune, html[data-kontrast="hoch"] input, html[data-kontrast="hoch"] select, html[data-kontrast="hoch"] textarea { border-color: var(--tinte); border-width: 2px; }
html[data-kontrast="hoch"] button:not(.leise):not(.popupzu):not(.dpopupzu) { border-color: var(--tinte); }
html[data-kontrast="hoch"] :focus-visible { outline: 4px solid var(--tinte) !important; outline-offset: 2px; }
html[data-kontrast="hoch"] a { text-decoration: underline; }
/* Erzwungene Farben (Windows-Kontrastdesigns): Systemfarben, nur Rahmen und Fokus deutlich halten; die Kobolde bleiben Bilder. */
@media (forced-colors: active) {
  button, .kasten, .hilfepille span, .hilfewahl, .hilfetasten, .popupzu { border: 2px solid ButtonText; }
  .hilfepille input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  :focus-visible { outline: 3px solid Highlight !important; }
  .sprunglink { border-color: Highlight; }
}

/* Sprachwahl als Auswahlblatt (11.10.2026, SPANISCH-PLAN.md Frage 11): je Sprache ihr Flaggen-Kobold und ihr Name
   in der eigenen Sprache; Huelle wie das Profil-Popup (.profilschleier, .profilkasten, .popupzu). Ueber allem, auch
   ueber dem Menue und den Fenstern des Spiels. */
.sprachblattwurzel .sprachschleier { z-index: 2000; }
.sprachblattwurzel .sprachblatt { z-index: 2001; width: min(340px, calc(100vw - 32px)); }
.sprachblatt h2 { margin: 0 34px 10px 0; font-family: "Fredoka", "Nunito", sans-serif; font-size: 1.2rem; }
.sprachwahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; }
.sprachwahl { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 0; padding: 8px 4px 10px; border-radius: 14px;
  border: 2px solid var(--gruen-dunkel, #2F5D3A); background: var(--karte, #F2E8C9); color: var(--tinte, #2A2118);
  font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: 1rem; cursor: pointer; }
.sprachwahl img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); transition: transform .18s; }
.sprachwahl.an { background: var(--gruen-dunkel, #2F5D3A); color: var(--auf-gruen, #fff); }
.sprachwahl:hover img, .sprachwahl:focus-visible img { transform: rotate(-6deg) scale(1.06); }
@media (prefers-reduced-motion: reduce) { .sprachwahl img { transition: none; } }
html[data-bewegung="aus"] .sprachwahl img { transition: none; }
/* Steckbriefwand auf der Startseite (11.10.2026, App 210): im aufgeklappten Teil der Ranglistenzeile neben "Ganze Rangliste". */
.rangwege { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-left: auto; }
.rangwege .knopf { margin: 0; }
/* Namenswuerfel (11.10.2026, App 210): neben dem Namensfeld, Beschriftung unter dem Wuerfel (kein Tooltip). */
.knamezeile { align-items: stretch; }
button.kwuerfel { min-width: 64px; min-height: 48px; padding: 4px 8px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border-radius: 14px; background: #FFF6DA; color: #4A2A12; border-color: #8A5A2B; font-size: .8rem; font-weight: 700; line-height: 1.1; }
button.kwuerfel .kwuerfelbild { width: 28px; height: 28px; display: block; transform: rotate(-8deg); }
button.kwuerfel:hover .kwuerfelbild, button.kwuerfel:focus-visible .kwuerfelbild { transform: rotate(8deg) scale(1.08); }
button.kwuerfel[aria-busy="true"] { cursor: progress; }
.knamezeile button.kwuerfel { min-width: 64px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) button.kwuerfel { background: #4A3A22; color: #FFF1C8; border-color: #C9A46A; } }
:root[data-theme="dark"] button.kwuerfel { background: #4A3A22; color: #FFF1C8; border-color: #C9A46A; }
html[data-kontrast="hoch"] button.kwuerfel { background: var(--karte); color: var(--tinte); }
.kwand .knopfreihe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kwand a.knopf { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border: 2px solid var(--gruen-dunkel); border-radius: 14px; background: var(--karte); color: var(--tinte); text-decoration: none; font-weight: 700; font-size: .95rem; }
.kwand .klohn { margin: 12px 0 4px; }
.kwand .klohnwahl summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: inherit; text-decoration: underline; }
.kwand .klohnliste button { white-space: normal; text-align: left; }   /* Belohnungen (App 213) */
/* Namens-Guide, Frist und Einfrieren im Profil (11.10.2026, App 210) */
.kguide { margin: 8px 0 12px; padding: 8px 12px; border: 1.5px dashed var(--linie); border-radius: 12px; background: var(--karte); }
.kguide summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; gap: 6px; }
.kguide ul { margin: 6px 0 2px; padding-left: 1.2em; }
.kguide li { margin: 3px 0; font-size: .95rem; }
.knameab { margin-top: 4px; }
.kfreeze { border: 2px solid #6FA8C8; background: linear-gradient(160deg, rgba(160, 205, 230, .35), transparent 60%), var(--karte); }
.kpost { border-color: var(--gruen-dunkel); }
.knamezeile input:disabled, .knamezeile button:disabled { opacity: .6; cursor: not-allowed; }
/* Brauchtum im Fest-Fenster (App 210): kurz, kursiv, ueber dem Text */
.festbrauch { flex: 1 1 100%; font-style: italic; font-size: .92rem; line-height: 1.35; }
/* Fest-Fenster (App 210): Brauchtum rechts neben dem Kobold, alles Weitere unter ihm ueber die ganze Breite - so stehen
   Countdown und Launen mittig im Fenster, und auf schmalen Handys bleibt Platz (360 x 640 endet es ueber dem Fussband). */
.festinnen.mitfig > .festbrauch { min-height: 78px; }
.festinnen.mitfig > .festbrauch ~ span:not(.festuhr):not(.festlaunen), .festinnen.mitfig > .festbrauch ~ .festuhr, .festinnen.mitfig > .festbrauch ~ .festlaunen {
  flex: 1 1 calc(100% + 78px); max-width: calc(100% + 78px); margin-left: -78px; }
@media (max-height: 700px) {
  .festinnen .festbrauch, .festinnen > span { font-size: .84rem; line-height: 1.28; }
  .festinnen .festlaunebild, .festinnen .festlaunebild > img:not(.festabzbild) { width: 44px; height: 44px; }
  .festinnen .festuhrkachel { --kachel: 42px; }
  .festinnen .festuhrkachel em { font-size: 1.2rem; }
  .festinnen .festuhrzahl { margin: 2px auto 0; }
  .festinnen .festlaunen { gap: 4px 14px; }
  .festinnen.mitfig > .festbrauch { min-height: 70px; }
}

/* Einheitlicher Schalter (App 214, 11.10.2026, app/bewegung.js schalterHtml): Kobold davor (hyperaktiv an, rumlungernd aus),
   Titel und kurzer Satz, rechts der Knopf mit Bahn und darunter "Aktiv"/"Inaktiv". Farbe allein traegt nie den Stand:
   Punkt links/rechts, Wort und Kobold sagen es auch (WCAG 1.4.1). */
.kschalter { display: flex; align-items: center; gap: 10px; padding: 8px 4px; min-height: 64px; }
.kschalter + .kschalter { border-top: 1px dashed var(--linie); }
.kschalterfig { flex: none; width: 48px; height: 48px; object-fit: contain; transition: opacity .2s; }
.kschalter:not(.an) .kschalterfig { opacity: .82; }
.kschaltertext { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kschaltertext b { font-size: 1.02rem; }
.kschaltertext .hinweis { margin: 0; font-size: .88rem; }
button.kschalterknopf { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 76px; min-height: 48px; padding: 4px 6px;
  background: transparent; border: 0; color: var(--tinte); cursor: pointer; }
button.kschalterknopf.an { background: transparent; color: var(--tinte); }
.kschalterbahn { position: relative; display: block; width: 56px; height: 30px; border-radius: 15px; background: var(--karte); border: 2px solid var(--tinte); transition: background .2s; }
.kschalterpunkt { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--tinte); transition: left .2s; }
.kschalterknopf.an .kschalterbahn { background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); }
.kschalterknopf.an .kschalterpunkt { left: 29px; background: var(--auf-gruen); }
.kschalterwort { font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.kschalterknopf:focus-visible { outline: 3px solid var(--gruen-dunkel); outline-offset: 2px; border-radius: 10px; }
html[data-kontrast="hoch"] .kschalterbahn { border-width: 3px; }
html[data-kontrast="hoch"] .kschalter:not(.an) .kschalterfig { opacity: 1; }
@media (forced-colors: active) { .kschalterbahn { border: 2px solid CanvasText; } .kschalterpunkt { background: CanvasText; } .kschalterknopf.an .kschalterbahn { background: Highlight; } }

/* Profil: Gruppen mit Bild und kurzem Titel (App 214, 11.10.2026): Freunde und Einstellungen. Eine Sache pro Zeile,
   Seltenes unter "Mehr" eingeklappt (details.kmehrklapp). */
.kgruppe { background: var(--karte); border: 2px solid var(--linie); border-radius: 18px; padding: 8px 14px 12px; margin: 14px 0; }
.kgruppekopf { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 1.25rem; border: 0; padding: 0; }
.kgruppekopf img { width: 56px; height: 56px; object-fit: contain; flex: none; margin: -14px 0 -6px -4px; }
.kgruppekopf .kzahl { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 99px; background: var(--gruen-dunkel); color: var(--auf-gruen); font-size: .8rem; text-align: center; vertical-align: middle; }
details.kgruppemehr > summary { cursor: pointer; list-style: none; min-height: 48px; }
details.kgruppemehr > summary::-webkit-details-marker { display: none; }
details.kgruppemehr > summary::after { content: "▾"; margin-left: auto; font-size: 1.1rem; }
details.kgruppemehr[open] > summary::after { content: "▴"; }
details.kmehrklapp { margin-top: 6px; border-top: 1px dashed var(--linie); padding-top: 4px; }
details.kmehrklapp > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--gruen-dunkel); }
.keinstwo { margin: 0 0 4px; text-align: center; }
.keinstwahl { padding: 10px 4px; }
.keinstwahl > p { margin: 0 0 6px; }
.kschalter + .keinstwahl, .keinstwahl + .kschalter { border-top: 1px dashed var(--linie); }
.keinstregler { display: flex; flex-direction: column; gap: 4px; padding: 8px 4px; }
.keinstregler input { width: 100%; }
/* Freunde als Kacheln */
.kfreundraster { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
button.kfreundkachel { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 10px; border-radius: 16px;
  background: var(--grund); border: 2px solid var(--linie); color: var(--tinte); text-align: center; cursor: pointer; }
button.kfreundkachel:hover, button.kfreundkachel:focus-visible { border-color: var(--gruen-dunkel); }
button.kfreundkachel.da { border-color: var(--gruen-dunkel); }
.kfreundrahmen { position: relative; display: inline-block; }
.profilrund.kfreundrund { width: 76px; height: 76px; }
.profilrund.kfreundrund.klein { width: 48px; height: 48px; }
.profilrund.kfreundrund.schemen img { object-fit: contain; }
.konline { position: absolute; right: 2px; bottom: 2px; width: 18px; height: 18px; border-radius: 50%; background: #2E9A3E; border: 3px solid var(--karte); }
.kfreundname { font-size: 1rem; overflow-wrap: anywhere; }
.kfreundzuletzt { font-size: .8rem; opacity: .9; }
.kfreundkachel .umbenannt { font-size: .72rem; }
.kanfrageliste { list-style: none; margin: 6px 0; padding: 0; }
.kanfrage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0; }
.kanfrage + .kanfrage { border-top: 1px dashed var(--linie); }
.kanfrage > b { flex: 1 1 6em; }
/* App 393: offene Anfrage hervorgehoben, der rote Punkt endet hier bei Annehmen/Ablehnen */
.kanfrage.neu { background: color-mix(in srgb, #C8402E 9%, transparent); border-radius: 12px; padding: 8px 10px; box-shadow: inset 4px 0 0 #C8402E; }
.kanfrage.neu + .kanfrage.neu { margin-top: 6px; border-top: 0; }
.kfreundleer { text-align: center; padding: 6px 0 4px; }
.kfreundleer img { width: 120px; height: 120px; object-fit: contain; }
.keinladung { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kvergeben { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
html[data-kontrast="hoch"] .kgruppe, html[data-kontrast="hoch"] button.kfreundkachel { border-color: var(--tinte); }
@media (min-width: 900px) { .kfreundraster { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.kgruppe button, .kgruppe .knopf { hyphens: manual; }

/* Das neue Regelheft (App 215): Startzeile, Zettel fuer Neulinge (der Reiter "Regelheft" ist seit App 216 weg: alles in regelheft.html) */
.regelzeile { display: inline-flex; align-items: center; gap: 6px; }
.regelzeilelink { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(201, 168, 92, .22); color: var(--tinte); text-decoration: none; font-size: .95rem; min-height: 32px; }
.regelzeilelink:hover, .regelzeilelink:focus-visible { background: rgba(201, 168, 92, .38); }
.regelkarte { display: none; }
.regelneu { display: inline-flex; align-items: center; gap: 2px; padding: 1px 2px 1px 8px; border-radius: 999px; background: #A3392C; color: #fff; font: 700 .72rem/1 "Nunito", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.regelneuzu { min-height: 24px; min-width: 24px; padding: 0; border: 0; background: none; color: #fff; font-size: .8rem; line-height: 1; border-radius: 50%; }
.regelneuzu:focus-visible { outline: 2px solid #fff; }
.namensschildregeln { display: block; margin-top: 2px; font-size: .9rem; font-weight: 700; color: var(--tinte); text-decoration: underline; text-underline-offset: 2px; }
.namensschild.dneu { flex-direction: column; align-items: center; gap: 6px; }
.regelzeile { flex-wrap: wrap; justify-content: center; max-width: 100%; }
/* Kleine Handys an Festtagen (360 x 640): die Festzeile hat Vorrang, die Spielregeln bleiben ueber den Kopf-Kobold und den Zettel erreichbar. */
@media (max-height: 700px) and (max-width: 420px) { .startzeilen:has(.festzeile) > .regelzeile { display: none; } }

/* Rechtstexte als Popup (12.10.2026, app/rechtsfenster.js): breiter und lesbar, ueber Hilfe-Kobold und anderen Fenstern. */
.rechtsfenster { z-index: 60; }
.rechtskarte { width: min(760px, 100%); max-height: 90vh; line-height: 1.5; }
.rechtskarte h1 { margin: 4px 48px 8px 0; font-size: 1.6rem; }
.rechtskarte h2 { font-size: 1.15rem; margin: 18px 0 6px; }
.rechtskarte p, .rechtskarte li { overflow-wrap: anywhere; }


/* Stichpruefer mit Stichrichter (12.10.2026, Wunsch des Autors: "interaktiver und freundlicher wie das neue Regelheft"):
   Kobold mit Sprechblase, Pfad der Schritte, eingeklappte Launenwahl mit Suche, gelegte Karten als echte Karten. */
:root { --st-blase: #FFF4D6; --st-blase-rand: #E7CF8F; --st-kicker: #46653A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --st-blase: #3A3624; --st-blase-rand: #6F6236; --st-kicker: #9BC088; } }
:root[data-theme="dark"] { --st-blase: #3A3624; --st-blase-rand: #6F6236; --st-kicker: #9BC088; }
html[data-kontrast="hoch"] { --st-blase: var(--karte); --st-blase-rand: var(--tinte); --st-kicker: var(--tinte); }
.stichrichter { display: flex; align-items: flex-end; gap: 8px; margin: 6px 0 10px; }
.stichrichter .richterfig { width: 76px; height: 76px; object-fit: contain; flex: none; animation: atmen 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.richterblase { position: relative; flex: 1; min-width: 0; align-self: center; background: var(--st-blase); border: 2px solid var(--st-blase-rand); border-radius: 18px; padding: 8px 14px; }
.richterblase::before { content: ""; position: absolute; left: -11px; bottom: 18px; border: 10px solid transparent; border-right-color: var(--st-blase-rand); border-left: 0; }
.richterblase::after { content: ""; position: absolute; left: -7px; bottom: 20px; border: 8px solid transparent; border-right-color: var(--st-blase); border-left: 0; }
.richterblase small { display: block; font: 600 .8rem/1.2 "Fredoka", "Nunito", sans-serif; color: var(--st-kicker); letter-spacing: .02em; }
.richterblase p { margin: 2px 0 0; font-size: 1.05rem; }
.stichrichter.urteil .richterfig { animation: wippen .9s ease-in-out 2; }
.stichrichter.krach .richterblase { animation: krachwackeln .5s ease-in-out 2; }
@keyframes krachwackeln { 20% { transform: translateX(-4px) rotate(-1deg); } 40% { transform: translateX(4px) rotate(1deg); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.stichpfad { list-style: none; margin: 0 0 12px; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; counter-reset: none; }
.stichpfad li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 2px solid var(--linie); background: var(--karte); font: 600 .9rem/1.2 "Fredoka", "Nunito", sans-serif; opacity: .7; }
.stichpfad .spnr { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--linie); color: var(--tinte); font-size: .85rem; }
.stichpfad li.jetzt { opacity: 1; border-color: var(--gruen-dunkel); box-shadow: 0 0 0 3px var(--gruen-hell); }
.stichpfad li.jetzt .spnr { background: var(--gruen-dunkel); color: var(--auf-gruen); }
.stichpfad li.fertig { opacity: 1; }
.stichpfad li.fertig .spnr { background: var(--gruen-dunkel); color: var(--auf-gruen); }
.stichlaunewahl > summary { cursor: pointer; padding: 10px 12px; border-radius: 14px; border: 2px dashed var(--linie); font-weight: 700; list-style: none; min-height: 44px; }
.stichlaunewahl > summary::-webkit-details-marker { display: none; }
.stichlaunewahl[open] > summary { border-style: solid; margin-bottom: 8px; }
.stichsuche { width: 100%; margin: 0 0 8px; padding: 8px 12px; min-height: 44px; border-radius: 12px; border: 2px solid var(--linie); background: var(--karte); color: var(--tinte); font: inherit; box-sizing: border-box; }
.stichwahl [hidden] { display: none; }
.platz .platzbild { margin: 4px auto 2px; }
@media (prefers-reduced-motion: reduce) { .stichrichter .richterfig, .stichrichter.urteil .richterfig, .stichrichter.krach .richterblase { animation: none; } }
/* Mit Hausmeister sind es sechs Kopf-Kobolde (App 218): auf schmalen Handys etwas kleiner, damit "Rumpel" lesbar bleibt. */
@media (max-width: 480px) { #kopf:has(.hausmeisterknopf) .kopffig { height: 32px; margin: -2px -4px -1px; } #kopf:has(.hausmeisterknopf) .kopffigtext { font-size: .5rem; } #kopf:has(.hausmeisterknopf) button.kopffigknopf { padding: 0; } }
@media (max-width: 400px) { #kopf:has(.hausmeisterknopf) .kopffigtext { display: none; } }

/* Marktschreier (App 218, Wunsch des Autors): links der Kobold, rechts die wechselnde Meldung, darunter die Punkte; der
   gefuellte Punkt zeigt, welche Meldung gerade laeuft. Die Meldungen behalten ihre Zeilen-Stile (.tagzeile). */
.marktschreier { display: flex; align-items: center; gap: 6px; max-width: 640px; margin: 6px auto 8px; padding: 0 8px; }
.marktschreier .msfigur { width: 64px; height: 64px; object-fit: contain; flex: none; transform-origin: 50% 100%; }
.msschlitz { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.mszeilen { width: 100%; justify-content: center; }
.msmeldung { display: flex; justify-content: center; max-width: 100%; }
.msmeldung[hidden] { display: none; }
.msmeldung.an { animation: msauf .35s ease-out; }
.msmeldung > .tagzeile { margin: 2px 0 4px; max-width: 100%; }
.neuzeile { padding: 6px 12px; border-radius: 999px; background: rgba(230, 159, 0, .16); }
.neuzeile a { color: inherit; text-decoration: none; } .neuzeile a:hover, .neuzeile a:focus-visible { text-decoration: underline; }
.mspunkte { display: flex; gap: 2px; justify-content: center; flex-wrap: wrap; max-width: 100%; align-self: center; }   /* App 242: mittig im Feld, nie darueber hinaus */
.mspunkt { width: 24px; height: 24px; min-height: 24px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.mspunkt::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--gruen-dunkel); background: transparent; transition: background .2s, transform .2s; }
.mspunkt.an::before { background: var(--gruen-dunkel); transform: scale(1.15); }
@keyframes msauf { from { opacity: 0; transform: translateY(4px); } }
@keyframes msrufen { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-4deg) translateY(-1px); } 60% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: no-preference) { html:not([data-bewegung="aus"]) .marktschreier .msfigur { animation: msrufen 5s ease-in-out infinite; } }
@media (prefers-reduced-motion: reduce) { .msmeldung.an { animation: none; } }
html[data-bewegung="aus"] .msmeldung.an { animation: none; }
@media (max-width: 420px) { .marktschreier .msfigur { width: 52px; height: 52px; } }

/* Rundgang nach der Registrierung (App 218, app/konto.js rundgangHtml): Pfad der Schritte, Kobold mit Text, die Schalter des
   Schritts, unten Zurueck/Weiter gross und "Ueberspringen" leise. */
.krundgang { max-width: 720px; margin: 0 auto; }
.krgschritt { margin: 4px 0 2px; text-align: center; }
.krgpfad { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 6px 2px; }
.krgpfad li { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; opacity: .7; }
.krgpfad li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--linie); background: var(--karte); font: 700 .85rem/1 "Fredoka", "Nunito", sans-serif; }
.krgpfad li small { font-size: .62rem; line-height: 1.1; max-width: 72px; overflow-wrap: normal; }
.krgpfad li.jetzt { opacity: 1; } .krgpfad li.jetzt span { border-color: var(--gruen-dunkel); box-shadow: 0 0 0 3px var(--gruen-hell); }
.krgpfad li.fertig { opacity: 1; } .krgpfad li.fertig span { background: var(--gruen-dunkel); color: var(--auf-gruen); border-color: var(--gruen-dunkel); }
.krgkopf { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.krgkopf h1 { margin: 0 0 4px; }
.krgfig { width: 84px; height: 84px; object-fit: contain; flex: none; }
.krgknoepfe { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0 6px; }
.krgziele { display: flex; flex-direction: column; gap: 10px; align-items: stretch; max-width: 420px; margin: 12px auto; }
@media (max-width: 480px) { .krgpfad li small { display: none; } .krgfig { width: 64px; height: 64px; } }
/* Aufgeklappte Meldung (Fest, Tagespartie, Rangliste) mittig unter dem ganzen Marktschreier, nicht nur unter dem Meldungsfeld. */
.marktschreier { position: relative; }
.marktschreier .startzeilen.mszeilen, .marktschreier .msschlitz, .marktschreier .msmeldung, .marktschreier .msmeldung > .tagzeile { position: static; }
.marktschreier .msmeldung > .tagzeile > .tagzeileinnen { z-index: 20; }

/* App 219 (Wunsch des Autors: "mal 1, mal 2 Zeilen, und immer springt alles darunter"): Der Marktschreier steht unten statt
   Zettel und Namensschild, das Meldungsfeld hat eine feste Hoehe (bis drei Zeilen), der Kobold ist groesser. */
.marktschreier { margin: 10px auto 14px; }
.marktschreier .msfigur { width: 92px; height: 92px; }
.marktschreier .mszeilen { min-height: 5.2em; align-items: center; display: flex; }
.marktschreier .msmeldung > .tagzeile { margin: 0; }
.kontozeileknopf { font: inherit; color: inherit; background: none; border: 0; padding: 0; min-height: 0; cursor: pointer; text-align: inherit; }
.kontozeileknopf:hover, .kontozeileknopf:focus-visible { text-decoration: underline; }
.startkreis .startprofillink { position: absolute; left: 50%; top: 50%; width: 38%; height: 38%; transform: translate(-50%, -50%); border-radius: 50%; z-index: 1; }
.startkreis .startprofillink .startlogo.profilrund { left: 0; top: 0; width: 100%; height: 100%; transform: none; }
/* Ohne Profilbild bleibt das Logo, wo es war; der Link legt sich nur darueber. */
.startkreis .startprofillink.ohnebild { position: static; transform: none; width: auto; height: auto; }
/* Namensschild auf dem Profilbild (App 311, Wunsch des Autors): weiss, auf dem unteren Rand des Kreises, lange Namen mit "…". */
.startkreis .startprofilname { position: absolute; z-index: 3; left: 50%; top: 100%; transform: translate(-50%, -50%); max-width: max(calc(var(--kw, 400px) * .3), 84px); box-sizing: border-box;
  padding: 3px 12px 4px; border-radius: 999px; background: #fff; color: #2A2118; border: 1.5px solid var(--gruen-dunkel, #4C7A5A); box-shadow: 0 2px 6px rgba(42, 33, 24, .25);
  font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: clamp(.72rem, calc(var(--kw, 400px) * .032), 1rem); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.startkreis .startprofillink.ohnebild .startprofilname { top: 69%; }   /* Link ohne eigene Flaeche: Kreisrand des Logos (Mitte 50 %, halbe Hoehe 19 %) */
.startkreis .startprofillink:focus-visible { outline: 4px solid var(--gruen-dunkel); outline-offset: 4px; }
@media (max-width: 420px) { .marktschreier .msfigur { width: 74px; height: 74px; } .marktschreier .mszeilen { min-height: 6.4em; } }
/* Lesbar ueber den grossen Hintergrund-Kobolden (wie vorher der Zettel): helle Flaeche mit Schatten. */
.marktschreier { background: var(--karte, #FFFDF6); border: 2px solid var(--linie); border-radius: 20px; box-shadow: inset 0 3px 8px rgba(42, 33, 24, .24), inset 0 -1px 0 rgba(255, 255, 255, .55); padding: 8px 14px 6px 8px; width: min(640px, calc(100% - 24px));   /* App 253: eingelassen statt erhaben */ box-sizing: border-box; }
@media (min-width: 700px) { .marktschreier .msfigur { width: 116px; height: 116px; margin: -18px 0 -6px; } }
/* Unten auf der Seite klappt eine Meldung nach oben auf (sonst verschwaende sie unter dem Fussband). */
.marktschreier .msmeldung > .tagzeile > .tagzeileinnen { top: auto; bottom: calc(100% + 8px); max-height: calc(100vh - 220px); overflow-y: auto; }

/* Spielstart-Blatt (App 219): oben "Sofort spielen", darunter die Modi in drei Gruppen als Karten, unten die Uebersicht. */
.smsofort { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; flex-wrap: wrap; }
.smsofortknopf { flex: 1 1 260px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 20px; background: var(--gruen-dunkel); color: var(--auf-gruen); text-decoration: none; box-shadow: 0 6px 16px rgba(42, 33, 24, .2); }
.smsofortknopf b { font: 600 1.4rem/1.1 "Fredoka", "Nunito", sans-serif; display: block; }
.smsofortknopf .smtext span { opacity: .9; }
.smsofortknopf .smfigur { width: 64px; height: 64px; }
.smsofortknopf:hover, .smsofortknopf:focus-visible { filter: brightness(1.08); }
.smgruppe { margin: 14px 0 6px; }
.smgruppe h2 { margin: 0; font-size: 1.25rem; }
.smgruppe > .hinweis { margin: 2px 0 8px; }
.smkarten { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.smkarte { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 76px; padding: 8px 12px; border-radius: 16px; border: 2px solid var(--linie); background: var(--karte); color: var(--tinte); text-decoration: none; text-align: left; font: inherit; cursor: pointer; box-sizing: border-box; }
a.smkarte:hover, button.smkarte:hover, .smkarte:focus-visible { border-color: var(--gruen-dunkel); }
.smkarte.aus { opacity: .55; filter: grayscale(.7); cursor: default; }
.smfigur { width: 56px; height: 56px; object-fit: contain; flex: none; }
.smtext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.smtext b { font: 600 1.05rem/1.2 "Fredoka", "Nunito", sans-serif; }
.smtext small { font-size: .8rem; opacity: .8; }
.smmarke { align-self: flex-start; font-style: normal; font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--linie); }
.smuebersicht { margin: 16px 0 8px; }
.smuebersicht > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.smtabelle { display: grid; gap: 6px; }
.smzeile { display: grid; grid-template-columns: 1.1fr 1.6fr 1.2fr 1fr 1.6fr; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--karte); font-size: .9rem; }
.smzeile.smkopf { background: none; font-weight: 700; font-size: .8rem; opacity: .8; }
.smzeile.bald { opacity: .65; }
.smzeile em { font-style: normal; font-size: .72rem; padding: 0 6px; border-radius: 999px; background: var(--linie); }
@media (max-width: 700px) { .smzeile { grid-template-columns: 1fr; gap: 2px; } .smzeile.smkopf { display: none; } .smzeile > span:not(:first-of-type)::before { content: none; } }
.smaendern { flex: none; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--gruen-dunkel); text-decoration: none; color: var(--gruen-dunkel); font-weight: 700; background: var(--karte); }
/* App 221 (Fund des Autors: "in der Newsbox stehen manche Texte ohne Umbruch und verlassen den Bereich"): im Marktschreier
   bricht jede Zeile um, auch die Zuschauzeile mit ihrem sonst einzeiligen Kopf. */
.marktschreier .msmeldung > .tagzeile, .marktschreier .msmeldung > .tagzeile > summary, .marktschreier .zuschauzeile > summary { white-space: normal; overflow: visible; text-overflow: clip; max-width: 100%; overflow-wrap: anywhere; }
.marktschreier .mszeilen, .marktschreier .msmeldung { min-width: 0; }
/* App 221 (Fund des Autors: "der Steckbriefe-Kobold springt hinter das Profilbild, er darf aber darauf springen"): der untere
   Kreisknopf liegt ueber dem Profil-Link (z-index 1). */
.startkreis button.gross.mitfig.kreis.kreisunten { z-index: 3; }
/* Profil-Leiste (App 221, Wunsch des Autors: "oben immer alle Menuepunkte, egal in welchem Bereich"): auf konto.html,
   steckbriefe.html und werkstatt.html dieselbe Leiste, sie haftet beim Rollen oben unter dem Kopf. */
.kreiter.profilleiste { position: sticky; top: 0; z-index: 30; background: var(--grund, #F2E8C9); padding: 6px 4px 4px; margin: 0 -8px 12px; border-bottom: 1px solid var(--linie, #ccc); box-shadow: 0 6px 10px -8px rgba(0, 0, 0, .35); }
.kreiter.profilleiste a.kreiterknopf { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; }
.kreiter.profilleiste a.kreiterknopf.an span { background: var(--gruen-dunkel, #4C7A5A); color: var(--auf-gruen, #fff); }
@media (max-width: 520px) { .kreiter.profilleiste { gap: 2px 6px; } .kreiter.profilleiste .kreiterfig { width: 36px; height: 36px; } .kreiter.profilleiste .kreiterknopf span { padding: 2px 8px 3px; font-size: .78rem; } }
/* App 221 (Fund des Autors: "bei Ganze Rangliste erscheint die Koboldgrafik abgeschnitten; gut waere, wenn bei Popups der
   Hintergrund abgedunkelt wird"): Die Fenster der Marktschreier-Meldungen rollen nicht mehr in sich (die Figur ragt oben
   links heraus), und ein offenes Fenster dunkelt die Seite dahinter ab; ein Tipp daneben schliesst es (summary). */
.marktschreier .msmeldung > .tagzeile > .tagzeileinnen { overflow: visible; max-height: none; }
.marktschreier .msmeldung > details.tagzeile[open] > summary::before { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 15; cursor: default; }
.marktschreier .msmeldung > details.tagzeile[open] { z-index: 40; }
.marktschreier .msmeldung > details.tagzeile[open] > .tagzeileinnen { z-index: 20; }

/* --- Schnellstart (App 226): SOLO und GRUPPE mit Plaetzen 3-8, Rezepte ------------------------------------------------- */
.smschnell { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 6px 0 10px; }
.smschnellkachel { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 2px solid var(--linie); background: var(--karte); box-shadow: 0 6px 16px rgba(42, 33, 24, .14); }
/* App 296 (Fund des Autors: "Solo und Gruppe sehen aus wie ein Banner"): oben ein Bildkopf ohne Link, unten ein Knopf, der wie
   ein Knopf aussieht (runde Pille mit Pfeil), darunter die Plaetze mit der gemerkten Zahl markiert. */
.smkachelkopf { display: flex; align-items: flex-end; gap: 12px; padding: 12px 16px; min-height: 96px; background: var(--gruen-dunkel); color: var(--auf-gruen); }
.smkachelkopf b { font: 600 1.4rem/1.1 "Fredoka", "Nunito", sans-serif; display: block; }
.smkachelfuss { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; }
/* Sechs Kreise in einer Reihe auch auf 360 px (App 249): in der Kachel weniger Rand. */
.smkachelfuss .smzahlen { padding: 0; gap: 5px; }
@media (max-width: 420px) { .smkachelfuss { padding: 10px 8px 12px; } }
.smschnellkachel .smsofortknopf { flex: none; align-self: stretch; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 56px; padding: 10px 20px; border-radius: 999px; border: 3px solid rgba(255, 255, 255, .35); }
.smschnellkachel .smsofortknopf b { font-size: 1.3rem; }
.smschnellkachel .smsofortknopf small { font-size: .85rem; opacity: .92; }
.smschnellkachel .smsofortknopf:active { transform: translateY(2px); box-shadow: 0 2px 6px rgba(42, 33, 24, .25); }
.smlaeuft { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 10px; }
.smlaeuft > span { flex: 1 1 220px; }
.smgruppeknopf { background: var(--kopf, #5A8048); }
.smzahlen { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 4px; }
/* App 249 (Fund des Autors am Handy: die 8 rutschte in die naechste Zeile): das Wort steht ueber den Kreisen, die sechs Kreise
   (6 x 44 px + 5 x 6 px = 294 px) passen dann auch auf 360 px breite Handys in eine Reihe. */
.smzahlenwort { flex: 0 0 100%; font-size: .85rem; font-weight: 700; opacity: .8; margin: 0 0 2px; }
.smzahl { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gruen-dunkel); background: var(--karte); color: var(--tinte); text-decoration: none; font: 600 1.15rem "Fredoka", "Nunito", sans-serif; }
.smzahl:hover, .smzahl:focus-visible { background: var(--gruen-hell); }
.smzahl.jetzt { background: var(--gruen-dunkel); color: var(--auf-gruen); }
.smrezepte { grid-column: 1 / -1; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.smrezept { display: flex; align-items: stretch; gap: 4px; }
.smrezeptknopf { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 14px; border-radius: 16px; border: 2px dashed var(--gruen-dunkel); background: var(--karte); color: var(--tinte); text-decoration: none; }
.smrezeptknopf b { font: 600 1.1rem "Fredoka", "Nunito", sans-serif; }
.smrezeptknopf span { font-size: .85rem; opacity: .85; }
.smrezeptweg { min-width: 40px; border-radius: 12px; font-size: 1.1rem; }
.smaendernzeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.smaendernzeile .hinweis { margin: 0; }

/* --- Breite Schirme (App 227, Fund des Autors am Tablet: "unteres Banner zu hoch, Text nicht mittig; oben Logo und Titel
   nicht so gross wie moeglich im Banner"): ab 800 px (Tablet quer und gross; 768 px hochkant braucht die Breite fuer die Kopfinfo) stehen die beiden Zeilen des Fussbands in EINER Reihe (halbe Hoehe),
   Logo und Titel fuellen die Kopfzeile (Kopf 79 px: Logo 50 px, Titel 1.7 rem). Am Handy bleibt alles wie bisher. */
@media (min-width: 800px) {
  body.mitband .startbanner { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 22px; font-size: .74rem; min-height: 0; padding: 4px 12px calc(4px + env(safe-area-inset-bottom, 0px)); }
  body.mitband .startbanner .startfuss, body.mitband .startbanner .madein { margin: 0; }
  /* App 233 (Fund des Autors am Breitbild: "oben links optisch unsauber"): Logo und "Home" stehen wie die Figuren rechts -
     Bild oben, Beschriftung darunter auf derselben Linie wie "Hausmeister", "Sprache" ...; der Titel steht mittig zum Logo und
     nichts ragt mehr ueber die Unterkante des Banners. */
  #kopf .kopftitel { font-size: 1.7rem; padding-left: 64px; line-height: 1; min-height: 0; }
  #kopf .kopftitel::before { width: 54px; height: 54px; top: calc(50% - 37px); transform: none; }
  #kopf .kopfname, #kopf .kopfslogan { position: relative; top: -6px; }
  #kopf .kopfslogan { font-size: 1rem; }
  #kopf .kopfby { font-size: .72rem; }
  #kopf .kopfstarttext { left: 27px; top: calc(50% + 17px); transform: translateX(-50%); font-size: .72rem; line-height: 1; }
}
/* App 233 (Fund des Autors): Am Handy schoben sich die Figuren ueber "Rumpel - Ehrlich geklaut!" (der Titelknopf wurde auf
   98 px gedrueckt, braucht rund 131). Der Titel schrumpft nie, die Figuren ruecken enger zusammen. */
@media (max-width: 520px) {
  #kopf { gap: 0; }
  #kopf #zurueck { flex-shrink: 0; }
  #kopf button.kopffigknopf { padding: 0 1px; }
}

/* Hausbewohner in der Moderationsapp (App 235): Karte in Blaugrau wie eine Rolle, Wahl am Tisch, Zaehler bei den Stichen */
.bewohnerkarte { display: flex; flex-direction: column; gap: 4px; background: #A8B6C4; color: #2A2118; border-radius: 12px; padding: 10px 12px; margin: 8px 0; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); text-align: left; }
.bewohnerkarte .bwkopf { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.bewohnerkarte .bwname { font-size: 1.15rem; }
.bewohnerkarte i { font-style: normal; font-weight: 700; }
.bewohnerreihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.bewohnerknopf { background: none; border: 3px solid transparent; border-radius: 16px; padding: 2px; min-height: 0; cursor: pointer; color: inherit; }
.bewohnerknopf:focus-visible, .bewohnerknopf:hover { border-color: #FFD45A; }
.bewohnerzeile { display: grid; gap: 4px; margin: 8px 0; }
.bwrad i { font-style: normal; font-size: .85rem; font-weight: 700; display: block; }
/* --- Beuteblock am Tablet (App 234, Fund des Autors: "die Sticherfassung war nicht in der Zeile des Spielers, die durch Krach
   verursachten Fehlstiche zu undeutlich"): ab 700 px stehen Name und Zahlen in EINER Zeile, die Zahlen links buendig ohne
   Mitte-Scrollen (alle passen); die Zeile "Stiche fuer niemanden" ist farbig abgesetzt und leuchtet, sobald sie mehr als 0 hat. */
.stichzeile.niemand { margin-top: 16px; padding: 4px 10px 6px; border-radius: 14px; border: 2px dashed #B5452E; background: #FBEDE9; color: #2A2118; }
.stichzeile.niemand .reihe { border-bottom-color: rgba(181, 69, 46, .3); }
.stichzeile.niemand .name, .stichzeile.niemand .info { color: #2A2118; }
.stichzeile.niemand.hat { border-style: solid; background: #F6D9D1; color: #2A2118; box-shadow: 0 0 0 3px rgba(181, 69, 46, .25); }
@media (min-width: 700px) {
  .stichzeile { display: grid; grid-template-columns: minmax(200px, 32%) 1fr; align-items: center; column-gap: 16px; border-bottom: 1px solid var(--linie); margin: 4px 0; }
  .stichzeile > .reihe { border-bottom: 0; }
  .stichzeile > .zahlrad { padding: 6px 0; overflow: visible; flex-wrap: wrap; justify-content: flex-start; -webkit-mask-image: none; mask-image: none; scroll-snap-type: none; }
  .stichzeile > .zahlrad .radzahl { opacity: .8; }
  .stichzeile > .zahlrad .radzahl.an { opacity: 1; }
  .stichzeile.niemand { border-bottom: 2px dashed #B5452E; }
  .stichzeile.niemand.hat { border-bottom-style: solid; }
}

/* App 242 (Wunsch des Autors): "Haus beitreten" ist unter "Mit mehreren Geraeten" gruenlich hervorgehoben, nur hier */
.smkarte.hervor { border-color: var(--gruen); background: color-mix(in srgb, var(--gruen) 14%, var(--karte, #FFFDF6)); color: var(--tinte, #2A2118); }
/* Geburtstag im Profil (App 239): Zweck und Hinweis direkt am Feld. */
.kgeb .kgebwarn { border-left: 4px solid #B87A00; padding-left: 8px; }
.kgeb input[type="date"] { min-height: 44px; font: inherit; }
/* KIbold (App 240): das Zeichen "👁 Schummler" am Platz, in Listen und Ranglisten; Fenster mit der Liste (app/kibold.js). */
.kiboldzeichen { display: inline-flex; align-items: center; gap: 3px; min-height: 28px; padding: 1px 8px 1px 5px; margin: 0 2px; border-radius: 999px; border: 2px solid #6B2E8F;
  background: #F3E6FA; color: #4A1D66; font: 700 .78rem/1.1 "Fredoka", "Nunito", sans-serif; cursor: pointer; vertical-align: middle; white-space: nowrap; }
.kiboldzeichen > span[aria-hidden] { font-size: 1rem; }
.kiboldzeichen:focus-visible { outline: 3px solid #6B2E8F; outline-offset: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kiboldzeichen { background: #3A2347; color: #F1DDFB; border-color: #C79BE0; } }
:root[data-theme="dark"] .kiboldzeichen { background: #3A2347; color: #F1DDFB; border-color: #C79BE0; }
.kiboldinfo { text-align: left; }
.kiboldtitel { display: block; font-family: "Fredoka", "Nunito", sans-serif; margin-bottom: 4px; }
.kiboldsatz { margin: 0 0 6px; font-weight: 700; }
.kiboldliste { margin: 0 0 8px; padding-left: 1.2em; }
.kiboldliste li { margin: 2px 0; }
.kiboldkarte .popupzu { position: absolute; top: 8px; right: 8px; margin: 0; float: none; }
.kiboldkarte { max-height: calc(100vh - 110px); overflow: auto; }
.kiboldrang { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.kiboldfig { width: 28px; height: 28px; object-fit: contain; vertical-align: middle; }
.kiboldvermerk { margin-left: 4px; font-size: .9em; cursor: help; }
/* App 402: Betatester-Zeichen neben dem Namen (window.KONTO.testerZeichen in konto-sync.js), ueberall dieselbe Klasse */
.testerzeichen { display: inline-block; margin-left: 4px; font-size: .85em; line-height: 1; vertical-align: baseline; cursor: help; }

/* App 243 (Wunsch des Autors): ein Augenzwinkern unter SOLO und GRUPPE */
.smschnellkachel .smwitz { display: block; font-style: italic; font-size: .92rem; opacity: .85; margin: 1px 0 2px; }

/* Schaltkind-Wahl im Profil (App 245): Frage 28. Februar / 1. März, nur bei einem 29.2. sichtbar */
.kgeb .kgebschalt { margin: 8px 0; padding: 8px 12px; border: 2px solid #5E8250; border-radius: 12px; }
.kgeb .kgebschalt legend { padding: 0 6px; }
.kgeb .kgebwahl { display: inline-block; margin: 4px 12px 4px 0; min-height: 44px; line-height: 44px; }
.kgeb .kgebwahl input { width: 22px; height: 22px; vertical-align: middle; }

/* Geburtstag auf der Startseite (App 245): Torte als erste Meldung des Marktschreiers */
.gebzeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 2px solid #5E8250; border-radius: 14px; background: #FAFCF5; color: #27331F; }
.gebzeile .gebtorte { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; border: 2px solid #5E8250; }
.gebzeile > span { flex: 1 1 200px; }

/* Hausbewohner v2 (App 257) in der Moderationsapp */
.bewohnerkarte .bwflavor { font-style: italic; font-size: .9rem; }
.bewohnerkarte .bwwunsch { color: #3A2A6A; }
/* Streiche (App 273) */
.bewohnerkarte .bwstreich { color: #8E1B1B; }
.bewohnerkarte .bwgefallen { color: #174A33; }
.bewohnerkarte .bwstreich i, .bewohnerkarte .bwgefallen i { font-style: normal; font-weight: 600; margin-right: 4px; }
.bewohnerkarte .bwfadenregel { font-size: .85rem; opacity: .9; }
/* Haus der offenen Tuer auf der Startseite (App 258) */
.tuerzeile .tuerlink { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.tuerzeile .tuerlink:hover span, .tuerzeile .tuerlink:focus-visible span { text-decoration: underline; }
/* App 270 (Fund des Autors: "Türbild zu groß in der Newsbox"): die Figur so hoch wie die Zeile, nicht in voller Größe. */
.tuerzeile .tuerzeilefig { width: 36px; height: 36px; object-fit: contain; flex: none; }
/* App 276 (Fund des Autors: "auf dem Tablet ist der untere Banner weiterhin viel mehr als einzeilig"): Tablets hochkant liegen
   bei 600-799 px; auch dort steht das Fussband in EINER Zeile, die Schrift wird lieber etwas kleiner, als umzubrechen. */
@media (min-width: 600px) {
  body.mitband .startbanner { flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 2px clamp(8px, 2vw, 22px);
    font-size: clamp(.56rem, .9vw + .14rem, .74rem); min-height: 0; padding: 4px 12px calc(4px + env(safe-area-inset-bottom, 0px)); white-space: nowrap; }
  body.mitband .startbanner .startfuss, body.mitband .startbanner .madein { margin: 0; white-space: nowrap; }
}

/* App 286: Spielregeln, Stich und Musik im Kopf jeder Seite (app/kopfknoepfe.js). Im laufenden Spiel steht dort das Spielmenue. */
#kopf .kopfknoepfe { display: inline-flex; align-items: center; gap: 2px; }
.kkfenster { position: fixed; inset: 0; z-index: 120; background: rgba(20, 16, 12, .55); display: flex; align-items: center; justify-content: center; padding: 12px; }
.kkkarte { position: relative; background: var(--karte); color: var(--tinte); border-radius: 18px; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); padding: 18px; width: min(94vw, 420px); }
.kkstich .kkkarte { width: min(96vw, 760px); height: min(92svh, 900px); padding: 0; overflow: hidden; }
.kkrahmen { width: 100%; height: 100%; border: 0; display: block; border-radius: 18px; }
/* App 365: Form und Puls aus .popupzu (vorher 44 x 48 oval), hier nur die Lage. */
button.popupzu.kkzu { position: absolute; top: 8px; right: 8px; z-index: 2; margin: 0; float: none; }
.kkfig { width: 72px; height: auto; display: block; margin: 0 auto 4px; }
.kkmusik h2 { text-align: center; margin: 0 0 4px; }
.kkzeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; }
.kkzeile input[type="range"] { flex: 1; max-width: 220px; }
/* Der Stichpruefer im Fenster (index.html?eingebettet=stich): nur der Pruefer, ohne Kopf, Fussband, Starrer und Ton-Frage. */
html.eingebettet #kopf, html.eingebettet #fussband, html.eingebettet .starrer, html.eingebettet #themaFrage, html.eingebettet .rupdate, html.eingebettet #musikLeiste { display: none !important; }
html.eingebettet body { padding-top: 48px; }
/* Schmale Handys: Platz fuer die drei Knoepfe wie auf der Startseite, die auch keinen Seitentitel im Kopf hat. */
@media (max-width: 560px) {
  #kopf:has(.kopfknoepfe) > #kopfinfo { display: none; }
  body:not(.dimspiel) #kopf:has(.kopfknoepfe):has(#kopfmenue:empty) > #kopfmitte { display: none; }
  /* App 360: in der Partie steht die Banner-Mitte ("Deine Ansage!", wer dran ist) als eigene Zeile unter den Knoepfen. */
  /* App 360: sechs Knoepfe ueberall; wird es zu eng (320 px, sehr grosse Schrift), brechen sie um statt aus dem Bild zu ragen. */
  #kopf { flex-wrap: wrap; row-gap: 0; }
  body.dimspiel #kopf { flex-wrap: wrap; row-gap: 0; }
  body.dimspiel #kopf > #kopfmitte { order: 9; flex: 1 0 100%; }
  /* so hoch wie vorher mit dem Spielmenue (64 px): duennere Raender, kleinere Figuren, eine schmale Zeile fuer die Mitte */
  body.dimspiel #kopf { padding-top: calc(3px + env(safe-area-inset-top, 0px)); padding-bottom: 3px; }
  body.dimspiel #kopf .kopffig, body.dimspiel #kopf .sprachknopf img { width: 28px; height: 28px; }
  body.dimspiel #kopf .kopffigknopf { height: auto; min-height: 36px; }
  body.dimspiel #kopf .sprachknopf { height: 38px; min-height: 0; padding-top: 0; padding-bottom: 0; } body.dimspiel #kopf .sprachknopf img { margin: 0; }
  body.dimspiel #kopf > #kopfmitte, body.dimspiel #kopf #kopfinfo { line-height: 1.1; }
}
/* App 360: mit sechs Kopfknoepfen wird die Mitte in der Partie am Tablet schmal; der Satz ("Renacuajo juega …") bricht dort auf
   zwei Zeilen um statt abgeschnitten zu werden (i18n-bildschirme, spiel-tisch 768x1024). */
@media (min-width: 561px) {
  body.dimspiel #kopf #kopfinfo { white-space: normal; line-height: 1.15; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
}
/* App 360 (F-0010, Fund des Autors am Handy 360 px: "im oberen Banner fehlen die weissen Labels"): ausserhalb der Partie
   alle Kopf-Kobolde mit Beschriftung in einer Reihe, auch Sprache, Hilfe und der Hausmeister (angemeldet). Dafuer steht
   links nur Logo und "Home" (Name und Slogan zeigt die Startseite gross), die Knoepfe sind so breit wie ihre Beschriftung.
   Erst unter 360 px mit Hausmeister bricht die Reihe um. */
@media (max-width: 480px) {
  body:not(.dimspiel) #kopf { gap: 2px; padding-left: 4px; padding-right: 4px; }
  body:not(.dimspiel) #kopf .kopfslogan, body:not(.dimspiel) #kopf .kopfname { display: none; }
  body:not(.dimspiel) #kopf .kopftitel { padding-left: 0; min-width: 38px; }
  body:not(.dimspiel) #kopf .kopfstarttext { top: calc(50% + 6px); }   /* auf der Linie der kleineren Figurenbeschriftungen (kopf-labels-browser) */
  body:not(.dimspiel) #kopf .kopffig, body:not(.dimspiel) #kopf .sprachknopf img { height: 34px; margin: -3px 0 -1px; }
  body:not(.dimspiel) #kopf button.kopffigknopf, body:not(.dimspiel) #kopf .sprachknopf { padding: 0; min-width: 0; }
  body:not(.dimspiel) #kopf .kopffigknopf + .kopffigknopf, body:not(.dimspiel) #kopf #sprachplatz + .kopffigknopf,
  body:not(.dimspiel) #kopf #hilfeplatz + .kopffigknopf, body:not(.dimspiel) #kopf .hausmeisterknopf + #sprachplatz { margin-left: 0; }
  body:not(.dimspiel) #kopf .kopffigknopf .kopffigtext, body:not(.dimspiel) #kopf .sprachknopf .kopffigtext { display: block; font-size: .5rem; padding: 1px 3px; margin: -5px 0 0; letter-spacing: -.01em; }
  body:not(.dimspiel) #kopf .hausmeisterknopf .kopffigtext { max-width: 48px; overflow: hidden; text-overflow: ellipsis; }
}
/* App 360: im Regelheft fuehrt der Kopfknopf "Regeln" zur Schatzkarte; der eigene Kartenknopf steht nicht doppelt im Kopf. */
#kopf:has(.kopfknoepfe) > #kartenknopf { display: none; }

/* --- Spielstart mit Bildern (App 290, Wunsch des Autors: "die Spielstartseite immer noch so oldschool, oede und trist") ---
   wie die Kampagnenseite: Bildkopf, Solo und Gruppe auf Bild, Gruppen mit Bildstreifen, jede Spielart mit Bild oben.
   Schrift auf Bild immer hell auf dunklem Verlauf. */
.smkopf { min-height: 160px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center;
  margin: 4px 0 12px; padding: 18px 16px 16px; border-radius: 18px; overflow: hidden; color: #FFF8E6; box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  background: linear-gradient(rgba(10, 16, 40, .12), rgba(8, 10, 24, .8)), var(--smbild) center 62% / cover no-repeat, #1B2238; }
.smkopf h1 { margin: 0; color: #FFF8E6; font-size: clamp(1.8rem, 6vw, 2.5rem); text-shadow: 0 2px 6px rgba(0, 0, 0, .85); }
.smkopf p { margin: 4px 0 0; max-width: 34em; font-style: italic; color: #FFF8E6; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }

.smschnellkachel[style*="--smbild"] .smkachelkopf { min-height: 120px; color: #FFF8E6;
  background: linear-gradient(rgba(20, 30, 15, .2), rgba(18, 26, 14, .88)), var(--smbild) center 45% / cover no-repeat, var(--gruen-dunkel); }
.smschnellkachel[style*="--smbild"] .smkachelkopf .smtext, .smschnellkachel[style*="--smbild"] .smkachelkopf b, .smschnellkachel[style*="--smbild"] .smkachelkopf .smwitz, .smschnellkachel[style*="--smbild"] .smkachelkopf .smtext span { color: #FFF8E6; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); opacity: 1; }
.smschnellkachel[style*="--smbild"] .smkachelkopf .smfigur { width: 76px; height: 76px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); }

.smgruppenkopf { margin: 0 0 8px; padding: 26px 14px 10px; border-radius: 14px; color: #FFF8E6;
  background: linear-gradient(rgba(20, 16, 12, .1), rgba(20, 16, 12, .82)), var(--smbild) center 55% / cover no-repeat, #3A3026; }
.smgruppenkopf h2 { margin: 0; color: #FFF8E6; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
.smgruppenkopf p { margin: 2px 0 0; font-size: .9rem; color: #FFF8E6; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }

.smkarte.mitbild { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; height: 100%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .14); transition: transform .18s ease, box-shadow .18s ease; }
.smkarte.mitbild .smbild { display: block; height: 92px;
  background: linear-gradient(rgba(20, 16, 12, 0) 35%, rgba(20, 16, 12, .8)), var(--smbild) center 50% / cover no-repeat, #3A3026; }
.smkarte.mitbild .smbildkopf { position: absolute; left: 0; right: 0; top: 40px; height: 52px; display: flex; align-items: flex-end; gap: 6px; padding: 0 10px 6px; }
.smkarte.mitbild .smbildkopf b { font: 600 1.1rem/1.15 "Fredoka", "Nunito", sans-serif; color: #FFF8E6; text-shadow: 0 1px 3px rgba(0, 0, 0, .95); }
.smkarte.mitbild .smbildkopf .smfigur { width: 58px; height: 58px; margin-bottom: -14px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .55)); }
.smkarte.mitbild .smtext { padding: 8px 12px 10px 12px; }
.smkarte.mitbild.aus .smbild { filter: grayscale(.9); }
@media (hover: hover) { a.smkarte.mitbild:hover, button.smkarte.mitbild:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .22); } }
@media (prefers-reduced-motion: reduce) { .smkarte.mitbild { transition: none; } }
.smkarten > li { display: flex; }

/* --- Willkommen auf der Startseite (App 296): erster Besuch, drei Kacheln "So geht Rumpel", zwei Knoepfe ---------------- */
.willkommen { position: relative; box-sizing: border-box; width: 100%; max-width: 760px; margin: 8px auto 14px; padding: 16px 18px 14px; min-width: 0; }
.willkommen h2 { margin: 0 32px 6px 0; font-size: 1.45rem; }
.willkommensatz { margin: 0 0 12px; font-size: 1.05rem; line-height: 1.45; }
.willkommenzu { position: absolute; top: 8px; right: 8px; min-width: 40px; min-height: 40px; border-radius: 50%;
  /* App 389 (B10): rotes Schliessen-X wie ueberall (Liebe zum Detail: roter pulsierender Kreis oben rechts) */
  padding: 0; display: grid; place-items: center; font-size: 1.25rem; font-weight: 700; line-height: 1; background: #B0303A; color: #fff;
  border: 2.5px solid #fff; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.3); animation: popupzupuls 1.8s ease-in-out infinite; }
.willkommenkacheln { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.willkommenkachel { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px 10px 12px; border-radius: 16px; border: 2px solid var(--linie); background: var(--karte); }
.willkommenkachel b { font: 600 1.1rem "Fredoka", "Nunito", sans-serif; }
.willkommenkachel span { font-size: .92rem; line-height: 1.35; }
.willkommenfig { width: 72px; height: 72px; object-fit: contain; }
.willkommenknoepfe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0; }
.willkommenknoepfe .knopf { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; max-width: 100%; }
.willkommenknoepfe .willkommenknopffig { width: 44px; height: 44px; object-fit: contain; flex: none; }
.willkommensatz, .willkommenkachel span { overflow-wrap: anywhere; }
.willkommenlink { margin: 4px 0 10px; }

/* "Was ist Rumpel?" mittig unter dem Startkreis (App 297), nicht ueber dem Hintergrund-Kobold. */
.willkommenlink { align-self: center; position: relative; z-index: 5; margin: 0 auto 8px; }

/* Spielstart (App 302): was nicht zu den Bausteinen gehoert (Ausstatten im Spiel, Musik-Frage, Bereit) - vor dem Bausteinblock. */
.dbereit { display: grid; gap: 6px; margin: 4px 0 10px; }
.dbereit > div { display: grid; grid-template-columns: minmax(84px, 30%) 1fr; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--karte); border: 1px solid var(--linie); }
.dbereit dt { font-weight: 700; }
.dbereit dd { margin: 0; overflow-wrap: break-word; }
.dplanmerken { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.dausstatten { max-width: 640px; margin: 0 auto; }
.dausstatten .dschritt { padding-bottom: 6px; }
.dausstatten .dfeinheiten summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.dausstatten .dheute:empty { display: none; }
@media (max-width: 459px) { .dbereit > div { grid-template-columns: 1fr; gap: 2px; } }
/* App 302, Befund der Hauptsitzung ("minimalistisch, auf einen Blick"): am Handy steht der Stapel bis S3 ohne Rollen im Bild. */
body.spielstartseite #themaFrage { display: none !important; }
.dausstatten { padding-bottom: 8px; }
.dbereit > div { display: flex; flex-wrap: wrap; gap: 0 8px; padding: 6px 10px; grid-template-columns: none; }
.dbereit dt::after { content: ":"; }
.dausstatten details.dheute { margin: 4px 0; }
.dausstatten details.dheute > summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.dausstatten details.dheute .dtagbild { max-height: 90px; }
@media (max-width: 459px) { .dbereit > div { display: flex; } }
/* App 304 (EINFUEHRUNG-SCHACHTELN-PLAN.md §5, Paket K): Herkunftsmarke (data/herkunft.mjs) */
.herkunftmarke { display: block; width: 100%; height: 100%; }
.rhmarke, .dtutmarke { display: inline-block; width: 1.4em; height: 1.4em; vertical-align: -.3em; margin-right: .35em; }
/* App 304 (Paket H): Herkunftszeichen in der Moderationsapp (Launen, Regelkarte, Heft-Reiter, Kaesten, Herleitung) */
.hkzeichen { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -.25em; margin-right: .3em; flex: 0 0 auto; }
.herleitung .hkzeichen, .ktitel .hkzeichen { width: 1em; height: 1em; }
/* Feedback (App 310): roter Punkt am Link, wenn es Neues zu eigenen Meldungen gibt (Startkreis, Profil-Leiste) */
.fbpunkt { width: 10px; height: 10px; border-radius: 50%; background: #C8402E; display: inline-block; vertical-align: middle; }

/* ---- Kopfbanner mit Labels (App 312, Wunsch des Autors 20.10.2026: "statt Text unter den Bildern Labels wie auf der
   Startseite, entsprechend kleiner"). Jede Beschriftung im Kopf (Home, Sprache, Hilfe, Spielregeln, Stich, Musik, Hausmeister)
   ist eine kleine helle Pille mit gruenem Rand; die Fuesse der Figur stehen auf ihrer Oberkante. Kein display hier, damit die
   Regeln, die Texte am schmalen Handy ausblenden, weiter greifen. Steht am Dateiende, damit es die aelteren Groessen schlaegt. */
#kopf .kopffigtext, #kopf .kopfstarttext { padding: 2px 6px 2px; border-radius: 999px; background: var(--karte, #F2E8C9); color: var(--tinte, #2A2118);
  border: 1px solid var(--gruen-dunkel, #4C7A5A); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); font-size: .64rem; line-height: 1.1; letter-spacing: 0; }
#kopf .kopffigtext { position: relative; z-index: 1; margin-top: -5px; }
#kopf .kopfstarttext { top: calc(50% + 11px); }
@media (max-width: 380px) { #kopf .kopfstarttext { top: calc(50% + 7px); } }   /* auf der Linie der Figurenbeschriftungen (app-227.test) */
@media (max-width: 520px) { #kopf .kopffigtext, #kopf .kopfstarttext { font-size: .54rem; padding: 1px 4px 1px; } #kopf #regelnKnopf .kopffigtext { margin: -5px -8px 0; } }
@media (max-width: 380px) { #kopf .kopffigtext, #kopf .kopfstarttext { font-size: .5rem; padding: 1px 3px 1px; } #kopf #regelnKnopf .kopffigtext { margin: -5px -3px 0; } }

/* ---- Farbige Pillen im Startkreis (App 313, Wunsch des Autors 20.10.2026): Abmeldung roetlich, Spielstart gruenlich,
   Feedback violettlich, Steckbriefe gelblich; das Namensschild am Profilbild bleibt weiss, "Weiter" (laufende Partie, .an)
   bleibt dunkelgruen, Anmeldung bleibt hell. Je Farbe Grund und Rand, hell und dunkel; die Schrift bleibt --tinte. */
:root { --pille-rot: #F8DCD6; --pille-rot-rand: #B5523F; --pille-gruen: #DCEFCF; --pille-gruen-rand: #5C804E;
  --pille-violett: #E9DEF5; --pille-violett-rand: #7E5A9E; --pille-gelb: #FBEFB8; --pille-gelb-rand: #A8831A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pille-rot: #4A2A26; --pille-rot-rand: #E08A78; --pille-gruen: #2F4428; --pille-gruen-rand: #9BC088;
  --pille-violett: #3A2E48; --pille-violett-rand: #B79AD6; --pille-gelb: #4A4120; --pille-gelb-rand: #E0C060; } }
:root[data-theme="dark"] { --pille-rot: #4A2A26; --pille-rot-rand: #E08A78; --pille-gruen: #2F4428; --pille-gruen-rand: #9BC088;
  --pille-violett: #3A2E48; --pille-violett-rand: #B79AD6; --pille-gelb: #4A4120; --pille-gelb-rand: #E0C060; }
.startkreis button.gross.mitfig.kreis[data-tuer="raus"] .knopftext { background: var(--pille-rot); border-color: var(--pille-rot-rand); }
.startkreis button.gross.mitfig.kreis[data-go="setup"] .knopftext { background: var(--pille-gruen); border-color: var(--pille-gruen-rand); }
.startkreis button.gross.mitfig.kreis[data-zumfeedback] .knopftext { background: var(--pille-violett); border-color: var(--pille-violett-rand); }
.startkreis button.gross.mitfig.kreis[data-zurwand] .knopftext { background: var(--pille-gelb); border-color: var(--pille-gelb-rand); }
/* Punkt am Profilbild (App 313): im Namensschild hinter dem Namen, bei Freundschaftsanfragen; der Name kuerzt sich mit "…". */
.startkreis .startprofilname { display: inline-flex; align-items: center; gap: 4px; }
.startkreis .startprofilname .startprofiltext { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.startkreis .startprofilname .fbpunkt { flex: none; }

/* ---- Google auf der Startseite (App 314): unter der Pille "Anmeldung" ein leises "oder direkt" und ein heller Knopf mit dem
   G von Google (eigener Knopf, kein Google-Skript; Google selbst laedt erst die Kontoseite). Mitte wie der Anmelde-Kobold
   (Winkel 180°, 10 % von links), oben knapp unter seiner Pille. */
.startkreis .startgoogle { position: absolute; z-index: 3; left: 10%; top: 67%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.startkreis .startgoogleoder { font-size: .8rem; color: var(--tinte, #2A2118); opacity: .8; }
.startkreis .startgoogleknopf { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: #fff; color: #1F1F1F;
  border: 1px solid #747775; box-shadow: 0 1px 3px rgba(42, 33, 24, .25); font-family: "Nunito", sans-serif; font-weight: 700; font-size: .85rem; text-decoration: none; white-space: nowrap; }
.startkreis .startgoogleknopf:hover, .startkreis .startgoogleknopf:focus-visible { background: #F2F2F2; color: #1F1F1F; }
.startkreis .startgoogleknopf:focus-visible { outline: 3px solid var(--gruen-dunkel, #4C7A5A); outline-offset: 2px; }
.startkreis .startgoogleg { width: 18px; height: 18px; flex: none; }
/* Kontoseite: der Google-Knopf hervorgehoben, wenn man von der Startseite kommt */
.kgooglehervor { text-align: center; font-weight: 700; margin: 4px 0; }
.kgoogle.hervor { padding: 8px; border-radius: 999px; box-shadow: 0 0 0 3px var(--gruen-dunkel, #4C7A5A); animation: kgooglepuls 1.6s ease-in-out 3; }
@keyframes kgooglepuls { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--gruen-dunkel, #4C7A5A) 35%, transparent); } }
@media (prefers-reduced-motion: reduce) { .kgoogle.hervor { animation: none; } }
/* Am Handy nicht aus dem Bild: Mitte mindestens 110 px vom linken Rand der Buehne (wie die Pillen links, cqw der .startmitte). */
body.startseite .startmitte .startkreis .startgoogle { left: max(10%, calc(50% - 50cqw + 110px)); }

/* ============================================================
   App 378: Glanz auf allen Seiten (seit 378 Standard, app/zugang.js setzt html.glanz; ?glanz=0 schaltet am Geraet ab).
   Wunsch des Autors 3.11.2026: "Beenden-Bubble, generell Buttons, Fortschrittsbalken, Symbole plastischer". Knoepfe bekommen den
   Glanz nur als Schattenkante (oben hell, unten dunkel), nie als neuen Hintergrund: ihre Farben und Verlaeufe bleiben.
   ============================================================ */
/* App 389 (B8/B9/B14): nicht auf gesperrten Knoepfen; Knoepfe, deren "an" einen eigenen Ring traegt (Kacheln, Profil, Daumen, Haus,
   Kippschalter, Segmente, Werkstatt-Reiter), behalten ihn. Die Fassung in spiel.css ist entfallen (eine Quelle). */
html.glanz button.gross:not(:disabled), html.glanz button.klein:not(:disabled), html.glanz a.knopf, html.glanz .knopf.gross,
html.glanz button.an:not(:disabled):not(.kachel-laune, .kprofilknopf, .dbewertung, .dhauskachel, .dkipp, .dtagknopf, .ssfeld, .wk-reiter, .wk-filter) {
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(0, 0, 0, .13), 0 2px 5px rgba(42, 33, 24, .22); }
html.glanz button.gross:not(:disabled):active, html.glanz button.klein:not(:disabled):active, html.glanz a.knopf:active,
html.glanz button.an:not(:disabled):not(.kachel-laune, .kprofilknopf, .dbewertung, .dhauskachel, .dkipp, .dtagknopf, .ssfeld, .wk-reiter, .wk-filter):active {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .22), 0 1px 2px rgba(42, 33, 24, .2); }
html.glanz button.gross:not(:disabled), html.glanz button.an:not(:disabled) { text-shadow: 0 1px 0 rgba(0, 0, 0, .18); }
/* Rotes Schliessen-X: gewoelbter Knopf mit Licht oben links, das Kreuz gepraegt (der Puls bleibt) */
html.glanz .popupzu, html.glanz .dpopupzu, html.glanz button.popupzu, html.glanz button.abzzu, html.glanz .wk-zoomzu, html.glanz .willkommenzu {   /* abzzu, wk-zoomzu, willkommenzu seit App 389 (B10) */
  background: radial-gradient(circle at 34% 28%, #CC4650 0%, #B3323D 42%, #94222D 78%, #741822 100%); text-shadow: 0 1px 1px rgba(0, 0, 0, .45); }
/* Figuren und Zeichen in Kopf und Knoepfen: leichter Schatten, damit sie auf dem Grund stehen */
html.glanz .kopffig, html.glanz .knopffig, html.glanz button.gross.mitfig .figur { filter: drop-shadow(0 2px 2px rgba(42, 33, 24, .3)); }
/* App 389 (B12, Pruefung 4.11.2026): Glanz auch fuer Abzeichen-Fortschritt, Summenleiste, Kippschalter, Prahlrad und Chips (Rinne vertieft,
   Fuellung mit Lichtkante; Farben bleiben). B16: bei hohem Kontrast setzt app/zugang.js die Klasse glanz nicht. */
html.glanz .abzbalken, html.glanz .summenleiste, html.glanz .kschalterbahn { box-shadow: inset 0 2px 3px rgba(0, 0, 0, .28), inset 0 -1px 0 rgba(255, 255, 255, .35); }
html.glanz .abzbalken i, html.glanz .summenleiste .fuell { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .15); }
html.glanz .prsvg { filter: drop-shadow(0 3px 4px rgba(42, 33, 24, .3)); }
html.glanz .sschip, html.glanz .dinfochip, html.glanz .dtpchip { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .1), 0 1px 3px rgba(42, 33, 24, .2); }

/* App 399: Fragebogen der Testrunde (app/umfrage.js) - ruhiges Fenster ueber der Startseite, Kreuz oben rechts wie ueberall */
dialog.umfrage { box-sizing: border-box; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 16px 18px 18px;
  border: 2px solid var(--gruen-dunkel); border-radius: 18px; background: var(--karte); color: var(--tinte); box-shadow: 0 10px 40px rgba(39,51,31,.3); }
dialog.umfrage::backdrop { background: rgba(20, 26, 16, .45); }
dialog.umfrage h2 { margin: 4px 44px 8px 0; font-size: 1.35rem; }
dialog.umfrage p { line-height: 1.45; }
.umfragefigur { float: left; width: 64px; height: 64px; object-fit: contain; margin: 0 10px 4px 0; }
.umfrageknoepfe { clear: both; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.umfrageknoepfe button { flex: 1 1 160px; font-weight: 700; }
.umfrageknoepfe button[disabled] { opacity: .55; cursor: default; }
.umfragebogen { display: grid; gap: 10px; }
.umfragefrage { border: 1.5px solid var(--linie); border-radius: 14px; padding: 8px 12px 10px; margin: 0; min-width: 0; }
.umfragefrage legend { font-weight: 700; padding: 0 4px; }
.umfragefrage:has(input[data-frage="geraet"]) { border-style: dashed; margin-top: -4px; }
.umfragenr { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--gruen-dunkel); color: var(--auf-gruen); font-size: .85em; margin-right: 2px; }
.umfragefrage input[type=text], .umfragefrage textarea { box-sizing: border-box; width: 100%; font: inherit; padding: 8px 10px; border: 1.5px solid var(--linie); border-radius: 10px; background: var(--grund); color: var(--tinte); }
.umfragesterne { display: flex; gap: 4px; }
.umfragestern { min-width: 48px; min-height: 48px; padding: 0; font-size: 1.7rem; line-height: 1; border-color: var(--linie); color: var(--linie); }
.umfragestern.voll { color: #6B4500; border-color: #B87A00; background: #FFE99A; }   /* fest hell, in beiden Themen lesbar */
.umfrageskala { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 3px; }
.umfragezahl { min-width: 0; min-height: 44px; padding: 0; font-size: .95rem; }
.umfrageenden { display: flex; justify-content: space-between; font-size: .85rem; opacity: .85; margin-top: 2px; }
.umfragechips { display: flex; flex-wrap: wrap; gap: 6px; }
.umfragechip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 12px; border: 1.5px solid var(--linie); border-radius: 22px; cursor: pointer; }
.umfragechip.an { border-color: var(--gruen-dunkel); background: var(--gruen-dunkel); color: var(--auf-gruen); font-weight: 600; }
.umfragefehler { color: var(--nein-rand); font-weight: 600; }
@media (max-width: 420px) { .umfrageskala { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (forced-colors: active) { .umfragestern.voll, .umfragechip.an, .umfragezahl.an { outline: 3px solid Highlight; } }

/* ============================================================
   App 407a (Eleganz, Wunsch des Autors 14.11.2026): Handschrift der Oberflaeche. Feste Dauern und Kurven ohne TEMPO, dieselben
   Werte wie BEWEGUNG.HAND in app/bewegung.js. Fenster erscheinen weich (@starting-style), verschwinden ueber BEWEGUNG.weg() bzw.
   den Abgangs-Geist (data-geist). Unter "Bewegung reduzieren" und "Bewegung aus" greift die Notbremse oben: alles steht sofort da.
   ============================================================ */
:root { --h-kurz: 150ms; --h-mittel: 200ms; --h-lang: 250ms; --h-rein: cubic-bezier(.2, .8, .2, 1); --h-raus: cubic-bezier(.4, 0, 1, 1); --h-feder: cubic-bezier(.3, 1.4, .5, 1); }
/* Auftritt der Fenster: der Schleier blendet ein, die Karte kommt aus 8 px und 96 % */
.dpopup, .abzpopup, .rgross, .wk-schleier, .boxregeln.rechtsfenster, .bugcam, .profilschleier { transition: opacity var(--h-mittel) var(--h-rein); }
.dpopup > *, .abzpopup > *, .rgross > *, .boxregeln.rechtsfenster > *, .bugcam > * { transition: opacity var(--h-mittel) var(--h-rein), transform var(--h-mittel) var(--h-feder); }
@starting-style {
  .dpopup, .abzpopup, .rgross, .wk-schleier, .boxregeln.rechtsfenster, .bugcam, .profilschleier { opacity: 0; }
  .dpopup > *, .abzpopup > *, .rgross > *, .boxregeln.rechtsfenster > *, .bugcam > * { opacity: 0; transform: translateY(8px) scale(.96); }
}
/* Das Spiel zeichnet die Buehne neu: ein schon offenes Fenster (dstill, app/spiel/ansicht.js EINMAL) tritt nicht noch einmal auf. */
.dpopup.dstill, .dpopup.dstill > * { transition: none; }
/* Rueckfrage, Hilfe und Umfrage (<dialog>): weich auf und weich zu, ohne Skript (display/overlay mit allow-discrete). */
dialog.hilfedialog, dialog.umfrage, dialog.hilfedialog::backdrop, dialog.umfrage::backdrop {
  transition: opacity var(--h-kurz) var(--h-raus), transform var(--h-kurz) var(--h-raus), overlay var(--h-kurz) allow-discrete, display var(--h-kurz) allow-discrete; }
dialog.hilfedialog:not([open]), dialog.umfrage:not([open]) { opacity: 0; transform: translateY(6px) scale(.98); }
dialog.hilfedialog:not([open])::backdrop, dialog.umfrage:not([open])::backdrop { opacity: 0; }
dialog.hilfedialog[open], dialog.umfrage[open], dialog.hilfedialog[open]::backdrop, dialog.umfrage[open]::backdrop { transition-duration: var(--h-mittel); transition-timing-function: var(--h-rein); }
@starting-style {
  dialog.hilfedialog[open], dialog.umfrage[open] { opacity: 0; transform: translateY(8px) scale(.96); }
  dialog.hilfedialog[open]::backdrop, dialog.umfrage[open]::backdrop { opacity: 0; }
}
/* Abgangs-Geister: eingefrorene Kopien verschwundener Fenster (data-geist, mit dem z-index des Originals), nie bedienbar, keine Tippflaeche. */
[data-geist], [data-geist] * { pointer-events: none !important; }
/* ----- App 407b ----- */
/* Bilder, die noch laden, stehen unsichtbar und blenden beim Laden ein (app/bewegung.js; ohne Bewegung wird nie markiert). */
img[data-laedt] { opacity: 0; }
/* Ein Druck fuer alle Knoepfe, Schalter und knopfartigen Links (button:active steht weiter oben; die roten X behalten ihr .9). */
a.knopf, a.gross, a.klein, [role="switch"], [role="tab"], summary { transition: transform var(--h-kurz) var(--h-feder); }
a.knopf:active, a.gross:active, a.klein:active, [role="switch"]:active:not([aria-disabled="true"]), [role="tab"]:active, summary:active { transform: scale(.97); }
button { transition-timing-function: var(--h-feder); }
/* Aufklappen gleitet (details): die Hoehe laeuft von 0 auf auto, wo der Browser das kann; sonst springt es wie bisher. */
details { interpolate-size: allow-keywords; }
details::details-content { block-size: 0; overflow: clip; transition: block-size var(--h-mittel) var(--h-rein), content-visibility var(--h-mittel) allow-discrete; }
details[open]::details-content { block-size: auto; }
/* Listen: Platzhalter, solange sie laden; beim ersten Erscheinen leicht gestaffelt (30 ms je Zeile, hoechstens acht). */
.bwplatzhalter { display: grid; gap: 8px; margin: 8px 0; }
.bwplatzzeile { display: block; height: 22px; border-radius: 8px; background: color-mix(in srgb, var(--tinte) 9%, transparent); animation: bwschimmer 1.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 90ms); }
.bwplatzzeile:nth-child(2n) { width: 82%; }
.bwplatztext { font-size: .9rem; opacity: .8; }
@keyframes bwschimmer { 50% { opacity: .45; } }
.bwstaffel > * { animation: bwzeile var(--h-mittel) var(--h-rein) both; }
.bwstaffel > :nth-child(2) { animation-delay: 30ms; } .bwstaffel > :nth-child(3) { animation-delay: 60ms; } .bwstaffel > :nth-child(4) { animation-delay: 90ms; }
.bwstaffel > :nth-child(5) { animation-delay: 120ms; } .bwstaffel > :nth-child(6) { animation-delay: 150ms; } .bwstaffel > :nth-child(7) { animation-delay: 180ms; }
.bwstaffel > :nth-child(n+8) { animation-delay: 210ms; }
@keyframes bwzeile { from { opacity: 0; transform: translateY(6px); } }
/* Tastenfeld (input[data-tastenfeld] am Touchgeraet): ein Blatt ueber der Fusszeile, die BUGCAM bleibt frei. */
.bwtasten { position: fixed; left: 50%; bottom: calc(var(--fussh, 0px) + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 34; width: min(420px, 100vw);
  box-sizing: border-box; padding: 10px 10px 12px; background: var(--karte); color: var(--tinte); border: 1.5px solid var(--linie); border-bottom: 0; border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 26px rgba(0, 0, 0, .28); }
body:has(.bugcam-schwebe) .bwtasten { padding-left: 70px; }
.bwtastenraster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bwtastenraster.code { grid-template-columns: repeat(6, 1fr); }
.bwtaste { min-height: 48px; padding: 0; font-family: "Fredoka", "Nunito", sans-serif; font-size: 1.35rem; font-weight: 600; border-radius: 12px; }
.bwtastenraster.code .bwtaste { min-height: 44px; font-size: 1.1rem; }
.bwtastenfuss { display: flex; gap: 6px; margin-top: 6px; }
.bwtastenfuss .bwtaste { flex: 1; font-size: 1rem; }
.bwtastenfuss .bwtastefertig { flex: 2; }

/* App 408 (F-0070, Wunsch des Autors 11.11.2026: "bei allen Menuepunkten muesste die Menueleiste oben so aussehen wie auf der
   Steckbriefwand, zzgl. ein Stueck mehr Abstand zum oberen Banner"): Die Profil-Leiste steht auf jeder ihrer Seiten zuoberst
   (vor dem Seitentitel), in einer Reihe, so breit wie der Bildschirm es erlaubt (auch wenn die Seite selbst schmal ist), mit Luft
   zum Kopf. Sie haftet beim Rollen UNTER dem Kopf statt darueber (vorher top: 0 und z-index 30 - sie schob sich ueber den
   Seitentitel im Banner). */
.kreiter.profilleiste { top: var(--kopfh, 52px); z-index: 24; margin-top: 14px; flex-wrap: wrap;
  margin-left: calc(50% - min(50vw - 16px, 560px)); margin-right: calc(50% - min(50vw - 16px, 560px)); }
/* F-0066 (Wunsch des Autors): der Hausmeister steht als letzter Reiter in der Leiste, rot statt weiss/gruen umrandet. */
.kreiterknopf.hausmeisterreiter span { border-color: #C0392B; box-shadow: 0 0 0 1.5px #C0392B; }
html[data-kontrast="hoch"] .kreiterknopf.hausmeisterreiter span { border-width: 2.5px; }
/* Die Seiten der Leiste rollen als Ganzes (body); main.dsetup trug overflow: auto und war damit selbst Bezug der klebenden Leiste -
   sie klebte nie (Konto, Feedback, Steckbriefe) oder ueber dem Kopf (Werkstatt). Ohne eigenen Rollbereich klebt sie ueberall gleich. */
main:has(> .kreiter.profilleiste) { overflow: visible; }
main.wk-buehne > .kreiter.profilleiste:first-child { margin-top: 0; }   /* die Werkstatt bringt ihren eigenen Innenabstand mit */
/* Am Handy braucht die Leiste zwei bis drei Reihen; klebend nahme sie ein Drittel des Bildschirms. Dort rollt sie mit. */
@media (max-width: 700px), (max-height: 700px) { .kreiter.profilleiste { position: static; } }
/* Spielstart-Bausteine (SPIELSTART-PLAN.md WP2, 18.10.2026, app/bewegung.js segmentHtml/mehrfachHtml/pfadleisteHtml/fussleisteHtml).
   Nur vorbereitet, noch nirgends eingebaut. Farben nur aus den Tokens (hell, dunkel, hoher Kontrast folgen von selbst). */
.sssegment { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 10px; }
.ssfrage { font-weight: 700; font-size: .95em; color: var(--tinte); }
.ssbahn { display: grid; grid-template-columns: repeat(var(--ss-n, 2), minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--gruen-hell); border: 1px solid var(--linie); }
.sssegment button.ssfeld { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; min-width: 0; margin: 0;
  padding: 6px 4px; border: 2px solid transparent; border-radius: 10px; background: transparent; color: var(--tinte); font: inherit; font-size: .92em; line-height: 1.15; text-align: center; cursor: pointer;
  transition: background var(--t-kurz), border-color var(--t-kurz), color var(--t-kurz); }
.sssegment button.ssfeld.an { background: var(--gruen-dunkel); color: var(--auf-gruen); border-color: var(--gruen-dunkel); font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.sssegment button.ssfeld.zu { color: color-mix(in srgb, var(--tinte) 55%, transparent); cursor: not-allowed; }
.sssegment button.ssfeld.zu .ssfig { filter: grayscale(1); opacity: .55; }
.ssfeld .ssfig { width: 28px; height: 28px; object-fit: contain; }
.ssfeld .sstext { overflow-wrap: normal; word-break: normal; hyphens: manual; }   /* App 302: nie mitten im Wort, nur an weichen Trennstellen (&shy;) */
/* vier Werte am schmalen Handy: zwei mal zwei, damit kein Wort mitten durch bricht */
@media (max-width: 459px) { .sssegment[style*="--ss-n:4"] .ssbahn { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sssegment[style*="--ss-n:4"] button.ssfeld { flex-direction: row; gap: 6px; } }
.ssfeld .ssunter { font-size: .78em; font-weight: 400; opacity: .85; }
.ssgrund { display: block; font-size: .74em; font-weight: 400; line-height: 1.1; }
.sskobold { position: absolute; top: -18px; right: -6px; width: 32px; height: 32px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
/* App 349 (Wunsch des Autors 25.10.2026): ein goldenes Feld (Tagespartie) hebt sich ab.
   App 422 (Meldung des Autors 23.11.2026): die goldene Flaeche sah aus wie die Wahl. Jetzt traegt das Feld die Flaeche seiner
   Nachbarn und nur einen goldenen Rand; ein kleines goldenes Etikett ("1× am Tag", .ssetikett) sagt, was es besonders macht.
   Gewaehlt sieht es aus wie jede Wahl (gruen, satte Ratte), das Etikett bleibt. */
.sssegment button.ssfeld.gold { --ssg-hell: #FFF3C4; --ssg-mitte: #F2D27A; --ssg-rand: #C9A23A; --ssg-tinte: #4A3A12; border-color: var(--ssg-rand); margin-right: 6px; }
.sssegment button.ssfeld.gold.an { border-color: var(--gruen-dunkel); }
.ssetikett { display: inline-block; margin: 1px auto 0; padding: 0 7px; border-radius: 999px; font-size: .68rem; font-weight: 700; line-height: 1.35;
  white-space: nowrap; background: linear-gradient(160deg, var(--ssg-hell), var(--ssg-mitte)); color: var(--ssg-tinte); border: 1px solid var(--ssg-rand); box-shadow: 0 1px 2px rgba(150, 110, 20, .3); pointer-events: none; }
.sssegment button.ssfeld.zu .ssetikett { filter: grayscale(1); opacity: .7; }
html[data-kontrast="hoch"] .ssetikett { background: var(--karte); color: var(--tinte); border-color: var(--tinte); box-shadow: none; }
.ssmehrfach { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 10px; }
.sschips { display: flex; flex-wrap: wrap; gap: 6px; }
.ssmehrfach button.sschip { --ss-farbe: var(--gruen-dunkel); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0; padding: 4px 12px 4px 6px; border-radius: 22px;
  border: 2px solid var(--ss-farbe); background: var(--karte); color: var(--tinte); font: inherit; font-size: .92em; cursor: pointer; flex-wrap: wrap; }
.ssmehrfach button.sschip.an { background: color-mix(in srgb, var(--ss-farbe) 22%, var(--karte)); font-weight: 700; }
.ssmehrfach button.sschip.zu { opacity: .7; cursor: not-allowed; }
.ssmehrfach button.sschip.zu[data-ss-fest] { opacity: 1; cursor: default; border-style: dashed; }
.sschip .ssfig { width: 30px; height: 30px; object-fit: contain; }
.sschip .sshaken { font-weight: 700; color: var(--ss-farbe); }
.sschip .ssgrund { flex-basis: 100%; }
.sspfad { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 8px; font-size: .88em; }
.ssglieder { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.ssglied { display: inline-flex; align-items: center; gap: 2px; }
.sspfad button.ssgliedknopf { min-height: 44px; min-width: 44px; margin: 0; padding: 4px 6px; border: 0; border-radius: 8px; background: transparent; color: var(--gruen-dunkel); font: inherit; text-decoration: underline; cursor: pointer; }
.ssgliedtext { padding: 4px 6px; font-weight: 700; }
.sspfeil { opacity: .6; }
.sspunkte { display: inline-flex; gap: 5px; flex: none; }
.sspunkt { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--gruen-dunkel); background: transparent; }
.sspunkt.fertig { background: var(--gruen-hell); }
.sspunkt.an { background: var(--gruen-dunkel); }
.ssfuss { position: sticky; bottom: 0; z-index: 4; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 6px; padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--grund); border-top: 1px solid var(--linie); }
.ssfuss button.ssfussknopf { min-height: 48px; margin: 0; padding: 6px 8px; border-radius: 12px; border: 2px solid var(--gruen-dunkel); background: var(--karte); color: var(--tinte); font: inherit; font-weight: 700; cursor: pointer; }
.ssfuss button.sslos { background: var(--gruen-dunkel); color: var(--auf-gruen); font-size: 1.1em; }
.ssfuss button.sslos[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.ssfussluecke { display: block; }
html[data-kontrast="hoch"] .sssegment button.ssfeld.zu, html[data-kontrast="hoch"] .ssmehrfach button.sschip.zu { color: var(--tinte); opacity: 1; text-decoration: line-through; }
html[data-kontrast="hoch"] .ssbahn { border-width: 2px; border-color: var(--tinte); }
@media (prefers-reduced-motion: reduce) { .sssegment button.ssfeld { transition: none; } }
/* --- Spielstart (App 302, SPIELSTART-PLAN.md WP4-WP6): Teil A, Ausstatten und Bereit; kompakt am Handy (Befund der Hauptsitzung) --- */
/* --- Spielstart (App 302, SPIELSTART-PLAN.md WP4-WP6): Teil A in der App, Ausstatten und Bereit in App und Spiel --------------- */
.ssstart { display: flex; flex-direction: column; gap: 4px; max-width: 640px; margin: 0 auto; }
.ssstart h1.sstitel { margin: 4px 0 2px; font-size: 1.5em; }
.ssabschnitt { margin: 6px 0 2px; font-size: .95em; font-weight: 700; }
.ssreihe { display: flex; gap: 8px; margin: 0; padding: 2px 2px 6px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; }
.ssreihe > li { flex: none; scroll-snap-align: start; display: flex; align-items: stretch; gap: 2px; }
.ssweiter, .ssplan { display: flex; align-items: center; gap: 8px; min-height: 52px; max-width: 260px; margin: 0; padding: 6px 12px 6px 6px; border-radius: 14px;
  border: 2px solid var(--gruen-dunkel); background: var(--karte); color: var(--tinte); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.ssweiter { background: color-mix(in srgb, var(--gruen-dunkel) 16%, var(--karte)); }
.ssweiter > span, .ssplan > span { display: flex; flex-direction: column; min-width: 0; }
.ssweiter small, .ssplan small { font-size: .8em; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px; }
.ssweiterfig, .ssplanfig, .sszeilefig { width: 38px; height: 38px; object-fit: contain; flex: none; }
.ssplan.sswie { border-width: 3px; }
.ssplan.zu { opacity: .6; border-style: dashed; }
.ssplan.ssplus { justify-content: center; flex-direction: column; gap: 0; min-width: 72px; padding: 6px 10px; border-style: dashed; }
.ssplan.ssplus b { font-size: 1.4em; line-height: 1; }
.ssplanknopf { min-width: 44px; min-height: 44px; margin: 0; padding: 0; border-radius: 12px; border: 1px solid var(--linie); background: var(--karte); color: var(--tinte); font-size: 1.1em; cursor: pointer; }
.ssplanli.bearbeiten { flex: 1 0 260px; }
.ssplanedit { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 48px 8px 8px; border-radius: 14px; border: 2px solid var(--gruen-dunkel); background: var(--karte); }
.ssplanedit .popupzu.ssplanweg { position: absolute; top: 4px; right: 4px; }
.ssplanname { display: flex; flex-direction: column; gap: 2px; font-size: .85em; flex: 1 1 160px; }
.ssplanname input { min-height: 44px; font: inherit; font-size: 1.05rem; padding: 4px 8px; border-radius: 10px; border: 1px solid var(--linie); background: var(--grund); color: var(--tinte); }
.ssbanner { display: block; margin: 4px 0; text-decoration: none; color: inherit; }
a.kasten.ssbanner { display: flex; align-items: center; gap: 10px; border: 2px solid var(--gruen-dunkel); }
.ssstapel { display: flex; flex-direction: column; }
.sstipp, .sssperre { margin: -4px 0 8px; font-size: .9em; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sszeile { display: flex; align-items: center; gap: 8px; margin: 2px 0; font-size: .92em; }
.sszeile .leise { min-width: 44px; min-height: 44px; margin: 0 0 0 auto; }
.sslinks { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px; }
.ssextras { margin-top: 4px; }
.ssheute { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0; font-size: .9em; }
.ssheute .ssheutewort { font-weight: 700; }
.ssheute .tagzeile { margin: 0; }
/* Im Spielstart klappt die Erklaerung in der Zeile auf (nicht schwebend): schwebend lag sie unter der festen Fussleiste
   (Fund des Autors 18.10.2026, App 302). Offen nimmt die Zeile die volle Breite und schiebt den Rest nach unten. */
.ssheute .tagzeile[open] { flex-basis: 100%; width: 100%; }
.ssheute .tagzeileinnen { position: relative; left: auto; top: auto; transform: none; width: 100%; margin-top: 6px; animation-name: ssheuteauf; }
.ssheute .tagzeileinnen .tagzeilefig { top: 4px; left: 4px; width: 80px; height: 84px; }   /* bleibt im Feld, verdeckt die Zeile darueber nicht */
@keyframes ssheuteauf { from { opacity: 0; transform: translateY(-4px); } }
.sszahlen { display: flex; flex-wrap: wrap; gap: 6px; }
.sszahlen button.sszahl { min-width: 48px; min-height: 48px; margin: 0; border-radius: 12px; border: 2px solid var(--gruen-dunkel); background: var(--karte); color: var(--tinte); font: inherit; font-size: 1.15em; font-weight: 700; cursor: pointer; }
.sszahlen button.sszahl.an { background: var(--gruen-dunkel); color: var(--auf-gruen); }
.ssausstatten .sitzkreis { margin: 8px auto; }
.ssbereit { display: grid; gap: 6px; margin: 4px 0 10px; }
.ssbereit > div { display: grid; grid-template-columns: minmax(84px, 30%) 1fr; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--karte); border: 1px solid var(--linie); }
.ssbereit dt { font-weight: 700; }
.ssbereit dd { margin: 0; overflow-wrap: break-word; }
.ssmerken { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
@media (max-width: 459px) { .ssweiter, .ssplan { max-width: 220px; } .ssbereit > div { grid-template-columns: 1fr; gap: 2px; } }
/* App 302: die Fussleiste des Spielstarts steht ueber dem Band (Impressum ...), nicht dahinter. */
body.mitband .ssfuss { bottom: var(--fussh, 0px); }
.sspfad { flex-wrap: wrap; }
/* die Musik-Frage verdraengt den Stapel nicht; Los startet die Musik */
.ssstart { padding-bottom: 8px; }
.ssstart { gap: 2px; }
.sssegment { gap: 2px; margin: 2px 0 6px; }
.sssegment .ssfrage, .ssmehrfach .ssfrage { font-size: .8em; font-weight: 700; opacity: .85; }
.sssegment button.ssfeld { flex-direction: row; flex-wrap: wrap; gap: 0 5px; padding: 4px 4px; min-height: 44px; }
.ssfeld .ssfig { width: 22px; height: 22px; }
.ssfeld .ssunter, .ssfeld .ssgrund { flex-basis: 100%; text-align: center; }
.sskobold { top: -14px; right: -5px; width: 27px; height: 27px; }
.ssreihe { gap: 6px; padding: 2px 2px 4px; }
.ssplaene, .ssweiterleiste { margin: 0; }
.ssweiter, .ssplan { min-height: 44px; padding: 2px 12px 2px 4px; border-radius: 22px; gap: 5px; max-width: 230px; white-space: nowrap; }
.ssplan b, .ssweiter b { overflow: hidden; text-overflow: ellipsis; }
.ssweiter > span { flex-direction: row; align-items: baseline; gap: 5px; }
.ssweiter small { max-width: 120px; }
.ssweiterfig, .ssplanfig { width: 28px; height: 28px; }
.ssplan.sswie { border-width: 2px; padding-left: 12px; background: color-mix(in srgb, var(--gruen-dunkel) 14%, var(--karte)); }
.ssplan.ssplus { min-width: 44px; padding: 2px 10px; flex-direction: row; }
.ssplanknopf { min-width: 36px; min-height: 44px; border-radius: 22px; }
.sszeile { font-size: .85em; margin: 0; }
.sszeilefig { width: 26px; height: 26px; }
.ssheute { font-size: .85em; margin: 2px 0; }
/* Pfadleiste: eine Zeile, waagerecht wischbar; die Punkte zeigen den Schritt. */
.sspfad { flex-wrap: nowrap; margin: 2px 0 4px; }
.ssglieder { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.ssglieder::-webkit-scrollbar { display: none; }
.sspfad button.ssgliedknopf { padding: 4px 3px; min-width: 44px; }
/* Bereit: eine Zeile je Teil */
.ssbereit > div { display: flex; flex-wrap: wrap; gap: 0 8px; padding: 6px 10px; grid-template-columns: none; }
.ssbereit dt::after { content: ":"; }
@media (max-width: 459px) { .ssbereit > div { display: flex; } }
@media (max-width: 459px) { .sssegment button.ssfeld { font-size: .86em; padding: 3px 3px; gap: 0 4px; } .ssfeld .ssfig { width: 18px; height: 18px; } .ssfeld .ssunter { display: none; } /* am Handy ohne Untertitel: das Wort genuegt (Befund der Hauptsitzung) */
  .sssegment { margin: 1px 0 4px; } }
.sstext .sskurz { display: none; }
@media (max-width: 459px) { .sstext .ssvoll { display: none; } .sstext .sskurz { display: inline; } }
@media (max-width: 459px) { .ssbahn { padding: 2px; gap: 2px; } .sssegment .ssfrage { line-height: 1.1; } .sssegment button.ssfeld { min-height: 44px; line-height: 1.05; } .ssgrund { font-size: .7em; } }
.ssfuss { z-index: 10; }   /* ueber Stapel und Zeilen (tagzeile 5), unter Popups (dpopup 20, boxregeln 40) */
.sszahlen { gap: 4px; flex-wrap: nowrap; }
.sszahlen button.sszahl { flex: 1 1 44px; min-width: 44px; }
.sspfad button.ssgliedknopf { color: var(--tinte); }   /* Kontrast 4,5:1 auch auf hellem Grund (axe, App 302) */
/* Figuren der Segmentfelder links auf dem Knopf, leicht ueber den linken und oberen Rand hinaus (Wunsch des Autors 18.10.2026).
   Der Text bekommt links Platz; das gewaehlte Feld traegt weiter den Kobold oben rechts (.sskobold). */
.ssbahn { overflow: visible; }
.sssegment button.ssfeld:has(.ssfig) { padding-left: 42px; }
.ssfeld .ssfig { position: absolute; left: -9px; top: -13px; width: 46px; height: 46px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); pointer-events: none; z-index: 1; }
@media (max-width: 459px) { .sssegment button.ssfeld:has(.ssfig) { padding-left: 28px; } .ssfeld .ssfig { left: -6px; top: -10px; width: 34px; height: 34px; } }
/* App 304 (EINFUEHRUNG-SCHACHTELN-PLAN.md, Paket K): Schachtel-Leiste von Einfuehrung und Regelheft (Marke und "schon gelernt" am Chip) */
.sschip .ssmarke { display: inline-block; flex: none; width: 30px; height: 30px; }
.sschip .ssmarke svg { display: block; width: 100%; height: 100%; }
.sschip .ssfertig { font-size: .74em; font-weight: 400; padding: 1px 6px; border-radius: 9px; background: var(--gruen-hell); color: var(--tinte); }
.ssleiste { margin: 6px 0 4px; }
.ssleiste .ssleistehinweis { margin: 0 0 6px; font-size: .85em; }



/* ============================================================
   App 398 (Wunsch des Autors 8.11.2026): was wo einstellbar ist, auf einen Blick.
   Karten "Euer Spiel" im Spielstart und im Bereit (BEWEGUNG.einstellKartenHtml), Reiter oben im Ausstatten (reiterHtml).
   ============================================================ */
.sskarten { margin: 6px 0 4px; }
.sskartentitel { margin: 4px 0 6px; font-size: .95em; font-weight: 700; }
.sskartenliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.sskartenliste > li { margin: 0; }
button.sskarte { width: 100%; min-height: 56px; margin: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 14px; border: 2px solid var(--gruen-dunkel); background: var(--karte); color: var(--tinte); font: inherit;
  text-align: left; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
button.sskarte:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gruen-dunkel) 25%, transparent); }
button.sskarte:focus-visible { outline: 3px solid var(--gruen-dunkel); outline-offset: 2px; }
button.sskarte:active { transform: scale(.98); }
.sskartebild { display: grid; place-items: center; width: 44px; height: 44px; }
.sskartebild .figur, .sskartefig { width: 44px; height: 44px; object-fit: contain; }
.sskartetext { display: grid; gap: 1px; min-width: 0; }
.sskartetext b { font-size: 1em; }
.sskartetext span { font-size: .88em; overflow-wrap: anywhere; }
.sskarteaendern { font-size: .82em; font-weight: 700; padding: 3px 8px; border-radius: 10px; background: var(--gruen-dunkel); color: var(--auf-gruen); white-space: nowrap; }
html.glanz button.sskarte { box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(0, 0, 0, .1), 0 2px 5px rgba(42, 33, 24, .18); }
html.glanz .sskartebild .figur { filter: drop-shadow(0 2px 2px rgba(42, 33, 24, .3)); }
@media (prefers-reduced-motion: reduce) { button.sskarte { transition: none; } button.sskarte:active { transform: none; } }
html[data-bewegung="aus"] button.sskarte { transition: none; }
/* Reiter statt Punkten */
.sspfad.mitreiter { margin-bottom: 4px; }
.ssreiter { list-style: none; display: flex; gap: 4px; margin: 0 0 8px; padding: 0; }
.ssreiter > li { flex: 1 1 0; min-width: 0; margin: 0; }
button.ssreiterknopf { width: 100%; min-height: 44px; margin: 0; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 4px 4px;
  border-radius: 12px; border: 2px solid var(--linie); background: var(--karte); color: var(--tinte); font: inherit; font-size: .85em; cursor: pointer; }
button.ssreiterknopf.fertig { border-color: var(--gruen-dunkel); }
button.ssreiterknopf.an { background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); color: var(--auf-gruen); font-weight: 700; }
button.ssreiterknopf:focus-visible { outline: 3px solid var(--gruen-dunkel); outline-offset: 2px; }
.ssreiterzeichen { flex: none; display: inline-grid; place-items: center; min-width: 1.3em; height: 1.3em; border-radius: 50%; font-size: .85em; font-weight: 700;
  border: 1.5px solid currentColor; }
.ssreitertext { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Am Handy: ganze Woerter statt "Rege...", das Zeichen sitzt als kleiner Knopf oben rechts (nur Haken und aktueller Schritt) */
@media (max-width: 459px) {
  button.ssreiterknopf { position: relative; font-size: .8em; padding: 4px 2px; }
  .ssreitertext { overflow: visible; text-overflow: clip; }
  .ssreiterzeichen { position: absolute; top: -7px; right: -5px; min-width: 18px; height: 18px; font-size: .72em; background: var(--karte); color: var(--gruen-dunkel); border-color: var(--gruen-dunkel); }
  button.ssreiterknopf:not(.fertig) .ssreiterzeichen { display: none; } }
@media (max-width: 380px) { button.ssreiterknopf { font-size: .74em; } }
html[data-kontrast="hoch"] button.sskarte, html[data-kontrast="hoch"] button.ssreiterknopf { border-width: 3px; }
@media (forced-colors: active) { button.sskarte, button.ssreiterknopf { border: 2px solid ButtonText; } button.ssreiterknopf.an { outline: 3px solid Highlight; } }
/* Nacharbeit 398 (Koordination 8.11.2026): am Handy "auf einen Blick" - Kacheln im Raster statt grosser Karten */
.sskartenhinweis { font-size: .8em; font-weight: 400; opacity: .85; }
.sskartekurz { display: none; }
.sskartenliste { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
@media (max-width: 459px) {
  .sskarten { margin: 2px 0 2px; }
  .sskartentitel { margin: 0 0 3px; font-size: .85em; }
  .sskartenliste { grid-template-columns: repeat(var(--ss-sp, 3), minmax(0, 1fr)); gap: 4px; }
  /* der Kobold sitzt klein oben links auf der Kachel (wie bei den Segmentfeldern), der Text bekommt die ganze Breite */
  button.sskarte { position: relative; min-height: 52px; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px 13px 4px 20px; border-radius: 11px; align-items: center; }
  .sskartebild { position: absolute; left: -5px; top: -9px; width: 26px; height: 26px; pointer-events: none; z-index: 1; }
  .sskartebild .figur, .sskartefig { width: 26px; height: 26px; }
  .sskartetext { gap: 0; line-height: 1.12; }
  .sskartetext b { font-size: .8em; overflow-wrap: break-word; hyphens: auto; }
  .sskartewert.mitkurz { display: none; }
  .sskartekurz { display: block; font-size: .74em; overflow-wrap: break-word; hyphens: auto; }
  .sskartetext > span { font-size: .74em; }
  .sskarteaendern { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); padding: 0; background: none; color: var(--tinte); font-size: 1em; }
  .sskartewort { display: none; } }
/* Segment mit fuenf Feldern ("Was spielst du?") am Handy 3 + 2, sechs Felder 3 + 3: nichts ueberlappt, kein Wort abgeschnitten */
@media (max-width: 459px) {
  .sssegment[style*="--ss-n:5"] .ssbahn { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 8px; }
  .sssegment[style*="--ss-n:5"] .ssbahn > .ssfeld { grid-column: span 2; }
  .sssegment[style*="--ss-n:5"] .ssbahn > .ssfeld:nth-child(n+4) { grid-column: span 3; }
  .sssegment[style*="--ss-n:6"] .ssbahn { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .sssegment .ssfeld .sstext { hyphens: manual; overflow-wrap: normal; } }
/* Die schwebende BUGCAM (unten links) liegt nie ueber "Zurueck": die Fussleiste laesst ihr links Platz */
body:has(.bugcam-schwebe) .ssfuss { padding-left: 66px; }
/* Ohne "Anpassen"/"Weiter" (Teil A, Bereit): nur Zurueck | Los, Zurueck bleibt einzeilig (weniger Hoehe, mehr Platz fuer die Kacheln) */
.ssfuss:has(> .ssfussluecke) { grid-template-columns: 1fr 1.6fr; }
.ssfuss > .ssfussluecke { display: none; }
