/* Reapers' Tide - site styles. Dark only (the game is a night). */

@font-face {
	font-family: "SoulPixel";
	src: url("../assets/fonts/soul_survivors.ttf") format("truetype");
	font-display: swap;
}

:root {
	--void: #0b0814;
	--night: #120d1f;
	--violet-9: #19122c;
	--violet-8: #221938;
	--violet-7: #2e2349;
	--violet-5: #4a3a70;
	--violet-3: #9b86d6;
	--teal: #52f2dc;
	--teal-2: #23b3a2;
	--ember: #ff8a3d;
	--gold: #f2c55c;
	--blood: #ff4d5e;
	--bone: #eae4d2;
	--text: #d8d1e6;
	--muted: #a197bb;
	--line: rgba(155, 134, 214, 0.22);
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--px: 3; /* sprite scale on desktop; integer only */
	--nav-h: 64px;
	color-scheme: dark;
}
@media (max-width: 720px) {
	:root { --px: 2; --nav-h: 56px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--void);
	color: var(--text);
	font: 400 18px/1.65 "Alegreya", Georgia, "Times New Roman", serif;
	overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: #9ffbee; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
button { font: inherit; color: inherit; }
.sr, .skip:not(:focus) {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--night); padding: 8px 14px; }

/* the game's pixel font: integer sizes only (16 / 32 / 48 / 64) */
.px {
	font-family: "SoulPixel", ui-monospace, monospace;
	font-weight: 400;
	-webkit-font-smoothing: none;
	-moz-osx-font-smoothing: unset;
	font-smooth: never;
	letter-spacing: 0;
	line-height: 1.15;
}
.pix, .sprite { image-rendering: pixelated; image-rendering: crisp-edges; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------ buttons */
.btn {
	--b: var(--violet-5);
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 10px 22px;
	font-family: "SoulPixel", ui-monospace, monospace; font-size: 16px; line-height: 1;
	-webkit-font-smoothing: none;
	color: var(--bone); text-decoration: none; cursor: pointer;
	background: transparent; border: 0;
	transition: transform .15s ease, filter .15s ease, box-shadow .2s ease, color .15s;
}
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 8px 16px; }
.btn-steam {
	background: linear-gradient(180deg, #3ff0d6 0%, #1fae9e 55%, #168579 100%);
	color: #06201d;
	box-shadow:
		0 0 0 2px #06201d,
		0 0 0 4px var(--teal),
		0 0 28px rgba(82, 242, 220, .45),
		inset 0 -4px 0 rgba(0, 0, 0, .22),
		inset 0 2px 0 rgba(255, 255, 255, .35);
}
.btn-steam:hover { color: #021411; filter: brightness(1.08); box-shadow: 0 0 0 2px #06201d, 0 0 0 4px #9ffbee, 0 0 44px rgba(82, 242, 220, .7), inset 0 -4px 0 rgba(0, 0, 0, .22), inset 0 2px 0 rgba(255, 255, 255, .35); }
.steam-ico { width: 20px; height: 20px; }
/* the game's iron button (nine-slice from the UI kit, 1x so it stays crisp) */
.btn-ghost {
	border: solid transparent; border-width: 14px 16px;
	border-image: url("../assets/ui/button_normal.png") 14 16 fill / 14px 16px stretch;
	image-rendering: pixelated;
	padding: 2px 8px; min-height: 52px;
	text-shadow: 0 2px 0 #000;
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-image-source: url("../assets/ui/button_hover.png"); }
.btn-ghost:active { border-image-source: url("../assets/ui/button_pressed.png"); }
.btn-sm.btn-ghost { min-height: 44px; padding: 0 4px; }
.btn-play { padding-left: 12px; text-shadow: 0 2px 0 #000; }
.play-ico {
	position: relative; width: 40px; height: 40px; border-radius: 50%;
	border: 2px solid var(--teal); box-shadow: 0 0 18px rgba(82, 242, 220, .5), inset 0 0 12px rgba(82, 242, 220, .35);
	background: rgba(11, 8, 20, .6); flex: none;
}
.play-ico::after {
	content: ""; position: absolute; left: 15px; top: 11px;
	border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--teal);
}
.btn-play:hover .play-ico { box-shadow: 0 0 30px rgba(82, 242, 220, .8), inset 0 0 14px rgba(82, 242, 220, .5); }

/* ------------------------------------------------------------ nav */
.nav {
	position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 0 var(--gutter); padding-top: env(safe-area-inset-top);
	transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s;
}
.nav.scrolled {
	background: rgba(11, 8, 20, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 0, 0, .35);
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--bone); text-decoration: none; }
.nav-brand img { border-radius: 6px; }
.nav-brand span { font-family: "SoulPixel", monospace; font-size: 16px; -webkit-font-smoothing: none; opacity: 0; transition: opacity .3s; }
.nav.scrolled .nav-brand span { opacity: 1; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
	display: block; padding: 8px 10px; color: var(--text); text-decoration: none;
	font-family: "SoulPixel", monospace; font-size: 16px; -webkit-font-smoothing: none;
	text-shadow: 0 2px 0 rgba(0, 0, 0, .8);
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--teal); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; }
@media (max-width: 1080px) {
	.nav-toggle {
		display: grid; gap: 5px; place-content: center; width: 44px; height: 44px;
		background: rgba(11, 8, 20, .6); border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
	}
	.nav-toggle i { display: block; width: 20px; height: 2px; background: var(--bone); transition: transform .2s, opacity .2s; }
	.nav-toggle[aria-expanded="true"] i:nth-child(2) { transform: translateY(7px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] i:nth-child(3) { opacity: 0; }
	.nav-toggle[aria-expanded="true"] i:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
	.nav-links {
		position: fixed; top: var(--nav-h); right: 0; left: 0; flex-direction: column; align-items: stretch;
		padding: 12px var(--gutter) 24px; gap: 0;
		background: rgba(11, 8, 20, .97); border-bottom: 1px solid var(--line);
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
		max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
	}
	.nav-links.open { transform: none; opacity: 1; visibility: visible; }
	.nav-links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
	.nav-cta { margin: 16px 0 0; }
	.nav-cta .btn { width: 100%; min-height: 44px; }
	.nav.open { background: rgba(11, 8, 20, .97); }
}

/* ------------------------------------------------------------ hero */
.hero {
	position: relative; min-height: 100vh; min-height: 100svh;
	display: grid; align-items: center; overflow: hidden; isolation: isolate;
	background: #1d1533;
}
.hero-stage { position: absolute; inset: 0; z-index: -1; }
/* 366-byte blurred key art: shows instantly while the parallax layers decode */
.hero-stage::before {
	content: ""; position: absolute; inset: -4%;
	background: url("data:image/webp;base64,UklGRmYBAABXRUJQVlA4IFoBAABwCACdASowABsAPq1Im0mmJCKhNVQMAMAViWIAxoG4Ma0cnLM0nzQn+QJs7ldBplQzAjGEdWh3f4DzZVcSokWnndCa9zXoZy0jj9gAAP7m6BN+wduAZGQEv2uGNJ6aHtY6nUnARnGOVeQWFG+gH08EUUvWpoDPq7pP1pe4Ia6HYsDwNA0+3nPoeUzza5A3cFeOek6PJTfVtaE9bbSjTvTAgsL3m5G1MbqmeV798bQ+DcrvCSqhTKrnOVj6jmX41IkBBq07aFYDQRi5IlVomIN8pY+X4k3c1tx+Y1d+3bkXhSU/Xth9goNOTenvm5duskZRNXwa//tN71dSthSiU00fK1R3KYEAU7Yf2/LYBvq0g2R3zpUmM3mkBFqYB9TSKrEYwLukpktGUzg+PUtq8Qjz/cvgZLJLt8lHChzDwa9wI5EL8/2EH1CrENc4TvEgO3gFoadu8HEEiAAA") 30% 50% / cover no-repeat;
	filter: blur(18px) saturate(1.1);
}
.layer { position: absolute; inset: -6%; will-change: transform; }
.layer img, .layer video {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: 30% 50%;
}
.sky-loop { opacity: 0; transition: opacity 1.2s ease; }
.sky-loop.on { opacity: 1; }
.souls { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-shade {
	position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(120% 90% at 30% 40%, transparent 45%, rgba(11, 8, 20, .55) 100%),
		linear-gradient(90deg, transparent 38%, rgba(11, 8, 20, .45) 70%, rgba(11, 8, 20, .6) 100%),
		linear-gradient(180deg, rgba(11, 8, 20, .45) 0%, transparent 18%, transparent 70%, var(--void) 100%);
}
.hero-content {
	position: relative; width: min(640px, 92vw); margin-left: auto; margin-right: max(var(--gutter), 5vw);
	padding: calc(var(--nav-h) + 24px) 0 96px; text-align: center;
}
.hero-logo { margin: 0 auto; width: min(600px, 100%); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
.hero-logo img { width: 100%; height: auto; animation: logo-float 7s ease-in-out infinite; }
@keyframes logo-float { 50% { transform: translateY(-6px); } }
.tagline {
	margin: 4px 0 14px; font-size: 32px; color: var(--bone);
	text-shadow: 0 0 18px rgba(82, 242, 220, .35), 0 3px 0 #000;
}
.hero-pitch { max-width: 520px; margin: 0 auto 24px; font-size: 19px; color: #e4ddef; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px 16px; justify-content: center; align-items: center; }
.hero-meta {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 22px 0 0;
	font-size: 15px; color: var(--muted); text-shadow: 0 2px 6px #000;
}
.hero-meta span:first-child { color: var(--gold); font-weight: 700; }
.hero-meta span + span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 18px; vertical-align: middle; background: var(--violet-3); transform: rotate(45deg); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 28px; height: 44px; margin-left: -14px; border: 2px solid rgba(234, 228, 210, .5); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--teal); border-radius: 2px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

@media (max-width: 900px) {
	.hero { align-items: end; }
	.layer img, .layer video { object-position: 22% 50%; }
	.hero-content { margin: 0 auto; padding-bottom: 80px; }
	.hero-shade {
		background:
			linear-gradient(180deg, rgba(11, 8, 20, .5) 0%, transparent 20%, rgba(11, 8, 20, .35) 45%, rgba(11, 8, 20, .88) 72%, var(--void) 100%);
	}
}
@media (max-width: 480px) {
	.tagline { font-size: 16px; }
	.hero-pitch { font-size: 17px; }
	.hero-ctas .btn { width: 100%; }
	.hero-meta span + span::before { display: none; }
	.hero-meta { flex-direction: column; gap: 2px; }
}
@media (max-height: 560px) and (orientation: landscape) {
	.hero-logo { width: min(340px, 60vw); }
	.hero-pitch { display: none; }
}

/* ------------------------------------------------------------ sections */
.section { position: relative; padding: clamp(72px, 8vw, 120px) 0; }
.eyebrow { margin: 0 0 14px; font-size: 16px; color: var(--teal); text-shadow: 0 0 12px rgba(82, 242, 220, .45); }
.h2 { margin: 0 0 20px; font-size: 48px; color: var(--bone); text-wrap: balance; text-shadow: 0 4px 0 rgba(0, 0, 0, .55); }
@media (max-width: 720px) { .h2 { font-size: 32px; } }
.section-intro, .lead { max-width: 720px; font-size: 20px; color: #ddd5ea; }
.section-intro { margin: 0 0 48px; }
.panel {
	position: relative;
	border: 20px solid transparent;
	border-image: url("../assets/ui/panel_small.png") 10 / 20px / 0 stretch;
	image-rendering: pixelated;
	background: linear-gradient(180deg, rgba(46, 35, 73, .82), rgba(25, 18, 44, .9)) padding-box;
	background-clip: padding-box;
}
.panel > * { image-rendering: auto; }
.frame {
	position: relative; margin: 0; padding: 6px;
	background: linear-gradient(135deg, #6b5a99, #2a2045 40%, #1b1430 60%, #52f2dc33);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
}

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ------------------------------------------------------------ the tide */
.tide { background: radial-gradient(80% 60% at 80% 10%, rgba(74, 58, 112, .35), transparent 70%), var(--void); }
.tide-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.tide-copy p { margin: 0 0 18px; }
.loop { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.loop li {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px;
	background: rgba(46, 35, 73, .45); border: 1px solid var(--line); border-left: 3px solid var(--teal);
	font-size: 17px;
}
.loop img { width: 32px; height: 32px; flex: none; }
.loop b { color: var(--bone); }
.tide-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #120d1f; }
.tide-video figcaption {
	position: absolute; left: 20px; bottom: 18px; font-size: 16px; color: var(--bone);
	text-shadow: 0 2px 0 #000, 0 0 12px rgba(0, 0, 0, .8);
}
@media (max-width: 860px) {
	.tide-grid { grid-template-columns: 1fr; }
	.loop { grid-template-columns: 1fr; }
}

.horde {
	position: relative; height: calc(80px * var(--px) / 2 + 60px); margin: 72px 0 40px; overflow: hidden;
	background:
		linear-gradient(180deg, transparent, rgba(46, 35, 73, .35) 60%, transparent),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 32px);
	-webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.horde::after { content: ""; position: absolute; left: 0; right: 0; bottom: 26px; height: 2px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.horde-track { position: absolute; inset: 0; }
.horde-track canvas { position: absolute; bottom: 20px; }

.stats {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
	background: var(--line); border: 1px solid var(--line);
}
.stats li { background: var(--violet-9); padding: 22px 8px; text-align: center; }
.stats b { display: block; font-size: 48px; color: var(--gold); text-shadow: 0 0 20px rgba(242, 197, 92, .35); }
.stats span { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats li:last-child { grid-column: span 4; } }
@media (max-width: 420px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats li:last-child { grid-column: span 2; } .stats b { font-size: 32px; } }

/* ------------------------------------------------------------ heroes */
.heroes { --hc: #a880ff; background: radial-gradient(70% 60% at 25% 45%, color-mix(in srgb, var(--hc) 16%, transparent), transparent 70%), linear-gradient(180deg, var(--void), var(--violet-9) 50%, var(--void)); transition: background .6s; }
.hs { display: grid; grid-template-columns: minmax(280px, 1fr) 1.15fr; grid-template-areas: "stage detail" "roster roster"; gap: clamp(20px, 4vw, 56px); align-items: center; }
.hs-stage { grid-area: stage; }
.hs-detail { grid-area: detail; }
.hs-roster { grid-area: roster; }
.hs-stage { display: grid; justify-items: center; gap: 22px; }
.hs-pedestal { position: relative; width: calc(68px * (var(--px) + 1)); height: calc(68px * (var(--px) + 1)); display: grid; place-items: center; }
.hs-sprite { position: relative; z-index: 1; width: calc(68px * (var(--px) + 1)); height: calc(68px * (var(--px) + 1)); }
.hs-circle {
	position: absolute; left: 50%; bottom: 6%; width: 110%; height: 34%; transform: translateX(-50%);
	border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--hc) 45%, transparent), transparent);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--hc) 55%, transparent), 0 0 40px color-mix(in srgb, var(--hc) 40%, transparent);
	animation: circle-pulse 3s ease-in-out infinite;
}
@keyframes circle-pulse { 50% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--hc) 80%, transparent), 0 0 70px color-mix(in srgb, var(--hc) 55%, transparent); } }
.hs-anims { display: flex; gap: 6px; padding: 4px; background: rgba(11, 8, 20, .6); border: 1px solid var(--line); }
.hs-anims button {
	padding: 8px 14px; min-height: 40px; background: none; border: 0; cursor: pointer; color: var(--muted);
	font-family: "SoulPixel", monospace; font-size: 16px; -webkit-font-smoothing: none;
}
.hs-anims button[aria-pressed="true"] { background: color-mix(in srgb, var(--hc) 25%, #1a1330); color: var(--bone); box-shadow: inset 0 -2px 0 var(--hc); }
.hs-detail { min-height: 460px; }
.hs-detail:focus-visible { outline-offset: 6px; }
.hs-epithet { margin: 0; color: var(--hc); font-style: italic; font-size: 18px; }
.hs-name { margin: 2px 0 10px; font-size: 48px; color: var(--bone); }
@media (max-width: 720px) { .hs-name { font-size: 32px; } }
.hs-desc { margin: 0 0 18px; }
.hs-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 0 0 18px; }
.hs-stats div { display: grid; grid-template-columns: 64px 1fr 44px; align-items: center; gap: 10px; }
.hs-stats dt { font-family: "SoulPixel", monospace; font-size: 16px; -webkit-font-smoothing: none; color: var(--muted); }
.hs-stats dd { margin: 0; font-size: 15px; color: var(--bone); text-align: right; }
.bar { height: 10px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.bar i { display: block; height: 100%; width: var(--v, 50%); background: linear-gradient(90deg, color-mix(in srgb, var(--hc) 60%, #000), var(--hc)); box-shadow: 0 0 10px color-mix(in srgb, var(--hc) 60%, transparent); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.hs-stats .hs-extra { display: block; grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
.hs-kit { display: grid; gap: 10px; }
.kit-row { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 8px 10px; background: rgba(11, 8, 20, .35); border: 1px solid var(--line); }
.kit-ico { width: 52px; height: 52px; display: grid; place-items: center; background: url("../assets/ui/slot_teal.png") center / 52px 52px no-repeat; image-rendering: pixelated; }
.kit-ico img { width: 32px; height: 32px; image-rendering: pixelated; }
.kit-row.alt .kit-ico { background-image: url("../assets/ui/slot_gold.png"); }
.kit-row small { display: block; font-family: "SoulPixel", monospace; font-size: 16px; -webkit-font-smoothing: none; color: var(--hc); line-height: 1.2; }
.kit-row b { color: var(--bone); }
.kit-row span { color: var(--text); font-size: 16px; }
.hs-talents { margin: 14px 0 0; color: var(--muted); font-size: 16px; }
.hs-talents b { color: var(--bone); }

.hs-roster { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 0; }
.hs-card {
	--cc: #a880ff;
	position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 6px 12px; cursor: pointer;
	background: linear-gradient(180deg, rgba(46, 35, 73, .55), rgba(11, 8, 20, .7));
	border: 2px solid rgba(155, 134, 214, .25); color: var(--text);
	transition: transform .2s, border-color .2s, box-shadow .2s;
}
.hs-card canvas { width: calc(68px * 2); height: calc(68px * 2); margin-top: -10px; }
.hs-card span { font-family: "SoulPixel", monospace; font-size: 16px; -webkit-font-smoothing: none; text-align: center; line-height: 1.1; }
.hs-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--cc) 60%, transparent); }
.hs-card[aria-selected="true"] { border-color: var(--cc); box-shadow: 0 0 0 1px var(--cc), 0 0 26px color-mix(in srgb, var(--cc) 45%, transparent), inset 0 0 30px color-mix(in srgb, var(--cc) 18%, transparent); color: var(--bone); }
.hs-card[aria-selected="true"]::before { content: ""; position: absolute; top: -9px; left: 50%; width: 12px; height: 12px; margin-left: -6px; background: var(--cc); transform: rotate(45deg); box-shadow: 0 0 12px var(--cc); }
@media (max-width: 960px) {
	.hs { grid-template-columns: 1fr; grid-template-areas: "stage" "roster" "detail"; gap: 20px; }
	.hs-roster { grid-template-columns: repeat(3, 1fr); }
	.hs-detail { min-height: 0; }
}
@media (max-width: 520px) {
	.hs-stats { grid-template-columns: 1fr; }
	.hs-roster { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.hs-card canvas { width: 68px; height: 68px; margin-top: 0; }
	.hs-card span { font-size: 16px; }
}

/* ------------------------------------------------------------ realms */
.realm-list { display: grid; gap: clamp(28px, 4vw, 48px); max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
.realm {
	--ac: #a880ff;
	position: relative; min-height: 520px; overflow: hidden; isolation: isolate;
	display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch;
	border: 1px solid color-mix(in srgb, var(--ac) 35%, transparent);
	box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
}
.realm-bg { position: absolute; inset: 0; z-index: -2; }
.realm-bg { overflow: hidden; }
.realm-bg picture, .realm-bg video {
	position: absolute; left: 0; top: 0; width: 100%; height: 115%; display: block;
	transform: translateY(var(--py, 0px)) scale(1.04); will-change: transform;
}
.realm-bg img, .realm-bg video { width: 100%; height: 115%; object-fit: cover; }
.realm-bg picture img { height: 100%; }
/* the Higgsfield loop fades in over its still once it has frames */
.realm-bg video, .wishlist-bg video { opacity: 0; transition: opacity 1s ease; }
.realm-bg video.on, .wishlist-bg video.on { opacity: 1; }
.realm::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(11, 8, 20, .94) 0%, rgba(11, 8, 20, .82) 38%, rgba(11, 8, 20, .25) 70%, rgba(11, 8, 20, .45) 100%),
		linear-gradient(0deg, rgba(11, 8, 20, .7), transparent 40%);
}
.realm:nth-child(even) { grid-template-columns: 1fr 1.05fr; }
.realm:nth-child(even) .realm-copy { order: 2; }
.realm:nth-child(even)::before { background: linear-gradient(270deg, rgba(11, 8, 20, .94) 0%, rgba(11, 8, 20, .82) 38%, rgba(11, 8, 20, .25) 70%, rgba(11, 8, 20, .45) 100%), linear-gradient(0deg, rgba(11, 8, 20, .7), transparent 40%); }
.realm-copy { padding: clamp(24px, 4vw, 56px); align-self: center; }
.realm-n { margin: 0; font-size: 16px; color: var(--ac); text-shadow: 0 0 12px color-mix(in srgb, var(--ac) 60%, transparent); }
.realm h3 { margin: 6px 0 4px; font-size: 48px; color: var(--bone); text-shadow: 0 4px 0 #000; }
.realm-sub { margin: 0 0 16px; font-style: italic; color: var(--ac); font-size: 19px; }
.realm-copy > p:not(.realm-n):not(.realm-sub) { margin: 0 0 22px; max-width: 520px; text-shadow: 0 2px 6px #000; }
.boss-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 520px; }
.boss-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: baseline; padding: 8px 12px; background: rgba(11, 8, 20, .55); border-left: 2px solid color-mix(in srgb, var(--ac) 50%, transparent); }
.boss-list li b { color: var(--bone); }
.boss-list li span { display: block; font-size: 16px; color: var(--muted); }
.boss-list li.final { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(242, 197, 92, .14), rgba(11, 8, 20, .55)); }
.boss-list li.final b { color: var(--gold); }
.boss-list li::before { content: ""; width: 10px; height: 10px; margin-top: 6px; background: var(--ac); transform: rotate(45deg); }
.boss-list li.final::before { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.realm-stage { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 0; padding: 24px 12px 30px; min-height: 360px; }
.realm-stage::before { content: ""; position: absolute; inset: 8% 0 0; z-index: -1; background: radial-gradient(60% 55% at 50% 70%, rgba(11, 8, 20, .7), transparent 75%); }
.realm-stage::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 24px; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); z-index: -1; }
.realm-stage figure { margin: 0; display: grid; justify-items: center; flex: none; }
.realm-stage figure.final-fig { z-index: 1; }
.realm-stage figcaption { font-family: "SoulPixel", monospace; font-size: 16px; -webkit-font-smoothing: none; color: var(--bone); text-shadow: 0 2px 0 #000; margin-top: -8px; text-align: center; max-width: 220px; }
.realm-stage .final-fig figcaption { color: var(--gold); }
@media (max-width: 960px) {
	.realm, .realm:nth-child(even) { grid-template-columns: 1fr; }
	.realm:nth-child(even) .realm-copy { order: 0; }
	.realm::before, .realm:nth-child(even)::before { background: linear-gradient(180deg, rgba(11, 8, 20, .9) 0%, rgba(11, 8, 20, .75) 55%, rgba(11, 8, 20, .35) 80%, rgba(11, 8, 20, .7) 100%); }
	.realm h3 { font-size: 32px; }
	.realm-stage { min-height: 280px; }
}

/* ------------------------------------------------------------ build your storm */
.storm { background: radial-gradient(60% 50% at 50% 25%, rgba(242, 197, 92, .08), transparent 70%), var(--void); }
.levelup { position: relative; margin: 0 auto 72px; text-align: center; }
.levelup-title {
	display: inline-block; margin: 0 0 18px; padding: 18px 64px; font-size: 32px; color: var(--gold);
	border: solid transparent; border-width: 23px 64px;
	border-image: url("../assets/ui/banner_plaque.png") 46 128 fill / 23px 64px stretch;
	image-rendering: pixelated; padding: 0 8px; line-height: 1.2; text-shadow: 0 3px 0 #000;
}
.levelup-cards { display: flex; justify-content: center; gap: clamp(10px, 3vw, 30px); perspective: 1200px; }
.ucard {
	position: relative; width: 226px; height: 362px; padding: 80px 18px 22px; text-align: center;
	transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2, .7, .2, 1), filter .35s;
}
.ucard-frame { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; z-index: -1; }
.ucard-icon { width: 64px; height: 64px; margin: 0 auto 10px; filter: drop-shadow(0 0 10px rgba(255, 255, 255, .25)); }
.ucard h3 { margin: 0; font-size: 16px; color: var(--bone); }
.ucard-r { margin: 2px 0 8px; font-family: "SoulPixel", monospace; font-size: 16px; -webkit-font-smoothing: none; }
.ucard p:last-child { margin: 0; font-size: 15px; line-height: 1.35; }
.ucard[data-rarity="rare"] .ucard-r { color: #5fb4ff; }
.ucard[data-rarity="epic"] .ucard-r { color: #c07dff; }
.ucard[data-rarity="legendary"] .ucard-r { color: var(--gold); }
.ucard[data-rarity="legendary"] { transform: translateY(-14px); filter: drop-shadow(0 0 24px rgba(242, 197, 92, .45)); }
.ucard:hover { transform: translateY(-18px) rotateX(6deg); }
.levelup.in .ucard { animation: card-pop .6s cubic-bezier(.2, .9, .3, 1.3) both; }
.levelup.in .ucard:nth-child(2) { animation-delay: .12s; }
.levelup.in .ucard:nth-child(3) { animation-delay: .24s; }
@keyframes card-pop { from { opacity: 0; transform: translateY(40px) scale(.85); } }
@media (max-width: 760px) {
	.levelup-cards { gap: 8px; }
	.ucard { width: 113px; height: 181px; padding: 34px 11px 8px; }
	.ucard-icon { width: 32px; height: 32px; margin-bottom: 4px; }
	.ucard h3 { font-size: 16px; line-height: 1; }
	.ucard p:last-child { display: none; }
	.ucard-r { margin: 4px 0 0; }
	.ucard[data-rarity="legendary"] { transform: translateY(-8px); }
	.levelup-title { font-size: 16px; }
}

.tabs { margin-top: 8px; }
.tab-list { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tab-list [role="tab"] {
	padding: 12px 18px; min-height: 48px; cursor: pointer; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
	font-family: "SoulPixel", monospace; font-size: 16px; -webkit-font-smoothing: none; color: var(--muted);
}
.tab-list [role="tab"] small { font-size: 16px; color: var(--violet-3); margin-left: 4px; }
.tab-list [role="tab"][aria-selected="true"] { color: var(--bone); border-bottom-color: var(--gold); }
.tab-list [role="tab"]:hover { color: var(--bone); }
.panel-note { margin: 0 0 22px; color: var(--muted); max-width: 760px; }
.evo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.evo {
	display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px;
	background: linear-gradient(180deg, rgba(46, 35, 73, .5), rgba(25, 18, 44, .7)); border: 1px solid var(--line);
	transition: border-color .2s, transform .2s;
}
.evo:hover { border-color: rgba(242, 197, 92, .5); transform: translateY(-2px); }
.recipe { display: flex; align-items: center; gap: 4px; }
.recipe img { width: 32px; height: 32px; image-rendering: pixelated; }
/* the 32px evolution icon at 2x (integer) inside the 65px gold slot drawn at 80px */
.recipe .evo-ico { flex: none; width: 80px; height: 80px; padding: 8px; background: url("../assets/ui/slot_gold.png") center / 80px 80px no-repeat; image-rendering: pixelated; }
.recipe .evo-ico img { width: 64px; height: 64px; }
.recipe i { font-style: normal; font-family: "SoulPixel", monospace; color: var(--muted); font-size: 16px; -webkit-font-smoothing: none; }
.evo h4 { margin: 0; font-family: "SoulPixel", monospace; font-weight: 400; font-size: 16px; -webkit-font-smoothing: none; color: var(--gold); }
.evo .from { margin: 0; font-size: 14px; color: var(--muted); }
.evo .what { margin: 2px 0 0; font-size: 16px; line-height: 1.4; }
@media (max-width: 520px) { .tab-list [role="tab"] { padding: 12px 10px; } }
@media (max-width: 400px) { .evo-grid { grid-template-columns: 1fr; } .evo { grid-template-columns: 1fr; } }

.relic-groups { display: grid; gap: 26px; }
.relic-groups h4 { margin: 0 0 12px; font-family: "SoulPixel", monospace; font-weight: 400; font-size: 16px; -webkit-font-smoothing: none; }
.relic-groups h4[data-tier="common"] { color: var(--bone); }
.relic-groups h4[data-tier="rare"] { color: #5fb4ff; }
.relic-groups h4[data-tier="cursed"] { color: var(--blood); }
.relic-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.relic { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 8px 10px; background: rgba(25, 18, 44, .7); border: 1px solid var(--line); }
.relic .kit-ico { background-image: url("../assets/ui/slot_teal.png"); }
.relic[data-tier="rare"] { border-color: rgba(95, 180, 255, .3); }
.relic[data-tier="cursed"] { border-color: rgba(255, 77, 94, .35); background: linear-gradient(90deg, rgba(255, 77, 94, .1), rgba(25, 18, 44, .7)); }
.relic b { display: block; color: var(--bone); font-size: 17px; line-height: 1.2; }
.relic span { font-size: 15px; color: var(--muted); line-height: 1.3; display: block; }

.res-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.res { --rc: #b88cff; padding: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--rc) 16%, transparent), rgba(25, 18, 44, .8) 60%); border: 1px solid color-mix(in srgb, var(--rc) 40%, transparent); }
.res header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.res header img { width: 32px; height: 32px; image-rendering: pixelated; }
.res h4 { margin: 0; font-family: "SoulPixel", monospace; font-weight: 400; font-size: 32px; -webkit-font-smoothing: none; color: var(--rc); }
.res p { margin: 4px 0 0; font-size: 16px; }
.res p b { font-family: "SoulPixel", monospace; font-weight: 400; color: var(--rc); margin-right: 6px; -webkit-font-smoothing: none; }

/* ------------------------------------------------------------ events */
.events { background: radial-gradient(70% 50% at 20% 30%, rgba(82, 242, 220, .07), transparent 70%), radial-gradient(60% 50% at 85% 75%, rgba(255, 77, 94, .07), transparent 70%), linear-gradient(180deg, var(--void), var(--violet-9) 50%, var(--void)); }
.reels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 26px; }
.reel video { display: block; width: 100%; height: auto; aspect-ratio: 32 / 13.5; object-fit: cover; background: #120d1f; }
.reel figcaption { position: absolute; left: 18px; bottom: 14px; font-size: 16px; color: var(--bone); text-shadow: 0 2px 0 #000, 0 0 10px #000; }
@media (max-width: 760px) { .reels { grid-template-columns: 1fr; } }
.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.event {
	--ec: #4ff0d8;
	position: relative; display: grid; grid-template-columns: 136px 1fr; gap: 22px; align-items: start; padding: 26px;
	background: linear-gradient(160deg, color-mix(in srgb, var(--ec) 12%, transparent), rgba(25, 18, 44, .85) 55%);
	border: 1px solid color-mix(in srgb, var(--ec) 35%, transparent); overflow: hidden;
}
.event::after { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: var(--ec); box-shadow: 0 0 18px var(--ec); }
.event-art { width: 136px; height: 136px; display: grid; place-items: center; position: relative; }
.event-art::before { content: ""; position: absolute; inset: 18% 4% 4%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ec) 45%, transparent), transparent); animation: circle-pulse 3.4s ease-in-out infinite; }
.event-art img { position: relative; width: 128px; height: 128px; image-rendering: pixelated; }
.event-art.icons { grid-template-columns: repeat(3, 40px); gap: 6px; align-content: center; }
.event-art.icons img { width: 32px; height: 32px; margin: 4px; }
.event h3 { margin: 0 0 8px; font-size: 32px; color: var(--ec); }
.event p { margin: 0 0 14px; font-size: 17px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li { padding: 3px 10px; font-size: 14px; color: var(--bone); background: rgba(11, 8, 20, .6); border: 1px solid color-mix(in srgb, var(--ec) 35%, transparent); }
@media (max-width: 960px) { .event-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .event { grid-template-columns: 1fr; padding: 20px; } .event-art { margin: 0 auto; } .event h3 { font-size: 32px; } }

/* ------------------------------------------------------------ progression */
.progression { background: radial-gradient(60% 50% at 70% 30%, rgba(155, 134, 214, .12), transparent 70%), var(--void); }
.prog-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.prog-card { grid-column: span 2; }
.prog-torment, .prog-const { grid-column: span 3; }
.prog-ach { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: center; }
.prog-ach .ach-count { grid-row: 1 / span 2; grid-column: 1; }
.prog-ach h3, .prog-ach p { grid-column: 2; }
.prog-ach p { margin: 0; }
.prog-card h3 { margin: 0 0 10px; font-size: 32px; color: var(--bone); }
.prog-card p { margin: 0 0 16px; font-size: 17px; }
.torment-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.torment-ladder li { display: grid; grid-template-columns: 1fr 70px 70px; gap: 8px; align-items: center; padding: 6px 10px; background: rgba(11, 8, 20, .45); position: relative; overflow: hidden; }
.torment-ladder li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, rgba(255, 77, 94, .32), rgba(255, 138, 61, .12)); z-index: 0; }
.torment-ladder li > * { position: relative; }
.torment-ladder li.head { background: none; color: var(--muted); font-size: 14px; }
.torment-ladder li.head::before { display: none; }
.torment-ladder b { font-family: "SoulPixel", monospace; font-weight: 400; font-size: 16px; -webkit-font-smoothing: none; color: var(--bone); }
.torment-ladder span { text-align: right; font-size: 15px; }
.icon-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.icon-row li { position: relative; width: 44px; height: 44px; display: grid; place-items: center; background: rgba(11, 8, 20, .5); border: 1px solid var(--line); }
.icon-row li img { width: 32px; height: 32px; image-rendering: pixelated; }
.icon-row li:hover, .icon-row li:focus-visible { border-color: var(--gold); }
.icon-row li[data-tip]:hover::after, .icon-row li[data-tip]:focus-visible::after {
	content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 3;
	white-space: nowrap; padding: 4px 8px; font-size: 14px; color: var(--bone); background: #0b0814; border: 1px solid var(--line);
}
.heat { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.heat span, .heat b { font-size: 16px; color: var(--ember); }
.heat-bar { flex: 1; height: 12px; background: rgba(0, 0, 0, .5); box-shadow: inset 0 0 0 1px rgba(255, 138, 61, .3); overflow: hidden; }
.heat-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffd166, var(--ember), var(--blood)); box-shadow: 0 0 16px var(--ember); transition: width 2.4s cubic-bezier(.3, .6, .2, 1); }
.prog-pacts.in .heat-bar i { width: 100%; }
.constellation { width: min(320px, 100%); height: auto; aspect-ratio: 1; margin: 0 auto 14px; }
.ach-count { display: flex; align-items: center; gap: 14px; }
.ach-count img { width: 64px; height: 64px; }
.ach-count b { font-size: 64px; color: var(--gold); text-shadow: 0 0 24px rgba(242, 197, 92, .4); }
@media (max-width: 960px) {
	.prog-grid { grid-template-columns: 1fr 1fr; }
	.prog-card, .prog-torment, .prog-const { grid-column: span 1; }
	.prog-torment, .prog-const, .prog-ach { grid-column: span 2; }
}
@media (max-width: 640px) {
	.prog-grid { grid-template-columns: 1fr; }
	.prog-card, .prog-torment, .prog-const, .prog-ach { grid-column: auto; }
	.prog-ach { grid-template-columns: 1fr; }
	.prog-ach .ach-count, .prog-ach h3, .prog-ach p { grid-column: 1; grid-row: auto; }
}

/* ------------------------------------------------------------ media */
.media { background: linear-gradient(180deg, var(--void), var(--violet-9) 60%, var(--void)); }
.trailer-card { display: block; width: 100%; padding: 6px; border: 0; cursor: pointer; margin-bottom: 24px; }
.trailer-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: filter .3s, transform .6s; }
.trailer-card:hover img { filter: brightness(1.1); }
.trailer-play {
	position: absolute; inset: 6px; display: grid; place-content: center; justify-items: center; gap: 12px;
	background: radial-gradient(closest-side, rgba(11, 8, 20, .55), transparent); color: var(--bone);
}
.trailer-play .play-ico { width: 96px; height: 96px; border-width: 3px; }
.trailer-play .play-ico::after { left: 36px; top: 26px; border-width: 20px 0 20px 32px; }
.trailer-play .px { font-size: 32px; text-shadow: 0 3px 0 #000; }
.trailer-play small { color: var(--muted); font-size: 16px; }
.trailer-card:hover .play-ico { transform: scale(1.06); box-shadow: 0 0 50px rgba(82, 242, 220, .8), inset 0 0 20px rgba(82, 242, 220, .5); }
@media (max-width: 560px) { .trailer-play .play-ico { width: 64px; height: 64px; } .trailer-play .play-ico::after { left: 23px; top: 17px; border-width: 13px 0 13px 21px; } .trailer-play .px { font-size: 16px; } }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 10px; }
.gallery li:nth-child(1), .gallery li:nth-child(7) { grid-column: span 2; grid-row: span 2; }
.gallery li:nth-child(7) { grid-column: 2 / span 2; }
.gallery button { display: block; width: 100%; height: 100%; padding: 0; border: 1px solid var(--line); background: var(--violet-9); cursor: zoom-in; overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease, filter .3s; filter: saturate(.92) brightness(.92); }
.gallery button:hover img, .gallery button:focus-visible img { transform: scale(1.04); filter: none; }
.gallery button::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s; }
.gallery button:hover::after { box-shadow: inset 0 0 0 2px var(--teal); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery li:nth-child(7) { grid-column: span 2; } }

/* ------------------------------------------------------------ wishlist */
.wishlist { overflow: hidden; isolation: isolate; }
.wishlist-bg { position: absolute; inset: 0; z-index: -1; background: url("../assets/video/hero-loop-poster.webp") 70% 35% / cover no-repeat; }
.wishlist-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 35%; }
.wishlist-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 8, 20, .95) 0%, rgba(11, 8, 20, .82) 50%, rgba(11, 8, 20, .6) 100%), linear-gradient(180deg, var(--void), transparent 25%, transparent 75%, var(--void)); }
.wishlist-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.demo-list { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 8px; }
.demo-list li { padding-left: 26px; position: relative; }
.demo-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; background: var(--teal); transform: rotate(45deg); box-shadow: 0 0 8px var(--teal); }
.wish-copy .hero-ctas { justify-content: flex-start; }
.capsule { position: relative; display: block; max-width: 646px; aspect-ratio: 16 / 8; overflow: hidden; margin-bottom: 14px; border: 1px solid rgba(82, 242, 220, .35); box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 40px rgba(82, 242, 220, .12); text-decoration: none; }
.capsule-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; transition: transform 1.2s ease; }
.capsule:hover .capsule-art { transform: scale(1.04); }
.capsule::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 30%, rgba(11, 8, 20, .55)), linear-gradient(0deg, rgba(11, 8, 20, .85), transparent 45%); }
.capsule-logo { position: absolute; z-index: 1; right: 4%; top: 6%; width: 52%; height: auto; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .7)); }
.capsule-bar { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.capsule-bar .px { font-size: 16px; color: var(--gold); text-shadow: 0 2px 0 #000; }
.widget-box { width: 100%; max-width: 646px; min-height: 0; background: rgba(11, 8, 20, .5); }
.widget-box:empty { display: none; }
.widget-box iframe { display: block; width: 100%; height: 190px; border: 0; color-scheme: normal; }
.widget-note { font-size: 15px; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 960px) { .wishlist-inner { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ press */
.press-grid { display: grid; grid-template-columns: minmax(280px, .9fr) 1.2fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-family: "SoulPixel", monospace; font-size: 16px; -webkit-font-smoothing: none; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; color: var(--bone); }
.press-copy h3 { margin: 0 0 12px; font-size: 32px; color: var(--bone); }
.press-copy h3:not(:first-child) { margin-top: 30px; }
.downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.downloads li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.downloads .btn { min-width: 168px; }
.downloads span { flex: 1 1 220px; color: var(--muted); font-size: 16px; }
.contact { margin-top: 24px; }
.placeholder { color: var(--gold); border-bottom: 1px dashed var(--gold); }
.ai-note { font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .press-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ footer */
.footer { padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #08060f; }
.footer-inner { display: grid; justify-items: center; gap: 18px; text-align: center; }
.footer-logo { width: 220px; height: auto; opacity: .9; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.footer nav a { color: var(--text); text-decoration: none; font-family: "SoulPixel", monospace; font-size: 16px; -webkit-font-smoothing: none; padding: 6px 2px; }
.footer nav a:hover { color: var(--teal); }
.fine { margin: 0; font-size: 14px; color: var(--muted); max-width: 640px; }

/* ------------------------------------------------------------ dialogs */
.modal { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: var(--text); }
.modal::backdrop { background: rgba(6, 4, 12, .88); backdrop-filter: blur(6px); }
.modal[open] { display: grid; place-items: center; animation: modal-in .25s ease; }
@keyframes modal-in { from { opacity: 0; } }
.modal-box { position: relative; width: min(1280px, 94vw); }
.modal-trailer .modal-box { width: min(1280px, 94vw, calc((100vh - 110px) * 16 / 9)); }
.modal-trailer video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 0 0 2px var(--violet-5), 0 0 60px rgba(82, 242, 220, .2); }
.modal-close {
	position: absolute; top: -52px; right: 0; width: 44px; height: 44px; font-size: 30px; line-height: 1;
	background: rgba(11, 8, 20, .8); border: 1px solid var(--line); color: var(--bone); cursor: pointer;
}
.modal-close:hover { color: var(--teal); border-color: var(--teal); }
.modal-lightbox figure { margin: 0; }
.modal-lightbox img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; image-rendering: auto; }
.modal-lightbox figcaption { margin-top: 10px; text-align: center; color: var(--muted); }
.lb-nav {
	position: absolute; top: calc(50% - 30px); width: 48px; height: 60px; font-size: 44px; line-height: 1; cursor: pointer;
	background: rgba(11, 8, 20, .75); border: 1px solid var(--line); color: var(--bone); z-index: 2;
}
.lb-nav:hover { color: var(--teal); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

/* 4K: double everything so the pixel font and sprites stay on whole-pixel scales */
@media (min-width: 2800px) {
	body { zoom: 2; }
	/* zoom scales viewport units too: halve them so the hero and the dialogs still fit one screen */
	.hero { min-height: 50vh; min-height: 50svh; }
	.modal-trailer .modal-box { width: min(1280px, 47vw, calc((50vh - 55px) * 16 / 9)); }
	.modal-box { width: min(1280px, 47vw); }
	.modal-lightbox img { max-height: 41vh; }
}

/* ------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
	.reveal { opacity: 1; transform: none; }
	.layer { transform: none !important; }
	.sky-loop, .souls { display: none; }
}

/* evolution list toggle: phones only */
.more-btn { display: none; }
@media (max-width: 700px) {
	.more-btn { display: flex; margin: 16px auto 0; }
	.collapsible:not(.expanded) > li:nth-child(n+5) { display: none; }
}
