@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
/* ---------- 01 · Design-Tokens (Phase 1: Nachtblau, Schiefer, Altgold, Pergament, Blutrot, Waldgrün, Bewegungsblau) ---------- */
:root {
  --nacht: #101A27; --schiefer: #273545; --altgold: #C5A267; --pergament: #E5D6B8; --blutrot: #7B2932; --waldgruen: #365B49; --bewegung: #4D9DB6;
  --nacht-tief: #0a111b; --schiefer-dunkel: #1a2533; --tinte: #2a2118;
  --bg: var(--nacht); --panel: var(--schiefer-dunkel); --panel-hell: var(--schiefer); --line: rgba(197, 162, 103, .26); --line-stark: rgba(197, 162, 103, .6);
  --gold: var(--altgold); --text: #ece6da; --muted: #a7afb9; --red: #c96a6f; --green: #7fb397;
  --stein: linear-gradient(180deg, #233142 0%, #1a2533 100%);
  --kante: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 0 1px var(--line);
  --schatten: 0 10px 30px rgba(0, 0, 0, .45);
  --glut: 0 0 0 1px var(--altgold), 0 0 16px rgba(197, 162, 103, .35);
  --fokus: 0 0 0 2px var(--nacht), 0 0 0 4px var(--altgold);
  --radius: 4px;
  --schrift-titel: Cinzel, Georgia, serif; --schrift-text: "Cormorant Garamond", Georgia, serif; --schrift-ui: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, sans-serif; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.top a { color: var(--muted); text-decoration: none; font-size: 14px; }
.brand { font: 600 13px Cinzel, serif; letter-spacing: .18em; color: var(--gold); }
button.brand { background: none; border: 0; padding: 6px 4px; cursor: pointer; }
button.brand:hover, button.brand:focus-visible { color: #f0d488; text-shadow: 0 0 10px rgba(240, 212, 136, .45); }
main { max-width: 980px; margin: 0 auto; padding: 16px; }
.intro { max-width: 620px; margin: 24px auto; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0; }
h1 { font: 600 30px Cinzel, serif; margin: 6px 0 12px; }
.howto { padding-left: 18px; color: var(--muted); }
.note { color: var(--muted); font-size: 13px; }
.btn { background: var(--gold); color: #1a140b; border: 0; padding: 12px 18px; font: 600 15px Inter, sans-serif; cursor: pointer; border-radius: 4px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn:disabled { opacity: .35; cursor: default; }
.spiel { display: grid; gap: 12px; }
.reihe { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.reihe span { flex: none; font-size: 12px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); white-space: nowrap; }
.reihe span.dran { border-color: var(--gold); color: var(--text); }
.reihe span.down { text-decoration: line-through; opacity: .5; }
.reihe span.g { color: #d79a7d; }
.karte-wrap { width: 100%; }
#karte { width: 100%; height: auto; display: block; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
#karte .feld { cursor: pointer; }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 12px; border-radius: 4px; }
.aktiv { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.aktiv b { font: 600 17px Cinzel, serif; }
.aktiv .werte { font-size: 13px; color: var(--muted); }
.aktionen { display: flex; flex-wrap: wrap; gap: 8px; }
.aktionen .btn { font-size: 14px; padding: 10px 12px; }
.aktionen .btn.gewaehlt { outline: 2px solid #fff; }
.aktionen small { display: block; font-weight: 400; font-size: 11px; opacity: .8; }
.hinweis { margin-top: 8px; font-size: 13px; color: var(--muted); min-height: 1.2em; }
.log { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; font-size: 13px; border-top: 1px solid var(--line); }
.log li { padding: 6px 2px; border-bottom: 1px solid #1c2733; color: var(--muted); }
.log li.wurf { color: var(--text); }
.log li.gegner { color: #d79a7d; }
.log li.gut { color: var(--green); }
.log li.schlecht { color: var(--red); }
.log li.runde { color: var(--gold); text-align: center; }
.log li.ende { color: var(--gold); font-weight: 600; }
.ende { text-align: center; margin: 24px auto; max-width: 560px; }
.ende h2 { font: 600 26px Cinzel, serif; }
@media (min-width: 900px) {
  .spiel { grid-template-columns: 1fr 300px; grid-template-rows: auto auto auto 1fr; align-items: start; }
  .livebar { grid-row: 1; }
  .reihe { grid-column: 1 / -1; grid-row: 2; }
  .karte-wrap { grid-column: 1; grid-row: 3 / span 2; }
  .panel { grid-column: 2; grid-row: 3; }
  .log { grid-column: 2; grid-row: 4; }
  .log { max-height: 420px; }
}

/* ---------- Live: Start, Lobby, Tisch ---------- */
.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.fb { color: #e08a6a; font-size: 14px; min-height: 1.2em; }
.btn.klein { padding: 6px 10px; font-size: 13px; }
.btn.breit { width: 100%; }
h2.klein, h3.klein { font: 600 13px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 20px 0 8px; }
.lobby { max-width: 720px; margin: 16px auto; }
.lobby h1 { margin-bottom: 16px; }
.beitritt { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.beitritt .qr { background: #fff; border-radius: 4px; padding: 6px; line-height: 0; }
.beitritt .qr svg { width: 100%; height: auto; }
.beitritt .code { font: 600 30px/1.1 ui-monospace, Menlo, monospace; letter-spacing: .06em; margin: 4px 0 8px; color: var(--text); word-break: break-all; }
@media (max-width: 560px) { .beitritt { grid-template-columns: 1fr; } .beitritt .qr { max-width: 200px; } }
.figwahl { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.figwahl li { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; }
.figwahl li span { flex: 1; display: flex; flex-direction: column; }
.figwahl li small { color: var(--muted); font-size: 12px; }
.figwahl li em { font-style: normal; font-size: 13px; color: var(--muted); }
.figwahl li em.hat { color: var(--green); }
.livebar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); grid-column: 1 / -1; }
.livebar b { color: var(--text); letter-spacing: .1em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5fc46a; box-shadow: 0 0 0 3px rgba(95,196,106,.2); }
.reihe span small { color: var(--green); font-size: 11px; }
.handy-dran { flex-basis: 100%; font-size: 13px; color: var(--green); }
details.uebernehmen { flex-basis: 100%; }
details.uebernehmen summary { cursor: pointer; font-size: 13px; color: var(--muted); padding: 4px 0; }
details.uebernehmen .aktionen { margin-top: 6px; }
.qr-overlay { position: fixed; inset: 0; background: rgba(10,8,6,.85); display: grid; place-items: center; z-index: 30; padding: 16px; }
.qr-overlay[hidden] { display: none; }
.karte-box { max-width: 560px; width: 100%; display: grid; gap: 12px; }
.wurf { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: .25s; z-index: 20;
  background: var(--schiefer-dunkel); border: 1px solid var(--gold); border-radius: 8px; padding: 12px 18px; display: flex; gap: 14px; align-items: center; max-width: min(560px, calc(100vw - 32px)); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.wurf.an { opacity: 1; transform: translate(-50%, 0); }
.wurf b, .ergebnis b { font: 600 40px/1 Cinzel, serif; color: var(--gold); min-width: 1.4em; text-align: center; }
.wurf b.krit, .ergebnis b.krit { color: #7fe07a; }
.wurf b.patzer, .ergebnis b.patzer { color: var(--red); }
.wurf span { font-size: 14px; }
.toast { position: fixed; left: 50%; top: 14px; transform: translate(-50%, -20px); opacity: 0; transition: .25s; background: #1c2733; border: 1px solid var(--line); padding: 10px 14px; border-radius: 6px; font-size: 14px; z-index: 40; max-width: calc(100vw - 32px); pointer-events: none; }
.toast.an { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Handy: Charakterbogen ---------- */
body.handy main { max-width: 520px; padding: 12px 16px 40px; }
.karte-h { margin-top: 12px; }
.fld { display: block; margin: 12px 0; font-size: 13px; color: var(--muted); }
.fld input { display: block; width: 100%; margin-top: 4px; padding: 12px; font: 16px Inter, sans-serif; background: var(--nacht-tief); color: var(--text); border: 1px solid var(--line); border-radius: 4px; }
#code { letter-spacing: .08em; text-transform: uppercase; }
.handywahl button.wahl { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer; }
.handywahl button.wahl:disabled { opacity: .5; cursor: default; }
.handywahl li { padding: 10px 12px; }
.bogen .kopf { display: flex; gap: 12px; align-items: center; margin: 4px 0 12px; }
.bogen .kopf h1 { font-size: 24px; margin: 0; }
.bogen .kopf p { margin: 0; color: var(--muted); font-size: 13px; }
.tpbalken { position: relative; height: 28px; background: #121b27; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.tpbalken i { position: absolute; inset: 0 auto 0 0; transition: width .4s; }
.tpbalken span { position: relative; display: block; text-align: center; font: 600 14px/28px Inter, sans-serif; text-shadow: 0 1px 2px #000; }
.werte-zeile { display: flex; gap: 8px; margin: 10px 0 12px; }
.werte-zeile span { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 6px 4px; text-align: center; font-size: 11px; color: var(--muted); display: flex; flex-direction: column; }
.werte-zeile b { font-size: 18px; color: var(--text); letter-spacing: .05em; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tabs button { flex: 1; background: none; border: 0; color: var(--muted); font: 600 14px Inter, sans-serif; padding: 10px 4px; border-bottom: 2px solid transparent; cursor: pointer; }
.tabs button.an { color: var(--text); border-bottom-color: var(--gold); }
.bogen.ist-dran .tabs button[data-tab="zug"] { color: var(--gold); }
.info { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 12px; font-size: 15px; margin-bottom: 10px; }
.info.dran { border-color: var(--gold); }
.info.gross { font: 600 18px Cinzel, serif; text-align: center; }
.info.schlecht { border-color: var(--red); }
.optionen { display: grid; gap: 8px; margin-bottom: 10px; }
.opt { text-align: left; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 12px; font: 15px Inter, sans-serif; cursor: pointer; }
.opt b { display: block; }
.opt small { color: var(--muted); font-size: 12px; }
.opt.gewaehlt { border-color: var(--gold); background: #232f3d; }
.opt:disabled { opacity: .4; cursor: default; }
.ziele { display: flex; flex-wrap: wrap; gap: 8px; }
.ziel { flex: 1 1 40%; background: #2a1a14; color: var(--text); border: 1px solid #6a3a2a; border-radius: 6px; padding: 12px; font: 600 15px Inter, sans-serif; cursor: pointer; }
.ziel small { font-weight: 400; color: var(--muted); }
.ziel.gewaehlt { border-color: #ff7a5a; background: #4a2216; }
.btn.wuerfel { font-size: 18px; padding: 16px; }
.ergebnis { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--gold); border-radius: 6px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.ergebnis.gut { border-color: var(--green); }
.log.kurz { max-height: none; }
.attr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.attr span { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 6px; text-align: center; display: flex; flex-direction: column; }
.attr b { font-size: 18px; }
.attr small { font-size: 10px; color: var(--muted); }
.faehig { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.faehig li { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.faehig li small { display: block; color: var(--gold); font-size: 12px; margin-top: 2px; }
.faehig li p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.faehig li.leer { opacity: .5; }
.anzahl { color: var(--muted); font-weight: 400; }

/* ---------- 15 Figuren: Karten, Einstellungen ---------- */
.einstellungen { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0 4px; align-items: flex-end; }
.einstellungen .eyebrow { display: block; margin-bottom: 4px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.seg button { background: transparent; color: var(--muted); border: 0; padding: 8px 14px; font: 600 14px Inter, sans-serif; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.an { background: var(--gold); color: #1a140b; }
.einstellungen select { background: var(--nacht-tief); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 8px; font: 14px Inter, sans-serif; }
.fkarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.fkarte { position: relative; display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 0 0 8px; background: var(--panel); border: 2px solid var(--line); border-radius: 6px; color: var(--text); cursor: pointer; overflow: hidden; font: 13px Inter, sans-serif; }
.fkarte img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; filter: saturate(.85); }
.fkarte .klasse { position: absolute; top: 6px; left: 6px; background: var(--k); color: #fff; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; }
.fkarte b { font: 600 15px Cinzel, serif; padding: 6px 8px 0; }
.fkarte small { color: var(--muted); padding: 0 8px; font-size: 11px; }
.fkarte em { font-style: normal; font-size: 11px; padding: 4px 8px 0; color: var(--green); }
.fkarte em.tisch { color: var(--gold); }
.fkarte.an { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.fkarte.an img { filter: none; }
.fkarte.zuletzt:not(:disabled) { border-style: dashed; }
.fkarte:disabled { opacity: .5; cursor: default; }
.handy-karten { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.handy-karten .fkarte b { font-size: 13px; }
.knoepfe.mitte { justify-content: center; }
img.marke { border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; flex: none; }
.kopf-klein { display: flex; gap: 10px; align-items: center; flex-basis: 100%; }
.kopf-klein div { display: flex; flex-direction: column; }
.aktiv .zust, .zustaende { flex-basis: 100%; color: #c9a8ff; font-size: 12px; }
.zustaende { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.zustaende span { border: 1px solid #5a4a7a; border-radius: 10px; padding: 2px 8px; }
.bogen .portraet { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--k, var(--gold)); flex: none; }
.bogen .spruch { font-style: italic; color: var(--muted); font-size: 12px; margin-top: 2px !important; }
.opt i { display: block; font-style: normal; font-size: 11px; color: #e08a6a; margin-top: 2px; }
.opt.aus b { color: var(--muted); }
.opt-text { font-size: 13px; color: var(--muted); margin: -2px 2px 4px; }
.ziel.freund { background: #16241a; border-color: #3a6a44; }
.ziel.freund.gewaehlt { border-color: #7fe07a; background: #1f3a24; }
.faehig li.gesperrt { opacity: .5; }

/* ---------- Abenteuer: Szenen ---------- */
.szene { max-width: 760px; margin: 16px auto; }
.szene-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.glocke { display: inline-flex; align-items: center; gap: 4px; }
.glocke i { width: 12px; height: 14px; border-radius: 6px 6px 2px 2px; border: 1px solid rgba(197,162,103,.45); background: transparent; }
.glocke i.an { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 6px rgba(201,162,74,.6); }
.glocke small { margin-left: 6px; color: var(--muted); font-size: 12px; }
.erzaehlung p { font-size: 17px; line-height: 1.65; margin: 0 0 12px; }
.antwort { border-left: 3px solid var(--gold); background: var(--panel); padding: 10px 14px; margin: 8px 0 14px; font-size: 16px; line-height: 1.55; }
.interaktion { margin: 14px 0; }
.optionen-tisch { display: grid; gap: 8px; }
.optionen-tisch .btn { text-align: left; }
.optionen-tisch .btn small { display: inline; margin-left: 6px; opacity: .7; }
.opt-zeile { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; flex-wrap: wrap; }
.opt-zeile span { flex: 1; }
.probe { background: var(--panel); border: 1px solid var(--gold); border-radius: 4px; padding: 10px 12px; margin-bottom: 10px; }
.wer { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.wer .btn { display: inline-flex; align-items: center; gap: 6px; }
.wer small { opacity: .75; }
.wuerfe { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 4px; }
.wuerfe li.gut { color: var(--green); } .wuerfe li.schlecht { color: #e08a6a; }
.probe-erg { padding: 10px 12px; border-radius: 4px; margin: 8px 0 12px; background: var(--panel); border: 1px solid var(--line); }
.probe-erg.erfolg { border-color: var(--green); } .probe-erg.fehl { border-color: var(--red); } .probe-erg.knapp { border-color: #d6a23a; }
.gruppe-leiste { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.gruppe-leiste span { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; font-size: 13px; }
.gruppe-leiste span img { grid-row: span 2; }
.gruppe-leiste small { color: var(--muted); font-size: 11px; }
.gruppe-leiste .tot { opacity: .45; }
.handy-szene .erzaehlung p { font-size: 15px; }
.handy-szene h2 { font: 600 20px Cinzel, serif; margin: 4px 0 8px; }

/* ================= Einstieg: Titel, Einleitung, Kodex ================= */
body:has(#intro:not([hidden])) .top { position: absolute; inset: 0 0 auto; z-index: 5; border: 0; background: linear-gradient(#0008, transparent); }
.titel { position: relative; min-height: calc(100vh - 0px); margin: -16px; display: grid; place-items: center; overflow: hidden; text-align: center; }
.titel-bild { position: absolute; inset: 0; width: 100%; height: 100%; }
.titel-bild .licht { animation: flackern 3.2s infinite; }
@keyframes flackern { 0%, 100% { opacity: .9 } 45% { opacity: .35 } 50% { opacity: 1 } 70% { opacity: .6 } }
.titel-bild .wolken { animation: ziehen 60s linear infinite alternate; }
@keyframes ziehen { from { transform: translateX(-40px) } to { transform: translateX(60px) } }
.titel-bild .nebel { animation: nebel 26s ease-in-out infinite alternate; }
.titel-bild .n2 { animation-duration: 38s; animation-direction: alternate-reverse; }
@keyframes nebel { from { transform: translateX(-120px) } to { transform: translateX(120px) } }
.regen { position: absolute; inset: -20%; pointer-events: none; opacity: .22;
  background-image: repeating-linear-gradient(105deg, transparent 0 14px, rgba(200,210,230,.5) 14px 15px, transparent 15px 40px);
  background-size: 120px 120px; animation: regen .5s linear infinite; }
@keyframes regen { to { background-position: -40px 120px; } }
.titel-inhalt { position: relative; z-index: 2; padding: 80px 16px 40px; max-width: 760px; }
.titel-inhalt h1 { font: 600 clamp(36px, 7vw, 76px)/1.05 Cinzel, serif; margin: 10px 0 16px; text-shadow: 0 4px 30px #000, 0 0 2px #000; letter-spacing: .02em; animation: auftauchen 2.4s ease both; }
.titel-inhalt .eyebrow { animation: auftauchen 1.6s ease both; }
.titel-zeile { font-size: 18px; color: #d8cfbd; text-shadow: 0 2px 10px #000; animation: auftauchen 3s ease both; }
.titel-inhalt .knoepfe { animation: auftauchen 3.6s ease both; margin-top: 26px; }
.titel-fuss { margin-top: 28px; color: var(--muted); font-size: 13px; text-shadow: 0 1px 6px #000; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.btn.gross { padding: 15px 26px; font-size: 17px; letter-spacing: .02em; box-shadow: 0 6px 24px rgba(201,162,74,.25); }
.link { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; padding: 6px; }
.einleitung, .kodex { max-width: 720px; margin: 0 auto; min-height: calc(100vh - 120px); display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
.einleitung { background: radial-gradient(ellipse at top, #1d1912 0%, transparent 70%); }
.seite h2 { font: 600 clamp(28px, 5vw, 44px)/1.15 Cinzel, serif; margin: 8px 0 18px; }
.einleitung .seite p:not(.eyebrow) { font-size: 19px; line-height: 1.75; color: #e2dac8; }
.seite.einblenden > * { animation: auftauchen 1s ease both; }
.seite.einblenden > *:nth-child(2) { animation-delay: .25s; } .seite.einblenden > *:nth-child(3) { animation-delay: .6s; } .seite.einblenden > *:nth-child(4) { animation-delay: 1s; } .seite.einblenden > *:nth-child(5) { animation-delay: 1.3s; }
.seiten-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.punkte { display: inline-flex; gap: 8px; }
.punkte i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.punkte i.an { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.kodex-kopf { margin-bottom: 6px; }
.kodex .seite p { font-size: 17px; line-height: 1.65; }
.kodex-liste { padding-left: 18px; font-size: 16px; line-height: 1.6; }
.kodex-liste li { margin-bottom: 8px; }
.tisch-bild { position: relative; height: 170px; margin: 10px 0 18px; }
.tisch-bild .tablet { position: absolute; left: 50%; top: 30px; transform: translateX(-50%); width: 230px; height: 120px; border: 2px solid var(--gold); border-radius: 10px; display: grid; place-items: center; font-size: 13px; color: var(--muted); background: repeating-linear-gradient(0deg, #1d2a18 0 18px, #233220 18px 19px), #1d2a18; }
.tisch-bild .handy { position: absolute; width: 46px; height: 80px; border: 2px solid rgba(197,162,103,.45); border-radius: 8px; font-size: 10px; display: grid; place-items: center; color: var(--muted); background: var(--panel); }
.tisch-bild .h1 { left: calc(50% - 200px); top: 50px; transform: rotate(-12deg); } .tisch-bild .h2 { left: calc(50% + 150px); top: 40px; transform: rotate(10deg); } .tisch-bild .h3 { left: calc(50% - 23px); top: 0; transform: rotate(180deg) translateY(-10px); display: none; }
.kodex-wuerfel { display: flex; align-items: center; gap: 18px; margin: 6px 0 14px; }
.w20 { width: 110px; height: 110px; background: none; border: 0; cursor: pointer; padding: 0; }
.w20 svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 14px #000); }
.w20.rollt svg { animation: rollen .6s ease; }
@keyframes rollen { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(200deg) scale(.85); } 100% { transform: rotate(360deg) scale(1); } }
.kodex-glocke, .glocke { display: flex; gap: 6px; margin: 8px 0 14px; }
.kodex-glocke i { width: 22px; height: 26px; border-radius: 11px 11px 3px 3px; border: 1px solid rgba(197,162,103,.45); }
.kodex-glocke i.an { background: var(--gold); box-shadow: 0 0 10px rgba(201,162,74,.6); }
.schwer-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 18px; }
.schwer { text-align: left; background: var(--panel); border: 2px solid var(--line); border-radius: 8px; color: var(--text); padding: 14px; cursor: pointer; font: 14px/1.5 Inter, sans-serif; }
.schwer b { display: block; font: 600 20px Cinzel, serif; margin-bottom: 4px; }
.schwer span { color: var(--muted); }
.schwer.an { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 8px 26px rgba(201,162,74,.15); }
.schwer[data-schwer-wahl="hardcore"].an { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 8px 26px rgba(192,80,58,.2); }
@media (max-width: 560px) { .schwer-wahl { grid-template-columns: 1fr; } .tisch-bild .h1 { left: 4px; } .tisch-bild .h2 { left: auto; right: 4px; } }

/* ================= Heldenwahl ================= */
.lobby { max-width: 1180px; }
.wahl-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.wahl-kopf h1 { margin: 2px 0 0; font-size: clamp(28px, 4vw, 40px); }
.plaetze { display: flex; gap: 8px; flex-wrap: wrap; }
.platz { width: 74px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; cursor: pointer; }
.platz img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 3px solid var(--k); box-shadow: 0 0 16px color-mix(in srgb, var(--k) 50%, transparent); animation: einrasten .4s ease; }
@keyframes einrasten { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.platz b { font: 600 12px Cinzel, serif; } .platz small { color: var(--muted); font-size: 10px; line-height: 1.2; }
.platz.leer { cursor: default; color: var(--muted); }
.platz.leer i { width: 58px; height: 58px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; font-style: normal; font: 600 18px Cinzel, serif; }
.platz.leer.pflicht i { border-color: rgba(197,162,103,.45); color: var(--gold); }
.wahl-body { display: grid; gap: 18px; }
@media (min-width: 980px) { .wahl-body { grid-template-columns: minmax(0, 1fr) 470px; align-items: start; } .wahl-detail { position: sticky; top: 12px; } }
.klassen-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.klassen-filter button { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 16px; padding: 6px 12px; font: 600 13px Inter, sans-serif; cursor: pointer; }
.klassen-filter button.an { border-color: var(--gold); color: var(--text); background: #232f3d; }
.wahl-galerie .fkarten { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.fkarte { transition: transform .15s, box-shadow .15s; }
.fkarte:hover { transform: translateY(-2px); }
.fkarte.fokus { border-color: var(--k); box-shadow: 0 0 0 1px var(--k), 0 10px 28px color-mix(in srgb, var(--k) 35%, transparent); }
.fkarte.fokus img { filter: none; }
.held { display: grid; grid-template-columns: 170px 1fr; gap: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--k) 16%, var(--panel)) 0%, var(--panel) 55%); border: 1px solid color-mix(in srgb, var(--k) 45%, var(--line)); border-radius: 10px; padding: 16px; animation: auftauchen .4s ease; }
@media (max-width: 560px) { .held { grid-template-columns: 1fr; } .held-bild { max-width: 220px; margin: 0 auto; } }
.held-bild { position: relative; }
.held-bild img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 2px solid var(--k); box-shadow: 0 10px 34px color-mix(in srgb, var(--k) 40%, transparent); }
.held-klasse { position: absolute; left: 8px; bottom: 8px; background: var(--k); color: #fff; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; }
.held h2 { font: 600 32px/1.05 Cinzel, serif; margin: 2px 0 0; }
.held-titel { margin: 2px 0 8px; color: var(--muted); }
.held blockquote { margin: 0 0 10px; font-style: italic; color: #e7dcc3; font-size: 15px; border-left: 2px solid var(--k); padding-left: 10px; }
.held-spielweise { font-size: 14px; margin: 0 0 12px; }
.held-achsen { display: grid; gap: 4px; margin-bottom: 12px; }
.achse { display: grid; grid-template-columns: 108px 1fr; align-items: center; font-size: 12px; color: var(--muted); }
.achse i { display: flex; gap: 3px; }
.achse b { flex: 1; height: 7px; border-radius: 2px; background: #2a241c; }
.achse b.an { background: var(--k); box-shadow: 0 0 6px color-mix(in srgb, var(--k) 60%, transparent); }
.held-kern { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.held-kern span { flex: 1; min-width: 70px; background: #121b27; border: 1px solid var(--line); border-radius: 4px; padding: 6px; text-align: center; display: flex; flex-direction: column; }
.held-kern b { font: 600 20px Cinzel, serif; } .held-kern small { font-size: 10px; color: var(--muted); }
.held-werte { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: 12px; }
.held-werte span { text-align: center; background: #121b27; border: 1px solid var(--line); border-radius: 4px; padding: 4px 2px; display: flex; flex-direction: column; }
.held-werte span.haupt { border-color: var(--k); }
.held-werte small { font-size: 10px; color: var(--muted); letter-spacing: .08em; } .held-werte b { font-size: 16px; } .held-werte em { font-style: normal; font-size: 11px; color: var(--muted); }
.held-knopf { width: 100%; margin: 4px 0 10px; }
.held-hinweis { background: #121b27; border: 1px dashed var(--line); border-radius: 4px; padding: 10px; font-size: 14px; }
.held-mehr summary { cursor: pointer; font: 600 13px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 6px 0; }
.held-faehig { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.held-faehig li { background: #121b27; border: 1px solid var(--line); border-radius: 4px; padding: 7px 9px; }
.held-faehig li b { font-size: 14px; } .held-faehig .typ { float: right; font-size: 11px; color: var(--muted); }
.held-faehig p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.held-spaeter, .held-aussen { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.wahl-fuss { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.wahl-fuss .einstellungen { align-items: center; }
.uebung { margin-top: 14px; }
.uebung summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .5; }
/* Handy: Heldenwahl */
.handy .held { grid-template-columns: 1fr; padding: 12px; }
.handy .held-bild { max-width: none; }
.handy .held-bild img { aspect-ratio: 4 / 3; object-position: 50% 25%; }
.handy .held h2 { font-size: 28px; }
.held-zurueck { margin-bottom: 10px; }
/* Feinschliff Einstieg */
body { overflow-x: hidden; }
.titel { width: 100vw; margin: -16px calc(50% - 50vw) 0; min-height: 100vh; place-items: end center; }
.titel-inhalt { padding-bottom: 9vh; }
main:has(#lobby:not([hidden])) { max-width: 1220px; }
/* Rätsel und Ersatz */
.joch { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; padding: 14px; background: linear-gradient(#232f3d, #121b27); border: 1px solid rgba(197,162,103,.45); border-radius: 8px; margin-bottom: 10px; }
.glockenknopf { background: none; border: 0; color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 600 14px Cinzel, serif; padding: 6px; border-radius: 6px; }
.glockenknopf svg { width: 64px; height: 74px; transition: transform .2s; transform-origin: 50% 0; }
.glockenknopf:active svg, .glockenknopf:hover svg { transform: rotate(8deg); }
.platten { display: grid; gap: 8px; margin: 10px 0; }
.platte { margin: 6px 0; background: #1d1b18; border: 1px solid #4a4438; border-radius: 4px; padding: 12px 14px; font: italic 16px/1.5 Georgia, serif; color: #e2dac8; box-shadow: inset 0 0 20px #000; }
.platte small { display: block; font: 600 11px Inter, sans-serif; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; font-style: normal; }
.ersatz-wahl { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ersatz-wahl .btn { display: inline-flex; align-items: center; gap: 6px; }

/* ================= Kampfhilfen ================= */
.schritte { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; flex-basis: 100%; }
.schritte span { font-size: 11px; padding: 3px 7px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.schritte span.an { border-color: var(--gold); color: var(--text); }
.schritte span.fertig { text-decoration: line-through; opacity: .5; }
.akt-gruppe { flex-basis: 100%; margin: 6px 0 2px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.akt { flex-basis: 100%; text-align: left; background: #232f3d; color: var(--text); border: 1px solid rgba(197,162,103,.35); border-radius: 6px; padding: 8px 10px; cursor: pointer; font: 14px Inter, sans-serif; display: grid; gap: 2px; }
.akt:hover:not(:disabled) { border-color: var(--gold); }
.akt .akt-kopf { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.akt .akt-kopf small { font-size: 11px; color: var(--muted); }
.akt .akt-text { font-size: 12px; color: #c9bfa8; line-height: 1.35; }
.akt .akt-text em { font-style: normal; color: #e08a6a; }
.akt.gewaehlt { border-color: #fff; box-shadow: 0 0 0 1px #fff; background: #3a2f1c; }
.akt.getippt { border-color: #f2d35a; box-shadow: 0 0 0 2px rgba(242,211,90,.5); }
.akt:disabled { opacity: .45; cursor: default; }
.aktionen .knoepfe { flex-basis: 100%; margin-top: 8px; }
.hinweis b { color: var(--text); }
.tipp-ring { animation: puls 1.2s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .35; } }
.karte-wrap { position: relative; }
.schwebe { position: absolute; transform: translate(-50%, 0); font: 700 22px Cinzel, serif; pointer-events: none; text-shadow: 0 2px 4px #000, 0 0 2px #000; animation: aufsteigen 1.4s ease-out forwards; z-index: 3; }
.schwebe.minus { color: #ff8a6a; } .schwebe.plus { color: #8fe08a; }
@keyframes aufsteigen { from { opacity: 0; transform: translate(-50%, 6px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.15); } to { opacity: 0; transform: translate(-50%, -46px) scale(1); } }
/* Würfel */
.w20-box { width: 74px; height: 74px; color: var(--gold); flex: none; }
.w20-box .w20-svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 10px #000); }
.w20-box.rollt .w20-svg { animation: taumeln .55s linear infinite; }
.w20-box.gelandet .w20-svg { animation: landen .35s ease-out; }
.w20-box.krit { color: #7fe07a; } .w20-box.patzer { color: var(--red); }
.w20-box.gut { color: #9fd08a; } .w20-box.schlecht { color: #e08a6a; }
@keyframes taumeln { 0% { transform: rotate(0) scale(.9); } 50% { transform: rotate(180deg) scale(1.05); } 100% { transform: rotate(360deg) scale(.9); } }
@keyframes landen { 0% { transform: scale(1.3); } 100% { transform: scale(1); } }
.w20-erg { opacity: 0; transition: opacity .25s; font-size: 14px; }
.w20-erg.da { opacity: 1; }
.w20-erg b { display: block; font: 600 15px Cinzel, serif; color: var(--gold); }
.wurf { gap: 12px; }
.wurf.gegner { border-color: #a0503a; }
.wurf.gegner .w20-erg b { color: #e08a6a; }
/* Szenen: Hilfe, Dialog, Proben */
.hilfe { display: flex; gap: 10px; align-items: flex-start; background: #17202a; border: 1px solid #2e4458; border-radius: 6px; padding: 10px 12px; margin: 4px 0 14px; font-size: 14px; color: #c8d4de; flex-wrap: wrap; }
.hilfe span { font-size: 18px; color: #7fb7ff; line-height: 1; }
.hilfe p { margin: 0; flex: 1; min-width: 200px; }
.hilfe .link { font-size: 12px; padding: 0; margin-left: auto; }
.dialog { display: grid; gap: 8px; margin: 6px 0 14px; }
.d-frage, .d-antwort { max-width: 88%; padding: 8px 12px; border-radius: 10px; }
.d-frage { justify-self: end; background: #232f3d; border: 1px solid rgba(197,162,103,.35); border-bottom-right-radius: 2px; }
.d-antwort { justify-self: start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 2px; }
.d-antwort.erfolg { border-color: var(--green); } .d-antwort.fehl { border-color: var(--red); } .d-antwort.knapp { border-color: #d6a23a; } .d-antwort.offen { opacity: .7; border-style: dashed; }
.d-frage small, .d-antwort small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.d-frage p, .d-antwort p { margin: 0; font-size: 15px; line-height: 1.5; }
.btn.frage { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.btn.frage small { font-weight: 400; font-size: 12px; opacity: .8; }
.probe-wuerfel { display: flex; align-items: center; gap: 14px; margin: 10px 0; }
.wer-knopf { text-align: left; }
.wer-knopf span { display: flex; flex-direction: column; }
.wer-knopf small { font-size: 11px; font-weight: 400; opacity: .85; }
.wer-knopf.beste { border-color: var(--gold); }
.opt-kurz { display: block; font-size: 12px; color: #c9bfa8; margin-top: 3px; line-height: 1.35; }
.handy-szene .schritte, .tabinhalt .schritte { margin-bottom: 10px; }
.ergebnis.wuerfel-erg { gap: 12px; }
.ergebnis.wuerfel-erg .w20-box { width: 60px; height: 60px; }
.geheim-frage { margin: 12px 0 4px; font-size: .95em; line-height: 1.45; }
.karte-box.chronik { max-height: 86vh; overflow: auto; background: var(--panel, #1c1712); border: 1px solid var(--line, #3a3128); border-radius: 6px; padding: 20px; }
.chronik ol { margin: 0; padding-left: 20px; display: grid; gap: 12px; line-height: 1.5; }
.chronik .schlecht { color: #d98b7a; }


/* ================= 01 · Komponenten der Gestaltungsgrundlage ================= */
body { background: radial-gradient(ellipse at 50% -10%, #1a2a3d 0%, var(--nacht) 45%, var(--nacht-tief) 100%) fixed; }
.top { border-bottom-color: var(--line); background: rgba(10, 17, 27, .6); }
:focus-visible { outline: none; box-shadow: var(--fokus); }
/* Knöpfe: primär Blutrot mit Altgold-Kante, sekundär dunkler Stein mit feiner Metallkante */
.btn { background: linear-gradient(180deg, #8d3039 0%, var(--blutrot) 100%); color: var(--pergament); border: 1px solid var(--line-stark); border-radius: var(--radius);
  font: 600 15px var(--schrift-ui); letter-spacing: .02em; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 10px rgba(0,0,0,.35); transition: border-color .15s, box-shadow .15s, transform .1s; }
.btn:hover:not(:disabled) { border-color: var(--altgold); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 14px rgba(197,162,103,.25); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.ghost { background: var(--stein); color: var(--text); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.btn.ghost:hover:not(:disabled) { border-color: var(--line-stark); }
.btn.gross { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 24px rgba(123,41,50,.35); }
.link { color: var(--muted); }
.link:hover { color: var(--altgold); }
/* Flächen: dunkler Stein */
.panel, .info, .opt, .opt-zeile, .faehig li, .attr span, .werte-zeile span, .figwahl li, .beitritt, .probe-erg, .karte-box.chronik { background: var(--stein); border-color: var(--line); }
.info.dran, .probe, .opt.gewaehlt { border-color: var(--line-stark); }
.opt.gewaehlt { background: linear-gradient(180deg, #2f3a45, #232c37); box-shadow: var(--glut); }
.fkarte { background: var(--stein); border-color: var(--line); }
.fkarte.an { border-color: var(--altgold); box-shadow: var(--glut); }
.seg { border-color: var(--line); }
.seg button.an { background: var(--altgold); color: var(--nacht); }
.tabs button.an { border-bottom-color: var(--altgold); }
.fld input, .einstellungen select { background: var(--nacht-tief); border-color: var(--line); }
.log li { border-bottom-color: rgba(197,162,103,.1); }
.wurf, .toast { background: var(--schiefer-dunkel); border-color: var(--line-stark); }
.qr-overlay { background: rgba(6, 10, 16, .86); }
.glocke i { border-color: rgba(197,162,103,.45); }
.glocke i.an { background: var(--altgold); border-color: var(--altgold); }
/* Erzählung: Cormorant Garamond; Pergament nur für erzählerische Informationen */
.erzaehlung p { font: 400 21px/1.55 var(--schrift-text); color: #efe8da; }
.erzaehlung p b { font-weight: 600; color: var(--pergament); }
.antwort { background: linear-gradient(180deg, #ece0c6, var(--pergament)); color: var(--tinte); border-left: 3px solid var(--altgold); border-radius: var(--radius); font: 400 19px/1.5 var(--schrift-text); box-shadow: var(--schatten); }
.antwort b { color: #1c140c; }
h1, .ende h2, .handy-szene h2 { font-family: var(--schrift-titel); }
.eyebrow { color: var(--altgold); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

/* ================= 02 · Titel- und Einstiegsbildschirm ================= */
.titel { width: 100vw; margin: -16px calc(50% - 50vw) 0; min-height: 100vh; min-height: 100svh; display: grid; place-items: stretch; text-align: left; overflow: hidden; background: var(--nacht-tief); }
.titel-hg, .titel-hg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.titel-hg img { object-fit: cover; object-position: 62% 40%; animation: atmen 40s ease-in-out infinite alternate; }
@keyframes atmen { from { transform: scale(1.02); } to { transform: scale(1.08) translateX(-1%); } }
.titel-schleier { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,13,21,.92) 0%, rgba(8,13,21,.62) 30%, rgba(8,13,21,.08) 58%, transparent 75%), linear-gradient(0deg, rgba(8,13,21,.85) 0%, transparent 28%), radial-gradient(ellipse at 50% 120%, transparent 60%, rgba(0,0,0,.4)); }
.regen { opacity: .16; }
.nebel-schicht { position: absolute; left: -20%; right: -20%; height: 34%; pointer-events: none; background: radial-gradient(ellipse at center, rgba(170,182,196,.20), transparent 68%); filter: blur(10px); animation: nebel 32s ease-in-out infinite alternate; }
.nebel-schicht.n1 { bottom: 14%; } .nebel-schicht.n2 { bottom: 0; animation-duration: 46s; animation-direction: alternate-reverse; opacity: .8; }
.titel-inhalt { position: relative; z-index: 2; align-self: center; max-width: 520px; padding: 70px 16px 120px clamp(16px, 6vw, 96px); }
.titel { height: 100vh; height: 100svh; min-height: 640px; }
.titel-inhalt .eyebrow { font: 600 12px var(--schrift-ui); letter-spacing: .22em; animation: auftauchen 1.2s ease both; }
.titel-inhalt .titel-logo { font: 600 clamp(26px, 3.4vw, 44px)/1.05 var(--schrift-titel); margin: 10px 0 6px; letter-spacing: .03em; text-transform: none; text-shadow: none;
  background: linear-gradient(180deg, #f6ead0 0%, #d9bd86 45%, #a67f45 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 14px rgba(0,0,0,.85)); animation: auftauchen 1.6s ease both; }
.titel-inhalt .titel-logo span { display: block; font-size: 1.55em; line-height: 1; letter-spacing: .02em; }
.titel-zier { display: block; width: 220px; max-width: 70%; height: 14px; margin: 4px 0 22px;
  background: linear-gradient(90deg, transparent, var(--altgold) 20%, var(--altgold) 80%, transparent) center / 100% 1px no-repeat, radial-gradient(circle, var(--altgold) 0 3px, transparent 4px) center / 14px 14px no-repeat; opacity: .8; }
.titel-menue { display: grid; gap: 10px; margin: 0; max-width: 330px; animation: auftauchen 2s ease both; }
.menue { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 18px; text-align: left; text-decoration: none; cursor: pointer;
  font: 600 15px var(--schrift-titel); letter-spacing: .06em; color: var(--pergament);
  background: linear-gradient(180deg, rgba(36,48,62,.92), rgba(20,29,40,.92)); border: 1px solid var(--line); border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 4px 14px rgba(0,0,0,.35); transition: border-color .15s, box-shadow .2s, transform .1s; }
.menue .m-sym { width: 18px; text-align: center; color: var(--altgold); font-family: var(--schrift-ui); }
.menue:hover, .menue:focus-visible { border-color: var(--altgold); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px rgba(197,162,103,.35), 0 0 18px rgba(197,162,103,.22); }
.menue:active { transform: translateY(1px); }
.menue.primaer { background: linear-gradient(180deg, #933440, var(--blutrot)); border-color: var(--line-stark); font-size: 16px; padding: 14px 18px; }
.menue.primaer .m-sym { color: var(--pergament); }
.titel-fuss { margin-top: 22px; font-size: 12px; color: #b9c0c8; }
.titel-pergament { position: absolute; z-index: 2; right: clamp(16px, 4vw, 60px); bottom: 150px; width: 250px; padding: 18px 20px 26px; transform: rotate(-1.5deg);
  background: linear-gradient(170deg, #efe3c8, var(--pergament) 60%, #cdb98f); color: var(--tinte); border-radius: 2px; box-shadow: var(--schatten);
  font: italic 400 19px/1.4 var(--schrift-text); animation: auftauchen 2.6s ease both; }
.titel-pergament p { margin: 0; text-align: center; }
.siegel-wachs { position: absolute; right: 16px; bottom: -14px; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #a83a44, var(--blutrot) 60%, #4a141b); box-shadow: 0 3px 8px rgba(0,0,0,.5); }
.siegel-wachs::after { content: "✠"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,220,200,.55); font-size: 18px; }
.titel-leiste { position: absolute; z-index: 2; left: 0; right: 0; width: max-content; max-width: calc(100% - 32px); margin-inline: auto; bottom: 22px; display: flex; gap: 0; padding: 10px 6px; list-style: none;
  background: linear-gradient(180deg, rgba(26,37,51,.88), rgba(12,19,29,.92)); border: 1px solid var(--line); border-radius: 3px; box-shadow: var(--schatten); animation: auftauchen 2.8s ease both; }
.titel-leiste li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 clamp(10px, 2vw, 26px); font: 600 11px var(--schrift-ui); letter-spacing: .06em; color: #cfd4da; text-transform: uppercase; white-space: nowrap; }
.titel-leiste li + li { border-left: 1px solid var(--line); }
.titel-leiste span { font-size: 18px; color: var(--altgold); }
/* Einstellungen */
.einst-panel { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(6,10,16,.7); padding: 16px; }
.einst-box { width: min(420px, 100%); background: var(--stein); border: 1px solid var(--line-stark); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--schatten); }
.einst-box h2 { font: 600 22px var(--schrift-titel); margin: 0 0 14px; color: var(--pergament); }
.schalter { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.schalter input { width: 20px; height: 20px; accent-color: var(--altgold); }
/* Effekte abschaltbar (Einstellungen oder „Bewegung reduzieren“) */
body.ruhig .effekt, body.ruhig .regen { display: none; }
body.ruhig .titel-hg img { animation: none; }
@media (prefers-reduced-motion: reduce) { .effekt, .regen { display: none; } .titel-hg img { animation: none; } }
/* Tablet hochkant und Handy: Menü unten, Pergament und Leiste ausblenden */
@media (max-width: 900px) {
  .titel-pergament { display: none; }
  .titel-leiste { left: 16px; right: 16px; width: auto; max-width: none; justify-content: space-between; padding: 8px 4px; }
  .titel-leiste li { padding: 0 4px; font-size: 9px; white-space: normal; text-align: center; }
  .titel-schleier { background: linear-gradient(0deg, rgba(8,13,21,.95) 0%, rgba(8,13,21,.7) 45%, rgba(8,13,21,.15) 75%); }
  .titel-inhalt { align-self: end; max-width: none; padding: 80px 16px 110px; }
  .titel-menue { max-width: none; }
}
@media (max-width: 480px) { .titel-leiste { display: none; } .titel-inhalt { padding-bottom: 28px; } }

/* ================= 03 · Charakterauswahl: Klassen, dann Helden ================= */
.wahl-schritt { color: var(--muted); margin: 0 0 12px; }
.klassen-banner { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.banner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 12px 16px; min-height: 440px; overflow: hidden; cursor: pointer; color: var(--text);
  background: linear-gradient(180deg, color-mix(in srgb, var(--k) 38%, #0d141e) 0%, color-mix(in srgb, var(--k) 14%, #0d141e) 55%, #0d141e 100%);
  border: 1px solid color-mix(in srgb, var(--k) 55%, var(--line)); border-radius: 3px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 50% 100%, 0 calc(100% - 22px)); transition: transform .15s, box-shadow .2s, border-color .15s; font: inherit; }
.banner::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(197,162,103,.28); clip-path: inherit; pointer-events: none; }
.banner:hover, .banner:focus-visible { transform: translateY(-3px); border-color: var(--altgold); box-shadow: 0 0 22px color-mix(in srgb, var(--k) 45%, transparent); }
.banner-bild { position: relative; display: flex; width: calc(100% + 24px); height: 150px; margin: 0 -12px 4px; }
.banner-bild img { flex: 1; min-width: 0; object-fit: cover; object-position: 50% 20%; filter: saturate(.85) brightness(.85); }
.banner-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--k) 30%, #0d141e) 0%, transparent 60%); }
.banner-zeichen { display: grid; place-items: center; width: 46px; height: 46px; margin-top: -30px; z-index: 1; border-radius: 50%; font-size: 22px; color: var(--pergament);
  background: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--k) 80%, #fff 10%), var(--k)); border: 2px solid var(--altgold); box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.banner-name { font: 600 21px var(--schrift-titel); color: var(--pergament); letter-spacing: .04em; }
.banner-kurz { font: italic 400 17px/1.3 var(--schrift-text); color: #e3dccd; min-height: 3.9em; }
.banner-spec { display: grid; gap: 5px; width: 100%; margin-top: 4px; text-align: left; font-size: 12px; line-height: 1.35; color: #cfd5dc; }
.banner-spec > span { padding-top: 5px; border-top: 1px solid rgba(197,162,103,.18); }
.banner-spec i { display: block; font-style: normal; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--altgold); }
.banner-fuss { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; align-items: center; font: 600 12px var(--schrift-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--altgold); }
.banner-fuss em { font-style: normal; color: var(--green); }
@media (max-width: 1100px) { .klassen-banner { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .klassen-banner { grid-template-columns: 1fr; gap: 10px; }
  .banner { min-height: 0; display: grid; grid-template-columns: 92px 1fr; grid-template-areas: "bild name" "bild kurz" "faehig faehig" "spec spec" "fuss fuss"; text-align: left; gap: 2px 12px; padding: 12px; clip-path: none; }
  .banner::before { clip-path: none; }
  .banner-bild { grid-area: bild; width: 92px; height: 92px; margin: 0; border-radius: 3px; overflow: hidden; }
  .banner-bild img:not(:first-child) { display: none; }
  .banner-zeichen { display: none; }
  .banner-name { grid-area: name; align-self: end; } .banner-kurz { grid-area: kurz; min-height: 0; font-size: 16px; }
  .banner-spec { grid-area: spec; grid-template-columns: 1fr 1fr; } .banner-spec > span:last-child { grid-column: 1 / -1; }
  .banner-fuss { grid-area: fuss; }
  .banner .klassen-faehig { grid-area: faehig; }
}
/* Klassenfähigkeiten hervorgehoben (Banner und Kopf der Klasse) */
.klassen-faehig { display: grid; gap: 6px; width: 100%; margin-top: 6px; padding: 8px 10px; text-align: left; border: 1px solid color-mix(in srgb, var(--k) 60%, var(--line)); border-left: 3px solid var(--k); border-radius: 3px; background: color-mix(in srgb, var(--k) 16%, rgba(8, 12, 18, .7)); }
.klassen-faehig > i { font: normal 600 10px var(--schrift-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--altgold); }
.klassen-faehig .marken { display: flex; flex-wrap: wrap; gap: 5px; }
.klassen-faehig .marke { padding: 3px 8px; border: 1px solid rgba(197, 162, 103, .35); border-radius: 12px; font: 600 12px var(--schrift-ui); color: var(--pergament); background: rgba(8, 12, 18, .55); }
.klassen-faehig .marke small { font-weight: 400; opacity: .7; }
.klassen-faehig .marke.merkmal { border-color: var(--k); background: var(--k); color: #fff; box-shadow: 0 0 10px color-mix(in srgb, var(--k) 60%, transparent); }
.klassen-faehig .merkmal-text { font: 400 13px/1.4 var(--schrift-text); color: #e3dccd; }
.klassen-faehig .merkmal-text b { color: var(--pergament); }
.klassen-kopf .klassen-faehig { margin-top: 8px; }
.klassen-leiste { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
.klassen-leiste button:not(.link) { background: var(--stein); border: 1px solid var(--line); color: var(--muted); border-radius: 3px; padding: 7px 12px; font: 600 13px var(--schrift-ui); cursor: pointer; }
.klassen-leiste button.an { color: var(--pergament); border-color: var(--k); background: linear-gradient(180deg, color-mix(in srgb, var(--k) 45%, #1a2533), #1a2533); }
.klassen-kopf { display: flex; gap: 14px; align-items: center; margin: 0 0 12px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--k) 50%, var(--line)); border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--k) 28%, #0d141e), transparent); }
.klassen-kopf .banner-zeichen { margin: 0; flex: none; }
.klassen-kopf h2 { font: 600 24px var(--schrift-titel); margin: 0; color: var(--pergament); }
.klassen-kopf p { margin: 2px 0 0; font: 400 17px/1.35 var(--schrift-text); color: #e3dccd; }
.fkarten.drei { grid-template-columns: 1fr; }
.fkarten.drei .fkarte { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto 1fr; padding: 0; column-gap: 12px; }
.fkarten.drei .fkarte img { grid-row: span 3; aspect-ratio: 1; height: 100%; }
.fkarten.drei .fkarte b { padding: 12px 8px 0 0; font-size: 18px; } .fkarten.drei .fkarte small { padding: 0; font-size: 13px; } .fkarten.drei .fkarte em { padding: 4px 0 0; }
.fkarten.drei .fkarte .klasse { display: none; }
.fkarte.fokus { border-color: var(--altgold); box-shadow: var(--glut); }
@media (min-width: 980px) { .wahl-body.stufe2 { grid-template-columns: 300px minmax(0, 1fr); } .wahl-body.stufe2 .wahl-detail { position: static; } }
/* Vorstellung: größeres Porträt, Reiter */
.wahl-body.stufe2 .held { grid-template-columns: minmax(200px, 300px) 1fr; }
.wahl-body.stufe2 .held-bild img { aspect-ratio: 3 / 4; object-position: 50% 20%; }
@media (max-width: 700px) { .wahl-body.stufe2 .held { grid-template-columns: 1fr; } .wahl-body.stufe2 .held-bild img { aspect-ratio: 4 / 3; } }
.held h2 { font-family: var(--schrift-titel); }
.held blockquote { font: italic 400 19px/1.35 var(--schrift-text); }
.held-spielweise { font: 400 18px/1.4 var(--schrift-text); }
.held-reiter { display: flex; border-bottom: 1px solid var(--line); margin: 6px 0 10px; }
.held-reiter button { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 9px 4px; font: 600 13px var(--schrift-ui); letter-spacing: .04em; cursor: pointer; }
.held-reiter button.an { color: var(--pergament); border-bottom-color: var(--altgold); }
.held-attr { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.held-attr li { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(197,162,103,.14); }
.held-attr li span { flex: 1; color: var(--muted); } .held-attr li b { font-size: 17px; } .held-attr li em { font-style: normal; color: var(--muted); font-size: 12px; width: 2em; text-align: right; }
.held-attr li.haupt b { color: var(--altgold); }
.handy .klassen-kopf p { font-size: 15px; }
.handy .fkarten.handy-karten { margin-bottom: 12px; }
html { background: var(--nacht-tief); }
.wahl-body.stufe2 .held-bild { align-self: start; }
.klassen-kopf { align-items: flex-start; }


/* ================= 04 · Kampfoberfläche ================= */
.karte-wrap { position: relative; border: 1px solid var(--line-stark); border-radius: 3px; overflow: hidden; background: var(--nacht-tief); box-shadow: var(--schatten); }
#karte .aktiv-ring { animation: puls 1.8s ease-in-out infinite; }
@keyframes puls { 50% { stroke-opacity: .55; } }
.reihe { gap: 6px; align-items: center; }
.reihe span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 20px; background: var(--stein); border-color: var(--line); }
.reihe span.runde { padding: 4px 10px; color: var(--altgold); font: 600 12px var(--schrift-titel); letter-spacing: .06em; }
.reihe .mini { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid #4D9DB6; background: #0d141e; flex: none; }
.reihe span.g .mini { border-color: #d0545e; }
.reihe span.g { cursor: pointer; }
.reihe span.dran { border-color: var(--altgold); box-shadow: var(--glut); color: var(--pergament); }
.reihe span.dran .mini { border-color: var(--altgold); }
/* Aktionsleiste */
.leiste { display: flex; gap: 10px; align-items: stretch; padding: 10px; background: linear-gradient(180deg, rgba(26,37,51,.97), rgba(12,19,29,.98)); border-top: 1px solid var(--line-stark); flex-wrap: wrap; }
.leiste:empty { display: none; }
.l-wer { display: flex; gap: 10px; align-items: center; min-width: 170px; }
.l-wer img.marke { border-color: var(--altgold); }
.l-wer b { font: 600 16px var(--schrift-titel); color: var(--pergament); }
.l-warte { color: var(--muted); font-size: 14px; padding: 8px 4px; }
.l-tp, .gi-tp { position: relative; height: 16px; width: 130px; margin-top: 4px; background: #0a111b; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.l-tp i, .gi-tp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #6e2029, #b13a45); }
.l-tp span, .gi-tp span { position: relative; display: block; text-align: center; font: 600 11px/14px var(--schrift-ui); color: #fff; text-shadow: 0 1px 2px #000; }
.l-knoepfe { display: flex; gap: 6px; flex: 1; justify-content: flex-end; flex-wrap: wrap; }
.l-knopf { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 74px; min-height: 58px; padding: 6px 8px; cursor: pointer;
  background: linear-gradient(180deg, #2a3646, #1a2533); color: var(--pergament); border: 1px solid var(--line); border-radius: 3px; font: 600 11px var(--schrift-ui); letter-spacing: .03em; }
.l-knopf .l-sym { font-size: 20px; color: var(--altgold); line-height: 1; }
.l-knopf:hover:not(:disabled) { border-color: var(--altgold); box-shadow: 0 0 12px rgba(197,162,103,.25); }
.l-knopf.gewaehlt { border-color: var(--altgold); box-shadow: var(--glut); background: linear-gradient(180deg, #3a3a2e, #232a2a); }
.l-knopf:disabled { opacity: .4; cursor: default; }
.l-knopf[data-l="ende"] { background: linear-gradient(180deg, #933440, var(--blutrot)); border-color: var(--line-stark); min-width: 92px; }
.l-knopf[data-l="ende"] .l-sym { color: var(--pergament); }
@media (max-width: 700px) { .l-wer { min-width: 0; flex-basis: 100%; } .l-knoepfe { justify-content: space-between; } .l-knopf { min-width: 0; flex: 1; font-size: 10px; } }
#aktionen.blink { animation: blink 1s ease; }
@keyframes blink { 30% { box-shadow: 0 0 0 2px var(--altgold); } }
/* Gegnerkarte */
.gegner-info { margin: -12px -12px 12px; padding: 12px; background: linear-gradient(180deg, rgba(123,41,50,.35), rgba(26,37,51,.2)); border-bottom: 1px solid rgba(208,84,94,.5); }
.gi-kopf { display: flex; gap: 10px; align-items: center; }
.gi-kopf b { display: block; font: 600 17px var(--schrift-titel); color: var(--pergament); } .gi-kopf small { color: var(--muted); font-size: 12px; }
.gi-kopf .link { margin-left: auto; text-decoration: none; font-size: 16px; }
.gi-bild { width: 48px; height: 48px; border-radius: 50%; background: #0d141e; border: 2px solid #d0545e; flex: none; }
.gi-tp { width: 100%; height: 18px; margin: 10px 0 8px; } .gi-tp span { line-height: 16px; font-size: 12px; }
.gi-werte, .gi-eig { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.gi-werte li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid rgba(197,162,103,.12); } .gi-werte li span { color: var(--muted); }
.gi-eig { margin-top: 8px; display: grid; gap: 4px; color: #e3dccd; } .gi-eig li::before { content: "✶ "; color: var(--altgold); }
.gi-zust { margin: 8px 0 0; font-size: 12px; color: #c9a8ff; }
.leiste { flex-wrap: nowrap; }
.l-wer { flex: 0 1 auto; min-width: 0; }
.l-tp { width: 110px; }
.l-knoepfe { flex-wrap: nowrap; min-width: 0; }
.l-knopf { flex: 1 1 0; min-width: 0; padding: 6px 4px; text-align: center; }
.l-knopf span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
@media (max-width: 700px) { .leiste { flex-wrap: wrap; } }


/* ================= Beute und Aufstieg ================= */
.beute, .aufstieg { margin: 8px 0 14px; padding: 16px; border: 1px solid var(--line-stark); border-radius: var(--radius); background: var(--stein); box-shadow: var(--schatten); }
.beute h2, .aufstieg h2 { font: 600 24px var(--schrift-titel); color: var(--pergament); margin: 0 0 6px; }
.beute > p { font: 400 19px/1.45 var(--schrift-text); margin: 0 0 12px; }
.beute-karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
@media (max-width: 640px) { .beute-karten { grid-template-columns: 1fr; } }
.beute-karte { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 12px; cursor: pointer; border: 1px solid var(--line); border-radius: 3px;
  background: linear-gradient(180deg, #2a3646, #18222e); transition: border-color .15s, box-shadow .2s, transform .1s; }
.beute-karte:hover, .beute-karte:focus-visible { border-color: var(--altgold); }
.beute-karte.an { border-color: var(--altgold); box-shadow: var(--glut); transform: translateY(-2px); }
.beute-sym { font-size: 34px; line-height: 1; filter: drop-shadow(0 0 8px rgba(197,162,103,.35)); }
.beute-karte b { font: 600 16px var(--schrift-titel); color: var(--pergament); }
.beute-karte p { margin: 0; font-size: 14px; color: #e3dccd; }
.beute-karte small { color: var(--muted); font-size: 11px; }
.beute-helden { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.beute-held { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; }
.beute-held span { display: flex; flex-direction: column; } .beute-held small { font-weight: 400; font-size: 11px; color: var(--muted); }
.aufstieg-liste { display: grid; gap: 10px; }
.aufstieg-held { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.aufstieg-held b { color: var(--pergament); } .auf-werte { display: block; font-size: 14px; color: #e3dccd; margin: 2px 0 4px; }
.aufstieg-held ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; color: #e3dccd; }
.gruppe-leiste .dinge { font-style: normal; font-size: 13px; margin-left: 4px; }
.gruppe-leiste .dinge i { font-style: normal; cursor: help; }


/* ================= Inszenierung: Absätze, Titelkarten, Farbstimmung ================= */
.erzaehlung.auftritt { cursor: pointer; }
.erzaehlung.auftritt p, .interaktion.auftritt { opacity: 0; animation: absatz 1.1s ease forwards; animation-delay: calc(var(--i, 0) * 1.5s + .2s); }
@keyframes absatz { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.titelkarte { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; text-align: center; cursor: pointer;
  background: radial-gradient(ellipse at center, rgba(16,26,39,.92), rgba(4,7,12,.98)); animation: karteEin .9s ease both; }
.titelkarte.aus { animation: karteAus .7s ease forwards; }
.titelkarte .eyebrow { font-size: 13px; letter-spacing: .3em; }
.titelkarte h2 { font: 600 clamp(36px, 7vw, 72px)/1.05 var(--schrift-titel); margin: 10px 0 8px; background: linear-gradient(180deg, #f6ead0, #d9bd86 45%, #a67f45); -webkit-background-clip: text; background-clip: text; color: transparent; animation: auftauchen 1.6s ease both; }
.titelkarte .titel-zier { margin: 0 auto; }
@keyframes karteEin { from { opacity: 0; } to { opacity: 1; } }
@keyframes karteAus { to { opacity: 0; } }
/* Farbstimmung je Abschnitt: 1 grau und verregnet, 2 kalt und grünlich, 3 rot vor Asche */
body[data-abschnitt="1"] { background: radial-gradient(ellipse at 50% -10%, #1c2a3a 0%, var(--nacht) 45%, var(--nacht-tief) 100%) fixed; }
body[data-abschnitt="2"] { background: radial-gradient(ellipse at 50% -10%, #15302d 0%, #0e1c20 45%, #070f12 100%) fixed; }
body[data-abschnitt="3"] { background: radial-gradient(ellipse at 50% -10%, #3a1a17 0%, #1a1012 45%, #0b0709 100%) fixed; }
body[data-abschnitt="3"] .szene h1 { text-shadow: 0 0 24px rgba(201, 72, 40, .25); }
#szene-kopf-vorlesen, #sz-vorlesen { font-size: 13px; text-decoration: none; }
.kopf-links { display: inline-flex; gap: 14px; align-items: center; white-space: nowrap; }

/* Meldungen aus dem Verlauf als Banner über der Karte */
.meldungen { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(92%, 560px); pointer-events: none; }
.meldung { max-width: 100%; padding: 8px 14px; border-radius: 3px; font: 600 14px/1.35 var(--schrift-ui); text-align: center; color: var(--pergament);
  background: rgba(14, 21, 31, .92); border: 1px solid var(--line-stark); box-shadow: 0 6px 18px rgba(0,0,0,.5); animation: meldungEin .3s ease both; transition: opacity .45s, transform .45s; }
.meldung.gut { border-color: #6fbf8a; color: #d9f2e1; }
.meldung.schlecht { border-color: #d0545e; color: #f6d5d5; background: rgba(43, 14, 18, .92); }
.meldung.gegner { border-color: #c9774f; color: #f3dccd; }
.meldung.wurf { border-color: var(--altgold); }
.meldung.runde { font: 600 12px var(--schrift-titel); letter-spacing: .14em; color: var(--altgold); padding: 4px 12px; background: rgba(10,17,27,.8); }
.meldung.weg { opacity: 0; transform: translateY(-6px); }
@keyframes meldungEin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) { .meldung { font-size: 12px; padding: 6px 10px; } }
.tempo-wahl { justify-content: space-between; cursor: default; } .tempo-wahl .seg button { padding: 6px 10px; font-size: 13px; }

.rasterbar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; border: 1px dashed var(--line-stark); border-radius: 3px; font-size: 13px; }
.rasterbar .note { flex-basis: 100%; } .rasterbar .note i { display: inline-block; width: 10px; height: 10px; margin: 0 3px 0 8px; border-radius: 2px; }
.gruppe-leiste .reliquie-knopf { grid-column: 1 / -1; margin-top: 4px; padding: 4px 8px; font-size: 12px; }
.gruppe-leiste .tot .reliquie-knopf { opacity: 1; }
.gruppe-leiste .tot { opacity: 1; } .gruppe-leiste .tot > :not(.reliquie-knopf) { opacity: .45; }

/* Gegnervorschau vor dem Kampf */
.vorschau { margin: 14px 0 6px; }
.vorschau h3 { margin: 0 0 8px; font: 600 11px var(--schrift-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--altgold); }
.vorschau-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.vs-gegner { display: grid; gap: 7px; align-content: start; padding: 10px 12px; border: 1px solid rgba(168, 50, 42, .45); border-left: 3px solid #a8322a; border-radius: 3px; background: linear-gradient(180deg, rgba(60, 16, 14, .45), rgba(8, 12, 18, .7)); }
.vs-gegner.boss { border-color: rgba(240, 212, 136, .6); border-left-color: #f0d488; box-shadow: 0 0 18px rgba(240, 212, 136, .12); }
.vs-gegner header { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.vs-gegner header b { font: 600 18px var(--schrift-titel); color: var(--pergament); }
.vs-anzahl { font: 700 14px var(--schrift-ui); color: #e8a49c; }
.vs-boss { margin-left: auto; padding: 1px 7px; border: 1px solid #f0d488; border-radius: 10px; font: 600 10px var(--schrift-ui); letter-spacing: .1em; text-transform: uppercase; color: #f0d488; }
.vs-werte { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 400 13px/1.35 var(--schrift-ui); color: #cfd5dc; }
.vs-zeichen { display: flex; flex-wrap: wrap; gap: 5px; }
.vs-zeichen span { padding: 2px 8px; border-radius: 10px; font: 600 11px var(--schrift-ui); color: #f3d6d2; background: rgba(168, 50, 42, .35); border: 1px solid rgba(168, 50, 42, .6); }
.vs-wissen { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 7px 9px; border-radius: 3px; font: 400 14px/1.4 var(--schrift-text); color: #e3dccd; background: rgba(197, 162, 103, .1); border: 1px solid rgba(197, 162, 103, .35); }
.vs-wissen b { color: var(--pergament); }
.vs-verdeckt { margin: 0; font: italic 400 15px/1.4 var(--schrift-text); color: #aab3bd; }
.vs-hinweis { margin: 8px 0 0; font: 400 14px/1.4 var(--schrift-text); color: #e3dccd; }
.vs-hinweis::before { content: "✦ "; color: var(--altgold); }
.held-faehig li.klassen-merkmal { border-color: var(--k); border-left: 3px solid var(--k); background: color-mix(in srgb, var(--k) 18%, rgba(8, 12, 18, .8)); }
.held-faehig li.klassen-merkmal .typ { color: var(--pergament); }
.faehig li.klassen-merkmal { border-color: var(--k); border-left: 3px solid var(--k); background: color-mix(in srgb, var(--k) 18%, var(--panel)); }

/* Heldenansicht im Abenteuer (Klick auf eine Figur in der Gruppenleiste) */
.gruppe-leiste [data-held] { cursor: pointer; border-radius: 4px; padding: 2px 6px 2px 2px; }
.gruppe-leiste [data-held]:hover, .gruppe-leiste [data-held]:focus-visible { background: rgba(197, 162, 103, .12); outline: none; }
.held-dialog { width: min(960px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; background: transparent; color: var(--text); overflow: auto; }
.held-dialog::backdrop { background: rgba(4, 7, 12, .78); backdrop-filter: blur(2px); }
.held-dialog-inhalt .held { background-color: #0f1722; }
.held-dialog-zu { position: sticky; top: 8px; float: right; z-index: 2; margin: 8px 8px -44px 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #0f1722; color: var(--pergament); font-size: 16px; cursor: pointer; }
.held-stand { margin: 8px 0 4px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--k) 50%, var(--line)); border-radius: 4px; background: rgba(8, 12, 18, .55); }
.held-stand p { margin: 0; } .held-stand .gefallen { color: #e8a49c; }
.held-stand ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; }
.held-stand li span { display: block; color: var(--muted); }

/* ===================== Mythara: Startbildschirm ===================== */
.mythara { position: relative; width: 100vw; margin: -16px calc(50% - 50vw) 0; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding: 24px 16px 32px; isolation: isolate; }
.mythara[hidden] { display: none; }
.my-hg, .my-hg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; z-index: -2; }
.my-schleier { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 55% at 50% 58%, rgba(6, 8, 12, .55), transparent 75%), linear-gradient(180deg, rgba(6, 8, 12, .35), rgba(6, 8, 12, .1) 30%, rgba(6, 8, 12, .55)); }
.my-inhalt { width: min(1000px, 100%); display: grid; justify-items: center; gap: 10px; text-align: center; }
.my-logo { margin: 0; line-height: 0; }
.my-logo img { width: min(640px, 92vw); height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .7)); }
.my-band { margin: -6px 0 0; padding: 6px 34px; font: 600 clamp(13px, 2.2vw, 18px) var(--schrift-titel); letter-spacing: .12em; text-transform: uppercase; color: #f6e2b0;
  background: linear-gradient(180deg, #9b1f22, #6d1214); border-top: 1px solid #d7a64e; border-bottom: 1px solid #d7a64e; clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%); box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
.my-motto { margin: 2px 0 8px; font: italic 400 clamp(19px, 3vw, 28px) var(--schrift-text); color: #e9c77e; text-shadow: 0 2px 8px rgba(0, 0, 0, .9); }
.my-wahl { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; width: 100%; }
.my-oder { align-self: center; font: 600 13px var(--schrift-titel); letter-spacing: .14em; text-transform: uppercase; color: #e9c77e; text-shadow: 0 2px 6px #000; }
.my-karte { position: relative; display: grid; align-content: start; gap: 12px; padding: 34px 22px 22px; text-align: left; color: #efe6d4;
  background: linear-gradient(180deg, rgba(14, 14, 16, .9), rgba(8, 8, 10, .92)); border: 1px solid #b08a45; border-radius: 6px;
  box-shadow: inset 0 0 0 3px rgba(8, 8, 10, .9), inset 0 0 0 4px rgba(176, 138, 69, .55), 0 18px 40px rgba(0, 0, 0, .55); }
.my-wappen { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px;
  background: radial-gradient(circle, #2a2116, #0d0b08); border: 1px solid #c99a4b; border-radius: 50%; box-shadow: 0 0 14px rgba(233, 199, 126, .35); }
.my-karte h2 { margin: 0 0 4px; text-align: center; font: 600 clamp(20px, 2.4vw, 26px) var(--schrift-titel); color: #f3e7cc; padding-bottom: 10px; border-bottom: 1px solid rgba(176, 138, 69, .35); }
.my-wege { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.my-weg { display: flex; gap: 12px; align-items: center; width: 100%; padding: 8px 10px; background: none; border: 1px solid transparent; border-radius: 4px; color: #efe6d4; font: 400 19px var(--schrift-text); text-align: left; cursor: pointer; }
.my-weg span { width: 26px; text-align: center; color: #e9b04e; font-size: 20px; }
.my-weg:hover, .my-weg:focus-visible { border-color: rgba(201, 154, 75, .5); background: rgba(201, 154, 75, .08); outline: none; }
.my-knopf { display: flex; gap: 12px; justify-content: center; align-items: center; width: 100%; padding: 12px 16px; font: 600 clamp(18px, 2vw, 22px) var(--schrift-titel); color: #f6ead0; cursor: pointer;
  background: linear-gradient(180deg, #2a2a2e, #141416); border: 1px solid #c99a4b; border-radius: 6px; box-shadow: inset 0 0 0 2px #0b0b0c, inset 0 0 0 3px rgba(201, 154, 75, .45), 0 6px 16px rgba(0, 0, 0, .5); }
.my-knopf span { color: #e9b04e; }
.my-knopf.rot { background: linear-gradient(180deg, #a3191c, #6a0f12); color: #fff3dc; }
.my-knopf:hover, .my-knopf:focus-visible { filter: brightness(1.12); outline: none; box-shadow: inset 0 0 0 2px #0b0b0c, inset 0 0 0 3px rgba(233, 199, 126, .8), 0 0 18px rgba(233, 199, 126, .35); }
.my-anmelden { display: grid; gap: 10px; }
.my-feld { display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid rgba(201, 154, 75, .55); border-radius: 6px; background: rgba(0, 0, 0, .45); }
.my-feld > span { color: #e9b04e; width: 22px; text-align: center; }
.my-feld input { flex: 1; min-width: 0; padding: 12px 0; background: none; border: 0; color: #f3e7cc; font: 400 18px var(--schrift-text); outline: none; }
.my-feld input::placeholder { color: #bfb39c; }
.my-feld:focus-within { border-color: #e9c77e; box-shadow: 0 0 0 2px rgba(233, 199, 126, .25); }
.my-auge { background: none; border: 0; color: #e9c77e; cursor: pointer; font-size: 16px; }
.my-link { justify-self: center; background: none; border: 0; color: #e9dcc0; text-decoration: underline; font: 400 17px var(--schrift-text); cursor: pointer; }
.my-bald { margin: 0; font: 400 19px/1.45 var(--schrift-text); color: #e9dcc0; } .my-bald.klein { font-size: 16px; color: #b9ae99; }
.my-code { display: grid; gap: 6px; }
.my-code label { font: 600 11px var(--schrift-ui); letter-spacing: .14em; text-transform: uppercase; color: #e9c77e; }
.my-code input { padding: 12px; font: 600 22px var(--schrift-ui); letter-spacing: .12em; text-align: center; color: #f3e7cc; background: rgba(0, 0, 0, .5); border: 1px solid rgba(201, 154, 75, .6); border-radius: 6px; }
.my-fb { margin: 0; min-height: 1em; font: 400 15px var(--schrift-ui); color: #f0b8a8; }
.my-scanner { display: grid; gap: 8px; }
.my-scanner video { width: 100%; max-height: 260px; object-fit: cover; border: 1px solid #c99a4b; border-radius: 6px; background: #000; }
.my-scan-tipp { margin: 0; font: 400 16px/1.4 var(--schrift-text); color: #e9dcc0; }
.my-registrieren:empty { display: none; }
.my-reg-knopf { display: flex; gap: 14px; align-items: center; padding: 12px 26px; font: 400 clamp(17px, 2vw, 22px) var(--schrift-text); color: #e9c77e; cursor: pointer;
  background: linear-gradient(180deg, rgba(20, 18, 14, .92), rgba(8, 8, 10, .92)); border: 1px solid #b08a45; border-radius: 6px; box-shadow: inset 0 0 0 3px rgba(8, 8, 10, .9), inset 0 0 0 4px rgba(176, 138, 69, .5); }
.my-reg-knopf b { font-family: var(--schrift-titel); color: #f3e7cc; }
.my-hinweis { display: flex; gap: 12px; align-items: center; max-width: 620px; margin: 6px 0 0; text-align: left; font: 400 clamp(16px, 1.8vw, 19px)/1.35 var(--schrift-text); color: #efe6d4; text-shadow: 0 2px 6px #000; }
.my-hinweis span { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #e9b04e; border-radius: 50%; color: #e9b04e; }
@media (max-width: 760px) {
  .mythara { place-items: start center; }
  .my-wahl { grid-template-columns: 1fr; gap: 26px; }
  .my-oder { justify-self: center; margin: -10px 0; }
  .my-karte { padding: 30px 16px 16px; }
}
.my-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; color: #e9b04e; }
.my-ico svg, .my-wappen svg { width: 100%; height: 100%; fill: currentColor; }
.my-ico.gross { width: 32px; height: 32px; }
.my-wappen { color: #e9b04e; padding: 9px; }
.my-weg span.my-ico { width: 26px; font-size: 0; }
.my-feld > .my-ico { width: 20px; height: 20px; }
.my-auge .my-ico { width: 22px; height: 22px; color: #e9c77e; }
.my-knopf .my-ico { width: 24px; height: 24px; }
.my-pfeil { color: #e9b04e; font-size: 1.2em; }
.my-hinweis span { font: italic 600 18px var(--schrift-text); }
@media (max-width: 760px) {
  .my-motto { margin-bottom: 22px; }
  .my-wahl > .my-karte:first-child { order: 3; }
  .my-oder { order: 2; margin: 0; } .my-wahl > .my-karte:last-child { order: 1; }
  .my-wahl { gap: 34px; }
}
/* Mythara: Meine Kampagnen */
.karte-box.kampagnen { max-width: 760px; max-height: 88vh; overflow: auto; background: #0e0f12; border: 1px solid #b08a45; border-radius: 6px; padding: 20px; box-shadow: inset 0 0 0 3px #0b0b0c, inset 0 0 0 4px rgba(176, 138, 69, .45); }
.k-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.k-kopf h2 { margin: 0; font: 600 24px var(--schrift-titel); color: #f3e7cc; }
.k-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.k-eintrag { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid rgba(176, 138, 69, .4); border-left: 3px solid #b08a45; border-radius: 4px; background: rgba(20, 18, 14, .7); }
.k-eintrag[data-status="pausiert"] { border-left-color: #e9b04e; } .k-eintrag[data-status="abgeschlossen"], .k-eintrag[data-status="archiviert"] { border-left-color: #6b7380; opacity: .9; }
.k-text { display: grid; gap: 3px; } .k-text b { font: 600 18px var(--schrift-titel); color: #f3e7cc; }
.k-status { font: 600 11px var(--schrift-ui); letter-spacing: .12em; text-transform: uppercase; color: #e9c77e; }
.k-text small { color: var(--muted); font-size: 13px; }
.k-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; }
.k-knoepfe .gefahr { color: #f0b8a8; border-color: rgba(201, 106, 111, .6); }
.k-lokal { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px dashed #b08a45; border-radius: 4px; }
.k-lokal p { margin: 0; }
.note.klein { font-size: 12px; }
.kampagne-status { position: fixed; left: 12px; bottom: 12px; z-index: 25; padding: 6px 10px; font: 600 12px var(--schrift-ui); color: #e9dcc0; background: rgba(10, 10, 12, .88); border: 1px solid rgba(176, 138, 69, .5); border-radius: 4px; pointer-events: none; }
.kampagne-status[hidden] { display: none; } .kampagne-status[data-art="fehler"] { color: #f0b8a8; border-color: #c96a6f; }
.my-name-info { margin: -4px 0 0; font: 400 14px/1.35 var(--schrift-ui); color: #b9ae99; }
.my-name-info[data-art="ok"] { color: #9fd3a8; } .my-name-info[data-art="fehler"], .my-fb[data-art="fehler"] { color: #f0b8a8; }
.my-fb[data-art="ok"] { color: #9fd3a8; }
.my-angemeldet { margin: 0; font: 400 21px var(--schrift-text); color: #efe6d4; } .my-angemeldet b { font-family: var(--schrift-titel); color: #e9c77e; }

/* ===================== Mythara: Spielerseite ===================== */
.hub { position: relative; width: 100vw; margin: -16px calc(50% - 50vw) 0; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; padding: 14px 20px 28px; }
.hub[hidden] { display: none; }
.hub-schleier { background: linear-gradient(90deg, rgba(6, 8, 12, .55), rgba(6, 8, 12, .35) 30%, rgba(6, 8, 12, .55)), linear-gradient(180deg, rgba(6, 8, 12, .2), rgba(6, 8, 12, .6)); }
.hub-rahmen { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 230px minmax(0, 1fr) 340px; grid-template-areas: "kopf kopf kopf" "nav mitte seite"; gap: 18px 22px; }
.hub-kopf { grid-area: kopf; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.hub-logo { grid-column: 2; width: min(380px, 60vw); height: auto; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .7)); }
.hub-profil { grid-column: 3; justify-self: end; position: relative; display: flex; gap: 8px; align-items: center; }
.hub-profil-knopf, .hub-rund { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; color: #f3e7cc; cursor: pointer; background: rgba(10, 10, 12, .85); border: 1px solid #b08a45; border-radius: 40px; font: 400 14px var(--schrift-ui); }
.hub-rund { padding: 10px; border-radius: 50%; } .hub-rund .my-ico { width: 24px; height: 24px; }
.hub-avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 2px solid #c99a4b; display: grid; place-items: center; background: radial-gradient(circle, #3a2a16, #120d08); font: 600 20px var(--schrift-titel); color: #e9c77e; }
.hub-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hub-name { display: grid; text-align: left; } .hub-name b { font: 600 18px var(--schrift-titel); } .hub-name small { color: #c9bfa8; font-size: 13px; }
.hub-menue { position: absolute; right: 54px; top: calc(100% + 6px); z-index: 20; display: grid; min-width: 200px; padding: 6px; background: #0e0f12; border: 1px solid #b08a45; border-radius: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, .6); }
.hub-menue[hidden] { display: none; }
.hub-menue button { text-align: left; padding: 10px 12px; background: none; border: 0; color: #efe6d4; font: 400 15px var(--schrift-ui); cursor: pointer; border-radius: 4px; }
.hub-menue button:hover, .hub-menue button:focus-visible { background: rgba(201, 154, 75, .15); outline: none; }
.hub-nav { grid-area: nav; align-self: start; display: grid; gap: 2px; padding: 10px; background: rgba(10, 10, 12, .88); border: 1px solid #b08a45; border-radius: 6px; box-shadow: inset 0 0 0 3px rgba(8, 8, 10, .9), inset 0 0 0 4px rgba(176, 138, 69, .4); }
.hub-nav-punkt { display: flex; gap: 12px; align-items: center; padding: 12px 12px; background: none; border: 1px solid transparent; border-bottom-color: rgba(176, 138, 69, .18); color: #efe6d4; font: 400 19px var(--schrift-text); text-align: left; cursor: pointer; border-radius: 4px; }
.hub-nav-punkt:last-child { border-bottom-color: transparent; }
.hub-nav-punkt.an { background: linear-gradient(180deg, #8f1b1e, #5e0f12); border-color: #d7a64e; color: #fff3dc; }
.hub-nav-punkt:hover:not(.an), .hub-nav-punkt:focus-visible { background: rgba(201, 154, 75, .12); outline: none; }
.hub-mitte { grid-area: mitte; min-width: 0; }
.hub-gruss { margin: 4px 0 0; font: 600 clamp(26px, 3vw, 38px) var(--schrift-titel); color: #e9c77e; text-shadow: 0 2px 10px #000; }
.hub-untertitel { margin: 2px 0 14px; font: 400 clamp(18px, 2vw, 22px) var(--schrift-text); color: #e9dcc0; text-shadow: 0 2px 8px #000; }
.hub-gast-hinweis { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; margin: 0 0 14px; padding: 10px 14px; font: 400 17px var(--schrift-text); color: #efe6d4; background: rgba(10, 10, 12, .85); border: 1px dashed #b08a45; border-radius: 6px; }
.hub-gast-hinweis[hidden] { display: none; } .hub-gast-knoepfe { display: flex; gap: 14px; }
.hub-kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hub-kachel { position: relative; display: grid; align-content: end; gap: 6px; min-height: 300px; padding: 20px 20px 18px 92px; text-align: left; color: #efe6d4; cursor: pointer; overflow: hidden;
  background: #0b0b0d; border: 1px solid #b08a45; border-radius: 6px; box-shadow: inset 0 0 0 3px rgba(8, 8, 10, .9), inset 0 0 0 4px rgba(176, 138, 69, .5), 0 16px 34px rgba(0, 0, 0, .5); }
.hub-kachel.klein { min-height: 190px; }
.hub-kachel img { position: absolute; inset: 0; width: 100%; height: 62%; object-fit: cover; z-index: 0; mask-image: linear-gradient(180deg, #000 55%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); transition: transform .4s ease; }
.hub-kachel.klein img { height: 100%; opacity: .45; mask-image: linear-gradient(90deg, transparent, #000 45%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); }
.hub-kachel > :not(img) { position: relative; z-index: 1; }
.hub-kachel b { font: 600 clamp(20px, 2.2vw, 27px) var(--schrift-titel); color: #f3e7cc; text-shadow: 0 2px 6px #000; }
.hub-kachel small { font: 400 17px/1.35 var(--schrift-text); color: #ddd2bc; text-shadow: 0 1px 4px #000; }
.hub-banner { position: absolute !important; left: 22px; bottom: 34px; width: 52px; height: 68px; display: grid; place-items: center; padding-bottom: 10px; background: linear-gradient(180deg, #a3191c, #6a0f12); border: 1px solid #d7a64e; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
.hub-banner .my-ico { color: #f6e2b0; width: 26px; height: 26px; }
.hub-mehr { justify-self: start; margin-top: 6px; padding: 8px 16px; font: 600 16px var(--schrift-titel); color: #f3e7cc; background: linear-gradient(180deg, #2a2a2e, #141416); border: 1px solid #c99a4b; border-radius: 6px; }
.hub-kachel:hover, .hub-kachel:focus-visible { outline: none; box-shadow: inset 0 0 0 3px rgba(8, 8, 10, .9), inset 0 0 0 4px rgba(233, 199, 126, .9), 0 0 24px rgba(233, 199, 126, .25); }
.hub-kachel:hover img { transform: scale(1.03); }
.hub-seite { grid-area: seite; align-self: start; padding: 16px; background: rgba(10, 10, 12, .9); border: 1px solid #b08a45; border-radius: 6px; box-shadow: inset 0 0 0 3px rgba(8, 8, 10, .9), inset 0 0 0 4px rgba(176, 138, 69, .45); }
.hub-seite h2 { display: flex; gap: 10px; align-items: center; margin: 4px 0 10px; font: 600 20px var(--schrift-titel); color: #e9c77e; }
.hub-seite h2:nth-of-type(2) { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(176, 138, 69, .35); }
.hub-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hub-liste li { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; padding: 6px; background: rgba(20, 18, 14, .75); border: 1px solid rgba(176, 138, 69, .3); border-radius: 4px; }
.hub-liste li img { width: 72px; height: 50px; object-fit: cover; border: 1px solid rgba(201, 154, 75, .5); border-radius: 3px; }
.hub-liste li div { display: grid; min-width: 0; } .hub-liste li b { font: 400 17px var(--schrift-text); color: #f3e7cc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-liste li small { color: #c9bfa8; font-size: 13px; }
.hub-liste li.hub-leer { display: block; padding: 10px; color: #b9ae99; font: italic 400 16px var(--schrift-text); }
.hub-play { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #f6d58a; background: radial-gradient(circle at 35% 30%, #f3c25d, #b47b1f); color: #1a1208; font-size: 15px; cursor: pointer; padding-left: 3px; }
.hub-play:hover, .hub-play:focus-visible { filter: brightness(1.12); outline: 2px solid #f6e2b0; outline-offset: 2px; }
.hub-bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.hub-bild { display: grid; gap: 4px; padding: 6px; background: rgba(20, 18, 14, .8); border: 1px solid rgba(176, 138, 69, .35); border-radius: 6px; color: #efe6d4; cursor: pointer; font: 400 13px var(--schrift-ui); }
.hub-bild img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.hub-bild.an, .hub-bild:hover { border-color: #e9c77e; box-shadow: 0 0 12px rgba(233, 199, 126, .3); }
body > .einst-panel { position: fixed; z-index: 40; }
.my-gast-text { margin: 0; font: 400 19px/1.45 var(--schrift-text); color: #e9dcc0; }
.my-klein-wege { margin: 0; font: 400 14px/1.6 var(--schrift-ui); color: #b9ae99; }
.my-klein-wege .my-link { font-size: 16px; }
@media (max-width: 1150px) {
  .hub-rahmen { grid-template-columns: 200px minmax(0, 1fr); grid-template-areas: "kopf kopf" "nav mitte" "nav seite"; }
}
@media (max-width: 760px) {
  .hub { padding: 10px 12px 24px; }
  .hub-rahmen { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kopf" "nav" "mitte" "seite"; gap: 14px; }
  .hub-kopf { grid-template-columns: 1fr auto; } .hub-logo { grid-column: 1; width: min(220px, 52vw); } .hub-profil { grid-column: 2; }
  .hub-name { display: none; } .hub-profil-knopf { padding: 4px; } .hub-avatar { width: 40px; height: 40px; } .hub-menue { right: 0; }
  .hub-nav { display: flex; overflow-x: auto; padding: 6px; } .hub-nav-punkt { flex: none; font-size: 16px; padding: 8px 10px; border-bottom-color: transparent; }
  .hub-kacheln { grid-template-columns: 1fr; gap: 12px; } .hub-kachel { min-height: 200px; } .hub-kachel.klein { min-height: 140px; }
}
/* Mythara: Freunde, Anfragen, Glocke */
.hub-rund { position: relative; }
.hub-zahl { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; background: #c8262b; color: #fff; font: 700 11px var(--schrift-ui); border: 2px solid #0e0f12; }
.hub-zahl[hidden] { display: none; }
.hub-nav-punkt .hub-zahl { position: static; margin-left: auto; border: 0; }
#hub-glocke.neu .my-ico { color: #f6d58a; animation: glocke-wackeln 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes glocke-wackeln { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(12deg); } 90% { transform: rotate(-10deg); } 95% { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { #hub-glocke.neu .my-ico { animation: none; } }
.hub-avatar.klein { width: 34px; height: 34px; font-size: 15px; flex: none; }
.f-unter { margin: 14px 0 6px; font: 600 15px var(--schrift-titel); color: #e9c77e; } .f-unter small { font: 400 13px var(--schrift-ui); color: var(--muted); }
.f-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.f-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(20, 18, 14, .75); border: 1px solid rgba(176, 138, 69, .3); border-radius: 4px; }
.f-liste li b { font: 400 17px var(--schrift-text); color: #f3e7cc; } .f-liste li small { display: block; color: var(--muted); font-size: 13px; }
.f-liste.treffer li { border-color: #e9c77e; }
.f-liste.wahl label { display: flex; align-items: center; gap: 10px; cursor: pointer; width: 100%; }
.f-knoepfe { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; } .f-info { margin-left: auto; color: #9fd3a8; font-size: 14px; }
.f-suche, .f-neu { display: grid; gap: 6px; }
.f-suche label, .f-neu label { font: 600 11px var(--schrift-ui); letter-spacing: .14em; text-transform: uppercase; color: #e9c77e; }
.f-suche div { display: flex; gap: 6px; }
.f-suche input, .f-neu input:not([type]) , .f-neu #f-titel { flex: 1; padding: 10px 12px; font: 400 17px var(--schrift-text); color: #f3e7cc; background: rgba(0, 0, 0, .5); border: 1px solid rgba(201, 154, 75, .6); border-radius: 6px; }
/* Mythara: eigene Seiten der Spielerseite */
.hub.seite-offen .hub-rahmen { grid-template-areas: "kopf kopf kopf" "nav mitte mitte"; }
.hub.seite-offen .hub-seite { display: none; }
.hub-seite-inhalt { padding: 18px 22px 24px; background: rgba(10, 10, 12, .9); border: 1px solid #b08a45; border-radius: 6px; box-shadow: inset 0 0 0 3px rgba(8, 8, 10, .9), inset 0 0 0 4px rgba(176, 138, 69, .45); }
.hub-seite-inhalt[hidden] { display: none; }
.hub-zurueck { margin: 0 0 10px; padding: 6px 12px; background: none; border: 1px solid rgba(201, 154, 75, .6); border-radius: 4px; color: #e9c77e; font: 600 14px var(--schrift-ui); cursor: pointer; }
.hub-zurueck.klein { margin-left: 8px; }
.hub-text { display: grid; gap: 14px; }
.hub-text .seite { padding: 14px 16px; border: 1px solid rgba(176, 138, 69, .3); border-radius: 4px; background: rgba(20, 18, 14, .6); }
.hub-text .seite h2 { margin: 0 0 8px; font: 600 22px var(--schrift-titel); color: #f3e7cc; }
.hub-text .seite p { font: 400 18px/1.5 var(--schrift-text); color: #e9dcc0; }
.hub-helden .klassen-banner { margin-top: 10px; }
.hub-held-reihe { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.hub-held-reihe .fkarte { width: 150px; }
.hub-welt-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.hub-kachel.welt { padding-left: 20px; min-height: 280px; }
.hub-kachel.welt.bald { display: grid; place-content: center; text-align: center; cursor: default; opacity: .75; min-height: 280px; }
.hub-welt-bild { width: 100%; max-height: 300px; object-fit: cover; border: 1px solid #b08a45; border-radius: 4px; }
.hub-fakten { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; padding: 0; }
.hub-fakten li { padding: 6px 12px; border: 1px solid rgba(201, 154, 75, .5); border-radius: 20px; font: 400 16px var(--schrift-text); color: #e9dcc0; } .hub-fakten b { color: #e9c77e; }
.hub-welt-start { margin-top: 16px; max-width: 360px; }
@media (max-width: 1150px) { .hub.seite-offen .hub-rahmen { grid-template-areas: "kopf kopf" "nav mitte"; } }
@media (max-width: 760px) { .hub.seite-offen .hub-rahmen { grid-template-areas: "kopf" "nav" "mitte"; } .hub-seite-inhalt { padding: 12px; } .hub-held-reihe .fkarte { width: calc(33% - 7px); } }
.warte-punkte { display: flex; gap: 8px; justify-content: center; margin: 18px 0 4px; }
.warte-punkte i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); animation: warte 1.2s ease-in-out infinite; }
.warte-punkte i:nth-child(2) { animation-delay: .2s; } .warte-punkte i:nth-child(3) { animation-delay: .4s; }
@keyframes warte { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- Einladen (nach „Spieltisch + Handys“) ---------- */
.einladen { max-width: 1180px; margin: 16px auto; padding: 0 16px; }
.ei-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ei-kopf h1 { margin: 0; }
.ei-titel { display: grid; gap: 4px; font: 600 12px var(--schrift-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-width: min(320px, 100%); }
.ei-titel input { font: 500 16px var(--schrift-ui); padding: 9px 12px; background: var(--nacht-tief); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); }
.ei-titel input:focus { outline: none; box-shadow: var(--fokus); }
.ei-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ei-karte { background: var(--stein); box-shadow: var(--kante); border-radius: var(--radius); padding: 16px; min-width: 0; }
.ei-karte h2 { font: 600 18px var(--schrift-titel); color: var(--gold); margin: 0 0 12px; }
.ei-karte .beitritt { grid-template-columns: 1fr; padding: 12px; }
.ei-karte .beitritt .qr { max-width: 190px; }
.ei-karte .beitritt .code { font-size: 22px; }
.ei-freunde { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ei-freunde li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.ei-ok { color: var(--green); font: 600 13px var(--schrift-ui); }
.ei-tisch { margin-bottom: 12px; }
.ei-warte { color: var(--gold); }
.ei-da { margin: 16px 0 10px; }
.einladen .knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 980px) { .ei-raster { grid-template-columns: 1fr; } }

/* ---------- Moor: die Lichter statt der Glocke ---------- */
.glocke.lichter i, .kodex-glocke.lichter i { border-radius: 50%; width: 12px; height: 12px; border-color: rgba(190,230,160,.4); }
.kodex-glocke.lichter i { width: 22px; height: 22px; }
.glocke.lichter i.an, .kodex-glocke.lichter i.an { background: #dff3b8; border-color: #dff3b8; box-shadow: 0 0 10px rgba(210,240,170,.75); }
.hub-schwer { color: #e8c46a; white-space: nowrap; }


/* ================= 05 · Kampfbühne (High-End, Etappe 1) ================= */
/* Gruppe und Bosskarte gibt es auf allen Größen; die Bühne mit drei Spalten ab 1200 px */
.gruppe-kampf { display: none; }
.boss-karte { margin: -12px -12px 12px; padding: 14px; background: linear-gradient(180deg, rgba(60,90,120,.35), rgba(16,20,28,.2)); border-bottom: 1px solid rgba(143,208,255,.45); }
.boss-karte small { font: 600 11px var(--schrift-titel); letter-spacing: .3em; color: #8fd0ff; }
.boss-karte b { display: block; font: 600 20px var(--schrift-titel); color: #fff; margin: 2px 0 8px; }
.gk-leben { position: relative; height: 16px; border-radius: 8px; background: #2a0d10; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.6); }
.gk-leben i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; }
.gk-leben .rest { background: #f4e2b8; transition: width .9s cubic-bezier(.3,.7,.2,1) .3s; }
.gk-leben .wert { background: linear-gradient(180deg, #ff6b60, #b3262f 60%, #7c1219); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); transition: width .25s; }
.gk-leben.heil .rest { background: #9ff0b0; }
.gk-leben span { position: relative; z-index: 1; display: grid; place-items: center; height: 100%; font: 600 11px var(--schrift-ui); color: #fff; text-shadow: 0 1px 2px #000; }
.gk-leben.boss { height: 20px; }
.bk-schild { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: #d8f1ff; }
.bk-schild i { flex: 1; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #4aa6e8, #d8f1ff); box-shadow: 0 0 10px rgba(143,208,255,.7); max-width: 60%; }
.bk-schild.aus { opacity: .5; } .bk-schild.aus i { background: #3a4a58; box-shadow: none; }
.bk-phasen { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 5px; margin-top: 10px; }
.bk-phasen span { text-align: center; padding: 4px 0; border-radius: 6px; font: 600 12px var(--schrift-titel); color: var(--muted); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.bk-phasen span.an { color: #fff; background: linear-gradient(180deg, rgba(143,208,255,.35), rgba(60,120,180,.2)); box-shadow: inset 0 0 0 1px rgba(143,208,255,.7); }

/* Spielfiguren und Effekte (immer) */
#karte .fig { transform-box: fill-box; }
#karte .aktiv-licht { animation: flackern 2.4s infinite; pointer-events: none; }
@keyframes flackern { 0%, 100% { opacity: .9; } 30% { opacity: 1; } 55% { opacity: .7; } 70% { opacity: .95; } }
#karte .fig.fx-treffer { animation: fx-treffer .45s; }
@keyframes fx-treffer { 15% { filter: brightness(2.2) sepia(1) hue-rotate(-50deg) saturate(5); } 0%, 100% { filter: none; } }
.karte-wrap .leiste { position: relative; z-index: 3; }
.fx-kanal { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.fx-zahl { position: absolute; z-index: 6; pointer-events: none; transform: translate(-50%, -50%); font: 600 34px var(--schrift-titel); color: #fff; text-shadow: 0 0 2px #000, 0 2px 0 #5a0d12, 0 0 18px rgba(255,60,50,.85); animation: fx-steigen 1.6s cubic-bezier(.2,.8,.3,1) forwards; }
.fx-zahl.wunde { color: #ffd6d0; }
.fx-zahl.krit { font-size: 54px; color: #ffe9a8; text-shadow: 0 0 2px #000, 0 3px 0 #7a4a10, 0 0 34px rgba(255,200,80,1); }
.fx-zahl.krit::before { content: "KRITISCH"; position: absolute; left: 50%; top: -18px; transform: translateX(-50%); font-size: 13px; letter-spacing: .3em; color: #f6dc9c; }
/* Heilung: Lichtsäule. Der Fußring sitzt am Feld der Figur; zwei gespiegelte Lagen wechseln sich ab, das wirkt wie eine Drehung der Spirale */
.fx-heil { position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, -96%); mix-blend-mode: screen; animation: fx-heil 1.45s ease-out forwards; }
.fx-heil i { position: absolute; inset: 0; background: center bottom / contain no-repeat; transform-origin: 50% 100%; animation: fx-heil-dreh 1.45s linear forwards; }
.fx-heil i + i { animation-name: fx-heil-dreh2; }
@keyframes fx-heil { 0% { opacity: 0; filter: brightness(1.7); } 12% { opacity: 1; } 45% { filter: brightness(1.15); } 70% { opacity: 1; } 100% { opacity: 0; filter: brightness(1); } }
@keyframes fx-heil-dreh { 0% { transform: scale(.8, .12); opacity: 1; } 14% { transform: scale(.9, .45); } 32% { transform: scale(1, 1); opacity: 1; } 50% { transform: scale(.25, 1.04); opacity: 0; } 80% { transform: scale(1, 1.1); opacity: 1; } 100% { transform: scale(.5, 1.22); opacity: 1; } }
@keyframes fx-heil-dreh2 { 0%, 30% { transform: scale(-.25, 1); opacity: 0; } 50% { transform: scale(-1, 1.04); opacity: 1; } 80% { transform: scale(-.25, 1.1); opacity: 0; } 100% { opacity: 0; } }
/* Eis bricht aus dem Boden, Blitz schlägt ein, Schild leuchtet auf */
.fx-heil.eis, .fx-heil.blitz { animation: none; }
.fx-heil.eis i { animation: fx-eis 1.3s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.fx-heil.blitz, .fx-heil.eis { mix-blend-mode: normal; }
.fx-heil.blitz i { filter: drop-shadow(0 0 6px #6aa8ff) drop-shadow(0 0 16px rgba(80,140,255,.9)); animation: fx-blitzschlag .8s linear forwards; }
@keyframes fx-eis { 0% { transform: scale(.5, .05); opacity: 0; filter: brightness(2); } 10% { opacity: 1; } 22% { transform: scale(1.06, 1.08); filter: brightness(1.5); } 32% { transform: scale(1, 1); filter: brightness(1.1); } 72% { transform: scale(1, 1); opacity: 1; } 100% { transform: scale(1.04, .9); opacity: 0; } }
@keyframes fx-blitzschlag { 0% { opacity: 0; transform: scale(.9, 1); } 6% { opacity: 1; transform: scale(1, 1); } 16% { opacity: .25; } 24% { opacity: 1; transform: scale(-1, 1); } 38% { opacity: .35; transform: scale(-1, 1); } 46% { opacity: 1; transform: scale(1, 1); } 70% { opacity: .8; } 100% { opacity: 0; transform: scale(1, 1.05); } }
.fx-schild { position: absolute; z-index: 5; pointer-events: none; background: center / contain no-repeat; transform: translate(-50%, -50%); filter: drop-shadow(0 0 10px rgba(90,170,255,.9)); animation: fx-schild 1.4s ease-out forwards; }
@keyframes fx-schild { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 18% { opacity: .6; transform: translate(-50%, -50%) scale(1.18); } 32% { opacity: .5; transform: translate(-50%, -50%) scale(1); } 55% { opacity: .55; transform: translate(-50%, -50%) scale(1.06); } 75% { opacity: .45; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.25); } }
/* Ranken wachsen aus dem Boden, Münzen regnen herab, das Netz fällt über die Figur */
.fx-heil.ranke, .fx-heil.muenzen { animation: none; mix-blend-mode: normal; }
.fx-heil.ranke i { animation: fx-ranke 1.6s cubic-bezier(.2, 1.2, .4, 1) forwards; }
.fx-heil.muenzen i { animation: fx-muenzen 1.3s ease-out forwards; }
@keyframes fx-ranke { 0% { transform: scale(.6, .04); opacity: 0; } 8% { opacity: 1; } 30% { transform: scale(1.03, 1.05); } 40% { transform: scale(1, 1); } 78% { transform: scale(1, 1); opacity: 1; } 100% { transform: scale(.9, .7); opacity: 0; } }
@keyframes fx-muenzen { 0% { transform: translateY(-45%); opacity: 0; clip-path: inset(0 0 55% 0); } 15% { opacity: 1; } 45% { transform: translateY(0); clip-path: inset(0 0 0 0); filter: brightness(1.5); } 75% { opacity: 1; filter: brightness(1.1); } 100% { transform: translateY(4%); opacity: 0; } }
.fx-schild.netz { filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); animation: fx-netz 1.9s ease-out forwards; }
@keyframes fx-netz { 0% { opacity: 0; transform: translate(-50%, -130%) scale(.4) rotate(-25deg); } 22% { opacity: 1; transform: translate(-50%, -50%) scale(1.12) rotate(4deg); } 32% { transform: translate(-50%, -50%) scale(1) rotate(0deg); } 80% { opacity: .95; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.96); } }
.fx-flug.dolch i { width: calc(var(--k) * .22); height: var(--k); left: calc(var(--k) * -.11); top: calc(var(--k) * -.5); filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
/* Schatten greift nach der Figur, heiliges Licht fällt von oben herab */
.fx-heil.schatten, .fx-heil.licht { animation: none; }
.fx-heil.schatten { mix-blend-mode: normal; transform: translate(-50%, -80%); }
.fx-heil.schatten i { transform-origin: 50% 60%; filter: brightness(2.3) contrast(1.15) drop-shadow(0 0 3px rgba(225,190,255,.95)) drop-shadow(0 0 14px rgba(160,80,240,.9)); animation: fx-schatten 1.5s ease-out forwards; }
.fx-heil.licht i { transform-origin: 50% 0; animation: fx-licht 1.4s ease-out forwards; }
@keyframes fx-schatten { 0% { transform: scale(.35) rotate(-14deg); opacity: 0; } 18% { opacity: .95; } 30% { transform: scale(1.12) rotate(3deg); } 42% { transform: scale(1) rotate(0deg); } 70% { transform: scale(1.04); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes fx-licht { 0% { transform: scale(.3, .1); opacity: 0; filter: brightness(2); } 14% { opacity: 1; } 30% { transform: scale(1.1, 1); filter: brightness(1.6); } 60% { transform: scale(1, 1); opacity: 1; filter: brightness(1.2); } 100% { transform: scale(.6, 1); opacity: 0; } }
/* Zustände: Sterne kreisen über dem Kopf, die Zielmarke rastet ein, Gift steigt auf, die Aura pulsiert */
.fx-schild.sterne { filter: drop-shadow(0 0 6px rgba(255,210,110,.8)); animation: fx-sterne 1.7s linear forwards; }
.fx-schild.mal { filter: drop-shadow(0 0 8px rgba(255,60,40,.9)); animation: fx-mal 1.5s ease-out forwards; }
.fx-schild.gift { filter: brightness(1.5) drop-shadow(0 0 10px rgba(130,230,60,.7)); animation: fx-gift 1.7s ease-out forwards; }
.fx-schild.aura { mix-blend-mode: screen; animation: fx-aura 1.6s ease-out forwards; }
@keyframes fx-sterne { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(-10deg); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(6deg); } 30% { transform: translate(-50%, -50%) scale(-1, 1) rotate(-6deg); } 48% { transform: translate(-50%, -50%) scale(1, 1) rotate(6deg); } 66% { transform: translate(-50%, -50%) scale(-1, 1) rotate(-6deg); } 84% { opacity: 1; transform: translate(-50%, -50%) scale(1, 1) rotate(4deg); } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1.1, 1.1); } }
@keyframes fx-mal { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2.6) rotate(-90deg); } 30% { opacity: 1; transform: translate(-50%, -50%) scale(.92) rotate(0deg); } 40% { transform: translate(-50%, -50%) scale(1.06); } 50% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: .95; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.85); } }
@keyframes fx-gift { 0% { opacity: 0; transform: translate(-50%, -35%) scale(.4) rotate(-12deg); } 25% { opacity: .9; transform: translate(-50%, -50%) scale(1) rotate(0deg); } 70% { opacity: .8; transform: translate(-50%, -62%) scale(1.12) rotate(8deg); } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1.3) rotate(14deg); } }
@keyframes fx-aura { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(0deg); } 22% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(50deg); } 55% { opacity: .9; transform: translate(-50%, -50%) scale(1) rotate(120deg); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.35) rotate(200deg); } }
/* Nahkampfhieb: wischt in einem Zug über das Ziel; kommt der Angreifer von rechts, gespiegelt */
.fx-hieb { position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, -50%); }
.fx-hieb.links { transform: translate(-50%, -50%) scaleX(-1); }
.fx-hieb i { position: absolute; inset: 0; background: center / contain no-repeat; filter: drop-shadow(0 0 6px rgba(255,60,40,.8)); animation: fx-hieb .5s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes fx-hieb { 0% { opacity: 0; clip-path: inset(0 100% 0 0); transform: scale(.8) rotate(-12deg); } 12% { opacity: 1; } 45% { clip-path: inset(0 0 0 0); transform: scale(1.08) rotate(0deg); filter: brightness(1.6) drop-shadow(0 0 8px rgba(255,90,60,.9)); } 70% { opacity: 1; } 100% { opacity: 0; clip-path: inset(0 0 0 0); transform: scale(1.15) rotate(4deg); } }
/* Druckwelle: Ein Ring breitet sich am Boden um das Ziel aus */
.fx-heil.welle { animation: none; transform: translate(-50%, -62%); }
.fx-heil.welle i { transform-origin: 50% 50%; animation: fx-welle .8s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes fx-welle { 0% { transform: scale(.15); opacity: 0; filter: brightness(2); } 12% { opacity: 1; } 60% { transform: scale(1); opacity: .95; filter: brightness(1.3); } 100% { transform: scale(1.3); opacity: 0; } }
/* Geschosse: Pfeil (zeigt im Bild nach oben, wird in Flugrichtung gedreht) und Zauberkugel, die beim Einschlag zerplatzt */
.fx-flug { position: absolute; z-index: 5; width: 0; height: 0; pointer-events: none; }
.fx-flug i { position: absolute; background: center / contain no-repeat; }
.fx-flug.pfeil i { width: calc(var(--k) * .12); height: var(--k); left: calc(var(--k) * -.06); top: calc(var(--k) * -.5); filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.fx-flug.kugel i { width: var(--k); height: var(--k); left: calc(var(--k) * -.5); top: calc(var(--k) * -.5); filter: drop-shadow(0 0 10px rgba(190,110,255,.9)); }
.fx-flug.platzt i { animation: fx-platzt .4s ease-out forwards; }
@keyframes fx-platzt { 0% { transform: scale(1); opacity: 1; filter: brightness(1.8) drop-shadow(0 0 14px rgba(210,140,255,1)); } 100% { transform: scale(2.6); opacity: 0; filter: brightness(1.2); } }
.fx-zahl.heil { color: #d9ffe2; text-shadow: 0 0 2px #000, 0 2px 0 #1d5a2a, 0 0 18px rgba(80,230,120,.9); }
@keyframes fx-steigen { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.4); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.25); } 30% { transform: translate(-50%, -70%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -190%) scale(.95); } }
.fx-blitz { position: absolute; inset: 0; z-index: 7; pointer-events: none; animation: fx-blitz .9s ease-out forwards; }
.fx-blitz.gold { background: radial-gradient(circle at 50% 50%, rgba(255,230,160,.7), rgba(255,180,60,.2) 35%, transparent 65%); }
.fx-blitz.eis { background: radial-gradient(circle at 50% 50%, rgba(200,235,255,.6), rgba(120,190,255,.2) 35%, transparent 65%); }
@keyframes fx-blitz { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
.karte-wrap.fx-beben { animation: fx-beben .5s; }
@keyframes fx-beben { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(2px, -1px); } }
.fx-banner { position: fixed; left: 0; right: 0; top: 38%; z-index: 60; pointer-events: none; opacity: 0; display: grid; place-items: center; }
.fx-banner.zeigen { animation: fx-banner 1.9s cubic-bezier(.2,.8,.3,1) both; }
.fx-band { width: 100%; padding: 14px 0 18px; text-align: center; background: linear-gradient(90deg, transparent, rgba(8,8,12,.88) 20%, rgba(8,8,12,.88) 80%, transparent); }
.fx-band::before, .fx-band::after { content: ""; display: block; height: 1px; margin: 0 22%; background: linear-gradient(90deg, transparent, #d9b26a, transparent); }
.fx-band h2 { margin: 8px 0 0; font: 600 54px var(--schrift-titel); letter-spacing: .12em; background: linear-gradient(180deg, #fff3cf, #d9a64a 60%, #8a5d1e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-band p { margin: 2px 0 8px; font: italic 400 22px var(--schrift-text); color: var(--pergament); }
.fx-banner.phase h2 { background: linear-gradient(180deg, #fff, #cfe9ff 50%, #6aa8d8); -webkit-background-clip: text; background-clip: text; }
.fx-banner.runde h2 { font-size: 44px; }
@keyframes fx-banner { 0% { opacity: 0; transform: scaleY(.2); } 12% { opacity: 1; transform: scaleY(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
.fx-zug { position: fixed; left: 50%; top: 90px; z-index: 60; pointer-events: none; opacity: 0; display: flex; align-items: center; gap: 14px; padding: 8px 26px 8px 8px; border-radius: 50px;
  background: linear-gradient(90deg, rgba(40,30,12,.96), rgba(14,12,8,.96)); box-shadow: 0 0 0 2px #d9b26a, 0 0 40px rgba(246,200,110,.4); transform: translateX(-50%); }
.fx-zug.zeigen { animation: fx-zug 1.9s cubic-bezier(.2,.8,.3,1) both; }
.fx-zug-bild { width: 56px; height: 56px; border-radius: 50%; background-size: cover; background-position: center 20%; box-shadow: 0 0 0 3px #f6dc9c; }
.fx-zug small { display: block; font: 600 11px var(--schrift-titel); letter-spacing: .3em; color: #d9b26a; }
.fx-zug b { font: 600 26px var(--schrift-titel); color: #fff; }
@keyframes fx-zug { 0% { opacity: 0; transform: translate(-50%, -24px); } 15% { opacity: 1; transform: translate(-50%, 0); } 82% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -10px); } }
.fx-intro { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: #000; opacity: 0; pointer-events: none; transition: opacity .6s; }
.fx-intro.zeigen { opacity: 1; pointer-events: auto; cursor: pointer; }
.fx-intro-bild { position: absolute; inset: 0; background-size: cover; background-position: center 30%; transform: scale(1.15); transition: transform 4s linear; }
.fx-intro.zeigen .fx-intro-bild { transform: scale(1); }
.fx-intro-bild::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 40%, transparent, rgba(0,0,0,.85)), linear-gradient(180deg, transparent 50%, #000); }
.fx-intro-text { position: relative; text-align: center; margin-top: 34vh; padding: 0 16px; }
.fx-intro-text small { font: 600 15px var(--schrift-titel); letter-spacing: .5em; color: #8fd0ff; }
.fx-intro-text h1 { margin: 6px 0 0; font: 600 clamp(36px, 6vw, 84px) var(--schrift-titel); letter-spacing: .05em; background: linear-gradient(180deg, #fff, #f6dc9c 55%, #b07c2c); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 24px rgba(246,200,110,.4)); }

/* ---------- Bühne ab 1200 px: Gruppe | Karte | Aktionen und Chronik, Initiative unten ---------- */
@media (min-width: 1200px) {
  body.im-kampf main { max-width: none; padding: 14px 22px 22px; }
  body.im-kampf { background: radial-gradient(120% 90% at 50% 30%, #18202e 0%, #0b0e14 55%, #050608 100%); }
  .spiel { grid-template-columns: 270px minmax(0, 1fr) 340px; grid-template-rows: auto auto 1fr; gap: 16px 20px; align-items: start; }
  .livebar { grid-column: 1 / -1; grid-row: 1; }
  .gruppe-kampf { display: grid; gap: 12px; grid-column: 1; grid-row: 2 / span 2; align-content: start; }
  .karte-wrap { grid-column: 2; grid-row: 2; }
  .reihe { grid-column: 2; grid-row: 3; }
  .panel { grid-column: 3; grid-row: 2; }
  .log { grid-column: 3; grid-row: 3; max-height: 360px; }
  .gruppe-kampf h3 { margin: 0 0 2px; font: 600 13px var(--schrift-titel); letter-spacing: .28em; color: #d9b26a; }
  .gk-held { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; transition: .35s;
    background: linear-gradient(135deg, rgba(30,33,44,.94), rgba(14,15,20,.94)); box-shadow: 0 0 0 1px rgba(217,178,106,.22), 0 10px 24px rgba(0,0,0,.45); }
  .gk-held.dran { box-shadow: 0 0 0 2px #d9b26a, 0 0 30px rgba(246,200,110,.32), 0 10px 24px rgba(0,0,0,.45); transform: translateX(6px); }
  .gk-held.unten { opacity: .6; filter: grayscale(.6); } .gk-held.tot { opacity: .35; }
  .gk-bild { width: 64px; height: 64px; border-radius: 12px; background: #10161e center 20% / cover; box-shadow: 0 0 0 2px #6e4e1c, 0 0 0 4px rgba(0,0,0,.6); display: grid; place-items: center; color: #f6dc9c; font-size: 26px; }
  .gk-info b { display: block; font: 600 17px var(--schrift-titel); color: #fff; }
  .gk-info small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gk-werte { display: flex; gap: 10px; margin-top: 6px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
  .gk-werte em { font-style: normal; color: #f6dc9c; font-weight: 600; }
  .gk-zust { color: #c9a8ff; }
  /* Das Brett: Goldrahmen, Tiefe, Vignette */
  .karte-wrap { border: 0; border-radius: 14px; box-shadow: 0 0 0 2px rgba(217,178,106,.5), 0 0 0 8px rgba(10,10,14,.9), 0 0 0 10px rgba(217,178,106,.22), 0 40px 70px rgba(0,0,0,.7); }
  .karte-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; border-radius: 14px; background: radial-gradient(85% 80% at 50% 45%, transparent 55%, rgba(0,0,0,.55)); }
  /* Initiative als Porträtleiste */
  .reihe { justify-content: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(180deg, rgba(24,26,34,.92), rgba(10,11,15,.95)); box-shadow: 0 0 0 1px rgba(217,178,106,.28); flex-wrap: wrap; }
  .reihe span { flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; font-size: 11px; max-width: 76px; text-align: center; white-space: normal; color: var(--muted); }
  .reihe span.runde { align-self: center; padding: 6px 12px; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(217,178,106,.4); }
  .reihe .mini { width: 52px; height: 52px; border-radius: 12px; border-width: 2px; transition: .35s; }
  .reihe svg.mini { padding: 4px; }
  .reihe span.dran { box-shadow: none; color: #fff; }
  .reihe span.dran .mini { width: 66px; height: 66px; box-shadow: 0 0 0 2px #f6dc9c, 0 0 22px rgba(246,200,110,.6); }
  /* Rechte Spalte: Karte des Aktiven, Aktionen, Chronik */
  .panel { border-radius: 16px; border: 0; background: linear-gradient(180deg, rgba(28,30,40,.94), rgba(12,13,18,.94)); box-shadow: 0 0 0 1px rgba(217,178,106,.25), 0 10px 26px rgba(0,0,0,.5); overflow: hidden; }
  .log { padding: 14px 16px; border-radius: 16px; border: 0; background: linear-gradient(180deg, rgba(28,30,40,.94), rgba(12,13,18,.94)); box-shadow: 0 0 0 1px rgba(217,178,106,.25); }
  .log::before { content: "CHRONIK DES KAMPFES"; display: block; margin-bottom: 8px; font: 600 12px var(--schrift-titel); letter-spacing: .24em; color: #d9b26a; }
  .log li { border-bottom: 0; border-left: 2px solid rgba(217,178,106,.35); padding: 5px 0 5px 10px; margin-bottom: 4px; color: #d9d0bf; }
  .log li.gut { border-left-color: #6fe08a; } .log li.schlecht, .log li.gegner { border-left-color: #ff6a5a; } .log li.runde { border-left: 0; text-align: center; color: #d9b26a; font: 600 12px var(--schrift-titel); letter-spacing: .2em; }
  .meldungen { display: none; }
  body.im-kampf .wurf { bottom: auto; top: 50%; transform: translate(-50%, -40%) scale(.9); }
  body.im-kampf .wurf.an { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 1px rgba(217,178,106,.5), 0 30px 60px rgba(0,0,0,.7), 0 0 40px rgba(246,200,110,.25); }
}
/* Auf dem gemalten Brett ruhen die Effekte über den Feldern, die Zahlen und Banner über allem */
body.fx-an .karte-wrap .meldungen { display: none; }

/* ================= 06 · Schräges Spielbrett und Kopfleiste (wie im Prototyp) ================= */
.kampf-kopf { display: none; }
@media (min-width: 1200px) {
  body.im-kampf > header, body.im-kampf .topbar { display: none; }
  .spiel { grid-template-rows: auto auto auto 1fr; }
  .kampf-kopf { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 22px; height: 76px; padding: 0 24px; border-radius: 18px;
    background: linear-gradient(180deg, rgba(28,30,40,.92), rgba(14,15,20,.92)); box-shadow: 0 0 0 1px rgba(217,178,106,.35), 0 0 0 4px rgba(0,0,0,.6), 0 18px 40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,236,190,.12); }
  .livebar { grid-row: 2; }
  .gruppe-kampf { grid-row: 3 / span 2; }
  .karte-wrap { grid-row: 3; }
  .reihe { grid-row: 4; }
  .panel { grid-row: 3; }
  .log { grid-row: 4; }
  .kk-logo { font: 600 30px var(--schrift-titel); letter-spacing: .08em; background: linear-gradient(180deg, #fff1c8, #d9a64a 55%, #8a5d1e); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .kk-trenner { width: 1px; height: 42px; background: linear-gradient(180deg, transparent, rgba(217,178,106,.6), transparent); }
  .kk-titel b { display: block; font: 600 21px var(--schrift-titel); color: #f6dc9c; letter-spacing: .03em; }
  .kk-titel span { font: italic 400 17px var(--schrift-text); color: var(--muted); }
  .kk-rechts { margin-left: auto; display: flex; align-items: center; gap: 16px; }
  .kk-uhr { width: 210px; } .kk-uhr small { font: 600 12px var(--schrift-titel); letter-spacing: .14em; color: #d8f1ff; }
  .kk-uhr div { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 5px; }
  .kk-uhr i { height: 8px; border-radius: 3px; background: rgba(143,208,255,.12); box-shadow: inset 0 0 0 1px rgba(143,208,255,.25); }
  .kk-uhr i.an { background: linear-gradient(90deg, #4aa6e8, #bfe9ff); box-shadow: 0 0 10px rgba(143,208,255,.7); }
  body[data-stimmung="glut"] .kk-uhr i.an, body[data-stimmung="nebel"] .kk-uhr i.an { background: linear-gradient(90deg, #b8742a, #ffd27a); box-shadow: 0 0 10px rgba(255,190,90,.6); }
  body[data-stimmung="glut"] .kk-uhr small, body[data-stimmung="nebel"] .kk-uhr small { color: #f6dc9c; }
  .kk-chip { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 21px; font: 600 15px var(--schrift-titel); color: #f6dc9c; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px rgba(217,178,106,.35); }
  .kk-chip b { font-size: 22px; color: #fff; text-shadow: 0 0 12px rgba(255,200,110,.6); }
  /* Das Brett: nach hinten gekippt, mit Goldrahmen; die Leiste darunter bleibt gerade */
  .karte-wrap { overflow: visible; border-radius: 0; box-shadow: none; background: none; perspective: 1600px; perspective-origin: 50% 0; }
  .karte-wrap::after { display: none; }
  #karte { transform-origin: 50% 0; transform: rotateX(22deg) scale(.94); border-radius: 12px;
    box-shadow: 0 0 0 2px rgba(217,178,106,.55), 0 0 0 7px rgba(10,10,14,.92), 0 0 0 9px rgba(217,178,106,.28), 0 50px 80px rgba(0,0,0,.75); background: #0b0e14; }
  .karte-wrap .leiste { margin-top: -26px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(217,178,106,.3), 0 14px 30px rgba(0,0,0,.5); }
  /* Spielfiguren stehen auf: die Kippung wird je Figur ausgeglichen, Fuß bleibt auf dem Feld */
  #karte .fig-k { transform-box: fill-box; transform-origin: 50% 85%; transform: scaleY(1.22); }
  .fx-kanal { inset: 0; }
}
@media (min-width: 1200px) {
  /* Brett so groß, dass Kopf, Brett, Aktionsleiste und Initiative auf einen Bildschirm passen; gekippt bleibt es in seiner Spalte */
  .spiel { grid-template-columns: 270px minmax(0, 1fr) 330px; }
  #karte { width: min(100%, calc((100vh - 330px) * 4 / 3)); margin: 0 auto; transform: rotateX(22deg) scale(.86); }
  .karte-wrap .leiste { margin-top: -70px; }
  .panel { max-height: calc(100vh - 140px); overflow-y: auto; scrollbar-width: thin; }
  body.im-kampf main { padding-top: 10px; }
}
@media (min-width: 1200px) {
  /* Was das gekippte Brett an Höhe verliert, nicht als Leerraum stehen lassen */
  #karte { margin-bottom: calc(min(100%, (100vh - 330px) * 4 / 3) * -0.15); }
  .karte-wrap .leiste { margin-top: 0; }
  .reihe { margin-top: -4px; }
}
@media (min-width: 1200px) {
  #karte { margin-bottom: calc(min(100%, (100vh - 330px) * 4 / 3) * -0.1); }
  .panel { max-height: calc(58vh - 40px); }
  .log { max-height: calc(42vh - 120px); }
}

/* Schwebende Spielfiguren: der Körper hebt und senkt sich, der Schatten bleibt am Boden und atmet mit */
body.fx-an #karte .fig.steht .fig-schweb { animation: fig-schweben 3s ease-in-out infinite; animation-delay: var(--v, 0s); }
body.fx-an #karte .fig.steht .fig-schatten { transform-box: fill-box; transform-origin: 50% 50%; animation: fig-schatten 3s ease-in-out infinite; animation-delay: var(--v, 0s); }
@keyframes fig-schweben { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(-9px); } }
@keyframes fig-schatten { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(.82); opacity: .38; } }

/* ============================================================
   07 · Handy im Prototyp-Stil (Charakterbogen im Kampf)
   ============================================================ */
body.handy { --pg: #d9b26a; --pg-hell: #f6dc9c; --pg-dunkel: #7a5a26; --pg-leise: #a89f8e;
  background: radial-gradient(120% 60% at 50% 0%, rgba(80,120,170,.16), transparent 60%), linear-gradient(180deg, #10131b, #07080b 70%) fixed; }
body.handy .top .brand { font-size: 18px; letter-spacing: .14em; background: linear-gradient(180deg, #fff1c8, #d9a64a 55%, #8a5d1e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bogen.hz { padding: 0; background: none; border: 0; box-shadow: none; }
/* Heldenkarte */
.hz-held { position: relative; display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 14px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, rgba(34,36,48,.94), rgba(14,15,20,.94)); box-shadow: 0 0 0 1px rgba(217,178,106,.35), 0 14px 30px rgba(0,0,0,.55); }
.hz-held::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; background: radial-gradient(rgba(246,200,110,.16), transparent 70%); pointer-events: none; }
.bogen.hz .hz-held .portraet { width: 88px; height: 108px; border-radius: 14px; border: 0; object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 2px var(--k, #6e4e1c), 0 0 0 4px rgba(0,0,0,.6); }
.hz-held-text { min-width: 0; position: relative; z-index: 1; }
.bogen.hz h1 { font: 600 24px Cinzel, serif; color: #fff; line-height: 1.05; margin: 2px 0 0; overflow-wrap: anywhere; }
.hz-klasse { font: italic 16px "Cormorant Garamond", serif; color: var(--pg-leise); margin: 2px 0 8px; }
.bogen.hz .hz-leben { position: relative; margin: 0; height: 18px; border-radius: 9px; background: #2a0d10; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.6); }
.bogen.hz .hz-leben i { position: absolute; height: auto; inset: 0 auto 0 0; background: linear-gradient(180deg, #ff6b60, #b3262f 60%, #7c1219); border-radius: 9px; transition: width .5s ease; }
.hz-leben.kritisch i { animation: hz-puls 1.2s ease-in-out infinite; }
@keyframes hz-puls { 50% { filter: brightness(1.5); } }
.bogen.hz .hz-leben span { position: absolute; inset: 0; color: #fff; line-height: 18px; display: grid; place-items: center; font-size: 11px; font-weight: 600; text-shadow: 0 1px 2px #000; }
.hz-werte { display: flex; gap: 6px; margin-top: 9px; }
.hz-werte span { flex: 1; text-align: center; padding: 5px 0 4px; border-radius: 10px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px rgba(217,178,106,.25); font-size: 9px; letter-spacing: .1em; color: var(--pg-leise); }
.hz-werte span b { display: block; font: 600 16px Cinzel, serif; color: var(--pg-hell); letter-spacing: 0; }
.bogen.hz .hz-spruch { margin: 8px 6px 0 !important; text-align: center; font: italic 15px "Cormorant Garamond", serif; color: var(--pg-leise); }
.bogen.hz .zustaende { margin: 8px 0 0; }
.bogen.hz > .info { margin: 10px 0 0; }
/* Dein Zug */
.hz-dran { position: relative; margin: 14px 0 0; padding: 14px 16px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(90deg, rgba(70,48,14,.92), rgba(30,22,10,.92)); box-shadow: 0 0 0 1px var(--pg), 0 0 30px rgba(246,200,110,.28); }
.hz-dran::before { content: ""; position: absolute; inset: -60% -20%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,220,140,.3) 80%, transparent 90%); animation: hz-dreh 4s linear infinite; animation-delay: var(--d, 0s); pointer-events: none; }
@keyframes hz-dreh { to { transform: rotate(1turn); } }
.hz-dran > * { position: relative; }
.hz-dran small { font: 600 11px Cinzel, serif; letter-spacing: .3em; color: var(--pg); }
.hz-dran h2 { font: 600 24px Cinzel, serif; color: #fff; margin: 2px 0 10px; }
.bogen.hz .schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; }
.bogen.hz .schritte span { text-align: center; padding: 7px 2px; border-radius: 10px; font-size: 12px; font-weight: 600; background: rgba(0,0,0,.35); color: var(--pg-hell); box-shadow: inset 0 0 0 1px rgba(246,220,156,.4); }
.bogen.hz .schritte span.weg { color: #6d6555; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); text-decoration: line-through; }
.bogen.hz .schritte span small { display: block; font: 400 10px Inter, sans-serif; letter-spacing: 0; color: var(--pg-leise); text-decoration: none; }
.hz-tipp { margin: 8px 0 0; font-size: 12px; color: var(--pg-leise); }
/* Reiter */
.bogen.hz .hz-reiter { display: flex; margin: 16px 0 0; padding: 4px; border: 0; border-radius: 14px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px rgba(217,178,106,.2); }
.bogen.hz .hz-reiter button { flex: 1; padding: 9px 0; border: 0; border-radius: 10px; font: 600 13px Inter, sans-serif; color: var(--pg-leise); background: none; }
.bogen.hz .hz-reiter button.an { color: #fff; background: linear-gradient(180deg, #8a2a24, #5a1612); box-shadow: inset 0 0 0 1px rgba(255,160,140,.35), 0 4px 12px rgba(0,0,0,.4); }
.bogen.hz .tabinhalt { margin-top: 4px; }
/* Aktionskarten */
.hz-titelzeile { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 4px 8px; }
.hz-titelzeile h3 { font: 600 14px Cinzel, serif; letter-spacing: .2em; color: var(--pg); margin: 0; }
.hz-titelzeile span { font-size: 12px; color: var(--pg-leise); }
.bogen.hz .hz-karten { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.bogen.hz .hz-karte { position: relative; display: block; text-align: left; padding: 12px 12px 26px; border: 0; border-radius: 16px; min-height: 118px; overflow: hidden; color: var(--text);
  background: linear-gradient(160deg, rgba(40,42,56,.96), rgba(16,17,23,.96)); box-shadow: 0 0 0 1px rgba(217,178,106,.25), 0 8px 18px rgba(0,0,0,.45); transition: transform .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.bogen.hz .hz-karte:active:not(:disabled) { transform: scale(.97); }
.hz-karte .sym { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 8px; background: radial-gradient(circle at 35% 30%, rgba(255,230,170,.35), rgba(120,80,30,.25)); box-shadow: inset 0 0 0 1px rgba(246,220,156,.4); }
.hz-karte .sym svg { width: 22px; height: 22px; stroke: var(--pg-hell); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bogen.hz .hz-karte b { display: block; font: 600 14px Cinzel, serif; color: #fff; padding-right: 4px; }
.bogen.hz .hz-karte small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--pg-leise); line-height: 1.35; }
.bogen.hz .hz-karte i { display: block; font-style: normal; font-size: 11px; color: #e08a6a; margin-top: 4px; }
.hz-karte .art { position: absolute; top: 12px; right: 10px; font-size: 9px; letter-spacing: .14em; font-weight: 600; padding: 3px 7px; border-radius: 7px; color: var(--pg-hell); background: rgba(217,178,106,.15); }
.hz-karte .art.bonus { color: #bfe6ff; background: rgba(143,208,255,.15); }
.hz-karte .anz { position: absolute; right: 12px; bottom: 8px; font: 600 12px Cinzel, serif; color: var(--pg); }
.bogen.hz .hz-karte.gewaehlt { background: linear-gradient(160deg, rgba(90,62,20,.96), rgba(30,20,8,.96)); box-shadow: 0 0 0 2px var(--pg-hell), 0 0 26px rgba(246,200,110,.45), 0 8px 18px rgba(0,0,0,.45); transform: translateY(-2px); }
.bogen.hz .hz-karte.aus, .bogen.hz .hz-karte:disabled { opacity: .4; filter: grayscale(.7); }
.hz-karte.feuer .sym { background: radial-gradient(circle at 35% 30%, rgba(255,170,90,.55), rgba(140,40,10,.35)); } .hz-karte.feuer .sym svg { stroke: #ffd2a0; }
.hz-karte.heil .sym { background: radial-gradient(circle at 35% 30%, rgba(140,255,170,.45), rgba(20,100,50,.3)); } .hz-karte.heil .sym svg { stroke: #cfffdc; }
.hz-karte.eis .sym { background: radial-gradient(circle at 35% 30%, rgba(160,220,255,.5), rgba(20,60,110,.35)); } .hz-karte.eis .sym svg { stroke: #d6efff; }
.hz-karte.schatten .sym { background: radial-gradient(circle at 35% 30%, rgba(200,160,255,.45), rgba(50,20,90,.35)); } .hz-karte.schatten .sym svg { stroke: #e6d6ff; }
/* Zielwahl */
.hz-ziele { margin: 12px 0 0; padding: 12px; border-radius: 18px; background: rgba(0,0,0,.42); box-shadow: inset 0 0 0 1px rgba(246,220,156,.35); }
.hz-ziele.neu { animation: hz-auf .3s ease both; }
@keyframes hz-auf { from { opacity: 0; } }
.hz-ziele h4 { font: 600 13px Cinzel, serif; letter-spacing: .2em; color: var(--pg); margin: 2px 4px 10px; }
.hz-ziele .opt-text { margin: 0 4px 10px; font-size: 13px; color: var(--pg-leise); }
.bogen.hz .hz-ziele .ziele { display: block; }
.bogen.hz .hz-ziele .ziel { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 8px; margin: 0 0 8px; border: 0; border-radius: 14px; color: var(--text); font: 400 14px Inter, sans-serif;
  background: linear-gradient(90deg, rgba(60,20,20,.55), rgba(20,12,12,.55)); box-shadow: inset 0 0 0 1px rgba(255,120,100,.25); }
.bogen.hz .hz-ziele .ziel.freund { background: linear-gradient(90deg, rgba(20,50,30,.55), rgba(12,20,14,.55)); box-shadow: inset 0 0 0 1px rgba(120,220,150,.25); }
.bogen.hz .hz-ziele .ziel.gewaehlt { box-shadow: inset 0 0 0 2px #ff7a6a, 0 0 22px rgba(255,90,80,.35); }
.bogen.hz .hz-ziele .ziel.freund.gewaehlt { box-shadow: inset 0 0 0 2px #7fe07a, 0 0 22px rgba(120,230,140,.3); }
.hz-bild { display: block; width: 50px; height: 50px; border-radius: 50%; background: #1b1e27 center 20%/cover; box-shadow: 0 0 0 2px #3a5a3a; overflow: hidden; }
.hz-bild.feind { background: radial-gradient(circle at 50% 40%, #3a2222, #140c0c); box-shadow: 0 0 0 2px #9b2a2a; }
.hz-bild svg { width: 100%; height: 100%; display: block; }
.hz-ziel-text { min-width: 0; }
.hz-ziel-text b { display: block; font-size: 14px; color: #fff; }
.hz-ziel-text small { display: block; font-size: 11px; color: var(--pg-leise); margin-top: 2px; }
.hz-ziel-text .mini { display: block; height: 6px; border-radius: 3px; background: #2a0d10; margin-top: 6px; overflow: hidden; }
.hz-ziel-text .mini i { display: block; height: 100%; background: linear-gradient(90deg, #ff6b60, #b3262f); }
.hz-ziel-text .mini.freund i { background: linear-gradient(90deg, #8be08a, #2f8a3a); }
.hz-chance { position: relative; width: 56px; height: 56px; flex: none; }
.hz-chance svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.hz-chance b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 14px Cinzel, serif; color: #fff; }
.hz-chance small { position: absolute; left: -6px; right: -6px; bottom: -11px; text-align: center; font-size: 7px; letter-spacing: .08em; color: var(--pg-leise); }
.hz-chance.text { width: auto; height: auto; max-width: 80px; } .hz-chance.text small { position: static; font-size: 10px; }
.bogen.hz .hz-los { display: block; width: 100%; margin-top: 4px; padding: 14px; border: 0; border-radius: 14px; font: 600 17px Cinzel, serif; letter-spacing: .06em; color: #241505;
  background: linear-gradient(180deg, #fff0c4, #e0b260 50%, #b07c2c); box-shadow: 0 0 0 1px #6e4e1c, 0 0 24px rgba(246,200,110,.45), inset 0 1px 0 rgba(255,255,255,.6); }
.bogen.hz .hz-los:disabled { filter: grayscale(.6) brightness(.7); box-shadow: 0 0 0 1px #6e4e1c; }
/* Wer ist dran (wenn nicht du) */
.bogen.hz .hz-warte { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin: 14px 0 0; border-radius: 16px; border: 0; background: rgba(0,0,0,.38); box-shadow: inset 0 0 0 1px rgba(217,178,106,.25); }
.bogen.hz .hz-warte.feind { box-shadow: inset 0 0 0 1px rgba(255,120,100,.35); }
.hz-warte small { display: block; font: 600 10px Cinzel, serif; letter-spacing: .25em; color: var(--pg); }
.hz-warte b { display: block; font: 600 18px Cinzel, serif; color: #fff; }
.hz-warte em { display: block; font-style: normal; font-size: 12px; color: var(--pg-leise); }
/* Initiative */
.hz-ini { display: flex; gap: 8px; align-items: center; margin: 16px 0 0; padding: 10px; border-radius: 16px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px rgba(217,178,106,.2); overflow-x: auto; scrollbar-width: none; }
.hz-ini > span { flex: none; opacity: .6; }
.hz-ini .hz-bild { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 0 0 2px #3a2a12; }
.hz-ini .feind .hz-bild { box-shadow: 0 0 0 2px #6a1a1a; }
.hz-ini .ich .hz-bild { box-shadow: 0 0 0 2px var(--k, var(--pg)); }
.hz-ini .liegt { filter: grayscale(1); }
.hz-ini .dran { opacity: 1; }
.hz-ini .dran .hz-bild { width: 48px; height: 48px; box-shadow: 0 0 0 2px var(--pg-hell), 0 0 14px rgba(246,200,110,.6); }
/* Zug beenden */
.hz-ende { position: sticky; bottom: 0; z-index: 5; margin: 16px -16px -40px; padding: 12px 16px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, #07080b 35%); }
.bogen.hz .hz-ende .btn { width: 100%; padding: 16px; border: 0; border-radius: 16px; font: 600 18px Cinzel, serif; letter-spacing: .1em; color: #fff;
  background: linear-gradient(180deg, #a3302a, #6a1612); box-shadow: 0 0 0 1px #d9b26a, 0 0 0 4px rgba(0,0,0,.6), 0 10px 26px rgba(120,20,20,.5), inset 0 1px 0 rgba(255,200,180,.35); }
.bogen.hz .hz-ende .btn:disabled { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .hz-dran::before, .hz-leben.kritisch i, .hz-ziele { animation: none; } }
body.handy { min-height: 100vh; }
html:has(body.handy) { background: #07080b; }
.bogen.hz h3.klein { font: 600 12px Cinzel, serif; letter-spacing: .2em; color: var(--pg); margin: 18px 4px 6px; border: 0; }
.bogen.hz .log.kurz { list-style: none; margin: 0; padding: 4px 12px; border-radius: 14px; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px rgba(217,178,106,.15); border: 0; }
.bogen.hz .log.kurz li { padding: 7px 0; font-size: 13px; color: #cfc6b4; border-bottom: 1px solid rgba(255,255,255,.06); }
.bogen.hz .log.kurz li:last-child { border-bottom: 0; }
.bogen.hz .log.kurz li:first-child { color: #fff; }
.bk-bild { display: block; height: 150px; margin: -14px -14px 10px; background: #111 center 18%/cover; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.fx-intro-portraet { position: relative; z-index: 1; width: min(30vh, 260px); aspect-ratio: 3 / 4; margin: 0 auto 18px; border-radius: 18px; background: #111 center 15%/cover; box-shadow: 0 0 0 2px #d9b26a, 0 0 0 6px rgba(0,0,0,.6), 0 0 60px rgba(255,90,70,.45); transform: scale(.85); opacity: 0; transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .6s; }
.fx-intro.zeigen .fx-intro-portraet { transform: scale(1); opacity: 1; }
.fx-intro:has(.fx-intro-portraet) { align-content: center; }
.fx-intro-portraet + .fx-intro-text { margin-top: 0; }

/* ============================================================
   08 · Erzählbühne (Szenen im Stil der Kampfbühne)
   Vollbild-Abschnittsbild mit langsamem Zoom und Stimmung, Kopfleiste, Manuskript in der Mitte,
   links die Gruppe, rechts die Chronik. Schmal: alles untereinander.
   ============================================================ */
body.im-szene { background: #07080b; }
.szene { position: relative; max-width: 860px; }
.sz-buehne { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #07080b; }
.sz-bild { position: absolute; inset: -4%; background: var(--bild) center 35% / cover no-repeat; opacity: .55; filter: saturate(.85) brightness(.8); }
body.fx-an .sz-bild { animation: sz-zoom 40s ease-in-out infinite alternate; }
@keyframes sz-zoom { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
.sz-buehne::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(70% 60% at 50% 45%, rgba(7,8,11,.25), rgba(7,8,11,.88) 75%),
  linear-gradient(180deg, rgba(7,8,11,.7), transparent 22%, transparent 70%, rgba(7,8,11,.95)); }
.sz-kanal { position: absolute; inset: 0; width: 100%; height: 100%; }
body[data-stimmung="glut"] .sz-buehne::before, body[data-stimmung="nebel"] .sz-buehne::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 50% at 50% 100%, rgba(255,140,50,.12), transparent 70%); }
body[data-stimmung="frost"] .sz-buehne::before, body[data-stimmung="schnee"] .sz-buehne::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 50% at 50% 0%, rgba(143,208,255,.12), transparent 70%); }

/* Kopfleiste */
.szene .szene-kopf { position: relative; margin-bottom: 18px; padding: 10px 16px; border-radius: 16px; gap: 10px 18px;
  background: linear-gradient(180deg, rgba(28,30,40,.88), rgba(14,15,20,.88)); box-shadow: 0 0 0 1px rgba(217,178,106,.3), 0 12px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,236,190,.1); }
.sz-marke { display: none; }
.sz-titel b { display: block; font: 600 17px var(--schrift-titel); color: #f6dc9c; letter-spacing: .03em; }
.sz-titel i { font: italic 400 15px var(--schrift-text); color: var(--muted); }
.szene .szene-kopf > .eyebrow { display: none; }

/* Manuskript */
.sz-blatt { position: relative; padding: 30px 30px 26px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(24,22,20,.9), rgba(12,11,10,.94));
  box-shadow: 0 0 0 1px rgba(217,178,106,.4), 0 0 0 5px rgba(0,0,0,.55), 0 0 0 6px rgba(217,178,106,.18), 0 30px 70px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,236,190,.12); }
.sz-blatt::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 50% at 50% 0%, rgba(246,220,156,.08), transparent 70%); }
.sz-blatt::after { content: ""; position: absolute; inset: 10px; pointer-events: none; border-radius: 16px; border: 1px solid rgba(217,178,106,.14); }
.sz-ort { margin: 0; font: 600 12px var(--schrift-titel); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); text-align: center; }
.sz-blatt h1 { margin: 6px 0 0; text-align: center; font: 600 clamp(30px, 4vw, 46px)/1.1 var(--schrift-titel); letter-spacing: .02em;
  background: linear-gradient(180deg, #fff6dc, #f0d08a 50%, #b88a3e); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 10px rgba(0,0,0,.5)); }
.sz-zier { display: block; width: 240px; height: 14px; margin: 12px auto 18px; background:
  linear-gradient(90deg, transparent, rgba(217,178,106,.75), transparent) center / 100% 1px no-repeat,
  radial-gradient(circle, #f6dc9c 0 3px, transparent 4px) center / 14px 14px no-repeat; }
.sz-blatt .erzaehlung p { font: 400 22px/1.62 var(--schrift-text); color: #efe6d4; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.sz-blatt .erzaehlung p:first-child::first-letter { float: left; margin: 6px 10px 0 0; font: 600 64px/.8 var(--schrift-titel); color: #f0d08a; text-shadow: 0 0 18px rgba(246,200,110,.35); }
.sz-blatt .hilfe { background: rgba(0,0,0,.35); border-color: rgba(143,208,255,.25); border-radius: 12px; }

/* Entscheidungen und Knöpfe */
.szene .interaktion { margin-top: 18px; }
.szene .interaktion .btn:not(.ghost):not(.klein) { min-width: 180px; padding: 15px 26px; border: 0; border-radius: 14px; font: 600 17px var(--schrift-titel); letter-spacing: .06em; color: #241505;
  background: linear-gradient(180deg, #fff0c4, #e0b260 50%, #b07c2c); box-shadow: 0 0 0 1px #6e4e1c, 0 0 24px rgba(246,200,110,.35), inset 0 1px 0 rgba(255,255,255,.6); transition: transform .15s, box-shadow .2s; }
.szene .interaktion .btn:not(.ghost):not(.klein):hover { transform: translateY(-1px); box-shadow: 0 0 0 1px #6e4e1c, 0 0 34px rgba(246,200,110,.55), inset 0 1px 0 rgba(255,255,255,.6); }
.szene .interaktion .btn.ghost:not(.klein) { padding: 14px 20px; border-radius: 14px; border: 0; color: #efe6d4; font: 600 15px var(--schrift-ui);
  background: linear-gradient(160deg, rgba(40,42,56,.92), rgba(16,17,23,.92)); box-shadow: 0 0 0 1px rgba(217,178,106,.28), 0 8px 18px rgba(0,0,0,.4); transition: transform .15s, box-shadow .2s; }
.szene .interaktion .btn.ghost:not(.klein):hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(246,220,156,.7), 0 0 22px rgba(246,200,110,.25), 0 8px 18px rgba(0,0,0,.4); }
.szene .optionen-tisch { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.szene .optionen-tisch .btn { width: 100%; text-align: left; }
.szene .akt-gruppe { font: 600 12px var(--schrift-titel); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 16px 2px 8px; }
.szene .knoepfe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }

/* Gruppe und Chronik */
.sz-gruppe h3, .sz-chronik h3 { margin: 0 0 10px; font: 600 12px var(--schrift-titel); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.sz-gruppe, .sz-chronik { margin-top: 16px; padding: 14px; border-radius: 18px; background: rgba(10,11,15,.72); box-shadow: 0 0 0 1px rgba(217,178,106,.2); }
.sz-gruppe .gruppe-leiste { margin: 0; padding: 0; border: 0; }
.sz-chronik .log.kurz { margin: 0; max-height: none; }

@media (min-width: 1100px) {
  body.im-szene > header { background: rgba(7,8,11,.55); backdrop-filter: blur(6px); position: relative; z-index: 2; }
  body.im-szene main { max-width: none; }
  .szene { max-width: 1680px; margin: 0 auto; padding: 14px 22px 26px; }
  .szene .szene-kopf { height: 72px; padding: 0 22px; margin-bottom: 22px; }
  .sz-marke { display: none; font: 600 28px var(--schrift-titel); letter-spacing: .08em; padding-right: 20px; border-right: 1px solid rgba(217,178,106,.35);
    background: linear-gradient(180deg, #fff1c8, #d9a64a 55%, #8a5d1e); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .szene .szene-kopf .glocke { margin-left: auto; }
  .sz-rahmen { display: grid; grid-template-columns: 270px minmax(0, 860px) 330px; justify-content: center; align-items: start; gap: 26px; }
  .sz-blatt { grid-column: 2; grid-row: 1; padding: 40px 54px 34px; }
  .sz-gruppe { grid-column: 1; grid-row: 1; margin: 0; position: sticky; top: 14px; }
  .sz-chronik { grid-column: 3; grid-row: 1; margin: 0; position: sticky; top: 14px; max-height: calc(100vh - 140px); overflow: auto; }
  .sz-gruppe .gruppe-leiste { display: grid; gap: 8px; }
  .sz-gruppe .gruppe-leiste span { padding: 8px; border-radius: 12px; background: linear-gradient(135deg, rgba(34,36,48,.85), rgba(14,15,20,.85)); box-shadow: 0 0 0 1px rgba(217,178,106,.18); }
  .sz-gruppe .gruppe-leiste span img { width: 44px; height: 44px; }
  .sz-gruppe .gruppe-leiste b { font: 600 15px var(--schrift-titel); color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .sz-bild { animation: none !important; } }

/* Titelkarte beim neuen Abschnitt: Kapitelbild, Kinobalken, goldener Titel */
.titelkarte.kino { background: #000; }
.titelkarte.kino .tk-bild { position: absolute; inset: -3%; background: var(--bild) center / cover no-repeat; opacity: 0; filter: brightness(.55) saturate(.9); animation: tk-bild 3.6s ease forwards; }
.titelkarte.kino::before, .titelkarte.kino::after { content: ""; position: absolute; left: 0; right: 0; height: 13vh; background: #000; z-index: 2; animation: tk-balken 3.6s ease forwards; }
.titelkarte.kino::before { top: 0; } .titelkarte.kino::after { bottom: 0; }
.titelkarte.kino > div { position: relative; z-index: 3; }
.titelkarte.kino .tk-kampagne { display: block; margin-bottom: 18px; font: italic 400 22px var(--schrift-text); color: var(--muted); opacity: 0; animation: tk-auf 1s .3s ease forwards; }
.titelkarte.kino .eyebrow { font: 600 16px var(--schrift-titel); letter-spacing: .6em; color: #f6dc9c; opacity: 0; animation: tk-auf 1s .5s ease forwards; }
.titelkarte.kino h2 { font-size: clamp(44px, 8vw, 104px); filter: drop-shadow(0 4px 24px rgba(0,0,0,.8)); opacity: 0; animation: tk-titel 1.4s .7s cubic-bezier(.2,.8,.2,1) forwards; }
.titelkarte.kino .titel-zier { opacity: 0; animation: tk-auf 1s 1.2s ease forwards; }
@keyframes tk-bild { 0% { opacity: 0; transform: scale(1.08); } 25% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }
@keyframes tk-balken { from { height: 50vh; } to { height: 13vh; } }
@keyframes tk-auf { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tk-titel { from { opacity: 0; letter-spacing: .3em; transform: scale(.94); } to { opacity: 1; letter-spacing: .02em; transform: none; } }
/* Bühne hinter dem Inhalt, Inhalt darüber */
.sz-buehne { z-index: 0; }
.szene > .szene-kopf, .szene > .sz-rahmen { position: relative; z-index: 1; }
body.im-szene main, body.im-szene #app { background: transparent; }
/* Uhr als Balken wie in der Kampf-Kopfleiste */
.szene .szene-kopf .glocke { display: grid; grid-template-columns: repeat(7, 22px); gap: 4px; align-items: center; }
.szene .szene-kopf .glocke i { width: 22px; height: 8px; border-radius: 3px; background: rgba(255,220,150,.1); box-shadow: inset 0 0 0 1px rgba(246,220,156,.25); }
.szene .szene-kopf .glocke i.an { background: linear-gradient(90deg, #b8742a, #ffd27a); box-shadow: 0 0 10px rgba(255,190,90,.6); }
body[data-stimmung="frost"] .szene .szene-kopf .glocke i.an, body[data-stimmung="schnee"] .szene .szene-kopf .glocke i.an { background: linear-gradient(90deg, #4aa6e8, #bfe9ff); box-shadow: 0 0 10px rgba(143,208,255,.7); }
.szene .szene-kopf .glocke small { grid-column: 1 / -1; order: -1; font: 600 11px var(--schrift-titel); letter-spacing: .16em; color: #f6dc9c; text-transform: uppercase; }

/* ============ 09 · Boss-Auftritt und „Bezwungen“ ============ */
.fx-intro.boss { place-items: center; align-content: center; grid-template-columns: auto auto; column-gap: 5vw; }
.fx-intro.boss .fx-intro-bild { filter: blur(26px) brightness(.45) saturate(1.2); transform: scale(1.3); }
.fx-intro.boss .fx-intro-bild::after { background: radial-gradient(70% 70% at 50% 50%, rgba(120,20,20,.15), rgba(0,0,0,.92)); }
.fx-intro.boss::before, .fx-intro.boss::after { content: ""; position: absolute; left: 0; right: 0; height: 12vh; background: #000; z-index: 3; transition: height .9s cubic-bezier(.2,.8,.2,1); }
.fx-intro.boss::before { top: 0; } .fx-intro.boss::after { bottom: 0; }
.fx-intro.boss:not(.zeigen)::before, .fx-intro.boss:not(.zeigen)::after { height: 50vh; }
.fx-intro.boss .fx-intro-portraet { grid-column: 1; width: min(30vw, 46vh); aspect-ratio: 3 / 4; margin: 0; border-radius: 20px; background-position: center 15%;
  box-shadow: 0 0 0 2px #d9b26a, 0 0 0 7px rgba(0,0,0,.65), 0 0 0 8px rgba(217,178,106,.35), 0 0 90px rgba(255,70,50,.45), 0 40px 80px rgba(0,0,0,.8);
  transform: translateX(-40px) scale(.94); transition: transform 1.1s cubic-bezier(.2,.8,.2,1), opacity .7s; }
.fx-intro.boss.zeigen .fx-intro-portraet { transform: none; }
.fx-intro.boss .fx-intro-text { grid-column: 2; margin: 0; text-align: left; max-width: 46vw; z-index: 2; opacity: 0; transform: translateX(40px); transition: transform 1.1s .25s cubic-bezier(.2,.8,.2,1), opacity .8s .25s; }
.fx-intro.boss:not(.mit-portraet) .fx-intro-text { grid-column: 1 / -1; text-align: center; }
.fx-intro.boss.zeigen .fx-intro-text { opacity: 1; transform: none; }
.fx-intro.boss .fx-intro-text small { color: #ff8a7a; letter-spacing: .6em; }
.fx-intro.boss .fx-intro-text h1 { font-size: clamp(48px, 6.5vw, 110px); line-height: 1; }
.fx-intro.boss .fx-intro-text p { margin: 14px 0 0; font: italic 400 clamp(20px, 2vw, 30px) var(--schrift-text); color: #e8dcc4; }
.fx-intro-linie { display: block; height: 2px; margin-top: 22px; width: 0; background: linear-gradient(90deg, #ff6a50, #f6dc9c, transparent); transition: width 1.2s .6s ease; }
.fx-intro.boss.zeigen .fx-intro-linie { width: min(30vw, 420px); }
@media (max-width: 800px) { .fx-intro.boss { grid-template-columns: 1fr; row-gap: 20px; } .fx-intro.boss .fx-intro-text { grid-column: 1; text-align: center; max-width: 90vw; } .fx-intro.boss .fx-intro-portraet { grid-column: 1; width: 52vw; } }

.fx-fall { position: fixed; inset: 0; z-index: 71; display: grid; place-items: center; align-content: center; gap: 20px; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(60% 60% at 50% 50%, rgba(0,0,0,.35), rgba(0,0,0,.85)); }
.fx-fall.zeigen { opacity: 1; pointer-events: auto; }
.fx-fall-portraet { width: min(22vw, 34vh); aspect-ratio: 3 / 4; border-radius: 18px; background: #111 center 15% / cover; box-shadow: 0 0 0 2px rgba(217,178,106,.5), 0 30px 60px rgba(0,0,0,.7); filter: grayscale(0) brightness(1); }
.fx-fall.zeigen .fx-fall-portraet { animation: fall-grau 2.6s ease forwards; }
@keyframes fall-grau { 0% { filter: none; transform: scale(1); } 30% { filter: grayscale(1) brightness(.9) contrast(1.2); transform: scale(1.03); } 100% { filter: grayscale(1) brightness(.35); transform: scale(.96) rotate(-2deg); } }
.fx-fall-text { text-align: center; }
.fx-fall-text small { font: 600 18px var(--schrift-titel); letter-spacing: .7em; color: #f6dc9c; }
.fx-fall-text h2 { margin: 8px 0 0; font: 600 clamp(36px, 5vw, 76px) var(--schrift-titel); background: linear-gradient(180deg, #fff6dc, #f0d08a 50%, #b88a3e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-fall.zeigen .fx-fall-text { animation: tk-auf .9s .4s ease both; }
@media (prefers-reduced-motion: reduce) { .fx-fall.zeigen .fx-fall-portraet { animation: none; filter: grayscale(1) brightness(.5); } }
.fx-intro.boss { justify-content: center; }
.fx-intro.boss .fx-intro-portraet { width: min(22vw, 38vh); }

/* ---------- Titelsequenz vor der Einleitung (einstieg.js: titelkarte) ---------- */
.titelkarte { position: fixed; inset: 0; z-index: 400; background: #07080b; overflow: hidden; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; animation: tk-ein .9s ease both; transition: opacity .7s ease; }
.titelkarte.geht { opacity: 0; pointer-events: none; }
.tk-bild { position: absolute; inset: -2%; background-size: cover; background-position: center; animation: tk-zoom 9s ease-out both; }
.tk-schleier { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,11,.35) 0%, rgba(7,8,11,0) 30%, rgba(7,8,11,.55) 62%, rgba(7,8,11,.94) 100%), radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.6) 100%); }
.tk-text { position: relative; text-align: center; padding: 0 24px calc(13vh + env(safe-area-inset-bottom)); max-width: 1000px; }
.tk-marke { font-family: "Cinzel", serif; letter-spacing: .5em; text-indent: .5em; text-transform: uppercase; font-size: clamp(11px, 1.2vw, 15px); color: #d9b46a; margin: 0 0 14px; animation: tk-auf 1.2s .5s ease both; }
.tk-text h1 { font-family: "Cinzel", serif; font-weight: 600; font-size: clamp(30px, 6vw, 76px); line-height: 1.08; margin: 0; color: #f6ecd6; text-shadow: 0 4px 30px rgba(0,0,0,.85), 0 0 60px rgba(217,180,106,.25); animation: tk-auf 1.6s .9s ease both; }
.tk-linie { display: block; height: 1px; width: min(360px, 60vw); margin: 20px auto 16px; background: linear-gradient(90deg, transparent, #d9b46a, transparent); transform-origin: center; animation: tk-linie 1.4s 1.7s ease both; }
.tk-unter { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: clamp(17px, 2.2vw, 26px); color: #e2dac8; margin: 0; text-shadow: 0 2px 14px rgba(0,0,0,.9); animation: tk-auf 1.4s 2.1s ease both; }
.tk-weiter { position: absolute; left: 0; right: 0; bottom: calc(4vh + env(safe-area-inset-bottom)); background: none; border: 0; color: rgba(226,218,200,.6); font: 600 12px "Inter", sans-serif; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; animation: tk-auf 1s 3.2s ease both; }
@keyframes tk-ein { from { opacity: 0; } to { opacity: 1; } }
@keyframes tk-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes tk-auf { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tk-linie { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }

/* ---------- Als App installiert (ohne Browserleiste): Platz für Notch und Home-Balken ---------- */
@media (display-mode: standalone), (display-mode: fullscreen) {
  header.top { padding-top: calc(env(safe-area-inset-top) + 8px); }
  header.top .back { display: none; }
}

/* ---------- Kampf-Chronik: Treffer / Verfehlt als Marke ---------- */
.log li .lg-marke { display: inline-block; font: 600 11px "Inter", sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; margin-right: 4px; white-space: nowrap; }
.log li .lg-marke.gut { color: #9fe39a; background: rgba(90,190,110,.14); border: 1px solid rgba(90,190,110,.45); }
.log li .lg-marke.schlecht { color: #f0a08c; background: rgba(220,90,70,.13); border: 1px solid rgba(220,90,70,.45); }

/* ---------- Erzähltiefe: Nachhall, Spur, Folgen im Gespräch, Rückschau ---------- */
.sz-nachhall { margin: 0 0 18px; padding: 12px 16px; border-left: 3px solid #d9b46a; border-radius: 0 10px 10px 0; background: linear-gradient(90deg, rgba(217,180,106,.14), rgba(217,180,106,.03)); animation: nh-ein .7s ease both; }
.sz-nachhall p { margin: 0 0 6px; font-family: "Cormorant Garamond", serif; font-size: 18px; line-height: 1.45; color: #efe4c8; }
.sz-nachhall p:last-child { margin-bottom: 0; }
.sz-nachhall small, .sz-folge small, .d-folge small { display: block; font: 600 10.5px "Inter", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #d9b46a; margin-bottom: 2px; }
.sz-nachhall .nh-entscheidung { font-weight: 600; color: #f6ecd6; }
.sz-nachhall .nh-geheim { font-style: italic; }
.sz-nachhall .nh-abschluss small { display: none; }
@keyframes nh-ein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.erzaehlung p.sz-folge { padding: 10px 14px; border-left: 3px solid rgba(217,180,106,.7); background: rgba(217,180,106,.07); border-radius: 0 8px 8px 0; }
.erzaehlung p.sz-folge::first-letter { font-size: inherit; float: none; color: inherit; font-family: inherit; padding: 0; margin: 0; line-height: inherit; }
.dialog .d-folge { margin: -2px 0 10px 18px; padding: 7px 12px; border-left: 2px solid #d9b46a; background: rgba(217,180,106,.08); border-radius: 0 8px 8px 0; }
.dialog .d-folge p { margin: 0; font-size: 14.5px; color: #efe4c8; }
.btn.frage.wichtig { border-color: rgba(217,180,106,.75); }
.fr-stern { color: #d9b46a; font-style: normal; }
.offen-hinweis { margin: 0 0 8px; }
.sz-rueckschau { margin: 22px 0 6px; padding: 16px 18px; border: 1px solid rgba(217,180,106,.35); border-radius: 12px; background: rgba(12,10,7,.55); }
.sz-rueckschau h3 { font: 600 13px "Cinzel", serif; letter-spacing: .14em; text-transform: uppercase; color: #d9b46a; margin: 0 0 8px; }
.sz-rueckschau ul + h3 { margin-top: 16px; }
.sz-rueckschau ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.sz-rueckschau li { padding-left: 20px; position: relative; font-family: "Cormorant Garamond", serif; font-size: 18px; line-height: 1.4; color: #e9dfc6; }
.sz-rueckschau li::before { content: "✦"; position: absolute; left: 0; color: #d9b46a; font-size: 12px; top: 5px; }
.sz-rueckschau ul.andere li { color: #b9ad94; font-style: italic; }
.sz-rueckschau ul.andere li::before { content: "?"; font-style: normal; }
.sz-rueckschau .note { margin: 12px 0 0; }
body.handy .sz-nachhall p, body.handy .sz-rueckschau li { font-size: 16px; }
.log li.folge { color: #e6cf94; }
.erzaehlung p.sz-folge + p.sz-folge small { display: none; }

/* ---------- Heldenmoment: was nur diese eine Figur sagt oder denkt ---------- */
.sz-moment { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(217,180,106,.3); background: linear-gradient(120deg, rgba(40,32,20,.75), rgba(20,17,13,.55)); }
.erzaehlung p.sz-moment::first-letter { font-size: inherit; float: none; color: inherit; font-family: inherit; padding: 0; margin: 0; line-height: inherit; }
.sz-moment > span { flex: 1; font-family: "Cormorant Garamond", serif; font-size: 19px; line-height: 1.5; color: #efe4c8; font-style: italic; }
.sz-moment small { display: block; font: 600 10.5px "Inter", sans-serif; font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: #d9b46a; margin-bottom: 2px; }
.sz-moment .marke, .sz-moment img { flex: none; }
.sz-nachhall .sz-moment { margin: 8px 0 0; background: rgba(12,10,7,.45); }
.sz-nachhall .sz-moment > span { font-size: 17px; }
body.handy .sz-moment > span { font-size: 16px; }
body.handy .sz-moment.mein { border-color: #d9b46a; box-shadow: 0 0 0 1px rgba(217,180,106,.35), 0 0 18px rgba(217,180,106,.18); }

/* ---------- Hilfe & Regeln (js/hilfe.js): aufklappbare Grundlagen ---------- */
.hilfe { max-width: 820px; }
.hilfe-inhalt { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.hilfe-inhalt button { background: rgba(217,180,106,.08); border: 1px solid rgba(217,180,106,.35); color: #e9dfc6; border-radius: 999px; padding: 6px 12px; font: 600 12.5px "Inter", sans-serif; cursor: pointer; }
.hilfe-inhalt button:hover { background: rgba(217,180,106,.18); }
.hilfe-teil { border: 1px solid rgba(217,180,106,.25); border-radius: 12px; background: rgba(12,10,7,.55); margin: 0 0 10px; scroll-margin-top: 14px; }
.hilfe-teil > summary { cursor: pointer; list-style: none; padding: 14px 16px; font: 600 17px "Cinzel", serif; color: #f1e3bf; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hilfe-teil > summary::-webkit-details-marker { display: none; }
.hilfe-teil > summary::after { content: "+"; color: #d9b46a; font: 400 22px "Inter", sans-serif; line-height: 1; }
.hilfe-teil[open] > summary::after { content: "–"; }
.hilfe-text { padding: 0 16px 14px; font: 400 16px/1.6 "Inter", sans-serif; color: #ddd3bd; }
.hilfe-text p { margin: 0 0 10px; }
.hilfe-text ul, .hilfe-text ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.hilfe-text b { color: #f6ecd6; }
.hilfe-formel { text-align: center; font: 600 17px "Inter", sans-serif; color: #f6ecd6; padding: 12px; border-radius: 10px; background: rgba(217,180,106,.1); border: 1px solid rgba(217,180,106,.3); }
.hilfe-formel span { display: inline-block; padding: 3px 10px; border-radius: 8px; background: rgba(12,10,7,.6); border: 1px solid rgba(217,180,106,.4); color: #f1d596; }
.hilfe-beispiel { padding: 10px 14px; border-left: 3px solid #d9b46a; background: rgba(217,180,106,.07); border-radius: 0 8px 8px 0; }
.hilfe-tabelle { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 14.5px; }
.hilfe-tabelle th, .hilfe-tabelle td { text-align: left; vertical-align: top; padding: 7px 9px; border-bottom: 1px solid rgba(217,180,106,.16); }
.hilfe-tabelle th { color: #d9b46a; font-weight: 600; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.hilfe-tabelle.schmal { width: auto; }
.hilfe-tabelle.schmal th, .hilfe-tabelle.schmal td { text-align: center; padding: 6px 12px; }
.hilfe-marke { display: inline-block; font: 600 11px "Inter", sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.hilfe-marke.gut { color: #9fe39a; background: rgba(90,190,110,.14); border: 1px solid rgba(90,190,110,.45); }
.hilfe-marke.schlecht { color: #f0a08c; background: rgba(220,90,70,.13); border: 1px solid rgba(220,90,70,.45); }
@media (max-width: 560px) { .hilfe-text { font-size: 15px; } .hilfe-tabelle { font-size: 13.5px; } .hilfe-tabelle th, .hilfe-tabelle td { padding: 6px 6px; } }

/* ---------- Gespräch mit begrenzter Zeit: Kerben und Preis ---------- */
.fragen-zeit { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(217,180,106,.35); background: rgba(217,180,106,.08); font: 400 14.5px/1.45 "Inter", sans-serif; color: #e2dac8; }
.fragen-zeit b { color: #f6ecd6; }
.fragen-zeit.um { border-color: rgba(220,120,90,.5); background: rgba(220,90,70,.09); }
.fz-kerben { display: flex; gap: 6px; flex: none; }
.fz-kerben i { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(180deg, #ffe6a8, #d9b46a); box-shadow: 0 0 8px rgba(255,200,110,.5); transition: .3s; }
.fz-kerben i.weg { background: rgba(217,180,106,.14); box-shadow: none; border: 1px solid rgba(217,180,106,.3); }
.btn.frage.kostet { border-color: rgba(220,120,90,.55); }
.fz-preis { color: #f0a08c !important; }

/* ---------- Heldenkarte: Stufenpfad 1–10 ---------- */
.held-pfad { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 10px; }
.held-pfad th, .held-pfad td { text-align: left; vertical-align: top; padding: 7px 8px; border-bottom: 1px solid rgba(217,180,106,.16); }
.held-pfad thead th { color: #d9b46a; font: 600 11.5px "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.held-pfad tbody th { font: 600 17px "Cinzel", serif; color: #f1e3bf; width: 46px; }
.held-pfad td:nth-child(2) { width: 54px; color: #e9dfc6; white-space: nowrap; }
.held-pfad td span { display: block; margin-bottom: 3px; color: #cfc5ad; }
.held-pfad td span:last-child { margin-bottom: 0; }
.held-pfad small { display: block; color: #a99f88; font-size: 12.5px; line-height: 1.35; }
.held-pfad .pf-neu b { color: #f6ecd6; }
.held-pfad .pf-besser b { color: #9fd0f0; }
.held-pfad .pf-meister b, .held-pfad .pf-titel { color: #ffd98a; }
.held-pfad .pf-titel { font-style: italic; }
.held-pfad .pf-werte { color: #a99f88; font-size: 13px; }
.held-pfad tr.neu th, .held-pfad tr.meister th { color: #ffd98a; }
.held-pfad tr.meister { background: rgba(217,180,106,.08); }

/* Heldenstufen: Ampel in der Heldenwahl (Gruppenstufe gegen die Empfehlung der Kampagne) */
.stufen-ampel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 8px 0 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(217,180,106,.25); background: rgba(0,0,0,.25); font: 400 13.5px "Inter", sans-serif; color: #d9d0bd; }
.stufen-ampel b { color: #f1e3bf; font-weight: 600; }
.stufen-ampel i { width: 11px; height: 11px; border-radius: 50%; align-self: center; flex: none; background: #7a7468; }
.stufen-ampel.gruen { border-color: rgba(120,190,120,.5); } .stufen-ampel.gruen i { background: #6fc37a; box-shadow: 0 0 8px rgba(111,195,122,.7); }
.stufen-ampel.gelb { border-color: rgba(232,196,106,.6); } .stufen-ampel.gelb i { background: #e8c46a; box-shadow: 0 0 8px rgba(232,196,106,.7); }
.stufen-ampel.rot { border-color: rgba(224,67,79,.7); background: rgba(224,67,79,.1); } .stufen-ampel.rot i { background: #e0434f; box-shadow: 0 0 8px rgba(224,67,79,.8); }

/* Segen der Kampagne: Zeile unter der Gruppe (Tisch) und im Heldenbogen (Handy) */
.segen-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0 2px; font: 400 12.5px "Inter", sans-serif; color: #d9d0bd; }
.segen-leiste small { font: 600 10.5px "Inter", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #d9b46a; }
.segen-leiste span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(217,180,106,.35); background: rgba(217,180,106,.1); cursor: help; }
.segen-leiste i { font-style: normal; }
.segen-leiste.handy { flex-direction: column; align-items: stretch; margin: 10px 0 0; }
.segen-leiste.handy span { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; border-radius: 10px; padding: 7px 10px; cursor: default; }
.segen-leiste.handy b { color: #f1e3bf; font-weight: 600; }
.segen-leiste.handy em { grid-column: 2; font-style: normal; color: #b9ad94; font-size: 12px; }

/* ---------- Arena ---------- */
.arena-waehrung { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(160,140,255,.5); background: rgba(120,100,220,.16); color: #e6dcff; font: 600 14px "Inter", sans-serif; }
.arena-waehrung i { font-style: normal; color: #b9a6ff; }
.arena-waehrung.kopf { margin-right: 8px; }
.arena-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; }
.arena-kopf-rechts { display: flex; align-items: center; gap: 10px; }
.arena-mein, .arena-liste li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(217,180,106,.25); background: rgba(0,0,0,.28); margin: 8px 0; }
.arena-mein { border-color: rgba(246,220,156,.6); background: rgba(217,180,106,.1); }
.arena-liste { list-style: none; margin: 0; padding: 0; }
.arena-mein b, .arena-liste b { display: block; font: 600 16px "Cinzel", serif; color: #f1e3bf; }
.arena-mein small, .arena-liste small { color: #b9ad94; font: 400 13px "Inter", sans-serif; }
.arena-schnitt { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(217,180,106,.3); background: rgba(0,0,0,.3); margin: 8px 0 12px; position: sticky; top: 6px; z-index: 5; color: #d9d0bd; font: 400 14px "Inter", sans-serif; }
.arena-schnitt b { color: #f1e3bf; } .arena-schnitt strong { color: #f6dc9c; font-size: 17px; }
.arena-schnitt.gut { border-color: rgba(111,195,122,.6); } .arena-schnitt.schlecht { border-color: rgba(224,67,79,.7); background: rgba(224,67,79,.1); }
.arena-helden { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.arena-held { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px 10px; border-radius: 12px; border: 2px solid rgba(255,255,255,.12); background: rgba(0,0,0,.3); color: #ece4d4; cursor: pointer; font: inherit; }
.arena-held img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--k, #d9b46a); }
.arena-held b { font: 600 14px "Cinzel", serif; } .arena-held small { color: #b9ad94; font-size: 12px; } .arena-held em { font-style: normal; color: #f6dc9c; font: 600 12px "Inter", sans-serif; }
.arena-held.an { border-color: #f6dc9c; background: rgba(217,180,106,.16); box-shadow: 0 0 0 2px rgba(246,220,156,.25); }
.arena-held.fest { cursor: default; }
.arena-gegenueber { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin: 14px 0; }
.arena-team { padding: 12px; border-radius: 14px; border: 1px solid rgba(111,195,122,.45); background: rgba(0,0,0,.28); }
.arena-team.gegner { border-color: rgba(224,67,79,.55); }
.arena-team h3 { display: flex; justify-content: space-between; margin: 0 0 10px; font: 600 16px "Cinzel", serif; color: #f1e3bf; } .arena-team h3 span { color: #f6dc9c; font: 600 14px "Inter", sans-serif; }
.arena-team-helden { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .arena-team-helden .arena-held img { width: 64px; height: 64px; }
.arena-vs { font: 600 14px "Cinzel", serif; color: #d9b46a; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 720px) { .arena-gegenueber { grid-template-columns: 1fr; } .arena-vs { text-align: center; } }
.arena-aufgeben { position: fixed; left: 12px; bottom: 12px; z-index: 60; opacity: .8; }
.arena-ende { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; overflow-y: auto; padding: 24px 16px; color: #ece4d4; text-align: center; background: radial-gradient(ellipse at 50% 20%, rgba(217,180,106,.35), rgba(10,8,6,.96) 60%), #0b0906; }
.arena-ende.niederlage { background: radial-gradient(ellipse at 50% 20%, rgba(160,40,50,.4), rgba(10,8,6,.97) 60%), #0b0906; }
.arena-ende-inhalt { max-width: 560px; width: 100%; }
.arena-ende h1 { font: 700 clamp(48px, 12vw, 96px) "Cinzel", serif; margin: 6px 0 4px; color: #f6dc9c; text-shadow: 0 4px 30px rgba(246,220,156,.45); letter-spacing: .04em; }
.arena-ende.niederlage h1 { color: #e58a8f; text-shadow: 0 4px 30px rgba(224,67,79,.45); }
.arena-ende-eyebrow { font: 600 12px "Inter", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #d9b46a; margin: 0; }
.arena-ende-punkte { font: 600 30px "Cinzel", serif; color: #f1e3bf; margin: 0 0 6px; }
.arena-ende-lohn { font: 600 18px "Inter", sans-serif; color: #e6dcff; margin: 12px 0 6px; } .arena-ende-lohn i { font-style: normal; color: #b9a6ff; } .arena-ende-lohn.held { color: #f6dc9c; }
.arena-ende-note { color: #b9ad94; font-size: 14px; }
.arena-grenze { margin: 10px 0 4px; padding: 10px 14px; border: 1px solid rgba(232, 176, 76, .55); border-left-width: 4px; border-radius: 8px; background: rgba(232, 176, 76, .12); color: #f1e3c4; font-size: 15px; line-height: 1.45; }
.arena-grenze b { color: #f5c96a; }
/* Neue Arena: Mein Team oben, darunter die Gegnersuche */
.arena-meinteam { margin: 14px 0 6px; border-color: rgba(197,162,103,.6); }
.arena-meinteam-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.arena-meinteam-fuss small { flex: 1 1 220px; color: #b9ad94; font-size: 14px; line-height: 1.4; }
.arena-held.leer { opacity: .55; border-style: dashed; } .arena-held.leer span { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; border: 2px dashed rgba(197,162,103,.5); font: 600 26px var(--schrift-titel); color: #c5a267; }
/* Spielarten: Normal, Arcade, privater Kampf */
.arena-arten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 6px; }
.arena-art { display: grid; gap: 6px; align-content: start; text-align: left; padding: 16px; border-radius: 14px; border: 1px solid rgba(197,162,103,.55); background: linear-gradient(180deg, rgba(120,30,34,.55), rgba(40,14,18,.7)); color: #f1e3c4; cursor: pointer; font: inherit; transition: transform .15s, border-color .15s; }
.arena-art:hover:not(:disabled), .arena-art:focus-visible { transform: translateY(-2px); border-color: #e8b04c; }
.arena-art:disabled { opacity: .5; cursor: default; }
.arena-art b { font: 600 20px var(--schrift-titel); letter-spacing: .04em; } .arena-art span { font-size: 14px; line-height: 1.4; color: #d9cdb4; min-height: 2.8em; }
.arena-art em { font-style: normal; font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #f5c96a; }
.arena-art.privat { background: linear-gradient(180deg, rgba(40,52,84,.6), rgba(16,20,34,.75)); }
.arena-einladung { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid #e8b04c; background: rgba(232,176,76,.14); }
.arena-einladung small { display: block; color: #d9cdb4; font-size: 13px; } .arena-einladung span { display: flex; gap: 8px; }
.arena-modus-wahl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.arena-modus-knopf { display: grid; gap: 4px; text-align: left; padding: 12px; border-radius: 12px; border: 1px solid rgba(197,162,103,.4); background: rgba(0,0,0,.3); color: #f1e3c4; cursor: pointer; font: inherit; }
.arena-modus-knopf b { font: 600 17px var(--schrift-titel); } .arena-modus-knopf span { font-size: 13px; line-height: 1.35; color: #c9bda3; }
.arena-modus-knopf.an { border-color: #e8b04c; background: rgba(232,176,76,.18); box-shadow: 0 0 0 1px #e8b04c inset; }
@media (max-width: 760px) { .arena-arten { grid-template-columns: 1fr; } .arena-art span { min-height: 0; } .arena-modus-wahl { grid-template-columns: 1fr 1fr; } }
.arena-suchknopf { margin: 16px 0 4px; } .arena-suchknopf .btn { min-width: min(320px, 100%); }
.arena-suche { display: grid; justify-items: center; gap: 6px; padding: 26px 0 12px; text-align: center; }
.arena-suche-ring { position: relative; width: 132px; height: 132px; margin-bottom: 10px; display: grid; place-items: center; }
.arena-suche-ring span { font-size: 44px; color: #f1dca7; text-shadow: 0 0 18px rgba(232,176,76,.7); animation: arena-suche-puls 1.6s ease-in-out infinite; }
.arena-suche-ring i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: #e8b04c; border-right-color: rgba(232,176,76,.35); animation: arena-suche-dreh 1.4s linear infinite; }
.arena-suche-ring i + i { inset: 14px; border-top-color: rgba(197,162,103,.7); border-right-color: transparent; border-left-color: rgba(197,162,103,.25); animation-duration: 2.3s; animation-direction: reverse; }
.arena-suche-team { display: flex; gap: 10px; margin: 8px 0 4px; } .arena-suche-team img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(197,162,103,.7); }
.arena-suche .note { max-width: 420px; }
@keyframes arena-suche-dreh { to { transform: rotate(360deg); } }
@keyframes arena-suche-puls { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .arena-suche-ring i, .arena-suche-ring span { animation: none; } }
.arena-xp { text-align: left; margin: 10px auto; }

/* Heldenkarte: noch gesperrte Fähigkeiten mit Schloss und Stufe; verbesserte Fähigkeiten markiert */
.held-faehig.gesperrt li.zu { position: relative; padding-left: 40px; opacity: .72; border-style: dashed; }
.held-faehig.gesperrt li.zu b { color: #cfc6b2; }
.held-faehig.gesperrt li.zu .typ { color: #d9b46a; }
.held-schloss { position: absolute; left: 11px; top: 12px; width: 18px; height: 18px; fill: rgba(217,180,106,.25); stroke: #d9b46a; }
.held-faehig li.besser { border-color: rgba(246,220,156,.55); }
/* Startseite auf dem Handy: Logo oben, darunter Währung, Profil, Glocke und Einstellungen in einer Zeile */
@media (max-width: 560px) {
  .hub-kopf { grid-template-columns: 1fr; row-gap: 10px; }
  .hub-logo { grid-column: 1; justify-self: center; width: min(230px, 60vw); }
  .hub-profil { grid-column: 1; justify-self: center; flex-wrap: wrap; justify-content: center; }
  .arena-waehrung.kopf { margin-right: 0; }
}

/* Arena: Helden des Gegenspielers blau (Monster bleiben rot) */
.reihe span.gh { color: #a9c6ff; cursor: pointer; }
.reihe span.gh .mini { border-color: #4f8cff; box-shadow: 0 0 0 2px rgba(79,140,255,.25); }
.reihe span.gh small { display: block; color: #7fa8f0; font-size: 10px; letter-spacing: .04em; }
/* Arena-Chronik: eigene Züge golden, Gegenspieler blau, Monster rot; „ist am Zug“ als Zwischenzeile */
#log li.tm-eigen { border-left-color: #d9b46a; } #log li.tm-gegner { border-left-color: #4f8cff; } #log li.tm-monster { border-left-color: #c0444e; }
#log li.zug { font-weight: 600; opacity: .85; margin-top: 6px; }
/* Arena-Zugreihe: eigene Helden golden, darunter bei allen Helden der Name ihres Spielers */
.reihe span.eh { color: #ffe9a8; }
.reihe span.eh .mini, .reihe span.eh.dran .mini { border-color: #f5c842; box-shadow: 0 0 0 2px rgba(245,200,66,.45); }
.reihe span.gh.dran .mini { border-color: #4f8cff; }
.reihe span.eh small { display: block; color: #f5c842; font-size: 10px; letter-spacing: .04em; }
.reihe .krone { font-style: normal; color: #ffd75e; margin-right: 2px; }
/* Arena: Zugzeit (oben in der Mitte), Moduswahl, Anführer */
.arena-uhr { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 60; padding: 5px 14px; border-radius: 16px; font: 600 13px var(--schrift-titel); letter-spacing: .04em; color: #ffe9a8; background: rgba(10,11,15,.88); box-shadow: inset 0 0 0 1px rgba(245,200,66,.55); pointer-events: none; }
.arena-uhr b { font-size: 16px; color: #fff; margin-left: 4px; }
.arena-uhr.fremd { color: #a9c6ff; box-shadow: inset 0 0 0 1px rgba(79,140,255,.6); }
.arena-uhr.knapp b { color: #ff8a7a; }
.arena-modi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 14px; }
.arena-modi button { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--stein, #171a22); color: var(--muted); cursor: pointer; font: inherit; }
.arena-modi button b { display: block; color: var(--text); font: 600 15px var(--schrift-titel); margin-bottom: 3px; }
.arena-modi button small { font-size: 12px; line-height: 1.35; display: block; }
.arena-modi button.an { border-color: #f5c842; box-shadow: 0 0 0 1px #f5c842; color: var(--text); }
@media (max-width: 640px) { .arena-modi { grid-template-columns: 1fr; } }
.arena-modus-marke { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 10px; font-size: 11px; letter-spacing: .04em; color: #ffe9a8; box-shadow: inset 0 0 0 1px rgba(245,200,66,.5); vertical-align: middle; }
.arena-anfuehrer { margin: 10px 0; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(245,200,66,.4); }
.arena-anfuehrer div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.arena-anfuehrer button { padding: 6px 12px; border-radius: 16px; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; font: inherit; }
.arena-anfuehrer button.an { border-color: #f5c842; background: rgba(245,200,66,.14); color: #ffe9a8; }
.arena-held { position: relative; }
.arena-held .krone { position: absolute; top: 6px; right: 8px; font-style: normal; color: #ffd75e; font-size: 20px; text-shadow: 0 1px 4px #000; }

/* Arena: ausgeloster Modus (Aufstellung), Regeln hinter dem „i“ */
.arena-info-knopf { width: 34px; height: 34px; padding: 0; border-radius: 50%; font: italic 700 17px Georgia, serif; }
.arena-info { margin: 10px 0 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.25); }
.arena-info h2 { font: 600 16px var(--schrift-titel); color: #f6dc9c; margin: 4px 0 8px; }
.arena-info.im-fenster { margin: 0; padding: 0; border: 0; background: none; max-height: min(70vh, 640px); overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; }
.arena-info ul { margin: 0 0 12px; padding-left: 20px; line-height: 1.5; font-size: 14px; }
.arena-modus-reihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 760px) { .arena-modus-reihe { grid-template-columns: 1fr; } }
.arena-modus-karte { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(245,200,66,.35); background: rgba(245,200,66,.05); font-size: 13.5px; line-height: 1.45; }
.arena-modus-karte h3 { margin: 0 0 4px; font: 600 16px var(--schrift-titel); color: #ffe9a8; }
.arena-modus-karte p { margin: 0 0 8px; color: var(--muted); }
.arena-modus-karte b { color: #f6dc9c; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.arena-modus-karte ul { margin: 4px 0 0; padding-left: 18px; }
.arena-modus-karte.gross { margin: 4px 0 12px; padding: 16px 18px; font-size: 15px; box-shadow: 0 0 0 1px rgba(245,200,66,.5), 0 0 24px rgba(245,200,66,.12); }
.arena-modus-karte.gross h3 { font-size: 26px; }
.arena-los { margin: 14px 0 4px; font: 600 12px var(--schrift-titel); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
#arena-status b { color: #ffe9a8; font-size: 1.2em; }

/* Händler (Platzhalter) */
.shop-bald { text-align: center; padding: 48px 16px 56px; }
.shop-eyebrow { font: 600 12px var(--schrift-titel); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.shop-bald .hub-gruss { font-size: clamp(34px, 6vw, 54px); }
.shop-stand { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 18px; border-radius: 20px; font: 600 16px var(--schrift-titel); color: #cfd8ff; background: rgba(40,44,90,.5); box-shadow: inset 0 0 0 1px rgba(140,150,255,.45); }
.shop-stand i { font-style: normal; color: #a9b4ff; }

/* Lore: Geschichte der Welt (Seite) und der Helden (Reiter im Heldenprofil) */
.lore { max-width: 760px; margin: 0 auto; padding: 8px 4px 32px; }
.lore > .shop-eyebrow, .lore > .hub-gruss, .lore > .hub-untertitel { text-align: center; }
.lore > .hub-untertitel { font-style: italic; margin-bottom: 26px; }
.lore-kapitel { position: relative; margin: 0 0 26px; padding: 18px 20px 8px 62px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.28); }
.lore-nr { position: absolute; left: 16px; top: 16px; width: 34px; text-align: center; font: 600 20px var(--schrift-titel); color: #d9b26a; }
.lore-kapitel h2 { margin: 0 0 8px; font: 600 21px var(--schrift-titel); color: #f6dc9c; }
.lore-kapitel p { margin: 0 0 12px; font: 17px/1.6 "Cormorant Garamond", Georgia, serif; color: #e9dfc8; }
.lore-schluss { text-align: center; font: italic 18px/1.5 "Cormorant Garamond", Georgia, serif; color: #f6dc9c; margin-top: 8px; }
@media (max-width: 560px) { .lore-kapitel { padding: 46px 16px 6px; } .lore-nr { left: 16px; top: 12px; width: auto; } }
.held-lore p { font: 16.500px/1.55 "Cormorant Garamond", Georgia, serif; color: #e9dfc8; margin: 0 0 10px; }
.held-lore .held-lore-herkunft { font: 600 12px var(--schrift-titel); letter-spacing: .08em; text-transform: uppercase; color: var(--k, #d9b26a); }
.held-lore .held-lore-geheim { padding: 10px 12px; border-left: 3px solid var(--k, #d9b26a); background: rgba(255,255,255,.04); border-radius: 0 8px 8px 0; }
.held-lore .held-lore-geheim b { color: #f6dc9c; }

/* Arena: Leiste oben mit Zugzeit, Punkten und Runde – am Rechner stehen Punkte und Runde schon in der Kopfzeile */
.arena-uhr { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.arena-uhr[hidden] { display: none; }
.arena-uhr .au-punkte i { font-style: normal; opacity: .75; }
.arena-uhr .au-punkte b { margin-left: 0; }
.arena-uhr .au-runde { opacity: .8; font-size: 12px; }
@media (min-width: 1200px) { .arena-uhr .au-punkte, .arena-uhr .au-runde { display: none; } .arena-uhr:not(:has(.au-zeit)) { display: none; } }
.arena-modus-reihe.vier { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .arena-modus-reihe.vier { grid-template-columns: 1fr; } }

/* Händler: Helden des Tages */
.shop-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.shop-kopf .shop-stand { margin-top: 6px; }
.shop-helden { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 12px; }
@media (max-width: 640px) { .shop-helden { grid-template-columns: 1fr; } }
.shop-held { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.32); text-align: center; }
.shop-held img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--k, #d9b46a); box-shadow: 0 0 24px rgba(0,0,0,.6); }
.shop-held b { font: 600 20px var(--schrift-titel); color: #f6dc9c; margin-top: 6px; }
.shop-held small { color: var(--muted); font-size: 13px; }
.shop-held .btn { margin-top: 8px; min-width: 130px; } .shop-held .btn i { font-style: normal; color: #a9b4ff; margin-right: 4px; }
.shop-held .shop-fehlt { color: #e39a8a; }
.shop-held.gekauft { border-color: rgba(120,200,140,.5); } .shop-gekauft { margin-top: 10px; color: #8fd6a4; font-weight: 600; }
/* Arena-Auswertung (Admins) */
.auswertung { overflow-x: auto; } .auswertung h3 { font: 600 15px var(--schrift-titel); color: #f6dc9c; margin: 16px 0 6px; }
.auswertung table { width: 100%; border-collapse: collapse; font-size: 13px; }
.auswertung th, .auswertung td { padding: 5px 8px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: right; white-space: nowrap; }
.auswertung th:first-child { text-align: left; } .auswertung thead th { color: var(--muted); font-weight: 600; } .auswertung td small { opacity: .6; }

/* Meistertitel (Stufe 10) */
.held-meister { margin: 2px 0 6px; font: 600 15px var(--schrift-titel); letter-spacing: .04em; color: #ffd75e; text-shadow: 0 0 14px rgba(255,200,90,.35); }
small.meister, .fkarte small.meister, .gk-info small.meister { color: #ffd75e; }

/* Arena: Hinweis, wenn das Mitrechnen eine Abweichung findet */
.arena-pruef { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 70; max-width: min(92vw, 560px); padding: 10px 16px; border-radius: 12px; font-size: 14px; line-height: 1.4; color: #ffe1dc; background: rgba(60,14,14,.95); box-shadow: inset 0 0 0 1px #c0444e; text-align: center; }
.arena-pruef[hidden] { display: none; }

/* ---------- Das Dorf: Startseite als Ort. Bild, darüber echte Knöpfe an den Gebäuden (Breitbild; am Handy hochkant ein eigenes Bild) ---------- */
.hub-rahmen { grid-template-areas: "kopf kopf kopf" "dorf dorf dorf" "nav mitte seite"; }
.dorf { grid-area: dorf; position: relative; aspect-ratio: 1672 / 941; max-height: 78vh; width: 100%; margin: 0 auto; border-radius: 8px; overflow: hidden; border: 1px solid #b08a45; box-shadow: inset 0 0 0 3px rgba(8,8,10,.9), 0 18px 50px rgba(0,0,0,.55); background: #0b0d13; }
.dorf picture, .dorf img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dorf::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(5,6,10,.55) 100%); }
.dorf-glanz { position: absolute; left: 55.500%; top: 63%; width: 16%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(circle, rgba(120,200,255,.5), rgba(120,200,255,0) 65%); animation: dorf-puls 4.200s ease-in-out infinite; }
@keyframes dorf-puls { 0%, 100% { opacity: .35; transform: translate(-50%, -50%) scale(.92); } 50% { opacity: .85; transform: translate(-50%, -50%) scale(1.08); } }
.dorf-ort { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 2; display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 30px; cursor: pointer; color: #f3e7cc; text-align: left;
  background: linear-gradient(180deg, rgba(20,17,12,.92), rgba(8,8,10,.94)); border: 1px solid #b08a45; box-shadow: 0 6px 18px rgba(0,0,0,.6), inset 0 0 0 1px rgba(246,220,156,.12); transition: transform .18s, box-shadow .18s, border-color .18s; }
.dorf-ort .my-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3a2d14, #15110a); box-shadow: inset 0 0 0 1px rgba(217,178,106,.6); }
.dorf-ort .my-ico svg { width: 18px; height: 18px; fill: #e9c877; }
.dorf-text { display: grid; line-height: 1.15; } .dorf-text b { font: 600 17px var(--schrift-titel); letter-spacing: .02em; white-space: nowrap; } .dorf-text small { font-size: 11.500px; color: #cdbf9f; white-space: nowrap; }
.dorf-ort:hover, .dorf-ort:focus-visible { transform: translate(-50%, -50%) scale(1.06); border-color: #f6dc9c; box-shadow: 0 8px 26px rgba(0,0,0,.7), 0 0 22px rgba(246,200,110,.45); outline: none; }
.hub.seite-offen .dorf { display: none; }
.hub.seite-offen .hub-rahmen { grid-template-areas: "kopf kopf kopf" "nav mitte mitte"; }
@media (max-width: 1150px) { .hub-rahmen { grid-template-areas: "kopf kopf" "dorf dorf" "nav mitte" "nav seite"; } .hub.seite-offen .hub-rahmen { grid-template-areas: "kopf kopf" "nav mitte"; }
  .dorf-text small { display: none; } .dorf-text b { font-size: 15px; } .dorf-ort { padding: 5px 12px 5px 6px; gap: 7px; } .dorf-ort .my-ico { width: 28px; height: 28px; } }
@media (max-width: 760px) { .hub-rahmen { grid-template-areas: "kopf" "dorf" "nav" "mitte" "seite"; } .hub.seite-offen .hub-rahmen { grid-template-areas: "kopf" "nav" "mitte"; } .dorf-text b { font-size: 13px; } .dorf-ort { min-height: 40px; } }
@media (max-width: 760px) and (orientation: portrait) { .dorf { aspect-ratio: 941 / 1672; max-height: none; } .dorf-ort { left: var(--hx); top: var(--hy); min-height: 44px; } .dorf-text b { font-size: 14px; } .dorf-glanz { left: 54.500%; top: 58%; width: 34%; } }
@media (prefers-reduced-motion: reduce) { .dorf-glanz { animation: none; } }
/* Kopfzeile auf schmalen Tablets: Name neben dem Profilbild weglassen, damit Glocke, Händler und Einstellungen sichtbar bleiben */
@media (min-width: 561px) and (max-width: 900px) { .hub-profil-knopf .hub-name { display: none; } }

/* Dorf-Startseite: Menü als Leiste über dem Bild, darunter Begrüßung und laufende Kampagnen */
.hub-rahmen, .hub.seite-offen .hub-rahmen { grid-template-columns: minmax(0, 1fr) 340px; }
.hub-rahmen { grid-template-areas: "kopf kopf" "nav nav" "dorf dorf" "mitte seite"; }
.hub.seite-offen .hub-rahmen { grid-template-areas: "kopf kopf" "nav nav" "mitte mitte"; }
.hub-nav { display: flex; flex-wrap: nowrap; justify-content: center; gap: 4px; overflow-x: auto; padding: 6px; scrollbar-width: none; }
.hub-nav::-webkit-scrollbar { display: none; }
.hub-nav-punkt { flex: none; border-bottom-color: transparent; padding: 9px 16px; white-space: nowrap; }
.hub-start-knoepfe { margin-top: 14px; }
.gilde-knoepfe { margin: 0 0 14px; }
@media (max-width: 1150px) { .hub-rahmen { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kopf" "nav" "dorf" "mitte" "seite"; } .hub.seite-offen .hub-rahmen { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kopf" "nav" "mitte"; } }
@media (max-width: 900px) { .hub-nav { justify-content: flex-start; } .hub-nav-punkt { font-size: 16px; padding: 8px 10px; } }

/* Leiste mit neun Orten: etwas enger, damit sie am Laptop in eine Zeile passt */
.hub-nav-punkt { padding: 9px 12px; font-size: 17px; gap: 8px; }
@media (max-width: 1320px) { .hub-nav { justify-content: flex-start; } }
/* Arena: das Rund als Hintergrund der Arena-Seiten (Übersicht, Heldenwahl, Aufstellung) */
.hub-seite-inhalt:has([data-arena]) { background: linear-gradient(180deg, rgba(8,8,11,.38) 0%, rgba(8,8,11,.55) 38%, rgba(8,8,11,.84) 100%), url("../img/dorf/arena.webp") center top / cover no-repeat; min-height: min(78vh, 760px); }
.hub-seite-inhalt:has([data-arena]) .arena-mein, .hub-seite-inhalt:has([data-arena]) .arena-liste li, .hub-seite-inhalt:has([data-arena]) .arena-team, .hub-seite-inhalt:has([data-arena]) .arena-info, .hub-seite-inhalt:has([data-arena]) .arena-held { background-color: rgba(8,8,11,.78); }
.hub-seite-inhalt:has([data-arena]) .hub-gruss, .hub-seite-inhalt:has([data-arena]) .hub-untertitel, .hub-seite-inhalt:has([data-arena]) .note, .hub-seite-inhalt:has([data-arena]) .hub-zwischen { text-shadow: 0 2px 10px rgba(0,0,0,.95), 0 0 2px rgba(0,0,0,.9); }
.hub-seite-inhalt:has([data-arena]) .note { color: #e6dcc6; }

/* Händler: der Stand als Hintergrund */
.hub-seite-inhalt:has(.shop), .hub-seite-inhalt:has(.shop-bald) { background: linear-gradient(180deg, rgba(8,8,11,.45) 0%, rgba(8,8,11,.66) 40%, rgba(8,8,11,.88) 100%), url("../img/dorf/haendler.webp") center / cover no-repeat; min-height: min(78vh, 760px); }
.hub-seite-inhalt:has(.shop) .hub-gruss, .hub-seite-inhalt:has(.shop) .hub-untertitel, .hub-seite-inhalt:has(.shop) .note, .hub-seite-inhalt:has(.shop-bald) .hub-gruss, .hub-seite-inhalt:has(.shop-bald) .hub-untertitel { text-shadow: 0 2px 10px rgba(0,0,0,.95), 0 0 2px #000; }
.hub-seite-inhalt:has(.shop) .shop-held { background: rgba(10,9,8,.82); backdrop-filter: blur(2px); }

/* ---------- Abenteurergilde als Auftragsbrett (Prototyp): Holzbrett, Aushänge aus Pergament, Wachssiegel für den Stand ---------- */
.karte-box.gilde { max-width: 1040px; padding: 22px 24px 26px; border: 1px solid #b08a45; border-radius: 8px;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55)), repeating-linear-gradient(92deg, #2b1c10 0 46px, #33210f 46px 49px, #281a0e 49px 118px, #3a2613 118px 121px), #2b1c10;
  box-shadow: inset 0 0 0 3px #150d06, inset 0 0 0 4px rgba(217,178,106,.45), inset 0 0 60px rgba(0,0,0,.7), 0 24px 70px rgba(0,0,0,.75); }
.gilde .k-kopf { align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid rgba(217,178,106,.35); }
.gilde-eyebrow { margin: 0 0 2px; font: 600 11px var(--schrift-titel); letter-spacing: .2em; text-transform: uppercase; color: #d9b26a; }
.gilde .k-kopf h2 { font-size: clamp(26px, 4vw, 36px); color: #f6dc9c; text-shadow: 0 2px 0 #1a0f06, 0 0 22px rgba(246,200,110,.25); }
.gilde .gilde-knoepfe { margin: 4px 0 6px; gap: 10px; }
.gilde .gilde-knoepfe .btn { padding: 12px 20px; font: 600 15px var(--schrift-titel); letter-spacing: .04em; border-radius: 4px; }
.gilde .gilde-knoepfe .btn:not(.ghost) { background: linear-gradient(180deg, #9a2a2a, #6d1717); border: 1px solid #d9b26a; color: #ffe9c4; box-shadow: 0 4px 0 #3d0c0c, 0 8px 18px rgba(0,0,0,.5); }
.gilde .gilde-knoepfe .btn.ghost { background: rgba(0,0,0,.35); border: 1px solid #b08a45; color: #f3e7cc; }
.gilde-zwischen { margin: 16px 0 2px; font: 600 13px var(--schrift-titel); letter-spacing: .16em; text-transform: uppercase; color: #e9c77e; display: flex; align-items: center; gap: 12px; }
.gilde-zwischen::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(217,178,106,.6), transparent); }
.gilde .k-liste { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 22px 20px; padding: 12px 4px 4px; }
.gilde .k-eintrag { position: relative; align-content: start; padding: 22px 20px 16px; border: 0; border-radius: 3px; color: #2c2013;
  background: radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,.35), transparent 55%), linear-gradient(175deg, #ecdcb4 0%, #e1cd9c 55%, #cfb67f 100%);
  box-shadow: 0 10px 22px rgba(0,0,0,.6), inset 0 0 26px rgba(120,84,34,.35), inset 0 -8px 14px rgba(110,76,30,.22); transform: rotate(-.5deg); transition: transform .18s, box-shadow .18s; }
.gilde .k-eintrag:nth-child(even) { transform: rotate(.6deg); }
.gilde .k-eintrag:hover { transform: rotate(0) translateY(-2px); box-shadow: 0 16px 30px rgba(0,0,0,.7), inset 0 0 26px rgba(120,84,34,.35); }
.gilde .k-eintrag::before { content: ""; position: absolute; top: -7px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe9a8, #b8862f 55%, #5d3f10); box-shadow: 0 3px 5px rgba(0,0,0,.6); }
.gilde .k-eintrag::after { content: ""; position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d04a4a, #8e1f1f 60%, #5a0f0f); box-shadow: 0 2px 5px rgba(0,0,0,.5), inset 0 0 0 3px rgba(0,0,0,.18); }
.gilde .k-eintrag[data-status="pausiert"]::after { background: radial-gradient(circle at 35% 30%, #f0c668, #b9842a 60%, #6e4a10); }
.gilde .k-eintrag[data-status="abgeschlossen"]::after, .gilde .k-eintrag[data-status="archiviert"]::after { background: radial-gradient(circle at 35% 30%, #9aa3ad, #5c646e 60%, #353b43); }
.gilde .k-eintrag[data-status="geplant"]::after { background: radial-gradient(circle at 35% 30%, #7fb08a, #3f7650 60%, #214430); }
.gilde .k-eintrag[data-status="abgeschlossen"], .gilde .k-eintrag[data-status="archiviert"] { opacity: 1; filter: saturate(.7); }
.gilde .k-text { padding-right: 46px; } .gilde .k-text b { color: #2a1a0b; font-size: 21px; line-height: 1.15; }
.gilde .k-status { color: #7a1c1c; } .gilde .k-eintrag[data-status="pausiert"] .k-status { color: #8a5a0a; }
.gilde .k-text small { color: #5b4526; font: 15px/1.35 "Cormorant Garamond", Georgia, serif; }
.gilde .k-knoepfe { padding-top: 10px; border-top: 1px dashed rgba(90,62,24,.5); }
.gilde .k-knoepfe .btn { background: transparent; border: 1px solid rgba(70,46,16,.65); color: #3a2710; box-shadow: none; border-radius: 3px; }
.gilde .k-knoepfe .btn:not(.ghost) { background: linear-gradient(180deg, #8f2626, #671515); border-color: #4a0f0f; color: #ffe9c4; box-shadow: 0 2px 0 #3d0c0c; }
.gilde .k-knoepfe .btn.gefahr { color: #8e1f1f; border-color: rgba(142,31,31,.55); }
.gilde .k-knoepfe .btn:hover { filter: brightness(1.08); }
.gilde .note { color: #d9ccb0; } .gilde .link { color: #e9c77e; }
.gilde .k-lokal { background: rgba(0,0,0,.35); border-color: #d9b26a; color: #f3e7cc; }
@media (max-width: 560px) { .karte-box.gilde { padding: 16px 14px 20px; } .gilde .k-eintrag, .gilde .k-eintrag:nth-child(even) { transform: none; } }
/* Aushänge der Gilde mit echter Pergamentstruktur (Ausschnitt aus dem Auftragsblatt) */
.gilde .k-eintrag { background: linear-gradient(175deg, rgba(255,244,214,.34), rgba(120,78,28,.10) 60%, rgba(90,56,18,.26)), url("../img/dorf/pergament.webp") center / cover; box-shadow: 0 10px 22px rgba(0,0,0,.6), inset 0 0 34px rgba(96,58,18,.5), inset 0 0 4px rgba(60,36,10,.6); }
.gilde .k-text b { color: #24160a; } .gilde .k-text small { color: #4a3619; }
/* Aushänge als ganzes Pergamentblatt (Querformat, mit gerissenem Rand, Zierrahmen und Siegel) – ab Tablet-Breite.
   Am Handy sind die Blätter zu schmal für den Rahmen: dort bleibt die schlichte Pergamentstruktur. */
@media (min-width: 720px) {
  .gilde .k-liste { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 10px 14px; padding: 4px 0 0; }
  .gilde .k-eintrag, .gilde .k-eintrag:nth-child(even) { aspect-ratio: 1260 / 778; padding: 13.5% 11% 8% 10.5%; gap: 6px; align-content: start; background: url("../img/dorf/aushang.webp") center / 100% 100% no-repeat; box-shadow: none; border-radius: 0;
    -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 86%, transparent 100%); mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 86%, transparent 100%); filter: drop-shadow(0 10px 14px rgba(0,0,0,.55)); }
  .gilde .k-eintrag:hover { box-shadow: none; }
  .gilde .k-eintrag::before, .gilde .k-eintrag::after { display: none; }
  .gilde .k-text { padding-right: 0; gap: 1px; } .gilde .k-text b { font-size: clamp(17px, 1.700vw, 22px); }
  .gilde .k-text small { font-size: 14.500px; line-height: 1.25; }
  .gilde .k-knoepfe { padding-top: 6px; padding-right: 15%; gap: 5px; border-top-color: rgba(90,62,24,.35); }
  .gilde .k-knoepfe .btn { padding: 4px 9px; font-size: 12.500px; }
  .gilde .k-eintrag[data-status="pausiert"] { filter: drop-shadow(0 10px 14px rgba(0,0,0,.55)) saturate(.82); }
  .gilde .k-eintrag[data-status="abgeschlossen"], .gilde .k-eintrag[data-status="archiviert"] { filter: drop-shadow(0 10px 14px rgba(0,0,0,.55)) saturate(.45) brightness(.92); }
}
@media (min-width: 720px) {
  .gilde .k-eintrag, .gilde .k-eintrag:nth-child(even) { padding: 12.500% 11% 8.500% 10.500%; gap: 4px; }
  .gilde .k-text b { font-size: clamp(16px, 1.450vw, 20px); line-height: 1.1; }
  .gilde .k-status { font-size: 10px; }
  .gilde .k-text small { font-size: 13.500px; line-height: 1.2; }
  .gilde .k-knoepfe { padding-top: 5px; gap: 4px; }
  .gilde .k-knoepfe .btn { padding: 3px 8px; font-size: 12px; }
}
@media (min-width: 720px) {
  .karte-box.gilde { box-sizing: border-box; overflow-x: hidden; }
  .gilde .k-liste { justify-items: center; }
  .gilde .k-eintrag, .gilde .k-eintrag:nth-child(even) { width: 100%; max-width: 640px; min-width: 0; }
}

/* ---------- Intro-Film: Standbilder mit Kamerafahrt, Überblendung und eingeblendetem Text ---------- */
body.intro-an { overflow: hidden; }
.intro-film { position: fixed; inset: 0; z-index: 200; background: #000; overflow: hidden; cursor: pointer; transition: opacity .6s; }
.intro-film.zu { opacity: 0; pointer-events: none; }
.intro-buehne { position: absolute; inset: 0; }
.intro-bild { position: absolute; inset: -6%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.200s ease; animation-timing-function: linear; animation-fill-mode: both; will-change: transform, opacity; }
.intro-bild.an { opacity: 1; }
.intro-bild.fahrt-zoom-rein { animation-name: intro-zoom-rein; } .intro-bild.fahrt-zoom-raus { animation-name: intro-zoom-raus; }
.intro-bild.fahrt-rechts { animation-name: intro-rechts; } .intro-bild.fahrt-links { animation-name: intro-links; } .intro-bild.fahrt-runter { animation-name: intro-runter; }
@keyframes intro-zoom-rein { from { transform: scale(1); } to { transform: scale(1.140); } }
@keyframes intro-zoom-raus { from { transform: scale(1.160); } to { transform: scale(1); } }
@keyframes intro-rechts { from { transform: scale(1.080) translateX(2.500%); } to { transform: scale(1.080) translateX(-2.500%); } }
@keyframes intro-links { from { transform: scale(1.080) translateX(-2.500%); } to { transform: scale(1.080) translateX(2.500%); } }
@keyframes intro-runter { from { transform: scale(1.100) translateY(-3%); } to { transform: scale(1.100) translateY(3%); } }
/* Handy hochkant: Breitbilder füllen die Höhe, die Kamera fährt quer darüber – so sieht man das ganze Bild */
@media (orientation: portrait) and (max-width: 760px) {
  .intro-bild:not(.passt) { inset: 0 auto 0 0; width: calc(100vh * 1672 / 941); width: calc(100dvh * 1672 / 941); background-size: 100% 100%; }
  .intro-bild.fahrt-zoom-rein:not(.passt), .intro-bild.fahrt-rechts:not(.passt), .intro-bild.fahrt-runter:not(.passt) { animation-name: intro-quer-hin; }
  .intro-bild.fahrt-zoom-raus:not(.passt), .intro-bild.fahrt-links:not(.passt) { animation-name: intro-quer-her; }
}
@keyframes intro-quer-hin { from { transform: translateX(calc(-18% )); } to { transform: translateX(calc(-100% + 100vw + 18%)); } }
@keyframes intro-quer-her { from { transform: translateX(calc(-100% + 100vw + 18%)); } to { transform: translateX(-18%); } }
.intro-schleier { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 85% at 50% 42%, transparent 45%, rgba(0,0,0,.6) 100%), linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 22%, transparent 55%, rgba(0,0,0,.86) 100%); }
.intro-text { position: absolute; left: 50%; bottom: clamp(74px, 13vh, 150px); transform: translate(-50%, 12px); width: min(92vw, 900px); margin: 0; text-align: center; font: 500 clamp(21px, 3.200vw, 38px)/1.3 "Cormorant Garamond", Georgia, serif; color: #f6ecd4; text-shadow: 0 2px 14px #000, 0 0 3px #000; opacity: 0; transition: opacity .9s ease, transform .9s ease; }
.intro-text.an { opacity: 1; transform: translate(-50%, 0); }
.intro-ende { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; background: rgba(0,0,0,.55); animation: intro-titel 1.400s ease both; }
.intro-ende[hidden] { display: none; }
.intro-ende span { font: 700 clamp(44px, 10vw, 110px) var(--schrift-titel); letter-spacing: .08em; color: #f6dc9c; text-shadow: 0 0 40px rgba(246,200,110,.55), 0 4px 0 #2a1a08; }
.intro-ende small { font: 600 clamp(13px, 2vw, 20px) var(--schrift-titel); letter-spacing: .5em; text-transform: uppercase; color: #e9c77e; }
@keyframes intro-titel { from { opacity: 0; transform: scale(1.060); } to { opacity: 1; transform: none; } }
.intro-leiste { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); }
.intro-punkte { display: flex; gap: 6px; } .intro-punkte i { width: 22px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.25); transition: background .4s; } .intro-punkte i.an { background: #e9c77e; }
.intro-leiste .btn { background: rgba(0,0,0,.55); border-color: rgba(233,199,126,.6); color: #f3e7cc; }
@media (max-width: 560px) { .intro-punkte i { width: 12px; } }
@media (prefers-reduced-motion: reduce) { .intro-bild { animation: none !important; inset: 0; } }
.lore-intro-knopf { display: flex; justify-content: center; margin: 0 0 22px; }
.intro-knoepfe { display: flex; gap: 8px; }
/* Vorschau-Seite des Intros (intro.html) */
.intro-vorschau { min-height: 100vh; display: grid; place-content: center; gap: 14px; text-align: center; padding: 24px; background: radial-gradient(90% 70% at 50% 40%, #1b1410, #07070a); color: #f3e7cc; }
.intro-vorschau h1 { margin: 0; font: 700 clamp(34px, 7vw, 64px) var(--schrift-titel); letter-spacing: .08em; color: #f6dc9c; }
.intro-vorschau p { margin: 0; color: #cdbf9f; max-width: 520px; }

/* ---------- Tutorial: eine Stelle hervorgehoben, alles andere gesperrt ---------- */
.tut { position: fixed; inset: 0; z-index: 890; pointer-events: none; }
.tut-b { position: fixed; background: rgba(4,5,8,.72); pointer-events: auto; }
.tut-b.mitte { background: transparent; }
.tut-ring { position: fixed; border-radius: 10px; pointer-events: none; box-shadow: 0 0 0 2px #f6dc9c, 0 0 0 6px rgba(246,220,156,.25), 0 0 26px rgba(246,200,110,.55); animation: tut-puls 1.600s ease-in-out infinite; }
@keyframes tut-puls { 0%, 100% { box-shadow: 0 0 0 2px #f6dc9c, 0 0 0 6px rgba(246,220,156,.22), 0 0 22px rgba(246,200,110,.45); } 50% { box-shadow: 0 0 0 2px #fff0c4, 0 0 0 10px rgba(246,220,156,.12), 0 0 34px rgba(246,200,110,.75); } }
.tut-skip { position: fixed; top: 10px; right: 12px; pointer-events: auto; background: rgba(10,10,12,.92); border-color: rgba(233,199,126,.7); color: #f3e7cc; z-index: 2; }
.tut-blase { position: fixed; pointer-events: auto; width: min(420px, calc(100vw - 24px)); padding: 16px 18px 16px; border-radius: 12px; color: #f3e7cc; background: linear-gradient(180deg, #1d1810, #100d09); border: 1px solid #d9b26a; box-shadow: 0 18px 50px rgba(0,0,0,.75), inset 0 0 0 1px rgba(246,220,156,.12); transition: opacity .18s; z-index: 1; }
.tut-blase.wartet { opacity: 0; pointer-events: none; }
.tut-blase.mitte { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.tut-blase.unten { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; }
/* Tutorial am Handy: unten Luft lassen, damit sich auch eine hohe Stelle am Seitenende über die Sprechblase schieben lässt */
@media (max-width: 700px) { body.tut-an { padding-bottom: 280px; } }
.tut-blase.oben { left: 12px; right: 12px; top: 54px; width: auto; }
.tut-zahl { margin: 0 0 4px; font: 600 11px var(--schrift-titel); letter-spacing: .14em; text-transform: uppercase; color: #d9b26a; }
.tut-blase h3 { margin: 0 0 6px; font: 600 21px var(--schrift-titel); color: #f6dc9c; }
.tut-text { margin: 0 0 12px; font: 18px/1.4 "Cormorant Garamond", Georgia, serif; color: #efe4cc; }
.tut-knoepfe { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.tut-hinweis { margin-right: auto; font-size: 13.500px; color: #e9c77e; }
@media (prefers-reduced-motion: reduce) { .tut-ring { animation: none; } }
/* Einstellungen: Lautstärke der Musik */
.musik-regler { display: flex; align-items: center; gap: 12px; }
.musik-regler input[type="range"] { flex: 1; min-width: 90px; accent-color: #d9b26a; }
.musik-regler output { min-width: 44px; text-align: right; color: #e9c77e; font-variant-numeric: tabular-nums; }

/* ---------- Tischansicht (Schalter in js/spiel.js, standardmäßig aus): Karte gekippt, Helden als stehende Miniaturen ---------- */
body.tischansicht .karte-wrap { perspective: 1400px; perspective-origin: 50% 0%; overflow: visible; background: none; border-color: transparent; box-shadow: none; }
body.tischansicht #karte { transform: rotateX(var(--tisch-winkel, 27deg)) scale(.94); transform-origin: 50% 22%; border-radius: 6px; box-shadow: 0 0 0 7px #2a1c10, 0 0 0 9px #b08a45, 0 40px 60px rgba(0,0,0,.8); overflow: visible; }
body.tischansicht #karte .fig-ganz { filter: drop-shadow(0 0 .6px #000) drop-shadow(0 3px 3px rgba(0,0,0,.55)); pointer-events: none; }
body.tischansicht #karte .fig-ganz.dran { filter: drop-shadow(0 0 .6px #000) drop-shadow(0 0 5px rgba(255,215,94,.95)) drop-shadow(0 3px 3px rgba(0,0,0,.55)); }
body.tischansicht #karte .fig.held .fig-schatten { opacity: .7; }
body.tischansicht.fx-an #karte .fig.steht .fig-schweb { animation: none; } /* Miniaturen stehen fest auf dem Plan */
body.tischansicht #karte .fig-ganz.schwebt { filter: drop-shadow(0 0 4px rgba(150,210,255,.9)); }
body.tischansicht .spiel { overflow-x: clip; }
@media (max-width: 700px) { body.tischansicht .karte-wrap { perspective: 900px; } body.tischansicht #karte { transform: rotateX(var(--tisch-winkel, 22deg)) scale(.95); transform-origin: 50% 30%; box-shadow: 0 0 0 4px #2a1c10, 0 0 0 5px #b08a45, 0 24px 40px rgba(0,0,0,.8); } }
body.tischansicht .karte-wrap { min-width: 0; } body.tischansicht .karte-wrap .leiste { max-width: 100%; overflow: hidden; }

/* ===== Kampf am Handy (js/kampf-handy.js): Karte oben, feste Bedienleiste unten, kein Scrollen ===== */
body.kh-an { overflow: hidden; }
body.kh-an header.top, body.kh-an #kampf-kopf, body.kh-an #gruppe-kampf, body.kh-an #leiste, body.kh-an #aktiv, body.kh-an #aktionen, body.kh-an #hinweis { display: none !important; }
body.kh-an main { padding: 0; max-width: none; }
body.kh-an #spiel { padding: 6px 0 0; margin: 0; }
body.kh-an:has(#arena-uhr:not([hidden])) #spiel { padding-top: 38px; }
body.kh-an .arena-uhr { top: 5px; left: auto; right: 6px; transform: none; } body.kh-an .arena-aufgeben { top: 5px; bottom: auto; left: 6px; padding: 4px 9px; font-size: 12px; }
body.kh-an #reihe { margin: 0 8px 6px; padding: 0; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
body.kh-an #reihe::-webkit-scrollbar { display: none; }
body.kh-an .karte-wrap { position: relative; overflow: hidden; margin: 0; border-radius: 0; border-left: 0; border-right: 0; touch-action: none; background: #05070b; }
body.kh-an #karte { display: block; width: 100%; max-width: none; height: auto; will-change: transform; }
body.kh-an .panel { position: fixed; left: 8px; right: 8px; top: calc(var(--kh-oben, 70px) + 72px); z-index: 56; padding: 0; margin: 0; border: 0; background: none; box-shadow: none; pointer-events: none; }
body.kh-an .panel > * { pointer-events: auto; }
/* Gegner-Info: eigene, deckende Karte über dem Spielfeld (am Tisch liegt sie in einer Seitenspalte mit eigenem Hintergrund) */
body.kh-an #gegner-info, body.kh-an #boss-karte { margin: 0 0 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(208,84,94,.7); background: linear-gradient(180deg, #3a1a22, #121a27 55%); box-shadow: 0 10px 30px rgba(0,0,0,.7); }
body.kh-an #log { display: none; }
body.kh-an.kh-log #log { display: block; position: fixed; left: 8px; right: 8px; top: 60px; bottom: 40%; z-index: 58; margin: 0; padding: 12px 14px 12px 30px; overflow: auto; border-radius: 12px; border: 1px solid var(--line-stark); background: rgba(10,14,22,.97); box-shadow: 0 14px 40px rgba(0,0,0,.7); }
.kh { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); display: grid; gap: 7px; background: linear-gradient(180deg, rgba(22,31,45,.98), rgba(9,13,20,.99)); border-top: 1px solid #c5a267; box-shadow: 0 -10px 30px rgba(0,0,0,.55); }
.kh-kopf { display: flex; align-items: center; gap: 9px; min-width: 0; }
.kh-bild { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 2px solid #c5a267; display: grid; place-items: center; background: #1a2230; }
.kh-bild img { width: 100%; height: 100%; object-fit: cover; } .kh-mon { font-size: 22px; }
.kh-wer { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.kh-wer b { font: 600 17px var(--schrift-titel); letter-spacing: .04em; color: #f1e3c4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kh-tp { position: relative; height: 15px; border-radius: 8px; background: #2a1215; overflow: hidden; border: 1px solid rgba(0,0,0,.5); }
.kh-tp u { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #8f2330, #c9404b); text-decoration: none; }
.kh-tp em { position: relative; display: block; text-align: center; font: 600 11px/15px var(--schrift-ui, inherit); font-style: normal; color: #fff; text-shadow: 0 1px 1px #000; }
.kh-pips { flex: none; display: flex; gap: 4px; }
.kh-pips i { font-style: normal; font-size: 11px; font-weight: 600; padding: 4px 6px; border-radius: 9px; border: 1px solid rgba(255,255,255,.14); color: #6f7786; background: rgba(0,0,0,.3); white-space: nowrap; text-decoration: line-through; }
.kh-pips i.an { text-decoration: none; color: #0e1420; }
.kh-pips i.an.bew { background: #7fb8e8; border-color: #7fb8e8; } .kh-pips i.an.akt { background: #e8b04c; border-color: #e8b04c; } .kh-pips i.an.bon { background: #9fd08a; border-color: #9fd08a; }
.kh-werkzeug { flex: none; display: flex; gap: 4px; }
.kh-werkzeug button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(197,162,103,.5); background: rgba(0,0,0,.35); font-size: 17px; line-height: 1; padding: 0; }
.kh-info { min-height: 58px; padding: 7px 10px; border-radius: 10px; background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.08); font-size: 13px; line-height: 1.35; color: #cdd3dc; }
.kh-info b { color: #f1e3c4; font-size: 14px; } .kh-info small { color: #9aa3b2; } .kh-info span { display: block; }
.kh-info.an { border-color: #e8b04c; background: rgba(232,176,76,.12); } .kh-info.aus span { color: #e3a39b; }
.kh-info em { display: inline-block; margin-top: 3px; font-style: normal; font-weight: 600; color: #f5c96a; }
.kh-info #kh-ab { float: right; margin: 2px 0 0 8px; padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: none; color: #f1e3c4; font: inherit; font-size: 12px; }
/* Höchstens gut zwei Reihen: Bei mehr Aktionen lässt sich das Raster hochschieben; die angeschnittene dritte Reihe zeigt, dass es weitergeht */
.kh-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-height: 152px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.kh-raster::-webkit-scrollbar { display: none; }
.kh-k { position: relative; display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 58px; padding: 5px 3px; border-radius: 11px; border: 1px solid rgba(197,162,103,.5); background: linear-gradient(180deg, #2a3649, #1a2331); color: #f1e3c4; font: inherit; }
.kh-k i { font-style: normal; font-size: 19px; line-height: 1.1; }
.kh-k b { font-size: 11.5px; font-weight: 600; line-height: 1.15; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.kh-k small { font-size: 10px; color: #f5c96a; }
.kh-k.bonus { border-color: rgba(159,208,138,.6); } .kh-k.bonus::after { content: "B"; position: absolute; top: 3px; right: 5px; font-size: 9px; font-weight: 700; color: #9fd08a; }
.kh-k.aus { opacity: .42; }
.kh-k.an { border-color: #f5c96a; background: linear-gradient(180deg, #6b4a17, #3c2a0e); box-shadow: 0 0 0 2px rgba(245,201,106,.5); }
.kh-k.tipp { box-shadow: 0 0 0 2px #7fb8e8; }
.kh-fuss { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.kh-fuss button { min-height: 44px; border-radius: 11px; font: 600 15px var(--schrift-ui, inherit); }
.kh-tipp { padding: 0 14px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.3); color: #f1e3c4; }
.kh-ende { border: 1px solid #d0606a; background: linear-gradient(180deg, #a5333f, #7b2530); color: #fff; }
.kh-warten { padding: 8px 10px 10px; border-radius: 10px; background: rgba(0,0,0,.3); font-size: 13px; line-height: 1.4; color: #b8c0cc; }
.kh-warten b { display: block; margin-bottom: 4px; color: #f1e3c4; font-size: 15px; } .kh-warten p { margin: 2px 0 0; }
/* „Dein Zug“: am Handy etwas kleiner und unterhalb der Würfelzeile, damit sich beide nicht überdecken */
body.kh-an .fx-zug { top: calc(var(--kh-oben, 70px) + 76px); scale: .82; }
#bild-warm { position: fixed; left: 0; bottom: 0; width: 2px; height: 2px; overflow: hidden; opacity: .01; pointer-events: none; z-index: -1; }
#bild-warm img { width: 2px; height: 2px; }
/* Würfel am Handy: eine schmale Zeile am oberen Kartenrand – der Treffer darunter bleibt sichtbar */
body.kh-an .wurf { top: calc(var(--kh-oben, 70px) + 6px); bottom: auto; left: 8px; right: 8px; width: auto; max-width: none; transform: translateY(-10px); z-index: 57;
  display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border-radius: 12px; }
body.kh-an .wurf.an { transform: none; }
body.kh-an .wurf .w20-box { width: 44px; height: 44px; }
body.kh-an .wurf .w20-erg { flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 1.3; text-align: left; }
body.kh-an .wurf .w20-erg b { display: inline; min-width: 0; margin-right: 6px; font: 600 14px/1.3 var(--schrift-titel); letter-spacing: .03em; text-align: left; }
body.kh-an .wurf .w20-erg span, body.kh-an .wurf span { font-size: 13px; }


/* ===== Ausstattung (js/kosmetik.js, Migration 017): Würfel-Designs und Profilrahmen =====
   Die Auswahl steht als data-wuerfel / data-rahmen am <body>; Vorschauen tragen dieselbe Angabe an ihrem Kasten.
   Jedes Design setzt nur Variablen – „standard“ setzt sie zurück, damit eine Vorschau nicht die eigene Auswahl erbt. */
.w20-koerper { fill: var(--w-fuell, #2a2216); }
.w20-zahl { fill: var(--w-zahl, #ece4d4); }
.w20-box { color: var(--w-rand, var(--gold)); }
.w20-box .w20-svg { filter: var(--w-schein, drop-shadow(0 4px 10px #000)); }
.w20-box:not(.rollt):not(.gelandet) .w20-svg { animation: var(--w-anim, none); }
[data-wuerfel="standard"] { --w-fuell: #2a2216; --w-zahl: #ece4d4; --w-rand: var(--gold); --w-schein: drop-shadow(0 4px 10px #000); --w-anim: none; }
[data-wuerfel="w_obsidian"] { --w-fuell: #0b0c10; --w-zahl: #dfe6f2; --w-rand: #8f9bb0; --w-schein: drop-shadow(0 4px 10px #000); --w-anim: none; }
[data-wuerfel="w_elfenbein"] { --w-fuell: #efe6d0; --w-zahl: #2a2216; --w-rand: #8a7448; --w-schein: drop-shadow(0 4px 10px #000); --w-anim: none; }
[data-wuerfel="w_smaragd"] { --w-fuell: #0f3d2a; --w-zahl: #d6ffe6; --w-rand: #4fd08a; --w-schein: drop-shadow(0 4px 10px #000); --w-anim: none; }
[data-wuerfel="w_rubin"] { --w-fuell: #4a0d16; --w-zahl: #ffe0dc; --w-rand: #e0505a; --w-schein: drop-shadow(0 4px 10px #000); --w-anim: none; }
[data-wuerfel="w_glut"] { --w-fuell: url(#w20-glut); --w-zahl: #fff2c8; --w-rand: #ffb040; --w-schein: drop-shadow(0 0 7px rgba(255,120,30,.95)) drop-shadow(0 4px 10px #000); --w-anim: w20-flackern 1.6s ease-in-out infinite; }
[data-wuerfel="w_frost"] { --w-fuell: url(#w20-frost); --w-zahl: #06223c; --w-rand: #e6f8ff; --w-schein: drop-shadow(0 0 7px rgba(140,210,255,.9)) drop-shadow(0 4px 10px #000); --w-anim: w20-puls 3s ease-in-out infinite; }
[data-wuerfel="w_arkan"] { --w-fuell: url(#w20-arkan); --w-zahl: #f4e6ff; --w-rand: #d0a0ff; --w-schein: drop-shadow(0 0 8px rgba(170,90,255,.95)) drop-shadow(0 4px 10px #000); --w-anim: w20-puls 2.2s ease-in-out infinite; }
[data-wuerfel="w_gold"] { --w-fuell: url(#w20-gold); --w-zahl: #2a1a04; --w-rand: #fff0b0; --w-schein: drop-shadow(0 0 7px rgba(255,210,100,.9)) drop-shadow(0 4px 10px #000); --w-anim: w20-schimmer 3.2s ease-in-out infinite; }
@keyframes w20-flackern { 0%, 100% { filter: drop-shadow(0 0 5px rgba(255,120,30,.8)) drop-shadow(0 4px 10px #000) brightness(1); } 40% { filter: drop-shadow(0 0 11px rgba(255,150,40,1)) drop-shadow(0 4px 10px #000) brightness(1.18); } 70% { filter: drop-shadow(0 0 7px rgba(255,100,20,.9)) drop-shadow(0 4px 10px #000) brightness(.96); } }
@keyframes w20-puls { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .9; transform: scale(1.04); } }
@keyframes w20-schimmer { 0%, 100% { filter: drop-shadow(0 0 5px rgba(255,210,100,.7)) drop-shadow(0 4px 10px #000) brightness(1); } 50% { filter: drop-shadow(0 0 12px rgba(255,230,140,1)) drop-shadow(0 4px 10px #000) brightness(1.2); } }

/* Profilrahmen: am eigenen Profilbild oben und in den Vorschauen */
#hub-profil-knopf .hub-avatar, .kos-rahmen .hub-avatar, .rahmen-halter .hub-avatar { border-color: var(--r-rand, #c99a4b); border-width: var(--r-breit, 2px); box-shadow: var(--r-schatten, none); animation: var(--r-anim, none); }
[data-rahmen="standard"] { --r-rand: #c99a4b; --r-breit: 2px; --r-schatten: none; --r-anim: none; }
[data-rahmen="r_bronze"] { --r-rand: #b0703a; --r-breit: 3px; --r-schatten: 0 0 0 1px #4a2a10; --r-anim: none; }
[data-rahmen="r_silber"] { --r-rand: #d8dde6; --r-breit: 3px; --r-schatten: 0 0 0 1px #5a6270; --r-anim: none; }
[data-rahmen="r_eisen"] { --r-rand: #4a4e58; --r-breit: 4px; --r-schatten: 0 0 0 1px #0c0d10, inset 0 0 0 1px #8a8f9a; --r-anim: none; }
[data-rahmen="r_wald"] { --r-rand: #4f9a5a; --r-breit: 3px; --r-schatten: 0 0 0 1px #173a1e; --r-anim: none; }
[data-rahmen="r_gold"] { --r-rand: #ffe08a; --r-breit: 3px; --r-schatten: 0 0 0 2px #7a5010, 0 0 0 4px #e8b84a, 0 0 12px 3px rgba(255,210,100,.7); --r-anim: rahmen-schimmer 3s ease-in-out infinite; }
[data-rahmen="r_flammen"] { --r-rand: #ff9a3a; --r-breit: 3px; --r-schatten: 0 0 0 2px #7a1d0c, 0 0 14px 4px rgba(255,110,30,.85); --r-anim: rahmen-flammen 1.4s ease-in-out infinite; }
[data-rahmen="r_frost"] { --r-rand: #d8f4ff; --r-breit: 3px; --r-schatten: 0 0 0 2px #2a6a9a, 0 0 14px 4px rgba(130,205,255,.8); --r-anim: rahmen-schimmer 3.4s ease-in-out infinite; }
[data-rahmen="r_splitter"] { --r-rand: #d0b0ff; --r-breit: 3px; --r-schatten: 0 0 0 2px #3a1a7a, 0 0 14px 4px rgba(160,100,255,.85); --r-anim: rahmen-puls 2.2s ease-in-out infinite; }
@keyframes rahmen-schimmer { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.22); } }
@keyframes rahmen-flammen { 0%, 100% { box-shadow: 0 0 0 2px #7a1d0c, 0 0 10px 3px rgba(255,110,30,.7); } 35% { box-shadow: 0 0 0 2px #7a1d0c, 0 -3px 18px 6px rgba(255,150,40,.95); } 65% { box-shadow: 0 0 0 2px #7a1d0c, 0 -1px 13px 4px rgba(255,90,20,.8); } }
@keyframes rahmen-puls { 0%, 100% { box-shadow: 0 0 0 2px #3a1a7a, 0 0 9px 2px rgba(160,100,255,.6); } 50% { box-shadow: 0 0 0 2px #3a1a7a, 0 0 18px 6px rgba(190,130,255,1); } }
@media (prefers-reduced-motion: reduce) { .w20-box .w20-svg, .hub-avatar { animation: none !important; } }


/* Gezeichnete Rahmen: Kranz, Krone, Schwingen … liegen als Bild um das Profilbild (vor oder hinter ihm).
   Der Halter umschließt das Bild; die Zeichnung ragt 20 % über den Kreis hinaus. */
.rahmen-halter { position: relative; display: inline-grid; place-items: center; isolation: isolate; }
.rahmen-halter > .hub-avatar { position: relative; z-index: 1; }
.rahmen-halter::before, .rahmen-halter::after { content: ""; position: absolute; inset: -20%; background: center / 100% 100% no-repeat; pointer-events: none; }
.rahmen-halter::before { z-index: 0; background-image: var(--r-hinten, none); }
.rahmen-halter::after { z-index: 2; background-image: var(--r-vorn, none); animation: var(--r-dreh, none); }
[data-rahmen] { --r-vorn: none; --r-hinten: none; --r-dreh: none; }
@keyframes rahmen-drehen { to { transform: rotate(360deg); } }
[data-rahmen="r_dornen"] { --r-rand: #3a1114; --r-breit: 2px; --r-schatten: none; --r-anim: none; --r-vorn: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 140 140%22%3E%3Cg fill=%22none%22 stroke-linecap=%22round%22%3E%3Ccircle cx=%2270%22 cy=%2270%22 r=%2255%22 stroke=%22%233a1114%22 stroke-width=%226%22/%3E%3Ccircle cx=%2270%22 cy=%2270%22 r=%2255%22 stroke=%22%237a2a2e%22 stroke-width=%222.4%22 stroke-dasharray=%2213 7%22/%3E%3C/g%3E%3Cg fill=%22%235a1a1e%22 stroke=%22%231e0608%22 stroke-width=%22.7%22%3E%3Cpath d=%22M62.3 15.5 L55.6 7.6 L70 15 Z%22/%3E%3Cpath d=%22M92.8 20 L111.4 16.1 L99.6 23.6 Z%22/%3E%3Cpath d=%22M103.1 26.1 L103.9 15.7 L108.9 31.1 Z%22/%3E%3Cpath d=%22M121.5 50.7 L137.4 61.1 L123.7 58.1 Z%22/%3E%3Cpath d=%22M124.5 62.3 L132.4 55.6 L125 70 Z%22/%3E%3Cpath d=%22M120 92.8 L123.9 111.4 L116.4 99.6 Z%22/%3E%3Cpath d=%22M113.9 103.1 L124.3 103.9 L108.9 108.9 Z%22/%3E%3Cpath d=%22M89.3 121.5 L78.9 137.4 L81.9 123.7 Z%22/%3E%3Cpath d=%22M77.7 124.5 L84.4 132.4 L70 125 Z%22/%3E%3Cpath d=%22M47.2 120 L28.6 123.9 L40.4 116.4 Z%22/%3E%3Cpath d=%22M36.9 113.9 L36.1 124.3 L31.1 108.9 Z%22/%3E%3Cpath d=%22M18.5 89.3 L2.6 78.9 L16.3 81.9 Z%22/%3E%3Cpath d=%22M15.5 77.7 L7.6 84.4 L15 70 Z%22/%3E%3Cpath d=%22M20 47.2 L16.1 28.6 L23.6 40.4 Z%22/%3E%3Cpath d=%22M26.1 36.9 L15.7 36.1 L31.1 31.1 Z%22/%3E%3Cpath d=%22M50.7 18.5 L61.1 2.6 L58.1 16.3 Z%22/%3E%3C/g%3E%3C/svg%3E"); }
[data-rahmen="r_zahnrad"] { --r-rand: #22262e; --r-breit: 2px; --r-schatten: none; --r-anim: none; --r-vorn: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 140 140%22%3E%3Cg fill=%22%237f8794%22 stroke=%22%2322262e%22 stroke-width=%221%22%3E%3Cpath d=%22M63.3 15.4 L64.8 4.2 L75.2 4.2 L76.7 15.4 Z%22/%3E%3Cpath d=%22M91.5 19.4 L98.4 10.4 L107.4 15.6 L103.1 26.1 Z%22/%3E%3Cpath d=%22M113.9 36.9 L124.4 32.6 L129.6 41.6 L120.6 48.5 Z%22/%3E%3Cpath d=%22M124.6 63.3 L135.8 64.8 L135.8 75.2 L124.6 76.7 Z%22/%3E%3Cpath d=%22M120.6 91.5 L129.6 98.4 L124.4 107.4 L113.9 103.1 Z%22/%3E%3Cpath d=%22M103.1 113.9 L107.4 124.4 L98.4 129.6 L91.5 120.6 Z%22/%3E%3Cpath d=%22M76.7 124.6 L75.2 135.8 L64.8 135.8 L63.3 124.6 Z%22/%3E%3Cpath d=%22M48.5 120.6 L41.6 129.6 L32.6 124.4 L36.9 113.9 Z%22/%3E%3Cpath d=%22M26.1 103.1 L15.6 107.4 L10.4 98.4 L19.4 91.5 Z%22/%3E%3Cpath d=%22M15.4 76.7 L4.2 75.2 L4.2 64.8 L15.4 63.3 Z%22/%3E%3Cpath d=%22M19.4 48.5 L10.4 41.6 L15.6 32.6 L26.1 36.9 Z%22/%3E%3Cpath d=%22M36.9 26.1 L32.6 15.6 L41.6 10.4 L48.5 19.4 Z%22/%3E%3C/g%3E%3Ccircle cx=%2270%22 cy=%2270%22 r=%2255%22 fill=%22none%22 stroke=%22%237f8794%22 stroke-width=%227%22/%3E%3Ccircle cx=%2270%22 cy=%2270%22 r=%2258.5%22 fill=%22none%22 stroke=%22%2322262e%22 stroke-width=%221%22/%3E%3Ccircle cx=%2270%22 cy=%2270%22 r=%2251.5%22 fill=%22none%22 stroke=%22%23c9ced8%22 stroke-width=%221%22/%3E%3Ccircle cx=%2284.2%22 cy=%2216.9%22 r=%221.9%22 fill=%22%2322262e%22/%3E%3Ccircle cx=%22123.1%22 cy=%2255.8%22 r=%221.9%22 fill=%22%2322262e%22/%3E%3Ccircle cx=%22108.9%22 cy=%22108.9%22 r=%221.9%22 fill=%22%2322262e%22/%3E%3Ccircle cx=%2255.8%22 cy=%22123.1%22 r=%221.9%22 fill=%22%2322262e%22/%3E%3Ccircle cx=%2216.9%22 cy=%2284.2%22 r=%221.9%22 fill=%22%2322262e%22/%3E%3Ccircle cx=%2231.1%22 cy=%2231.1%22 r=%221.9%22 fill=%22%2322262e%22/%3E%3C/svg%3E"); }
[data-rahmen="r_lorbeer"] { --r-rand: #c79a34; --r-breit: 2px; --r-schatten: none; --r-anim: none; --r-vorn: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 140 140%22%3E%3Cg fill=%22%23e3bd55%22 stroke=%22%236e5110%22 stroke-width=%22.8%22%3E%3Cellipse cx=%2289.2%22 cy=%22122.6%22 rx=%224.2%22 ry=%2210.5%22 transform=%22rotate(90 89.2 122.6)%22/%3E%3Cellipse cx=%22106.1%22 cy=%22117.9%22 rx=%224.2%22 ry=%2210.5%22 transform=%22rotate(107 106.1 117.9)%22/%3E%3Cellipse cx=%22115.3%22 cy=%22102.9%22 rx=%224.2%22 ry=%2210.5%22 transform=%22rotate(56 115.3 102.9)%22/%3E%3Cellipse cx=%22126.7%22 cy=%2289.5%22 rx=%224.2%22 ry=%2210.5%22 transform=%22rotate(73 126.7 89.5)%22/%3E%3Cellipse cx=%22126%22 cy=%2272%22 rx=%224.2%22 ry=%2210.5%22 transform=%22rotate(22 126 72)%22/%3E%3Cellipse cx=%22128%22 cy=%2254.5%22 rx=%224.2%22 ry=%2210.5%22 transform=%22rotate(39 128 54.5)%22/%3E%3Cellipse cx=%22117.5%22 cy=%2240.3%22 rx=%224.2%22 ry=%2210.5%22 transform=%22rotate(-12 117.5 40.3)%22/%3E%3Cellipse cx=%22109.4%22 cy=%2224.7%22 rx=%224.2%22 ry=%2210.5%22 transform=%22rotate(5 109.4 24.7)%22/%3E%3Cellipse cx=%2292.8%22 cy=%2218.8%22 rx=%224.2%22 ry=%2210.5%22 transform=%22rotate(-46 92.8 18.8)%22/%3E%3Cellipse cx=%2250.8%22 cy=%22122.6%22 rx=%224.2%22 ry=%2210.5%22 transform=%22rotate(-90 50.8 122.6)%22/%3E%3Cellipse cx=%2233.9%22 cy=%22117.9%22 rx=%224.2%22 ry=%2210.5%22 transform=%22rotate(-107 33.9 117.9)%22/%3E%3Cellipse cx=%2224.7%22 cy=%22102.9%22 rx=%224.2%22 ry=%2210.5%22 transform=%22rotate(-56 24.7 102.9)%22/%3E%3Cellipse cx=%2213.3%22 cy=%2289.5%22 rx=%224.2%22 ry=%2210.5%22 transform=%22rotate(-73 13.3 89.5)%22/%3E%3Cellipse cx=%2214%22 cy=%2272%22 rx=%224.2%22 ry=%2210.5%22 transform=%22rotate(-22 14 72)%22/%3E%3Cellipse cx=%2212%22 cy=%2254.5%22 rx=%224.2%22 ry=%2210.5%22 transform=%22rotate(-39 12 54.5)%22/%3E%3Cellipse cx=%2222.5%22 cy=%2240.3%22 rx=%224.2%22 ry=%2210.5%22 transform=%22rotate(12 22.5 40.3)%22/%3E%3Cellipse cx=%2230.6%22 cy=%2224.7%22 rx=%224.2%22 ry=%2210.5%22 transform=%22rotate(-5 30.6 24.7)%22/%3E%3Cellipse cx=%2247.2%22 cy=%2218.8%22 rx=%224.2%22 ry=%2210.5%22 transform=%22rotate(46 47.2 18.8)%22/%3E%3C/g%3E%3Cpath d=%22M62 126 Q70 132 78 126%22 fill=%22none%22 stroke=%22%236e5110%22 stroke-width=%222.4%22 stroke-linecap=%22round%22/%3E%3Ccircle cx=%2270%22 cy=%22128.5%22 r=%223%22 fill=%22%23b0343c%22 stroke=%22%235a1418%22 stroke-width=%22.8%22/%3E%3C/svg%3E"); }
[data-rahmen="r_krone"] { --r-rand: #e8c35a; --r-breit: 2px; --r-schatten: none; --r-anim: none; --r-vorn: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 140 140%22%3E%3Cpath d=%22M47 31 L44 9 L56 20 L63 4 L70 18 L77 4 L84 20 L96 9 L93 31 Z%22 fill=%22%23e8c35a%22 stroke=%22%236e5110%22 stroke-width=%221.4%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M47 31 Q70 23 93 31 L92 37 Q70 29 48 37 Z%22 fill=%22%23c79a34%22 stroke=%22%236e5110%22 stroke-width=%221.2%22/%3E%3Ccircle cx=%2244%22 cy=%229%22 r=%222.6%22 fill=%22%23d8404a%22 stroke=%22%233a2a08%22 stroke-width=%22.8%22/%3E%3Ccircle cx=%2263%22 cy=%224%22 r=%222.6%22 fill=%22%235ab0ff%22 stroke=%22%233a2a08%22 stroke-width=%22.8%22/%3E%3Ccircle cx=%2277%22 cy=%224%22 r=%222.6%22 fill=%22%235ab0ff%22 stroke=%22%233a2a08%22 stroke-width=%22.8%22/%3E%3Ccircle cx=%2296%22 cy=%229%22 r=%222.6%22 fill=%22%23d8404a%22 stroke=%22%233a2a08%22 stroke-width=%22.8%22/%3E%3Ccircle cx=%2270%22 cy=%2218%22 r=%222.6%22 fill=%22%237fe0a0%22 stroke=%22%233a2a08%22 stroke-width=%22.8%22/%3E%3C/svg%3E"); }
[data-rahmen="r_schwingen"] { --r-rand: #eef2f8; --r-breit: 2px; --r-schatten: none; --r-anim: none; --r-hinten: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 140 140%22%3E%3Cg transform=%22translate(70 70) scale(1 1)%22 fill=%22%23eef2f8%22 stroke=%22%236a7486%22 stroke-width=%22.9%22%3E%3Cellipse cx=%2255%22 cy=%22-6%22 rx=%2215%22 ry=%225%22 transform=%22rotate(-62 40 -6)%22/%3E%3Cellipse cx=%2258.2%22 cy=%22-1.5%22 rx=%2217%22 ry=%225%22 transform=%22rotate(-44 41.2 -1.5)%22/%3E%3Cellipse cx=%2260.4%22 cy=%223%22 rx=%2218%22 ry=%225%22 transform=%22rotate(-26 42.4 3)%22/%3E%3Cellipse cx=%2260.6%22 cy=%227.5%22 rx=%2217%22 ry=%225%22 transform=%22rotate(-8 43.6 7.5)%22/%3E%3Cellipse cx=%2259.8%22 cy=%2212%22 rx=%2215%22 ry=%225%22 transform=%22rotate(12 44.8 12)%22/%3E%3Cellipse cx=%2258%22 cy=%2216.5%22 rx=%2212%22 ry=%225%22 transform=%22rotate(32 46 16.5)%22/%3E%3Cpath d=%22M40 -22 Q50 -2 42 24 Q34 4 40 -22 Z%22 fill=%22%23cfd6e2%22/%3E%3C/g%3E%3Cg transform=%22translate(70 70) scale(-1 1)%22 fill=%22%23eef2f8%22 stroke=%22%236a7486%22 stroke-width=%22.9%22%3E%3Cellipse cx=%2255%22 cy=%22-6%22 rx=%2215%22 ry=%225%22 transform=%22rotate(-62 40 -6)%22/%3E%3Cellipse cx=%2258.2%22 cy=%22-1.5%22 rx=%2217%22 ry=%225%22 transform=%22rotate(-44 41.2 -1.5)%22/%3E%3Cellipse cx=%2260.4%22 cy=%223%22 rx=%2218%22 ry=%225%22 transform=%22rotate(-26 42.4 3)%22/%3E%3Cellipse cx=%2260.6%22 cy=%227.5%22 rx=%2217%22 ry=%225%22 transform=%22rotate(-8 43.6 7.5)%22/%3E%3Cellipse cx=%2259.8%22 cy=%2212%22 rx=%2215%22 ry=%225%22 transform=%22rotate(12 44.8 12)%22/%3E%3Cellipse cx=%2258%22 cy=%2216.5%22 rx=%2212%22 ry=%225%22 transform=%22rotate(32 46 16.5)%22/%3E%3Cpath d=%22M40 -22 Q50 -2 42 24 Q34 4 40 -22 Z%22 fill=%22%23cfd6e2%22/%3E%3C/g%3E%3C/svg%3E"); }
[data-rahmen="r_stern"] { --r-rand: #f0d27a; --r-breit: 2px; --r-schatten: none; --r-anim: none; --r-hinten: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 140 140%22%3E%3Cpath d=%22M70 1 L59.4 24.2 L70 30 Z%22 fill=%22%23f0d27a%22 stroke=%22%234a3a14%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M70 1 L80.6 24.2 L70 30 Z%22 fill=%22%23a8842a%22 stroke=%22%234a3a14%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M113.1 26.9 L94.9 30.1 L98.3 41.7 Z%22 fill=%22%23cfd6e2%22 stroke=%22%234a3a14%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M113.1 26.9 L109.9 45.1 L98.3 41.7 Z%22 fill=%22%238a93a3%22 stroke=%22%234a3a14%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M139 70 L115.8 59.4 L110 70 Z%22 fill=%22%23f0d27a%22 stroke=%22%234a3a14%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M139 70 L115.8 80.6 L110 70 Z%22 fill=%22%23a8842a%22 stroke=%22%234a3a14%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M113.1 113.1 L109.9 94.9 L98.3 98.3 Z%22 fill=%22%23cfd6e2%22 stroke=%22%234a3a14%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M113.1 113.1 L94.9 109.9 L98.3 98.3 Z%22 fill=%22%238a93a3%22 stroke=%22%234a3a14%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M70 139 L80.6 115.8 L70 110 Z%22 fill=%22%23f0d27a%22 stroke=%22%234a3a14%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M70 139 L59.4 115.8 L70 110 Z%22 fill=%22%23a8842a%22 stroke=%22%234a3a14%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M26.9 113.1 L45.1 109.9 L41.7 98.3 Z%22 fill=%22%23cfd6e2%22 stroke=%22%234a3a14%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M26.9 113.1 L30.1 94.9 L41.7 98.3 Z%22 fill=%22%238a93a3%22 stroke=%22%234a3a14%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M1 70 L24.2 80.6 L30 70 Z%22 fill=%22%23f0d27a%22 stroke=%22%234a3a14%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M1 70 L24.2 59.4 L30 70 Z%22 fill=%22%23a8842a%22 stroke=%22%234a3a14%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M26.9 26.9 L30.1 45.1 L41.7 41.7 Z%22 fill=%22%23cfd6e2%22 stroke=%22%234a3a14%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M26.9 26.9 L45.1 30.1 L41.7 41.7 Z%22 fill=%22%238a93a3%22 stroke=%22%234a3a14%22 stroke-width=%22.8%22/%3E%3C/svg%3E"); }
[data-rahmen="r_runen"] { --r-rand: #c9a6ff; --r-breit: 2px; --r-schatten: none; --r-anim: none; --r-vorn: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 140 140%22%3E%3Cg fill=%22none%22 stroke=%22%23c9a6ff%22%3E%3Ccircle cx=%2270%22 cy=%2270%22 r=%2265%22 stroke-width=%221.2%22/%3E%3Ccircle cx=%2270%22 cy=%2270%22 r=%2254%22 stroke-width=%221.2%22/%3E%3C/g%3E%3Cg stroke=%22%23e6d4ff%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 fill=%22none%22%3E%3Cpath transform=%22translate(70 10.5) rotate(0)%22 d=%22M0 -4 V4 M0 -4 L3 -1 M0 0 L3 3%22/%3E%3Cpath transform=%22translate(99.8 18.5) rotate(30)%22 d=%22M-2.5 -4 L2.5 4 M2.5 -4 L-2.5 4%22/%3E%3Cpath transform=%22translate(121.5 40.2) rotate(60)%22 d=%22M0 -4 V4 M0 -4 L3 0 L0 4%22/%3E%3Cpath transform=%22translate(129.5 70) rotate(90)%22 d=%22M-2.5 4 V-4 L2.5 4 V-4%22/%3E%3Cpath transform=%22translate(121.5 99.7) rotate(120)%22 d=%22M0 -4 V4 M-3 -1 L0 -4 L3 -1%22/%3E%3Cpath transform=%22translate(99.8 121.5) rotate(150)%22 d=%22M0 -4 L3 0 L0 4 L-3 0 Z%22/%3E%3Cpath transform=%22translate(70 129.5) rotate(180)%22 d=%22M0 -4 V4 M0 -4 L3 -1 M0 0 L3 3%22/%3E%3Cpath transform=%22translate(40.2 121.5) rotate(210)%22 d=%22M-2.5 -4 L2.5 4 M2.5 -4 L-2.5 4%22/%3E%3Cpath transform=%22translate(18.5 99.8) rotate(240)%22 d=%22M0 -4 V4 M0 -4 L3 0 L0 4%22/%3E%3Cpath transform=%22translate(10.5 70) rotate(270)%22 d=%22M-2.5 4 V-4 L2.5 4 V-4%22/%3E%3Cpath transform=%22translate(18.5 40.2) rotate(300)%22 d=%22M0 -4 V4 M-3 -1 L0 -4 L3 -1%22/%3E%3Cpath transform=%22translate(40.2 18.5) rotate(330)%22 d=%22M0 -4 L3 0 L0 4 L-3 0 Z%22/%3E%3C/g%3E%3C/svg%3E"); --r-dreh: rahmen-drehen 26s linear infinite; }
@media (prefers-reduced-motion: reduce) { .rahmen-halter::after { animation: none !important; } }

/* Händler: Eingang mit zwei Feldern */
.shop-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 8px; }
.shop-feld { display: grid; justify-items: center; gap: 8px; padding: 24px 18px 20px; border-radius: 16px; border: 1px solid rgba(197,162,103,.55); background: linear-gradient(180deg, rgba(40,52,84,.6), rgba(12,16,28,.82)); color: #f1e3c4; font: inherit; text-align: center; cursor: pointer; transition: transform .15s, border-color .15s; }
.shop-feld.ausstattung { background: linear-gradient(180deg, rgba(70,40,96,.55), rgba(16,12,28,.82)); }
.shop-feld:hover:not(:disabled), .shop-feld:focus-visible { transform: translateY(-3px); border-color: #e8b04c; }
.shop-feld:disabled { opacity: .5; cursor: default; }
.shop-feld b { font: 600 24px var(--schrift-titel); letter-spacing: .04em; color: #f6dc9c; } .shop-feld > span:not(.shop-feld-bilder) { font-size: 15px; line-height: 1.4; color: #d9cdb4; min-height: 2.8em; }
.shop-feld-bilder { display: flex; justify-content: center; align-items: center; gap: 0; min-height: 84px; }
.shop-feld-bilder img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid #c5a267; margin: 0 -9px; box-shadow: 0 4px 16px rgba(0,0,0,.6); }
.shop-feld-bilder.kos { gap: 18px; }
.shop-feld-bilder.woche { gap: 10px; } .shop-feld-bilder.woche img.token { width: 72px; height: 84px; border: 0; border-radius: 0; box-shadow: none; object-fit: contain; margin: 0; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.shop-feld s { opacity: .65; }
.shop-angebot { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px 22px; align-items: center; margin: 14px 0 18px; padding: 26px 22px 18px; border-radius: 16px; border: 2px solid #e2b860; overflow: hidden;
  background: radial-gradient(120% 160% at 0% 0%, rgba(214,160,60,.30), transparent 55%), linear-gradient(135deg, rgba(70,20,16,.92), rgba(24,16,10,.94)); box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 34px rgba(226,184,96,.28), inset 0 0 40px rgba(226,184,96,.08); }
.shop-angebot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255,235,180,.10) 48%, transparent 60%); background-size: 250% 100%; animation: angebot-glanz 5s linear infinite; }
@keyframes angebot-glanz { from { background-position: 120% 0; } to { background-position: -130% 0; } }
@media (prefers-reduced-motion: reduce) { .shop-angebot::after { animation: none; } }
.shop-angebot-band { position: absolute; top: 0; left: 0; padding: 4px 16px 5px; background: linear-gradient(180deg, #e9c46f, #b98a2c); color: #2a1606; font: 700 12px var(--schrift-titel); letter-spacing: .1em; text-transform: uppercase; border-radius: 0 0 10px 0; }
.shop-angebot-rabatt { position: absolute; top: 10px; right: -34px; transform: rotate(35deg); padding: 4px 44px; background: #b3261f; color: #fff3d6; font: 700 15px var(--schrift-titel); box-shadow: 0 3px 10px rgba(0,0,0,.5); }
.shop-angebot-bild { width: 118px; height: 118px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--k, #d9b46a); box-shadow: 0 0 26px rgba(226,184,96,.45); }
.shop-angebot-text { display: grid; gap: 3px; justify-items: start; min-width: 0; } .shop-angebot-text b { font: 600 30px var(--schrift-titel); color: #f6dc9c; line-height: 1.1; } .shop-angebot-text small { color: #d9cdb4; font-size: 14px; }
.shop-angebot-kauf { display: grid; gap: 6px; justify-items: center; padding-right: 28px; position: relative; z-index: 1; } .shop-angebot-kauf .shop-preis b { font-size: 30px; color: #ffe9a8; } .shop-angebot-kauf .shop-preis s { font-size: 17px; } .shop-angebot-kauf .btn { min-width: 190px; } .shop-angebot-kauf .btn i { font-style: normal; }
.shop-angebot .my-link, .shop-angebot .btn { position: relative; z-index: 1; } .shop-angebot-text .my-link { justify-self: start; }
.shop-angebot.leer { grid-template-columns: 1fr; } .shop-angebot-alle { margin: 6px 0 0; display: grid; gap: 4px; } .shop-angebot-alle b { font: 600 22px var(--schrift-titel); color: #bfe9c4; } .shop-angebot-alle span { color: #d9cdb4; font-size: 14px; }
.shop-angebot.gekauft { border-color: rgba(191,233,196,.6); box-shadow: none; } .shop-angebot.gekauft .shop-angebot-rabatt { display: none; }
@media (max-width: 700px) { .shop-angebot { grid-template-columns: auto 1fr; padding: 30px 14px 14px; gap: 10px 14px; } .shop-angebot-bild { width: 84px; height: 84px; } .shop-angebot-text b { font-size: 24px; } .shop-angebot-kauf { grid-column: 1 / -1; padding-right: 0; } .shop-angebot-kauf .btn { width: 100%; } .shop-angebot-rabatt { font-size: 13px; } }
.shop-woche { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); gap: 16px; margin: 16px 0; justify-content: start; }
.shop-woche .shop-held { position: relative; } .shop-held.woche.leer { justify-content: center; text-align: center; min-height: 220px; } .shop-alle { font-size: 40px; color: #bfe9c4; line-height: 1; }
.shop-band { position: absolute; top: 10px; left: -4px; padding: 3px 12px; background: linear-gradient(180deg, #b3261f, #7d1512); color: #fbe9c8; font: 600 12px var(--schrift-titel); letter-spacing: .08em; text-transform: uppercase; border-radius: 0 6px 6px 0; box-shadow: 0 3px 8px rgba(0,0,0,.5); z-index: 1; }
.shop-preis { margin: 4px 0; display: flex; gap: 10px; align-items: baseline; justify-content: center; flex-wrap: wrap; } .shop-preis i { font-style: normal; } .shop-preis s { color: var(--muted); font-size: 15px; } .shop-preis b { font: 600 22px var(--schrift-titel); color: #d9c2ff; } .shop-preis span { font-size: 12px; color: var(--muted); }
.shop-rest { color: var(--muted); font-size: 12px; }
.shop-held.token .token-bild { width: 62%; max-width: 170px; height: auto; aspect-ratio: auto; border: 0; border-radius: 0; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)); margin: 6px auto; }
.token-besitz { font-size: 13px; color: var(--muted); } .token-besitz.hat { color: #bfe9c4; } .token-besitz b { font-size: 16px; }
.token-bild { width: 22px; height: 26px; object-fit: contain; vertical-align: middle; }
.held-kauf { margin: 10px 0 14px; padding: 12px 14px; border: 1px solid rgba(217,180,106,.45); border-radius: 12px; background: rgba(40,28,12,.45); display: grid; gap: 10px; }
.held-kauf-stand { margin: 0; display: flex; gap: 8px 18px; align-items: center; flex-wrap: wrap; font-size: 14px; color: #d9cdb4; } .held-kauf-stand i { font-style: normal; color: #d9c2ff; } .held-kauf-stand b { color: #f6dc9c; }
.held-kauf-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; } .held-kauf-knoepfe .btn { flex: 1 1 240px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; } .held-kauf-knoepfe .btn i { font-style: normal; }
.held-kauf .my-fb:empty { display: none; }
.shop-uhr { font-style: normal; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #a9b4ff; }
.shop-uhr strong { font: 600 18px var(--schrift-titel); letter-spacing: .08em; color: #fff; margin-left: 4px; font-variant-numeric: tabular-nums; text-transform: none; }
.shop-zurueck { margin-bottom: 12px; }
/* Ausstattung: Karten beim Händler, Auswahl im Profil */
.kos-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 10px 0 6px; }
.kos-karte, .kos-wahl { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.34); text-align: center; color: #f1e3c4; font: inherit; }
.kos-karte.edel { border-color: rgba(197,162,103,.55); background: linear-gradient(180deg, rgba(90,66,24,.3), rgba(0,0,0,.4)); }
.kos-karte.mein { border-color: rgba(120,200,140,.5); }
.kos-karte b, .kos-wahl b { font: 600 17px var(--schrift-titel); color: #f6dc9c; margin-top: 8px; } .kos-karte small, .kos-wahl small { color: var(--muted); font-size: 12.5px; line-height: 1.35; min-height: 2.7em; }
.kos-karte .btn { margin-top: 6px; min-width: 104px; } .kos-karte .btn i { font-style: normal; color: #a9b4ff; margin-right: 4px; }
.kos-karte .shop-gekauft { margin-top: 4px; font-size: 13px; } .kos-karte .shop-fehlt { color: #e39a8a; min-height: 0; }
.kos-bild { display: grid; place-items: center; width: 84px; height: 84px; }
.kos-wuerfel .w20-box { width: 74px; height: 74px; }
.kos-rahmen .hub-avatar { width: 64px; height: 64px; font-size: 26px; }
.kos-wahl { cursor: pointer; } .kos-wahl:hover:not(:disabled) { border-color: rgba(232,176,76,.7); }
.kos-wahl.an { border-color: #e8b04c; background: rgba(232,176,76,.16); box-shadow: 0 0 0 1px #e8b04c inset; }
.kos-profil .kos-raster { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
@media (max-width: 760px) { .shop-felder { grid-template-columns: 1fr; } .kos-raster { grid-template-columns: 1fr 1fr; } .shop-feld > span:not(.shop-feld-bilder) { min-height: 0; } }

/* Profilbild mit Rahmen eines anderen Spielers (Arena, Taverne) */
.kos-traeger { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; vertical-align: middle; }
.kos-traeger.gross { width: 76px; height: 76px; } .kos-traeger.gross .hub-avatar.klein { width: 56px; height: 56px; font-size: 22px; }
.arena-team h3 { display: flex; align-items: center; gap: 10px; } .arena-team h3 .arena-team-name { flex: 1 1 auto; min-width: 0; font: inherit; overflow: hidden; text-overflow: ellipsis; }
.arena-ende-gegner { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 4px; } .arena-ende-gegner .arena-ende-eyebrow { margin: 0; }
.arena-einladung .kos-traeger { margin-right: 2px; } .arena-einladung > div { flex: 1 1 160px; }
.f-liste li .kos-traeger { margin: -5px 0; } .arena-liste li .kos-traeger { margin-right: 10px; }

/* ---------- Admin-Bereich: Reiter, Einstellungen des Rechner-Gegners ---------- */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; border-bottom: 1px solid var(--line); }
.admin-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: 600 14px var(--schrift-ui); padding: 8px 12px; cursor: pointer; margin-bottom: -1px; }
.admin-tabs button:hover, .admin-tabs button:focus-visible { color: #efe6d4; outline: none; }
.admin-tabs button.an { color: #f6dc9c; border-bottom-color: var(--altgold); }
.admin-bot { display: grid; gap: 10px; }
.admin-bot fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; display: grid; gap: 8px; margin: 0; min-width: 0; }
.admin-bot legend { font: 600 13px var(--schrift-ui); color: #f6dc9c; padding: 0 6px; }
.admin-regler { display: grid; grid-template-columns: minmax(70px, auto) 1fr 52px; align-items: center; gap: 10px; }
.admin-regler input[type=range] { width: 100%; accent-color: var(--altgold); min-width: 0; }
.admin-regler output { text-align: right; font-variant-numeric: tabular-nums; color: #efe6d4; }
.admin-schnell, .admin-reihe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-schnell span { color: var(--muted); font-size: 13px; }
.admin-reihe label { display: flex; align-items: center; gap: 8px; }
.admin-reihe select { padding: 6px 8px; background: rgba(0,0,0,.35); color: #efe6d4; border: 1px solid var(--line); border-radius: 4px; font: 400 15px var(--schrift-ui); }
.karte-box.admin .auswertung table + table { margin-top: 12px; }

/* Handy-Kampf: Zauberplätze unter den Zug-Marken (gefüllt = verfügbar, hohl = verbraucht; Rauten = Grad 2) */
.kh-mitte { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.kh-plaetze { font-style: normal; font-size: 12px; line-height: 14px; letter-spacing: 1px; color: #8fc4ff; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.kh-plaetze small { font-size: 10px; letter-spacing: .04em; color: #8a93a3; text-transform: uppercase; }
.kh-plaetze u { text-decoration: none; } .kh-plaetze u.g2 { color: #d9a8ff; }
.kh-k .kh-platz { position: absolute; top: 3px; left: 6px; font-size: 10px; line-height: 1; color: #8fc4ff; text-decoration: none; } .kh-k .kh-platz.g2 { color: #d9a8ff; }
/* Aktion ohne Ziel in Reichweite: gedämpft, aber wählbar (zeigt die Reichweite auf der Karte) */
.akt.ohne-ziel:not(.gewaehlt) { opacity: .62; } .kh-k.ohne-ziel:not(.an) { opacity: .6; }
/* Fähigkeit ohne Zielwahl: Erklärung mit „Bestätigen“ */
.hinweis-knoepfe { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.kh-info #kh-ok { margin-left: auto; padding: 6px 14px; border-radius: 9px; border: 1px solid rgba(232,196,106,.9); background: linear-gradient(180deg, #a8323d, #7d2029); color: #fff; font: 600 13px var(--schrift-ui, inherit); }
.kh-info #kh-ok + #kh-ab { margin-left: 0; }
/* Blutung: ein Tropfen rinnt an der Figur herab */
.fx-schild.blut { filter: drop-shadow(0 0 7px rgba(200,20,20,.75)); animation: fx-blut 1.5s ease-in forwards; }
@keyframes fx-blut { 0% { opacity: 0; transform: translate(-50%, -85%) scale(.55); } 18% { opacity: 1; transform: translate(-50%, -70%) scale(1); } 70% { opacity: .95; transform: translate(-50%, -32%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -8%) scale(.9, 1.12); } }
/* Figur antippen: Effekte in der Infokarte */
.gi-eff { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; }
.gi-eff li { display: flex; gap: 8px; align-items: baseline; font-size: 13px; line-height: 1.35; }
.gi-eff li b { color: #d9c2ff; white-space: nowrap; } .gi-eff li span { color: var(--muted); }
.gi-keine { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Mein Profil ---------- */
.profil-kopf { display: flex; align-items: center; gap: 16px; padding: 14px 16px; margin: 2px 0 12px; border: 1px solid rgba(197,162,103,.35); border-radius: 12px; background: linear-gradient(135deg, rgba(60,44,22,.55), rgba(18,16,13,.75)); }
.profil-bild { flex: none; width: 92px; height: 92px; display: grid; place-items: center; }
.profil-bild .rahmen-halter { width: 76px; height: 76px; } .profil-bild .hub-avatar { width: 76px; height: 76px; }
.profil-bild .hub-avatar img, .profil-bild .hub-avatar span { width: 100%; height: 100%; }
.profil-wer { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.profil-wer b { font: 600 22px var(--schrift-titel); letter-spacing: .04em; color: #f6dc9c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profil-wer small { color: var(--muted); font-size: 13px; }
.profil-wuerfel { flex: none; width: 64px; height: 64px; display: grid; place-items: center; }
.profil-wuerfel .w20-box { width: 56px; height: 56px; } .profil-wuerfel .w20-box svg { width: 100%; height: 100%; }
.profil .hub-bild.an { border-color: #f6dc9c; box-shadow: 0 0 0 2px rgba(246,220,156,.45); }
.profil .hub-bild:disabled { opacity: .6; }
.profil-inhalt .sm-code-form { max-width: 420px; }
@media (max-width: 520px) { .profil-kopf { gap: 12px; padding: 12px; } .profil-wer b { font-size: 19px; } .profil-wuerfel { width: 52px; height: 52px; } .profil-wuerfel .w20-box { width: 46px; height: 46px; } }

/* ---------- Ranked: Würfel und Rahmen der fünf Ränge (Belohnungen der Season 0) ---------- */
[data-wuerfel="w_s0_bronze"] { --w-fuell: url(#w20-s0-bronze); --w-zahl: #3a1f0c; --w-rand: #f0b98a; --w-schein: drop-shadow(0 0 7px #c98552) drop-shadow(0 4px 10px #000); --w-anim: w20-schimmer 3.2s ease-in-out infinite; }
[data-rahmen="r_s0_bronze"] { --r-rand: #f0b98a; --r-breit: 3px; --r-schatten: 0 0 0 2px #7a4520, 0 0 0 4px #c98552, 0 0 12px 2px #c98552; --r-anim: none; --r-vorn: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 140 140%22%3E%3Cg fill=%22%23c98552%22 stroke=%22%237a4520%22 stroke-width=%221.6%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M50 20 L58 4 L66 16 L70 2 L74 16 L82 4 L90 20 Z%22/%3E%3Cpath d=%22M34 112 Q8 104 6 78 Q22 96 44 100 Z%22/%3E%3Cpath d=%22M106 112 Q132 104 134 78 Q118 96 96 100 Z%22/%3E%3Cpath d=%22M70 114 L82 126 L70 138 L58 126 Z%22/%3E%3C/g%3E%3Cpath d=%22M70 120 L76 126 L70 132 L64 126 Z%22 fill=%22%23f0b98a%22/%3E%3C/svg%3E"); }
[data-wuerfel="w_s0_silber"] { --w-fuell: url(#w20-s0-silber); --w-zahl: #20262e; --w-rand: #f4f8fc; --w-schein: drop-shadow(0 0 7px #c3ccd6) drop-shadow(0 4px 10px #000); --w-anim: w20-schimmer 3.2s ease-in-out infinite; }
[data-rahmen="r_s0_silber"] { --r-rand: #f4f8fc; --r-breit: 3px; --r-schatten: 0 0 0 2px #5c6672, 0 0 0 4px #c3ccd6, 0 0 12px 2px #c3ccd6; --r-anim: none; --r-vorn: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 140 140%22%3E%3Cg fill=%22%23c3ccd6%22 stroke=%22%235c6672%22 stroke-width=%221.6%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M50 20 L58 4 L66 16 L70 2 L74 16 L82 4 L90 20 Z%22/%3E%3Cpath d=%22M34 112 Q8 104 6 78 Q22 96 44 100 Z%22/%3E%3Cpath d=%22M106 112 Q132 104 134 78 Q118 96 96 100 Z%22/%3E%3Cpath d=%22M70 114 L82 126 L70 138 L58 126 Z%22/%3E%3C/g%3E%3Cpath d=%22M70 120 L76 126 L70 132 L64 126 Z%22 fill=%22%23f4f8fc%22/%3E%3C/svg%3E"); }
[data-wuerfel="w_s0_gold"] { --w-fuell: url(#w20-s0-gold); --w-zahl: #2a1a04; --w-rand: #fff0b0; --w-schein: drop-shadow(0 0 7px #e6b53c) drop-shadow(0 4px 10px #000); --w-anim: w20-schimmer 3.2s ease-in-out infinite; }
[data-rahmen="r_s0_gold"] { --r-rand: #fff0b0; --r-breit: 3px; --r-schatten: 0 0 0 2px #7a5410, 0 0 0 4px #e6b53c, 0 0 12px 2px #e6b53c; --r-anim: none; --r-vorn: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 140 140%22%3E%3Cg fill=%22%23e6b53c%22 stroke=%22%237a5410%22 stroke-width=%221.6%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M50 20 L58 4 L66 16 L70 2 L74 16 L82 4 L90 20 Z%22/%3E%3Cpath d=%22M34 112 Q8 104 6 78 Q22 96 44 100 Z%22/%3E%3Cpath d=%22M106 112 Q132 104 134 78 Q118 96 96 100 Z%22/%3E%3Cpath d=%22M70 114 L82 126 L70 138 L58 126 Z%22/%3E%3C/g%3E%3Cpath d=%22M70 120 L76 126 L70 132 L64 126 Z%22 fill=%22%23fff0b0%22/%3E%3C/svg%3E"); }
[data-wuerfel="w_s0_platin"] { --w-fuell: url(#w20-s0-platin); --w-zahl: #06231f; --w-rand: #d4fff9; --w-schein: drop-shadow(0 0 7px #58cfc4) drop-shadow(0 4px 10px #000); --w-anim: w20-schimmer 3.2s ease-in-out infinite; }
[data-rahmen="r_s0_platin"] { --r-rand: #d4fff9; --r-breit: 3px; --r-schatten: 0 0 0 2px #0f4a45, 0 0 0 4px #58cfc4, 0 0 12px 2px #58cfc4; --r-anim: none; --r-vorn: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 140 140%22%3E%3Cg fill=%22%2358cfc4%22 stroke=%22%230f4a45%22 stroke-width=%221.6%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M50 20 L58 4 L66 16 L70 2 L74 16 L82 4 L90 20 Z%22/%3E%3Cpath d=%22M34 112 Q8 104 6 78 Q22 96 44 100 Z%22/%3E%3Cpath d=%22M106 112 Q132 104 134 78 Q118 96 96 100 Z%22/%3E%3Cpath d=%22M70 114 L82 126 L70 138 L58 126 Z%22/%3E%3C/g%3E%3Cpath d=%22M70 120 L76 126 L70 132 L64 126 Z%22 fill=%22%23d4fff9%22/%3E%3C/svg%3E"); }
[data-wuerfel="w_s0_meister"] { --w-fuell: url(#w20-s0-meister); --w-zahl: #1a062c; --w-rand: #f0d9ff; --w-schein: drop-shadow(0 0 7px #b06cf0) drop-shadow(0 4px 10px #000); --w-anim: w20-schimmer 3.2s ease-in-out infinite; }
[data-rahmen="r_s0_meister"] { --r-rand: #f0d9ff; --r-breit: 3px; --r-schatten: 0 0 0 2px #3d1163, 0 0 0 4px #b06cf0, 0 0 12px 2px #b06cf0; --r-anim: none; --r-vorn: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 140 140%22%3E%3Cg fill=%22%23b06cf0%22 stroke=%22%233d1163%22 stroke-width=%221.6%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M50 20 L58 4 L66 16 L70 2 L74 16 L82 4 L90 20 Z%22/%3E%3Cpath d=%22M34 112 Q8 104 6 78 Q22 96 44 100 Z%22/%3E%3Cpath d=%22M106 112 Q132 104 134 78 Q118 96 96 100 Z%22/%3E%3Cpath d=%22M70 114 L82 126 L70 138 L58 126 Z%22/%3E%3C/g%3E%3Cpath d=%22M70 120 L76 126 L70 132 L64 126 Z%22 fill=%22%23f0d9ff%22/%3E%3C/svg%3E"); }

/* ---------- Ranked: Abzeichen, Karte, Rangliste, Chronik, Belohnungen, Ergebnis ---------- */
[data-tier="bronze"] { --rg: #c98552; --rg-hell: #f0b98a; --rg-dunkel: #5a3015; } [data-tier="silber"] { --rg: #c3ccd6; --rg-hell: #f4f8fc; --rg-dunkel: #4a535e; }
[data-tier="gold"] { --rg: #e6b53c; --rg-hell: #fff0b0; --rg-dunkel: #6e4c0e; } [data-tier="platin"] { --rg: #58cfc4; --rg-hell: #d4fff9; --rg-dunkel: #0f4a45; }
[data-tier="meister"] { --rg: #b06cf0; --rg-hell: #f0d9ff; --rg-dunkel: #3d1163; }
.rang-emblem { --g: 44px; position: relative; flex: none; display: inline-grid; place-items: center; width: var(--g); height: calc(var(--g) * 1.14); vertical-align: middle; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.rang-emblem i { position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 16%, 100% 58%, 50% 100%, 0 58%, 0 16%); background: linear-gradient(160deg, var(--rg-hell), var(--rg) 45%, var(--rg-dunkel)); }
.rang-emblem i::after { content: ""; position: absolute; inset: 9%; clip-path: polygon(50% 0, 100% 16%, 100% 58%, 50% 100%, 0 58%, 0 16%); background: linear-gradient(200deg, var(--rg-dunkel), #14110d 70%); opacity: .82; }
.rang-emblem b { position: relative; font: 700 calc(var(--g) * .34)/1 var(--schrift-titel, serif); color: var(--rg-hell); letter-spacing: .04em; transform: translateY(-8%); text-shadow: 0 1px 2px #000; }
.rang-emblem.gross { --g: 84px; } .rang-emblem.mittel { --g: 60px; } .rang-emblem.klein { --g: 30px; } .rang-emblem.mini { --g: 20px; }
.rang-emblem.mini b { font-size: 8px; } .rang-emblem.puls { animation: rang-puls .9s ease-out; }
@keyframes rang-puls { 0% { transform: scale(.5); filter: brightness(2.4) drop-shadow(0 0 18px var(--rg-hell)); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.rang-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; border: 1px solid rgba(197,162,103,.4); background: rgba(12,11,9,.6); font: 600 13px var(--schrift-ui); color: #efe6d4; white-space: nowrap; }
.rang-chip[hidden] { display: none; }
.rang-karte { position: relative; margin: 4px 0 16px; padding: 16px 18px 18px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--rg) 55%, transparent); overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--rg) 26%, transparent), transparent 60%), linear-gradient(160deg, #1d1a15, #0f0e0c); box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06); }
.rang-karte-kopf { display: flex; justify-content: space-between; gap: 10px; font: 600 12px var(--schrift-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rang-karte-kopf .rang-art { color: var(--rg-hell); }
.rang-karte-mitte { display: flex; align-items: center; gap: 18px; margin: 14px 0 16px; }
.rang-stand { flex: 1 1 auto; min-width: 0; display: grid; gap: 7px; }
.rang-stand b { font: 600 26px/1.1 var(--schrift-titel); letter-spacing: .04em; color: var(--rg-hell); }
.rang-stand small { color: var(--muted); font-size: 13px; }
.rang-balken { height: 10px; border-radius: 6px; background: rgba(255,255,255,.09); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.6); }
.rang-balken u { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--rg-dunkel), var(--rg), var(--rg-hell)); transition: width 1.1s cubic-bezier(.2,.8,.2,1); text-decoration: none; }
.rang-zahlen { flex: none; display: flex; gap: 18px; margin: 0; } .rang-zahlen div { display: grid; gap: 2px; text-align: center; }
.rang-zahlen dt { font: 600 11px var(--schrift-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } .rang-zahlen dd { margin: 0; font: 600 20px var(--schrift-titel); color: #f1e3c4; }
.rang-karte-fuss { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .rang-karte-fuss small { color: var(--muted); font-size: 13px; flex: 1 1 200px; }
.rang-spielen { min-width: 240px; background: linear-gradient(180deg, color-mix(in srgb, var(--rg) 85%, #fff), var(--rg) 55%, var(--rg-dunkel)); color: #14100a; border-color: var(--rg-hell); text-shadow: none; font-weight: 700; }
.rang-spielen:disabled { filter: grayscale(.7); opacity: .6; }
.arena-zwischen { margin: 6px 0 8px; font: 600 13px var(--schrift-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rang-reiter { margin-top: 18px; }
.rang-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rang-liste li { display: grid; grid-template-columns: 34px 40px minmax(0, 1fr) auto 30px 56px; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.035); }
.rang-liste li.ich { background: rgba(232,196,106,.16); box-shadow: inset 0 0 0 1px rgba(232,196,106,.55); }
.rang-liste em { font: 600 15px var(--schrift-titel); font-style: normal; color: var(--muted); text-align: center; }
.rang-liste li.p1 em { color: #f3c64f; font-size: 19px; } .rang-liste li.p2 em { color: #d5dde6; font-size: 17px; } .rang-liste li.p3 em { color: #c98552; font-size: 17px; }
.rang-liste b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } .rang-liste small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.rang-liste .rang-p { text-align: right; font: 600 16px var(--schrift-titel); color: #f1e3c4; }
.rang-bild { width: 40px; height: 40px; display: grid; place-items: center; } .rang-bild .rahmen-halter, .rang-bild .hub-avatar { width: 32px; height: 32px; } .rang-bild .hub-avatar img, .rang-bild .hub-avatar span { width: 100%; height: 100%; }
.rang-eigen { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(232,196,106,.12); font-size: 14px; }
.rang-chronik { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rang-chronik li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.035); border-left: 4px solid #8a3a3a; }
.rang-chronik li.sieg { border-left-color: #5fae6b; }
.rang-ausgang { font: 600 14px var(--schrift-titel); letter-spacing: .06em; color: #e08a8a; } .rang-chronik li.sieg .rang-ausgang { color: #9fd9a6; }
.rang-kampf { min-width: 0; display: grid; gap: 3px; } .rang-kampf b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rang-kampf small { color: var(--muted); font-size: 12px; }
.rang-teams { display: flex; align-items: center; gap: 8px; } .rang-teams img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: top; border: 1px solid rgba(255,255,255,.2); margin-right: -6px; }
.rang-teams span { display: flex; padding-right: 6px; } .rang-teams i { font-style: normal; font-size: 11px; color: var(--muted); }
.rang-delta { display: grid; justify-items: end; font: 700 20px var(--schrift-titel); color: #e08a8a; } .sieg .rang-delta, .rang-ergebnis .rang-delta { color: #9fd9a6; }
.rang-delta small { font: 600 11px var(--schrift-ui); color: var(--muted); white-space: nowrap; }
.rang-lohn { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rang-lohn li { display: grid; grid-template-columns: 30px minmax(70px, 1fr) auto 44px 48px auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid transparent; }
.rang-lohn li.meiner { border-color: var(--rg); background: color-mix(in srgb, var(--rg) 12%, transparent); } .rang-lohn b { color: var(--rg-hell); }
.rang-lohn-s { font: 600 16px var(--schrift-titel); color: #d9c2ff; white-space: nowrap; } .rang-lohn em { font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--rg-hell); }
.rang-lohn .kos-bild { width: 44px; height: 44px; display: grid; place-items: center; } .rang-lohn .w20-box { width: 38px; height: 38px; } .rang-lohn .w20-box svg { width: 100%; height: 100%; }
.rang-lohn .rahmen-halter, .rang-lohn .hub-avatar { width: 32px; height: 32px; } .rang-lohn .hub-avatar img, .rang-lohn .hub-avatar span { width: 100%; height: 100%; }
.rang-ergebnis { margin: 16px auto 4px; max-width: 460px; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--rg) 55%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--rg) 16%, #14110d), #0f0e0c); text-align: left; animation: rang-rein .5s ease-out both; }
@keyframes rang-rein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rang-ergebnis-reihe { display: flex; align-items: center; gap: 14px; } .rang-ergebnis .rang-stand b { font-size: 21px; }
.rang-delta.gross { font-size: 30px; } .rang-ergebnis.minus .rang-delta { color: #e08a8a; }
.rang-wechsel { margin: 0 0 10px; text-align: center; font: 600 17px var(--schrift-titel); letter-spacing: .06em; color: var(--rg-hell); }
.rang-ergebnis.ab .rang-wechsel { color: #e08a8a; } .rang-ergebnis.auf { box-shadow: 0 0 26px color-mix(in srgb, var(--rg) 45%, transparent); }
.profil-rang { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) {
  .rang-karte { padding: 14px; } .rang-karte-mitte { flex-wrap: wrap; gap: 12px; } .rang-emblem.gross { --g: 64px; } .rang-stand b { font-size: 21px; }
  .rang-zahlen { width: 100%; justify-content: space-between; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.08); } .rang-spielen { min-width: 0; width: 100%; }
  .rang-liste li { grid-template-columns: 26px 36px minmax(0, 1fr) 26px 48px; gap: 8px; padding: 6px 8px; } .rang-liste small { display: none; }
  .rang-chronik li { grid-template-columns: minmax(0, 1fr) auto; } .rang-ausgang { grid-column: 1 / -1; }
  .rang-lohn li { grid-template-columns: 26px minmax(0, 1fr) auto 40px 44px; gap: 8px; } .rang-lohn em { grid-column: 1 / -1; }
  .rang-chip > span:not(.rang-emblem) { display: none; } .rang-chip { padding: 3px 5px; }
}

/* Handy-Kampf: Kacheln mit fester Höhe (Namen werden nicht mehr abgeschnitten). Ab neun Aktionen fünf je Reihe, ab elf drei Reihen. */
.kh-raster { grid-auto-rows: 68px; max-height: 142px; align-content: start; }
.kh-raster.viele { grid-template-columns: repeat(5, 1fr); gap: 5px; }
.kh-raster.dreireihig { max-height: 216px; }
.kh-k { min-height: 0; height: 100%; padding: 4px 3px; grid-template-rows: auto auto auto; overflow: hidden; }
.kh-k i { line-height: 1; font-size: 18px; }
.kh-k b { font-size: 11px; line-height: 1.14; max-height: 2.3em; display: block; -webkit-line-clamp: unset; overflow: hidden; hyphens: auto; overflow-wrap: anywhere; }
.kh-k small { line-height: 1.1; }
.kh-raster.viele .kh-k b { font-size: 10px; } .kh-raster.viele .kh-k i { font-size: 16px; } .kh-raster.viele .kh-k small { font-size: 9px; }

/* ---------- Arena mit Ranked: kurze Seite – Team als Knopf oben rechts, drei Reiter ---------- */
.arena-kopf.kurz { align-items: center; margin-bottom: 6px; } .arena-kopf.kurz h1 { margin: 0; }
.arena-team-knopf small { opacity: .75; font-weight: 400; margin-left: 4px; }
.arena-ohne-team { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; padding: 10px 12px; border-radius: 10px; background: rgba(232,196,106,.12); border: 1px solid rgba(232,196,106,.4); font-size: 14px; }
.arena-tabs { margin: 8px 0 12px; } .arena-tabs button { font-size: 16px; padding: 10px 16px; flex: 1 1 0; text-align: center; }
.arena-punkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #e0434f; vertical-align: 2px; margin-left: 4px; box-shadow: 0 0 6px #e0434f; }
.arena-tab .rang-karte { margin-top: 0; }
.arena-rangliste { max-height: min(62vh, 640px); overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.rang-unter { display: flex; gap: 6px; margin: 2px 0 10px; }
.rang-unter button { flex: none; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(197,162,103,.35); background: none; color: var(--muted); font: 600 13px var(--schrift-ui); cursor: pointer; }
.rang-unter button.an { background: rgba(232,196,106,.16); color: #f6dc9c; border-color: rgba(232,196,106,.6); }
.rang-reiter { margin-top: 12px; }
.admin-saison { display: grid; gap: 12px; } .admin-saison .sm-admin-form { margin-top: 4px; }
.admin-saison-karte { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 6px; }
.admin-saison-karte b { color: #f6dc9c; font: 600 18px var(--schrift-titel); }

/* ---------- Erfahrungspakete: Händler, Heldenkarte, Kaufdialog ---------- */
.shop-felder { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.shop-feld-bilder.xp { display: flex; align-items: flex-end; justify-content: center; gap: 6px; color: #9fd9ff; text-shadow: 0 0 14px rgba(120,200,255,.8); }
.shop-feld-bilder.xp i { font-style: normal; font-size: 26px; } .shop-feld-bilder.xp i:nth-child(2) { font-size: 40px; } .shop-feld-bilder.xp i:nth-child(3) { font-size: 54px; }
.shop-zurueck { margin-bottom: 10px; }
.xp-pakete, .xp-wahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.xp-paket { display: grid; justify-items: center; gap: 3px; padding: 12px 8px; border-radius: 12px; border: 1px solid rgba(143,196,255,.35); background: linear-gradient(170deg, rgba(40,70,110,.45), rgba(14,16,22,.85)); color: #efe6d4; font: inherit; text-align: center; }
button.xp-paket { cursor: pointer; } .xp-paket.an { border-color: #9fd9ff; box-shadow: 0 0 0 2px rgba(159,217,255,.45), 0 0 18px rgba(120,200,255,.25); }
.xp-paket:disabled { opacity: .45; cursor: default; }
.xp-zeichen { font-size: 22px; color: #9fd9ff; text-shadow: 0 0 10px rgba(120,200,255,.8); line-height: 1; }
.xp-paket b { font: 600 20px var(--schrift-titel); color: #dff1ff; } .xp-paket small { color: var(--muted); font-size: 12px; }
.xp-preis { font: 600 16px var(--schrift-titel); color: #d9c2ff; white-space: nowrap; } .xp-preis i { font-style: normal; }
.xp-paket em { font-style: normal; font-size: 11px; color: var(--muted); }
.xp-helden { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.xp-held { display: grid; gap: 4px; justify-items: center; padding: 8px 6px; border-radius: 10px; border: 1px solid rgba(176,138,69,.35); background: rgba(20,18,14,.8); color: #efe6d4; cursor: pointer; font: 400 13px var(--schrift-ui); }
.xp-held img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 8px; } .xp-held:disabled { opacity: .5; cursor: default; } .xp-held small { color: var(--muted); font-size: 11px; }
.xp-held:hover:not(:disabled) { border-color: #9fd9ff; }
.xp-kauf { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0 4px; padding: 12px 14px; border: 1px solid rgba(143,196,255,.3); border-radius: 12px; background: rgba(30,50,80,.25); }
.xp-kauf .sm-stufe { flex: 1 1 220px; margin: 0; }
.xp-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; } .xp-kopf img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; object-position: top; border: 1px solid rgba(176,138,69,.5); }
.xp-kopf > div { flex: 1 1 auto; min-width: 0; display: grid; gap: 6px; } .xp-kopf b { font: 600 20px var(--schrift-titel); color: #f6dc9c; } .xp-kopf .shop-stand { margin: 0; white-space: nowrap; }
.xp-menge { display: flex; align-items: center; gap: 12px; margin: 6px 0; } .xp-menge span { color: var(--muted); } .xp-menge b { min-width: 28px; text-align: center; font: 600 20px var(--schrift-titel); }
.xp-menge .btn { min-width: 40px; font-size: 18px; }
.xp-summe { margin: 8px 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 14px; line-height: 1.5; } .xp-fehlt { color: #e08a8a; }
.sm-xp-zeile[data-held-stufe] { cursor: pointer; }
@media (max-width: 520px) { .xp-pakete, .xp-wahl { gap: 6px; } .xp-paket { padding: 10px 4px; } .xp-paket b { font-size: 17px; } .xp-kopf img { width: 56px; height: 56px; } }
.shop-feld-bilder.xp img { width: 62px; height: 62px; border: 0; border-radius: 0; box-shadow: none; object-fit: contain; margin: 0 -4px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); } .shop-feld-bilder.xp img:nth-child(2) { width: 74px; height: 74px; } .shop-feld-bilder.xp img:nth-child(3) { width: 88px; height: 88px; }
.xp-truhe { width: 100%; max-width: 132px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.55)); }
.xp-wahl .xp-truhe { max-width: 84px; }
.xp-besitz { font-size: 12px; color: var(--muted); } .xp-besitz b { font-size: 16px; color: inherit; } .xp-besitz.hat { color: #bfe9c4; }
.xp-paket .xp-menge { margin: 4px 0 2px; gap: 8px; } .xp-paket .xp-menge b { font-size: 18px; min-width: 22px; color: #efe6d4; } .xp-paket .xp-menge .btn { min-width: 34px; padding: 4px 8px; }
.xp-paket .xp-kaufen { width: 100%; padding: 9px 6px; font-size: 14px; white-space: nowrap; } .xp-paket.leer { opacity: 1; } .xp-paket.leer .xp-truhe, .xp-paket.leer > b, .xp-paket.leer .xp-preis { opacity: .45; }
.xp-meldung { margin: 10px 0 0; }
.xp-warnung { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(232,170,80,.6); background: rgba(232,150,40,.14); color: #f3d9a8; font-size: 14px; line-height: 1.45; } .xp-warnung[hidden] { display: none; }
.arena-team h3 .arena-team-name { display: flex; flex-direction: column; gap: 3px; } .arena-team h3 .arena-team-rang { display: inline-flex; align-items: center; gap: 6px; color: #d9cdb4; font: 600 12px "Inter", sans-serif; letter-spacing: 0; text-transform: none; } .arena-team h3 .arena-team-rang span { color: inherit; font: inherit; }
@media (max-width: 620px) { .xp-pakete { grid-template-columns: 1fr; } .xp-pakete .xp-paket { grid-template-columns: 92px 1fr auto; grid-template-areas: "bild name preis" "bild klein besitz" "bild tag tag" "menge menge kauf"; justify-items: start; align-items: center; column-gap: 12px; padding: 10px 12px; }
  .xp-pakete .xp-truhe { grid-area: bild; max-width: 92px; } .xp-pakete .xp-paket > b { grid-area: name; white-space: nowrap; } .xp-pakete .xp-paket > small { grid-area: klein; } .xp-pakete .xp-preis { grid-area: preis; justify-self: end; } .xp-pakete .xp-besitz { grid-area: besitz; justify-self: end; }
  .xp-pakete .xp-paket > em { grid-area: tag; } .xp-pakete .xp-menge { grid-area: menge; } .xp-pakete .xp-kaufen { grid-area: kauf; width: auto; padding: 9px 14px; } }

/* Rechtliches (Startseite und Einstellungen) */
.my-recht { margin: 14px 0 0; text-align: center; font: 400 13px/1.5 var(--schrift-ui); color: #9c927f; }
.my-recht a { color: #c9b98f; text-decoration: underline; text-underline-offset: 2px; }

/* Auf der Startseite und im Dorf gibt es keine Kopfzeile (dort führt sie nirgends hin); im Abenteuer bleibt MYTHARA als Weg nach Hause */
body:has(#mythara:not([hidden])) header.top, body:has(#hub:not([hidden])) header.top { display: none; }
header.top { justify-content: flex-end; }

/* Als App vom Startbildschirm (ohne Browserleiste): Der Inhalt beginnt unter der Statusleiste des Handys – auch dort, wo es keine
   Kopfzeile gibt (Startseite, Dorf, Kampf). Oben fest verankerte Elemente rücken um denselben Betrag nach unten. */
@media (display-mode: standalone), (display-mode: fullscreen) {
  body { padding-top: env(safe-area-inset-top); }
  header.top { padding-top: 8px; }
  .toast { top: calc(14px + env(safe-area-inset-top)); }
  .arena-uhr, .tut-skip { top: calc(10px + env(safe-area-inset-top)); }
  body.kh-an .arena-uhr, body.kh-an .arena-aufgeben { top: calc(5px + env(safe-area-inset-top)); }
  body.kh-an.kh-log #log { top: calc(60px + env(safe-area-inset-top)); }
  .fx-zug { top: calc(90px + env(safe-area-inset-top)); }
}
