/*
 * Diseño de la parte publica (portada, Cómo jugar, acceso, tienda...). El PCU
 * y el PCA siguen con css/app.css tal cual: todo lo de aqui cuelga de la clase
 * "site" de <html> (js/site.js). Va con :where() para no subir la especificidad:
 * asi gana a app.css por orden y las variantes (.btn.danger...) siguen valiendo.
 *
 * Misma paleta y logos. La tipografia es Barlow, en condensada cursiva para los
 * titulos, como el logo, y los botones llevan su mismo corte inclinado.
 */

@font-face {
	font-family: "Barlow";
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/Barlow-400.woff2") format("woff2");
}

@font-face {
	font-family: "Barlow";
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/Barlow-600.woff2") format("woff2");
}

@font-face {
	font-family: "Barlow Condensed";
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/BarlowCondensed-600.woff2") format("woff2");
}

@font-face {
	font-family: "Barlow Condensed";
	font-style: italic;
	font-weight: 800;
	font-display: swap;
	src: url("/fonts/BarlowCondensed-800i.woff2") format("woff2");
}

/* fuera de la parte publica estas piezas no existen */
#site-bg,
#brand-bolt,
#top-discord,
#top-play,
.nav-extra {
	display: none;
}

:where(.site) {
	--font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--font-body: "Barlow", "Segoe UI", Tahoma, sans-serif;
	--panel: rgba(var(--rgb-black), 0.8);
	--panel-line: rgba(var(--rgb-steel), 0.18);
	--slant: 10px;
	--wrap: min(1240px, 100% - 48px);
}

:where(.site),
:where(.site) body {
	font-family: var(--font-body);
	font-size: 17px;
}

:where(.site) strong,
:where(.site) b {
	font-weight: 600;
}

:where(.site) :focus-visible {
	outline: 2px solid var(--color-white);
	outline-offset: 2px;
}

:where(.site) [tabindex="-1"]:focus {
	outline: none;
}

/* ─── Fondo: capturas del juego ya difuminadas ─────────────────────────── */

:where(.site) #site-bg {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: var(--color-black);
}

:where(.site) #site-bg > div {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
	opacity: 0;
	transition: opacity 0.8s ease;
}

:where(.site) #site-bg > div.on {
	opacity: 1;
}

:where(.site) #site-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(var(--rgb-black), 0.52),
		rgba(var(--rgb-black), 0.72)
	);
}

:where(.site) #app::before {
	display: none;
}

/* ─── Cabecera ─────────────────────────────────────────────────────────── */

:where(.site) #top {
	padding: 0 max(24px, calc((100% - 1240px) / 2));
	background: rgba(var(--rgb-black), 0.78);
	border-bottom-color: var(--panel-line);
}

:where(.site) #brand-bolt {
	display: block;
	height: 44px;
	filter: drop-shadow(0 0 8px rgba(var(--rgb-secondary), 0.5));
}

:where(.site) #brand {
	gap: 8px;
}

:where(.site) #wordmark {
	height: 34px;
}

:where(.site) #brand-text {
	display: none;
}

:where(.site) #top-right {
	gap: 12px;
}

:where(.site) #top-nav {
	gap: 22px;
	margin-right: 10px;
}

:where(.site) #top-nav a {
	padding: 6px 0;
	border-radius: 0;
	background: none;
	color: rgba(var(--rgb-white), 0.82);
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-transform: none;
	white-space: nowrap;
}

:where(.site) #top-nav a:hover {
	background: none;
	color: var(--color-white);
}

:where(.site) #top-nav a.active {
	background: none;
	color: var(--color-primary);
	box-shadow: inset 0 -2px 0 var(--color-primary);
}

:where(.site) #top-discord,
:where(.site) #top-play {
	display: inline-flex;
}

:where(.site) #top-discord {
	padding: 0 14px;
}

:where(.site) #top-discord svg,
:where(.site) .sticky-discord svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* el boton que manda en la cabecera es Jugar */
:where(.site) #user-box .btn.primary {
	background: rgba(var(--rgb-gunmetal), 0.95);
	color: var(--color-white);
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-transform: none;
}

:where(.site) #user-box .btn.primary:hover {
	background: rgba(var(--rgb-steel), 0.4);
}

:where(.site) .user-chip .user-rank {
	letter-spacing: 0.02em;
	text-transform: none;
	font-size: 13px;
}

/* ─── Botones y campos ─────────────────────────────────────────────────── */

:where(.site) .btn {
	min-height: 46px;
	padding: 8px 26px;
	border: 0;
	border-radius: 0;
	clip-path: polygon(
		var(--slant) 0,
		100% 0,
		calc(100% - var(--slant)) 100%,
		0 100%
	);
	background: rgba(var(--rgb-gunmetal), 0.95);
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.1;
	text-align: center;
	text-transform: none;
}

:where(.site) .btn:hover {
	background: rgba(var(--rgb-steel), 0.4);
	transform: none;
}

:where(.site) .btn:focus-visible {
	clip-path: none;
}

:where(.site) .btn svg {
	flex: none;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

:where(.site) .btn.primary {
	background: linear-gradient(
		90deg,
		var(--color-primary),
		var(--color-secondary)
	);
	box-shadow: none;
	color: var(--color-black);
	font-style: italic;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

:where(.site) .btn.primary:hover {
	background: var(--color-primary);
	box-shadow: none;
}

:where(.site) .btn.small {
	--slant: 7px;
	min-height: 40px;
	padding: 6px 18px;
	font-size: 17px;
}

:where(.site) .btn.link {
	clip-path: none;
	background: none;
	color: var(--color-primary);
	padding-inline: 4px;
}

:where(.site) .btn.link:hover {
	background: none;
	color: var(--color-white);
}

:where(.site) .btn.danger {
	background: var(--color-danger);
}

:where(.site) .btn.success {
	background: var(--color-success);
	color: var(--color-black);
}

:where(.site) .field label {
	color: rgba(var(--rgb-white), 0.82);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

/* 16 px o mas: iOS no hace zoom al enfocar el campo */
:where(.site) .input,
:where(.site) .select {
	height: 48px;
	border-radius: 2px;
	background: rgba(var(--rgb-black), 0.7);
	font-size: 17px;
}

:where(.site) .input.code {
	font-size: 24px;
}

/* ─── Paginas interiores ───────────────────────────────────────────────── */

:where(.site) #main {
	padding: 40px 24px 72px;
}

:where(.site) #content {
	max-width: 1080px;
	animation: none;
}

:where(.site) .section-head {
	flex-wrap: nowrap;
	gap: 16px;
	margin-bottom: 28px;
}

:where(.site) .section-icon {
	width: 52px;
	height: 52px;
	border: 0;
	border-radius: 0;
	clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
	background: linear-gradient(
		135deg,
		var(--color-primary),
		var(--color-secondary)
	);
	box-shadow: none;
	color: var(--color-black);
}

:where(.site) .section-title,
:where(.site) .thanks-title {
	font-family: var(--font-display);
	font-size: clamp(36px, 5vw, 52px);
	font-style: italic;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1;
}

:where(.site) .section-blurb,
:where(.site) .thanks-text {
	margin-top: 6px;
	color: rgba(var(--rgb-white), 0.85);
	font-size: 17px;
	line-height: 1.45;
}

:where(.site) .card,
:where(.site) .step,
:where(.site) .product {
	border-color: var(--panel-line);
	border-radius: 4px;
	background: var(--panel);
}

:where(.site) .card {
	padding: 22px 24px;
}

:where(.site) .card:hover {
	border-color: var(--panel-line);
}

:where(.site) .card.ok {
	border-color: rgba(var(--rgb-success), 0.5);
	background: rgba(4, 34, 18, 0.86);
}

:where(.site) .card.warn {
	border-color: rgba(var(--rgb-warning), 0.5);
	background: rgba(38, 28, 8, 0.88);
}

:where(.site) .card.note {
	border-color: rgba(var(--rgb-danger), 0.6);
	background: rgba(44, 10, 16, 0.88);
}

:where(.site) .card-title,
:where(.site) .step-title,
:where(.site) .group-heading {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.15;
}

:where(.site) .card-body,
:where(.site) .step-body {
	color: rgba(var(--rgb-white), 0.88);
}

:where(.site) .muted,
:where(.site) .group-blurb,
:where(.site) .auth-hint {
	color: rgba(var(--rgb-white), 0.68);
}

:where(.site) .step {
	padding: 20px 24px;
}

:where(.site) .step-number {
	width: 48px;
	height: 44px;
	border-radius: 0;
	clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
	box-shadow: none;
	font-family: var(--font-display);
	font-size: 26px;
	font-style: italic;
	font-weight: 800;
}

:where(.site) .contact-icon,
:where(.site) .product-icon {
	border-radius: 4px;
	box-shadow: none;
}

:where(.site) .contact-email {
	font-family: var(--font-display);
	font-size: clamp(24px, 4vw, 32px);
	font-style: italic;
	font-weight: 800;
	text-shadow: none;
}

:where(.site) .product:hover {
	transform: none;
}

:where(.site) .product.selected {
	border-color: var(--color-primary);
	box-shadow: inset 0 0 0 1px var(--color-primary);
}

:where(.site) .product-amount {
	font-family: var(--font-display);
	font-size: 34px;
	font-style: italic;
	font-weight: 800;
	line-height: 1.1;
}

:where(.site) .product-kind,
:where(.site) .product-offer,
:where(.site) .badge {
	font-size: 13px;
	letter-spacing: 0.02em;
	text-transform: none;
}

:where(.site) .product-price {
	border-radius: 2px;
}

:where(.site) .product-list {
	font-size: 14px;
}

/* pestañas de la tienda y selector de plataforma: el activo, en cursiva */
:where(.site) .pill,
:where(.site) .platform-switch .platform {
	min-height: 44px;
	border-radius: 0;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-transform: none;
}

:where(.site) .pill {
	border: 0;
	background: var(--panel);
	color: rgba(var(--rgb-white), 0.82);
}

:where(.site) .pill.active {
	background: var(--color-primary);
	color: var(--color-black);
}

:where(.site) .platform-switch {
	border-radius: 2px;
	background: var(--panel);
}

:where(.site) .platform-switch .platform.active,
:where(.site) .hero-alt .platform-switch .platform.active {
	background: var(--color-primary);
	box-shadow: none;
	color: var(--color-black);
}

:where(.site) .platform-switch.large .platform {
	font-size: 19px;
}

:where(.site) .auth-wrap {
	min-height: min(70vh, 640px);
}

/* ─── Pie ──────────────────────────────────────────────────────────────── */

:where(.site) #foot {
	padding: 32px 24px calc(32px + env(safe-area-inset-bottom));
	background: rgba(var(--rgb-black), 0.86);
	color: rgba(var(--rgb-white), 0.72);
	font-size: 15px;
}

:where(.site) .foot-disclaimer {
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

:where(.site) .foot-legal {
	color: rgba(var(--rgb-white), 0.55);
	font-size: 13.5px;
}

/* ─── Portada: estructura ──────────────────────────────────────────────── */

:where(.site)[data-page="inicio"] #main {
	padding: 0;
}

:where(.site)[data-page="inicio"] #content {
	max-width: none;
}

:where(.site) .home > section {
	width: var(--wrap);
	margin-inline: auto;
	padding-top: clamp(64px, 9vw, 120px);
	scroll-margin-top: calc(var(--top-height) - 40px);
}

:where(.site) .home-title {
	margin-bottom: 24px;
	font-family: var(--font-display);
	font-size: clamp(40px, 6vw, 68px);
	font-style: italic;
	font-weight: 800;
	line-height: 1;
}

/* ─── Portada: panel principal ─────────────────────────────────────────── */

:where(.site) .home > .home-hero {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 16px;
	padding-top: 24px;
	min-height: min(calc(100svh - var(--top-height)), 820px);
	padding-bottom: 24px;
}

:where(.site) .hero-panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: clamp(24px, 3.4vw, 44px);
	border-top: 3px solid var(--color-primary);
	background: rgba(var(--rgb-black), 0.84);
}

:where(.site) .hero-logo {
	flex-direction: row;
	gap: 12px;
	align-items: center;
}

:where(.site) .hero-bolt {
	width: 92px;
	height: 92px;
}

:where(.site) .hero-bolt::before {
	width: 150px;
	height: 150px;
}

:where(.site) .hero-bolt img {
	height: 88px;
}

:where(.site) .hero-wordmark {
	height: 64px;
}

:where(.site) .hero-panel h1 {
	margin-top: 26px;
}

:where(.site) .hero-title {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(56px, 6.4vw, 92px);
	font-style: italic;
	font-weight: 800;
	line-height: 0.92;
	text-wrap: balance;
}

:where(.site) .hero-sub {
	display: block;
	margin-top: 16px;
	max-width: 30em;
	color: rgba(var(--rgb-white), 0.88);
	font-family: var(--font-body);
	font-size: clamp(18px, 1.5vw, 21px);
	font-weight: 400;
	line-height: 1.35;
}

:where(.site) .hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}

:where(.site) .btn.hero-play {
	--slant: 14px;
	min-height: 60px;
	margin-top: 0;
	padding: 10px 44px;
	font-size: 28px;
}

:where(.site) .btn.hero-play svg {
	width: 24px;
	height: 24px;
}

:where(.site) .hero-actions .btn:not(.primary) {
	--slant: 14px;
	min-height: 60px;
	padding-inline: 30px;
	font-size: 22px;
}

:where(.site) .hero-note {
	margin-top: 16px;
	color: rgba(var(--rgb-white), 0.76);
	font-size: 16px;
}

:where(.site) .hero-status {
	margin-top: 20px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: rgba(var(--rgb-white), 0.88);
	font-size: 16px;
}

:where(.site) .hero-status strong {
	color: var(--color-white);
}

:where(.site) .hero-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: minmax(0, 1fr);
	gap: 16px;
}

:where(.site) .hero-tile {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 180px;
	overflow: hidden;
	background: var(--color-gunmetal);
	color: var(--color-white);
}

:where(.site) .hero-tile img,
:where(.site) .scene img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

:where(.site) .hero-tile:hover img,
:where(.site) .scene:hover img {
	transform: scale(1.04);
}

:where(.site) .hero-tile span {
	position: relative;
	width: 100%;
	padding: 48px 18px 14px;
	background: linear-gradient(transparent, rgba(var(--rgb-black), 0.9));
	font-family: var(--font-display);
	font-size: clamp(26px, 2.6vw, 36px);
	font-style: italic;
	font-weight: 800;
	line-height: 1;
}

/* ─── Portada: lo destacado ────────────────────────────────────────────── */

:where(.site) .scene-row {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 16px;
	margin-top: 16px;
}

:where(.site) .scene {
	position: relative;
	display: flex;
	align-items: flex-end;
	height: clamp(280px, 34vw, 430px);
	margin: 0;
	overflow: hidden;
	background: var(--color-gunmetal);
	scroll-margin-top: calc(var(--top-height) + 16px);
}

:where(.site) .scene.span-4 {
	grid-column: span 4;
	height: clamp(240px, 24vw, 310px);
}

:where(.site) .scene.span-5 {
	grid-column: span 5;
}

:where(.site) .scene.span-7 {
	grid-column: span 7;
}

:where(.site) .scene.span-12 {
	grid-column: span 12;
	height: clamp(320px, 42vw, 540px);
}

:where(.site) .scene figcaption {
	position: relative;
	width: 100%;
	padding: 72px 22px 18px;
	background: linear-gradient(
		transparent,
		rgba(var(--rgb-black), 0.72) 42%,
		rgba(var(--rgb-black), 0.94)
	);
	font-family: var(--font-display);
	font-size: clamp(28px, 2.6vw, 36px);
	font-style: italic;
	font-weight: 800;
	line-height: 1.04;
	text-wrap: balance;
}

:where(.site) .scene.span-4 figcaption {
	font-size: clamp(26px, 2.2vw, 30px);
}

:where(.site) .scene.span-12 figcaption {
	padding: 110px 32px 28px;
	font-size: clamp(32px, 4.4vw, 60px);
}

/* ─── Portada: que es, formas de entrar y preguntas ────────────────────── */

:where(.site) .home > .home-about {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
}

:where(.site) .about-text p {
	max-width: 34em;
	color: rgba(var(--rgb-white), 0.9);
	font-size: 19px;
	line-height: 1.5;
}

:where(.site) .about-text p + p {
	margin-top: 14px;
}

:where(.site) .about-text strong {
	color: var(--color-white);
}

:where(.site) .video-frame {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: var(--color-black);
}

:where(.site) .ways {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 16px;
}

:where(.site) .way {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(24px, 3vw, 40px);
	background: var(--panel);
}

:where(.site) .way-main {
	border-top: 3px solid var(--color-primary);
	justify-content: center;
}

:where(.site) .way h3 {
	font-family: var(--font-display);
	font-size: clamp(32px, 3.4vw, 44px);
	font-style: italic;
	font-weight: 800;
	line-height: 1.05;
}

:where(.site) .way p {
	max-width: 32em;
	margin: 10px 0 20px;
	color: rgba(var(--rgb-white), 0.88);
}

:where(.site) .way .hero-platforms {
	margin-top: 0;
}

:where(.site) .way .hero-download {
	margin-top: 14px;
	padding: 8px 24px;
	font-size: 19px;
}

:where(.site) .way .btn.hero-download svg {
	width: 20px;
	height: 20px;
}

:where(.site) .way-more {
	margin-top: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

:where(.site) .home-faq details {
	max-width: 880px;
	background: var(--panel);
}

:where(.site) .home-faq details + details {
	margin-top: 8px;
}

:where(.site) .home-faq summary {
	padding: 16px 22px;
	cursor: pointer;
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
}

:where(.site) .home-faq summary::marker {
	color: var(--color-primary);
}

:where(.site) .home-faq details p {
	padding: 0 22px 20px;
	max-width: 44em;
	color: rgba(var(--rgb-white), 0.88);
}

:where(.site) .home-faq a,
:where(.site) .hero-note a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

:where(.site) .home > .home-final {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-bottom: clamp(64px, 9vw, 120px);
	text-align: center;
}

:where(.site) .final-bolt {
	height: 110px;
	margin-bottom: 16px;
	filter: drop-shadow(0 0 16px rgba(var(--rgb-secondary), 0.6));
}

:where(.site) .final-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 24px;
	margin-top: 28px;
	font-family: var(--font-display);
	font-size: 21px;
	font-weight: 600;
}

:where(.site) .final-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* barra de jugar: solo en movil, y solo cuando el boton del panel ya no se ve */
:where(.site) .sticky-play {
	display: none;
}

/* ─── Adaptacion ───────────────────────────────────────────────────────── */

@media (max-width: 1040px) {
	:where(.site) #top-discord {
		display: none;
	}

	/* con sesion de staff el menu ya no cabe: se recoge antes que en app.css */
	:where(.site) #menu-toggle {
		display: flex;
		width: 44px;
		height: 44px;
		border-radius: 0;
	}

	:where(.site) #top-nav {
		display: none;
		position: absolute;
		top: var(--top-height);
		right: 0;
		left: 0;
		flex-direction: column;
		gap: 0;
		margin: 0;
		padding: 6px max(14px, calc((100% - 720px) / 2)) 14px;
		background: var(--color-black);
		box-shadow: 0 18px 30px rgba(0, 0, 0, 0.5);
	}

	:where(.site) #top.open #top-nav {
		display: flex;
	}

	:where(.site) #top-nav a {
		display: flex;
		align-items: center;
		min-height: 50px;
		padding: 0;
		font-size: 24px;
	}

	:where(.site) #top-nav a + a {
		border-top: 1px solid var(--panel-line);
	}

	:where(.site) #top-nav a.active {
		box-shadow: none;
	}

	:where(.site) #top-nav .nav-extra {
		display: flex;
	}

	:where(.site) .home > .home-hero {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	:where(.site) .hero-tile {
		aspect-ratio: 16 / 10;
		min-height: 0;
	}

	:where(.site) .home > .home-about,
	:where(.site) .ways {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 900px) {
	:where(.site) .scene.span-4,
	:where(.site) .scene.span-5,
	:where(.site) .scene.span-7 {
		grid-column: span 6;
		height: clamp(240px, 36vw, 320px);
	}

	:where(.site) .scene.span-4:last-child:nth-child(3) {
		grid-column: span 12;
		height: clamp(280px, 54vw, 420px);
	}
}

@media (max-width: 820px) {
	:where(.site) {
		--wrap: calc(100% - 28px);
	}

	:where(.site) #top {
		padding: 0 14px;
		background: rgba(var(--rgb-black), 0.92);
		backdrop-filter: none;
	}

	:where(.site) #brand-bolt {
		height: 38px;
	}

	:where(.site) #wordmark {
		height: 30px;
	}

	:where(.site) #top-play {
		display: none;
	}

	:where(.site) #main {
		padding: 24px 14px 48px;
	}

	:where(.site) .section-head {
		gap: 12px;
		margin-bottom: 20px;
	}

	:where(.site) .card {
		padding: 18px;
	}

	:where(.site) .step {
		padding: 16px;
	}

	:where(.site) .home > .home-hero {
		padding-top: 14px;
		gap: 10px;
	}

	:where(.site) .hero-grid,
	:where(.site) .scene-row {
		gap: 10px;
	}

	:where(.site) .scene-row {
		margin-top: 10px;
	}

	:where(.site) .hero-tile span {
		padding: 36px 12px 10px;
	}

	/* la barra ocupa el hueco inferior: el pie no se queda debajo */
	:where(.site) .sticky-play:not([hidden]) {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 40;
		display: flex;
		gap: 8px;
		padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--panel-line);
		background: rgba(var(--rgb-black), 0.94);
	}

	:where(.site) .sticky-play .btn.primary {
		flex: 1;
		min-height: 50px;
		font-size: 24px;
	}

	:where(.site) .sticky-discord {
		min-height: 50px;
		padding-inline: 20px;
	}

	:where(.site) .sticky-discord svg {
		width: 22px;
		height: 22px;
	}

	:where(.site) #toasts {
		bottom: 76px;
	}
}

@media (max-width: 640px) {
	:where(.site),
	:where(.site) body {
		font-size: 16px;
	}

	:where(.site) .scene.span-4,
	:where(.site) .scene.span-5,
	:where(.site) .scene.span-7,
	:where(.site) .scene.span-12,
	:where(.site) .scene.span-4:last-child:nth-child(3) {
		grid-column: span 12;
		height: auto;
		aspect-ratio: 16 / 11;
	}

	:where(.site) .scene figcaption,
	:where(.site) .scene.span-4 figcaption,
	:where(.site) .scene.span-12 figcaption {
		padding: 56px 16px 14px;
		font-size: 27px;
	}

	:where(.site) .hero-panel {
		padding: 20px 18px 22px;
	}

	:where(.site) .hero-bolt {
		width: 70px;
		height: 70px;
	}

	:where(.site) .hero-bolt::before {
		width: 112px;
		height: 112px;
	}

	:where(.site) .hero-bolt img {
		height: 66px;
	}

	:where(.site) .hero-wordmark {
		height: 48px;
	}

	:where(.site) .hero-panel h1 {
		margin-top: 18px;
	}

	:where(.site) .hero-actions {
		width: 100%;
		margin-top: 20px;
	}

	:where(.site) .hero-actions .btn.primary {
		flex: 1 1 100%;
	}

	:where(.site) .hero-actions .btn:not(.primary) {
		flex: 1 1 100%;
		min-height: 48px;
		font-size: 20px;
	}

	:where(.site) .way .hero-play {
		width: 100%;
	}

	:where(.site) .way .hero-download {
		width: 100%;
	}

	:where(.site) .about-text p {
		font-size: 17px;
	}

	:where(.site) .home-faq summary {
		padding: 14px 16px;
		font-size: 22px;
	}

	:where(.site) .home-faq details p {
		padding: 0 16px 16px;
	}

	:where(.site) .platform-switch .platform,
	:where(.site) .platform-switch.large .platform {
		padding: 8px 12px;
		font-size: 17px;
	}

	:where(.site) .section-icon {
		width: 44px;
		height: 44px;
		align-self: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	:where(.site) #site-bg > div,
	:where(.site) .hero-tile img,
	:where(.site) .scene img {
		transition: none;
	}

	:where(.site) .hero-bolt,
	:where(.site) .hero-bolt::before,
	:where(.site) .hero-bolt img {
		animation: none;
	}

	:where(.site) .hero-tile:hover img,
	:where(.site) .scene:hover img {
		transform: none;
	}
}
