/* Base común de las ediciones: marca de Jorex (verde oliva, DM Sans / DM Mono) y la capa
   de las acreditaciones colgantes. Cada edición añade su propio estilo encima. */
:root {
  --forest:   #1C2B1A;
  --oliva:    #606C38;
  --oliva-lt: #A3B067;
  --lima:     #d4e87a;
  --cream:    #E8EDD4;
  --sage:     #C5CEAB;
  --bg:       #0a1208;
  --mono: 'DM Mono', ui-monospace, monospace;
  --sans: 'DM Sans', system-ui, sans-serif;
  --hand: 'Permanent Marker', cursive;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--cream); font-family: var(--sans); line-height: 1.6; min-height: 100vh; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* capa de acreditaciones: detrás del contenido, a los lados */
.badges-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.badges-layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: auto; touch-action: pan-y; }   /* en táctil se puede seguir haciendo scroll vertical encima */
.content { position: relative; z-index: 1; }

/* volver al selector de ediciones */
.edition-tag {
  position: fixed; left: 16px; bottom: 16px; z-index: 50;
  font: 500 12px var(--mono); color: var(--sage); text-decoration: none;
  background: rgba(10,18,8,.9); border: 1px solid rgba(163,176,103,.25); border-radius: 999px; padding: 6px 12px;
}
.edition-tag:hover { color: var(--lima); border-color: var(--oliva-lt); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
