/* Anime Atlas · hoja de estilos pública
   Paleta de marca: fondo #10131A · superficies #1B2230 · texto #F4F6FA / #B6C0D0 · ámbar #F3BD58 · turquesa #72D6D0 */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url(/fonts/chakra-petch-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url(/fonts/chakra-petch-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url(/fonts/chakra-petch-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url(/fonts/chakra-petch-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }

:root {
  --bg: #10131A; --surface: #1B2230; --surface-2: #222B3C; --surface-3: #2A3448; --line: rgba(182, 192, 208, .14); --line-strong: rgba(182, 192, 208, .28);
  --text: #F4F6FA; --muted: #B6C0D0; --amber: #F3BD58; --amber-ink: #F3BD58; --amber-deep: #D8962E; --teal: #72D6D0; --teal-ink: #72D6D0;
  --on-amber: #10131A; --ok: #72D6D0; --attr: #9FB6FF; --theory: #C9A7FF; --rumor: #FF9E7E; --danger: #FF7A7A;
  --radius: 14px; --radius-sm: 9px; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --display: "Chakra Petch", "Inter", system-ui, sans-serif;
  --wrap: 1200px; --gut: clamp(16px, 4vw, 32px); --t: .18s ease;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F4F6FA; --surface: #FFFFFF; --surface-2: #EDF0F6; --surface-3: #E1E6EF; --line: rgba(16, 19, 26, .12); --line-strong: rgba(16, 19, 26, .24);
  --text: #10131A; --muted: #4A5568; --amber-ink: #8A5A00; --teal-ink: #0B6E69; --ok: #0B6E69; --attr: #3450B8; --theory: #6B3FB8; --rumor: #B2461F; --danger: #B42318;
  --shadow: 0 8px 24px rgba(16, 19, 26, .10); color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: var(--teal-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--amber-ink); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1.02rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--amber); color: var(--on-amber); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 820px; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .block { display: block; }
.i { width: 1.15em; height: 1.15em; fill: currentColor; vertical-align: -.2em; flex: none; }
main { display: block; padding-bottom: 48px; outline: none; }
main > section, main > article { margin-top: 36px; }

/* Cabecera */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.brand { display: flex; align-items: center; flex: none; }
.logo { height: 38px; width: auto; display: block; }
.logo-light { display: none; }
[data-theme="light"] .logo-dark { display: none; } [data-theme="light"] .logo-light { display: block; }
.site-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background var(--t), color var(--t); }
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--on-amber); background: var(--amber); }
.hdr-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; transition: border-color var(--t), background var(--t); }
.icon-btn:hover { border-color: var(--amber); color: var(--text); }
.nav-toggle { display: none; }
.spoiler-toggle .when-show, .theme-toggle .when-light { display: none; }
.show-spoilers .spoiler-toggle { border-color: var(--rumor); } .show-spoilers .spoiler-toggle .when-show { display: inline; } .show-spoilers .spoiler-toggle .when-hide { display: none; }
[data-theme="light"] .theme-toggle .when-dark { display: none; } [data-theme="light"] .theme-toggle .when-light { display: inline; }
.search { position: relative; }
.search input { width: 250px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 0 12px 0 36px; font: inherit; font-size: .95rem; transition: border-color var(--t), width var(--t); }
.search input:focus { border-color: var(--teal); width: 300px; outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 30%, transparent); }
.search-ico { position: absolute; left: 11px; top: 11px; color: var(--muted); pointer-events: none; }
.search-results { position: absolute; right: 0; top: 48px; width: min(420px, 92vw); list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 70vh; overflow: auto; }
.search-results li a, .search-results li.sr-empty { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--text); }
.search-results li a:hover, .search-results li[aria-selected="true"] a { background: var(--surface-2); }
.search-results .t { font-size: .75rem; color: var(--amber-ink); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.search-results .m { font-size: .8rem; color: var(--muted); }

/* Migas */
.crumbs { margin-top: 16px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--muted); }

/* Botones, insignias, chips */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--amber); background: var(--amber); color: var(--on-amber); font: 700 .95rem var(--font); text-decoration: none; cursor: pointer; transition: transform var(--t), background var(--t), box-shadow var(--t); }
.btn:hover { color: var(--on-amber); background: #F7CB76; box-shadow: 0 6px 18px rgba(243, 189, 88, .25); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--amber); color: var(--text); box-shadow: none; }
.btn.small { min-height: 34px; padding: 4px 12px; font-size: .85rem; }
.btn[aria-pressed="true"] { background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .03em; border: 1px solid var(--line-strong); color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.badge.cat { color: var(--amber-ink); border-color: color-mix(in srgb, var(--amber) 45%, transparent); background: color-mix(in srgb, var(--amber) 10%, transparent); }
.st-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.st-attr { color: var(--attr); border-color: color-mix(in srgb, var(--attr) 50%, transparent); background: color-mix(in srgb, var(--attr) 10%, transparent); }
.st-theory { color: var(--theory); border-color: color-mix(in srgb, var(--theory) 50%, transparent); background: color-mix(in srgb, var(--theory) 10%, transparent); }
.st-rumor, .badge.sp { color: var(--rumor); border-color: color-mix(in srgb, var(--rumor) 50%, transparent); background: color-mix(in srgb, var(--rumor) 10%, transparent); }
.badge.terr { color: var(--text); }
.badge.debut { margin-top: 4px; color: var(--amber-ink); }
.air-en_emision { color: var(--ok); } .air-pausada { color: var(--amber-ink); } .air-anunciada { color: var(--attr); } .air-cancelada { color: var(--danger); }
.life-vivo { color: var(--ok); } .life-fallecido, .life-derrotado { color: var(--danger); } .life-resucitado { color: var(--amber-ink); }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 8px 0; }
.chip { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .82rem; }
.chip:hover { border-color: var(--teal); color: var(--text); }
.chip-game { border-color: color-mix(in srgb, var(--amber) 50%, transparent); }
.mini-badge { display: inline-flex; gap: 4px; align-items: center; font-size: .75rem; color: var(--amber-ink); font-weight: 600; }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--amber-ink); font-weight: 700; margin-bottom: 6px; }
.eyebrow a { color: inherit; text-decoration: none; } .eyebrow a:hover { text-decoration: underline; }
.lede { color: var(--muted); font-size: 1.05rem; }
.notice { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: var(--radius-sm); padding: 12px 16px; }
.notice.warn { border-left-color: var(--rumor); }
.pending { color: var(--muted); font-style: italic; }
.empty { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); }
.empty-page { text-align: center; padding: 60px 0; }

/* Cabeceras de sección */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 16px; position: relative; }
.sec-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.sec-head h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 14px -6px 0 -3px var(--teal), 24px 2px 0 -4px var(--muted); margin-right: 22px; }
.sec-sub { flex-basis: 100%; margin: 0; color: var(--muted); font-size: .92rem; }
.more { margin-left: auto; font-weight: 600; text-decoration: none; }
.subhead { margin-top: 1.4em; font-size: 1.05rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.page-head { margin-bottom: 20px; }
.page-head h1 { margin-bottom: .25em; }

/* Portada: selección */
.hero-news { margin-top: 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; }
.hero-lead { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow); }
.hero-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.hero-link:hover h3 { color: var(--amber-ink); }
.hero-img { aspect-ratio: 16 / 7; }
.hero-body { padding: 20px 22px 22px; }
.hero-body h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; transition: color var(--t); }
.hero-side { display: grid; gap: 14px; align-content: start; }
.dates { font-size: .85rem; color: var(--muted); margin: 0; }

/* Visual de noticia sin imagen: marcador elegante */
.nv { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.nv-ph { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 16px; overflow: hidden; color: var(--text);
  background: radial-gradient(circle at 22% 28%, hsla(var(--h, 40), 80%, 62%, .30), transparent 46%), radial-gradient(circle at 84% 78%, rgba(114, 214, 208, .16), transparent 45%), linear-gradient(135deg, var(--surface-2), var(--surface-3)); }
.nv-ph::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: radial-gradient(circle, rgba(244, 246, 250, .7) 1px, transparent 1.4px); background-size: 34px 34px; background-position: 7px 11px; mask-image: linear-gradient(120deg, transparent 20%, #000 70%); }
.nv-const { position: absolute; inset: 0; width: 100%; height: 100%; }
.nv-const polyline { fill: none; stroke: hsla(var(--h, 40), 70%, 72%, .55); stroke-width: .35; vector-effect: non-scaling-stroke; }
.nv-const circle { fill: var(--text); opacity: .8; }
.nv-c { position: relative; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); order: -1; }
.hero-img.nv-ph { padding: 24px 26px; } .hero-img .nv-u { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); } .hero-img .nv-glyph { width: 52px; height: 52px; }
.nv-glyph { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 55%, transparent); color: var(--amber); }
.nv-u { position: relative; font-family: var(--display); font-weight: 700; font-size: 1.1rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.cat-videojuego .nv-glyph { color: var(--teal); } .cat-evento .nv-glyph { color: var(--attr); }

/* Tarjetas de noticia */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ncard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color var(--t), transform var(--t); height: 100%; }
.ncard:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.ncard-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.ncard-body { padding: 14px 16px 10px; }
.ncard h3 { font-size: 1.05rem; margin-bottom: 6px; } .ncard-link:hover h3 { color: var(--amber-ink); }
.ncard .lede { font-size: .9rem; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard .chips { padding: 0 16px 14px; margin: 0; }
.ncard-sm { flex-direction: row; } .ncard-sm .ncard-link { flex-direction: row; }
.ncard-sm .nv { width: 118px; aspect-ratio: 1; flex: none; } .ncard-sm .nv-u { font-size: .8rem; } .ncard-sm .nv-c { display: none; } .ncard-sm .nv-glyph { width: 30px; height: 30px; top: 8px; right: 8px; }
.ncard-sm .ncard-body { padding: 10px 12px; } .ncard-sm h3 { font-size: .98rem; } .ncard-sm .chips { display: none; }
.fi[hidden] { display: none; }
.stack { display: grid; gap: 12px; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 0 0 16px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.filters select, .filters input[type="search"], .filters input[type="text"], .progress-input input { min-height: 40px; min-width: 150px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; font-size: .95rem; }
.filters .toggle-mine { flex-direction: row; align-items: center; gap: 8px; min-height: 40px; }
.legend { margin: 0 0 16px; font-size: .9rem; } .legend summary { cursor: pointer; color: var(--muted); } .legend ul { list-style: none; padding: 8px 0 0; margin: 0; display: grid; gap: 6px; }

/* Rejillas */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.u-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ucard { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--text); overflow: hidden; background: var(--surface); transition: border-color var(--t), transform var(--t); }
.ucard:hover { border-color: var(--amber); transform: translateY(-2px); color: var(--text); }
.ucard-visual { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.ucard-visual img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ucard:hover .ucard-visual img { transform: scale(1.04); }
.uv-ph { background: radial-gradient(circle at 24% 30%, hsla(var(--h, 40), 80%, 62%, .32), transparent 50%), radial-gradient(circle at 84% 80%, rgba(114, 214, 208, .16), transparent 45%), linear-gradient(135deg, var(--surface-2), var(--surface-3)); }
.uv-initial { position: absolute; left: 14px; bottom: 8px; font-family: var(--display); font-weight: 700; font-size: 2.2rem; letter-spacing: .02em; color: hsla(var(--h, 40), 70%, 78%, .9); text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
[data-theme="light"] .uv-initial { color: hsla(var(--h, 40), 60%, 32%, .85); text-shadow: none; }
.ucard-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; min-width: 0; }
.ucard-title { font-family: var(--display); font-size: 1.12rem; font-weight: 700; line-height: 1.25; }
.ucard-alt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ucard-stats { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; color: var(--muted); }
.vt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(16, 19, 26, .72); color: #F4F6FA; border: 1px solid rgba(244, 246, 250, .35); }
.vt-play .i { width: 20px; height: 20px; margin-left: 2px; }
.nv-video { position: relative; overflow: hidden; }
.nv-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ncard-sm .nv-video .vt-play { width: 30px; height: 30px; } .ncard-sm .nv-video .vt-play .i { width: 14px; height: 14px; }
/* Vídeos oficiales */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.video { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.video-play, .video-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; padding: 0; cursor: pointer; }
.video-frame { cursor: auto; }
.video-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease, opacity var(--t); }
.video-play:hover img, .video-play:focus-visible img { transform: scale(1.03); opacity: .9; }
.video-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--amber); color: var(--on-amber); box-shadow: 0 6px 24px rgba(0, 0, 0, .45); transition: transform var(--t); }
.video-btn .i { width: 28px; height: 28px; margin-left: 3px; }
.video-play:hover .video-btn { transform: translate(-50%, -50%) scale(1.07); }
.video-kind { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(16, 19, 26, .78); color: #F4F6FA; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.video figcaption { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; min-width: 0; }
.video-title { font-weight: 600; overflow-wrap: anywhere; }
.video-meta { color: var(--muted); font-size: .8rem; }
.video-ph { position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(243, 189, 88, .28), transparent 55%), linear-gradient(135deg, var(--surface-2), var(--surface-3)); }
.ficha-head:has(.ficha-portrait.has-video) { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); }
.news-videos { display: grid; gap: 16px; margin: 20px 0; }
.videos { margin: 8px 0 32px; }
.c-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.ccard { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--text); transition: border-color var(--t), transform var(--t); }
.ccard:hover { border-color: var(--teal); transform: translateY(-2px); color: var(--text); }
.ccard .portrait { border-radius: 0; }
.ccard-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.ccard-body strong { font-family: var(--display); font-size: 1.02rem; }

/* Retrato y marcador */
.portrait { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); background: var(--surface-2); }
.portrait.ph { position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 30% 25%, rgba(243, 189, 88, .25), transparent 55%), radial-gradient(circle at 75% 80%, rgba(114, 214, 208, .22), transparent 55%), linear-gradient(160deg, var(--surface-2), var(--surface-3)); }
.ph-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-stars circle { fill: var(--text); opacity: .7; } .ph-stars path { fill: none; stroke: var(--teal); stroke-width: .5; opacity: .45; }
.ph-initials { position: relative; font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 5vw, 3rem); color: var(--amber); letter-spacing: .04em; }
.ph-note { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Estrenos */
.rel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rel { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rel-date { display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); padding-right: 12px; }
.rel-date strong { font-family: var(--display); font-size: 1.02rem; color: var(--amber-ink); }
.rel-prec { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.rel-title { font-weight: 700; margin-bottom: 6px; } .rel p { margin-bottom: 4px; }
.cal-month { margin-top: 28px; text-transform: capitalize; }
.countdown { color: var(--teal-ink); font-weight: 600; }

/* Reto diario */
.daily-card { background: linear-gradient(160deg, color-mix(in srgb, var(--amber) 9%, var(--surface)), var(--surface) 55%); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.daily-card hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.daily-card h3 a { color: var(--text); text-decoration: none; } .daily-card h3 a:hover { color: var(--amber-ink); }
.mine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mine > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.mine h3, .mine h2 { font-size: 1.05rem; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 16px; }
.stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; }
.stats strong { font-family: var(--display); font-size: 1.8rem; color: var(--amber-ink); }
.stats span { color: var(--muted); font-size: .85rem; }
.cov-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin-bottom: 10px; }
.cov-group summary { cursor: pointer; padding: 4px 0; }
.cov-list { list-style: none; padding: 0; margin: 10px 0 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 18px; }
.cov-list li { display: grid; grid-template-columns: 34px 1fr; column-gap: 6px; font-size: .9rem; }
.cov-list li .small { grid-column: 2; } .cov-list .num { color: var(--muted); font-variant-numeric: tabular-nums; }
.cov-list li.is-pub a { font-weight: 700; }

/* Universo y obra */
.uni-head { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 30px; align-items: start; }
.toc ul { list-style: none; margin: 0; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.toc a:hover { background: var(--surface-2); color: var(--text); }
.work-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.work-list li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0 0 16px; }
.facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; }
.facts.compact { grid-template-columns: 1fr; gap: 6px; } .facts.compact > div { padding: 8px 12px; }
.progress-input { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .progress-input input { min-width: 90px; width: 110px; }
.prose { max-width: 72ch; } .prose ul { padding-left: 1.2em; } .prose li { margin-bottom: .3em; }
.prose h3 { margin-top: 1.2em; }

/* Tablas → tarjetas en móvil */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rtable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.rtable th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.rtable td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rtable tr:last-child td { border-bottom: 0; }

/* Noticia */
.news-detail h1 { margin-top: 6px; }
.h1-safe { font-family: var(--display); font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.date-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; margin: 12px 0 22px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.date-grid dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; } .date-grid dd { margin: 2px 0 0; font-size: .92rem; }
.factbox, .source-box, .related, .corrections { margin-top: 24px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.factbox h2, .source-box h2, .related h2, .corrections h2 { font-size: 1.05rem; }
.factbox dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 0; } .factbox dt { color: var(--muted); font-size: .8rem; } .factbox dd { margin: 0; font-weight: 600; }

/* Ficha de personaje */
.ficha-head { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 18px; }
.ficha-portrait .portrait { box-shadow: var(--shadow); }
.img-credit { margin-top: 8px; }
.ficha-id h1 { margin-bottom: 4px; }
.aliases { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.alias { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.summary { font-size: 1.05rem; }
.variant-tabs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 4px 0 14px; }
.variant-tabs a { display: block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; }
.variant-tabs a[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: #0b1413; }
.coverage { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 14px 0 6px; }
.coverage li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; border: 1px solid var(--line); }
.coverage li.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.coverage li.todo { color: var(--muted); } .coverage .dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.ficha-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; margin-top: 30px; }
.toc.sticky { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; }
.fsec { padding: 22px 0; border-top: 1px solid var(--line); }
.fsec:first-child { border-top: 0; padding-top: 0; }
.stages { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: st; }
.stages.nested { margin: 0; }
.stage { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.stage-ph { aspect-ratio: 4 / 5; border-radius: var(--radius-sm); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; text-align: center; padding: 10px; font-size: .8rem; color: var(--muted); border: 1px dashed var(--line-strong); background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--surface-2) 70%, transparent) 10px 20px); }
.stage-ph span { color: var(--amber-ink); font-weight: 700; } .stage-body p { margin-bottom: 6px; } .stage-body h4 { margin: 4px 0 6px; }
.kind-transformacion { color: var(--amber-ink); } .kind-rediseno_adaptacion { color: var(--attr); } .kind-crecimiento_salto_temporal { color: var(--teal-ink); }
.ability-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ability-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.ability-list li.ab-sp, .stages li.stage-sp { background: none; border: 0; padding: 0; }
.ability-list.nested { grid-template-columns: 1fr; }
.rel-people { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.rel-people.nested { margin: 0; }
.relmap { margin: 8px 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.relmap svg { width: 100%; height: auto; display: block; }
.rm-edge { stroke: var(--line-strong); stroke-width: 1.5; } .rm-familia { stroke: var(--amber); } .rm-rival, .rm-antagonista { stroke: var(--rumor); } .rm-amistad, .rm-aliado { stroke: var(--teal); }
.rm-center circle { fill: var(--amber); } .rm-center text { fill: var(--on-amber); font: 700 13px var(--display); }
.rm-linked { fill: var(--surface-2); stroke: var(--amber); stroke-width: 2; } .rm-plain { fill: var(--surface-2); stroke: var(--line-strong); stroke-dasharray: 3 3; }
.rm-name { fill: var(--text); font: 600 11px var(--font); } .rm-label { fill: var(--muted); font: 10px var(--font); }
.relmap a:hover .rm-linked, .relmap a:focus .rm-linked { fill: color-mix(in srgb, var(--amber) 25%, var(--surface-2)); }
.part-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.part-list > li { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.part-list p { margin: 4px 0 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line-strong); display: grid; gap: 12px; }
.timeline > li { position: relative; } .timeline > li::before { content: ""; position: absolute; left: -24px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.timeline > li.tl-sp::before { background: var(--rumor); } .timeline.nested { border: 0; padding: 0; } .timeline.nested > li::before { display: none; }
.sources { padding-left: 1.1em; } .sources li { margin-bottom: 6px; word-break: break-word; }

/* Spoilers */
.spoiler { margin: 6px 0; }
.spoiler-cover { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px dashed color-mix(in srgb, var(--rumor) 60%, transparent); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--rumor) 8%, var(--surface)) 0 12px, var(--surface) 12px 24px); color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; text-align: left; }
.spoiler-cover:hover { border-style: solid; }
.sp-lvl { font-weight: 700; color: var(--rumor); } .sp-act { margin-left: auto; font-weight: 700; color: var(--amber-ink); }
.spoiler-inline { display: inline; } .spoiler-inline .spoiler-cover { display: inline-flex; width: auto; min-height: 32px; padding: 2px 10px; }
.spoiler.revealed > .spoiler-cover { display: none; }
.spoiler.revealed { border-left: 3px solid color-mix(in srgb, var(--rumor) 50%, transparent); padding-left: 10px; }
.spoiler-inline.revealed { border: 0; padding: 0; }

/* Minijuego */
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); padding: clamp(16px, 3vw, 26px); box-shadow: var(--shadow); }
.quiz fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.quiz legend { font-weight: 700; margin-bottom: 8px; }
.q-levels, .q-opts-row { display: flex; flex-wrap: wrap; gap: 8px; }
.q-level input, .q-opt input { position: absolute; opacity: 0; pointer-events: none; }
.q-level span { display: inline-flex; flex-direction: column; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-strong); cursor: pointer; font-weight: 600; }
.q-level span small { font-weight: 400; color: var(--muted); }
.q-level input:checked + span { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, transparent); }
.q-level input:focus-visible + span, .q-opt input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.q-level input:disabled + span { opacity: .45; cursor: not-allowed; }
.q-progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 6px 0 16px; }
.q-progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--teal)); transition: width .3s ease; }
.q-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; color: var(--muted); }
.q-prompt { font-family: var(--display); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 700; margin: 6px 0 14px; }
.q-opts { display: grid; gap: 10px; }
.q-opt span { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); cursor: pointer; transition: border-color var(--t), background var(--t); }
.q-opt span::before { content: attr(data-letter); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); font-weight: 700; color: var(--muted); }
.q-opt input:checked + span { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 10%, var(--bg)); }
.q-opt.correct span, .q-opt.correct input:checked + span { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--bg)); }
.q-opt.wrong span, .q-opt.wrong input:checked + span { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--bg)); }
.q-opt.correct span::after { content: "✓"; margin-left: auto; color: var(--ok); font-weight: 700; } .q-opt.wrong span::after { content: "✗"; margin-left: auto; color: var(--danger); font-weight: 700; }
.q-feedback { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.q-feedback.ok strong { color: var(--ok); } .q-feedback.ko strong { color: var(--danger); }
.q-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.q-result { text-align: center; padding: 10px 0; }
.q-score { font-family: var(--display); font-size: clamp(3rem, 2rem + 5vw, 5rem); font-weight: 700; color: var(--amber); line-height: 1; margin: 8px 0; }
.q-timer { font-variant-numeric: tabular-nums; }
.game-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.game-list li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.game-list li[hidden] { display: none; }
.best { color: var(--amber-ink); font-weight: 600; }
.badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.badges li { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); opacity: .7; }
.badges li.earned { opacity: 1; border-color: var(--amber); } .bdg-ico { color: var(--muted); } .earned .bdg-ico { color: var(--amber); }
.earned .bdg-state { color: var(--ok); font-weight: 700; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; } .tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; color: var(--text); } .tabs a[aria-current="page"] { background: var(--amber); color: var(--on-amber); border-color: var(--amber); }
.explore { list-style: none; padding: 0; display: grid; gap: 6px; }
.changes { list-style: none; padding: 0; display: grid; gap: 12px; } .changes li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); } .changes time { color: var(--muted); font-size: .85rem; } .changes p { margin: 4px 0 0; }
.search-page { list-style: none; padding: 0; display: grid; gap: 8px; } .search-page li { padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 20px; }
.ad-slot { min-height: 250px; margin: 28px auto; max-width: var(--wrap); display: grid; place-items: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.ad-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--surface-3); color: var(--text); border: 1px solid var(--line-strong); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); z-index: 90; max-width: 90vw; }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95; max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; } .consent p { margin: 0; flex: 1 1 300px; } .consent div { display: flex; gap: 8px; }
body.is-preview::before { content: "VISTA PREVIA · puede incluir borradores"; position: fixed; z-index: 99; top: 0; left: 50%; transform: translateX(-50%); background: var(--rumor); color: #10131A; font-weight: 700; padding: 4px 14px; border-radius: 0 0 10px 10px; font-size: .8rem; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.ftr { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; padding-top: 30px; padding-bottom: 30px; }
.ftr-brand { display: flex; gap: 12px; align-items: flex-start; } .ftr-brand p { color: var(--muted); margin: 0; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; } .ftr a { color: var(--muted); text-decoration: none; } .ftr a:hover { color: var(--amber-ink); }
.ftr-note { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin: 0; }

/* Adaptación */
@media (max-width: 1080px) {
  .search input { width: 180px; } .search input:focus { width: 220px; }
  .site-nav a { padding: 8px 9px; font-size: .9rem; }
}
@media (max-width: 920px) {
  .nav-toggle { display: inline-grid; }
  .site-nav { position: fixed; inset: 68px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px var(--gut) 16px; display: none; box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; } .site-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .hero-grid, .two-col, .uni-head, .ficha-body { grid-template-columns: 1fr; }
  .toc.sticky { position: static; max-height: none; } .ficha-body .toc ul { display: flex; flex-wrap: wrap; gap: 4px; } .ficha-body .toc a { background: var(--surface-2); }
  .mine, .ftr { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .logo { height: 30px; }
  .hdr { gap: 8px; }
  .search { position: static; } .search input { width: 42px; padding: 0; color: transparent; background: var(--surface); cursor: pointer; }
  .search input::placeholder { color: transparent; }
  .search input:focus { position: absolute; left: var(--gut); right: var(--gut); top: 13px; width: auto; padding: 0 12px 0 36px; color: var(--text); z-index: 3; }
  .search input:focus::placeholder { color: var(--muted); }
  .search-ico { left: auto; right: auto; margin-left: 11px; top: 24px; }
  .search-results { left: var(--gut); right: var(--gut); top: 60px; width: auto; }
  .ficha-head, .ficha-head:has(.ficha-portrait.has-video) { grid-template-columns: 1fr; } .ficha-portrait { max-width: 240px; } .ficha-portrait.has-video { max-width: none; }
  .stage { grid-template-columns: 1fr; } .stage-img { max-width: 180px; }
  .rel { grid-template-columns: 1fr; } .rel-date { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 8px; }
  .changes li { grid-template-columns: 1fr; }
  /* Tablas convertidas en tarjetas */
  .table-wrap { border: 0; background: none; overflow: visible; }
  .rtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 6px 0; }
  .rtable td { border: 0; padding: 6px 14px; display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
  .rtable td::before { content: attr(data-label); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
  .filters { flex-direction: column; align-items: stretch; } .filters select, .filters input { width: 100%; }
  .ncard-sm .nv { width: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .ncard:hover, .ucard:hover, .ccard:hover { transform: none; }
}
@media print { .site-header, .site-footer, .toc, .quiz, .ad-slot { display: none; } body { background: #fff; color: #000; } }

/* Vista previa estática */
.static-note { margin: 12px auto 0; font-size: .85rem; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 8px 12px; }
html.is-static form.filters[method="get"] { display: none; }

/* ══ Efectos y ambiente (v1.2) ═══════════════════════════════════════
   Todo es decorativo: sin JavaScript o con «reducir movimiento» la web se ve completa y quieta. */
@property --orbit { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

[hidden] { display: none !important; }
/* Polvo de estrellas de fondo (solo en el tema oscuro) */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(900px 420px at 88% -6%, rgba(114, 214, 208, .09), transparent 62%), radial-gradient(760px 380px at 4% 2%, rgba(243, 189, 88, .07), transparent 60%),
    radial-gradient(1.2px 1.2px at 22px 34px, rgba(244, 246, 250, .55), transparent 100%), radial-gradient(1px 1px at 148px 96px, rgba(114, 214, 208, .55), transparent 100%),
    radial-gradient(1.4px 1.4px at 262px 188px, rgba(244, 246, 250, .4), transparent 100%), radial-gradient(1px 1px at 94px 246px, rgba(243, 189, 88, .5), transparent 100%), radial-gradient(1px 1px at 334px 62px, rgba(244, 246, 250, .35), transparent 100%);
  background-size: 100% 100%, 100% 100%, 380px 300px, 430px 340px, 520px 380px, 470px 420px, 610px 290px; background-repeat: no-repeat, no-repeat, repeat, repeat, repeat, repeat, repeat; }
[data-theme="light"] body::before { background-image: radial-gradient(900px 420px at 88% -6%, rgba(11, 110, 105, .07), transparent 62%), radial-gradient(760px 380px at 4% 2%, rgba(216, 150, 46, .08), transparent 60%); background-size: 100% 100%; background-repeat: no-repeat; }

/* Transición entre páginas (navegadores compatibles) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .16s ease both; }
::view-transition-new(root) { animation: vt-in .3s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.site-header { view-transition-name: site-header; transition: box-shadow .25s ease; }
.scrolled .site-header { box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--amber) 30%, var(--teal) 70%, transparent); opacity: 0; transition: opacity .3s ease; }
.scrolled .site-header::after { opacity: .7; }

/* Portada: el cielo del atlas (siempre de noche, también en el tema claro) */
main > section.sky { margin-top: 0; }
.sky { position: relative; overflow: hidden; isolation: isolate; color: #F4F6FA; border-bottom: 1px solid rgba(182, 192, 208, .14);
  background: radial-gradient(1100px 520px at 76% 6%, rgba(114, 214, 208, .17), transparent 62%), radial-gradient(900px 480px at 8% 104%, rgba(243, 189, 88, .14), transparent 60%), linear-gradient(180deg, #0A0D13 0%, #10131A 58%, #151B27 100%); }
.sky::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(1px 1px at 30px 40px, rgba(244, 246, 250, .6), transparent 100%), radial-gradient(1px 1px at 170px 120px, rgba(244, 246, 250, .4), transparent 100%), radial-gradient(1px 1px at 90px 210px, rgba(155, 227, 222, .5), transparent 100%);
  background-size: 240px 260px, 310px 290px, 420px 330px; }
.sky-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 28px; align-items: center; padding-block: clamp(28px, 5vw, 48px); }
.js .sky-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); min-height: clamp(440px, 66vh, 640px); padding-block: 22px; }
.sky-copy h1 { font-size: clamp(2rem, 1.2rem + 2.3vw, 3rem); line-height: 1.04; letter-spacing: 0; text-wrap: balance; margin-bottom: .4em; }
.sky-lede { color: #B6C0D0; font-size: 1.05rem; max-width: 44ch; }
.sky .btn.ghost { color: #F4F6FA; border-color: rgba(182, 192, 208, .42); }
.sky .btn.ghost:hover { border-color: #F3BD58; }
.sky-stats { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 26px 0 0; }
.sky-stats div { display: flex; flex-direction: column-reverse; }
.sky-stats dt { font-size: .8rem; color: #B6C0D0; }
.sky-stats dd { margin: 0; font: 700 1.65rem/1.1 var(--display); color: #F3BD58; font-variant-numeric: tabular-nums; min-width: 3ch; }
.sky-map { display: none; position: relative; align-self: stretch; min-height: 400px; }
.js .sky-map { display: block; }
.sky-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.sky-map.has-hover .sky-canvas { cursor: pointer; }
.sky-tip { position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 14px)); display: flex; flex-direction: column; padding: 6px 12px; border-radius: 10px; background: rgba(13, 16, 23, .94); border: 1px solid rgba(243, 189, 88, .65); color: #F4F6FA; font-size: .9rem; line-height: 1.25; text-decoration: none; width: max-content; max-width: min(260px, 82vw); text-wrap: balance; pointer-events: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.sky-tip.below { transform: translate(-50%, 16px); }
.sky-tip small { color: #B6C0D0; font-size: .75rem; }
.sky-tip.sticky { pointer-events: auto; border-color: #F3BD58; }
.sky-tip.sticky:hover, .sky-tip.sticky:focus-visible { color: #F4F6FA; background: #1B2230; }
.sky-group { position: absolute; margin: 0; transform: translate(-50%, -100%); font-size: .78rem; font-weight: 600; color: #9BE3DE; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; pointer-events: none; opacity: 0; transition: opacity .25s ease; text-shadow: 0 1px 8px #0A0D13; }
.sky-group.on { opacity: 1; }
.sky-legend { position: absolute; right: 0; bottom: 2px; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: #B6C0D0; pointer-events: none; }
.sky-dot { width: 7px; height: 7px; border-radius: 50%; background: #F4F6FA; margin-left: 10px; }
.sky-dot.gold { width: 9px; height: 9px; background: #F3BD58; box-shadow: 0 0 10px 2px rgba(243, 189, 88, .5); margin-left: 0; }

/* Luz que sigue al puntero */
.fx .ucard, .fx .ccard, .fx .ncard, .fx .hero-lead, .fx .game-list > li, .fx .daily-card, .fx .mine > div, .fx .voz { position: relative; }
.fx .ucard::after, .fx .ccard::after, .fx .ncard::after, .fx .hero-lead::after, .fx .game-list > li::after, .fx .daily-card::after, .fx .mine > div::after, .fx .voz::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(243, 189, 88, .13), transparent 68%); }
.fx .ucard:hover::after, .fx .ccard:hover::after, .fx .ncard:hover::after, .fx .hero-lead:hover::after, .fx .game-list > li:hover::after, .fx .daily-card:hover::after, .fx .mine > div:hover::after, .fx .voz:hover::after { opacity: 1; }
.fx .ccard::after { background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(114, 214, 208, .16), transparent 68%); }
.ucard, .ccard, .ncard { transition: border-color var(--t), transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease; }
.ucard:hover, .ccard:hover, .ncard:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, .32); }
.hero-img, .ncard .nv { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.hero-link:hover .hero-img.nv-ph .nv-const, .ncard-link:hover .nv-const, .ucard:hover .nv-const { transform: scale(1.08); }
.nv-const { transition: transform .6s cubic-bezier(.2, .7, .2, 1); transform-origin: 30% 40%; }

/* Botón principal: destello al pasar */
.btn:not(.ghost) { position: relative; overflow: hidden; }
.btn:not(.ghost)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .5) 50%, transparent 68%); transform: translateX(-130%); pointer-events: none; }
.btn:not(.ghost):hover::after { transform: translateX(130%); transition: transform .65s ease; }
.btn[aria-pressed="true"] .i { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); color: var(--amber); }
@keyframes pop { 0% { transform: scale(.4) rotate(-30deg); } 100% { transform: none; } }

/* Entradas al hacer scroll (solo actúan sobre lo que queda bajo la pantalla al cargar) */
.rv:not(.in) > * { opacity: 0; }
.rv.in > * { animation: rv-in .55s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rv-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.sec-head.rvh.in h2::before { animation: mark-in .8s cubic-bezier(.3, 1.4, .5, 1) backwards; }
@keyframes mark-in { from { transform: scale(0); box-shadow: 0 0 0 -3px var(--teal), 0 0 0 -4px var(--muted); } }
.fsec > h2 { position: relative; padding-bottom: 10px; }
.fsec > h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--amber), var(--teal)); transform-origin: 0 50%; }
.fsec > h2.rvh.in::after { animation: bar-in .7s cubic-bezier(.2, .7, .2, 1) backwards; }
@keyframes bar-in { from { transform: scaleX(0); } }

/* Barra de lectura y apartado activo */
.read-bar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.read-bar span { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--amber), var(--teal)); }
.toc a { transition: background var(--t), color var(--t), box-shadow var(--t); }
.toc a.is-active { color: var(--text); background: var(--surface-2); box-shadow: inset 3px 0 0 var(--amber); }

/* Retrato pendiente: órbitas (motivo del logotipo) */
.ficha-portrait .portrait.ph::before, .ficha-portrait .portrait.ph::after { content: ""; position: absolute; left: 50%; top: 46%; width: 84%; aspect-ratio: 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--teal) 50%, transparent);
  background: radial-gradient(circle at 50% 0, var(--amber) 0 4px, transparent 5px) no-repeat; transform: translate(-50%, -50%) rotate(-24deg) scaleY(.36) rotate(var(--orbit)); animation: orbit 14s linear infinite; }
.ficha-portrait .portrait.ph::after { width: 58%; border-color: color-mix(in srgb, var(--amber) 45%, transparent); background-image: radial-gradient(circle at 50% 0, var(--teal) 0 3px, transparent 4px); transform: translate(-50%, -50%) rotate(32deg) scaleY(.42) rotate(var(--orbit)); animation-duration: 9s; animation-direction: reverse; }
@keyframes orbit { to { --orbit: 360deg; } }
.ficha-portrait .ph-stars circle { animation: twinkle 3.2s ease-in-out infinite alternate; }
.ficha-portrait .ph-stars circle:nth-child(2n) { animation-delay: -1.3s; } .ficha-portrait .ph-stars circle:nth-child(3n) { animation-delay: -2.2s; }
@keyframes twinkle { from { opacity: .25; } to { opacity: .95; } }

/* Voz original */
.voz { margin: 16px 0 8px; padding: 14px 16px; max-width: 640px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--teal) 38%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--teal) 10%, var(--surface)), var(--surface) 62%); overflow: hidden; }
.fx .voz::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(114, 214, 208, .12), transparent 68%); }
.voz > * { position: relative; z-index: 1; }
.voz-head { display: flex; align-items: center; gap: 14px; }
.voz h2 { margin: 0 0 2px; font: 700 .8rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); }
.voz-actor { margin: 0; display: flex; align-items: center; gap: 8px; font: 700 1.3rem/1.2 var(--display); }
.voz-actor .i { color: var(--teal-ink); }
.voz-eq { display: flex; align-items: center; gap: 3px; height: 42px; flex: none; }
.voz-eq i { width: 4px; height: 30%; border-radius: 2px; background: linear-gradient(180deg, var(--teal), var(--amber)); }
.voz-eq i:nth-child(2) { height: 62%; } .voz-eq i:nth-child(3) { height: 100%; } .voz-eq i:nth-child(4) { height: 52%; } .voz-eq i:nth-child(5) { height: 84%; } .voz-eq i:nth-child(6) { height: 44%; } .voz-eq i:nth-child(7) { height: 24%; }
.voz.playing .voz-eq i { animation: eq .5s ease-in-out infinite alternate; }
.voz.playing .voz-eq i:nth-child(2) { animation-delay: -.31s; animation-duration: .43s; } .voz.playing .voz-eq i:nth-child(3) { animation-delay: -.12s; animation-duration: .61s; } .voz.playing .voz-eq i:nth-child(4) { animation-delay: -.4s; }
.voz.playing .voz-eq i:nth-child(5) { animation-delay: -.22s; animation-duration: .38s; } .voz.playing .voz-eq i:nth-child(6) { animation-delay: -.05s; animation-duration: .55s; } .voz.playing .voz-eq i:nth-child(7) { animation-delay: -.35s; }
@keyframes eq { from { transform: scaleY(.22); } to { transform: scaleY(1); } }
.voz-note, .voz-none { margin: 8px 0 0; }
.voz-clips { list-style: none; padding: 0; margin: 12px 0 8px; display: grid; gap: 8px; }
.voz-clips li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.voz-play { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 16px 5px 6px; border-radius: 999px; border: 1px solid var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent); color: var(--text); font: 600 .95rem var(--font); text-align: left; cursor: pointer; transition: background var(--t), transform var(--t); }
.voz-play:hover { background: color-mix(in srgb, var(--teal) 24%, transparent); }
.voz-play:active { transform: scale(.98); }
.voz-play[aria-pressed="true"] { background: color-mix(in srgb, var(--teal) 28%, transparent); }
.voz-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #0B1413; flex: none; }
.voz-ico .i { width: 16px; height: 16px; margin-left: 2px; }
.voz-dur { color: var(--muted); font-weight: 400; font-size: .8rem; font-variant-numeric: tabular-nums; }
.voz-player { margin: 10px 0; max-width: 520px; }
.voz > p:last-child { margin-bottom: 0; }

/* Personajes agrupados por anime */
.char-index { margin: 0 0 8px; }
.char-index .chip span { margin-left: 4px; font-size: .78rem; }
.char-group { margin-top: 30px; scroll-margin-top: 90px; }

/* Minijuegos */
.q-opt.correct span { animation: q-pop .45s cubic-bezier(.3, 1.5, .5, 1); }
.q-opt.wrong span { animation: q-shake .4s ease; }
@keyframes q-pop { 0% { transform: scale(.97); } 55% { transform: scale(1.025); } 100% { transform: none; } }
@keyframes q-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.q-feedback:not([hidden]) { animation: rv-in .35s ease backwards; }
.q-score { text-shadow: 0 0 34px rgba(243, 189, 88, .35); font-variant-numeric: tabular-nums; }
.fx-star { position: fixed; z-index: 120; pointer-events: none; background: var(--amber); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.fx-star.c1 { background: var(--teal); } .fx-star.c2 { background: #F4F6FA; }
.spoiler.revealed > :not(.spoiler-cover):not(template) { animation: sp-in .4s ease backwards; }
@keyframes sp-in { from { opacity: 0; filter: blur(6px); } }
.toast:not([hidden]) { animation: toast-in .3s cubic-bezier(.2, .7, .2, 1) backwards; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 14px); } }

@media (max-width: 920px) {
  .js .sky-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 26px 12px; }
  .sky-map { min-height: 380px; }
  .sky-stats { margin-top: 20px; }
}
@media (max-width: 560px) {
  .sky-stats { gap: 10px 22px; } .sky-stats dd { font-size: 1.35rem; }
  .sky-lede { font-size: 1rem; }
  .sky-map { min-height: 400px; }
  .sky-legend { left: 0; right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .rv:not(.in) > * { opacity: 1; }
  .ucard:hover, .ccard:hover, .ncard:hover { transform: none; box-shadow: none; }
  .btn:not(.ghost)::after { display: none; }
}
@media print { .sky-map, .read-bar, .voz-player, body::before { display: none !important; } .rv > * { opacity: 1 !important; } }

/* ══ Escenas con profundidad, tarjetas que giran y texto plegado (v1.3) ═════════ */
.h3d { position: relative; height: clamp(190px, 30vw, 330px); margin-top: 14px; overflow: hidden; perspective: 900px; isolation: isolate; border-block: 1px solid rgba(182, 192, 208, .14);
  background: radial-gradient(60% 120% at 22% 30%, hsla(var(--h, 40), 80%, 55%, .42), transparent 62%), radial-gradient(50% 110% at 84% 78%, hsla(calc(var(--h, 40) + 140), 70%, 55%, .26), transparent 60%), linear-gradient(180deg, #0A0D13, #141A26); }
.h3d-compact { height: clamp(130px, 18vw, 200px); }
.h3d-stage { position: absolute; inset: -8%; transform-style: preserve-3d; transform: rotateX(calc(var(--ry, 0) * -5deg)) rotateY(calc(var(--rx, 0) * 7deg)); transition: transform .25s ease-out; }
.h3d-l { position: absolute; inset: 0; width: 100%; height: 100%; transform: translate3d(calc(var(--rx, 0) * var(--d, 1) * -26px), calc((var(--ry, 0) * -18px + var(--sy, 0) * 60px) * var(--d, 1)), calc(var(--d, 1) * 46px)); transition: transform .25s ease-out; will-change: transform; }
.h3d-far circle { fill: #F4F6FA; opacity: .75; }
.h3d-far { animation: h3d-drift 26s ease-in-out infinite alternate; }
.h3d-word { display: grid; place-items: center; font: 700 clamp(3rem, 13vw, 10.5rem)/1 var(--display); letter-spacing: -.02em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px hsla(var(--h, 40), 80%, 78%, .34); text-transform: uppercase; }
.h3d-compact .h3d-word { font-size: clamp(2.4rem, 9vw, 6.5rem); }
.h3d-rings i { position: absolute; left: 50%; top: 50%; width: min(64vw, 620px); aspect-ratio: 1; border-radius: 50%; border: 1px solid hsla(var(--h, 40), 80%, 75%, .4); transform: translate(-50%, -50%) rotateX(74deg) rotate(0); animation: h3d-spin 30s linear infinite; background: radial-gradient(circle at 50% 0, #F3BD58 0 5px, transparent 6px) no-repeat; }
.h3d-rings i:nth-child(2) { width: min(44vw, 430px); animation-duration: 19s; animation-direction: reverse; border-color: rgba(114, 214, 208, .45); background-image: radial-gradient(circle at 50% 0, #72D6D0 0 4px, transparent 5px); }
.h3d-rings i:nth-child(3) { width: min(86vw, 840px); animation-duration: 44s; border-style: dashed; opacity: .6; background: none; }
.h3d-const polyline { fill: none; stroke: hsla(var(--h, 40), 85%, 80%, .85); stroke-width: .16; stroke-dasharray: 160; stroke-dashoffset: 160; animation: h3d-draw 2.2s .3s ease-out forwards; }
.h3d-const circle { fill: #fff; filter: drop-shadow(0 0 1.2px hsla(var(--h, 40), 90%, 75%, .9)); animation: twinkle 2.8s ease-in-out infinite alternate; }
.h3d-const circle:nth-child(2n) { animation-delay: -1.1s; }
.h3d-glow { background: radial-gradient(240px circle at calc(50% + var(--rx, 0) * 40%) calc(50% + var(--ry, 0) * 40%), rgba(243, 189, 88, .22), transparent 70%); mix-blend-mode: screen; }
@keyframes h3d-spin { to { transform: translate(-50%, -50%) rotateX(74deg) rotate(360deg); } }
@keyframes h3d-draw { to { stroke-dashoffset: 0; } }
@keyframes h3d-drift { to { translate: -2% 1.5%; } }
.has-h3d { position: relative; margin-top: -46px !important; z-index: 1; }
.uni-head.has-h3d > div:first-child, .ficha-head.has-h3d .ficha-id { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 20px 22px; box-shadow: var(--shadow); }

/* Retrato y tarjetas con inclinación 3D al pasar el puntero */
.fx [data-tilt] { transform: perspective(700px) rotateX(calc(var(--ty, 0) * -9deg)) rotateY(calc(var(--tx, 0) * 11deg)); transition: transform .2s ease-out; transform-style: preserve-3d; will-change: transform; }
.fx [data-tilt] .ph-initials { transform: translateZ(38px); } .fx [data-tilt] .ph-stars { transform: translateZ(14px); }

/* Tarjetas de habilidad que giran */
.flip { perspective: 900px; background: none !important; border: 0 !important; padding: 0 !important; cursor: pointer; }
.flip-in { display: grid; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3, .9, .3, 1); }
.flip.flipped .flip-in { transform: rotateY(180deg); }
.flip-f, .flip-b { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius); border: 1px solid var(--line); padding: 14px; min-height: 150px; }
.flip-f { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; background: radial-gradient(120% 90% at 0 0, color-mix(in srgb, var(--amber) 16%, transparent), transparent 60%), linear-gradient(150deg, var(--surface-2), var(--surface)); }
.flip-f h4 { font-size: 1.2rem; margin: 0; }
.flip-hint { font-size: .78rem; color: var(--teal-ink); font-weight: 600; }
.flip-b { transform: rotateY(180deg); background: var(--surface); border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); font-size: .92rem; }
.flip-b p:last-child { margin-bottom: 0; }
.flip:hover .flip-f { border-color: var(--amber); } .flip:focus-visible { outline-offset: 4px; }
.flip:not(.flipped):hover .flip-in { transform: rotateY(12deg); }

/* Texto largo plegado */
.clamp { position: relative; max-height: 13.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.clamp.open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.clamp-btn { margin: 6px 0 0; }
@media (max-width: 700px) { .has-h3d { margin-top: -30px !important; } .uni-head.has-h3d > div:first-child, .ficha-head.has-h3d .ficha-id { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .h3d-stage, .h3d-l { transform: none; } .h3d-const polyline { stroke-dashoffset: 0; } .flip-in { transition: none; } }
@media print { .h3d { display: none; } .clamp { max-height: none; mask-image: none; } .flip-b { transform: none; } .flip-in { display: block; } }

/* Dónde verlo */
.watch { margin: 16px 0 8px; padding: 14px 16px; max-width: 640px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--amber) 34%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--amber) 8%, var(--surface)), var(--surface) 62%); }
.watch h2 { margin: 0 0 8px; font: 700 .8rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--amber-ink); display: flex; align-items: center; gap: 6px; }
.watch-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.watch-list li { display: flex; flex-direction: column; gap: 3px; }
.watch-btn { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; background: var(--amber); color: var(--on-amber); text-decoration: none; transition: transform var(--t), box-shadow var(--t); }
.watch-btn:hover { color: var(--on-amber); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(243, 189, 88, .28); }
.watch-btn strong { font-family: var(--display); font-size: 1.05rem; } .watch-btn span { font-size: .82rem; }
.watch-lead { margin: 0 0 6px; }
.watch-search { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.watch-search .i { width: .9em; height: .9em; }
.watch > p:last-child { margin: 0; }

/* Cuenta */
.acct-perks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.acct-perks li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.acct-perks .i { color: var(--amber-ink); width: 1.4em; height: 1.4em; margin-top: 2px; }
.acct-form, .acct-card { display: grid; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.acct-form label:not(.check) { font-weight: 700; }
.acct-form input[type="email"] { min-height: 48px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 1.05rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; } .check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--amber); flex: none; }
.acct-form .btn, .acct-card .btn { justify-self: start; }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.acct-card h2 { font-size: 1.1rem; margin: 0; } .acct-card p { margin: 0; }
.acct-danger { margin-top: 6px; } .acct-danger summary { cursor: pointer; color: var(--danger); font-size: .9rem; } .acct-danger form { display: grid; gap: 10px; margin-top: 8px; }
.acct-link.is-in { border-color: var(--teal); color: var(--teal-ink); }
@media (max-width: 700px) { .hdr-tools .icon-btn[href="/favoritos"] { display: none; } }

/* Selector de idioma (traducción automática) */
.lang{position:relative}
.lang>summary{list-style:none;cursor:pointer}
.lang>summary::-webkit-details-marker{display:none}
.lang-pop{position:absolute;right:0;top:calc(100% + 8px);z-index:60;min-width:190px;padding:8px;border-radius:12px;background:var(--surface,#fff);color:var(--text,#111);border:1px solid var(--line,rgba(128,128,128,.3));box-shadow:0 12px 32px rgba(0,0,0,.25)}
.lang-pop ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.lang-pop a{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;color:inherit;text-decoration:none;font-weight:600}
.lang-pop a:hover,.lang-pop a:focus-visible{background:rgba(128,128,128,.16)}
.lang-pop a[aria-current]{outline:2px solid currentColor;outline-offset:-2px}
.flag{flex:none;border-radius:3px;box-shadow:0 0 0 1px rgba(128,128,128,.45)}
.lang-note{margin:8px 10px 4px;font-size:.72rem;opacity:.75;line-height:1.3}
@media (max-width:480px){.hdr{gap:6px}.hdr-tools{gap:4px}.hdr-tools .icon-btn{width:38px;height:38px;min-width:38px}.hdr .brand .logo{width:104px;height:auto}}
@media (max-width:480px){.hdr .nav-toggle{flex:none;width:38px;min-width:38px}.hdr .brand .logo{width:92px}}
@media (max-width:380px){.hdr-tools .icon-btn,.hdr .nav-toggle{width:34px;height:34px;min-width:34px}.hdr .brand .logo{width:80px}}

/* Tests, comparador y clasificación */
.wrap.narrow { max-width: 760px; }
.play-grid { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.play-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.play-card:hover, .play-card:focus-visible { border-color: var(--amber); }
.play-card strong { font-family: var(--display); font-size: 1.05rem; }
.play-card span { color: var(--muted); font-size: .9rem; }
.t-form { display: grid; gap: 18px; }
.t-form fieldset { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.t-form legend { padding: 0 6px; font-weight: 700; }
.t-n { color: var(--amber-ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.t-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.t-opts.col { flex-direction: column; }
.t-opt { position: relative; display: flex; }
.t-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.t-opt span { display: block; width: 100%; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; }
.t-opts.col .t-opt span { border-radius: var(--radius-sm); }
.t-opt input:checked + span { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 18%, transparent); font-weight: 600; }
.t-opt input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.t-result { margin-top: 24px; padding: 20px; border: 1px solid var(--amber); border-radius: var(--radius); background: var(--surface); }
.t-result:focus { outline: none; }
.t-who { font-size: clamp(1.8rem, 6vw, 2.8rem); margin: 0; }
.t-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.t-card { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.t-card:hover, .t-card:focus-visible { border-color: var(--amber); }
.t-why { color: var(--amber-ink); font-size: .85rem; font-weight: 600; }
.t-desc { color: var(--muted); font-size: .9rem; }
.table-scroll { overflow-x: auto; }
.rank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 16px; }
.rank-grid section { min-width: 0; }
table.rank, table.cmp { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.rank th, table.rank td, table.cmp th, table.cmp td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.rank thead th { font-size: .78rem; color: var(--muted); font-weight: 600; }
table.rank .pos { width: 3.5em; color: var(--muted); }
table.rank tr.top .pos { color: var(--amber-ink); font-weight: 700; }
table.rank tr.top-1 th { font-size: 1.05rem; }
table.cmp tbody th { width: 24%; color: var(--muted); font-weight: 600; font-size: .9rem; }
table.cmp td { width: 38%; }
.cmp-head { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-size: 1.1rem; }
.cmp-head .portrait { width: 56px; flex: none; }
@media (max-width: 560px) { table.cmp tbody th { width: 30%; } .cmp-head { flex-direction: column; align-items: flex-start; } }
/* La cabecera gana un botón (idioma): el buscador cede el ancho en pantallas medianas */
@media (min-width: 900px) and (max-width: 1400px) { .search input { width: 190px; } .search input:focus { width: 240px; } }
.cmp-head .portrait .ph-initials { font-size: 1rem; }
@media (min-width: 900px) and (max-width: 1180px) { .hdr { gap: 8px; } .hdr .brand .logo { width: 150px; height: auto; } .site-nav a { padding-left: 8px; padding-right: 8px; font-size: .9rem; } .search input { width: 44px; padding-right: 0; } .search input::placeholder { color: transparent; } .search input:focus { width: 210px; padding-right: 12px; } }

/* Votaciones y listas */
.poll { margin: 0 0 22px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.poll h2 { margin: 0 0 6px; font-size: 1.2rem; }
.poll-opts { list-style: none; margin: 12px 0 8px; padding: 0; display: grid; gap: 8px; }
.poll-opt { position: relative; display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.poll-opt:disabled { cursor: default; }
.poll-opt:not(:disabled):hover, .poll-opt:focus-visible { border-color: var(--amber); }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--teal) 22%, transparent); transition: width var(--t); }
.poll-label, .poll-n { position: relative; }
.poll-n { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.poll-opt.mine { border-color: var(--amber); font-weight: 700; }
.poll-opt.mine .poll-bar { background: color-mix(in srgb, var(--amber) 28%, transparent); }
.list-form input[type="text"], .list-form input[type="search"], .list-form input:not([type]), .acct-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; width: 100%; }
.list-pick { max-height: 320px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.my-lists { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.my-lists form { display: inline; }

/* Socios */
.is-socio .ad-slot { display: none !important; }
.socio { color: var(--amber-ink); }
.acct-card.member { border-color: var(--amber); }
.perks { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.perks.big { font-size: 1.05rem; gap: 8px; margin: 0 0 20px; }
.member-price { font-size: 1.15rem; }

.acct-form input[type="password"] { min-height: 48px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; }
.acct-form + .acct-form { margin-top: 20px; }
.acct-form h2 { margin: 0; font-size: 1.2rem; }
.acct-new { margin-top: 20px; }
.acct-new h2 { margin: 0; font-size: 1.2rem; }
.acct-new p { margin: 0; }
.uv-art.uv-poster img { object-position: 50% 22%; }
.uni-poster { float: right; width: min(230px, 38%); margin: 0 0 16px 20px; }
.uni-poster img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.uni-poster figcaption { margin-top: 6px; text-align: right; }
@media (max-width: 560px) { .uni-poster { float: none; width: 60%; margin: 0 auto 16px; } .uni-poster figcaption { text-align: center; } }
/* ── Manga ── */
.m-jump { margin: 0 0 8px; }
.m-grid { list-style: none; padding: 0; margin: 12px 0 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.m-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.m-card:hover { border-color: var(--amber); }
.m-cover { display: block; width: 100%; aspect-ratio: 230 / 325; object-fit: cover; background: var(--surface-2); }
.m-card-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; min-width: 0; }
.m-card-body strong { line-height: 1.25; }
.m-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: 4px; }
.m-status { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--text); }
.m-status.m-releasing { background: color-mix(in srgb, var(--teal) 22%, transparent); }
.m-status.m-finished { background: color-mix(in srgb, var(--amber) 22%, transparent); }
.m-status.m-hiatus { background: color-mix(in srgb, #c0504d 25%, transparent); }
.m-continue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 12px 0 28px; }
.m-continue { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 6px; }
.m-continue h2, .m-continue h3 { margin: 0; }
.m-continue p { margin: 0; }
.m-next { font-size: 1.15rem; }
.m-next span { color: var(--muted); font-size: .9rem; margin-right: 4px; }
.m-detail-grid { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: 28px; align-items: start; margin: 8px 0 24px; }
.m-detail-cover { margin: 0; }
.m-detail-cover img { border-radius: var(--radius); box-shadow: var(--shadow); }
.m-facts { display: grid; gap: 10px; margin: 16px 0; }
.m-facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.m-facts dt { color: var(--muted); font-weight: 700; }
.m-facts dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.m-read { margin: 24px 0; }
.m-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.m-links li { display: flex; align-items: center; gap: 8px; }
.m-platforms { columns: 2 220px; padding-left: 18px; }
.m-legal { margin: 8px 0 32px; }
.m-link-anime { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (max-width: 600px) { .m-detail-grid { grid-template-columns: 1fr; } .m-detail-cover { max-width: 220px; } .m-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.chip.on { background: var(--amber); color: #1a1205; border-color: var(--amber); }
/* Con «Manga» en el menú: en escritorio el logotipo ya lleva al inicio, así que se oculta «Inicio». */
@media (min-width: 921px) { .site-nav li:first-child { display: none; } }
@media (min-width: 1181px) and (max-width: 1400px) { .search input { width: 150px; } .search input:focus { width: 210px; } .site-nav a { padding-left: 10px; padding-right: 10px; } }
@media (min-width: 921px) and (max-width: 1020px) { .hdr .brand .logo { width: 118px; } .site-nav a { padding-left: 6px; padding-right: 6px; font-size: .86rem; } .hdr { gap: 6px; } }
.m-es { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.m-es h2 { margin-top: 0; }
.m-es-badge { color: var(--teal); font-weight: 700; }
/* ── Animaciones del minijuego ── */
.q-enter .q-prompt { animation: qIn .35s ease-out both; }
.q-enter .q-opt { animation: qIn .35s ease-out both; }
.q-enter .q-opt:nth-child(1) { animation-delay: .05s; } .q-enter .q-opt:nth-child(2) { animation-delay: .1s; }
.q-enter .q-opt:nth-child(3) { animation-delay: .15s; } .q-enter .q-opt:nth-child(4) { animation-delay: .2s; }
@keyframes qIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.q-opt { position: relative; }
.q-opt.correct { animation: qPop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes qPop { 0% { transform: scale(1); } 45% { transform: scale(1.04); } 100% { transform: scale(1); } }
.q-opt.shake { animation: qShake .45s ease-in-out; }
@keyframes qShake { 0%,100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.q-feedback.ok, .q-feedback.ko { animation: qIn .3s ease-out; }
.q-plus { position: absolute; right: 14px; top: 50%; font-weight: 800; color: var(--amber); pointer-events: none; animation: qPlus 1.3s ease-out forwards; white-space: nowrap; }
@keyframes qPlus { 0% { opacity: 0; transform: translateY(-50%) scale(.6); } 20% { opacity: 1; transform: translateY(-80%) scale(1.15); } 100% { opacity: 0; transform: translateY(-260%) scale(1); } }
.q-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.q-burst i { position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); animation: qBurst .9s ease-out forwards; }
.q-burst i.s2 { background: var(--teal); border-radius: 50%; width: 6px; height: 6px; }
.q-burst i.s3 { background: #fff; width: 4px; height: 10px; }
.q-burst.big i { width: 10px; height: 10px; animation-duration: 1.4s; }
@keyframes qBurst { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); } }
.q-result { position: relative; }
.q-ring { position: relative; width: 150px; height: 150px; margin: 6px auto 4px; }
.q-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.q-ring circle { fill: none; stroke-width: 10; }
.q-ring .bg { stroke: var(--line); }
.q-ring .fg { stroke: var(--amber); stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1); }
.q-ring-n { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 2.1rem; }
.q-ring-n b { color: var(--amber); }
.q-rank { font-family: var(--display); font-size: 1.4rem; color: var(--teal); margin: 0; animation: qIn .5s .6s ease-out both; }
@media (prefers-reduced-motion: reduce) { .q-enter .q-prompt, .q-enter .q-opt, .q-opt.correct, .q-opt.shake, .q-feedback.ok, .q-feedback.ko, .q-rank { animation: none; } .q-ring .fg { transition: none; } }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Noticias sin imagen propia: arte del anime relacionado */
.nv-art { position: relative; overflow: hidden; }
.nv-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nv-poster > img:first-child { filter: blur(18px) brightness(.55) saturate(1.2); transform: scale(1.2); }
.nv-poster .nv-poster-fg { left: 50%; width: auto; height: 100%; transform: translateX(-50%); object-fit: contain; box-shadow: 0 0 30px rgba(0,0,0,.5); }
.nv-credit { position: absolute; right: 6px; bottom: 6px; font-size: .68rem; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; letter-spacing: .02em; }
.img-failed { background: radial-gradient(circle at 30% 25%, rgba(243, 189, 88, .22), transparent 55%), radial-gradient(circle at 75% 80%, rgba(114, 214, 208, .18), transparent 55%), var(--surface-2) !important; }
.img-failed .nv-credit { display: none; }
/* Portada: buscador en la cabecera y constelación más compacta */
.sky-search { display: flex; gap: 8px; margin: 18px 0 6px; max-width: 560px; }
.sky-search input { flex: 1; min-width: 0; min-height: 50px; padding: 10px 16px; border-radius: 14px; border: 1px solid rgba(182,192,208,.35); background: rgba(16,19,26,.7); color: #F4F6FA; font: inherit; font-size: 1.05rem; }
.sky-search input:focus { outline: 2px solid var(--amber); outline-offset: 2px; }
@media (min-width: 921px) { .sky-map { min-height: 320px !important; } }
@media (max-width: 920px) { .sky-map { min-height: 260px !important; } }
/* «Club Atlas» en el menú desplegable del móvil (en escritorio está en el pie y en la cuenta) */
.site-nav li.nav-club { display: none; }
@media (max-width: 920px) { .site-nav li.nav-club { display: block; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; } .site-nav li.nav-club a { color: var(--amber); font-weight: 800; } }
/* ── Mi Atlas: constelación personal ── */
.my-atlas { margin: 8px 0 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: radial-gradient(ellipse at 20% 0%, rgba(243,189,88,.12), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(114,214,208,.12), transparent 55%), #0E1220; color: #F4F6FA; }
.ma-head { padding: 16px 20px 0; }
.ma-head h2 { margin: 0 0 4px; color: #F4F6FA; }
.ma-head .muted { color: #B6C0D0; }
.ma-svg { display: block; width: 100%; height: auto; }
.ma-bg .tw { fill: #F4F6FA; opacity: .5; animation: maTw 3.2s ease-in-out infinite; }
@keyframes maTw { 0%,100% { opacity: .15; } 50% { opacity: .8; } }
.ma-line { stroke: rgba(243,189,88,.55); stroke-width: 1.4; stroke-dasharray: 400; stroke-dashoffset: 400; animation: maDraw 1.2s ease-out forwards; }
.ma-uline { stroke: rgba(114,214,208,.35); stroke-dasharray: 6 6; stroke-dashoffset: 0; animation: none; }
@keyframes maDraw { to { stroke-dashoffset: 0; } }
.ma-node { opacity: 0; animation: maPop .6s cubic-bezier(.2,1.4,.4,1) forwards; transform-box: fill-box; transform-origin: center; }
@keyframes maPop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.ma-node:hover .ma-ring, .ma-node:focus .ma-ring { stroke-width: 4; }
.ma-glow { fill: rgba(243,189,88,.18); animation: maPulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes maPulse { 0%,100% { transform: scale(.9); opacity: .6; } 50% { transform: scale(1.1); opacity: 1; } }
.ma-ring { fill: #1B2230; stroke: #F3BD58; stroke-width: 2.5; }
.ma-ring-c { stroke: #72D6D0; }
.ma-implied .ma-ring { stroke-dasharray: 4 4; }
.ma-core { fill: #F3BD58; } .ma-core-c { fill: #72D6D0; }
.ma-label { fill: #E6EAF2; font: 600 13px Inter, system-ui, sans-serif; text-anchor: middle; paint-order: stroke; stroke: #0E1220; stroke-width: 4px; }
.ma-label-u { fill: #F3BD58; font-size: 14px; font-weight: 800; }
.ma-empty { padding: 20px; }
.ma-empty .small { color: #B6C0D0; }
.ma-favs { margin: 0 0 22px; }
@media (prefers-reduced-motion: reduce) { .ma-bg .tw, .ma-line, .ma-node, .ma-glow { animation: none; opacity: 1; stroke-dashoffset: 0; } }
/* ── Radar del Club Atlas ── */
.radar { margin: 0 0 22px; }
.radar-locked { border-color: var(--amber); }
.radar-freq { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.radar-freq select { min-height: 38px; border-radius: 10px; padding: 4px 10px; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); font: inherit; }
.radar-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.radar-list li { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.radar-list li.new { border-color: var(--amber); }
.radar-why { font-size: .78rem; font-weight: 700; color: var(--teal); }
.radar-new { justify-self: start; font-size: .7rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--amber); color: #1a1205; }
.radar-list a { font-weight: 700; }
.ma-scroll { overflow-x: auto; scrollbar-width: thin; }
@media (max-width: 700px) { .ma-scroll .ma-svg { min-width: 720px; } }
.ma-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; }
.ma-ugrid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; }
/* ── Constelación del Club Atlas ── */
.ma-club-tag { font-size: .8rem; vertical-align: middle; padding: 2px 10px; border-radius: 999px; background: #F3BD58; color: #1a1205; margin-left: 6px; }
.ma-theme-aurora { background: radial-gradient(ellipse at 15% 0%, rgba(80,230,170,.28), transparent 55%), radial-gradient(ellipse at 85% 10%, rgba(120,110,255,.25), transparent 60%), #071319; }
.ma-theme-sakura { background: radial-gradient(ellipse at 20% 0%, rgba(255,150,190,.30), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(255,210,150,.18), transparent 55%), #1A0F18; }
.ma-theme-nebulosa { background: radial-gradient(ellipse at 30% 30%, rgba(170,90,255,.32), transparent 50%), radial-gradient(ellipse at 80% 70%, rgba(60,140,255,.28), transparent 55%), #0B0A1E; }
.ma-theme-sakura .ma-bg .tw { fill: #FFC4DA; }
.ma-theme-aurora .ma-bg .tw { fill: #BFFFE6; }
.ma-live { fill: none; stroke: #F3BD58; stroke-width: 3; opacity: .9; animation: maLive 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes maLive { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.ma-badge circle { fill: #E8505B; stroke: #0E1220; stroke-width: 2; }
.ma-badge text { fill: #fff; font: 800 12px Inter, system-ui, sans-serif; text-anchor: middle; }
.ma-mastery { fill: none; stroke: #72D6D0; stroke-width: 4; stroke-linecap: round; }
.ma-mastery.full { stroke: #F3BD58; filter: drop-shadow(0 0 6px rgba(243,189,88,.9)); }
.ma-master .ma-ring-c { stroke: #F3BD58; }
.ma-thread { fill: none; stroke-width: 2.4; stroke-dasharray: 2 6; stroke-linecap: round; animation: maFlow 1.6s linear infinite; }
@keyframes maFlow { to { stroke-dashoffset: -16; } }
.ma-rival { stroke: #E8505B; } .ma-familia { stroke: #B48CFF; } .ma-amistad { stroke: #72D6D0; }
.ma-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 20px 16px; border-top: 1px solid rgba(182,192,208,.15); }
.ma-tools .small, .ma-legend { color: #B6C0D0; }
.ma-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; flex-basis: 100%; }
.ma-legend .lg { display: inline-block; width: 18px; height: 4px; border-radius: 2px; margin-right: 2px; vertical-align: middle; }
.lg.live { background: #F3BD58; height: 10px; width: 10px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(243,189,88,.35); }
.lg.mastery { background: #72D6D0; } .lg.rival { background: #E8505B; } .lg.familia { background: #B48CFF; } .lg.amistad { background: #72D6D0; opacity: .6; }
.ma-theme-form { display: flex; align-items: center; gap: 8px; color: #E6EAF2; }
.ma-theme-form select { min-height: 36px; border-radius: 10px; padding: 4px 10px; background: #0E1220; color: #F4F6FA; border: 1px solid rgba(182,192,208,.35); font: inherit; }
.ma-dl { display: flex; flex-wrap: wrap; gap: 8px; }
.ma-locked { border-top: 1px dashed rgba(243,189,88,.5); }
.ma-locked .small { flex: 1 1 320px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .ma-live, .ma-thread { animation: none; } }
.ma-dl .btn:not(.ghost) { color: #1a1205; }
@media (max-width: 920px) { .site-nav li.nav-me { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; } .site-nav li.nav-me a { color: var(--teal); font-weight: 800; } .site-nav li.nav-me + li.nav-club { border-top: 0; margin-top: 0; padding-top: 0; } }
/* ── Nombre en el perfil: dorado brillante para el Club Atlas ── */
.acct-hero { display: grid; gap: 6px; }
.acct-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; word-break: break-word; }
.acct-name.gold .gold-txt { background: linear-gradient(100deg, #8A5A12 0%, #F3BD58 18%, #FFF4C6 32%, #F7C95F 46%, #B07A1C 62%, #FFE7A0 78%, #E2A63B 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: goldShine 3.6s linear infinite; filter: drop-shadow(0 0 10px rgba(243,189,88,.45)) drop-shadow(0 2px 0 rgba(90,55,5,.6)); }
@keyframes goldShine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.gold-star { display: inline-block; color: #F3BD58; font-size: .9em; text-shadow: 0 0 12px rgba(255,214,120,.9), 0 0 26px rgba(243,189,88,.6); animation: starSpin 6s ease-in-out infinite, starGlow 2.4s ease-in-out infinite; }
@keyframes starSpin { 0%, 70% { transform: rotate(0) scale(1); } 80% { transform: rotate(72deg) scale(1.25); } 100% { transform: rotate(144deg) scale(1); } }
@keyframes starGlow { 0%,100% { text-shadow: 0 0 10px rgba(255,214,120,.7), 0 0 22px rgba(243,189,88,.4); } 50% { text-shadow: 0 0 18px rgba(255,236,170,1), 0 0 40px rgba(243,189,88,.8); } }
.acct-name.gold { position: relative; }
.acct-name.gold::after { content: "✦"; position: absolute; right: -18px; top: -6px; font-size: .35em; color: #FFF1C0; opacity: 0; animation: sparkle 3.6s ease-in-out infinite 1s; }
@keyframes sparkle { 0%, 60%, 100% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.2); } 80% { opacity: 0; transform: scale(.6); } }
.club-line { margin: 0; font-weight: 800; letter-spacing: .04em; color: #F3BD58; font-size: .9rem; }
.nick-edit summary { cursor: pointer; display: inline-block; font-size: .9rem; color: var(--teal); }
.nick-edit form { display: flex; gap: 8px; margin: 8px 0 4px; max-width: 420px; }
.nick-edit input { flex: 1; min-width: 0; min-height: 40px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; }
.is-socio [data-nav-me] { color: #F3BD58 !important; }
@media (prefers-reduced-motion: reduce) { .acct-name.gold .gold-txt, .gold-star, .acct-name.gold::after { animation: none; } }
/* Cuenta normal: estrella apagada (solo la silueta); se enciende en dorado con el Club Atlas */
.off-star { display: inline-flex; width: .82em; height: .82em; text-decoration: none; }
.off-star svg { width: 100%; height: 100%; fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linejoin: round; opacity: .7; transition: opacity .2s, stroke .2s; }
.off-star:hover svg, .off-star:focus-visible svg { opacity: 1; stroke: #F3BD58; }
/* ── Página del Club Atlas ── */
.club-hero { padding: 28px 0 8px; max-width: 760px; }
.club-kicker { margin: 0; font-weight: 800; letter-spacing: .06em; color: #F3BD58; }
.club-hero h1 { background: linear-gradient(100deg, #F3BD58, #FFF1C0 35%, #E2A63B 60%, #FFE7A0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.club-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.club-price { color: var(--muted); }
.club-price strong { color: var(--text); }
.club-save { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--teal) 22%, transparent); color: var(--text); font-size: .8rem; font-weight: 700; }
.club-grid { list-style: none; padding: 0; margin: 12px 0 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.club-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.club-card h3 { margin: 6px 0 4px; font-size: 1.05rem; }
.club-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.club-ic { font-size: 1.5rem; }
.club-table-wrap { overflow-x: auto; margin: 10px 0 28px; }
.club-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.club-table th, .club-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.club-table td { text-align: center; width: 22%; }
.club-table thead th { font-size: .9rem; color: var(--muted); }
.club-table .club-col { background: color-mix(in srgb, var(--amber) 9%, transparent); color: var(--text); font-weight: 700; }
.club-table thead .club-col { color: #F3BD58; }
.club-table .yes { color: var(--teal); font-weight: 800; } .club-table .no { color: var(--muted); }
.club-steps { display: grid; gap: 8px; padding-left: 22px; max-width: 760px; margin: 10px 0 24px; }
.club-final { border-top: 1px solid var(--line); padding-top: 16px; }

/* Imágenes de formas y etapas (miniaturas propias con crédito a la wiki de origen) */
.form-img { margin: 0; }
.form-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.form-img figcaption { margin-top: 4px; font-size: .72rem; line-height: 1.3; }
.ability-list li.ab-form { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.ability-list li.ab-form > .form-img { grid-row: span 5; }
.ability-list li.ab-form > :not(.form-img) { grid-column: 2; }
.form-img.small figcaption { font-size: .66rem; }

/* Datos curiosos */
.curios { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.curios > li { position: relative; padding: 10px 14px 10px 34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.curios > li::before { content: '✦'; position: absolute; left: 12px; top: 11px; color: var(--amber-ink); }
.curios > li.cu-sp { padding: 0; background: none; border: 0; }
.curios > li.cu-sp::before { content: none; }
.curios .prose p, .curios > li > p { margin: 0 0 4px; display: inline; }
.facts dd.fam { line-height: 1.5; }

/* Club Atlas en la barra superior (también en ordenador), en dorado */
.site-nav li.nav-club-main { display: block; }
.site-nav li.nav-club-main a { color: #F3BD58; font-weight: 800; background: linear-gradient(90deg, #F3BD58, #FFE7A6 45%, #E39A2D 70%, #F3BD58); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: club-shine 5s linear infinite; white-space: nowrap; }
.site-nav li.nav-club-main .club-star { -webkit-text-fill-color: #F3BD58; filter: drop-shadow(0 0 4px rgba(243, 189, 88, .55)); }
:root[data-theme="light"] .site-nav li.nav-club-main a { background-image: linear-gradient(90deg, #B8740C, #E3A126 45%, #8F5806 70%, #B8740C); }
:root[data-theme="light"] .site-nav li.nav-club-main .club-star { -webkit-text-fill-color: #C27D0E; }
@keyframes club-shine { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .site-nav li.nav-club-main a { animation: none; } }

/* Pestañas Noticias / Calendario */
.news-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.news-tabs .ntab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font-weight: 700; background: var(--surface); }
.news-tabs .ntab .i { width: 18px; height: 18px; }
.news-tabs .ntab:hover { border-color: var(--amber); }
.news-tabs .ntab.on { background: var(--amber); border-color: var(--amber); color: #1A1306; }

/* Tests: foto del personaje y carátula del anime */
.t-who-head { display: flex; align-items: center; gap: 18px; }
.t-who-img { width: 120px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-sm); border: 2px solid var(--amber); flex: none; background: var(--surface-2); }
.t-also { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.t-also a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 999px; }
.t-also a:hover { border-color: var(--amber); }
.t-also-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.t-card.has-img { grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; }
.t-card.has-img > :not(.t-card-img) { grid-column: 2; }
.t-card-img { grid-row: span 3; width: 64px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
@media (max-width: 480px) { .t-who-img { width: 90px; } }
