/* Dungeon „Schloss Big B“ · Etappe 4 Teil B (E-71): Kampf-Klarheit, Flügelstand, Beweise, Händler Vermieter Volker, Erfolge.
   Kampf-Klarheit nach dem Befund am Screenshot dungeon-e3/03-behauptung und dem Prüfer-Playtest #562: Im Kampf stapelten sich Raumtitel,
   Söldner-Sprechblasen, „NACHSATZ ABWARTEN!“, „IN FAHRT“, Zahlen und Namen in der Bildmitte. Vorbild WoW: Zonentitel nicht im Kampf,
   Raid-Warnung oben unter dem Bossrahmen, Procs als kleines Symbol am Helden, kein zweiter Rahmen für denselben Boss. */

/* 1 · Zonentitel wartet im Dungeon-Kampf (zone-announce.js wartet, bis der Kampf vorbei ist; ein schon laufender Titel verschwindet) */
body.dg-fight #gameShell .region-label.zone-show{opacity:0!important;visibility:hidden!important;transition:none!important}
body.dg-fight #gameShell #miniButton.zone-show .mm-plate{opacity:0}

/* 2 · Kampfrufe (IN FAHRT, SCHWUNG, UNTERBROCHEN, +EP) sitzen im Dungeon-Kampf rechts neben dem Helden, kleiner – nicht über ihm im
   Titelbereich. Im Bosskampf nur noch das Symbol (EP-Zahlen bleiben): der Bossbereich trägt dann nur Namen, Zahlen und Big Bs Blase. */
body.dg-fight #sct>.sct-note{left:34px;bottom:34px;width:170px;align-items:flex-start}
body.dg-fight #sct>.sct-note .sct-row{font-size:16px}
body.dg-fight #sct>.sct-note .sct-row canvas{width:16px;height:16px}
body.boss-fight #sct .sct-note .sct-row:not(.sct-xp)>:is(b,small){display:none}
body.boss-fight #sct .sct-note .sct-row:not(.sct-xp) canvas{width:20px;height:20px;filter:drop-shadow(0 0 3px #ffd77a) drop-shadow(0 1px 0 #1c1712)}

/* 3 · Zielrahmen weg, wenn der Boss das Ziel ist – der Bossrahmen zeigt ihn schon (am Handy seit Etappe 2, jetzt auch am Desktop) */
body.boss-target #targetPanel{display:none!important}

/* 4 · Große Kampfansage wie eine Raid-Warnung oben mittig unter dem Bossrahmen (boss-alerts.js setzt top), etwas kleiner */
.boss-announce{top:118px}
.boss-announce b{font-size:24px}
.boss-announce .dicon{width:24px!important;height:24px!important}

/* 5 · „Unterbrochen!“ – kurze grüne Rückmeldung auf der Warnleiste und in der Zauberleiste des Bossrahmens, dann erlischt sie */
.ba-row.ba-done{border-color:#8fe08a;background:#15301bee;animation:ba-done 1.3s ease-out both}
.ba-row.ba-done b{color:#d9f7cf}.ba-row.ba-done .ba-fill{background:#8fe08a33}
@keyframes ba-done{0%{opacity:0;transform:scale(1.04)}10%{opacity:1;transform:none}75%{opacity:1}100%{opacity:0}}
.bf-cast.bf-done{border-color:#8fe08a;background:#15301b}.bf-cast.bf-done b{color:#d9f7cf}.bf-cast.bf-done>i{background:#8fe08a33}
@media (prefers-reduced-motion:reduce){.ba-row.ba-done{animation:none}}
/* Kurzmeldungen (Ablehnungen, Aufhelfen) stehen im Bosskampf unter der Ansage statt auf dem Bossrahmen (WoW: Fehlerzeile unter der Raid-Warnung) */
@media(min-width:761px){body.boss-fight:not(.touch-mode) #toast{top:152px!important}}

/* ── Verfolgung im Dungeon: je Zeile Symbole, ein Wort, Zähler; jedes Symbol mit Tooltip (Prüfer-Playtest #562) */
.quest-panel .dg-track-ico{display:inline-grid;place-items:center;border-radius:5px;cursor:help}
.quest-panel .dg-track-ico:hover,.quest-panel .dg-track-ico:focus-visible{background:#f3cf7a22;outline:1px solid #f3cf7a66}
.quest-panel .dg-track-word{font:700 12px/1.1 var(--read);color:#d8c89a}
.quest-panel .dg-track-row .qt-count{margin-left:auto}
/* ── Eingangskarte: Flügel heute und Erfolge */
/* eine Zeile auch mit Talentpunkte-Chip: Chips der Eingangskarte etwas enger */
.dg-entry .dg-facts{gap:6px}.dg-entry .dg-facts .dg-chip{padding:0 8px 0 5px;gap:5px}
.dg-chip.dg-wings{gap:1px!important}.dg-chip.dg-wings b{margin-left:4px}
.dg-chip.dg-feats{gap:3px!important}
/* ── Figur-Fenster: Titel als Medaille am Namen */
.dg-title-badge{display:inline-grid;place-items:center;vertical-align:middle;margin-left:4px;cursor:help;border-radius:6px}
.dg-title-badge:hover,.dg-title-badge:focus-visible{background:#f3cf7a22;outline:1px solid #f3cf7a88}
/* ── Händler Vermieter Volker: Einzelfenster ohne Scrollen, Waren als Felder mit Symbol und Preis */
.dv-vendor{display:flex;flex-direction:column;gap:10px}
.dv-head{display:flex;align-items:center;gap:10px}
.dv-face{width:52px;height:52px;border:2px solid #c5a268;border-radius:10px;overflow:hidden;background:#31493f;cursor:help}
.dv-face canvas{width:48px;height:48px;display:block}
.dv-marks{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px 0 8px;border:1px solid #c5a26888;border-radius:999px;background:#15261e;cursor:help}
.dv-marks b{font:800 18px/1 var(--read);color:#ffe6a0}
.dv-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.dv-offer{display:grid;grid-template-rows:auto auto;gap:4px;justify-items:center;padding:6px 4px;border:1px solid #c5a26855;border-radius:10px;background:#0f1a15}
.dv-item{all:unset;position:relative;display:grid;place-items:center;width:52px;height:52px;border:1px solid #c5a26877;border-radius:8px;background:#15261e;cursor:help}
.dv-item canvas{width:44px;height:44px}
.dv-item small{position:absolute;right:3px;bottom:1px;font:800 11px/1 var(--read);color:var(--cream)}
.dv-item .dv-owned{position:absolute;right:-4px;top:-4px}
.dv-buy{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:64px;height:30px;padding:0 8px;border:1px solid #f3cf7a;border-radius:999px;background:#2a2412;cursor:pointer}
.dv-buy b{font:800 14px/1 var(--read);color:#ffe6a0}
.dv-buy:hover,.dv-buy:focus-visible{background:#3a3218;box-shadow:0 0 0 2px #f3cf7a55}
.dv-buy[aria-disabled=true]{border-color:#6b5a3a;background:#1c1712;cursor:default}.dv-buy[aria-disabled=true] b{color:#a4a29a}
.dv-offer.owned{opacity:.6}.dv-offer.locked{opacity:.45}
.dv-empty{display:grid;place-items:center;height:60px;grid-column:1/-1}
.touch-mode .dv-vendor{gap:8px}.touch-mode .dv-face{width:44px;height:44px}.touch-mode .dv-face canvas{width:40px;height:40px}
.touch-mode .dv-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.touch-mode .dv-offer{gap:8px;padding:2px}
.touch-mode .dv-item{width:44px!important;height:44px!important;min-width:0!important;max-width:44px!important}.touch-mode .dv-item canvas{width:38px;height:38px}
.touch-mode .dv-buy{height:44px!important;min-width:0!important;width:calc(100% - 4px)!important;padding:0 4px}
/* Boss spricht im Bossrahmen (Zeile unter der Zauberleiste) statt als Blase in der Welt */
.bf-say{display:flex;align-items:center;gap:5px;min-width:0;margin-top:3px;padding:1px 6px 1px 2px;border-radius:6px;background:#1c1712aa}
.bf-say[hidden]{display:none}
.bf-say q{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:italic 700 12px/1.3 var(--read);color:#f3e6cc;quotes:'„' '“'}
.touch-mode .bf-say q{font-size:11px}
/* Erinnerungskarte tritt im Dungeon-Kampf und in der Boss-Arena zurück (kommt danach wieder); neue warten (memory-seen.js) */
body:is(.dg-fight,.dg-arena) .memory-card{visibility:hidden!important}
/* ---------- Dungeon-Fix 3 (Big-B-Abnahme #721) ---------- */
/* Erfolg und Titel als kurze Einblendung oben mittig (milestone-ui.js feat): klein, einzeilig, Symbol davor – nicht nur als Chatzeile */
.milestone.milestone-feat{top:64px;min-width:0;padding:8px 26px 10px}
.milestone-feat .milestone-eyebrow{font-size:13px}
.milestone-feat .milestone-title{display:flex;align-items:center;justify-content:center;gap:10px;margin:4px 0 0;font-size:30px;white-space:nowrap}
.milestone-feat .milestone-feat-icon{flex:none;image-rendering:pixelated}
.touch-mode .milestone.milestone-feat{top:calc(64px + var(--safe-top))}
.touch-mode .milestone-feat .milestone-title{font-size:24px}
/* Verfolgung nach Big B: Endtruhe und Hinterausgang als anklickbare Zeilen */
.quest-panel .dg-track-end{cursor:pointer}
.quest-panel .dg-track-end span:last-child{font:700 12px/1.1 var(--read);color:#f0d9b0}
/* Todesbildschirm: nach dem Kampf ist „Hier aufstehen“ der gute Weg (grüner Rand statt Aufgabe) */
.death-screen .ds-wake.ds-here{box-shadow:0 0 0 2px #6fbf4a inset}
/* Warnleiste (Dungeon-Fix 3): Handlung mit Pfeil und Taste des Helden, zweite Antwort nach „/“, Name klein daneben (entfällt statt
   abgeschnitten zu werden); Platz am Desktop wählt boss-alerts.js (ba-top = von oben nach unten, dringendste Zeile oben) */
.boss-alerts.ba-top{flex-direction:column}
.ba-row{grid-template-columns:26px auto minmax(0,1fr) auto}
.ba-row .ba-act{display:inline-flex;align-items:center;gap:5px;min-width:0;white-space:nowrap}
.ba-row .ba-act b.ba-alt{font-size:12px;color:#e8dcc0}
.ba-row .ba-or{font:800 12px/1 var(--read);color:#cbb98f;font-style:normal}
.ba-row .ba-arrow{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:5px;background:#f3cf7a;color:#1c1712;font-style:normal}
.ba-row .ba-arrow .ui-glyph{width:16px;height:16px;stroke-width:2.6}
.ba-row small{text-overflow:clip}
.ba-row small.ba-cut{visibility:hidden}
.ba-row.ba-lie-t .ba-act b{text-transform:uppercase;color:#fff}
.ba-row.ba-lie-t small{font-style:italic;color:#e6d8f2}
.ba-row.ba-hold .ba-act b{color:#bfe6b0}
.touch-mode .boss-alerts.ba-right .ba-row{grid-template-columns:26px minmax(0,1fr) auto}
.touch-mode .boss-alerts.ba-right .ba-row .ba-act{overflow:hidden}
/* Fehlerzeile im Bosskampf einzeilig direkt unter dem Bossrahmen (boss-alerts.js setzt --bf-bottom), nicht über dem Kampf */
body.boss-fight:not(.touch-mode) #gameShell .error-line{top:calc(var(--bf-bottom,104px) + 4px);font-size:14px}
/* Handy: keine Tastenkappen (die Kampfknöpfe tragen die Kniffe), die Handlung bleibt */
.touch-mode .ba-row kbd{display:none}
/* ── Dungeon-Fix 4 (Nachprüfung #726) ─────────────────────────────────────────────────────────────────────────────────────────── */
/* Warnleiste: „bleiben“ mit Halten-Symbol (grün) und der sicheren Seite als Kappe; Söldner-Ziel nur als Info (gedämpft, keine Taste) */
.ba-row .ba-arrow.ba-arrow-hold{background:#9ed17a;color:#10200c}
.ba-row kbd.ba-side{background:#1f3a18;border-color:#6fbf4a;color:#dff5cf;text-transform:none}
.ba-row.ba-info{border-color:#6b5a3a88;background:#121a16cc}
.ba-row.ba-info .ba-act b{color:#cbb98f;text-transform:none;font-weight:700}
.ba-row.ba-info.ba-now{border-color:#8a7a5a;background:#1a1a14e6}.ba-row.ba-info .ba-fill{background:#8a7a5a44}
.ba-row.ba-pull{border-color:#9ed17a99}.ba-row.ba-pull .ba-fill{background:#6fbf4a55}
/* Beim Nachsatz blinkt die Richtungszeile einmal auf – die Handlung steht im selben Takt wie der Nachsatz */
.ba-row.ba-fresh{animation:ba-fresh .55s ease-out}
@keyframes ba-fresh{0%{box-shadow:0 0 0 3px #fff0c8,0 0 18px #ffd46a;transform:scale(1.04)}100%{box-shadow:none;transform:none}}
@media (prefers-reduced-motion:reduce){.ba-row.ba-fresh{animation:none}}
.bf-chip b[hidden]{display:none}
/* Todesrückblick: die letzten Treffer als Symbolzeilen, der letzte unten */
.death-screen .ds-recap{display:grid;gap:1px;min-width:300px;max-width:390px;padding:4px 8px 5px;border:1px solid #5a2a20;border-radius:4px;background:#1a0f0ce6;cursor:help}
.death-screen .ds-recap-sum{display:flex;align-items:center;gap:6px;margin-bottom:2px;font:800 13px/1.2 Nunito,sans-serif;color:#ffb39e}
.death-screen .ds-recap-sum .ui-glyph{width:15px;height:15px;color:#ff8a6e}
.death-screen .ds-recap-row{display:grid;grid-template-columns:15px minmax(0,1fr) auto 46px 46px;align-items:center;gap:6px;height:19px;font:700 12px/1 Nunito,sans-serif;color:#e9d6bd}
.death-screen .ds-recap-row .ui-glyph{width:14px;height:14px;color:#ff8a6e}
.death-screen .ds-recap-row.is-ground .ui-glyph{color:#ff5a3c}
.death-screen .ds-recap-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800}
.death-screen .ds-recap-row small{color:#d7b571;font-size:11px;white-space:nowrap}
.death-screen .ds-recap-row em{font-style:normal;text-align:right;color:#ff9a80;font-weight:900}
.death-screen .ds-recap-row i{font-style:normal;text-align:right;color:#a99a86;font-size:11px}
.death-screen .ds-recap-row:last-child{color:#fff}.death-screen .ds-recap-row:last-child em{color:#ff6a50}
/* Kampf aufgeben: zweitrangig, der erste Klick macht ihn scharf (Laufbalken), erst der zweite gibt auf */
.death-screen .ds-wake.ds-giveup{position:relative;overflow:hidden;min-height:36px;padding:6px 16px;font-size:14px}
.death-screen .ds-wake.ds-giveup.ds-armed{border-color:#ff8a6e;color:#ffd2c4;background:#3a1a14}
.death-screen .ds-wake.ds-giveup::after{content:'';position:absolute;left:0;bottom:0;height:3px;width:calc(var(--armed,0) * 100%);background:#ff8a6e}
/* Beutefenster: Rückfrage der Endtruhe beim Verlassen */
.loot-leave-ask{display:flex;align-items:center;gap:6px;margin:0 0 6px;padding:4px 8px;border:1px solid #6fbf4a;border-radius:4px;background:#14200f;color:#dff5cf;font:800 14px/1.2 Nunito,sans-serif;cursor:help}
.loot-leave-ask .ui-glyph{width:20px;height:20px;color:#9ed17a}
/* Mehrere Erfolge auf einmal: eine Einblendung, Namen nebeneinander (umbrechend), kleiner */
.milestone-feat .milestone-title.is-many{flex-wrap:wrap;gap:6px 18px;max-width:min(900px,86vw);white-space:normal;font-size:22px}
.milestone-feat .milestone-feat-item{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.touch-mode .milestone-feat .milestone-title.is-many{font-size:17px}
