/* =========================================================
   PokéRealms – UI-Styles (Login, Starter-Auswahl, HUD, Panels)
   ========================================================= */
:root {
  --bg: #0e1220;
  --panel: rgba(18, 23, 38, 0.94);
  --panel-solid: #141a2c;
  --panel-border: #2c3654;
  --text: #e8ecf8;
  --muted: #8f9bbd;
  --accent: #ffcb05;
  --accent-2: #3d7dca;
  --danger: #ff5a5a;
  --ok: #4fd08a;
  --warn: #ffb02e;
  --hp: #44d17a;
  --hp-mid: #f2c94c;
  --hp-low: #ef5350;
  --xp: #7d6bff;
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); overflow: hidden; }
button { font-family: inherit; }
.hidden { display: none !important; }

.screen { position: fixed; inset: 0; display: none; }
.screen.active { display: block; }

.btn {
  border: 1px solid var(--panel-border); background: #232c47; color: var(--text);
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px;
  transition: background .15s, transform .05s, border-color .15s;
}
.btn:hover:not(:disabled) { background: #2d3960; border-color: #46557f; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, #ffd84a, #f0b400); color: #1b1600; border-color: #c99400; }
.btn.primary:hover:not(:disabled) { background: linear-gradient(180deg, #ffe373, #ffc21a); }
.btn.small { padding: 4px 8px; font-size: 12px; border-radius: 6px; }
.btn.tiny { padding: 2px 6px; font-size: 11px; border-radius: 5px; min-width: 22px; }
.btn.active { background: var(--accent-2); border-color: #6aa3ea; }
.btn.danger { background: #5a2330; border-color: #8a3445; }

/* ---------------- Login ---------------- */
#screen-login {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(61, 125, 202, .35), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 203, 5, .18), transparent 50%),
    linear-gradient(160deg, #0b1020, #18203a);
}
#screen-login.active { display: grid; justify-items: center; align-items: start; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 0; }
#screen-login.active > .login-card { margin-block: auto; }
.login-card {
  width: min(420px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 16px; padding: 32px 28px; box-shadow: 0 20px 60px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 10px;
}
.logo { font-size: 44px; font-weight: 900; letter-spacing: -1px; color: var(--accent); text-shadow: 3px 3px 0 #2a5ba8, 6px 6px 0 rgba(0,0,0,.35); text-align: center; }
.logo span { color: #fff; }
.tagline { text-align: center; color: var(--muted); margin: 0 0 12px; font-size: 13px; }
.login-card label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.login-card input, .new-char input {
  padding: 12px 14px; font-size: 16px; border-radius: 8px; border: 1px solid var(--panel-border);
  background: #0c1120; color: var(--text); outline: none;
}
.login-card input:focus, .new-char input:focus { border-color: var(--accent); }
.login-card .btn { padding: 12px; font-size: 15px; }
.error { color: var(--danger); min-height: 18px; font-size: 13px; }
.login-help { color: var(--muted); font-size: 12px; margin: 0; text-align: center; }

/* ---------------- Starter-Auswahl ---------------- */
#screen-starter { background: linear-gradient(160deg, #0b1020, #161d33); overflow: hidden; }
#screen-starter.active { display: flex; flex-direction: column; }
.starter-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px 10px; flex-wrap: wrap; }
.starter-head h2 { margin: 0; font-size: 26px; }
.starter-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--panel-border); background: #1b2340; color: var(--text); padding: 6px 12px; border-radius: 999px;
  cursor: pointer; font-size: 13px; font-weight: 600;
}
.chip.active { background: var(--c, var(--accent-2)); border-color: transparent; color: #fff; }
.chip.off { opacity: .35; cursor: not-allowed; }
.chip.locked:not(.active) { opacity: .7; }
.starter-layout { flex: 1; display: grid; grid-template-columns: 1fr 360px; gap: 16px; padding: 0 24px 20px; min-height: 0; }
#starter-grid { overflow-y: auto; padding-right: 6px; }
.gen-block { margin-bottom: 14px; }
.gen-title { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 6px 0 8px; }
.gen-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.starter-card {
  position: relative; background: #182039; border: 2px solid transparent; border-radius: 12px; padding: 8px 8px 10px;
  cursor: pointer; color: var(--text); text-align: center; transition: transform .12s, border-color .12s, background .12s;
}
.starter-card:hover { transform: translateY(-2px); background: #1e2848; }
.starter-card.selected { border-color: var(--accent); background: #232d52; }
.starter-card img { width: 88px; height: 88px; object-fit: contain; display: block; margin: 0 auto; }
.sc-name { font-weight: 700; font-size: 14px; margin: 2px 0 6px; }
.sc-dex { position: absolute; top: 6px; left: 8px; font-size: 11px; color: var(--muted); }
.types { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.type-chip { font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 4px; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.4); text-transform: uppercase; letter-spacing: .5px; }
.role-badge { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; font-weight: 700; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 25%, transparent); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); }

#starter-detail { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 14px; padding: 18px; overflow-y: auto; }
.sd-img { width: 180px; height: 180px; object-fit: contain; display: block; margin: -10px auto -6px; }
.sd-name { text-align: center; font-size: 24px; font-weight: 800; }
.sd-name small { color: var(--muted); font-weight: 600; font-size: 13px; }
.sd-desc { color: var(--muted); font-size: 13px; text-align: center; margin: 10px 0; }
.sd-section { margin-top: 14px; }
.sd-section h4 { margin: 0 0 6px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.stat-row { display: grid; grid-template-columns: 54px 34px 1fr; gap: 8px; align-items: center; font-size: 12px; margin: 3px 0; }
.stat-row .bar-bg { height: 7px; background: #0c1120; border-radius: 4px; overflow: hidden; }
.stat-row .bar-bg div { height: 100%; border-radius: 4px; }
.evo-chain { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; font-size: 12px; }
.evo-chain .evo { text-align: center; }
.evo-chain img { width: 56px; height: 56px; object-fit: contain; display: block; margin: 0 auto; }
.evo-arrow { color: var(--muted); font-size: 11px; text-align: center; }
.move-line { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: #10162a; border-radius: 8px; margin: 4px 0; font-size: 13px; }
.move-line .mk { width: 22px; text-align: center; }
.move-line .mn { flex: 1; font-weight: 600; }
.move-line .mm { color: var(--muted); font-size: 11px; }
#starter-confirm { width: 100%; margin-top: 16px; padding: 12px; font-size: 15px; }

/* ---------------- Spiel ---------------- */
#game { position: absolute; inset: 0; display: block; cursor: crosshair; }
#hud { position: absolute; inset: 0; pointer-events: none; }
#hud > * { pointer-events: auto; }
#hud #zone-label, #hud #zone-banner, #hud #toasts, #hud #interact-hint, #hud #raid-hud { pointer-events: none; }

.unit-frame {
  position: absolute; top: 12px; left: 12px; display: flex; gap: 10px; align-items: center; width: 290px;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 12px; padding: 8px 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.unit-frame.target { top: auto; bottom: 112px; left: 50%; transform: translateX(-50%); width: 270px; }
.portrait { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #2b385e, #121829); border: 2px solid var(--accent); overflow: hidden; flex: none; display: grid; place-items: center; }
.portrait img { width: 100%; height: 100%; object-fit: contain; }
.uf-body { flex: 1; min-width: 0; }
.uf-name { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; gap: 6px; }
.lvl { color: var(--accent); font-size: 12px; font-weight: 800; flex: none; }
.uf-sub { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 3px; gap: 6px; }
.bar { position: relative; height: 14px; background: #0a0e1a; border-radius: 7px; overflow: hidden; margin-top: 4px; border: 1px solid #222b45; }
.bar .fill { height: 100%; background: var(--hp); transition: width .15s linear, background .2s; }
.bar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; font-weight: 700; text-shadow: 0 1px 2px #000; }
.bar.boss { height: 18px; border-radius: 9px; }
.bar.boss .fill { background: linear-gradient(90deg, #c62828, #ff5252); }

#party-frames { position: absolute; top: 116px; left: 12px; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.party-member { width: 200px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 8px; padding: 5px 8px; font-size: 12px; }
.party-member .bar { height: 9px; margin-top: 3px; }
.party-member.dead { opacity: .5; }

#zone-label { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--panel-border); padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
#zone-label .safe { color: var(--ok); }
#zone-label .danger { color: var(--warn); }
#zone-banner { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); text-align: center; font-size: 34px; font-weight: 900; text-shadow: 0 3px 0 #000, 0 0 20px rgba(0,0,0,.8); opacity: 0; transition: opacity .6s; white-space: nowrap; }
#zone-banner small { display: block; font-size: 15px; font-weight: 600; color: var(--accent); }
#zone-banner.show { opacity: 1; }

#raid-hud { position: absolute; top: 52px; left: 50%; transform: translateX(-50%); width: min(520px, 70vw); background: var(--panel); border: 1px solid #5a2330; border-radius: 12px; padding: 8px 12px; }
.raid-title { display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; }
#raid-timer { font-variant-numeric: tabular-nums; color: var(--accent); }
#leave-instance { position: absolute; top: 56px; left: calc(50% + min(270px, 36vw)); z-index: 6; pointer-events: auto; white-space: nowrap; }
.map-fly { width: 100%; margin-top: 6px; }
#raid-hud.enraged { border-color: #ff3b3b; box-shadow: 0 0 18px rgba(255,59,59,.45); }

#menu-buttons { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
#menu-buttons button {
  position: relative; width: 44px; height: 44px; font-size: 20px; border-radius: 10px; border: 1px solid var(--panel-border);
  background: var(--panel); color: var(--text); cursor: pointer;
}
#menu-buttons button:hover { border-color: var(--accent); }
#menu-buttons button#catch-mode.on { border-color: #5ad17a; box-shadow: 0 0 0 2px #5ad17a, 0 0 10px rgba(90, 209, 122, .6); }
#menu-buttons button span { position: absolute; bottom: 1px; right: 4px; font-size: 9px; color: var(--muted); font-weight: 800; }

#actionbar { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; background: var(--panel); border: 1px solid var(--panel-border); padding: 8px; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
#skills, #hotbar { display: flex; gap: 6px; }
.sep { width: 2px; height: 48px; background: var(--panel-border); border-radius: 1px; }
.slot {
  position: relative; width: 58px; height: 58px; border-radius: 10px; background: #0d1222; border: 2px solid #2b3556;
  cursor: pointer; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; user-select: none;
}
.slot.skill { width: 76px; background: linear-gradient(180deg, color-mix(in srgb, var(--tc, #555) 45%, #0d1222), #0d1222 85%); border-color: color-mix(in srgb, var(--tc, #555) 70%, #2b3556); }
.slot:hover { filter: brightness(1.2); }
.slot.flash { animation: flash .25s; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.9) inset; } 100% { box-shadow: 0 0 0 30px rgba(255,255,255,0) inset; } }
.slot .key { position: absolute; top: 2px; left: 5px; font-size: 11px; font-weight: 900; color: var(--accent); text-shadow: 0 1px 2px #000; z-index: 2; }
.slot .kicon { font-size: 18px; line-height: 1; }
.slot .label { font-size: 10px; font-weight: 700; text-align: center; line-height: 1.08; padding: 0 3px; margin-top: 3px; max-height: 22px; overflow: hidden; }
.slot.skill .label, #basic-slot .label { width: 100%; max-height: none; margin-top: 2px; line-height: 1.05; overflow-wrap: normal; word-break: normal; text-shadow: 0 1px 2px #000; }
.slot.skill .kicon, #basic-slot .kicon { display: flex; align-items: center; justify-content: center; height: 30px; }
.slot img { width: 40px; height: 40px; image-rendering: pixelated; }
.slot .count { position: absolute; bottom: 2px; right: 5px; font-size: 11px; font-weight: 800; text-shadow: 0 1px 2px #000; }
.slot .cd { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.68); pointer-events: none; }
.slot .cdtext { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 16px; text-shadow: 0 1px 3px #000; pointer-events: none; z-index: 1; }
.slot.empty { opacity: .5; }
.slot.empty::after { content: "–"; color: var(--muted); }

#xpbar { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: min(720px, 90vw); height: 10px; background: #0a0e1a; border: 1px solid #222b45; border-radius: 5px; overflow: hidden; }
#xpbar-fill { height: 100%; background: linear-gradient(90deg, #5d4bff, #a28bff); width: 0; transition: width .3s; }
#xpbar-text { position: absolute; inset: 0; font-size: 8px; display: grid; place-items: center; font-weight: 800; text-shadow: 0 1px 1px #000; }

#chat { position: absolute; left: 12px; bottom: 112px; width: min(360px, 34vw); display: flex; flex-direction: column; gap: 4px; }
#chat-log { max-height: 190px; overflow-y: auto; font-size: 12px; background: rgba(10, 14, 26, .62); border-radius: 10px; padding: 6px 8px; line-height: 1.4; }
#chat-log .line { word-wrap: break-word; }
#chat-log .system { color: #ffd76a; font-style: italic; }
#chat-log .from { font-weight: 800; color: #8fc1ff; }
#chat-log .zn { color: var(--muted); font-size: 10px; }
#chat-input { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--panel-border); background: rgba(10, 14, 26, .85); color: var(--text); outline: none; font-size: 13px; }
#chat-input:focus { border-color: var(--accent); }

#interact-hint { position: absolute; bottom: 196px; left: 50%; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--accent); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; }
#interact-hint kbd { background: var(--accent); color: #000; border-radius: 4px; padding: 0 6px; margin-right: 6px; font-family: inherit; }

#toasts { position: absolute; top: 120px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(560px, 90vw); }
.toast { background: var(--panel); border: 1px solid var(--panel-border); border-left: 4px solid var(--accent-2); padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; animation: toastIn .2s ease-out; box-shadow: 0 6px 16px rgba(0,0,0,.4); text-align: center; }
.toast.success { border-left-color: var(--ok); }
.toast.warn { border-left-color: var(--warn); }
.toast.error { border-left-color: var(--danger); }
.toast.levelup { border-left-color: var(--accent); color: var(--accent); font-size: 15px; }
.toast.move { border-left-color: #b45cff; }
.toast.loot { border-left-color: #ffd76a; }
.toast.out { opacity: 0; transition: opacity .4s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

#death-overlay, #disconnect { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(40, 0, 0, .45); pointer-events: none; }
#disconnect { background: rgba(0,0,0,.7); pointer-events: auto; z-index: 50; }
.death-box { background: var(--panel); border: 1px solid #8a3445; border-radius: 14px; padding: 18px 28px; text-align: center; }
.death-box h2 { margin: 0 0 6px; color: var(--danger); }

#raid-result { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(460px, 92vw); background: var(--panel-solid); border: 2px solid var(--accent); border-radius: 16px; padding: 20px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.6); z-index: 20; }
#raid-result.fail { border-color: var(--danger); }
#raid-result h2 { margin: 0 0 4px; }
#raid-result .loot-list { text-align: left; margin: 12px 0; display: flex; flex-direction: column; gap: 4px; }
#raid-result .loot-item { display: flex; align-items: center; gap: 8px; background: #0d1222; padding: 4px 8px; border-radius: 8px; font-size: 13px; }
#raid-result .loot-item img { width: 28px; height: 28px; image-rendering: pixelated; }

/* ---------------- Panels ---------------- */
.panel { position: absolute; top: 66px; right: 12px; width: min(460px, calc(100vw - 24px)); max-height: calc(100vh - 190px); display: flex; flex-direction: column; background: var(--panel-solid); border: 1px solid var(--panel-border); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.5); z-index: 10; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--panel-border); }
.panel-head h3 { margin: 0; font-size: 16px; }
#panel-close { background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; }
#panel-body { overflow-y: auto; padding: 10px 14px 14px; font-size: 13px; }
#panel-body h4 { margin: 14px 0 6px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
#panel-body h4:first-child { margin-top: 2px; }
.row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: #10162a; border-radius: 8px; margin: 4px 0; }
.row img.icon { width: 32px; height: 32px; image-rendering: pixelated; flex: none; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 700; }
.row .sub { color: var(--muted); font-size: 11px; }
.row .btns { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; max-width: 210px; }
.row input[type=number] { width: 52px; padding: 4px; border-radius: 6px; border: 1px solid var(--panel-border); background: #0c1120; color: var(--text); }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kv div { background: #10162a; border-radius: 8px; padding: 6px 8px; }
.kv b { display: block; font-size: 15px; }
.kv span { color: var(--muted); font-size: 11px; }
.kv .bonus { color: var(--ok); font-size: 11px; }
.tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.gear-stats { font-size: 11px; color: #b9c4e4; }
.box-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.box-grid div { background: #10162a; border-radius: 8px; text-align: center; font-size: 10px; padding: 2px; }
.box-grid img { width: 56px; height: 56px; object-fit: contain; }
.equip-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.equip-slot { background: #10162a; border: 1px dashed var(--panel-border); border-radius: 8px; padding: 8px; min-height: 58px; font-size: 12px; cursor: pointer; }
.equip-slot.filled { border-style: solid; }
.muted { color: var(--muted); }
.lobby { background: #10162a; border-radius: 10px; padding: 8px 10px; margin: 6px 0; }
.lobby .members { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.lobby .member { background: #1b2340; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.help-table { width: 100%; border-collapse: collapse; }
.help-table td { padding: 5px 4px; border-bottom: 1px solid #1e2640; vertical-align: top; }
.help-table td:first-child { white-space: nowrap; font-weight: 800; color: var(--accent); width: 110px; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #2c3654; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 900px) {
  .starter-layout { grid-template-columns: 1fr; overflow-y: auto; }
  #starter-grid { overflow: visible; }
  #chat { display: none; }
  .slot { width: 46px; height: 46px; }
  .slot.skill { width: 58px; }
}

/* ---------------- Orden & Arenen ---------------- */
#badge-strip { position: absolute; top: 88px; left: 12px; display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 999px; padding: 4px 8px; pointer-events: auto; }
.badge { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; border: 2px dashed #3a4566; background: #0c1120; }
.badge.got { border: 2px solid var(--bc); background: radial-gradient(circle at 35% 30%, #fff8, var(--bc)); box-shadow: 0 0 6px var(--bc); }
.badge.big { width: 40px; height: 40px; font-size: 22px; }
.badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; font-size: 11px; }
.badge-grid > div { background: #10162a; border-radius: 8px; padding: 6px 2px; }
.badge-grid > div.got { box-shadow: inset 0 0 0 1px var(--bc); }
.gym-head { display: flex; gap: 12px; align-items: center; background: linear-gradient(90deg, color-mix(in srgb, var(--bc) 30%, #10162a), #10162a); border-radius: 10px; padding: 10px; }
.gym-badge { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: radial-gradient(circle at 35% 30%, #fff9, var(--bc)); box-shadow: 0 0 12px var(--bc); flex: none; }

/* ---------------- Legendäre Raids ---------------- */
.legendary-row { box-shadow: inset 0 0 0 1px #ffd84a66; background: linear-gradient(90deg, #2a2410, #10162a 60%); }
.legend-tag { font-size: 10px; font-weight: 900; color: #1b1600; background: linear-gradient(90deg, #ffd84a, #ffb02e); padding: 1px 6px; border-radius: 4px; letter-spacing: .5px; }

/* ---------------- Quests ---------------- */
#quest-tracker { position: absolute; top: 94px; right: 12px; width: 260px; display: flex; flex-direction: column; gap: 6px; pointer-events: auto; cursor: pointer; }
.qt-block { background: rgba(14, 18, 32, .78); border: 1px solid var(--panel-border); border-left: 3px solid #ffd23f; border-radius: 8px; padding: 6px 9px; font-size: 12px; }
.qt-block.main { border-left-color: #5ab0ff; }
.qt-block.ready { border-left-color: var(--ok); }
.qt-title { font-weight: 800; margin-bottom: 2px; }
.qobj { font-size: 12px; color: #cfd8f0; line-height: 1.45; }
.qobj.done { color: var(--ok); text-decoration: line-through; opacity: .8; }
.qobj b { color: var(--accent); }
.qcard { background: #10162a; border: 1px solid #222b45; border-left: 3px solid #ffd23f; border-radius: 10px; padding: 9px 11px; margin: 6px 0; }
.qcard.main { border-left-color: #5ab0ff; }
.qcard.ready { border-left-color: var(--ok); }
.qcard p { margin: 4px 0 6px; color: #b9c4e4; font-size: 12px; }
.qcard .btn { margin-top: 6px; }
.qhead { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.qrewards { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.qrewards span { background: #1b2340; border-radius: 6px; padding: 2px 7px; font-size: 11px; }
.qready { color: var(--ok); font-weight: 700; margin-top: 6px; font-size: 12px; }
.npc-greet { font-style: italic; color: #d9e2ff; }
.toast.quest { border-left-color: #5ab0ff; }
#quest-popup { position: absolute; top: 30%; left: 50%; transform: translateX(-50%); min-width: 320px; max-width: 90vw; background: linear-gradient(180deg, #1c2648, #121a32); border: 2px solid #ffd23f; border-radius: 14px; padding: 14px 20px; text-align: center; box-shadow: 0 0 30px rgba(255,210,63,.35); animation: toastIn .3s ease-out; pointer-events: none; z-index: 15; transition: opacity .5s; }
#quest-popup.out { opacity: 0; }
.qp-kind { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #ffd23f; font-weight: 800; }
.qp-title { font-size: 22px; font-weight: 900; margin: 4px 0 8px; }
.qp-rewards { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.qp-rewards span { background: #0d1222; border-radius: 6px; padding: 3px 9px; font-size: 12px; font-weight: 700; }
@media (max-width: 900px) { #quest-tracker { display: none; } }

/* ===================== Charakterfenster (C), Ausrüster, Sockel & Tooltips ===================== */
.bar.es { height: 8px; margin-bottom: 3px; }
.bar.es .fill { background: linear-gradient(90deg, #4f8cff, #9cc8ff); }
.bar.es span { font-size: 9px; line-height: 8px; }
#skills .slot.locked { opacity: .45; filter: grayscale(.7); }
@keyframes glowPulse { 50% { box-shadow: 0 0 0 2px #ffd23f, 0 0 4px #ffd23f; } }
#basic-slot.auto { box-shadow: 0 0 0 2px #ff8a00, 0 0 12px #ff8a00; }
.small { font-size: 11px; }
.grow { flex: 1; min-width: 0; }

#poe-window { position: absolute; top: 54px; left: 50%; transform: translateX(-50%); width: min(1240px, calc(100vw - 20px)); height: min(760px, calc(100vh - 150px));
  display: flex; flex-direction: column; z-index: 12; font-size: 13px; color: var(--text);
  background: radial-gradient(120% 80% at 0% 0%, rgba(80, 60, 160, .18), transparent 60%), radial-gradient(100% 70% at 100% 100%, rgba(255, 190, 40, .08), transparent 60%), #0e1222f5;
  border: 1px solid #39406a; border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.05); overflow: hidden; }
#poe-window h4 { margin: 12px 0 6px; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: #9aa6d4; }
.cw-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #2c3352; background: linear-gradient(180deg, rgba(255,255,255,.05), transparent); }
.cw-portrait { width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; font-size: 28px;
  background: radial-gradient(circle at 50% 40%, #2b3566, #12162a); border: 2px solid #ffcb05; box-shadow: 0 0 16px rgba(255, 203, 5, .25); }
.cw-portrait img { width: 120%; height: 120%; object-fit: contain; image-rendering: auto; }
.cw-title { flex: 1; min-width: 0; }
.cw-name { font-size: 17px; font-weight: 800; }
.cw-lvl { font-size: 12px; background: #ffcb05; color: #1b1600; border-radius: 6px; padding: 1px 7px; margin-left: 4px; vertical-align: 2px; }
.cw-sub { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; font-size: 12px; color: var(--muted); }
.cw-class, .cw-role { border: 1px solid var(--c); color: var(--c); border-radius: 999px; padding: 1px 8px; font-weight: 700; font-size: 11px; background: color-mix(in srgb, var(--c) 12%, transparent); }
.cw-head-right { display: flex; align-items: center; gap: 10px; }
.cw-money { font-weight: 800; color: #ffd23f; background: #1d1a0e; border: 1px solid #5a4a14; border-radius: 8px; padding: 4px 10px; white-space: nowrap; }
.cw-close { background: #232a45; border: 1px solid #39406a; color: #cfd6f5; width: 32px; height: 32px; border-radius: 8px; font-size: 16px; cursor: pointer; }
.cw-close:hover { background: #5a2330; }
.cw-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 330px minmax(300px, 1fr) minmax(310px, 1fr); gap: 0; }
.cw-col { overflow-y: auto; padding: 12px 14px; min-height: 0; }
.cw-col + .cw-col { border-left: 1px solid #232a45; }
.cw-right { display: flex; flex-direction: column; padding: 0; }
.cw-tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid #232a45; }
.cw-tabs button { flex: 1; background: transparent; border: 1px solid transparent; border-bottom: none; color: var(--muted); padding: 7px 8px; border-radius: 10px 10px 0 0; cursor: pointer; font-weight: 700; font-size: 12px; }
.cw-tabs button:hover { color: var(--text); background: rgba(255,255,255,.03); }
.cw-tabs button.active { color: var(--text); background: #171c33; border-color: #2c3352; box-shadow: inset 0 2px 0 var(--accent); }
.cw-tabs small { color: var(--muted); font-weight: 600; }
.cw-tabbody { flex: 1; overflow-y: auto; padding: 10px 12px 14px; min-height: 0; }

/* Ausrüstungs-Puppe */
.doll2 { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  grid-template-areas: "amulet helm ring1" "weapon body ring2" "gloves body boots"; }
.doll-art { position: absolute; inset: 18% 22%; display: grid; place-items: center; opacity: .12; pointer-events: none; filter: saturate(.4); }
.doll-art img { max-width: 100%; max-height: 100%; }
.dslot { position: relative; min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.15)), #141a30; border: 1px solid color-mix(in srgb, var(--rc, #2c3352) 55%, #2c3352);
  border-radius: 12px; cursor: pointer; box-shadow: inset 0 0 18px color-mix(in srgb, var(--rc, transparent) 14%, transparent); transition: transform .08s, border-color .15s; }
.dslot[style*="grid-area:body"] { min-height: 184px; }
.dslot:hover { transform: translateY(-1px); border-color: var(--rc, #4a5590); }
.dslot.selected { outline: 2px solid var(--accent); outline-offset: 1px; }
.dslot.empty { border-style: dashed; opacity: .6; background: rgba(20, 26, 48, .6); }
.dslot.empty:hover { opacity: .9; }
.dslot.bad { background: #2a1416; }
.dslot-icon { font-size: 24px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.dslot-name { font-size: 11px; font-weight: 700; line-height: 1.15; word-break: break-word; }
.dslot-label { font-size: 10px; color: var(--muted); }
.cw-sets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cw-set { font-size: 11px; color: #3cff5c; background: #0f2414; border: 1px solid #2a6a34; border-radius: 6px; padding: 1px 6px; }

/* Skill-Leiste im Charakterfenster */
.cw-skills { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cw-skill { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 10px; cursor: pointer; min-width: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 22%, transparent), transparent 80%), #141a30; border: 1px solid #2c3352; }
.cw-skill:hover { border-color: #4a5590; }
.cw-skill.empty { opacity: .65; border-style: dashed; }
.cw-skill.picking { outline: 2px solid var(--accent); }
.cw-skill.spec { cursor: default; border-color: #4a3d6a; }
.cw-key { flex: none; width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #1b1600; background: var(--accent); border-radius: 5px; }
.cw-skill.spec .cw-key { background: #b9a2ff; }
.cw-skill-ico { font-size: 14px; }
.cw-skill-name { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.cw-skill .sup-badge { position: static; }

/* Mitte: Details */
.cw-detail .tt-card { min-width: 0; max-width: none; }
.cw-crumb { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.cw-overview .cw-big { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cw-stat-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 12px; background: #141a30; border: 1px solid #2c3352; }
.cw-stat-tile span { font-size: 20px; }
.cw-stat-tile b { font-size: 22px; }
.cw-stat-tile small { color: var(--muted); }
.cw-hint { margin-top: 12px; background: #11162a; border: 1px solid #232a45; border-radius: 12px; padding: 4px 12px; }
.cw-hint p { margin: 8px 0; color: #c2cae6; font-size: 12px; }
.dact { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; align-items: center; }
.cw-sockbox { background: #11162a; border: 1px solid #232a45; border-radius: 12px; padding: 2px 12px 8px; }
.cw-gemlist { display: flex; flex-direction: column; gap: 4px; }
.cw-gem { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; background: #141a30; border: 1px solid #2c3352; cursor: pointer; }
.cw-gem:hover { border-color: #4a5590; background: #18203a; }
.cw-gem.current { outline: 2px solid var(--accent); }
.cw-gem.unlearn { opacity: .5; cursor: not-allowed; }
.cw-gem-name { font-weight: 700; font-size: 12px; }
.cw-gem-sub { flex: 1; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-gem-lvl { color: #9aa6d4; font-size: 11px; white-space: nowrap; }
.cw-spots { display: flex; flex-direction: column; gap: 4px; }
.cw-spot { display: flex; align-items: center; gap: 8px; text-align: left; color: var(--text); padding: 8px 10px; border-radius: 9px; background: #141a30; border: 1px solid #2c3352; cursor: pointer; font-size: 12px; }
.cw-spot:hover { border-color: var(--accent); }

/* Rechts: Werte */
.stat-card { background: #11162a; border: 1px solid #232a45; border-radius: 12px; padding: 2px 12px 8px; margin-bottom: 8px; }
.kv2 { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dashed rgba(255,255,255,.05); font-size: 12px; }
.kv2:last-child { border-bottom: none; }
.kv2 span { color: #b5bedf; }
.res-row { display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: 8px; font-size: 12px; padding: 3px 0; }
.res-row b { text-align: right; } .res-row b.capped { color: #ffd23f; } .res-row b.neg { color: #ff6b6b; }
.res-bar { height: 8px; border-radius: 4px; background: #0a0d1a; overflow: hidden; border: 1px solid #232a45; }
.res-bar div { height: 100%; border-radius: 4px; }
.res-bar.fire div { background: linear-gradient(90deg, #8a2a10, #ff7a2a); }
.res-bar.cold div { background: linear-gradient(90deg, #12407a, #5ab8ff); }
.res-bar.light div { background: linear-gradient(90deg, #7a6a10, #ffe14a); }
.res-bar.chaos div { background: linear-gradient(90deg, #4a1a5a, #c06cff); }

/* Rechts: Tasche */
.cw-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.cw-chips .chip small { color: var(--muted); }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.ctile { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 7px 5px; min-height: 92px; border-radius: 10px; cursor: pointer;
  background: #141a30; border: 1px solid color-mix(in srgb, var(--rc) 45%, #2c3352); box-shadow: inset 0 -14px 20px -16px var(--rc); }
.ctile:hover { transform: translateY(-1px); border-color: var(--rc); }
.ctile.selected { outline: 2px solid var(--accent); }
.ctile.bad { background: #2a1416; }
.ctile-icon { font-size: 20px; }
.ctile-name { font-size: 11px; font-weight: 700; line-height: 1.15; word-break: break-word; }
.ctile-sub { font-size: 10px; color: var(--muted); }

/* Kugeln */
.orbs { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.orb { position: relative; width: 40px; height: 40px; background: #1a1f33; border: 1px solid #4a3d22; border-radius: 9px; cursor: pointer; padding: 0; }
.orb:hover { background: #2a2a1a; border-color: #c8a96a; }
.orb img { width: 30px; height: 30px; image-rendering: pixelated; }
.orb span { position: absolute; right: 2px; bottom: 0; font-size: 10px; font-weight: 800; text-shadow: 0 1px 2px #000; color: #fff; }
.orb-list { display: flex; flex-wrap: wrap; gap: 6px; }
.orb-entry { display: flex; align-items: center; gap: 4px; background: #10162a; padding: 3px 8px 3px 3px; border-radius: 8px; font-size: 11px; }
.orb-entry img { width: 26px; height: 26px; image-rendering: pixelated; }

/* Sockel & Steine */
.sockets { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; row-gap: 3px; }
.sock { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #000; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.sockets.mini .sock { width: 12px; height: 12px; border-width: 1px; }
.sockets.mini .gem { display: none; }
.sockets.mini .link { width: 5px; height: 3px; }
.sockets.mini .sock.filled::after { content: ''; display: block; width: 4px; height: 4px; background: #ffd23f; border-radius: 50%; box-shadow: 0 0 2px #000; }
.sockets.big { margin: 6px 0; }
.sockets.big .sock { width: 38px; height: 38px; cursor: pointer; border-width: 3px; transition: transform .1s; }
.sockets.big .sock:hover { transform: scale(1.1); }
.sockets.big .sock.empty { box-shadow: inset 0 0 0 2px rgba(255,255,255,.12), 0 0 0 0 transparent; }
.sockets.big .sock.empty:hover { box-shadow: inset 0 0 0 2px rgba(255,255,255,.3), 0 0 10px rgba(255,255,255,.25); }
.sockets.big .sock .gem { width: 28px; height: 28px; font-size: 10px; }
.sockets.big .link { width: 14px; height: 6px; border-radius: 3px; }
.sock.c-R { background: #7a1f17; } .sock.c-G { background: #1f6a22; } .sock.c-B { background: #1f3f8a; }
.sock.filled { box-shadow: inset 0 0 0 2px rgba(255,255,255,0.85), 0 0 4px rgba(255,255,255,0.3); }
.sock.picking { outline: 3px solid #ffd23f; outline-offset: 2px; }
.link { width: 8px; height: 4px; background: transparent; }
.link.on { background: #d9c38a; }
.gem { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; font-size: 8px; font-weight: 900; color: #fff; text-shadow: 0 1px 1px #000; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.gem.c-R { background: radial-gradient(circle at 35% 30%, #ff9a8c, #c8382a 60%, #6a1610); }
.gem.c-G { background: radial-gradient(circle at 35% 30%, #a8ff9c, #3aa83a 60%, #145a14); }
.gem.c-B { background: radial-gradient(circle at 35% 30%, #a8c8ff, #3a6ad8 60%, #142e6a); }
.gem.sup { clip-path: circle(48%); }
.sock .gem { width: 15px; height: 15px; font-size: 7px; }
.sup-chip { display: inline-block; font-size: 10px; background: #1d2a1d; border: 1px solid #3a6a3a; border-radius: 6px; padding: 0 5px; margin: 2px 3px 0 0; }
.sup-chip.off { opacity: .5; text-decoration: line-through; }
.key { color: var(--accent); width: 16px; }
.kv b.capped { color: #ffd23f; } .kv b.neg { color: #ff6b6b; }

/* Skill-Übersicht (K) */
.sk-list { display: flex; flex-direction: column; gap: 6px; }
.sk-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #141a30; border: 1px solid #2c3352; border-radius: 10px; }
.sk-row.spec { border-color: #4a3d6a; }
.sk-row.spec .cw-key { background: #b9a2ff; }
.sk-info { flex: 1; min-width: 0; font-size: 12px; }
.sk-row select { max-width: 200px; background: #0e1222; color: var(--text); border: 1px solid #2c3352; border-radius: 6px; padding: 4px; }

/* Ausrüster */
.cw-vendor .vtabs { padding-top: 8px; }
.v-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px; }
.v-gear { display: grid; grid-template-columns: 190px 1fr; gap: 14px; height: 100%; min-height: 0; }
.v-slots { display: flex; flex-direction: column; gap: 4px; }
.v-slot { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; background: #141a30; border: 1px solid #2c3352; color: var(--text); cursor: pointer; font-weight: 700; font-size: 12px; text-align: left; }
.v-slot:hover { border-color: #4a5590; }
.v-slot.active { border-color: var(--accent); background: linear-gradient(90deg, rgba(255, 203, 5, .14), transparent), #141a30; }
.v-slot span:first-child { font-size: 18px; }
.v-slot small { color: var(--muted); }
.v-main { min-height: 0; }
.v-eq { margin-bottom: 10px; padding: 8px 12px; background: #11162a; border: 1px solid #232a45; border-radius: 10px; font-size: 12px; }
.v-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; align-items: start; }
.v-card { display: flex; flex-direction: column; border-radius: 6px; }
.v-card .tt-card { min-width: 0; border-radius: 6px 6px 0 0; }
.v-buy { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; background: #0a0d1a; border: 1px solid #2c3352; border-top: none; border-radius: 0 0 8px 8px; }
.v-cur { display: flex; flex-direction: column; gap: 6px; max-width: 760px; }
.v-cur-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: #141a30; border: 1px solid #2c3352; border-radius: 10px; }
.v-cur-row img { width: 32px; height: 32px; image-rendering: pixelated; }
.v-sellcols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.v-sell { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; background: #141a30; border: 1px solid #2c3352; margin-bottom: 4px; cursor: pointer; font-size: 12px; }
.v-sell.sel { background: rgba(255, 210, 63, .1); border-color: #8a7420; }

/* Tooltip */
#tooltip { position: fixed; z-index: 50; pointer-events: none; display: flex; flex-direction: column; gap: 4px; max-width: 340px; }
.tt-card { background: rgba(6, 6, 10, .96); border: 1px solid var(--rc, #888); border-radius: 6px; min-width: 240px; box-shadow: 0 8px 26px rgba(0,0,0,.7); }
.tt-head { padding: 6px 10px; text-align: center; border-bottom: 1px solid var(--rc, #888); background: linear-gradient(180deg, color-mix(in srgb, var(--rc, #888) 18%, transparent), transparent); }
.tt-name { color: var(--rc, #fff); font-weight: 800; font-size: 14px; }
.tt-name.sub { font-size: 12px; font-weight: 600; }
.tt-body { padding: 6px 10px 8px; text-align: center; font-size: 12px; color: #d0d0d0; display: flex; flex-direction: column; gap: 2px; }
.tt-body b { color: #fff; }
.tt-dim { color: #8f8f9a; }
.tt-bad { color: #ff6060; }
.tt-good { color: #7dffb0; }
.tt-mod { color: #8f9bff; }
.gemcard .tt-body .tt-mod { color: #9fd6ff; }
.tt-tier { color: #666; font-size: 10px; }
.tt-flavour { color: #af6025; font-style: italic; }
.tt-price { color: #ffd23f; font-weight: 800; }
.tt-sep { height: 1px; background: linear-gradient(90deg, transparent, var(--rc, #888), transparent); margin: 4px 0; opacity: .6; }
.tt-cmp-label { font-size: 10px; color: #9a9a9a; text-transform: uppercase; letter-spacing: 1px; text-align: center; }
.tt-xp { height: 5px; background: #222; border-radius: 3px; overflow: hidden; margin: 2px 20px; }
.tt-xp div { height: 100%; background: linear-gradient(90deg, #6aa3ea, #b7a6ff); }
.tt-set-head { color: #2fdc4a; font-weight: 800; }
.tt-set-sub { color: #8fd99a; font-size: 11px; margin-top: 3px; }
.tt-set-on { color: #3cff5c; }
.tt-set-off { color: #6f7a70; }
.tt-set-count { color: #8fd99a; font-weight: 600; font-size: 11px; }
.tt-set-theme { color: #9fb4a2; font-size: 11px; margin-bottom: 3px; }
.tt-set-cls { color: #ffd23f; }
.tt-set-lock { color: #ff6b6b; }
.tt-set-tier { color: #6f7a70; font-size: 11px; margin-top: 3px; line-height: 1.35; }
.tt-set-tier.on { color: #8fff9f; }
.tt-set-tier b { color: inherit; }
.cw-set.locked { opacity: .6; }

@media (max-width: 1050px) {
  #poe-window { top: 8px; height: calc(100vh - 16px); }
  .cw-body { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; overflow-y: auto; }
  .cw-left { grid-column: 1 / -1; border-bottom: 1px solid #232a45; }
  .cw-col { overflow: visible; min-height: auto; }   /* min-height:auto: Spalten nicht auf 0 zusammendrücken (sonst überlappen sie) */
  .cw-right .cw-tabbody { overflow: visible; min-height: auto; }
  .v-gear { grid-template-columns: 1fr; }
  .v-slots { flex-direction: row; flex-wrap: wrap; }
  .v-sellcols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cw-body { grid-template-columns: 1fr; }
  .cw-col + .cw-col { border-left: none; border-top: 1px solid #232a45; }
  .cw-head-right .muted { display: none; }
}

/* ===================== Touch-Steuerung (Handy & Tablet) – client/touch.js ===================== */
#touch-ui { display: none; }
.touch #touch-ui { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 8; --tc-gap: env(safe-area-inset-right); }
.touch #touch-ui button { pointer-events: auto; touch-action: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.touch #game { touch-action: none; }
.touch body, .touch #screen-game { overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.touch input, .touch textarea { -webkit-user-select: text; user-select: text; font-size: max(16px, 1em); }   /* ≥ 16 px: iPhone zoomt beim Tippen nicht hinein */

/* Joystick: Bereich linke Bildschirmhälfte, sichtbare Ruheposition unten links */
#tc-stick-zone { position: absolute; left: 0; bottom: 0; width: 44vw; height: 66vh; pointer-events: auto; touch-action: none; }
#tc-stick { position: fixed; left: calc(86px + env(safe-area-inset-left)); top: calc(100% - 86px - env(safe-area-inset-bottom)); width: 124px; height: 124px; margin: -62px 0 0 -62px; pointer-events: none; opacity: .55; transition: opacity .2s; }
#tc-stick.on { opacity: 1; transition: none; }
#tc-ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(10, 16, 32, .35) 0 55%, rgba(10, 16, 32, .55) 56% 100%); border: 2px solid rgba(255, 255, 255, .28); box-shadow: inset 0 0 18px rgba(0, 0, 0, .35), 0 4px 14px rgba(0, 0, 0, .3); }
#tc-ring::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .14); }
#tc-ring::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; opacity: 0; transition: opacity .12s;
  background: conic-gradient(from calc(var(--a, 0deg) - 30deg), rgba(255, 210, 63, .85) 0 60deg, transparent 60deg);
  -webkit-mask: radial-gradient(circle, transparent 0 58px, #000 59px); mask: radial-gradient(circle, transparent 0 58px, #000 59px); }
#tc-ring.dir::after { opacity: 1; }
#tc-knob { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #dfe7fb 45%, #9fb0d8); border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 4px 12px rgba(0, 0, 0, .5), inset 0 -3px 6px rgba(60, 80, 140, .35); }

/* Tasten rechts: Angriff + Bogen aus Skills */
#tc-buttons { position: absolute; right: calc(16px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); width: 1px; height: 1px; pointer-events: none; }
.tc-btn { position: absolute; transform: translate(50%, 50%); border-radius: 50%; padding: 0; overflow: hidden; color: #fff; font-weight: 800; text-shadow: 0 1px 2px #000;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--tc, #3d4a70) 35%, #1a2238), rgba(12, 18, 34, .82) 75%);
  border: 2.5px solid color-mix(in srgb, var(--tc, #6a7aa8) 85%, white); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 5px 14px rgba(0, 0, 0, .45), inset 0 2px 0 rgba(255, 255, 255, .18);
  transition: transform .08s, filter .12s, opacity .2s; }
.tc-btn.down { transform: translate(50%, 50%) scale(.9); filter: brightness(1.35); }
.tc-btn .tc-ico { font-size: 24px; line-height: 1; position: relative; z-index: 1; }
.tc-btn .tc-ico .sk-ico { width: 30px; height: 30px; display: block; image-rendering: pixelated; filter: drop-shadow(0 1px 1px #000); }
.tc-cd { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 2;
  background: conic-gradient(rgba(5, 8, 18, .72) calc(var(--cd, 0) * 360deg), transparent 0); }
.tc-cdt { position: absolute; z-index: 3; font-size: 19px; font-weight: 900; text-shadow: 0 0 4px #000, 0 1px 2px #000; }
.tc-btn.cooling .tc-ico { opacity: .55; }
.tc-key { position: absolute; z-index: 3; bottom: 3px; left: 50%; transform: translateX(-50%); font-size: 9px; font-weight: 900; padding: 0 4px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #dfe6ff; line-height: 13px; }
.tc-btn.empty { opacity: .28; }
.tc-btn.tc-spec.empty { display: none; }   /* Spezial-Skills nur zeigen, wenn belegt */
.tc-btn.locked { filter: grayscale(.85) brightness(.65); }
#touch-ui.safe .tc-attack, #touch-ui.safe .tc-target { filter: grayscale(.7) brightness(.7); }

.tc-attack { width: 88px; height: 88px; right: 52px; bottom: 52px;
  background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--tc, #d94a4a) 75%, white), color-mix(in srgb, var(--tc, #d94a4a) 70%, #10162a) 70%);
  border-width: 3px; border-color: rgba(255, 255, 255, .85); }
.tc-attack .tc-ico { font-size: 32px; }
.tc-attack .tc-lbl { font-size: 10px; letter-spacing: .6px; margin-top: 2px; position: relative; z-index: 3; }
.tc-attack.auto { animation: tc-auto 1.2s ease-in-out infinite; }
@keyframes tc-auto { 0%, 100% { box-shadow: 0 0 0 3px #ff8a00, 0 0 14px #ff8a00; } 50% { box-shadow: 0 0 0 4px #ffd23f, 0 0 24px #ff8a00; } }

/* Bogen um die Angriffstaste (Mittelpunkt der Angriffstaste: 52/52 vom Eck) */
.tc-skill { width: 56px; height: 56px; }
.tc-skill[data-i="0"] { right: 146px; bottom: 40px; }
.tc-skill[data-i="1"] { right: 132px; bottom: 112px; }
.tc-skill[data-i="2"] { right: 84px; bottom: 156px; }
.tc-skill[data-i="3"] { right: 14px; bottom: 166px; }
.tc-spec { width: 44px; height: 44px; }
.tc-spec .tc-ico { font-size: 18px; } .tc-spec .tc-ico .sk-ico { width: 24px; height: 24px; }
.tc-skill[data-i="4"] { right: 214px; bottom: 30px; }
.tc-skill[data-i="5"] { right: 204px; bottom: 92px; }
.tc-skill[data-i="6"] { right: 180px; bottom: 150px; }
.tc-skill[data-i="7"] { right: 140px; bottom: 202px; }
.tc-target { width: 42px; height: 42px; right: 22px; bottom: 228px; font-size: 18px; --tc: #8a5ad8; }
.tc-use { width: 66px; height: 66px; right: 236px; bottom: 170px; --tc: #ffb400;
  background: radial-gradient(circle at 50% 30%, #ffd35a, #c98a00 75%); border-color: #fff3c4; animation: tc-pulse 1.4s ease-in-out infinite; }
.tc-use .tc-ico { font-size: 24px; } .tc-use .tc-lbl { font-size: 9px; margin-top: 2px; color: #241500; text-shadow: none; font-weight: 900; }
.tc-use.hidden { display: none; }
@keyframes tc-pulse { 0%, 100% { box-shadow: 0 0 0 2px rgba(0,0,0,.35), 0 0 0 0 rgba(255, 210, 63, .7); } 50% { box-shadow: 0 0 0 2px rgba(0,0,0,.35), 0 0 0 10px rgba(255, 210, 63, 0); } }

/* Schnelltasten links (Chat, Karte, Reittier, Vollbild) */
#tc-side { position: absolute; left: calc(10px + env(safe-area-inset-left)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }
.tc-mini { pointer-events: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(14, 20, 38, .72); color: #fff; font-size: 19px; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tc-mini.on, .tc-mini.down { border-color: #ffd23f; box-shadow: 0 0 0 2px rgba(255, 210, 63, .5); }

/* Hochformat-Hinweis */
#tc-rotate { position: fixed; inset: 0; z-index: 500; pointer-events: auto; display: grid; place-items: center; background: rgba(6, 10, 20, .86); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
#tc-rotate.hidden { display: none; }
.tc-rot-box { text-align: center; max-width: 300px; padding: 22px; color: #e8ecff; }
.tc-rot-box b { display: block; font-size: 20px; margin: 10px 0 6px; }
.tc-rot-box p { color: #aab4d4; font-size: 14px; line-height: 1.45; margin: 0 0 16px; }
.tc-rot-ico { font-size: 54px; animation: tc-rot 2.2s ease-in-out infinite; }
@keyframes tc-rot { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }

/* Desktop-Elemente, die auf dem Handy durch Touch-Tasten ersetzt werden */
.touch #skills, .touch #basic-slot, .touch #actionbar > .sep { display: none !important; }
.touch #actionbar { bottom: calc(14px + env(safe-area-inset-bottom)); padding: 4px; gap: 4px; }
.touch #xpbar { width: min(380px, 40vw); bottom: calc(2px + env(safe-area-inset-bottom)); }
.touch #chat { display: none; left: 62px; bottom: auto; top: 70px; width: min(380px, 56vw); max-height: 52vh; z-index: 9; }
.touch #chat.tc-open { display: flex; }
.touch #interact-hint { display: none; }   /* ersetzt durch die gelbe Kontext-Taste */
.touch #menu-buttons button { width: 40px; height: 40px; font-size: 18px; }
.touch #menu-buttons button span { display: none; }
.touch .panel { top: 50px; right: 6px; left: 6px; width: auto; max-height: calc(100% - 60px); }
.touch #poe-window { top: 6px; width: calc(100% - 12px); max-height: calc(100% - 12px); }
.touch #tooltip { max-width: min(340px, 90vw); }
#hud { padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); }
.touch #tut-card { left: 50%; transform: translateX(-50%); top: 92px; width: min(330px, 46vw); font-size: 12px; }
.touch #tut-card p { margin: 2px 0 4px; }
.touch #tut-card, .touch #hint-card { z-index: 4; }
html.touch.win-open #tut-card, html.touch.win-open #hint-card, html.touch.win-open #touch-ui { display: none !important; }
html.touch.win-open #actionbar, html.touch.win-open #xpbar, html.touch.win-open #team-bar { display: none !important; }
.touch #poe-window, .touch #tal-window { top: 6px; left: 6px; right: 6px; transform: none; width: auto; height: calc(100% - 12px); max-height: none; }
.touch .panel { bottom: 6px; max-height: none; }
.touch #settings-window .set-panel { width: calc(100% - 16px); max-height: calc(100% - 16px); }
.touch #toasts { top: 64px; }
.touch #zone-banner { font-size: 26px; top: 16%; }
/* Handy (kleine Touch-Bildschirme): HUD kompakter */
.small-touch #quest-tracker { width: 220px; top: 60px; }
.small-touch #team-bar { bottom: 70px; }
.small-touch #zone-label { top: 6px; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.small-touch #menu-buttons { top: 6px; right: 6px; gap: 4px; }
.small-touch #toasts { width: min(420px, 60vw); }
.small-touch .map-bar { top: 6px; padding: 5px 8px; gap: 8px; }
.small-touch #map-info { display: none; }
.small-touch #map-inv { left: 8px; right: auto; width: min(320px, 46vw); max-height: 34vh; bottom: 8px; }
.small-touch #map-side { left: auto; right: 8px; top: 52px; bottom: 8px; width: min(300px, 44vw); max-height: none; }

/* Kleine Bildschirme: Starter-Auswahl und Login */
@media (max-width: 760px), (max-height: 500px) {
  .starter-layout { grid-template-columns: 1fr !important; }
  #starter-detail { max-height: none; }
  #frame-player { transform: scale(.85); transform-origin: top left; }
  #raid-hud { top: 46px; width: 60vw; }
  #zone-label { font-size: 11px; padding: 4px 10px; }
  #quest-tracker { display: none; }
}
@media (orientation: portrait) {
  .touch #tc-buttons { transform: scale(.88); transform-origin: bottom right; }
}

/* ---------- Charakterauswahl & Hardcore ---------- */
#screen-chars { align-items: center; justify-content: center; overflow-y: auto; padding: 24px 12px; }
#screen-chars.active { display: flex; }
.chars-card { width: min(720px, 100%); background: rgba(20, 26, 44, .92); border: 1px solid #2d3960; border-radius: 14px; padding: 18px 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, .45); }
.chars-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.chars-head h2 { margin: 0; }
.chars-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
#chars-list { display: flex; flex-direction: column; gap: 8px; }
.char-card { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: #1c2440; border: 1px solid #2d3960; color: inherit; font: inherit; text-align: left; }
.char-card img { width: 56px; height: 56px; object-fit: contain; }
.char-card .cc-body { flex: 1; min-width: 0; }
.char-card .cc-name { font-weight: 800; font-size: 16px; }
.char-card .cc-sub { color: var(--muted); font-size: 13px; }
.char-card .cc-dead { color: #ef8350; font-size: 12px; font-weight: 700; margin-top: 2px; }
.char-card .cc-actions { display: flex; gap: 6px; align-items: center; }
.char-card.hc { border-color: #8a2b2b; background: linear-gradient(90deg, #2a1620, #1c2440 60%); }
.char-card.dead { opacity: .55; filter: grayscale(.8); }
.char-card.new { cursor: pointer; border-style: dashed; justify-content: flex-start; }
.char-card.new:hover { border-color: var(--accent); }
.char-card .cc-plus { width: 56px; text-align: center; font-size: 30px; color: var(--accent); }
.hc-tag { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px; background: #8a2b2b; color: #ffd9d9; font-size: 11px; letter-spacing: .5px; vertical-align: 2px; }
.btn.danger { background: #5a1f28; border-color: #8a2b2b; }
.starter-head #starter-back { align-self: flex-start; }
.new-char input { width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.mode-pick { display: flex; flex-direction: column; gap: 6px; }
.mode-pick label { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; padding: 7px 9px; border: 1px solid #2d3960; border-radius: 8px; cursor: pointer; font-size: 13px; }
.mode-pick label input { grid-row: span 2; margin: 2px 0 0; }
.mode-pick label span { color: var(--muted); font-size: 12px; }
.mode-pick label.on { border-color: var(--accent); background: rgba(255, 203, 5, .08); }
.mode-pick label.hc.on { border-color: #e0524f; background: rgba(224, 82, 79, .12); }
#hc-death { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10, 0, 0, .72); z-index: 60; }
#hc-death.hidden { display: none; }
.death-box.hc { border-color: #8a2b2b; max-width: 440px; text-align: center; }
.death-box.hc h2 { color: #ff7a7a; }

/* ---------- Karte (M) ---------- */
#map-window { position: fixed; inset: 0; z-index: 31; background: radial-gradient(ellipse at center, #10203a 0%, #070c18 100%); }
#map-window.hidden { display: none; }
#map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.map-bar { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 14px; align-items: center; background: rgba(16, 20, 36, .95); border: 1px solid #2d3960; border-radius: 10px; padding: 8px 14px; font-size: 13px; white-space: nowrap; max-width: calc(100vw - 20px); overflow-x: auto; }
.map-bar b { color: #ffd23f; }
.map-tabs { display: flex; gap: 6px; }
#map-side { position: absolute; right: 14px; top: 70px; bottom: 14px; width: 270px; overflow-y: auto; background: rgba(16, 20, 36, .96); border: 1px solid #2d3960; border-radius: 10px; padding: 12px 14px; font-size: 13px; }
#map-side.hidden, #map-tip.hidden { display: none; }
#map-tip { position: fixed; z-index: 32; max-width: 260px; pointer-events: none; background: rgba(16, 20, 36, .97); border: 1px solid #46557f; border-radius: 8px; padding: 8px 10px; font-size: 12px; }
.map-z-name { font-weight: 800; font-size: 15px; color: #ffe9a8; margin-bottom: 2px; }
.map-z-sub { color: var(--muted); margin-top: 3px; }
.map-links, .map-path { margin: 4px 0 6px; padding-left: 18px; }
.map-path li::marker { color: #5ab0ff; font-weight: 800; }
.map-lock { color: #ff9a9a; }
.map-here { color: #ffd23f; font-weight: 700; }
@media (max-width: 900px) { #map-side { width: auto; left: 14px; top: auto; max-height: 40vh; } }

/* ---------- Box & Team (B) ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; flex-shrink: 0; }
.tm-skill { line-height: 1.3; }
.team-card { position: relative; background: #10162a; border: 1px solid #2d3960; border-radius: 10px; padding: 8px; text-align: center; font-size: 12px; display: block; }
.team-card > * { margin-top: 4px; }
.team-card.empty { min-height: 140px; border-style: dashed; padding-top: 50px; }
.team-card img { width: 64px; height: 64px; object-fit: contain; display: block; margin: 0 auto; }
.team-card .tk, .team-slot .tk { position: absolute; top: 4px; left: 6px; font-weight: 800; color: var(--accent); font-size: 13px; }
.tm-name { font-weight: 800; }
.tm-skill { color: #cfd8f0; font-size: 11px; }
.tm-energy { position: relative; width: 100%; height: 12px; background: #0a0e1c; border-radius: 6px; overflow: hidden; }
.tm-energy div { height: 100%; background: linear-gradient(90deg, #3d7dca, #7dd3ff); }
.tm-energy span { position: absolute; inset: 0; font-size: 9px; line-height: 12px; color: #fff; }
.tm-bonus { color: #9fe3a8; font-size: 11px; text-align: left; width: 100%; }
.tm-bonus.total { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
.small { font-size: 10px; }
.team-box div.in-team { outline: 2px solid var(--accent); }
.team-box .types { justify-content: center; transform: scale(.8); margin: -2px 0; }
#team-bar { position: absolute; bottom: 104px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
#team-bar.hidden { display: none; }
.team-slot { position: relative; width: 58px; height: 58px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: conic-gradient(#5ab0ff calc(var(--e) * 1%), rgba(20, 26, 44, .9) 0); box-shadow: 0 4px 12px rgba(0,0,0,.45); }
.team-slot img { position: absolute; inset: 5px; width: 48px; height: 48px; border-radius: 50%; background: #141a2c; object-fit: contain; filter: grayscale(.6) brightness(.8); }
.team-slot.ready { background: conic-gradient(#ffd23f 100%, #ffd23f 0); animation: glowPulse 1.2s ease-in-out infinite; }
.team-slot.ready img { filter: none; }
.team-slot .tk { top: -6px; left: -4px; background: #141a2c; border: 1px solid #46557f; border-radius: 5px; padding: 0 4px; font-size: 11px; }
.team-slot .te { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); background: #141a2c; border-radius: 5px; padding: 0 4px; font-size: 9px; color: #9fd0ff; }
.touch #team-bar { bottom: 92px; transform: translateX(-50%) scale(.85); }
@media (max-width: 700px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- Raid-Gruppenfenster ---------- */
#raid-lobby { position: absolute; left: 12px; top: 130px; width: 280px; max-height: calc(100vh - 300px); overflow-y: auto; z-index: 12;
  background: rgba(16, 20, 36, .96); border: 1px solid #4a3d22; border-radius: 12px; padding: 10px; font-size: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
#raid-lobby.hidden { display: none; }
.lb-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 6px; }
.lb-head b { color: #ffd23f; }
.lb-mode { display: flex; gap: 6px; margin-bottom: 8px; }
.lb-slots { display: flex; flex-direction: column; gap: 5px; }
.lb-slot { display: flex; align-items: center; gap: 8px; background: #10162a; border: 1px solid #2d3960; border-radius: 8px; padding: 4px 6px; min-height: 40px; }
.lb-slot img { width: 36px; height: 36px; object-fit: contain; }
.lb-slot .grow { flex: 1; min-width: 0; }
.lb-slot.bot { border-color: #2f5a7a; }
.lb-slot.empty { border-style: dashed; justify-content: space-between; }
.lb-picker { margin-top: 8px; background: #0c1120; border: 1px solid #2d3960; border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.lb-picker-head { display: flex; justify-content: space-between; align-items: center; }
.lb-pick { display: flex; align-items: center; gap: 8px; background: #141b33; border: 1px solid #2d3960; border-radius: 6px; padding: 2px 6px; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lb-pick:hover:not(:disabled) { border-color: var(--accent); }
.lb-pick:disabled { opacity: .45; cursor: not-allowed; }
.lb-pick img { width: 32px; height: 32px; object-fit: contain; }
.lb-actions { display: flex; gap: 6px; justify-content: space-between; align-items: center; margin-top: 10px; }
.raid-mode { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; }
.open-lobby { margin-top: 5px; padding: 3px 6px; background: #10162a; border: 1px solid #2d3960; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.lobby-note { background: rgba(255, 210, 63, .1); border: 1px solid #4a3d22; border-radius: 8px; padding: 6px 8px; }

/* Lager-PC */
.st-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 4px; }
.st-tabs .pg-tab[disabled] { opacity: .45; cursor: not-allowed; }
.st-money { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; background: #10162a; border: 1px solid #2d3960; border-radius: 8px; margin-bottom: 6px; }
.st-money input { width: 110px; background: #0a0e1a; color: #e8ecff; border: 1px solid #2d3960; border-radius: 6px; padding: 3px 6px; font: inherit; }
.st-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-col { background: #0d1322; border: 1px solid #222b45; border-radius: 8px; padding: 6px; max-height: 52vh; overflow-y: auto; }
.st-col h4 { margin: 0 0 4px; }
.st-sub { margin: 6px 0 2px; font-size: 11px; font-weight: 800; color: #9aa6c8; text-transform: uppercase; letter-spacing: .4px; }
.st-row { display: flex; align-items: center; gap: 5px; padding: 2px 3px; border-radius: 5px; font-size: 12px; }
.st-row:hover { background: #18213a; }
.st-row img { width: 22px; height: 22px; }
.st-slot { width: 22px; text-align: center; }
.st-bound { font-size: 11px; color: #ffb02e; white-space: nowrap; }

/* Freigeschaltete Legendäre in der Charakter-Erstellung */
.legend-block .gen-title { color: #ffd84a; }
.starter-card.legend { box-shadow: inset 0 0 0 2px #ffd84a88; background: linear-gradient(180deg, #2a2410, #141a2e); }
.starter-card.legend.locked { cursor: not-allowed; box-shadow: none; opacity: 1; }
.starter-card.legend.locked img, .starter-card.legend.locked .sc-name { filter: grayscale(1) brightness(.55); }
.sc-lock { margin-top: 3px; font-size: 11px; color: #ff8a8a; font-weight: 700; }
.sd-legend { color: #ffe9a8; font-size: 12px; text-align: center; }

/* Rang & Prestige */
.rank-p { color: #4fa8ff; font-weight: 800; }
.prest { font-weight: 900; letter-spacing: .3px; }
.prest-1 { color: #cd7f32; } .prest-2 { color: #d6dde8; } .prest-3 { color: #ffd23f; } .prest-4 { color: #2fe08a; } .prest-5 { color: #4f9bff; }
.prest-6 { color: #c06cff; text-shadow: 0 0 6px #c06cff; } .prest-7 { color: #ff4060; text-shadow: 0 0 7px #ff4060; }
.prest-8, .prest-9, .prest-10, .prest-11, .prest-12, .prest-13, .prest-14, .prest-15 { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; background-size: 200% 100%; }
.prest-8 { background-image: linear-gradient(90deg, #ff6a00, #ffd23f); filter: drop-shadow(0 0 4px #ff8a00); }
.prest-9 { background-image: linear-gradient(90deg, #7fe8ff, #fff, #7fe8ff); filter: drop-shadow(0 0 4px #7fe8ff); }
.prest-10 { background-image: linear-gradient(90deg, #2fff9a, #c8ff4f); filter: drop-shadow(0 0 5px #2fff9a); }
.prest-11 { background-image: linear-gradient(90deg, #ff4fd8, #ffb02e); filter: drop-shadow(0 0 5px #ff4fd8); }
.prest-12 { background-image: linear-gradient(90deg, #7b4cff, #4fc3ff, #ff7ad9, #7b4cff); filter: drop-shadow(0 0 6px #9a6bff); animation: prestFlow 3s linear infinite; }
.prest-13 { background-image: linear-gradient(90deg, #fff6c8, #ffd23f, #fff, #ffd23f, #fff6c8); filter: drop-shadow(0 0 6px #ffd23f); animation: prestFlow 2.4s linear infinite; }
.prest-14 { background-image: linear-gradient(90deg, #ffd23f, #ff3b5c, #ffd23f, #ff3b5c); animation: prestFlow 2s linear infinite, prestPulseRed 1.6s ease-in-out infinite; }
.prest-15 { background-image: linear-gradient(90deg, #ff3b5c, #ffb02e, #ffe84a, #4fe08a, #4fa8ff, #c05cff, #ff3b5c); background-size: 300% 100%; animation: prestFlow 2s linear infinite, prestPulse 1.4s ease-in-out infinite; }
@keyframes prestFlow { from { background-position: 0% 0; } to { background-position: 200% 0; } }
@keyframes prestPulse { 0%, 100% { filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px #ff7ad9); } 50% { filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 16px #4fa8ff); } }
@keyframes prestPulseRed { 0%, 100% { filter: drop-shadow(0 0 4px #ff3b5c); } 50% { filter: drop-shadow(0 0 10px #ff3b5c); } }
.prest-now { font-size: 15px; margin-bottom: 4px; }
.prest-big { font-size: 22px; }
.prest-bonus { margin-bottom: 8px; color: #c9d2f2; }
.prest-next { box-shadow: inset 0 0 0 1px #ffd23f66; background: linear-gradient(90deg, #2a1d08, #10162a 60%); }
.prest-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px; }
.prest-cell { display: flex; gap: 6px; align-items: center; background: #10162a; border: 1px solid #2d3960; border-radius: 6px; padding: 3px 6px; font-size: 12px; }
.prest-cell img { width: 26px; height: 26px; }
.prest-cell.done { opacity: .55; }

/* Paragon */
#xpbar.paragon #xpbar-fill { background: linear-gradient(90deg, #ff9d00, #ffd23f, #fff1a8); }
.paragon-row { box-shadow: inset 0 0 0 1px #ffb02e88; background: linear-gradient(90deg, #2a1a08, #10162a 60%); }
.paragon-tag { color: #1b1000; background: linear-gradient(90deg, #ff9d00, #ffd23f, #fff1a8); }
.paragon-pick { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 10px; }
.paragon-pick select { background: #10162a; color: #e8ecff; border: 1px solid #4a3d22; border-radius: 6px; padding: 3px 6px; font: inherit; }
.pg-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.pg-level { font-size: 26px; font-weight: 900; color: #ffd23f; text-shadow: 0 0 10px #ff9d0088; min-width: 80px; text-align: center; }
.pg-xp { position: relative; height: 16px; background: #0a0e1a; border: 1px solid #4a3d22; border-radius: 6px; overflow: hidden; margin-bottom: 4px; }
.pg-xp .fill { height: 100%; background: linear-gradient(90deg, #ff9d00, #ffd23f); }
.pg-xp span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; font-weight: 800; text-shadow: 0 1px 1px #000; }
.pg-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 6px; }
.pg-tab { background: #10162a; color: #c9d2f2; border: 1px solid #2d3960; border-radius: 8px 8px 0 0; padding: 6px 4px; font: inherit; font-weight: 700; cursor: pointer; }
.pg-tab.active { background: #2a1d08; color: #ffd23f; border-color: #ffb02e; }
.pg-free { display: inline-block; min-width: 18px; padding: 0 4px; border-radius: 9px; background: #ffd23f; color: #1b1000; font-size: 11px; }
.pg-tabhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; color: #c9d2f2; }
.pg-row .btns { display: flex; gap: 3px; }
.pg-val { color: #ffd23f; }
.pg-cap { margin-top: 3px; height: 4px; background: #0a0e1a; border-radius: 2px; overflow: hidden; }
.pg-cap div { height: 100%; background: #ffb02e; }

/* Großes Rift (Grift) & Steinschmiedin */
.grift-row { box-shadow: inset 0 0 0 1px #9a6bff66; background: linear-gradient(90deg, #1d1236, #10162a 60%); }
.grift-tag { color: #fff; background: linear-gradient(90deg, #4b2bd6, #c05cff, #ff7ad9); }
.grift-pick { margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.grift-pick .grift-tier { min-width: 42px; text-align: center; font-size: 18px; color: #e3d1ff; }
.grift-table { margin-top: 6px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; font-size: 11px; }
.gt-cell { background: #140f26; border: 1px solid #3a2a66; border-radius: 5px; padding: 2px 4px; text-align: center; line-height: 1.25; }
.gt-cell small { color: #9b8cc6; }
.grift-result { margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: #1a1233; border: 1px solid #5a3fa8; display: grid; gap: 4px; }
.smith-row { align-items: center; }
.smith-row.locked { box-shadow: inset 0 0 0 1px #ffd23f88; }
.smith-row.ok { animation: smithOk 0.9s ease-out; }
.smith-row.fail { animation: smithFail 0.6s ease-out; }
.smith-plus { min-width: 44px; text-align: center; font-size: 20px; font-weight: 900; color: #ffd23f; text-shadow: 0 0 8px #ff9d0066; }
.tt-plus { color: #ffd23f; font-weight: 700; }
@keyframes smithOk { 0% { background: #ffd23f55; } 100% { background: transparent; } }
@keyframes smithFail { 0%, 40% { background: #ff3b3b44; transform: translateX(-3px); } 20%, 60% { transform: translateX(3px); } 100% { background: transparent; transform: none; } }
.touch #raid-lobby { top: 110px; width: 240px; }

/* Skill-Leiste umordnen (Ziehen & Ablegen) + Verstärkungsstein-Anzeige */
#skills .slot.skill:not(.empty):not(.spec) { cursor: grab; }
#skills .slot.dragging { opacity: .45; }
#skills .slot.drop-over { outline: 2px dashed var(--accent); outline-offset: -2px; }
.sup-badge { font-size: 10px; font-weight: 800; color: #8fd88f; background: #1d2a1d; border: 1px solid #3a6a3a; border-radius: 6px; padding: 0 4px; }
.sup-badge:empty { display: none; }
#skills .slot .sup-badge { position: absolute; top: 2px; right: 3px; z-index: 2; line-height: 1.3; }

/* Chat-Reiter (Chat / Drop) */
#chat-tabs { display: flex; gap: 4px; }
#chat-tabs button { background: rgba(10, 14, 26, .7); color: var(--muted); border: 1px solid var(--panel-border); border-radius: 8px 8px 0 0; padding: 3px 10px; font-size: 12px; cursor: pointer; }
#chat-tabs button.active { color: var(--text); border-color: var(--accent); }
#drop-badge:not(:empty) { background: #e8533f; color: #fff; border-radius: 8px; padding: 0 5px; font-size: 10px; margin-left: 3px; }
#drop-log { max-height: 190px; overflow-y: auto; font-size: 12px; background: rgba(10, 14, 26, .62); border-radius: 10px; padding: 6px 8px; line-height: 1.4; }
#drop-log .line { word-wrap: break-word; }
#drop-log .from { font-weight: 800; color: #c9b6ff; }
#drop-log .zn { color: var(--muted); font-size: 10px; }
/* Questlog: angeheftete Quest */
.qcard.tracked { outline: 2px solid #ffd23f; }
.qtracked { color: #ffd23f; font-size: 12px; font-weight: 700; }
.qbtns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
/* Mehrfachverkauf */
.sell-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 8px; }
.sell-chk { width: 18px; height: 18px; cursor: pointer; accent-color: #ffd23f; }


/* Pause (Solo-Instanz) */
#pause-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 12, 28, .62); backdrop-filter: blur(3px); z-index: 40; }
#pause-overlay.hidden { display: none; }
.pause-box { background: #141a2e; border: 1px solid var(--panel-border); border-radius: 14px; padding: 22px 30px; text-align: center; max-width: 380px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.pause-box h2 { margin: 0 0 8px; font-size: 26px; }
.pause-box p { color: var(--muted); margin: 0 0 14px; }
/* HD-Bilder in Menüs: etwas Tiefe */
.starter-card img, .sd-img, .char-card img, .team-card img { filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); }

/* Klassen (Starter-Auswahl, Aktionsleiste) */
.class-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; color: var(--c); border: 1px solid var(--c); background: rgba(0,0,0,.25); margin: 2px; }
.spec-on { color: #7dffb0; font-weight: 700; font-size: 12px; }
.sd-specs { display: flex; flex-direction: column; gap: 3px; margin: 6px 0; }
.sd-spec { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.sd-spec.start { background: rgba(255,210,63,.12); }
#skills .slot.spec { border-color: #c59bff; }
#skills .slot.spec .key { background: #5a2a9a; }

/* Set-Wandlerin */
.ss-cost { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #10221a; border: 1px solid #2fe08a55; border-radius: 8px; margin-bottom: 6px; }
.ss-cost img { width: 26px; height: 26px; }
.ss-last { padding: 8px 10px; background: #1a2a12; border: 1px solid #7dffb0; border-radius: 8px; margin: 6px 0; }

/* ===================== Talentbaum & Fähigkeiten (Taste N) ===================== */
.tc-skill[data-i="4"] { right: 166px; bottom: 40px; width: 48px; height: 48px; }
.tc-skill[data-i="5"] { right: 150px; bottom: 104px; width: 48px; height: 48px; }
#tal-window { position: absolute; top: 54px; left: 50%; transform: translateX(-50%); width: min(1260px, calc(100vw - 20px)); height: min(800px, calc(100vh - 150px));
  display: flex; flex-direction: column; z-index: 12; font-size: 13px; color: var(--text);
  background: radial-gradient(120% 80% at 50% 0%, rgba(60, 120, 80, .16), transparent 60%), radial-gradient(100% 70% at 100% 100%, rgba(255, 190, 40, .08), transparent 60%), #0e1222f5;
  border: 1px solid #39406a; border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.05); overflow: hidden; }
#tal-window h4 { margin: 12px 0 6px; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: #9aa6d4; }
.tal-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 270px 1fr 300px; }
.tal-body .cw-col + .cw-col { border-left: 1px solid #232a45; }
.tal-points { display: flex; flex-direction: column; align-items: center; padding: 2px 12px; border-radius: 10px; background: #171c33; border: 1px solid #2c3352; }
.tal-points b { font-size: 22px; line-height: 1; }
.tal-points span { font-size: 10px; color: var(--muted); }
.tal-points.has { border-color: #4fd08a; box-shadow: 0 0 12px rgba(79, 208, 138, .35); }
.tal-points.has b { color: #7dffb0; }

.tal-spec { padding: 8px 10px; border-radius: 10px; background: #141a30; border: 1px solid #2c3352; margin-bottom: 6px; display: flex; flex-direction: column; gap: 4px; }
.tal-spec.active { border-color: var(--c); box-shadow: inset 0 0 18px color-mix(in srgb, var(--c) 18%, transparent); }
.tal-spec-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tal-spec-icon { font-size: 18px; }
.tal-spec-ab { display: flex; flex-wrap: wrap; gap: 4px; font-size: 11px; }
.tal-spec-ab span { background: #0e1222; border: 1px solid #2c3352; border-radius: 6px; padding: 1px 6px; }
.tal-spec .spec-on { color: #7dffb0; font-weight: 700; font-size: 12px; }
.tal-spec .btn { align-self: flex-start; }

.tal-center { display: flex; flex-direction: column; align-items: center; }
.tal-treewrap { padding: 14px 10px 10px 40px; border-radius: 14px; background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.04), transparent 70%), #0b0f1d; border: 1px solid #232a45; }
.tal-tree2 { position: relative; }
.tal-rowlabel { position: absolute; left: -32px; width: 24px; text-align: center; font-size: 11px; font-weight: 800; color: #4a5378; }
.tal-rowlabel.open { color: #7dffb0; }
.tal-link { position: absolute; width: 4px; background: #2c3352; border-radius: 2px; }
.tal-link.on { background: linear-gradient(180deg, #ffd23f, #ffb02e); box-shadow: 0 0 6px rgba(255, 210, 63, .5); }
.tal-link::after { content: ''; position: absolute; bottom: -4px; left: -4px; border: 6px solid transparent; border-top-color: inherit; border-top: 6px solid #2c3352; }
.tal-link.on::after { border-top-color: #ffb02e; }
.tnode { position: absolute; width: 56px; height: 56px; border-radius: 10px; border: 2px solid #2c3352; background: #141a30; color: var(--text); cursor: pointer; padding: 0;
  display: grid; place-items: center; transition: transform .08s, box-shadow .15s, border-color .15s; }
.tnode:hover { transform: scale(1.06); }
.tnode.ability { border-radius: 50%; }
.tnode.mod { border-style: double; border-width: 3px; }
.tnode-ico { font-size: 24px; line-height: 1; }
.tnode-rank { position: absolute; right: -6px; bottom: -6px; font-size: 10px; font-weight: 800; padding: 0 4px; border-radius: 6px; background: #0b0f1d; border: 1px solid #2c3352; color: #8f9bbd; }
.tnode.locked { filter: grayscale(1) brightness(.55); cursor: default; }
.tnode.open { border-color: #4a5378; }
.tnode.avail { border-color: #4fd08a; box-shadow: 0 0 10px rgba(79, 208, 138, .45); }
.tnode.avail .tnode-rank { color: #7dffb0; border-color: #4fd08a; }
.tnode.part { border-color: #4fd08a; background: #15261e; }
.tnode.part .tnode-rank { color: #7dffb0; border-color: #4fd08a; }
.tnode.max { border-color: #ffd23f; background: #262110; box-shadow: 0 0 10px rgba(255, 210, 63, .35); }
.tnode.max .tnode-rank { color: #ffd23f; border-color: #ffd23f; }
.tnode.sel { outline: 2px solid #fff; outline-offset: 3px; }
.tal-detail { width: 100%; max-width: 420px; margin-top: 12px; }
.tal-detail .tt-card { min-width: 0; }
.tal-hint { max-width: 420px; text-align: center; }

.tal-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tal-slot { position: relative; display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 10px; cursor: pointer; min-width: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 24%, transparent), transparent 85%), #141a30; border: 1px solid #2c3352; }
.tal-slot:hover { border-color: #4a5590; }
.tal-slot.empty { border-style: dashed; opacity: .7; }
.tal-slot.picking { outline: 2px solid var(--accent); }
.tal-slot-ico { font-size: 14px; }
.tal-slot-name { flex: 1; font-size: 11px; font-weight: 700; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tal-slot-x { opacity: 0; color: #ff8a8a; font-size: 11px; padding: 0 2px; }
.tal-slot:hover .tal-slot-x { opacity: 1; }
.tal-abs { display: flex; flex-direction: column; gap: 5px; }
.tal-ab { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; cursor: grab; font-size: 12px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 20%, transparent), transparent 70%), #141a30; border: 1px solid #2c3352; }
.tal-ab:hover { border-color: #4a5590; }
.tal-ab.picking { outline: 2px solid var(--accent); }
.tal-ab.locked { opacity: .5; cursor: default; background: #11152a; }
.tal-ab-ico { font-size: 18px; width: 22px; text-align: center; }
.tal-ab-key { font-weight: 900; color: var(--accent); min-width: 14px; text-align: right; }

@media (max-width: 1100px) {
  #tal-window { top: 8px; height: calc(100vh - 16px); }
  .tal-body { grid-template-columns: 1fr; overflow-y: auto; }
  .tal-body .cw-col { overflow: visible; min-height: auto; }
  .tal-body .cw-col + .cw-col { border-left: none; border-top: 1px solid #232a45; }
}

/* Login: Anmelden / Registrieren */
.login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #0e1222; border: 1px solid var(--panel-border); border-radius: 10px; padding: 3px; }
.login-tabs button { background: transparent; border: none; color: var(--muted); padding: 7px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 13px; }
.login-tabs button.active { background: #232c47; color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
#login-form { display: flex; flex-direction: column; gap: 8px; }
#login-pw2-wrap { display: flex; flex-direction: column; gap: 8px; }
#login-pw2-wrap.hidden { display: none !important; }
.login-card label.login-remember { display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-size: 12px; cursor: pointer; }
.login-remember input { width: auto !important; accent-color: var(--accent); }

/* Serverrollen im Chat */
.role-tag { display: inline-block; font-size: 10px; font-weight: 800; padding: 0 5px; border-radius: 4px; vertical-align: 1px; letter-spacing: .3px; }
.role-tag.admin { background: #8a1f2e; color: #ffd6dc; border: 1px solid #ff5a6e; }
.role-tag.team { background: #1f4a8a; color: #d6e6ff; border: 1px solid #5a9cff; }
#chat-log .line.announce { color: #ffd23f; background: rgba(255, 210, 63, .08); border-radius: 6px; padding: 2px 4px; }

/* ===================== Erfolge (Taste L) & Garderobe ===================== */
#fun-window { position: absolute; top: 54px; left: 50%; transform: translateX(-50%); width: min(1100px, calc(100vw - 20px)); height: min(780px, calc(100vh - 150px));
  display: flex; flex-direction: column; z-index: 12; font-size: 13px; color: var(--text);
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 190, 40, .14), transparent 60%), #0e1222f5;
  border: 1px solid #5a4a14; border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.7); overflow: hidden; }
#fun-window .cw-portrait { border-color: #ffd23f; font-size: 30px; }
.fun-cur { display: flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 10px; background: #171c33; border: 1px solid #2c3352; }
.fun-cur img { width: 22px; height: 22px; image-rendering: pixelated; }
.fun-cur b { font-size: 15px; color: #ffd23f; }
.fun-cur span { font-size: 10px; color: var(--muted); }
.fun-bar { height: 5px; background: #0a0d1a; }
.fun-bar div { height: 100%; background: linear-gradient(90deg, #ffb02e, #ffd23f, #fff6c8); box-shadow: 0 0 8px #ffd23f; }
.fun-tabs { flex-wrap: wrap; }
.fun-tabs button { flex: 0 1 auto; }
.fun-body { flex: 1; overflow-y: auto; padding: 12px 14px; min-height: 0; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.ach { display: flex; gap: 10px; padding: 10px; border-radius: 12px; background: #141a30; border: 1px solid #2c3352; opacity: .9; }
.ach.rare { border-color: #2f5aa0; } .ach.epic { border-color: #6a3aa0; } .ach.legend { border-color: #a0601a; box-shadow: inset 0 0 18px rgba(255, 138, 28, .12); }
.ach.done { opacity: 1; background: linear-gradient(90deg, rgba(255, 210, 63, .1), transparent 60%), #141a30; border-color: #8a7420; }
.ach-ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; font-size: 26px; border-radius: 12px; background: #0b0f1d; border: 1px solid #2c3352; filter: grayscale(1) brightness(.7); }
.ach.done .ach-ico { filter: none; border-color: #ffd23f; box-shadow: 0 0 10px rgba(255, 210, 63, .35); }
.ach-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ach-name { font-weight: 800; font-size: 13px; display: flex; justify-content: space-between; gap: 6px; }
.ach-pts { font-size: 10px; font-weight: 800; color: #ffd23f; background: #2a2410; border: 1px solid #6a5a14; border-radius: 6px; padding: 0 5px; height: 16px; }
.ach-desc { color: #b5bedf; font-size: 12px; }
.ach-rew { color: #9fd6ff; font-size: 11px; }
.ach-date { color: #7dffb0; font-size: 11px; font-weight: 700; }
.ach-prog { position: relative; height: 14px; border-radius: 7px; background: #0a0d1a; border: 1px solid #2c3352; overflow: hidden; }
.ach-prog div { height: 100%; background: linear-gradient(90deg, #3a6ad8, #7fd4ff); }
.ach-prog span { position: absolute; inset: 0; text-align: center; font-size: 10px; line-height: 13px; font-weight: 700; text-shadow: 0 1px 2px #000; }
.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.skin { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px; border-radius: 12px; background: #141a30; border: 1px solid color-mix(in srgb, var(--rc, #2c3352) 60%, #2c3352); cursor: pointer; text-align: center; }
.skin:hover { transform: translateY(-1px); }
.skin.on { outline: 2px solid #7dffb0; box-shadow: 0 0 14px rgba(125, 255, 176, .3); }
.skin.locked { opacity: .45; cursor: default; filter: grayscale(.6); }
.skin-prev { position: relative; width: 96px; height: 72px; display: grid; place-items: center; border-radius: 10px; background: radial-gradient(circle at 50% 70%, #1d2440, #0b0f1d); }
.skin-prev.none { font-size: 28px; color: var(--muted); }
.skin-prev span { position: absolute; font-size: 22px; }
.ach-pop { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px;
  border-radius: 14px; background: linear-gradient(90deg, #2a2410, #141a30); border: 2px solid #ffd23f; box-shadow: 0 0 30px rgba(255, 210, 63, .45), 0 10px 30px rgba(0,0,0,.6);
  animation: achIn .55s cubic-bezier(.2,1.6,.4,1) both; min-width: 300px; }
.ach-pop.big { border-color: #ff8a1c; box-shadow: 0 0 40px rgba(255, 138, 28, .6), 0 10px 30px rgba(0,0,0,.6); }
.ach-pop.out { animation: achOut .6s ease-in both; }
.ach-pop-ico { font-size: 34px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #0b0f1d; border: 2px solid #ffd23f; animation: spinIn .8s ease-out; }
.ach-pop small { display: block; color: #ffd23f; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; }
.ach-pop b { display: block; font-size: 16px; }
.ach-pop span { display: block; font-size: 11px; color: #9fd6ff; }
.ach-pop-pts { margin-left: auto; font-weight: 900; color: #ffd23f; font-size: 18px; }
@keyframes achIn { from { opacity: 0; transform: translate(-50%, 40px) scale(.8); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes achOut { to { opacity: 0; transform: translate(-50%, -20px) scale(.95); } }
@keyframes spinIn { from { transform: rotateY(720deg) scale(.4); } to { transform: rotateY(0) scale(1); } }

/* ===================== Skin-Automat ===================== */
#slot-window { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(60, 10, 30, .55), rgba(5, 5, 15, .85)); backdrop-filter: blur(3px); }
.slot-wrap { position: relative; display: flex; gap: 22px; align-items: flex-start; max-width: calc(100vw - 20px); }
.slot-close { position: absolute; top: -6px; right: -6px; z-index: 5; }
.slot-machine { position: relative; width: 430px; padding: 18px 22px 22px; border-radius: 26px 26px 18px 18px;
  background: linear-gradient(90deg, #6a0a18, #d8232a 18%, #ff4a3a 50%, #d8232a 82%, #6a0a18); border: 4px solid #ffd23f;
  box-shadow: 0 0 0 4px #6a4200, 0 30px 60px rgba(0,0,0,.7), inset 0 2px 0 rgba(255,255,255,.35); }
.slot-top { text-align: center; margin-bottom: 10px; }
.slot-title { font-size: 30px; font-weight: 900; letter-spacing: 2px; color: #fff6c8; text-shadow: 0 3px 0 #8a1020, 0 0 18px #ffd23f; font-style: italic; }
.slot-title span { color: #ffd23f; }
.slot-bulbs { display: flex; justify-content: space-between; padding: 4px 6px; }
.slot-bulbs i { width: 11px; height: 11px; border-radius: 50%; background: #5a3a10; box-shadow: inset 0 -2px 2px rgba(0,0,0,.5); animation: bulb 1.2s calc(var(--i) * 80ms) infinite; }
.slot-bulbs.bottom { margin-top: 12px; }
@keyframes bulb { 0%, 60% { background: #5a3a10; box-shadow: inset 0 -2px 2px rgba(0,0,0,.5); } 70%, 90% { background: #fff6b0; box-shadow: 0 0 10px #ffd23f, 0 0 2px #fff; } }
.slot-machine.spinning .slot-bulbs i { animation-duration: .35s; }
.slot-machine.win1 .slot-bulbs i, .slot-machine.win2 .slot-bulbs i, .slot-machine.win3 .slot-bulbs i { animation: bulbWin .18s calc(var(--i) * 30ms) infinite alternate; }
@keyframes bulbWin { from { background: #ff3b5c; box-shadow: 0 0 12px #ff3b5c; } to { background: #fff6b0; box-shadow: 0 0 16px #ffd23f; } }
.slot-machine.win2 { animation: machineShake .5s 3; }
.slot-machine.win3 { animation: machineShake .4s 6, jackpotGlow .5s 8 alternate; }
@keyframes machineShake { 0%, 100% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-4px) rotate(-.6deg); } 75% { transform: translateX(4px) rotate(.6deg); } }
@keyframes jackpotGlow { to { box-shadow: 0 0 0 4px #6a4200, 0 0 80px 20px #ffd23f, inset 0 2px 0 rgba(255,255,255,.35); } }
.slot-window { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; border-radius: 14px; background: #1a0a10; border: 4px solid #ffd23f; box-shadow: inset 0 0 20px #000; }
.reel { position: relative; height: 276px; overflow: hidden; border-radius: 8px; background: linear-gradient(180deg, #d8d0c0, #fffdf6 30%, #fffdf6 70%, #d8d0c0); }
.reel.stop { animation: reelStop .26s ease-out; }
@keyframes reelStop { 30% { transform: translateY(6px); } 100% { transform: translateY(0); } }
.strip { will-change: transform; }
.strip.blur .sym { filter: blur(2.5px); }
.sym { height: 92px; display: grid; place-items: center; }
.sym img { width: 64px; height: 64px; image-rendering: pixelated; filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); }
.sym.seven { font-size: 64px; font-weight: 900; font-style: italic; color: #e8232a; text-shadow: 3px 3px 0 #ffd23f, 5px 5px 0 #6a0a18; font-family: Georgia, serif; }
.payline { position: absolute; left: 4px; right: 4px; top: 50%; height: 3px; margin-top: -1px; background: rgba(255, 40, 60, .8); box-shadow: 0 0 8px #ff3b5c; pointer-events: none; }
.reel-shade { position: absolute; inset: 10px; pointer-events: none; border-radius: 8px; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 26%, transparent 74%, rgba(0,0,0,.45)); }
.slot-msg { margin: 12px 0 10px; min-height: 42px; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 16px; color: #fff6c8; background: #1a0a10; border-radius: 10px; border: 2px solid #8a5a14; padding: 6px 10px; font-family: "Courier New", monospace; }
.slot-msg.win { color: #7dffb0; border-color: #4fd08a; animation: msgPulse .4s 4 alternate; }
.slot-msg.win.big { color: #ffd23f; border-color: #ffd23f; font-size: 18px; }
.slot-msg.lose { color: #c8a0a8; }
@keyframes msgPulse { to { transform: scale(1.05); box-shadow: 0 0 20px currentColor; } }
.slot-bets { display: flex; align-items: center; gap: 6px; margin: -2px 0 10px; padding: 6px 8px; border-radius: 12px; background: #1a0a10; border: 2px solid #8a5a14; }
.slot-bets > span { font: 800 11px "Courier New", monospace; letter-spacing: 2px; color: #c8a0a8; margin-right: 4px; }
.slot-bet { flex: 1; padding: 6px 0; border-radius: 9px; border: 2px solid #6a4200; cursor: pointer; font: 900 16px "Courier New", monospace; color: #ffd23f;
  background: linear-gradient(180deg, #3a1c0c, #24100a); box-shadow: 0 3px 0 #4a2a00; transition: transform .06s, background .15s; }
.slot-bet:hover:not(:disabled) { background: linear-gradient(180deg, #5a2c10, #34180c); }
.slot-bet.on { color: #3a1a00; background: radial-gradient(circle at 50% 30%, #fff6b0, #ffd23f 50%, #e89a00); border-color: #fff0a0; box-shadow: 0 3px 0 #8a5a00, 0 0 14px rgba(255, 210, 63, .55); }
.slot-bet:disabled:not(.on) { opacity: .35; cursor: not-allowed; }
.slot-bet:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #4a2a00; }
.pt-mult { font-style: normal; font-size: 11px; color: #3a1a00; background: #ffd23f; border-radius: 6px; padding: 0 5px; margin-left: 4px; }
.slot-panel { display: flex; align-items: center; gap: 12px; }
.slot-coins { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 12px; background: #1a0a10; border: 2px solid #8a5a14; }
.slot-coins img { width: 28px; height: 28px; }
.slot-coins b { font-size: 22px; color: #ffd23f; font-family: "Courier New", monospace; }
.slot-coins small { color: #c8a0a8; font-size: 10px; max-width: 50px; line-height: 1.1; }
.slot-spin { flex: 1; padding: 10px; border-radius: 14px; border: 3px solid #6a4200; cursor: pointer; font-weight: 900; font-size: 22px; letter-spacing: 3px; color: #3a1a00;
  background: radial-gradient(circle at 50% 30%, #fff6b0, #ffd23f 45%, #e89a00); box-shadow: 0 6px 0 #8a5a00, 0 10px 20px rgba(0,0,0,.4); display: flex; flex-direction: column; align-items: center; transition: transform .06s; }
.slot-spin small { font-size: 10px; letter-spacing: 1px; font-weight: 700; }
.slot-spin:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 1px 0 #8a5a00; }
.slot-spin:disabled { filter: grayscale(.7) brightness(.7); cursor: not-allowed; }
.slot-auto { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #fff6c8; cursor: pointer; }
.slot-lever { position: absolute; right: -46px; top: 120px; width: 40px; height: 200px; cursor: pointer; }
.lever-base { position: absolute; left: 0; bottom: 40px; width: 24px; height: 60px; border-radius: 0 12px 12px 0; background: linear-gradient(90deg, #8a8a9a, #e8e8f0, #8a8a9a); border: 2px solid #4a4a5a; }
.lever-arm { position: absolute; left: 14px; bottom: 80px; width: 8px; height: 110px; border-radius: 4px; background: linear-gradient(90deg, #8a8a9a, #f0f0f8, #8a8a9a); transform-origin: 50% 100%; transition: transform .2s cubic-bezier(.5,0,.5,1.4); }
.lever-ball { position: absolute; left: -9px; top: -22px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff9a9a, #e8232a 55%, #6a0a18); box-shadow: 0 4px 8px rgba(0,0,0,.5); }
.slot-lever:hover .lever-arm { transform: rotate(8deg); }
.slot-lever.pulled .lever-arm { transform: rotate(160deg) scaleY(.85); transition: transform .18s ease-in; }
.slot-paytable { width: 340px; max-height: 640px; overflow-y: auto; padding: 14px; border-radius: 16px; background: #120a14f0; border: 2px solid #6a4200; }
.slot-paytable h4 { margin: 0 0 8px; color: #ffd23f; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.pt-row { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; border: 1px solid transparent; }
.pt-row.hit { background: rgba(255, 210, 63, .15); border-color: #ffd23f; animation: msgPulse .4s 4 alternate; }
.pt-syms { display: flex; gap: 1px; flex: none; }
.pt-syms .sym { height: 30px; width: 30px; }
.pt-syms .sym img { width: 28px; height: 28px; }
.pt-syms .sym.seven { font-size: 22px; text-shadow: 1px 1px 0 #ffd23f; }
.pt-any { width: 30px; text-align: center; font-weight: 900; color: #8a8a9a; }
.pt-txt { flex: 1; display: flex; flex-direction: column; font-size: 12px; }
.pt-txt small { color: #b5a0b8; font-size: 10px; }
.pt-ch { font-size: 11px; font-weight: 800; color: #ffd23f; white-space: nowrap; }
.slot-fx { position: absolute; inset: -40px; pointer-events: none; overflow: hidden; }
.fx-coin, .fx-conf { position: absolute; top: -40px; width: 28px; height: 28px; background-size: contain; animation: coinFall linear forwards; }
.fx-conf { width: 10px; height: 16px; border-radius: 2px; }
@keyframes coinFall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(var(--dx), 820px) rotate(var(--rot)); opacity: 0; } }
.fx-flash { position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 246, 200, .95), rgba(255, 210, 63, 0) 70%); animation: flash 1.2s ease-out forwards; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 860px) {
  .slot-wrap { flex-direction: column; align-items: center; max-height: 100vh; overflow-y: auto; padding: 10px 0; }
  .slot-machine { width: min(400px, calc(100vw - 60px)); transform-origin: top center; }
  .reel { height: 207px; } .sym { height: 69px; } .sym img { width: 48px; height: 48px; } .sym.seven { font-size: 48px; }
  .slot-lever { display: none; }
  .slot-paytable { width: min(400px, calc(100vw - 30px)); }
}

/* Tägliche Aufträge */
.qt-block.daily { border-left-color: #ffb02e; }
.qt-block.daily.ready { border-left-color: var(--ok); }
.qt-coin { color: #ffd23f; font-size: 10px; font-weight: 800; }
.qcard.daily { border-color: #8a6a14; background: linear-gradient(90deg, rgba(255, 176, 46, .08), transparent 60%), var(--panel-solid); }
.daily-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.08); }
.daily-row.done { opacity: .7; }
.daily-row.done b { color: #7dffb0; }
.daily-bar { position: relative; height: 12px; margin-top: 4px; border-radius: 6px; background: #0a0d1a; border: 1px solid #2c3352; overflow: hidden; }
.daily-bar div { height: 100%; background: linear-gradient(90deg, #ffb02e, #ffd23f); }
.daily-row.done .daily-bar div { background: linear-gradient(90deg, #2fbf6a, #7dffb0); }
.daily-bar span { position: absolute; inset: 0; text-align: center; font-size: 9px; line-height: 11px; font-weight: 800; text-shadow: 0 1px 2px #000; }
.daily-rew { display: flex; align-items: center; gap: 3px; font-size: 15px; color: #ffd23f; }
.daily-rew img { width: 22px; height: 22px; }
.daily-bonus { margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: #1d1a0e; border: 1px solid #5a4a14; font-size: 12px; }
.daily-bonus.got { border-color: #4fd08a; color: #7dffb0; background: #10241a; }
.tc-skill[data-i="6"] { right: 214px; bottom: 6px; width: 46px; height: 46px; }
.tc-skill[data-i="7"] { right: 210px; bottom: 60px; width: 46px; height: 46px; }
/* Talentbaum wächst nach oben: Pfeilspitze oben an der Verbindung */
.tal-link.up::after { bottom: auto; top: -5px; border: 6px solid transparent; border-top: none; border-bottom: 6px solid #2c3352; left: -4px; }
.tal-link.up.on::after { border-bottom-color: #ffd23f; }

.ss-target { margin-top: 4px; max-width: 100%; background: #141a2c; color: #e8ecff; border: 1px solid #3a4468; border-radius: 6px; padding: 3px 6px; font-size: 12px; }
.cur-ico { width: 16px; height: 16px; vertical-align: -3px; }

/* ---------- Exitus ---------- */
#exitus-window { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(80, 5, 20, .5), rgba(5, 2, 8, .85)); backdrop-filter: blur(3px); }
#exitus-window.hidden { display: none; }
.ex-panel { width: min(760px, 94vw); max-height: 88vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #1c0e16, #0f0a12); border: 2px solid #ff3b5b; border-radius: 14px; box-shadow: 0 0 40px rgba(255, 40, 80, .35), inset 0 0 30px rgba(0, 0, 0, .6); color: #f2e6ea; }
.ex-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #5a1a2a; font-size: 17px; text-shadow: 0 0 10px #ff3b5b; }
.ex-body { padding: 12px 16px 16px; overflow-y: auto; }
.ex-box { background: rgba(255, 255, 255, .03); border: 1px solid #4a1a2a; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.ex-box h4 { margin: 0 0 6px; color: #ff8aa0; }
.ex-done { color: #7dffb0; font-size: 12px; margin-left: 6px; }
.ex-bar { height: 8px; border-radius: 4px; background: #2a1420; overflow: hidden; margin: 6px 0; }
.ex-bar > div { height: 100%; background: linear-gradient(90deg, #a0103a, #ff5a7a); }
.ex-bar.gold > div { background: linear-gradient(90deg, #a07010, #ffd23f); }
.ex-key { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(255, 59, 91, .18), transparent); border: 1px solid #7a2a3a; }
.ex-key-icon { font-size: 34px; filter: drop-shadow(0 0 8px #ff3b5b); }
.ex-key-lv { font-size: 16px; }
.ex-key-lv b { color: #ffd23f; font-size: 20px; }
.ex-shopprog { margin-top: 8px; }
.ex-wallet { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, .3); margin-bottom: 8px; }
.ex-cur { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.ex-cur img { width: 18px; height: 18px; }
.ex-up { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; border: 1px solid #4a1a2a; margin: 8px 0; background: rgba(255, 255, 255, .03); }
.ex-up.rare { border-color: #a07010; background: rgba(255, 210, 63, .05); }
.ex-up-icon { font-size: 28px; width: 40px; text-align: center; }
.ex-up .title { font-weight: 700; }
.ex-up .sub { font-size: 12px; color: #c8b0b8; }
.ex-lv { color: #ffd23f; font-size: 12px; margin-left: 6px; }
.ex-eff { font-size: 12px; color: #7dffb0; margin-top: 2px; }
.ex-shopgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.ex-item { padding: 8px; border-radius: 10px; border: 1px solid var(--rc); background: rgba(0, 0, 0, .3); display: flex; flex-direction: column; gap: 4px; }
.ex-item.sold { opacity: .4; }
.ex-item-name { font-weight: 700; font-size: 13px; }

.neutral-chip { display: inline-block; padding: 1px 6px; border-radius: 6px; background: #e8e4da; color: #3a3630; font-size: 10px; font-weight: 800; }

.map-types { margin: 6px 0 4px; display: flex; flex-wrap: wrap; gap: 3px; }
.map-types .type-chip { font-size: 10px; }
.map-match { font-size: 12px; padding: 4px 6px; border-radius: 6px; margin-bottom: 6px; }
.map-match.good { background: rgba(80, 220, 120, .15); color: #8fffaf; }
.map-match.bad { background: rgba(255, 90, 90, .15); color: #ff9a9a; }
.map-match.even { background: rgba(255, 255, 255, .06); color: #d8d8e8; }
.zone-match { cursor: help; }
.zb-types { display: flex; gap: 4px; justify-content: center; margin-top: 6px; }
.zb-types .type-chip { font-size: 12px; }
.zb-match { font-size: 15px; margin-top: 4px; text-shadow: 0 2px 6px #000; }
.zb-match.good { color: #8fffaf; } .zb-match.bad { color: #ff8a8a; } .zb-match.even { color: #e8e8f8; }
.stable-speed { color: #7dffb0; font-size: 12px; margin-left: 6px; }
.stable-active { color: #7dffb0; font-weight: 700; }
.stable-row.sel { border-color: #7dffb0; }

/* ===== Einstellungen (settings.js) ===== */
body.ui-scaled #hud { zoom: var(--ui-scale); inset: auto; left: 0; top: 0; width: calc(100vw / var(--ui-scale)); height: calc(100vh / var(--ui-scale)); }
#settings-window { position: fixed; inset: 0; z-index: 120; background: rgba(6, 10, 18, .55); display: flex; align-items: center; justify-content: center; }
#settings-window.hidden { display: none; }
.set-panel { width: min(760px, 94vw); max-height: 88vh; display: flex; flex-direction: column; background: var(--panel, #1b2333); border: 1px solid var(--panel-border, #34405a); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6); overflow: hidden; }
.set-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--panel-border, #34405a); background: linear-gradient(180deg, rgba(255,255,255,.05), transparent); }
.set-head > b { font-size: 17px; white-space: nowrap; }
.set-tabs { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.set-body { padding: 12px 18px; overflow-y: auto; flex: 1; }
.set-sec { margin-bottom: 14px; }
.set-sec h4 { margin: 6px 0 6px; color: var(--accent, #ffd23f); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 7px 10px; border-radius: 9px; background: rgba(255,255,255,.03); margin-bottom: 4px; cursor: pointer; }
.set-row:hover { background: rgba(255,255,255,.06); }
.set-row > span:first-child { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.set-row small { color: var(--muted, #9aa6bd); font-size: 11.5px; margin-top: 1px; }
.set-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent, #ffd23f); cursor: pointer; }
.set-row select { background: #10172a; color: inherit; border: 1px solid var(--panel-border, #34405a); border-radius: 8px; padding: 5px 8px; max-width: 320px; }
.set-range { display: flex; align-items: center; gap: 10px; }
.set-range input { width: 180px; accent-color: var(--accent, #ffd23f); }
.set-range em { font-style: normal; min-width: 44px; text-align: right; color: var(--muted, #9aa6bd); font-variant-numeric: tabular-nums; }
.set-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.set-row.set-keyrow { cursor: default; }
.set-row b { font-size: 14px; color: #fff; font-weight: 700; }
.set-keys { flex: none; }
.set-range { flex: none; }
.set-keys { display: flex; gap: 6px; }
.keycap { min-width: 92px; white-space: nowrap; padding: 5px 10px; border-radius: 8px; border: 1px solid #4a5878; border-bottom-width: 3px; background: linear-gradient(180deg, #2a3550, #1f283d); color: #fff; font-weight: 700; cursor: pointer; font-size: 13px; }
.keycap:hover { border-color: var(--accent, #ffd23f); }
.keycap.empty { color: #6f7b95; font-weight: 400; }
.keycap.capture { border-color: var(--accent, #ffd23f); color: var(--accent, #ffd23f); animation: keycap-pulse 1s infinite; }
@keyframes keycap-pulse { 50% { box-shadow: 0 0 0 3px rgba(255, 210, 63, .35); } }
.set-msg { background: rgba(255, 210, 63, .12); border: 1px solid rgba(255, 210, 63, .4); border-radius: 8px; padding: 6px 10px; margin: 6px 0 10px; font-size: 13px; }
.set-foot { display: flex; justify-content: flex-end; margin-top: 6px; }
.set-bottom { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--panel-border, #34405a); }
.set-bottom .muted { flex: 1; text-align: center; }
.login-settings { position: fixed; top: 12px; right: 12px; z-index: 50; }

/* ===== Garderobe: Abschnitte & mythische Skins ===== */
.skin-sect { margin: 14px 0 6px; }
.skin-sect small { font-weight: 400; margin-left: 6px; }
.skin.mythic { border-image: linear-gradient(90deg, #ff4f4f, #ffd23f, #3dff8a, #4fc3ff, #b45cff, #ff4fd8) 1; animation: mythic-glow 2.5s linear infinite; }
.rar-mythic { background: linear-gradient(90deg, #ff4f4f, #ffd23f, #3dff8a, #4fc3ff, #b45cff, #ff4fd8, #ff4f4f); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: herald-text 3s linear infinite; font-weight: 800; }
@keyframes mythic-glow { 0% { box-shadow: 0 0 10px #ff4f4f; } 33% { box-shadow: 0 0 10px #3dff8a; } 66% { box-shadow: 0 0 10px #4fc3ff; } 100% { box-shadow: 0 0 10px #ff4f4f; } }

/* ===== Geheimnisbote ===== */
#herald-banner { position: absolute; top: 120px; left: 50%; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 2px; padding: 10px 26px; border-radius: 14px; background: rgba(10, 6, 24, .8); border: 3px solid transparent; background-clip: padding-box; box-shadow: 0 0 24px rgba(255,255,255,.25); pointer-events: none; z-index: 20; text-align: center; }
#herald-banner.show { display: flex; animation: herald-in .5s ease-out, herald-glow 2s linear infinite; }
#herald-banner.out { opacity: 0; transition: opacity .8s; }
#herald-banner b { font-size: 20px; background: linear-gradient(90deg, #ff4f4f, #ffd23f, #3dff8a, #4fc3ff, #b45cff, #ff4fd8, #ff4f4f); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: herald-text 3s linear infinite; }
#herald-banner small { color: #e8e0ff; font-size: 12.5px; }
@keyframes herald-in { from { transform: translate(-50%, -20px); opacity: 0; } }
@keyframes herald-text { to { background-position: 200% 0; } }
@keyframes herald-glow { 0% { box-shadow: 0 0 22px #ff4f4f; } 33% { box-shadow: 0 0 22px #3dff8a; } 66% { box-shadow: 0 0 22px #4fc3ff; } 100% { box-shadow: 0 0 22px #ff4f4f; } }

/* ===== Handwerksmeister ===== */
.craft-group { margin: 8px 0 14px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(232,184,48,.35); }
.craft-group h4 { margin: 2px 0 4px; color: #e8b830; }
.craft-row .bad { color: #ff7a7a; }
.tiny-icon { width: 18px !important; height: 18px !important; vertical-align: middle; }

/* ===== Schwierigkeit ===== */
.diff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 8px; }
.diff { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: #fff; border: 2px solid rgba(255,255,255,.12); background: linear-gradient(135deg, rgba(40,90,50,.55), rgba(20,30,40,.6)); }
.diff.hell { background: linear-gradient(135deg, hsla(calc(30 - 30 * var(--h)), 90%, calc(42% - 22% * var(--h)), .75), rgba(20,8,10,.75)); border-color: hsla(calc(30 - 30 * var(--h)), 95%, 55%, .5); }
.diff span { font-size: 11.5px; color: #e8d8d0; }
.diff span.good { color: #9dff9a; }
.diff em { font-style: normal; color: #ffd23f; font-weight: 800; font-size: 12px; }
.diff.on { border-color: #ffd23f; box-shadow: 0 0 12px rgba(255, 210, 63, .5); }
.diff:disabled { cursor: default; }
.diff:disabled:not(.on) { opacity: .55; }
.diff:not(:disabled):hover { border-color: #ffd23f; }
#diff-badge { position: absolute; top: 48px; left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: linear-gradient(135deg, #b0200a, #400808); border: 1px solid #ff7a3a; box-shadow: 0 0 10px rgba(255, 90, 30, .5); cursor: pointer; pointer-events: auto; }
#diff-badge.hidden { display: none; }

/* ===== Events (events.js) ===== */
#event-badge { position: absolute; top: 84px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 4px 14px; border-radius: 999px; background: rgba(10, 8, 20, .72); border: 2px solid var(--ec, #ffd23f); box-shadow: 0 0 14px var(--ec, #ffd23f); font-size: 13px; pointer-events: auto; animation: ev-glow 2.4s ease-in-out infinite; }
#event-badge.hidden { display: none; }
#event-badge small { color: var(--muted, #9aa6bd); font-size: 11px; }
@keyframes ev-glow { 50% { box-shadow: 0 0 22px var(--ec, #ffd23f); } }
.ev-vacation { text-align: center; padding: 10px 6px; }
.ev-sun { font-size: 64px; line-height: 1.1; animation: ev-bob 2.4s ease-in-out infinite; }
@keyframes ev-bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.ev-say { font-style: italic; background: rgba(255,255,255,.05); border-left: 3px solid var(--accent, #ffd23f); padding: 8px 12px; border-radius: 8px; }
.ev-head { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--ec) 35%, transparent), rgba(0,0,0,.15)); border: 1px solid var(--ec); }
.ev-icon { font-size: 42px; }
.ev-title { font-size: 18px; font-weight: 800; }
.ev-wallet { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 8px 0; padding: 8px 10px; background: rgba(0,0,0,.25); border-radius: 10px; }
.ev-wallet span { display: inline-flex; align-items: center; gap: 6px; }
.ev-wallet img, .ev-skin button img { width: 20px; height: 20px; vertical-align: middle; }
.ev-skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ev-skin { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 10px 8px; border-radius: 12px; background: rgba(255,255,255,.04); border: 2px solid var(--rc); box-shadow: inset 0 0 18px color-mix(in srgb, var(--rc) 25%, transparent); }
.ev-skin canvas { background: radial-gradient(circle at 50% 70%, rgba(255,255,255,.08), transparent 70%); border-radius: 10px; }
.ev-skin small { font-size: 11px; line-height: 1.25; }
.ev-skin.owned { opacity: .75; }
.ev-owned { color: #6dff8a; font-weight: 700; font-size: 12px; }
.ev-prog { width: 100%; height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.ev-prog > div { height: 100%; background: var(--rc); }

/* Einstellungen auf schmalen Bildschirmen */
@media (max-width: 760px) {
  .set-panel { width: 98vw; max-height: 94vh; }
  .set-head { flex-wrap: wrap; gap: 8px; }
  .set-tabs .chip { padding: 4px 8px; font-size: 12px; }
  .set-body { padding: 10px 10px; }
  .set-row { gap: 8px; padding: 6px 8px; flex-wrap: wrap; }
  .set-row.set-keyrow { flex-wrap: nowrap; }
  .keycap { min-width: 70px; padding: 5px 6px; font-size: 12px; }
  .set-range input { width: 120px; }
  .set-row select { max-width: 100%; }
  .diff-grid { grid-template-columns: 1fr 1fr; }
  .set-bottom { flex-wrap: wrap; }
  .set-bottom .muted { order: 3; flex-basis: 100%; }
}

/* ---------- Gemeinschaft (Freunde, Gilde, Gruppe, Emotes) ---------- */
#chat-log .line.whisper { color: #ff9ad5; }
#chat-log .line.whisper .from { color: #ff6fc4; }
#chat-log .line.guild { color: #8df58d; }
#chat-log .line.guild .from { color: #5fe05f; }
#chat-log .line.party { color: #8fd8ff; }
#chat-log .line.party .from { color: #4fc3ff; }
#chat-log .line.emote { color: #f0c8ff; font-style: italic; }
#chat-log .line.friend { color: #b6e3a8; font-style: italic; }
#chat-log [data-whisper] { cursor: pointer; }
#chat-log [data-whisper]:hover { text-decoration: underline; }
.soc-tag { color: #8df58d; font-weight: 800; }
.soc-btn { position: relative; }
#social-badge { position: absolute; top: -4px; right: -4px; background: #ff4d6d; color: #fff; border-radius: 9px; font-size: 10px; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; }
.soc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.soc-row { display: flex; gap: 6px; align-items: center; margin: 6px 0; flex-wrap: wrap; }
.soc-input { flex: 1; min-width: 120px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--panel-border); background: rgba(10, 14, 26, .7); color: var(--text); }
.soc-input.short { flex: 0 0 90px; min-width: 70px; }
.soc-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .04); margin: 4px 0; }
.soc-item > span:last-child { display: flex; gap: 4px; flex-shrink: 0; }
.soc-on { color: #5fe05f; }
.soc-off { color: #6b7590; }
.soc-rank { font-size: 11px; color: var(--muted); margin-left: 6px; }
.soc-chip { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 2px 4px 2px 10px; margin: 2px; }
.soc-invite { background: rgba(255, 210, 63, .1); border: 1px solid rgba(255, 210, 63, .4); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
.soc-guild { background: rgba(95, 224, 95, .06); border: 1px solid rgba(95, 224, 95, .25); border-radius: 10px; padding: 10px 12px; }
.soc-gname { font-size: 18px; font-weight: 800; }
.soc-motd { margin: 8px 0; padding: 6px 8px; background: rgba(0, 0, 0, .25); border-radius: 6px; }
.soc-log { max-height: 140px; overflow-y: auto; font-size: 12px; background: rgba(0, 0, 0, .2); border-radius: 6px; padding: 6px 8px; }
.soc-hp { height: 6px; width: 160px; margin-top: 3px; }
.soc-hp .fill { background: #5fe05f; }
.soc-emotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.soc-emote { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; }
.soc-emote span { font-size: 26px; line-height: 1; }
.soc-emote small { font-size: 10px; color: var(--muted); text-align: center; }
.party-member.open { border-color: rgba(79, 195, 255, .5); }
.party-member.far { opacity: .75; }

/* ---------- Handel, Auktionshaus & Post ---------- */
.mk-grid { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.mk-tile { position: relative; width: 92px; min-height: 78px; padding: 6px 4px 4px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid var(--rc, #555); display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.mk-tile.small { width: 78px; min-height: 66px; }
.mk-tile.click { cursor: pointer; }
.mk-tile.click:hover { background: rgba(255, 255, 255, .12); }
.mk-tile img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; }
.mk-ico { font-size: 26px; line-height: 36px; }
.mk-name { font-size: 10px; line-height: 1.15; color: var(--rc, #ddd); word-break: break-word; }
.mk-n { position: absolute; top: 2px; right: 4px; font-size: 11px; color: #fff; text-shadow: 0 1px 2px #000; }
.mk-moneytile { --rc: #ffd23f; justify-content: center; font-size: 22px; }
.mk-trade { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-offer { border: 1px solid var(--panel-border); border-radius: 10px; padding: 8px; min-height: 130px; background: rgba(0, 0, 0, .15); }
.mk-offer.ready { border-color: #5fe05f; box-shadow: 0 0 10px rgba(95, 224, 95, .3); }
.mk-offer h4 { margin: 0 0 4px; }
.mk-ok { color: #5fe05f; font-size: 12px; }
.mk-money input { width: 110px; }
.mk-tbtns { justify-content: center; }
.mk-row { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 8px; background: rgba(255, 255, 255, .03); margin: 4px 0; }
.mk-row .mk-tile { width: 78px; min-height: 64px; }
.mk-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mk-price { text-align: right; min-width: 110px; }
.mk-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.mk-filter select { padding: 5px; border-radius: 6px; background: rgba(10, 14, 26, .7); color: var(--text); border: 1px solid var(--panel-border); }
.mk-sell { display: flex; gap: 12px; padding: 10px; border: 1px solid rgba(255, 210, 63, .4); border-radius: 10px; background: rgba(255, 210, 63, .05); margin-bottom: 8px; }
.mk-sellform { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.mk-sellform input, .mk-sellform select { margin-left: 6px; padding: 4px 6px; border-radius: 6px; background: rgba(10, 14, 26, .7); color: var(--text); border: 1px solid var(--panel-border); width: 130px; }
.mk-warn { background: rgba(255, 120, 60, .12); border: 1px solid rgba(255, 120, 60, .4); border-radius: 8px; padding: 6px 10px; }
.mk-mail { border-radius: 8px; background: rgba(255, 255, 255, .04); margin: 4px 0; }
.mk-mail.unread .mk-mailhead b { color: #ffd23f; }
.mk-mailhead { padding: 7px 10px; cursor: pointer; }
.mk-mailbody { padding: 0 10px 8px; }
.mk-att { color: #ffd23f; }
.mk-write { display: flex; flex-direction: column; gap: 6px; }
.mk-write textarea { resize: vertical; font-family: inherit; }
#trade-request { position: absolute; top: 120px; left: 50%; transform: translateX(-50%); background: var(--panel); border: 1px solid #ffd23f; border-radius: 10px; padding: 10px 14px; z-index: 30; pointer-events: auto; box-shadow: 0 4px 20px rgba(0, 0, 0, .5); }
#trade-request.hidden { display: none; }
#mail-badge { position: absolute; top: -4px; right: -4px; background: #ff4d6d; color: #fff; border-radius: 9px; font-size: 10px; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; }
.grow { flex: 1; }

/* ---------- Ranglisten, Titel & PvP ---------- */
.rk-cats { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.rk-table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 13px; }
.rk-table td { padding: 4px 6px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.rk-table tr.me { background: rgba(255, 203, 5, .12); }
.rk-table tr.top1 b { color: #ffd23f; }
.rk-table tr.top2 b { color: #d8dee9; }
.rk-table tr.top3 b { color: #d89a6b; }
.rk-pos { width: 34px; text-align: center; font-weight: 800; }
.rk-ico { width: 34px; }
.rk-ico img { width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; }
.rk-val { text-align: right; color: var(--muted); }
.rk-titles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.rk-title { display: flex; flex-direction: column; gap: 3px; padding: 7px 9px; border-radius: 8px; background: rgba(255, 255, 255, .03); border: 1px solid transparent; opacity: .6; }
.rk-title.have { opacity: 1; cursor: pointer; background: rgba(255, 255, 255, .06); }
.rk-title.have:hover { border-color: rgba(255, 255, 255, .25); }
.rk-title.active { border-color: #ffd23f; box-shadow: 0 0 8px rgba(255, 210, 63, .35); }
.rk-on { color: #ffd23f; font-size: 11px; }
.rainbow-text { background: linear-gradient(90deg, #ff5a5a, #ffd23f, #5fe05f, #4fc3ff, #c58cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rk-season { padding: 10px 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(255, 90, 90, .15), rgba(255, 210, 63, .1)); border: 1px solid rgba(255, 120, 90, .35); }
.rk-sname { font-size: 18px; font-weight: 800; }
.rk-me { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.rk-me > div { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 8px; background: rgba(255, 255, 255, .05); text-align: center; }
.rk-me b { font-size: 18px; }
.pvp-hud { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); background: rgba(40, 10, 10, .85); border: 1px solid #ff5a5a; border-radius: 10px; padding: 6px 14px; z-index: 20; pointer-events: auto; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.pvp-hud.queue { background: rgba(10, 14, 26, .85); border-color: #ffd23f; }
.popup-req { position: absolute; top: 120px; left: 50%; transform: translateX(-50%); background: var(--panel); border: 1px solid #ff5a5a; border-radius: 10px; padding: 10px 14px; z-index: 30; pointer-events: auto; box-shadow: 0 4px 20px rgba(0, 0, 0, .5); }
.popup-req.hidden { display: none; }
@media (max-width: 760px) { .rk-me { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Pokédex, Zucht & Angeln ---------- */
.dx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 4px; margin-top: 6px; }
.dx-cell { position: relative; display: flex; flex-direction: column; align-items: center; padding: 3px; border-radius: 8px; background: rgba(255, 255, 255, .03); cursor: pointer; border: 1px solid transparent; }
.dx-cell:hover, .dx-cell.sel { border-color: rgba(255, 255, 255, .3); }
.dx-cell.s2 { background: rgba(255, 90, 90, .1); }
.dx-cell img { width: 48px; height: 48px; object-fit: contain; image-rendering: pixelated; }
.dx-cell img.sil, .dx-detail img.sil { filter: brightness(0) opacity(.35); }
.dx-cell.s1 img { filter: grayscale(1) opacity(.6); }
.dx-cell span { font-size: 9px; color: var(--muted); }
.dx-cell i { position: absolute; top: 2px; right: 5px; color: #ff5a5a; font-size: 9px; font-style: normal; }
.dx-bar { position: relative; height: 16px; background: rgba(0, 0, 0, .35); border-radius: 8px; overflow: hidden; margin: 4px 0; }
.dx-bar div { height: 100%; background: linear-gradient(90deg, #ff5a5a, #ffb36b); }
.dx-bar span { position: absolute; inset: 0; text-align: center; font-size: 11px; line-height: 16px; font-weight: 700; }
.dx-detail { display: flex; gap: 12px; padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); margin: 6px 0; }
.dx-detail img { width: 96px; height: 96px; object-fit: contain; image-rendering: pixelated; }
.dx-detail h4 { margin: 0 0 4px; }
.dx-got { opacity: .65; }
.dc-pair { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px 0; }
.dc-slot { width: 140px; min-height: 140px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--panel-border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px; }
.dc-slot img { width: 72px; height: 72px; object-fit: contain; image-rendering: pixelated; }
.dc-slot.empty { border-style: dashed; }
.dc-heart { font-size: 30px; }
.dc-status { text-align: center; padding: 8px; border-radius: 8px; background: rgba(255, 210, 63, .06); }
.dc-egg { font-size: 26px; }
#egg-hud { position: absolute; bottom: 96px; left: 50%; transform: translateX(calc(-50% + 330px)); background: rgba(10, 14, 26, .8); border: 1px solid var(--panel-border); border-radius: 10px; padding: 3px 8px; font-size: 14px; display: flex; align-items: center; gap: 6px; pointer-events: none; z-index: 5; }
#egg-hud.hidden { display: none; }
.egg-bar { width: 60px; height: 7px; background: rgba(0, 0, 0, .5); border-radius: 4px; overflow: hidden; }
.egg-bar div { height: 100%; background: #f3e4c0; }

/* ---------- Tageszeit, Wetter, Weltboss, Login-Kalender ---------- */
#env-hud { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); background: rgba(10, 14, 26, .7); border-radius: 8px; padding: 2px 10px; font-size: 12px; pointer-events: auto; z-index: 6; white-space: nowrap; }
#env-hud.hidden, #wb-hud.hidden { display: none; }
#wb-hud { position: absolute; top: 112px; left: 50%; transform: translateX(-50%); width: min(460px, 70vw); background: rgba(40, 14, 6, .85); border: 1px solid #ff8a1c; border-radius: 10px; padding: 5px 10px; z-index: 7; pointer-events: auto; cursor: pointer; box-shadow: 0 0 14px rgba(255, 120, 30, .35); }
.wb-top { font-size: 13px; margin-bottom: 3px; }
.wb-bar { position: relative; height: 12px; background: rgba(0, 0, 0, .5); border-radius: 6px; overflow: hidden; }
.wb-bar div { height: 100%; background: linear-gradient(90deg, #ff3b1f, #ffb21f); }
.wb-bar span { position: absolute; inset: 0; text-align: center; font-size: 10px; line-height: 12px; font-weight: 800; }
.qcard.weekly { border-color: rgba(127, 184, 255, .4); }
.panel.wide { width: min(760px, calc(100vw - 24px)); }
.cal-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.cal-prog { padding: 10px 12px 14px; border-radius: 12px; background: linear-gradient(180deg, #1c2440, #141a2e); border: 1px solid #2c3556; }
.cal-prog-txt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.cal-prog-txt b { font-size: 15px; } .cal-prog-txt span { font-size: 12px; color: var(--muted); }
.cal-bar { position: relative; height: 10px; border-radius: 6px; background: #0b0f1c; border: 1px solid #2c3556; }
.cal-bar > div { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #4fd08a, #ffd23f); box-shadow: 0 0 10px rgba(255, 210, 63, .35); }
.cal-bar i { position: absolute; top: 50%; transform: translate(-50%, -50%); font-style: normal; font-size: 13px; filter: grayscale(1) brightness(.6); }
.cal-bar i.on { filter: drop-shadow(0 0 4px #ffd23f); }
.cal-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.cal-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(79, 208, 138, .16), rgba(79, 208, 138, .04)); border: 1px solid rgba(79, 208, 138, .45); }
.cal-card small { grid-column: 1 / -1; font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #8fe8b4; margin-bottom: 2px; }
.cal-card span { font-size: 12.5px; font-weight: 600; }
.cal-card.gold { background: linear-gradient(135deg, rgba(255, 210, 63, .18), rgba(255, 150, 40, .05)); border-color: rgba(255, 210, 63, .55); }
.cal-card.gold small { color: #ffd98a; }
.cal-week { margin-bottom: 8px; }
.cal-wk { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 0 0 4px 2px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-day { position: relative; min-height: 104px; border-radius: 12px; padding: 6px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, #1d2541, #141a2e); border: 1px solid #2c3556; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); transition: transform .12s; }
.cal-day:hover { transform: translateY(-2px); border-color: #4b5888; }
.cal-num { font-size: 11px; font-weight: 800; color: #c7cfe8; white-space: nowrap; }
.cal-ico { position: relative; height: 40px; display: flex; align-items: center; justify-content: center; }
.cal-ico .ci { position: relative; display: inline-flex; }
.cal-ico img { width: 34px; height: 34px; image-rendering: pixelated; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .55)); }
.cal-ico.n2 img, .cal-ico.n3 img { width: 28px; height: 28px; }
.cal-ico.n2 .ci + .ci, .cal-ico.n3 .ci + .ci { margin-left: -8px; }
.cal-ico .ci b { position: absolute; right: -4px; bottom: -3px; font-size: 10px; font-weight: 900; color: #fff; background: rgba(10, 14, 28, .85); border: 1px solid #3a4670; border-radius: 6px; padding: 0 3px; line-height: 13px; }
.cal-card .cal-ico { grid-row: 2; }
.cal-card .cal-ico img { width: 34px; height: 34px; }
.cal-lbl { font-size: 10.5px; font-weight: 600; line-height: 1.15; color: #dfe5f5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; padding: 0 2px; }
.cal-day.big { background: linear-gradient(180deg, #3a3114, #1d1a12); border-color: rgba(255, 210, 63, .65); box-shadow: inset 0 0 18px rgba(255, 210, 63, .12); }
.cal-day.big .cal-num { color: #ffd98a; }
.cal-day.crown { background: linear-gradient(160deg, #4a1d3a, #2a1a4a 55%, #173040); border-color: #e7a6ff; box-shadow: 0 0 14px rgba(200, 120, 255, .35), inset 0 0 20px rgba(255, 255, 255, .06); }
.cal-day.crown .cal-num { color: #ffd5ff; }
.cal-day.got { background: linear-gradient(180deg, #16241f, #111a18); border-color: #2c5a42; }
.cal-day.got .cal-ico, .cal-day.got .cal-lbl, .cal-day.got .cal-num { opacity: .62; filter: grayscale(.35); }
.cal-stamp { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 900; color: #0b2416; background: #5fe08f; box-shadow: 0 0 8px rgba(95, 224, 143, .55); pointer-events: none; }
.cal-day.today { border-color: #5fe08f; box-shadow: 0 0 0 1px #5fe08f, 0 0 16px rgba(95, 224, 143, .45); }
.cal-day.next { border-style: dashed; border-color: #6f7fb8; }
.cal-ribbon { position: absolute; top: 0; left: 0; right: 0; height: 14px; line-height: 14px; text-align: center; font-size: 9px; font-weight: 900; letter-spacing: 1px; color: #082014; background: #5fe08f; }
.cal-day.today, .cal-day.next { padding-top: 18px; }
.cal-day.today .cal-stamp { top: 18px; }
.cal-ribbon.next { background: #8b9be0; color: #0d1430; }
.cal-note { margin-top: 6px; }
@media (max-width: 760px) { .cal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Tutorial & Tipps ---------- */
#tut-card { position: absolute; top: 150px; left: 12px; width: 300px; background: linear-gradient(180deg, rgba(30, 50, 100, .95), rgba(16, 24, 48, .95)); border: 1px solid #6fb6ff; border-radius: 12px; padding: 9px 12px; z-index: 12; pointer-events: auto; box-shadow: 0 4px 20px rgba(0, 0, 0, .45); font-size: 13px; }
#tut-card p, #hint-card p { margin: 4px 0 6px; line-height: 1.4; }
#tut-card.hidden, #hint-card.hidden { display: none; }
.tut-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #9fc8ff; margin-bottom: 3px; gap: 6px; }
.tut-bar { height: 5px; background: rgba(0, 0, 0, .4); border-radius: 3px; overflow: hidden; }
.tut-bar div { height: 100%; background: #6fb6ff; transition: width .4s; }
#hint-card { position: absolute; right: 12px; bottom: 140px; width: 300px; background: rgba(40, 34, 10, .95); border: 1px solid #ffd23f; border-radius: 12px; padding: 8px 12px; z-index: 12; pointer-events: auto; font-size: 13px; animation: hintIn .3s ease-out; }
@keyframes hintIn { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.tip-of-day { margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 210, 63, .08); border: 1px solid rgba(255, 210, 63, .3); font-size: 13px; min-height: 20px; }
.tut-help { padding: 8px 10px; margin-bottom: 10px; border-radius: 10px; background: rgba(111, 182, 255, .08); border: 1px solid rgba(111, 182, 255, .3); }
@media (max-width: 760px) { #tut-card, #hint-card { width: 240px; font-size: 12px; } }

/* ---------- Einklappbares HUD oben rechts ---------- */
#menu-toggle { font-size: 15px !important; font-weight: 800; color: var(--muted) !important; }
#menu-buttons.collapsed > button:not(#menu-toggle) { display: none; }
#menu-buttons.collapsed #menu-toggle { width: auto !important; padding: 0 12px; color: var(--text) !important; }
#qt-toggle { position: absolute; top: 66px; right: 12px; z-index: 4; pointer-events: auto; cursor: pointer; background: rgba(14, 18, 32, .78); color: var(--text); border: 1px solid var(--panel-border); border-radius: 8px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
#qt-toggle:hover, #menu-toggle:hover { border-color: var(--accent); }
#qt-toggle.closed { opacity: .85; }
#quest-tracker.hidden { display: none; }
.qt-arrow { display: inline-block; width: 16px; margin-right: 3px; color: var(--muted); cursor: pointer; font-size: 11px; }
.qt-arrow:hover { color: var(--accent); }
.qt-block.folded > :not(.qt-title) { display: none; }
.qt-block.folded { padding-bottom: 4px; }

/* ---------- Klassen-Beschreibungen (Charaktererstellung) ---------- */
.cls-overview { margin: 0 0 14px; border: 1px solid var(--panel-border); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.cls-toggle { width: 100%; text-align: left; background: none; border: 0; color: var(--text); font-size: 15px; font-weight: 800; padding: 10px 14px; cursor: pointer; }
.cls-toggle small { font-weight: 400; color: var(--muted); font-size: 12px; }
.cls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; padding: 0 12px 12px; }
.cls-card { text-align: left; background: rgba(10, 14, 26, .6); border: 1px solid var(--panel-border); border-left: 4px solid var(--c); border-radius: 10px; padding: 8px 10px; color: var(--text); cursor: pointer; display: flex; flex-direction: column; gap: 4px; font: inherit; }
.cls-card:hover { border-color: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 40%, transparent); }
.cls-card p { margin: 0; font-size: 12px; color: #c9d3ee; }
.cls-card-head { display: flex; align-items: center; gap: 6px; }
.cls-card-head b { font-size: 15px; flex: 1; }
.cls-icon { font-size: 22px; }
.cls-diff { font-size: 11px; color: #ffd23f; white-space: nowrap; }
.cls-roles { display: flex; flex-wrap: wrap; gap: 4px; }
.cls-info { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--panel-border); border-left: 5px solid var(--c); }
.cls-info p { margin: 8px 0; line-height: 1.5; }
.cls-head { display: flex; align-items: center; gap: 10px; }
.cls-head > div { flex: 1; }
.cls-name { font-size: 20px; font-weight: 800; color: var(--c); }
.cls-pro { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 12.5px; margin: 6px 0; }
.cls-pro > div { background: rgba(0, 0, 0, .2); border-radius: 8px; padding: 6px 9px; }
.cls-pro b { display: block; margin-bottom: 2px; }
.cls-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.cls-spec { background: rgba(0, 0, 0, .2); border-radius: 8px; padding: 6px 9px; display: flex; flex-direction: column; gap: 2px; }
.sd-pro { grid-template-columns: 1fr; font-size: 12px; }
.sd-spec { flex-direction: column; align-items: flex-start !important; gap: 1px; padding: 4px 6px !important; }
.sd-spec > span { display: flex; gap: 6px; align-items: center; width: 100%; justify-content: space-between; }
.sd-spec small { color: var(--muted); font-size: 11px; }
@media (max-width: 760px) { .cls-pro { grid-template-columns: 1fr; } }
@media (max-width: 900px) { #qt-toggle { display: none; } }

/* ---------- Impressum/Datenschutz-Links & Account-Bereich ---------- */
.legal-links { text-align: center; font-size: 12px; margin: 10px 0 0; color: var(--muted); }
.legal-links a, .login-help a { color: #8fc1ff; }
.account-box { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--panel-border); }
.account-box h3 { margin: 0 0 8px; font-size: 15px; }
.acc-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.acc-row small { display: block; color: var(--muted); font-size: 12px; }
.acc-row.danger b { color: #ff8a8a; }
.account-box.hidden { display: none; }

/* ---------- Saison-Pass ---------- */
.pass-big { margin: 6px 0 2px; }
.pass-big b { font-size: 26px; color: #ffd23f; }
.pass-big span { color: var(--muted); margin-left: 4px; }
.pass-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 5px; margin: 10px 0; }
.pass-tier { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--panel-border); font-size: 11.5px; }
.pass-tier b { font-size: 13px; color: var(--muted); }
.pass-tier.special { background: rgba(255, 210, 63, .07); border-color: rgba(255, 210, 63, .45); }
.pass-tier.special b { color: #ffd23f; }
.pass-tier.got { opacity: .5; }
.pass-tier.next { border-color: #5fe05f; box-shadow: 0 0 8px rgba(95, 224, 95, .4); opacity: 1; }
.pass-tier i { position: absolute; top: 4px; right: 6px; color: #5fe05f; font-style: normal; }
.pass-src { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 12px; font-size: 12.5px; }
.pass-src > div { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .05); padding: 2px 0; }
.pass-src b { color: #ffd23f; }

/* Pokémon-Wettbewerbe */
.ct-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 10px 0; }
.ct-cat, .ct-opt { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 10px; border: 2px solid transparent; background: rgba(255,255,255,.05); color: inherit; cursor: pointer; font: inherit; }
.ct-cat.on { border-color: var(--cc); background: color-mix(in srgb, var(--cc) 18%, transparent); }
.ct-cat:hover, .ct-opt:hover { border-color: var(--cc); }
.ct-ico { font-size: 24px; }
.ct-rib { font-size: 13px; letter-spacing: -2px; }
.ct-cond { width: 80%; height: 6px; border-radius: 3px; background: rgba(0,0,0,.5); overflow: hidden; }
.ct-cond span { display: block; height: 100%; background: var(--cc); }
.ct-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 8px; background: rgba(255,138,216,.12); }
.ct-hype { margin: 8px 0; font-size: 16px; }
.ct-hype span { color: #555; } .ct-hype span.on { color: #ff5a8a; text-shadow: 0 0 6px #ff5a8a; }
.ct-board { display: flex; flex-direction: column; gap: 4px; }
.ct-bar { display: grid; grid-template-columns: 190px 1fr 46px 34px; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 6px; background: rgba(255,255,255,.03); }
.ct-bar.me { background: rgba(255,210,63,.12); }
.ct-bar > div { height: 10px; border-radius: 5px; background: rgba(0,0,0,.45); overflow: hidden; }
.ct-bar > div span { display: block; height: 100%; background: linear-gradient(90deg, #ff8ad8, #ffd23f); transition: width .5s; }
.ct-name { display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; }
.ct-name img { width: 24px; height: 24px; image-rendering: pixelated; }
.ct-log { margin: 8px 0; font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
.ct-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ct-opt { padding: 12px 6px; border-color: color-mix(in srgb, var(--cc) 50%, transparent); }
@media (max-width: 760px) { .ct-cats { grid-template-columns: repeat(3, 1fr); } .ct-opts { grid-template-columns: 1fr; } .ct-bar { grid-template-columns: 120px 1fr 40px; } .ct-bar > .muted { display: none; } }

/* Eigene Zimmer */
#home-bar { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 10px; background: rgba(10,14,26,.85); border: 1px solid rgba(255,179,107,.5); font-size: 13px; }
.hm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin: 6px 0; }
.hm-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 8px; border: 2px solid transparent; background: rgba(255,255,255,.05); color: inherit; font: inherit; text-align: center; cursor: pointer; }
.hm-item > span:first-child { font-size: 22px; }
.hm-item.on { border-color: #ffb36b; background: rgba(255,179,107,.12); }
.hm-item:disabled { opacity: .5; cursor: default; }
@media (max-width: 760px) { #home-bar { top: auto; bottom: 120px; font-size: 12px; flex-wrap: wrap; justify-content: center; max-width: 94vw; } }

/* Story-Zwischensequenz */
#story { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.35); cursor: pointer; animation: st-in .4s ease; }
@keyframes st-in { from { opacity: 0; } to { opacity: 1; } }
#story .st-bar { position: absolute; left: 0; right: 0; height: 9vh; background: #000; }
#story .st-bar.top { top: 0; } #story .st-bar.bottom { bottom: 0; }
#story .st-title { position: absolute; top: calc(9vh + 14px); left: 50%; transform: translateX(-50%); font: 800 22px "Segoe UI", sans-serif; color: #ffd23f; text-shadow: 0 2px 6px #000; letter-spacing: .5px; }
#story .st-box { position: absolute; left: 50%; bottom: calc(9vh + 16px); transform: translateX(-50%); width: min(860px, 94vw); min-height: 120px; display: flex; gap: 14px; padding: 14px 18px; border-radius: 14px;
  background: #fbfbf6; color: #222; border: 4px solid #3a4a6a; box-shadow: inset 0 0 0 3px #fff, 0 8px 30px rgba(0,0,0,.55); }
#story .st-box.info { background: #1d2438; color: #e8ecf6; border-color: #ffd23f; font-style: italic; }
#story .st-portrait { width: 96px; flex: none; display: flex; align-items: flex-end; justify-content: center; }
#story .st-portrait img { width: 96px; image-rendering: pixelated; }
#story .st-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
#story .st-name { font-weight: 800; color: #c43a2a; font-size: 15px; }
#story .st-text { font-size: 17px; line-height: 1.45; min-height: 50px; }
#story .st-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
#story .st-choices .btn { color: #fff; }
#story .st-prompt { width: 100%; font-weight: 700; color: #3a4a6a; }
#story .st-box.info .st-prompt { color: #ffd23f; }
#story .st-next { position: absolute; right: 16px; bottom: 8px; color: #c43a2a; animation: st-blink 1s infinite; }
@keyframes st-blink { 50% { opacity: .2; } }
@media (max-width: 760px) { #story .st-portrait { width: 60px; } #story .st-portrait img { width: 60px; } #story .st-text { font-size: 15px; } }

/* Passwort vergessen / 2FA / Wiederherstellungscode */
.forgot-link { display: block; text-align: center; margin-top: 8px; font-size: 13px; color: #8fb8ff; }
#recovery-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.6); }
#recovery-modal .rm-card { width: min(460px, 92vw); padding: 20px; border-radius: 14px; background: #141a2c; border: 2px solid #ffd23f; text-align: center; }
.rm-code { display: inline-block; margin: 12px 0; padding: 10px 16px; border-radius: 8px; background: #0b0f1c; border: 1px dashed #ffd23f; font: 700 22px ui-monospace, Consolas, monospace; letter-spacing: 2px; color: #ffd23f; user-select: all; }
.rm-code.small { font-size: 14px; margin: 4px 0; padding: 4px 8px; }
#acc-2fa-setup ol { margin: 8px 0 0 18px; display: flex; flex-direction: column; gap: 6px; }

/* Während Zwischensequenzen und (auf dem Handy) offener Fenster keine Tutorial-/Tipp-Karten darüber */
body.in-story #tut-card, body.in-story #hint-card, body.in-story #home-bar { display: none !important; }
@media (max-width: 760px) { body:has(#panel:not(.hidden)) #tut-card, body:has(#panel:not(.hidden)) #hint-card { display: none !important; } }

/* Begleiter */
.pet-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; margin: 8px 0 12px; }
.pet-card { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 10px; background: rgba(255,255,255,.05); border: 2px solid transparent; text-align: center; }
.pet-card.on { border-color: #ffd23f; background: rgba(255,210,63,.1); }
.pet-card.locked .pet-face { filter: grayscale(1) brightness(.55); }
.pet-card b { font-size: 12px; }
.pet-face { image-rendering: auto; }
.pet-tag { font-size: 11px; color: #7fe08a; font-weight: 700; }
.pet-bar { width: 90%; height: 6px; border-radius: 3px; background: rgba(0,0,0,.45); overflow: hidden; position: relative; }
.pet-bar > div { height: 100%; background: linear-gradient(90deg, #6fb6ff, #7fe08a); }
.pet-bar.big { width: 100%; height: 16px; border-radius: 8px; }
.pet-bar.big span { position: absolute; inset: 0; font-size: 11px; display: flex; align-items: center; justify-content: center; text-shadow: 0 1px 2px #000; }
.pet-head { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.04); }
.pet-head h3 { margin: 0; }
.pet-head > div { flex: 1; }
.pet-tree { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pet-branch h4 { margin: 4px 0; }
.pet-node { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 8px; margin: 4px 0; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.pet-node.got { border-color: rgba(127,224,138,.5); background: rgba(127,224,138,.08); }
.pet-node.lock { opacity: .5; }
.pet-node.ult { border-color: rgba(255,210,63,.45); }
@media (max-width: 760px) { .pet-tree { grid-template-columns: 1fr; } .pet-cards { grid-template-columns: repeat(3, 1fr); } }

/* Menüleiste: Item-Icons aus den Spielen statt Emojis */
#menu-buttons button {
  background: linear-gradient(180deg, #2c3a64 0%, #1b2442 55%, #151c34 100%);
  border: 1px solid #3a4a7a; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 3px 8px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center; transition: transform .12s, box-shadow .12s, border-color .12s;
}
#menu-buttons button:hover { transform: translateY(-2px); border-color: #ffd23f; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 1px rgba(255,210,63,.35), 0 6px 14px rgba(0,0,0,.45); }
#menu-buttons button:active { transform: translateY(0); }
#menu-buttons .mi { width: 30px; height: 30px; image-rendering: pixelated; filter: drop-shadow(0 2px 1px rgba(0,0,0,.55)); pointer-events: none; transition: transform .12s; }
#menu-buttons button:hover .mi { transform: scale(1.12); }
#menu-buttons button span { background: rgba(0,0,0,.45); border-radius: 4px; padding: 0 3px; line-height: 12px; bottom: 2px; right: 2px; color: #cfd8f0; }
#menu-buttons button#menu-toggle { font-size: 16px; color: #ffd23f; }
.touch #menu-buttons .mi { width: 26px; height: 26px; }

/* Item-Icons im Text (statt Emojis) */
img.ei { width: 1.45em; height: 1.45em; vertical-align: -0.38em; image-rendering: pixelated; margin: 0 1px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }

/* Orden als Pixel-Bilder */
img.badge-img { width: 32px; height: 32px; image-rendering: pixelated; filter: drop-shadow(0 2px 2px rgba(0,0,0,.55)); }
img.badge-img.big { width: 56px; height: 56px; }
img.badge-img.locked { filter: brightness(0) opacity(.35); }
.badge-slot { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.08), rgba(0,0,0,.25)); border: 2px dashed rgba(255,255,255,.15); }
.badge-slot.got { border: 2px solid var(--bc); background: radial-gradient(circle, color-mix(in srgb, var(--bc) 30%, transparent), rgba(0,0,0,.2)); box-shadow: 0 0 10px color-mix(in srgb, var(--bc) 45%, transparent); }
.badge-slot img.badge-img { width: 34px; height: 34px; }
#badge-strip .badge img.badge-img { width: 100%; height: 100%; }

/* Weltboss-Anzeige: verschiebbar, einklappbar, ausblendbar */
#wb-hud .wb-top { display: flex; align-items: center; gap: 6px; cursor: grab; user-select: none; touch-action: none; }
#wb-hud .wb-top:active { cursor: grabbing; }
#wb-hud .wb-btns { margin-left: auto; display: flex; gap: 3px; }
#wb-hud .wb-btns button { width: 20px; height: 18px; padding: 0; border: 1px solid rgba(255,138,28,.6); border-radius: 4px; background: rgba(0,0,0,.35); color: #ffd9b0; font-size: 11px; line-height: 1; cursor: pointer; }
#wb-hud .wb-btns button:hover { background: rgba(255,138,28,.35); }
#wb-hud.mini { width: min(260px, 60vw); padding: 3px 8px; }
#wb-hud.mini .wb-bar { height: 5px; margin-top: 2px; }
#wb-hud.mini .wb-bar span { display: none; }

/* Item-Leiste: Auswahlmenü in Städten */
#hb-picker { position: fixed; z-index: 60; width: 270px; max-height: 360px; display: flex; flex-direction: column; background: linear-gradient(180deg, #232e52, #161d36); border: 1px solid #ffd23f; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.6); padding: 6px; }
#hb-picker .hb-head { display: flex; align-items: center; gap: 4px; padding: 2px 4px 6px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.08); }
#hb-picker .hb-x { margin-left: auto; background: none; border: none; color: #cfd8f0; cursor: pointer; font-size: 13px; }
#hb-picker .hb-actions { display: flex; gap: 6px; padding: 6px 4px; }
#hb-picker .hb-list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
#hb-picker .hb-item { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; border: 1px solid transparent; background: rgba(255,255,255,.03); color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
#hb-picker .hb-item:hover { background: rgba(255,210,63,.12); border-color: rgba(255,210,63,.5); }
#hb-picker .hb-item.on { border-color: #7fe08a; background: rgba(127,224,138,.1); }
#hb-picker .hb-item img { width: 28px; height: 28px; image-rendering: pixelated; }
#hb-picker .hb-item span { flex: 1; }
#hb-picker .hb-item b { color: #ffd23f; font-size: 12px; }
#hb-picker .hb-item i { font-style: normal; font-size: 10px; padding: 0 4px; border-radius: 4px; background: rgba(0,0,0,.45); color: #9fb0d8; }

#hb-picker .hb-item.skill { border-left: 4px solid var(--tc); }
#hb-picker .hb-item.skill small { display: block; font-size: 11px; }
#hb-picker .hb-item:disabled { opacity: .45; cursor: default; }
#hb-picker .hb-item .hb-kind { flex: 0 0 26px; width: 26px; text-align: center; font-size: 17px; }

/* Fähigkeiten-Icons */
img.sk-ico { width: 30px; height: 30px; border-radius: 7px; display: inline-block; vertical-align: middle; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
img.sk-ico.mini { width: 18px; height: 18px; border-radius: 4px; vertical-align: -4px; }
img.sk-ico.big { width: 38px; height: 38px; }
img.sk-ico.node { width: 100%; height: 100%; border-radius: 10px; }
img.sk-ico.bar { width: 30px; height: 30px; }
.tal-ab-ico { width: 40px; flex: 0 0 40px; display: flex; align-items: center; justify-content: center; }
.tal-slot-ico { flex: 0 0 auto; display: inline-flex; }
.tal-slot-ico img.sk-ico, .cw-skill-ico img.sk-ico { width: 24px; height: 24px; }
.tnode-ico { width: 78%; height: 78%; display: flex; align-items: center; justify-content: center; }
.tnode-ico img.sk-ico.node { width: 100%; height: 100%; }

/* =========================================================
   Admin-Konsole (client/admin.js) – Taste F8 / /admin
   ========================================================= */
#menu-buttons .adm-mi { display: inline-flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; }
#menu-admin { background: linear-gradient(180deg, rgba(120, 30, 40, .55), rgba(60, 14, 22, .55)) !important; border-color: #a8424d !important; }
#adm-win {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 900;
  width: min(920px, 96vw); height: min(680px, 92vh); display: flex; flex-direction: column;
  background: radial-gradient(120% 80% at 0% 0%, rgba(90, 26, 38, .55), transparent 55%), radial-gradient(120% 90% at 100% 100%, rgba(30, 48, 96, .55), transparent 60%), linear-gradient(180deg, #161b2e, #0f1322);
  border: 1px solid #4a3442; border-radius: 16px; color: var(--text);
  box-shadow: 0 0 0 1px rgba(255, 203, 5, .08) inset, 0 24px 60px rgba(0, 0, 0, .65), 0 0 40px rgba(200, 50, 70, .18);
  overflow: hidden; font-size: 14px;
}
#adm-win h4 { margin: 0 0 8px; font-size: 14px; color: #ffd98a; letter-spacing: .2px; display: flex; align-items: center; gap: 8px; }
#adm-win input, #adm-win select, #adm-win textarea {
  background: #0b0f1c; color: var(--text); border: 1px solid #333d5e; border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 13px; outline: none;
}
#adm-win input:focus, #adm-win select:focus, #adm-win textarea:focus { border-color: #ffcb05; box-shadow: 0 0 0 2px rgba(255, 203, 5, .18); }
#adm-win textarea { width: 100%; resize: vertical; }
#adm-win .wide { width: 100%; margin-bottom: 8px; }
#adm-win input[type=number] { width: 84px; }
.adm-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: move; user-select: none;
  background: linear-gradient(90deg, rgba(168, 36, 52, .55), rgba(40, 30, 60, .3) 60%, transparent); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.adm-logo { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(145deg, #ffcb05, #d9861a); box-shadow: 0 2px 8px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .5); }
.adm-title { display: flex; flex-direction: column; gap: 2px; }
.adm-title b { font-size: 17px; letter-spacing: .4px; }
.adm-role { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; padding: 2px 7px; border-radius: 20px; margin-left: 6px; width: fit-content;
  background: #2f5fa8; color: #fff; }
.adm-title .adm-role { margin-left: 0; }
.adm-role.admin { background: linear-gradient(90deg, #d9302e, #ff7b29); }
.adm-target { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 4px 4px 4px 10px; border-radius: 10px; border: 1px solid transparent; }
.adm-target.other { color: #ffd23f; border-color: #ffcb05; background: rgba(255, 203, 5, .1); animation: admPulse 1.6s ease-in-out infinite; }
@keyframes admPulse { 50% { box-shadow: 0 0 14px rgba(255, 203, 5, .35); } }
.adm-x { margin-left: 4px; width: 32px; height: 32px; border-radius: 9px; border: 1px solid #3a4466; background: rgba(0, 0, 0, .25); color: #ccd; font-size: 15px; cursor: pointer; }
.adm-head .adm-target + .adm-x { margin-left: 0; }
.adm-x:hover { background: #a8303c; color: #fff; }
.adm-tabs { display: flex; gap: 4px; padding: 8px 12px 0; border-bottom: 1px solid #2a3150; }
.adm-tabs button { display: flex; align-items: center; gap: 7px; padding: 9px 16px; border: 1px solid transparent; border-bottom: none; border-radius: 10px 10px 0 0;
  background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s, color .15s; }
.adm-tabs button span { font-size: 17px; }
.adm-tabs button:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.adm-tabs button.on { color: #fff; background: linear-gradient(180deg, #232b48, #1a2038); border-color: #2f3a60; box-shadow: inset 0 2px 0 #ffcb05; }
.adm-body { flex: 1; overflow: auto; padding: 14px; background: rgba(10, 13, 24, .35); }
.adm-body::-webkit-scrollbar { width: 9px; } .adm-body::-webkit-scrollbar-thumb { background: #39446a; border-radius: 6px; }
.adm-foot { border-top: 1px solid #2a3150; padding: 8px 12px; background: rgba(0, 0, 0, .25); display: flex; flex-direction: column; gap: 6px; }
.adm-cmd { display: flex; align-items: center; gap: 6px; background: #080b15; border: 1px solid #333d5e; border-radius: 9px; padding: 2px 4px 2px 10px; }
.adm-cmd span { color: #ffcb05; font-weight: 700; font-family: ui-monospace, Consolas, monospace; }
.adm-cmd input { flex: 1; border: none !important; background: transparent !important; box-shadow: none !important; font-family: ui-monospace, Consolas, monospace !important; }
.adm-last { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 20px; }
.adm-hist { font-size: 11.5px; background: #1b2240; border: 1px solid #2f3a60; color: #b9c6ff; padding: 2px 7px; border-radius: 6px; cursor: pointer; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-hist:hover { border-color: #ffcb05; color: #fff; }

.adm-subs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.adm-chip { padding: 6px 13px; border-radius: 20px; border: 1px solid #333d5e; background: #151b30; color: #c7cfe8; font-weight: 600; font-size: 13px; cursor: pointer; }
.adm-chip:hover { border-color: #5a6898; color: #fff; }
.adm-chip.on { background: linear-gradient(180deg, #ffcb05, #e6a400); color: #1b1606; border-color: #ffcb05; box-shadow: 0 2px 10px rgba(255, 203, 5, .25); }
.adm-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.adm-search { flex: 1; min-width: 180px; }
.adm-lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.adm-lbl b { color: #ffd23f; min-width: 20px; }
.adm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.adm-note { margin: 0 0 10px; padding: 8px 12px; border-radius: 9px; background: rgba(255, 203, 5, .1); border: 1px solid rgba(255, 203, 5, .45); color: #ffe48a; }

.adm-grid { display: grid; gap: 8px; }
.adm-grid.items { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.adm-grid.pokes { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.adm-item, .adm-poke { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 10px; cursor: pointer;
  border: 1px solid #2c3556; background: linear-gradient(180deg, #1b2240, #141a30); color: var(--text); transition: transform .1s, border-color .15s, box-shadow .15s; }
.adm-item:hover, .adm-poke:hover { transform: translateY(-2px); border-color: #ffcb05; box-shadow: 0 4px 14px rgba(255, 203, 5, .18); }
.adm-item img { width: 34px; height: 34px; image-rendering: pixelated; object-fit: contain; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .5)); }
.adm-poke img { width: 64px; height: 64px; image-rendering: pixelated; object-fit: contain; margin: -6px 0; }
.adm-item span, .adm-poke span { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.15; }
.adm-item small, .adm-poke small { font-size: 10px; color: var(--muted); }
.adm-pop { animation: admPop .45s ease-out; }
@keyframes admPop { 0% { box-shadow: 0 0 0 0 rgba(79, 208, 138, .9); border-color: #4fd08a; } 100% { box-shadow: 0 0 0 12px rgba(79, 208, 138, 0); } }

.adm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.adm-card { padding: 12px; border-radius: 12px; border: 1px solid #2c3556; background: linear-gradient(180deg, rgba(30, 37, 66, .85), rgba(20, 25, 45, .85)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.adm-card.span2 { grid-column: 1 / -1; }
.adm-qbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.adm-gem { display: grid; grid-template-columns: 12px 1fr auto auto; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; background: #161c33; border: 1px solid #252e4e; }
.adm-gem:hover { border-color: #46538a; }
.adm-gem small { color: var(--muted); font-size: 11px; }
.adm-gdot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 6px currentColor, inset 0 -2px 3px rgba(0, 0, 0, .35); }
.adm-money { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.adm-coin { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px; border-radius: 12px; cursor: pointer; font-size: 26px;
  border: 1px solid #6b5520; background: linear-gradient(180deg, #3a2f12, #241c0a); color: #ffe08a; }
.adm-coin b { font-size: 15px; } .adm-coin span { font-size: 11px; color: #c9a95a; }
.adm-coin:hover { border-color: #ffcb05; box-shadow: 0 0 16px rgba(255, 203, 5, .3); }

.adm-stat { display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px dashed #28304d; }
.adm-stat:last-child { border-bottom: none; }
.adm-stat small { display: block; color: var(--muted); font-size: 11px; }
.adm-sicon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; background: #232b4a; }

.adm-section { margin-bottom: 12px; }
.adm-ptable { display: flex; flex-direction: column; gap: 5px; }
.adm-prow { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 10px; background: #161c33; border: 1px solid #252e4e; }
.adm-prow.me { border-color: #2f5fa8; background: #15203a; }
.adm-prow.targ { border-color: #ffcb05; box-shadow: 0 0 10px rgba(255, 203, 5, .2); }
.adm-pimg { width: 44px; height: 44px; image-rendering: pixelated; object-fit: contain; }
.adm-pinfo small { display: block; color: var(--muted); font-size: 11.5px; }
.adm-hc { font-size: 10px; margin-left: 6px; color: #ff8a8a; }
.adm-pacts { display: flex; gap: 4px; }
.adm-ib { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #333d5e; background: #1e2645; cursor: pointer; font-size: 15px; transition: transform .1s, background .15s; }
.adm-ib:hover { transform: translateY(-1px); background: #2b3560; border-color: #6372a8; }
.adm-ib.red:hover { background: #7a1f2a; border-color: #ff5a5a; }
.adm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adm-sanc { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; background: #161c33; margin-bottom: 4px; }
.adm-sanc small { color: var(--muted); font-size: 11px; }
.adm-staff { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.adm-staff .adm-role { margin-left: 0; text-transform: none; letter-spacing: 0; font-size: 11px; }

.adm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 14px; }
.adm-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 12px; background: linear-gradient(180deg, #1e2645, #151b31); border: 1px solid #2c3556; text-align: center; }
.adm-tile span { font-size: 20px; } .adm-tile b { font-size: 14px; } .adm-tile small { color: var(--muted); font-size: 11px; }
.adm-log { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.adm-logrow { display: grid; grid-template-columns: 92px 92px 1fr; gap: 8px; padding: 5px 8px; border-radius: 7px; background: #141a2e; border-left: 3px solid #45507a; }
.adm-logrow time { color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-lk { font-weight: 700; font-size: 11px; letter-spacing: .5px; color: #b9c6ff; }
.adm-logrow.k-ban, .adm-logrow.k-kick { border-left-color: #ff5a5a; } .adm-logrow.k-ban .adm-lk, .adm-logrow.k-kick .adm-lk { color: #ff8a8a; }
.adm-logrow.k-mute, .adm-logrow.k-warn { border-left-color: #ffb02e; } .adm-logrow.k-mute .adm-lk, .adm-logrow.k-warn .adm-lk { color: #ffc966; }
.adm-logrow.k-unban, .adm-logrow.k-unmute { border-left-color: #4fd08a; } .adm-logrow.k-unban .adm-lk, .adm-logrow.k-unmute .adm-lk { color: #7fe0a8; }
.adm-logrow.k-dev, .adm-logrow.k-role, .adm-logrow.k-announce { border-left-color: #ffcb05; }
@media (max-width: 640px) { .adm-split { grid-template-columns: 1fr; } .adm-money { grid-template-columns: 1fr 1fr; } .adm-tabs button { padding: 8px 10px; font-size: 12px; } }

/* ---------- Bilder für Ausrüstung (Händler, Tooltips, Exitus) & Möbel ---------- */
.gear-ico { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 9px;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 45%, #1a2036), #0c101c 75%); border: 2px solid var(--rc);
  box-shadow: 0 0 10px color-mix(in srgb, var(--rc) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .12); }
.gear-ico img { width: 30px; height: 30px; image-rendering: pixelated; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .6)); }
.gear-ico.sm { width: 26px; height: 26px; border-radius: 6px; border-width: 1px; }
.gear-ico.sm img { width: 20px; height: 20px; }
.gear-ico.big { width: 54px; height: 54px; border-radius: 12px; align-self: center; }
.gear-ico.big img { width: 40px; height: 40px; }
.tt-head.has-ico { display: flex; align-items: center; gap: 10px; text-align: left; }
.tt-head.has-ico .tt-head-txt { flex: 1; min-width: 0; text-align: center; }
.ex-item { align-items: center; text-align: center; }
.hm-ico { width: 48px; height: 48px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }

/* ---------- Pokémon-Invasionen auf der Karte ---------- */
#map-inv { position: absolute; left: 130px; bottom: 18px; width: 300px; max-height: 46vh; overflow-y: auto; padding: 8px; border-radius: 12px;
  background: rgba(24, 14, 8, .92); border: 1px solid #a8561e; box-shadow: 0 0 18px rgba(255, 140, 40, .25); font-size: 12px; }
#map-inv.hidden { display: none; }
.map-inv-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: #ffb347; margin: 0 2px 6px; font-size: 13px; }
.map-inv-head span { font-weight: 600; color: #e8c8a0; font-size: 11px; }
.map-inv-row { width: 100%; display: flex; align-items: center; gap: 6px; padding: 5px 7px; margin-bottom: 4px; border-radius: 9px; cursor: pointer; text-align: left;
  border: 1px solid #5a3418; background: rgba(255, 140, 40, .08); color: #ffe9cf; font: inherit; }
.map-inv-row:hover, .map-inv-row.on { border-color: #ffb347; background: rgba(255, 140, 40, .18); }
.map-inv-name { flex: 1; min-width: 0; font-weight: 700; }
.map-inv-name small { display: block; font-weight: 500; color: #d8b48a; font-size: 10.5px; }
.map-inv-sp { display: flex; flex-wrap: wrap; gap: 2px; }
.map-inv-sp span { display: inline-flex; align-items: center; gap: 3px; border-radius: 8px; }
.map-inv-sp img { width: 34px; height: 34px; image-rendering: pixelated; object-fit: contain; }
.map-inv-sp span.rare { background: radial-gradient(circle, rgba(255, 215, 80, .45), transparent 70%); }
.map-inv-box { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: rgba(255, 140, 40, .1); border: 1px solid #a8561e; }
.map-inv-box b { color: #ffb347; } .map-inv-box small { color: #d8b48a; }
.map-inv-box .map-inv-sp { flex-direction: column; gap: 0; margin-top: 4px; }
.map-inv-box .map-inv-sp b { color: #ffe9cf; font-weight: 600; }
.map-inv-box .map-inv-sp span.rare b { color: #ffd23f; }
@media (max-width: 900px) { #map-inv { left: 10px; width: auto; right: 10px; max-height: 30vh; } }

/* ---------- Geldbörse (Charakterfenster) ---------- */
.wl-money { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; margin-bottom: 8px;
  background: linear-gradient(135deg, rgba(255, 210, 63, .2), rgba(255, 150, 40, .05)); border: 1px solid rgba(255, 210, 63, .5); }
.wl-money span { font-size: 28px; } .wl-money small { display: block; color: #e8d39a; font-size: 11px; } .wl-money b { font-size: 20px; color: #ffd23f; }
.wl-head { margin: 12px 0 6px !important; }
.wl-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; background: #151b30; border: 1px solid #252e4e; margin-bottom: 4px; }
.wl-row img { width: 32px; height: 32px; image-rendering: pixelated; object-fit: contain; }
.wl-row b { display: block; font-size: 13px; } .wl-row small { display: block; color: var(--muted); font-size: 10.5px; line-height: 1.3; }
.wl-n { font-size: 18px; font-weight: 800; color: #ffd23f; min-width: 40px; text-align: right; }
.wl-row.zero { opacity: .55; } .wl-row.zero .wl-n { color: var(--muted); }
.wl-orbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; }
.wl-orb { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 9px; background: #151b30; border: 1px solid #252e4e; text-align: center; }
.wl-orb img { width: 30px; height: 30px; image-rendering: pixelated; } .wl-orb b { color: #ffd23f; } .wl-orb small { font-size: 10px; color: var(--muted); line-height: 1.2; }
.wl-orb.zero { opacity: .5; }
.map-inv-goal { position: relative; height: 18px; border-radius: 9px; background: #1a0f08; border: 1px solid #6a3a18; margin: 0 2px 6px; overflow: hidden; }
.map-inv-goal > div { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ff8a28, #ffd23f); }
.map-inv-goal.done > div { background: linear-gradient(90deg, #4fd08a, #ffd23f); }
.map-inv-goal span { position: relative; display: block; text-align: center; font-size: 10.5px; font-weight: 800; line-height: 18px; color: #fff; text-shadow: 0 1px 2px #000; }
.map-inv-lead { margin-right: 4px; } .map-inv-lead.done { color: #4fd08a; }
.map-inv-foot { font-size: 10.5px; color: #d8b48a; text-align: center; margin-top: 2px; }

/* ---------- Pokédex: Hinweise & Typ-Sammler ---------- */
.dx-hints { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.dx-hint { font-size: 11px; padding: 2px 7px; border-radius: 8px; background: rgba(95, 140, 255, .12); border: 1px solid #2f3a60; color: #c7d4ff; }
.dx-hint.hot { background: rgba(255, 140, 40, .18); border-color: #ff8a28; color: #ffd8a8; }
.dx-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 5px; }
.dx-type { display: flex; align-items: center; gap: 6px; padding: 5px 7px; border-radius: 8px; background: #151b30; border: 1px solid #252e4e; }
.dx-type b { margin-left: auto; } .dx-type small { color: #ffd23f; letter-spacing: -1px; font-size: 10px; white-space: nowrap; }
.dx-type.full { border-color: #ffd23f; box-shadow: 0 0 8px rgba(255, 210, 63, .25); }
.pet-pas { font-size: 10.5px; color: #ffd98a; background: rgba(255, 210, 63, .1); border: 1px solid rgba(255, 210, 63, .35); border-radius: 8px; padding: 1px 6px; }
.pet-passive { display: flex; flex-direction: column; gap: 2px; margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: linear-gradient(135deg, rgba(255, 210, 63, .14), rgba(255, 150, 40, .04)); border: 1px solid rgba(255, 210, 63, .45); }
.pet-passive b { color: #ffd23f; } .pet-passive span { font-size: 12.5px; }
.hm-trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.hm-troph { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1px; padding: 7px 5px; border-radius: 9px; background: #151b30; border: 1px solid #252e4e; opacity: .55; }
.hm-troph span { font-size: 22px; } .hm-troph b { font-size: 12px; } .hm-troph small { font-size: 10px; color: var(--muted); }
.hm-troph.got { opacity: 1; border-color: #ffd23f; background: linear-gradient(180deg, rgba(255, 210, 63, .14), #151b30); }
.hm-gb { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; max-height: 220px; overflow-y: auto; }
.hm-gb-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 8px; background: #151b30; font-size: 12px; }
.hm-gb-row b { color: #ffb36b; } .hm-gb-row small { color: var(--muted); font-size: 10px; }
.hm-guest { padding: 8px 10px; margin-bottom: 8px; border-radius: 10px; border: 1px solid rgba(255, 179, 107, .45); background: rgba(255, 179, 107, .07); }
.hm-guest h4 { margin-top: 0 !important; }

/* ---------- Gemeinschaft: Treffpunkt ---------- */
.mt-grid { display: grid; gap: 6px; }
.mt-card { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 10px; background: #151b30; border: 1px solid #2c3556; font-size: 12.5px; }
.mt-card b small { font-weight: 500; color: var(--muted); }
.mt-card.hot { border-color: #ff5a3c; background: linear-gradient(135deg, rgba(255, 90, 60, .16), #151b30); }
.mt-card.inv { border-color: #a8561e; background: linear-gradient(135deg, rgba(255, 140, 40, .12), #151b30); }
.mt-bar { position: relative; height: 12px; border-radius: 6px; background: #0b0f1c; overflow: hidden; margin: 2px 0; }
.mt-bar > div { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ff3b3b, #ff8a28); }
.mt-bar.gold > div { background: linear-gradient(90deg, #ff8a28, #ffd23f); }
.mt-bar span { position: relative; display: block; text-align: center; font-size: 9.5px; font-weight: 800; line-height: 12px; text-shadow: 0 1px 2px #000; }
.mt-form { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-bottom: 8px; }
.mt-form input { grid-column: 1 / -1; }
.mt-form select { padding: 5px; border-radius: 7px; background: #0b0f1c; color: var(--text); border: 1px solid #333d5e; }
.mt-board { display: flex; flex-direction: column; gap: 5px; }
.mt-post { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: #151b30; border: 1px solid #2c3556; }
.mt-post.mine { border-color: #4fd08a; }
.slot-pot { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 -2px; padding: 5px 10px; border-radius: 10px; background: linear-gradient(90deg, #3a2a08, #5a3c0a, #3a2a08); border: 2px solid #ffd23f; box-shadow: 0 0 14px rgba(255, 210, 63, .35); }
.slot-pot span { font: 800 11px "Courier New", monospace; letter-spacing: 2px; color: #ffe9a0; }
.slot-pot > b { font: 900 22px "Courier New", monospace; color: #ffd23f; text-shadow: 0 0 8px rgba(255, 210, 63, .7); }
.slot-pot small { font-size: 10px; color: #e8cf8a; }
.tt-paragon { color: #c58cff; font-weight: 700; text-shadow: 0 0 6px rgba(197, 140, 255, .5); }
.tt-paragon.tt-bad { color: #ff7a7a; text-shadow: none; }

/* ---------- Göttliche Ausrüstung ---------- */
.tt-card.divine { border-color: #ffe9a0; box-shadow: 0 0 18px rgba(255, 225, 140, .45), 0 0 42px rgba(160, 200, 255, .25); background-image: radial-gradient(ellipse at top, rgba(255, 236, 170, .14), transparent 60%); }
.tt-card.divine .tt-name:not(.sub) { background: linear-gradient(90deg, #fff6d0, #ffd56a, #ffffff, #9fd8ff, #fff6d0); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: divineShine 4s linear infinite; text-shadow: none; }
@keyframes divineShine { from { background-position: 0% 0; } to { background-position: 300% 0; } }
.tt-div-head { color: #ffe9a0; font-weight: 700; text-shadow: 0 0 8px rgba(255, 220, 120, .6); }
.tt-div-sub { color: #ffd56a; font-weight: 600; margin-top: 4px; font-size: .92em; }
.tt-div-line { color: #fff3c4; }
.ex-item.divine { border-color: #ffe9a0; box-shadow: 0 0 16px rgba(255, 225, 140, .55); animation: divinePulse 2.4s ease-in-out infinite; }
@keyframes divinePulse { 50% { box-shadow: 0 0 28px rgba(255, 235, 170, .85), 0 0 50px rgba(150, 200, 255, .35); } }
.ex-divine-hint { color: #ffe9a0; }
.cw-bagtools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.cw-bagtools select { font-size: 12px; }
.riftweek .rw-affix { margin: 6px 0; }
.rw-chip { display: inline-block; padding: 1px 7px; border-radius: 10px; background: rgba(140, 120, 255, .18); border: 1px solid rgba(160, 140, 255, .5); font-weight: 600; }
.rw-boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; margin: 6px 0; }
.rw-board { background: rgba(255, 255, 255, .04); border-radius: 8px; padding: 5px 7px; font-size: 12px; }
.rw-head { font-weight: 700; color: #bfb3ff; margin-bottom: 2px; }
.rw-row { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctile.divine { box-shadow: inset 0 0 14px rgba(255, 230, 150, .35), 0 0 10px rgba(255, 225, 140, .35); border-color: #ffe9a0 !important; }
.ctile.divine .ctile-name { text-shadow: 0 0 6px rgba(255, 220, 120, .7); }
.dslot.divine { box-shadow: 0 0 14px rgba(255, 225, 140, .55); border-color: #ffe9a0 !important; }
.ex-convert .ex-conv-row { display: flex; gap: 8px; align-items: center; margin-top: 5px; flex-wrap: wrap; }
.ex-convert .ex-conv-row span { flex: 1; color: #fff1b8; }

/* ---------- Kampf-Statistik ---------- */
.meter { margin: 10px 0 4px; text-align: left; background: rgba(0,0,0,.25); border-radius: 10px; padding: 8px 10px; }
.meter-head { font-weight: 700; margin-bottom: 4px; }
.meter-row { display: grid; grid-template-columns: 110px 1fr 120px; gap: 4px 8px; align-items: center; font-size: 12px; margin: 3px 0; }
.meter-row.me .meter-name { color: #ffd23f; }
.meter-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.meter-bar { position: relative; height: 16px; background: rgba(255,255,255,.07); border-radius: 4px; overflow: hidden; }
.meter-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ff7a3c, #ffb02e); opacity: .75; }
.meter-bar.heal i { background: linear-gradient(90deg, #2fb46a, #7dffb0); }
.meter-bar b { position: relative; padding-left: 5px; font-weight: 600; text-shadow: 0 1px 2px #000; white-space: nowrap; }
.meter-small { grid-column: 1 / -1; color: #9aa4b8; font-size: 11px; padding-left: 110px; }
.rw-row[data-act] { cursor: pointer; }
.rw-row[data-act]:hover { color: #fff1b8; }
.cw-loadouts, .cw-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 6px 0; padding: 6px 8px; background: rgba(255,255,255,.04); border-radius: 8px; font-size: 12px; }
.lo-chip { display: inline-flex; gap: 1px; }
.cw-filter select { font-size: 12px; }

/* ---------- Admin-Konsole: Inspektor & neue Reiter ---------- */
.adm-insp-head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.adm-insp-head img { width: 56px; height: 56px; image-rendering: pixelated; }
.adm-insp-head small { display: block; color: #9aa4b8; }
.adm-eq { display: flex; gap: 6px; align-items: baseline; font-size: 12px; padding: 1px 0; }
.adm-eq span { min-width: 72px; color: #9aa4b8; }
/* Torwächter Titus – Weltboss-Tor */
.wbg-boss { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(255,138,28,.18), rgba(120,40,0,.25)); border: 1px solid rgba(255,138,28,.55); margin-bottom: 8px; }
.wbg-boss.divine { background: linear-gradient(135deg, rgba(255,220,120,.25), rgba(160,120,20,.25)); border-color: #ffd76a; }
.wbg-boss.closed { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.15); }
.wbg-boss > div:last-child { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.wbg-img { width: 72px; height: 72px; image-rendering: pixelated; flex: none; }
.wbg-closed { display: grid; place-items: center; font-size: 38px; }
.wbg-bar { position: relative; height: 12px; border-radius: 6px; background: rgba(0,0,0,.4); overflow: hidden; }
.wbg-bar > div { height: 100%; background: linear-gradient(90deg, #ff3b2a, #ff8a1c); }
.wbg-bar > span { position: absolute; inset: 0; font-size: 10px; line-height: 12px; text-align: center; color: #fff; font-weight: 700; }
.wbg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.wbg-arena { display: flex; flex-direction: column; gap: 3px; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.05); }
.raid-chal { margin-top: 4px; flex-wrap: wrap; gap: 6px; padding: 6px 8px; border-radius: 8px; background: rgba(255,90,40,.08); border: 1px dashed rgba(255,120,60,.4); }
.raid-chal.on { background: rgba(255,90,40,.2); border-style: solid; }
/* Zimmer: Sets & Wettbewerb */
.hm-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.hm-set { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.hm-set.done { border-color: #7fe08a; background: rgba(127,224,138,.1); }
.hm-set-h { display: flex; justify-content: space-between; }
.hm-set ul { margin: 4px 0 0 16px; padding: 0; font-size: 12px; }
.hm-rested, .hm-vote { padding: 8px 10px; border-radius: 10px; background: rgba(255,210,63,.12); border: 1px solid rgba(255,210,63,.4); margin: 6px 0; }
/* Liga, Trainer, MVP, Karte, Minispiele */
.lg-members { display: grid; gap: 6px; }
.lg-mem { padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.04); }
.lg-mem.champ { background: linear-gradient(90deg, rgba(255,207,58,.18), rgba(255,255,255,.03)); border: 1px solid rgba(255,207,58,.5); }
.lg-team { display: flex; gap: 4px; flex-wrap: wrap; }
.lg-team span { position: relative; width: 44px; text-align: center; }
.lg-team img { width: 44px; height: 44px; image-rendering: pixelated; }
.lg-team small { position: absolute; bottom: -2px; right: 0; font-size: 10px; background: rgba(0,0,0,.6); border-radius: 4px; padding: 0 3px; }
.lg-team.big span { width: 64px; } .lg-team.big img { width: 64px; height: 64px; }
.lg-stats { display: flex; gap: 14px; justify-content: center; margin: 8px 0; }
.lg-hall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.lg-hall > div { display: flex; flex-direction: column; align-items: center; padding: 6px; border-radius: 8px; background: rgba(255,207,58,.08); }
.lg-hall img { width: 48px; height: 48px; image-rendering: pixelated; }
.tr-head { font-size: 16px; margin-bottom: 4px; }
.mvp-list { display: grid; gap: 4px; }
.mvp-row { display: grid; grid-template-columns: 30px 36px 1fr 2fr; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px; background: rgba(255,255,255,.04); }
.mvp-row.top { background: rgba(255,207,58,.12); }
.mvp-row img { width: 36px; height: 36px; image-rendering: pixelated; }
.mvp-row .small { grid-column: 3 / 5; }
.mvp-bar { height: 8px; border-radius: 4px; background: rgba(0,0,0,.35); overflow: hidden; }
.mvp-bar > div { height: 100%; background: linear-gradient(90deg, #ff8a1c, #ffd23f); }
.mvp-rank { font-size: 18px; text-align: center; }
.tc { padding: 4px; }
.tc-top { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: linear-gradient(135deg, rgba(79,168,255,.18), rgba(197,155,255,.14)); border: 1px solid rgba(255,255,255,.15); }
.tc-poke { position: relative; } .tc-img { width: 96px; height: 96px; image-rendering: pixelated; }
.tc-fav { position: absolute; bottom: -4px; left: 0; right: 0; text-align: center; font-size: 10px; background: rgba(0,0,0,.55); border-radius: 6px; }
.tc-name { font-size: 18px; font-weight: 800; }
.tc-motto { font-style: italic; opacity: .85; margin-top: 4px; }
.tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 8px; }
.tc-grid > div { display: flex; justify-content: space-between; padding: 5px 8px; border-radius: 6px; background: rgba(255,255,255,.04); font-size: 13px; }
.tc-ach { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; } .tc-ach span { padding: 3px 8px; border-radius: 10px; background: rgba(255,207,58,.12); font-size: 12px; }
.tc-box { display: flex; flex-wrap: wrap; gap: 3px; max-height: 160px; overflow: auto; }
.tc-pick { width: 44px; height: 44px; padding: 0; border-radius: 6px; border: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.25); cursor: pointer; }
.tc-pick img { width: 40px; height: 40px; image-rendering: pixelated; }
.mg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.mg-card { padding: 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.mg-top { margin: 6px 0 0 18px; padding: 0; font-size: 12px; }
.mg-quiz { text-align: center; }
.mg-sil { margin: 8px auto; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, #fff6c8, #ffd23f 60%, #ff9a1c); display: grid; place-items: center; }
.mg-sil img { width: 140px; height: 140px; image-rendering: pixelated; filter: brightness(0); transition: filter .4s; }
.mg-sil.show img { filter: none; }
.mg-rev { font-size: 16px; margin: 6px 0; } .mg-rev.ok { color: #7fe08a; } .mg-rev.bad { color: #ff7a6a; }
.mg-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 420px; margin: 0 auto; }
.mg-mem { display: grid; grid-template-columns: repeat(4, 76px); gap: 6px; justify-content: center; margin-top: 8px; }
.mg-cell { width: 76px; height: 76px; border-radius: 10px; border: 2px solid rgba(255,255,255,.2); background: linear-gradient(135deg, #e8342a 50%, #fbf6ee 50%); cursor: pointer; display: grid; place-items: center; font-size: 22px; color: #2b2b2b; font-weight: 800; }
.mg-cell.up { background: #fbf6ee; } .mg-cell.solved { border-color: #7fe08a; opacity: .75; }
.mg-cell img { width: 64px; height: 64px; image-rendering: pixelated; }
.mg-result { text-align: center; padding: 16px; }
/* Einstellungen → Geschichte */
.sty-kai { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.04); margin-bottom: 6px; }
.sty-kai img { width: 64px; height: 64px; image-rendering: pixelated; }
.sty-cuts { display: flex; flex-wrap: wrap; gap: 6px; }
.lg-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lg-lead { width: 40px; height: 40px; image-rendering: pixelated; }

/* ===================== Casino „Goldener Mauzi“ ===================== */
#casino-window { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(8, 2, 10, .72); backdrop-filter: blur(3px); }
#casino-window.hidden { display: none; }
.cs-box { position: relative; overflow: hidden; width: min(1080px, 96vw); max-height: 94vh; overflow-y: auto; border-radius: 18px; padding: 14px 18px 18px;
  background: radial-gradient(ellipse at top, #4a1430 0%, #250a1c 60%, #160610 100%); border: 3px solid #c8962a; box-shadow: 0 0 0 2px #5a1a2a, 0 20px 60px rgba(0,0,0,.6), inset 0 0 40px rgba(255,200,80,.08); color: #f6ead8; }
.cs-head { display: flex; align-items: center; gap: 14px; }
.cs-logo { display: flex; align-items: center; gap: 10px; flex: 1; }
.cs-logo > span { font-size: 34px; filter: drop-shadow(0 0 8px #ff4f8a); }
.cs-logo b { font-size: 22px; letter-spacing: 3px; color: #ffe9a8; text-shadow: 0 0 10px #ff4f8a, 0 2px 0 #7a1a3a; }
.cs-logo small { display: block; color: #d8b8a0; font-size: 12px; }
.cs-money { background: #160610; border: 2px solid #c8962a; border-radius: 999px; padding: 6px 16px; font-size: 18px; color: #ffd23f; }
.cs-money b { color: #fff3c4; }
.cs-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.cs-tab { background: #3a1028; color: #f0d8c8; border: 1px solid #7a3a4a; border-radius: 10px; padding: 7px 12px; font-weight: 700; cursor: pointer; }
.cs-tab.on { background: linear-gradient(#ffd96a, #c8962a); color: #3a1a0a; border-color: #ffe9a8; box-shadow: 0 0 12px rgba(255,210,63,.45); }
.cs-host { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cs-host img { width: 44px; height: 44px; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.cs-host span { font-weight: 800; color: #ffe9a8; }
.cs-host small { margin-left: auto; }
.cs-body .muted { color: #c8a898; }
.cs-msg { text-align: center; margin: 8px 0; font-weight: 700; padding: 6px; border-radius: 8px; background: rgba(0,0,0,.25); }
.cs-msg.win { color: #7fff9a; text-shadow: 0 0 8px rgba(80,255,140,.5); font-size: 18px; }
.cs-msg.lose { color: #ff8a8a; }
.cs-msg.warn { color: #ffd23f; }
.cs-ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 10px 0; }
.cs-ctrl .btn.big { font-size: 17px; padding: 10px 22px; }
.btn.gold { background: linear-gradient(#ffe27a, #c8962a); color: #3a1a0a; border-color: #ffe9a8; }
.cs-bet { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.cs-bet > span { color: #e8c8a8; font-weight: 700; margin-right: 4px; }
.cs-betin { width: 92px; background: #160610; color: #fff3c4; border: 1px solid #c8962a; border-radius: 8px; padding: 6px; }
.cs-chip { width: 44px; height: 44px; border-radius: 50%; border: 4px dashed rgba(255,255,255,.85); font-weight: 900; font-size: 12px; color: #fff; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.4); text-shadow: 0 1px 2px #000; }
.cs-chip.c100 { background: #2f6fd6; } .cs-chip.c500 { background: #c4202a; } .cs-chip.c1000 { background: #1a1a1a; } .cs-chip.c5000 { background: #7b4cff; } .cs-chip.c10000 { background: #e0a800; } .cs-chip.c50000 { background: linear-gradient(135deg, #ff5ab0, #4fa8ff); }
.cs-chip.on { transform: translateY(-4px); box-shadow: 0 0 0 3px #ffe9a8, 0 6px 10px rgba(0,0,0,.5); }
.felt { position: relative; border-radius: 120px / 60px; padding: 18px 26px; min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px;
  background: radial-gradient(ellipse at center, #2a9a5a 0%, #1a6a3e 70%, #135030 100%); border: 10px solid #6b3a1a; box-shadow: inset 0 0 30px rgba(0,0,0,.45), 0 6px 0 #3a1a0a; }
.felt-txt { color: rgba(255,230,160,.55); font-size: 11px; letter-spacing: 2px; font-weight: 800; }
.cs-cards { display: flex; gap: 6px; justify-content: center; min-height: 96px; }
/* Pokémon-Spielkarten */
.pc { position: relative; width: 66px; height: 94px; border-radius: 8px; background: linear-gradient(160deg, #ffffff, #f3ece0); border: 2px solid #d8d0c0; box-shadow: 0 3px 6px rgba(0,0,0,.35); flex: 0 0 auto; overflow: hidden; color: #333; }
.pc.s-f { --sc: #e8452a; } .pc.s-w { --sc: #2f7fe0; } .pc.s-g { --sc: #2f9a3f; } .pc.s-e { --sc: #d09a00; }
.pc:not(.back) { border-color: var(--sc); }
.pc.face { background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--sc) 22%, #fff) 0%, #fff 70%); }
.pc-c { position: absolute; font-weight: 900; font-size: 15px; line-height: 1; color: var(--sc); text-align: center; }
.pc-c small { display: block; font-size: 10px; }
.pc-c.tl { top: 4px; left: 5px; } .pc-c.br { bottom: 4px; right: 5px; transform: rotate(180deg); }
.pc-face { position: absolute; left: 50%; top: 52%; width: 56px; height: 56px; transform: translate(-50%, -50%); object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.pc-pips { position: absolute; inset: 16px 12px; display: grid; grid-template-columns: 1fr 1fr; align-content: space-evenly; justify-items: center; font-size: 11px; line-height: 1; }
.pc-pips i { font-style: normal; }
.pc-pips i:last-child:nth-child(odd) { grid-column: span 2; }
.pc-pips.n9 i, .pc-pips.n10 i { font-size: 9px; }
.pc-pips.n2, .pc-pips.n3 { grid-template-columns: 1fr; } .pc-pips.n2 i, .pc-pips.n3 i { font-size: 18px; }
.pc.back { background: repeating-linear-gradient(45deg, #b0202a 0 6px, #c4303a 6px 12px); border: 3px solid #fff; }
.pc-ball, .pc.back::after { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); border-radius: 50%; background: linear-gradient(#e8342a 0 46%, #222 46% 54%, #fff 54%); border: 2px solid #222; }
.pc-ball::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; border: 2px solid #222; }
.pc.slot { background: rgba(0,0,0,.18); border: 2px dashed rgba(255,255,255,.25); box-shadow: none; }
.pc.mini { width: 40px; height: 57px; border-radius: 5px; }
.pc.mini .pc-c { font-size: 11px; } .pc.mini .pc-c small { font-size: 8px; } .pc.mini .pc-face { width: 32px; height: 32px; } .pc.mini .pc-pips { inset: 12px 8px; font-size: 8px; } .pc.mini .pc-ball { width: 18px; height: 18px; }
.pc.big { width: 110px; height: 156px; border-radius: 12px; } .pc.big .pc-c { font-size: 24px; } .pc.big .pc-c small { font-size: 15px; } .pc.big .pc-face { width: 96px; height: 96px; } .pc.big .pc-pips { inset: 30px 22px; font-size: 18px; }
.pc.deal { animation: pcDeal .35s ease-out both; animation-delay: var(--d, 0s); }
@keyframes pcDeal { from { opacity: 0; transform: translateY(-40px) rotate(-12deg) scale(.8); } to { opacity: 1; transform: none; } }
/* Blackjack */
.bj-dealer { text-align: center; }
.bj-hands { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.bj-hand { padding: 6px; border-radius: 10px; text-align: center; }
.bj-hand.act { box-shadow: 0 0 0 3px #ffd23f, 0 0 18px rgba(255,210,63,.5); }
.bj-val { font-weight: 800; color: #fff3c4; text-shadow: 0 1px 2px #000; margin-top: 4px; }
.bj-res { font-weight: 900; margin-top: 2px; } .bj-res.r-win, .bj-res.r-blackjack { color: #7fff9a; } .bj-res.r-lose, .bj-res.r-bust { color: #ff8a8a; } .bj-res.r-push { color: #ffe9a8; }
/* Roulette */
.rl-top { display: flex; gap: 20px; align-items: center; justify-content: center; flex-wrap: wrap; }
.rl-wheel-wrap { position: relative; width: 230px; height: 230px; }
.rl-pointer { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); color: #ffd23f; font-size: 22px; z-index: 2; text-shadow: 0 2px 2px #000; }
.rl-wheel { position: absolute; inset: 0; border-radius: 50%; border: 10px solid #6b3a1a; box-shadow: 0 0 0 3px #c8962a, 0 8px 18px rgba(0,0,0,.6); }
.rl-wheel span { position: absolute; left: 50%; top: 0; height: 50%; transform-origin: 50% 100%; margin-left: -9px; width: 18px; text-align: center; }
.rl-wheel span b { display: block; font-size: 10px; color: #fff; padding-top: 3px; }
.rl-hub { position: absolute; left: 50%; top: 50%; width: 46%; height: 46%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(#e0b040, #8a5a1a); border: 3px solid #c8962a; }
.rl-info { min-width: 220px; text-align: center; }
.rl-last { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.rl-last span, .rl-result { display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-weight: 800; }
.rl-last span { width: 26px; height: 26px; font-size: 12px; }
.rl-result { width: 70px; height: 70px; font-size: 34px; margin: 10px; border: 3px solid #ffd23f; animation: pcDeal .4s ease-out; }
.n-red { background: #c4202a; color: #fff; } .n-black { background: #151515; color: #fff; } .n-green { background: #1f9a4a; color: #fff; }
.rl-board { display: grid; grid-template-columns: 46px 1fr 46px; grid-template-rows: auto auto auto; gap: 3px; margin-top: 12px; background: #1a6a3e; padding: 8px; border-radius: 10px; border: 6px solid #6b3a1a; }
.rl-cell { position: relative; display: flex; align-items: center; justify-content: center; min-height: 34px; border: 1px solid rgba(255,255,255,.45); border-radius: 4px; font-weight: 800; cursor: pointer; user-select: none; color: #fff; }
.rl-cell:hover { box-shadow: inset 0 0 0 2px #ffd23f; }
.rl-cell.zero { grid-row: 1; grid-column: 1; }
.rl-nums { grid-row: 1; grid-column: 2; display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.rl-cols { grid-row: 1; grid-column: 3; display: grid; gap: 3px; }
.rl-dozens { grid-row: 2; grid-column: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.rl-outs { grid-row: 3; grid-column: 2; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.rl-chip { position: absolute; right: -4px; top: -6px; min-width: 22px; height: 22px; padding: 0 3px; border-radius: 11px; background: #ffd23f; color: #3a1a0a; font-style: normal; font-size: 10px; display: flex; align-items: center; justify-content: center; border: 2px dashed #fff; z-index: 1; }
.rl-total { margin: 0 8px; }
/* Geld-Automat */
.sl-machine { margin: 0 auto; max-width: 560px; padding: 14px; border-radius: 20px; background: linear-gradient(#e0b040, #8a5a1a); border: 4px solid #ffe9a8; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.sl-jp { text-align: center; background: #160610; color: #ffd23f; border-radius: 10px; padding: 6px; font-weight: 800; box-shadow: inset 0 0 12px rgba(255,80,140,.4); }
.sl-jp b { font-size: 22px; color: #fff3c4; text-shadow: 0 0 10px #ff4f8a; }
.sl-jp small { display: block; color: #c8a898; font-weight: 400; font-size: 11px; }
.sl-reels { position: relative; display: flex; gap: 10px; justify-content: center; margin: 12px 0; padding: 10px; background: #2a0a1a; border-radius: 12px; }
.sl-reel { width: 120px; height: 120px; background: linear-gradient(#ddd, #fff 30%, #fff 70%, #ccc); border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: inset 0 6px 10px rgba(0,0,0,.3), inset 0 -6px 10px rgba(0,0,0,.3); }
.sl-reel img { width: 96px; height: 96px; object-fit: contain; }
.sl-reel.spin img { filter: blur(2px); transform: translateY(6px); }
.sl-line { position: absolute; left: 6px; right: 6px; top: 50%; height: 3px; background: rgba(255,60,90,.7); box-shadow: 0 0 6px #ff3c5a; pointer-events: none; }
.sl-table { margin: 12px auto 0; max-width: 560px; }
.sl-row { display: flex; align-items: center; gap: 10px; padding: 3px 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sl-row span { display: flex; width: 110px; align-items: center; } .sl-row img { width: 34px; height: 34px; object-fit: contain; }
.sl-row > b { width: 54px; color: #ffd23f; } .sl-row small { color: #c8a898; }
/* Hoch oder Tief */
.felt.hl { min-height: 280px; }
.hl-trail { display: flex; gap: 4px; min-height: 57px; }
.hl-stats { font-weight: 700; color: #fff3c4; text-shadow: 0 1px 2px #000; }
/* Rennen */
.rc-track { background: linear-gradient(#7fbf5a, #5a9a3a); border: 6px solid #8a5a32; border-radius: 12px; padding: 6px; }
.rc-lane { position: relative; height: 40px; border-bottom: 2px dashed rgba(255,255,255,.4); }
.rc-lane.mine { background: rgba(255,210,63,.2); } .rc-lane.win { background: rgba(127,255,154,.3); }
.rc-no { position: absolute; left: 4px; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #333; font-weight: 900; text-align: center; line-height: 22px; font-size: 12px; z-index: 1; }
.rc-run { position: absolute; top: 0; margin-left: 30px; transition: left .05s linear; }
.rc-run img { width: 40px; height: 40px; object-fit: contain; transform: scaleX(-1); }
.rc-goal { position: absolute; right: 6px; top: 0; bottom: 0; width: 8px; background: repeating-linear-gradient(#fff 0 6px, #222 6px 12px); }
.rc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; margin-top: 10px; }
.rc-r { display: grid; grid-template-columns: 40px 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 0 6px; padding: 6px; border-radius: 10px; background: rgba(0,0,0,.3); border: 2px solid transparent; cursor: pointer; }
.rc-r.on { border-color: #ffd23f; background: rgba(255,210,63,.15); }
.rc-r img { grid-row: span 2; width: 40px; height: 40px; object-fit: contain; }
.rc-r small { color: #c8a898; grid-column: 2; } .rc-odds { grid-row: span 2; grid-column: 3; grid-row-start: 1; font-weight: 900; color: #ffd23f; font-size: 16px; }
/* Würfel */
.felt.dc { min-height: 170px; justify-content: center; }
.dc-duel { display: flex; flex-direction: column; gap: 8px; }
.dc-round { display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; }
.dc-side { display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.25); padding: 6px 10px; border-radius: 10px; }
.dc-side em { font-style: normal; font-weight: 900; font-size: 20px; color: #ffd23f; }
.die { font-size: 42px; line-height: 1; color: #fff; text-shadow: 0 2px 3px #000; display: inline-block; }
.dc-round.rolling .die { animation: dieRoll .5s ease-out; }
@keyframes dieRoll { from { transform: rotate(-200deg) scale(.4); opacity: .3; } to { transform: none; opacity: 1; } }
.dc-round .vs { color: #ffe9a8; font-weight: 800; }
.dc-inv { text-align: center; padding: 8px; background: rgba(255,210,63,.15); border: 1px solid #ffd23f; border-radius: 10px; margin: 8px 0; }
.dc-pvp { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.dc-pvp select { background: #160610; color: #fff3c4; border: 1px solid #c8962a; border-radius: 8px; padding: 6px; }
#cs-invite { position: fixed; right: 16px; bottom: 120px; z-index: 70; background: #2a0a1a; border: 2px solid #ffd23f; border-radius: 12px; padding: 10px 14px; color: #fff3c4; max-width: 320px; box-shadow: 0 8px 20px rgba(0,0,0,.5); }
#cs-invite div { display: flex; gap: 6px; margin-top: 8px; }
/* Poker */
.pk-lobby { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.pk-tbl { background: radial-gradient(ellipse, #1f7a46, #135030); border: 6px solid #6b3a1a; border-radius: 20px; padding: 12px; }
.pk-tbl h4 { margin: 0 0 4px; color: #ffe9a8; }
.pk-who { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; min-height: 26px; }
.pk-who span { background: rgba(0,0,0,.3); border-radius: 999px; padding: 2px 8px; font-size: 12px; } .pk-who .hum { color: #7fe0ff; }
.pk-buy { display: flex; align-items: center; gap: 8px; } .pk-buy input { flex: 1; } .pk-buy b { color: #ffd23f; min-width: 100px; text-align: right; }
.pk-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .pk-top .sp { flex: 1; }
.pk-table { position: relative; height: 470px; margin: 34px auto 0; max-width: 900px; }
.pk-felt { position: absolute; left: 12%; right: 12%; top: 14%; bottom: 18%; border-radius: 50%; background: radial-gradient(ellipse at center, #2a9a5a 0%, #1a6a3e 70%, #135030 100%); border: 12px solid #6b3a1a; box-shadow: inset 0 0 30px rgba(0,0,0,.5), 0 0 0 3px #c8962a, 0 10px 20px rgba(0,0,0,.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.pk-board { display: flex; gap: 5px; }
.pk-pot { font-weight: 900; color: #ffe9a8; text-shadow: 0 1px 2px #000; }
.pk-res { font-size: 12px; text-align: center; color: #7fff9a; text-shadow: 0 1px 2px #000; }
.pk-seat { position: absolute; transform: translate(-50%, 0); width: 128px; text-align: center; padding: 4px; border-radius: 12px; background: rgba(22,6,16,.85); border: 2px solid #7a3a4a; }
.pk-seat.empty { color: #8a6a6a; font-size: 12px; background: rgba(22,6,16,.4); border-style: dashed; }
.pk-seat.turn { border-color: #ffd23f; box-shadow: 0 0 14px rgba(255,210,63,.6); }
.pk-seat.me { border-color: #7fe0ff; } .pk-seat.fold { opacity: .5; } .pk-seat.won { box-shadow: 0 0 18px rgba(127,255,154,.8); border-color: #7fff9a; }
.pk-cards { display: flex; justify-content: center; gap: 2px; margin-top: -40px; min-height: 36px; }
.pk-ava { position: relative; height: 44px; } .pk-ava img { width: 44px; height: 44px; object-fit: contain; }
.pk-dealer { position: absolute; right: 10px; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #222; font-style: normal; font-weight: 900; font-size: 11px; line-height: 20px; }
.pk-name { font-weight: 800; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pk-stack { color: #ffd23f; font-size: 12px; }
.pk-last { font-size: 11px; color: #ffe9a8; } .pk-best { font-size: 11px; color: #7fe0ff; font-weight: 700; } .pk-won { color: #7fff9a; font-weight: 900; }
.pk-bet { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); background: #ffd23f; color: #3a1a0a; font-weight: 900; border-radius: 999px; padding: 1px 8px; font-size: 11px; white-space: nowrap; border: 2px dashed #fff; }
.pk-timer { height: 4px; background: rgba(255,255,255,.15); border-radius: 2px; margin-top: 3px; overflow: hidden; } .pk-timer i { display: block; height: 100%; background: #ffd23f; width: 100%; transition: width .2s linear; }
.pk-ctrl { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; min-height: 44px; margin-top: 8px; }
.pk-ctrl input[type=range] { width: 200px; } .pk-ctrl b { color: #ffd23f; min-width: 90px; }
.pk-log { max-height: 110px; overflow-y: auto; font-size: 12px; color: #d8c0b0; background: rgba(0,0,0,.3); border-radius: 8px; padding: 6px 10px; margin-top: 8px; }
.cs-conf { position: absolute; top: -10px; width: 8px; height: 12px; border-radius: 2px; animation: csConf 2s linear forwards; pointer-events: none; z-index: 5; }
@keyframes csConf { to { transform: translateY(105vh) rotate(720deg); opacity: .8; } }
@media (max-width: 700px) {
  .pc { width: 48px; height: 69px; } .pc-face { width: 40px; height: 40px; }
  .pk-table { height: 380px; } .pk-seat { width: 92px; font-size: 11px; } .pk-felt { left: 6%; right: 6%; }
  .rl-board { grid-template-columns: 30px 1fr 30px; } .rl-cell { min-height: 26px; font-size: 10px; }
  .sl-reel { width: 80px; height: 80px; } .sl-reel img { width: 64px; height: 64px; }
}

.cs-info { margin: 0 0 10px; background: rgba(0,0,0,.28); border: 1px solid #7a3a4a; border-radius: 10px; }
.cs-info > summary { cursor: pointer; padding: 7px 12px; font-weight: 800; color: #ffe9a8; list-style: none; }
.cs-info > summary::-webkit-details-marker { display: none; }
.cs-info > summary::after { content: '▾ aufklappen'; float: right; font-weight: 400; color: #c8a898; font-size: 12px; }
.cs-info[open] > summary::after { content: '▴ zuklappen'; }
.ci-body { padding: 0 14px 10px; font-size: 13px; line-height: 1.45; color: #f0dccc; }
.ci-body p { margin: 6px 0; } .ci-body ul { margin: 4px 0 6px 18px; padding: 0; } .ci-body h5 { margin: 10px 0 4px; color: #ffd23f; font-size: 13px; }
.ci-edge { color: #ffb0a0; border-left: 3px solid #ff7a6a; padding-left: 8px; }
.ci-hands { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px; }
.ci-hand { background: rgba(255,255,255,.05); border-radius: 8px; padding: 6px 8px; display: grid; grid-template-columns: 1fr; gap: 3px; }
.ci-hand small { color: #c8a898; }
.ci-cards { display: flex; gap: 3px; } .ci-cards .pc.mini { width: 34px; height: 48px; } .ci-cards .pc.mini .pc-face { width: 26px; height: 26px; } .ci-cards .pc.mini .pc-pips { inset: 10px 5px; font-size: 6px; } .ci-cards .pc.mini .pc-c { font-size: 9px; }
.ci-tab { border-collapse: collapse; margin: 6px 0; } .ci-tab td, .ci-tab th { padding: 3px 10px; border-bottom: 1px solid rgba(255,255,255,.1); text-align: left; } .ci-tab th { color: #ffd23f; }

/* ===================== Menü oben rechts: Schnellleiste + Übersicht ===================== */
#menu-buttons > button.unpinned { display: none !important; }
#menu-buttons button#menu-toggle { width: auto !important; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #ffd23f !important; }
#menu-buttons button#menu-toggle span { position: static; background: none; padding: 0; font-size: 13px; color: inherit; line-height: 1; }
#menu-buttons button#menu-toggle .mt-arr { transition: transform .15s; font-size: 12px; }
#menu-buttons button#menu-toggle.open .mt-arr { transform: rotate(180deg); }
#menu-badge { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; border-radius: 8px; background: #e8342a; color: #fff; font-size: 10px; line-height: 16px; text-align: center; padding: 0 3px; }
#menu-panel { position: absolute; top: 64px; right: 12px; z-index: 40; width: min(720px, 94vw); max-height: calc(100vh - 160px); overflow-y: auto; padding: 12px 14px;
  background: linear-gradient(180deg, rgba(28,34,58,.97), rgba(16,20,36,.97)); border: 2px solid #3d4a7a; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.55); color: #e8ecf8; }
#menu-panel.hidden { display: none; }
.mp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.mp-head b { font-size: 16px; color: #ffd23f; } .mp-head .muted { font-size: 11px; }
.mp-grp h5 { margin: 10px 0 4px; font-size: 12px; color: #9fb0e0; text-transform: uppercase; letter-spacing: 1px; }
.mp-grp { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.mp-grp h5 { grid-column: 1 / -1; }
.mp-it { display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 9px; cursor: pointer; border: 1px solid transparent; }
.mp-it:hover { background: rgba(255,255,255,.07); border-color: #ffd23f55; }
.mp-ico img, .mp-ico span { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; image-rendering: pixelated; }
.mp-txt b { display: block; font-size: 13px; } .mp-txt small { display: block; color: #a8b4d8; font-size: 11px; line-height: 1.25; }
.mp-txt em { font-style: normal; font-size: 10px; padding: 0 5px; border-radius: 6px; background: #5a2a2a; color: #ffb0a0; } .mp-txt em.on { background: #2a5a3a; color: #9fffb8; }
.mp-badge { font-style: normal; background: #e8342a; color: #fff; border-radius: 8px; padding: 0 5px; font-size: 10px; }
.mp-it kbd { min-width: 26px; text-align: center; padding: 3px 6px; border-radius: 6px; background: #0e1426; border: 1px solid #4a5a90; border-bottom-width: 3px; font: 800 12px "Segoe UI", system-ui, sans-serif; color: #fff; }
.mp-it kbd.none { opacity: .3; }
.mp-pin { background: none; border: none; color: #8a96c0; font-size: 18px; cursor: pointer; padding: 0 4px; } .mp-pin.on { color: #ffd23f; } .mp-pin:hover { transform: scale(1.2); }
@media (max-width: 640px) { .mp-grp { grid-template-columns: 1fr; } }

/* ===================== Skin-Fenster ===================== */
#skin-window { position: fixed; inset: 0; z-index: 55; display: flex; align-items: center; justify-content: center; background: rgba(6,8,18,.6); }
#skin-window.hidden { display: none; }
.sk-box { width: min(1120px, 96vw); max-height: 92vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #1c2240, #121628); border: 2px solid #3d4a7a; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6); color: #e8ecf8; padding: 12px 16px 14px; }
.sk-main { display: grid; grid-template-columns: 400px 1fr; gap: 14px; min-height: 0; flex: 1; margin-top: 8px; }
.sk-left { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sk-stage { position: relative; border-radius: 12px; overflow: hidden; border: 2px solid #3d4a7a; }
.sk-stage canvas { display: block; width: 100%; height: auto; }
.sk-showing { position: absolute; right: 8px; top: 6px; background: rgba(0,0,0,.55); color: #ffe9a8; padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.sk-who { position: absolute; left: 8px; top: 6px; background: rgba(0,0,0,.45); padding: 2px 8px; border-radius: 8px; font-size: 12px; }
.sk-opts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: #c8d2f0; }
.sk-detail { background: rgba(0,0,0,.25); border-radius: 10px; padding: 10px 12px; min-height: 120px; font-size: 13px; }
.sk-dname { font-size: 18px; font-weight: 800; } .sk-dsub { font-size: 12px; color: #a8b4d8; margin-bottom: 4px; }
.sk-src { color: #ffcf8a; } .sk-act { margin-top: 8px; display: flex; gap: 8px; }
.sk-worn { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #a8b4d8; }
.sk-worn a { cursor: pointer; color: #ff8a8a; margin-left: 4px; }
.sk-right { display: flex; flex-direction: column; min-height: 0; }
.sk-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.sk-tabs button { background: #232a4a; color: #dfe6ff; border: 1px solid #3d4a7a; border-radius: 9px; padding: 6px 10px; font-weight: 700; cursor: pointer; }
.sk-tabs button.on { background: linear-gradient(#ffd96a, #c8962a); color: #2a1a0a; border-color: #ffe9a8; }
.sk-tabs small { opacity: .75; font-weight: 400; }
.sk-row { display: flex; gap: 6px; margin: 8px 0; } .sk-row select { flex: 1; background: #0e1426; color: #fff; border: 1px solid #4a5a90; border-radius: 8px; padding: 6px; }
.sk-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; align-content: start; padding-right: 4px; max-height: 62vh; }
.sk-card { position: relative; text-align: left; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; gap: 0 6px; align-items: center; padding: 7px 8px; border-radius: 10px; background: #1a2038; border: 2px solid #2d3660; border-left: 4px solid var(--rc); color: #e8ecf8; cursor: pointer; }
.sk-card:hover { border-color: var(--rc); background: #222a4a; }
.sk-card.sel { box-shadow: 0 0 0 2px #ffd23f, 0 0 14px rgba(255,210,63,.35); }
.sk-card.locked { opacity: .62; } .sk-card.locked .sk-ico { filter: grayscale(.7); }
.sk-card.on { background: #1f3a2e; }
.sk-card.mythic { background: linear-gradient(135deg, #2a1a40, #3a1a3a); }
.sk-ico { grid-row: span 2; font-size: 24px; text-align: center; } .sk-nm { font-weight: 800; font-size: 13px; line-height: 1.15; } .sk-meta { font-size: 11px; color: #a8b4d8; } .sk-meta i { font-style: normal; }
.sk-badge { position: absolute; top: 4px; right: 6px; font-size: 11px; } .sk-badge.on { background: #2fbf6a; color: #fff; border-radius: 6px; padding: 0 5px; font-size: 10px; }
@media (max-width: 860px) { .sk-main { grid-template-columns: 1fr; } .sk-grid { max-height: 40vh; } }

/* ===================== Geschichte: Tracker & Tagebuch ===================== */
.qt-block.saga { border-left: 3px solid #8a6ad8; } .qt-block.saga .qt-title { color: #c9b4ff; }
.qt-block.evo { border-left: 3px solid #ffd23f; } .qt-block.area { border-left: 3px solid #7fe08a; } .qt-block.trial { border-left: 3px solid #ff9a3c; } .qt-block.event { border-left: 3px solid #ff5a7a; }
.dy-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.dy-acts { display: flex; align-items: center; gap: 0; }
.dy-acts i { flex: 1; height: 3px; background: #3d4a7a; }
.dy-act { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; background: #232a4a; border: 2px solid #3d4a7a; color: #8a96c0; }
.dy-act.done { background: #4a3a8a; border-color: #8a6ad8; color: #fff; } .dy-act.now { background: #ffd23f; border-color: #fff3a0; color: #2a1a0a; box-shadow: 0 0 12px rgba(255,210,63,.6); }
.dy-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; }
.dy-e { display: grid; grid-template-columns: 30px 1fr; gap: 8px; background: rgba(255,255,255,.04); border-left: 3px solid #8a6ad8; border-radius: 8px; padding: 6px 10px; }
.dy-i { font-size: 20px; } .dy-e small { color: #8a96c0; } .dy-e p { margin: 2px 0 0; font-style: italic; }

/* ===================== Talentbaum: ausführlichere Beschreibungen ===================== */
.tt-kind { font-weight: 800; font-size: 12px; letter-spacing: .5px; margin-bottom: 4px; }
.tt-desc { color: #dfe6ff; margin: 2px 0 6px; line-height: 1.4; }
.tt-row { display: flex; justify-content: space-between; gap: 10px; padding: 2px 6px; border-radius: 6px; font-size: 12px; }
.tt-row span { color: #a8b4d8; white-space: nowrap; } .tt-row b { text-align: right; }
.tt-row.now { background: rgba(127,255,154,.1); } .tt-row.now b { color: #9fffb8; }
.tt-row.max { background: rgba(255,210,63,.08); } .tt-row.max b { color: #ffe9a8; }
.tal-legend { font-size: 13px; line-height: 1.5; background: rgba(0,0,0,.25); border-radius: 10px; padding: 8px 12px; margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.tl-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; border: 2px solid; }
.tl-dot.ab { border-color: #ffd23f; border-radius: 50%; } .tl-dot.mod { border-color: #7fd4ff; } .tl-dot.st { border-color: #9aa6d4; }

/* Handy quer: Skin-Fenster zweispaltig (Vorschau links, Liste rechts) */
.small-touch:not(.portrait) .sk-main { grid-template-columns: 38% 1fr; }
.small-touch:not(.portrait) .sk-grid { max-height: none; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.small-touch #skin-window .sk-who { display: none; }
.small-touch #skin-window > *, .small-touch #casino-window > * { max-height: calc(100% - 12px); max-width: calc(100% - 12px); overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ===================== Vollbild-Knöpfe & Update-Log ===================== */
.login-fs { position: fixed; top: 12px; right: 150px; z-index: 50; }
[data-fullscreen].on { border-color: #ffd23f !important; box-shadow: 0 0 0 2px rgba(255, 210, 63, .45); }
#changelog-modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(4, 8, 18, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
#changelog-modal.hidden { display: none; }
.cl-card { width: min(640px, 100%); max-height: min(86vh, 100%); display: flex; flex-direction: column; overflow: hidden; border-radius: 18px;
  background: radial-gradient(120% 70% at 0% 0%, rgba(255, 210, 63, .12), transparent 60%), #121a2e; border: 2px solid #ffd23f; box-shadow: 0 24px 70px rgba(0, 0, 0, .7); animation: cl-in .25s ease-out; }
@keyframes cl-in { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.cl-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #2c3352; }
.cl-ico { font-size: 34px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.cl-head h2 { margin: 0; font-size: 20px; color: #ffe27a; }
.cl-head p { margin: 2px 0 0; font-size: 13px; }
.cl-head > div:nth-child(2) { flex: 1; min-width: 0; }
.cl-x { background: #232a45; border: 1px solid #39406a; color: #cfd6f5; width: 36px; height: 36px; border-radius: 10px; font-size: 16px; cursor: pointer; flex: none; }
.cl-list { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.cl-entry { background: rgba(255, 255, 255, .03); border: 1px solid #2c3352; border-radius: 12px; padding: 10px 14px; }
.cl-entry.newest { border-color: #ffd23f; box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .25); }
.cl-entry header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.cl-entry header b { font-size: 15px; flex: 1; min-width: 160px; }
.cl-entry header small { color: var(--muted); font-size: 12px; }
.cl-num { font-size: 11px; font-weight: 900; letter-spacing: .4px; color: #1b1600; background: #ffd23f; border-radius: 999px; padding: 2px 9px; }
.cl-entry ul { margin: 8px 0 2px; padding-left: 20px; }
.cl-entry li { margin: 3px 0; line-height: 1.4; font-size: 14px; }
.cl-entry li::marker { color: #ffd23f; }
.cl-steps { margin: 4px 0 10px; padding-left: 22px; line-height: 1.6; }
.cl-foot { padding: 12px 16px; border-top: 1px solid #2c3352; display: flex; justify-content: flex-end; }
@media (max-width: 760px), (max-height: 500px) {
  .cl-head { padding: 10px 12px; } .cl-ico { font-size: 26px; } .cl-head h2 { font-size: 17px; }
  .cl-list { padding: 10px 12px; } .cl-entry li { font-size: 13px; } .cl-foot { padding: 8px 12px; }
  .cl-card { max-height: 100%; }
}

/* ===================== Starter-Auswahl auf dem Handy ===================== */
.sd-back { display: none; }
@media (max-width: 900px), (max-height: 560px) {
  /* ganze Seite scrollt (vorher hatten Liste und Details keine Höhe mehr) */
  #screen-starter.active { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .starter-head { padding: 54px 12px 8px; gap: 8px; }
  .starter-head h2 { font-size: 20px; }
  .starter-head p { display: none; }
  #role-filter .chip { padding: 4px 9px; font-size: 12px; }
  .starter-layout { display: block; min-height: auto; overflow: visible; padding: 0 12px 20px; }
  #starter-grid { overflow: visible; padding-right: 0; }
  .gen-row { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
  .starter-card img { width: 64px; height: 64px; }
  /* Details (Name, Spielmodus, „Erstellen“) als eigenes Fenster nach dem Antippen */
  #starter-detail { display: none; }
  #screen-starter.sd-open #starter-detail { display: block; position: fixed; inset: 8px; z-index: 60; max-height: none; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 14px 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .7); border-color: #ffd23f; }
  #screen-starter.sd-open .login-fs, #screen-starter.sd-open .login-settings { display: none; }
  .sd-back { display: inline-block; position: sticky; top: -12px; z-index: 2; margin: -2px 0 4px; background: #232c47; box-shadow: 0 0 0 6px var(--panel), 0 8px 14px rgba(0, 0, 0, .45); }
  .sd-img { width: 120px; height: 120px; margin: 0 auto; }
  .login-fs { right: 134px; }
  .login-fs, .login-settings { font-size: 12px; padding: 5px 9px; }
}

/* ===================== Zusammen spielen ===================== */
.login-invite { background: linear-gradient(90deg, rgba(255, 210, 63, .18), rgba(255, 210, 63, .06)); border: 1px solid #ffd23f; border-radius: 10px; padding: 8px 10px; font-size: 13px; margin-bottom: 10px; }
.soc-invite { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; margin-bottom: 10px; border: 1px dashed #ffd23f; border-radius: 10px; background: rgba(255, 210, 63, .06); }
.soc-invite .soc-input { flex: 1; font-size: 12px; }
.mt-card.cm { border-color: #5ad17a; background: linear-gradient(180deg, rgba(90, 209, 122, .12), transparent); }
.mt-card.cm.done { border-color: #ffd23f; }
.pf-sync { font-size: 10px; font-weight: 800; color: #7fe0ff; background: rgba(40, 120, 200, .25); border: 1px solid #4aa0e0; border-radius: 6px; padding: 0 6px; margin: 1px 0 2px; width: fit-content; }
.pf-sync.hidden { display: none; }
.push-card { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; margin-bottom: 10px; border: 1px solid #4aa0e0; border-radius: 10px; background: rgba(40, 120, 200, .08); }
.push-prefs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.push-prefs label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.cl-num.local { background: #6fb6ff; }
.mt-card.tour { border-color: #ffb400; background: linear-gradient(180deg, rgba(255, 180, 0, .12), transparent); }
.tr-bracket { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0; }
.tr-round { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.tr-round > b { font-size: 11px; color: #ffd23f; text-transform: uppercase; letter-spacing: .5px; }
.tr-match { font-size: 12px; padding: 4px 6px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid #2c3352; }
.tr-match.fight { border-color: #5ad17a; }
.tr-match .win { color: #7dffb0; font-weight: 800; }
.tr-match i { color: var(--muted); font-size: 10px; }
.gh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 10px 0; }
.gh-box { border: 1px solid #2c3352; border-radius: 10px; padding: 8px 10px; background: rgba(255, 255, 255, .02); }
.gh-box h4 { margin: 0 0 6px; }
.gh-list { display: flex; flex-direction: column; gap: 4px; max-height: 200px; overflow-y: auto; margin-top: 6px; }
.gh-note, .gh-item { display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; font-size: 12px; padding: 5px 7px; border-radius: 8px; background: rgba(255, 210, 63, .06); border: 1px solid #3a3420; }
.gh-note.pin { border-color: #ffd23f; }
.gh-item { background: rgba(90, 209, 122, .06); border-color: #24402e; align-items: center; }
.gh-troph { font-size: 12px; padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }

/* ===================== Foto-Modus ===================== */
html.photo-mode #hud, html.photo-mode #touch-ui, html.photo-mode #tut-card, html.photo-mode #hint-card, html.photo-mode #chat { display: none !important; }
#photo-bar { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 300; width: min(760px, calc(100vw - 16px)); display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 14px; background: rgba(12, 16, 30, .9); border: 1px solid #ffd23f; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
#photo-bar.hidden { display: none; }
#photo-bar .ph-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#photo-bar .soc-input { flex: 1; min-width: 140px; }
.ph-thumb { max-height: 90px; border-radius: 8px; border: 1px solid #39406a; }
body.ph-flash::after { content: ''; position: fixed; inset: 0; background: #fff; opacity: .7; z-index: 999; pointer-events: none; }
.small-touch #photo-bar { bottom: 6px; padding: 6px 8px; }
.small-touch #photo-bar .ph-row:first-child .muted { display: none; }
.small-touch #photo-bar .btn { padding: 5px 9px; font-size: 12px; }
.small-touch .ph-thumb { max-height: 46px; }
.small-touch #photo-bar .soc-input { font-size: 16px; padding: 4px 8px; }
