/* ============================================================
   ⚔ AETHORIA – Medieval Fantasy UI
   Fonts: Cinzel Decorative (titles), Cinzel (UI), IM Fell (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cinzel+Decorative:wght@700&family=IM+Fell+English+SC&display=swap');

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --parchment:      #f4e2b8;
  --parchment-dim:  #d4b87a;
  --gold:           #c8a951;
  --gold-bright:    #e8c97a;
  --gold-dim:       rgba(200, 169, 81, 0.45);
  --brown-deep:     #1a0d02;
  --brown-mid:      #2e1508;
  --brown-warm:     #5c3317;
  --dark-panel:     rgba(12, 7, 2, 0.87);
  --dark-border:    rgba(200, 169, 81, 0.35);
  --error:          #d95040;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #000;
  font-family: 'IM Fell English SC', Georgia, serif;
  color: var(--parchment);
}

/* ============================================================
   LOGIN SCREEN
   ============================================================ */
#login-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, #1e1530 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 80%, #0d1020 0%, transparent 60%),
    #07050a;
  z-index: 100;
}

/* Sterne Hintergrund */
.stars-layer {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,220,0.9) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,220,0.5) 1px, transparent 1px),
    radial-gradient(circle, rgba(200,180,255,0.6) 1px, transparent 1px);
  background-size: 200px 200px, 130px 130px, 90px 90px;
  background-position: 10px 20px, 50px 70px, 30px 140px;
  animation: starTwinkle 5s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
  0%   { opacity: 0.35; }
  50%  { opacity: 0.55; }
  100% { opacity: 0.4; }
}

/* Haupt-Karte */
.login-card {
  position: relative;
  width: min(480px, 94vw);
  background:
    linear-gradient(170deg, #1c1006 0%, #100904 45%, #0e0702 100%);
  border: 1px solid var(--gold);
  box-shadow:
    0 0 0 3px var(--brown-deep),
    0 0 0 4px rgba(200,169,81,0.3),
    0 0 80px rgba(200,169,81,0.12),
    0 30px 60px rgba(0,0,0,0.7),
    inset 0 0 60px rgba(0,0,0,0.3);
  padding: 52px 44px 44px;
  text-align: center;
  animation: cardReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Eck-Ornamente */
.corner {
  position: absolute;
  color: var(--gold);
  font-size: 14px;
  opacity: 0.65;
  line-height: 1;
}
.corner.tl { top: 10px;  left: 12px; }
.corner.tr { top: 10px;  right: 12px; }
.corner.bl { bottom: 10px; left: 12px; }
.corner.br { bottom: 10px; right: 12px; }

/* Wappen / Emblem */
.login-emblem {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 18px rgba(200,169,81,0.7));
  animation: emberPulse 3s ease-in-out infinite;
}

@keyframes emberPulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(200,169,81,0.5)); }
  50%       { filter: drop-shadow(0 0 24px rgba(200,169,81,0.9)); }
}

/* Titel */
.game-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(20px, 5.5vw, 30px);
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 24px rgba(200,169,81,0.35);
}

.game-title span {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.6em;
  color: rgba(244,226,184,0.55);
  letter-spacing: 0.35em;
  font-weight: 400;
  margin-top: 6px;
}

/* Trennlinie */
.login-divider {
  margin: 18px 0 12px;
  position: relative;
  display: flex; align-items: center; gap: 0;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.login-divider span {
  padding: 0 14px;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  color: rgba(200,169,81,0.45);
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.login-subtitle {
  font-size: 13px;
  color: rgba(244,226,184,0.45);
  letter-spacing: 0.12em;
  margin-bottom: 28px;
}

/* Input */
.input-group { margin-bottom: 6px; text-align: left; }

.input-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}

#name-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(200,169,81,0.25);
  border-bottom: 2px solid var(--gold);
  color: var(--parchment);
  font-family: 'Cinzel', serif;
  font-size: 17px;
  padding: 13px 16px;
  outline: none;
  text-align: center;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  caret-color: var(--gold);
}

#name-input::placeholder {
  color: rgba(200,169,81,0.22);
  font-family: 'IM Fell English SC', serif;
  font-size: 14px;
  letter-spacing: 0.05em;
}

#name-input:focus {
  background: rgba(200,169,81,0.06);
  border-bottom-color: var(--gold-bright);
  box-shadow: 0 6px 20px rgba(200,169,81,0.12);
}

.error-msg {
  min-height: 24px;
  padding-top: 8px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: var(--error);
  letter-spacing: 0.08em;
  text-align: center;
}

/* Shake Animation bei Fehler */
.shake { animation: shakeAnim 0.5s ease; }
@keyframes shakeAnim {
  0%, 100% { transform: translateX(0); }
  20%, 60%  { transform: translateX(-7px); }
  40%, 80%  { transform: translateX(7px); }
}

/* Join Button */
#join-btn {
  width: 100%;
  margin-top: 18px;
  padding: 15px 24px;
  background: linear-gradient(165deg, #2e1a06, #1a0d02 50%, #2e1a06);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

#join-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(200,169,81,0.08) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

#join-btn:hover:not(:disabled)::after { transform: translateX(100%); }

#join-btn:hover:not(:disabled) {
  background: linear-gradient(165deg, #3d2206, #251206 50%, #3d2206);
  border-color: var(--gold-bright);
  box-shadow: 0 0 30px rgba(200,169,81,0.3), inset 0 0 20px rgba(200,169,81,0.05);
  color: #fff8e0;
  letter-spacing: 0.26em;
}

#join-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-icon { margin: 0 10px; font-size: 11px; opacity: 0.8; }

.login-hint {
  margin-top: 20px;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  color: rgba(200,169,81,0.28);
  letter-spacing: 0.14em;
  line-height: 1.6;
}

/* ============================================================
   GAME CONTAINER
   ============================================================ */
#game-container {
  position: fixed; inset: 0;
}

#canvas-container {
  position: absolute; inset: 0;
  cursor: none;
}

#canvas-container canvas { display: block; }

/* ── CROSSHAIR ─────────────────────────────────────────────── */
#crosshair {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: 200;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 0 5px rgba(0,0,0,0.9), 0 0 10px rgba(0,0,0,0.5);
  pointer-events: none;
  user-select: none;
  z-index: 20;
  transition: opacity 0.3s;
  opacity: 0.4;
  letter-spacing: -2px;
}

/* ── POINTER LOCK OVERLAY ──────────────────────────────────── */
#lock-overlay {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7,4,1,0.62);
  z-index: 15;
  pointer-events: none;
  transition: opacity 0.4s;
  opacity: 0;
}

#lock-overlay.visible { opacity: 1; pointer-events: all; cursor: pointer; }

#lock-overlay span {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: rgba(200,169,81,0.7);
  letter-spacing: 0.18em;
  text-align: center;
  border: 1px solid rgba(200,169,81,0.2);
  padding: 16px 30px;
  background: rgba(0,0,0,0.6);
}

/* ── TOP HUD ───────────────────────────────────────────────── */
#top-hud {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(180deg, rgba(7,3,0,0.85) 0%, transparent 100%);
  pointer-events: none;
  z-index: 10;
}

#location-name {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.18em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}

#controls-hint {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  color: rgba(200,169,81,0.38);
  letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 4px;
}

kbd {
  background: rgba(200,169,81,0.12);
  border: 1px solid rgba(200,169,81,0.25);
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 9px;
  color: rgba(200,169,81,0.55);
  font-family: monospace;
}

/* ── PLAYER LIST PANEL ─────────────────────────────────────── */
#player-panel {
  position: fixed;
  top: 56px; right: 14px;
  width: 200px;
  background: var(--dark-panel);
  border: 1px solid var(--dark-border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  z-index: 10;
  backdrop-filter: blur(4px);
}

.panel-header {
  padding: 10px 14px 9px;
  border-bottom: 1px solid var(--dark-border);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.22em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}

.panel-header span { font-size: 9px; opacity: 0.6; }

#player-list {
  padding: 6px 0;
  max-height: 240px;
  overflow-y: auto;
}

#player-list::-webkit-scrollbar { width: 3px; }
#player-list::-webkit-scrollbar-thumb { background: rgba(200,169,81,0.2); }

.pl-entry {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: rgba(200,169,81,0.6);
  letter-spacing: 0.04em;
  transition: background 0.2s;
}

.pl-entry:hover { background: rgba(200,169,81,0.05); }

.pl-entry.me {
  color: var(--gold-bright);
}

.pl-entry.me .pl-dot { color: var(--gold); }

.pl-dot { font-size: 8px; opacity: 0.5; }

.panel-footer {
  border-top: 1px solid var(--dark-border);
  padding: 7px 14px;
  font-family: 'Cinzel', serif;
  font-size: 9px;
  color: rgba(200,169,81,0.3);
  letter-spacing: 0.15em;
  text-align: center;
}

#online-count { color: rgba(200,169,81,0.6); }

/* ── CHAT PANEL ────────────────────────────────────────────── */
#chat-panel {
  position: fixed;
  bottom: 14px; left: 14px;
  width: min(400px, 48vw);
  background: var(--dark-panel);
  border: 1px solid var(--dark-border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  z-index: 10;
  backdrop-filter: blur(4px);
}

#chat-log {
  height: 175px;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#chat-log::-webkit-scrollbar { width: 3px; }
#chat-log::-webkit-scrollbar-thumb { background: rgba(200,169,81,0.2); }

.chat-line {
  font-size: 12.5px;
  color: rgba(244,226,184,0.7);
  line-height: 1.45;
  word-break: break-word;
}

.chat-line.sys {
  font-style: italic;
  color: rgba(200,169,81,0.5);
  font-size: 11.5px;
}

.cn {
  font-family: 'Cinzel', serif;
  font-size: 10.5px;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-right: 6px;
}

.cm { color: rgba(244,226,184,0.82); }

#chat-input-row {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  border-top: 1px solid rgba(200,169,81,0.18);
}

.chat-arrow {
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  opacity: 0.55;
  flex-shrink: 0;
}

#chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--parchment);
  font-family: 'IM Fell English SC', serif;
  font-size: 13px;
  caret-color: var(--gold);
  min-width: 0;
}

#chat-input::placeholder {
  color: rgba(200,169,81,0.2);
  font-size: 11px;
}

#chat-input:focus {
  color: rgba(244,226,184,0.95);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 700px) {
  #chat-panel { width: calc(100vw - 28px); }
  #player-panel { width: 160px; font-size: 11px; }
  #controls-hint { display: none; }
}

/* ============================================================
   AUTH TABS
   ============================================================ */
.auth-tabs {
  display: flex;
  gap: 0;
  margin: 16px 0 22px;
  border: 1px solid rgba(200,169,81,0.25);
  overflow: hidden;
}

.auth-tab {
  flex: 1;
  padding: 10px 0;
  background: transparent;
  border: none;
  color: rgba(200,169,81,0.4);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  position: relative;
}

.auth-tab + .auth-tab {
  border-left: 1px solid rgba(200,169,81,0.2);
}

.auth-tab.active {
  background: rgba(200,169,81,0.1);
  color: var(--gold-bright);
}

.auth-tab:hover:not(.active) {
  background: rgba(200,169,81,0.05);
  color: rgba(200,169,81,0.6);
}

/* ── Password Toggle ────────────────────────────────────────── */
.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pw-wrap input {
  width: 100%;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(200,169,81,0.25);
  border-bottom: 2px solid var(--gold);
  color: var(--parchment);
  font-family: 'Cinzel', serif;
  font-size: 16px;
  padding: 12px 42px 12px 16px;
  outline: none;
  letter-spacing: 0.06em;
  transition: all 0.3s ease;
  caret-color: var(--gold);
}

.pw-wrap input:focus {
  background: rgba(200,169,81,0.06);
  border-bottom-color: var(--gold-bright);
  box-shadow: 0 6px 20px rgba(200,169,81,0.12);
}

.pw-wrap input::placeholder {
  color: rgba(200,169,81,0.2);
  font-size: 14px;
  letter-spacing: 0.05em;
}

.pw-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: rgba(200,169,81,0.35);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
  user-select: none;
}

.pw-toggle:hover { color: rgba(200,169,81,0.65); }

/* Input außerhalb pw-wrap (email etc.) */
.input-group > input[type="text"],
.input-group > input[type="email"] {
  width: 100%;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(200,169,81,0.25);
  border-bottom: 2px solid var(--gold);
  color: var(--parchment);
  font-family: 'Cinzel', serif;
  font-size: 16px;
  padding: 12px 16px;
  outline: none;
  letter-spacing: 0.06em;
  transition: all 0.3s ease;
  caret-color: var(--gold);
}

.input-group > input[type="text"]:focus,
.input-group > input[type="email"]:focus {
  background: rgba(200,169,81,0.06);
  border-bottom-color: var(--gold-bright);
  box-shadow: 0 6px 20px rgba(200,169,81,0.12);
}

.input-group > input[type="text"]::placeholder,
.input-group > input[type="email"]::placeholder {
  color: rgba(200,169,81,0.2);
  font-size: 13px;
}

/* .auth-btn = gleich wie #join-btn */
.auth-btn {
  width: 100%;
  margin-top: 14px;
  padding: 15px 24px;
  background: linear-gradient(165deg, #2e1a06, #1a0d02 50%, #2e1a06);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.auth-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(200,169,81,0.08) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.auth-btn:hover:not(:disabled)::after { transform: translateX(100%); }

.auth-btn:hover:not(:disabled) {
  background: linear-gradient(165deg, #3d2206, #251206 50%, #3d2206);
  border-color: var(--gold-bright);
  box-shadow: 0 0 30px rgba(200,169,81,0.3), inset 0 0 20px rgba(200,169,81,0.05);
  color: #fff8e0;
  letter-spacing: 0.26em;
}

.auth-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ============================================================
   HP-BAR
   ============================================================ */
#hp-bar-wrap {
  position: fixed;
  top: 56px; left: 14px;
  width: 220px;
  z-index: 10;
  pointer-events: none;
}

#hp-bar-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: rgba(244,226,184,0.7);
  margin-bottom: 5px;
}

#hp-icon {
  font-size: 13px;
  filter: drop-shadow(0 0 5px rgba(220,50,50,0.7));
  animation: hpPulse 2s ease-in-out infinite;
}

@keyframes hpPulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(220,50,50,0.5)); }
  50%       { filter: drop-shadow(0 0 9px rgba(220,50,50,0.9)); }
}

#hp-bar-track {
  height: 8px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(200,169,81,0.2);
  position: relative;
  overflow: hidden;
}

#hp-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #8b1a1a, #cc3333 60%, #ff6666);
  transition: width 0.5s ease, background 0.5s ease;
  box-shadow: 0 0 8px rgba(200,50,50,0.5);
}

/* Farbe wechselt je nach HP */
#hp-bar-fill.mid  { background: linear-gradient(90deg, #8b6a00, #cc9900 60%, #ffcc33); }
#hp-bar-fill.low  { background: linear-gradient(90deg, #5a0000, #990000 60%, #cc2222);
                    animation: hpLowFlicker 0.8s ease-in-out infinite; }

@keyframes hpLowFlicker {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}

/* ============================================================
   ROLLEN-BADGES in Spielerliste
   ============================================================ */
.role-badge {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 2px;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.08em;
  margin-left: 4px;
  vertical-align: middle;
}

.role-admin {
  background: rgba(200,169,81,0.2);
  border: 1px solid rgba(200,169,81,0.5);
  color: var(--gold-bright);
}

.role-moderator {
  background: rgba(80,140,200,0.18);
  border: 1px solid rgba(80,140,200,0.4);
  color: #8ab8e8;
}

/* Chat-Rollen-Tag */
.chat-role-admin    { color: var(--gold); font-size: 10px; }
.chat-role-moderator { color: #7aace8; font-size: 10px; }

/* ============================================================
   INVENTAR PANEL
   ============================================================ */
#inventory-panel {
  position: fixed;
  top: auto;
  bottom: 14px; right: 14px;
  width: 200px;
  background: var(--dark-panel);
  border: 1px solid var(--dark-border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  z-index: 10;
  backdrop-filter: blur(4px);
}

#inventory-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px;
  min-height: 52px;
}

.inv-slot {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(200,169,81,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: default;
  transition: border-color 0.2s;
  position: relative;
}

.inv-slot:hover { border-color: rgba(200,169,81,0.45); }
.inv-slot.empty::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(200,169,81,0.08);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 700px) {
  #chat-panel { width: calc(100vw - 28px); }
  #player-panel { width: 160px; font-size: 11px; }
  #controls-hint { display: none; }
  #inventory-panel { display: none; }
  #hp-bar-wrap { width: 160px; }
}

/* ============================================================
   HUD ACTION BUTTONS (Builder / Placement)
   ============================================================ */
.hud-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(12,7,2,0.82);
  border: 1px solid rgba(200,169,81,0.3);
  color: rgba(200,169,81,0.75);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  white-space: nowrap;
}

.hud-action-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(200,169,81,0.1);
}

.hud-action-btn.active {
  background: rgba(200,169,81,0.15);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  box-shadow: 0 0 16px rgba(200,169,81,0.25);
}

/* ============================================================
   PLACEMENT PANEL
   ============================================================ */
#placement-panel {
  position: fixed;
  top: 56px;
  left: 14px;
  width: 210px;
  background: var(--dark-panel);
  border: 1px solid var(--dark-border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
  z-index: 11;
  backdrop-filter: blur(4px);
}

.placement-item {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(200,169,81,0.07);
  transition: background 0.15s;
}

.placement-item:hover  { background: rgba(200,169,81,0.07); }
.placement-item.active { background: rgba(200,169,81,0.13); }

.placement-item-name {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: rgba(200,169,81,0.75);
  letter-spacing: 0.05em;
}

.placement-item-by {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  color: rgba(200,169,81,0.3);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* ── Builder Rolle Badge ───────────────────────────────────── */
.role-builder {
  background: rgba(80,140,80,0.18);
  border: 1px solid rgba(80,180,80,0.35);
  color: #88d888;
}
