/* Universe of Aethar — UI */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --gold: #ffd100;
  --gold-dim: #c8a838;
  --gold-deep: #6f5a2a;
  --panel-bg: linear-gradient(170deg, rgba(21, 21, 31, 0.95) 0%, rgba(11, 11, 18, 0.95) 60%, rgba(8, 8, 13, 0.95) 100%);
  --panel-border: #6f5a2a;
  --border-dark: #4e3d1d;
  --text: #f0ebd8;
  --muted: #998d6a;
  --hp: #1eb838;
  --hp-bg: #23140f;
  --mana: #2b7bd4;
  --rage: #c0392b;
  --energy: #e4c531;
  --xp: #8a5ac8;
  --font-display: 'Cinzel', 'Palatino Linotype', Georgia, serif;
  --font-ui: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;
}
@font-face {
  font-family: 'Alegreya Sans';
  src: url('../assets/fonts/AlegreyaSans.ttf') format('truetype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Alegreya Sans';
  src: url('../assets/fonts/AlegreyaSans-Bold.ttf') format('truetype');
  font-weight: 700; font-display: swap;
}
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }
body {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text);
  user-select: none;
  -webkit-user-select: none;
}
#game-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.hidden { display: none !important; }

button { cursor: pointer; font-family: inherit; }
input {
  font-family: inherit; background: #1a1626; color: #eee;
  border: 1px solid var(--panel-border); border-radius: 4px; padding: 8px 10px;
  outline: none;
}
input:focus { border-color: var(--gold); }

.btn-primary, .btn-secondary {
  padding: 9px 22px; border-radius: 5px; font-size: 15px; font-weight: 600;
  border: 1px solid var(--gold-dim);
}
.btn-primary { background: linear-gradient(#7a5f24, #4d3b13); color: #ffe9b0; }
.btn-primary:hover { background: linear-gradient(#96762e, #61491a); }
.btn-secondary { background: #26222f; color: #cfc7b8; }
.btn-secondary:hover { background: #37324a; }

/* ===== Vollbild-Screens ===== */
.fullscreen-panel {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  /* durchscheinend, damit das 3D-Diorama im Hintergrund sichtbar bleibt */
  background: radial-gradient(ellipse at 50% 40%, rgba(20, 14, 40, 0.10) 0%, rgba(10, 8, 18, 0.66) 78%);
}
#screen-loading { background: radial-gradient(ellipse at 50% 30%, #241d3a 0%, #0c0a14 70%); }
.login-box, .chars-box, .create-box, .loading-box {
  background: var(--panel-bg); border: 1px solid var(--panel-border);
  border-radius: 10px; padding: 34px 44px; text-align: center;
  box-shadow: 0 0 60px rgba(120, 90, 220, 0.25);
}
.game-title {
  font-size: 42px; letter-spacing: 2px; color: var(--gold);
  text-shadow: 0 0 24px rgba(216, 180, 90, 0.5);
}
.game-title span { color: #9a8adf; font-size: 26px; }
.subtitle { color: #8f86a8; margin: 6px 0 26px; }
.login-box input { display: block; width: 280px; margin: 0 auto 14px; font-size: 16px; text-align: center; }
.hint { margin-top: 14px; font-size: 12px; color: #77708c; }
.status { margin-top: 12px; color: #e07a6a; min-height: 18px; font-size: 13px; }

/* Charakterliste */
.chars-box { min-width: 460px; }
.chars-box h2 { color: var(--gold); margin-bottom: 18px; }
.chars-box h2 span { color: #8f86a8; font-size: 14px; font-weight: normal; }
#char-list { margin-bottom: 18px; max-height: 46vh; overflow-y: auto; }
.char-entry {
  display: flex; align-items: center; gap: 14px;
  background: #1c1828; border: 1px solid #332c48; border-radius: 6px;
  padding: 12px 16px; margin-bottom: 8px; cursor: pointer; text-align: left;
}
.char-entry:hover { border-color: var(--gold); background: #262038; }
.char-entry .ce-icon { font-size: 28px; }
.char-entry .ce-name { font-size: 17px; font-weight: 600; color: #fff; }
.char-entry .ce-sub { font-size: 12px; color: #9a90b5; }
.char-entry .ce-del { margin-left: auto; background: none; border: none; color: #6a5f7a; font-size: 15px; }
.char-entry .ce-del:hover { color: #e07a6a; }
.char-buttons { display: flex; gap: 10px; justify-content: center; }

/* Charaktererstellung */
.create-box { max-width: 860px; width: 92vw; max-height: 92vh; overflow-y: auto; }
.create-box h2 { color: var(--gold); margin-bottom: 16px; }
.create-box h3 { color: #b0a68a; font-size: 14px; margin-bottom: 10px; }
.create-columns { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; text-align: left; }
.class-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.class-card {
  display: flex; gap: 10px; align-items: center;
  background: #1c1828; border: 1px solid #332c48; border-radius: 6px;
  padding: 10px 12px; cursor: pointer;
}
.class-card:hover { border-color: #6a5f9a; }
.class-card.selected { border-color: var(--gold); background: #2a2338; box-shadow: 0 0 12px rgba(216,180,90,.25); }
.class-card .cc-icon { font-size: 26px; }
.class-card .cc-name { font-weight: 600; }
.class-card .cc-res { font-size: 11px; color: #9a90b5; }
.spec-card {
  background: #1c1828; border: 1px solid #332c48; border-radius: 6px;
  padding: 10px 12px; margin-bottom: 8px; cursor: pointer;
}
.spec-card:hover { border-color: #6a5f9a; }
.spec-card.selected { border-color: var(--gold); background: #2a2338; }
.spec-card .sc-head { font-weight: 600; display: flex; gap: 8px; align-items: center; }
.spec-card .sc-desc { font-size: 12px; color: #9a90b5; margin-top: 3px; }
.role-tag { font-size: 10px; padding: 2px 7px; border-radius: 8px; margin-left: auto; }
.role-tank { background: #24425a; color: #9cc8ee; }
.role-heal { background: #2a4a2a; color: #a2e8a2; }
.role-dd { background: #5a2424; color: #ee9c9c; }
.class-desc { margin-top: 12px; font-size: 13px; color: #b3aac6; line-height: 1.5; }
.create-footer { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.create-footer input { width: 220px; }
#create-preview {
  display: block; margin: 0 auto; border-radius: 8px;
  border: 1px solid var(--panel-border); background: #131020;
}

/* Talentbäume (3 Spalten, WoW-Classic-Stil) */
#panel-spec { width: min(92vw, 980px); max-width: 980px; }
.talent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.talent-tree {
  background: #16121f; border: 1px solid #2c2540; border-radius: 8px; padding: 8px;
  min-width: 0;
}
.talent-tree .tt-head {
  display: flex; align-items: center; gap: 6px; font-size: 13px;
  padding: 4px 2px 8px; border-bottom: 1px solid #2c2540; margin-bottom: 6px;
}
.talent-tree .tt-points {
  margin-left: auto; background: #2a2338; border-radius: 8px;
  padding: 1px 8px; font-size: 11px; color: #ffd870;
}
.talent-active { border-color: #6a5a2a; background: #241e14; }
#talent-points { font-size: 12px; color: #ffd870; font-weight: normal; margin-left: 8px; }
.talent-tier-label { font-size: 11px; color: #8a8098; margin: 10px 0 4px; text-transform: uppercase; letter-spacing: 1px; }
.talent-row {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 26px;
  align-items: center; gap: 7px;
  background: #1c1828; border: 1px solid #332c48; border-radius: 6px;
  padding: 7px 8px; margin-bottom: 6px;
}
.talent-row.talent-active { border-color: #6a5a2a; background: #221c12; }
.talent-row.locked { opacity: 0.45; }
.talent-row .tl-icon { font-size: 20px; }
.talent-row .tl-name { font-weight: 600; font-size: 13px; }
.talent-row .tl-desc { font-size: 11.5px; color: #9a90b5; }
.talent-row .tl-rank { margin-left: auto; font-size: 12px; color: #ffd870; white-space: nowrap; }
.talent-row .tl-add {
  background: linear-gradient(#7a5f24, #4d3b13); color: #ffe9b0;
  border: 1px solid var(--gold-dim); border-radius: 4px;
  width: 26px; height: 26px; font-size: 15px; line-height: 1;
}
.talent-row .tl-add:disabled { opacity: 0.3; cursor: default; }
.talent-reset {
  margin-top: 8px; width: 100%; padding: 7px; background: #26222f;
  color: #cfc7b8; border: 1px solid var(--panel-border); border-radius: 5px; font-size: 12px;
}
.talent-reset:hover { border-color: var(--gold); }
.spec-pick-hint { font-size: 12.5px; color: #d8cfa0; margin-bottom: 10px; line-height: 1.5; }

/* Loading */
.loading-bar { width: 340px; height: 14px; background: #201a30; border: 1px solid var(--panel-border); border-radius: 7px; margin-top: 18px; overflow: hidden; }
#loading-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #6a4fc0, #b090ff); transition: width .3s; }

/* ===== HUD ===== */
#zone-title {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  font-size: 20px; color: var(--gold); text-shadow: 0 2px 6px #000;
  letter-spacing: 1px; pointer-events: none; z-index: 10;
}

.unit-frame {
  position: fixed; z-index: 10; width: 250px;
  background: var(--panel-bg); border: 1px solid var(--panel-border);
  border-radius: 6px; padding: 7px 10px;
}
#frame-player { top: 14px; left: 14px; }
#frame-target { top: 14px; left: 290px; }
.uf-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; display: flex; justify-content: space-between; }
.uf-level { color: var(--gold); font-size: 12px; }
.uf-hp, .uf-res {
  position: relative; height: 16px; background: var(--hp-bg);
  border-radius: 3px; overflow: hidden; margin-bottom: 3px;
}
.uf-res { height: 11px; background: #14203a; }
.uf-hp > div, .uf-res > div { height: 100%; width: 100%; transition: width .15s; }
#pf-hp-fill, #tf-hp-fill, .gm-hp-fill { background: linear-gradient(#3ee44f, #1e9e2c); }
#pf-res-fill { background: linear-gradient(#4a90e8, #2458a8); }
.uf-hp span, .uf-res span {
  position: absolute; inset: 0; text-align: center; font-size: 10px;
  line-height: 16px; color: #fff; text-shadow: 0 1px 2px #000;
}
.uf-res span { line-height: 11px; }
.buff-row { display: flex; gap: 3px; margin-top: 4px; flex-wrap: wrap; }
.buff-icon { font-size: 15px; position: relative; cursor: default; }
.buff-icon small { position: absolute; bottom: -7px; right: -2px; font-size: 8px; color: #ccc; }

#frame-group { position: fixed; top: 130px; left: 14px; z-index: 9; }
.group-member {
  width: 170px; background: var(--panel-bg); border: 1px solid var(--panel-border);
  border-radius: 5px; padding: 5px 8px; margin-bottom: 5px; cursor: pointer;
}
.group-member:hover { border-color: var(--gold); }
.group-member .gm-name { font-size: 12px; display: flex; justify-content: space-between; }
.group-member .gm-hp { height: 9px; background: var(--hp-bg); border-radius: 2px; overflow: hidden; margin-top: 3px; }
.group-member.gm-dead .gm-name { color: #888; }

#castbar {
  position: fixed; bottom: 190px; left: 50%; transform: translateX(-50%);
  width: 320px; height: 22px; background: #16121f; border: 1px solid var(--panel-border);
  border-radius: 5px; overflow: hidden; z-index: 10;
}
#castbar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #c8a030, #ffd870); }
#castbar span { position: absolute; inset: 0; text-align: center; font-size: 12px; line-height: 22px; text-shadow: 0 1px 2px #000; }

#quest-tracker {
  position: fixed; right: 60px; top: 215px; width: 250px; z-index: 8;
  pointer-events: none; text-shadow: 0 1px 3px #000; text-align: right;
}
#quest-tracker .qt-quest { margin-bottom: 12px; }
#quest-tracker .qt-name { color: var(--gold); font-size: 13px; font-weight: 600; }
#quest-tracker .qt-obj { font-size: 12px; color: #cfc7b8; }
#quest-tracker .qt-obj.done { color: #7ae87a; }

#chat {
  position: fixed; left: 14px; bottom: 14px; width: 420px; z-index: 11;
}
#chat-messages {
  max-height: 170px; overflow-y: auto; font-size: 12.5px; line-height: 1.45;
  padding: 6px 8px; background: rgba(10, 8, 16, 0.55); border-radius: 6px;
  text-shadow: 0 1px 2px #000;
}
#chat-messages::-webkit-scrollbar { width: 5px; }
#chat-messages::-webkit-scrollbar-thumb { background: #443a5a; }
#chat-input { width: 100%; margin-top: 4px; font-size: 13px; }
.msg-say { color: #e8e0cc; }
.msg-group { color: #7ab8f0; }
.msg-system { color: #f0d060; }
.msg-boss { color: #ff7a5a; font-weight: 600; }
.msg-loot { color: #58c858; }
.msg-from { font-weight: 600; }

#bottom-bar {
  position: fixed; bottom: 10px; left: 50%; transform: translateX(-50%);
  z-index: 12; text-align: center;
}
#xp-bar {
  position: relative; height: 8px; background: #201a30; border: 1px solid #3a3050;
  border-radius: 4px; overflow: hidden; margin-bottom: 6px;
}
#xp-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #6a4fc0, #a884ec); }
#xp-bar span {
  position: absolute; inset: 0; font-size: 8px; line-height: 8px; color: #ddd;
}
.action-bar { display: flex; gap: 5px; justify-content: center; }
#action-bar-2 { margin-bottom: 5px; }
#action-bar-2:empty { display: none; }

.ab-slot.ab-empty { background: #100d18; border-style: dashed; opacity: 0.65; }
.ab-slot.ab-unknown { filter: grayscale(1) brightness(0.5); }
/* Zauberbuch */
#panel-book { left: 50%; top: 90px; transform: translateX(-50%); width: 430px; }
#book-content { padding: 10px 14px; }
.book-row {
  display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 8px; align-items: center;
  background: #1c1828; border: 1px solid #332c48; border-radius: 6px;
  padding: 7px 10px; margin-bottom: 5px; cursor: grab; font-size: 13px;
}
.book-row:hover { border-color: var(--gold); }
.book-icon { font-size: 22px; }
.book-desc { color: #9a90b5; }
.book-onbar { font-size: 11px; color: #7ae87a; white-space: nowrap; }

/* ESC-Spielmenü */
#game-menu {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(8, 6, 14, 0.6); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
}
.gmenu-box {
  background: var(--panel-bg); border: 1px solid var(--gold-dim);
  border-radius: 10px; padding: 26px 34px; text-align: center;
  box-shadow: 0 0 50px rgba(120, 90, 220, 0.3);
}
.gmenu-box h2 { color: var(--gold); margin-bottom: 18px; font-size: 20px; letter-spacing: 1px; }
.gmenu-btn {
  display: block; width: 240px; margin: 0 auto 9px; padding: 10px;
  background: #26222f; color: #e8e0cc; border: 1px solid var(--panel-border);
  border-radius: 6px; font-size: 15px;
}
.gmenu-btn:hover { border-color: var(--gold); background: #322c42; }

/* Optionen */
#panel-options { left: 50%; top: 80px; transform: translateX(-50%); width: 480px; }
#options-content { padding: 12px 16px; }
.opt-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid #241e32; font-size: 13.5px; color: #cfc7b8;
}
.opt-row input[type=range] { width: 180px; }
.opt-row .opt-val { width: 46px; text-align: right; color: #ffd870; font-size: 12px; }
.opt-hint { font-size: 11.5px; color: #8a8098; margin: 8px 0; line-height: 1.5; }
.opt-reset {
  margin-top: 10px; width: 100%; padding: 7px; background: #26222f;
  color: #cfc7b8; border: 1px solid var(--panel-border); border-radius: 5px; font-size: 12px;
}
.opt-reset:hover { border-color: var(--gold); }
/* Tastenbelegung */
.kb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.kb-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 0; font-size: 12.5px; color: #cfc7b8;
}
.kb-key {
  min-width: 58px; text-align: center; padding: 3px 8px; font-size: 12px;
  background: #1a1626; border: 1px solid var(--panel-border); border-radius: 4px;
  color: #ffd870; cursor: pointer;
}
.kb-key:hover { border-color: var(--gold); }
.kb-key.kb-listening { border-color: #50c8ff; color: #50c8ff; animation: kb-blink 0.8s infinite; }
@keyframes kb-blink { 50% { opacity: 0.4; } }
/* Nameplates ausblendbar */
#labels.hide-nameplates .nameplate { display: none !important; }
/* Minimap */
#minimap-box {
  position: fixed; top: 14px; right: 60px; z-index: 9; text-align: center;
}
#minimap-zone {
  font-size: 12px; color: var(--gold); text-shadow: 0 1px 3px #000; margin-bottom: 3px;
}
#minimap {
  border-radius: 50%; border: 2px solid var(--panel-border);
  background: #101018; box-shadow: 0 4px 16px rgba(0,0,0,.5);
}
.ab-slot {
  position: relative; width: 52px; height: 52px;
  background: #16121f; border: 1px solid var(--panel-border); border-radius: 6px;
  font-size: 26px; line-height: 50px; text-align: center; cursor: pointer;
}
.ab-slot:hover { border-color: var(--gold); }
.ab-slot .ab-key {
  position: absolute; top: 1px; right: 4px; font-size: 10px; color: #b8ac8a;
}
.ab-slot .ab-cd {
  position: absolute; inset: 0; background: rgba(0,0,0,.72); border-radius: 6px;
  font-size: 15px; line-height: 50px; color: #ffd870; display: none;
}
.ab-slot.on-gcd .ab-cd { display: block; }
.ab-slot.unusable { filter: grayscale(.8) brightness(.6); }
/* Menüleiste: vertikal am rechten Bildschirmrand */
#menu-bar {
  position: fixed; right: 10px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 5px; z-index: 12;
}
#menu-bar button {
  background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 6px;
  width: 40px; height: 38px; font-size: 17px;
}
#menu-bar button:hover { border-color: var(--gold); }

#interact-hint {
  position: fixed; bottom: 250px; left: 50%; transform: translateX(-50%);
  background: var(--panel-bg); border: 1px solid var(--gold-dim);
  padding: 7px 16px; border-radius: 6px; font-size: 14px; z-index: 10;
}
#interact-hint b { color: var(--gold); }

/* ===== Panels ===== */
.panel {
  position: fixed; z-index: 20;
  background: var(--panel-bg); border: 1px solid var(--panel-border);
  border-radius: 8px; min-width: 300px; max-width: 440px;
  max-height: 74vh; overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
#panel-bags { right: 14px; bottom: 100px; }
#panel-character { left: 14px; top: 160px; }
#panel-quests { left: 50%; top: 90px; transform: translateX(-50%); width: 430px; }
#panel-spec { left: 50%; top: 90px; transform: translateX(-50%); width: min(92vw, 980px); max-width: 980px; }
#panel-map { left: 50%; top: 90px; transform: translateX(-50%); }
#panel-npc { left: 50%; top: 120px; transform: translateX(-50%); width: 420px; }
#panel-help { left: 50%; top: 90px; transform: translateX(-50%); width: 460px; }
.panel-head {
  position: sticky; top: 0; display: flex; align-items: center; gap: 8px;
  background: #221c30; padding: 10px 14px; font-weight: 600; color: var(--gold);
  border-bottom: 1px solid var(--panel-border);
}
.panel-close { margin-left: auto; background: none; border: none; color: #8a8098; font-size: 14px; }
.panel-close:hover { color: #fff; }
#help-content { padding: 14px; font-size: 13px; line-height: 1.7; color: #cfc7b8; }

#bags-grid {
  display: grid; grid-template-columns: repeat(6, 46px); gap: 5px; padding: 12px;
}
.bag-slot {
  position: relative; width: 46px; height: 46px; background: #1a1524;
  border: 1px solid #332c48; border-radius: 5px; font-size: 22px;
  line-height: 44px; text-align: center; cursor: pointer;
}
.bag-slot:hover { border-color: var(--gold); }
.bag-slot .bs-count { position: absolute; bottom: 0; right: 3px; font-size: 10px; color: #fff; text-shadow: 0 1px 2px #000; }
.q-common { box-shadow: inset 0 0 0 1px #666; }
.q-uncommon { box-shadow: inset 0 0 0 1px #1eff00; }
.q-rare { box-shadow: inset 0 0 0 1px #0070dd; }
.q-epic { box-shadow: inset 0 0 0 1px #a335ee; }
#bags-gold { font-size: 12px; color: #ffd870; font-weight: normal; }

#char-equip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px; }
.equip-slot {
  background: #1a1524; border: 1px solid #332c48; border-radius: 5px;
  padding: 6px; text-align: center; cursor: pointer; min-height: 58px;
}
.equip-slot:hover { border-color: var(--gold); }
.equip-slot .es-label { font-size: 9px; color: #7a7090; }
.equip-slot .es-icon { font-size: 22px; }
#char-stats { padding: 0 16px 14px; font-size: 13px; line-height: 1.8; color: #cfc7b8; }
#char-stats b { color: var(--gold); }

#quest-list, #spec-list, #npc-content { padding: 12px 14px; }
.ql-quest { margin-bottom: 14px; border-bottom: 1px solid #2a2438; padding-bottom: 10px; }
.ql-name { color: var(--gold); font-weight: 600; }
.ql-text { font-size: 12.5px; color: #b3aac6; margin: 4px 0; line-height: 1.5; }
.ql-obj { font-size: 12.5px; }
.ql-obj.done { color: #7ae87a; }
.ql-rewards { font-size: 12px; color: #9a90b5; margin-top: 4px; }

.npc-quest-entry {
  display: block; width: 100%; text-align: left; background: #1c1828;
  border: 1px solid #332c48; border-radius: 6px; padding: 10px 12px;
  margin-bottom: 8px; color: #e8e0cc; font-size: 13px;
}
.npc-quest-entry:hover { border-color: var(--gold); }
.npc-quest-entry .nq-state { float: right; font-size: 11px; }
.nq-avail { color: #f0d060; }
.nq-done { color: #7ae87a; }
.nq-progress { color: #999; }
.vendor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.vendor-item {
  background: #1c1828; border: 1px solid #332c48; border-radius: 6px;
  text-align: center; padding: 8px 4px; cursor: pointer; font-size: 22px;
}
.vendor-item:hover { border-color: var(--gold); }
.vendor-item .vi-price { display: block; font-size: 10px; color: #ffd870; }
.npc-section-title { font-size: 12px; color: #8a8098; margin: 10px 0 6px; }

#map-canvas { display: block; margin: 12px auto; border: 1px solid #332c48; border-radius: 6px; }
#map-legend { padding: 0 14px 12px; font-size: 11px; color: #9a90b5; }

/* GM-Panel */
#panel-gm { left: 50%; top: 90px; transform: translateX(-50%); width: 420px; }
#gm-content { padding: 12px 14px; }
.gm-section { font-size: 11px; color: #8a8098; text-transform: uppercase; letter-spacing: 1px; margin: 10px 0 5px; }
.gm-row { display: flex; flex-wrap: wrap; gap: 5px; }
.gm-btn {
  background: #26222f; color: #e8e0cc; border: 1px solid var(--panel-border);
  border-radius: 5px; padding: 6px 10px; font-size: 12.5px;
}
.gm-btn:hover { border-color: var(--gold); }
.gm-row select {
  background: #1a1626; color: #eee; border: 1px solid var(--panel-border);
  border-radius: 5px; padding: 6px; font-size: 12.5px;
}

/* Handelsfenster */
#panel-trade { left: 50%; top: 110px; transform: translateX(-50%); width: 470px; }
#trade-content { padding: 12px 14px; }
.trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trade-col { background: #16121f; border: 1px solid #2c2540; border-radius: 8px; padding: 8px; }
.trade-title { font-size: 12px; color: #b0a68a; margin-bottom: 6px; }
.trade-title span { color: #7ae87a; font-size: 11px; }
.trade-items {
  display: grid; grid-template-columns: repeat(3, 46px); gap: 5px;
  min-height: 100px; margin-bottom: 8px;
}
.trade-gold { display: flex; gap: 6px; font-size: 14px; }
.trade-gold label { display: flex; align-items: center; gap: 2px; }
.trade-gold input { width: 44px; padding: 4px; font-size: 12px; }
.trade-gold-view { font-size: 14px; padding: 6px 2px; color: #ffd870; }
.trade-hint { font-size: 11px; color: #8a8098; margin: 10px 0; line-height: 1.5; }
#trade-my-status.ok, #trade-their-status.ok { color: #7ae87a; }
.bag-slot .bs-bound {
  position: absolute; top: 0; left: 2px; font-size: 9px; opacity: 0.85;
}
.bag-slot.in-trade { border-color: var(--gold); box-shadow: 0 0 6px rgba(216,180,90,.5); }

/* Welteditor */
#panel-editor { left: auto; right: 60px; top: 90px; width: 380px; }
#editor-content { padding: 12px 14px; }
.ed-palette {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px;
  max-height: 300px; overflow-y: auto; margin-bottom: 8px;
}
.ed-prop {
  background: #1a1524; border: 1px solid #332c48; border-radius: 6px;
  padding: 7px 2px; font-size: 20px; display: flex; flex-direction: column;
  align-items: center; gap: 2px; cursor: pointer; color: #cfc7b8;
}
.ed-prop small { font-size: 9px; line-height: 1.1; text-align: center; }
.ed-prop:hover { border-color: var(--gold); }
.ed-on { border-color: var(--gold) !important; background: #2a2338 !important; box-shadow: 0 0 8px rgba(216,180,90,.4); }
.ed-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #cfc7b8; }
.ed-label input[type=range] { width: 90px; }
.ed-label select, .ed-form select, .ed-form input {
  background: #1a1626; color: #eee; border: 1px solid var(--panel-border);
  border-radius: 4px; padding: 4px 6px; font-size: 12px;
}
.ed-form { display: flex; flex-direction: column; gap: 7px; margin-bottom: 8px; }
.ed-form label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #cfc7b8; }
.ed-form input[type=number] { width: 64px; }
.ed-form input[type=text] { flex: 1; }
.ed-sel {
  background: #16121f; border: 1px solid #3a5a7a; border-radius: 6px;
  padding: 8px; margin: 8px 0; font-size: 12.5px;
}
.ed-sel button { margin-top: 6px; }
#ed-objlist { max-height: 180px; overflow-y: auto; margin-top: 8px; }
.ed-row {
  display: flex; justify-content: space-between; align-items: center;
  background: #16121f; border: 1px solid #2c2540; border-radius: 5px;
  padding: 4px 8px; margin-bottom: 4px; font-size: 12px; cursor: pointer;
}
.ed-row:hover { border-color: var(--gold); }

/* Tooltip */
#tooltip {
  position: fixed; z-index: 60; pointer-events: none;
  background: rgba(8, 6, 14, 0.96); border: 1px solid var(--panel-border);
  border-radius: 6px; padding: 10px 12px; max-width: 280px; font-size: 12.5px;
  line-height: 1.5;
}
#tooltip .tt-name { font-weight: 700; font-size: 14px; }
#tooltip .tt-sub { color: #9a90b5; font-size: 11px; }
#tooltip .tt-desc { color: #d8cfa0; margin-top: 5px; }
#tooltip .tt-stat { color: #7ae87a; }
#tooltip .tt-actions { color: #8ab8f0; margin-top: 5px; font-size: 11px; }

/* Tod */
#death-overlay {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(30, 0, 0, 0.55); backdrop-filter: grayscale(80%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}
#death-overlay h2 { font-size: 34px; color: #ff9a8a; text-shadow: 0 2px 12px #000; }

#invite-popup {
  position: fixed; top: 200px; left: 50%; transform: translateX(-50%);
  background: var(--panel-bg); border: 1px solid var(--gold-dim); border-radius: 8px;
  padding: 18px 24px; z-index: 45; text-align: center;
}
#invite-popup p { margin-bottom: 12px; }
#invite-popup button { margin: 0 5px; }

#levelup-flash {
  position: fixed; top: 30%; left: 50%; transform: translateX(-50%);
  font-size: 40px; color: #ffd870; text-shadow: 0 0 30px #c89020, 0 2px 4px #000;
  z-index: 45; pointer-events: none; animation: levelup 3s forwards;
}
@keyframes levelup {
  0% { opacity: 0; transform: translateX(-50%) scale(.6); }
  15% { opacity: 1; transform: translateX(-50%) scale(1.15); }
  25% { transform: translateX(-50%) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

#toasts { position: fixed; top: 120px; left: 50%; transform: translateX(-50%); z-index: 46; pointer-events: none; text-align: center; }
.toast {
  background: rgba(60, 12, 12, 0.9); border: 1px solid #7a3030; color: #ffb0a0;
  padding: 7px 18px; border-radius: 6px; margin-bottom: 6px; font-size: 14px;
  animation: toast-fade 2.5s forwards;
}
@keyframes toast-fade { 0% { opacity: 0; } 10% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }

/* Nameplates & Kampftext */
.nameplate { text-align: center; pointer-events: none; text-shadow: 0 1px 3px #000; }
.nameplate .np-name { font-size: 12px; font-weight: 600; }
.np-hostile .np-name { color: #ff8a7a; }
.np-friendly .np-name { color: #8ae88a; }
.np-player .np-name { color: #8ab8f0; }
.np-npc .np-name { color: #ffd870; }
.nameplate .np-hp {
  width: 84px; height: 6px; background: #401515; border-radius: 3px;
  margin: 2px auto 0; overflow: hidden;
}
.nameplate .np-hp div { height: 100%; background: #e03030; }
.np-friendly .np-hp div, .np-player .np-hp div { background: #2ecc40; }
.nameplate .np-cast { font-size: 10px; color: #ffd870; }
.np-quest-marker { font-size: 17px; color: #ffd870; }

/* Schwebender Kampftext im WoW-Classic-Stil */
.fct {
  --fct-drift: 0px;
  font-size: 21px; font-weight: 800; pointer-events: none;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  animation: fct-rise 1.4s ease-out forwards;
}
.fct-auto { color: #ffffff; }              /* Auto-Angriff: weiß */
.fct-dmg { color: #ffd438; }               /* Fähigkeit: gelb */
.fct-dmg-in { color: #ff5040; }            /* erlittener Schaden: rot */
.fct-heal { color: #40e858; }              /* Heilung: grün */
.fct-shield { color: #9ecbff; font-size: 17px; } /* Absorbiert: bläulich */
.fct-xp { color: #b090ff; font-size: 15px; font-weight: 700; }
.fct-crit {
  font-size: 34px;
  animation: fct-crit-pop 1.6s ease-out forwards;
}
@keyframes fct-rise {
  0% { opacity: 1; transform: translate(0, 0); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--fct-drift), -64px); }
}
@keyframes fct-crit-pop {
  0% { opacity: 1; transform: translate(0, 0) scale(0.4); }
  12% { transform: translate(0, -4px) scale(1.35); }
  24% { transform: translate(0, -8px) scale(1.0); }
  78% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--fct-drift), -70px) scale(1.0); }
}

/* ---------- Damage-/Healmeter (Details-Stil, unten rechts) ---------- */
#meter {
  position: absolute; right: 62px; bottom: 10px; width: 232px;
  background: rgba(14, 11, 22, 0.82); border: 1px solid #3a3352;
  border-radius: 6px; font-size: 12px; user-select: none; overflow: hidden;
}
#meter-head {
  display: flex; align-items: center; gap: 6px; padding: 4px 7px;
  background: rgba(40, 33, 62, 0.9); cursor: default;
}
.meter-tab { color: #8a8098; cursor: pointer; }
.meter-tab.active { color: #ffd870; font-weight: bold; }
.meter-btn { cursor: pointer; color: #b8b0c8; }
#meter-mode { margin-left: auto; font-size: 11px; border: 1px solid #4a4268; border-radius: 4px; padding: 0 5px; }
#meter-rows { max-height: 148px; overflow-y: auto; padding: 3px 4px 4px; }
.meter-row { position: relative; height: 17px; margin-top: 2px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,0.04); }
.meter-bar { position: absolute; inset: 0 auto 0 0; opacity: 0.5; border-radius: 3px; }
.meter-name, .meter-val { position: relative; line-height: 17px; padding: 0 5px; text-shadow: 0 1px 2px #000; }
.meter-name { float: left; max-width: 130px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.meter-val { float: right; color: #ffe9b0; }
.meter-empty { color: #8a8098; padding: 6px; text-align: center; }
/* Konkrete Zahlen in Zauberbuch und Tooltip */
.book-numbers { display: block; color: #ffd870; margin-top: 1px; }
.tt-numbers { color: #ffd870; margin-top: 3px; }

/* ---------- Forgefall-Intro & epischer Titelscreen ---------- */
@font-face {
  font-family: 'Cinzel';
  src: url('../assets/fonts/Cinzel.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
#intro {
  position: fixed; inset: 0; z-index: 400; background: #050308;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 1; transition: opacity 0.9s ease;
}
#intro.intro-out { opacity: 0; pointer-events: none; }
.intro-inner { text-align: center; animation: introIn 1.6s ease-out; }
#intro-logo { max-width: min(60vw, 420px); max-height: 55vh; filter: drop-shadow(0 0 40px rgba(255, 90, 20, 0.25)); }
.intro-f {
  font-family: 'Cinzel', Georgia, serif; font-weight: 900; font-size: 120px; line-height: 1;
  background: linear-gradient(180deg, #e8e2d4 0%, #9a8f7c 45%, #ff7a20 78%, #6e6353 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro-name {
  font-family: 'Cinzel', Georgia, serif; font-weight: 900; font-size: 44px; letter-spacing: 0.12em;
  background: linear-gradient(180deg, #f4efe3 0%, #b5aa95 55%, #7d7260 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro-studios { color: #c96a28; letter-spacing: 0.55em; font-size: 15px; margin-top: 6px; }
.intro-praesentiert { color: #8a8098; margin-top: 26px; font-size: 14px; letter-spacing: 0.3em; animation: introFade 2.2s ease-in; }
@keyframes introIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes introFade { 0% { opacity: 0; } 55% { opacity: 0; } 100% { opacity: 1; } }

.game-title {
  font-family: 'Cinzel', Georgia, serif; font-weight: 900;
  font-size: clamp(38px, 6vw, 62px); line-height: 1.05; letter-spacing: 0.05em;
  background: linear-gradient(180deg, #faf6ec 0%, #d3c9b5 34%, #8d8271 52%, #f3e6c8 68%, #6e6353 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.85));
  animation: titleIn 1.1s ease-out;
}
.game-title span {
  font-size: 0.45em; vertical-align: middle;
  background: linear-gradient(180deg, #ffc890 0%, #ff7a20 60%, #b33f08 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title-ember-line {
  height: 2px; margin: 10px auto 4px; width: 78%;
  background: linear-gradient(90deg, transparent, #ff7a20 20%, #ffd9a0 50%, #ff7a20 80%, transparent);
  box-shadow: 0 0 12px rgba(255, 122, 32, 0.75), 0 0 30px rgba(255, 122, 32, 0.35);
  animation: emberPulse 2.6s ease-in-out infinite;
}
@keyframes titleIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes emberPulse { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
.studio-credit {
  margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 7px;
  color: #6f6782; font-size: 12px; letter-spacing: 0.14em;
}
.studio-credit img { height: 22px; width: auto; opacity: 0.9; }

/* Spiel-Logo auf dem Titelscreen (weicher Rand statt hartem schwarzen Quadrat) */
#game-logo {
  display: block; margin: -8px auto 0; width: min(82%, 420px);
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at center, #000 52%, transparent 76%);
  mask-image: radial-gradient(ellipse 72% 72% at center, #000 52%, transparent 76%);
  filter: drop-shadow(0 0 34px rgba(255, 90, 20, 0.22));
  animation: titleIn 1.1s ease-out;
}

/* ============================================================
   WoW-Classic-Redesign: Gold-Rahmen, Kapitälchen, satte Balken
   (Referenzen: WoW Classic + World of Claudecraft Designsprache)
   ============================================================ */

/* --- Überschriften in heraldischer Schrift --- */
.panel-head, .chars-box h2, .create-box h2, #zone-title, #minimap-zone,
.uf-name, #quest-tracker .qt-name, .meter-tab, #form-title,
.gmenu-box h2, .npc-name, .subtitle {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}
.panel-head { text-transform: uppercase; font-size: 14px; }
.subtitle { color: var(--muted); letter-spacing: 0.35em; text-transform: uppercase; font-size: 12px; }

/* --- Goldene Knöpfe (wie der PLAY-Button) --- */
.btn-primary {
  background: linear-gradient(180deg, #ffe285 0%, #f2c14e 45%, #c8991c 100%);
  color: #2a1f05; border: 1px solid #8a6d1c; font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 8px rgba(0, 0, 0, 0.6);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #fff0a8 0%, #ffd166 45%, #d8a825 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 14px rgba(255, 209, 0, 0.45);
}
.btn-secondary { background: #14121c; color: #e6d9ac; border: 1px solid var(--gold-deep); }
.btn-secondary:hover { border-color: var(--gold-dim); color: #ffe9b0; box-shadow: 0 0 10px rgba(255, 209, 0, 0.25); }

/* --- Panels: doppelter Goldrand, eckiger, edler --- */
.panel, .login-box, .chars-box, .create-box, .loading-box,
.unit-frame, .group-member, #interact-hint, #meter {
  border: 1px solid var(--panel-border);
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.85), 0 6px 30px rgba(0, 0, 0, 0.65);
}
.login-box { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.85), 0 0 70px rgba(0, 0, 0, 0.8); }
.panel-head {
  background: linear-gradient(180deg, #1c1826 0%, #121019 100%);
  border-bottom: 1px solid var(--gold-deep);
  color: var(--gold-dim);
}
.fullscreen-panel {
  background: radial-gradient(ellipse at 50% 40%, rgba(8, 6, 14, 0.25) 0%, rgba(5, 4, 9, 0.82) 80%);
}

/* --- Unit-Frames: Level-Münze + gestreifte Balken --- */
.unit-frame { padding: 8px 10px 8px 14px; }
.uf-name { font-size: 14px; }
.uf-level {
  font-family: var(--font-ui); font-weight: 700; font-size: 12px;
  background: radial-gradient(circle at 35% 30%, #ffe9a0, #d8a825 60%, #8a6d1c);
  color: #241a04; border: 1px solid #8a6d1c; border-radius: 50%;
  width: 22px; height: 22px; line-height: 20px; text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.uf-hp, .uf-res, .group-member .gm-hp { border: 1px solid rgba(0, 0, 0, 0.85); border-radius: 2px; }
#pf-hp-fill, #tf-hp-fill, .gm-hp-fill {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0 2px, transparent 2px 8px),
    linear-gradient(180deg, #3ad14e 0%, #1eb838 45%, #14802a 100%);
}
#pf-res-fill {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0 2px, transparent 2px 8px),
    linear-gradient(180deg, #4a9df0 0%, #2b7bd4 50%, #1c4f8e 100%);
}

/* --- Actionbars: goldgefasste Leiste --- */
.action-bar {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border); border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.85), 0 4px 20px rgba(0, 0, 0, 0.6);
  padding: 5px;
}
.ab-slot {
  background: linear-gradient(180deg, #141019 0%, #0c0a11 100%);
  border: 1px solid var(--border-dark); border-radius: 4px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
}
.ab-slot:hover { border-color: var(--gold-dim); box-shadow: inset 0 2px 6px rgba(0,0,0,.8), 0 0 10px rgba(255, 209, 0, 0.35); }
.ab-slot .ab-key { color: var(--gold-dim); font-weight: 700; }
.ab-slot.ab-empty { background: #0a080f; border-style: dashed; border-color: #33291a; }
#xp-bar { border: 1px solid var(--gold-deep); background: #14101e; }

/* --- Minimap: Goldring + Zonenname --- */
#minimap {
  border: 2px solid var(--gold-deep);
  box-shadow: 0 0 0 1px #14101a, 0 0 0 3px rgba(200, 168, 56, 0.35), 0 6px 20px rgba(0, 0, 0, 0.6);
}
#minimap-zone { font-size: 13px; color: var(--gold-dim); }
#zone-title { font-size: 24px; color: var(--gold-dim); text-shadow: 0 2px 8px #000, 0 0 26px rgba(0,0,0,.9); }

/* --- Menüleiste rechts --- */
#menu-bar button { border-radius: 4px; }
#menu-bar button:hover { box-shadow: 0 0 10px rgba(255, 209, 0, 0.35); }

/* --- Chat --- */
#chat-messages {
  background: linear-gradient(170deg, rgba(15, 13, 22, 0.72), rgba(8, 8, 13, 0.72));
  border: 1px solid rgba(111, 90, 42, 0.55); border-radius: 5px;
}
.msg-system { color: #ffd100; }

/* --- Tooltip: WoW-dunkelblau mit Goldrand --- */
#tooltip {
  background: linear-gradient(170deg, rgba(9, 12, 26, 0.97), rgba(5, 6, 14, 0.97));
  border: 1px solid var(--gold-deep); border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.9), 0 6px 24px rgba(0, 0, 0, 0.7);
}
#tooltip .tt-name { font-family: var(--font-display); color: var(--gold); }

/* --- Castbar & Meter --- */
#castbar { border-color: var(--gold-deep); }
#meter-head { background: linear-gradient(180deg, #1c1826 0%, #121019 100%); border-bottom: 1px solid var(--gold-deep); }
.meter-tab.active { color: var(--gold); }

/* --- Nameplates: kräftige Umrandung wie im Original --- */
.nameplate .np-name {
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 2px 4px #000;
}
.np-hostile .np-name { color: #ff6b5e; }
.np-npc .np-name { color: #ffd100; }

/* --- Taschen/Buch/Listen: goldbraune Fassungen --- */
.bag-slot, .book-icon { border-color: var(--border-dark) !important; }
.bag-slot:hover { border-color: var(--gold-dim) !important; }
.book-row { border: 1px solid transparent; border-radius: 4px; }
.book-row:hover { border-color: var(--gold-deep); }

/* --- Login-Feinschliff --- */
.login-box input {
  background: #0a0a0f; border: 1px solid var(--border-dark);
  color: var(--text); text-align: center; letter-spacing: 0.03em;
}
.login-box input:focus { border-color: var(--gold-dim); box-shadow: 0 0 8px rgba(255, 209, 0, 0.25); }
.studio-credit { color: var(--muted); }

/* Schmale Fenster: Meter über die Actionbar heben statt überlappen */
@media (max-width: 1180px) {
  #meter { bottom: 150px; }
}

/* ---------- Discord-Login-Knopf ---------- */
.btn-discord {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 280px; padding: 10px 12px; margin: 4px auto 0;
  background: linear-gradient(180deg, #5865f2, #4450c9);
  color: #fff; border: 1px solid #7683f5; border-radius: 6px;
  font-family: var(--font-ui); font-size: 15px; font-weight: 600;
  letter-spacing: 0.02em; cursor: pointer;
  box-shadow: 0 2px 8px rgba(88, 101, 242, 0.35);
}
.btn-discord:hover { filter: brightness(1.12); box-shadow: 0 2px 12px rgba(88, 101, 242, 0.55); }
.btn-discord svg { width: 20px; height: 16px; flex: 0 0 auto; }
.btn-discord.hidden { display: none; }

/* Rechtslinks unter der Login-Box */
.rechtslinks { margin-top: 10px; font-size: 12.5px; color: #6a6458; }
.rechtslinks a { color: #8f8878; text-decoration: none; }
.rechtslinks a:hover { color: var(--gold-dim); }

/* Passwort-vergessen-Link unterm Login */
#link-pwreset { display: block; margin-top: 6px; color: #8f8878; text-decoration: none; }
#link-pwreset:hover { color: var(--gold-dim); }

/* ---------- Einsteiger-Tipps ---------- */
#tipp-box {
  position: fixed; top: 84px; left: 50%; transform: translateX(-50%);
  width: min(400px, 90vw); z-index: 240; text-align: center;
  background: var(--panel-bg); border: 1px solid var(--gold-dim);
  border-radius: 10px; padding: 16px 20px 14px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7), 0 0 14px rgba(255, 209, 0, 0.18);
  animation: tippAuf 0.45s ease-out;
}
@keyframes tippAuf { from { opacity: 0; transform: translateX(-50%) translateY(-12px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
#tipp-box .tipp-titel {
  font-family: var(--font-display); color: var(--gold); font-size: 16px;
  letter-spacing: 0.04em; margin-bottom: 6px;
}
#tipp-box .tipp-text { color: var(--text); font-size: 13.5px; line-height: 1.5; margin-bottom: 12px; }
#tipp-box .tipp-text b { color: #ffe9b0; }
#tipp-box .tipp-ok { padding: 6px 22px; font-size: 13px; }

/* ---------- Taschenplätze (4 Beutel-Slots über dem Inventar) ---------- */
#bag-slots {
  display: flex; gap: 6px; padding: 8px 10px 2px;
  border-bottom: 1px solid #221d30; margin-bottom: 6px;
}
#bag-slots .bag-equip { width: 42px; height: 42px; font-size: 22px; }
#bag-slots .be-leer { border-style: dashed; opacity: 0.55; }
#bag-slots .be-plus { filter: grayscale(1); opacity: 0.5; }
#bags-platz { color: var(--gold-dim); font-size: 12px; margin-left: 8px; }
