/* ==========================================================================
   DOMsters — hoja de estilos del sitio público
   Identidad: la misma que el overlay del juego (carcasa GameBoy, pantalla
   oscura, Press Start 2P para títulos, VT323 para cuerpo, fondo morado).
   Restricción: el hosting sirve CSP default-src 'self' → nada inline, nada
   externo. Las fuentes viven en fonts.css.
   ========================================================================== */

:root {
  /* paleta del overlay (ui-styles.ts) + landing beta */
  --grad1: #667eea;
  --grad2: #764ba2;
  --shell: #8ea0b6;
  --shell-dark: #607189;
  --shell-light: #b9c6d6;
  --ink: #1b1f1b;
  --bezel: #1f2937;
  --screen: #2b3436;
  --screen-deep: #111827;
  --screen-light: #394246;
  --screen-line: #5a6c84;
  --orange: #f39c12;
  --orange-dark: #c87f0a;
  --green: #2ecc71;
  --red: #e0245e;
  --blue: #60a5fa;
  --violet: #8b5cf6;
  --gold: #ffd27a;

  /* alias que usan wiki-styles.css, inline.css y las páginas antiguas */
  --bg: var(--screen-deep);
  --surface: var(--bezel);
  --surface-2: var(--bezel);
  --surface-alt: var(--screen-light);
  --surface-light: var(--screen-light);
  --card: var(--screen);
  --border: var(--screen-line);
  --text: #dbe6f0;
  --text-secondary: #9aa6bd;
  --muted: #9aa6bd;
  --primary: var(--orange);
  --accent: var(--blue);
  --accent-2: var(--green);
  --glow: 0 0 0 rgba(0,0,0,0);
  --shadow: 6px 6px 0 rgba(0,0,0,.35);

  --pixel: 'Press Start 2P', monospace;
  --body: 'VT323', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 20px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--grad2);
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 8px),
    linear-gradient(135deg, var(--grad1) 0%, var(--grad2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 48px;
}
main { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 32px 24px 0; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--pixel); line-height: 1.45; margin: 0 0 14px; color: #fff; text-shadow: 3px 3px 0 rgba(0,0,0,.35); }
h1 { font-size: clamp(22px, 3.4vw, 34px); }
h2 { font-size: clamp(16px, 2.2vw, 22px); }
h3 { font-size: 13px; }
h4 { font-size: 11px; }
p { margin: 0 0 12px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: rgba(0,0,0,.45); color: var(--gold); padding: 1px 7px; border-radius: 4px; font-family: 'Courier New', monospace; font-size: .85em; }
strong { color: #fff; }
.lead, .section__lead { color: var(--text); font-size: 22px; }
.eyebrow { font-family: var(--pixel); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; text-shadow: 2px 2px 0 rgba(0,0,0,.4); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --------------------------------------------------------------------------
   NAV (bisel oscuro con borde tinta)
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px;
  background: var(--bezel);
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 4px 0 rgba(0,0,0,.35);
}
.nav__overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 25; }
.nav__overlay--show { opacity: 1; pointer-events: auto; }
.nav__toggle { display: none; flex-direction: column; gap: 4px; background: var(--shell); border: 3px solid var(--ink); padding: 9px; border-radius: 6px; cursor: pointer; box-shadow: 3px 3px 0 rgba(0,0,0,.4); }
.nav__toggle-bar { width: 18px; height: 3px; background: var(--ink); display: block; }
.nav__logo { font-family: var(--pixel); font-size: 13px; display: flex; align-items: center; }
.nav__logo a { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; text-shadow: 2px 2px 0 rgba(0,0,0,.45); }
.nav__logo-img { width: 32px; height: 32px; image-rendering: auto; border: 3px solid var(--ink); border-radius: 6px; background: var(--screen); box-shadow: 2px 2px 0 rgba(0,0,0,.4); }
.nav__links { display: flex; gap: 6px; font-size: 19px; }
.nav__links a { color: var(--text); padding: 6px 10px; border-radius: 6px; text-decoration: none; border: 2px solid transparent; white-space: nowrap; }
.nav__links a:hover, .nav__links a.active { color: #fff; border-color: var(--screen-line); background: rgba(255,255,255,.06); }
.nav__cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__cta .btn { white-space: nowrap; }

.lang-switch { display: inline-flex; gap: 0; border: 3px solid var(--ink); border-radius: 6px; overflow: hidden; box-shadow: 3px 3px 0 rgba(0,0,0,.4); }
.lang-switch button { font-family: var(--pixel); font-size: 9px; padding: 9px 10px; background: var(--shell); color: var(--ink); border: 0; cursor: pointer; }
.lang-switch button + button { border-left: 3px solid var(--ink); }
.lang-switch button.active, .lang-switch__btn--active { background: var(--orange); color: var(--ink); }
.lang-switch button:hover { filter: brightness(1.08); }

/* --------------------------------------------------------------------------
   BOTONES (pixel: borde tinta + sombra dura + hundido al hover)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--pixel); font-size: 11px; line-height: 1.4; text-decoration: none; text-align: center;
  padding: 14px 20px; border-radius: 6px;
  background: var(--shell); color: var(--ink);
  border: 4px solid var(--ink); box-shadow: 5px 5px 0 rgba(0,0,0,.45);
  cursor: pointer; transition: transform .08s, box-shadow .08s, filter .08s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 rgba(0,0,0,.45); text-decoration: none; filter: brightness(1.04); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 rgba(0,0,0,.45); }
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--ghost { background: var(--screen); color: #fff; }
.btn--small { padding: 9px 12px; font-size: 9px; border-width: 3px; box-shadow: 3px 3px 0 rgba(0,0,0,.45); }
.btn small { display: block; font-family: var(--body); font-size: 15px; opacity: .75; margin-top: 3px; text-transform: none; letter-spacing: 0; }
.btn .ico { font-size: 20px; }

/* --------------------------------------------------------------------------
   PANELES: .shell (carcasa gris) > .screen (pantalla oscura) · .card (pantalla)
   -------------------------------------------------------------------------- */
.shell {
  background: var(--shell);
  border: 5px solid var(--ink);
  border-radius: 16px 16px 34px 16px;
  box-shadow: inset 4px 4px 0 rgba(255,255,255,.25), inset -5px -5px 0 rgba(0,0,0,.28), 10px 10px 0 rgba(0,0,0,.35);
  padding: 22px;
}
.screen {
  background: var(--screen);
  border: 3px solid #0f1416;
  border-radius: 8px;
  padding: 22px 24px;
  box-shadow: inset 0 0 18px rgba(0,0,0,.6);
  color: var(--text);
}
.screen h2, .screen h3 { color: var(--orange); }
.card, .feature, .faq__item, .wiki-card, .article-item, .article-toc, .wiki-content, .wiki-sidebar {
  background: var(--card);
  border: 3px solid #0f1416;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.card { padding: 20px; }
.card:hover, .feature:hover { transform: none; box-shadow: var(--shadow); border-color: #0f1416; }
.feature { padding: 20px; }
.feature .icon { font-size: 28px; margin-bottom: 8px; line-height: 1; }
.feature h3 { color: #fff; font-size: 12px; margin: 6px 0 10px; }
.feature p { margin: 0; color: var(--text); font-size: 19px; }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 28px 0 40px; }
.hero__content h1 { font-size: clamp(24px, 3.6vw, 40px); line-height: 1.5; margin-bottom: 18px; }
.hero__content .lead { font-size: 24px; max-width: 560px; margin-bottom: 22px; }
.hero__actions { display: flex; gap: 16px; margin: 18px 0 14px; flex-wrap: wrap; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 18px; color: #e8e6f5; opacity: .92; margin: 0; padding: 0; list-style: none; }
.hero__trust li::before { content: '✓ '; color: var(--green); font-weight: bold; }
.hero__art { display: flex; justify-content: center; }
.device { position: relative; display: inline-block; background: var(--shell); border: 5px solid var(--ink); border-radius: 18px 18px 36px 18px; padding: 14px 14px 26px; box-shadow: inset 4px 4px 0 rgba(255,255,255,.25), inset -5px -5px 0 rgba(0,0,0,.28), 12px 12px 0 rgba(0,0,0,.35); }
.device img { display: block; width: 100%; max-width: 440px; height: auto; border: 3px solid #0f1416; border-radius: 6px; background: var(--screen); }
.device__led { position: absolute; left: 22px; bottom: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.device__label { position: absolute; right: 22px; bottom: 5px; font-family: var(--pixel); font-size: 8px; color: var(--ink); opacity: .7; letter-spacing: 1px; }
.hero__caption { text-align: center; font-size: 17px; color: #e8e6f5; opacity: .85; margin-top: 12px; }
.badge-beta { display: inline-block; font-family: var(--pixel); font-size: 9px; background: var(--orange); color: var(--ink); padding: 6px 10px; border: 3px solid var(--ink); box-shadow: 3px 3px 0 rgba(0,0,0,.4); margin-bottom: 14px; }

/* --------------------------------------------------------------------------
   CIFRAS (todas verificadas contra el código)
   -------------------------------------------------------------------------- */
.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0 0 8px; }
.stats-strip .screen { padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { padding: 18px 14px; text-align: center; border-right: 2px dashed rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--pixel); font-size: 22px; color: var(--gold); text-shadow: 2px 2px 0 rgba(0,0,0,.5); margin-bottom: 8px; }
.stat span { font-size: 18px; color: var(--text); }

/* --------------------------------------------------------------------------
   SECCIONES / GRIDS
   -------------------------------------------------------------------------- */
.section { padding: 44px 0; }
.section__header { max-width: 760px; margin-bottom: 26px; }
.section__header h2 { color: #fff; }
.grid { display: grid; gap: 20px; }
.grid--how { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--features { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--gallery { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--species { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }

.card--step { display: grid; gap: 12px; align-content: start; padding: 0; overflow: hidden; }
.card--step .step-shot { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; border-bottom: 3px solid #0f1416; background: var(--screen-deep); }
.card--step .step-body { padding: 4px 18px 20px; }
.card--step .step { display: inline-grid; place-items: center; width: 32px; height: 32px; font-family: var(--pixel); font-size: 12px; background: var(--orange); color: var(--ink); border: 3px solid var(--ink); border-radius: 6px; box-shadow: 3px 3px 0 rgba(0,0,0,.4); margin: -18px 0 10px; position: relative; }
.card--step h3 { color: #fff; font-size: 12px; }
.card--step p { margin: 0; font-size: 19px; }

figure.shot-card { margin: 0; background: var(--card); border: 3px solid #0f1416; border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
figure.shot-card img, img.shot { display: block; width: 100%; height: auto; background: var(--screen-deep); }
figure.shot-card figcaption { padding: 12px 14px; font-size: 18px; border-top: 3px solid #0f1416; color: var(--text); }
figure.shot-card figcaption b { color: var(--gold); }

.species { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 14px 10px 12px; text-decoration: none; color: var(--text); }
.species:hover { text-decoration: none; filter: brightness(1.06); }
.species img { width: 96px; height: 96px; object-fit: contain; background: var(--screen-light); border: 3px solid #0f1416; border-radius: 6px; padding: 6px; image-rendering: auto; }
.species b { font-family: var(--pixel); font-size: 8px; line-height: 1.5; color: #fff; min-height: 24px; }
.species__id { font-size: 15px; color: var(--muted); }

.privacy-list { list-style: none; margin: 8px 0 0; padding: 0; }
.privacy-list li { padding: 6px 0 6px 28px; position: relative; font-size: 19px; }
.privacy-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: bold; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card--wiki { display: flex; flex-direction: column; gap: 8px; }
.card--wiki h3 { color: #fff; }
.card--wiki p { margin: 0; flex: 1; }
.card--wiki .link { font-family: var(--pixel); font-size: 9px; color: var(--gold); }

.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.faq__item { padding: 18px; }
.faq__item h3 { color: var(--gold); font-size: 11px; margin-bottom: 10px; }
.faq__item p { margin: 0; }

.section--cta .screen { text-align: center; padding: 34px 24px; }
.section--cta .section__header { margin: 0 auto 18px; }
.cta-inline { display: flex; gap: 16px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }
.warn { background: rgba(243,156,18,.14); border: 2px solid var(--orange); border-radius: 8px; padding: 12px 14px; margin-top: 14px; font-size: 18px; color: #ffe6bd; }

/* --------------------------------------------------------------------------
   BADGES (tipo / rareza) — colores del juego
   -------------------------------------------------------------------------- */
.badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 8px 0; }
.badge { font-family: var(--pixel); font-size: 8px; padding: 6px 8px; border: 2px solid var(--ink); border-radius: 4px; color: #fff; background: var(--screen-line); box-shadow: 2px 2px 0 rgba(0,0,0,.4); text-transform: capitalize; }
.badge--type-social { background: #3498db; }
.badge--type-news { background: #f1c40f; color: var(--ink); }
.badge--type-video { background: #e74c3c; }
.badge--type-shop { background: #2ecc71; color: var(--ink); }
.badge--type-blog { background: #9b59b6; }
.badge--type-forum { background: #e67e22; }
.badge--type-docs { background: #95a5a6; color: var(--ink); }
.badge--type-gaming { background: #8e44ad; }
.badge--type-hacker { background: #c0392b; }
.badge--type-misc { background: #7f8c8d; }
.badge--rarity-common { background: #95a5a6; color: var(--ink); }
.badge--rarity-uncommon { background: #27ae60; }
.badge--rarity-rare { background: #2980b9; }
.badge--rarity-epic { background: #8e44ad; }
.badge--rarity-legendary { background: var(--orange); color: var(--ink); }
.stats-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 6px; margin-top: 8px; }
.stats-mini label { display: block; font-size: 15px; color: var(--muted); }
.stats-mini span { font-weight: 700; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer { position: relative; z-index: 2; max-width: 1200px; margin: 48px auto 0; padding: 26px 24px 0; border-top: 4px solid var(--ink); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; color: var(--text); }
.footer__brand .nav__logo { margin-bottom: 8px; }
.footer__wordmark { width: 220px; max-width: 100%; height: auto; display: block; margin-bottom: 6px; filter: drop-shadow(3px 3px 0 rgba(0,0,0,.35)); }
.footer__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.footer__links h4 { margin: 0 0 8px; color: var(--gold); }
.footer__links a { display: block; margin: 4px 0; color: var(--text); font-size: 19px; }
.footer__bottom { display: flex; gap: 12px 18px; align-items: center; flex-wrap: wrap; grid-column: 1 / -1; padding-top: 14px; border-top: 2px dashed rgba(255,255,255,.15); font-size: 17px; }
.footer__legal { display: flex; gap: 14px; flex-wrap: wrap; }
.footer__disclaimer { font-size: 15px; opacity: .75; max-width: 640px; line-height: 1.4; flex-basis: 100%; }
.footer .led { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); vertical-align: middle; margin-right: 8px; }

/* --------------------------------------------------------------------------
   COOKIE BANNER (cookie-banner.js — sin estilos inline por CSP)
   -------------------------------------------------------------------------- */
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: var(--shell); border-top: 5px solid var(--ink); padding: 18px 24px; box-shadow: 0 -6px 0 rgba(0,0,0,.35); animation: slideUp .3s ease-out; }
.cookie-banner--closing { animation: slideUp .3s ease-out reverse forwards; }
.cookie-banner__inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.cookie-banner__inner h3 { font-size: 11px; color: var(--ink); text-shadow: none; margin: 0; display: flex; align-items: center; gap: 8px; }
.cookie-banner__inner p { margin: 0; font-size: 19px; color: var(--ink); }
.cookie-banner__inner p a { color: #1d4ed8; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 12px; align-self: flex-end; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   PÁGINAS: Colección (dex)
   -------------------------------------------------------------------------- */
.page-header { max-width: 1200px; margin: 0 auto; padding: 8px 0 12px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 8px; align-items: center; }
.filter-input, .filter-select, .perks-search input, .perks-filter select, .wiki-search input {
  font-family: var(--body); font-size: 19px; color: var(--text);
  background: var(--screen-deep); border: 3px solid #0f1416; border-radius: 6px; padding: 10px 14px;
  box-shadow: inset 3px 3px 0 rgba(0,0,0,.35);
}
.filter-input { flex: 1; min-width: 220px; }
.filter-input::placeholder, .perks-search input::placeholder, .wiki-search input::placeholder { color: var(--muted); }
.filter-input:focus, .filter-select:focus, .perks-search input:focus, .perks-filter select:focus, .wiki-search input:focus { outline: none; border-color: var(--orange); }
.filter-select { cursor: pointer; }
.results-count { color: #e8e6f5; font-size: 18px; margin: 10px 0 18px; }
.dex-note { font-size: 18px; color: #e8e6f5; opacity: .9; margin: 0 0 6px; }
.pokedex-grid, .dex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; padding-bottom: 40px; }
.creature-card { background: var(--card); border: 3px solid #0f1416; border-radius: 8px; padding: 14px 12px; box-shadow: var(--shadow); text-align: center; display: grid; gap: 8px; justify-items: center; }
.creature-sprite { width: 128px; height: 128px; display: grid; place-items: center; background: var(--screen-light); border: 3px solid #0f1416; border-radius: 6px; overflow: hidden; }
.creature-sprite img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.creature-name { font-family: var(--pixel); font-size: 9px; line-height: 1.5; color: #fff; min-height: 27px; }
.creature-id { font-size: 15px; color: var(--muted); }
.dex-empty { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--text); }

/* --------------------------------------------------------------------------
   PÁGINAS: Perks
   -------------------------------------------------------------------------- */
.perks-controls { background: var(--card); border: 3px solid #0f1416; border-radius: 8px; box-shadow: var(--shadow); padding: 18px; margin-bottom: 24px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.perks-search { flex: 1; min-width: 260px; }
.perks-search input { width: 100%; }
.perks-filter select { cursor: pointer; }
.perks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.perks-grid .card { display: flex; flex-direction: column; gap: 8px; }
.card.active-common { border-top: 6px solid #95a5a6; }
.card.active-uncommon { border-top: 6px solid #27ae60; }
.card.active-rare { border-top: 6px solid #2980b9; }
.card.active-epic { border-top: 6px solid #8e44ad; }
.card.active-legendary { border-top: 6px solid var(--orange); }
.perk-effects { background: rgba(0,0,0,.35); padding: 12px; border-radius: 6px; font-size: 17px; margin-top: auto; border: 2px solid rgba(255,255,255,.08); }
.effect-value { color: var(--blue); font-weight: bold; }
.effect-value.modified { color: var(--gold); }
.rarity-simulator { display: flex; align-items: center; gap: 10px; margin-left: auto; padding-left: 14px; border-left: 2px dashed rgba(255,255,255,.2); }

/* --------------------------------------------------------------------------
   PÁGINAS: Tabla de tipos
   -------------------------------------------------------------------------- */
.type-chart-container { overflow-x: auto; background: var(--card); border: 3px solid #0f1416; border-radius: 8px; box-shadow: var(--shadow); padding: 14px; margin-bottom: 24px; }
.type-table { width: 100%; border-collapse: collapse; font-size: 17px; min-width: 800px; }
.type-table th, .type-table td { padding: 8px; text-align: center; border: 1px solid rgba(255,255,255,.12); }
.type-table th { background: rgba(0,0,0,.35); position: sticky; top: 0; z-index: 10; font-family: var(--pixel); font-size: 8px; }
.type-label { display: inline-block; padding: 5px 6px; border-radius: 4px; color: #fff; font-family: var(--pixel); font-size: 8px; text-transform: uppercase; width: 100%; border: 2px solid var(--ink); }
.type-social { background: #3498db; } .type-news { background: #f1c40f; color: var(--ink); } .type-video { background: #e74c3c; }
.type-shop { background: #2ecc71; color: var(--ink); } .type-blog { background: #9b59b6; } .type-forum { background: #e67e22; }
.type-docs { background: #95a5a6; color: var(--ink); } .type-gaming { background: #8e44ad; } .type-hacker { background: #c0392b; } .type-misc { background: #7f8c8d; }
.eff-2 { background: rgba(46,204,113,.25); color: #7bf1a8; font-weight: bold; }
.eff-1-5 { background: rgba(46,204,113,.12); color: #7bf1a8; }
.eff-0-5 { background: rgba(224,36,94,.14); color: #ff8fb0; }
.eff-0-25 { background: rgba(224,36,94,.26); color: #ff8fb0; font-weight: bold; }
.eff-1 { color: #7f8c8d; }
.legend { display: flex; gap: 16px; justify-content: center; margin-top: 14px; flex-wrap: wrap; font-size: 18px; }
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-box { width: 20px; height: 20px; border-radius: 4px; border: 2px solid var(--ink); }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero__art { order: -1; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .nav { padding: 10px 16px; flex-wrap: wrap; }
  .nav__toggle { display: inline-flex; }
  .nav__links { display: none; position: fixed; top: 66px; right: 16px; left: 16px; background: var(--shell); border: 4px solid var(--ink); border-radius: 8px; padding: 10px; flex-direction: column; gap: 4px; box-shadow: 6px 6px 0 rgba(0,0,0,.4); z-index: 40; }
  .nav__links a { color: var(--ink); padding: 10px 12px; font-size: 20px; }
  .nav__links a:hover, .nav__links a.active { background: rgba(0,0,0,.08); color: var(--ink); border-color: transparent; }
  .nav.nav--open .nav__links { display: flex; }
}
@media (max-width: 720px) {
  body { font-size: 19px; }
  main { padding: 20px 16px 0; }
  .nav__cta { width: 100%; justify-content: flex-end; }
  .nav__cta .btn { padding: 10px 12px; font-size: 9px; }
  .hero__content h1 { font-size: 22px; }
  .hero__content .lead { font-size: 21px; }
  .device { padding: 10px 10px 22px; }
  .stat strong { font-size: 18px; }
  .shell { padding: 14px; border-radius: 12px 12px 26px 12px; }
  .screen { padding: 16px; }
  .footer { padding: 22px 16px 0; }
}

/* --------------------------------------------------------------------------
   WIKI — tamaños de título (Press Start 2P es ancha: bajar cuerpos)
   -------------------------------------------------------------------------- */
.wiki-content h1 { font-size: clamp(18px, 2.4vw, 26px); }
.wiki-content .lead { font-size: 21px; }
.article-content h2 { font-size: 15px; margin: 30px 0 12px; padding-top: 10px; border-top: 2px dashed rgba(255,255,255,.12); color: var(--gold); }
.article-content h3 { font-size: 11px; margin: 22px 0 10px; }
.article-content p, .article-content li { font-size: 20px; }
.article-content table { font-size: 18px; }
.wiki-card h2 { font-size: 13px; }
.wiki-popular h2 { font-size: 14px; }
.wiki-section h3 { font-size: 8px; color: var(--gold); letter-spacing: 1px; }
.wiki-section a { font-size: 18px; color: var(--text); }
.wiki-section a:hover, .wiki-section a.active { background: rgba(243,156,18,.15); color: #fff; }
.wiki-search input { width: 100%; margin-bottom: 14px; font-size: 17px; padding: 8px 10px; }
.article-toc h4 { font-size: 8px; color: var(--gold); }
.article-toc a { font-size: 18px; }
.breadcrumb, .article-updated, .article-meta { font-size: 17px; }
.breadcrumb a { color: var(--gold); }
.article-item:hover { background: rgba(243,156,18,.12); }
.article-content code { font-size: .8em; }

.simulated-badge { margin-top: 8px; font-size: 14px; opacity: .7; }
.perks-empty { grid-column: 1 / -1; text-align: center; padding: 2rem; color: var(--text); }

/* Domsterdex pública: revelada vs por descubrir */
.grid--species { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .grid--species { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }
.creature-card--locked { opacity: .85; }
.creature-sprite--locked { font-family: var(--pixel); font-size: 34px; color: var(--screen-line); text-shadow: 3px 3px 0 rgba(0,0,0,.5); background: repeating-linear-gradient(45deg, var(--screen-light) 0 8px, var(--screen) 8px 16px); }
.creature-card--locked .creature-name { color: var(--muted); }
.creature-card--revealed { border-color: var(--orange); box-shadow: 6px 6px 0 rgba(0,0,0,.35), 0 0 0 3px rgba(243,156,18,.25); }
