/* =====================================================================
   Ki-Krieger – Oberfläche
   Design-Tokens: Nacht-Palette (Tiefblau, Violett, Ki-Blau, Gold, Orange), Bangers (Display) + Nunito (Text).
   Signatur-Element: der Ki-Knopf (Super-Form) unten rechts mit Ladering.
   ===================================================================== */

@font-face { font-family: 'Bangers'; src: url('fonts/Bangers.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/Nunito.woff2') format('woff2'); font-weight: 200 1000; font-style: normal; font-display: swap; }

:root {
  --nacht: #0E1A3A;
  --nacht-2: #182A4A;
  --violett: #5B2A86;
  --ki: #4FC3FF;
  --ki-dunkel: #1E8FD0;
  --gold: #FFC93C;
  --orange: #FF7A1A;
  --rot: #FF5A5A;
  --gruen: #5CFF8A;
  --creme: #F6F0DC;
  --creme-dunkel: #E4D9BC;
  --kohle: #1B2430;
  --kohle-2: #2E3A4E;
  --weiss: #FFFDF7;
  --schrift-display: 'Bangers', 'Impact', 'Arial Black', system-ui, sans-serif;
  --schrift-text: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rand: clamp(14px, 4vw, 28px);
  --luft: clamp(8px, 2.2vh, 24px);
  --radius: 22px;
  --schatten: 0 6px 0 rgba(14, 26, 58, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; height: 100%; }
body {
  margin: 0; min-height: 100dvh; overflow: hidden;
  font-family: var(--schrift-text); color: var(--kohle);
  background: radial-gradient(ellipse at 50% 20%, #2A3F72 0%, var(--nacht) 60%, #070D22 100%);
  -webkit-tap-highlight-color: transparent; overscroll-behavior: none; touch-action: none; user-select: none; -webkit-user-select: none;
}
[hidden] { display: none !important; }
#buehne { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#ui { position: fixed;  pointer-events: none; top: env(safe-area-inset-top, 0px); right: env(safe-area-inset-right, 0px); bottom: env(safe-area-inset-bottom, 0px); left: env(safe-area-inset-left, 0px); }
.schirm { pointer-events: auto; }
.schirm--voll { position: absolute; inset: 0; display: flex; flex-direction: column; padding: var(--rand); }
.schirm--dialog { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--rand); background: rgba(7, 13, 34, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.mono { font-family: var(--schrift-display); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Knöpfe ---------- */
.knopf {
  font-family: var(--schrift-display); font-size: clamp(1.1rem, 2.4vh + .4rem, 1.5rem); letter-spacing: .06em;
  color: var(--kohle); background: var(--ki); border: 3px solid var(--kohle); border-radius: 999px; padding: .5em 1.5em;
  min-height: 48px; min-width: 48px; box-shadow: var(--schatten); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  line-height: 1.1; transition: transform .08s ease, box-shadow .08s ease, background .15s ease; max-width: 100%;
}
.knopf:hover { background: #7FD6FF; }
.knopf:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(14, 26, 58, .5); }
.knopf:focus-visible { outline: 4px solid var(--weiss); outline-offset: 2px; }
.knopf--gross { font-size: clamp(1.5rem, 3.4vh + .5rem, 2.2rem); padding: .45em 1.5em; flex-direction: column; gap: 0; }
.knopf--gross small { font-family: var(--schrift-text); font-weight: 800; font-size: .48em; letter-spacing: .04em; text-transform: uppercase; opacity: .75; }
.knopf--leise { background: var(--creme); }
.knopf--leise:hover { background: var(--weiss); }
.knopf--koop { background: var(--gold); }
.knopf--duell { background: var(--orange); color: var(--kohle); }
/* Koop + Duell nebeneinander, damit drei große Knöpfe auch auf 720 px Höhe ins Bild passen */
.start__doppel { display: flex; gap: var(--luft); width: min(100%, 620px); justify-content: center; }
.start__doppel .knopf--gross { flex: 1 1 0; min-width: 0; font-size: clamp(1.15rem, 2.4vh + .4rem, 1.6rem); padding: .4em 1em; white-space: normal; }
@media (max-width: 34rem) { .start__doppel { flex-direction: column; width: 100%; align-items: stretch; } }
.knopf--duell:hover { background: #FF9A4A; }
.knopf--koop:hover { background: #FFD972; }
.knopf--aktiv { background: var(--gold); }
.knopf--rund { width: 48px; height: 48px; padding: 0; border-radius: 50%; background: var(--creme); }
.knopf--rund svg { width: 26px; height: 26px; fill: currentColor; }
.knopf[disabled] { opacity: .5; cursor: default; transform: none; }
.ico-ton-aus { display: none; }
.knopf[aria-pressed="false"] .ico-ton-an { display: none; }
.knopf[aria-pressed="false"] .ico-ton-aus { display: block; }

.gold { display: inline-flex; align-items: center; gap: .4em; font-family: var(--schrift-display); font-size: 1.15rem; letter-spacing: .05em; color: var(--kohle); background: var(--creme); border: 3px solid var(--kohle); border-radius: 999px; padding: .25em .9em .25em .55em; box-shadow: var(--schatten); }
.ico-gold { width: 1.2em; height: 1.2em; fill: var(--gold); stroke: var(--kohle); stroke-width: 2; }

/* ---------- Start ---------- */
.start { justify-content: space-between; align-items: center; text-align: center; overflow-y: auto; overscroll-behavior: contain; }   /* passt es nicht (quer, iPhone-App mit Statusleiste), wird gescrollt statt abgeschnitten */
.start__kopf { padding-top: calc(var(--luft) * 1.2); }
.titel {
  margin: 0; font-family: var(--schrift-display); font-weight: 400; font-size: clamp(3.2rem, min(16vw, 12vh), 7rem); line-height: .9; letter-spacing: .04em;
  color: var(--ki); text-shadow: 0 4px 0 var(--kohle), 0 8px 0 rgba(0, 0, 0, .35), 0 0 30px rgba(79, 195, 255, .5); display: flex; flex-direction: column; transform: rotate(-3deg);
}
.titel span:last-child { color: var(--gold); text-shadow: 0 4px 0 var(--kohle), 0 8px 0 rgba(0, 0, 0, .35), 0 0 30px rgba(255, 201, 60, .5); }
.untertitel { margin: var(--luft) 0 0; font-weight: 800; font-size: clamp(1rem, 2.2vh + .3rem, 1.3rem); color: var(--kohle); background: var(--creme); border: 3px solid var(--kohle); border-radius: 999px; padding: .3em 1em; display: inline-block; box-shadow: var(--schatten); }
.start__mitte { display: flex; flex-direction: column; gap: var(--luft); align-items: center; margin-top: auto; padding-top: max(1dvh, calc(14dvh - var(--sicher-hoehe))); }
.start__reihe { display: flex; gap: var(--luft); flex-wrap: wrap; justify-content: center; }
.start__fuss { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--luft); margin-top: auto; padding-top: var(--luft); }
.hinweis { margin: 0; font-weight: 800; font-size: .95rem; color: var(--creme); text-shadow: 0 2px 0 var(--kohle); flex: 1; }
.textlink { font-family: var(--schrift-text); font-weight: 800; font-size: .95rem; color: var(--creme); text-shadow: 0 2px 0 var(--kohle); background: none; border: 0; padding: 10px 8px; min-height: 40px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.textlink:focus-visible { outline: 4px solid var(--weiss); outline-offset: 2px; border-radius: 8px; }
.rechtliches { display: inline-flex; align-items: center; gap: 2px; color: var(--creme); text-shadow: 0 2px 0 var(--kohle); font-weight: 800; }
.credit { margin: 4px 0 0; font-family: var(--schrift-display); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--creme); opacity: .45; }
kbd { font-family: var(--schrift-display); background: var(--creme); color: var(--kohle); border-radius: 6px; padding: 0 .35em; text-shadow: none; border: 2px solid var(--kohle); }

/* ---------- Tafeln ---------- */
.tafel { padding: 0; background: rgba(7, 13, 34, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tafel__kopf { display: flex; align-items: center; gap: var(--luft); padding: var(--rand) var(--rand) calc(var(--luft) * .6); }
.tafel__kopf h2 { flex: 1; margin: 0; font-family: var(--schrift-display); font-weight: 400; font-size: clamp(1.9rem, 5vh, 2.8rem); letter-spacing: .06em; color: var(--creme); text-shadow: 0 3px 0 var(--kohle); text-align: center; }
.tafel__platz { width: 48px; }
.tafel__inhalt { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--rand) var(--rand); touch-action: pan-y; }
.tafel__text { margin: 0 0 var(--luft); text-align: center; color: var(--creme); font-weight: 800; text-shadow: 0 2px 0 var(--kohle); }

.charakterraster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 14px); max-width: 900px; margin: 0 auto; }
.char-karte { border: 3px solid var(--kohle); border-radius: 18px; background: var(--creme); box-shadow: var(--schatten); padding: 10px 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer; transition: transform .08s ease; font-family: var(--schrift-text); }
.char-karte:hover { transform: translateY(-2px); }
.char-karte:focus-visible { outline: 4px solid var(--weiss); outline-offset: 2px; }
.char-karte--aktiv { background: var(--ki); }
.char-karte--gesperrt { opacity: .78; }
.char-karte__bild { width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #2A3F72, var(--nacht)); border: 3px solid var(--kohle); display: grid; place-items: center; overflow: hidden; }
.char-karte__canvas { width: 96px; height: 96px; }
.char-karte__name { font-family: var(--schrift-display); font-size: 1.3rem; letter-spacing: .06em; }
.char-karte__text { font-size: .82rem; font-weight: 700; line-height: 1.3; }
.char-karte__status { font-family: var(--schrift-display); font-size: .9rem; letter-spacing: .05em; background: var(--weiss); border: 2px solid var(--kohle); border-radius: 999px; padding: .15em .7em; }
.char-karte--gesperrt .char-karte__status { color: var(--violett); }

.ladenraster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 14px); max-width: 900px; margin: 0 auto; }
.laden-karte { border: 3px solid var(--kohle); border-radius: 18px; background: var(--creme); box-shadow: var(--schatten); padding: 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer; font-family: var(--schrift-text); transition: transform .08s ease; }
.laden-karte:hover:not([disabled]) { transform: translateY(-2px); }
.laden-karte:focus-visible { outline: 4px solid var(--weiss); outline-offset: 2px; }
.laden-karte b { font-family: var(--schrift-display); font-weight: 400; font-size: 1.2rem; letter-spacing: .05em; }
.laden-karte__text { font-size: .8rem; font-weight: 700; line-height: 1.3; }
.laden-karte__stufen { display: flex; gap: 4px; }
.laden-karte__stufen i { width: 14px; height: 10px; border-radius: 3px; background: var(--creme-dunkel); border: 2px solid var(--kohle); }
.laden-karte__stufen i.an { background: var(--gold); }
.laden-karte__preis { font-family: var(--schrift-display); font-size: .95rem; letter-spacing: .04em; display: inline-flex; align-items: center; gap: .25em; background: var(--weiss); border: 2px solid var(--kohle); border-radius: 999px; padding: .1em .6em; }
.laden-karte--voll { opacity: .75; }

/* ---------- Lobby ---------- */
.lobby { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--luft); align-items: center; color: var(--creme); text-align: center; }
.lobby__wahl { display: flex; flex-direction: column; gap: var(--luft); align-items: center; width: 100%; }
.lobby__oder { font-family: var(--schrift-display); letter-spacing: .1em; text-shadow: 0 2px 0 var(--kohle); }
.lobby__beitreten { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; width: 100%; }
.lobby__beitreten label { width: 100%; font-weight: 800; text-shadow: 0 2px 0 var(--kohle); }
.lobby__tipp { margin: 0; font-size: .9rem; font-weight: 700; text-shadow: 0 2px 0 var(--kohle); max-width: 420px; }
.lobby__raum { display: flex; flex-direction: column; gap: 8px; align-items: center; width: 100%; }
.lobby__label { margin: 0; font-weight: 800; text-shadow: 0 2px 0 var(--kohle); }
.lobby__code { margin: 0; font-family: var(--schrift-display); font-size: clamp(3rem, 12vw, 5rem); letter-spacing: .25em; color: var(--gold); text-shadow: 0 4px 0 var(--kohle); background: rgba(27, 36, 48, .6); border: 3px solid var(--kohle); border-radius: 18px; padding: .1em .4em .1em .65em; }
.lobby__status { margin: 0; font-weight: 800; text-shadow: 0 2px 0 var(--kohle); min-height: 1.4em; }
.lobby__status--fehler { color: var(--rot); }
.lobby__spieler { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 6px; }
.lobby__spieler li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; background: var(--creme); color: var(--kohle); border: 3px solid var(--kohle); border-radius: 14px; padding: 8px 14px; font-weight: 800; }
.lobby__spieler li b { font-family: var(--schrift-display); font-weight: 400; letter-spacing: .05em; font-size: 1.15rem; text-align: left; }
.lobby__spieler li i { font-style: normal; color: #2FA84A; }
.lobby__spieler li b small { font: 800 .7rem var(--schrift-text); letter-spacing: .05em; color: var(--violett); vertical-align: middle; }
.lobby__spieler li.lobby__ich { outline: 3px solid var(--ki); outline-offset: -3px; }
.lobby__spieler li.lobby__frei { opacity: .5; background: transparent; color: var(--creme); border-style: dashed; }
.lobby__modus { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lobby__modus .knopf { font-size: 1rem; opacity: .6; }
.lobby__modus .knopf.knopf--aktiv { opacity: 1; background: var(--orange); }
.duell { display: flex; flex-direction: column; align-items: center; gap: var(--luft); }
.duell__text { margin: 0 auto; max-width: 40rem; text-align: center; color: var(--creme); font-weight: 700; text-shadow: 0 2px 0 var(--kohle); }
.duell__raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--luft); width: min(100%, 720px); margin: 0 auto; }
.duell-karte { border: 3px solid var(--kohle); border-radius: 18px; background: var(--creme); box-shadow: var(--schatten); padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer; font-family: var(--schrift-text); color: var(--kohle); transition: transform .08s ease; min-height: 44px; }
.duell-karte:hover { transform: translateY(-3px); }
.duell-karte b { font-family: var(--schrift-display); font-weight: 400; font-size: 1.5rem; letter-spacing: .05em; }
.duell-karte--leicht b { color: #2FA84A; } .duell-karte--mittel b { color: #D27A12; } .duell-karte--schwer b { color: var(--rot); }
.duell-karte__text { font-size: .9rem; font-weight: 700; color: var(--kohle-2); }
.duell-karte__bilanz { font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--violett); }
.ergebnis__werte--duell dd { font-size: 1.1rem; }
@media (max-width: 34rem) { .duell__raster { grid-template-columns: minmax(0, 1fr); } .duell-karte { flex-direction: row; justify-content: space-between; text-align: left; padding: 10px 14px; } .duell-karte b { font-size: 1.3rem; } .duell-karte__text { display: none; } }
input[type="text"] { font: 800 1.05rem var(--schrift-text); color: var(--kohle); background: var(--weiss); border: 3px solid var(--kohle); border-radius: 999px; padding: .45em 1em; min-height: 48px; width: min(100%, 220px); text-align: center; }
#lobby-code-eingabe { font-family: var(--schrift-display); font-size: 1.6rem; letter-spacing: .25em; width: 150px; text-transform: uppercase; }
input:focus-visible { outline: 4px solid var(--ki); outline-offset: 2px; }
input, textarea { -webkit-user-select: text !important; user-select: text !important; -webkit-touch-callout: default; touch-action: manipulation; }
button, a, label { touch-action: manipulation; }

/* ---------- Bestenliste ---------- */
.bestenliste { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; pointer-events: auto; }
.bestenliste__modi { display: flex; gap: 8px; justify-content: center; }
.bestenliste__modi .knopf { background: var(--creme); font-size: 1rem; }
.bestenliste__modi .knopf--aktiv { background: var(--gold); }
.bestenliste__info { margin: 0; font-weight: 800; color: var(--creme); text-shadow: 0 2px 0 var(--kohle); text-align: center; font-size: .95rem; }
.bestenliste__liste { list-style: none; margin: 0; padding: 8px; background: var(--creme); border: 3px solid var(--kohle); border-radius: 18px; box-shadow: var(--schatten); display: flex; flex-direction: column; gap: 2px; font-family: var(--schrift-display); letter-spacing: .04em; }
.bestenliste__liste li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 8px; border-radius: 10px; }
.bestenliste__liste li:nth-child(1) { background: var(--gold); }
.bestenliste__liste li:nth-child(2) { background: #E8E2D2; }
.bestenliste__liste li:nth-child(3) { background: #F0D9B8; }
.bestenliste__liste li.bl--du { outline: 3px solid var(--ki-dunkel); outline-offset: -3px; }
.bestenliste__liste .bl__platz { opacity: .6; }
.bestenliste__liste .bl__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--schrift-text); font-weight: 800; letter-spacing: 0; }
.bestenliste__laden { justify-content: center; opacity: .6; }
.bestenliste__hinweis { margin: 0; font-weight: 800; color: var(--creme); text-shadow: 0 2px 0 var(--kohle); text-align: center; }
.dialog .bestenliste__hinweis { color: var(--rot); text-shadow: none; }
.bestenliste__hinweis--gut { color: #2FA84A !important; }
.bestenliste__name, .bestenliste__eintrag { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; width: 100%; }
.bestenliste__name label { font-weight: 800; color: var(--creme); text-shadow: 0 2px 0 var(--kohle); width: 100%; text-align: center; }

/* ---------- Dialoge ---------- */
.dialog { width: min(100%, 440px); background: var(--creme); border: 3px solid var(--kohle); border-radius: var(--radius); box-shadow: var(--schatten); padding: clamp(18px, 4vh, 30px) clamp(16px, 4vw, 28px); display: flex; flex-direction: column; align-items: center; gap: var(--luft); text-align: center; max-height: calc(100dvh - 2 * var(--rand) - var(--sicher-hoehe)); overflow-y: auto; }
.dialog h2 { margin: 0; font-family: var(--schrift-display); font-weight: 400; font-size: clamp(1.9rem, 5vh, 2.8rem); letter-spacing: .06em; line-height: 1; }
.dialog__reihe { display: flex; gap: var(--luft); flex-wrap: wrap; justify-content: center; }
.dialog .knopf--gross { font-size: clamp(1.3rem, 2.8vh + .4rem, 1.8rem); padding-inline: 1.2em; }
.ergebnis__text { margin: 0; font-weight: 700; }
.ergebnis__rekord { margin: 0; font-family: var(--schrift-display); font-size: 1.3rem; letter-spacing: .06em; color: var(--orange); animation: rekord-pop .6s cubic-bezier(.2, 1.6, .5, 1); }
@keyframes rekord-pop { from { transform: scale(.4); } to { transform: scale(1); } }
.ergebnis__werte { margin: 0; width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ergebnis__werte div { background: var(--weiss); border: 2px solid var(--kohle); border-radius: 14px; padding: 8px 2px; }
.ergebnis__werte dt { font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--kohle-2); }
.ergebnis__werte dd { margin: 2px 0 0; font-family: var(--schrift-display); font-size: 1.25rem; letter-spacing: .04em; }
.ergebnis--fehl h2 { color: var(--rot); }

/* Level-up-Karten */
.dialog.levelup { width: min(100%, 720px); background: rgba(27, 36, 48, .92); border-color: var(--ki); color: var(--creme); }
.dialog.levelup h2 { color: var(--gold); text-shadow: 0 3px 0 var(--kohle); }
.karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.karte { --f: var(--ki); border: 3px solid var(--kohle); border-radius: 18px; background: var(--creme); color: var(--kohle); box-shadow: 0 6px 0 var(--kohle); padding: 14px 10px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; text-align: center; font-family: var(--schrift-text); transition: transform .1s ease; position: relative; min-height: 190px; }
.karte:hover, .karte:focus-visible { transform: translateY(-4px); outline: 4px solid var(--f); outline-offset: 2px; }
.karte__symbol { width: 58px; height: 58px; border-radius: 50%; background: var(--f); border: 3px solid var(--kohle); display: grid; place-items: center; font-size: 1.9rem; color: var(--kohle); }
.karte__name { font-family: var(--schrift-display); font-weight: 400; font-size: 1.25rem; letter-spacing: .05em; line-height: 1.05; }
.karte__stufe { font-family: var(--schrift-display); font-size: .85rem; letter-spacing: .1em; background: var(--f); border: 2px solid var(--kohle); border-radius: 999px; padding: .05em .6em; }
.karte__stufe:empty { display: none; }
.karte__text { font-size: .82rem; font-weight: 700; line-height: 1.3; }
.karte--neu .karte__stufe { background: var(--gold); }

/* Anleitung */
.dialog.anleitung { width: min(100%, 560px); }
.anleitung__liste { list-style: none; margin: 0; padding: 0 4px 26px 0; width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; min-height: 0; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent); }
.anleitung__liste li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; background: var(--weiss); border: 2px solid var(--kohle); border-radius: 14px; padding: 10px 12px; font-size: .92rem; font-weight: 600; line-height: 1.4; }
.anleitung__liste svg { width: 34px; height: 34px; fill: var(--kohle); color: var(--kohle); margin-top: 2px; }
.anleitung__liste b { font-family: var(--schrift-display); font-weight: 400; letter-spacing: .04em; }
.anleitung__liste li > div > b:first-child { display: block; font-size: 1.1rem; margin-bottom: 2px; }
.anleitung__liste kbd { font-size: .8em; }
@media (min-width: 46rem) { .dialog.anleitung { width: min(100%, 860px); } .anleitung__liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- HUD ---------- */
.hud { position: absolute; inset: 0; pointer-events: none; padding: var(--rand); }
.hud .knopf, .hud .super-knopf { pointer-events: auto; }
.hud__xp { position: absolute; left: 0; right: 0; top: 0; height: 18px; background: rgba(27, 36, 48, .85); border-bottom: 3px solid var(--kohle); }
.hud__xp-balken { height: 100%; width: 0; background: linear-gradient(90deg, var(--ki-dunkel), var(--ki)); transition: width .15s linear; }
.hud__level { position: absolute; left: 50%; top: 0; transform: translateX(-50%); font-family: var(--schrift-display); font-size: .95rem; letter-spacing: .1em; color: var(--creme); line-height: 18px; text-shadow: 0 2px 0 var(--kohle); }
.hud__zeile { display: flex; align-items: center; justify-content: space-between; gap: var(--luft); margin-top: 14px; }
.hud__box { display: inline-flex; align-items: center; gap: .35em; font-family: var(--schrift-display); font-size: 1.05rem; letter-spacing: .05em; color: var(--kohle); background: var(--creme); border: 3px solid var(--kohle); border-radius: 999px; padding: .2em .8em; box-shadow: var(--schatten); white-space: nowrap; }
.hud__hp .mono { color: var(--rot); }
.hud__zeit { font-family: var(--schrift-display); font-size: clamp(1.8rem, 5vh, 2.6rem); letter-spacing: .08em; color: var(--creme); text-shadow: 0 3px 0 var(--kohle), 0 6px 0 rgba(0, 0, 0, .3); }
.hud__welle { position: absolute; left: 50%; top: calc(var(--rand) + 64px); transform: translateX(-50%); font-family: var(--schrift-display); font-size: .95rem; letter-spacing: .1em; color: var(--creme); text-shadow: 0 2px 0 var(--kohle); white-space: nowrap; opacity: .9; }
/* Duell: zwei Lebensbalken oben mit Countdown dazwischen */
.hud__duell { position: absolute; left: 50%; top: calc(var(--rand) + 66px); transform: translateX(-50%); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; width: min(92vw, 640px); }
.hud__duell-seite { display: grid; gap: 3px; min-width: 0; }
.hud__duell-name { font-family: var(--schrift-display); letter-spacing: .06em; color: var(--creme); text-shadow: 0 2px 0 var(--kohle); font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud__duell-seite--gegner { text-align: right; }
.hud__duell-leiste { --f: var(--gruen); height: 14px; background: rgba(27, 36, 48, .85); border: 2px solid var(--kohle); border-radius: 999px; overflow: hidden; }
.hud__duell-leiste div { height: 100%; width: 100%; background: var(--f); transition: width .12s linear; }
.hud__duell-seite--gegner .hud__duell-leiste { transform: scaleX(-1); }
.hud__duell-hp { font-family: var(--schrift-display); font-size: .8rem; letter-spacing: .06em; color: var(--creme); text-shadow: 0 2px 0 var(--kohle); }
.hud__duell-uhr { font-family: var(--schrift-display); font-size: 1.5rem; letter-spacing: .06em; color: var(--gold); text-shadow: 0 3px 0 var(--kohle); }
.hud__zeit.knapp { color: var(--rot); }
.hud__boss { position: absolute; left: 50%; top: calc(var(--rand) + 96px); transform: translateX(-50%); width: min(70%, 480px); text-align: center; font-family: var(--schrift-display); letter-spacing: .08em; color: var(--rot); text-shadow: 0 2px 0 var(--kohle); }
.hud__boss-leiste { height: 12px; background: rgba(27, 36, 48, .85); border: 2px solid var(--kohle); border-radius: 999px; overflow: hidden; margin-top: 2px; }
.hud__boss-leiste div { height: 100%; width: 100%; background: linear-gradient(90deg, #B0203A, var(--rot)); transition: width .1s linear; }
.hud__boss--mega { color: var(--gold); }
.hud__boss--mega .hud__boss-leiste div { background: linear-gradient(90deg, #7A3FB0, var(--gold)); }
.hud__techniken { position: absolute; left: var(--rand); top: calc(var(--rand) + 78px); display: flex; flex-wrap: wrap; gap: 6px; max-width: 220px; }
.hud__technik { --f: var(--ki); position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--f); border: 2px solid var(--kohle); display: grid; place-items: center; font-size: 1rem; color: var(--kohle); font-weight: 800; }
.hud__technik--passiv { border-radius: 8px; }
.hud__technik em { position: absolute; left: -7px; top: -9px; font-style: normal; font-family: var(--schrift-display); font-size: .7rem; letter-spacing: .02em; text-shadow: 0 1px 0 var(--kohle), 0 -1px 0 var(--kohle), 1px 0 0 var(--kohle), -1px 0 0 var(--kohle); }
.hud__technik i { position: absolute; right: -6px; bottom: -6px; font-style: normal; font-family: var(--schrift-display); font-size: .75rem; background: var(--creme); border: 2px solid var(--kohle); border-radius: 999px; min-width: 18px; height: 18px; line-height: 14px; text-align: center; }
.hud__koop { position: absolute; right: calc(var(--rand) + 2px); top: calc(var(--rand) + 216px); font-family: var(--schrift-display); font-size: .9rem; letter-spacing: .1em; color: var(--gold); text-shadow: 0 2px 0 var(--kohle); }
#btn-pause { position: absolute; right: var(--rand); top: calc(var(--rand) + 20px); }
/* Gegenstände: vier Knöpfe unten links (Tasten 1–4) */
.hud__inventar { position: absolute; left: var(--rand); bottom: var(--rand); display: flex; gap: 8px; pointer-events: none; }
.inv-knopf { --f: var(--ki); position: relative; width: 54px; height: 54px; border-radius: 14px; border: 3px solid var(--kohle); background: var(--creme); box-shadow: var(--schatten); padding: 0; cursor: pointer; pointer-events: auto; display: grid; place-items: center; transition: transform .1s ease, opacity .2s ease; touch-action: manipulation; }
.inv-knopf__bild { width: 40px; height: 40px; display: block; }
.inv-knopf__zahl { position: absolute; right: -7px; top: -8px; font-style: normal; font-family: var(--schrift-display); font-size: .8rem; background: var(--f); color: var(--kohle); border: 2px solid var(--kohle); border-radius: 999px; min-width: 20px; height: 20px; line-height: 16px; text-align: center; }
.inv-knopf small { position: absolute; left: 4px; bottom: 1px; font: 800 .6rem var(--schrift-text); color: var(--kohle); opacity: .6; }
.inv-knopf--leer { opacity: .38; }
.inv-knopf--leer .inv-knopf__zahl { background: var(--creme); }
.inv-knopf--aktiv { background: var(--f); }
.inv-knopf:active:not(.inv-knopf--leer) { transform: scale(.92); }
.inv-knopf:focus-visible { outline: 4px solid var(--weiss); outline-offset: 2px; }
.hud__zeile { padding-right: 60px; }
.super-knopf { --ki: 0; position: absolute; right: var(--rand); bottom: var(--rand); width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--kohle); background: var(--creme); box-shadow: var(--schatten); cursor: pointer; display: grid; place-items: center; padding: 0; }
.super-knopf__ring { position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(var(--gold) calc(var(--ki) * 360deg), rgba(27, 36, 48, .25) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px)); mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px)); }
.super-knopf__kern { font-family: var(--schrift-display); font-size: 1.5rem; letter-spacing: .08em; color: var(--kohle); }
.super-knopf--bereit { background: var(--gold); animation: super-puls .9s ease-in-out infinite; }
.super-knopf--aktiv { background: var(--orange); }
@keyframes super-puls { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.super-knopf:focus-visible { outline: 4px solid var(--weiss); outline-offset: 2px; }
.hud__hinweis { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%) scale(.6); font-family: var(--schrift-display); font-size: clamp(1.6rem, 6vh, 2.6rem); letter-spacing: .06em; color: var(--creme); text-shadow: 0 3px 0 var(--kohle); opacity: 0; transition: opacity .2s ease, transform .2s cubic-bezier(.2, 1.6, .5, 1); white-space: nowrap; }
.hud__hinweis.an { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hud__hinweis--schlecht { color: var(--rot); }
.hud__popups { position: fixed; inset: 0; overflow: hidden; }
.popup { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); font-family: var(--schrift-display); font-size: 1.5rem; letter-spacing: .05em; color: var(--creme); text-shadow: 0 2px 0 var(--kohle); animation: popup-hoch .9s ease-out forwards; }
.popup--gut { color: var(--gruen); }
@keyframes popup-hoch { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -70px) scale(1); } }
.banner { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%) scale(.4) rotate(-5deg); font-family: var(--schrift-display); font-size: clamp(2.2rem, 8vh, 4.2rem); letter-spacing: .06em; color: var(--gold); text-shadow: 0 4px 0 var(--kohle), 0 8px 0 rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; white-space: nowrap; transition: opacity .25s ease, transform .45s cubic-bezier(.2, 1.8, .4, 1); max-width: 96vw; }
.banner.an { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-5deg); }
.banner small { display: block; font-family: var(--schrift-text); font-weight: 800; font-size: clamp(.95rem, 2.4vh, 1.25rem); letter-spacing: .02em; color: var(--creme); text-shadow: 0 2px 0 var(--kohle); margin-top: .1em; white-space: normal; max-width: 90vw; }
.toast { position: absolute; left: 50%; bottom: calc(var(--rand) + 8px); transform: translate(-50%, 20px); font-family: var(--schrift-display); font-size: 1.05rem; letter-spacing: .05em; color: var(--creme); background: var(--kohle); border-radius: 999px; padding: .5em 1.2em; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; white-space: nowrap; max-width: calc(100% - 2 * var(--rand)); }
.toast.an { opacity: 1; transform: translate(-50%, 0); }
.hud__hand { position: absolute; left: 50%; bottom: 22%; width: 56px; height: 56px; margin-left: -28px; fill: var(--creme); stroke: var(--kohle); stroke-width: 1.5; animation: hand-wisch 1.6s ease-in-out infinite; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .4)); }
@keyframes hand-wisch { 0%, 100% { transform: translate(-50px, 0); } 50% { transform: translate(50px, -20px); } }

/* ---------- Mobil ---------- */
@media (max-width: 40rem) {
  .charakterraster, .ladenraster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .karten { grid-template-columns: 1fr; gap: 8px; }
  .karte { min-height: 0; flex-direction: row; text-align: left; padding: 10px 12px; }
  .karte__symbol { width: 46px; height: 46px; font-size: 1.5rem; flex: 0 0 auto; }
  .karte__name { font-size: 1.1rem; }
  .karte > .karte__stufe { order: 3; margin-left: auto; }
  .karte__text { flex: 1 1 100%; }
  .karte { flex-wrap: wrap; }
  .ergebnis__werte { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .textlink { font-size: .85rem; padding-inline: 4px; }
  .tafel__kopf h2 { font-size: 1.7rem; white-space: nowrap; }
  .start__kopf { padding-top: var(--luft); }
  .untertitel { font-size: .9rem; }
  .start__mitte { padding-top: max(1dvh, calc(6dvh - var(--sicher-hoehe))); gap: 8px; }
  .start__mitte .knopf--gross { font-size: clamp(1.25rem, 2.8vh + .3rem, 1.7rem); padding: .4em 1.2em; white-space: nowrap; }
  .start__reihe { gap: 8px; }
  .start__reihe .knopf { font-size: 1.05rem; padding: .45em 1.1em; min-height: 44px; }
  .start__fuss { padding-top: 8px; }
  .hinweis { display: none; }
  .knopf { white-space: normal; }
  .dialog .knopf--gross { white-space: normal; font-size: clamp(1.2rem, 2.4vh + .3rem, 1.5rem); }
  .hud__box { font-size: .9rem; padding: .2em .6em; }
  .hud__techniken { max-width: 150px; }
  .hud__technik { width: 30px; height: 30px; font-size: .9rem; }
  .super-knopf { width: 74px; height: 74px; }
  .inv-knopf { width: 46px; height: 46px; border-radius: 12px; }
  .inv-knopf__bild { width: 34px; height: 34px; }
  .hud__inventar { gap: 6px; }
  .hud__welle { font-size: .8rem; top: calc(var(--rand) + 58px); }
  .hud__duell { top: auto; bottom: calc(var(--rand) + 104px); width: 94vw; gap: 6px; }   /* mobil unten wie der Boss-Balken: oben sind Techniken + Minikarte */
  .hud__duell-name { font-size: .85rem; }
  .hud__duell-uhr { font-size: 1.2rem; }
  .hud__duell-leiste { height: 11px; }
  .hud__boss { top: auto; bottom: calc(var(--rand) + 100px); width: min(64%, 480px); font-size: .95rem; }   /* mobil unten: oben sind Techniken + Minikarte */
  .banner small { font-size: clamp(.85rem, 2vh, 1.05rem); }
  .hud__koop { top: calc(var(--rand) + 232px); font-size: .8rem; }
  .banner { white-space: normal; font-size: clamp(1.7rem, 8.5vw, 3rem); width: 92vw; text-align: center; }
}
@media (max-height: 700px) { .start__mitte { padding-top: max(1dvh, calc(4dvh - var(--sicher-hoehe))); } .dialog.anleitung { padding-block: 14px; gap: 10px; } .dialog.anleitung h2 { font-size: 1.6rem; } }

@media (prefers-reduced-motion: reduce) {
  .knopf, .char-karte, .laden-karte, .karte, .hud__hinweis, body { transition: none; }
  .popup { animation-duration: .01s; }
  .hud__hand, .super-knopf--bereit, .ergebnis__rekord { animation: none; }
}

/* Fuß mit drei Links (Spielhalle · Impressum · Datenschutz): auf schmalen Handys eigene Zeile, sonst wird er abgeschnitten */
@media (max-width: 27rem) { .start__fuss { flex-wrap: wrap; } .start__fuss .rechtliches { order: 9; flex-basis: 100%; justify-content: center; } }

/* iPhone als Homescreen-App (Statusleiste „black-translucent", viewport-fit=cover): Der Sicherheitsabstand ist die
   LAGE von #ui, kein Padding – die Bildschirme darin sind absolut (inset: 0) und ignorieren Padding; sonst lag das
   Menü unter Uhrzeit und WLAN. Abgedunkelte Ebenen reichen per Rand-Schatten trotzdem bis unter die Statusleiste. */
/* Höhe, die Statusleiste + Home-Balken wegnehmen (Abstände in dvh zählen sonst die ganze Bildschirmhöhe) */
:root { --sicher-hoehe: calc(env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)); }
:root { --sicher-rand: max(env(safe-area-inset-top, 0px), env(safe-area-inset-right, 0px), env(safe-area-inset-bottom, 0px), env(safe-area-inset-left, 0px)); }
.schirm--dialog { box-shadow: 0 0 0 var(--sicher-rand) rgba(7, 13, 34, .55); }
.tafel { box-shadow: 0 0 0 var(--sicher-rand) rgba(7, 13, 34, .6); }

/* =====================================================================
   Story-Modus (Update 03.10.2026): Startknopf, Weltkarte, Comic-Szene, Sterne im Ergebnis, Lobby-Levelwahl
   ===================================================================== */
.knopf--story { background: var(--violett); color: var(--creme); width: min(100%, 620px); }
.knopf--story:hover { background: #7A3FB0; }
.knopf--story small { opacity: .9; }
.start__held { margin: 8px 0 0; font-family: var(--schrift-display); letter-spacing: .08em; color: var(--gold); text-shadow: 0 3px 0 var(--kohle); font-size: clamp(1rem, 2.4vh, 1.3rem); }
.start__drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--luft); width: min(100%, 620px); }
.knopf--mittel { font-size: clamp(1.05rem, 2vh + .45rem, 1.45rem); padding: .4em .6em; flex-direction: column; gap: 0; white-space: normal; min-width: 0; }
.knopf--mittel small { font-family: var(--schrift-text); font-weight: 800; font-size: .5em; letter-spacing: .04em; text-transform: uppercase; opacity: .75; }
@media (max-width: 26rem) { .knopf--mittel small { display: none; } .start__drei { gap: 8px; } }

.story { display: flex; flex-direction: column; gap: var(--luft); align-items: center; }
.story__sterne-gesamt span { color: var(--gold); text-shadow: 0 1px 0 var(--kohle); }
.story__welt { display: flex; align-items: center; gap: var(--luft); width: min(100%, 760px); }
.story__weltname { flex: 1; min-width: 0; text-align: center; color: var(--creme); text-shadow: 0 2px 0 var(--kohle); display: flex; flex-direction: column; gap: 2px; }
.story__weltname b { font-family: var(--schrift-display); font-weight: 400; font-size: clamp(1.4rem, 3.6vh, 2rem); letter-spacing: .05em; color: var(--gold); }
.story__weltname span { font-weight: 700; font-size: .92rem; }
.story__karte {
  --w1: #1E4A3A; --w2: #0E1A3A;
  position: relative; width: min(100%, 760px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
  padding: clamp(12px, 3vh, 26px) 10px; border: 3px solid var(--kohle); border-radius: var(--radius); box-shadow: var(--schatten);
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(160deg, var(--w1), var(--w2));
}
.story__karte::before { content: ""; position: absolute; left: 12%; right: 12%; top: calc(clamp(12px, 3vh, 26px) + 32px); border-top: 5px dashed rgba(246, 240, 220, .45); }
.story-knoten { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--creme); font-family: var(--schrift-text); min-width: 0; }
.story-knoten__kreis { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--creme); color: var(--kohle); border: 3px solid var(--kohle); box-shadow: var(--schatten); font-family: var(--schrift-display); font-size: 1.3rem; letter-spacing: .03em; transition: transform .1s ease; }
.story-knoten--boss .story-knoten__kreis { background: var(--orange); font-size: 1.9rem; }
.story-knoten--geschafft .story-knoten__kreis { background: var(--gold); }
.story-knoten--zu .story-knoten__kreis { background: #6A6F7E; color: var(--creme); font-size: 1.4rem; }
.story-knoten--aktiv .story-knoten__kreis { outline: 4px solid var(--gold); outline-offset: 3px; transform: scale(1.08); }
.story-knoten:focus-visible .story-knoten__kreis { outline: 4px solid var(--weiss); outline-offset: 3px; }
.story-knoten__sterne i { font-style: normal; font-size: 1.05rem; color: rgba(246, 240, 220, .35); text-shadow: 0 1px 0 var(--kohle); }
.story-knoten__sterne i.an { color: var(--gold); }
.story-knoten__name { font-weight: 800; font-size: .8rem; line-height: 1.15; text-align: center; text-shadow: 0 2px 0 var(--kohle); overflow-wrap: anywhere; hyphens: auto; }
.story__info { width: min(100%, 760px); display: flex; align-items: center; gap: var(--luft); background: var(--creme); border: 3px solid var(--kohle); border-radius: var(--radius); box-shadow: var(--schatten); padding: 12px 16px; }
.story__info-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.story__info-text b { font-family: var(--schrift-display); font-weight: 400; font-size: 1.35rem; letter-spacing: .04em; }
.story__info-text span { font-weight: 700; font-size: .92rem; color: var(--kohle-2); }
.story__info .knopf--gross { flex: 0 0 auto; padding-inline: 1.2em; }
@media (max-width: 34rem) {
  .story-knoten__kreis { width: 54px; height: 54px; font-size: 1.1rem; }
  .story-knoten--boss .story-knoten__kreis { font-size: 1.6rem; }
  .story__karte::before { top: calc(clamp(12px, 3vh, 26px) + 27px); }
  .story__info { flex-direction: column; align-items: stretch; text-align: center; }
  .story__weltname span { font-size: .82rem; }
}

.szene { place-items: end center; cursor: pointer; padding-bottom: calc(var(--rand) + 8px); }
.szene__weg { position: absolute; top: var(--rand); right: var(--rand); font-size: 1rem; padding: .35em 1em; }
.szene__tafel { width: min(100%, 720px); display: flex; align-items: flex-end; gap: 12px; animation: szene-rein .35s cubic-bezier(.2, 1.4, .5, 1); }
.szene__bild { flex: 0 0 auto; width: clamp(110px, 22vh, 160px); aspect-ratio: 1; background: radial-gradient(circle at 50% 60%, rgba(255, 201, 60, .35), rgba(14, 26, 58, .2) 70%); border: 3px solid var(--kohle); border-radius: 50%; box-shadow: var(--schatten); overflow: hidden; }
.szene__tafel--boese .szene__bild { background: radial-gradient(circle at 50% 60%, rgba(199, 125, 255, .45), rgba(14, 26, 58, .3) 70%); }
.szene__canvas { width: 100%; height: 100%; display: block; }
.szene__blase { position: relative; flex: 1; min-width: 0; background: var(--weiss); border: 3px solid var(--kohle); border-radius: 22px; box-shadow: var(--schatten); padding: 14px 18px 10px; display: flex; flex-direction: column; gap: 4px; }
.szene__blase::before { content: ""; position: absolute; left: -16px; bottom: 26px; border: 10px solid transparent; border-right: 14px solid var(--kohle); }
.szene__tafel--erzaehler .szene__blase { background: var(--creme); border-radius: 10px; font-style: italic; }
.szene__tafel--erzaehler .szene__blase::before { display: none; }
.szene__name { font-family: var(--schrift-display); font-weight: 400; font-size: 1.2rem; letter-spacing: .06em; color: var(--violett); }
.szene__tafel--boese .szene__name { color: #B0306A; }
.szene__text { margin: 0; font-weight: 800; font-size: clamp(1rem, 2.4vh, 1.25rem); line-height: 1.35; }
.szene__weiter { align-self: flex-end; font-weight: 800; font-size: .8rem; color: var(--kohle-2); letter-spacing: .05em; }
@keyframes szene-rein { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 34rem) { .szene__tafel { flex-direction: column; align-items: center; } .szene__blase::before { left: 50%; bottom: auto; top: -22px; margin-left: -10px; border: 10px solid transparent; border-bottom: 14px solid var(--kohle); } }

.ergebnis__sterne { display: flex; gap: 10px; font-size: clamp(2.2rem, 7vh, 3.2rem); line-height: 1; }
.ergebnis__sterne span { color: #CFC6B4; text-shadow: 0 3px 0 var(--kohle); transform: scale(.85); }
.ergebnis__sterne span.an { color: var(--gold); transform: scale(1); animation: stern-pop .5s cubic-bezier(.2, 1.8, .5, 1) both; }
.ergebnis__sterne span.an:nth-child(2) { animation-delay: .15s; }
.ergebnis__sterne span.an:nth-child(3) { animation-delay: .3s; }
@keyframes stern-pop { from { transform: scale(.2) rotate(-30deg); } to { transform: scale(1); } }
.ergebnis__belohnung { margin: 0; font-weight: 800; color: var(--violett); }

.lobby__story { display: flex; align-items: center; gap: 10px; justify-content: center; }
.lobby__story p { margin: 0; display: flex; flex-direction: column; text-align: center; color: var(--creme); text-shadow: 0 2px 0 var(--kohle); min-width: 0; }
.lobby__story b { font-family: var(--schrift-display); font-weight: 400; font-size: 1.3rem; letter-spacing: .04em; color: var(--gold); }
.lobby__story span { font-weight: 700; font-size: .85rem; }
@media (prefers-reduced-motion: reduce) { .szene__tafel, .ergebnis__sterne span.an { animation: none; } }
