/* Five Fronts: hoja de estilo de la web. Mismos colores que los menus del juego. Sin fuentes ni recursos de fuera. */

:root {
  --fondo: #0e1216;
  --panel: #171c22;
  --panel-claro: #1b2129;
  --linea: #2c3540;
  --texto: #e8ecef;
  --suave: #c9d1d9;
  --apagado: #9aa6b2;
  --acento: #f2b441;
  --acento-vivo: #ffd27a;
  --azul: #6fb1e8;
  --ancho: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--acento); }

.ancho { max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }

/* ---- Barra de arriba ---- */

.barra {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 18, 22, 0.92);
  border-bottom: 1px solid var(--linea);
  backdrop-filter: blur(6px);
}
.barra .ancho { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; }
.marca { font-weight: 700; letter-spacing: 0.18em; color: var(--texto); text-decoration: none; white-space: nowrap; }
.barra nav { display: flex; gap: 22px; flex-wrap: wrap; }
.barra nav a { color: var(--suave); text-decoration: none; font-size: 15px; }
.barra nav a:hover { color: var(--acento); }

/* ---- Portada ---- */

.portada { text-align: center; padding: 64px 20px 28px; }
.portada .lema span { display: inline-block; white-space: nowrap; }
.portada h1 {
  margin: 0;
  font-size: clamp(40px, 9vw, 104px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding-left: 0.12em;
}
.portada .raya { width: min(460px, 70%); height: 2px; background: var(--acento); margin: 22px auto 18px; }
.portada .lema { margin: 0; font-size: clamp(17px, 2.6vw, 26px); font-weight: 700; letter-spacing: 0.22em; color: var(--acento); text-transform: uppercase; }
.portada .sub { margin: 14px auto 0; max-width: 640px; color: var(--suave); }
.etiqueta {
  display: inline-block; margin-top: 22px; padding: 6px 14px;
  border: 1px solid var(--acento); color: var(--acento);
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
}

/* ---- Mapa del mundo con los cinco frentes ---- */

.mundo { position: relative; margin: 26px auto 0; aspect-ratio: 16 / 9; background: #06090c; border: 1px solid var(--linea); overflow: hidden; }
.mundo img { width: 100%; height: 100%; object-fit: cover; }
.punto {
  position: absolute; width: 0; height: 0;
  text-decoration: none; color: var(--texto);
}
.punto::before {
  content: ""; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; background: var(--acento);
}
.punto::after {
  content: ""; position: absolute; left: -13px; top: -13px; width: 26px; height: 26px;
  border: 2px solid var(--acento); border-radius: 50%;
  animation: pulso 2.2s ease-out infinite;
}
.punto span {
  position: absolute; top: -15px; left: 24px; white-space: nowrap;
  padding: 3px 9px; background: rgba(14, 18, 22, 0.82);
  font-size: clamp(10px, 1.5vw, 15px); font-weight: 600; letter-spacing: 0.06em;
}
.punto.izquierda span { left: auto; right: 24px; }
.punto:hover span { color: var(--acento-vivo); }
@keyframes pulso {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .punto::after { animation: none; } html { scroll-behavior: auto; } }

/* ---- Secciones ---- */

section { padding: 72px 0 0; }
.titulo-seccion { margin: 0 0 6px; font-size: 14px; letter-spacing: 0.2em; color: var(--acento); text-transform: uppercase; font-weight: 600; }
h2 { margin: 0 0 14px; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.15; font-weight: 800; }
.entrada { margin: 0 0 30px; max-width: 760px; color: var(--suave); }

/* ---- El juego ---- */

.reglas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.regla { background: var(--panel); border: 1px solid var(--linea); border-top: 3px solid var(--acento); padding: 22px 22px 20px; }
.regla h3 { margin: 0 0 8px; font-size: 19px; }
.regla p { margin: 0; color: var(--suave); font-size: 16px; }

/* ---- Los frentes ---- */

.frente { margin-top: 26px; background: var(--panel); border: 1px solid var(--linea); overflow: hidden; scroll-margin-top: 76px; }
.frente .cabecera { position: relative; aspect-ratio: 16 / 6; min-height: 190px; }
.frente .cabecera img { width: 100%; height: 100%; object-fit: cover; }
.frente .cabecera::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 18, 22, 0.94) 4%, rgba(14, 18, 22, 0.15) 62%); }
.frente .rotulo { position: absolute; left: 26px; right: 26px; bottom: 18px; z-index: 1; }
.frente .numero { font-size: 13px; letter-spacing: 0.2em; color: var(--acento); font-weight: 600; }
.frente h3 { margin: 2px 0 2px; font-size: clamp(30px, 5.4vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: 0.03em; }
.frente .lugar { color: var(--suave); font-size: 16px; }

.duelo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--acento); }
.ejercito { position: relative; background: var(--fondo); }
.ejercito img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.ejercito figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 16px;
  background: linear-gradient(to top, rgba(14, 18, 22, 0.92), rgba(14, 18, 22, 0));
  font-size: clamp(18px, 3.2vw, 34px); font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
}
.ejercito:last-child figcaption { text-align: right; }
.ejercito figcaption::after { content: ""; display: block; width: min(170px, 60%); height: 4px; margin-top: 8px; background: var(--color, var(--acento)); }
.ejercito:last-child figcaption::after { margin-left: auto; }
.duelo .contra {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  padding: 6px 14px; background: var(--fondo); border: 1px solid var(--acento); color: var(--acento);
  font-size: 13px; letter-spacing: 0.18em; font-weight: 600;
}
figure { margin: 0; }

/* ---- Arsenal ---- */

.armas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.arma { background: var(--panel); border: 1px solid var(--linea); padding: 14px 18px 16px; }
.arma img { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; }
.arma h3 { margin: 8px 0 0; font-size: 19px; }
.arma p { margin: 0; color: var(--apagado); font-size: 15px; }
.equipo { margin-top: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.equipo .arma h3 { font-size: 16px; }
h2.menor { margin-top: 44px; font-size: 24px; }

/* ---- Estado ---- */

.estado { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.estado div { background: var(--panel); border: 1px solid var(--linea); padding: 22px; }
.estado h3 { margin: 0 0 10px; font-size: 18px; color: var(--acento); letter-spacing: 0.04em; }
.estado ul { margin: 0; padding-left: 20px; color: var(--suave); }
.estado li { margin-bottom: 6px; }

/* ---- Pie ---- */

footer { margin-top: 84px; padding: 28px 0 40px; border-top: 1px solid var(--linea); color: var(--apagado); font-size: 15px; }
footer .ancho { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
footer strong { color: var(--texto); letter-spacing: 0.16em; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  /* En el movil la barra son solo las secciones (el titulo esta justo debajo) y el mapa va sin rotulos. */
  .marca { display: none; }
  .barra .ancho { min-height: 48px; }
  .barra nav { width: 100%; justify-content: space-between; gap: 10px; }
  .barra nav a { font-size: 15px; }
  .portada { padding-top: 40px; }
  .portada .lema { letter-spacing: 0.16em; }
  .punto span { display: none; }
  .punto::before { left: -4px; top: -4px; width: 8px; height: 8px; }
  .punto::after { left: -10px; top: -10px; width: 20px; height: 20px; }
  section { padding-top: 54px; }
  .frente .rotulo { left: 16px; right: 16px; }
  .ejercito figcaption { padding: 40px 12px 12px; }
  .duelo .contra { font-size: 11px; padding: 4px 9px; }
}
