/**
 * BELLUM: IMPERIUM & GLADIATORS - ESPORTS COMPETITIVE RTS UI/UX STYLESHEET
 * Framework Visual 'Fenomenología' (pbakaus/impeccable)
 * Glassmorphism Dark Mode, Minimapa Táctico, Cuadrícula de Comandos (Command Card),
 * Roster de Selección Múltiple, Registro de Alertas y Audio de 0 A.D.
 */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&family=Outfit:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --color-bg: #07090e;
  --color-surface: rgba(13, 19, 33, 0.88);
  --color-surface-card: rgba(22, 31, 52, 0.92);
  --color-surface-hover: rgba(36, 49, 79, 0.95);
  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-glow: rgba(233, 195, 73, 0.45);

  --color-gold: #e9c349;
  --color-gold-bright: #fbbf24;
  --color-red: #ef4444;
  --color-blue: #38bdf8;
  --color-emerald: #10b981;
  --color-purple: #c084fc;
  --color-text-main: #f8fafc;
  --color-text-muted: rgba(248, 250, 252, 0.65);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--color-bg);
  font-family: var(--font-sans);
  color: var(--color-text-main);
}

#game-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#game-overlay-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* ==========================================================================
   LOBBY / SELECTOR DE CIVILIZACIONES
   ========================================================================== */
#lobby-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(26, 17, 10, 0.95), #06080d 90%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 2.5rem 3rem;
}

/* Selector de Idioma (Lobby & In-Game) */
.bellum-lang-select {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  color: #fff;
  padding: 0.35rem 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.bellum-lang-select:hover {
  background: rgba(30, 41, 59, 0.95);
  box-shadow: 0 0 10px rgba(233, 195, 73, 0.4);
}

.bellum-lang-select option {
  background: #0f172a;
  color: #fff;
}

/* Soporte RTL para Modo Árabe */
.rtl-mode {
  direction: rtl;
}

.rtl-mode .lobby-main-layout {
  grid-template-columns: 380px 1fr;
}

.rtl-mode .civ-card-header {
  border-left: none !important;
  border-right: 4px solid var(--color-gold);
  padding-left: 0;
  padding-right: 0.6rem;
}

.rtl-mode #hud-alerts-feed {
  left: auto;
  right: 20px;
}

.rtl-mode .cmd-hotkey {
  right: auto;
  left: 4px;
}

.lobby-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.game-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(180deg, #fef08a 0%, #ca8a04 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 35px rgba(233, 195, 73, 0.4);
}

.game-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.game-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(233, 195, 73, 0.12);
  border: 1px solid var(--color-gold);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--color-gold);
  font-weight: 600;
  margin-top: 0.6rem;
}

.lobby-main-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  flex: 1;
}

.civ-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  overflow-y: auto;
  max-height: 520px;
  padding-right: 0.5rem;
}

.civ-card {
  background: var(--color-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.2rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.civ-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: var(--color-border-glow);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.civ-card.active {
  border-color: var(--color-gold);
  background: rgba(30, 41, 59, 0.95);
  box-shadow: 0 0 20px rgba(233, 195, 73, 0.3);
}

.civ-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-left: 0.6rem;
  margin-bottom: 0.8rem;
}

.civ-banner-icon { font-size: 1.8rem; }
.civ-name { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; }
.civ-motto { font-size: 0.72rem; color: var(--color-text-muted); font-style: italic; display: block; }
.civ-desc { font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); line-height: 1.4; margin-bottom: 0.8rem; }
.civ-meta-pills { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.7rem; }
.civ-pill { padding: 0.25rem 0.5rem; border-radius: 6px; background: rgba(255, 255, 255, 0.05); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.civ-pill-bonus { color: #38bdf8; }
.civ-pill-building { color: var(--color-gold); }
.civ-pill-unit { color: #f87171; }

.lobby-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.civ-detail-card { background: var(--color-surface); backdrop-filter: blur(16px); border: 1px solid var(--color-border); border-radius: 14px; padding: 1.6rem; }
.detail-title { font-family: var(--font-serif); font-size: 1.6rem; color: var(--color-gold); margin-bottom: 0.6rem; }
.detail-desc { font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.5; margin-bottom: 1.2rem; }
.detail-stat-block { font-size: 0.8rem; line-height: 1.6; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 0.8rem; margin-top: 0.8rem; }

.btn-main {
  width: 100%;
  padding: 0.9rem;
  border-radius: 10px;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #e9c349 0%, #ca8a04 100%);
  color: #07090e;
  box-shadow: 0 4px 15px rgba(233, 195, 73, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 195, 73, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-gold);
}

/* ==========================================================================
   HUD COMPETITIVO DE ESPORTS (IN-GAME)
   ========================================================================== */
#game-hud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.8rem 1rem;
}

/* 1. BARRA SUPERIOR DE RECURSOS & ESTADO ESPORTS */
.hud-top-bar {
  pointer-events: auto;
  width: 100%;
  max-width: 1280px;
  align-self: center;
  background: var(--color-surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 0.5rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7);
}

.hud-resources-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.res-item {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
}

.res-rate-pill {
  font-size: 0.68rem;
  color: #22c55e;
  font-weight: 500;
}

/* Widget de Fase Histórica (0 A.D. Phase Advancement) */
.hud-phase-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.3rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-phase-box:hover {
  background: rgba(233, 195, 73, 0.15);
  border-color: var(--color-gold);
}

.hud-phase-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
}

/* Reproductor de Música 0 A.D. en el HUD */
.hud-music-player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.3rem 0.7rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-audio-ctrl {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
}

.btn-hns-toggle {
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
  color: #fff;
  border: 1.5px solid #ef4444;
  border-radius: 20px;
  padding: 0.45rem 1.1rem;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-hns-toggle.active-hns {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  border-color: #fef08a;
  color: #000;
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.7);
  animation: pulseHnS 1.5s infinite;
}

/* 2. REGISTRO DE ALERTAS Y EVENTOS TOAST (TOP-LEFT) */
#hud-alerts-feed {
  position: absolute;
  top: 75px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  pointer-events: none;
  z-index: 20;
}

.alert-toast {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-left: 3px solid var(--color-gold);
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  animation: fadeInAlert 0.3s ease;
}

@keyframes fadeInAlert {
  from { opacity: 0; transform: translateX(-15px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 3. BARRA INFERIOR DE COMBATE COMPETITIVO */
.hud-bottom-bar {
  pointer-events: auto;
  width: 100%;
  display: grid;
  grid-template-columns: 210px 1fr 340px;
  gap: 1rem;
  align-items: end;
}

/* Minimapa Táctico Radar (Inferior Izquierda) */
.minimap-wrapper {
  background: var(--color-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-border-glow);
  border-radius: 14px;
  padding: 0.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#minimap-canvas {
  width: 190px;
  height: 190px;
  border-radius: 10px;
  background: #111827;
  cursor: crosshair;
}

/* Panel Central de Selección / Roster Múltiple */
.selection-hub {
  background: var(--color-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 0.9rem 1.2rem;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.selection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.4rem;
}

.selection-title {
  font-family: var(--font-serif);
  color: var(--color-gold);
  font-size: 1.15rem;
}

/* Estadísticas de Daño Tripartito de 0 A.D. */
.stat-tri-damage {
  display: flex;
  gap: 0.8rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  margin-top: 0.4rem;
}

.dmg-badge { padding: 0.2rem 0.45rem; border-radius: 5px; }
.dmg-hack { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.dmg-pierce { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.dmg-crush { background: rgba(234, 179, 8, 0.2); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.4); }

/* Roster de Selección Múltiple (Grid de Unidades) */
.multi-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  gap: 0.35rem;
  max-height: 110px;
  overflow-y: auto;
  margin-top: 0.5rem;
}

.multi-unit-card {
  width: 36px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2px;
  cursor: pointer;
}

.multi-unit-card:hover {
  border-color: var(--color-gold);
  background: rgba(233, 195, 73, 0.15);
}

.multi-unit-hp {
  width: 100%;
  height: 3px;
  background: #22c55e;
  border-radius: 2px;
}

/* Cola de Producción con Progreso */
.queue-slots-bar {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.queue-slot {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
}

.queue-progress-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: rgba(233, 195, 73, 0.35);
  transition: height 0.2s ease;
}

/* 4. CUADRÍCULA DE COMANDOS COMPETITIVA (COMMAND CARD 4x3) */
.command-card {
  background: var(--color-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 0.9rem;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.command-card-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.tab-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem;
  cursor: pointer;
  text-align: center;
}

.tab-btn.active {
  background: rgba(233, 195, 73, 0.2);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.command-grid-3x4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}

.cmd-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.45rem 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.cmd-btn:hover {
  background: rgba(233, 195, 73, 0.2);
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.cmd-btn.active {
  background: rgba(233, 195, 73, 0.35);
  border-color: var(--color-gold-bright);
}

.cmd-hotkey {
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 0.58rem;
  font-family: var(--font-mono);
  color: var(--color-gold);
}

.cmd-icon { font-size: 1.1rem; }
.cmd-label { font-size: 0.62rem; font-weight: 600; text-align: center; white-space: nowrap; }

/* Tooltip Dinámico Flotante de Estadísticas */
#hud-tooltip {
  position: absolute;
  bottom: 220px;
  right: 20px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid var(--color-gold);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  max-width: 280px;
  pointer-events: none;
  display: none;
  z-index: 50;
  box-shadow: 0 10px 25px rgba(0,0,0,0.8);
}

.tooltip-title { font-family: var(--font-serif); color: var(--color-gold); font-size: 0.95rem; margin-bottom: 0.2rem; }
.tooltip-cost { display: flex; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.72rem; color: #38bdf8; margin-bottom: 0.4rem; }
.tooltip-body { font-size: 0.72rem; color: var(--color-text-muted); line-height: 1.4; }

/* ==========================================================================
   MEN OF WAR: ASSAULT SQUAD 2 - REINFORCEMENTS & INVENTORY STYLES
   ========================================================================== */

/* 1. BARRA DE REFUERZOS Y PUNTOS DE MANDO (MoW DEPLOYMENT BAR) */
.mow-reinforcement-bar {
  position: absolute;
  bottom: 215px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(233, 195, 73, 0.35);
  border-radius: 12px;
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  z-index: 35;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75);
}

.mow-mp-status {
  display: flex;
  gap: 0.8rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding-right: 1rem;
}

.mow-mp-badge, .mow-cp-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mow-badge-title { color: #94a3b8; font-weight: 600; font-size: 0.68rem; }
.mow-badge-val { color: var(--color-gold-bright); font-weight: 800; font-size: 0.88rem; }
.mow-mp-rate { font-size: 0.68rem; color: #38bdf8; font-weight: 600; }

.mow-squad-cards {
  display: flex;
  gap: 0.55rem;
}

.mow-squad-card {
  position: relative;
  width: 104px;
  height: 64px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.mow-squad-card:hover:not(.cannot-afford):not(.on-cooldown) {
  border-color: var(--color-gold-bright);
  background: rgba(233, 195, 73, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 195, 73, 0.25);
}

.mow-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mow-card-icon { font-size: 1.1rem; }
.mow-card-cost {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-gold);
}

.mow-card-name {
  font-family: var(--font-serif);
  font-size: 0.64rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mow-card-role {
  font-size: 0.55rem;
  color: #94a3b8;
  white-space: nowrap;
}

.mow-card-cooldown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.78);
  pointer-events: none;
  transition: height 0.1s linear;
}

.mow-squad-card.cannot-afford {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.mow-squad-card.on-cooldown {
  border-color: #475569;
  cursor: wait;
}

/* 2. MODAL DUAL DE INVENTARIO Y SAQUEO DE CADÁVERES (MoW LOOT MODAL) */
.mow-loot-container {
  background: #0f172a;
  border: 1px solid var(--color-gold);
  border-radius: 16px;
  padding: 1.6rem;
  max-width: 680px;
  width: 92%;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mow-loot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.6rem;
}

.mow-btn-close-loot {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}

.mow-btn-close-loot:hover { color: #fff; }

.mow-loot-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
}

.mow-loot-panel {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.9rem;
  min-height: 250px;
}

.mow-panel-title {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--color-gold);
  margin-bottom: 0.8rem;
  text-align: center;
  font-weight: 600;
}

.mow-loot-divider {
  font-size: 1.6rem;
  color: var(--color-gold);
  opacity: 0.6;
}

.mow-grid-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.mow-inv-slot {
  position: relative;
  aspect-ratio: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mow-inv-slot.has-item:hover {
  border-color: var(--color-gold-bright);
  background: rgba(233, 195, 73, 0.2);
  transform: scale(1.04);
}

.mow-inv-slot.empty-slot {
  border-style: dashed;
  opacity: 0.4;
  cursor: default;
}

.mow-item-icon { font-size: 1.3rem; }
.mow-item-name {
  font-size: 0.52rem;
  color: #f8fafc;
  text-align: center;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.mow-item-count {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: #38bdf8;
}

.mow-slot-label {
  font-size: 0.55rem;
  color: #64748b;
  text-align: center;
}

.mow-loot-footer {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.6rem;
}

