/* =============================================================================
   Ecos del Olvido: hoja de estilos de la web.
   Madera oscura, pergamino y oro, como la interfaz del juego (assets/ui), con las tres
   fuentes del juego. Sin dependencias externas. Compatible con una CSP estricta
   (ni estilos en línea ni atributos style en el HTML).
   ============================================================================= */

@font-face { font-family: "Jacquard12"; src: url("../fonts/Jacquard12-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Jersey15"; src: url("../fonts/Jersey15-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Jersey10"; src: url("../fonts/Jersey10-Regular.woff2") format("woff2"); font-display: swap; }

:root {
	--night: #0b090f;
	--night-1: #120d14;
	--night-2: #1a1320;
	--wood-0: #1b120c;
	--wood-1: #2c1d12;
	--wood-2: #4a2f1b;
	--wood-3: #6e4728;
	--gold: #e9b44c;
	--gold-hi: #ffdf86;
	--gold-lo: #9a6a22;
	--parch: #e7d4a8;
	--parch-2: #d6be8a;
	--ink: #2a1c10;
	--ink-soft: #5a4128;
	--text: #ece0c6;
	--text-dim: #bfae8f;
	--teal: #59e3d2;
	--teal-lo: #1f6f68;
	--blood: #c2412f;
	--blood-lo: #4a1410;
	--ok: #8fd694;
	--warn: #f0c35a;
	--px: 3px;
	--maxw: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 2px;
	--font-title: "Jacquard12", "Jersey15", Georgia, serif;
	--font-ui: "Jersey15", "Jersey10", system-ui, sans-serif;
	--font-small: "Jersey10", "Jersey15", system-ui, sans-serif;
	--font-prose: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--night);
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 21px;
	line-height: 1.35;
	letter-spacing: 0.015em;
	-webkit-font-smoothing: none;
}

img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
.px, .px img, img.px { image-rendering: pixelated; }
picture { display: contents; }

a { color: var(--gold-hi); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #fff3c4; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: var(--radius); }
main:focus { outline: none; }

h1, h2, h3, h4 {
	font-family: var(--font-title);
	font-weight: normal;
	color: var(--gold);
	text-shadow: 0 var(--px) 0 #2b1708, 0 0 18px rgba(233, 180, 76, 0.18);
	line-height: 1.02;
	margin: 0 0 0.35em;
	text-wrap: balance;
}
h1 { font-size: clamp(48px, 7vw, 88px); }
h2 { font-size: clamp(40px, 5vw, 64px); }
h3 { font-size: clamp(30px, 3vw, 38px); }
h4 { font-size: 28px; }

p { margin: 0 0 0.8em; }
ul, ol { margin: 0 0 0.8em; padding-left: 1.2em; }
li { margin: 0.2em 0; }
li::marker { color: var(--gold); }
strong { color: #fff4d6; font-weight: normal; text-shadow: 0 0 1px currentColor; }
code, kbd { font-family: ui-monospace, Consolas, monospace; font-size: 0.75em; }
hr { border: 0; height: 21px; margin: 32px auto; max-width: 520px;
	border-style: solid; border-width: 0 30px; border-color: transparent;
	border-image: url("../ui/divider.png") 0 10 fill / 0 30px stretch; image-rendering: pixelated; }

.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;
}
.skip-link {
	position: absolute; left: 12px; top: -100px; z-index: 200;
	background: var(--gold); color: var(--ink); padding: 10px 16px; text-decoration: none; font-size: 22px;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
.muted { color: var(--text-dim); }
.small { font-family: var(--font-small); font-size: 19px; }
.center { text-align: center; }
.mt { margin-top: 24px; }
.stack > * + * { margin-top: 16px; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- Botones */
.btn {
	--b: url("../ui/button.png");
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 8px;
	border: solid transparent; border-width: 15px 21px;
	border-image: var(--b) 6 8 fill / 15px 21px stretch;
	image-rendering: pixelated;
	font: 24px/1 var(--font-ui); letter-spacing: 0.02em;
	color: #fff2cf; text-decoration: none; text-shadow: 0 2px 0 #2a170a;
	background: none; cursor: pointer; user-select: none;
	transition: transform 0.08s ease, filter 0.15s ease;
}
.btn:hover, .btn:focus-visible { --b: url("../ui/button_hover.png"); color: var(--gold-hi); }
.btn:active { --b: url("../ui/button_pressed.png"); transform: translateY(2px); }
.btn[disabled], .btn[aria-disabled="true"] { filter: grayscale(0.8) brightness(0.7); cursor: not-allowed; transform: none; }
.btn .icon { width: 22px; height: 22px; }

/* Botón principal: lingote de oro con esquinas de píxel. */
.btn-primary {
	border: 0; border-image: none; min-height: 56px; padding: 0 28px;
	color: #2a1606; text-shadow: 0 1px 0 rgba(255, 245, 200, 0.6);
	background:
		linear-gradient(#fff3b8, #fff3b8) top / 100% 3px no-repeat,
		linear-gradient(180deg, #ffd56b 0%, #e9b44c 48%, #c98a2c 52%, #b6761f 100%);
	clip-path: polygon(0 6px, 3px 6px, 3px 3px, 6px 3px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 3px, calc(100% - 3px) 3px, calc(100% - 3px) 6px, 100% 6px,
		100% calc(100% - 6px), calc(100% - 3px) calc(100% - 6px), calc(100% - 3px) calc(100% - 3px), calc(100% - 6px) calc(100% - 3px), calc(100% - 6px) 100%,
		6px 100%, 6px calc(100% - 3px), 3px calc(100% - 3px), 3px calc(100% - 6px), 0 calc(100% - 6px));
	box-shadow: inset 0 -4px 0 rgba(90, 45, 5, 0.55);
}
.btn-primary:hover, .btn-primary:focus-visible { color: #1d0f03; filter: brightness(1.08) saturate(1.1); }
.btn-primary:focus-visible { outline-offset: 5px; }
.btn-lg { min-height: 68px; font-size: 30px; padding: 0 36px; }
.btn-lg .sub { display: block; font: 17px/1 var(--font-small); opacity: 0.85; margin-top: 4px; }
.btn-lg.btn-stack { flex-direction: column; gap: 2px; padding-top: 6px; padding-bottom: 6px; }
.btn-sm { min-height: 40px; font-size: 20px; border-width: 11px 16px; border-image-width: 11px 16px; padding: 0 4px; }
.btn-primary.btn-sm { padding: 0 16px; min-height: 42px; }
.btn-danger { color: #ffd9cf; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-quiet { color: var(--text); text-decoration: none; padding: 8px 6px; font-size: 22px; }
.link-quiet:hover { color: var(--gold-hi); text-decoration: underline; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-hi); text-decoration: underline; cursor: pointer; }
.is-pending { color: var(--text-dim) !important; cursor: not-allowed; text-decoration: none !important; opacity: 0.75; }

/* ---------------------------------------------------------------- Cabecera */
.site-header {
	position: sticky; top: 0; z-index: 60;
	background: rgba(18, 13, 20, 0.92);
	border-bottom: 2px solid rgba(154, 106, 34, 0.55);
	box-shadow: 0 2px 0 #000, 0 10px 24px rgba(0, 0, 0, 0.35);
}
@supports (backdrop-filter: blur(6px)) { .site-header { background: rgba(18, 13, 20, 0.8); backdrop-filter: blur(8px); } }
.site-header .bar {
	max-width: 1400px; margin: 0 auto; padding: 8px var(--gutter);
	display: flex; align-items: center; gap: 20px; min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-icon { width: 36px; height: 36px; image-rendering: pixelated; }
.brand-word { width: 146px; height: 26px; image-rendering: pixelated; }
@media (min-width: 600px) { .site-header .brand-word { width: 219px; height: 39px; } }
.site-nav { flex: 1; }
.site-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; justify-content: center; flex-wrap: wrap; }
.site-nav a {
	display: block; padding: 8px 10px; color: var(--text); text-decoration: none; font-size: 22px;
	border-bottom: var(--px) solid transparent;
}
.site-nav a:hover { color: var(--gold-hi); }
.site-nav a[aria-current="page"] { color: var(--gold-hi); border-bottom-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.account-slot { display: flex; align-items: center; gap: 6px; }
.nav-toggle {
	display: none; width: 46px; height: 46px; background: var(--wood-1);
	border: 2px solid var(--gold-lo); cursor: pointer; padding: 0; color: var(--gold);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
	display: block; width: 22px; height: 3px; background: currentColor; margin: 0 auto; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* Menú de usuario */
.user-menu { position: relative; }
.user-menu-button {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 10px 4px 4px;
	background: var(--wood-1); border: 2px solid var(--gold-lo); color: var(--text); font: 21px var(--font-ui); cursor: pointer;
}
.user-menu-button:hover { border-color: var(--gold); color: var(--gold-hi); }
.avatar {
	display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none;
	background: linear-gradient(135deg, var(--teal-lo), #2b1d3a); color: #e6fffb;
	font: 22px/1 var(--font-title); border: 2px solid #000;
}
.user-menu-button .caret { width: 0; height: 0; border: 5px solid transparent; border-top-color: currentColor; margin-top: 5px; }
.user-menu-list {
	position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; z-index: 70;
	background: var(--night-2); border: 2px solid var(--gold-lo); box-shadow: var(--shadow);
	list-style: none; margin: 0; padding: 6px;
}
.user-menu-list li { margin: 0; }
.user-menu-list a, .user-menu-list button {
	display: block; width: 100%; text-align: left; padding: 10px 12px; color: var(--text);
	text-decoration: none; background: none; border: 0; font: 21px var(--font-ui); cursor: pointer;
}
.user-menu-list a:hover, .user-menu-list button:hover, .user-menu-list a:focus-visible, .user-menu-list button:focus-visible { background: var(--wood-1); color: var(--gold-hi); }
.user-menu-list .who { padding: 8px 12px 10px; border-bottom: 2px solid var(--wood-2); margin-bottom: 4px; color: var(--text-dim); font-size: 18px; }
.user-menu-list .who strong { display: block; font-size: 22px; }

@media (max-width: 1100px) {
	.nav-toggle { display: inline-grid; place-items: center; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--night-1); border-bottom: 2px solid var(--gold-lo); box-shadow: var(--shadow);
		display: none;
	}
	.site-nav.open { display: block; }
	.site-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
	.site-nav a { font-size: 26px; padding: 12px 4px; border-bottom: 1px solid var(--wood-2); }
	.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
}
@media (max-width: 640px) {
	.header-cta { display: none; }
	.site-header .bar { gap: 10px; min-height: 60px; }
	.user-menu-button .uname { display: none; }
}

/* ---------------------------------------------------------------- Portada: héroe */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: min(860px, calc(100svh - 68px));
	display: grid; align-items: end;
	background: #0f0c1f;
	border-bottom: 2px solid #000;
}
.hero-still, .hero-canvas {
	position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
	object-fit: cover; object-position: center bottom; image-rendering: pixelated;
}
.hero-canvas { opacity: 0; transition: opacity 0.6s ease; }
.hero.is-live .hero-canvas { opacity: 1; }
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(ellipse 70% 55% at 50% 42%, rgba(6, 4, 10, 0.55), transparent 70%),
		linear-gradient(180deg, rgba(11, 9, 15, 0) 55%, rgba(11, 9, 15, 0.85) 92%, var(--night) 100%);
}
.hero-inner { padding: clamp(56px, 10vh, 120px) 0 clamp(48px, 9vh, 96px); text-align: center; }
.hero-logo { position: relative; width: min(100%, 730px); aspect-ratio: 146 / 26; margin: 0 auto; }
.hero-logo img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.hero-logo .glow { animation: glow 3.2s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.hero-kicker { font-size: clamp(22px, 2.2vw, 28px); color: var(--parch); text-shadow: 0 2px 0 #000, 0 0 12px #000; margin: 22px auto 6px; max-width: 46ch; }
.hero-tagline { font: clamp(20px, 2vw, 24px) var(--font-small); color: var(--text-dim); margin: 0 auto 28px; text-shadow: 0 2px 0 #000; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px 18px; justify-content: center; align-items: center; }
.hero-meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; align-items: center; font: 19px var(--font-small); color: var(--text-dim); text-shadow: 0 2px 0 #000; }
.hero-meta a { color: var(--parch); }
.dl-hash { font: 12px/1.4 ui-monospace, Consolas, monospace; color: var(--text-dim); word-break: break-all; max-width: 80ch; margin: 8px auto 0; }

/* Estado del servidor */
.status-badge {
	display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 10px;
	background: rgba(10, 8, 14, 0.75); border: 2px solid #3a2c45; color: var(--text); font: 19px var(--font-small);
	text-decoration: none;
}
.status-dot { width: 10px; height: 10px; background: #7a7280; box-shadow: 0 0 0 2px #000; flex: none; }
.status-badge[data-state="online"] .status-dot { background: #5de38a; box-shadow: 0 0 0 2px #000, 0 0 10px #5de38a; }
.status-badge[data-state="offline"] .status-dot { background: #e35d5d; }
.status-badge[data-state="maintenance"] .status-dot { background: var(--warn); }
@media (prefers-reduced-motion: no-preference) {
	.status-badge[data-state="online"] .status-dot { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes pulse { 50% { box-shadow: 0 0 0 2px #000, 0 0 2px #5de38a; } }

/* ---------------------------------------------------------------- Secciones */
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--night-1), var(--night) 85%); border-top: 1px solid #241a2b; border-bottom: 1px solid #241a2b; }
.section-wood {
	background:
		linear-gradient(180deg, rgba(11, 9, 15, 0.92), rgba(27, 18, 12, 0.97)),
		url("../ui/panel.png") center / 96px repeat;
	image-rendering: auto;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); }
.eyebrow {
	display: inline-block; font: 20px var(--font-small); letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--teal); margin-bottom: 10px;
}
.lead { font-size: clamp(22px, 2vw, 26px); color: var(--text); }
.section-head .lead { color: var(--text-dim); margin: 0; }
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); text-align: center;
	background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(89, 227, 210, 0.08), transparent 70%); }
.page-head .lead { max-width: 60ch; margin: 0 auto; color: var(--text-dim); }

.banner {
	display: inline-block; border: 0 solid transparent; border-width: 0 42px;
	border-image: url("../ui/banner.png") 0 14 fill / 0 42px stretch; image-rendering: pixelated;
	padding: 6px 4px 10px; font: 34px/1 var(--font-title); color: var(--gold-hi); text-shadow: 0 2px 0 #3b0b0b; margin: 0 0 18px;
}

/* Marcos de madera y pergamino del juego */
.panel {
	border: 30px solid transparent;
	border-image: url("../ui/panel.png") 12 fill / 30px round;
	image-rendering: pixelated; color: var(--text); padding: 6px 8px;
}
.panel.gold { border-image-source: url("../ui/panel_gold.png"); }
.parchment {
	border: 24px solid transparent;
	border-image: url("../ui/parchment.png") 8 fill / 24px round;
	image-rendering: pixelated; color: var(--ink); padding: 8px 12px;
}
.parchment h2, .parchment h3 { color: #6b1d10; text-shadow: 0 2px 0 rgba(255, 240, 200, 0.6); }
.parchment a { color: #7a2a12; }
.parchment li::marker { color: #7a2a12; }
.parchment strong { color: var(--ink); }
.parchment .muted { color: var(--ink-soft); }

.card {
	background: linear-gradient(180deg, #1d1522, #150f19);
	border: 2px solid #3a2a3f; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--shadow);
	padding: clamp(18px, 3vw, 28px);
}
.card > h2, .card > h3 { margin-top: 0; }
.card-gold { border-color: var(--gold-lo); }

.frame {
	border: 12px solid transparent;
	border-image: url("../ui/slot.png") 5 fill / 12px stretch; image-rendering: pixelated;
	background: #000; box-shadow: var(--shadow);
}
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; }

/* Bloques de características con captura */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(48px, 7vw, 88px); }
.feature.reverse .feature-media { order: 2; }
.feature h3 { font-size: clamp(36px, 3.6vw, 48px); }
.feature ul { list-style: none; padding: 0; }
.feature li { padding-left: 26px; position: relative; }
.feature li::before { content: ""; position: absolute; left: 4px; top: 0.5em; width: 10px; height: 10px; background: var(--gold); box-shadow: 0 0 0 2px #3b230d; transform: rotate(45deg); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 clamp(48px, 7vw, 80px); padding: 0; list-style: none; }
.stats li { margin: 0; text-align: center; padding: 18px 8px; background: rgba(26, 19, 32, 0.7); border: 2px solid #2f2236; }
.stats .num { display: block; font: clamp(44px, 5vw, 64px)/1 var(--font-title); color: var(--gold); text-shadow: 0 var(--px) 0 #2b1708; }
.stats .lbl { color: var(--text-dim); font-size: 20px; }

/* Razas */
.races { display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.race-tabs { display: grid; gap: 6px; }
.race-tab {
	display: flex; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; text-align: left;
	background: rgba(26, 19, 32, 0.7); border: 2px solid #2f2236; color: var(--text); font: 24px var(--font-ui); cursor: pointer;
}
.race-tab img { width: 48px; height: 48px; object-fit: contain; image-rendering: pixelated; background: #0d0a10; border: 2px solid #000; }
.race-tab:hover { border-color: var(--gold-lo); }
.race-tab[aria-selected="true"] { border-color: var(--gold); background: linear-gradient(90deg, rgba(233, 180, 76, 0.16), rgba(26, 19, 32, 0.7)); color: var(--gold-hi); }
.race-panel { display: grid; grid-template-columns: 240px 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
.race-portrait {
	width: 240px; height: 240px; display: grid; place-items: center;
	background: radial-gradient(circle at 50% 60%, #3a2a2a, #120d14 70%);
	border: 15px solid transparent; border-image: url("../ui/frame_portrait.png") 16 fill / 15px stretch;
	image-rendering: pixelated;
}
.race-portrait img { width: 168px; height: auto; max-height: 190px; object-fit: contain; image-rendering: pixelated; }
.race-panel h3 { margin-bottom: 4px; }
.race-panel .trait { color: var(--teal); font-size: 20px; margin-bottom: 12px; }
.race-panel dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 12px 0 0; font-size: 19px; }
.race-panel dt { color: var(--gold); }
.race-panel dd { margin: 0; color: var(--text-dim); }

/* Clases */
.classes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.class-card {
	margin: 0; position: relative; background: #0e0b10; border: 2px solid #2f2236; overflow: hidden;
	transition: transform 0.15s ease, border-color 0.15s ease;
}
.class-card:hover { transform: translateY(-3px); border-color: var(--gold-lo); }
.class-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; image-rendering: pixelated; }
.class-card .meta { padding: 10px 12px 14px; border-top: 2px solid #2f2236; background: linear-gradient(180deg, #1a1320, #120d14); }
.class-card h3 { font-size: 30px; margin: 0; }
.class-card .role { font: 18px var(--font-small); color: var(--teal); }
.class-card .res { font: 17px var(--font-small); color: var(--text-dim); display: block; }
.role.tank { color: #8fb3ff; }
.role.heal { color: var(--ok); }
.role.dps { color: #ff9c86; }
.role.support { color: #e7a8ff; }

/* Mapa */
.map-teaser { position: relative; }
.map-teaser .frame img { aspect-ratio: 16 / 9; }
.map-pins { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.map-pins li { margin: 0; padding: 14px 16px; background: rgba(26, 19, 32, 0.7); border-left: 4px solid var(--gold); }
.map-pins strong { display: block; color: var(--gold-hi); font-size: 23px; }
.map-pins span { color: var(--text-dim); font-size: 19px; }

/* Noticias */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.news-card { margin: 0; display: flex; flex-direction: column; background: linear-gradient(180deg, #1d1522, #150f19); border: 2px solid #3a2a3f; padding: 22px; min-height: 230px; }
.news-card .tag { align-self: flex-start; font: 16px var(--font-small); letter-spacing: 0.12em; text-transform: uppercase; color: var(--night); background: var(--teal); padding: 2px 8px; }
.news-card .tag.version { background: var(--gold); }
.news-card .tag.evento { background: #e7a8ff; }
.news-card time { color: var(--text-dim); font: 18px var(--font-small); margin-top: 10px; }
.news-card h3 { font: 28px/1.1 var(--font-ui); color: var(--gold-hi); text-shadow: none; margin: 6px 0 8px; }
.news-card p { color: var(--text-dim); font-size: 19px; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-card a.more { margin-top: auto; }
.news-card.pinned { border-color: var(--gold-lo); }

/* Preguntas (details/summary) */
.faq { max-width: 900px; margin: 0 auto; }
.faq details { border-bottom: 2px solid #2b2030; }
.faq summary {
	list-style: none; cursor: pointer; padding: 18px 44px 18px 4px; position: relative;
	font-size: 25px; color: var(--parch);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: ""; position: absolute; right: 12px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
	border-right: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(45deg); transition: transform 0.15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--gold-hi); }
.faq .answer { padding: 0 4px 20px; color: var(--text-dim); font-family: var(--font-prose); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: auto; max-width: 75ch; }
.faq .answer a { color: var(--gold-hi); }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group > h2 { font-size: clamp(34px, 3.5vw, 44px); }

/* Llamada a la acción */
.cta-band {
	text-align: center; padding: clamp(56px, 8vw, 96px) 0;
	background:
		radial-gradient(ellipse 60% 120% at 50% 100%, rgba(89, 227, 210, 0.12), transparent 70%),
		linear-gradient(180deg, var(--night), #140e18);
	border-top: 1px solid #241a2b;
}
.cta-band .lead { color: var(--text-dim); max-width: 52ch; margin: 0 auto 28px; }
.cta-band .btn-row { justify-content: center; }

/* ---------------------------------------------------------------- Pie */
.site-footer { margin-top: auto; background: linear-gradient(180deg, #0f0b0c, #080607); border-top: 2px solid var(--gold-lo); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer-brand p { margin-top: 14px; font-size: 19px; max-width: 34ch; }
.footer-col h2 { font: 22px var(--font-ui); color: var(--gold); text-shadow: none; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0; }
.footer-col a, .footer-col button { display: inline-block; padding: 5px 0; color: var(--text-dim); text-decoration: none; font-size: 20px; }
.footer-col a:hover { color: var(--gold-hi); text-decoration: underline; }
.socials { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.socials li { margin: 0; }
.social { display: inline-grid; place-items: center; width: 44px; height: 44px; background: #1a1320; border: 2px solid #33263a; color: var(--parch); }
.social:hover { color: var(--gold-hi); border-color: var(--gold-lo); }
.social .icon { width: 22px; height: 22px; }
.footer-fine { grid-column: 1 / -1; border-top: 1px solid #2a1f22; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font: 18px var(--font-small); color: var(--text-dim); }
.footer-fine p { margin: 0; }

/* Aviso informativo de cookies (no bloquea nada ni pide consentimiento: no hace falta). */
.cookie-note {
	position: fixed; z-index: 80; left: 16px; bottom: 16px; max-width: 460px;
	display: flex; gap: 14px; align-items: center;
	background: var(--night-2); border: 2px solid var(--gold-lo); box-shadow: var(--shadow); padding: 12px 14px;
	font: 18px var(--font-small); color: var(--text);
}
.cookie-note p { margin: 0; }

/* ---------------------------------------------------------------- Formularios */
.auth-layout { display: grid; grid-template-columns: 1fr minmax(0, 560px); min-height: calc(100vh - 70px); }
.auth-art { position: relative; overflow: hidden; background: #0c0a10; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; opacity: 0.85; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 9, 15, 0.1), rgba(11, 9, 15, 0.4) 70%, var(--night)); }
.auth-art .quote { position: absolute; left: 40px; bottom: 40px; right: 40px; z-index: 1; font-size: 26px; color: var(--parch); text-shadow: 0 2px 0 #000, 0 0 12px #000; max-width: 32ch; }
.auth-main { padding: clamp(32px, 6vw, 72px) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.auth-main h1 { font-size: clamp(48px, 5vw, 64px); }
.auth-main .intro { color: var(--text-dim); margin-bottom: 24px; }
.same-account {
	display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 0 0 24px;
	background: rgba(31, 111, 104, 0.16); border: 2px solid var(--teal-lo); font-size: 19px; color: var(--text);
}
.same-account img { width: 32px; height: 32px; image-rendering: pixelated; flex: none; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > label, .field > .label, fieldset > legend { font-size: 21px; color: var(--parch); }
.field .opt { color: var(--text-dim); font-size: 17px; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="number"], .field select {
	width: 100%; min-height: 50px; padding: 10px 14px;
	background: #0d0a10; color: #fff7e6; border: 2px solid #4a3a52; border-radius: 0;
	font: 21px var(--font-ui); letter-spacing: 0.03em;
	box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.6);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(-45deg, transparent 50%, var(--gold) 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder { color: #8d7f93; }
.field input:hover, .field select:hover { border-color: #6a5574; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.field input[aria-invalid="true"] { border-color: var(--blood); }
.field input.is-valid { border-color: #3f7a52; }
.field .hint { font: 18px var(--font-small); color: var(--text-dim); margin: 0; }
.field .error { font: 19px var(--font-small); color: #ff9d8a; margin: 0; }
.field .ok { font: 19px var(--font-small); color: var(--ok); margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input-group { display: flex; }
.input-group input { flex: 1; min-width: 0; }
.input-group .reveal { flex: none; min-width: 88px; background: #1d1522; border: 2px solid #4a3a52; border-left: 0; color: var(--parch); font: 19px var(--font-ui); cursor: pointer; }
.input-group .reveal:hover { color: var(--gold-hi); }
.code-input { font-family: ui-monospace, Consolas, monospace !important; letter-spacing: 0.3em !important; font-size: 26px !important; max-width: 260px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

.check { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 20px; cursor: pointer; }
.check input { appearance: none; width: 28px; height: 28px; margin: 0; background: url("../ui/check_off.png") center / 100% no-repeat, #0d0a10; image-rendering: pixelated; border: 2px solid #4a3a52; cursor: pointer; }
.check input:checked { background: url("../ui/check_on.png") center / 100% no-repeat, #0d0a10; border-color: var(--gold); }
.check input:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.check input[aria-invalid="true"] { border-color: var(--blood); }

/* Honeypot del registro: fuera de la pantalla (no display:none, para que lo vean los bots). */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 4px; }
.meter span { height: 8px; background: #2c2232; }
.meter[data-score="1"] span:nth-child(-n+1) { background: #d0553f; }
.meter[data-score="2"] span:nth-child(-n+2) { background: #e09a3e; }
.meter[data-score="3"] span:nth-child(-n+3) { background: #c8cf4a; }
.meter[data-score="4"] span { background: #5fcf7a; }

.alert { padding: 12px 16px; border: 2px solid; font-size: 20px; display: flex; gap: 12px; align-items: flex-start; }
.alert p { margin: 0; }
.alert p + p { margin-top: 6px; }
.alert-error { background: var(--blood-lo); border-color: #a8392a; color: #ffe1d9; }
.alert-ok { background: #13321e; border-color: #3f8a55; color: #dcffe6; }
.alert-info { background: #13262a; border-color: var(--teal-lo); color: #ddfbf7; }
.alert-warn { background: #3a2a0c; border-color: #9a6a22; color: #fff0cc; }
.alert a { color: inherit; }

.progress-hint { display: flex; align-items: center; gap: 10px; font: 18px var(--font-small); color: var(--text-dim); min-height: 24px; }
.spinner { width: 14px; height: 14px; background: var(--teal); flex: none; }
@media (prefers-reduced-motion: no-preference) { .spinner { animation: spin 0.9s steps(4) infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.form-foot { color: var(--text-dim); font-size: 19px; text-align: center; margin-top: 8px; }

/* ---------------------------------------------------------------- Mi cuenta */
.account { display: grid; grid-template-columns: 260px 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; padding-bottom: 64px; }
.account-nav { position: sticky; top: 92px; display: grid; gap: 2px; }
.account-nav a { display: block; padding: 10px 14px; color: var(--text-dim); text-decoration: none; border-left: 4px solid transparent; font-size: 21px; }
.account-nav a:hover { color: var(--gold-hi); background: rgba(255, 255, 255, 0.03); }
.account-nav a[aria-current="true"] { color: var(--gold-hi); border-left-color: var(--gold); background: rgba(233, 180, 76, 0.08); }
.account-sections { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; }
.account-sections .card h2 { font-size: clamp(34px, 3.4vw, 42px); }
.profile-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile-head .avatar { width: 72px; height: 72px; font-size: 48px; border-width: 3px; }
.profile-head h2 { margin: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 16px 0 0; }
.kv dt { color: var(--text-dim); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; font: 17px var(--font-small); letter-spacing: 0.06em; border: 2px solid; vertical-align: middle; }
.pill-ok { color: var(--ok); border-color: #3f8a55; background: #10291a; }
.pill-warn { color: var(--warn); border-color: #9a6a22; background: #2c200b; }
.pill-off { color: var(--text-dim); border-color: #4a3a52; }
.pill-gold { color: #2a1606; background: var(--gold); border-color: var(--gold-hi); }
.danger-zone { border-color: #7a2a20; }
.danger-zone h2 { color: #ff9d8a; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 19px; }
.table th, .table td { text-align: left; padding: 10px 10px; border-bottom: 1px solid #2f2236; vertical-align: top; }
.table th { color: var(--gold); font-weight: normal; font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; }
.table td .small { display: block; color: var(--text-dim); }
.qr-box { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; margin: 16px 0; }
.qr { background: #fff; padding: 12px; width: 224px; height: 224px; }
.qr svg { width: 100%; height: 100%; shape-rendering: crispEdges; }
.secret { font: 18px ui-monospace, Consolas, monospace; letter-spacing: 0.08em; word-break: break-all; background: #0d0a10; border: 2px dashed #4a3a52; padding: 8px 10px; display: block; margin: 6px 0 12px; }
.codes { columns: 2; font: 18px ui-monospace, Consolas, monospace; background: #0d0a10; border: 2px solid #4a3a52; padding: 14px 18px; list-style: none; margin: 12px 0; }
.codes li { margin: 0 0 6px; }
.skeleton { background: linear-gradient(90deg, #1d1522, #2a1f30, #1d1522); background-size: 200% 100%; min-height: 1em; }
@media (prefers-reduced-motion: no-preference) { .skeleton { animation: shimmer 1.4s linear infinite; } }
@keyframes shimmer { to { background-position: -200% 0; } }

dialog.modal { max-width: min(560px, calc(100vw - 32px)); width: 100%; padding: 0; border: 2px solid var(--gold-lo); background: var(--night-2); color: var(--text); box-shadow: var(--shadow); }
dialog.modal::backdrop { background: rgba(5, 4, 8, 0.8); }
.modal-body { padding: 24px; }
.modal-body h2 { font-size: 40px; }

/* ---------------------------------------------------------------- Apoyar */
.support-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.funding { display: grid; gap: 10px; }
.funding .figures { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.funding .figures .big { font: 48px/1 var(--font-title); color: var(--gold); }
progress.bar { appearance: none; -webkit-appearance: none; width: 100%; height: 26px; border: 2px solid #000; background: #241a2b; box-shadow: 0 0 0 2px var(--gold-lo); }
progress.bar::-webkit-progress-bar { background: #241a2b; }
progress.bar::-webkit-progress-value { background: repeating-linear-gradient(90deg, #e9b44c 0 12px, #d29a37 12px 14px); }
progress.bar::-moz-progress-bar { background: repeating-linear-gradient(90deg, #e9b44c 0 12px, #d29a37 12px 14px); }
.costs td.num, .costs th.num { text-align: right; white-space: nowrap; }
.costs tfoot td { color: var(--gold-hi); border-bottom: 0; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.tier { margin: 0; display: flex; flex-direction: column; }
.tier .price { font: 22px var(--font-ui); color: var(--teal); margin-bottom: 8px; }
.tier ul { list-style: none; padding: 0; margin: 8px 0 0; }
.tier li { padding-left: 24px; position: relative; font-size: 20px; }
.tier li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 10px; height: 6px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }
.tier h3 { margin-bottom: 4px; }
.tier.featured { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(233, 180, 76, 0.25), var(--shadow); }
.pay-methods { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.wall { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.wall li { margin: 0; padding: 6px 12px; background: #1a1320; border: 2px solid #33263a; }
.wall li.leyenda { border-color: var(--gold); color: var(--gold-hi); }
.wall li.resonancia { border-color: var(--teal-lo); color: #bff8f0; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--gold); color: var(--ink); font: 24px var(--font-ui); }

/* ---------------------------------------------------------------- Galería */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.gallery li { margin: 0; }
.gallery button { display: block; width: 100%; padding: 0; cursor: zoom-in; color: inherit; font: inherit; text-align: left; background: none; border: 0; }
.gallery button:hover .frame { filter: brightness(1.12); }
.gallery .cap { display: block; padding: 8px 2px 0; font-size: 20px; color: var(--parch); }
dialog.lightbox { width: min(96vw, 1600px); max-height: 96vh; padding: 0; border: 0; background: transparent; color: var(--text); }
dialog.lightbox::backdrop { background: rgba(5, 4, 8, 0.94); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; background: #000; image-rendering: pixelated; }
.lightbox figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px; font-size: 22px; }
.lightbox .ctl { display: flex; gap: 8px; }

/* ---------------------------------------------------------------- Contenido largo (legal, historia, prensa) */
.prose {
	font-family: var(--font-prose); font-size: 17px; line-height: 1.7; color: #e6dccb; -webkit-font-smoothing: auto; letter-spacing: 0;
	max-width: 78ch;
}
.prose h2 { font-size: clamp(32px, 3.2vw, 42px); margin-top: 1.4em; }
.prose h3 { font: 24px/1.2 var(--font-ui); color: var(--gold-hi); text-shadow: none; margin: 1.4em 0 0.4em; letter-spacing: 0.02em; }
.prose p, .prose li { color: #e1d6c3; }
.prose strong { color: #fff; font-weight: 600; text-shadow: none; }
.prose a { color: var(--gold-hi); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: 15px; }
.prose th, .prose td { border: 1px solid #3a2a3f; padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: #1d1522; color: var(--gold); font-weight: 600; }
.prose .table-wrap { margin: 1em 0; }
.prose code { background: #1d1522; padding: 1px 5px; font-size: 0.88em; }
mark.ph { background: #5a1f14; color: #ffd8cc; padding: 0 4px; font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; }
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 64px; }
.toc { position: sticky; top: 92px; font-size: 19px; }
.toc h2 { font: 20px var(--font-ui); color: var(--gold); text-shadow: none; text-transform: uppercase; letter-spacing: 0.1em; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 4px 0; color: var(--text-dim); text-decoration: none; }
.toc a:hover { color: var(--gold-hi); }
.legal-meta { color: var(--text-dim); font: 19px var(--font-small); margin-bottom: 20px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; list-style: none; padding: 0; }
.legal-nav li { margin: 0; }
.legal-nav a { display: block; padding: 6px 12px; border: 2px solid #33263a; color: var(--text-dim); text-decoration: none; font-size: 19px; }
.legal-nav a[aria-current="page"] { border-color: var(--gold); color: var(--gold-hi); }
.legal-nav a:hover { color: var(--gold-hi); }
.notice-box { border-left: 4px solid var(--teal); background: #12212a; padding: 14px 18px; margin: 0 0 1.4em; }
.notice-box p:last-child { margin: 0; }

/* Historia y otras páginas antiguas */
.story { max-width: 760px; margin: 0 auto; }
.story .verse { font-size: 26px; margin: 0 0 1em; }
.story .verse::first-letter { font-family: var(--font-title); font-size: 2.2em; color: #7a2a12; float: left; line-height: 0.8; margin: 6px 8px 0 0; }
.story blockquote { margin: 1em 0; padding: 0 0 0 16px; border-left: 4px solid #7a2a12; font-size: 26px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.cards .panel h3 { font-size: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li { background: var(--wood-1); border: 2px solid var(--gold-lo); padding: 2px 10px; color: var(--parch); margin: 0; }
table.data { width: 100%; border-collapse: collapse; font-size: 20px; }
table.data th, table.data td { text-align: left; padding: 6px 8px; border-bottom: 2px solid rgba(90, 65, 40, 0.35); vertical-align: top; }
table.data th { color: #6b1d10; font-weight: normal; }
.table-scroll { overflow-x: auto; }
.reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.reqs dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
.reqs dt { color: var(--gold); }
.reqs dd { margin: 0; }
.log-day { margin: 0 0 16px; }
.log-day h3 { font: 26px var(--font-ui); color: #6b1d10; text-shadow: none; margin: 0 0 4px; }
.log-day ul { margin: 0; }
.log-day code { font-size: 14px; color: var(--ink-soft); }
.parchment code { font-size: 0.75em; background: rgba(90, 65, 40, 0.15); padding: 1px 4px; word-break: break-all; }

/* Prensa */
.press-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: start; }
.factsheet { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
.factsheet dt { color: var(--gold); }
.factsheet dd { margin: 0; }
.downloads-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.downloads-list li { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; background: rgba(26, 19, 32, 0.7); border: 2px solid #2f2236; }
.downloads-list .what strong { display: block; }
.downloads-list .what span { color: var(--text-dim); font-size: 18px; }
.logo-showcase { display: grid; place-items: center; gap: 18px; padding: 36px 20px; background: radial-gradient(circle, #251b2c, #0d0a10 70%); border: 2px solid #2f2236; }
.logo-showcase .logo-big { width: min(100%, 584px); height: auto; image-rendering: pixelated; }

/* 404 */
.notfound { text-align: center; padding: 96px 0; }
.notfound .code { font: clamp(96px, 18vw, 200px)/0.9 var(--font-title); color: var(--gold); text-shadow: 0 6px 0 #2b1708; }

/* ---------------------------------------------------------------- Adaptación */
@media (max-width: 1100px) {
	.footer-grid { grid-template-columns: repeat(4, 1fr); }
	.footer-brand { grid-column: 1 / -1; }
	.classes { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 920px) {
	.feature, .support-grid, .pay-methods, .press-grid, .reqs { grid-template-columns: 1fr; }
	.feature.reverse .feature-media { order: 0; }
	.races { grid-template-columns: 1fr; }
	.race-tabs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
	.race-tab { font-size: 21px; }
	.news-grid, .tiers { grid-template-columns: 1fr; }
	.classes { grid-template-columns: repeat(3, 1fr); }
	.stats, .map-pins { grid-template-columns: repeat(2, 1fr); }
	.auth-layout { grid-template-columns: 1fr; }
	.auth-art { display: none; }
	.account, .legal-layout { grid-template-columns: minmax(0, 1fr); }
	.account > *, .legal-layout > * { min-width: 0; }
	.account-nav { position: static; grid-auto-flow: column; overflow-x: auto; gap: 4px; border-bottom: 2px solid #2f2236; }
	.account-nav a { border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; padding: 10px 12px; }
	.account-nav a[aria-current="true"] { border-bottom-color: var(--gold); }
	.toc { position: static; border: 2px solid #2f2236; padding: 12px 16px; }
	.qr-box { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	body { font-size: 20px; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
	.race-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.race-panel dl { text-align: left; }
	.race-portrait { width: 200px; height: 200px; }
	.race-portrait img { width: 140px; }
	.classes { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.class-card h3 { font-size: 26px; }
	.field-row { grid-template-columns: 1fr; }
	.panel { border-width: 20px; border-image-width: 20px; padding: 2px; }
	.parchment { border-width: 16px; border-image-width: 16px; padding: 4px; }
	.cookie-note { left: 8px; right: 8px; bottom: 8px; max-width: none; flex-direction: column; align-items: stretch; }
	.hero-ctas .btn { width: 100%; max-width: 360px; }
	.codes { columns: 1; }
	.kv { grid-template-columns: 1fr; gap: 2px; }
	.kv dd { margin-bottom: 8px; }
	.factsheet, .reqs dl { grid-template-columns: 1fr; gap: 2px; }
	.factsheet dd, .reqs dd { margin-bottom: 8px; }
	.lightbox figcaption { flex-direction: column; align-items: stretch; }
}
@media (min-width: 2000px) {
	:root { --maxw: 1500px; }
	body { font-size: 24px; }
	.prose { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
	.hero-logo .glow { opacity: 0.7; }
}

@media print {
	.site-header, .site-footer, .cookie-note, .toc, .skip-link { display: none !important; }
	body { background: #fff; color: #000; }
	.prose, .prose p, .prose li { color: #000; }
	.prose h2, .prose h3, h1 { color: #000; text-shadow: none; }
}

/* Compatibilidad con las páginas de la primera versión */
.divider { height: 21px; max-width: 520px; margin: 24px auto; border-style: solid; border-width: 0 30px; border-color: transparent;
	border-image: url("../ui/divider.png") 0 10 fill / 0 30px stretch; image-rendering: pixelated; }
.dim { color: var(--text-dim); }
.parchment .dim { color: var(--ink-soft); }
.section.tight { padding: 24px 0; }
.section-gap { margin-top: 24px; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }
.btn.is-pending { color: #fff2cf !important; filter: grayscale(0.9) brightness(0.75); opacity: 1; }
.btn-primary.is-pending { color: #2a1606 !important; }
.notfound .btn-row { justify-content: center; }
.notfound h1 { font-size: clamp(40px, 5vw, 60px); }
.page-auth .site-footer { margin-top: 0; }
/* Hueco reservado para la suma SHA-256 (llega después con latest.json): sin saltos de diseño. */
.dl-hash { min-height: 2.8em; }
@media (max-width: 640px) { .dl-hash { display: none; } }
/* El contenido de la portada se ancla arriba: si el texto de descarga crece al llegar
   latest.json, crece hacia abajo (dentro del hueco del héroe) y no mueve nada de lo de arriba. */
.hero { align-items: start; }
.hero-inner { padding-top: clamp(64px, 17vh, 200px); }
.hero-meta { min-height: 3.2em; align-content: flex-start; }
/* Pantallas 1440p y 4K: todo a escala (el pixel art y el texto se leen igual que en 1080p). */
@media (min-width: 2400px) { body { zoom: 1.5; } }
@media (min-width: 3400px) { body { zoom: 2; } }
