@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

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

:root {
  --red:      #8b0000;
  --red2:     #cc0000;
  --fire:     #cc4400;
  --ember:    #ff6600;
  --bg:       #1c1c28;
  --card:     rgba(36, 36, 52, 0.92);
  --border:   rgba(139, 0, 0, 0.3);
  --border2:  rgba(139, 0, 0, 0.55);
  --text:     #bbb;
  --dim:      #888;
  --bright:   #ddd;
  --font:     'Share Tech Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  font-family: var(--font);
  color: var(--text);
  overflow-x: hidden;
}

/* ── SCANLINES ───────────────────────────────────────────── */
.scanlines {
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 9000;
}

/* ── PARTÍCULAS (brasas flotantes) ───────────────────────── */
.particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 8999;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0)    scale(1);   opacity: 0;   }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-100vh) translateX(var(--drift)) scale(0.3); opacity: 0; }
}

/* ── HERO: PANTALLA COMPLETA ─────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Foto de fondo */
.hero-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero-photo.loaded { transform: scale(1); }

/* Overlay base: oscurece + tinte rojo */
.hero-overlay-base {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.55) 0%,
    rgba(30,0,0,0.45) 40%,
    rgba(6,6,8,0.85)  100%
  );
  pointer-events: none;
}

/* Vignette radial */
.hero-overlay-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

/* Grilla roja sutil encima de la foto */
.hero-overlay-scanline {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139,0,0,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,0,0,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* ── CONTENIDO DEL HERO ──────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 2rem;
  margin-bottom: 6vh;
}

.hero-logo-block { margin-bottom: 0.5rem; }

/* Logo principal */
.main-logo {
  display: block;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: 0.35em;
  color: var(--red);
  text-shadow:
    0 0 20px rgba(139,0,0,0.9),
    0 0 50px rgba(139,0,0,0.5),
    0 0 100px rgba(139,0,0,0.25),
    2px 2px 0 rgba(0,0,0,0.8);
  line-height: 1;
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(139,0,0,0.9), 0 0 50px rgba(139,0,0,0.5), 0 0 100px rgba(139,0,0,0.2); }
  50%       { text-shadow: 0 0 30px rgba(180,0,0,1),   0 0 70px rgba(139,0,0,0.7), 0 0 130px rgba(139,0,0,0.35); }
}

.main-tagline {
  display: block;
  font-size: clamp(0.55rem, 1.5vw, 0.8rem);
  letter-spacing: 0.55em;
  color: var(--dim);
  margin-top: 0.8rem;
  text-transform: uppercase;
}

.hero-sub {
  font-size: clamp(0.65rem, 1.8vw, 0.85rem);
  letter-spacing: 0.22em;
  color: #888;
  margin-top: 1.4rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.9;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

/* ── BOTONES CTA ─────────────────────────────────────────── */
.hero-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-block;
  background: var(--red);
  border: 1px solid var(--red2);
  color: #fff;
  font-family: var(--font);
  font-size: clamp(0.7rem, 1.5vw, 0.88rem);
  letter-spacing: 0.35em;
  padding: 0.9rem 2.5rem;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}

.btn-hero-primary:hover {
  background: #aa0000;
  box-shadow: 0 0 30px rgba(139,0,0,0.7), 0 0 60px rgba(139,0,0,0.3);
  transform: translateY(-2px);
}

.btn-hero-secondary {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(139,0,0,0.45);
  color: var(--red);
  font-family: var(--font);
  font-size: clamp(0.7rem, 1.5vw, 0.88rem);
  letter-spacing: 0.35em;
  padding: 0.9rem 2.5rem;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-hero-secondary:hover {
  background: rgba(139,0,0,0.12);
  border-color: var(--red);
  color: #ff4444;
  box-shadow: 0 0 20px rgba(139,0,0,0.3);
  transform: translateY(-2px);
}

.btn-hero-wiki {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(100,100,100,0.4);
  color: #666;
  font-family: 'Courier New', monospace;
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  letter-spacing: 0.25em;
  padding: 0.7rem 1.8rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-hero-wiki:hover {
  background: rgba(100,100,100,0.1);
  border-color: #888;
  color: #bbb;
  transform: translateY(-2px);
}

/* Si ya está logueado */
.btn-hero-play {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--font);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  letter-spacing: 0.5em;
  padding: 1rem 3.5rem;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.25s;
  animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(139,0,0,0.4), inset 0 0 15px rgba(139,0,0,0.05); }
  50%       { box-shadow: 0 0 30px rgba(139,0,0,0.7), inset 0 0 25px rgba(139,0,0,0.1); }
}

.btn-hero-play:hover {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 40px rgba(139,0,0,0.8);
  transform: translateY(-3px);
}

/* Indicador de scroll */
.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #2a2a2a;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  animation: scrollBounce 2s ease-in-out infinite;
  cursor: pointer;
  text-decoration: none;
}

.scroll-hint svg { opacity: 0.35; }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── TABLÓN DE IDEAS ─────────────────────────────────────── */
.suggestions-section {
  position: relative;
  background: var(--bg);
  padding: 72px 24px 60px;
  max-width: 860px;
  margin: 0 auto;
}

/* Formulario */
.sug-form-wrap {
  margin-bottom: 32px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
}
.sug-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: .82rem;
  letter-spacing: .06em;
  padding: 14px 16px;
  resize: none;
  height: 90px;
  outline: none;
  transition: background .2s;
}
.sug-input::placeholder { color: #333; }
.sug-input:focus { background: rgba(139,0,0,0.05); }
.sug-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
}
.sug-char { font-size: .7rem; letter-spacing: .1em; color: #333; }
.sug-submit-btn {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--red2);
  font-family: var(--font);
  font-size: .72rem;
  letter-spacing: .28em;
  padding: 6px 18px;
  cursor: pointer;
  transition: all .2s;
}
.sug-submit-btn:hover:not(:disabled) { background: var(--red); color: #fff; border-color: var(--red); }
.sug-submit-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Aviso no logueado */
.sug-login-hint {
  font-size: .78rem;
  letter-spacing: .1em;
  color: #444;
  margin-bottom: 28px;
  padding: 12px 16px;
  border: 1px solid rgba(139,0,0,0.12);
}
.sug-login-hint a { color: var(--red2); text-decoration: none; }
.sug-login-hint a:hover { color: #ff4444; }

/* Lista */
.sug-list { display: flex; flex-direction: column; gap: 0; }

.sug-card {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.045);
  padding: 16px 0;
  animation: rank-in .35s ease both;
}
.sug-card:first-child { border-top: 1px solid rgba(255,255,255,0.045); }

/* Columna de votos */
.sug-vote-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 54px;
  padding-top: 2px;
  flex-shrink: 0;
}
.sug-vote-btn {
  background: transparent;
  border: 1px solid rgba(139,0,0,0.3);
  color: #555;
  width: 32px; height: 32px;
  cursor: pointer;
  font-size: .9rem;
  line-height: 1;
  transition: all .18s;
  display: flex; align-items: center; justify-content: center;
}
.sug-vote-btn:hover:not(:disabled) { background: rgba(139,0,0,0.25); color: #cc4444; border-color: rgba(200,0,0,0.6); }
.sug-vote-btn.voted { background: rgba(139,0,0,0.35); color: #ff6666; border-color: rgba(200,0,0,0.7); }
.sug-vote-btn:disabled { cursor: default; }
.sug-vote-count {
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--dim);
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}
.sug-vote-count.high { color: #cc4444; }

/* Contenido */
.sug-body { flex: 1; min-width: 0; padding-left: 16px; }
.sug-meta {
  font-size: .68rem;
  letter-spacing: .12em;
  color: #444;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sug-author { color: #777; }
.sug-own-badge {
  font-size: .62rem; letter-spacing: .12em;
  background: rgba(139,0,0,0.2); color: #884444;
  padding: 1px 6px; border: 1px solid rgba(139,0,0,0.3);
}
.sug-message {
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--text);
  line-height: 1.65;
  word-break: break-word;
}

/* Cargar más */
.sug-more-wrap { text-align: center; margin-top: 28px; }
.sug-more-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: #444;
  font-family: var(--font);
  font-size: .72rem;
  letter-spacing: .28em;
  padding: 8px 28px;
  cursor: pointer;
  transition: all .2s;
}
.sug-more-btn:hover { border-color: rgba(255,255,255,0.25); color: #888; }

/* ── SECCIÓN RANKINGS ────────────────────────────────────── */
.rankings-section {
  position: relative;
  background: var(--bg);
  padding: 5rem 2rem 6rem;
  overflow: hidden;
}

/* Línea separadora top */
.rankings-section::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,0,0,0.5), transparent);
}

.rankings-section::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139,0,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,0,0,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.rankings-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.rankings-title h2 {
  font-size: clamp(1rem, 3vw, 1.5rem);
  letter-spacing: 0.5em;
  color: var(--dim);
  text-transform: uppercase;
}

.rankings-title p {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: #333;
  margin-top: 0.5rem;
}

/* Grid de dos columnas */
.rankings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@media (max-width: 680px) {
  .rankings-grid { grid-template-columns: 1fr; }
}

/* Panel de ranking */
.rank-panel {
  background: var(--card);
  border: 1px solid var(--border);
  position: relative;
}

.rank-panel::before,
.rank-panel::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-color: rgba(139,0,0,0.45);
  border-style: solid;
}
.rank-panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.rank-panel::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.rank-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(139,0,0,0.15);
}

.rank-panel-icon {
  font-size: 1.2rem;
}

.rank-panel-title {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--red);
  text-transform: uppercase;
}

.rank-panel-body {
  padding: 0.5rem 0;
  min-height: 320px;
}

/* Filas del ranking */
.rank-row {
  display: flex;
  align-items: center;
  padding: 0.65rem 1.4rem;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.15s;
  animation: rankFadeIn 0.4s ease forwards;
  opacity: 0;
}

.rank-row:hover { background: rgba(139,0,0,0.05); }

.rank-row:last-child { border-bottom: none; }

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

.rank-pos {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  min-width: 24px;
  text-align: right;
}

/* Podio: medallas */
.rank-row:nth-child(1) .rank-pos { color: #ffcc00; font-size: 1rem; }
.rank-row:nth-child(2) .rank-pos { color: #aaaaaa; font-size: 0.9rem; }
.rank-row:nth-child(3) .rank-pos { color: #cc6633; font-size: 0.85rem; }

.rank-name {
  flex: 1;
  font-size: 0.82rem;
  color: var(--bright);
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-tag {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--red);
  background: rgba(139,0,0,0.1);
  border: 1px solid rgba(139,0,0,0.25);
  padding: 1px 5px;
  margin-right: 4px;
}

.rank-stats {
  text-align: right;
  flex-shrink: 0;
}

.rank-kills {
  font-size: 0.82rem;
  color: var(--red);
  letter-spacing: 0.05em;
}

.rank-sub {
  font-size: 0.6rem;
  color: var(--dim);
  letter-spacing: 0.05em;
}

/* Estado: cargando / vacío */
.rank-loading,
.rank-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--dim);
  flex-direction: column;
  gap: 0.75rem;
}

.rank-loading::before {
  content: '';
  width: 22px; height: 22px;
  border: 2px solid rgba(139,0,0,0.25);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── FOOTER MÍNIMO ───────────────────────────────────────── */
.landing-footer {
  background: #030305;
  border-top: 1px solid rgba(139,0,0,0.1);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: #2a2a2a;
  position: relative;
  z-index: 1;
}

.landing-footer a {
  color: rgba(139,0,0,0.5);
  text-decoration: none;
  margin: 0 0.75rem;
  transition: color 0.2s;
}

.landing-footer a:hover { color: var(--red); }

/* ── PUNTO DE ESTADO PULSANTE ────────────────────────────── */
.status-dot {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(139,0,0,0.8);
  animation: statusPulse 2s infinite;
  z-index: 9001;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(139,0,0,0.8); }
  50%       { opacity: 0.2; box-shadow: none; }
}

/* ── BANNER DE JUGADOR LOGUEADO ──────────────────────────── */
.logged-in-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(6,6,8,0.95);
  border-bottom: 1px solid rgba(139,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  z-index: 100;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  backdrop-filter: blur(8px);
}

.logged-in-bar .lb-user {
  color: var(--dim);
}
.logged-in-bar .lb-user span {
  color: var(--red);
  font-size: 0.8rem;
}

.logged-in-bar .lb-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.lb-btn-play {
  background: var(--red);
  border: none;
  color: #fff;
  font-family: var(--font);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  padding: 0.4rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.lb-btn-play:hover {
  background: #aa0000;
  box-shadow: 0 0 15px rgba(139,0,0,0.5);
}

.lb-btn-out {
  background: transparent;
  border: none;
  color: #333;
  font-family: var(--font);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0.4rem;
}

.lb-btn-out:hover { color: #666; }

/* ── CONTADOR DE JUGADORES ONLINE ───────────────────────── */
.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: #333;
  margin-top: 1.6rem;
}

.online-badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #2daa2d;
  box-shadow: 0 0 6px rgba(45,170,45,0.6);
  animation: statusPulse 2s infinite;
}

/* ══════════════════════════════════════════════════════════
   MODALES DE PERFIL / CLAN (landing page)
   ══════════════════════════════════════════════════════════ */

.ld-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
  animation: modalFadeIn .18s ease;
}
.ld-modal.hidden { display: none; }

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ld-modal-inner {
  background: #09090d;
  border: 1px solid rgba(139,0,0,0.35);
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn .2s ease;
}
.ld-modal-inner::before,
.ld-modal-inner::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-color: rgba(139,0,0,0.5); border-style: solid;
}
.ld-modal-inner::before { top:-1px; left:-1px; border-width:2px 0 0 2px; }
.ld-modal-inner::after  { bottom:-1px; right:-1px; border-width:0 2px 2px 0; }

@keyframes modalSlideIn {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.ld-modal-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  color: #444;
  font-size: 1rem;
  cursor: pointer;
  transition: color .15s;
  z-index: 1;
  line-height: 1;
  padding: 4px;
}
.ld-modal-close:hover { color: var(--red); }

/* ── Cabecera del modal ─────────────────────────────────── */
.ldm-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.ldm-avatar {
  width: 52px; height: 52px;
  border: 1px solid rgba(139,0,0,0.3);
  background: rgba(139,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.ldm-title-block { flex: 1; min-width: 0; }

.ldm-name {
  font-size: 1.15rem;
  letter-spacing: .12em;
  color: #ddd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.ldm-sub {
  font-size: 0.62rem;
  letter-spacing: .2em;
  color: var(--dim);
  margin-top: 3px;
}

.ldm-tag {
  font-size: 0.65rem;
  letter-spacing: .15em;
  color: var(--red);
  background: rgba(139,0,0,0.1);
  border: 1px solid rgba(139,0,0,0.3);
  padding: 2px 7px;
  margin-top: 5px;
  display: inline-block;
}

/* ── Stats en grid ──────────────────────────────────────── */
.ldm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ldm-stat {
  padding: 1rem 0.8rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.ldm-stat:last-child { border-right: none; }

.ldm-stat-val {
  display: block;
  font-size: 1.1rem;
  color: var(--red);
  letter-spacing: .04em;
}
.ldm-stat-lbl {
  display: block;
  font-size: 0.57rem;
  letter-spacing: .2em;
  color: var(--dim);
  margin-top: 3px;
  text-transform: uppercase;
}

/* ── Clan badge dentro del perfil de jugador ────────────── */
.ldm-clan-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background .15s;
}
.ldm-clan-row:hover { background: rgba(139,0,0,0.06); }
.ldm-clan-row .rank-tag { font-size: 0.62rem; }
.ldm-clan-row-name { color: #bbb; }
.ldm-clan-row-hint { font-size: 0.6rem; color: #333; margin-left: auto; }

/* ── Sección de miembros ────────────────────────────────── */
.ldm-section-title {
  font-size: 0.58rem;
  letter-spacing: .28em;
  color: #333;
  padding: 0.7rem 1.5rem 0.3rem;
  text-transform: uppercase;
}

.ldm-member-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.025);
  transition: background .12s;
  cursor: pointer;
}
.ldm-member-row:hover { background: rgba(139,0,0,0.05); }
.ldm-member-row:last-child { border-bottom: none; }

.ldm-member-role {
  font-size: 0.58rem;
  letter-spacing: .1em;
  color: var(--dim);
  min-width: 52px;
}
.ldm-member-role.leader  { color: #ffcc44; }
.ldm-member-role.officer { color: #8888cc; }

.ldm-member-name {
  flex: 1;
  font-size: 0.78rem;
  color: #ccc;
  letter-spacing: .05em;
}

.ldm-member-kills {
  font-size: 0.7rem;
  color: var(--red);
}

/* ── Footer del modal ───────────────────────────────────── */
.ldm-footer {
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: .2em;
  color: #222;
  border-top: 1px solid rgba(255,255,255,0.03);
}

/* ── Loading ────────────────────────────────────────────── */
.ld-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  font-size: 0.7rem;
  letter-spacing: .25em;
  color: var(--dim);
  flex-direction: column;
  gap: 0.75rem;
}
.ld-loading::before {
  content: '';
  width: 20px; height: 20px;
  border: 2px solid rgba(139,0,0,0.2);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* ── CHANGELOG ──────────────────────────────────────────── */
.changelog-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}
.changelog-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2px;
}
.changelog-body {
  padding: 0.25rem 0;
  min-height: 280px;
}
.clog-entry {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid rgba(139,0,0,0.12);
  animation: fadeIn .25s ease;
}
.clog-entry:last-child { border-bottom: none; }
.clog-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 72px;
}
.clog-date {
  font-size: 0.65rem;
  color: var(--dim);
  letter-spacing: .05em;
  white-space: nowrap;
}
.clog-badge {
  font-size: 0.6rem;
  letter-spacing: .12em;
  padding: 2px 7px;
  border-radius: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.clog-badge.nueva   { background: rgba(0,100,40,0.35);  color: #4dbb80; border: 1px solid rgba(0,150,60,0.4); }
.clog-badge.mejora  { background: rgba(0,60,120,0.35);  color: #5599dd; border: 1px solid rgba(0,80,160,0.4); }
.clog-badge.fix     { background: rgba(120,60,0,0.35);  color: #dd9944; border: 1px solid rgba(160,80,0,0.4); }
.clog-badge.sistema { background: rgba(80,0,100,0.35);  color: #bb66dd; border: 1px solid rgba(110,0,140,0.4); }
.clog-text {
  flex: 1;
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.5;
}
.clog-title {
  color: var(--bright);
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}
.changelog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
}
.clog-btn {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--dim);
  font-family: var(--font);
  font-size: 0.65rem;
  letter-spacing: .15em;
  padding: 5px 14px;
  cursor: pointer;
  transition: all .2s;
}
.clog-btn:hover:not(:disabled) { background: rgba(139,0,0,0.2); color: var(--bright); border-color: var(--red2); }
.clog-btn:disabled { opacity: 0.3; cursor: default; }
.clog-page {
  font-size: 0.68rem;
  color: var(--dim);
  letter-spacing: .1em;
  min-width: 50px;
  text-align: center;
}

/* ══ NOVEDADES ══════════════════════════════════════════ */
.news-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0;
}
.news-list-pub {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 2rem;
}
.news-card {
  background: rgba(20,20,32,0.9);
  border: 1px solid rgba(139,0,0,0.2);
  padding: 14px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  animation: fadeSlide .35s ease both;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.news-card-badge {
  font-size: .55rem;
  letter-spacing: .12em;
  padding: 3px 8px;
  white-space: nowrap;
  margin-top: 2px;
  background: rgba(139,0,0,0.2);
  border: 1px solid rgba(139,0,0,0.35);
  color: #cc4444;
}
.news-card-badge.evento        { background: rgba(30,60,130,0.2); border-color: rgba(30,60,200,0.3); color: #6699ff; }
.news-card-badge.mantenimiento { background: rgba(80,60,0,0.2);   border-color: rgba(180,140,0,0.3); color: #ccaa44; }
.news-card-badge.nueva         { background: rgba(20,60,20,0.2);  border-color: rgba(46,125,50,0.3); color: #66bb6a; }
.news-card-body    { flex: 1; }
.news-card-title   { font-size: .78rem; letter-spacing: .06em; color: #ccc; margin-bottom: 5px; }
.news-card-text    { font-size: .68rem; color: #555; line-height: 1.55; }
.news-card-date    { font-size: .58rem; color: #333; margin-top: 7px; }
