/* dialogs.css
   Fenster: Shop, Aussehen (aufklappbare Gruppen), Rangliste, Schließen-Knopf, Karten, Touch-Größen */
.lb{width:100%;border-collapse:collapse}.lb td{padding:6px 8px}.lb tr.me{background:#5eead433;font-weight:800}
.row b{width:96px}.row button.sw{width:30px;height:30px;padding:0;border:3px solid #0f0b2a}.row button.sw.on{border-color:#fff}.lb tr[data-p]{cursor:pointer}
#mw h3{font-size:1.05rem}
button{min-height:44px;min-width:44px;-webkit-tap-highlight-color:transparent;transition:transform .08s,filter .08s}button:active:not(:disabled){transform:scale(.96);filter:brightness(.92)}
.top span,.top button{min-height:44px;display:inline-flex;align-items:center}.row button.sw{width:44px;height:44px}
dialog{overscroll-behavior:contain}dialog h2{text-align:center;margin:0 0 10px;padding:0 48px}
.x{position:sticky;top:0;display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin:-8px 0 -44px -8px;padding:0;border-radius:50%;background:#ffffff26;color:var(--ink);z-index:2}.x svg{width:20px;height:20px}
#sdlg{width:min(94vw,580px)}#sdlg h3{margin:16px 0 8px;font-size:1rem;opacity:.9}.sg{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:116px;padding:10px 6px;border-radius:18px;background:#0f0b2a;color:var(--ink)}.card.on{background:var(--mint);color:#222}.card .ic{width:52px;height:52px}.cnm{font-size:.9rem}.cpr{font-size:.85rem;display:flex;align-items:center;gap:4px;opacity:.9}.cpr .ic{width:16px;height:16px}.lb th{font-size:.85rem}
@media(orientation:landscape) and (max-height:480px){.top span,.top button{min-height:40px}}
/* Abzeichen: Fenster, Karten, Fortschrittsbalken, Pop-up, Mini-Medaillen im Profil */
#adlg{width:min(94vw,640px)}#ag{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:8px}
.ac{display:flex;flex-direction:column;align-items:center;gap:3px;padding:10px 6px;border-radius:18px;background:#0f0b2a;color:var(--ink);text-align:center}.ac .md{width:56px;height:62px}.ac b{font-size:.92rem}.ac small{font-size:.74rem;opacity:.85;line-height:1.2}
.md.lk{filter:grayscale(1) brightness(.6);opacity:.55}.ac.lk b{opacity:.8}
.pb{width:86%;height:7px;border-radius:99px;background:#ffffff26;overflow:hidden}.pb i{display:block;height:100%;background:#5eead4;border-radius:99px}
#abz{position:absolute;top:calc(var(--hud,0px) + 44px);left:50%;translate:-50% 16px;opacity:0;visibility:hidden;z-index:70;display:flex;align-items:center;gap:10px;max-width:94%;padding:5px 16px 5px 8px;border-radius:22px;background:#0f0b2af0;color:var(--ink);border:2px solid #fbbf24;box-shadow:0 6px 22px #0008;transition:translate .4s cubic-bezier(.2,1.3,.4,1),opacity .3s,visibility 0s .4s;pointer-events:none}#abz.on{translate:-50% 0;opacity:1;visibility:visible;transition:translate .4s cubic-bezier(.2,1.3,.4,1),opacity .3s,visibility 0s}   /* v169: Toast gleitet nicht mehr von oben über Aufgabe/HUD, sondern blendet unterhalb ein */
#abz .md{width:40px;height:44px;flex:none}#abz div{display:flex;flex-direction:column;line-height:1.2}#abz small{color:#fbbf24;font-weight:800;font-size:.72rem}#abz b{font-size:1rem}#abz span{font-size:.78rem;opacity:.85}
.mm{display:flex;flex-wrap:wrap;gap:4px;justify-content:center}.mm .md{width:30px;height:33px}
#kh{margin:0 0 .6em;padding:.5em .7em;border-radius:10px;background:#fbbf2433;border:1px solid #fbbf24;font-size:.85em;line-height:1.35}#kh[hidden]{display:none}
#idlg p{margin:.5em 0;font-size:1.05rem;line-height:1.4}#idlg p b{color:#fbbf24}#msp{display:inline-flex;align-items:center;gap:4px;font-weight:800;margin-left:auto;margin-right:.6em}#msp svg{width:22px;height:22px}

/* v331 R3: Knopf „Drehen“ in der Aussehen-Vorschau (Rückansicht) */
#lpv{position:relative}.lrot{position:absolute;right:2px;bottom:0;padding:5px 13px;border:2px solid #fff;border-radius:999px;background:#4f46e5;color:#fff;font:800 .82rem system-ui,sans-serif;cursor:pointer;box-shadow:0 2px 6px #0005}.lrot:active{transform:scale(.95)}
/* v410 LD1: Laden nach Ausrüstungs-Plätzen (ui/laden.js) – hochkant: Figur mit Plätzen oben, Auswahl darunter; quer (responsive.css-Breite): Auswahl rechts daneben */
#shop .ld{display:grid;gap:12px}
.ld-fig{display:grid;grid-template-columns:auto minmax(110px,190px) auto;grid-template-areas:"l h r" ". u .";gap:6px 10px;justify-content:center;align-items:center;padding:8px;border-radius:16px;background:#ffffff0d}
.ld-fig>.ld-col:first-child{grid-area:l}.ld-held{grid-area:h;align-self:stretch;display:flex;align-items:center;justify-content:center}.ld-fig>.ld-col:nth-child(3){grid-area:r}.ld-unten{grid-area:u;display:flex;justify-content:center;gap:8px}
.ld-held svg{width:100%;height:auto;max-height:260px;filter:drop-shadow(0 4px 10px #0006)}
.ld-col{display:flex;flex-direction:column;gap:6px}
.ld-pl{position:relative;width:62px;height:62px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#0f0c29cc;border:2px solid #ffffff2e;box-shadow:inset 0 0 12px #0008;cursor:pointer;color:#fff}
.ld-pl .ic{width:40px;height:40px;margin-bottom:8px}.ld-pl small{position:absolute;left:0;right:0;bottom:2px;font-size:.58rem;font-weight:700;opacity:.75;text-align:center;line-height:1}
.ld-pl.an{border-color:var(--gold,#facc15)}.ld-pl.sel{outline:3px solid #5eead4;outline-offset:2px}.ld-pl:focus-visible{outline:3px solid #fff}
.ld-sil{display:flex;opacity:.2;filter:grayscale(1) brightness(1.6)}.ld-neu{position:absolute;top:4px;right:4px;width:9px;height:9px;border-radius:50%;background:#4ade80;box-shadow:0 0 6px #4ade80}
.ld-wahl .ld-tt{margin:0 0 6px;font-size:1.05rem}.ld-wahl h3{margin:8px 0 6px}
@media (orientation:landscape) and (min-width:640px){#shop .ld{grid-template-columns:auto 1fr;align-items:start}.ld-wahl{max-height:min(68vh,560px);overflow:auto;padding-right:4px}}
/* v413 LD4: hochkant immer mindestens 4 Karten nebeneinander (Spalte ≤ ein Viertel der Breite), Karten dafür kompakter */
@media (orientation:portrait){#sdlg .ld-wahl .sg{grid-template-columns:repeat(auto-fill,minmax(min(92px,calc((100% - 18px)/4)),1fr));gap:6px}
 #sdlg .ld-wahl .card{min-height:0;padding:6px 2px 5px;gap:2px}#sdlg .ld-wahl .card .ic{width:32px;height:32px}
 #sdlg .ld-wahl .cnm{font-size:clamp(.62rem,2.6vw,.8rem);line-height:1.1;overflow-wrap:anywhere;hyphens:auto}#sdlg .ld-wahl .cnm small{font-size:.9em}#sdlg .ld-wahl .cpr{font-size:clamp(.62rem,2.6vw,.8rem)}}
/* v434 UE1: Fenster-Überschrift Variante A – Goldschrift wie der Spieltitel (.wk-titel i) + Symbol davor (dialogs.js goldTitel).
   Umrandung per drop-shadow auf dem RUHENDEN Text-Element (kein -webkit-text-stroke: Safari zeichnet sonst Linien in die Buchstaben, v385) */
dialog h2 .tg{display:inline-block;font-weight:900;letter-spacing:.02em;background:linear-gradient(#fef08a,#fbbf24 55%,#f59e0b);-webkit-background-clip:text;background-clip:text;color:transparent;
 filter:drop-shadow(1.3px 0 0 #7c2d12) drop-shadow(-1.3px 0 0 #7c2d12) drop-shadow(0 1.3px 0 #7c2d12) drop-shadow(0 -1.3px 0 #7c2d12) drop-shadow(0 3px 0 #4c1d95)}
dialog h2 .tsym{font-style:normal;margin-right:.3em;font-size:.85em}
html dialog h2{font-size:1.6rem;line-height:1.2}html .ofen .okopf h2{font-size:1.7rem}html #wdlg h2{font-size:1.5rem}   /* html davor: schlägt die älteren Größen aus responsive.css (1,05–1,2 rem) */
@media(max-width:440px){html .ofen .okopf h2,html dialog h2{font-size:clamp(1.1rem,5.2vw,1.35rem);white-space:nowrap}}   /* einzeilig neben ✕ und Knopf */
@media(orientation:landscape) and (max-height:480px){html dialog h2,html .ofen .okopf h2{font-size:1.2rem}}
/* v434 HK1: Zauberladen auf dem Handy hochkant ohne Scrollbalken – Kopfzeile ohne Wörter (Münze/Blitz), Plätze kleiner, Figur kleiner */
@media(orientation:portrait) and (max-width:600px){
 #sco .sw{display:none}#sco{white-space:nowrap}
 .ld-pl{width:50px;height:50px}.ld-pl .ic{width:30px;height:30px;margin-bottom:9px}.ld-pl small{font-size:.54rem}
 .ld-fig{padding:6px;gap:4px 8px;grid-template-areas:"l h r" "l u r";align-items:stretch}.ld-col{gap:5px;justify-content:center}.ld-held svg{max-height:170px}.ld-unten{align-items:flex-end}   /* Waffe/Begleiter zwischen die Spalten unter die Figur */
}
@media(orientation:portrait) and (max-width:600px) and (max-height:700px){.ld-held svg{max-height:140px}#sdlg .ld-wahl .card .ic{width:26px;height:26px}#sdlg .ld-wahl .card{padding:3px 2px;gap:1px}#sdlg .ld-wahl .sg{gap:4px}#shop .ld{gap:8px}#sdlg{padding-top:10px;padding-bottom:10px}#sco{margin-bottom:2px!important}#sdlg .ld-wahl .cnm{line-height:1.05}}
