/* ==========================================================================
   HELDENARENA – Dark Fantasy Theme
   Die 3D-Welt ist eine Mondnacht. Die UI bleibt in Gold/Dunkelholz gehalten,
   klar lesbar vor dunkler Kulisse.
   Palette:
     --wood     #241a10  (dunkles Holz/Leder für Panels)
     --gold     #e8b23d  (Gold-Akzent, Rahmen, Titel)
     --parchment#f7ecd2  (helle Schrift auf dunklen Panels)
     --hp       #4caf50  (Lebensbalken)
     --hp-low   #ef4a5f  (Lebensbalken bei wenig HP)
     --arcane   #5dd3ff  (magische Akzente, Cooldowns)
   ========================================================================== */

:root {
  --wood: #241a10;
  --wood2: #2f2214;
  --gold: #e8b23d;
  --parchment: #f7ecd2;
  --hp: #4caf50;
  --hp-low: #ef4a5f;
  --arcane: #5dd3ff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  width: 100%; height: 100%;
  background: #0c0b16;
  color: var(--parchment);
  font-family: 'Alegreya Sans', system-ui, sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.hidden { display: none !important; }

/* ---------- Comic-Panel Grundbaustein ---------- */
.comic-panel {
  background: rgba(36, 26, 16, 0.82);
  border: 3px solid var(--gold);
  border-radius: 6px;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.35);
  position: relative;
}

.comic-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  letter-spacing: 3px;
  color: var(--parchment);
  text-shadow: 3px 3px 0 var(--gold), 6px 6px 0 rgba(0,0,0,0.4);
  margin: 0 0 6px 0;
  line-height: 0.95;
  text-align: center;
}
.comic-title span { color: var(--gold); }
.comic-title.escaped { color: var(--hp-low); text-shadow: 3px 3px 0 var(--wood), 6px 6px 0 rgba(0,0,0,0.4); }

/* ---------- Login / Klassenwahl ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at 70% 18%, rgba(170,190,255,0.22), transparent 28%),
    radial-gradient(circle at 50% 110%, rgba(232,110,40,0.22), transparent 55%),
    linear-gradient(180deg, #0a0d24, #241f4a 60%, #3a2440);
}

.login-panel { width: min(560px, 100%); padding: 28px 26px 24px; text-align: center; }
.subtitle { margin: 0 0 18px; font-size: 0.95rem; opacity: 0.9; }

#nameInput {
  width: 100%; padding: 12px 14px;
  font-family: 'Alegreya Sans', sans-serif; font-size: 1.05rem; font-weight: 600;
  border-radius: 4px; border: 3px solid var(--gold);
  background: var(--wood); color: var(--parchment);
  margin-bottom: 16px;
}
#nameInput::placeholder { color: #cbb98e; }
#nameInput:focus { outline: none; border-color: var(--arcane); }

.class-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }

.class-card {
  font: inherit; color: inherit; width: 100%;
  background: var(--wood2);
  border: 3px solid transparent;
  border-bottom: 4px solid var(--class-color, var(--gold));
  border-radius: 4px;
  padding: 10px 6px 8px;
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.12s ease, background 0.12s ease;
  text-align: center;
}
.class-card:hover { transform: translateY(-2px); }
.class-card:focus-visible { outline: 3px solid var(--arcane); outline-offset: 2px; }
.class-card.selected {
  border-color: var(--gold);
  background: #3a2a17;
  box-shadow: 0 0 0 2px rgba(232,178,61,0.3), 3px 3px 0 rgba(0,0,0,0.4);
}
.class-icon { font-size: 1.9rem; display: block; }
.class-name { font-weight: 800; font-size: 0.82rem; margin-top: 2px; display: block; }
.class-desc { font-size: 0.66rem; opacity: 0.8; display: block; margin-top: 2px; line-height: 1.15; }

.comic-btn {
  font-family: 'Cinzel', Georgia, serif; font-size: 1.4rem; letter-spacing: 1px;
  width: 100%; padding: 12px;
  background: var(--gold); color: #241407;
  border: 3px solid var(--wood); border-radius: 4px;
  cursor: pointer; box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.comic-btn:hover:not(:disabled) { transform: translate(-1px,-1px); box-shadow: 6px 6px 0 rgba(0,0,0,0.4); }
.comic-btn:active:not(:disabled) { transform: translate(2px,2px); box-shadow: 1px 1px 0 rgba(0,0,0,0.4); }
.comic-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.online-line { margin: 12px 0 0; font-size: 0.82rem; opacity: 0.75; }
/* Spielerzahlen im Hauptmenü: 15 % größer, farbig nach Füllstand */
.online-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px;
  margin: 12px 0 0; font-size: 0.94rem; font-weight: 700; color: var(--parchment);
}
.count-item { display: inline-flex; align-items: baseline; gap: 6px; }
.count-item.hidden { display: none; }
.count-badge { font-weight: 800; font-variant-numeric: tabular-nums; padding: 0 6px; border-radius: 4px; border: 1px solid currentColor; }
.count-badge.lvl-empty { color: #a8a39a; }
.count-badge.lvl-low   { color: #6fe07a; }
.count-badge.lvl-mid   { color: #f2c94c; }
.count-badge.lvl-high  { color: #ff6b6b; }
.count-badge.lvl-wait  { color: var(--arcane); }
.players-badge .count-badge { border: none; padding: 0; }
.scoreboard-stats { font-size: 0.75rem; font-weight: 700; color: var(--parchment); opacity: 0.85; margin: -2px 0 6px; }
.scoreboard-stats:empty { display: none; }
.join-error { color: var(--hp-low); font-weight: 700; margin-top: 10px; }

/* ---------- 3D-Szene ---------- */
#gameUI { position: fixed; inset: 0; }
#sceneContainer { position: absolute; inset: 0; }
#sceneContainer canvas { display: block; touch-action: none; }

#overlayLayer { position: fixed; inset: 0; pointer-events: none; z-index: 15; overflow: hidden; }
/* Dezente Vignette über dem Spielbild (reines CSS, kostet keine GPU-Zeit im 3D-Teil) */
#vignette { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at 50% 55%, rgba(0,0,0,0) 55%, rgba(4,4,10,0.28) 80%, rgba(2,2,6,0.55) 100%); }
/* v2.73 Farbstimmung (Qualität Mittel/Hoch): kühle Schatten, warme Mitte, kräftigere Vignette – reines CSS über dem Bild */
.color-grade { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .6s ease; }
.color-grade.on { opacity: 1;
  background:
    radial-gradient(ellipse at 50% 58%, rgba(255, 170, 90, .10) 0%, rgba(255, 170, 90, 0) 45%),
    radial-gradient(ellipse at 50% 55%, rgba(0, 0, 0, 0) 48%, rgba(10, 14, 34, .30) 78%, rgba(4, 4, 14, .55) 100%),
    linear-gradient(180deg, rgba(40, 60, 120, .10) 0%, rgba(0, 0, 0, 0) 40%, rgba(60, 20, 10, .08) 100%);
  mix-blend-mode: soft-light; }
.color-grade.on[data-map="lava"] { background:
    radial-gradient(ellipse at 50% 60%, rgba(255, 110, 40, .16) 0%, rgba(255, 110, 40, 0) 50%),
    radial-gradient(ellipse at 50% 55%, rgba(0, 0, 0, 0) 48%, rgba(40, 6, 2, .38) 80%, rgba(14, 2, 0, .6) 100%); }
.color-grade.on[data-map="krypta"] { background:
    radial-gradient(ellipse at 50% 55%, rgba(120, 110, 255, .08) 0%, rgba(0, 0, 0, 0) 45%),
    radial-gradient(ellipse at 50% 55%, rgba(0, 0, 0, 0) 45%, rgba(12, 6, 30, .4) 78%, rgba(4, 2, 12, .62) 100%); }

.player-tag {
  position: absolute; left: 0; top: 0;
  will-change: transform;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}
.player-tag .tag-name {
  font-family: 'Alegreya Sans', sans-serif; font-weight: 800; font-size: 0.72rem;
  color: var(--parchment); text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}
.player-tag .tag-bar {
  width: 52px; height: 6px; margin: 2px auto 0;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(0,0,0,0.6); border-radius: 2px;
  overflow: hidden;
}
.player-tag .tag-fill { height: 100%; background: var(--hp); }
.player-tag .tag-fill.low { background: var(--hp-low); }
.player-tag.self .tag-name { color: var(--gold); }
.player-tag.dead { opacity: 0.25; }

.float-num {
  position: absolute;
  font-family: 'Alegreya Sans', sans-serif; font-weight: 800; font-size: 1rem;
  pointer-events: none;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  animation: floatUp 0.8s ease-out forwards;
}
.float-num.dmg { color: #ff5566; }
.float-num.crit { color: #ffc36b; font-size: 1.45rem; }
.float-num.heal { color: #7cffb2; }
.float-num.evade { color: #d9e6f2; font-size: 0.85rem; }
@keyframes floatUp {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -46px); }
}

/* ---------- HUD ---------- */
.hud-left {
  position: fixed; top: 14px; left: 14px; z-index: 20;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  max-width: min(300px, calc(100vw - 28px)); pointer-events: none;
}
.crown-status {
  padding: 8px 14px; font-weight: 800; font-size: 0.85rem;
  color: var(--gold); box-sizing: border-box; width: 100%;
}

.players-badge {
  position: fixed; top: 14px; right: 14px;
  padding: 8px 14px; font-weight: 800; font-size: 0.9rem;
  z-index: 20;
}

.leaderboard {
  position: fixed; top: 58px; right: 14px;
  width: 190px; padding: 10px 12px;
  z-index: 20; font-size: 0.75rem;
}
.hud-title { font-family: 'Cinzel', Georgia, serif; letter-spacing: 1px; color: var(--gold); font-size: 1rem; margin-bottom: 4px; }
.leaderboard ol { margin: 0; padding-left: 18px; }
.leaderboard li { margin-bottom: 2px; }

.kill-feed {
  position: fixed; top: 58px; left: 50%; transform: translateX(-50%);
  z-index: 20; display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.kill-line {
  background: rgba(36,26,16,0.82); border: 2px solid var(--gold); border-radius: 4px;
  padding: 4px 10px; font-size: 0.72rem; font-weight: 700;
  animation: fadeOut 4s forwards;
}
@keyframes fadeOut { 0%,75% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Selbst-HUD (HP + Fähigkeiten) ---------- */
.self-hud {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  padding: 10px 16px; z-index: 20;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.self-hp-row { display: flex; align-items: center; gap: 8px; width: 260px; }
.self-class-icon { font-size: 1.3rem; }
.self-hp-text { font-weight: 800; font-size: 0.8rem; width: 30px; text-align: right; }
.bar { flex: 1; height: 14px; background: #0d0a14; border: 2px solid var(--gold); border-radius: 4px; overflow: hidden; }
.fill { height: 100%; width: 100%; transition: width 0.2s ease; }
.hp-fill { background: var(--hp); }
.hp-fill.low { background: var(--hp-low); }
.self-mana-row { display: flex; align-items: center; gap: 8px; width: 260px; color: #8acbff; }
.self-mana-icon { width: 23px; text-align: center; text-shadow: 0 0 10px #57aaff; }
.mana-bar { border-color: #4277b6; background: #071123; height: 11px; }
.mana-fill { background: linear-gradient(90deg, #13429b, #47b5ff); box-shadow: 0 0 10px #288bff; }
.self-mana-text { font-weight: 800; font-size: .75rem; min-width: 27px; text-align: right; }
.mana-potion-count { font-size: .7rem; white-space: nowrap; }
.ability-btn.mana-locked { filter: grayscale(.8) brightness(.55); }
.ability-btn.slot-s7 { border-color: #478cff; }

.ability-row { display: flex; gap: 10px; }
.ability-btn {
  position: relative;
  width: 54px; height: 54px;
  border-radius: 10px;
  border: 3px solid var(--gold);
  background: var(--wood2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ability-btn .ability-icon { font-size: 1.5rem; }
.ability-btn.special { border-color: var(--arcane); }
.ability-btn.heavy { border-color: #ff9a3d; }
.ability-btn.dodge { border-color: #d9e6f2; }
.ability-btn .key-label {
  position: absolute; bottom: 1px; right: 3px;
  font-size: 0.55rem; font-weight: 800; color: var(--parchment); opacity: 0.85;
  pointer-events: none;
}
.ability-btn:active { transform: scale(0.94); }
.cd-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0%;
  background: rgba(0,0,0,0.72);
  pointer-events: none;
}

/* ---------- Mobile-Steuerung ---------- */
.joystick {
  position: fixed; left: 24px; bottom: 110px;
  width: 110px; height: 110px; border-radius: 50%;
  border: 3px solid rgba(247,236,210,0.55);
  background: rgba(36,26,16,0.5);
  z-index: 25; touch-action: none; display: none;
}
.joystick-knob {
  position: absolute; top: 35px; left: 35px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--wood);
}

.help-hint {
  position: fixed; bottom: 168px; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; opacity: 0.75; z-index: 20;
  background: rgba(36,26,16,0.6); padding: 4px 10px; border-radius: 3px;
}
.help-hint { text-align: center; max-width: min(92vw, 720px); line-height: 1.7; }
.help-hint kbd { background: var(--wood2); border: 1px solid var(--gold); border-radius: 3px; padding: 0 5px; }

@media (hover: none) and (pointer: coarse) {
  .joystick { display: block; }
  .help-hint { display: none; }
  .self-hud { bottom: 130px; }
}

#respawnScreen { background: rgba(20, 8, 8, 0.35); }
#respawnScreen .comic-panel { padding: 28px 32px; text-align: center; }
.small { font-size: 0.85rem; opacity: 0.85; }

@media (max-width: 560px) {
  .class-grid { grid-template-columns: repeat(2, 1fr); }
  .leaderboard { width: 150px; font-size: 0.68rem; }
  .self-hp-row { width: 200px; }
  .self-mana-row { width: 200px; }
  .ability-row { gap: 4px; }
  #actionBar .ability-btn { width: 38px; height: 42px; }
}

/* ---------- Kampf-Feedback ---------- */
.hurt-flash {
  position: fixed; inset: 0; pointer-events: none; z-index: 16; opacity: 0;
  box-shadow: inset 0 0 140px 30px rgba(220, 20, 40, 0.75);
}
.hurt-flash.on { animation: hurt 0.45s ease-out; }
@keyframes hurt { 0% { opacity: 1; } 100% { opacity: 0; } }
/* v2.69 Blutspritzer am Bildrand bei schweren Treffern */
.blood-screen { position: fixed; inset: 0; pointer-events: none; z-index: 16; overflow: hidden; }
.blood-drop {
  position: absolute; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); opacity: 0;
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 120, 120, 0.28) 0 7%, transparent 9%),
    radial-gradient(closest-side, rgba(120, 6, 10, 0.92) 0 46%, rgba(86, 3, 7, 0.78) 62%, rgba(60, 0, 4, 0) 100%);
  filter: drop-shadow(0 3px 2px rgba(20, 0, 0, 0.5));
  animation: blooddrop 2.6s ease-out forwards;
}
@keyframes blooddrop {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(0.4); }
  6% { opacity: 0.95; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1.05); }
  55% { opacity: 0.8; transform: translate(-50%, calc(-50% + 10px)) rotate(var(--rot, 0deg)) scale(1); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% + 34px)) rotate(var(--rot, 0deg)) scale(1); }
}

.crosshair {
  position: fixed; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; border: 2px solid rgba(247, 236, 210, 0.85);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  pointer-events: none; z-index: 18;
}

.lock-hint, .net-status {
  position: fixed; left: 50%; transform: translateX(-50%);
  background: rgba(36, 26, 16, 0.85); border: 2px solid var(--gold); border-radius: 4px;
  padding: 6px 14px; font-size: 0.8rem; font-weight: 700; z-index: 30; pointer-events: none;
}
.lock-hint { top: 150px; }
.net-status { top: 50%; border-color: var(--hp-low); }

@media (prefers-reduced-motion: reduce) {
  .hurt-flash.on, .float-num, .kill-line { animation-duration: 0.01s; }
  .blood-drop { display: none; }
  .streak-hud.hot { animation: none; }
}

/* ---------- v2: Krone, Ereignisse, Aktionsleiste, NPCs, Punkte ---------- */
.crown-rules { font-size: 0.66rem; font-weight: 600; color: var(--parchment); opacity: 0.75; margin-top: 2px; max-width: 250px; }

.event-panel {
  padding: 6px 12px; font-size: 0.78rem; font-weight: 800;
}
.event-panel.active { border-color: var(--hp-low); color: #ffb0a0; animation: pulseBorder 1.2s ease-in-out infinite; }
@keyframes pulseBorder { 50% { box-shadow: 0 0 14px rgba(239,74,95,0.7), 5px 5px 0 rgba(0,0,0,0.35); } }

.event-banner {
  position: fixed; top: 22%; left: 50%; transform: translate(-50%, -20px);
  z-index: 26; text-align: center; pointer-events: none; opacity: 0;
}
.event-banner.show { animation: bannerIn 4.6s ease-out forwards; }
.event-name {
  font-family: 'Cinzel', Georgia, serif; font-size: clamp(2rem, 6vw, 3.6rem); letter-spacing: 3px;
  color: #ff6a4a; text-shadow: 3px 3px 0 #1a0808, 0 0 22px rgba(255,80,40,0.6);
}
.event-desc { font-size: 1rem; font-weight: 700; text-shadow: 1px 1px 3px #000; }
@keyframes bannerIn {
  0% { opacity: 0; transform: translate(-50%, -20px) scale(1.2); }
  10%, 80% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, 0) scale(1); }
}

button.players-badge { font: inherit; font-weight: 800; color: var(--parchment); cursor: pointer; }
.leaderboard li.self { color: var(--gold); font-weight: 800; }

#actionBar .ability-btn { width: 50px; height: 50px; }
.ability-btn.type-melee, .ability-btn.type-bolt { border-color: var(--gold); }
.ability-btn.slot-s1 { border-color: #ff9a3d; }
.ability-btn.slot-s2, .ability-btn.slot-s3 { border-color: var(--arcane); }
.ability-btn.slot-s4 { border-color: #d9e6f2; }
.ability-btn.slot-s5 { border-color: #7cffb2; }
.ability-btn .key-label {
  top: 2px; left: 4px; right: auto; bottom: auto;
  font-size: 0.6rem; text-shadow: 1px 1px 1px #000;
}

.player-tag.npc .tag-name { color: #ff7a6a; }
.player-tag.npc .tag-fill { background: #c43a2a; }
.player-tag.boss .tag-name { font-size: 0.95rem; color: #ff4a2a; }
.player-tag.boss .tag-bar { width: 110px; height: 9px; }

.scoreboard {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 4, 12, 0.55);
}
.scoreboard-panel { width: min(640px, 94vw); padding: 14px 18px; }
.scoreboard-scroll { max-height: 60vh; overflow-y: auto; }
.scoreboard table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.scoreboard th {
  text-align: left; color: var(--gold); font-weight: 800; padding: 4px 6px;
  border-bottom: 2px solid var(--gold); position: sticky; top: 0; background: rgba(36, 26, 16, 0.98);
}
.scoreboard td { padding: 3px 6px; border-bottom: 1px solid rgba(232,178,61,0.15); }
.scoreboard th:nth-child(n+3), .scoreboard td:nth-child(n+3) { text-align: right; }
.scoreboard tr.self td { color: var(--gold); font-weight: 800; }

@media (hover: none) and (pointer: coarse) {
  #actionBar { flex-wrap: wrap; justify-content: center; max-width: 180px; }
  .event-panel { position: fixed; top: auto; bottom: 14px; left: 14px; z-index: 20; }
}
@media (max-width: 560px) {
  .crown-rules { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .event-panel.active { animation: none; }
}

/* ---------- Menü (Esc) ---------- */
.menu-open-btn {
  position: fixed; top: 14px; right: 118px; z-index: 20;
  padding: 8px 14px; font: 800 0.9rem 'Alegreya Sans', sans-serif;
  color: var(--parchment); cursor: pointer;
}
.menu-open-btn:focus-visible { outline: 3px solid var(--arcane); outline-offset: 2px; }

.overlay.menu { z-index: 60; background: rgba(8, 7, 16, 0.62); backdrop-filter: blur(3px); }
.menu-panel {
  width: min(460px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  padding: 20px 22px 18px;
}
.menu-title {
  font-family: 'Cinzel', Georgia, serif; font-weight: 400; letter-spacing: 2px;
  font-size: 2rem; color: var(--gold); margin: 0; text-align: center;
}
.menu-note { text-align: center; margin: 2px 0 14px; }
.menu-view { display: flex; flex-direction: column; gap: 12px; }

.menu-settings {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px; border: 2px solid rgba(232,178,61,0.35); border-radius: 4px;
  background: rgba(0,0,0,0.25);
}
.menu-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.9rem; margin-top: 4px; }
.menu-row output { color: var(--gold); font-variant-numeric: tabular-nums; }
.menu-check { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; cursor: pointer; }
.menu-check input { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; }
.menu-check kbd, .menu-settings kbd {
  background: var(--wood2); border: 1px solid var(--gold); border-radius: 3px; padding: 0 5px; font-size: 0.75rem;
}

.menu-panel input[type=range] { width: 100%; accent-color: var(--gold); cursor: pointer; }
.menu-panel input:focus-visible { outline: 2px solid var(--arcane); outline-offset: 2px; }

.menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-btn {
  font: 800 0.9rem 'Alegreya Sans', sans-serif; padding: 10px 8px;
  background: var(--wood2); color: var(--parchment);
  border: 2px solid var(--gold); border-radius: 4px; cursor: pointer;
}
.menu-btn:hover { background: #3a2a17; }
.menu-btn:focus-visible { outline: 3px solid var(--arcane); outline-offset: 2px; }
.menu-btn.danger { border-color: var(--hp-low); color: #ffd0d6; }
.menu-btn.danger:hover { background: #4a1a20; }

#menuClassGrid { margin-bottom: 0; }
#menuClassGrid .class-card:disabled { cursor: default; opacity: 0.55; transform: none; }
#menuClassGrid .class-card.selected:disabled { opacity: 1; }


/* ---------- Runde ---------- */
.round-timer {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 21;
  padding: 6px 16px; font: 800 1rem 'Alegreya Sans', sans-serif; font-variant-numeric: tabular-nums;
  color: var(--parchment); white-space: nowrap;
}
.round-timer.ending { border-color: var(--hp-low); color: #ffb0a0; }
.event-sub { font-size: 0.75rem; opacity: 0.85; margin-top: 2px; }

.round-banner {
  position: fixed; inset: 0; z-index: 45; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 110px; pointer-events: none;
}
.round-banner-panel { pointer-events: auto; cursor: pointer; padding: 16px 26px; text-align: center; min-width: min(420px, 92vw); }
.round-banner-title { font-family: 'Cinzel', Georgia, serif; letter-spacing: 2px; font-size: 2rem; color: var(--gold); }
.round-banner-list { list-style: none; margin: 8px 0 6px; padding: 0; font-weight: 700; }
.round-banner-list li { padding: 2px 0; }
.round-banner-list li.winner { font-size: 1.15rem; color: var(--gold); }
.round-banner-list li.self { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Fähigkeiten-Tooltip ---------- */
.ability-tip {
  position: fixed; z-index: 35; width: min(300px, 90vw); padding: 8px 12px;
  pointer-events: none; font-size: 0.8rem; line-height: 1.3;
}
.tip-title { font-weight: 800; color: var(--gold); margin-bottom: 2px; }
.tip-desc { margin-bottom: 4px; }
.tip-meta { font-size: 0.72rem; opacity: 0.85; }

/* ---------- Klassen-Vorschau im Login ---------- */
.login-panel { max-height: calc(100vh - 40px); overflow-y: auto; }
.class-preview {
  text-align: left; margin: 14px 0 0; padding: 10px 12px;
  border: 2px solid rgba(232,178,61,0.35); border-radius: 4px; background: rgba(0,0,0,0.25);
}
.preview-stats { font-weight: 800; font-size: 0.82rem; color: var(--gold); margin-bottom: 6px; }
.preview-row { display: grid; grid-template-columns: 34px 24px 1fr; gap: 6px; align-items: start; padding: 4px 0; border-top: 1px solid rgba(232,178,61,0.12); }
.preview-key { font-size: 0.7rem; font-weight: 800; background: var(--wood2); border: 1px solid var(--gold); border-radius: 3px; text-align: center; padding: 1px 0; }
.preview-icon { font-size: 1rem; line-height: 1.2; }
.preview-name { font-weight: 800; font-size: 0.8rem; }
.preview-desc { font-size: 0.74rem; }
.preview-meta { font-size: 0.68rem; opacity: 0.75; }

.link-btn {
  background: none; border: none; padding: 0; font: inherit; color: var(--gold);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.link-btn:focus-visible { outline: 2px solid var(--arcane); outline-offset: 2px; }

.menu-btn.wide { grid-column: 1 / -1; }

/* ---------- Neuigkeiten ---------- */
.overlay.news { z-index: 70; background: rgba(8, 7, 16, 0.7); backdrop-filter: blur(3px); }
.news-panel { width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; gap: 12px; padding: 18px 22px; }
.news-body { overflow-y: auto; padding-right: 6px; text-align: left; }
.news-version + .news-version { margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(232,178,61,0.3); }
.news-version h3 { margin: 0; font-size: 1.1rem; color: var(--gold); }
.news-date { font-size: 0.72rem; opacity: 0.7; margin-bottom: 4px; }
.news-version h4 { margin: 8px 0 2px; font-size: 0.9rem; }
.news-version ul { margin: 0; padding-left: 18px; font-size: 0.82rem; line-height: 1.35; }
.news-version li { margin-bottom: 2px; }

@media (max-width: 560px) {
  .round-timer { font-size: 0.85rem; padding: 4px 10px; top: 8px; }
  .kill-feed { top: 48px; }
}

.menu-select {
  width: 100%; padding: 6px 8px; font: 700 0.85rem 'Alegreya Sans', sans-serif;
  background: var(--wood); color: var(--parchment); border: 2px solid var(--gold); border-radius: 4px;
}
.menu-select:focus-visible { outline: 2px solid var(--arcane); outline-offset: 2px; }
.menu-check input:disabled + * , .menu-check:has(input:disabled) { opacity: 0.55; }

/* ---------- Teamfarben ---------- */
:root { --team0: #4aa3ff; --team1: #ff5a5a; }
.team-0 { color: var(--team0); }
.team-1 { color: var(--team1); }
.player-tag.ally .tag-name { color: var(--team0); }
.player-tag.ally .tag-fill { background: var(--team0); }
.player-tag.enemy .tag-name { color: var(--team1); }
.player-tag.enemy .tag-fill { background: var(--team1); }
.kill-line.team-0 { border-color: var(--team0); }
.kill-line.team-1 { border-color: var(--team1); }
.leaderboard li.team-0::before, .leaderboard li.team-1::before {
  content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle;
}
.leaderboard li.team-0::before { background: var(--team0); }
.leaderboard li.team-1::before { background: var(--team1); }
body.mode-team #crownStatus, body.mode-team:not(.team-events) #eventPanel { display: none; }

/* ---------- Abklingzeit als Zahl ---------- */
.cd-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font: 800 1.05rem 'Alegreya Sans', sans-serif; color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 3px #000, 1px 1px 0 #000; pointer-events: none;
}

/* ---------- Startbildschirm: Modi ---------- */
.mode-main { display: flex; flex-direction: column; gap: 10px; }
.mode-box {
  margin-top: 4px; padding: 10px 12px; text-align: left;
  border: 2px solid rgba(232,178,61,0.35); border-radius: 4px; background: rgba(0,0,0,0.25);
  display: flex; flex-direction: column; gap: 8px;
}
.mode-title { font-weight: 800; color: var(--gold); }
.mode-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.mode-row .menu-btn { flex: 1 1 auto; }
.size-pick { display: flex; gap: 4px; }
.size-btn {
  font: 800 0.85rem 'Alegreya Sans', sans-serif; padding: 8px 10px; cursor: pointer;
  background: var(--wood2); color: var(--parchment); border: 2px solid rgba(232,178,61,0.4); border-radius: 4px;
}
.size-btn.selected { border-color: var(--gold); background: #3a2a17; color: var(--gold); }
.size-btn:disabled { cursor: default; opacity: 0.7; }
.size-btn:focus-visible, .code-input:focus-visible { outline: 2px solid var(--arcane); outline-offset: 2px; }
.code-input {
  width: 92px; padding: 8px; text-align: center; letter-spacing: 3px; text-transform: uppercase;
  font: 800 0.95rem 'Alegreya Sans', sans-serif; background: var(--wood); color: var(--parchment);
  border: 2px solid var(--gold); border-radius: 4px;
}
.menu-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.class-grid.locked { pointer-events: none; opacity: 0.6; }
.queue-text { margin: 0; font-weight: 800; text-align: center; }
.queue-spinner {
  width: 26px; height: 26px; margin: 0 auto; border-radius: 50%;
  border: 3px solid rgba(232,178,61,0.25); border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .queue-spinner { animation: none; } }
.lobby-code { font-size: 0.95rem; }
.lobby-code strong { font-size: 1.3rem; letter-spacing: 3px; color: var(--gold); }
.lobby-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lobby-team { border: 2px solid currentColor; border-radius: 4px; padding: 6px 8px; }
.lobby-team h4 { margin: 0 0 4px; font-size: 0.85rem; }
.lobby-team ul { margin: 0; padding: 0; list-style: none; font-size: 0.8rem; color: var(--parchment); }
.lobby-team li.self { font-weight: 800; }
.lobby-team li.empty { opacity: 0.45; font-style: italic; }

/* ---------- Chat ---------- */
.chat {
  position: fixed; left: 14px; bottom: 16px; z-index: 22; width: min(360px, 42vw);
  display: flex; flex-direction: column; gap: 4px; pointer-events: none;
}
.chat-log {
  max-height: 190px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px;
  font-size: 0.8rem; line-height: 1.3; scrollbar-width: thin;
}
.chat-line { padding: 1px 6px; border-radius: 3px; background: rgba(20,14,8,0.55); text-shadow: 1px 1px 1px #000; transition: opacity 0.6s; word-break: break-word; }
.chat-line.old { opacity: 0; }
.chat.open .chat-line.old { opacity: 1; }
.chat.open { pointer-events: auto; }
.chat.open .chat-log { background: rgba(20,14,8,0.55); border-radius: 4px; }
.chat-line.system { color: #cbb98e; font-style: italic; }
.chat-line.team .chat-tag { color: var(--team0); font-weight: 800; }
.chat-name {
  background: none; border: none; padding: 0; font: inherit; font-weight: 800; color: var(--gold); cursor: pointer;
}
.chat-name.team-0 { color: var(--team0); }
.chat-name.team-1 { color: var(--team1); }
.chat-input-row { display: flex; gap: 4px; }
.chat-input {
  flex: 1; min-width: 0; padding: 7px 9px; font: 600 0.85rem 'Alegreya Sans', sans-serif;
  background: rgba(20,14,8,0.9); color: var(--parchment); border: 2px solid var(--gold); border-radius: 4px;
}
.chat-input:focus { outline: none; border-color: var(--arcane); }
.chat-channel {
  font: 800 0.75rem 'Alegreya Sans', sans-serif; padding: 0 8px; cursor: pointer;
  background: var(--wood2); color: var(--parchment); border: 2px solid var(--gold); border-radius: 4px;
}
.chat-channel.team { color: var(--team0); border-color: var(--team0); }
.chat-btn { display: none; position: fixed; right: 14px; bottom: 230px; z-index: 22; padding: 8px 12px; font: 800 0.85rem 'Alegreya Sans', sans-serif; color: var(--parchment); }
.chat-popup { position: fixed; z-index: 40; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 190px; }
.chat-popup-name { font-weight: 800; color: var(--gold); }

@media (hover: none) and (pointer: coarse) {
  .chat { top: 150px; bottom: auto; width: 60vw; }
  .chat-log { max-height: 110px; }
  .chat-btn { display: block; }
}

/* ---------- Match-Ende ---------- */
.overlay.match-end { z-index: 55; background: rgba(8, 7, 16, 0.6); }
.match-end-panel { width: min(440px, 100%); padding: 18px 22px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.match-end-title { font-family: 'Cinzel', Georgia, serif; font-weight: 400; letter-spacing: 3px; font-size: 2.6rem; margin: 0; color: var(--parchment); }
.match-end-title.win { color: var(--gold); }
.match-end-title.lose { color: var(--hp-low); }
.match-end-score { font-weight: 800; font-size: 1.05rem; }
.match-end-list { margin: 0; padding: 0; list-style: none; font-size: 0.85rem; text-align: left; max-height: 40vh; overflow-y: auto; }
.match-end-list li { padding: 2px 0; }
.match-end-list li.self { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
#scoreboardBody tr.team-0 td:nth-child(2) { color: var(--team0); }
#scoreboardBody tr.team-1 td:nth-child(2) { color: var(--team1); }
@media (max-width: 1100px) and (hover: hover) {
  .chat { bottom: 210px; width: min(340px, 45vw); }
  .chat-log { max-height: 150px; }
}

/* ---------- Krone: Markierung am Bildschirm ---------- */
.crown-marker {
  position: fixed; left: 0; top: 0; z-index: 18; pointer-events: none;
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 3px 8px; border-radius: 12px; border: 2px solid var(--gold);
  background: rgba(36,26,16,0.75); color: var(--gold); font: 800 0.78rem 'Alegreya Sans', sans-serif;
  box-shadow: 0 0 12px rgba(255,201,61,0.55);
}
.crown-marker-icon { font-size: 1rem; }
.crown-marker-arrow { display: none; width: 0; height: 0; border-left: 9px solid var(--gold); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.crown-marker.offscreen .crown-marker-arrow { display: inline-block; }
.player-tag.crown-holder .tag-name { color: #ffd23d; text-shadow: 1px 1px 2px #000; font-size: 0.9rem; }
.player-tag.crown-holder .tag-name::before { content: '👑 '; }
.player-tag.stealth-ghost { opacity: 0.45; }
.self-hud.stealthed { border-color: #8a5cff; box-shadow: 0 0 16px rgba(138,92,255,0.7), 5px 5px 0 rgba(0,0,0,0.35); }
#menuSkillsList { margin: 0; max-height: 55vh; overflow-y: auto; }

/* ---------- Credit, Zielrahmen ---------- */
.credit { margin: 0 0 10px; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; color: var(--parchment); opacity: 0.9; }
.credit strong { color: var(--gold); font-weight: 800; }

.target-frame {
  position: fixed; top: 58px; left: 50%; transform: translateX(-50%); z-index: 21;
  width: min(260px, 70vw); padding: 6px 10px; border-color: #ff5a4a; text-align: center;
}
.target-name { font-weight: 800; font-size: 0.85rem; color: #ffb0a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.target-bar { height: 10px; margin-top: 3px; }
.target-fill { background: #d8382a; }
.target-hp { font-size: 0.7rem; opacity: 0.85; font-variant-numeric: tabular-nums; }
.kill-feed { top: 118px; }
.player-tag.targeted .tag-name { color: #ff6a5a; text-decoration: underline; text-underline-offset: 2px; }
.player-tag.targeted .tag-bar { outline: 2px solid #ff5a4a; }

/* ---------- Kartenwahl, Ereignisliste, Warnhinweis ---------- */
.map-pick .map-btn { flex: 1; }
.event-list { max-height: 50vh; overflow-y: auto; gap: 8px; }
.event-row { align-items: flex-start; }
.event-row input { margin-top: 3px; flex: none; }
.event-text { display: flex; flex-direction: column; font-size: 0.85rem; }
.event-text .small { font-size: 0.72rem; opacity: 0.8; }
.center-warning {
  position: fixed; top: 34%; left: 50%; transform: translateX(-50%); z-index: 30;
  padding: 10px 22px; font: 400 2rem 'Cinzel', Georgia, serif; letter-spacing: 2px; color: #ffd98a;
  background: rgba(40, 20, 6, 0.75); border: 3px solid #e8b23d; border-radius: 6px;
  text-shadow: 2px 2px 0 #000; pointer-events: none; animation: warnPulse 0.5s ease-in-out infinite alternate;
}
@keyframes warnPulse { to { transform: translateX(-50%) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .center-warning { animation: none; } }

/* ---------- Minimap, Tarnungs-Timer ---------- */
.minimap { position: fixed; top: 58px; right: 14px; width: 199px; height: 199px; z-index: 20; pointer-events: none; }
.leaderboard { top: 218px; }
.stealth-timer {
  position: absolute; right: calc(100% + 10px); bottom: 8px;
  padding: 6px 10px; white-space: nowrap; font: 800 0.95rem 'Alegreya Sans', sans-serif; font-variant-numeric: tabular-nums;
  color: #e6d2ff; background: rgba(40, 20, 60, 0.85); border: 2px solid #a070ff; border-radius: 6px;
}
@media (max-width: 560px) { .minimap { width: 146px; height: 146px; } .leaderboard { top: 211px; } }

/* ---------- Einstellungen (Hauptmenü und Esc-Menü) ---------- */
.overlay.settings-overlay { z-index: 75; }
.settings-panel { width: min(560px, 100%); overflow: hidden; }
.settings-tabs .size-btn { flex: 1 1 0; }
.settings-scroll { overflow-y: auto; min-height: 0; flex: 1 1 auto; padding-right: 4px; }
.settings-body { display: flex; flex-direction: column; gap: 6px; }
.settings-h { margin: 10px 0 2px; font-size: 0.95rem; color: var(--gold); }
.keys-list { display: grid; grid-template-columns: 1fr; gap: 4px; }
.key-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.86rem; padding: 2px 0; border-bottom: 1px solid rgba(232,178,61,0.15); }
.key-name { flex: 1 1 auto; min-width: 0; }
.key-btn {
  min-width: 110px; font: 800 0.82rem 'Alegreya Sans', sans-serif; padding: 4px 8px;
  background: var(--wood2); color: var(--parchment); border: 2px solid var(--gold); border-radius: 4px; cursor: pointer;
}
.key-btn:hover { background: #3a2a17; }
.key-btn:focus-visible { outline: 2px solid var(--arcane); outline-offset: 2px; }
.key-btn.listening { border-color: var(--arcane); color: var(--arcane); animation: pulseBorder 1.2s ease-in-out infinite; }
.keys-note { min-height: 1.2em; color: var(--gold); }
.keys-note:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .key-btn.listening { animation: none; } }

/* ---------- Skins ---------- */
.storage-note { margin: 12px 0 0; font-size: 0.74rem; line-height: 1.35; color: #ffb0a0; opacity: 0.9; }
.skin-row { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(232,178,61,0.25); font-size: 0.82rem; }
.skin-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; flex-wrap: wrap; }
.skin-row label.locked { opacity: 0.75; cursor: default; }
.skin-row label .small { flex-basis: 100%; padding-left: 22px; }
.skin-row input { width: 16px; height: 16px; accent-color: var(--gold); }
.skin-goal { font-size: 0.72rem; font-weight: 800; color: var(--gold); text-align: center; margin-bottom: 4px; }
.skin-goal.done { color: #6fe07a; }

/* 3D-Vorschau in der Klassenwahl */
.preview-stage { position: relative; width: 100%; height: 230px; margin-bottom: 8px; border-radius: 4px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 85%, rgba(232,178,61,0.18), rgba(0,0,0,0.35) 70%); }
.preview-stage canvas { display: block; width: 100%; height: 100%; }
.preview-label { position: absolute; bottom: 6px; width: 33.3%; text-align: center; font-size: 0.74rem; font-weight: 800; color: var(--parchment); text-shadow: 0 1px 2px #000; pointer-events: none; }
.preview-label.p0 { left: 0; }
.preview-label.p1 { left: 33.3%; color: #6fe07a; }
.preview-label.p2 { right: 0; color: #ffcf4a; }
.preview-label.p3 { color: #ff8a3a; }
.preview-label.locked { color: #c9c2b8; }
.preview-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--gold); }
.preview-loading.hidden { display: none; }

/* Private Lobbys und Streamer-Lobby */
.streamer-check { font-size: 0.78rem; margin: 6px 0 2px; }
.lobby-type { color: var(--gold); margin: 2px 0 6px; }
.lobby-code.big { text-align: center; }
.lobby-code.big strong { display: block; font-size: 2.6rem; letter-spacing: 8px; line-height: 1.1; margin: 4px 0; }
.lobby-ffa ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.lobby-team li { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.kick-btn { font-size: 0.7rem; padding: 0 6px; background: transparent; color: #ffb0a0; border: 1px solid #ff6b6b; border-radius: 3px; cursor: pointer; }
.lobby-code-hud {
  position: fixed; top: 60px; left: 50%; transform: translateX(-50%); z-index: 25;
  padding: 4px 12px; font-size: 0.95rem; font-weight: 800;
}
.lobby-code-hud strong { font-size: 1.4rem; letter-spacing: 4px; color: var(--gold); }
.lobby-code-hud.masked strong { filter: blur(6px); }
body.mode-team .lobby-code-hud { top: 60px; }

/* Ladehinweis beim ersten Betreten der Welt (Shader werden übersetzt) */
.world-loading { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(8, 10, 16, 0.92); color: var(--gold); font-weight: 800; font-size: 1.3rem; letter-spacing: 1px; }

/* Ereignisauswahl des Hosts in der Teamkampf-Lobby */
.lobby-events { margin: 6px 0; }
.lobby-events .event-list { max-height: 160px; overflow-y: auto; margin-top: 4px; }
.event-row .event-text .small { font-size: 0.72rem; }

/* ---------- Ranking, Beute, MOD ---------- */
.rank-list, .mod-list { display: flex; flex-direction: column; gap: 5px; max-height: 300px; overflow-y: auto; margin: 6px 0 10px; }
.rank-entry, .mod-entry { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid rgba(232,178,61,0.24); background: rgba(26,20,14,0.5); border-radius: 4px; }
.rank-entry > span:first-child { font-weight: 800; }
.rank-entry strong { color: var(--gold); font-size: 0.98rem; }
.rank-stats { font-size: 0.8rem; line-height: 1.35; color: var(--parchment); opacity: 0.88; margin: 4px 0 8px; }
.loot-card { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; padding: 8px; margin: 5px 0; border: 1px solid rgba(232,178,61,0.24); background: rgba(26,20,14,0.5); border-radius: 4px; }
.loot-card > .small { flex-basis: 100%; }
.loot-card .menu-btn { flex: 1 1 150px; }
.mod-list { max-height: 360px; }
.mod-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.mod-actions .kick-btn { min-width: 46px; }
.mod-entry .small { text-align: right; }
@media (max-width: 560px) { .rank-entry, .mod-entry { font-size: 0.76rem; } .mod-actions { grid-column: 1 / -1; justify-content: flex-start; } }
.mod-badge { display: inline-block; font-size: 0.68em; margin-right: 3px; }

.settings-body .settings-h{margin:10px 0 6px}.settings-body .mod-list{display:flex;flex-direction:column;gap:6px}

.role-prefix { display:inline-block; color:#2f86ff; font-size:1.14em; font-weight:900; line-height:1; margin-right:1px; letter-spacing:.04em; }
.role-prefix.admin { color:#47a7ff; }
.role-name { display:inline-flex; align-items:baseline; }
.access-pin-wrap { margin-top:6px; }
.access-pin-label { display:block; margin:0 0 4px; color:#47a7ff; font-weight:800; font-size:.84rem; text-align:center; letter-spacing:.04em; }
.admin-code-input { width:100%; margin-top:0; border-color:rgba(71,167,255,.55); }
.admin-code-input { font-variant-numeric: tabular-nums; letter-spacing: .18em; text-align: center; }
.chat-mod-actions { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(71,167,255,.35); }
.mod-chat-title { color: #47a7ff; font-weight: 800; text-align: center; }
.role-prefix.admin, .role-prefix.moderator { color:#2f86ff; text-shadow:0 0 8px rgba(47,134,255,.35); }
.role-prefix.admin { font-size:1.24em; }

/* v2.23.1 – dezente Dark-Fantasy-Oberflächen, ohne Gameplay-Layout zu verändern */
:root {
  --df-ink: #090a10;
  --df-panel: rgba(14, 13, 20, 0.88);
  --df-edge: rgba(198, 158, 76, 0.42);
}
.comic-panel {
  background:
    linear-gradient(180deg, rgba(34, 29, 24, .92), rgba(10, 10, 16, .94)),
    radial-gradient(circle at 50% 0%, rgba(126, 92, 42, .14), transparent 62%);
  border-color: var(--df-edge);
  box-shadow: 0 18px 55px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.035);
}
.comic-title {
  text-shadow: 0 2px 0 #050508, 0 0 22px rgba(110,76,170,.18);
}

/* ==========================================================================
   v2.24 – Dunkles Blutrot/Gold-Theme (Richtung Referenz: verzierte Panels,
   Serifenschrift, goldgerahmte Fähigkeitenslots). Nur Optik, keine Layoutänderung.
   ========================================================================== */
:root {
  --gold: #d4a64a;
  --parchment: #efe3c8;
  --blood: #7a1418;
  --blood-deep: #2a0709;
  --df-edge: rgba(212, 166, 74, 0.7);
  --hp: #b3262d;
  --hp-low: #ff5a3c;
}
html, body { background: #07070b; letter-spacing: .1px; }
.comic-panel {
  background:
    linear-gradient(180deg, rgba(44, 10, 13, .9) 0%, rgba(14, 8, 10, .93) 38%, rgba(8, 7, 10, .95) 100%);
  border: 2px solid var(--df-edge);
  border-radius: 3px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.85),
    0 0 0 3px rgba(122, 20, 24, .75),
    0 0 0 4px rgba(212, 166, 74, .35),
    0 16px 40px rgba(0,0,0,.6),
    inset 0 0 18px rgba(0,0,0,.65),
    inset 0 1px 0 rgba(255, 215, 140, .12);
}
/* Eck-Ornamente (reines CSS, keine Bilder) */
.comic-panel::before, .comic-panel::after {
  content: ''; position: absolute; width: 12px; height: 12px; pointer-events: none;
  border: 2px solid var(--gold); transform: rotate(45deg);
  background: var(--blood-deep); box-shadow: 0 0 6px rgba(212,166,74,.45);
}
.comic-panel::before { top: -8px; left: -8px; }
.comic-panel::after { bottom: -8px; right: -8px; }
/* Cinzel ist breiter als die alte Comic-Schrift: Titel kleiner und ohne Überlauf aus dem Panel */
.comic-title { color: #f1e2bf; text-shadow: 0 2px 0 #1a0406, 0 0 18px rgba(170, 30, 30, .45);
  letter-spacing: .5px; font-size: clamp(1.35rem, 7.2vw, 3rem); max-width: 100%; white-space: nowrap; overflow: visible; }
.comic-title span { color: var(--gold); }
.hud-title, .round-banner-title { color: var(--gold); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }

/* Lebensbalken: tiefes Rot mit Glanz */
.bar { background: #120406; border: 1px solid var(--gold); border-radius: 2px; box-shadow: 0 0 0 2px rgba(0,0,0,.8), inset 0 2px 4px rgba(0,0,0,.8); }
.hp-fill { background: linear-gradient(180deg, #e0454a 0%, #a3161d 48%, #6d0b10 100%); }
.hp-fill.low { background: linear-gradient(180deg, #ff9a52 0%, #e0452a 50%, #8a1a0c 100%); }
.player-tag .tag-bar { border-color: rgba(212,166,74,.55); background: rgba(10,2,3,.75); }
.player-tag .tag-fill { background: linear-gradient(180deg, #e0454a, #8a1016); }
.player-tag .tag-name { font-weight: 700; letter-spacing: .3px; }

/* Fähigkeitenslots: goldener Rahmen, dunkelroter Grund, Typ-Farbe als Innenleuchten */
.ability-btn {
  border-radius: 4px; border: 2px solid var(--gold) !important;
  background: radial-gradient(circle at 50% 35%, #3a1014 0%, #16070a 70%, #0b0406 100%);
  box-shadow: 0 0 0 1px #000, 0 0 0 3px rgba(122,20,24,.8), inset 0 0 10px var(--slot-glow, rgba(212,166,74,.25));
}
.ability-btn.type-melee, .ability-btn.type-bolt { --slot-glow: rgba(212,166,74,.35); }
.ability-btn.slot-s1 { --slot-glow: rgba(255,140,60,.45); }
.ability-btn.slot-s2, .ability-btn.slot-s3 { --slot-glow: rgba(93,211,255,.4); }
.ability-btn.slot-s4 { --slot-glow: rgba(217,230,242,.35); }
.ability-btn.slot-s5 { --slot-glow: rgba(124,255,178,.35); }
.ability-btn .key-label { color: #f3d58c; font-family: 'Cinzel', Georgia, serif; font-weight: 700; }
.cd-overlay { background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(20,0,2,.85)); transform-origin: bottom; }

.kill-line { background: linear-gradient(90deg, rgba(42,7,9,.9), rgba(10,6,8,.9)); border: 1px solid var(--df-edge); border-radius: 2px; }
.minimap { border-radius: 50%; box-shadow: 0 0 0 2px var(--gold), 0 0 0 4px rgba(122,20,24,.85), 0 0 0 5px rgba(212,166,74,.4), 0 8px 24px rgba(0,0,0,.6); }
/* Serifenschrift nur für Hauptknöpfe; kleine Knöpfe behalten die schmale Schrift (sonst verschiebt sich das Layout) */
.comic-btn, .menu-btn { font-family: 'Cinzel', Georgia, serif; letter-spacing: .5px; }
.event-name { letter-spacing: 1px; font-size: clamp(1.6rem, 5vw, 3rem); max-width: 92vw; }
.match-end-title { letter-spacing: 1px; font-size: clamp(1.6rem, 5vw, 2.4rem); }
.round-banner-title { letter-spacing: 1px; font-size: clamp(1.2rem, 4vw, 1.8rem); }
#vignette { background: radial-gradient(ellipse at 50% 55%, rgba(0,0,0,0) 52%, rgba(6,2,4,.32) 78%, rgba(3,1,2,.62) 100%); }

/* v2.24 MOD-Menü */
.mod-hud-btn { right: 196px; color: #9fd0ff; border-color: rgba(71,167,255,.8) !important; }
.mod-tabs { flex-wrap: wrap; margin: 6px 0; }
.mod-tabs .size-btn { font-size: .78rem; padding: 4px 8px; }
.mod-entry .mod-meta { font-size: .72rem; opacity: .75; }
.mod-log-line { font-size: .74rem; padding: 3px 6px; border-bottom: 1px solid rgba(212,166,74,.15); }
.mod-log-line b { color: var(--gold); font-weight: 700; }
.mod-chat-log { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; font-size: .8rem; }
.mod-form { display: grid; gap: 6px; margin: 6px 0; }
.mod-form label { display: flex; align-items: center; gap: 8px; font-size: .82rem; }
.mod-form input[type=text], .mod-form input[type=number], .mod-form select { background: #120708; color: var(--parchment); border: 1px solid var(--df-edge); border-radius: 2px; padding: 4px 6px; font: inherit; }
.mod-perm { font-size: .68rem; padding: 0 5px; border: 1px solid rgba(71,167,255,.6); color: #9fd0ff; background: transparent; border-radius: 2px; cursor: pointer; }
.mod-perm.on { background: rgba(71,167,255,.25); }
.observe-banner { position: fixed; top: 96px; left: 50%; transform: translateX(-50%); z-index: 30; padding: 6px 14px; pointer-events: none; font-size: .85rem; color: #9fd0ff; }
@media (max-width: 560px) { .mod-hud-btn { top: 58px; right: 14px; } }

/* v2.25 Auswahl nach dem Tod */
.respawn-choice { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.respawn-choice .comic-btn, .respawn-choice .menu-btn { min-width: 180px; }
.respawn-choice .comic-btn:disabled { opacity: .55; cursor: default; }
.respawn-choice .key-hint { font-size: .7em; opacity: .7; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; margin-left: 6px; }

/* v2.25: Einblendungen bei Kartenwechsel, Rundenende und Ereignissen ohne Rahmen und 60 % kleiner */
.round-banner-panel.comic-panel { background: none !important; border: none !important; box-shadow: none !important; padding: 6px 10px; min-width: 0; }
.round-banner-panel.comic-panel::before, .round-banner-panel.comic-panel::after { display: none; }
.round-banner-title { font-size: clamp(0.7rem, 1.6vw, 0.9rem) !important; text-shadow: 0 1px 3px #000, 0 0 8px rgba(0,0,0,.8); }
.round-banner-list { font-size: 0.6rem; text-shadow: 0 1px 2px #000; margin: 3px 0; }
.round-banner-list li.winner { font-size: 0.7rem; }
.event-name { font-size: clamp(0.88rem, 2.2vw, 1.32rem) !important; letter-spacing: 1px; }
.event-desc { font-size: 0.66rem; }
.center-warning { font-size: 0.8rem !important; padding: 4px 10px !important; background: none !important; border: none !important; box-shadow: none !important; text-shadow: 0 1px 3px #000, 0 0 10px rgba(0,0,0,.9); }

.howto { text-align: left; margin: -8px 0 14px; font-size: .82rem; background: rgba(0,0,0,.25); border: 1px solid rgba(212,166,74,.3); padding: 6px 10px; }
.howto summary { cursor: pointer; color: var(--gold); font-weight: 700; }
.howto ul { margin: 6px 0 2px; padding-left: 18px; }
.howto li { margin: 3px 0; line-height: 1.35; }
.discord-link { color: #9fb4ff; font-weight: 700; text-decoration: underline; }
.discord-link:hover { color: #c8d4ff; }
.discord-btn { display: block; text-align: center; text-decoration: none; color: #c8d4ff !important; border-color: #5865f2 !important; }
.lobby-size-pick { display: flex; align-items: center; gap: 8px; justify-content: center; }
.lobby-size-pick input { width: 64px; background: #120708; color: var(--parchment); border: 1px solid var(--df-edge); padding: 4px 6px; font: inherit; text-align: center; }

/* v2.25 Ränge */
.rank-card { display: flex; flex-direction: column; gap: 6px; }
.rank-bar { height: 8px; background: rgba(0,0,0,.5); border: 1px solid rgba(212,166,74,.4); }
.rank-bar-fill { height: 100%; background: #8a8a8a; }
.rank-name.rank-epic { text-shadow: 0 0 6px currentColor, 1px 1px 2px #000; font-weight: 800; }

.mod-entry.clickable { cursor: pointer; grid-template-columns: 1fr; }
.mod-entry.clickable:hover { background: rgba(80,20,24,.45); }
.mod-entry.selected { border-color: var(--gold); background: rgba(90,24,28,.55); }
.mod-entry.selected .mod-actions { justify-content: flex-start; padding-top: 6px; }
.mod-entry.selected .kick-btn { font-size: .85rem; padding: 4px 10px; min-width: 70px; }

/* v2.25 Beute-Fenster */
.loot-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-weight: 700; }
.loot-scrap { color: var(--gold); }
.loot-pending { color: #ffcf6a; }
.loot-equipped { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.loot-slot { border: 1px solid rgba(212,166,74,.35); background: rgba(0,0,0,.3); padding: 6px; text-align: center; display: flex; flex-direction: column; gap: 3px; align-items: center; }
.loot-slot-name { font-family: 'Cinzel', Georgia, serif; color: var(--gold); font-size: .78rem; letter-spacing: 1px; }
.loot-item-name { font-weight: 700; font-size: .82rem; }
.loot-tabs { margin: 4px 0; }
.loot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; }
.loot-item { border: 2px solid #555; background: linear-gradient(180deg, rgba(40,10,12,.7), rgba(8,6,8,.85)); padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; }
.loot-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.loot-actions .menu-btn { font-size: .72rem; padding: 3px 6px; }
.loot-progress { margin-top: 8px; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 560px) { .loot-equipped { grid-template-columns: 1fr; } }

/* v2.25.5: Klassenwahl bewusst breit/rechteckig statt Hochformat */
.login-panel {
  width: min(980px, 96vw);
  max-width: 980px;
  padding: 22px 28px 20px;
}
.class-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));   /* v2.25.7/2.26: drei Spalten im breiten Fenster */
  gap: 8px;
}
.class-card {
  padding: 8px 6px 7px;
}
.class-icon { font-size: 1.65rem; }
.class-name { font-size: 0.8rem; }
.class-desc { font-size: 0.62rem; }
#menu:has(#menuClass:not(.hidden)) .menu-panel {
  width: min(980px, 96vw);
  max-width: 980px;
}
#menuClassGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#loginScreen .class-preview {
  max-height: 260px;
  overflow-y: auto;
}
@media (max-width: 760px) {
  .login-panel { width: min(96vw, 720px); padding: 18px 16px; }
  .class-grid, #menuClassGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
  .login-panel { width: 96vw; padding: 14px 12px; }
  .class-grid, #menuClassGrid { gap: 6px; }
  .class-card { padding: 7px 4px 6px; }
  .class-icon { font-size: 1.45rem; }
  .class-name { font-size: 0.74rem; }
  .class-desc { font-size: 0.58rem; }
}

/* v2.26.2 Gruppenanzeige (Teamkampf/Dungeon) und Lebensfarben */
.party-panel { margin-top: 8px; padding: 6px 8px; min-width: 190px; display: flex; flex-direction: column; gap: 4px; }
.party-panel .party-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; font-size: .74rem; align-items: center; }
.party-panel .party-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.party-panel .party-hp { grid-column: 1 / -1; height: 7px; background: rgba(10,2,3,.8); border: 1px solid rgba(212,166,74,.45); border-radius: 3px; overflow: hidden; }
.party-panel .party-hp > div { height: 100%; transition: width .2s linear, background-color .3s; }
.party-panel .party-row.dead { opacity: .45; }
.party-panel .party-num { font-size: .66rem; opacity: .8; }
.minimap { pointer-events: auto; cursor: crosshair; }
/* Ping-Markierung im Bild */
.ping-label { position: absolute; left: 0; top: 0; transform-origin: 50% 100%; font-size: .72rem; font-weight: 700; color: #ffe08a; text-shadow: 0 1px 2px #000, 0 0 6px rgba(0,0,0,.8); white-space: nowrap; pointer-events: none; }
.ping-label.danger { color: #ff7a6a; }
.ping-label.other { color: #8fd8ff; }

/* v2.26.2: Nach dem Tod zuschauen – kein Fenster in der Mitte, schmale Leiste über der Fähigkeitenleiste */
#respawnScreen { background: none; pointer-events: none; align-items: flex-end; padding-bottom: 150px; }
#respawnScreen .comic-panel { pointer-events: auto; padding: 8px 16px 10px; max-width: min(640px, 94vw); background: rgba(12, 5, 6, 0.72); }
#respawnScreen .comic-title { font-size: clamp(1.1rem, 3vw, 1.6rem); margin: 0; }
#respawnScreen .respawn-choice { margin-top: 6px; flex-wrap: nowrap; }
#respawnScreen .respawn-choice .comic-btn, #respawnScreen .respawn-choice .menu-btn { min-width: 0; font-size: .95rem; padding: 6px 14px; width: auto; }
#respawnScreen .small { margin: 3px 0; font-size: .74rem; }
#respawnScreen { padding-bottom: 168px; }
.spectate-name { color: #ffe08a; }
@media (max-width: 560px) { #respawnScreen { padding-bottom: 120px; } }

/* =====================================================================
   v2.28 Startbildschirm: Kopfzeile, links Heldenvorschau, rechts Auswahl
   ===================================================================== */
#loginScreen.login-v2 {
  padding: clamp(8px, 2vh, 22px);
  background: #07060d;
  overflow: hidden;
}
.login-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(190, 70, 24, 0.38), transparent 55%),
    radial-gradient(ellipse at 15% 100%, rgba(90, 20, 40, 0.35), transparent 50%),
    linear-gradient(180deg, #06070f 0%, #120f26 45%, #231228 80%, #2b0f14 100%);
}
.login-moon { position: absolute; top: 6%; right: 9%; width: clamp(90px, 11vw, 170px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #f4f1ff 0%, #c9cff0 42%, #8d95c4 70%, #5d6392 100%);
  box-shadow: 0 0 60px 18px rgba(170, 185, 255, 0.28), 0 0 180px 60px rgba(120, 140, 255, 0.12); opacity: 0.85; }
.login-fog { position: absolute; left: -30%; width: 160%; height: 42%; filter: blur(28px); opacity: 0.5;
  background: radial-gradient(ellipse at 30% 50%, rgba(120, 130, 170, 0.28), transparent 60%),
              radial-gradient(ellipse at 75% 45%, rgba(140, 110, 160, 0.22), transparent 55%); }
.login-fog.f1 { bottom: -6%; animation: loginFog 46s linear infinite alternate; }
.login-fog.f2 { bottom: 18%; opacity: 0.28; animation: loginFog 64s linear infinite alternate-reverse; }
@keyframes loginFog { from { transform: translateX(-8%); } to { transform: translateX(10%); } }
#loginEmbers { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .login-fog { animation: none; } #loginEmbers { display: none; } }

#loginScreen.login-v2 .login-panel {
  position: relative; z-index: 1;
  width: min(1320px, 100%); max-width: none; height: min(900px, 100%); max-height: none;
  padding: clamp(12px, 1.8vh, 20px) clamp(14px, 1.8vw, 26px);
  display: grid; grid-template-rows: auto 1fr; gap: clamp(8px, 1.4vh, 14px);
  overflow: hidden; text-align: left;
  background: linear-gradient(180deg, rgba(22, 12, 14, 0.88), rgba(10, 7, 12, 0.92));
  border: 2px solid rgba(232, 178, 61, 0.75);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 24px 70px rgba(0, 0, 0, 0.65), inset 0 0 80px rgba(120, 30, 20, 0.12);
  backdrop-filter: blur(2px);
}
.login-head { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: clamp(6px, 1vh, 10px); border-bottom: 1px solid rgba(232, 178, 61, 0.28); }
.login-brand .comic-title { text-align: left; margin: 0; font-weight: 900; letter-spacing: 4px;
  font-size: clamp(1.9rem, 3.6vw, 3.3rem); line-height: 1;
  color: #f3e6c8; text-shadow: 0 2px 0 #3a2410, 0 0 18px rgba(232, 150, 60, 0.35), 0 0 42px rgba(200, 80, 30, 0.25); }
.login-brand .comic-title span { color: #f0b440; }
.login-brand .subtitle { margin: 4px 0 0; font-size: clamp(.78rem, 1vw, .92rem); opacity: .82; letter-spacing: .3px; }
.login-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.login-links .link-btn, .login-links .discord-link {
  font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: .82rem; text-decoration: none; color: var(--parchment);
  padding: 6px 12px; border: 1px solid rgba(232, 178, 61, 0.45); border-radius: 3px; background: rgba(0, 0, 0, 0.35); cursor: pointer; }
.login-links .link-btn:hover, .login-links .discord-link:hover { border-color: var(--gold); color: var(--gold); background: rgba(60, 30, 10, 0.5); }
.login-links .discord-link { color: #b8c6ff; }

.login-body { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(12px, 1.6vw, 22px); min-height: 0; }
.login-hero, .login-side { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(232,178,61,.4) transparent; }
.login-hero { position: relative; border: 1px solid rgba(232, 178, 61, 0.22); border-radius: 4px; padding: 10px;
  background: radial-gradient(ellipse at 50% 38%, rgba(90, 70, 130, 0.22), transparent 62%), rgba(0, 0, 0, 0.28); }
.hero-empty { height: 100%; min-height: 220px; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 20px; color: rgba(247, 236, 210, 0.6); font-family: 'Cinzel', Georgia, serif; font-size: 1rem; }
#loginScreen.login-v2 .class-preview { max-height: none; overflow: visible; margin: 0; border: 0; padding: 0; background: none; }
#loginScreen.login-v2 .preview-stage { height: clamp(220px, 40vh, 430px); margin-bottom: 10px; border-radius: 3px;
  background: radial-gradient(ellipse at 50% 85%, rgba(232, 140, 60, 0.16), transparent 55%), radial-gradient(ellipse at 50% 30%, rgba(120, 130, 200, 0.14), transparent 60%); }
#loginScreen.login-v2 .preview-label { font-family: 'Cinzel', Georgia, serif; font-size: .78rem; }
#loginScreen.login-v2 .preview-stats { font-size: .86rem; }
#loginScreen.login-v2 .preview-row { padding: 5px 0; }

.login-side { display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
#loginScreen.login-v2 #nameInput { margin: 0; border-width: 2px; background: rgba(0, 0, 0, 0.45); font-size: 1.05rem; }
#loginScreen.login-v2 #nameInput:focus { outline: none; border-color: #ffd36a; box-shadow: 0 0 0 3px rgba(232, 178, 61, 0.2); }
#loginScreen.login-v2 .class-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; }
#loginScreen.login-v2 .class-card { padding: 7px 4px 6px; border-width: 1px; border-bottom-width: 3px; background: linear-gradient(180deg, rgba(40, 28, 18, 0.9), rgba(20, 14, 10, 0.95));
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
#loginScreen.login-v2 .class-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.5), 0 0 12px color-mix(in srgb, var(--class-color, #e8b23d) 35%, transparent); }
#loginScreen.login-v2 .class-card.selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 18px rgba(232, 178, 61, 0.35); background: linear-gradient(180deg, rgba(70, 46, 20, 0.95), rgba(28, 18, 10, 0.95)); }
#loginScreen.login-v2 .class-icon { font-size: 1.5rem; }
#loginScreen.login-v2 .class-name { font-size: .78rem; }
#loginScreen.login-v2 .class-desc { display: none; }
#loginScreen.login-v2 .mode-main { gap: 8px; }
#loginScreen.login-v2 #joinBtn { font-size: 1.25rem; padding: 12px; letter-spacing: 2px;
  background: linear-gradient(180deg, #f2c35a, #c98d24); border: 1px solid #3a2410; box-shadow: 0 0 22px rgba(232, 160, 50, 0.25), inset 0 1px 0 rgba(255,255,255,.35); }
#loginScreen.login-v2 #joinBtn:not(:disabled):hover { filter: brightness(1.08); box-shadow: 0 0 30px rgba(240, 170, 60, 0.45), inset 0 1px 0 rgba(255,255,255,.35); }
#loginScreen.login-v2 .online-stats { margin: 0; font-size: .82rem; justify-content: center; }
#loginScreen.login-v2 .mode-box { background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(232, 178, 61, 0.3); padding: 8px 10px; gap: 7px; }
#loginScreen.login-v2 .howto { margin: 0; }
#loginScreen.login-v2 .credit { margin: 2px 0 0; font-size: .72rem; opacity: .7; text-align: center; }
#loginScreen.login-v2 .storage-note { margin: 0; font-size: .68rem; text-align: center; }

@media (max-width: 900px) {
  #loginScreen.login-v2 { padding: 6px; }
  #loginScreen.login-v2 .login-panel { height: 100%; overflow-y: auto; grid-template-rows: auto auto; }
  .login-body { display: flex; flex-direction: column; }
  .login-hero, .login-side { overflow: visible; flex: none; min-height: auto; }
  #loginScreen.login-v2 .login-panel { display: block; }
  .login-head { margin-bottom: 10px; }
  .login-hero { order: 2; }
  .hero-empty { min-height: 90px; }
  #loginScreen.login-v2 .preview-stage { height: clamp(200px, 34vh, 300px); }
  .login-head { flex-direction: column; align-items: flex-start; }
  .login-links { justify-content: flex-start; }
}
@media (max-width: 520px) {
  #loginScreen.login-v2 .class-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* v2.28 FPS-Anzeige */
.fps-meter { position: absolute; bottom: 8px; right: 12px; z-index: 30; pointer-events: none;
  font: 700 .74rem/1 'Alegreya Sans', sans-serif; color: #b6f0a8; background: rgba(0, 0, 0, 0.55); padding: 4px 8px; border-radius: 3px; }
.fps-meter.low { color: #ff9a7a; }
/* v2.28 Einstellungen: Tabs in einer Zeile, Zwischenüberschriften */
.settings-tabs { flex-wrap: wrap; }
.settings-tabs .size-btn { font-size: .8rem; padding: 6px 8px; min-width: 0; }
.hero-title { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; margin: 0 0 8px; padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--class-color, #e8b23d) 45%, transparent); }
.hero-icon { grid-row: span 2; font-size: 2rem; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--class-color, #e8b23d) 60%, transparent)); }
.hero-name { font-family: 'Cinzel', Georgia, serif; font-weight: 900; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: 2px; color: #f6e7c4; line-height: 1.05; }
.hero-desc { font-size: .84rem; opacity: .8; }
.settings-panel .settings-scroll { min-height: min(380px, 55vh); }

/* v2.28.1 Ziel-Lebensanzeige links neben der Figur (statt oben mittig) */
.target-frame {
  top: max(33vh, 330px); left: clamp(12px, 4vw, 70px); transform: none;
  width: clamp(190px, 18vw, 260px); padding: 8px 12px 7px; text-align: left;
  background: linear-gradient(180deg, rgba(40, 10, 10, 0.86), rgba(14, 6, 8, 0.9));
  border: 2px solid #c8463a; box-shadow: 0 6px 18px rgba(0,0,0,.55);
}
.target-name { font-family: 'Cinzel', Georgia, serif; font-size: .92rem; }
.target-bar { height: 14px; margin-top: 5px; border-color: #7a2a22; }
.target-hp { font-size: .78rem; margin-top: 2px; }
@media (max-width: 760px) { .target-frame { top: 120px; left: 8px; width: 170px; } }
/* v2.28.2 Zielrahmen näher an die Figur (rechter Rand ca. 150px links der Bildmitte) */
.target-frame { left: auto; right: calc(50% + clamp(110px, 8vw, 170px)); }
@media (max-width: 760px) { .target-frame { right: auto; left: 8px; } }

/* v2.28.1 Ladebildschirm */
.load-screen { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; background: #07060d; transition: opacity .4s ease; }
.load-screen.fade { opacity: 0; pointer-events: none; }
.load-box { position: relative; z-index: 1; width: min(640px, 90vw); text-align: center; }
.load-title { font-weight: 900; letter-spacing: 5px; font-size: clamp(2rem, 5vw, 3.6rem); color: #f3e6c8;
  text-shadow: 0 2px 0 #3a2410, 0 0 22px rgba(232, 150, 60, 0.4), 0 0 48px rgba(200, 80, 30, 0.25); margin: 0 0 6px; }
.load-title span { color: #f0b440; }
.load-sub { font-family: 'Cinzel', Georgia, serif; color: rgba(247, 236, 210, 0.75); letter-spacing: 2px; margin-bottom: 26px; min-height: 1.2em; }
.load-bar { height: 14px; border: 1px solid rgba(232, 178, 61, 0.7); border-radius: 8px; background: rgba(0, 0, 0, 0.55); overflow: hidden; box-shadow: 0 0 18px rgba(0,0,0,.6) inset; }
.load-fill { height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, #b8741e, #f2c35a 70%, #fff0c0); box-shadow: 0 0 14px rgba(242, 195, 90, 0.7); }
.load-row { display: flex; justify-content: space-between; margin-top: 8px; font-size: .9rem; color: rgba(247, 236, 210, 0.85); }
.load-pct { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 800; }
.load-tip { margin-top: 28px; font-size: .88rem; color: rgba(247, 236, 210, 0.6); font-style: italic; }
/* v2.28.2 Grafikoptionen */
.menu-select-inline { max-width: 52%; background: rgba(0,0,0,.45); color: var(--parchment); border: 1px solid rgba(232,178,61,.5); padding: 3px 6px; font: inherit; font-size: .82rem; }
.gpu-info { opacity: .75; }
.settings-h .small { font-weight: 400; opacity: .7; font-size: .72rem; }

/* v2.28.2 Kartenvorschau in Teamkampf und Lobby */
.map-preview { position: relative; border: 1px solid rgba(232, 178, 61, 0.45); border-radius: 3px; overflow: hidden; margin: 2px 0 4px; }
.map-preview img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.map-preview-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 10px 6px; font-size: .78rem; text-align: left;
  background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,0)); color: rgba(247, 236, 210, .92); }
.map-preview-text strong { font-family: 'Cinzel', Georgia, serif; color: var(--gold); }

/* v2.28.2 Team-Übersicht: Online-Punkt */
.staff-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #777; vertical-align: 1px; }
.staff-dot.on { background: #4cd964; box-shadow: 0 0 6px #4cd964; }

/* v2.29 Zielrahmen kleiner, ohne Eckquadrate */
.target-frame { width: clamp(150px, 12vw, 200px); padding: 5px 9px 4px; }
.target-frame::before, .target-frame::after { display: none !important; content: none !important; }
.target-name { font-size: .78rem; }
.target-bar { height: 9px; margin-top: 3px; }
.target-hp { font-size: .68rem; margin-top: 1px; }

/* v2.30 Unterstützer/Entwickler unten im Startbildschirm, klein */
.login-partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin-top: 8px; padding-top: 6px;
  border-top: 1px solid rgba(232, 178, 61, .18); font-size: .68rem; letter-spacing: .5px; opacity: .8; }
.login-partners:hover { opacity: 1; }
.lp-label { text-transform: uppercase; color: var(--parchment); opacity: .7; }
.lp-item { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); text-decoration: none; }
.lp-item:hover span { text-decoration: underline; }
.lp-item img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(232,178,61,.35); }
.lp-sep { opacity: .45; }
.license-credits { position: relative; z-index: 12; }
.license-credits summary { cursor: pointer; list-style: none; color: #c6e8f0; border: 1px solid rgba(118,202,226,.38);
  border-radius: 5px; padding: 4px 8px; background: rgba(9,24,37,.8); font: inherit; letter-spacing: .2px; }
.license-credits summary::-webkit-details-marker { display: none; }
.license-credits summary:hover, .license-credits[open] summary { color: #e8fbff; border-color: #8bd9ec; }
.license-panel { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: min(420px, calc(100vw - 30px)); max-height: min(55vh, 520px); overflow: auto; padding: 14px 16px;
  border: 1px solid rgba(138,212,238,.55); border-radius: 8px; background: rgba(7,13,23,.98);
  box-shadow: 0 16px 46px rgba(0,0,0,.72), 0 0 18px rgba(60,169,217,.13);
  color: #e0e6e9; font-size: .73rem; line-height: 1.42; letter-spacing: 0; text-align: left; }
.license-panel strong { color: #bce9f4; }
.license-panel p { margin: 6px 0 10px; }
.license-panel ul { margin: 6px 0 12px; padding-left: 18px; }
.license-panel li { margin: 3px 0; }
.license-panel a { color: #f0c36e; text-decoration: underline; text-underline-offset: 2px; }

/* v2.32.9 – Cinematischer ARPG-Startbildschirm */
#loginScreen.login-v2 {
  --menu-gold: #f1bf58;
  --menu-gold-soft: rgba(241, 191, 88, .36);
  --menu-ice: #8ad7ee;
  padding: clamp(10px, 2.2vh, 24px);
  isolation: isolate;
  background: #05070a;
}
#loginScreen.login-v2 .login-bg {
  background:
    radial-gradient(ellipse at 78% 20%, rgba(86, 115, 162, .24), transparent 31%),
    radial-gradient(ellipse at 48% 110%, rgba(226, 87, 31, .3), transparent 49%),
    radial-gradient(ellipse at 8% 55%, rgba(88, 33, 47, .26), transparent 43%),
    linear-gradient(145deg, #080b12 0%, #11101a 48%, #1b0e13 100%);
}
#loginScreen.login-v2 .login-bg::before,
#loginScreen.login-v2 .login-bg::after {
  content: ''; position: absolute; pointer-events: none; border-radius: 50%; filter: blur(1px);
}
#loginScreen.login-v2 .login-bg::before {
  width: min(54vw, 760px); aspect-ratio: 1; right: -16%; top: -38%;
  background: radial-gradient(circle, rgba(255, 185, 93, .12), rgba(177, 69, 42, .07) 35%, transparent 68%);
  animation: menuCinderPulse 8s ease-in-out infinite alternate;
}
#loginScreen.login-v2 .login-bg::after {
  width: min(58vw, 820px); aspect-ratio: 1; left: -24%; bottom: -52%;
  background: radial-gradient(circle, rgba(193, 66, 36, .22), rgba(143, 32, 39, .08) 42%, transparent 70%);
  animation: menuCinderPulse 11s ease-in-out infinite alternate-reverse;
}
#loginScreen.login-v2 .login-moon {
  opacity: .64; filter: saturate(.75);
  box-shadow: 0 0 48px 14px rgba(170, 185, 255, .2), 0 0 190px 74px rgba(113, 139, 202, .11);
}
#loginScreen.login-v2 .login-fog { opacity: .4; filter: blur(34px); }
#loginScreen.login-v2 .login-panel {
  width: min(1600px, 100%); height: min(960px, 100%);
  padding: clamp(14px, 1.65vw, 26px) clamp(16px, 2vw, 32px);
  grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(10px, 1.35vh, 16px);
  border: 1px solid rgba(239, 190, 91, .74); border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(120, 75, 48, .13), transparent 54%),
    linear-gradient(145deg, rgba(20, 18, 21, .96), rgba(10, 9, 13, .96) 58%, rgba(23, 11, 13, .97));
  box-shadow: 0 0 0 1px rgba(255, 207, 120, .08), 0 25px 90px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 238, 195, .1);
  backdrop-filter: blur(14px) saturate(1.2);
}
#loginScreen.login-v2 .login-panel::before,
#loginScreen.login-v2 .login-panel::after { width: 16px; height: 16px; border-radius: 3px; }
#loginScreen.login-v2 .login-panel::before { top: -8px; left: -8px; }
#loginScreen.login-v2 .login-panel::after { bottom: -8px; right: -8px; }
#loginScreen.login-v2 .login-head {
  align-items: center; gap: 24px; padding: 0 0 clamp(10px, 1.35vh, 16px);
  border-bottom: 1px solid rgba(241, 191, 88, .3); position: relative;
}
#loginScreen.login-v2 .login-head::after {
  content: ''; position: absolute; bottom: -1px; left: 0; width: min(33%, 360px); height: 1px;
  background: linear-gradient(90deg, #ffdc91, rgba(241, 191, 88, 0)); box-shadow: 0 0 12px rgba(255, 194, 83, .55);
}
#loginScreen.login-v2 .login-brand .comic-title {
  font-size: clamp(2.5rem, 5.2vw, 4.35rem); letter-spacing: .055em; line-height: .98;
  background: linear-gradient(100deg, #fff4d7 4%, #e9d6ad 42%, #ffc04d 77%, #fff0cb 100%);
  color: transparent; background-clip: text; -webkit-background-clip: text;
  text-shadow: 0 0 28px rgba(242, 175, 68, .18), 0 5px 28px rgba(0, 0, 0, .72);
}
#loginScreen.login-v2 .login-brand .comic-title span { color: #f5b943; }
#loginScreen.login-v2 .login-brand .subtitle { margin-top: 8px; color: #d1c9bb; font-size: clamp(.88rem, 1.1vw, 1rem); letter-spacing: .025em; opacity: .9; }
#loginScreen.login-v2 .login-links { gap: 8px; }
#loginScreen.login-v2 .login-links .link-btn,
#loginScreen.login-v2 .login-links .discord-link {
  min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 15px; border: 1px solid rgba(231, 188, 100, .38); border-radius: 7px;
  color: #e9dfcb; background: linear-gradient(180deg, rgba(46, 39, 34, .72), rgba(17, 15, 17, .8));
  box-shadow: inset 0 1px 0 rgba(255, 245, 214, .07); transition: .2s ease;
}
#loginScreen.login-v2 .login-links .link-btn:hover,
#loginScreen.login-v2 .login-links .discord-link:hover { transform: translateY(-1px); border-color: #f2c765; color: #ffe7ae; box-shadow: 0 0 20px rgba(235, 174, 66, .18), inset 0 1px 0 rgba(255,255,255,.12); }
#loginScreen.login-v2 .login-links .discord-link { color: #b9d8ff; border-color: rgba(116, 167, 232, .34); }
#loginScreen.login-v2 .login-body { grid-template-columns: minmax(0, 1.06fr) minmax(440px, .94fr); gap: clamp(14px, 1.6vw, 24px); }
#loginScreen.login-v2 .login-hero,
#loginScreen.login-v2 .login-side {
  border: 1px solid rgba(205, 174, 116, .2); border-radius: 12px;
  background: linear-gradient(145deg, rgba(29, 28, 33, .76), rgba(10, 10, 14, .82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 14px 35px rgba(0,0,0,.24);
}
#loginScreen.login-v2 .login-hero {
  padding: clamp(12px, 1.25vw, 20px); overflow: auto;
  background:
    radial-gradient(ellipse at 52% 68%, rgba(194, 108, 50, .17), transparent 43%),
    radial-gradient(ellipse at 50% 32%, rgba(120, 137, 187, .11), transparent 60%),
    linear-gradient(160deg, rgba(24, 25, 31, .88), rgba(9, 10, 14, .93));
}
#loginScreen.login-v2 .login-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: .55;
  background: linear-gradient(115deg, transparent 22%, rgba(255,255,255,.035) 48%, transparent 70%);
}
#loginScreen.login-v2 .hero-empty { min-height: 100%; color: #c8c0b4; font-size: clamp(1rem, 1.2vw, 1.18rem); text-shadow: 0 2px 14px #000; }
#loginScreen.login-v2 .hero-empty::before { content: '✦'; display: block; color: #edbd61; font-size: 2.4rem; filter: drop-shadow(0 0 16px rgba(255,183,67,.7)); margin-bottom: 10px; }
#loginScreen.login-v2 .hero-title {
  position: relative; z-index: 1; grid-template-columns: auto 1fr; padding: 4px 4px 13px; margin-bottom: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--class-color, #e8b23d) 48%, rgba(255,255,255,.08));
}
#loginScreen.login-v2 .hero-icon { font-size: 2.4rem; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--class-color, #e8b23d) 72%, transparent)); }
#loginScreen.login-v2 .hero-name { font-size: clamp(1.4rem, 2vw, 2rem); letter-spacing: .09em; text-shadow: 0 0 20px rgba(240, 184, 86, .2); }
#loginScreen.login-v2 .hero-desc { grid-column: 2; color: #c9c0b2; font-size: .92rem; }
#loginScreen.login-v2 .preview-stage {
  height: clamp(250px, 43vh, 480px); margin: 0 0 13px; border: 1px solid rgba(236, 192, 112, .12); border-radius: 9px;
  background:
    radial-gradient(ellipse at 50% 93%, rgba(255, 124, 45, .24), transparent 34%),
    radial-gradient(ellipse at 50% 70%, rgba(155, 99, 121, .16), transparent 60%),
    linear-gradient(180deg, rgba(13, 14, 20, .2), rgba(5, 6, 9, .65));
  box-shadow: inset 0 -24px 60px rgba(0,0,0,.34), 0 8px 24px rgba(0,0,0,.24);
}
#loginScreen.login-v2 .preview-stage::after { content: ''; position: absolute; inset: 35% 0 0; pointer-events: none; background: linear-gradient(transparent, rgba(8,8,11,.3)); }
#loginScreen.login-v2 .preview-label { z-index: 1; bottom: 12px; color: #e4d6bb; font-size: .8rem; text-shadow: 0 2px 7px #000, 0 0 12px rgba(0,0,0,.9); }
#loginScreen.login-v2 .preview-label.p1 { color: #8ae78d; }
#loginScreen.login-v2 .preview-label.p2 { color: #91dfff; }
#loginScreen.login-v2 .preview-label.p3 { color: #ff9e72; }
#loginScreen.login-v2 .preview-stats { color: #efc362; font-size: .92rem; }
#loginScreen.login-v2 .matchup-line { color: #bbb2a6; }
#loginScreen.login-v2 .preview-row { border-color: rgba(235, 199, 135, .14); padding: 8px 2px; }
#loginScreen.login-v2 .preview-key { border-color: rgba(241, 191, 88, .52); border-radius: 5px; }
#loginScreen.login-v2 .preview-name { color: #f1dba8; }
#loginScreen.login-v2 .login-side { padding: clamp(12px, 1.15vw, 18px); gap: 10px; }
#loginScreen.login-v2 #nameInput,
#loginScreen.login-v2 .admin-code-input,
#loginScreen.login-v2 .code-input {
  min-height: 48px; padding: 11px 15px; border: 1px solid rgba(223, 186, 111, .44); border-radius: 8px;
  background: linear-gradient(180deg, rgba(7, 8, 12, .92), rgba(16, 15, 18, .92)); color: #fff1d0;
  box-shadow: inset 0 2px 10px rgba(0,0,0,.5), 0 1px 0 rgba(255,255,255,.035); transition: border-color .18s ease, box-shadow .18s ease;
}
#loginScreen.login-v2 #nameInput { font-size: 1.1rem; font-weight: 700; }
#loginScreen.login-v2 #nameInput::placeholder,
#loginScreen.login-v2 .code-input::placeholder { color: #a79b88; }
#loginScreen.login-v2 #nameInput:focus,
#loginScreen.login-v2 .admin-code-input:focus,
#loginScreen.login-v2 .code-input:focus { outline: 0; border-color: #f3c762; box-shadow: 0 0 0 3px rgba(238, 187, 78, .15), 0 0 22px rgba(238, 187, 78, .11), inset 0 2px 10px rgba(0,0,0,.5); }
#loginScreen.login-v2 .access-pin-label { color: #8ed6f0; }
#loginScreen.login-v2 .class-grid { gap: 8px; }
#loginScreen.login-v2 .class-card {
  position: relative; isolation: isolate; min-height: 72px; overflow: hidden; padding: 8px 4px 7px;
  border: 1px solid rgba(211, 182, 128, .15); border-bottom: 2px solid color-mix(in srgb, var(--class-color, #e8b23d) 65%, transparent);
  border-radius: 8px; background: linear-gradient(145deg, rgba(48, 43, 41, .82), rgba(17, 17, 21, .95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 5px 12px rgba(0,0,0,.24);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
#loginScreen.login-v2 .class-card::before { content: ''; position: absolute; z-index: -1; inset: 0; opacity: 0; background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--class-color, #e8b23d) 27%, transparent), transparent 72%); transition: opacity .2s ease; }
#loginScreen.login-v2 .class-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--class-color, #e8b23d) 58%, transparent); box-shadow: 0 8px 22px rgba(0,0,0,.38), 0 0 20px color-mix(in srgb, var(--class-color, #e8b23d) 18%, transparent); }
#loginScreen.login-v2 .class-card:hover::before,
#loginScreen.login-v2 .class-card.selected::before { opacity: 1; }
#loginScreen.login-v2 .class-card.selected { border-color: color-mix(in srgb, var(--class-color, #e8b23d) 78%, white); border-bottom-color: var(--class-color, #e8b23d); background: linear-gradient(145deg, rgba(65, 53, 40, .96), rgba(22, 20, 22, .98)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--class-color, #e8b23d) 38%, transparent), 0 0 24px color-mix(in srgb, var(--class-color, #e8b23d) 28%, transparent), inset 0 1px 0 rgba(255,255,255,.13); }
#loginScreen.login-v2 .class-icon { font-size: 1.62rem; filter: drop-shadow(0 2px 5px rgba(0,0,0,.7)); }
#loginScreen.login-v2 .class-name { color: #e9e0d1; font-size: .8rem; letter-spacing: .015em; }
#loginScreen.login-v2 .mode-main { gap: 9px; }
#loginScreen.login-v2 #joinBtn {
  position: relative; overflow: hidden; min-height: 56px; border: 1px solid rgba(255, 225, 156, .7); border-radius: 9px;
  color: #27180b; font-size: clamp(1.18rem, 1.6vw, 1.55rem); letter-spacing: .12em;
  background: linear-gradient(105deg, #b97b2d 0%, #f1c462 34%, #ffdf8a 50%, #d9a548 72%, #9e6123 100%);
  background-size: 200% 100%; box-shadow: 0 6px 25px rgba(211, 139, 47, .22), inset 0 1px 0 rgba(255,255,255,.55);
  transition: background-position .55s ease, box-shadow .2s ease, transform .2s ease;
}
#loginScreen.login-v2 #joinBtn:not(:disabled) { animation: menuCtaGlow 3.8s ease-in-out infinite; }
#loginScreen.login-v2 #joinBtn:not(:disabled):hover { transform: translateY(-1px); background-position: 100% 0; box-shadow: 0 8px 32px rgba(242, 177, 57, .42), inset 0 1px 0 rgba(255,255,255,.7); }
#loginScreen.login-v2 .online-stats { color: #cfc6b6; gap: 6px 16px; font-size: .85rem; }
#loginScreen.login-v2 .count-badge { padding: 2px 8px; border-radius: 5px; background: rgba(255,255,255,.035); }
#loginScreen.login-v2 .mode-box { border: 1px solid rgba(211, 177, 112, .24); border-radius: 9px; padding: 11px; background: linear-gradient(145deg, rgba(34, 31, 31, .72), rgba(12, 12, 16, .85)); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
#loginScreen.login-v2 .mode-title { color: #e5b957; font-size: .96rem; }
#loginScreen.login-v2 .mode-title .small { color: #b9b0a1; font-size: .76rem; }
#loginScreen.login-v2 .mode-row { gap: 7px; }
#loginScreen.login-v2 .size-btn,
#loginScreen.login-v2 .mode-box .menu-btn {
  border: 1px solid rgba(214, 178, 107, .29); border-radius: 7px; color: #ddd3c3;
  background: linear-gradient(180deg, rgba(49, 43, 38, .88), rgba(22, 20, 21, .95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045); transition: .17s ease;
}
#loginScreen.login-v2 .size-btn:hover,
#loginScreen.login-v2 .mode-box .menu-btn:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(245, 201, 111, .72); color: #ffdda0; box-shadow: 0 5px 15px rgba(0,0,0,.28); }
#loginScreen.login-v2 .size-btn.selected { color: #ffda85; border-color: #d5a748; background: linear-gradient(180deg, rgba(111, 76, 35, .82), rgba(46, 31, 22, .96)); box-shadow: 0 0 15px rgba(218, 162, 58, .14), inset 0 1px 0 rgba(255,255,255,.12); }
#loginScreen.login-v2 .map-pick { gap: 6px; }
#loginScreen.login-v2 .map-pick .map-btn { min-height: 38px; padding-inline: 7px; }
#loginScreen.login-v2 .streamer-check,
#loginScreen.login-v2 .howto { color: #c8c0b3; }
#loginScreen.login-v2 .howto { border: 1px solid rgba(211,177,112,.18); border-radius: 7px; padding: 8px 10px; background: rgba(0,0,0,.2); }
#loginScreen.login-v2 .howto summary { color: #e7bb60; }
#loginScreen.login-v2 .credit { color: #c9bdab; }
#loginScreen.login-v2 .storage-note { color: #c59b91; line-height: 1.4; }
#loginScreen.login-v2 .login-partners { gap: 7px 12px; margin-top: 0; padding-top: 9px; border-color: rgba(223, 184, 106, .18); color: #c7bda9; }
#loginScreen.login-v2 .lp-item img { width: 24px; height: 24px; box-shadow: 0 0 0 1px rgba(232,178,61,.4), 0 0 12px rgba(232,178,61,.12); }
#loginScreen.login-v2 :focus-visible { outline: 2px solid #a9e7f7; outline-offset: 3px; }
@keyframes menuCinderPulse { from { transform: scale(.94); opacity: .72; } to { transform: scale(1.08); opacity: 1; } }
@keyframes menuCtaGlow { 0%, 100% { box-shadow: 0 6px 25px rgba(211,139,47,.19), inset 0 1px 0 rgba(255,255,255,.55); } 50% { box-shadow: 0 7px 32px rgba(238,163,52,.36), inset 0 1px 0 rgba(255,255,255,.6); } }
@media (max-width: 1080px) {
  #loginScreen.login-v2 .login-body { grid-template-columns: minmax(0, 1fr) minmax(380px, .95fr); }
  #loginScreen.login-v2 .class-grid { gap: 6px; }
  #loginScreen.login-v2 .class-card { min-height: 64px; }
}
@media (max-width: 900px) {
  #loginScreen.login-v2 { padding: 8px; }
  #loginScreen.login-v2 .login-panel { width: 100%; height: 100%; padding: 14px; border-radius: 10px; }
  #loginScreen.login-v2 .login-head { align-items: flex-start; }
  #loginScreen.login-v2 .login-body { display: flex; flex-direction: column; }
  #loginScreen.login-v2 .login-hero { order: 0; }
  #loginScreen.login-v2 .login-side { overflow: visible; }
  #loginScreen.login-v2 .preview-stage { height: clamp(210px, 34vh, 320px); }
}
@media (max-width: 560px) {
  #loginScreen.login-v2 { padding: 0; }
  #loginScreen.login-v2 .login-panel { padding: 12px 10px; border-radius: 0; }
  #loginScreen.login-v2 .login-head { gap: 10px; }
  #loginScreen.login-v2 .login-brand .comic-title { font-size: clamp(2rem, 10vw, 3rem); }
  #loginScreen.login-v2 .login-brand .subtitle { font-size: .8rem; }
  #loginScreen.login-v2 .login-links { width: 100%; justify-content: stretch; }
  #loginScreen.login-v2 .login-links > * { flex: 1; padding-inline: 7px; font-size: .73rem; }
  #loginScreen.login-v2 .login-body { gap: 10px; }
  #loginScreen.login-v2 .login-hero, #loginScreen.login-v2 .login-side { padding: 10px; }
  #loginScreen.login-v2 .class-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #loginScreen.login-v2 .class-card { min-height: 59px; }
  #loginScreen.login-v2 .map-pick { flex-wrap: wrap; }
  #loginScreen.login-v2 .map-pick .map-btn { flex: 1 1 calc(50% - 6px); }
  #loginScreen.login-v2 .login-partners { font-size: .61rem; }
}
@media (max-height: 760px) and (min-width: 901px) {
  #loginScreen.login-v2 .login-panel { gap: 8px; padding-block: 12px; }
  #loginScreen.login-v2 .preview-stage { height: clamp(205px, 34vh, 320px); }
  #loginScreen.login-v2 .class-card { min-height: 58px; padding-block: 4px; }
  #loginScreen.login-v2 .class-icon { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  #loginScreen.login-v2 .login-bg::before,
  #loginScreen.login-v2 .login-bg::after,
  #loginScreen.login-v2 #joinBtn:not(:disabled) { animation: none; }
  #loginScreen.login-v2 * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* v2.30 Kartenname unter der Minimap */
.map-name-label { position: fixed; top: 237px; right: 14px; width: 173px; z-index: 20; text-align: center; pointer-events: none;
  font-family: 'Cinzel', Georgia, serif; font-size: .78rem; letter-spacing: 1.5px; color: var(--gold); text-shadow: 0 1px 3px #000, 0 0 8px rgba(0,0,0,.8); }
.leaderboard { top: 261px; }
@media (max-width: 560px) { .map-name-label { top: 191px; width: 127px; font-size: .66rem; } .leaderboard { top: 211px; } }

/* v2.30 ESC-Menü modern: Liste mit Symbolen und Abschnitten statt Knopfraster */
.menu-panel { overflow-x: hidden; }
.menu-main-v2 { gap: 10px; }
.menu-resume { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.25rem; padding: 12px; }
.menu-resume .mi-ico { width: 22px; height: 22px; fill: currentColor; }
.menu-list { display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.25)); border: 1px solid rgba(232,178,61,.18); }
.menu-sec { font: 700 .62rem 'Alegreya Sans', sans-serif; letter-spacing: 2px; text-transform: uppercase; color: rgba(232,178,61,.65); padding: 8px 10px 2px; }
.menu-row-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent;
  color: var(--parchment); text-align: left; cursor: pointer; text-decoration: none; transition: background .15s, transform .15s; }
.menu-row-btn:hover, .menu-row-btn:focus-visible { background: rgba(232,178,61,.12); outline: none; transform: translateX(2px); }
.menu-row-btn .mi-ico { flex: none; width: 20px; height: 20px; fill: var(--gold); opacity: .9; }
.mi-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mi-label { font: 700 .95rem 'Cinzel', Georgia, serif; letter-spacing: .4px; }
.mi-sub { font: 400 .72rem 'Alegreya Sans', sans-serif; opacity: .6; }
.mi-chev { opacity: .45; font-size: 1.1rem; }
.discord-row .mi-ico { fill: #8a9bff; }
.discord-row .mi-label { color: #b9c2ff; }
.menu-leave { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 2px; padding: 8px; border-radius: 6px;
  background: transparent; border: 1px solid rgba(214,70,70,.45); color: #ffb7bf; font: 700 .85rem 'Cinzel', Georgia, serif; cursor: pointer; }
.menu-leave:hover { background: rgba(120,20,30,.35); }
.menu-leave .mi-ico { width: 16px; height: 16px; fill: currentColor; }

/* v2.30 Truhen-Hinweis */
.chest-prompt { position: fixed; left: 50%; bottom: 210px; transform: translateX(-50%); z-index: 24; padding: 7px 16px; border-radius: 6px;
  font: 700 .9rem 'Cinzel', Georgia, serif; color: #fff4d8; background: rgba(20, 12, 6, .82); border: 1px solid #c89a4a; cursor: pointer;
  box-shadow: 0 0 14px rgba(0,0,0,.6); }
.chest-prompt.tier-rare { border-color: #7ec8ff; box-shadow: 0 0 16px rgba(126,200,255,.35); }
.chest-prompt.tier-epic { border-color: #ffd84a; box-shadow: 0 0 20px rgba(255,216,74,.45); color: #ffe9a0; }

/* v2.30 Schadens- und Heilzahlen rund 10 % größer */
.float-num { font-size: 1.1rem; }
.float-num.crit { font-size: 1.6rem; }
.float-num.evade { font-size: 0.94rem; }

/* v2.31 Gruppe fest unter der Gegneranzeige (gleiche Spalte, gleiche Breite) */
.party-panel { position: fixed; z-index: 21; margin-top: 0; min-width: 0; pointer-events: none;
  top: calc(max(33vh, 330px) + 64px); right: calc(50% + clamp(110px, 8vw, 170px) + 15vw); left: auto;
  width: clamp(150px, 12vw, 200px); padding: 5px 9px 6px; }
.party-panel .party-name { max-width: 100%; }
@media (max-width: 760px) { .party-panel { top: 184px; right: auto; left: 8px; width: 170px; } }

.round-combat-hud { width: 100%; box-sizing: border-box; padding: 8px 12px; display: flex; align-items: baseline;
  justify-content: space-between; gap: 8px; border-color: rgba(216, 177, 105, .48); background: rgba(15, 12, 18, .83); }
.round-combat-hud span { color: #d9bd85; font: 700 .69rem 'Cinzel', Georgia, serif; letter-spacing: .07em; }
.round-combat-hud strong { color: #fff0c8; font-size: 1.22rem; font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(244, 175, 75, .55); }
.round-combat-hud small { color: #b8b7b9; font-size: .7rem; font-variant-numeric: tabular-nums; }
/* v2.70 Kill-Serie und Kopfgeld */
.streak-hud { width: 100%; box-sizing: border-box; padding: 6px 12px; color: #e9d3a4; font: 700 .72rem 'Cinzel', Georgia, serif; letter-spacing: .05em; }
.streak-hud.hot { color: #ffd9c2; border-color: #c8402a; box-shadow: 0 0 14px rgba(230, 60, 30, .45), inset 0 0 18px rgba(160, 20, 10, .35); animation: streakpulse 1.6s ease-in-out infinite; }
@keyframes streakpulse { 50% { box-shadow: 0 0 22px rgba(255, 80, 40, .7), inset 0 0 22px rgba(190, 30, 14, .5); } }
.player-tag .tag-bounty { margin: 0 auto 2px; padding: 1px 7px; width: max-content; border-radius: 3px; background: rgba(120, 12, 8, .88); border: 1px solid #ff6a3a;
  color: #ffe2c8; font: 800 .6rem/1.3 sans-serif; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 0 8px rgba(255, 70, 30, .55); }
.round-combat-summary { width: 100%; box-sizing: border-box; padding: 12px 14px; border-color: #e0ad60;
  background: linear-gradient(130deg, rgba(45, 27, 27, .97), rgba(15, 14, 24, .96));
  box-shadow: 0 0 28px rgba(255, 172, 76, .24), inset 0 1px rgba(255, 227, 173, .22); }
.round-combat-summary:not(.hidden) { animation: combatSummaryIn .5s cubic-bezier(.17,.67,.18,1.16) both; }
.round-combat-summary strong { display: block; color: #f4d08e; font: 700 .8rem 'Cinzel', Georgia, serif; margin-bottom: 7px; }
.round-combat-summary .summary-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.round-combat-summary .summary-stats span { color: #eee1ce; font-size: .69rem; }
.round-combat-summary .summary-stats b { display: block; color: #ffdc9c; font-size: 1rem; font-variant-numeric: tabular-nums; }
@keyframes combatSummaryIn { from { opacity: 0; transform: translateY(-18px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.nebular-quest-panel { width: 100%; box-sizing: border-box; padding: 9px 12px; border-color: rgba(135, 158, 237, .58);
  background: rgba(14, 16, 33, .9); color: #c6d4f9; font-size: .75rem; }
.nebular-quest-panel strong { display: block; color: #e1c6ff; font: 700 .8rem 'Cinzel', Georgia, serif; margin-bottom: 3px; }
.nebular-quest-panel small { display: block; color: #aeb9d5; margin-top: 4px; }
.nebular-interact-prompt { position: fixed; z-index: 24; left: 50%; bottom: 24%; transform: translateX(-50%);
  padding: 8px 14px; background: rgba(14, 15, 32, .94); color: #e9d4ff; border-color: #9878cb;
  font: 700 .8rem 'Cinzel', Georgia, serif; pointer-events: none; text-align: center; }
.armor-upgrades { margin: 14px 0; padding: 12px; border: 1px solid rgba(157, 137, 215, .48);
  border-radius: 7px; background: linear-gradient(130deg, rgba(23, 23, 43, .95), rgba(30, 19, 35, .92)); }
.armor-upgrades h3 { margin: 0 0 9px; color: #d9b8ff; font: 700 .9rem 'Cinzel', Georgia, serif; }
.armor-materials { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-bottom: 9px; color: #c9c5e1; font-size: .76rem; }
.armor-upgrade-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 9px; align-items: center; padding: 7px 0;
  border-top: 1px solid rgba(193, 171, 225, .19); }
.armor-upgrade-row strong { color: #e7d7f7; font-size: .8rem; }
.armor-upgrade-row small { grid-column: 1; color: #b2a8c7; font-size: .71rem; }
.armor-upgrade-row button { grid-column: 2; grid-row: 1 / 3; }
@media (max-width: 560px) { .armor-upgrade-row { grid-template-columns: 1fr; } .armor-upgrade-row button { grid-column: 1; grid-row: auto; } }

/* v2.32 Vampirmal */
.kill-line.warn { color: #ff7a7a; border-color: #b0182a; }
.kill-line.gold { color: #ffd76a; border-color: #b8902a; }
.player-tag.marked .tag-name { color: #ff4a58; text-shadow: 0 0 6px rgba(255, 30, 50, 0.8); }
/* v2.33.0: HUD-Anzeigen auf schmalen und niedrigen Spielfenstern entkoppeln */
@media (max-width: 760px) {
  .round-timer { top: 8px; left: 8px; transform: none; max-width: calc(50vw - 16px); padding: 4px 8px; font-size: .78rem; }
  .hud-left { top: 48px; left: 8px; max-width: min(300px, calc(50vw - 12px)); }
  .lobby-code-hud, body.mode-team .lobby-code-hud { top: 8px; right: 8px; left: auto; transform: none; max-width: calc(50vw - 16px); padding: 4px 8px; font-size: .72rem; }
  .lobby-code-hud strong { font-size: .95rem; letter-spacing: 2px; }
  .round-banner { padding: clamp(210px, 30vh, 320px) 8px 8px; }
  .round-banner-panel { width: min(680px, 96vw); max-width: 96vw; }
  .round-banner-title { font-size: clamp(.78rem, 3vw, 1rem) !important; }
  .round-banner-list { max-height: 23vh; overflow: auto; }
}
@media (max-height: 480px) {
  .round-timer { top: 5px; padding: 3px 7px; font-size: .7rem; }
  .hud-left { top: 38px; gap: 4px; }
  .lobby-code-hud, body.mode-team .lobby-code-hud { top: 5px; padding: 3px 7px; }
  .round-banner { padding-top: 150px; }
  .round-banner-list { max-height: 19vh; }
  .crown-marker { font-size: .68rem; padding: 2px 6px; }
}

/* Figuren-Inspektor: eine klare Werkzeugleiste statt weiterer HUD-Dekoration. */
.preview-inspector { margin: 8px 0 12px; padding: 10px 12px; border: 1px solid rgba(230, 184, 99, .35);
  border-radius: 8px; background: linear-gradient(145deg, rgba(37, 29, 27, .94), rgba(12, 13, 20, .96));
  box-shadow: inset 0 1px rgba(255, 237, 194, .08), 0 8px 22px rgba(0, 0, 0, .25); }
.preview-inspector-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.preview-inspector-head strong { color: #f4d79e; font: 700 .82rem 'Cinzel', Georgia, serif; letter-spacing: .08em; }
.preview-inspector-head span { color: #b9b4ad; font-size: .72rem; }
.preview-inspector-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.preview-inspector-tools label { color: #c9bca3; font-size: .72rem; font-weight: 800; margin-left: 6px; }
.preview-inspector-tools select, .preview-turn { min-height: 32px; border: 1px solid rgba(227, 180, 96, .45);
  border-radius: 5px; background: #161722; color: #f5ead8; font: 700 .76rem 'Alegreya Sans', sans-serif; }
.preview-inspector-tools select { flex: 1 1 116px; min-width: 100px; padding: 4px 7px; }
.preview-turn { min-width: 34px; padding: 2px 8px; cursor: pointer; font-size: 1.12rem; transition: border-color .18s, background .18s; }
.preview-turn:hover, .preview-turn:focus-visible, .preview-inspector-tools select:focus-visible { border-color: #f6d99f; background: #303143; outline: 2px solid rgba(246, 217, 159, .32); outline-offset: 1px; }
.preview-stage { cursor: grab; touch-action: pan-y; }
.preview-stage.dragging { cursor: grabbing; touch-action: none; }
.raid-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px;
  padding: 9px 10px; border: 1px solid rgba(115, 159, 224, .36); border-radius: 7px;
  background: linear-gradient(110deg, rgba(25, 25, 43, .86), rgba(40, 22, 43, .74)); }
.raid-entry > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.raid-entry strong { color: #b8cfff; font: 700 .79rem 'Cinzel', Georgia, serif; }
.raid-entry span { color: #cbc7d7; font-size: .7rem; }
.raid-entry .size-pick { margin: 0; }
.raid-entry .menu-btn { min-height: 34px; border-color: rgba(142, 178, 237, .52); color: #dde9ff; }
#lobbyRaidSizePick { align-items: center; flex-wrap: wrap; gap: 7px; padding: 9px 11px; border: 1px solid rgba(142, 178, 237, .25); border-radius: 8px; background: rgba(45, 53, 82, .17); }
#lobbyRaidSizePick span { color: #bed5f3; font: 700 .76rem 'Cinzel', Georgia, serif; margin-right: 6px; }
#lobbyRaidTierInput { width: 62px; min-height: 34px; padding: 4px 7px; color: #edf3ff; background: #171b2a; border: 1px solid rgba(142, 178, 237, .5); border-radius: 6px; }
#lobbyRaidTierInput:focus-visible { outline: 2px solid #b9d6ff; outline-offset: 2px; }
.moon-sigil { min-width: 34px; color: #b7aece !important; }
.moon-sigil-pulse { animation: moonSigilPulse .65s ease-out; }
.moon-sigil-awake { color: #d9c9ff !important; text-shadow: 0 0 9px #987be8, 0 0 18px #7463c9; }
.moon-secret { position: fixed; z-index: 110; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0;
  max-width: min(92vw, 520px); padding: 12px 18px; border: 1px solid #9583bc; border-radius: 8px;
  background: linear-gradient(120deg, #1c1933, #382448); color: #efe5ff; font: 700 .82rem 'Cinzel', Georgia, serif;
  text-align: center; pointer-events: none; box-shadow: 0 0 28px rgba(119, 96, 193, .35); transition: opacity .3s, transform .3s; }
.moon-secret.revealed { opacity: 1; transform: translate(-50%, 0); }
@keyframes moonSigilPulse { 50% { filter: brightness(2); transform: scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .moon-sigil-pulse { animation: none; } .moon-secret { transition: none; } }
@media (max-width: 540px) {
  .preview-inspector-head { flex-direction: column; gap: 2px; }
  .preview-inspector-tools label { margin-left: 0; }
  .raid-entry { grid-template-columns: 1fr auto; }
  .raid-entry .menu-btn { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  #actionBar .ability-btn { width: 36px; height: 40px; }
  #actionBar { gap: 3px; }
}

/* v2.43 Fortschritt */
.progress-panel { border: 1px solid rgba(201,163,90,.35); border-radius: 6px; padding: 8px 10px; margin: 6px 0 10px; background: rgba(12,10,14,.55); display: grid; gap: 8px; }
.progress-rank { display: grid; gap: 4px; }
.progress-rank strong { font-size: 1.05rem; letter-spacing: .5px; }
.progress-bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; }
.achievement-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.achievement { border: 1px solid rgba(255,255,255,.1); border-radius: 4px; padding: 5px 7px; display: grid; gap: 2px; opacity: .8; }
.achievement.done { border-color: var(--gold, #c9a35a); opacity: 1; box-shadow: 0 0 8px rgba(201,163,90,.25) inset; }
.enchant-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.target-rank { font-size: .64rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; text-shadow: 0 0 4px #000; margin: -1px 0 2px; }
/* v2.44 Namensschild mit fester Höhe: Name und Lebensleiste bleiben an ihrem Platz */
.player-tag .tag-name { height: 1.1rem; line-height: 1.1rem; }
.player-tag .tag-bar { flex: none; }
.chest-prompt.tier-mythic { border-color: #b46cff; color: #e8d4ff; box-shadow: 0 0 14px rgba(180,108,255,.5); }
/* v2.45.2 Admin-Skin in der Vorwahl */
.skin-row label.admin-skin span { color: #e8c46a; text-shadow: 0 0 6px rgba(232,196,106,.35); }
.skin-row label.admin-skin:first-of-type { margin-top: 4px; }
.skin-row .admin-skin-note { opacity: .7; }

/* v2.46 – Hauptmenü im Glas-Look: links Held & Klasse, Mitte eine Figur, rechts Moduswahl */
#loginScreen.login-v2 .login-panel {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(140, 110, 70, .10), transparent 55%),
    linear-gradient(150deg, rgba(16, 17, 22, .72), rgba(8, 8, 12, .78) 60%, rgba(20, 10, 14, .8));
  border-color: rgba(239, 198, 120, .42);
  backdrop-filter: blur(16px) saturate(1.25);
}
#loginScreen.login-v2 .login-body {
  grid-template-columns: minmax(250px, .62fr) minmax(0, 1.3fr) minmax(350px, .86fr);
  grid-template-areas: "roster hero side";
}
#loginScreen.login-v2 .login-roster { grid-area: roster; }
#loginScreen.login-v2 .login-hero { grid-area: hero; }
#loginScreen.login-v2 .login-side { grid-area: side; }
#loginScreen.login-v2 .login-roster,
#loginScreen.login-v2 .login-hero,
#loginScreen.login-v2 .login-side {
  min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(232,178,61,.35) transparent;
  border: 1px solid rgba(255, 255, 255, .07); border-top-color: rgba(255, 236, 200, .14); border-radius: 14px;
  background: linear-gradient(160deg, rgba(36, 38, 48, .46), rgba(10, 11, 16, .62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 40px rgba(0, 0, 0, .28);
}
#loginScreen.login-v2 .login-roster { display: flex; flex-direction: column; gap: 9px; padding: clamp(12px, 1.1vw, 18px); }
#loginScreen.login-v2 .login-hero {
  background:
    radial-gradient(ellipse at 50% 62%, rgba(194, 108, 50, .14), transparent 46%),
    radial-gradient(ellipse at 50% 28%, rgba(120, 137, 187, .10), transparent 62%),
    linear-gradient(160deg, rgba(30, 32, 42, .5), rgba(8, 9, 13, .66));
}
.pane-head { display: flex; align-items: center; gap: 10px; margin: 2px 0 0; color: #d9b56a;
  font: 700 .72rem 'Cinzel', Georgia, serif; letter-spacing: .18em; text-transform: uppercase; }
.pane-head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(217, 181, 106, .45), transparent); }
#loginScreen.login-v2 .login-roster .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
#loginScreen.login-v2 .login-roster .class-card {
  min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 6px 4px; text-align: center; border-radius: 9px;
  background: linear-gradient(150deg, rgba(52, 52, 62, .5), rgba(14, 14, 20, .7));
}
#loginScreen.login-v2 .login-roster .class-icon { font-size: 1.3rem; }
#loginScreen.login-v2 .login-roster .class-name { font-size: .76rem; line-height: 1.1; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; max-width: 100%; }

/* Mitte: eine Figur, Werkzeugleiste, Inspektion, Fähigkeitsraster */
#loginScreen.login-v2 .preview-stage { height: clamp(240px, 38vh, 520px); background:
    radial-gradient(ellipse at 50% 92%, rgba(255, 124, 45, .22), transparent 32%),
    radial-gradient(ellipse at 50% 60%, rgba(140, 150, 200, .10), transparent 62%),
    linear-gradient(180deg, rgba(13, 14, 20, .1), rgba(5, 6, 9, .5)); }
.preview-toolbar { display: flex; align-items: center; gap: 6px; margin: -4px 0 10px; }
.preview-toolbar .inspect-toggle { margin-left: auto; min-height: 36px; padding: 6px 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(146, 196, 236, .45); color: #d7ecff; font: 700 .8rem 'Cinzel', Georgia, serif; letter-spacing: .05em;
  background: linear-gradient(180deg, rgba(44, 58, 82, .62), rgba(16, 20, 32, .78)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: border-color .18s, box-shadow .18s, transform .18s; }
.preview-toolbar .inspect-toggle:hover { border-color: #a9dcff; box-shadow: 0 0 18px rgba(120, 190, 255, .2); transform: translateY(-1px); }
.preview-toolbar .inspect-toggle.active { border-color: rgba(241, 191, 88, .7); color: #ffe2a2; background: linear-gradient(180deg, rgba(92, 66, 34, .7), rgba(30, 22, 16, .85)); }
#loginScreen.login-v2 .preview-turn { background: rgba(14, 15, 22, .7); border-color: rgba(227, 180, 96, .32); border-radius: 8px; }
#loginScreen.login-v2 .preview-inspector { margin: 0 0 12px; border-radius: 12px; border-color: rgba(241, 191, 88, .3);
  background: linear-gradient(150deg, rgba(40, 34, 30, .62), rgba(12, 13, 20, .78)); }
.inspect-sub { margin: 4px 0 6px; color: #e7c47a; font: 700 .74rem 'Cinzel', Georgia, serif; letter-spacing: .12em; text-transform: uppercase; }
.inspect-skins .skin-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; margin: 0; padding: 0; border: 0; }
.inspect-skins .skin-row label { align-items: flex-start; padding: 7px 9px; border-radius: 8px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); }
.inspect-skins .skin-row label:has(input:checked) { border-color: rgba(241, 191, 88, .7); background: rgba(120, 84, 36, .3); box-shadow: 0 0 14px rgba(241, 191, 88, .15); }
.inspect-skins .skin-row label .small { padding-left: 0; font-size: .68rem; opacity: .75; }
.inspect-skins .skin-row .admin-skin-note { grid-column: 1 / -1; }
.inspect-tiers { margin-top: 10px; }
.tier-btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tier-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 50px; padding: 6px 4px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: #ddd3c3; background: linear-gradient(180deg, rgba(48, 46, 52, .6), rgba(16, 16, 22, .8));
  transition: border-color .16s, box-shadow .16s, transform .16s; }
.tier-btn:hover { transform: translateY(-1px); border-color: rgba(241, 191, 88, .55); }
.tier-btn.reached { border-color: rgba(120, 214, 140, .4); }
.tier-btn.locked { opacity: .78; }
.tier-btn.selected { border-color: #f1bf58; color: #ffe2a2; box-shadow: 0 0 16px rgba(241, 191, 88, .25); background: linear-gradient(180deg, rgba(104, 74, 34, .72), rgba(36, 26, 18, .9)); }
.tier-num { font: 900 .9rem 'Cinzel', Georgia, serif; }
.tier-name { font-size: .66rem; text-align: center; line-height: 1.15; }
.tier-detail { margin-top: 6px; color: #c8beb0; line-height: 1.35; }
#loginScreen.login-v2 .preview-inspector-tools { margin-top: 10px; }
.hero-stats { color: #efc362; font-weight: 800; font-size: .9rem; margin: 2px 0 4px; }
.hero-matchup { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; font-size: .78rem; }
.hero-matchup .mu-strong { color: #9fe0a4; }
.hero-matchup .mu-weak { color: #f0a0a0; }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; margin: 8px 0; }
.skill-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 66px; padding: 15px 3px 5px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.09); border-radius: 10px; color: #e8dcc8;
  background: linear-gradient(160deg, rgba(50, 50, 60, .55), rgba(12, 12, 18, .78)); transition: border-color .15s, box-shadow .15s, transform .15s; }
.skill-tile:hover, .skill-tile.selected { border-color: rgba(241, 191, 88, .7); box-shadow: 0 0 16px rgba(241, 191, 88, .16); transform: translateY(-1px); }
.skill-tile.ultimate { border-color: rgba(190, 140, 255, .45); }
.skill-tile.ultimate.selected { border-color: #c79bff; box-shadow: 0 0 16px rgba(170, 120, 255, .25); }
.skill-key { position: absolute; top: 4px; left: 5px; min-width: 18px; padding: 0 4px; border-radius: 4px; font: 800 .62rem 'Alegreya Sans', sans-serif;
  color: #f1d9a6; background: rgba(0,0,0,.45); border: 1px solid rgba(241, 191, 88, .35); }
.skill-icon { font-size: 1.45rem; line-height: 1.1; }
.skill-name { font-size: .68rem; font-weight: 800; text-align: center; line-height: 1.15; }
.skill-detail { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.28); }
.skill-detail-head { display: flex; align-items: center; gap: 8px; }
.skill-detail-head strong { color: #f3dcaa; font: 700 .92rem 'Cinzel', Georgia, serif; }
.skill-detail-head kbd { margin-left: auto; padding: 1px 6px; border-radius: 4px; border: 1px solid rgba(241, 191, 88, .45); font-size: .7rem; color: #f1d9a6; }
.skill-detail-icon { font-size: 1.3rem; }
.skill-detail-desc { margin: 6px 0 4px; font-size: .82rem; color: #ddd3c3; }
.skill-detail-meta { font-size: .72rem; color: #b5ab9c; line-height: 1.4; }

/* Rechts: Moduswahl als Reiter */
.mode-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 11px;
  background: rgba(0, 0, 0, .32); border: 1px solid rgba(255,255,255,.06); }
.mode-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 46px; padding: 6px 4px;
  cursor: pointer; border: 1px solid transparent; border-radius: 8px; color: #c9bfae; background: transparent;
  font: 700 .82rem 'Cinzel', Georgia, serif; letter-spacing: .04em; transition: background .16s, color .16s, border-color .16s; }
.mode-tab:hover { color: #f3dcaa; background: rgba(255,255,255,.04); }
.mode-tab.active { color: #ffe2a2; border-color: rgba(241, 191, 88, .55); background: linear-gradient(180deg, rgba(104, 74, 34, .6), rgba(36, 26, 18, .82)); box-shadow: 0 0 16px rgba(241, 191, 88, .14); }
.mode-tab.soon { color: #9aa6b8; }
.mode-tab.soon.active { color: #c9d8ee; border-color: rgba(146, 196, 236, .45); background: linear-gradient(180deg, rgba(40, 52, 74, .6), rgba(16, 20, 32, .82)); }
.soon-badge { display: inline-block; padding: 0 6px; border-radius: 4px; font: 800 .58rem 'Alegreya Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: #0e1622; background: #9fc9ef; }
.mode-pane { display: flex; flex-direction: column; gap: 9px; }
.mode-pane.hidden { display: none; }
.soon-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 10px; border: 1px dashed rgba(146, 196, 236, .4); background: rgba(30, 40, 60, .25); }
.soon-card strong { color: #c9e0ff; font: 700 1rem 'Cinzel', Georgia, serif; }
.soon-card p { margin: 0; font-size: .84rem; color: #c3c9d4; }
.soon-card .soon-badge { align-self: flex-start; }
.dungeon-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 10px;
  border: 1px solid rgba(214, 160, 90, .36); border-radius: 7px; background: linear-gradient(110deg, rgba(43, 30, 22, .8), rgba(30, 20, 26, .7)); }
.dungeon-entry > div { display: flex; flex-direction: column; gap: 2px; }
.dungeon-entry strong { color: #f0c98a; font: 700 .79rem 'Cinzel', Georgia, serif; }
.dungeon-entry span { color: #cbc7c0; font-size: .7rem; }
#loginScreen.login-v2 .dungeon-entry .menu-btn, #loginScreen.login-v2 .code-join .menu-btn, #loginScreen.login-v2 .raid-entry .menu-btn { min-height: 36px; border-radius: 7px; }
.code-join { align-items: center; padding-top: 4px; }
.code-join-label { color: #b9b0a1; font-size: .74rem; font-weight: 800; }
#loginScreen.login-v2 .code-join .code-input { flex: 1; min-height: 38px; padding: 6px 10px; letter-spacing: .2em; }
#loginScreen.login-v2 .mode-main { gap: 9px; }
#loginScreen.login-v2 .login-side .map-pick { flex-wrap: wrap; }
#loginScreen.login-v2 .login-side .map-pick .map-btn { flex: 1 1 auto; }
#loginScreen.login-v2 .login-side .mode-title .small { display: block; margin-top: 2px; }

@media (max-width: 1180px) {
  #loginScreen.login-v2 .login-body { grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "hero roster" "hero side"; }
  #loginScreen.login-v2 .login-roster { overflow: visible; }
  #loginScreen.login-v2 .login-roster .class-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #loginScreen.login-v2 .login-roster .class-card { min-height: 52px; padding: 5px 3px; }
}
@media (max-width: 900px) {
  #loginScreen.login-v2 .login-body { display: flex; flex-direction: column; }
  #loginScreen.login-v2 .login-roster { order: 0; overflow: visible; }
  #loginScreen.login-v2 .login-hero { order: 1; overflow: visible; }
  #loginScreen.login-v2 .login-side { order: 2; overflow: visible; }
}
@media (max-width: 560px) {
  #loginScreen.login-v2 .login-brand .comic-title { font-size: clamp(1.5rem, 8.4vw, 3rem); letter-spacing: .03em; }
  #loginScreen.login-v2 .login-roster .class-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tier-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-toolbar { flex-wrap: wrap; }
  .preview-toolbar .inspect-toggle { margin-left: 0; flex: 1 1 100%; }
}

/* v2.46 HUD ohne Überlappungen */
.menu-open-btn { right: 130px; }
@media (min-width: 561px) { .mod-hud-btn { right: 214px; } }
.map-name-label { top: 262px; }
.leaderboard { top: 284px; }
@media (max-width: 560px) { .map-name-label { top: 208px; } .leaderboard { top: 230px; } }
.chat-log { max-height: min(190px, var(--chat-room, 190px)); }
@media (max-width: 1100px) and (hover: hover) { .chat-log { max-height: min(150px, var(--chat-room, 150px)); } }
@media (hover: none) and (pointer: coarse) { .chat-log { max-height: min(110px, var(--chat-room, 110px)); } }
.help-hint.hud-squeezed { display: none; }
.event-banner { top: max(22vh, 266px); }
.center-warning { top: max(34vh, 336px); }
.party-panel { max-height: calc(100vh - max(33vh, 330px) - 240px); overflow: hidden; }
.event-banner { width: max-content; max-width: max(280px, calc(100vw - 660px)); }
.event-banner .event-name { font-size: clamp(1.6rem, 4.2vw, 3.4rem); }
.chat.hud-squeezed:not(.open) .chat-log { display: none; }

/* v2.48 Open World */
body.mode-world #roundTimer, body.mode-world #crownStatus, body.mode-world #eventPanel, body.mode-world #roundCombatHud,
body.mode-world #leaderboardPanel, body.mode-world #crownMarker { display: none !important; }
.world-hud { width: 100%; box-sizing: border-box; padding: 8px 11px 9px; border-color: rgba(216, 177, 105, .55); background: rgba(15, 13, 18, .86); }
.world-hud.safe { border-color: rgba(140, 200, 255, .65); }
.world-hud-top { display: flex; align-items: center; gap: 10px; }
.world-level { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font: 900 1.05rem 'Cinzel', Georgia, serif;
  color: #2a1a06; background: radial-gradient(circle at 35% 30%, #ffe9a8, #d9a03c 70%, #8a5a1c); box-shadow: 0 0 10px rgba(255, 200, 90, .35), inset 0 -2px 4px rgba(0,0,0,.35); }
.world-hud-text { display: flex; flex-direction: column; min-width: 0; }
.world-hud-text strong { color: #f3dcaa; font: 700 .86rem 'Cinzel', Georgia, serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.world-hud-text small { color: #c3baa8; font-size: .7rem; }
.world-hud.safe .world-hud-text small { color: #a9dcff; }
.world-xp { position: relative; height: 12px; margin-top: 7px; border-radius: 6px; overflow: hidden; background: rgba(0,0,0,.55); border: 1px solid rgba(216,177,105,.45); }
.world-xp-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #6a3fc0, #a46cff); transition: width .35s ease; }
.world-xp span { position: relative; display: block; text-align: center; font: 800 .62rem 'Alegreya Sans', sans-serif; line-height: 12px; color: #f2eaff; text-shadow: 0 1px 2px #000; }
.quest-tracker { width: 100%; box-sizing: border-box; padding: 8px 11px; background: rgba(15, 13, 18, .82); border-color: rgba(216,177,105,.4); font-size: .74rem; }
.tracker-title { color: #e7c47a; font: 700 .74rem 'Cinzel', Georgia, serif; letter-spacing: .08em; margin-bottom: 4px; }
.tracker-row { display: flex; flex-direction: column; padding: 4px 0; border-top: 1px solid rgba(255,255,255,.06); }
.tracker-row strong { color: #f1e2c0; font-size: .76rem; }
.tracker-row span { color: #c8c0b2; }
.tracker-row.ready strong, .tracker-row.ready span { color: #ffd76a; }
.tracker-hint { display: block; margin-top: 5px; color: #9d958a; font-size: .64rem; }
.tag-level { margin-left: 3px; padding: 0 4px; border-radius: 3px; font-size: .78em; font-weight: 800; color: #ffe3a0; background: rgba(0,0,0,.45); }
.zone-banner { position: fixed; top: max(14vh, 120px); left: 50%; transform: translate(-50%, -14px); z-index: 25; text-align: center; pointer-events: none; opacity: 0; }
.zone-banner.show { animation: bannerIn 3.6s ease-out forwards; }
.zone-name { font: 400 clamp(1.4rem, 3.4vw, 2.4rem) 'Cinzel', Georgia, serif; letter-spacing: 3px; color: #f3dcaa; text-shadow: 2px 2px 0 #140c06, 0 0 18px rgba(0,0,0,.8); }
.zone-info { margin-top: 2px; font: 700 .86rem 'Alegreya Sans', sans-serif; color: #e0d4bc; text-shadow: 0 1px 3px #000; }
.zone-banner.safe .zone-name { color: #cfe9ff; }
.overlay.quest-dialog, .overlay.quest-log, .overlay.world-map { z-index: 45; background: rgba(6, 6, 10, .45); }
.quest-dialog-panel, .world-map-panel { width: min(560px, 94vw); max-height: 84vh; display: flex; flex-direction: column; padding: 14px 16px; background: linear-gradient(150deg, rgba(30, 26, 24, .97), rgba(12, 12, 18, .97)); }
.world-map-panel { width: min(700px, 96vw); }
.quest-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 9px; margin-bottom: 9px; border-bottom: 1px solid rgba(216,177,105,.3); }
.quest-head strong { display: block; color: #f3dcaa; font: 700 1.1rem 'Cinzel', Georgia, serif; }
.quest-head small { color: #b9b0a1; font-size: .78rem; }
.quest-dialog-body { overflow-y: auto; display: flex; flex-direction: column; gap: 9px; }
.quest-card { padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.quest-card.status-available { border-color: rgba(255, 210, 61, .5); }
.quest-card.status-ready { border-color: rgba(255, 210, 61, .85); box-shadow: 0 0 14px rgba(255, 200, 70, .15); }
.quest-card.status-done { opacity: .62; }
.quest-card.status-level, .quest-card.status-locked { opacity: .7; }
.quest-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.quest-card-head strong { color: #f1dba8; font: 700 .92rem 'Cinzel', Georgia, serif; }
.quest-status { color: #b8ad9a; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.status-available .quest-status, .status-ready .quest-status { color: #ffd23d; }
.quest-text { margin: 6px 0; color: #ddd3c3; font-size: .84rem; line-height: 1.4; }
.quest-meta { display: flex; flex-wrap: wrap; gap: 3px 14px; color: #b3a995; font-size: .72rem; }
.quest-progress { color: #ffd76a; font-weight: 800; }
.quest-btn { margin-top: 9px; width: 100%; font-size: .95rem; padding: 8px; }
.quest-group { margin-top: 4px; color: #e7c47a; font: 700 .74rem 'Cinzel', Georgia, serif; letter-spacing: .1em; text-transform: uppercase; }
.quest-where { display: block; margin-top: 4px; color: #9fd8ff; font-size: .7rem; }
#worldMapCanvas { width: 100%; height: auto; max-height: 70vh; aspect-ratio: 1; object-fit: contain; }
/* Hauptmenü: Open-World-Reiter */
.new-badge { background: #ffd23d; color: #2a1a06; }
#loginScreen.login-v2 .world-join { min-height: 52px; border-radius: 9px; font-size: clamp(1.05rem, 1.5vw, 1.4rem); letter-spacing: .08em; color: #0e1a26;
  background: linear-gradient(105deg, #4a86b8 0%, #8fc8f0 45%, #c7e6ff 55%, #5e9bd0 100%); border: 1px solid rgba(200, 230, 255, .7); }
.world-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 10px; border: 1px solid rgba(146, 196, 236, .35); background: rgba(30, 40, 60, .28); }
.world-card strong { color: #c9e0ff; font: 700 1rem 'Cinzel', Georgia, serif; }
.world-card p { margin: 0; color: #c3c9d4; font-size: .84rem; }
.world-card small { color: #9fb2c8; font-size: .72rem; }
.world-zones { list-style: none; margin: 2px 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.world-zones li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.22); font-size: .8rem; }
.world-zones li span { color: #e6ddc9; font-weight: 700; }
.world-zones li em { color: #a9c3dc; font-style: normal; }
body.mode-world #playersOnline .count-badge { display: none; }

/* v2.49 WebGL-Wiederherstellung */
.gl-recover { position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(6, 7, 10, .82); color: #e8dcc0; font-size: 18px; text-align: center; padding: 16px; }
.gl-recover.hidden { display: none; }
.gl-recover-btn.hidden { display: none; }
.load-slow { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #e8c890; font-size: 14px; }

/* Browser survival extension: scoped styles, existing HUD remains intact. */
#survivalToggle{position:fixed;right:18px;bottom:150px;z-index:110;padding:10px 18px;background:#17232b;color:#eed8a6;border:1px solid #a78b52;border-radius:8px}
#survivalPanel{position:fixed;right:18px;bottom:244px;box-sizing:border-box;width:min(370px,90vw);max-height:calc(100dvh - 264px);overflow:auto;z-index:111;background:rgba(15,23,30,.97);border:1px solid #a78b52;border-radius:12px;padding:16px;color:#e8dfca;box-shadow:0 12px 40px #0009;font:14px/1.4 system-ui}
#survivalPanel[hidden],#survivalToggle[hidden]{display:none!important}
#survivalPanel p{margin:8px 0}#survivalPanel button,#survivalPanel select{display:block;box-sizing:border-box;width:100%;margin:7px 0;padding:9px;background:#263440;color:#f2dfb5;border:1px solid #52616b;border-radius:6px;font:inherit;cursor:pointer}
#survivalPanel button:hover{background:#3a4b56}
#survivalPanel .survival-heading{position:sticky;top:-16px;display:flex;align-items:center;gap:12px;padding:8px 0;background:#0f171e;z-index:1}
#survivalPanel h2{font-size:16px;line-height:1.3;margin:0;flex:1}
#survivalPanel .survival-heading button{width:auto;margin:0;padding:7px 10px}
#survivalPanel details{padding:10px 0;border-block:1px solid #52616b;margin:10px 0}
#survivalPanel summary{cursor:pointer;color:#f2dfb5}

/* Browser progression panels */
.hero-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.hero-stat{display:flex;flex-direction:column;gap:6px;padding:14px;background:linear-gradient(140deg,#1d2738,#10131c);border:1px solid #74623e;border-radius:8px;font-variant-numeric:tabular-nums}
.hero-stat small{color:#c6bb9e}.hero-stat strong{font-size:1.05rem;color:#f3e4c4}
#menuCharacter{max-height:70vh;overflow:auto}#menuCharacter>.menu-btn{margin:5px 0;width:100%}
@media(max-width:480px){.hero-stat-grid{grid-template-columns:1fr}}

/* Open World invitation controls; combat health rows use the existing party HUD. */
#worldPartyToggle{position:fixed;right:18px;bottom:196px;z-index:112;padding:10px 18px;background:#182a32;color:#ead9ae;border:1px solid #a68b52;border-radius:8px}
#worldPartyToggle.has-invite{border-color:#f7d678;box-shadow:0 0 15px #d5a63666}
#worldPartyControls{position:fixed;right:18px;bottom:244px;box-sizing:border-box;z-index:113;width:min(420px,88vw);max-height:calc(100dvh - 264px);overflow:auto;padding:18px;background:rgba(13,21,30,.98);border:1px solid #b59b65;border-radius:12px;color:#e5dfcf;font:14px/1.45 system-ui;box-shadow:0 12px 48px #000b}
#worldPartyControls[hidden],#worldPartyToggle[hidden]{display:none!important}
#worldPartyControls h2{margin:0 0 10px;font-size:20px}#worldPartyControls h3{font-size:16px}
#worldPartyControls button{padding:8px 12px;margin:5px 5px 5px 0;border:1px solid #69715e;border-radius:5px;background:#2b3840;color:#f0dfb7;cursor:pointer}
#worldPartyControls button:disabled{opacity:.45;cursor:default}
.world-party-member,.world-party-invitation{padding:10px 0;border-top:1px solid #ffffff20}
.world-party-member strong,.world-party-member span,.world-party-invitation strong{display:block}
.world-party-notice{color:#ffdc8f}
/* v2.71 Duelle 1 gegen 1 */
#worldDuelToggle{position:fixed;right:18px;bottom:242px;z-index:109;padding:10px 18px;background:#2b1a1a;color:#f0d2b0;border:1px solid #a8603a;border-radius:8px}
#worldDuelToggle.has-invite{border-color:#ff9a5a;box-shadow:0 0 15px #e0602a88}
#worldDuelToggle.running{background:#4a1612;border-color:#ff6a3a;color:#ffe0c8}
#worldDuelControls{position:fixed;right:18px;bottom:290px;box-sizing:border-box;z-index:113;width:min(420px,88vw);max-height:calc(100dvh - 310px);overflow:auto;padding:18px;background:rgba(24,13,13,.98);border:1px solid #b5754a;border-radius:12px;color:#e9dccd;font:14px/1.45 system-ui;box-shadow:0 12px 48px #000b}
#worldDuelControls[hidden],#worldDuelToggle[hidden],#worldDuelStatus[hidden]{display:none!important}
#worldDuelControls h2{margin:0 0 10px;font-size:20px}#worldDuelControls h3{font-size:16px;margin:14px 0 6px}
#worldDuelControls button{padding:8px 12px;margin:5px 5px 5px 0;border:1px solid #7a5a48;border-radius:5px;background:#3a2622;color:#f3dcbc;cursor:pointer}
#worldDuelControls button:disabled{opacity:.45;cursor:default}
#worldDuelControls button.selected{background:#8a3a1c;border-color:#ffb07a;color:#fff}
.world-duel-row{padding:10px 0;border-top:1px solid #ffffff20}
.world-duel-row strong,.world-duel-row span{display:block}
.world-duel-notice{color:#ffc08f}.world-duel-small{font-size:12px;opacity:.8}
#worldDuelStatus{position:fixed;left:50%;top:92px;transform:translateX(-50%);z-index:60;padding:7px 16px;text-align:center;pointer-events:none;background:rgba(40,12,10,.86);border:1px solid #c8502a;border-radius:8px;color:#ffe2cc;font:600 13px/1.35 system-ui;box-shadow:0 0 18px rgba(220,70,30,.35)}
#worldDuelStatus strong{display:block;font-size:14px;color:#fff}
.player-tag.duel-foe .tag-name{color:#ff7a4a;text-shadow:0 0 8px rgba(255,90,40,.8)}


/* 2.68.2: B — wide inventory with a separate progression column. */
#menu.inventory-open .menu-panel { width:min(1180px,calc(100vw - 32px)); max-width:1180px; box-sizing:border-box; }
#lootOverview { min-width:0; padding:16px; }
.loot-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr); gap:22px; align-items:start; }
.loot-primary,.loot-sidebar { min-width:0; }
.loot-primary h3 { margin:10px 0; color:var(--gold); }
.loot-sidebar { display:flex; flex-direction:column; gap:12px; }
.loot-fold { border:1px solid #76613c; border-radius:8px; background:#14151de8; padding:12px; overflow-wrap:anywhere; }
.loot-fold summary { cursor:pointer; color:#efd4a0; font-weight:700; padding:4px; }
.loot-fold summary:focus-visible { outline:2px solid var(--gold); }
#lootOverview .loot-equipped { gap:10px; }
#lootOverview .loot-slot { padding:12px 8px; border-radius:6px; }
#lootOverview .loot-grid { grid-template-columns:repeat(auto-fill,minmax(min(200px,100%),1fr)); max-height:none; gap:10px; overflow:visible; }
#lootOverview .loot-item { padding:14px; border-radius:8px; gap:10px; overflow-wrap:anywhere; }
#lootOverview .loot-actions { margin-top:auto; gap:8px; }
#lootOverview .loot-actions .menu-btn { min-height:36px; padding:7px 10px; font-size:.86rem; }
#lootOverview .loot-tabs { gap:8px; margin-bottom:14px; flex-wrap:wrap; }
#lootOverview .loot-head { padding-bottom:12px; border-bottom:1px solid #76613c; }
@media(max-width:800px) { .loot-layout { grid-template-columns:1fr; } #menu.inventory-open .menu-panel { padding:14px; } }
@media(max-width:480px) { #lootOverview { padding:8px; } #lootOverview .loot-equipped { grid-template-columns:1fr; } }

/* 2.68.2: task-oriented construction controls. */
#survivalPanel { width:min(620px,calc(100vw - 28px)); bottom:244px; max-height:calc(100dvh - 270px); }
#survivalPanel .build-stock { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; font-variant-numeric:tabular-nums; }
#survivalPanel .build-stock span { padding:8px 4px; text-align:center; background:#202c34; border-radius:5px; }
#survivalPanel .build-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin:10px 0; }
#survivalPanel .build-tabs button { margin:0; font-size:12px; padding:10px 4px; }
#survivalPanel button[aria-pressed=true] { border-color:#edc375; background:#514326; box-shadow:inset 0 0 0 1px #edc375; }
#survivalPanel button:disabled { opacity:.5; cursor:not-allowed; }
#survivalPanel .build-plans { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
#survivalPanel .build-category h4 { margin:4px 0; color:#d5bd8a; }
#survivalPanel .build-category button { text-align:left; font-weight:650; }
#survivalPanel .build-category small { display:block; font-size:11px; font-weight:400; margin-top:4px; color:#c9c9c2; }
#survivalPanel .build-controls,#survivalPanel .build-confirm { display:flex; gap:8px; }
#survivalPanel #buildConfirm { flex:2; background:#345540; border-color:#81b88d; font-weight:700; }
#survivalPanel .build-confirm button:last-child { flex:1; }
#survivalPanel h3 { margin:16px 0 10px; color:#f2dfb5; }
#survivalPanel .build-message { border-top:1px solid #52616b; padding-top:10px; font-size:12px; color:#cfc5b3; }
@media(max-height:680px) { #survivalPanel { bottom:80px; max-height:calc(100dvh - 100px); } }
@media(max-width:480px) { #survivalPanel .build-plans { grid-template-columns:1fr; } #survivalPanel .build-stock { grid-template-columns:repeat(2,1fr); } }

/* v2.75 Talentbaum je Klasse: drei Zweige nebeneinander */
.talent-tree { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 10px; }
.talent-branch { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid rgba(212, 166, 74, .3); border-radius: 8px; background: linear-gradient(180deg, rgba(40, 18, 14, .6), rgba(14, 8, 10, .6)); }
.talent-branch h4 { margin: 0; color: #f3d9a0; font: 700 .86rem 'Cinzel', Georgia, serif; letter-spacing: .04em; text-align: center; }
.talent-branch-points { display: block; text-align: center; color: #b8a888; font-size: .7rem; margin-bottom: 2px; }
.talent-node { position: relative; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 7px 9px; border: 1px solid #5a4632; border-radius: 6px; background: rgba(24, 16, 14, .85); color: #e8dcc6; cursor: pointer; font: 12px/1.35 system-ui; }
.talent-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.talent-node strong { font-size: .8rem; color: #f2e2c0; overflow-wrap: anywhere; hyphens: auto; }
.talent-node small { color: #c2b6a2; font-size: .7rem; }
.talent-node .talent-next { color: #9fd08a; }
.talent-node .talent-rank { flex: none; color: #d4a64a; font-weight: 800; font-size: .74rem; font-variant-numeric: tabular-nums; }
.talent-node.major { border-color: #8a6a3a; background: linear-gradient(180deg, rgba(60, 30, 16, .9), rgba(28, 14, 12, .9)); }
.talent-node.active { border-color: #d4a64a; box-shadow: inset 0 0 12px rgba(212, 166, 74, .22); }
.talent-node.full { border-color: #ffcf6a; box-shadow: 0 0 10px rgba(255, 190, 80, .35), inset 0 0 14px rgba(255, 190, 80, .25); }
.talent-node.locked { opacity: .45; filter: grayscale(.6); }
.talent-node:disabled { cursor: default; }
.talent-node:not(:disabled):hover { border-color: #ffd27a; background: rgba(50, 28, 18, .95); }
@media (max-width: 720px) { .talent-tree { grid-template-columns: 1fr; } }
