/* 99ROUNDS · web pública. Paleta del juego (la misma del selector de versiones), fuente de píxeles para los títulos y
   texto del sistema para leer. Diseño oscuro a propósito: es la pantalla del juego, no un documento. */
@font-face { font-family: "Press Start 2P"; src: url("fonts/PressStart2P-Regular.ttf") format("truetype"); font-display: swap; }
:root {
  --bg: #14121c; --bg2: #1b1826; --card: #221f2e; --line: #3a3550; --ink: #f4efe2; --dim: #a59fb8;
  --gold: #ffd75e; --red: #e8322e; --green: #7ee081; --sombra: #07060b;
  --pixel: "Press Start 2P", "Courier New", monospace;
  --texto: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--texto); -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font: 400 clamp(17px, 2.6vw, 24px)/1.5 var(--pixel); margin: 6px 0 28px; }
h3 { font: 400 13px/1.6 var(--pixel); color: var(--gold); margin-bottom: 10px; }
p { margin: 0 0 12px; }
.ancho { width: min(1120px, 100%); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.estrecho { width: min(860px, 100%); }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #1b1726; padding: 8px 12px; z-index: 50; }
.saltar:focus { left: 8px; }

/* idioma: dos textos por frase, se enseña el del <html lang> */
html[lang="es"] [lang="en"], html[lang="en"] [lang="es"] { display: none !important; }
.idioma { display: inline-flex; border: 2px solid var(--line); }
.idioma button { font: 400 10px/1 var(--pixel); background: transparent; color: var(--dim); border: 0; padding: 9px 10px; cursor: pointer; }
.idioma button[aria-pressed="true"] { background: var(--gold); color: #1b1726; }
.idioma button:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }

/* cabecera fija */
.cabecera { position: sticky; top: 0; z-index: 20; background: rgba(20, 18, 28, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.fila { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-block: 10px; }
.marca img { height: 24px; width: auto; image-rendering: pixelated; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; }
.nav a { color: var(--dim); text-decoration: none; font-size: 15px; padding: 6px 0; }
.nav a:hover, .nav a:focus-visible { color: var(--ink); }
.nav .nav-cta { color: var(--gold); font-weight: 700; }
@media (max-width: 640px) { .nav { display: none; } .idioma { margin-left: auto; } }

/* portada con vídeo */
.portada { position: relative; overflow: hidden; background: var(--bg) url("img/poster.jpg") center/cover; min-height: clamp(440px, 72vh, 780px); display: grid; align-items: end; }
.portada-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.portada-velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,28,.35) 0%, rgba(20,18,28,.55) 45%, var(--bg) 100%); }
.portada-cuerpo { position: relative; padding-block: clamp(48px, 10vw, 110px) 28px; }
.ojo { font: 400 10px/1.6 var(--pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin: 0 0 14px; }
.logo-grande img { width: min(560px, 92%); image-rendering: pixelated; filter: drop-shadow(4px 4px 0 var(--sombra)); }
.lema { font: 400 clamp(15px, 2.4vw, 22px)/1.7 var(--pixel); margin: 26px 0 14px; max-width: 30ch; text-shadow: 3px 3px 0 var(--sombra); }
.lema em { font-style: normal; color: var(--gold); }
.sublema { max-width: 58ch; color: var(--ink); font-size: 18px; text-shadow: 1px 1px 0 var(--sombra); }
.botonera { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.plataformas { color: var(--dim); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.beta-nota { color: var(--gold); }
.video-toggle { background: transparent; border: 1px solid var(--line); color: var(--dim); font-size: 12px; padding: 6px 10px; cursor: pointer; margin-top: 6px; }

/* botones de tienda: borde de píxel y sombra dura */
.boton { display: inline-flex; flex-direction: column; gap: 4px; min-width: 200px; padding: 12px 16px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--sombra); transition: transform .08s, border-color .15s; }
.boton:hover, .boton:focus-visible { border-color: var(--gold); outline: none; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--sombra); }
.boton:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--sombra); }
.boton-titulo { font: 400 11px/1.5 var(--pixel); }
.boton .estado { font-size: 13px; color: var(--dim); }
.boton .estado:empty { display: none; }
.boton.steam { border-color: #4e6b8f; } .boton.itch { border-color: #b55a74; } .boton.play { border-color: #3f8f63; }
.boton.pronto { cursor: default; opacity: .78; border-style: dashed; }
.boton.pronto:hover, .boton.pronto:focus-visible { transform: none; box-shadow: 4px 4px 0 var(--sombra); }
.boton.pronto .estado { color: var(--gold); }

/* franja de cifras */
.franja { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; padding-block: 22px; text-align: center; }
.cifras div { display: grid; gap: 6px; }
.cifras b { font: 400 clamp(20px, 3vw, 30px)/1 var(--pixel); color: var(--gold); font-variant-numeric: tabular-nums; }
.cifras span { color: var(--dim); font-size: 14px; }

/* secciones */
.seccion { padding-block: clamp(44px, 7vw, 84px); }
.alterna { background: var(--bg2); }
.rejilla { display: grid; gap: 18px; }
.rejilla.tres { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tarjeta { background: var(--card); border: 2px solid var(--line); box-shadow: 6px 6px 0 var(--sombra); display: flex; flex-direction: column; min-width: 0; }
.tarjeta img { aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 2px solid var(--line); image-rendering: auto; }
.tarjeta h3, .tarjeta p { padding-inline: 18px; }
.tarjeta h3 { padding-top: 16px; }
.tarjeta p { color: var(--ink); opacity: .9; font-size: 16px; padding-bottom: 14px; }
.rasgos { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.rasgos li { display: grid; gap: 4px; padding-left: 16px; border-left: 3px solid var(--gold); min-width: 0; }
.rasgos b { font-weight: 700; }
.rasgos span { color: var(--dim); font-size: 15px; }
.intro { max-width: 62ch; color: var(--dim); margin-bottom: 26px; font-size: 18px; }
.nota { color: var(--dim); font-size: 14px; max-width: 80ch; }

/* mapas y galería */
.mapas-lista { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; counter-reset: mapa; }
.mapas-lista li { counter-increment: mapa; font: 400 11px/1.6 var(--pixel); background: var(--card); border: 2px solid var(--line); padding: 9px 12px; }
.mapas-lista li::before { content: counter(mapa, decimal-leading-zero) " "; color: var(--green); }
.galeria { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 30px; }
.galeria figure { margin: 0; border: 2px solid var(--line); background: var(--card); min-width: 0; }
.galeria img { aspect-ratio: 16 / 9; object-fit: cover; }
.galeria figcaption { font-size: 13px; color: var(--dim); padding: 8px 12px; border-top: 2px solid var(--line); }

/* tráiler */
.marco-video { border: 2px solid var(--line); box-shadow: 8px 8px 0 var(--sombra); background: #000; margin-bottom: 14px; }
.marco-video video { width: 100%; aspect-ratio: 16 / 9; }

/* tiendas */
.tienda { background: var(--card); border: 2px solid var(--line); padding: 20px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tienda h3 { margin: 0 0 4px; }
.tienda p { color: var(--dim); font-size: 15px; flex: 1; }
.tienda .boton { align-self: flex-start; margin-top: 10px; }
.contacto { margin-top: 26px; color: var(--dim); }

/* pie */
.pie { border-top: 1px solid var(--line); padding-block: 26px 36px; background: var(--bg); }
.pie .fila { align-items: center; }
.pie-marca img { height: 48px; width: auto; image-rendering: pixelated; }
.pie-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pie-nav a { color: var(--dim); text-decoration: none; font-size: 14px; }
.pie-nav a:hover { color: var(--ink); }
.pie-nota { margin: 0 0 0 auto; color: var(--dim); font-size: 13px; }
@media (max-width: 640px) { .pie-nota { margin-left: 0; } }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .boton { transition: none; } }
