* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body, #app {
  width: 100%;
  height: 100%;
  overflow: hidden;
  color-scheme: light dark;
  background: var(--qtga-bg, #070a12);
  color: var(--qtga-text, #e2e8f0);
  font-family: var(--qtga-font-sans, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  user-select: none;
}

.boot-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  background: radial-gradient(circle at center, #111827 0%, #070a12 70%);
}

.boot-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #38bdf8;
}

.boot-sub {
  color: #94a3b8;
  font-size: 0.95rem;
}

.game-root {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Preserve 3D WebGL scene contrast behind canvas */
.viewport-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #070a12;
}

.viewport-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Crisp 60 FPS Projected 2D Overlay (Nameplates, WoW Bubbles, Floating Damage) */
.scene-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.entity-overlay {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  will-change: transform;
}

.nameplate {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  background: rgba(8, 13, 24, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.np-self {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.65);
}

.np-hero {
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.48);
}

.np-target {
  color: #fde047;
  border-color: rgba(250, 204, 21, 0.75);
}

.nameplate.hidden {
  display: none;
}

.ai-mood-badge {
  font-size: 0.9rem;
  line-height: 1.1;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(8, 13, 24, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.ai-mood-badge.hidden {
  display: none;
}

.ai-mood-badge.mood-ally  { border-color: rgba(56, 189, 248, 0.72); }
.ai-mood-badge.mood-danger { border-color: rgba(239, 68, 68, 0.78); }
.ai-mood-badge.mood-warn  { border-color: rgba(250, 204, 21, 0.78); }
.ai-mood-badge.mood-heal  { border-color: rgba(74, 222, 128, 0.78); }
.ai-mood-badge.mood-magic { border-color: rgba(192, 132, 252, 0.78); }
.ai-mood-badge.mood-info  { border-color: rgba(148, 163, 184, 0.65); }

.ai-mood-badge.pop-a { animation: mood-pop-a 240ms ease-out; }
.ai-mood-badge.pop-b { animation: mood-pop-b 240ms ease-out; }

@keyframes mood-pop-a {
  0%   { transform: scale(0.65); opacity: 0.7; }
  55%  { transform: scale(1.18); opacity: 1.0; }
  100% { transform: scale(1.0);  opacity: 1.0; }
}

@keyframes mood-pop-b {
  0%   { transform: scale(0.65); opacity: 0.7; }
  55%  { transform: scale(1.18); opacity: 1.0; }
  100% { transform: scale(1.0);  opacity: 1.0; }
}

.np-monster {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.45);
}

.chat-bubble {
  position: relative;
  max-width: 240px;
  padding: 5px 9px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
  color: #f8fafc;
  background: rgba(10, 15, 28, 0.90);
  border: 1px solid rgba(226, 232, 240, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(10, 15, 28, 0.90);
}

.chat-bubble.ch-party {
  border-color: rgba(96, 165, 250, 0.75);
  color: #dbeafe;
}

.chat-bubble.ch-guild {
  border-color: rgba(74, 222, 128, 0.75);
  color: #dcfce7;
}

.chat-bubble.ch-global {
  border-color: rgba(251, 191, 36, 0.75);
  color: #fef3c7;
}

.chat-bubble.hidden {
  display: none;
}

.dmg-popup {
  position: absolute;
  top: 0;
  left: 0;
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
  will-change: transform, opacity;
}

.dmg-hit {
  color: #f87171;
}

.dmg-crit {
  color: #facc15;
  font-size: 1.12rem;
}

.dmg-heal {
  color: #4ade80;
}

.dmg-shield {
  color: #38bdf8;
}

.dmg-evade {
  color: #a5f3fc;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.dmg-level {
  color: #fde047;
  font-size: 1.18rem;
}

.webgl-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #131c2e 0%, #070a12 80%);
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Glass HUD Panels */
.hud-panel {
  background: rgba(11, 17, 30, 0.80);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hud-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 210px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px;
  flex-wrap: wrap;
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-title {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: #f8fafc;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.7);
  color: #cbd5e1;
}

.badge-ok {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
}

.badge-warn {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.35);
}

.badge-err {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.badge-hub {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.35);
}

.badge-peer {
  background: rgba(192, 132, 252, 0.2);
  color: #e9d5ff;
  border-color: rgba(192, 132, 252, 0.4);
}

.hud-metrics {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}

.metric-item strong {
  color: #f8fafc;
}

/* WoW-style Target Frame (top-center) */
.target-frame {
  position: absolute;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  min-width: 280px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-color: rgba(250, 204, 21, 0.45);
}

.target-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.target-name {
  font-weight: 800;
  font-size: 0.84rem;
}

.target-dist {
  font-size: 0.72rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.target-sub {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Minimap top-right */
.hud-minimap {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.minimap-title {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.minimap-canvas {
  border-radius: 6px;
  background: #050810;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

/* Left collapsible panel */
.hud-left {
  position: absolute;
  top: 62px;
  left: 12px;
  bottom: 222px;
  width: 288px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 11px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.hud-left.collapsed {
  width: auto;
  bottom: auto;
  padding: 6px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 6px;
}

.section-box {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 9px;
}

.section-box:first-child {
  border-top: none;
  padding-top: 0;
}

.inline-form {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 5px;
}

.social-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.emote-row {
  display: flex;
  gap: 5px;
  margin-top: 4px;
}

.emote-row .btn {
  flex: 1;
}

.inst-card {
  padding: 7px 9px;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.15);
  margin-bottom: 6px;
  transition: border-color 0.15s ease;
}

.inst-card.active {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(14, 116, 144, 0.18);
}

.inst-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.inst-name {
  font-weight: 700;
  font-size: 0.81rem;
  color: #f1f5f9;
}

.inst-meta {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 3px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.9);
  color: #f1f5f9;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s ease;
}

.btn:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: rgba(148, 163, 184, 0.45);
}

.btn-primary {
  background: rgba(14, 165, 233, 0.28);
  border-color: rgba(56, 189, 248, 0.55);
  color: #e0f2fe;
}

.btn-primary:hover {
  background: rgba(14, 165, 233, 0.45);
}

.btn-warn {
  background: rgba(245, 158, 11, 0.24);
  border-color: rgba(251, 191, 36, 0.55);
  color: #fef3c7;
}

.btn-sm {
  padding: 3px 7px;
  font-size: 0.69rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}

.input, .select {
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #f8fafc;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 0.74rem;
  user-select: text;
}

.input:focus, .select:focus {
  outline: none;
  border-color: #38bdf8;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.slider-row input[type="range"] {
  flex: 1;
  accent-color: #38bdf8;
}

.load-bar {
  width: 100%;
  height: 6px;
  background: rgba(30, 41, 59, 0.9);
  border-radius: 999px;
  overflow: hidden;
  margin: 5px 0;
}

.load-bar-fill {
  height: 100%;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.npc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 130px;
  overflow-y: auto;
}

.npc-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 0.72rem;
}

.npc-chip.spectating {
  border-color: rgba(251, 146, 60, 0.7);
  background: rgba(251, 146, 60, 0.16);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}

/* WoW-style Multi-Channel Chat Panel (bottom-left) */
.wow-chat {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 470px;
  max-width: calc(50vw - 18px);
  z-index: 12;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-tabs {
  display: flex;
  gap: 2px;
  padding: 5px 7px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(8, 13, 24, 0.55);
}

.chat-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  font-size: 0.69rem;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
}

.chat-tab:hover {
  color: #e2e8f0;
}

.chat-tab.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

.chat-log {
  height: 122px;
  overflow-y: auto;
  padding: 7px 10px;
  font-size: 0.75rem;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 2px;
  user-select: text;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.chat-empty {
  color: #64748b;
  font-style: italic;
  font-size: 0.72rem;
}

.chat-line {
  word-break: break-word;
}

.chat-tag {
  font-weight: 700;
  font-size: 0.68rem;
  margin-right: 3px;
}

.chat-line.ch-say    { color: #f8fafc; }
.chat-line.ch-say .chat-tag    { color: #cbd5e1; }
.chat-line.ch-party  { color: #bfdbfe; }
.chat-line.ch-party .chat-tag  { color: #60a5fa; }
.chat-line.ch-guild  { color: #bbf7d0; }
.chat-line.ch-guild .chat-tag  { color: #4ade80; }
.chat-line.ch-global { color: #fef3c7; }
.chat-line.ch-global .chat-tag { color: #fbbf24; }
.chat-line.ch-combat { color: #cbd5e1; }
.chat-line.ch-combat .chat-tag { color: #f87171; }
.chat-line.ch-system { color: #94a3b8; font-style: italic; }

.chat-sender {
  font-weight: 700;
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(8, 13, 24, 0.72);
}

.chat-channel-select {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 0.71rem;
  font-weight: 700;
}

.chat-input {
  flex: 1;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #f8fafc;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.75rem;
  user-select: text;
}

.chat-input:focus {
  outline: none;
  border-color: #38bdf8;
}

/* Bottom-Right Hero HUD */
.hud-bottom {
  position: absolute;
  bottom: 12px;
  left: 494px;
  right: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.hp-wrap {
  width: 170px;
}

.hp-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.73rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.hp-bar {
  height: 10px;
  background: rgba(30, 41, 59, 0.95);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.hp-fill {
  height: 100%;
  transition: width 0.15s ease;
}

.hp-fill.hp-hero {
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
}

.hp-fill.hp-shield {
  background: linear-gradient(90deg, #0284c7, #38bdf8, #a5f3fc);
}

.shield-bar {
  height: 6px;
  margin-top: 3px;
  background: rgba(15, 23, 42, 0.95);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.btn-cd {
  opacity: 0.52;
}

.badge-sanctuary {
  background: rgba(56, 189, 248, 0.20);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.45);
}

.mana-bar {
  height: 5px;
  margin-top: 2px;
  background: rgba(15, 23, 42, 0.95);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(129, 140, 248, 0.28);
}

.hp-fill.hp-mana {
  background: linear-gradient(90deg, #4f46e5, #818cf8);
}

.hud-quests {
  position: absolute;
  top: 190px;
  right: 12px;
  width: 190px;
  z-index: 10;
  padding: 8px 10px;
  font-size: 0.71rem;
}

.quest-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 2px 0;
  color: #cbd5e1;
}

.quest-row.done {
  color: #4ade80;
  text-decoration: line-through;
  opacity: 0.85;
}

.stat-alloc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 4px;
}

.stat-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 0.7rem;
  font-weight: 700;
}

.equip-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 5px;
}

.equip-slot {
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 5px;
  padding: 3px 4px;
  font-size: 0.64rem;
  overflow: hidden;
}

.equip-slot span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inv-wrap {
  margin-top: 5px;
}

.inv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 3px;
}

.feel-sliders {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.feel-row {
  display: flex;
  flex-direction: column;
  font-size: 0.68rem;
  color: #cbd5e1;
}

.feel-row input[type="range"] {
  width: 100%;
  accent-color: #38bdf8;
}

.split-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.85), rgba(56, 189, 248, 0.2));
  z-index: 8;
  pointer-events: none;
}

.hud-p2 {
  position: absolute;
  bottom: 120px;
  right: 12px;
  width: 280px;
  z-index: 10;
  padding: 8px 11px;
  border-color: rgba(56, 189, 248, 0.45);
}

.hp-fill.hp-monster {
  background: linear-gradient(90deg, #dc2626, #f97316);
}

.stat-pills {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.squad-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 6px;
  margin-left: 2px;
  border-left: 1px solid rgba(148, 163, 184, 0.25);
}

.squad-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #7dd3fc;
  margin-right: 2px;
}

.controls-hint {
  font-size: 0.69rem;
  color: #94a3b8;
  margin-left: auto;
}

/* Spectate banner */
.spectate-banner {
  position: absolute;
  top: 122px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-color: rgba(251, 146, 60, 0.55);
  background: rgba(124, 45, 18, 0.80);
  font-size: 0.8rem;
  font-weight: 600;
}

@media (prefers-color-scheme: light) {
  .boot-screen {
    background: radial-gradient(circle at center, #ffffff 0%, #eef2f6 75%);
  }
  .boot-title { color: #0969da; }
  .boot-sub { color: #475569; }
  .hud-panel {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    color: #0f172a;
  }
  .hud-title { color: #0f172a; }
  .hud-metrics { color: #334155; }
  .badge {
    background: rgba(241, 245, 249, 0.92);
    border-color: rgba(15, 23, 42, 0.18);
    color: #334155;
  }
  .badge-ok { background: rgba(22, 163, 74, 0.14); color: #15803d; border-color: rgba(22, 163, 74, 0.35); }
  .badge-warn { background: rgba(217, 119, 6, 0.14); color: #b45309; border-color: rgba(217, 119, 6, 0.35); }
  .badge-err { background: rgba(220, 38, 38, 0.14); color: #b91c1c; border-color: rgba(220, 38, 38, 0.35); }
  .badge-hub { background: rgba(9, 105, 218, 0.12); color: #0969da; border-color: rgba(9, 105, 218, 0.35); }
  .badge-peer { background: rgba(130, 80, 223, 0.12); color: #6f42c1; border-color: rgba(130, 80, 223, 0.35); }
  .btn {
    background: rgba(248, 250, 252, 0.96);
    border-color: rgba(15, 23, 42, 0.2);
    color: #0f172a;
  }
  .btn:hover {
    background: rgba(226, 232, 240, 0.96);
    border-color: rgba(15, 23, 42, 0.35);
  }
  .btn-primary {
    background: rgba(9, 105, 218, 0.14);
    border-color: rgba(9, 105, 218, 0.55);
    color: #0550ae;
  }
  .btn-primary:hover { background: rgba(9, 105, 218, 0.24); }
  .btn-warn {
    background: rgba(217, 119, 6, 0.16);
    border-color: rgba(217, 119, 6, 0.45);
    color: #9a3412;
  }
  .input, .select, .chat-channel-select, .chat-input {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.22);
    color: #0f172a;
  }
  .player-card, .hotkey-btn, .skill-chip, .chat-tabs, .chat-input-bar {
    background: rgba(241, 245, 249, 0.88);
    border-color: rgba(15, 23, 42, 0.14);
    color: #0f172a;
  }
  .hp-bar, .mp-bar, .cooldown-bar {
    background: rgba(203, 213, 225, 0.85);
  }
  .squad-label { color: #0969da; }
  .controls-hint { color: #475569; }
  .spectate-banner {
    background: rgba(255, 247, 237, 0.94);
    border-color: rgba(234, 88, 12, 0.45);
    color: #9a3412;
  }
}
