/* Kiwi Chaos – Oberfläche „Faltband“. Farben und Formen nach GESTALTUNG.md. */
:root {
  --petrol-950: #041E2A; --petrol-900: #062A3A; --petrol-700: #0B4A63; --petrol-500: #1A6E8C; --petrol-300: #3F93AE;
  --creme: #F4E8C8; --creme-tief: #D9C79C;
  --orange: #F26B1D; --orange-tief: #C9480E; --glut: #FF9A3D;
  --tinte: #131A2A; --tinte-hell: #27314A;
  --eis: #5BBBD0; --eis-tief: #3A93A8;
  --weiss: #FDFBF4;
  --schrift: "Bahnschrift", "DIN Alternate", "Segoe UI", system-ui, sans-serif;
  --s: .8;      /* Maßstab Menü (gesetzt von main.js) */
  --hs: .8;     /* Maßstab Anzeigen im Lauf */
  --sicher-u: env(safe-area-inset-bottom, 0px);
  --sicher-o: env(safe-area-inset-top, 0px);
  --sicher-l: env(safe-area-inset-left, 0px);
  --sicher-r: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--petrol-950); color: var(--weiss); font-family: var(--schrift);
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; overscroll-behavior: none; }
body { position: fixed; inset: 0; width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
button:disabled { cursor: default; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--eis); outline-offset: 3px; }
h1, h2, h3, p { font-weight: inherit; }

#buehne { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; touch-action: none; outline: none; }
#ui { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
#ui > * { pointer-events: auto; }
#ui > #menue, #ui > #hud { pointer-events: none; }
#ui > #hud > * { pointer-events: none; }
#menue button, #menue .herausf { pointer-events: auto; }

.zahl { font-weight: 700; font-stretch: 75%; letter-spacing: -.02em; line-height: .9; font-variant-numeric: tabular-nums; }
.klein { font-size: 15px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.nur-lesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Bänder-Farben ---------- */
.c-orange { background: linear-gradient(180deg, var(--glut), var(--orange) 45%, var(--orange-tief)); color: var(--tinte); }
.c-creme { background: linear-gradient(180deg, #FFF6DD, var(--creme) 50%, var(--creme-tief)); color: var(--tinte); }
.c-tinte { background: linear-gradient(180deg, var(--tinte-hell), var(--tinte) 60%, #0B101B); color: var(--creme); }
.c-eis { background: linear-gradient(180deg, #8AD6E6, var(--eis) 50%, var(--eis-tief)); color: var(--tinte); }
.s-orange { background: var(--orange); } .s-creme { background: var(--creme); } .s-tinte { background: var(--tinte); } .s-eis { background: var(--eis); }

/* ---------- Knöpfe ---------- */
.pille { white-space: nowrap; height: 66px; border-radius: 33px; padding: 0 34px; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 21px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 14px 20px -10px rgba(0,0,0,.6), inset 0 6px 8px -5px rgba(255,255,255,.4);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), filter .18s; }
.pille svg { width: 22px; height: 22px; }
.pille:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.06); }
.pille:active:not(:disabled) { transform: translateY(2px); filter: brightness(.96); }
.pille.rand { background: transparent; border: 2px solid rgba(244,232,200,.45); box-shadow: none; color: var(--creme); }
.pille.rand:hover:not(:disabled) { background: rgba(244,232,200,.08); }
.pille.klein-pille { height: 48px; font-size: 16px; padding: 0 22px; }
.pille:disabled { opacity: .45; filter: saturate(.5); }

.rund { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(4,30,42,.6); border: 2px solid rgba(244,232,200,.25); color: var(--creme);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), background .18s, border-color .18s; }
.rund svg { width: 24px; height: 24px; }
.rund:hover { background: rgba(244,232,200,.14); border-color: rgba(244,232,200,.55); transform: scale(1.06); }
.rund:active { transform: scale(.95); }
.rund.aus { opacity: .6; }

/* ============================================================ MENÜ */
#menue { position: fixed; inset: 0; transition: opacity .3s; }
#menue::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(4,30,42,.35), transparent 38%), linear-gradient(0deg, rgba(4,30,42,.7), transparent 24%); }
body.im-lauf #menue, body.vorschau #menue { display: none; }

.skal { position: absolute; }
.skal-oben { left: calc(70px * var(--s)); top: calc(60px * var(--s)); transform-origin: 0 0; transform: scale(var(--s)); width: 560px; }
.skal-punkte { left: calc(70px * var(--s)); bottom: calc(56px * var(--s)); transform-origin: 0 100%; transform: scale(var(--s)); }
.skal-baender { right: calc(80px * var(--s)); top: 0; width: 1050px; height: 1000px; transform-origin: 100% 0; transform: scale(var(--s)); transition: opacity .25s, translate .3s; }
body.blatt-offen .skal-punkte { opacity: 0; pointer-events: none; }
.skal-punkte { transition: opacity .25s; }
body.blatt-offen .skal-baender { opacity: 0; translate: 60px 0; pointer-events: none; }

.logo .k, .logo .c { font-size: 118px; display: block; }
.logo .u { display: block; }
.logo .k { color: var(--creme); }
.logo .c { color: var(--orange); margin-top: -6px; }
.logo .u { margin-top: 16px; color: var(--eis); }
.logo { animation: logoEin .7s cubic-bezier(.2,.8,.2,1) backwards; }
@keyframes logoEin { from { opacity: 0; transform: translateY(-18px); } }

.herausf { margin-top: 28px; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 24px; border-radius: 38px; max-width: 540px;
  box-shadow: 0 16px 24px -12px rgba(0,0,0,.6), inset 0 6px 8px -5px rgba(255,255,255,.4); animation: logoEin .5s .8s cubic-bezier(.2,.8,.2,1) backwards; }
.herausf b { font-size: 20px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; flex: 1; font-weight: 700; }
.herausf small { display: block; font-size: 12px; letter-spacing: .14em; opacity: .7; margin-top: 3px; font-weight: 600; }
.herausf .rund { width: 48px; height: 48px; background: var(--tinte); border: 0; color: var(--creme); }
.herausf .rund.zu { background: rgba(19,26,42,.14); color: var(--tinte); }

/* Bänder */
.b { position: absolute; }
.b1 { left: 0; width: 660px; height: 350px; --top: 230px; }
.b2 { left: 170px; width: 620px; height: 505px; --top: 385px; }
.b3 { left: 340px; width: 580px; height: 660px; --top: 540px; }
.b4 { left: 510px; width: 540px; height: 815px; --top: 695px; }
.streifen { position: absolute; right: 0; top: 0; width: 120px; height: var(--top); transform-origin: 50% 0; }
.streifen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.22), transparent 22%, transparent 80%, rgba(0,0,0,.18)); }
.band { position: absolute; left: 0; right: 0; top: var(--top); height: 120px; border-radius: 60px 0 0 60px; display: flex; align-items: center; gap: 22px; padding-left: 26px;
  box-shadow: 0 26px 40px -14px rgba(0,0,0,.55), inset 0 10px 14px -8px rgba(255,255,255,.35), inset 0 -16px 18px -10px rgba(0,0,0,.28);
  transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.band:hover, .band:focus-visible { transform: translateX(-14px); }
.band:active { transform: translateX(-10px); transition-duration: .1s; }
.band .knick { position: absolute; right: 0; top: 0; width: 120px; height: 120px; pointer-events: none;
  background: linear-gradient(225deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.12) 49%, rgba(255,255,255,.14) 50%, transparent 75%); }
.band .schatten { position: absolute; right: 0; top: 120px; width: 120px; height: 46px; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent); pointer-events: none; }
.band .knopf { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.band .knopf svg { width: 36px; height: 36px; }
.band .nr { font-size: 74px; }
.band .name { display: block; font-size: 30px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.band .unter { display: block; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; opacity: .72; margin-top: 4px; font-weight: 600; white-space: nowrap; }
.band.c-orange .knopf { background: var(--tinte); color: var(--creme); }
.band.c-creme .knopf, .band.c-eis .knopf { background: rgba(19,26,42,.1); color: var(--tinte); }
.band.c-eis .knopf { background: rgba(19,26,42,.12); }
.band.c-tinte .knopf { background: rgba(244,232,200,.1); color: var(--creme); }

/* Einfahren: erst senkrecht von oben, dann Knick, dann rollt das waagerechte Stück aus */
.streifen { animation: streifenEin .42s calc(var(--i) * 80ms) cubic-bezier(.3,.7,.2,1) backwards; }
.band { animation: bandEin .5s calc(var(--i) * 80ms + 340ms) cubic-bezier(.2,.8,.2,1) backwards; }
.band .knick { animation: knickEin .26s calc(var(--i) * 80ms + 300ms) ease-out backwards; transform-origin: 100% 0; }
@keyframes streifenEin { from { transform: scaleY(0); } }
@keyframes bandEin { from { clip-path: inset(-80px -40px -80px 100%); } to { clip-path: inset(-80px -40px -80px 0); } }
@keyframes knickEin { from { opacity: 0; transform: scale(.2); } }

/* Datenpunkte, Ecke */
.punkte { display: flex; gap: 44px; }
.punkt { display: flex; gap: 14px; align-items: center; }
.punkt i { width: 22px; height: 22px; border-radius: 50%; background: var(--creme); box-shadow: 0 0 0 6px rgba(244,232,200,.14); flex: none; }
.punkt.p2 i { background: var(--orange); box-shadow: 0 0 0 6px rgba(242,107,29,.18); }
.punkt.p3 i { background: var(--eis); box-shadow: 0 0 0 6px rgba(91,187,208,.18); }
.punkt b { font-size: 34px; display: block; font-weight: 700; font-stretch: 75%; letter-spacing: -.02em; line-height: .95; font-variant-numeric: tabular-nums; }
.punkt span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; font-weight: 600; white-space: nowrap; }
.ecke { position: absolute; right: calc(40px + var(--sicher-r)); bottom: calc(40px + var(--sicher-u)); display: flex; gap: 12px; }

/* ---- Listen-Darstellung (Hochformat, Handy, flache Fenster) ---- */
html.liste { --bh: 72px; --bg: 10px; }
html.liste .skal-oben { left: calc(22px + var(--sicher-l)); top: calc(20px + var(--sicher-o)); transform: none; width: auto; }
html.liste .logo { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
html.liste .logo .k, html.liste .logo .c { font-size: 56px; margin: 0; display: inline; }
html.liste .logo .u { display: block; flex-basis: 100%; margin-top: 8px; font-size: 12px; }
html.liste .herausf { margin-top: 14px; padding: 8px 10px 8px 18px; max-width: calc(100vw - 44px); gap: 10px; }
html.liste .herausf b { font-size: 15px; }
html.liste .herausf .rund { width: 40px; height: 40px; }
html.liste .skal-punkte { left: calc(22px + var(--sicher-l)); right: 22px; bottom: calc(var(--sicher-u) + 14px + 4 * var(--bh) + 3 * var(--bg) + 16px); transform: none; }
html.liste .punkte { gap: 22px; justify-content: space-between; }
html.liste .punkt { gap: 9px; }
html.liste .punkt i { width: 14px; height: 14px;  }
html.liste .punkt b { font-size: 24px; }
html.liste .punkt span { font-size: 12px; letter-spacing: .1em; }
html.liste .skal-baender { left: auto; right: 0; top: auto; bottom: calc(var(--sicher-u) + 14px); width: min(520px, 100vw); height: auto; transform: none;
  display: flex; flex-direction: column; gap: var(--bg); transform-origin: 100% 100%; }
html.liste .b { position: relative; left: auto; width: auto; height: var(--bh); margin-left: auto; }
html.liste .b1 { width: 100%; } html.liste .b2 { width: 95%; } html.liste .b3 { width: 90%; } html.liste .b4 { width: 85%; }
html.liste .streifen { display: none; }
html.liste .band { top: 0; height: var(--bh); border-radius: calc(var(--bh) / 2) 0 0 calc(var(--bh) / 2); gap: 14px; padding-left: 12px;
  box-shadow: 0 14px 22px -10px rgba(0,0,0,.55), inset 0 6px 8px -5px rgba(255,255,255,.35), inset 0 -10px 12px -8px rgba(0,0,0,.28); }
html.liste .band .knopf { width: 50px; height: 50px; }
html.liste .band .knopf svg { width: 22px; height: 22px; }
html.liste .band .nr { font-size: 44px; }
html.liste .band .name { font-size: 19px; }
html.liste .band .unter { font-size: 12px; letter-spacing: .08em; margin-top: 2px; white-space: normal; }
html.liste .band .knick { width: var(--bh); height: var(--bh); }
html.liste .band .schatten { display: none; }
html.liste .band:hover, html.liste .band:focus-visible { transform: translateX(-8px); }
html.liste .band { animation: bandEinListe .5s calc(var(--i) * 80ms + 120ms) cubic-bezier(.2,.8,.2,1) backwards; }
@keyframes bandEinListe { from { clip-path: inset(-40px -20px -40px 100%); } to { clip-path: inset(-40px -20px -40px 0); } }
html.liste .ecke { right: calc(16px + var(--sicher-r)); top: calc(18px + var(--sicher-o)); bottom: auto; }
html.liste .ecke .rund { width: 46px; height: 46px; }
html.liste.flach .skal-oben { top: calc(14px + var(--sicher-o)); }
html.liste.flach .logo .k, html.liste.flach .logo .c { font-size: 40px; }
html.liste.flach { --bh: 54px; --bg: 8px; }
html.liste.flach .skal-baender { width: min(440px, 52vw); top: 50%; bottom: auto; translate: 0 -50%; }
html.liste.flach .band .nr { font-size: 34px; }
html.liste.flach .band .knopf { width: 38px; height: 38px; }
html.liste.flach .band .name { font-size: 16px; }
html.liste.flach .band .unter { font-size: 12px; }
html.liste.flach .skal-punkte { right: auto; bottom: calc(var(--sicher-u) + 14px); }
html.liste.flach .punkte { flex-direction: row; gap: 18px; }
html.liste.flach .ecke { top: auto; bottom: calc(14px + var(--sicher-u)); }
html.liste.flach .herausf { display: none; }

/* ============================================================ BLATT (Unterseiten) */
.blatt { position: fixed; left: 34vw; right: 3vw; top: 4vh; bottom: 112px; z-index: 8; perspective: 1800px; }
.blatt-karte { height: 100%; display: flex; flex-direction: column; border-radius: 34px; overflow: hidden; background: var(--petrol-900);
  box-shadow: 0 40px 60px -20px rgba(0,0,0,.7); border: 2px solid rgba(244,232,200,.14); transform-origin: 50% 0;
  animation: blattAuf .34s cubic-bezier(.2,.85,.25,1) backwards; }
.blatt.zu .blatt-karte { animation: blattZu .2s ease-in forwards; }
@keyframes blattAuf { from { transform: rotateX(-82deg); opacity: 0; } }
@keyframes blattZu { to { transform: rotateX(-82deg); opacity: 0; } }
.blatt-kopf { flex: none; height: 112px; display: flex; align-items: center; gap: 20px; padding: 0 26px 0 24px; position: relative; }
.blatt-kopf .nr { font-size: 68px; }
.blatt-kopf h2 { font-size: 30px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.blatt-kopf .unter { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; opacity: .72; margin-top: 4px; font-weight: 600; }
.blatt-kopf .titel { flex: 1; min-width: 0; }
.blatt-kopf .rund { background: rgba(19,26,42,.16); border-color: transparent; color: inherit; width: 52px; height: 52px; }
.blatt-kopf.c-tinte .rund { background: rgba(244,232,200,.12); }
.blatt-kopf::after { content: ""; position: absolute; right: 0; bottom: 0; width: 34px; height: 34px; pointer-events: none;
  background: linear-gradient(315deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.1) 49%, rgba(255,255,255,.1) 50%, transparent 75%); }
.blatt-inhalt { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 34px 34px; scrollbar-width: thin; scrollbar-color: rgba(244,232,200,.3) transparent;
  background: radial-gradient(90% 60% at 50% 0, rgba(26,110,140,.35), transparent 70%); }
.blatt-inhalt h3 { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--eis); margin: 0 0 14px; }
.blatt-inhalt h3:not(:first-child) { margin-top: 30px; }
.blatt-inhalt .hinweis { font-size: 16px; line-height: 1.5; opacity: .8; max-width: 60ch; }

/* Spielen */
.welten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.welt-karte { position: relative; border-radius: 0 0 28px 28px; padding: 98px 18px 22px; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  box-shadow: 0 22px 30px -14px rgba(0,0,0,.6), inset 0 -18px 20px -12px rgba(0,0,0,.28); transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; overflow: hidden; }
.welt-karte:hover { transform: translateY(-3px); }
.welt-karte .zeichen { position: absolute; left: 14px; top: 14px; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: rgba(19,26,42,.14); }
.welt-karte .zeichen svg { width: 38px; height: 38px; }
.welt-karte b { font-size: 21px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.1; }
.welt-karte small { font-size: 13px; line-height: 1.35; opacity: .75; font-weight: 600; }
.welt-karte .best { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; opacity: .85; margin-top: 8px; }
.welt-karte .haken { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--tinte); color: var(--creme); display: none; place-items: center; }
.welt-karte .haken svg { width: 18px; height: 18px; }
.welt-karte[aria-checked="true"] { transform: translateY(-3px); outline: 4px solid var(--weiss); outline-offset: 3px; }
.welt-karte[aria-checked="true"] .haken { display: grid; }
.welt-karte .stufe { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.welt-karte .stufe .mal { background: rgba(19,26,42,.16); border-radius: 10px; padding: 1px 8px; }
.welt-karte.c-tinte .stufe .mal { background: rgba(244,232,200,.16); }
.welt-karte .schloss { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--tinte); color: var(--creme); display: grid; place-items: center; }
.welt-karte .schloss svg { width: 18px; height: 18px; }
.welt-karte.c-tinte .schloss { background: var(--creme); color: var(--tinte); }
.welt-karte .huerde { margin-top: 10px; padding: 10px 12px 12px; border-radius: 16px; border: 2px dashed currentColor; display: grid; gap: 6px; }
.welt-karte .huerde b { font-size: 14px; letter-spacing: .06em; }
.welt-karte .huerde .fort { display: flex; align-items: center; gap: 10px; }
.welt-karte .huerde .balken { flex: 1; height: 10px; border-radius: 5px; background: rgba(19,26,42,.25); overflow: hidden; }
.welt-karte.c-tinte .huerde .balken { background: rgba(244,232,200,.25); }
.welt-karte .huerde .balken i { display: block; height: 100%; border-radius: 5px; background: currentColor; }
.welt-karte .huerde .stand { font-size: 12px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.welt-karte.gesperrt { cursor: not-allowed; box-shadow: 0 14px 20px -12px rgba(0,0,0,.6), inset 0 -18px 20px -12px rgba(0,0,0,.28); }
.welt-karte.gesperrt:hover { transform: none; }
.welt-karte.gesperrt .zeichen, .welt-karte.gesperrt > b, .welt-karte.gesperrt > small, .welt-karte.gesperrt .stufe { opacity: .8; }
.welt-karte.gesperrt .zeichen { opacity: .55; }
.welt-karte.wackelt { animation: wackeln .42s cubic-bezier(.3,.7,.4,1); }
@keyframes wackeln { 15% { transform: translateX(-7px) rotate(-.8deg); } 35% { transform: translateX(6px) rotate(.7deg); } 55% { transform: translateX(-4px); } 75% { transform: translateX(3px); } }
.welt-meldung { margin-top: 16px; min-height: 24px; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--creme); }
.welt-meldung:empty { display: none; }
.welt-meldung .schloss-ik { display: inline-grid; width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; color: var(--orange); }
.start-zeile { display: flex; align-items: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.start-zeile .pille { height: 78px; padding: 0 52px; font-size: 26px; }
.start-zeile .pille svg { width: 26px; height: 26px; }
.start-zeile p { font-size: 15px; opacity: .75; line-height: 1.45; flex: 1; min-width: 200px; }

/* Kiwis */
.skins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.skin-karte { border-radius: 26px; background: rgba(4,30,42,.55); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; position: relative;
  box-shadow: inset 0 0 0 2px rgba(244,232,200,.1); transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .2s; cursor: pointer; min-height: 168px; }
.skin-karte:hover { transform: translateY(-2px); background: rgba(4,30,42,.8); }
.skin-karte.gewaehlt { box-shadow: inset 0 0 0 3px var(--creme); }
.skin-karte.an { box-shadow: inset 0 0 0 3px var(--orange); }
.skin-karte .kopf { display: flex; align-items: center; gap: 14px; }
.skin-karte .zeichen { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.skin-karte .zeichen svg { width: 28px; height: 28px; }
.skin-karte b { font-size: 18px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.1; }
.skin-karte .preis { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.skin-karte .preis svg { width: 16px; height: 16px; }
.skin-karte .pille { height: 44px; font-size: 14px; padding: 0 18px; margin-top: auto; width: 100%; }
.skin-karte .marke { align-self: flex-start; }
.skin-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.skin-kopf .talerzahl { font-size: 34px; display: inline-flex; align-items: center; gap: 10px; }
.skin-kopf .talerzahl svg { width: 28px; height: 28px; }

/* Rekorde */
.rek-spalten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 34px; align-items: start; }
.liste-top { list-style: none; display: grid; gap: 8px; }
.liste-top li { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 30px; background: rgba(4,30,42,.55); }
.liste-top .platz { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: rgba(244,232,200,.1); }
.liste-top li:first-child .platz { background: var(--creme); color: var(--tinte); }
.liste-top .meter { font-size: 28px; }
.liste-top .meter small { font-size: 15px; color: var(--orange); margin-left: 3px; font-weight: 700; letter-spacing: 0; }
.liste-top .wo { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; text-align: right; line-height: 1.35; font-weight: 600; }
.leer { font-size: 15px; opacity: .7; padding: 16px 4px; line-height: 1.5; }
.zahlen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
.zahlen div b { font-size: 34px; display: block; }
.zahlen div span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; font-weight: 600; }
.erfolge { list-style: none; display: grid; gap: 8px; }
.erfolg { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border-radius: 30px; background: rgba(4,30,42,.55); }
.erfolg .zeichen { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(244,232,200,.08); color: rgba(244,232,200,.45); }
.erfolg .zeichen svg { width: 20px; height: 20px; }
.erfolg b { font-size: 16px; letter-spacing: .04em; text-transform: uppercase; display: block; font-weight: 700; }
.erfolg span { font-size: 14px; opacity: .75; line-height: 1.3; display: block; }
.erfolg .lohn { font-size: 13px; letter-spacing: .08em; font-weight: 700; opacity: .8; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.erfolg .lohn svg { width: 14px; height: 14px; }
.erfolg.offen { opacity: .62; }
.erfolg.fertig .zeichen { background: var(--creme); color: var(--tinte); }
.erfolg.fertig { background: rgba(26,110,140,.4); }

/* Aufgaben */
.aufgaben { display: grid; gap: 14px; }
.blatt-inhalt { --pad: 34px; }
.aufgabe { margin-right: calc(var(--pad) * -1); border-radius: 36px 0 0 36px; padding: 18px calc(var(--pad) + 26px) 18px 22px; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 18px; position: relative;
  box-shadow: 0 16px 24px -12px rgba(0,0,0,.55), inset 0 8px 10px -6px rgba(255,255,255,.3), inset 0 -12px 14px -8px rgba(0,0,0,.25); }
.aufgabe .zeichen { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(19,26,42,.14); }
.aufgabe.c-tinte .zeichen { background: rgba(244,232,200,.12); }
.aufgabe .zeichen svg { width: 26px; height: 26px; }
.aufgabe b { display: block; font-size: 20px; font-weight: 700; letter-spacing: .03em; line-height: 1.2; }
.aufgabe .fort { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.aufgabe .balken { flex: 1; height: 10px; border-radius: 5px; background: rgba(19,26,42,.22); overflow: hidden; }
.aufgabe.c-tinte .balken { background: rgba(244,232,200,.2); }
.aufgabe .balken i { display: block; height: 100%; border-radius: 5px; background: currentColor; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.aufgabe .stand { font-size: 15px; font-weight: 700; letter-spacing: .06em; min-width: 5ch; text-align: right; }
.aufgabe .lohn { font-size: 26px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.aufgabe .lohn svg { width: 24px; height: 24px; }
.aufgabe.fertig { opacity: .78; }
.aufgabe.fertig .zeichen { background: var(--tinte); color: var(--creme); }
.aufgabe.c-tinte.fertig .zeichen { background: var(--creme); color: var(--tinte); }
.aufgabe .art { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .65; font-weight: 700; display: block; margin-bottom: 4px; }

/* Einstellungen */
.einstellungen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 640px; }
.einst-zeile { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px 14px 26px; border-radius: 40px; background: rgba(4,30,42,.55); min-height: 72px; flex-wrap: wrap; }
.einst-zeile b { font-size: 18px; letter-spacing: .06em; text-transform: uppercase; display: block; font-weight: 700; }
.einst-zeile span { font-size: 14px; opacity: .7; }
.schalter { width: 78px; height: 42px; border-radius: 21px; background: rgba(244,232,200,.18); position: relative; flex: none; transition: background .2s; }
.schalter::after { content: ""; position: absolute; left: 4px; top: 4px; width: 34px; height: 34px; border-radius: 50%; background: var(--creme); transition: transform .22s cubic-bezier(.2,.8,.2,1), background .2s; box-shadow: 0 4px 8px rgba(0,0,0,.4); }
.schalter[aria-checked="true"] { background: var(--eis-tief); }
.schalter[aria-checked="true"]::after { transform: translateX(36px); }
.segmente { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 28px; background: rgba(244,232,200,.1); }
.segmente button { padding: 0 16px; height: 40px; border-radius: 20px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; transition: background .2s, color .2s; }
.segmente button[aria-checked="true"] { background: var(--creme); color: var(--tinte); opacity: 1; }
.gefahr { display: grid; gap: 12px; }
.rueckfrage { border-radius: 30px; padding: 20px 24px; background: rgba(201,72,14,.22); border: 2px solid rgba(255,154,61,.5); display: grid; gap: 14px; }
.rueckfrage p { font-size: 17px; line-height: 1.4; }
.rueckfrage .reihe-knoepfe { display: flex; gap: 12px; flex-wrap: wrap; }
.version { font-size: 12px; letter-spacing: .14em; opacity: .5; text-transform: uppercase; margin-top: 8px; font-weight: 600; }

/* ============================================================ ANZEIGEN IM LAUF */
#hud { position: fixed; inset: 0; }
body:not(.im-lauf):not(.vorschau) #hud { display: none; }
.hud-ecke { position: absolute; }
.hud-ol { left: calc(36px * var(--hs) + var(--sicher-l)); top: calc(36px * var(--hs) + var(--sicher-o)); transform-origin: 0 0; transform: scale(var(--hs)); }
.hud-or { right: calc(36px * var(--hs) + var(--sicher-r)); top: calc(36px * var(--hs) + var(--sicher-o)); transform-origin: 100% 0; transform: scale(var(--hs)); display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.hud-om { left: 50%; top: var(--sicher-o); transform-origin: 50% 0; transform: translateX(-50%) scale(var(--hs)); width: 430px; }
.hud-ul { left: calc(36px * var(--hs) + var(--sicher-l)); bottom: calc(36px * var(--hs) + var(--sicher-u)); transform-origin: 0 100%; transform: scale(var(--hs)); }
.hud-ur { right: calc(36px * var(--hs) + var(--sicher-r)); bottom: calc(36px * var(--hs) + var(--sicher-u)); transform-origin: 100% 100%; transform: scale(var(--hs)); }
.hud-um { left: 50%; bottom: calc(36px * var(--hs) + var(--sicher-u)); transform-origin: 50% 100%; transform: translateX(-50%) scale(var(--hs)); }

.hud-pille { height: 74px; border-radius: 37px; display: flex; align-items: center; gap: 14px; padding: 0 28px 0 12px; min-width: 230px;
  background: rgba(4,30,42,.72); border: 2px solid rgba(244,232,200,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hud-pille .rund-ik { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.hud-pille .rund-ik svg { width: 24px; height: 24px; }
.hud-pille b { font-size: 40px; display: block; font-weight: 700; font-stretch: 75%; letter-spacing: -.02em; line-height: .9; font-variant-numeric: tabular-nums; }
.hud-pille small { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; display: block; margin-top: 1px; font-weight: 600; white-space: nowrap; }
.hud-pille.rekord small { color: var(--glut); opacity: 1; }
#h-taler.stoss .rund-ik { animation: stoss .28s ease-out; }
@keyframes stoss { 40% { transform: scale(1.22); } }
.hud-pause { width: 56px; height: 56px; pointer-events: auto; }
body.vorschau .hud-pause { display: none; }
#hud .hud-pause { pointer-events: auto; }

.fahne { height: 138px; border-radius: 0 0 69px 69px; padding: 20px 30px 0; text-align: center; position: relative;
  box-shadow: 0 24px 34px -12px rgba(0,0,0,.6), inset 0 -18px 20px -10px rgba(0,0,0,.3);
  transform-origin: 50% 0; transition: transform .35s cubic-bezier(.2,.9,.2,1), opacity .25s; }
.fahne.weg { transform: translateY(-110%); opacity: 0; }
.fahne .klein { opacity: .75; font-size: 15px; }
.fahne .name { font-size: 48px; margin-top: 6px; display: block; }
.fahne .text { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; opacity: .8; display: block; margin-top: 2px; white-space: nowrap; }
.fahne .balken { height: 8px; border-radius: 4px; background: rgba(19,26,42,.3); margin: 10px 40px 0; overflow: hidden; }
.fahne .balken i { display: block; height: 100%; width: 100%; background: var(--tinte); border-radius: 4px; transform-origin: 0 50%; }
.fahne.warnung { animation: blinken .34s steps(2, jump-none) infinite; }
@keyframes blinken { 50% { filter: brightness(1.35) saturate(1.1); } }
.fahne.warnung .balken { visibility: hidden; }

.kraefte { display: flex; gap: 14px; align-items: flex-end; }
.kraft { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; position: relative; box-shadow: 0 14px 20px -8px rgba(0,0,0,.6); }
.kraft svg { width: 40px; height: 40px; }
.kraft.k-magnet { background: linear-gradient(180deg, #8AD6E6, var(--eis) 50%, var(--eis-tief)); color: var(--tinte); }
.kraft.k-schild, .kraft.k-zeitlupe { background: linear-gradient(180deg, #FFF6DD, var(--creme) 50%, var(--creme-tief)); color: var(--tinte); }
.kraft.k-turbo { background: linear-gradient(180deg, var(--tinte-hell), var(--tinte) 60%, #0B101B); color: var(--creme); }
.kraft.k-doppelt { background: linear-gradient(180deg, var(--glut), var(--orange) 45%, var(--orange-tief)); color: var(--tinte); }
.kraft.k-supersprung { background: linear-gradient(180deg, #8AD6E6, var(--eis) 50%, var(--eis-tief)); color: var(--tinte); }
.kraft .ring { position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(var(--weiss) calc(var(--p, 1) * 360deg), transparent 0); -webkit-mask: radial-gradient(circle, transparent 0 calc(50% - 4px), #000 calc(50% - 3px)); mask: radial-gradient(circle, transparent 0 calc(50% - 4px), #000 calc(50% - 3px)); opacity: .85; }
.kraft em { position: absolute; bottom: -8px; right: -6px; background: var(--tinte); color: var(--creme); font-style: normal; font-size: 15px; font-weight: 700; border-radius: 12px; padding: 3px 9px; }
.kraft { animation: kraftEin .3s cubic-bezier(.2,.9,.2,1.2) backwards; }
@keyframes kraftEin { from { transform: scale(.3); opacity: 0; } }

.spurt { width: 220px; height: 44px; border-radius: 22px; background: rgba(4,30,42,.72); border: 2px solid rgba(244,232,200,.18); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 14px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; }
.spurt i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: rgba(91,187,208,.55); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); }
.spurt span { position: relative; }
.spurt.bereit { border-color: var(--creme); }
.spurt.bereit i { background: rgba(244,232,200,.35); }
.spurt svg { width: 20px; height: 20px; position: relative; }

.tasten { display: flex; gap: 10px; align-items: center; opacity: .8; }
.taste { border: 2px solid rgba(244,232,200,.35); border-radius: 10px; padding: 8px 13px; font-size: 15px; font-weight: 700; background: rgba(4,30,42,.55); text-transform: uppercase; white-space: nowrap; }
.taste.breit { padding: 8px 28px; }
html.touch .tasten { display: none; }

/* Meldungen mitten im Bild */
#toasts { position: fixed; left: 50%; top: calc(170px * var(--hs) + var(--sicher-o)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; z-index: 9; width: min(92vw, 560px); }
.toast { background: var(--creme); color: var(--tinte); border-radius: 22px; padding: 9px 22px; font-size: 17px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: center;
  box-shadow: 0 12px 20px -8px rgba(0,0,0,.6); animation: toastEin .26s cubic-bezier(.2,.9,.2,1.1) backwards; }
.toast small { display: block; font-size: 12px; opacity: .7; letter-spacing: .12em; font-weight: 600; }
.toast.eis { background: var(--eis); }
.toast.weg { animation: toastAus .3s ease-in forwards; }
@keyframes toastEin { from { transform: translateY(-14px) scale(.9); opacity: 0; } }
@keyframes toastAus { to { transform: translateY(-8px); opacity: 0; } }
body.im-menue #toasts { top: auto; bottom: 120px; }

/* Touch-Knöpfe */
#touch { position: fixed; inset: 0; pointer-events: none; display: none; touch-action: none; }
html.touch body.im-lauf #touch { display: block; }
#touch button { pointer-events: auto; position: absolute; border-radius: 50%; display: grid; place-items: center; touch-action: none; color: var(--creme);
  background: rgba(4,30,42,.55); border: 2px solid rgba(244,232,200,.35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: transform .08s, background .08s; }
#touch button svg { width: 42%; height: 42%; }
#touch button.gedrueckt { transform: scale(.92); background: rgba(244,232,200,.35); }
#t-links, #t-rechts { width: 84px; height: 84px; bottom: calc(24px + var(--sicher-u)); }
#t-links { left: calc(16px + var(--sicher-l)); }
#t-rechts { left: calc(16px + 84px + 14px + var(--sicher-l)); }
#t-sprung { width: 112px; height: 112px; right: calc(18px + var(--sicher-r)); bottom: calc(24px + var(--sicher-u)); background: rgba(244,232,200,.22); border-color: var(--creme); }
#t-ducken, #t-spurt { width: 64px; height: 64px; right: calc(42px + var(--sicher-r)); }
#t-ducken { bottom: calc(150px + var(--sicher-u)); }
#t-spurt { bottom: calc(226px + var(--sicher-u)); overflow: hidden; }
#t-spurt::before { content: ""; position: absolute; inset: 0; background: rgba(91,187,208,.55); transform-origin: 50% 100%; transform: scaleY(var(--p, 1)); }
#t-spurt svg { position: relative; }
#t-spurt.bereit { border-color: var(--creme); }
html.touch .hud-um { display: none; }
html.touch .hud-ul { top: calc(124px * var(--hs) + var(--sicher-o)); bottom: auto; transform-origin: 0 0; }
html.touch .kraefte { flex-direction: column; align-items: flex-start; }
html.touch.hoch .hud-ul { top: calc(258px * var(--hs) + var(--sicher-o)); }

/* Hochformat: Anzeigen enger */
html.hoch .hud-om { top: calc(122px * var(--hs) + var(--sicher-o)); width: min(430px, 80vw / var(--hs)); }
html.hoch .fahne { height: 112px; border-radius: 40px; padding-top: 14px; }
html.hoch .fahne .name { font-size: 40px; }
html.hoch .hud-pille { min-width: 0; padding-right: 20px; }
html.hoch #toasts { top: calc(262px * var(--hs) + var(--sicher-o)); }

/* ============================================================ PAUSE / ERGEBNIS / LERNBLATT */
.scrim { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(4,30,42,.62); animation: einblenden .25s ease-out backwards; }
@keyframes einblenden { from { opacity: 0; } }
.panel { border-radius: 34px; background: var(--petrol-900); border: 2px solid rgba(244,232,200,.14); box-shadow: 0 40px 60px -20px rgba(0,0,0,.7); animation: panelEin .3s cubic-bezier(.2,.85,.25,1) backwards; }
@keyframes panelEin { from { transform: translateY(24px) scale(.97); opacity: 0; } }

#pause .panel { width: min(460px, 92vw); padding: 34px 34px 30px; text-align: center; display: grid; gap: 14px; }
#pause h2 { font-size: 92px; color: var(--creme); margin-bottom: 8px; }
#pause .pille { width: 100%; }
#pause .zeile { display: flex; gap: 12px; justify-content: center; margin-top: 6px; }
#pause .zeile .rund { width: 56px; height: 56px; }

#ergebnis { justify-content: end; padding-right: 6vw; background: linear-gradient(90deg, rgba(4,30,42,.15), rgba(4,30,42,.7) 60%); place-items: center end; }
.karte:focus { outline: none; }
.karte { width: min(600px, 92vw); max-height: min(920px, 94dvh); display: flex; flex-direction: column; overflow: hidden; }
.karte .kopf { height: 220px; position: relative; flex: none; background: radial-gradient(90% 100% at 40% 100%, var(--petrol-500), var(--petrol-700) 60%, var(--petrol-900)); }
.karte .kopf .st { position: absolute; top: 0; width: 70px; border-radius: 0 0 35px 35px; box-shadow: 0 14px 18px -8px rgba(0,0,0,.5); }
.karte .kopf canvas { position: absolute; left: 20px; bottom: 6px; width: 300px; height: 190px; }
.karte .kopf .grund { position: absolute; left: 28px; top: 22px; max-width: 48%; line-height: 1.4; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--eis); }
.karte .rolle { flex: 1; min-height: 0; overflow-y: auto; padding: 0 36px 20px; scrollbar-width: thin; scrollbar-color: rgba(244,232,200,.3) transparent; }
.marke { display: inline-block; background: var(--orange); color: var(--tinte); font-weight: 700; letter-spacing: .12em; font-size: 14px; border-radius: 14px; padding: 6px 14px; text-transform: uppercase; }
.marke.eis { background: var(--eis); }
.karte .marken { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; min-height: 18px; }
.karte .weit { padding-top: 14px; }
.karte .weit .klein { opacity: .7; }
.karte .weit .zahl { font-size: 128px; color: var(--creme); white-space: nowrap; }
.karte .weit .zahl sup { font-size: 40px; color: var(--orange); margin-left: 8px; vertical-align: top; line-height: 1.5; }
.karte .weit .zahl.klein-zahl { font-size: 104px; }
.karte .reihe { display: flex; gap: 22px; padding-top: 20px; flex-wrap: wrap; }
.karte .reihe div b { font-size: 36px; display: block; font-weight: 700; font-stretch: 75%; letter-spacing: -.02em; line-height: .95; }
.karte .reihe div span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; font-weight: 600; }
.karte .liste { margin-top: 20px; display: grid; gap: 8px; }
.karte .eintrag { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 26px; background: rgba(4,30,42,.7); font-size: 15px; font-weight: 600; line-height: 1.25; }
.karte .eintrag .zeichen { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--creme); color: var(--tinte); }
.karte .eintrag .zeichen svg { width: 18px; height: 18px; }
.karte .eintrag .plus { margin-left: auto; font-weight: 700; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.karte .eintrag .plus svg { width: 15px; height: 15px; }
.karte .eintrag.aufg .zeichen { background: var(--eis); }
.karte .eintrag.bonus .zeichen { background: var(--tinte-hell); }
.karte .welt-band { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 12px 22px 12px 12px; border-radius: 0 30px 30px 0; font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: .03em; box-shadow: 0 12px 18px -10px rgba(0,0,0,.55); animation: bandEin .5s cubic-bezier(.2,.8,.2,1) both; }
.karte .welt-band[hidden] { display: none; }
.karte .welt-band .zeichen { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--tinte); color: var(--creme); }
.karte .welt-band .zeichen svg { width: 24px; height: 24px; }
.karte .welt-band small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-bottom: 2px; }
@keyframes bandEin { from { transform: translateX(-24px); opacity: 0; } }
.karte .eintrag small { display: block; opacity: .65; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.karte .fuss { flex: none; display: flex; gap: 12px; padding: 18px 36px 30px; flex-wrap: wrap; }
.karte .fuss .pille.dort { flex: 1 1 100%; order: -1; height: 66px; font-size: 20px; }
.karte .fuss .pille.dort[hidden] { display: none; }
.karte .fuss .pille { flex: 0 0 auto; justify-content: center; font-size: 17px; padding: 0 22px; }
.karte .fuss .pille.haupt { flex: 1 1 auto; }
.karte .fuss .rund { width: 66px; height: 66px; }
.karte .fuss .pille.fertig-aktion { background: var(--eis); color: var(--tinte); }
.karte .hinweis-teilen { font-size: 13px; opacity: .75; padding: 0 36px 12px; letter-spacing: .06em; min-height: 0; }

#lernblatt .panel { width: min(640px, 94vw); padding: 36px 40px 34px; display: grid; gap: 14px; }
#lernblatt h2 { font-size: 72px; color: var(--creme); }
#lernblatt .unter { color: var(--eis); margin-bottom: 8px; }
.lern-zeile { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 20px; align-items: center; padding: 14px 18px; border-radius: 28px; background: rgba(4,30,42,.7); }
.lern-zeile .tasten-gruppe { display: flex; gap: 8px; flex-wrap: wrap; }
.lern-zeile b { font-size: 19px; letter-spacing: .04em; text-transform: uppercase; display: block; font-weight: 700; }
.lern-zeile span { font-size: 14px; opacity: .75; line-height: 1.35; display: block; }
#lernblatt .pille { margin-top: 10px; width: 100%; height: 72px; font-size: 24px; }
html.touch .lern-tasten { display: none; }
html:not(.touch) .lern-touch { display: none; }
.lern-touch .taste svg { width: 20px; height: 20px; }

/* ---------- schmale und niedrige Fenster ---------- */
html.liste .blatt { left: 0; right: 0; top: 0; bottom: 0; }
html.liste .blatt-karte { border-radius: 0; border: 0; }
html.liste .blatt-kopf { height: 86px; padding: 0 16px 0 18px; padding-top: var(--sicher-o); box-sizing: content-box; gap: 12px; }
html.liste .blatt-kopf .nr { font-size: 46px; }
html.liste .blatt-kopf h2 { font-size: 22px; }
html.liste .blatt-kopf .unter { font-size: 12px; }
html.liste .blatt-inhalt { --pad: 16px; padding: 20px 16px calc(24px + var(--sicher-u)); }
html.liste .welten { grid-template-columns: 1fr; gap: 12px; }
html.liste .welt-karte { min-height: 0; padding: 14px 16px 14px 96px; flex-direction: column; justify-content: center; border-radius: 0 28px 28px 0; }
html.liste .welt-karte .zeichen { top: 50%; transform: translateY(-50%); left: 14px; }
html.liste .welt-karte .haken, html.liste .welt-karte .schloss { top: 12px; right: 12px; width: 30px; height: 30px; }
html.liste .welt-karte b { font-size: 17px; letter-spacing: .02em; padding-right: 34px; }
html.liste .start-zeile .pille { width: 100%; height: 68px; padding: 0 24px; font-size: 22px; }
html.liste .skins { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html.liste .skin-karte .pille { padding: 0 8px; font-size: 12px; letter-spacing: .04em; }
html.liste .skin-karte { padding: 12px; min-height: 150px; }
html.liste .skin-karte .kopf { flex-direction: column; align-items: flex-start; gap: 8px; }
html.liste .skin-karte b { font-size: 15px; }
html.liste .rek-spalten { grid-template-columns: minmax(0, 1fr); gap: 6px; }
html.liste .aufgabe { grid-template-columns: 44px 1fr; padding: 14px 14px 14px 14px; gap: 12px; border-radius: 30px 0 0 30px; }
html.liste .aufgabe .zeichen { width: 44px; height: 44px; }
html.liste .aufgabe b { font-size: 17px; }
html.liste .aufgabe .lohn { grid-column: 2; font-size: 20px; margin-top: -2px; }
html.liste .einst-zeile { padding: 12px 14px 12px 18px; }
html.liste #ergebnis { padding-right: 0; place-items: center; background: rgba(4,30,42,.72); }
html.liste .karte { width: 100vw; max-height: 100dvh; border-radius: 0; border: 0; height: 100%; }
html.liste .karte .kopf { height: 150px; }
html.liste .karte .kopf canvas { width: 210px; height: 132px; left: 8px; }
html.liste .karte .kopf .st { width: 50px; }
html.liste .karte .rolle { padding: 0 20px 10px; }
html.liste .karte .weit .zahl { font-size: 92px; }
html.liste .karte .weit .zahl.klein-zahl { font-size: 76px; }
html.liste .karte .reihe { gap: 16px; }
html.liste .karte .reihe div b { font-size: 28px; }
html.liste .karte .fuss { padding: 12px 20px calc(18px + var(--sicher-u)); }
html.liste .karte .hinweis-teilen { padding: 0 20px 8px; }
html.liste #lernblatt h2 { font-size: 54px; }
html.liste #lernblatt .panel { padding: 24px 20px; }
html.liste .lern-zeile { grid-template-columns: 1fr; gap: 8px; }
html.liste #pause h2 { font-size: 72px; }
html.liste.flach .blatt-kopf { height: 64px; }
html.liste.flach .blatt-kopf .nr { font-size: 34px; }
html.liste.flach .welten { grid-template-columns: repeat(3, 1fr); }
html.liste.flach .welt-karte { padding: 70px 12px 12px; min-height: 130px; border-radius: 0 0 24px 24px; justify-content: flex-end; }
html.liste .welt-karte .huerde b { font-size: 14px; padding-right: 0; letter-spacing: .04em; }
html.liste.flach .welt-karte b { font-size: 15px; padding-right: 0; }
html.liste.flach .welt-karte .zeichen { top: 12px; transform: none; width: 50px; height: 50px; }
html.liste.flach .karte { display: grid; grid-template-columns: 1fr 1fr; width: min(900px, 96vw); height: auto; max-height: 96dvh; border-radius: 28px; }
html.liste.flach .karte .kopf { display: none; }
html.liste.flach .karte .rolle { grid-column: 1; grid-row: 1; padding-top: 10px; }
html.liste.flach .karte .fuss { grid-column: 2; grid-row: 1; align-content: center; flex-direction: column; }
html.liste.flach .karte .hinweis-teilen { display: none; }
html.liste.flach .karte .weit .zahl { font-size: 70px; }
html.liste.flach .karte .reihe div b { font-size: 22px; }

/* ============================================================ weniger Bewegung */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0ms !important; }
  .streifen, .band, .band .knick { animation: einblenden .25s ease-out backwards !important; animation-duration: .25s !important; }
  html.liste .band { animation: einblenden .25s ease-out backwards !important; animation-duration: .25s !important; }
  .blatt-karte { animation: einblenden .2s ease-out backwards !important; animation-duration: .2s !important; }
  .blatt.zu .blatt-karte { animation: blattAusblenden .15s forwards !important; animation-duration: .15s !important; }
  .fahne { transition: opacity .2s !important; transition-duration: .2s !important; }
  .fahne.weg { transform: none; }
  .fahne.warnung { animation: none !important; }
  .band:hover, .band:focus-visible { transform: none; }
}
@keyframes blattAusblenden { to { opacity: 0; } }

/* Spielen: Power-ups und Chaos */
.kraft-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; }
.kraft-info { display: flex; align-items: center; gap: 14px; }
.kraft.mini { width: 52px; height: 52px; animation: none; box-shadow: 0 8px 12px -6px rgba(0,0,0,.6); flex: none; }
.kraft.mini svg { width: 26px; height: 26px; }
.kraft-info b { font-size: 16px; letter-spacing: .05em; text-transform: uppercase; display: block; font-weight: 700; }
.kraft-info span.t { font-size: 13px; opacity: .72; line-height: 1.3; display: block; }
.chaos-liste { display: flex; flex-wrap: wrap; gap: 8px; }
.chaos-liste span { border: 2px solid rgba(244,232,200,.28); border-radius: 18px; padding: 6px 14px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
html.liste .kraft-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.liste .rek-spalten > div + div h3 { margin-top: 30px; }
html.hoch .blatt.halb { top: 44vh; }
html.hoch .blatt.halb .blatt-karte { border-radius: 30px 30px 0 0; }
html.hoch .blatt.halb .blatt-kopf { padding-top: 0; }
html.flach .blatt.halb { left: 42vw; }
@media (max-width: 520px) { .kraft-liste { grid-template-columns: minmax(0, 1fr); } }

body.ergebnis-offen #menue { opacity: 0; pointer-events: none; }
html.liste .karte .fuss { flex-wrap: wrap; }
html.liste .karte .fuss .pille { flex: 1 1 40%; }
html.liste .karte .fuss .pille.haupt { flex: 1 1 100%; }
.spurt span { display: flex; gap: 8px; align-items: center; }

html.flach #lernblatt .panel { max-height: 96dvh; overflow-y: auto; padding: 14px 22px 16px; gap: 8px; }
html.flach #lernblatt h2 { font-size: 38px; }
html.flach #lernblatt .unter { display: none; }
html.flach .lern-zeile { grid-template-columns: minmax(150px, auto) 1fr; padding: 8px 14px; gap: 14px; }
html.flach .lern-zeile span { font-size: 12px; }
html.flach #lernblatt .pille { height: 52px; font-size: 19px; margin-top: 2px; }
#lernblatt .panel { max-height: 96dvh; overflow-y: auto; }
html.flach #pause .panel { padding: 16px 24px; gap: 8px; max-height: 96dvh; overflow-y: auto; }
html.flach #pause h2 { font-size: 44px; margin-bottom: 0; }
html.flach #pause .pille { height: 48px; font-size: 17px; }

html.liste .einstellungen .pille { padding: 0 18px; font-size: 17px; max-width: 100%; }
html.liste .einst-zeile b { font-size: 16px; }

.herausf small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.liste .herausf b { font-size: 14px; }
html.liste .herausf small { font-size: 12px; }
html.flach #t-sprung { width: 96px; height: 96px; }
html.flach #t-ducken, html.flach #t-spurt { width: 56px; height: 56px; right: calc(38px + var(--sicher-r)); }
html.flach #t-ducken { bottom: calc(130px + var(--sicher-u)); }
html.flach #t-spurt { bottom: calc(196px + var(--sicher-u)); }
html.flach #t-links, html.flach #t-rechts { width: 76px; height: 76px; }
html.flach #t-rechts { left: calc(16px + 76px + 12px + var(--sicher-l)); }
.herausf b { min-width: 0; }

html.flach .karte .fuss { align-self: center; }
html.flach .karte .fuss .pille, html.flach .karte .fuss .pille.haupt { flex: 0 0 auto; width: 100%; }
html.flach .karte { height: 94dvh; max-height: 94dvh; grid-template-rows: minmax(0, 1fr); }
html.flach .karte .rolle { min-height: 0; max-height: 100%; }
@media (max-width: 420px) {
  html.liste .logo .k, html.liste .logo .c { font-size: 44px; }
  html.liste .logo { gap: 9px; }
}

/* Schloss-Zeichen in Fließtext und Zahlenfeldern (Welten) */
.schloss-ik svg { width: 100%; height: 100%; display: block; }
.welt-zahlen .schloss-ik { display: inline-grid; width: 28px; height: 28px; color: var(--creme); opacity: .8; }

/* ============================================================ MOBIL (Daumen zuerst) */
html { touch-action: manipulation; -webkit-touch-callout: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { height: 100dvh; }
.blatt-inhalt, .karte .rolle, #lernblatt .lern-rolle, #pause .panel { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.blatt-inhalt, .karte .rolle { touch-action: pan-y; }
#hud, #touch, #toasts { -webkit-touch-callout: none; }

/* Trefferflächen mindestens 48 px */
.segmente button { height: 48px; min-width: 48px; }
.schalter { width: 84px; height: 48px; border-radius: 24px; }
.schalter::after { left: 5px; top: 5px; width: 38px; height: 38px; }
.schalter[aria-checked="true"]::after { transform: translateX(36px); }
.skin-karte .pille { height: 48px; }
html.liste .herausf .rund { width: 48px; height: 48px; }
html.liste .ecke .rund { width: 48px; height: 48px; }
.ecke .rund[hidden] { display: none; }
html.liste .blatt-kopf .rund { width: 48px; height: 48px; }
#pause .zeile .rund { width: 56px; height: 56px; }
html.liste .karte .fuss .pille { min-height: 56px; }

/* ---------- Steuerung am Handy ---------- */
/* Wischen (Standard): nur Spurt als großer Knopf in Daumenreichweite, unten rechts */
html.touch[data-steuerung="wischen"] #touch button:not(#t-spurt) { display: none; }
html.touch[data-steuerung="wischen"] #t-spurt { width: 108px; height: 108px; right: calc(20px + var(--sicher-r)); bottom: calc(30px + var(--sicher-u));
  border-color: var(--creme); background: rgba(4,30,42,.62); }
html.touch[data-steuerung="wischen"] #t-spurt svg { width: 40%; height: 40%; }
html.touch[data-steuerung="wischen"] #t-spurt::after { content: "SPURT"; position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .14em; }
html.touch[data-steuerung="wischen"] #t-spurt svg { margin-top: -14px; }
html.touch[data-steuerung="wischen"].flach #t-spurt { width: 92px; height: 92px; bottom: calc(22px + var(--sicher-u)); }

/* Knöpfe und Beides: bisheriges Layout, große Flächen, klarer Abstand zwischen links und rechts */
html.touch #t-links, html.touch #t-rechts { width: 84px; height: 84px; }
html.touch #t-rechts { left: calc(16px + 84px + 28px + var(--sicher-l)); }
html.touch #t-links, html.touch #t-rechts, html.touch #t-sprung { bottom: calc(28px + var(--sicher-u)); }
html.touch #t-ducken, html.touch #t-spurt { width: 64px; height: 64px; }
html.touch.flach #t-links, html.touch.flach #t-rechts { width: 76px; height: 76px; }
html.touch.flach #t-rechts { left: calc(16px + 76px + 24px + var(--sicher-l)); }

/* Lernblatt: Gesten statt Tasten */
.lern-zeile .geste { width: 52px; height: 52px; border-radius: 50%; background: rgba(244,232,200,.1); display: grid; place-items: center; color: var(--creme); opacity: 1; flex: none; }
.lern-zeile .geste svg { width: 30px; height: 30px; }
.lern-zeile .geste.halten { background: var(--tinte-hell); }
.lern-zeile .lw, .lern-zeile .lk, .lern-zeile .v-wisch, .lern-zeile .v-knopf { display: none; }
html.touch .lern-zeile .lern-touch.lw { display: flex; }
html.touch .lern-zeile .v-wisch { display: block; opacity: .85; }
html.touch[data-steuerung="knoepfe"] .lern-zeile .lern-touch.lw, html.touch[data-steuerung="knoepfe"] .lern-zeile .v-wisch { display: none; }
html.touch[data-steuerung="knoepfe"] .lern-zeile .lern-touch.lk { display: flex; }
html.touch[data-steuerung="knoepfe"] .lern-zeile .v-knopf { display: block; opacity: .85; }
html.touch .lern-zeile .v-pc, html:not(.touch) .lern-zeile .v-pc + .v-wisch { display: none; }
html:not(.touch) .lern-zeile .v-pc { display: block; }
.lern-zeile .taste { display: inline-block; opacity: 1; font-size: 15px; }
#lernblatt .panel { display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
#lernblatt .lern-rolle { display: grid; gap: 12px; overflow-y: auto; min-height: 0; flex: 1 1 auto; touch-action: pan-y; }
#lernblatt .panel > .pille { flex: none; }
html.liste #lernblatt .scrim, html.liste #lernblatt { place-items: end center; }
html.liste #lernblatt .panel { width: 100vw; max-height: 100dvh; border-radius: 28px 28px 0 0; padding: calc(20px + var(--sicher-o)) 18px calc(14px + var(--sicher-u)); gap: 10px; }
html.liste #lernblatt h2 { font-size: 46px; }
html.liste .lern-zeile { grid-template-columns: auto 1fr; gap: 14px; padding: 12px 14px; }
html.liste .lern-zeile .lern-touch, html.liste .lern-zeile .lern-tasten { grid-column: 1; }
html.liste .lern-zeile > div:last-child { grid-column: 2; min-width: 0; }
html.liste .lern-zeile b { font-size: 17px; }
html.liste .lern-zeile span { font-size: 14px; }
html.liste .lern-zeile .tasten-gruppe { flex-direction: column; }
html.liste #lernblatt .pille { margin-top: 4px; height: 64px; font-size: 22px; }
html.liste.flach #lernblatt .panel { max-height: 100dvh; width: min(760px, 100vw); border-radius: 24px 24px 0 0; padding: 10px 18px calc(10px + var(--sicher-u)); gap: 6px; }
html.liste.flach #lernblatt h2 { font-size: 30px; }
html.liste.flach #lernblatt .lern-rolle { gap: 6px; }
html.liste.flach .lern-zeile { padding: 6px 12px; grid-template-columns: auto 1fr; }
html.liste.flach .lern-zeile .tasten-gruppe { flex-direction: row; }
html.liste.flach .lern-zeile span { font-size: 13px; }
html.liste.flach #lernblatt .pille { height: 52px; font-size: 19px; }

/* Spielen: Start unten angeheftet (Daumen), ohne zu scrollen erreichbar */
.start-block { display: flex; align-items: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.start-block .start-zeile { margin-top: 0; }
.start-block p { font-size: 15px; opacity: .75; line-height: 1.45; flex: 1; min-width: 200px; }
html.liste .start-block { display: contents; }
html.liste .start-block p { margin-top: 14px; }
html.liste .start-zeile { position: sticky; bottom: calc(-24px - var(--sicher-u)); z-index: 3; margin: 18px -16px calc(-24px - var(--sicher-u));
  padding: 14px 16px calc(14px + var(--sicher-u)); order: 99; background: linear-gradient(180deg, rgba(6,42,58,0), var(--petrol-900) 34%); }
html.liste .blatt-inhalt { display: flex; flex-direction: column; }
html.liste .blatt-inhalt > * { flex: none; }
html.liste .blatt-inhalt > .start-block p { order: 5; }
html.liste .start-zeile .pille { box-shadow: 0 -6px 20px 2px rgba(4,30,42,.9), 0 14px 20px -10px rgba(0,0,0,.6), inset 0 6px 8px -5px rgba(255,255,255,.4); }

/* Ergebniskarte: Hauptaktion unten angeheftet */
html.liste .karte .fuss { position: relative; z-index: 2; box-shadow: 0 -14px 20px -8px rgba(6,42,58,.95); background: var(--petrol-900); }

/* Pause im Hochformat/Handy: Knöpfe groß, Panel scrollt notfalls */
html.liste #pause .panel { max-height: 100dvh; overflow-y: auto; padding-bottom: calc(26px + var(--sicher-u)); }

/* Fertig gedrückt: Rückmeldung */
@media (hover: none) { .pille:hover:not(:disabled), .rund:hover, .welt-karte:hover, .skin-karte:hover { transform: none; filter: none; } .band:hover { transform: none; } }

/* Menü Handy hochkant: Logo gestapelt, damit die Knöpfe oben rechts nichts verdecken */
html.liste:not(.flach) .logo { display: block; }
html.liste:not(.flach) .logo .k, html.liste:not(.flach) .logo .c { display: block; font-size: 58px; }
html.liste:not(.flach) .logo .c { margin-top: -4px; }
html.liste:not(.flach) .logo .u { margin-top: 10px; font-size: 13px; }
html.liste .punkt { min-width: 0; }
html.liste .punkt span { white-space: normal; line-height: 1.2; }
html.liste .punkte { gap: 12px; }

/* HUD: Mindestgrößen trotz Skalierung (Schrift sichtbar >= 12 px, Pause-Knopf sichtbar 56 px) */
.hud-pille small { font-size: max(13px, calc(12px / var(--hs))); }
.fahne .klein { font-size: max(15px, calc(12px / var(--hs))); }
.fahne .text { font-size: max(14px, calc(12px / var(--hs))); }
.kraft em { font-size: max(15px, calc(12px / var(--hs))); }
.hud-pause { width: calc(56px / var(--hs)); height: calc(56px / var(--hs)); }
.hud-pause svg { width: calc(24px / var(--hs)); height: calc(24px / var(--hs)); }

/* Pause als Blatt von unten (Daumen) */
html.liste #pause { place-items: end center; }
html.liste #pause .panel { width: min(520px, 100vw); border-radius: 30px 30px 0 0; padding: 20px 22px calc(20px + var(--sicher-u)); gap: 12px; }
html.liste:not(.flach) #pause h2 { font-size: 56px; margin-bottom: 0; }
html.liste #pause .pille { height: 60px; }
html.liste #pause .zeile { gap: 16px; }
html.liste #pause .zeile .rund { width: 56px; height: 56px; }

/* Ergebniskarte: Grund als Zeile statt im Kopfbild (Handy) */
.grund2 { display: none; }
html.liste .grund2 { display: block; color: var(--eis); font-size: 13px; padding-top: 16px; line-height: 1.4; }
html.liste .karte .kopf .grund { display: none; }
html.liste .karte .marken { padding-top: 8px; }

/* Einstellungen: Schalter bleiben neben dem Text, Segmente über die ganze Breite */
.einst-zeile > div:first-child { flex: 1 1 150px; min-width: 0; }
.einst-zeile:has(.schalter) { flex-wrap: nowrap; }
html.liste .segmente { width: 100%; }
html.liste .segmente button { flex: 1 1 0; padding: 0 4px; letter-spacing: .04em; min-width: 0; }
html.liste .start-zeile { background: linear-gradient(180deg, rgba(6,42,58,0), var(--petrol-900) 22%); }

/* Kleine Handys: Menü enger, Ergebniskarte kompakter */
@media (max-width: 400px) { html.liste .punkt i { display: none; } html.liste .punkt span { letter-spacing: .06em; } html.liste .punkte { justify-content: space-between; } }
@media (max-height: 700px) {
  html.liste:not(.flach) .logo .u { display: none; }
  html.liste:not(.flach) .logo .k, html.liste:not(.flach) .logo .c { font-size: 50px; }
  html.liste:not(.flach) .karte .kopf { height: 104px; }
  html.liste:not(.flach) .karte .kopf canvas { width: 150px; height: 95px; left: 8px; }
  html.liste:not(.flach) .karte .kopf .st { width: 40px; }
  html.liste:not(.flach) .karte .fuss { gap: 8px; padding-top: 10px; }
  html.liste:not(.flach) .karte .fuss .pille, html.liste:not(.flach) .karte .fuss .pille.dort { height: 52px; min-height: 52px; font-size: 17px; }
  html.liste:not(.flach) .karte .weit .zahl { font-size: 76px; }
}
.punkt b, .punkt span { text-shadow: 0 1px 6px rgba(4,30,42,.8); }
html.liste .karte .kopf { overflow: hidden; }

/* ============================================================ FEINSCHLIFF (14.11.): Kombo, Hinweise, Datenpunkte */
/* Kombo-Zähler im Lauf: kleine Pille unter den Talern, verschwindet nach kurzer Zeit */
.kombo { height: 44px; border-radius: 22px; padding: 0 20px; display: flex; align-items: center; background: rgba(4,30,42,.72); border: 2px solid rgba(244,232,200,.18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 20px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--creme); font-stretch: 85%;
  transition: opacity .25s, transform .25s; pointer-events: none; }
.kombo.weg { opacity: 0; transform: translateY(-6px); }
.kombo.stoss { animation: komboStoss .28s cubic-bezier(.2,.9,.2,1.3); }
@keyframes komboStoss { from { transform: scale(.82); } 60% { transform: scale(1.08); } }
.kombo #kombo-text { display: block; }

/* Power-up-Hinweis neben dem Chaos-Banner: links unter der Distanz, nicht über der Bahnmitte */
#toasts.seitlich { left: calc(36px * var(--hs) + var(--sicher-l)); transform: none; align-items: flex-start; width: auto; max-width: 46vw; top: calc(124px * var(--hs) + var(--sicher-o)); }
#toasts.seitlich .toast { padding: 6px 16px; font-size: 14px; border-radius: 18px; text-align: left; }
@media (max-width: 520px), (max-height: 520px) {
  .toast { padding: 7px 16px; font-size: 15px; }
  .kombo { height: 38px; font-size: 17px; padding: 0 16px; }
  #toasts.seitlich .toast { font-size: 13px; padding: 5px 12px; }
}

/* Datenpunkte im Hoch- und Querformat: dezente dunkle Pille, gut lesbar auf jedem Hintergrund */
html.liste .punkte { background: rgba(4,30,42,.72); border: 2px solid rgba(244,232,200,.18); border-radius: 999px; padding: 7px 18px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 10px 18px -10px rgba(0,0,0,.6); gap: 12px; }
html.liste .punkt { min-width: 0; }
html.liste .punkt b { line-height: 1; }
html.liste .punkt span { font-size: 11px; letter-spacing: .08em; opacity: .8; }
@media (max-width: 420px) {
  html.liste .punkte { padding: 4px 14px; gap: 8px; }
  html.liste .punkt i { display: none; }
  html.liste .punkt b { font-size: 21px; }
  html.liste .punkt span { font-size: 10px; letter-spacing: .05em; }
}
html.liste.flach .punkte { padding: 3px 16px; }
html.liste.flach .punkt b { font-size: 19px; }

/* Kombo-Platz: links neben dem Pause-Knopf, im Hochformat unter dem Chaos-Banner; Pause-Knopf liegt über dem Banner */
.hud-ok { right: calc(132px * var(--hs) + var(--sicher-r)); top: calc(139px * var(--hs) + var(--sicher-o)); transform-origin: 100% 0; transform: scale(var(--hs)); pointer-events: none; }
html.hoch .hud-ok { right: calc(36px * var(--hs) + var(--sicher-r)); top: calc(244px * var(--hs) + var(--sicher-o)); }
.hud-or { z-index: 2; }
html.touch #toasts.seitlich { left: calc(130px * var(--hs) + var(--sicher-l)); }
html.flach .hud-om { width: 560px; }
html.hoch #toasts.seitlich { max-width: 40vw; }
/* sichtbar mindestens 11 px (Maßstab herausgerechnet); lange Texte brechen auf zwei Zeilen um, die Fahne wächst dafür nach unten */
html.hoch .fahne .text { font-size: calc(11px / var(--hs)); line-height: 1.15; letter-spacing: .04em; white-space: normal; text-wrap: balance; }
html.hoch .fahne { height: auto; min-height: 112px; padding: 14px 16px 10px; }
html.hoch .fahne .balken { margin: 6px 24px 0; }
/* Platz für die zweite Textzeile: alles darunter rückt im Hochformat etwas nach unten */
html.touch.hoch .hud-ul { top: calc(272px * var(--hs) + var(--sicher-o)); }
html.hoch .hud-ok { top: calc(268px * var(--hs) + var(--sicher-o)); }
html.hoch #toasts { top: calc(282px * var(--hs) + var(--sicher-o)); }
/* Ergebniskarte im Querformat: kompakter, damit Kennzahlen (auch Kisten, Kombo) ohne langes Scrollen sichtbar sind */
html.liste.flach .karte .marken { padding-top: 6px; gap: 6px; }
html.liste.flach .karte .marke { font-size: 12px; padding: 5px 12px; }
html.liste.flach .karte .welt-band { margin-top: 8px; padding: 6px 16px 6px 8px; font-size: 15px; }
html.liste.flach .karte .welt-band .zeichen { width: 34px; height: 34px; }
html.liste.flach .karte .weit { padding-top: 4px; }
html.liste.flach .karte .weit .zahl { font-size: 56px; }
html.liste.flach .karte .reihe { padding-top: 8px; gap: 8px 16px; }
html.liste.flach .karte .reihe div b { font-size: 19px; }
html.liste.flach .karte .reihe div span { font-size: 10px; }
html.liste.flach .karte .liste { margin-top: 10px; }

/* ============================================================ REVIEW 1 (13.11.): Lesbarkeit und enge Handys */
/* Power-up-Liste: bis 420 px eine Spalte (die Zwei-Spalten-Regel für Listen-Ansicht war stärker als die 520-px-Regel,
   bei 360 px lief „SUPERSPRUNG“ unter die zweite Spalte) */
@media (max-width: 420px) { html.liste .kraft-liste { grid-template-columns: minmax(0, 1fr); } }
.kraft-info > div { min-width: 0; overflow-wrap: anywhere; }

/* Kontrast (WCAG AA, 4,5 : 1 für kleine Schrift): Tinte mit Deckkraft auf Orange und Eisblau war zu blass */
.band.c-orange .unter, .band.c-eis .unter,
.blatt-kopf.c-orange .unter, .blatt-kopf.c-eis .unter { opacity: .92; }
.aufgabe.c-orange .art, .aufgabe.c-eis .art { opacity: .9; }
.welt-karte.c-eis > small, .welt-karte.c-eis .stufe, .welt-karte.c-eis .best { opacity: .92; }
.fahne .klein { opacity: .92; }
.fahne .text { opacity: .95; }
.toast small { opacity: .85; }
.aufgabe.fertig { opacity: .88; }

/* ============================================================ REVIEW 2 (13.11.): große Bildschirme, Vorlese-Ansage */
/* Ab einem Maßstab über 1,05 (z. B. 2560 × 1440) wachsen Blätter, Ergebniskarte, Pause und Lernblatt wie das Menü.
   Die Eigenschaft „scale“ lässt die Einblend-Animationen (transform) unberührt; die Größen werden vorher durch den Maßstab geteilt,
   damit das Ergebnis genau den vorherigen Platz (rechte Spalte, 92 % Höhe) füllt. */
html.gross .blatt { left: auto; width: calc(63vw / var(--gz)); bottom: auto; height: calc((96vh - 112px) / var(--gz)); scale: var(--gz); transform-origin: 100% 0; }
html.gross .karte { width: min(600px, 92vw / var(--gz)); max-height: min(920px, 94dvh / var(--gz)); scale: var(--gz); transform-origin: 100% 50%; }
html.gross #pause .panel { width: min(460px, 92vw / var(--gz)); scale: var(--gz); }
html.gross #lernblatt .panel { width: min(640px, 94vw / var(--gz)); max-height: calc(96dvh / var(--gz)); scale: var(--gz); }

/* Nur für den Bildschirmleser */
.nur-vorlese { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Hochformat: Die Chaos-Fahne lag mit ihrem rechten Ende unter dem Pause-Knopf (bei 360 bis 412 px Breite etwa 35 bis 45 px).
   Jetzt bündig mit der Distanz-Pille links und rechts vor dem Pause-Knopf zu Ende. */
html.hoch .hud-om { left: calc(36px * var(--hs) + var(--sicher-l)); transform: scale(var(--hs)); transform-origin: 0 0;
  width: min(430px, (100vw - 72px * var(--hs) - var(--sicher-l) - var(--sicher-r) - 66px) / var(--hs)); }

/* Menü-Hinweise: Platz wird in hud.js gemessen (frei von Bändern, Logo, Datenpunkten, Eckknöpfen) */
body.im-menue #toasts.frei { top: 0; bottom: auto; transform: none; width: max-content; align-items: stretch; }

/* ============================================================ RUF (15.11.): Sprüche, Kombo-Ruf und Punkte in der Bildschirmmitte */
/* Obere Mitte: über dem Kiwi und der Bahn direkt vor ihm (die liegen im unteren Teil des Bildes), unter der Chaos-Fahne.
   Nur transform und opacity werden bewegt. Farben: Creme auf Tinte-Kontur, Eisblau für Kräfte und Schild; kein Orange. */
.ruf-feld { position: absolute; left: 0; right: 0; top: var(--ruf-mitte, 33%); transform: translateY(-50%); display: flex; justify-content: center; padding: 0 12px; pointer-events: none; z-index: 3; }
.ruf { --dreh: -3deg; --dauer: 1200ms; --kontur: 3px; display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 100%; text-align: center;
  transform-origin: 50% 70%; animation: rufFlug var(--dauer) linear forwards; will-change: transform, opacity; }
.ruf-kopf { font-family: var(--schrift); font-weight: 800; font-stretch: 75%; line-height: .9; letter-spacing: .02em; white-space: nowrap; color: var(--creme);
  text-shadow: calc(var(--kontur) * -1) 0 var(--tinte), var(--kontur) 0 var(--tinte), 0 calc(var(--kontur) * -1) var(--tinte), 0 var(--kontur) var(--tinte),
    calc(var(--kontur) * -.7) calc(var(--kontur) * -.7) var(--tinte), calc(var(--kontur) * .7) calc(var(--kontur) * -.7) var(--tinte),
    calc(var(--kontur) * -.7) calc(var(--kontur) * .7) var(--tinte), calc(var(--kontur) * .7) calc(var(--kontur) * .7) var(--tinte),
    0 calc(var(--kontur) + 4px) 0 rgba(19,26,42,.85), 0 calc(var(--kontur) + 10px) 14px rgba(0,0,0,.45); }
.ruf-spruch { font-weight: 700; letter-spacing: .02em; white-space: nowrap; line-height: 1.15; padding: .38em 1.05em .42em; border-radius: 999px;
  background: var(--tinte); color: var(--creme); box-shadow: 0 8px 16px -6px rgba(0,0,0,.6); font-size: clamp(14px, 4.4vw, 23px); max-width: calc(100vw - 24px); overflow: hidden; text-overflow: clip; }
.g3 .ruf-kopf { font-size: min(13.5vw, 16vh, 92px); }
.g2 .ruf-kopf { font-size: min(10.5vw, 13vh, 68px); }
.g1 .ruf-spruch, .nur-spruch .ruf-spruch { font-size: clamp(15px, 5vw, 26px); }
.g3 .ruf-spruch { font-size: clamp(14px, 4.6vw, 25px); }
.ruf-eis .ruf-kopf { color: var(--eis); }
.ruf-eis .ruf-spruch { background: var(--eis); color: var(--tinte); }
.gross-ruf { --kontur: 4px; }
.gross-ruf .ruf-kopf { color: var(--weiss); }
.ruf-eis.gross-ruf .ruf-kopf { color: var(--eis); }
@keyframes rufFlug {
  0%   { opacity: 0; transform: translateY(14px) scale(.4) rotate(0deg); }
  13%  { opacity: 1; transform: translateY(0) scale(1.16) rotate(var(--dreh)); }
  21%  { transform: translateY(0) scale(.97) rotate(var(--dreh)); }
  28%  { transform: translateY(0) scale(1) rotate(var(--dreh)); }
  72%  { opacity: 1; transform: translateY(0) scale(1) rotate(var(--dreh)); }
  100% { opacity: 0; transform: translateY(-64px) scale(.94) rotate(var(--dreh)); }
}
/* Punkte: kleine Zahlen unter dem Ruf, steigen auf */
.punkte-feld { position: absolute; left: 0; right: 0; top: calc(var(--ruf-mitte, 33%) + var(--punkte-versatz, 90px)); display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; z-index: 3; }
.punkt-zahl { font-weight: 800; font-stretch: 75%; font-size: clamp(24px, 6.5vw, 34px); line-height: 1; color: var(--creme); letter-spacing: .02em; font-variant-numeric: tabular-nums;
  text-shadow: -2px 0 var(--tinte), 2px 0 var(--tinte), 0 -2px var(--tinte), 0 2px var(--tinte), -1.5px -1.5px var(--tinte), 1.5px -1.5px var(--tinte), -1.5px 1.5px var(--tinte), 1.5px 1.5px var(--tinte), 0 4px 8px rgba(0,0,0,.5);
  animation: punktSteigt 1.1s ease-out forwards; will-change: transform, opacity; }
.punkt-zahl.viel { font-size: clamp(30px, 8vw, 44px); color: var(--eis); }
/* folgt dem Kiwi: Ort (Mitte, Unterkante) setzt hud.js beim Anlegen; translate bleibt frei von der Animation (transform) */
.punkt-zahl.folgt { position: fixed; translate: -50% -100%; white-space: nowrap; }
@keyframes punktSteigt {
  0%   { opacity: 0; transform: translateY(8px) scale(.6); }
  15%  { opacity: 1; transform: translateY(0) scale(1.12); }
  30%  { transform: translateY(-4px) scale(1); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(var(--steig, -46px)) scale(.95); }
}
/* Kombo-Anzeige wird mit der Kombo „heißer“: größer, heller, ab Stufe 3 wackelt der Text (kein Orange) */
.kombo[data-stufe="2"] { border-color: var(--eis); font-size: 22px; }
.kombo[data-stufe="3"] { background: var(--eis); border-color: var(--eis); color: var(--tinte); font-size: 25px; height: 48px; }
.kombo[data-stufe="4"] { background: var(--weiss); border-color: var(--weiss); color: var(--tinte); font-size: 29px; height: 54px; box-shadow: 0 0 0 4px rgba(91,187,208,.55), 0 10px 22px -6px rgba(0,0,0,.6); }
.kombo[data-stufe="3"] #kombo-text { animation: komboWackel .5s ease-in-out infinite; }
.kombo[data-stufe="4"] #kombo-text { animation: komboWackel .34s ease-in-out infinite; }
@keyframes komboWackel { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg) scale(1.04); } }
@media (max-width: 520px), (max-height: 520px) {
  .kombo[data-stufe="2"] { font-size: 18px; }
  .kombo[data-stufe="3"] { font-size: 20px; height: 40px; }
  .kombo[data-stufe="4"] { font-size: 23px; height: 44px; }
}
/* Ergebniskarte: Spruchzeile unter der Weite */
.karte .e-spruch { margin-top: 10px; font-size: 20px; font-weight: 700; letter-spacing: .02em; color: var(--eis); }
html.liste .karte .e-spruch { font-size: 17px; margin-top: 6px; }
html.liste.flach .karte .e-spruch { font-size: 15px; margin-top: 2px; }
@media (prefers-reduced-motion: reduce) {
  .ruf { animation-name: rufBlend !important; animation-duration: var(--dauer) !important; }
  .punkt-zahl { animation-name: punktBlend !important; animation-duration: 1.1s !important; }
  .kombo[data-stufe] #kombo-text { animation: none !important; }
}
@keyframes rufBlend { 0% { opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes punktBlend { 0% { opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
/* Handy und Tablet (Touch, Hochformat, niedriges Querformat): Der Ruf steht im Blickfeld, direkt über dem Fluchtpunkt der Bahn
   (Horizont bei etwa 36-45 % der Höhe), mittig, unter den Eck-Anzeigen. Die nahe Bahn vor dem Kiwi bleibt frei. Kein Papierstreifen:
   kräftige Tuschekontur und weicher Schatten. Zahlen steigen am rechten Rand unter der Taler-Pille auf. */
html.touch, html.hoch, html.flach { --ruf-mitte: 28%; --punkte-versatz: 0px; --steig: -20px; }
html.hoch { --ruf-mitte: 30%; }
html.flach { --ruf-mitte: 31%; }
html.touch .ruf, html.hoch .ruf, html.flach .ruf { --kontur: 3px; gap: 3px; }
html.hoch .g3 .ruf-kopf { font-size: min(10.5vw, 76px); }
html.hoch .g2 .ruf-kopf { font-size: min(9.5vw, 66px); }
html.touch:not(.hoch) .g3 .ruf-kopf, html.flach .g3 .ruf-kopf { font-size: min(10vmin, 60px); }
html.touch:not(.hoch) .g2 .ruf-kopf, html.flach .g2 .ruf-kopf { font-size: min(8.5vmin, 52px); }
html.touch .ruf-spruch, html.hoch .ruf-spruch, html.flach .ruf-spruch { background: none; box-shadow: none; padding: 0; border-radius: 0; font-size: clamp(17px, 4.9vw, 26px); font-weight: 800; color: var(--creme); overflow: visible;
  text-shadow: -2.5px 0 var(--tinte), 2.5px 0 var(--tinte), 0 -2.5px var(--tinte), 0 2.5px var(--tinte), -1.8px -1.8px var(--tinte), 1.8px -1.8px var(--tinte), -1.8px 1.8px var(--tinte), 1.8px 1.8px var(--tinte), 0 5px 10px rgba(0,0,0,.6); }
html.touch .ruf-eis .ruf-spruch, html.hoch .ruf-eis .ruf-spruch, html.flach .ruf-eis .ruf-spruch { background: none; color: var(--eis); }
html.touch .nur-spruch .ruf-spruch, html.hoch .nur-spruch .ruf-spruch, html.flach .nur-spruch .ruf-spruch { font-size: clamp(19px, 5.6vw, 30px); }
html.flach .ruf-spruch { display: none; }
html.touch .punkte-feld, html.hoch .punkte-feld, html.flach .punkte-feld { left: 0; right: 0; top: var(--punkte-y, 58%); align-items: center; }
html.hoch { --punkte-y: 57%; }
html.touch:not(.hoch) { --punkte-y: 59%; }
html.flach { --punkte-y: 57%; --steig: -30px; }
html.touch .punkt-zahl, html.hoch .punkt-zahl, html.flach .punkt-zahl { font-size: clamp(24px, 6vmin, 32px); }
html.touch .punkt-zahl.viel, html.hoch .punkt-zahl.viel, html.flach .punkt-zahl.viel { font-size: clamp(28px, 7.5vmin, 38px); }
/* Hochformat: Power-up-Ringe unter den Ruf (Ruf-Mitte 30 %), nicht in sein Blickfeld */
html.hoch.touch .hud-ul { top: calc(40% + var(--sicher-o)); }

/* ============================================================ ERGEBNIS ALS KASSENBON (15.11.): Laufzettel aus Papier */
/* Creme-Papier auf dem Petrol-Panel, Tinte-Schrift, Petrol/Eisblau als Stempelfarbe; Orange bleibt der Hauptaktion „Noch eine Runde“. */
.karte .rolle { padding: 8px 26px 6px; }
.bon { position: relative; background: var(--creme); color: var(--tinte); padding: 30px 22px 22px; margin: 6px 4px 22px; border-radius: 4px 4px 0 0; transform: rotate(-.6deg);
  box-shadow: 0 18px 26px -12px rgba(0,0,0,.65); font-variant-numeric: tabular-nums; }
.bon::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px; background: radial-gradient(circle at 12px 8px, var(--petrol-900) 0 4px, transparent 4.5px) 0 0 / 24px 16px repeat-x; }
.bon::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: linear-gradient(135deg, var(--creme) 5px, transparent 0) 0 0 / 14px 10px, linear-gradient(225deg, var(--creme) 5px, transparent 0) 0 0 / 14px 10px; }
.bon .klein { color: var(--tinte-hell); opacity: .75; font-size: 12px; letter-spacing: .2em; }
.bon-stempel { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding-bottom: 6px; border-bottom: 2px dashed rgba(19,26,42,.35);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--petrol-700); }
.bon-stempel .grund2 { text-align: right; color: var(--tinte-hell); }
.bon-titel { margin-top: 8px; }
.bon-kopf { margin-top: 14px; }
html .karte .bon .weit { padding: 2px 0 0; }
html .karte .bon .weit .zahl { font-size: 96px; color: var(--tinte); line-height: .9; }
html .karte .bon .weit .zahl.klein-zahl { font-size: 80px; }
html .karte .bon .weit .zahl sup { font-size: 30px; color: var(--tinte-hell); margin-left: 6px; }
.latte { position: relative; height: 14px; margin: 10px 0 20px; border-radius: 7px; background: rgba(19,26,42,.14); }
.latte .fuell { display: block; height: 100%; width: calc(var(--fuell, 0) * 100%); border-radius: 7px; background: var(--petrol-500); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.latte.rekord .fuell { background: var(--petrol-700); }
.latte .latte-marke { position: absolute; left: calc(var(--marke, 0) * 100%); top: -5px; bottom: -5px; width: 3px; margin-left: -1px; background: var(--tinte); border-radius: 2px; }
.latte .latte-marke span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 2px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.latte.ohne-marke .latte-marke { display: none; }
.latte-text { margin-top: -12px; font-size: 12px; font-weight: 600; color: var(--tinte-hell); }
.rekord-stempel { position: absolute; right: 12px; top: 58px; transform: rotate(-11deg); padding: 3px 10px 4px; border: 4px double var(--petrol-500); border-radius: 6px;
  color: var(--petrol-500); font-size: 22px; font-weight: 800; font-stretch: 85%; letter-spacing: .06em; text-transform: uppercase; background: rgba(244,232,200,.7); pointer-events: none; }
.rekord-stempel.da { animation: stempelRuck .34s cubic-bezier(.2,.9,.3,1.3); }
@keyframes stempelRuck { 0% { transform: rotate(-11deg) scale(2.3); opacity: 0; } 55% { transform: rotate(-11deg) scale(.94); opacity: 1; } 75% { transform: rotate(-10deg) translate(2px, 1px) scale(1.02); } 100% { transform: rotate(-11deg) scale(1); } }
html .karte .bon .e-spruch { margin: 12px 8px 0 4px; font-size: 16px; font-style: italic; font-weight: 700; color: var(--petrol-700); transform: rotate(-1.6deg); transform-origin: 0 50%;
  text-decoration: underline wavy rgba(26,110,140,.55) 1.5px; text-underline-offset: 5px; text-decoration-skip-ink: none; }
.posten { list-style: none; display: grid; gap: 5px; margin-top: 8px; }
.posten-zeile { display: flex; align-items: baseline; gap: 6px; font-size: 15px; font-weight: 600; line-height: 1.25; }
.posten-zeile .p-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.posten-zeile .p-linie { flex: 1 1 12px; min-width: 12px; border-bottom: 2px dotted rgba(19,26,42,.45); transform: translateY(-3px); }
.posten-zeile .p-betrag { font-weight: 800; white-space: nowrap; }
.p-leer { opacity: .6; }
.summe { margin-top: 12px; padding-top: 8px; border-top: 3px double var(--tinte); display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.summe b { font-size: 28px; font-weight: 800; font-stretch: 75%; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.konto { margin-top: 4px; text-align: right; font-size: 13px; font-weight: 600; color: var(--tinte-hell); }
.bon .reihe { margin-top: 12px; padding-top: 8px; border-top: 2px dashed rgba(19,26,42,.3); gap: 6px 18px; }
.bon .reihe div b { font-size: 20px; }
.bon .reihe div span { font-size: 10px; opacity: .75; }
.bon .marken { padding-top: 12px; }
.bon .marke { background: var(--tinte); color: var(--creme); font-size: 12px; padding: 5px 12px; }
.bon .marke.eis { background: var(--eis); color: var(--tinte); }
.bon .welt-band { margin: 14px -22px 0 -22px; font-size: 16px; padding: 10px 18px 10px 12px; }
.bon .welt-band .zeichen { width: 38px; height: 38px; }
.ziel { margin-top: 12px; padding-top: 10px; border-top: 2px dashed rgba(19,26,42,.3); display: grid; gap: 6px; }
.ziel-text { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ziel-balken { display: block; height: 10px; border-radius: 5px; background: rgba(19,26,42,.15); overflow: hidden; }
.ziel-balken i { display: block; height: 100%; border-radius: 5px; background: var(--petrol-500); }
.abzeichen-box { flex: none; padding: 0 26px 12px; }
.abzeichen-box .klein { color: var(--eis); }
.rundentitel { margin-top: 2px; font-size: 19px; font-weight: 800; letter-spacing: .04em; color: var(--creme); }
.abzeichen { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.abzeichen-chip { background: var(--tinte-hell); color: var(--creme); border-radius: 999px; padding: 5px 13px; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.abzeichen-chip:first-child { background: var(--eis); color: var(--tinte); }
/* Ausdrucken und Eintrudeln (nur solange die Animation läuft; Tipp, Taste oder weniger Bewegung zeigen sofort alles) */
.posten-zeile, .abzeichen-chip, .summe, .konto, .rundentitel, .latte, .e-spruch { transition: opacity .18s ease-out, transform .18s ease-out; }
.laeuft .da-noch { opacity: 0; transform: translateY(-8px); }
.laeuft .latte.da-noch .fuell { width: 0; }
.laeuft .rekord-stempel.da-noch { opacity: 0; animation: none; }
.druckt .bon { animation: bonDruck .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes bonDruck { from { clip-path: inset(0 0 100% 0); transform: translateY(-26px) rotate(-.6deg); } to { clip-path: inset(0 0 -24px 0); transform: translateY(0) rotate(-.6deg); } }
@media (prefers-reduced-motion: reduce) { .druckt .bon { animation: none; } .laeuft .da-noch { opacity: 1; transform: none; } }

/* Handy hochkant: Kopf flacher, alles dichter, damit die Knöpfe ohne Scrollen erreichbar bleiben */
html.liste:not(.flach) .karte .kopf { height: 84px; }
html.liste:not(.flach) .karte .kopf canvas { width: 140px; height: 88px; left: 4px; bottom: 0; }
html.liste:not(.flach) .karte .kopf .st { width: 42px; }
html.liste .karte .rolle { padding: 6px 16px 4px; }
html.liste .bon { padding: 26px 16px 16px; margin: 4px 2px 18px; }
html.liste .karte .bon .weit .zahl { font-size: 66px; }
html.liste .karte .bon .weit .zahl.klein-zahl { font-size: 56px; }
html.liste .karte .bon .weit .zahl sup { font-size: 22px; }
html.liste .bon .bon-titel { display: none; }
html.liste .latte { margin: 6px 0 18px; height: 12px; }
html.liste .rekord-stempel { top: 44px; font-size: 18px; right: 6px; }
html.liste .karte .bon .e-spruch { font-size: 14px; margin-top: 8px; }
html.liste .bon .bon-kopf { margin-top: 8px; }
html.liste .posten { gap: 3px; margin-top: 4px; }
html.liste .posten-zeile { font-size: 14px; }
html.liste .summe { margin-top: 8px; padding-top: 5px; }
html.liste .summe b { font-size: 23px; }
html.liste .bon .reihe { display: none; }
html.liste .bon .welt-band { margin: 10px -16px 0 -16px; }
html.liste .abzeichen-box { padding: 2px 16px 6px; }
html.liste .rundentitel { font-size: 16px; }
html.liste .abzeichen { gap: 4px; margin-top: 4px; }
html.liste .abzeichen-chip { font-size: 12px; padding: 3px 10px; }
html.liste .karte .fuss { padding: 8px 16px calc(14px + var(--sicher-u)); gap: 8px; }
html.liste .karte .fuss .pille { height: 52px; }
/* Querformat am Handy: Bon links, Abzeichen und Knöpfe rechts */
html.liste.flach .karte { grid-template-rows: 1fr auto; }
html.liste.flach .karte .rolle { grid-column: 1; grid-row: 1 / span 2; padding: 6px 14px 4px 18px; }
html.liste.flach .karte .abzeichen-box { grid-column: 2; grid-row: 1; align-self: end; padding: 14px 18px 6px 8px; }
html.liste.flach .karte .fuss { grid-column: 2; grid-row: 2; align-content: start; padding: 6px 18px 14px 8px; flex-direction: column; }
html.liste.flach .karte .fuss .pille { height: 46px; }
html.liste.flach .karte .bon .weit .zahl { font-size: 54px; }
html.liste.flach .bon { padding: 24px 14px 12px; }
html.liste.flach .posten-zeile { font-size: 13px; }
html.liste.flach .bon .bon-stempel { font-size: 11px; }
html.liste.flach .bon .reihe { display: none; }
.latte.marke-rechts .latte-marke span { left: auto; right: -2px; transform: none; }
.karte .rolle { overflow-x: hidden; }
.abzeichen-box { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; }
.abzeichen-box .abzeichen { grid-column: 1 / -1; }
.abzeichen-box .rundentitel { text-align: right; margin-top: 0; }
html.liste .rundentitel { font-size: 15px; }
/* Niedrige Handys hochkant (360 x 640): der Kopf mit dem Kiwi weicht, damit der ganze Bon samt Knöpfen ohne Scrollen passt */
@media (max-height: 700px) { html.liste:not(.flach) .karte .kopf { display: none; } }
html.liste.flach .karte .abzeichen-box { grid-template-columns: 1fr; }
html.liste.flach .abzeichen-box .rundentitel { text-align: left; }
.abzeichen-box { grid-template-columns: auto 1fr; }
.abzeichen-box .klein { white-space: nowrap; }
.abzeichen-box .rundentitel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.liste .bon-stempel { font-size: 11px; letter-spacing: .06em; white-space: nowrap; }
html.liste .bon-stempel .grund2 { overflow: hidden; text-overflow: ellipsis; }
html.liste .ziel { margin-top: 8px; padding-top: 6px; gap: 4px; }
html.liste .ziel-text { font-size: 12px; letter-spacing: .02em; text-transform: none; }
html.liste .ziel-balken { height: 8px; }
html.liste .karte .bon .welt-band { font-size: 14px; }
html.liste:not(.flach) .bon-stempel .grund2 { display: none; }
.bon-stempel .grund2 { display: none !important; }
.latte { margin-bottom: 18px; }
.latte-text { margin-top: 0; }
html.liste .latte { margin-bottom: 18px; }
.karte .kopf { height: 150px; }
.karte .kopf canvas { width: 210px; height: 132px; left: 14px; }
.karte .kopf .st { width: 56px; }
.karte .kopf .grund { top: 16px; }
html.liste.flach .bon-kopf { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html.liste.flach .latte { margin: 4px 0 16px; }
html.liste.flach .karte .bon .e-spruch { margin-top: 6px; }
html.liste.flach .posten { margin-top: 6px; }
html.liste.flach .summe { margin-top: 6px; }
html.liste.flach .karte .bon .weit .zahl { font-size: 50px; }
html.liste.flach .ziel { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding-top: 6px; }
html.liste.flach .ziel-text { flex: none; }
html.liste.flach .ziel-balken { flex: 1; }
html:not(.liste) .karte .kopf { height: 124px; }
html:not(.liste) .karte .kopf canvas { width: 180px; height: 114px; }
html:not(.liste) .karte .bon .weit .zahl { font-size: 80px; }
/* Bon: nichts läuft aus dem Bild (Drehung nur, wo Platz ist; Zahlen mit clamp; Zeilen kürzen statt überlaufen) */
.bon { --bon-dreh: -.6deg; transform: rotate(var(--bon-dreh)); min-width: 0; }
@keyframes bonDruck { from { clip-path: inset(0 0 100% 0); transform: translateY(-26px) rotate(var(--bon-dreh)); } to { clip-path: inset(0 0 -24px 0); transform: translateY(0) rotate(var(--bon-dreh)); } }
html.liste .bon { --bon-dreh: 0deg; }
html:not(.liste) .karte .rolle { padding: 10px 30px 6px; }
html:not(.liste) .bon { margin: 8px 12px 22px; }
html .karte .bon .weit .zahl { font-size: clamp(48px, 17vw, 80px); }
html:not(.liste) .karte .bon .weit .zahl { font-size: clamp(56px, 6vw, 80px); }
html.liste .karte .bon .weit .zahl { font-size: clamp(40px, 16vw, 66px); }
html.liste .karte .bon .weit .zahl.klein-zahl { font-size: clamp(34px, 13vw, 56px); }
html.liste.flach .karte .bon .weit .zahl { font-size: clamp(40px, 12vh, 50px); }
html.liste.flach .karte .bon .weit .zahl.klein-zahl { font-size: clamp(34px, 10vh, 44px); }
.bon .weit { min-width: 0; overflow-wrap: anywhere; }
.bon .zahl { white-space: normal; }
.summe { flex-wrap: wrap; }
.summe > span:first-child { white-space: nowrap; }
.summe b { font-size: clamp(20px, 6.4vw, 28px); }
.posten-zeile { min-width: 0; }
.posten-zeile .p-text { flex: 0 1 auto; }
.posten-zeile .p-betrag { flex: none; }
.abzeichen-box { min-width: 0; }
.abzeichen-box .rundentitel { min-width: 0; }
.abzeichen-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rekord-stempel { max-width: calc(100% - 24px); white-space: nowrap; font-size: clamp(14px, 5vw, 22px); }
.bon-stempel > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-spruch, .latte-text, .konto, .ziel-text { overflow-wrap: anywhere; }
html.liste.flach .karte { width: min(900px, calc(100vw - var(--sicher-l) - var(--sicher-r) - 12px)); }
html.liste.flach .karte .rolle, html.liste.flach .karte .abzeichen-box, html.liste.flach .karte .fuss { min-height: 0; }
html.liste:not(.flach) .karte .rolle { padding-left: calc(16px + var(--sicher-l)); padding-right: calc(16px + var(--sicher-r)); }
html.liste:not(.flach) .karte .fuss, html.liste:not(.flach) .karte .abzeichen-box { padding-left: calc(16px + var(--sicher-l)); padding-right: calc(16px + var(--sicher-r)); }
/* Abzeichen: Titel darf umbrechen; im niedrigen Querformat scrollt die Box, statt aus dem Rahmen zu ragen */
.abzeichen-box { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; }
.abzeichen-box .abzeichen { flex: 1 1 100%; }
.abzeichen-box .rundentitel { flex: 1 1 auto; white-space: normal; text-align: left; }
html.liste.flach .karte .abzeichen-box { align-self: stretch; overflow-y: auto; min-height: 0; align-content: flex-end; scrollbar-width: thin; }
html.liste.flach .karte .fuss .pille.dort { height: 46px; font-size: 16px; }
/* Sehr lange Distanz: der Stempel steht im Fluss statt über der Zahl */
.bon.lang-zahl .rekord-stempel { position: static; display: table; margin: 8px 0 0 auto; transform: rotate(-4deg); }
.bon.lang-zahl .rekord-stempel.da { animation: none; }

/* Handy hochkant: obere Leiste symmetrisch. Links Distanz, rechts Taler als gleich breite Pillen, der Pause-Knopf genau in der Mitte dazwischen
   (48 px, mit dem Daumen erreichbar); Kombo-Pille mittig unter dem Ruf. */
html.hoch { --pause: 48px; --rand: calc(36px * var(--hs)); --pille-b: calc((100vw - 2 * var(--rand) - var(--sicher-l) - var(--sicher-r) - var(--pause) - 16px) / 2 / var(--hs)); }
html.hoch .hud-ol, html.hoch .hud-or { width: var(--pille-b); top: calc(var(--rand) + var(--sicher-o)); }
html.hoch .hud-or { align-items: stretch; }
html.hoch .hud-pille { width: 100%; min-width: 0; padding: 0 14px 0 10px; gap: 10px; }
html.hoch .hud-pille .rund-ik { width: 44px; height: 44px; }
html.hoch .hud-pille > div:last-child { min-width: 0; }
html.hoch .hud-pille b { font-size: 36px; white-space: nowrap; }
html.hoch .hud-pille small { overflow: hidden; text-overflow: ellipsis; letter-spacing: .08em; }
html.hoch .hud-or .hud-pause { position: absolute; width: calc(var(--pause) / var(--hs)); height: calc(var(--pause) / var(--hs));
  right: calc((50vw - var(--rand) - var(--sicher-r) - var(--pause) / 2) / var(--hs)); top: calc((74px - var(--pause) / var(--hs)) / 2); }
html.hoch .hud-ok { left: 50%; right: auto; top: 38%; transform-origin: 50% 0; transform: translateX(-50%) scale(var(--hs)); }

/* Bon: Summe und Kontostand bleiben unten im sichtbaren Bereich des Bons stehen (kleben am Rand des Scrollbereichs), die Posten scrollen darüber.
   Der Ergebnisbildschirm nimmt die sichtbare Höhe (dvh, nicht 100vh hinter der Adressleiste). */
.summe-block { position: sticky; bottom: 0; z-index: 2; background: var(--creme); margin: 18px -4px 0; padding: 0 4px 4px; }
/* saubere obere Kante: kurze Verlaufskante über dem Block (Zeilen darunter verblassen), dann die Doppellinie der Summe;
   darauf sitzt ein kleiner Hinweis, solange der Bon in der Rolle noch weiter nach unten reicht */
.summe-block::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(244,232,200,0), var(--creme)); }
.mehr-posten { position: absolute; left: 50%; top: -10px; transform: translateX(-50%); z-index: 3; pointer-events: none; opacity: 0; transition: opacity .2s;
  display: inline-flex; align-items: center; gap: 5px; height: 18px; padding: 0 9px 0 10px; border-radius: 9px; background: var(--creme); border: 1.5px solid var(--tinte);
  color: var(--tinte); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.mehr-posten::after { content: ""; width: 5px; height: 5px; margin-top: -3px; border: solid var(--tinte); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-1px); }
.rolle.hat-mehr .mehr-posten { opacity: 1; }
.rolle.hat-oben { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px); mask-image: linear-gradient(to bottom, transparent 0, #000 14px); }
.bon-kopf { transition: opacity .18s ease-out, transform .18s ease-out; }
.summe-block .summe { margin-top: 4px; }
html.liste #ergebnis { inset: 0 auto auto 0; width: 100%; height: 100vh; height: 100dvh; }
html.liste .karte { height: 100%; max-height: 100%; }
html.liste:not(.flach) .karte .rolle { padding-bottom: 2px; }
html.liste:not(.flach) .karte .fuss { padding-bottom: max(12px, calc(10px + var(--sicher-u))); }
@media (max-height: 620px) { html.liste:not(.flach) .abzeichen { display: none; } html.liste:not(.flach) .abzeichen-box { padding-bottom: 2px; } html.liste:not(.flach) .karte .fuss .pille { height: 46px; } }
@media (max-height: 520px) { html.liste:not(.flach) .abzeichen-box { display: none; } html.liste:not(.flach) .bon-stempel { display: none; } }
/* Hochformat: Chaos-Fahne jetzt mittig über die ganze Breite zwischen den Rändern (der Pause-Knopf steht oben in der Mitte der Leiste, nicht mehr darunter) */
html.hoch .hud-om { left: calc(var(--rand) + var(--sicher-l)); width: calc((100vw - 2 * var(--rand) - var(--sicher-l) - var(--sicher-r)) / var(--hs)); }
html.hoch .hud-pille { padding: 0 10px 0 8px; gap: 8px; }
html.hoch .hud-pille .rund-ik { width: 38px; height: 38px; }
html.hoch .hud-pille .rund-ik svg { width: 20px; height: 20px; }
html.hoch .hud-pille small { font-size: 15px; letter-spacing: .03em; }
html.hoch .hud-pille b { font-size: 34px; }
