/* ===========================================================================
   CYBER-CLONES // PANIC LOGIC — hoja de estilo de las PAGINAS ESTATICAS
   (/about, /privacy). Deliberadamente separada de css/style.css: el juego es
   una app de Canvas con `overflow:hidden` y una sola pantalla, mientras que
   estas paginas son HTML plano que tiene que poder LEERSE y, sobre todo, que
   los rastreadores (que no ejecutan JS) vean texto real.
   Paleta y tipografia mono heredadas del juego; el cuerpo de texto usa una
   sans del sistema porque un parrafo largo en monoespaciada no se lee.
   Espejo de elderspire/public/site.css, mismo papel.
   =========================================================================== */

:root {
  --bg:        #05060a;
  --bg2:       #0a0e17;
  --panel:     #0d1321;
  --line:      #223052;
  --line-lit:  #35507f;
  --text:      #d7e4ff;
  --dim:       #66779c;
  --cyan:      #35e0ff;
  --magenta:   #ff4fd8;
  --gold:      #ffd24a;
  --green:     #58ff9b;
  --red:       #ff4d5e;
  --mono: 'Cascadia Mono', 'Cascadia Code', Consolas, 'Courier New', monospace;
  --read: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  background:
    radial-gradient(1100px 700px at 50% -12%, #101a30 0%, transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: var(--read);
  font-size: 17px;
  line-height: 1.75;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

img { image-rendering: pixelated; max-width: 100%; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* --- Rejilla de fondo, guino al menu del juego ----------------------------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(transparent 96%, rgba(53, 224, 255, .06) 100%),
    linear-gradient(90deg, transparent 96%, rgba(53, 224, 255, .06) 100%);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 10%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 10%, #000 25%, transparent 72%);
}

/* --- Nav ------------------------------------------------------------------ */
.nav {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(#080d18f2, #080d18d0);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(4px);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 54px; }
.nav a.brand {
  font-family: var(--mono); font-size: 14px; letter-spacing: 2px; flex-shrink: 0; font-weight: 700;
  color: var(--cyan); text-decoration: none; text-shadow: 0 0 10px rgba(53, 224, 255, .55);
  border-bottom: 0;
}
.nav .links { display: flex; gap: 18px; }
.nav .links a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1px; white-space: nowrap;
  color: var(--dim); text-decoration: none; text-transform: uppercase; border-bottom: 0;
}
.nav .links a:hover { color: var(--cyan); }

/* Menu hamburguesa nativo (<details>), sin JS: en escritorio los enlaces van
   inline y el simbolo se esconde; en movil se convierte en un desplegable. */
.nav-menu { display: contents; }
.nav-menu > summary {
  display: none; list-style: none; cursor: pointer; user-select: none;
  flex-shrink: 0; font-size: 22px; line-height: 1; color: var(--cyan);
  padding: 6px 8px; margin: -6px -8px; -webkit-tap-highlight-color: transparent;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu::details-content { content-visibility: visible; display: contents; }

@media (max-width: 640px) {
  .nav-menu { display: block; position: relative; }
  .nav-menu > summary { display: block; }
  .nav-menu::details-content { content-visibility: auto; display: block; }
  .nav-menu .links {
    display: none; position: absolute; right: 0; top: 34px; z-index: 20;
    flex-direction: column; gap: 0; min-width: 190px;
    background: var(--panel); border: 1px solid var(--line-lit);
    box-shadow: 0 10px 30px #000a;
  }
  .nav-menu[open] .links { display: flex; }
  .nav-menu .links a { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; }
  .nav-menu .links a:last-child { border-bottom: 0; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  text-align: center; padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(#0a1020, transparent);
}
.hero h1 {
  font-family: var(--mono); font-size: clamp(26px, 6vw, 46px); font-weight: 700;
  letter-spacing: 3px; color: var(--cyan);
  text-shadow: 0 0 18px rgba(53, 224, 255, .5), 2px 0 0 rgba(255, 79, 216, .45);
  line-height: 1.15;
}
.hero .sub {
  font-family: var(--mono); font-size: clamp(13px, 3vw, 20px); letter-spacing: 6px;
  color: var(--magenta); text-shadow: 0 0 14px rgba(255, 79, 216, .5); margin-top: 6px;
}
.hero .tagline { color: var(--dim); margin-top: 16px; font-size: 16px; }

/* --- Texto ---------------------------------------------------------------- */
main { padding: 34px 0 10px; }
main p, main ul, main ol, main table { margin-bottom: 18px; }
main ul, main ol { padding-left: 24px; }
main li { margin-bottom: 7px; }

h1.page-h1 {
  font-family: var(--mono); font-size: clamp(20px, 4.4vw, 30px); letter-spacing: 2px;
  color: var(--cyan); text-shadow: 0 0 14px rgba(53, 224, 255, .45); line-height: 1.3;
}
h2 {
  font-family: var(--mono); font-size: clamp(15px, 3.2vw, 19px); letter-spacing: 1.5px;
  color: var(--magenta); margin: 34px 0 12px; padding-left: 14px;
  border-left: 3px solid var(--magenta); line-height: 1.4;
}
h3 {
  font-family: var(--mono); font-size: 15px; letter-spacing: 1px;
  color: var(--gold); margin: 24px 0 8px;
}
strong { color: #fff; }
a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(53, 224, 255, .35); }
a:hover { color: #7deeff; border-bottom-color: currentColor; }

.post-meta { color: var(--dim); font-size: 14px; font-family: var(--mono); }

/* Panel con corchetes, igual que el juego */
.panel {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  padding: 18px 20px; margin: 22px 0;
}
.panel::before, .panel::after {
  content: ''; position: absolute; width: 12px; height: 12px; border: 2px solid var(--cyan);
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.panel h3 { margin-top: 0; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }

/* --- Botones -------------------------------------------------------------- */
.btn {
  display: inline-block; font-family: var(--mono); font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none; border-bottom: 0;
  padding: 12px 22px; margin: 6px 8px 6px 0;
  color: var(--bg); background: var(--cyan); border: 1px solid var(--cyan);
  box-shadow: 0 0 18px rgba(53, 224, 255, .35);
}
.btn:hover { background: #7deeff; border-color: #7deeff; color: var(--bg); }
.btn.ghost { background: transparent; color: var(--magenta); border-color: var(--magenta); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 79, 216, .12); color: var(--magenta); }

/* --- Tabla ---------------------------------------------------------------- */
.table-scroll { overflow-x: auto; margin-bottom: 18px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 460px; }
th, td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
th { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--cyan); background: #0a1120; text-transform: uppercase; }

/* --- Pie ------------------------------------------------------------------ */
footer {
  border-top: 1px solid var(--line); margin-top: 54px; padding: 26px 0 44px;
  color: var(--dim); font-size: 14px; text-align: center;
}
footer a { color: var(--dim); border-bottom-color: rgba(102, 119, 156, .4); }
footer a:hover { color: var(--cyan); }
