:root {
  --bg: #0d1117;
  --accent: #7ee787;
  --danger: #ff5b5b;
  --warn: #ffce4a;
  --panel: rgba(18, 24, 32, 0.92);
  --font: "Segoe UI", system-ui, sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #05070a;
  font-family: var(--font);
  color: #e6edf3;
  user-select: none;
}

#game-wrap {
  position: relative;
  width: 100vw;
  height: 100vh;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  background: radial-gradient(circle at 50% 35%, #1a2230 0%, #0c1017 65%, #05070a 100%);
}

.hidden { display: none !important; }

/* ---------- Ajustes de sonido ---------- */
.gear {
  position: absolute; top: 14px; right: 16px; z-index: 12;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(18,24,32,0.85); border: 1px solid rgba(255,255,255,0.14);
  color: #e6edf3; font-size: 20px; cursor: pointer; line-height: 1;
  transition: transform 0.15s, background 0.2s;
}
.gear:hover { transform: rotate(45deg); background: rgba(30,40,52,0.95); }
.settings { display: flex; flex-direction: column; gap: 16px; margin: 8px 0 24px; }
.audio-toggle { position:fixed; z-index:91; top:15px; right:65px; min-width:82px; padding:9px 10px; color:#9cefc8; background:#071014e8; border:1px solid #376269; font:600 10px Oswald,sans-serif; letter-spacing:.12em; cursor:pointer; }
.audio-toggle.muted { color:#ff8178; border-color:#78423f; }
.vol-row {
  display: grid; grid-template-columns: 100px 1fr 44px; align-items: center; gap: 12px;
  font-size: 15px; text-align: left;
}
.vol-row span { opacity: 0.85; }
.vol-row b { text-align: right; color: var(--accent); font-variant-numeric: tabular-nums; }
.vol-row input[type="range"] {
  -webkit-appearance: none; appearance: none; height: 6px; border-radius: 4px;
  background: rgba(255,255,255,0.15); cursor: pointer; outline: none;
}
.vol-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 2px 6px rgba(0,0,0,0.5); cursor: pointer;
}
.vol-row input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border: none; border-radius: 50%; background: var(--accent); cursor: pointer;
}
/* ---------- Selector de avatar ---------- */
.avatar-picker { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.avatar-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.3); border: 2px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 12px 16px; cursor: pointer; color: #e6edf3;
  font-family: var(--font); font-size: 13px; transition: transform 0.1s, border-color 0.2s;
}
.avatar-card:hover { transform: translateY(-2px); }
.avatar-card.selected { border-color: var(--accent); background: rgba(126,231,135,0.12); }
.avatar-swatch { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.4); }

.btn.ghost {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent); margin-bottom: 12px;
}
.btn.ghost:hover { background: rgba(126,231,135,0.12); box-shadow: none; }

/* ---------- HUD ---------- */
#hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hud-left { width: 240px; }
.hud-right { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

.stat { margin-bottom: 10px; }
.stat-label {
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.7;
  font-weight: 700;
}
.bar {
  height: 16px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 3px;
}
.bar.thin { height: 8px; }
.bar-fill {
  height: 100%;
  width: 100%;
  transition: width 0.08s linear;
  border-radius: 8px;
}
.bar-fill.health { background: linear-gradient(90deg, #ff5b5b, #ff9b5b); }
.bar-fill.reload { background: linear-gradient(90deg, #4a9bff, #7ee787); }

.hud-center { flex: 1; text-align: center; }
.wave-banner {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--accent);
  text-shadow: 0 2px 12px rgba(126,231,135,0.5);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s, transform 0.4s;
}
.wave-banner.show { opacity: 1; transform: translateY(0); }

.counter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  background: var(--panel);
  padding: 4px 12px;
  border-radius: 20px;
  min-width: 70px;
  justify-content: flex-end;
}
.counter .ico { font-size: 18px; }

/* ---------- Arma ---------- */
.weapon-box {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 10px 22px;
  border-radius: 14px;
  pointer-events: none;
}
.weapon-box.flash { animation: wpnflash 0.4s; }
@keyframes wpnflash {
  0% { transform: translateX(-50%) scale(1.25); box-shadow: 0 0 30px var(--accent); }
  100% { transform: translateX(-50%) scale(1); }
}
/* ---------- MENÚ PRINCIPAL ----------
   El fondo es la escena viva del canvas, así que el menú NO lleva fondo propio:
   se apoya a la izquierda, donde el velo del canvas es más oscuro. */
.overlay.menu {
  background: none;
  backdrop-filter: none;
  justify-content: flex-start;
  align-items: center;
}
.menu-box {
  margin-left: clamp(24px, 7vw, 110px);
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: menuIn 0.5s ease-out both;
}
@keyframes menuIn { from { opacity: 0; transform: translateX(-18px); } }
.menu-box h1 { text-align: left; }
.menu-box .tagline { text-align: left; margin-bottom: 22px; }

.menu-list { display: flex; flex-direction: column; gap: 10px; }
.menu-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-left: 3px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  background: rgba(10,14,18,0.55);
  color: var(--text, #e6eae5);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.14s, background 0.14s, transform 0.14s;
}
.menu-item:hover, .menu-item:focus-visible {
  background: rgba(18,26,30,0.8);
  border-left-color: var(--accent);
  transform: translateX(5px);
  outline: none;
}
.menu-item.primary { border-left-color: var(--accent); background: rgba(126,231,135,0.09); }
.menu-item.primary:hover { background: rgba(126,231,135,0.16); }
.mi-title { font-size: 17px; font-weight: 900; letter-spacing: 1.4px; }
.mi-sub { font-size: 12px; opacity: 0.55; letter-spacing: 0.3px; }

/* ---------- Objetivo del nivel (campaña) ---------- */
.objective {
  position: absolute;
  top: 74px; left: 18px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(6,10,14,0.68);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--warn);
  border-radius: 4px;
  pointer-events: none;
  max-width: 260px;
}
.obj-label {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10px; letter-spacing: 0.18em;
  color: var(--warn); opacity: 0.9;
}
#obj-goal { font-size: 15px; font-weight: 800; letter-spacing: 0.4px; }
.obj-code { display: flex; gap: 6px; margin-top: 4px; }
.obj-digit {
  width: 26px; height: 32px;
  display: grid; place-items: center;
  font-size: 17px; font-weight: 900;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 3px;
  background: rgba(0,0,0,0.4);
  color: rgba(255,255,255,0.3);
}
.obj-digit.on { border-color: var(--warn); color: var(--warn); background: rgba(255,209,102,0.14); }
.obj-hint { font-size: 11px; opacity: 0.55; }
/* Cuenta regresiva del ciclo de escape: tiene que gritar. */
.objective.urgente { border-left-color: #ff5b5b; animation: urge 0.9s infinite; }
.objective.urgente .obj-hint { opacity: 1; color: #ff8a6a; font-size: 14px; font-weight: 800; }
@keyframes urge { 50% { background: rgba(60,10,10,0.7); } }

/* Crédito de licencia de los sprites (obligatorio, CC-BY / OGA-BY). */
.credits { margin-top: 14px; font-size: 11px; opacity: 0.45; letter-spacing: 0.3px; }
.credits b { opacity: 0.85; }

/* F2 — dos slots de arma. El activo se ilumina; el otro queda apagado. */
.weapon-box { gap: 10px; padding: 8px 10px; }
.slot {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: rgba(0,0,0,0.35);
  opacity: 0.45;
  transition: opacity 0.12s, border-color 0.12s, transform 0.12s;
}
.slot > span { position: relative; z-index: 1; }

/* Efecto de carga: la recarga se ve como el cargador llenándose detrás del
   número de balas, en vez de una barrita aparte en la otra punta del HUD. */
.slot-charge {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(255,166,61,0.25), rgba(255,209,102,0.6));
  border-right: 2px solid rgba(255,229,150,0.9);
  transition: width 0.05s linear;
}
/* Granadas: chip propio, siempre disponible (no es un slot de arma). */
.slot.nade { opacity: 0.85; border-left-color: #ff9b3b; }
.slot.nade .slot-ammo { color: #ff9b3b; }
.slot.nade.empty { opacity: 0.3; }
.slot.nade.empty .slot-ammo { color: #7f8d86; }
.slot.hero-ability { border-color: rgba(75,210,255,.34); }
.slot.hero-ability.ready { box-shadow: inset 0 0 18px rgba(75,210,255,.12); }
.slot.hero-ability.ready .slot-ammo { color: #78e7ff; }
.slot.hero-ability:not(.ready) { opacity: .72; }
.ability-icon { width: 48px; text-align: center; font-size: 27px; filter: drop-shadow(0 2px 5px #000); }

.slot.recargando { border-color: var(--warn); }
.slot.recargando .slot-ammo { color: #ffd166; animation: recarga 0.5s infinite; }
@keyframes recarga { 50% { opacity: 0.4; } }
.slot.active { opacity: 1; border-color: var(--accent); background: rgba(126,231,135,0.1); transform: scale(1.04); }
.slot.vacio { opacity: 0.22; }
.slot-key {
  font-size: 11px;
  font-weight: 900;
  background: rgba(255,255,255,0.14);
  border-radius: 5px;
  padding: 2px 6px;
}
.slot-name { font-size: 15px; font-weight: 800; letter-spacing: 0.5px; }
.slot-ammo { font-size: 17px; font-weight: 900; color: var(--warn); }
.slot-res { font-size: 12px; font-weight: 700; opacity: 0.5; }
.slot.low .slot-ammo { color: #ffb347; }
.slot.empty.active .slot-ammo { color: #ff5b5b; animation: ammoblink 0.6s infinite; }
@keyframes ammoblink { 50% { opacity: 0.25; } }
.bar-fill.reload.reloading { background: linear-gradient(90deg, #ff9b3b, #ffd166); }
.counter.cash span:last-child { color: #ffd166; }
.counter.perf {
  width: 178px;
  display: block;
  padding: 9px 11px 8px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  line-height: 1.25;
  color: #dce8e2;
  border-left-color: #6ecdff;
}
.perf-head, .perf-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.perf-head {
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(110,205,255,0.22);
  font-family: var(--font-label, sans-serif);
  letter-spacing: 1.2px;
  color: rgba(220,235,240,0.7);
}
.perf-head b { color: #ffd166; font-size: 10px; }
.perf-head b.good { color: #7ee787; }
.perf-head b.warn { color: #ffd166; }
.perf-head b.bad { color: #ff6b61; }
.perf-row { min-height: 17px; }
.perf-row span { color: rgba(220,230,234,0.52); }
.perf-row b { color: #e8f4ef; font-size: 12px; }
.perf-row b.good { color: #7ee787; }
.perf-row b.warn { color: #ffd166; }
.perf-row b.bad { color: #ff6b61; }
.counter.perf small {
  display: block;
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(210,220,224,0.38);
  font-size: 8px;
  letter-spacing: 0.4px;
}

/* De dónde salió el dinero al abrir la armería. */
.shop-bonus { margin: -6px 0 10px; font-size: 13px; font-weight: 700; color: #7ee787; }

/* ---------- Avisos ---------- */
.toast {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(126,231,135,0.95);
  color: #06210b;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 10px 26px;
  border-radius: 30px;
  font-size: 17px;
  pointer-events: none;
  box-shadow: 0 4px 24px rgba(126,231,135,0.5);
}

.rescue-alert {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,91,91,0.92);
  color: #fff;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 16px;
  pointer-events: none;
  animation: pulse 1s infinite;
  box-shadow: 0 4px 24px rgba(255,91,91,0.5);
}
@keyframes pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}

/* ---------- Overlays ---------- */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 6, 10, 0.82);
  backdrop-filter: blur(4px);
  z-index: 10;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 40px 48px;
  text-align: center;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.panel h1 {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.panel h1 span { color: var(--accent); }
.panel h1.dead { color: var(--danger); }

.tagline { opacity: 0.75; margin-bottom: 24px; font-size: 15px; }
.hint { opacity: 0.6; font-size: 13px; margin-top: 16px; }

.controls {
  list-style: none;
  text-align: left;
  margin: 0 auto 28px;
  display: inline-block;
}
.controls li {
  margin: 10px 0;
  font-size: 14px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mouse-ico { font-size: 18px; }

kbd {
  display: inline-block;
  background: #1e2733;
  border: 1px solid rgba(255,255,255,0.2);
  border-bottom-width: 3px;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 3px;
}

.btn {
  background: var(--accent);
  color: #06210b;
  border: none;
  border-radius: 30px;
  padding: 14px 44px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(126,231,135,0.35);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(126,231,135,0.5); }
.btn:active { transform: translateY(0); }

.results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 28px;
}
.results div {
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  padding: 14px;
}
.results div.big { grid-column: 1 / -1; background: rgba(126,231,135,0.12); }
.results span {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: var(--accent);
}
.results .big span { font-size: 44px; }
.results small { opacity: 0.6; font-size: 12px; letter-spacing: 1px; }

/* ---------- Tienda ---------- */
.panel.shop { max-width: 460px; }
.shop-cash { font-size: 24px; font-weight: 800; color: var(--warn); margin-bottom: 18px; }
#shop-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.shop-item {
  display: flex; align-items: center; gap: 14px;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 12px 16px; cursor: pointer; color: #e6edf3;
  font-family: var(--font); transition: transform 0.1s, border-color 0.2s;
}
.shop-item:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--accent); }
.shop-item:disabled { opacity: 0.45; cursor: not-allowed; }
.si-ico { font-size: 24px; }
.si-name { flex: 1; text-align: left; font-size: 15px; font-weight: 700; display: flex; flex-direction: column; }
.si-name small { font-weight: 400; opacity: 0.6; font-size: 12px; }
.si-cost { font-size: 16px; font-weight: 800; color: var(--warn); white-space: nowrap; }

/* ==========================================================================
   E1 · Selector de mapa de Supervivencia

   Las tarjetas las construye main.mjs desde ARENAS: este CSS no sabe cuántos
   mapas hay ni cómo se llaman, así que sumar una arena no toca ni una línea
   de acá.
   ========================================================================== */
.panel.wide { max-width: 720px; }
.panel .sub { opacity: 0.7; font-size: 14px; margin-bottom: 22px; }

.map-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.map-card {
  position: relative;
  text-align: left;
  padding: 16px 18px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-left: 3px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
}
.map-card:hover, .map-card:focus-visible {
  transform: translateY(-2px);
  background: rgba(126,231,135,0.10);
  border-left-color: var(--accent);
  outline: none;
}

.mc-name { display: block; font-size: 19px; font-weight: 800; letter-spacing: 0.5px; }
.mc-tag {
  display: inline-block; margin: 6px 0 8px; padding: 2px 8px;
  font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase;
  border-radius: 999px; background: rgba(255,255,255,0.08); opacity: 0.85;
}
.mc-desc { display: block; font-size: 13px; line-height: 1.45; opacity: 0.72; }
.mc-best {
  display: block; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: var(--warn); letter-spacing: 0.4px;
}
.mc-best.none { color: inherit; opacity: 0.4; }

/* Selector temporal de campaña: usa la misma familia de tarjetas, pero deja
   claro que es acceso de prueba y no progreso persistente. */
.campaign-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--warn);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
}
.campaign-level-card { min-height: 190px; padding-right: 56px; }
.campaign-level-number {
  position: absolute;
  top: 12px;
  right: 15px;
  color: rgba(255,255,255,0.13);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}
.campaign-play {
  display: block;
  margin-top: 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

/* La marca personal en el game over, cuando se supera */
.record { color: var(--warn); font-weight: 700; margin-top: 10px; letter-spacing: 0.5px; }

/* ========================================================================== 
   HUD DE COMBATE · instrumental, no tarjetas de web
   ========================================================================== */
.bar, .bar-fill { border-radius: 0; }
.bar {
  position: relative;
  height: 13px;
  border: 0;
  background: rgba(3, 7, 10, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16), 3px 3px 0 rgba(0,0,0,0.38);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%);
}
.bar::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 17px, rgba(3,7,10,0.6) 17px 19px);
}
.bar-fill.health { background: linear-gradient(90deg, #8f1717, #ef4b36 66%, #ffb14c); }

.hud-right { margin-top: 44px; gap: 3px; }
.counter {
  width: 92px;
  min-width: 0;
  justify-content: space-between;
  gap: 7px;
  padding: 5px 8px 4px 10px;
  border-radius: 0;
  border-left: 2px solid rgba(126,231,135,0.7);
  background: linear-gradient(90deg, rgba(5,10,13,0.88), rgba(9,15,19,0.66));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
  font-family: var(--font-title, sans-serif);
  font-size: 18px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.counter .ico {
  font-family: var(--font-label, sans-serif);
  font-size: 9px;
  letter-spacing: 1px;
  color: rgba(220,230,234,0.55);
}
.counter.cash { border-left-color: #ffd166; }
.counter.perf { width: 178px; }

.weapon-box {
  left: auto;
  right: 22px;
  bottom: 22px;
  width: 286px;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 8px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(145deg, rgba(11,17,21,0.94), rgba(4,8,11,0.90));
  box-shadow: inset 0 0 0 1px rgba(145,158,168,0.30), inset 4px 0 0 rgba(126,231,135,0.32), 0 12px 30px rgba(0,0,0,0.48);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 12px);
}
.weapon-box.flash { animation: loadoutFlash 0.34s ease-out; }
@keyframes loadoutFlash {
  0% { transform: translateX(-10px); filter: brightness(1.8); }
  100% { transform: translateX(0); filter: brightness(1); }
}
.loadout-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2px 7px 5px;
  border-bottom: 1px solid rgba(126,231,135,0.24);
  font-family: var(--font-title, sans-serif);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--accent);
}
.loadout-head small {
  font-family: var(--font-label, sans-serif);
  font-size: 8px;
  letter-spacing: 1px;
  color: rgba(220,230,234,0.38);
}
.slot {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 27px 58px minmax(0,1fr);
  align-items: center;
  gap: 6px;
  min-height: 72px;
  padding: 6px 8px 6px 5px;
  border: 0;
  border-left: 2px solid rgba(145,158,168,0.26);
  border-radius: 0;
  opacity: 0.42;
  background: linear-gradient(90deg, rgba(23,30,35,0.84), rgba(8,13,16,0.76));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.055);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: opacity 0.12s, transform 0.12s, border-color 0.12s, filter 0.12s;
}
.slot.active {
  opacity: 1;
  border-color: var(--accent);
  background: linear-gradient(90deg, rgba(25,43,31,0.92), rgba(10,18,14,0.84));
  transform: translateX(-7px);
  box-shadow: inset 0 0 0 1px rgba(126,231,135,0.24), 5px 0 18px rgba(126,231,135,0.08);
}
.slot.vacio { opacity: 0.2; }
.slot.nade { opacity: 0.82; border-left-color: #ff9b3b; }
.slot.nade.flash { animation: nadeFlash 0.32s ease-out; }
@keyframes nadeFlash { 50% { filter: brightness(2); transform: translateX(-6px); } }
.slot.recargando {
  opacity: 1;
  border-left-color: var(--warn);
  animation: reloadPulse 0.55s steps(2,end) infinite;
}
@keyframes reloadPulse { 50% { filter: brightness(1.35); } }
.slot-key {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 0;
  background: rgba(0,0,0,0.48);
  box-shadow: inset -1px 0 rgba(255,255,255,0.09);
  font-family: var(--font-title, sans-serif);
  font-size: 14px;
  color: rgba(230,237,241,0.68);
}
.slot-art {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 4px 3px rgba(0,0,0,0.75));
}
.nade-art { width: 48px; height: 48px; justify-self: center; }
.slot-data {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.slot-name {
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-title, sans-serif);
  font-size: 15px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.slot-readout {
  position: absolute;
  top: -3px;
  right: 0;
  display: flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.slot-ammo { font-family: var(--font-title, sans-serif); font-size: 22px; line-height: 1; color: var(--warn); }
.slot-res { font-family: var(--font-label, sans-serif); font-size: 10px; opacity: 0.55; }
.slot-state {
  margin-top: 4px;
  font-family: var(--font-label, sans-serif);
  font-size: 8px;
  line-height: 1;
  letter-spacing: 1.4px;
  color: rgba(220,230,234,0.46);
}
.slot.recargando .slot-state { color: var(--warn); }
.slot.empty.active .slot-state { color: var(--danger); animation: ammoblink 0.6s infinite; }

.ammo-strip, .nade-pips {
  height: 15px;
  margin-top: 7px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.ammo-strip i {
  display: block;
  width: 4px;
  height: 13px;
  background: linear-gradient(90deg, #8d611e, #ffe08a 55%, #a66f20);
  clip-path: polygon(50% 0, 100% 24%, 100% 100%, 0 100%, 0 24%);
  box-shadow: 0 0 5px rgba(255,209,102,0.25);
}
.ammo-strip.smg i, .ammo-strip.minigun i { width: 3px; }
.ammo-strip.shotgun i { width: 6px; background: linear-gradient(90deg,#681c16,#d94a32 58%,#8f291d); }
.ammo-strip.rpg i { width: 36px; height: 8px; clip-path: polygon(0 25%,78% 25%,100% 50%,78% 75%,0 75%); background:#7d8758; }
.ammo-strip.minigun i { height: 11px; transform: skewY(-12deg); }
.ammo-strip i.spent {
  background: #20262a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.055);
  opacity: 0.52;
}
.nade-pips i {
  display: block;
  width: 10px;
  height: 13px;
  border-radius: 50% 50% 44% 44%;
  background: #a34829;
  box-shadow: 0 0 5px rgba(255,115,55,0.34), inset 0 0 0 1px rgba(255,200,130,0.3);
}
.nade-pips i.spent { background:#20262a; box-shadow:inset 0 0 0 1px rgba(255,255,255,0.06); opacity:0.5; }

.wave-banner {
  position: relative;
  min-width: 260px;
  padding: 11px 44px 9px;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(5,11,14,0.88) 18%, rgba(5,11,14,0.88) 82%, transparent);
  box-shadow: inset 0 1px rgba(126,231,135,0.42), inset 0 -1px rgba(126,231,135,0.18);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
  font-family: var(--font-title, sans-serif);
  font-size: 25px;
  letter-spacing: 4px;
  text-shadow: 0 0 14px rgba(126,231,135,0.42);
}
.wave-banner::before {
  content: "ALERTA TÁCTICA";
  position: absolute;
  top: 2px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-label, sans-serif);
  font-size: 7px; letter-spacing: 2px; color: rgba(230,240,234,0.38);
}
.toast, .rescue-alert {
  z-index: 8;
  min-width: 330px;
  padding: 13px 34px 11px;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(5,10,13,0.96), rgba(15,25,20,0.94));
  color: #e9f1ec;
  border: 0;
  border-left: 4px solid var(--accent);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(126,231,135,0.18);
  font-family: var(--font-title, sans-serif);
  font-size: 16px;
  letter-spacing: 1.6px;
  text-align: center;
  animation: combatNoticeIn 0.18s ease-out both;
}
.toast { top: 112px; }
.toast::before, .rescue-alert::before {
  content: "SISTEMA";
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-label, sans-serif);
  font-size: 8px;
  letter-spacing: 2.4px;
  color: var(--accent);
}
.rescue-alert {
  top: 70px;
  border-left-color: var(--danger);
  background: linear-gradient(90deg, rgba(20,5,6,0.97), rgba(48,10,12,0.93));
  box-shadow: 0 8px 28px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,91,91,0.25);
  animation: rescueCombatPulse 0.8s steps(2,end) infinite;
}
.rescue-alert::before { content: "PRIORIDAD"; color: #ff7a6b; }
@keyframes combatNoticeIn {
  from { opacity:0; transform:translateX(-50%) translateY(-12px); }
  to { opacity:1; transform:translateX(-50%) translateY(0); }
}
@keyframes rescueCombatPulse {
  0%,100% { transform:translateX(-50%); filter:brightness(1); }
  50% { transform:translateX(-50%); filter:brightness(1.35); }
}
.objective {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}

@media (max-width: 720px) {
  #hud { padding: 10px; }
  .hud-left { width: 190px; }
  .hud-right { margin-top: 42px; }
  .weapon-box { right: 10px; bottom: 10px; width: 244px; padding: 6px; }
  .loadout-head { display: none; }
  .slot { grid-template-columns: 23px 45px minmax(0,1fr); min-height: 58px; padding: 4px; }
  .slot-art { width: 44px; height: 44px; }
  .slot-name { font-size: 13px; max-width: 90px; }
  .slot-ammo { font-size: 18px; }
  .toast, .rescue-alert { min-width: min(330px, calc(100vw - 24px)); font-size: 13px; }
}
@media (max-height: 620px) and (min-width: 721px) {
  .weapon-box { width: 254px; bottom: 10px; right: 10px; }
  .slot { grid-template-columns: 24px 44px minmax(0,1fr); min-height: 54px; padding: 3px 6px 3px 4px; }
  .slot-art { width: 42px; height: 42px; }
  .loadout-head { display:none; }
}

/* Cuenta / progreso — portada completa, no panel administrativo. */
.auth-gateway { display:block; overflow:auto; padding:0; isolation:isolate; scroll-behavior:smooth; background:#030709; backdrop-filter:none; }
.auth-hero-art { position:absolute; z-index:0; inset:0; width:100%; height:100vh; object-fit:cover; object-position:center; }
.auth-gateway::before { content:""; position:absolute; inset:0 0 auto; height:100vh; z-index:1; pointer-events:none; background:
  linear-gradient(90deg,rgba(2,6,8,.94) 0%,rgba(2,7,10,.76) 32%,rgba(3,8,11,.08) 66%,rgba(2,6,8,.56) 100%),
  linear-gradient(0deg,rgba(2,6,8,.96),transparent 42%,rgba(2,6,8,.32)); }
.auth-gateway::after { content:""; position:absolute; inset:0; z-index:1; pointer-events:none; opacity:.12; background:repeating-linear-gradient(0deg,transparent 0 3px,rgba(170,220,215,.09) 4px); }
.auth-topbar { position:fixed; z-index:2; top:0; left:0; right:0; display:flex; align-items:center; justify-content:space-between; padding:22px 34px; border-bottom:1px solid rgba(132,177,179,.16); background:linear-gradient(#03080bd9,transparent); }
.auth-mark { color:#e7f1ef; text-decoration:none; font:700 13px/1 Oswald,sans-serif; letter-spacing:.18em; }.auth-mark span { color:#d94c43; margin:0 4px; }
.auth-site-nav { display:flex; gap:30px; }.auth-site-nav a { color:#829799; text-decoration:none; font:600 10px Oswald,sans-serif; letter-spacing:.17em; }.auth-site-nav a:hover { color:#e9f3f1; }
.auth-server { display:flex; align-items:center; gap:8px; color:#8ea6a5; font-size:10px; letter-spacing:.16em; }.auth-server i { width:7px; height:7px; border-radius:50%; background:#6fe2a5; box-shadow:0 0 10px #6fe2a5; }
.auth-shell { position:relative; z-index:2; display:grid; grid-template-columns:minmax(420px,1fr) 410px; align-items:center; gap:clamp(50px,9vw,160px); width:min(1380px,calc(100vw - 72px)); min-height:100vh; margin:auto; padding:88px 0 44px; box-sizing:border-box; }
.auth-brand { max-width:560px; text-align:left; text-shadow:0 3px 24px #000; }
.auth-brand h1 { margin:8px 0 22px; color:#eef8f5; font:700 clamp(58px,6.4vw,98px)/.86 Oswald,sans-serif; letter-spacing:-.045em; white-space:nowrap; }
.auth-brand h1 span { color:#d94c43; }
.auth-eyebrow { color:#63d7c5; font-size:11px; font-weight:700; letter-spacing:.28em; }
.auth-lead { margin:0; max-width:520px; color:#dbe5e4; font:400 clamp(24px,2.4vw,38px)/1.15 Oswald,sans-serif; letter-spacing:.01em; }.auth-lead strong { color:#fff; font-weight:600; }
.auth-copy { max-width:470px; margin:18px 0 25px; color:#9eb0b2; font-size:14px; line-height:1.6; }
.auth-features { display:flex; gap:1px; width:max-content; max-width:100%; padding:0; margin:0; list-style:none; border:1px solid rgba(128,168,170,.25); background:rgba(3,9,11,.62); }
.auth-features li { display:flex; flex-direction:column; min-width:116px; padding:11px 15px; border-right:1px solid rgba(128,168,170,.2); }.auth-features li:last-child { border:0; }
.auth-features b { color:#eaf4f2; font:600 22px Oswald,sans-serif; }.auth-features span { margin-top:2px; color:#71888a; font-size:8px; letter-spacing:.11em; }
.account-panel { width:410px; box-sizing:border-box; }
.auth-card { position:relative; padding:0; overflow:hidden; text-align:left; color:#dce8e7; border:1px solid rgba(130,176,179,.35); background:linear-gradient(145deg,rgba(7,17,21,.95),rgba(3,9,12,.9)); box-shadow:0 30px 90px #000b,0 0 0 1px #000 inset; backdrop-filter:blur(16px); }
.auth-card::before { content:""; position:absolute; top:0; left:0; width:90px; height:2px; background:#d94c43; box-shadow:0 0 18px #d94c43; }
.auth-card-head { padding:27px 30px 19px; }.auth-card-head p { margin:0 0 5px; color:#71898c; font-size:9px; letter-spacing:.2em; }.auth-card-head h2 { margin:0; color:#eef6f4; font:600 24px Oswald,sans-serif; letter-spacing:.08em; }
.account-columns { display:block; text-align:left; }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; padding:0 30px; border-bottom:1px solid rgba(119,157,159,.18); }
.auth-tabs button { padding:12px 5px; color:#687d7f; background:none; border:0; border-bottom:2px solid transparent; font:600 11px Oswald,sans-serif; letter-spacing:.12em; cursor:pointer; }.auth-tabs button.active { color:#e9f3f1; border-color:#63d7c5; }
.account-form { padding:22px 30px 18px; background:transparent; border:0; }
.account-form h2 { margin:0 0 14px; color:#dce8e8; font-size:16px; letter-spacing:.16em; }
.account-form label { display:block; margin:0 0 15px; color:#829698; font-size:9px; font-weight:700; letter-spacing:.16em; }
.account-form input,.account-form select { box-sizing:border-box; width:100%; height:45px; margin-top:7px; padding:0 13px; color:#edf5f3; background:rgba(2,8,10,.72); border:1px solid #2a4449; border-radius:2px; font:500 13px Barlow Condensed,sans-serif; transition:border-color .15s,box-shadow .15s; }
.account-form input::placeholder { color:#4f6467; }.account-form input:focus,.account-form select:focus { outline:0; border-color:#63d7c5; box-shadow:0 0 0 2px rgba(99,215,197,.1); }
.auth-submit { margin:7px 0 10px; min-height:49px; width:100%; clip-path:none; color:#06100e; background:linear-gradient(180deg,#8cf0bd,#50c990); border:0; font-size:15px; box-shadow:0 8px 22px rgba(44,179,120,.18); }.auth-submit:hover { filter:brightness(1.08); transform:translateY(-1px); }
.auth-text-button { display:block; margin:10px auto 0; padding:5px; color:#789092; background:none; border:0; font:500 11px Barlow Condensed,sans-serif; cursor:pointer; }.auth-text-button:hover { color:#b9cbca; }
.auth-recovery-copy { margin:0 0 18px; color:#839799; font-size:12px; line-height:1.45; }
.auth-secure { display:flex; justify-content:space-between; padding:12px 30px; color:#52676a; border-top:1px solid rgba(119,157,159,.14); font-size:8px; letter-spacing:.13em; }.auth-secure span::before { content:"■"; margin-right:6px; color:#4f9c82; font-size:6px; }
.account-profile { padding:16px; }
.profile-kicker { margin:0 0 5px; color:#9fb0b2; font-size:10px; letter-spacing:.2em; }
.account-profile>h1 { margin:0; }
.account-email { color:#dce8e8; font-size:18px; }
.account-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:20px 0; }
.account-stats>div { padding:14px 8px; background:#091217; border:1px solid #2d4449; }
.account-stats b,.account-stats small { display:block; }
.account-stats b { color:#63d7c5; font-size:18px; }
.account-stats small { margin-top:5px; color:#83979a; font-size:9px; letter-spacing:.12em; }
.account-message { min-height:20px; color:#63d7c5; }
.account-message.bad { color:#ff6565; }
.account-history { max-height:110px; overflow:auto; margin:8px 0 14px; padding:10px 24px; text-align:left; color:#9eb0b3; background:#091217; border:1px solid #2d4449; font-size:11px; }
.account-history li { margin:5px 0; }
.profile-history-title { margin:20px 0 8px; color:#dce8e8; font:600 18px Oswald,sans-serif; letter-spacing:.14em; text-align:left; }

/* Dentro del juego, Cuenta vuelve al mismo sistema visual militar que el resto
   de los menús. La landing sólo pertenece al estado previo a iniciar sesión. */
.auth-gateway.account-profile-mode { display:flex; align-items:center; justify-content:center; overflow:hidden; padding:24px; background:rgba(3,6,10,.82); backdrop-filter:blur(4px); }
.account-profile-mode::before,.account-profile-mode::after,.account-profile-mode .auth-hero-art,.account-profile-mode .auth-topbar,.account-profile-mode .auth-brand,.account-profile-mode .landing-section,.account-profile-mode .landing-footer { display:none; }
.account-profile-mode .auth-shell { display:flex; width:auto; min-height:0; margin:0; padding:0; }
.account-profile-mode .account-panel { max-height:calc(100vh - 48px); overflow:auto; }
.account-profile-mode .account-profile { padding:0; }
.account-profile-mode .account-email { margin:0 0 14px; color:#dce8e8; font:500 16px Barlow Condensed,sans-serif; }
.account-profile-mode .account-stats { display:flex; justify-content:center; gap:10px; margin:14px 0 20px; }
.account-profile-mode .account-stats>div { min-width:92px; padding:11px 8px; }
.account-profile-mode .account-stats b { font-size:22px; }
.account-profile-mode .account-history { max-height:96px; margin:8px 0 14px; background:rgba(4,9,12,.82); }
.account-profile-mode .account-message { min-height:0; margin:0; }
.landing-section,.landing-footer { position:relative; z-index:2; }
.landing-section { width:min(1260px,calc(100vw - 72px)); margin:auto; padding:110px 0; }
.landing-kicker { margin:0 0 12px; color:#63d7c5; font-size:10px; font-weight:700; letter-spacing:.26em; }
.landing-section h2 { margin:0 0 22px; color:#edf6f4; font:600 clamp(38px,4.5vw,68px)/.96 Oswald,sans-serif; letter-spacing:-.02em; }.landing-section h2 span { color:#d94c43; }
.landing-section p { color:#91a5a7; font-size:15px; line-height:1.65; }
.landing-campaign { display:grid; grid-template-columns:.82fr 1.18fr; gap:70px; align-items:center; border-top:1px solid rgba(113,154,158,.2); }
.landing-copy { max-width:470px; }.landing-checks { display:grid; gap:12px; margin:28px 0 0; padding:0; list-style:none; color:#b6c6c5; font-size:12px; }.landing-checks li::before { content:"//"; margin-right:10px; color:#d94c43; font-weight:700; }
.landing-visual { position:relative; min-width:0; margin:0; box-shadow:0 28px 80px #000a; }.landing-visual::before { content:""; position:absolute; inset:-1px; border:1px solid rgba(119,168,171,.35); pointer-events:none; }.landing-visual img { display:block; width:100%; aspect-ratio:1.65; object-fit:cover; object-position:70% center; }.landing-visual figcaption { position:absolute; right:18px; bottom:16px; display:flex; flex-direction:column; padding:10px 13px; color:#9bb0b1; background:#03090bd9; border-left:2px solid #d94c43; font-size:8px; letter-spacing:.13em; }.landing-visual figcaption b { color:#edf5f3; font:600 14px Oswald,sans-serif; }
.landing-system { width:100%; padding-left:max(36px,calc((100vw - 1260px)/2)); padding-right:max(36px,calc((100vw - 1260px)/2)); background:linear-gradient(180deg,#071014,#03080b); border-block:1px solid rgba(113,154,158,.16); }.landing-system header { max-width:720px; }
.landing-feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; margin-top:45px; background:rgba(113,154,158,.18); border:1px solid rgba(113,154,158,.18); }.landing-feature-grid article { min-height:210px; padding:32px; background:#071014; }.landing-feature-grid article>b { color:#d94c43; font:600 12px Oswald,sans-serif; }.landing-feature-grid h3 { margin:35px 0 10px; color:#dce8e6; font:600 21px Oswald,sans-serif; letter-spacing:.09em; }.landing-feature-grid p { font-size:12px; }
.landing-coop { display:grid; grid-template-columns:1fr auto; gap:40px; align-items:end; }.landing-coop>div:first-child { max-width:600px; }.landing-coop-stats { grid-column:1/-1; display:grid; grid-template-columns:repeat(3,1fr); border:1px solid rgba(113,154,158,.22); }.landing-coop-stats span { display:flex; flex-direction:column; padding:22px; color:#72898b; border-right:1px solid rgba(113,154,158,.2); font-size:9px; letter-spacing:.15em; }.landing-coop-stats span:last-child { border:0; }.landing-coop-stats b { margin-bottom:4px; color:#edf5f3; font:600 27px Oswald,sans-serif; }
.landing-cta { width:auto; min-width:230px; margin:0; clip-path:none; text-decoration:none; }
.landing-footer { display:flex; justify-content:space-between; padding:24px max(36px,calc((100vw - 1260px)/2)); color:#4d6264; background:#020608; border-top:1px solid rgba(113,154,158,.15); font-size:8px; letter-spacing:.15em; }
@media (max-width:980px) {
  .auth-topbar { padding:16px 20px; }
  .auth-site-nav { display:none; }
  .auth-shell { grid-template-columns:1fr; gap:28px; width:min(440px,calc(100vw - 28px)); padding:78px 0 26px; }
  .auth-brand { text-align:center; }.auth-brand h1 { font-size:58px; }.auth-copy { display:none; }
  .auth-features { margin:auto; }.auth-features li { min-width:85px; padding:8px; }
  .account-panel { width:100%; }
  .landing-section { width:min(720px,calc(100vw - 36px)); padding:75px 0; }.landing-campaign { grid-template-columns:1fr; gap:38px; }.landing-copy { max-width:none; }
  .landing-system { width:100%; padding-left:18px; padding-right:18px; }.landing-feature-grid { grid-template-columns:1fr; }.landing-feature-grid article { min-height:0; }
  .landing-coop { grid-template-columns:1fr; }.landing-cta { width:100%; }.landing-coop-stats { grid-template-columns:1fr; }.landing-coop-stats span { border-right:0; border-bottom:1px solid rgba(113,154,158,.2); }
}
@media (max-width:520px) {
  .auth-server { display:none; }.auth-brand h1 { font-size:48px; }.auth-lead { font-size:22px; }
  .auth-features { display:none; }.auth-card-head { padding:22px 22px 15px; }.auth-tabs,.account-form { padding-left:22px; padding-right:22px; }
}

/* Lobby cooperativo */
.lobby-panel { width:min(1080px,94vw); max-height:88vh; overflow:auto; }
.lobby-head,.lobby-toolbar,.room-current-head,.room-actions { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.lobby-head h1 { margin:2px 0 16px; }
.lobby-capacity { padding:8px 12px; color:#63d7c5; border:1px solid #31565a; font-size:11px; letter-spacing:.14em; }
.lobby-layout { display:grid; grid-template-columns:1.5fr .8fr; gap:18px; text-align:left; }
.lobby-toolbar h2,.room-create h2,.room-current h2 { color:#dce8e8; font-size:15px; letter-spacing:.14em; }
.btn.compact { width:auto; min-width:0; padding:7px 10px; margin:0; font-size:10px; }
.room-list { display:grid; gap:8px; min-height:220px; max-height:350px; overflow:auto; }
.room-card { display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:12px; width:100%; padding:13px 15px; color:#dce8e8; text-align:left; background:#091217; border:1px solid #294147; cursor:pointer; }
.room-card:hover { border-color:#63d7c5; background:#0c1a1f; }
.room-card b,.room-card small { display:block; }
.room-card small { margin-top:4px; color:#7f9598; }
.room-card .room-count { color:#63d7c5; font-weight:700; }
.room-empty { display:grid; place-items:center; color:#71878a; border:1px dashed #294147; }
.room-create { margin:0; }
.room-code-join { display:flex; gap:6px; margin-top:16px; }
.room-code-join input { text-transform:uppercase; letter-spacing:.2em; }
.room-code-join .btn { margin:5px 0 0; }
.room-current { margin-top:18px; padding:18px; background:rgba(5,12,15,.86); border:1px solid #31565a; }
.room-current-code { display:block; color:#63d7c5; font-size:25px; letter-spacing:.22em; }
.room-members { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:18px 0; }
.room-member { padding:12px; background:#091217; border:1px solid #294147; }
.room-member.ready { border-color:#4c887d; }
.room-member b,.room-member small { display:block; overflow:hidden; text-overflow:ellipsis; }
.room-member small { margin-top:5px; color:#819699; }
.room-actions { justify-content:center; flex-wrap:wrap; }
.room-actions .btn { width:auto; min-width:180px; }
@media (max-width:760px) {
  .lobby-layout { grid-template-columns:1fr; }
  .room-members { grid-template-columns:1fr; }
  .lobby-head { align-items:flex-start; }
}

/* E7-C · comunicaciones del escuadrón */
.social-badge { display:inline-grid; place-items:center; min-width:19px; height:19px; margin-left:7px; padding:0 5px; color:#071014; background:#72ef9b; border-radius:50%; font:700 11px sans-serif; vertical-align:middle; }
.social-panel { width:min(1180px,96vw); max-height:92vh; overflow:auto; text-align:left; }
.social-head,.chat-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.social-head h1 { margin:2px 0 16px; }
.social-identity { display:flex; flex-direction:column; align-items:flex-end; padding:10px 14px; border:1px solid #31565a; background:#071014; }
.social-identity b { color:#e4eeee; font:600 18px Oswald,sans-serif; }.social-identity span { color:#63d7c5; font-size:10px; letter-spacing:.16em; }
.social-grid { display:grid; grid-template-columns:360px 1fr; min-height:540px; border:1px solid #294147; background:#050b0e; }
.social-roster { padding:16px; border-right:1px solid #294147; }.social-roster h2,.social-comms h2 { margin:18px 0 8px; color:#829699; font:600 11px Oswald,sans-serif; letter-spacing:.17em; }
.social-search,.chat-form { display:flex; gap:7px; }.social-search input,.chat-form input { flex:1; min-width:0; padding:11px; color:#e4eeee; background:#071115; border:1px solid #31565a; outline:none; }.social-search input:focus,.chat-form input:focus { border-color:#63d7c5; }
.social-list { display:grid; gap:6px; max-height:210px; overflow:auto; }.compact-list { max-height:120px; }.friends-list { max-height:245px; }
.social-person { display:grid; grid-template-columns:9px 1fr auto; align-items:center; gap:9px; padding:10px; background:#091217; border:1px solid #20373c; cursor:pointer; }.social-person:hover { border-color:#4b7779; }.social-person b,.social-person small { display:block; }.social-person b { color:#dce8e8; font:600 14px Oswald,sans-serif; }.social-person small { color:#71878a; font-size:9px; letter-spacing:.1em; }
.presence-dot { width:8px; height:8px; border-radius:50%; background:#526267; box-shadow:0 0 0 2px #172429; }.presence-dot.online { background:#72ef9b; box-shadow:0 0 8px #72ef9b; }.presence-dot.in_room { background:#60cdd6; }.presence-dot.playing { background:#e0b34e; box-shadow:0 0 8px #e0b34e; }
.person-actions { display:flex; gap:4px; }.person-actions button,.social-person>button,.invite-card button { padding:6px 8px; color:#9df1ca; background:#0a1a1d; border:1px solid #356365; font:600 9px Oswald,sans-serif; cursor:pointer; }
.social-comms { display:grid; grid-template-rows:1fr auto; gap:14px; padding:16px; min-width:0; }.social-empty { display:grid; place-items:center; align-content:center; color:#50676a; border:1px dashed #294147; }.social-empty b,.social-empty span { display:block; }.social-empty b { font:600 18px Oswald,sans-serif; letter-spacing:.14em; }
#social-chat { display:grid; grid-template-rows:auto 1fr auto; min-height:390px; }.chat-head { padding:0 0 12px; border-bottom:1px solid #294147; }.chat-head b,.chat-head span { display:block; }.chat-head b { color:#e3eeee; font:600 18px Oswald,sans-serif; }.chat-head span { color:#72ef9b; font-size:9px; letter-spacing:.14em; }.chat-actions { display:flex; gap:6px; flex-wrap:wrap; }.btn.danger { color:#ff7a72; border-color:#693b3a; }
.chat-messages { display:flex; flex-direction:column; gap:8px; max-height:340px; padding:15px 4px; overflow:auto; }.chat-line { align-self:flex-start; max-width:78%; padding:9px 11px; color:#cbd8d7; background:#101c20; border-left:2px solid #4f696d; }.chat-line.mine { align-self:flex-end; background:#0d2726; border-left:0; border-right:2px solid #63d7c5; }.chat-line span,.chat-line small { display:block; overflow-wrap:anywhere; }.chat-line small { margin-top:4px; color:#567073; font-size:8px; }
.social-invites { display:grid; gap:6px; }.invite-card { display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:10px; padding:10px 12px; background:#101b1e; border-left:3px solid #d5a64d; }.invite-card b,.invite-card span { display:block; }.invite-card b { color:#e4eeee; font:600 12px Oswald,sans-serif; }.invite-card span { color:#7f9395; font-size:9px; }.social-none { margin:8px 0; color:#4f6669; font-size:9px; letter-spacing:.14em; }
@media(max-width:800px){.social-grid{grid-template-columns:1fr}.social-roster{border-right:0;border-bottom:1px solid #294147}.social-grid{min-height:0}.social-head{align-items:flex-start}.invite-card{grid-template-columns:1fr}.chat-head{align-items:flex-start;flex-direction:column}}
