/* Menüs (UI). Dunkel, warm, edel. Schrift Cinzel liegt selbst in fonts/ (kein Google Fonts, SIL OFL: fonts/OFL.txt). */
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/cinzel-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/cinzel-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #efe7d8; --muted: #a3988a; --dim: #6e665c;
  --gold: #f0c674; --gold2: #c9953f; --gold3: #7a5a26;
  --line: rgba(240, 198, 116, .2); --line2: rgba(240, 198, 116, .42);
  --panel1: rgba(36, 28, 27, .93); --panel2: rgba(15, 12, 14, .95);
  --red: #ff5a4a; --green: #6fdc8c; --shard: #8fe3ff; --xp: #b07cff;
  --r: 14px;
  --disp: 'Cinzel', Georgia, 'Times New Roman', serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

#ui { font: 15px/1.4 var(--body); color: var(--ink); -webkit-font-smoothing: antialiased; }
/* CrazyGames-Pflicht: keine Lupe/kein Kontextmenü beim langen Tippen; Eingabefelder bleiben markierbar */
body { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea { -webkit-user-select: text; user-select: text; }
#ui * { box-sizing: border-box; }
:where(#ui) button { font-family: inherit; color: inherit; }
:where(#ui) :where(h1, h2, h3, p, ul) { margin: 0; padding: 0; }
:where(#ui) ul { list-style: none; }
#ui * { scrollbar-width: thin; scrollbar-color: rgba(240, 198, 116, .35) transparent; }
#ui ::-webkit-scrollbar { width: 8px; height: 8px; }
#ui ::-webkit-scrollbar-track { background: transparent; }
#ui ::-webkit-scrollbar-thumb { background: rgba(240, 198, 116, .3); border-radius: 9px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; overflow: visible; }
.ic path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic path.f { fill: currentColor; fill-opacity: .22; }
.grow { flex: 1; }
.muted { color: var(--muted); font-size: .9em; }
kbd { display: inline-block; min-width: 1.8em; padding: 2px 6px; border-radius: 5px; background: linear-gradient(#2e2521, #191311); border: 1px solid rgba(240, 198, 116, .35); border-bottom-width: 2px; font: 700 12px/1.35 var(--body); color: var(--gold); text-align: center; }

/* ---------- Bildschirme + Übergänge ---------- */
.scr { position: absolute; inset: 0; overflow: hidden; animation: scrIn .32s ease both; }
.scr.leave { animation: scrOut .26s ease both; }
@keyframes scrIn { from { opacity: 0; } }
@keyframes scrOut { to { opacity: 0; } }
.scr.fresh .panel, .scr.fresh .slide { animation: panelIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.scr.fresh .slide-up { animation: upIn .5s cubic-bezier(.2, .8, .2, 1) both; }
/* Panels mit eigener Einblendung: unter .fresh dieselbe Animation, sonst startet sie nach 0,7 s (fresh weg) neu */
.scr.fresh :is(.pause-box, .set-box, .koop-box, .fr-box) { animation: popIn .35s cubic-bezier(.2, 1.3, .4, 1) both; }
.scr.fresh .welcome { animation: popIn .35s both; }
@keyframes panelIn { from { opacity: 0; transform: translateX(28px); } }
@keyframes upIn { from { opacity: 0; transform: translateY(24px); } }

.scr-hub { background: linear-gradient(90deg, transparent 38%, rgba(6, 5, 8, .62) 72%), linear-gradient(180deg, rgba(6, 5, 8, .6), transparent 16%); }
.scr-helden, .scr-ausruestung { background: radial-gradient(ellipse 55% 70% at 26% 58%, rgba(8, 6, 10, .2), rgba(6, 5, 8, .88) 78%); }
.scr-raid { background: radial-gradient(ellipse 80% 55% at 50% 0%, color-mix(in srgb, var(--bc, #d9502b) 24%, transparent), transparent 70%), rgba(6, 5, 8, .86); transition: background .4s; }
.scr-ergebnis { background: rgba(5, 4, 7, .9); }
.scr-ergebnis.win { background: radial-gradient(ellipse 70% 50% at 50% 12%, rgba(255, 170, 60, .2), transparent 70%), rgba(5, 4, 7, .9); }
.scr-ergebnis.lose { background: radial-gradient(ellipse 70% 50% at 50% 12%, rgba(200, 30, 30, .18), transparent 70%), rgba(5, 4, 7, .92); }
.scr-pause, .scr-einstellungen { background: rgba(5, 4, 7, .72); backdrop-filter: blur(4px); }
.scr-titel { background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(40, 18, 8, .3), rgba(5, 4, 7, .94) 72%); }

/* ---------- Panels + Knöpfe ---------- */
.panel { background: linear-gradient(180deg, var(--panel1), var(--panel2)); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 230, 180, .07), 0 24px 60px rgba(0, 0, 0, .55); position: relative; }
.panel::before { content: ''; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .75; pointer-events: none; }
.panel h3 { font: 700 13px var(--disp); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.panel h3::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line2), transparent); }
.panel h3 small { font: 600 11px var(--body); letter-spacing: .04em; text-transform: none; color: var(--muted); }

.btn { font: 650 15px/1.1 var(--body); color: var(--ink); background: linear-gradient(180deg, #3b302b, #221b1a); border: 1px solid var(--line2); border-radius: 11px;
  padding: 12px 18px; cursor: pointer; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 14px rgba(0, 0, 0, .4); transition: transform .12s, filter .15s, box-shadow .2s, border-color .2s; }
.btn:hover { filter: brightness(1.16); border-color: var(--gold); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 20px rgba(240, 198, 116, .22), 0 4px 14px rgba(0, 0, 0, .4); }
.btn:active { transform: translateY(1px) scale(.97); filter: brightness(.94); }
.btn:disabled { opacity: .45; cursor: default; filter: grayscale(.5); transform: none; box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn .ic { width: 1.2em; height: 1.2em; }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 9px; }
.btn.big { font-size: 18px; padding: 15px 24px; }
.btn.ghost { background: rgba(0, 0, 0, .3); }
.btn.primary { font: 900 17px/1.1 var(--disp); color: #2b1a05; letter-spacing: .06em; overflow: hidden; border-color: #ffe7b2;
  background: linear-gradient(180deg, #ffe6a8 0%, #f3bd57 46%, #c98a2c 100%); text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(120, 70, 10, .5), 0 0 26px rgba(255, 180, 70, .32), 0 6px 18px rgba(0, 0, 0, .5); }
.btn.primary:hover { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(120, 70, 10, .5), 0 0 40px rgba(255, 190, 90, .6), 0 6px 18px rgba(0, 0, 0, .5); }
.btn.primary::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); animation: shine 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn.huge { font-size: 24px; padding: 18px 36px; border-radius: 15px; letter-spacing: .1em; }
.btn.huge .ic { width: 1em; height: 1em; }
.btn.danger { background: linear-gradient(180deg, #5c2020, #351111); border-color: rgba(255, 110, 100, .5); }
.btn.danger:hover { border-color: #ff8a7a; box-shadow: 0 0 18px rgba(255, 80, 60, .3); }
.btn.video { background: linear-gradient(180deg, #2c3b5a, #18213a); border-color: rgba(120, 180, 255, .5); }
.btn.video .ic { color: #9fd0ff; }
.btn .cost { display: inline-flex; align-items: center; gap: 3px; color: var(--shard); font-weight: 800; }
.btn .dot, .ccard .dot { position: absolute; top: -6px; right: -6px; width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff9a9a, #e01b1b 60%);
  box-shadow: 0 0 0 2px #171012, 0 0 12px #ff3030; animation: dotP 1.5s ease-in-out infinite; }
@keyframes dotP { 50% { transform: scale(1.2); box-shadow: 0 0 0 2px #171012, 0 0 18px #ff4040; } }
.icon-btn { width: 46px; height: 46px; padding: 0; }
.icon-btn .ic { width: 22px; height: 22px; }

.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 99px; background: rgba(8, 6, 8, .62); border: 1px solid var(--line); font-size: 13px; color: var(--muted); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.pill b { font-size: 16px; color: var(--ink); }
.pill .ic { color: var(--gold); width: 18px; height: 18px; }
.pill.shards .ic { color: var(--shard); filter: drop-shadow(0 0 4px rgba(143, 227, 255, .6)); }

/* ---------- Kopfleisten ---------- */
.hub-top, .sub-top { position: absolute; left: 0; right: 0; top: 0; height: 66px; display: flex; align-items: center; gap: 12px; padding: 0 24px; z-index: 3; }
.sub-top { background: linear-gradient(180deg, rgba(6, 5, 8, .9), rgba(6, 5, 8, 0)); }
.brand { font: 900 22px var(--disp); letter-spacing: .08em; color: var(--gold); text-shadow: 0 0 22px rgba(240, 198, 116, .45); }
.sub-top h2 { font: 700 24px var(--disp); color: var(--gold); letter-spacing: .08em; text-shadow: 0 0 18px rgba(240, 198, 116, .35); }
/* Navigation wie Brawl Stars: Laschen bündig in den oberen Ecken (Zurück links, Hub rechts), X oben rechts in kleinen Fenstern */
.sub-top { padding-left: 0; padding-right: 0; }
.nav-tab { align-self: stretch; width: 96px; flex: none; display: grid; place-items: center; cursor: pointer; color: #fff; border: 0; padding: 0;
  background: linear-gradient(180deg, #3a3340, #221d27); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35), 0 4px 14px rgba(0, 0, 0, .5); border-radius: 0 0 16px 0; transition: filter .15s, transform .1s; }
.nav-tab.home { border-radius: 0 0 0 16px; }
.nav-tab .ic path { stroke-width: 3.2; }
.nav-tab .ic { width: 40px; height: 40px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6)); }
.nav-tab:hover { filter: brightness(1.25); }
.nav-tab:active, .x-close:active { transform: scale(.94); }
.x-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 52px; height: 46px; display: grid; place-items: center; cursor: pointer; color: #fff; padding: 0;
  border: 2px solid #ff8a7a; border-radius: 10px; background: linear-gradient(180deg, #e8473a, #b8261d); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25), 0 4px 12px rgba(0, 0, 0, .5); transition: filter .15s, transform .1s; }
.x-close .ic path { stroke-width: 3.6; }
.x-close .ic { width: 30px; height: 30px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .4)); }
.x-close:hover { filter: brightness(1.15); }

/* ---------- Titel ---------- */
.title-bg { position: absolute; inset: 0; }
.title-bg .iw, .title-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.title-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 24px; }
.title-over { display: flex; align-items: center; gap: 16px; font: 700 13px var(--disp); letter-spacing: .42em; color: var(--gold); text-transform: uppercase; opacity: .9; animation: upIn 1s .2s both; }
.title-over span { width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.title-over span:last-child { transform: scaleX(-1); }
.title { font: 900 clamp(52px, 9.5vw, 128px)/1.02 var(--disp); letter-spacing: .03em; color: transparent;
  background: linear-gradient(180deg, #fff6dc 0%, #ffd77e 38%, #d18b2e 72%, #8a5418 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 34px rgba(255, 160, 50, .45)) drop-shadow(0 5px 0 rgba(0, 0, 0, .65)); animation: titleIn 1.4s cubic-bezier(.2, .8, .2, 1) both; }
/* Ladebildschirm (index.html #lade), gleiche Optik wie das Titelbild */
#lade { position: fixed; inset: 0; z-index: 60; background: #07060a; }
#lade[hidden] { display: none; }
#app:has(.scr-titel) #welt { visibility: hidden; }   /* Titelbild ist halb durchsichtig: Hub-Held dahinter nicht zeigen */
#lade.weg { opacity: 0; transition: opacity .4s; pointer-events: none; }   /* weich weg: Titelbild blendet darunter ein, kein Schwarz-Blitz */
#lade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.lade-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 24px; }
.lade-bar { width: min(320px, 60vw); height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.lade-bar i.fest { animation: none; transition: width .2s; }
.lade-bar i { display: block; width: 40%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold3), var(--gold)); animation: ladeLauf 1.2s ease-in-out infinite; }
@keyframes ladeLauf { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes titleIn { from { opacity: 0; transform: scale(1.12); letter-spacing: .16em; } }
.title-sub { font-size: 19px; color: #d9cdb7; letter-spacing: .03em; margin-bottom: 22px; animation: upIn 1s .45s both; }
.title-wrap .btn.huge { padding: 20px 64px; font-size: 28px; animation: upIn .9s .7s both, breathe 2.8s 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(120, 70, 10, .5), 0 0 50px rgba(255, 180, 70, .6), 0 6px 18px rgba(0, 0, 0, .5); } }
.title-hint { color: var(--muted); font-size: 13px; margin-top: 8px; animation: upIn 1s 1s both; }
.embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.embers i { position: absolute; left: var(--x); bottom: -12px; width: var(--s); height: var(--s); border-radius: 50%; background: #ffc066; box-shadow: 0 0 8px 2px rgba(255, 130, 30, .8); opacity: 0; animation: ember var(--d) linear var(--l) infinite; }
@keyframes ember { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .95; } 75% { opacity: .5; } 100% { transform: translate(var(--w), -104vh); opacity: 0; } }

/* ---------- Bilder mit Ersatz ---------- */
.iw { position: absolute; inset: 0; display: grid; place-items: center; }
.iw > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.iw.ok > img { opacity: 1; }
.iw.ok > :not(img) { visibility: hidden; }

/* ---------- Item-Symbole ---------- */
.ii { --s: 58px; --rc: #b8b8b8; width: var(--s); height: var(--s); border-radius: 11px; position: relative; display: inline-grid; place-items: center; flex: none; color: var(--rc); overflow: hidden;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--rc) 38%, transparent), rgba(0, 0, 0, .55) 78%), #130f11;
  border: 2px solid var(--rc); box-shadow: 0 0 14px color-mix(in srgb, var(--rc) 40%, transparent), inset 0 0 14px rgba(0, 0, 0, .6); }
.ii .fb { display: grid; place-items: center; width: 100%; height: 100%; }
.ii .fb .ic { width: 58%; height: 58%; filter: drop-shadow(0 0 6px var(--rc)); }
.ii .iw > img { object-fit: contain; padding: 6%; }
.ii.lg { --s: 86px; border-radius: 14px; }
.ii.sm { --s: 42px; border-radius: 9px; border-width: 1.5px; }
.ii.empty { --rc: #5a5048; border-style: dashed; color: #5a5048; box-shadow: none; background: rgba(0, 0, 0, .35); }
.ii.empty .ic { width: 52%; height: 52%; opacity: .7; }

.icard { --rc: #b8b8b8; border-radius: 14px; padding: 16px; border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent);
  background: radial-gradient(ellipse 90% 70% at 0% 0%, color-mix(in srgb, var(--rc) 18%, transparent), transparent 70%), rgba(0, 0, 0, .3);
  box-shadow: 0 0 24px color-mix(in srgb, var(--rc) 16%, transparent); }
.icard-h { display: flex; gap: 14px; align-items: center; }
/* Name + Aufwertung immer in einer Zeile: Schrift schrumpft mit der Länge (--len aus ui.js) */
.icard-h > div { flex: 1; min-width: 0; container-type: inline-size; }
.icard-n { white-space: nowrap; font: 700 min(20px, 100cqi / (var(--len) * .66))/1.15 var(--disp); color: var(--rc); text-shadow: 0 0 16px color-mix(in srgb, var(--rc) 45%, transparent); }
.icard-n .up { font: 800 .75em var(--body); color: var(--green); }
.icard-m { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stats { margin-top: 12px !important; display: grid; gap: 4px; }
.stats li { display: flex; justify-content: space-between; padding: 5px 10px; border-radius: 7px; background: rgba(255, 255, 255, .035); font-size: 14px; }
.stats li span { color: var(--muted); }
.stats li.main { background: color-mix(in srgb, var(--rc) 12%, transparent); }
.stats li.main b { color: #fff; }
.relic-desc { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: rgba(255, 154, 42, .09); border-left: 3px solid #ff9a2a; color: #f2dcc0; font-style: italic; }
.icard.pulse { animation: cardPulse .6s ease; }
@keyframes cardPulse { 40% { box-shadow: 0 0 50px var(--rc); transform: scale(1.02); } }

/* ---------- Hub ---------- */
.hub-panel { position: absolute; right: 26px; top: 80px; bottom: 26px; width: clamp(340px, 38vw, 520px); padding: 24px; display: flex; flex-direction: column; gap: 16px; overflow: auto; }
.hub-panel > *, .side > * { flex-shrink: 0; }
.hero-head, .side-head { display: flex; align-items: center; gap: 14px; }
.role-badge { --cc: #fff; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--cc);
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--cc) 40%, transparent), rgba(0, 0, 0, .5)); border: 1.5px solid var(--cc); box-shadow: 0 0 18px color-mix(in srgb, var(--cc) 40%, transparent); }
.role-badge .ic { width: 28px; height: 28px; filter: drop-shadow(0 0 5px var(--cc)); }
.hero-id { flex: 1; min-width: 0; }
.hero-name { font: 900 30px/1.05 var(--disp); color: var(--cc); text-shadow: 0 0 22px color-mix(in srgb, var(--cc) 50%, transparent); letter-spacing: .02em; }
.hero-role { font-size: 13px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
.lvl-badge { width: 60px; height: 60px; flex: none; display: grid; place-items: center; align-content: center; border-radius: 50%; border: 2px solid var(--gold);
  background: radial-gradient(circle at 50% 30%, #4a3720, #1a120c); box-shadow: 0 0 18px rgba(240, 198, 116, .35), inset 0 0 10px rgba(0, 0, 0, .6); line-height: 1; }
.lvl-badge small { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lvl-badge b { font: 900 25px var(--disp); color: #fff; }
.xp { display: grid; gap: 5px; }
.xp span { font-size: 12px; color: var(--muted); text-align: right; }
.xpbar { height: 12px; border-radius: 99px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; position: relative; }
.xpbar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #6b3fe0, #c79bff); box-shadow: 0 0 14px var(--xp); position: relative; }
.xpbar i::after { content: ''; position: absolute; inset: 0 0 50% 0; background: rgba(255, 255, 255, .25); border-radius: 99px; }
.xpbar.big { height: 18px; }
.hero-desc { color: #cfc3b0; font-size: 14px; }
.power-row { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; }
.power { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 11px; background: rgba(240, 198, 116, .08); border: 1px solid var(--line); }
.power .ic { color: var(--gold); width: 22px; height: 22px; filter: drop-shadow(0 0 6px rgba(240, 198, 116, .6)); }
.power span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.power b { font: 900 24px var(--disp); color: #fff; }
.mini-stats { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; font-size: 13px; font-weight: 700; align-content: center; }
.mini-stats span { display: flex; justify-content: space-between; gap: 6px; }
.mini-stats small { color: var(--muted); font-weight: 500; }
.slots4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mslot { background: none; border: 0; padding: 0; cursor: pointer; display: grid; justify-items: center; gap: 5px; transition: transform .15s; }
.mslot:hover { transform: translateY(-3px); }
.mslot .ii { --s: 62px; }
.mslot small { font-size: 11px; color: var(--muted); }
.tal-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tchip { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 6px; border-radius: 9px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); color: var(--muted); transition: border-color .15s, background .15s; }
.tchip:hover { border-color: var(--line2); }
.tchip.on { color: var(--cc); border-color: color-mix(in srgb, var(--cc) 40%, transparent); background: color-mix(in srgb, var(--cc) 10%, transparent); }
.tchip.free { color: #fff; border-color: #e0302a; background: rgba(224, 48, 42, .18); animation: chipP 1.6s infinite; }
@keyframes chipP { 50% { box-shadow: 0 0 16px rgba(255, 58, 48, .7); } }
.tchip .ic { width: 13px; height: 13px; flex: none; }
.raid-btn { margin-top: auto; width: 100%; padding: 18px 20px; }
.raid-btn span { display: grid; gap: 4px; }
.raid-btn small { font: 700 12px var(--body); letter-spacing: .06em; opacity: .7; }
.raid-btn .ic { width: 30px; height: 30px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 .btn { padding: 14px 10px; }

/* ---------- Helden ---------- */
.side { position: absolute; right: 26px; top: 76px; bottom: 26px; width: clamp(360px, 40vw, 540px); padding: 22px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.side .hero-name { font-size: 26px; }
.class-row { position: absolute; left: 26px; bottom: 26px; right: calc(clamp(360px, 40vw, 540px) + 52px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ccard { --cc: #fff; position: relative; height: 196px; border-radius: 14px; padding: 0; cursor: pointer; overflow: visible; text-align: left;
  border: 1.5px solid color-mix(in srgb, var(--cc) 40%, #2a2220); background: linear-gradient(180deg, #221a19, #110d0f);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: transform .18s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.ccard:hover { transform: translateY(-5px); border-color: var(--cc); box-shadow: 0 0 24px color-mix(in srgb, var(--cc) 35%, transparent), 0 10px 30px rgba(0, 0, 0, .5); }
.ccard.view { border-color: var(--cc); box-shadow: 0 0 0 1px var(--cc), 0 0 30px color-mix(in srgb, var(--cc) 45%, transparent); transform: translateY(-6px); }
.ccard.sel::before { content: ''; position: absolute; inset: -5px; border-radius: 17px; border: 2px solid var(--gold); box-shadow: 0 0 18px rgba(240, 198, 116, .5); pointer-events: none; }
.cport { position: relative; flex: 1; border-radius: 12px 12px 0 0; overflow: hidden; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--cc) 45%, transparent), color-mix(in srgb, var(--cc) 8%, #0c0a0c) 75%); }
.cport .fb { color: var(--cc); display: grid; place-items: center; }
.cport .fb .ic { width: 58px; height: 58px; filter: drop-shadow(0 0 14px var(--cc)); }
.cinfo { padding: 9px 10px 11px; display: grid; gap: 2px; }
.cinfo b { font: 700 13.5px var(--disp); color: var(--cc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cinfo small { font-size: 11.5px; color: var(--muted); }
.ccard.locked { filter: grayscale(.85); }
.ccard.locked .cport { opacity: .45; }
.ccard .lock { position: absolute; inset: 0 0 auto 0; height: calc(100% - 52px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; text-align: center; color: #ddd; }
.ccard .lock .ic { width: 26px; height: 26px; color: var(--gold); }
.ccard .lock small { font-size: 11px; line-height: 1.25; }
.ccard .lock .pnum { color: var(--muted); }
.pbar { width: 80%; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--gold); }
.badge-new { position: absolute; top: 8px; left: 8px; font: 900 10px var(--body); letter-spacing: .1em; padding: 3px 7px; border-radius: 6px; background: #e0302a; color: #fff; box-shadow: 0 0 12px #ff3a30; }
.sel-tag { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 3px; font: 800 10px var(--body); padding: 3px 7px 3px 4px; border-radius: 6px; background: var(--gold); color: #2b1a05; letter-spacing: .05em; }
.sel-tag .ic { width: 12px; height: 12px; }
.sel-tag .ic path { stroke-width: 3; }
.tiers { display: grid; gap: 10px; }
.tier { display: grid; grid-template-columns: 50px 1fr 1fr; gap: 8px; position: relative; }
.tier-l { display: grid; place-items: center; align-content: center; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); line-height: 1; }
.tier-l b { font: 900 20px var(--disp); color: var(--gold); }
.tier-l small { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 2px; }
.tal { position: relative; text-align: left; padding: 10px 12px; border-radius: 10px; cursor: pointer; display: grid; gap: 3px; align-content: start;
  background: rgba(255, 255, 255, .035); border: 1.5px solid rgba(255, 255, 255, .08); transition: border-color .15s, background .15s, transform .12s; }
.tal:hover:not(:disabled) { border-color: var(--line2); background: rgba(255, 255, 255, .06); }
.tal:active:not(:disabled) { transform: scale(.98); }
.tal b { font-size: 14px; }
.tal small { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.tal.on { border-color: var(--cc, var(--gold)); background: linear-gradient(180deg, color-mix(in srgb, var(--cc, #f0c674) 20%, transparent), color-mix(in srgb, var(--cc, #f0c674) 6%, transparent)); box-shadow: 0 0 18px color-mix(in srgb, var(--cc, #f0c674) 25%, transparent); }
.tal.on b { color: #fff; }
.tal-check { position: absolute; top: 7px; right: 7px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--cc, var(--gold)); color: #120c08; }
.tal-check .ic { width: 13px; height: 13px; }
.tal-check .ic path { stroke-width: 3; }
.tal:disabled { cursor: default; opacity: .38; }
/* Talentweg: eigene Zeile, farbig abgesetzt, Symbol je Weg */
.tier.weg { padding: 6px; margin-bottom: 4px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--cc, #f0c674) 50%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--cc, #f0c674) 22%, transparent), color-mix(in srgb, var(--cc, #f0c674) 6%, transparent)); }
.tier.weg .tier-l { background: color-mix(in srgb, var(--cc, #f0c674) 25%, rgba(0, 0, 0, .4)); border-color: color-mix(in srgb, var(--cc, #f0c674) 60%, transparent); }
.tier.weg .tier-l small { color: #fff; }
.tier.weg .tal { grid-template-columns: 30px 1fr; column-gap: 8px; align-content: center; }   /* Inhalt mittig: Symbol in beiden Wegen auf gleicher Höhe */
.tier.weg .tal b, .tier.weg .tal small { grid-column: 2; }
.weg-ic { grid-row: 1 / span 2; align-self: center; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(0, 0, 0, .35); color: var(--cc, var(--gold)); }
.weg-ic .ic { width: 20px; height: 20px; }
.tal.on .weg-ic { background: var(--cc, var(--gold)); color: #120c08; }
.tier.weg .tier-lock { left: 52px; }
.tier-free { position: absolute; right: -4px; top: -8px; font: 900 10px var(--body); letter-spacing: .08em; background: #e0302a; color: #fff; padding: 2px 7px; border-radius: 6px; box-shadow: 0 0 10px #ff3a30; animation: dotP 1.5s infinite; }
.tier-lock { position: absolute; left: 58px; right: 0; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--gold); pointer-events: none;
  background: rgba(10, 8, 10, .45); border-radius: 10px; text-shadow: 0 1px 4px #000; }
.abils { display: grid; gap: 6px; }
.abil { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .05); }
.ab-ic { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: var(--cc); border: 1px solid color-mix(in srgb, var(--cc) 50%, transparent);
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--cc) 30%, transparent), rgba(0, 0, 0, .5)); }
.ab-ic .ic { width: 24px; height: 24px; filter: drop-shadow(0 0 4px var(--cc)); }
.ab-t { display: grid; gap: 1px; min-width: 0; }
.ab-t b { font-size: 14px; }
.ab-t em { font-style: normal; font: 800 10px var(--body); letter-spacing: .08em; color: #2b1a05; background: var(--gold); padding: 1px 6px; border-radius: 5px; margin-left: 4px; vertical-align: 1px; }
.ab-t small { font-size: 12.5px; color: var(--muted); }
.ab-cd { font-size: 12px; color: #cfc3b0; display: flex; align-items: center; gap: 4px; white-space: nowrap; }

/* ---------- Ausrüstung ---------- */
.eq { position: absolute; top: 76px; left: 26px; right: 26px; bottom: 26px; display: grid; grid-template-columns: 270px minmax(0, 1fr) 360px; grid-template-areas: 'slots inv det'; gap: 16px; }
.eq-slots { grid-area: slots; padding: 18px; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.eq-inv { grid-area: inv; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.eq-detail { grid-area: det; padding: 18px; overflow: hidden auto; display: flex; flex-direction: column; gap: 12px; }
.eslot { display: flex; gap: 10px; align-items: center; text-align: left; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; }
.eslot:hover { background: rgba(255, 255, 255, .06); }
.eslot.sel { border-color: var(--gold); background: rgba(240, 198, 116, .08); }
.eslot .ii { --s: 54px; }
.es-t { display: grid; gap: 1px; min-width: 0; }
.es-t small { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.es-t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-t em { font-style: normal; font-size: 11.5px; color: #cfc3b0; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eq-slots .power { margin-top: auto; justify-content: center; }
.inv-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .05); flex-wrap: wrap; }
.tab { border: 0; background: none; padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; transition: color .15s, background .15s; }
.tab:hover { color: var(--ink); }
.tab.on { background: linear-gradient(180deg, #4a3a2a, #2c221c); color: var(--gold); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px var(--line2); }
.inv-bar .btn { margin-left: auto; }
.inv-grid { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); grid-auto-rows: max-content; gap: 10px; padding: 4px 6px 4px 2px; align-content: start; }
.itile { position: relative; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; transition: transform .14s; }
.itile:hover { transform: translateY(-3px) scale(1.04); z-index: 1; }
.itile .ii { --s: 100%; width: 100%; height: 100%; }
.itile.sel .ii { box-shadow: 0 0 0 2px #fff, 0 0 22px var(--rc); }
.t-up { position: absolute; top: 4px; right: 6px; font: 900 12px var(--body); color: var(--green); text-shadow: 0 1px 2px #000; }
.t-il { position: absolute; bottom: 4px; left: 6px; font: 800 10px var(--disp); color: rgba(255, 255, 255, .8); text-shadow: 0 1px 2px #000; }
.t-eq { --cc: #fff; position: absolute; bottom: 4px; right: 4px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: #0e0b0c; border: 1.5px solid var(--cc); color: var(--cc); }
.t-eq .ic { width: 12px; height: 12px; }
.t-new { position: absolute; top: -5px; left: -5px; font: 900 9px var(--body); letter-spacing: .08em; padding: 2px 5px; border-radius: 5px; background: #e0302a; color: #fff; box-shadow: 0 0 10px #ff3a30; }
.inv-foot { font-size: 12px; color: var(--muted); text-align: right; }
.empty-msg { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 40px 16px; color: var(--muted); }
.empty-msg .ic { width: 46px; height: 46px; color: var(--gold3); }
.empty-msg b { color: var(--ink); font-size: 16px; }
.note { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 9px 12px; border-radius: 9px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.note.ok { color: var(--green); border-color: rgba(111, 220, 140, .25); background: rgba(111, 220, 140, .06); }
.cmp { border-radius: 11px; padding: 10px 12px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .06); display: grid; gap: 4px; }
.cmp-h { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
/* Ausrüstung: Vergleich als dritte Spalte der Werte */
.icard .cmp-h { margin: 10px 0 -6px; text-align: right; }
.stats.vs li { display: grid; grid-template-columns: minmax(0, 1fr) auto 5.2em; gap: 8px; }
.stats li em.d { font-style: normal; font-weight: 700; text-align: right; }
.stats li.tot { background: none; border-top: 1px solid rgba(255, 255, 255, .08); border-radius: 0; font-weight: 700; }
.pos { color: var(--green); }
.neg { color: #ff6b6b; }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acts .btn { padding: 12px 10px; font-size: 14px; min-width: 0; }
.acts .btn.primary { grid-column: 1 / -1; font-size: 18px; padding: 14px; }
.acts .btn.primary ~ .btn:last-child:nth-child(even) { grid-column: 1 / -1; }
.hint { font-size: 12px; color: var(--muted); }

/* ---------- Raid ---------- */
.raid { position: absolute; top: 76px; left: 26px; right: 26px; bottom: 26px; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 16px; }
.boss-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; }
.bcard { --bc: #d9502b; position: relative; height: 150px; border-radius: 14px; overflow: hidden; cursor: pointer; padding: 0; text-align: left; border: 1.5px solid color-mix(in srgb, var(--bc) 45%, #2a2220);
  background: #0e0b0d; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: transform .18s, box-shadow .2s, border-color .2s; }
.bcard:hover { transform: translateY(-4px); border-color: var(--bc); }
.bcard.sel { border-color: var(--bc); box-shadow: 0 0 0 1px var(--bc), 0 0 36px color-mix(in srgb, var(--bc) 50%, transparent), 0 10px 30px rgba(0, 0, 0, .5); transform: translateY(-4px); }
.bport { position: absolute; inset: 0; background: radial-gradient(circle at 70% 40%, color-mix(in srgb, var(--bc) 75%, #fff 0%), color-mix(in srgb, var(--bc) 30%, #0a0809) 55%, #080608 100%); }
/* Ausschnitt je Boss: Kopf sichtbar (Bilder quadratisch, Karte breit) */
.bcard[data-v=gorthak] .iw > img { object-position: 50% 36%; }
.bcard[data-v=ysra] .iw > img { object-position: 50% 6%; }
.bcard[data-v=nhal] .iw > img { object-position: 50% 30%; }
.bport .fb { display: grid; place-items: center; justify-items: end; padding-right: 26px; }
.bport .fb b { font: 900 100px/1 var(--disp); color: rgba(255, 255, 255, .17); text-shadow: 0 0 40px var(--bc); }
.bshade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 6, 8, .85), rgba(8, 6, 8, .2) 70%); }
.binfo { position: absolute; left: 18px; bottom: 16px; right: 18px; display: grid; gap: 2px; }
.binfo small { font-size: 11px; color: rgba(255, 255, 255, .65); letter-spacing: .12em; text-transform: uppercase; }
.binfo b { font: 900 30px/1.05 var(--disp); color: #fff; text-shadow: 0 0 20px var(--bc), 0 2px 0 rgba(0, 0, 0, .6); }
.pips { display: flex; gap: 6px; margin-top: 6px; }
.pip { width: 10px; height: 10px; transform: rotate(45deg); border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .4); }
.pip.on.normal { background: #e8dfcf; border-color: #fff; }
.pip.on.heroic { background: #5aa9ff; border-color: #bfe0ff; box-shadow: 0 0 8px #5aa9ff; }
.pip.on.mythic { background: #ff9a2a; border-color: #ffd9a8; box-shadow: 0 0 8px #ff9a2a; }
.bcard.locked .bport { filter: grayscale(1) brightness(.45); }
.bcard.locked .binfo { opacity: .3; }
.block { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: rgba(5, 4, 6, .55); color: #ddd; font-weight: 700; font-size: 13px; }
.block .ic { width: 30px; height: 30px; color: var(--gold); }
.raid-det { --bc: #d9502b; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; padding: 24px 26px; overflow: auto; border-color: color-mix(in srgb, var(--bc) 35%, transparent); }
.rd-info, .rd-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rd-name { font: 900 30px/1.1 var(--disp); color: var(--bc); text-shadow: 0 0 26px color-mix(in srgb, var(--bc) 55%, transparent); }
.rd-sub { color: #cfc3b0; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rd-sub .ic { color: var(--bc); }
.mech { display: grid; gap: 8px; }
.mech li { position: relative; padding: 8px 12px 8px 30px; border-radius: 9px; background: rgba(255, 255, 255, .035); font-size: 14px; }
.mech li::before { content: ''; position: absolute; left: 12px; top: 14px; width: 7px; height: 7px; transform: rotate(45deg); background: var(--bc); box-shadow: 0 0 8px var(--bc); }
.dtabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 13px; background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .06); }
.dtab { --dc: #e8dfcf; border: 1.5px solid transparent; background: none; padding: 10px 6px; border-radius: 9px; cursor: pointer; font: 700 14px var(--disp); color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; transition: all .15s; }
.dtab.heroic { --dc: #5aa9ff; }
.dtab.mythic { --dc: #ff9a2a; }
.dtab:hover { color: var(--dc); }
.dtab.on { color: #fff; border-color: var(--dc); background: linear-gradient(180deg, color-mix(in srgb, var(--dc) 30%, transparent), color-mix(in srgb, var(--dc) 8%, transparent)); box-shadow: 0 0 18px color-mix(in srgb, var(--dc) 35%, transparent); text-shadow: 0 0 10px var(--dc); }
.dtab.locked { opacity: .45; }
.dtab .ic { width: 14px; height: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { display: grid; padding: 6px 11px; border-radius: 9px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); font-weight: 800; font-size: 15px; }
.chips small { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.extra { margin-top: 8px !important; font-size: 13.5px; padding: 8px 12px; border-radius: 9px; background: rgba(255, 255, 255, .03); color: #cfc3b0; }
.extra.heroic { border-left: 3px solid #5aa9ff; border-radius: 0 9px 9px 0; }
.extra.mythic { border-left: 3px solid #ff9a2a; border-radius: 0 9px 9px 0; }
.extra b { color: #fff; }
.loot { display: flex; flex-wrap: wrap; gap: 8px; }
.lt { position: relative; }
.lt.owned::after { content: ''; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2px solid #120e10; }
[data-tip]:hover::before { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: pre-line; width: max-content; max-width: 240px;
  padding: 8px 11px; border-radius: 9px; background: #0d0a0c; border: 1px solid var(--line2); box-shadow: 0 8px 24px rgba(0, 0, 0, .6); font-size: 12.5px; line-height: 1.35; color: var(--ink); z-index: 10; pointer-events: none; text-align: left; }
.rec { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); padding: 10px 14px; border-radius: 10px; background: rgba(0, 0, 0, .3); }
.rec b { color: #fff; font-size: 16px; }
.rec .ic { color: var(--gold); }
.rec .sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
.start { margin-top: auto; width: 100%; }
.lockmsg { text-align: center; color: var(--gold); font-weight: 700; font-size: 13px; }

/* ---------- Ergebnis ---------- */
.res { position: absolute; inset: 0; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 16px 0; }
.res > * { width: min(940px, 100%); }
.res-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 18px; align-items: start; }
.res-grid.one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.res-l { display: grid; gap: 12px; }
.res-r { display: grid; gap: 10px; justify-items: center; }
.res-banner { position: relative; text-align: center; padding: 10px 0 4px; }
.rays { position: absolute; left: 50%; top: 50%; width: 680px; height: 680px; margin: -340px 0 0 -340px; border-radius: 50%; pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 0deg, rgba(255, 200, 100, .22) 0 6deg, transparent 6deg 18deg); mask: radial-gradient(circle, #000 0%, transparent 62%); -webkit-mask: radial-gradient(circle, #000 0%, transparent 62%); animation: spin 30s linear infinite, fadeIn 1.2s both; }
.lose .rays { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } }
.res { overflow-x: hidden; }
.res-title { position: relative; font: 900 clamp(56px, 8.5vw, 104px)/1 var(--disp); letter-spacing: .06em; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(180deg, #fff6dc, #ffd77e 45%, #c9822b); filter: drop-shadow(0 0 36px rgba(255, 170, 60, .55)) drop-shadow(0 5px 0 rgba(0, 0, 0, .6)); animation: slam .8s cubic-bezier(.2, 1.4, .3, 1) both; }
.lose .res-title { background-image: linear-gradient(180deg, #ffd0c8, #ff5a4a 50%, #8a1a14); filter: drop-shadow(0 0 30px rgba(255, 50, 40, .45)) drop-shadow(0 5px 0 rgba(0, 0, 0, .6)); font-size: clamp(48px, 8vw, 92px); }
@keyframes slam { from { opacity: 0; transform: scale(2.2); letter-spacing: .3em; } 60% { opacity: 1; } }
.res-sub { position: relative; margin-top: 8px; font: 700 17px var(--disp); color: #e8dccb; letter-spacing: .05em; animation: upIn .6s .4s both; }
.d-normal { color: #e8dfcf; } .d-heroic { color: #5aa9ff; } .d-mythic { color: #ff9a2a; }
.badges { position: relative; display: flex; gap: 8px; justify-content: center; margin-top: 10px; min-height: 0; }
.badge { font: 900 12px var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; animation: pop .5s 1s cubic-bezier(.2, 1.5, .4, 1) both; }
.badge.gold { background: linear-gradient(180deg, #ffe6a8, #d99a3a); color: #2b1a05; box-shadow: 0 0 20px rgba(255, 190, 80, .6); }
@keyframes pop { from { opacity: 0; transform: scale(.3); } }
.res-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stile { padding: 12px 14px; border-radius: 12px; background: linear-gradient(180deg, rgba(40, 32, 30, .8), rgba(18, 14, 16, .85)); border: 1px solid var(--line); display: grid; gap: 2px; animation: upIn .5s both; }
.stile small { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.stile small .ic { color: var(--gold); }
.stile b { font: 900 24px var(--disp); color: #fff; }
.res-xp { --cc: #fff; display: flex; gap: 14px; align-items: center; padding: 14px 18px; animation: upIn .5s .9s both; }
.res-xp .role-badge { width: 48px; height: 48px; }
.xp-main { flex: 1; display: grid; gap: 7px; }
.xp-top { display: flex; align-items: baseline; gap: 12px; }
.xp-top > b { font: 700 18px var(--disp); color: var(--cc); }
.xp-top .lvl { color: var(--muted); font-size: 14px; }
.xp-top .lvl b { color: #fff; font-size: 18px; display: inline-block; }
.xp-top .lvl b.bump { animation: bump .6s cubic-bezier(.2, 1.6, .4, 1); color: var(--gold); }
@keyframes bump { 40% { transform: scale(1.9); text-shadow: 0 0 20px var(--gold); } }
.xpgain { margin-left: auto; color: var(--xp); font-weight: 900; }
.xp-txt { font-size: 12px; color: var(--muted); text-align: right; }
.res-xp.lvlflash { animation: lvlFlash .8s ease; }
@keyframes lvlFlash { 30% { box-shadow: 0 0 0 2px var(--gold), 0 0 50px rgba(240, 198, 116, .6); } }
.lvlups { display: grid; gap: 8px; }
.lvlup { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; border-radius: 12px; font: 900 20px var(--disp); color: var(--gold); letter-spacing: .06em;
  background: linear-gradient(90deg, transparent, rgba(240, 198, 116, .16), transparent); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); animation: pop .5s cubic-bezier(.2, 1.5, .4, 1) both; text-shadow: 0 0 18px rgba(240, 198, 116, .6); }
.lvlup small { font: 700 13px var(--body); color: #fff; letter-spacing: .02em; text-shadow: none; padding: 4px 10px; border-radius: 99px; background: #e0302a; box-shadow: 0 0 12px #ff3a30; }
.sec { font: 700 13px var(--disp); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); text-align: center; animation: fadeIn .5s 1.3s both; }
.chests { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; min-height: 150px; }
.chest { position: relative; width: 170px; height: 150px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; animation: upIn .6s 1.4s both; }
.chest.later { animation: upIn .6s both; }
.chest-glow { position: absolute; inset: 10px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 100, .45), transparent 65%); animation: glowP 1.6s ease-in-out infinite; }
@keyframes glowP { 50% { transform: scale(1.15); opacity: .7; } }
.chest svg { position: relative; width: 130px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); animation: wobble 2.2s ease-in-out 2s infinite; transform-origin: 50% 90%; }
@keyframes wobble { 0%, 70%, 100% { transform: none; } 76% { transform: rotate(-5deg); } 82% { transform: rotate(5deg); } 88% { transform: rotate(-3deg); } 94% { transform: rotate(2deg); } }
.chest:hover svg { filter: drop-shadow(0 0 18px rgba(255, 200, 100, .7)) drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); }
.chest .lid { transform-origin: 14px 44px; transition: transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.chest.opening .lid { transform: rotate(-32deg) translateY(-6px); }
.chest.opening svg { animation: none; }
.chest-hint { position: absolute; bottom: -6px; font: 800 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); text-shadow: 0 0 10px rgba(0, 0, 0, .9); }
.reveal { position: relative; width: min(360px, 100%); animation: reveal .7s cubic-bezier(.2, 1.3, .4, 1) both; }
.reveal::before { content: ''; position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: repeating-conic-gradient(color-mix(in srgb, var(--rc) 40%, transparent) 0 8deg, transparent 8deg 22deg); mask: radial-gradient(circle, #000, transparent 60%); -webkit-mask: radial-gradient(circle, #000, transparent 60%); animation: spin 18s linear infinite, fadeIn .6s both; }
@keyframes reveal { from { opacity: 0; transform: scale(.4) rotate(-6deg); filter: brightness(3); } }
.reveal .icard { background: radial-gradient(ellipse 90% 70% at 0% 0%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 70%), rgba(14, 10, 12, .96); box-shadow: 0 0 40px color-mix(in srgb, var(--rc) 40%, transparent); }
.reveal .new-tag { position: absolute; top: -10px; right: 12px; font: 900 11px var(--body); letter-spacing: .12em; padding: 3px 9px; border-radius: 6px; background: var(--rc); color: #120c08; }
.shard-reveal { display: grid; place-items: center; gap: 6px; padding: 20px 30px; border-radius: 14px; background: rgba(143, 227, 255, .07); border: 1px solid rgba(143, 227, 255, .3); color: var(--shard); font: 900 22px var(--disp); animation: reveal .6s both; }
.shard-reveal .ic { width: 40px; height: 40px; filter: drop-shadow(0 0 10px var(--shard)); }
.shard-reveal small { font: 600 12px var(--body); color: var(--muted); }
.shards-gain { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--shard); font-weight: 800; font-size: 16px; animation: fadeIn .5s 1.6s both; }
.shards-gain .ic { filter: drop-shadow(0 0 6px var(--shard)); }
.unlocks { display: grid; gap: 8px; }
.unlock { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; border-radius: 12px; font: 700 16px var(--disp); color: #2b1a05;
  background: linear-gradient(180deg, #ffe6a8, #e2a645); box-shadow: 0 0 30px rgba(255, 190, 80, .4); animation: pop .6s cubic-bezier(.2, 1.5, .4, 1) both; }
.unlock::after { content: ''; position: absolute; top: 0; bottom: 0; width: 30%; left: -40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); animation: shine 3s 2.5s ease-in-out infinite; }
.tips { padding: 16px 18px; display: grid; gap: 8px; animation: upIn .5s 1.2s both; }
.tip { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #e3d8c6; }
.tip .ic { color: var(--gold); margin-top: 2px; }
.tip em { font-style: normal; color: #ff8a7a; font-weight: 800; white-space: nowrap; }
.res-btns { position: sticky; bottom: 0; margin-top: auto; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 14px 0 18px; z-index: 5; width: 100% !important;
  background: linear-gradient(180deg, transparent, rgba(5, 4, 7, .92) 35%); animation: fadeIn .5s 1.2s both; }
.res-btns .btn { min-width: 170px; }

/* ---------- Pause / Einstellungen / Dialog ---------- */
.center-wrap { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; overflow: auto; }
.pause-box { width: min(380px, 100%); padding: 28px; display: grid; gap: 10px; text-align: center; animation: popIn .35s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.9); } }
.ptitle { font: 900 34px var(--disp); color: var(--gold); letter-spacing: .1em; text-shadow: 0 0 22px rgba(240, 198, 116, .4); }
.psub { color: var(--muted); font-size: 14px; margin: -2px 0 8px; }
.pause-box .btn { width: 100%; }
.phint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.set-box { width: min(560px, 100%); padding: 26px 28px; display: grid; gap: 14px; animation: popIn .35s cubic-bezier(.2, 1.3, .4, 1) both; }
.set-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 11px; background: rgba(255, 255, 255, .035); cursor: pointer; }
.set-row > span { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-weight: 600; }
.set-row > span .ic { color: var(--gold); }
.set-row b { min-width: 48px; text-align: right; color: var(--gold); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 200px; height: 6px; border-radius: 9px; background: linear-gradient(90deg, var(--gold) var(--p, 70%), rgba(255, 255, 255, .12) var(--p, 70%)); outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff2cc, #e0a640); border: 2px solid #2b1a05; box-shadow: 0 0 10px rgba(240, 198, 116, .6); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #f0c674; border: 2px solid #2b1a05; }
.sw { position: absolute; opacity: 0; pointer-events: none; }
.swi { position: relative; width: 50px; height: 28px; border-radius: 99px; background: #2a2224; border: 1px solid rgba(255, 255, 255, .12); transition: background .2s; flex: none; }
.swi::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #8a8078; transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), background .2s; }
.sw:checked + .swi { background: linear-gradient(180deg, #e6b052, #a87424); border-color: #ffe0a0; }
.sw:checked + .swi::after { transform: translateX(22px); background: #fff7e0; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; font-size: 14px; padding: 4px 4px; }
.keys > span:nth-child(odd) { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.keys > span:nth-child(even) { color: #e3d8c6; }
.set-foot { display: flex; gap: 10px; align-items: center; margin-top: 6px; }

.modal { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(4, 3, 5, .7); backdrop-filter: blur(3px); animation: scrIn .2s both; }
.modal.leave { animation: scrOut .2s both; }
.modal-box { width: min(440px, 100%); padding: 24px; display: grid; gap: 18px; animation: popIn .3s cubic-bezier(.2, 1.3, .4, 1) both; }
.modal-t { font-size: 17px; line-height: 1.5; text-align: center; }
.set-row .badge-new { position: static; margin-left: 8px; vertical-align: middle; }
.neu-box { text-align: left; }
.neu-box .ptitle { display: flex; align-items: center; gap: 8px; justify-content: center; margin-bottom: 10px; }
.neu-e { margin-top: 12px; }
.neu-e small { color: var(--muted, #9a8f80); margin-left: 8px; font-size: 13px; }
.neu-e ul { margin: 6px 0 0; padding-left: 20px; font-size: 15px; list-style: disc; }
.neu-e li + li { margin-top: 4px; }
.modal-t .muted { display: block; margin-top: 6px; font-size: 14px; }
.row.end { display: flex; justify-content: flex-end; gap: 10px; }
.row.end .btn { flex: 1; }

.toast { position: absolute; left: 50%; top: 84px; z-index: 60; transform: translateX(-50%); padding: 11px 20px; border-radius: 11px; background: rgba(14, 10, 12, .95); border: 1px solid var(--line2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 20px rgba(240, 198, 116, .15); font-weight: 700; pointer-events: none !important; animation: toastIn .3s cubic-bezier(.2, 1.3, .4, 1) both; white-space: nowrap; }
.toast.leave { animation: scrOut .35s both; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -12px); } }

/* ---------- Schmale Fenster ---------- */
@media (max-width: 1100px) {
  .eq { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: 'slots det' 'inv det'; grid-template-rows: auto minmax(0, 1fr); }
  .eq-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px; }
  .eq-slots h3, .eq-slots .power { grid-column: 1 / -1; }
  .eq-slots .power { display: none; }
  .eslot { padding: 5px; }
  .eslot .ii { --s: 42px; }
  .es-t em { display: none; }
}
@media (max-width: 980px) {
  .hub-top { padding: 0 14px; gap: 8px; }
  .sub-top { gap: 8px; }
  .brand { font-size: 17px; }
  .pill span { display: none; }
  .sub-top h2 { font-size: 19px; }
  .hub-panel { right: 14px; top: 72px; bottom: 14px; padding: 18px; gap: 12px; width: clamp(330px, 44vw, 520px); }
  .hero-name { font-size: 24px; }
  .row2 .btn { font-size: 13px; padding: 12px 6px; white-space: nowrap; }
  .raid-btn { padding: 14px 16px; }
  .side { left: 14px; right: 14px; top: 250px; bottom: 14px; width: auto; }
  .class-row { left: 14px; right: 14px; top: 70px; bottom: auto; gap: 8px; }
  .ccard { height: 168px; }
  .ccard .lock small { font-size: 10px; }
  .eq, .raid { left: 14px; right: 14px; top: 70px; bottom: 14px; }
  .bcard { height: 112px; }
  .binfo b { font-size: 22px; }
  .raid-det { padding: 16px; gap: 16px; }
  .rd-name { font-size: 22px; }
  .start { position: sticky; bottom: 0; }
  .mech li { font-size: 13px; padding: 7px 10px 7px 26px; }
  .mech li::before { left: 10px; top: 13px; }
  .res-stats { grid-template-columns: repeat(2, 1fr); }
  .res-grid { grid-template-columns: minmax(0, 1fr); }
  .res-r { order: -1; }
  .btn.huge { font-size: 20px; padding: 15px 24px; }
}
@media (max-width: 760px) and (min-height: 501px) {
  .eq { grid-template-columns: 1fr; grid-template-areas: 'slots' 'inv' 'det'; grid-template-rows: auto minmax(260px, 1fr) auto; overflow: auto; }
  .class-row { grid-template-columns: repeat(5, 120px); overflow-x: auto; padding-bottom: 6px; }
  .raid-det { grid-template-columns: 1fr; }
}
@media (max-height: 640px) {
  .hub-panel { gap: 10px; padding: 16px; }
  .hero-desc { display: none; }
  .ccard { height: 160px; }
  .bcard { height: 112px; }
}

/* ---------- Hub: Profil oben links, Heldenleiste unten ---------- */
.pid { display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 99px; background: rgba(8, 6, 8, .62); border: 1px solid var(--line); cursor: pointer; text-align: left; }
.pid:hover { border-color: var(--gold); }
.pid-av { --cc: #fff; position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; border: 2px solid var(--gold);
  background: radial-gradient(circle, color-mix(in srgb, var(--cc) 45%, transparent), #0c0a0c 80%); color: var(--cc); }
.pid-av .fb { display: grid; place-items: center; width: 100%; height: 100%; }
.pid-t { display: grid; line-height: 1.2; }
.pid-t b { font: 800 17px var(--body); color: var(--gold); }
.pid-t small { font-size: 12px; color: var(--muted); }
.hstrip { position: absolute; left: 24px; bottom: 22px; right: calc(clamp(340px, 38vw, 520px) + 52px); display: flex; gap: 10px; z-index: 2; }
.hcard { --cc: #fff; position: relative; flex: 1 1 0; max-width: 118px; min-width: 0; height: 138px; padding: 0; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; cursor: pointer;
  background: rgba(12, 9, 12, .85); border: 1px solid var(--line); transition: transform .15s, border-color .15s, box-shadow .15s; text-align: left; }
.hcard:hover { transform: translateY(-4px); border-color: var(--cc); }
.hcard.view { border-color: var(--cc); box-shadow: 0 0 0 1px var(--cc), 0 0 22px color-mix(in srgb, var(--cc) 45%, transparent); transform: translateY(-5px); }
.hcard.sel { border: 2px solid var(--gold); }
.hc-port { position: relative; flex: 1; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--cc) 45%, transparent), color-mix(in srgb, var(--cc) 8%, #0c0a0c) 75%); }
.hc-port .fb { display: grid; place-items: center; width: 100%; height: 100%; color: var(--cc); }
.hc-port .fb .ic { width: 40px; height: 40px; }
.hc-t { display: grid; padding: 5px 8px 7px; line-height: 1.15; }
.hc-t b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-t small { font-size: 11px; color: var(--muted); }
.hc-t small .ic { width: 11px; height: 11px; }
.hcard.locked .hc-port { filter: grayscale(.9); opacity: .45; }
.hcard.locked.view .hc-port { opacity: .75; }
.hc-on { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #2b1a05; }
.hc-on .ic { width: 14px; height: 14px; }
.hstrip.pulse .hcard:not(.locked) { animation: hcPulse 1.6s ease-in-out infinite; }
@keyframes hcPulse { 50% { box-shadow: 0 0 0 2px var(--gold), 0 0 26px rgba(240, 198, 116, .6); } }
.welcome { position: absolute; left: 24px; bottom: 182px; max-width: 430px; padding: 16px 18px; display: grid; gap: 8px; z-index: 3; animation: popIn .35s both; }
.welcome b { font: 800 19px var(--body); color: var(--gold); }
.welcome em { font-style: normal; color: var(--gold); font-weight: 700; }
.welcome .btn { justify-self: start; }
.lockbox { display: grid; gap: 8px; justify-items: start; padding: 14px; border-radius: 12px; border: 1px dashed var(--line2); background: rgba(240, 198, 116, .05); }
.lockbox b { display: flex; gap: 8px; align-items: center; color: var(--gold); }
.lockbox small { color: var(--muted); }
.lvl-badge.lk .ic { width: 26px; height: 26px; color: var(--gold); }
@media (max-width: 980px) {
  .hstrip { left: 14px; bottom: 14px; right: calc(clamp(330px, 44vw, 520px) + 28px); gap: 7px; }
  .welcome { left: 14px; bottom: 166px; }
}

/* Handy quer (≈ 390–480 px hoch): ganze Oberfläche verkleinert, als wäre der Bildschirm ~1150×540 */
@media (max-height: 500px) {
  #ui { zoom: .72; }
  /* Ausrüstung: Name über die ganze Kartenbreite, Bild + Infos darunter */
  .eq-detail .icard-h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; container-type: inline-size; }
  .eq-detail .icard-h > div { display: contents; }
  .eq-detail .icard-n { grid-column: 1 / -1; order: -1; }
  .eq-detail .icard-h > .ii { grid-row: span 2; }
  .eq-detail .icard-m, .eq-detail .sk-mini { grid-column: 2; margin-top: 0; }
  .hub-panel { overflow: auto; gap: 8px; padding: 14px; }
  .raid-btn { position: sticky; bottom: 0; z-index: 2; flex: none; }
  /* Raid-Wahl: Karten flacher, Details dichter, Start-Knopf verdeckt nichts */
  .raid { gap: 10px; }
  .bcard { height: 84px; }
  .binfo { bottom: 10px; }
  .binfo b { font-size: 20px; }
  .pips { margin-top: 3px; }
  .raid-det { padding: 12px 16px 0; gap: 14px 18px; }
  .rd-info, .rd-side { gap: 9px; }
  .rd-name { font-size: 20px; }
  .mech { gap: 5px; }
  .mech li { font-size: 12.5px; padding: 5px 10px 5px 24px; }
  .mech li::before { left: 9px; top: 11px; }
  .dtab { padding: 7px 6px; }
  .chips span { padding: 4px 9px; font-size: 13px; }
  .extra { font-size: 12.5px; padding: 6px 10px; }
  .rec { padding: 6px 12px; font-size: 13px; }
  .start { position: sticky; bottom: 0; z-index: 2; margin-bottom: 10px; box-shadow: 0 -14px 18px rgba(10, 8, 10, .85); }
}
/* Handy hochkant: Bitte drehen */
@media (orientation: portrait) and (pointer: coarse) {
  #app::after { content: '⟳  Bitte das Handy quer halten'; position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; text-align: center;
    background: #07060a; color: #f0c674; font: 700 20px system-ui, sans-serif; }
}

/* ---------- Koop: Mit Freunden ---------- */
.koop-btn { width: 100%; padding: 12px 10px; }
.koop-btn small, .koop-btn .koop-n { margin-left: auto; font: 700 12px var(--body); color: var(--green); }
.koop-box { width: min(440px, 100%); padding: 26px; display: grid; gap: 12px; text-align: center; animation: popIn .35s cubic-bezier(.2, 1.3, .4, 1) both; }
.koop-box > .btn { width: 100%; }
.koop-box input[type=text] { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .35); color: var(--ink); font: 600 16px var(--body); outline: none; }
.koop-box input[type=text]:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240, 198, 116, .15); }
.koop-name { display: grid; gap: 6px; text-align: left; font-size: 13px; color: var(--muted); }
.koop-or { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 12px; }
.koop-or::before, .koop-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.koop-join { display: flex; gap: 8px; }
.koop-join input[type=text] { text-transform: uppercase; letter-spacing: .3em; text-align: center; font: 800 18px var(--body); }
.koop-code { display: grid; gap: 6px; justify-items: center; padding: 12px; border-radius: 12px; border: 1px dashed var(--line2); background: rgba(240, 198, 116, .05); }
.koop-code small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.koop-code b { font: 900 34px var(--disp); letter-spacing: .25em; color: var(--gold); }
.koop-code b.hn { font-size: 24px; letter-spacing: .05em; }
.koop-list { display: grid; gap: 6px; text-align: left; }
.koop-p { display: flex; align-items: center; gap: 10px; padding: 6px 10px; min-height: 48px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.koop-p .role-badge { width: 34px; height: 34px; border-radius: 9px; }
.koop-p > span:last-of-type { display: grid; }
.koop-p small { color: var(--muted); font-size: 12px; }
.koop-p.leer { justify-content: center; border-style: dashed; background: none; }
.koop-wait { font-size: 13px; }
.grp-bereit { color: #ff9a7a; }
.grp-raus { margin-left: auto; }
.grp-bereit.ja { color: #7fe39a; font-weight: 700; }
.koop-warn { color: var(--gold); margin-top: -6px; }
.koop-bonus { display: grid; gap: 8px; text-align: left; padding-top: 6px; border-top: 1px solid var(--line); }
.koop-bonus > div { display: flex; gap: 10px; align-items: center; }
.koop-bonus .ic { width: 22px; height: 22px; color: var(--gold); }
.koop-bonus span { display: grid; }
.koop-bonus small { color: var(--muted); font-size: 12px; }
.xpgain small { font-size: 11px; color: var(--green); margin-left: 4px; }
.koop-box .btn.big { flex-wrap: wrap; justify-content: center; }
.koop-sub { flex-basis: 100%; font: 600 12px var(--body); opacity: .75; }
.koop-offen { text-align: left; }
.koop-offen span { display: grid; }
.koop-offen small { color: var(--muted); font-size: 12px; }
/* Name / Konto */
.name-box { display: grid; gap: 12px; }
.name-in { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .35); color: var(--ink); font: 700 18px var(--body); outline: none; }
.name-in:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240, 198, 116, .15); }
.name-err { min-height: 1em; color: var(--red); font-size: 13px; }
.set-sub { display: block; flex-basis: 100%; color: var(--muted); font-size: 12px; font-weight: 500; }   /* Hinweis unter dem Label, nicht daneben gequetscht */
.set-name { margin-left: auto; margin-right: 8px; color: var(--gold); }

/* ---------- Freunde ---------- */
.fr-btn { gap: 7px; padding: 0 14px; height: 46px; }
.fr-btn .ic { width: 20px; height: 20px; color: var(--gold); }
.fr-n:empty { display: none; }
.fr-n { font: 700 12px var(--body); color: var(--green); }
.fr-box { width: min(500px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; display: grid; gap: 12px; animation: popIn .35s cubic-bezier(.2, 1.3, .4, 1) both; }
.fr-add { display: flex; gap: 6px; flex: 1; min-width: 210px; }
.fr-add input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .35); color: var(--ink); font: 800 16px var(--body); letter-spacing: .2em; text-transform: uppercase; text-align: center; outline: none; }
.fr-add input:focus { border-color: var(--gold); }
.fr-list { display: grid; gap: 6px; }
.fr-p { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 11px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.fr-p .pid-av { width: 40px; height: 40px; border-color: #555; filter: grayscale(.8) brightness(.8); }
.fr-p.on .pid-av { border-color: var(--green); filter: none; box-shadow: 0 0 10px rgba(111, 220, 140, .4); }
.fr-t { display: grid; flex: 1; min-width: 0; text-align: left; }
.fr-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-t small { color: var(--muted); font-size: 12px; }
.fr-p.on .fr-t small { color: var(--green); }
.fr-x { padding: 4px 9px; font-size: 18px; color: var(--dim); }
.fr-leer { padding: 14px; text-align: center; }
.fr-hint { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: 13px; color: var(--muted); text-align: left; }
.fr-hint .ic { width: 22px; height: 22px; color: var(--gold); flex: none; }
.fr-push .ic { width: 18px; height: 18px; color: var(--gold); vertical-align: -3px; margin-right: 6px; }
.fr-plus { margin-left: auto; }
.koop-code .row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.invite { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; max-width: calc(100% - 24px); border-color: var(--gold); box-shadow: 0 8px 30px rgba(0, 0, 0, .6), 0 0 24px rgba(240, 198, 116, .25); animation: popIn .35s cubic-bezier(.2, 1.3, .4, 1) both; }
.invite > .ic { width: 26px; height: 26px; color: var(--gold); flex: none; }
.invite span { font-size: 14px; }
@media (max-width: 700px) { .fr-btn span { display: none; } }
.fr-push > span { display: block; flex: 1; text-align: left; }

/* Gruppierungen, die nur am Handy (quer) als Spalten wirken; sonst unsichtbar */
.side-cols, .side-col { display: contents; }
.row2 .koop-btn { grid-column: 1 / -1; }
.koop-btn .kurz { display: none; }

/* ---------- Handy quer: alles auf eine Seite, kein senkrechtes Scrollen ---------- */
@media (max-height: 500px) {
  /* Hub: Talent-Chips weg (stehen unter Helden & Talente), Knöpfe in eine Reihe */
  .tal-sum { display: none; }
  .mslot .ii { --s: 50px; }
  .slots4 { gap: 6px; }
  .row2 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .row2 .btn, .row2 .koop-btn { grid-column: auto; font-size: 13px; padding: 11px 6px; gap: 6px; }
  .koop-btn small, .koop-btn .lang { display: none; }
  .koop-btn .kurz { display: inline; }

  /* Helden: Klassen als schmale Leiste links, Talente + Fähigkeiten nebeneinander */
  .class-row { left: 14px; right: auto; top: 74px; bottom: 14px; width: 172px; grid-template-columns: 1fr; grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .ccard { height: auto; flex-direction: row; align-items: stretch; }
  .ccard:hover, .ccard.view { transform: none; }
  .cport { flex: none; width: 54px; border-radius: 12px 0 0 12px; }
  .cport .fb .ic { width: 28px; height: 28px; }
  .cinfo { flex: 1; min-width: 0; align-content: center; padding: 4px 8px; }
  .ccard .lock { inset: 0 auto 0 0; width: 54px; height: auto; padding: 0; }
  .ccard .lock small, .ccard .lock .pbar { display: none; }
  .ccard .lock .ic { width: 20px; height: 20px; }
  .sel-tag { top: auto; bottom: 4px; right: 4px; font-size: 0; padding: 3px; gap: 0; }
  .badge-new { top: 3px; left: 3px; font-size: 8px; padding: 2px 4px; }
  .side { left: 200px; right: 14px; top: 74px; bottom: 14px; width: auto; padding: 14px 18px; gap: 10px; }
  .side .hero-desc { display: none; }
  .side .hero-name { font-size: 22px; }
  .side-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .side-col { display: grid; gap: 8px; align-content: start; }
  .side h3 { margin: 0; }
  .tiers { gap: 7px; }
  .tier { grid-template-columns: 40px 1fr 1fr; gap: 6px; }
  .tier-l b { font-size: 17px; }
  .tier-lock { left: 46px; }
  .tal { padding: 7px 9px; }
  .tal b { font-size: 13px; }
  .tal small { font-size: 11.5px; }
  .abils { gap: 5px; }
  .abil { padding: 6px 8px; gap: 8px; }
  .ab-ic { width: 32px; height: 32px; }
  .ab-ic .ic { width: 20px; height: 20px; }
  .ab-t b { font-size: 13px; }
  .ab-t small { font-size: 11.5px; }

  /* Fenster in die Breite statt in die Höhe */
  .set-box { width: min(940px, 100%); grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 16px 20px; }
  .set-box > * { grid-column: 1 / -1; }
  .set-box > .set-row { grid-column: auto; }
  .set-box .keys-h, .set-box .keys { display: none; }
  /* Ergebnis: Kopf flach, Werte in einer Reihe, Beute rechts daneben */
  .res { gap: 10px; padding-top: 8px; }
  .res-banner { padding: 0; }
  .res-title, .lose .res-title { font-size: 50px; }
  .res-sub { margin-top: 4px; font-size: 15px; }
  .badges { margin-top: 6px; }
  .rays { width: 420px; height: 420px; margin: -210px 0 0 -210px; }
  .res-stats { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .stile { padding: 7px 12px; }
  .stile b { font-size: 20px; }
  .res-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 14px; }
  .res-grid.one { grid-template-columns: minmax(0, 1fr); }
  .res-r { order: 0; }
  .res-l { gap: 8px; }
  .res-xp { padding: 9px 14px; }
  .res-xp .role-badge { width: 40px; height: 40px; }
  .lvlup { padding: 5px; font-size: 16px; }
  .unlocks { grid-template-columns: 1fr 1fr; gap: 6px; }
  .unlock { padding: 7px 10px; font-size: 13px; }
  .tips { padding: 10px 14px; gap: 6px; }
  .tip { font-size: 13px; }
  .chests { min-height: 120px; }
  .chest { width: 140px; height: 120px; }
  .chest svg { width: 104px; }
  .res-btns { padding: 8px 0 10px; }
}

/* ---------- Tages-Challenge ---------- */
.ch-tile { --bc: #d9502b; position: absolute; left: 24px; top: 80px; z-index: 2; width: 310px; height: 76px; display: flex; align-items: center; gap: 12px; padding: 0 14px 0 0; cursor: pointer; text-align: left; color: #fff;
  border-radius: 14px; overflow: visible; border: 1.5px solid color-mix(in srgb, var(--bc) 70%, #fff 0%); background: linear-gradient(90deg, color-mix(in srgb, var(--bc) 45%, #120c0e), rgba(14, 10, 12, .92));
  box-shadow: 0 0 22px color-mix(in srgb, var(--bc) 40%, transparent), 0 8px 22px rgba(0, 0, 0, .5); transition: transform .15s, filter .15s; animation: chGlow 2.6s ease-in-out infinite; }
.ch-tile:hover { transform: translateY(-2px); filter: brightness(1.12); }
.ch-tile:active { transform: scale(.97); }
@keyframes chGlow { 50% { box-shadow: 0 0 34px color-mix(in srgb, var(--bc) 65%, transparent), 0 8px 22px rgba(0, 0, 0, .5); } }
.ch-port { position: relative; width: 76px; height: 100%; flex: none; border-radius: 12px 0 0 12px; overflow: hidden; }
.ch-port .iw > img { object-position: 50% 18%; }
.ch-t { display: grid; gap: 1px; min-width: 0; }
.ch-t small { display: flex; align-items: center; gap: 5px; font: 800 11px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.ch-t b { font: 900 16px/1.1 var(--disp); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-t em { font-style: normal; font-size: 12px; color: #d8cdbd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-tile .dot { position: absolute; top: -6px; right: -6px; width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff9a9a, #e01b1b 60%); box-shadow: 0 0 10px #e01b1b; }

.tag-tile { position: absolute; left: 24px; top: 166px; z-index: 2; width: 310px; height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 14px; text-align: left; color: #fff; border-radius: 12px;
  border: 1.5px solid rgba(240, 198, 116, .35); background: rgba(14, 10, 12, .85); }
.res .tag-tile { position: relative; left: auto; top: auto; width: 100%; margin-top: 10px; }
.tag-tile > .ic { width: 28px; height: 28px; color: var(--gold); flex: none; }
.tag-tile:disabled { opacity: .75; cursor: default; }
.tag-tile.offen { cursor: pointer; border-color: var(--gold); box-shadow: 0 0 20px rgba(240, 198, 116, .35); animation: chGlow 2.6s ease-in-out infinite; }
.tag-tile.offen:hover { filter: brightness(1.12); }
.tag-tile .dot { position: absolute; top: -6px; right: -6px; width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff9a9a, #e01b1b 60%); box-shadow: 0 0 10px #e01b1b; }
.tag-item { display: flex; align-items: center; gap: 10px; font-weight: 700; }

.scr-challenge { background: radial-gradient(ellipse 80% 55% at 50% 0%, color-mix(in srgb, var(--bc, #d9502b) 24%, transparent), transparent 70%), rgba(6, 5, 8, .86); }
.ch-wrap { position: absolute; top: 76px; left: 26px; right: 26px; bottom: 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.ch-info { overflow: auto; }
.ch-duo { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 14px; height: 100%; min-height: 0; }
.ch-boss { height: 190px; cursor: default; }
.ch-boss:hover { transform: none; }
.ch-held { --cc: #fff; display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ch-held small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.ch-held b { display: block; font: 900 26px/1.1 var(--disp); color: var(--cc); }
.ch-held em { font-style: normal; font-size: 13px; color: #cfc3b0; }
.pid-av.big { width: 64px; height: 64px; border-color: var(--cc); }
.ch-info { --bc: var(--gold); display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; }

.scr-stufe, .scr-chEnde { background: rgba(5, 4, 7, .88); }
.ch-stufe { --bc: #d9502b; width: min(480px, 100%); padding: 24px 26px; display: grid; gap: 12px; text-align: center; animation: popIn .35s cubic-bezier(.2, 1.3, .4, 1) both; }
.ch-k { font: 800 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ch-row { font-size: 22px; letter-spacing: 3px; line-height: 1.2; word-break: break-all; text-align: center; }
.ch-row.big { font-size: 30px; }
.ch-zeit { display: flex; align-items: center; justify-content: center; gap: 6px; color: #fff; font-weight: 700; }
.ch-zeit .ic { color: var(--gold); }
.ch-news { display: grid; gap: 6px; text-align: left; }
.ch-news li { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 9px; background: rgba(255, 255, 255, .04); font-size: 14px; }
.ch-news li.neu .ic { color: #6fd36f; }
.ch-news li.warn .ic { color: #ff7a4a; }
.ch-stufe .btn.huge { width: 100%; }

@media (max-height: 500px) {
  .ch-tile { left: 14px; top: 72px; width: 280px; height: 64px; }
  .tag-tile { left: 14px; top: 144px; width: 280px; height: 44px; }
  .ch-t b { font-size: 14px; }
  .ch-wrap { top: 72px; left: 14px; right: 14px; bottom: 12px; gap: 12px; }
  .ch-boss { height: 120px; }
  .ch-held { padding: 10px 14px; }
  .ch-held b { font-size: 20px; }
  .ch-info { padding: 12px 16px; gap: 8px; overflow: auto; max-height: 100%; }
  .ch-info .mech li { font-size: 12.5px; padding: 5px 10px 5px 24px; }
  .ch-info .mech li::before { left: 9px; top: 11px; }
  .ch-stufe { padding: 14px 18px; gap: 7px; }
  .ch-stufe .ptitle { font-size: 26px; }
  .ch-news li { padding: 6px 10px; font-size: 13px; }
}

/* Rangliste */
.rang { --bc: var(--gold); display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; min-height: 0; }
.rang-h { display: flex; align-items: center; gap: 10px; }
.rang-h h3 { flex: 1; }
.rang-h h3::after { display: none; }
.rtabs { display: flex; gap: 4px; padding: 3px; border-radius: 99px; background: rgba(0, 0, 0, .35); }
.rt { padding: 5px 12px; border-radius: 99px; border: 0; background: none; color: var(--muted); font: 700 12px var(--body); cursor: pointer; }
.rt.on { background: var(--gold); color: #2b1a05; }
.rang-l { display: flex; flex-direction: column; gap: 4px; overflow: auto; min-height: 0; }
.rz { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 46px; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .035); font-size: 14px; }
.rz b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rz .rp { font: 900 15px var(--disp); color: var(--gold); text-align: center; }
.rz:nth-child(1) .rp { color: #ffd34d; } .rz:nth-child(2) .rp { color: #d9e2ea; } .rz:nth-child(3) .rp { color: #e09a5a; }
.rz .rs { color: #fff; font-weight: 700; } .rz .rzt { color: var(--muted); text-align: right; }
.rz.ich { background: color-mix(in srgb, var(--gold) 20%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 60%, transparent); }
.rang-leer { padding: 10px 4px; font-size: 13px; }
.rang-f { margin-top: 4px; font-size: 12px; color: var(--muted); text-align: center; }
.ch-platz { display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 800; color: #fff; text-align: center; animation: upIn .5s .9s both; }
.ch-platz > span { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; }
.ch-platz .ic { color: var(--gold); }
.ch-platz small { font-weight: 600; color: var(--gold); font-size: 13px; }
@media (max-height: 500px) {
  .rang { padding: 8px 12px; gap: 5px; }
  .rz { padding: 4px 8px; font-size: 12.5px; }
  .ch-held { padding-bottom: 6px; }
}

/* Name: frei / vergeben + Vorschläge */
.name-err.gut { color: #6fd36f; }
.name-err.bad { color: #ff7a6a; }
.name-vor { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -8px; }
.name-vor:empty { display: none; }
.name-chip { border: 1px solid var(--line2); }
.koop-name-z { display: flex; align-items: center; gap: 10px; }
.koop-name-z b { flex: 1; font-size: 17px; color: var(--ink); }

/* Rechtstexte-Links (Titel, Einstellungen) */
.recht { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: 12px; }
.recht a { color: var(--muted); text-decoration: none; }
.recht a:hover { color: var(--gold); text-decoration: underline; }
.recht span { color: var(--dim, #6a6058); }
.title-wrap .recht { margin-top: 10px; }

/* Auswahlfeld (Sprache) */
select.sel { padding: 7px 30px 7px 12px; border-radius: 9px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f0c674' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--ink); font: 700 14px var(--body); appearance: none; cursor: pointer; outline: none; }
select.sel:focus { border-color: var(--gold); }
select.sel option { background: #1a1416; color: var(--ink); }

/* Zwischenbild Challenge: Clip + Aufhören nebeneinander */
.row2b { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- Langzeit: Aufstieg, Ruhm, Edelsteine, Erfolge, Wochentruhe ---------- */
.dtabs { grid-template-columns: repeat(4, 1fr); }
.dtab.auf { --dc: #ff5577; }
.d-auf { color: #ff5577; }
.auf-pip { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; font: 900 12px var(--body); font-style: normal; color: #ff8fa3; text-shadow: 0 0 8px #ff5577; }
.auf-pip .ic { width: 13px; height: 13px; }
.auf-step { display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; background: rgba(255, 85, 119, .08); border: 1px solid rgba(255, 85, 119, .35); text-align: center; }
.auf-step .btn { padding: 8px 0; font: 900 22px var(--disp); }
.auf-step b { display: block; font: 900 20px var(--disp); color: #fff; text-shadow: 0 0 12px #ff5577; }
.auf-step small { font-size: 12px; color: var(--muted); }
.extra.affix { border-left: 3px solid #ff5577; border-radius: 0 9px 9px 0; }
.auf-rang { padding: 12px 14px; max-height: 280px; }

/* Ruhm am Namen, Titel */
.ruhm-n { display: inline-flex; align-items: center; gap: 2px; margin-left: 7px; padding: 1px 7px 1px 4px; border-radius: 99px; vertical-align: middle;
  font: 900 12px var(--body); color: #ffe08a; background: rgba(255, 200, 80, .14); border: 1px solid rgba(255, 200, 80, .4); }
.ruhm-n .ic { width: 12px; height: 12px; color: #ffd34d; }
.pid-titel { font-style: normal; font-size: 12px; font-weight: 700; color: #ff8fa3; }
.ruhm-btn { position: relative; }
.ruhm-btn .ic { color: #ffd34d; }

/* Ruhm-Bildschirm */
.ruhm-wrap { position: absolute; top: 76px; left: 26px; right: 26px; bottom: 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.ruhm-p, .erf-p { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; overflow: auto; min-height: 0; }
.ruhm-kopf { display: flex; align-items: center; gap: 14px; }
.ruhm-kopf > div { display: grid; gap: 3px; }
.ruhm-kopf > div b { font: 900 24px var(--disp); color: var(--gold); }
.ruhm-kopf small { font-size: 13px; color: var(--muted); }
.ruhm-stern { position: relative; width: 70px; height: 70px; flex: none; display: grid; place-items: center; }
.ruhm-stern .ic { position: absolute; inset: 0; width: 100%; height: 100%; color: #ffc83a; filter: drop-shadow(0 0 14px rgba(255, 200, 60, .6)); }
.ruhm-stern .ic path.f { fill-opacity: 1; stroke-width: 1.2; }
.ruhm-stern b { position: relative; top: 3px; font: 900 18px var(--disp); color: #2b1a05; }
.ruhm-n .ic path.f { fill-opacity: 1; }
.ruhm-bar i { background: linear-gradient(90deg, #d99a3a, #ffe08a); box-shadow: 0 0 14px rgba(255, 200, 80, .6); }
.ruhm-frei { text-align: center; font-weight: 800; color: var(--muted); padding: 8px; border-radius: 10px; background: rgba(0, 0, 0, .3); }
.ruhm-frei.on { color: #2b1a05; background: linear-gradient(180deg, #ffe6a8, #e2a645); box-shadow: 0 0 20px rgba(255, 190, 80, .4); }
.ruhm-werte { display: grid; gap: 8px; }
.rw { display: grid; grid-template-columns: minmax(0, 1fr) 44px 64px 44px 70px; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.rw > span { display: grid; }
.rw > span small { font-size: 11.5px; color: var(--muted); }
.rw .btn { padding: 6px 0; font: 900 20px var(--disp); }
.rw-n { text-align: center; font: 900 20px var(--disp); color: #fff; }
.rw-n small { font-size: 12px; color: var(--muted); }
.rw em { font-style: normal; text-align: right; font-weight: 800; color: var(--green); }
.erf-l { display: grid; gap: 6px; }
.erf { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); opacity: .6; }
.erf > .ic { width: 22px; height: 22px; flex: none; color: var(--dim); }
.erf > span { flex: 1; display: grid; min-width: 0; }
.erf small { font-size: 12px; color: var(--muted); }
.erf small .ic { width: 11px; height: 11px; color: var(--shard); vertical-align: -1px; }
.erf.da { opacity: 1; border-color: var(--line); }
.erf.da > .ic { color: var(--gold); }
.erf.an { border-color: #ff8fa3; background: rgba(255, 85, 119, .08); }
.erf.an b { color: #ff8fa3; }

/* Edelsteine */
.ii.stein .fb .ic { filter: drop-shadow(0 0 8px var(--rc)); }
.st-n { position: absolute; right: 4px; bottom: 2px; font: 900 13px var(--disp); color: #fff; text-shadow: 0 0 4px #000, 0 1px 2px #000; }
.ii.xs { --s: 26px; border-radius: 7px; border-width: 1.5px; }
.ii.xs .st-n { font-size: 10px; right: 2px; bottom: 0; }
.ii.lg .st-n { font-size: 20px; right: 7px; bottom: 4px; }
.sk-mini { display: flex; gap: 5px; margin-top: 6px; }
.sockel { display: grid; gap: 6px; }
.sk { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.sk > span:nth-child(2) { flex: 1; display: grid; min-width: 0; }
.sk small { font-size: 12px; color: var(--muted); }
.sk.leer { border-style: dashed; }
.tro { display: inline-flex; align-items: center; gap: 3px; color: #ffd34d; font-weight: 800; }
.tro .ic { width: 13px; height: 13px; }
.t-tro { position: absolute; top: 3px; left: 50%; transform: translateX(-50%); color: #ffd34d; filter: drop-shadow(0 0 4px #000); }
.t-tro .ic { width: 14px; height: 14px; }
.wahl { display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.wahl-o { justify-content: flex-start; gap: 12px; text-align: left; padding: 8px 12px; }
.wahl-o > span:last-child { display: grid; }
.wahl-o small { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Funde im Ergebnis */
.funde .unlock small { display: block; font: 600 12px var(--body); opacity: .8; }
.funde .unlock .btn { margin-left: 6px; }
.fund { padding: 12px 14px; display: grid; gap: 8px; animation: upIn .5s 2s both; }
.fund-s { display: flex; align-items: center; gap: 10px; }
.fund-s > span:last-child { display: grid; }
.fund-s small { color: var(--muted); font-size: 12px; }
.res > .funde { max-width: 560px; margin: 0 auto; width: 100%; }

/* Wochentruhe, Gruppe */
.wo-tile { top: 228px; border-color: rgba(255, 85, 119, .6); box-shadow: 0 0 20px rgba(255, 85, 119, .3); }
.wo-bild { position: relative; width: 30px; height: 30px; flex: none; display: grid; place-items: center; color: #ff8fa3; }
.wo-bild .ic { width: 28px; height: 28px; }
.koop-auf { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); }
.koop-auf .ic { color: #ff8fa3; }
.koop-auf b { color: #fff; }
.koop-p small em { font-style: normal; color: #ff8fa3; }

@media (max-width: 700px) and (min-height: 501px) {
  .ruhm-wrap { grid-template-columns: minmax(0, 1fr); align-content: start; overflow: auto; }
  .ruhm-p, .erf-p { overflow: visible; min-height: auto; }
}
@media (max-height: 500px) {
  .wo-tile { left: 14px; top: 196px; width: 280px; height: 44px; }
  .ruhm-wrap { top: 72px; left: 14px; right: 14px; bottom: 12px; gap: 12px; }
  .ruhm-p, .erf-p { padding: 12px 16px; gap: 8px; }
  .rw { padding: 5px 10px; }
  .auf-step { padding: 3px; }
  .auf-step b { font-size: 17px; }
}

/* Gruppensuche */
.suche { display: grid; gap: 8px; }
.suche > .btn { width: 100%; flex-wrap: wrap; justify-content: center; }
.suche-rollen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.suche-rollen .btn { justify-content: center; padding-inline: 6px; }
.suche-rollen .btn.on { border-color: var(--gold); color: var(--gold); }
.suche-ziel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; text-align: left; }
.suche-ziel label { display: grid; gap: 3px; min-width: 0; }
.suche-ziel .sel { width: 100%; }
.suche small { color: var(--muted); font-size: 12px; }
/* Ziel-Auswahl als Knopfreihen (Gruppe + Suche), keine Klapplisten */
.ziel-wahl { display: grid; gap: 6px; text-align: left; }
.ziel-wahl > small { color: var(--muted); font-size: 12px; margin-bottom: -2px; }
.chips { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.chip { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 34px; padding: 5px 4px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: var(--muted); font: 700 12px/1.15 var(--body); transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--line2); color: var(--ink); }
.chip.on { border-color: var(--gold); background: rgba(240, 198, 116, .16); color: #fff; box-shadow: 0 0 12px rgba(240, 198, 116, .2); }
.chip .iw { position: relative; inset: auto; width: 30px; height: 30px; border-radius: 8px; overflow: hidden; display: block; }
.chip .iw img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chip.mit-bild:not(.on) .iw img { filter: saturate(.6) brightness(.8); }
.chip > span:not(.iw) { background: none; border: 0; padding: 0; border-radius: 0; }   /* fremde Span-Regeln (Dialog) nicht erben */
.suche .btn small { color: inherit; }
.suche-n:empty { display: none; }
.suche-laeuft { display: grid; gap: 2px; padding: 8px; }
.suche-laeuft small { color: var(--muted); font-size: 12px; }
.suche-zeit { color: var(--gold); font-variant-numeric: tabular-nums; }

/* Ideen + Abstimmung */
.ideen-box { position: relative; width: min(560px, 100%); padding: 24px; display: grid; gap: 10px; max-height: 100%; overflow: auto; }
.ideen-box h3 { margin: 6px 0 0; }
.ideen-box > small { color: var(--muted); font-size: 12px; }
.erhoert { display: grid; gap: 6px; justify-items: center; text-align: center; }
.erhoert .ik-bilder { display: flex; gap: 10px; }
.erhoert .ik-bilder svg { width: 44px; height: 44px; fill: var(--gold, #f0c674); }
.erhoert p { margin: 0; color: var(--ink); line-height: 1.45; }
.wahl3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wk { display: grid; justify-items: center; align-content: start; gap: 2px; padding: 10px 4px; white-space: normal; text-align: center; height: auto; }
.wk svg { width: 64px; height: 64px; fill: #77808f; }
.wk small { color: var(--muted); font-size: 11px; }
.wk em { font-style: normal; color: var(--gold); }
.wk.on { border-color: var(--gold); }
.wk.on svg { fill: var(--gold); }
.idee-arten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.idee-arten .btn { justify-content: center; }
.idee-arten .btn.on { border-color: var(--gold); color: var(--gold); }
.ideen-box textarea { width: 100%; resize: vertical; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .35); color: var(--ink); font: 500 16px var(--body); user-select: text; }

/* Raid-Stunde */
.stunde { text-align: left; padding: 8px 12px; }
.stunde > span { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 8px; }
.stunde > span .ic { grid-row: span 2; }
.stunde b { text-align: left; min-width: 0; }
.stunde small { color: var(--muted); font-size: 12px; font-weight: 500; }
.stunde.jetzt { background: rgba(240, 198, 116, .14); }

/* Gruppen-Rangliste: bis zu fünf Namen */
.rz .gr-namen { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
.auf-rang .rtabs { flex-wrap: wrap; }

/* Hub: Gruppe suchen muss ohne Scrollen sichtbar sein */
@media (max-height: 800px) {
  .row2 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .row2 .btn, .row2 .koop-btn { grid-column: auto; min-width: 0; font-size: 12px; line-height: 1.15; padding: 10px 4px; gap: 5px; white-space: normal; justify-content: center; text-align: center; }
  .row2 .koop-btn small, .row2 .koop-btn .lang { display: none; }
  .row2 .koop-btn .kurz { display: inline; }
  .row2 .koop-btn .koop-n { margin-left: 0; }
}
@media (max-height: 800px) and (max-width: 1100px) { .row2 .btn > .ic { display: none; } }

/* ---------- Fenster ohne Scrollen: zwei Spalten, sobald Platz ist (Prüfung: werkzeug/ui-pruefung.js) ---------- */
/* Freunde */
.fr-box { position: relative; }
.fr-spalten { display: grid; gap: 12px; }
.fr-k { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); text-align: left; }
.fr-kopf { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.fr-kopf h3 { flex: 1; min-width: 0; margin: 0; }
.fr-code { display: grid; justify-items: end; line-height: 1.1; }
.fr-code small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.fr-code b { font: 900 22px var(--disp); letter-spacing: .16em; color: var(--gold); user-select: text; }
.fr-spiel { display: grid; gap: 6px; }
.fr-spiel .btn { width: 100%; justify-content: center; }
.fr-spiel small, .fr-hinw { color: var(--muted); font-size: 12px; text-align: center; line-height: 1.3; }
.fr-oder { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 12px; }
.fr-oder::before, .fr-oder::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.fr-k .fr-add { flex: none; min-width: 0; }
.fr-k .fr-add .btn { min-width: 112px; justify-content: center; }
.fr-truhe { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.fr-truhe .ic { width: 22px; height: 22px; flex: none; color: var(--gold); }
.fr-truhe small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.fr-k .fr-list { flex: 1; align-content: start; max-height: max(120px, min(300px, 100vh - 470px)); overflow: auto; }
.fr-k .fr-leer { align-self: center; padding: 8px 0; font-size: 13px; text-align: center; }
.fr-werb { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(240, 198, 116, .07); border: 1px solid var(--line2); }
.fr-werb > span { flex: 1; min-width: 0; display: grid; }
.fr-werb b { font-size: 13px; }
.fr-werb small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.fr-werb .btn { flex: none; padding: 9px 12px; }
.fr-kurz { display: none; }
.fr-k .fr-push { padding: 8px 10px; }
.fr-box.nur-spiel { width: min(500px, 100%); }
.fr-box.nur-spiel .fr-spalten { grid-template-columns: minmax(0, 1fr); }

/* Gruppe */
.koop-box { position: relative; }
.grp-spalten { display: grid; gap: 10px; min-width: 0; }
.grp-sp { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.grp-sp .btn.big { width: 100%; }
.grp-fuss { margin-top: auto; display: grid; }

/* Ideen */
.ideen-spalten { display: grid; gap: 14px; }
.ideen-spalten > section { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.ideen-spalten h3 { margin: 0; }
.ideen-spalten small { color: var(--muted); font-size: 12px; }
.ideen-spalten [data-act=senden] { margin-top: auto; justify-content: center; }
.ideen-box textarea { resize: none; }

/* Was ist neu */
.modal-box.neu-modal { width: min(640px, 100%); }
.neu-kopf { display: flex; align-items: center; gap: 10px; }
.neu-kopf .ptitle { flex: 1; margin: 0; justify-content: flex-start; }
.neu-nav { display: flex; align-items: center; gap: 8px; }
.neu-nav[hidden] { display: none; }
.neu-nav .btn { min-width: 46px; justify-content: center; padding-block: 2px; font: 900 22px var(--body); }
.neu-nav span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Handy quer zählt mit: #ui ist dort verkleinert (zoom), die Medienabfrage sieht aber die echte Breite */
@media (min-width: 700px), (max-height: 500px) and (min-width: 480px) {
  .fr-box:not(.nur-spiel) { width: min(900px, 100%); }
  .fr-spalten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ideen-box { width: min(900px, 100%); }
  .ideen-spalten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .koop-box.drin { width: min(920px, 100%); grid-template-columns: minmax(0, 1fr); }
  .koop-box.drin .koop-list { grid-template-columns: minmax(0, 1fr); }
  .grp-spalten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .modal-box.neu-modal { width: min(940px, 100%); }
  .neu-modal .neu-e ul { columns: 2; column-gap: 30px; }
  .neu-modal .neu-e li { break-inside: avoid; }
}

@media (max-height: 500px) {
  .center-wrap, .modal { padding: 8px; }
  .fr-box, .ideen-box, .koop-box, .modal-box.neu-modal { padding: 12px 16px; gap: 8px; }
  :is(.fr-box, .ideen-box, .koop-box) > .ptitle, .neu-kopf .ptitle { font-size: 24px; line-height: 1.2; }
  :is(.fr-box, .ideen-box, .koop-box) > .x-close { top: 6px; right: 6px; width: 48px; height: 40px; }
  :is(.fr-box, .ideen-box, .koop-box) > .ptitle { padding-right: 52px; }
  .koop-box > .ptitle { padding-left: 52px; }

  .fr-k { padding: 10px 12px; gap: 7px; }
  .fr-kopf { min-height: 28px; }
  .fr-code b { font-size: 19px; }
  .fr-spiel small, .fr-hinw, .fr-werb small, .fr-truhe small { font-size: 11.5px; }
  .fr-lang { display: none; }
  .fr-kurz { display: block; }
  .fr-k .fr-list { min-height: 50px; max-height: 116px; overflow: auto; }
  .fr-k .fr-push { padding: 5px 8px; }
  .fr-push .set-sub { display: none; }
  .fr-box { max-height: 100%; padding-bottom: 10px; }
  .fr-k .fr-list { max-height: 104px; }

  .koop-box.drin .koop-list { gap: 4px; }
  .koop-box.drin .koop-p { min-height: 36px; padding: 2px 8px; }
  .koop-box.drin .koop-p.leer { min-height: 28px; }
  .koop-box.drin .koop-p .role-badge { width: 28px; height: 28px; }
  .koop-box.drin .koop-code { gap: 4px 8px; padding: 4px 8px; }
  .koop-box.drin .koop-code b { font-size: 21px; }
  .koop-box.drin .koop-code small { font-size: 10px; }
  .koop-box.drin .koop-code .btn { padding: 6px 9px; font-size: 12px; }
  .grp-sp { gap: 6px; }
  .grp-sp .set-row { padding: 6px 10px; }
  .grp-sp .note { padding: 5px 9px; }
  .grp-sp .suche-laeuft { padding: 3px; }
  .grp-sp .koop-auf { font-size: 12px; }
  .grp-sp .btn.big { padding-block: 11px; }

  .ideen-box .wk { padding: 6px 4px; }
  .ideen-box .wk svg { width: 60px; height: 60px; }
  .ideen-box textarea { height: 72px; }
  .idee-arten .btn { padding-block: 7px; }

  .modal-box.neu-modal { gap: 8px; }
  .neu-modal .neu-e { margin-top: 6px; }
  .neu-modal .neu-e ul { font-size: 14px; line-height: 1.3; }

  /* kleine Überstände */
  .hub-panel { gap: 6px; padding: 12px; }
  .hub-panel .mslot .ii { --s: 44px; }
  .hub-panel .raid-btn { padding-block: 10px; }
  .hub-panel .row2 .btn { padding-block: 7px; }
  .inv-grid .empty-msg { padding: 6px 12px; gap: 4px; }
  .inv-grid .empty-msg .ic { width: 30px; height: 30px; }
  .ruhm-p { padding: 8px 14px; gap: 5px; }
  .ruhm-p .rw { padding: 2px 10px; }
  .ruhm-p .rw .btn { padding: 2px 0; }
  .ruhm-p .ruhm-frei { padding-block: 4px; }
  .ruhm-p > .btn { padding-block: 5px; }
  .erf-p { padding: 8px 12px; gap: 4px; }
  .erf-p .erf-l { gap: 2px; }
  .erf-p .erf { padding: 0 8px; line-height: 1.12; min-height: 33px; }
  .erf-p .erf b { font-size: 12.5px; }
  .erf-p .erf small { font-size: 10.5px; }
  .erf-p .erf .btn { padding: 3px 7px; font-size: 11px; }
  .res { gap: 5px; padding-top: 8px; }
  .res .res-title { line-height: 1.1; }
  .res .res-title { font-size: 44px; }
  .res .unlock { padding: 4px 10px; }
  .res-btns { padding: 5px 0 7px; }
}

/* Raid-Wahl am Handy quer: Reiter statt Scrollen */
.raid.schmal { gap: 6px; top: 70px; bottom: 8px; left: 12px; right: 12px; }
.schmal .bcard { height: 64px; }
.schmal .binfo { bottom: 5px; }
.schmal .binfo small { font-size: 10px; }
.schmal .binfo b { font-size: 17px; }
.schmal .raid-det { padding: 8px 14px; gap: 14px; }
.schmal .rd-info, .schmal .rd-side { gap: 6px; min-height: 0; }
.schmal .rd-name { font-size: 18px; line-height: 1.15; }
.schmal .rd-sub { font-size: 12px; }
.rd-reiter { display: flex; gap: 3px; flex: none; }
.rd-reiter .rt { flex: 1; min-width: 0; padding: 6px 2px; font-size: 11.5px; text-align: center; white-space: nowrap; }
.rd-seite { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 5px; }
.rd-seite > h3 { margin: 0; }
.rd-seite .mech { gap: 4px; }
.rd-seite .mech li { padding: 3px 8px 3px 22px; line-height: 1.25; }
.rd-seite .mech li::before { left: 8px; top: 8px; }
.rd-seite .extra { margin: 0; padding: 4px 9px; line-height: 1.25; font-size: 12px; }
.rd-seite .loot { gap: 5px; }
.rd-seite .auf-rang { flex: 1; min-height: 0; max-height: none; padding: 6px 9px; display: flex; flex-direction: column; }
.schmal .dtab { padding: 6px 3px; font-size: 11.5px; }
.schmal .auf-step { padding: 2px; }
.schmal .chips { gap: 4px; }
.schmal .chips span { padding: 3px 7px; font-size: 12px; }
.schmal .chips small { font-size: 9.5px; }
.rd-affixe { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 5px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--gold); font: 700 11.5px var(--body); text-align: left; cursor: pointer; }
.rd-affixe .ic { width: 14px; height: 14px; flex: none; }
.schmal .rd-side .note { padding: 3px 8px; font-size: 11.5px; line-height: 1.2; }
.schmal .rd-side .lockmsg { padding-block: 3px; font-size: 11.5px; }
.schmal .start { position: static; margin: auto 0 0; padding-block: 10px; font-size: 18px; flex: none; box-shadow: none; }

/* Freundesliste am Handy quer */
@media (max-height: 500px) {
  .fr-k .fr-p { gap: 6px; padding: 3px 6px; }
  .fr-k .fr-p .pid-av { width: 28px; height: 28px; }
  .fr-k .fr-t b { font-size: 12.5px; }
  .fr-k .fr-t small { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fr-k .fr-p .btn { flex: none; padding: 5px 7px; font: 700 11px var(--body); letter-spacing: 0; }
  .fr-k .fr-p .fr-x { font-size: 15px; }
}

/* Ergebnis: Meldungen gleich breit, die Ideen-Frage leise (keine Belohnung, darum kein Gold) */
.res-l > .unlocks.funde { width: 100%; max-width: none; margin: 0; }
.res-l > .funde > .fund { grid-column: 1 / -1; }
.res-l .unlock { width: 100%; min-width: 0; text-align: center; }
.idee-karte { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line2);
  background: linear-gradient(180deg, var(--panel1), var(--panel2)); color: var(--ink); font: inherit; text-align: left; cursor: pointer; animation: scrIn .5s ease 1.2s both; }
.idee-karte:hover { border-color: var(--gold); }
.ik-bilder { flex: none; display: flex; }
.ik-bilder svg { width: 28px; height: 28px; fill: #77808f; }
.ik-bilder svg:nth-child(2) { width: 36px; height: 36px; margin: -4px 3px; fill: var(--gold); }
.ik-text { min-width: 0; display: grid; line-height: 1.2; }
.ik-text b { font-size: 13px; }
.ik-text small { margin-top: 2px; color: var(--gold); font-size: 12px; }
@media (max-height: 500px) {
  .res-l > .unlocks.funde { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-l > .funde > .unlock:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .res-l > .idee-karte { padding: 6px 10px; }
  .res .res-btns { flex-wrap: nowrap; gap: 8px; }
  .res .res-btns .btn { min-width: 0; flex: 0 1 170px; padding-inline: 8px; white-space: normal; line-height: 1.1; justify-content: center; font-size: 13px; }
  .reveal::before { width: 240px; height: 240px; margin: -120px 0 0 -120px; }
}

/* Ergebnis in flachen, breiten Fenstern (z. B. Portal-iFrame 1650×720): ohne Scrollen */
@media (min-height: 501px) and (max-height: 860px) {
  .res { gap: 10px; padding-top: 10px; }
  .res-title, .lose .res-title { font-size: clamp(48px, 9vh, 80px); }
  .res-l { gap: 8px; }
  .res-l > .unlocks.funde { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .res-l > .funde > .unlock:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .res .unlock { padding: 9px 12px; font-size: 14px; }
  .res-btns { padding: 10px 0 12px; }
}
