/* Block Horde · web pública. Pensada primero para móvil, estética 16 bits. */

@font-face { font-family: "Press Start 2P"; src: url(../assets/fonts/PressStart2P-Regular.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url(../assets/fonts/PixelifySans-Variable.ttf) format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "VT323"; src: url(../assets/fonts/VT323-Regular.ttf) format("truetype"); font-display: swap; }

:root {
	--night: #160c24;
	--night2: #221338;
	--purple: #3a2257;
	--ink: #0d0716;
	--gold: #f0b43c;
	--gold-hi: #ffe08a;
	--gold-lo: #a8701c;
	--brown: #2b1a10;
	--brown2: #4a2e1a;
	--stone: #5d6068;
	--stone-hi: #a9acb2;
	--stone-lo: #2e3036;
	--grass: #6cbf3a;
	--grass-dk: #3d7a22;
	--ice: #7cc4e4;
	--lava: #e0521f;
	--red: #e0403a;
	--text: #f4ead8;
	--muted: #b9a9cf;
	--px: 4px;
	--head: "Press Start 2P", monospace;
	--body: "Pixelify Sans", "VT323", system-ui, sans-serif;
	color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--night); color: var(--text);
	font-family: var(--body); font-size: 18px; line-height: 1.45;
	overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--gold-hi); }
b { color: var(--gold-hi); font-weight: 700; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 12px; font-family: var(--head); font-size: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }

.spr, .pxl, img[src$="logo.png"], canvas, .phone video, .mat-tile, .card-ico img, .prog-i img, .dialog-face img, .chat-fab img, .chat-head img, .brand img, .geo-badge {
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}

/* ------------------------------------------------------------ marco de píxel */
/* Borde de 4 px con esquinas recortadas: el truco clásico de las ventanas de 16 bits. */
.pxbox {
	--edge: #0b0610; --hi: rgba(255, 255, 255, .10); --lo: rgba(0, 0, 0, .35);
	position: relative; background: var(--bg, #241538);
	box-shadow:
		0 calc(var(--px) * -1) 0 0 var(--edge), 0 var(--px) 0 0 var(--edge),
		calc(var(--px) * -1) 0 0 0 var(--edge), var(--px) 0 0 0 var(--edge),
		inset 0 var(--px) 0 0 var(--hi), inset 0 calc(var(--px) * -1) 0 0 var(--lo);
}
.pxbox-gold { --edge: var(--gold); --bg: #1d1124; }
.pxbox-gold::after {
	content: ""; position: absolute; inset: 4px; pointer-events: none;
	box-shadow: 0 0 0 2px rgba(240, 180, 60, .25);
}

/* ------------------------------------------------------------ botones */
.btn {
	--b: var(--gold); --bh: var(--gold-hi); --bl: var(--gold-lo); --t: var(--ink);
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 14px 18px 12px; border: 0; cursor: pointer;
	font-family: var(--head); font-size: 11px; line-height: 1.2; letter-spacing: .5px;
	color: var(--t); background: var(--b); text-decoration: none; text-transform: uppercase;
	box-shadow:
		0 -4px 0 0 var(--ink), 0 8px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink),
		inset 0 4px 0 0 var(--bh), inset 0 -6px 0 0 var(--bl), 0 4px 0 0 var(--bl);
	margin: 4px 4px 12px;
	transition: transform .08s steps(2);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(4px); box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink), inset 0 4px 0 0 var(--bl); }
.btn-stone { --b: #7c7f86; --bh: #c4c7cc; --bl: #45474d; --t: #fff; text-shadow: 2px 2px 0 #2e3036; }
.btn-sm { min-height: 36px; padding: 10px 12px 8px; font-size: 9px; margin: 4px 4px 10px; }

/* ------------------------------------------------------------ barra superior */
.topbar {
	position: fixed; inset: 0 0 auto 0; z-index: 50; height: 60px;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 0 12px; padding-top: env(safe-area-inset-top);
	background: rgba(13, 7, 22, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	border-bottom: 4px solid var(--ink); box-shadow: 0 2px 0 0 rgba(240, 180, 60, .35);
	transform: translateY(0); transition: transform .25s steps(4);
}
.topbar.hide { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold-hi); }
.brand img { width: 32px; height: 32px; }
.brand span { font-family: var(--head); font-size: 10px; text-shadow: 2px 2px 0 #000; }
.nav { display: none; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.lang { display: flex; box-shadow: 0 0 0 2px var(--ink); }
.lang button {
	border: 0; background: #2a1d3c; color: var(--muted); cursor: pointer;
	font-family: var(--head); font-size: 9px; padding: 9px 8px 8px; min-width: 36px; min-height: 36px;
}
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }

/* ------------------------------------------------------------ portada */
.hero {
	position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
	display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
	background: linear-gradient(#0b0620 0%, #24133e 45%, #55264e 72%, #8a3f4c 100%);
	isolation: isolate;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.hero-scan {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		repeating-linear-gradient(to bottom, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px),
		radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(0, 0, 0, .55) 100%);
}
.hero-in {
	width: 100%; max-width: 760px; padding: 84px 16px 0; text-align: center;
	display: flex; flex-direction: column; align-items: center;
}
.hero-logo { margin: 0; line-height: 0; }
.hero-logo img {
	width: min(86vw, 560px); height: auto;
	filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .5)) drop-shadow(0 0 24px rgba(255, 210, 120, .18));
	animation: bob 3.2s steps(8) infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ribbon { margin: 14px 0 0; }
.ribbon span {
	display: inline-block; padding: 10px 14px 9px; font-family: var(--head); font-size: 11px; color: var(--gold-hi);
	background: #7a2618; text-shadow: 2px 2px 0 #2b0d08;
	box-shadow: 0 -4px 0 0 #1b0b07, 0 4px 0 0 #1b0b07, -4px 0 0 0 #1b0b07, 4px 0 0 0 #1b0b07, inset 0 3px 0 0 #a8402a, inset 0 -3px 0 0 #4a160d;
}
.hero-sub { margin: 18px 0 6px; font-size: 20px; line-height: 1.35; text-shadow: 2px 2px 0 #000, 0 0 12px #000; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin-top: 10px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 0; }
.chip {
	font-family: var(--head); font-size: 8px; padding: 7px 8px 6px; color: var(--text);
	background: rgba(13, 7, 22, .7); box-shadow: 0 0 0 2px rgba(185, 169, 207, .55);
}
.press-start {
	position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
	font-family: var(--head); font-size: 10px; color: #fff; text-decoration: none; text-shadow: 2px 2px 0 #000;
	animation: blink 1.1s steps(2, jump-none) infinite; white-space: nowrap;
}
@keyframes blink { 50% { opacity: 0; } }

/* ------------------------------------------------------------ suelos y muros */
.ground {
	position: relative; height: 48px; background: #4f3119 url(../assets/tiles/earth.png) repeat-x 0 0 / 144px 48px;
	border-top: 4px solid #1a0f08; z-index: 2;
}
.ground::before {
	content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
	background:
		linear-gradient(to bottom, transparent 0 4px, #3d7a22 4px 6px, #6cbf3a 6px 100%) 0 0 / 100% 100%;
	-webkit-mask: linear-gradient(90deg, #000 0 6px, transparent 6px 8px, #000 8px 14px, transparent 14px 16px, #000 16px 24px) 0 0 / 24px 100% repeat-x,
		linear-gradient(#000, #000) 0 6px / 100% 8px no-repeat;
	mask: linear-gradient(90deg, #000 0 6px, transparent 6px 8px, #000 8px 14px, transparent 14px 16px, #000 16px 24px) 0 0 / 24px 100% repeat-x,
		linear-gradient(#000, #000) 0 6px / 100% 8px no-repeat;
}
.ground::after {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
	background: repeating-linear-gradient(90deg, #6cbf3a 0 10px, #4f9a2c 10px 14px, #7fd04a 14px 22px, #3d7a22 22px 26px);
}
.ground-snow { background-image: url(../assets/tiles/ice.png); background-color: #3f7ea0; }
.ground-snow::before { background: linear-gradient(to bottom, transparent 0 4px, #c9dcea 4px 6px, #f2f8ff 6px 100%); }
.ground-snow::after { background: repeating-linear-gradient(90deg, #f2f8ff 0 12px, #d6e6f2 12px 16px, #ffffff 16px 26px, #b8cfe0 26px 30px); }
.wall {
	position: relative; height: 40px; z-index: 2;
	background: #45474d url(../assets/tiles/rock.png) repeat-x 0 0 / 120px 40px;
	border-top: 4px solid #1b1c20; border-bottom: 4px solid #1b1c20;
}
.wall::before {
	content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 20px;
	background: url(../assets/tiles/rock.png) repeat-x 0 0 / 120px 40px;
	-webkit-mask: linear-gradient(90deg, #000 0 40px, transparent 40px 60px) 0 0 / 60px 100% repeat-x;
	mask: linear-gradient(90deg, #000 0 40px, transparent 40px 60px) 0 0 / 60px 100% repeat-x;
	filter: drop-shadow(0 -4px 0 #1b1c20);
}

/* ------------------------------------------------------------ secciones */
.sec { position: relative; padding: 56px 0 64px; }
.sec-night {
	background-color: var(--night);
	background-image:
		radial-gradient(circle at 12% 18%, #fff 0 1px, transparent 2px),
		radial-gradient(circle at 72% 8%, #ffe08a 0 1px, transparent 2px),
		radial-gradient(circle at 40% 62%, #cbbcf5 0 1px, transparent 2px),
		radial-gradient(circle at 88% 74%, #fff 0 1px, transparent 2px),
		linear-gradient(var(--night), var(--night2));
	background-size: 220px 220px, 300px 300px, 260px 260px, 340px 340px, 100% 100%;
}
.sec-earth { background: linear-gradient(rgba(22, 13, 8, .9), rgba(22, 13, 8, .94)), #2b1a10 url(../assets/tiles/earth.png) 0 0 / 96px 32px; }
.sec-stone { background: linear-gradient(rgba(18, 18, 24, .86), rgba(18, 18, 24, .92)), #2e3036 url(../assets/tiles/rock.png) 0 0 / 96px 32px; }
.sec-cave { background: radial-gradient(ellipse at 50% 0%, #2a1942 0%, #0d0716 70%); }
.sec-doom { background: radial-gradient(ellipse at 50% 55%, #5a0f1a 0%, #24060c 45%, #0a0306 85%); overflow: hidden; }
.sec-gold { background: radial-gradient(ellipse at 50% 30%, #4a2e1a 0%, #24140b 75%); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 760px; }
.kicker { margin: 0 0 12px; text-align: center; font-family: var(--head); font-size: 9px; letter-spacing: 1px; color: var(--gold); }
.kicker-red { color: #ff6a5a; }
.title {
	margin: 0 0 18px; text-align: center; font-family: var(--head); font-weight: 400;
	font-size: clamp(17px, 5.2vw, 32px); line-height: 1.45; color: var(--gold-hi);
	text-shadow: 0 3px 0 #b8691c, 0 6px 0 #3a1a10, 0 8px 12px rgba(0, 0, 0, .5);
}
.title-red { color: #ffb0a0; text-shadow: 0 3px 0 #b8262a, 0 6px 0 #3a0a10, 0 0 24px rgba(255, 40, 40, .45); }
.subtitle { margin: 36px 0 16px; text-align: center; font-family: var(--head); font-weight: 400; font-size: 12px; color: var(--gold); }
.lead { max-width: 640px; margin: 0 auto 28px; text-align: center; font-size: 20px; color: #e8dcf5; }
.note { max-width: 640px; margin: 22px auto 0; text-align: center; color: var(--muted); }

/* ------------------------------------------------------------ teléfono */
.phone {
	position: relative; background: #121018; padding: 10px 8px 16px;
	box-shadow:
		0 -4px 0 0 #000, 0 4px 0 0 #000, -4px 0 0 0 #000, 4px 0 0 0 #000,
		inset 0 4px 0 0 #3d3a4c, inset 0 -4px 0 0 #07060a, inset 4px 0 0 0 #2b2838;
}
.phone::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 24px; height: 4px; margin-left: -12px; background: #3d3a4c; }
.phone video { display: block; width: 100%; aspect-ratio: 480 / 678; object-fit: cover; background: #000; }
.phone-big { max-width: 340px; margin: 0 auto; }
.phone-big video { aspect-ratio: 9 / 16; }

/* ------------------------------------------------------------ pasos */
.steps {
	display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
	margin: 0 -16px; padding: 8px 24px 20px; scrollbar-width: none;
}
.steps::-webkit-scrollbar { display: none; }
.step { flex: 0 0 76%; max-width: 300px; scroll-snap-align: center; display: flex; flex-direction: column; gap: 14px; }
.step-txt { position: relative; padding: 18px 14px 14px; --bg: #1f1230; }
.step-txt h3 { margin: 0 0 8px; font-family: var(--head); font-weight: 400; font-size: 14px; color: var(--gold-hi); text-shadow: 2px 2px 0 #000; }
.step-txt p { margin: 0; font-size: 17px; color: #e4d8f0; }
.step-n {
	position: absolute; top: -14px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center;
	font-family: var(--head); font-size: 12px; color: var(--ink); background: var(--gold);
	box-shadow: 0 0 0 3px var(--ink), inset 0 3px 0 var(--gold-hi), inset 0 -3px 0 var(--gold-lo);
}
.swipe-hint { margin: 4px 0 0; text-align: center; font-family: var(--head); font-size: 8px; color: var(--muted); animation: blink 1.4s steps(2, jump-none) infinite; }

/* ------------------------------------------------------------ materiales */
.mats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 16px; margin-top: 8px; }
.mat { padding: 16px 10px 14px; text-align: center; --bg: #1c120b; }
.mat:last-child:nth-child(odd) { grid-column: span 2; }
.mat-tile {
	width: 96px; height: 64px; margin: 0 auto 12px; background-repeat: repeat; background-size: 96px 32px;
	box-shadow: 0 0 0 3px #000, 4px 4px 0 3px rgba(0, 0, 0, .45);
}
.mat h3 { margin: 0 0 6px; font-family: var(--head); font-weight: 400; font-size: 11px; color: var(--c, var(--gold-hi)); text-shadow: 2px 2px 0 #000; }
.mat p { margin: 0; font-size: 16px; color: #e4d8c8; }

/* ------------------------------------------------------------ tierras */
.lands { display: grid; gap: 28px; }
.land { overflow: hidden; --bg: #1a1424; }
.land-scene {
	position: relative; height: 210px; overflow: hidden;
	background: var(--sky); border-bottom: 4px solid #000;
}
.land-scene::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48px;
	background: var(--floor) repeat-x 0 0 / 144px 48px; border-top: 4px solid rgba(0, 0, 0, .55);
}
.land-crowd {
	position: absolute; left: 0; right: 0; bottom: 40px; z-index: 1;
	display: flex; align-items: flex-end; justify-content: center; gap: 6px;
}
.land-crowd .spr { filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .45)); }
.land-crowd .mini { margin-bottom: 2px; }
.land-lock {
	position: absolute; top: 10px; left: 10px; z-index: 2; font-family: var(--head); font-size: 8px; padding: 6px 7px 5px;
	color: var(--ink); background: var(--gold); box-shadow: 0 0 0 3px #000;
}
.land-body { padding: 16px 14px 18px; }
.land-body h3 { margin: 0 0 8px; font-family: var(--head); font-weight: 400; font-size: 16px; color: var(--c); text-shadow: 0 3px 0 #000; }
.land-body p { margin: 0 0 10px; color: #e4d8f0; }
.land-boss { font-size: 16px; color: var(--muted); }
.land-boss b { color: var(--text); }
.roster { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.roster .spr { background-color: rgba(0, 0, 0, .3); box-shadow: 0 0 0 2px rgba(0, 0, 0, .5); }

/* ------------------------------------------------------------ geomantes */
.geos { display: grid; gap: 24px; }
.geo { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; padding: 14px; --bg: #1b1230; }
.geo-art {
	position: relative; height: 170px; display: flex; align-items: flex-end; justify-content: center;
	background: radial-gradient(ellipse at 50% 85%, var(--glow) 0%, transparent 65%);
}
.geo-art::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 14px; background: #5d6068; box-shadow: inset 0 4px 0 #a9acb2, inset 0 -4px 0 #2e3036, 0 0 0 3px #000; }
.geo-art img { position: relative; z-index: 1; width: 112px; height: 136px; margin-bottom: 12px; animation: bob 2.6s steps(6) infinite; }
.geo-art .geo-badge { position: absolute; z-index: 2; top: 4px; right: 0; width: 36px; height: 36px; }
.geo h3 { margin: 2px 0 6px; font-family: var(--head); font-weight: 400; font-size: 15px; color: var(--c); text-shadow: 0 3px 0 #000; }
.geo .geo-title { margin: 0 0 8px; font-family: var(--head); font-size: 8px; color: var(--muted); line-height: 1.6; }
.geo p { margin: 0 0 8px; font-size: 16px; color: #e4d8f0; }
.geo .geo-bonus { color: var(--gold-hi); }
.geo .geo-spell { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.geo .geo-spell img { width: 36px; height: 36px; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; background: #2a1d3c; }
.locked { font-family: var(--head); font-size: 7px; color: var(--ink); background: var(--muted); padding: 4px 5px 3px; vertical-align: middle; margin-left: 6px; }

/* ------------------------------------------------------------ pestañas */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 20px; }
.tabs button {
	border: 0; cursor: pointer; font-family: var(--head); font-size: 9px; padding: 11px 10px 9px; min-height: 40px;
	color: var(--muted); background: #22163a; box-shadow: 0 0 0 3px #000, inset 0 3px 0 rgba(255, 255, 255, .08);
}
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--gold); box-shadow: 0 0 0 3px #000, inset 0 3px 0 var(--gold-hi), inset 0 -3px 0 var(--gold-lo); }

/* ------------------------------------------------------------ bestiario */
.beasts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.beast { padding: 12px 10px; text-align: center; --bg: #1c1230; }
.beast .spr { margin: 0 auto 8px; }
.beast h3 { margin: 0 0 4px; font-family: var(--head); font-weight: 400; font-size: 9px; line-height: 1.5; color: var(--gold-hi); }
.beast p { margin: 0; font-size: 15px; line-height: 1.3; color: var(--muted); }
.bosses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.boss { padding: 14px 10px; text-align: center; --bg: #24101a; }
.boss .spr { margin: 0 auto 8px; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .5)); }
.boss h3 { margin: 0 0 4px; font-family: var(--head); font-weight: 400; font-size: 9px; line-height: 1.5; color: #ffb0a0; }
.boss p { margin: 0; font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------ cartas */
.cards { display: grid; gap: 14px; }
.card { display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: center; padding: 12px; --bg: #1c120b; }
.card-ico { width: 60px; height: 60px; display: grid; place-items: center; background: #2a1a10; box-shadow: 0 0 0 3px var(--gold-lo), inset 0 0 0 3px #000; }
.card-ico img { width: 54px; height: 54px; }
.card h3 { margin: 0 0 4px; font-family: var(--head); font-weight: 400; font-size: 10px; line-height: 1.6; color: var(--gold-hi); }
.card p { margin: 0; font-size: 16px; line-height: 1.35; color: #e4d8c8; }
.card small { font-size: 15px; color: var(--muted); }
.card .tag { font-family: var(--head); font-size: 7px; padding: 3px 4px 2px; margin-left: 6px; vertical-align: middle; color: var(--ink); background: var(--grass); }
.card .tag-man { background: var(--ice); }
.glyph { display: inline-block; vertical-align: -2px; margin: 0 1px; }

/* ------------------------------------------------------------ Devorador */
.doom { display: grid; gap: 16px; align-items: center; text-align: center; }
.doom-art { display: grid; place-items: center; min-height: 260px; }
.doom-art .spr { animation: walk 1s steps(4, jump-none) infinite, float 4s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(255, 40, 40, .55)) drop-shadow(0 8px 0 rgba(0, 0, 0, .6)); }
@keyframes float { 50% { translate: 0 -14px; } }
.doom-txt p { margin: 0 auto 12px; max-width: 520px; font-size: 19px; color: #f0d8d8; }
.doom-txt b { color: #ffb0a0; }

/* ------------------------------------------------------------ progresión */
.prog { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.prog-i { padding: 16px 12px; text-align: center; --bg: #1f1230; }
.prog-i img { width: 54px; height: 54px; }
.prog-i h3 { margin: 8px 0 6px; font-family: var(--head); font-weight: 400; font-size: 10px; color: var(--gold-hi); }
.prog-i p { margin: 0; font-size: 15px; color: var(--muted); }

/* ------------------------------------------------------------ vídeos */
.videos { display: grid; gap: 32px; }
.vid { margin: 0; }
.vid figcaption { margin-top: 14px; text-align: center; font-family: var(--head); font-size: 9px; color: var(--gold); }

/* ------------------------------------------------------------ novedades */
.news { display: grid; gap: 16px; }
.note-card { padding: 0; --bg: #1c1230; }
.note-card summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px;
	padding: 14px; font-family: var(--head); font-size: 10px; color: var(--gold-hi);
}
.note-card summary::-webkit-details-marker { display: none; }
.note-card summary::after { content: "▼"; font-size: 8px; color: var(--muted); }
.note-card[open] summary::after { content: "▲"; }
.note-card summary small { font-family: var(--body); font-size: 15px; color: var(--muted); }
.note-body { padding: 0 14px 14px; }
.note-body h4 { margin: 10px 0 6px; font-family: var(--head); font-weight: 400; font-size: 9px; line-height: 1.6; color: var(--gold); }
.note-body ul { margin: 0; padding-left: 18px; }
.note-body li { margin: 0 0 6px; font-size: 16px; color: #e4d8f0; }
.note-body li.sub { list-style: "– "; margin-left: 14px; color: var(--muted); }

/* ------------------------------------------------------------ beta */
.dialog { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-bottom: 26px; --bg: #12203a; --edge: #fff; }
.dialog-face { flex: 0 0 auto; width: 72px; height: 84px; display: grid; place-items: end center; background: #2a3a5a; box-shadow: 0 0 0 3px #000; overflow: hidden; }
.dialog-face img { width: 56px; height: 68px; transform: scale(1.25); transform-origin: 50% 100%; }
.dialog-name { margin: 0 0 6px; font-family: var(--head); font-size: 10px; color: var(--gold); }
.dialog-body p:last-child { margin: 0; font-size: 18px; }
.signup { display: grid; gap: 12px; }
.signup input[type="email"] {
	width: 100%; min-height: 52px; padding: 12px 14px; border: 0; font-family: var(--body); font-size: 20px;
	color: var(--ink); background: #f4ead8; box-shadow: 0 0 0 4px #000, inset 0 4px 0 #c9bfae;
}
.signup input::placeholder { color: #8a7f70; }
.signup .btn { width: 100%; margin: 4px 0 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); flex: 0 0 auto; }
.signup-msg { min-height: 1.4em; margin: 4px 0 0; font-size: 18px; color: var(--gold-hi); }
.signup-msg.err { color: #ff9a8a; }
.signup .btn[disabled] { filter: grayscale(.6) brightness(.8); cursor: progress; }
.signup-legal { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.signup-legal a { color: var(--muted); }
/* Campo trampa para bots: fuera de la vista y del teclado. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ pie */
.foot { background: #120b08; }
.foot-in { padding: 28px 16px 120px; text-align: center; color: var(--muted); font-size: 16px; }
.foot-in img { width: 180px; height: auto; opacity: .9; }
.foot-in p { margin: 8px 0 0; }
.foot-ver { font-family: var(--head); font-size: 8px; }

/* ------------------------------------------------------------ visor */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; }
.lightbox::backdrop { background: rgba(5, 2, 10, .92); }
.lightbox .phone-big { width: min(88vw, calc(88vh * 9 / 16)); max-width: none; }
.lb-close {
	position: fixed; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border: 0; cursor: pointer;
	font-family: var(--head); font-size: 14px; color: var(--ink); background: var(--gold); box-shadow: 0 0 0 3px #000;
}

/* ------------------------------------------------------------ chat */
.chat-fab {
	position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60;
	display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 0; cursor: pointer;
	background: #1d1124; box-shadow: 0 0 0 4px #000, inset 0 0 0 3px var(--gold), 0 8px 0 0 rgba(0, 0, 0, .45);
	animation: nudge 5s steps(2) infinite;
}
.chat-fab img { width: 42px; height: 51px; }
.chat-fab-txt { display: none; font-family: var(--head); font-size: 9px; color: var(--gold-hi); padding-right: 4px; }
.chat-fab::before {
	content: "?"; position: absolute; top: -12px; right: -8px; width: 24px; height: 24px; display: grid; place-items: center;
	font-family: var(--head); font-size: 11px; color: var(--ink); background: #fff; box-shadow: 0 0 0 3px #000;
}
@keyframes nudge { 0%, 90%, 100% { transform: none; } 95% { transform: translateY(-4px); } }
.chat-fab[aria-expanded="true"] { display: none; }
.chat {
	position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column;
	background: #120b1c; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
}
.chat[hidden] { display: none; }
.chat-head, .chat-form { flex-shrink: 0; }
/* Móvil con el chat abierto: la página de detrás no se mueve (si no, el teclado la empuja y corta la cabecera). */
html.chat-on, html.chat-on body { overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #1d1124; border-bottom: 4px solid var(--gold); }
.chat-head img { width: 28px; height: 34px; }
.chat-head > div { flex: 1; min-width: 0; }
.chat-title { margin: 0; font-family: var(--head); font-size: 10px; color: var(--gold-hi); }
.chat-sub { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.chat-max, .chat-grip { display: none; }
.chat-x { width: 40px; height: 40px; border: 0; cursor: pointer; font-family: var(--head); font-size: 12px; color: var(--ink); background: var(--gold); box-shadow: 0 0 0 3px #000; }
.chat-log { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 10px 12px; font-size: 17px; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; }
.msg-aldo { align-self: flex-start; background: #12203a; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #000; }
.msg-aldo::before { content: "ALDO"; display: block; margin-bottom: 4px; font-family: var(--head); font-size: 8px; color: var(--gold); }
.msg-me { align-self: flex-end; background: #3a2a1a; box-shadow: 0 0 0 3px var(--gold-lo), 0 0 0 6px #000; }
.msg-err { align-self: center; max-width: 100%; text-align: center; font-size: 15px; color: #ff9a8a; }
.msg .cursor { display: inline-block; width: 8px; height: 14px; margin-left: 2px; vertical-align: -1px; background: var(--gold-hi); animation: blink .8s steps(2, jump-none) infinite; }
.chat-sugg { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 10px; }
.chat-sugg button { border: 0; cursor: pointer; padding: 8px 10px; font-size: 15px; color: var(--text); background: #2a1d3c; box-shadow: 0 0 0 2px #000, inset 0 2px 0 rgba(255, 255, 255, .08); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; background: #1d1124; border-top: 4px solid #000; }
.chat-form input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 10px; border: 0; font-family: var(--body); font-size: 18px; color: var(--ink); background: #f4ead8; box-shadow: 0 0 0 3px #000; }
.chat-form .btn { margin: 2px 4px 8px; }

/* ------------------------------------------------------------ sprites animados */
.spr { display: inline-block; background-repeat: no-repeat; animation: walk .7s steps(4, jump-none) infinite; }
@keyframes walk { from { background-position-x: 0%; } to { background-position-x: 100%; } }

/* ------------------------------------------------------------ aparición al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .45s steps(5), transform .45s steps(5); }
.js .reveal.on { opacity: 1; transform: none; }

/* ------------------------------------------------------------ portada comercial */
.more { margin: 26px 0 0; text-align: center; }
.sec-tight { padding: 40px 0 44px; }
.wk-ico { display: inline-block; flex: none; background-repeat: no-repeat; vertical-align: middle; object-fit: contain; image-rendering: pixelated; image-rendering: crisp-edges; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat {
	--bg: #2a1a10; display: grid; justify-items: center; gap: 6px; padding: 14px 8px 12px;
	color: var(--text); text-decoration: none; text-align: center;
}
.stat:hover { --bg: #3a2416; }
.stat b { font-family: var(--head); font-weight: 400; font-size: 26px; line-height: 1; color: var(--gold-hi); text-shadow: 0 3px 0 #000; }
.stat span { font-family: var(--head); font-size: 8px; color: #e8dcc8; }
.wtiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.wtile {
	--bg: #241538; display: grid; justify-items: center; align-content: center; gap: 10px; padding: 18px 8px 14px; min-height: 120px;
	color: var(--gold-hi); text-decoration: none; text-align: center;
}
.wtile:hover { --bg: #2f1c48; }
.wtile b { font-family: var(--head); font-weight: 400; font-size: 9px; line-height: 1.6; }
.count { margin: -10px auto 22px; text-align: center; font-size: 20px; color: #f4e2c0; }
.count b { font-family: var(--head); font-weight: 400; color: var(--gold-hi); }
.steps-3 .step-txt p { font-size: 17px; }

/* ------------------------------------------------------------ pantallas medianas */
@media (min-width: 600px) {
	.beasts { grid-template-columns: repeat(3, 1fr); }
	.bosses { grid-template-columns: repeat(3, 1fr); }
	.cards { grid-template-columns: repeat(2, 1fr); }
	.mats { grid-template-columns: repeat(3, 1fr); }
	.mat:last-child:nth-child(odd) { grid-column: auto; }
	.geo { grid-template-columns: 150px 1fr; }
	.ribbon span { font-size: 14px; }
	.chat-fab-txt { display: inline; }
	.stats { grid-template-columns: repeat(3, 1fr); }
	.wtiles { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 760px) {
	.videos { grid-template-columns: 1fr 1fr; }
	.doom { grid-template-columns: 1fr 1fr; text-align: left; }
	.doom-txt p { margin-left: 0; }
	.doom-txt .title, .doom-txt .kicker { text-align: left; }
	.prog { grid-template-columns: repeat(4, 1fr); }
	.chat {
		inset: auto 16px 16px auto; width: 400px; height: min(620px, calc(100vh - 100px));
		box-shadow: 0 0 0 4px #000, 0 0 0 7px var(--gold), 0 0 0 11px #000, 0 16px 40px rgba(0, 0, 0, .6);
		max-width: calc(100vw - 32px); max-height: calc(100vh - 32px);
	}
	/* Escritorio: se estira desde la esquina de arriba a la izquierda y se puede maximizar. */
	.chat-max { display: inline-block; margin-right: -4px; }
	.chat-max .i-min, .chat-max[aria-pressed="true"] .i-max { display: none; }
	.chat-max[aria-pressed="true"] .i-min { display: inline; }
	.chat-grip {
		display: block; position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 2;
		cursor: nwse-resize; touch-action: none; background: linear-gradient(135deg, var(--gold) 0 4px, transparent 4px 7px, var(--gold) 7px 11px, transparent 11px);
	}
	.chat.chat-big { width: calc(100vw - 32px) !important; height: calc(100vh - 32px) !important; }
	.chat.chat-big .chat-grip { display: none; }
	.chat.chat-big .msg { max-width: 760px; }
}
@media (min-width: 960px) {
	.topbar { padding: 0 20px; }
	.nav { display: flex; gap: 4px; }
	.nav a { font-family: var(--head); font-size: 9px; color: var(--text); text-decoration: none; padding: 10px 10px 8px; }
	.nav a:hover { color: var(--ink); background: var(--gold); }
	.brand span { font-size: 12px; }
	.hero-in { padding-top: 96px; }
	.hero-sub { font-size: 24px; }
	.btn { font-size: 12px; padding: 16px 22px 14px; }
	.steps { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 8px 0 0; }
	.step { max-width: none; }
	.steps-3 { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin: 0 auto; }
	.stats { grid-template-columns: repeat(6, 1fr); }
	.swipe-hint { display: none; }
	.mats { grid-template-columns: repeat(5, 1fr); }
	.lands { grid-template-columns: repeat(3, 1fr); }
	.geos { grid-template-columns: repeat(3, 1fr); }
	.geo { grid-template-columns: 1fr; text-align: center; }
	.geo .geo-spell { justify-content: center; }
	.beasts { grid-template-columns: repeat(6, 1fr); }
	.bosses { grid-template-columns: repeat(6, 1fr); }
	.cards { grid-template-columns: repeat(3, 1fr); }
	.sec { padding: 80px 0 88px; }
	.lead { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}
