/* Paralumen Games site styles. Visual language follows the 2026 studio redesign
   (Roboto, cyan accent, rounded dark cards). */

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("/assets/fonts/roboto-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("/assets/fonts/roboto-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
	color-scheme: dark;

	--bg: #07090c;
	--text: #e8eef2;
	--text-soft: #c5d1d7;
	--muted: #8e9aa0;
	--nav-text: #d9e7ec;
	--cyan: #21c7d9;
	--cyan-soft: #8fe8ff;
	--kicker: #ffb84d;
	--hover: #ffd166;
	--line: rgb(143 232 255 / 0.16);
	--line-strong: rgb(143 232 255 / 0.32);
	--card: linear-gradient(135deg, rgb(17 24 32 / 0.9) 0%, rgb(8 10 12 / 0.78) 100%);
	--radius: 8px;

	--page-max: 1220px;
	--page-gutter: clamp(1rem, 5vw, 4.5rem);
	/* Horizontal padding that lines full-width bars up with the .page content edge. */
	--page-inset: max(var(--page-gutter), calc((100% - var(--page-max)) / 2 + var(--page-gutter)));
}

/* Base */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 1rem/1.6 "Roboto", Arial, Helvetica, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
video,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

h1,
h2,
h3,
p {
	margin: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

:focus-visible {
	outline: 2px solid var(--cyan-soft);
	outline-offset: 3px;
}

.icon-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.icon {
	flex: none;
	width: 1.15rem;
	height: 1.15rem;
	object-fit: contain;
}

.page {
	width: 100%;
	max-width: var(--page-max);
	margin-inline: auto;
	padding-inline: var(--page-gutter);
}

.skip-link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 0.6rem 0.9rem;
	border-radius: var(--radius);
	background: var(--cyan);
	color: #041013;
	font-weight: 900;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 68px;
	padding: 0.7rem var(--page-inset);
	background: rgb(8 10 12 / 0.7);
	border-bottom: 1px solid rgb(143 232 255 / 0.12);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.brand-mark {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-width: max-content;
	font-size: 1.08rem;
	font-weight: 800;
}

.brand-logo {
	width: auto;
	height: 40px;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.icon-link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}

.site-nav a,
.footer-links a,
.link-row.compact :is(a, button) {
	border-radius: var(--radius);
	color: var(--nav-text);
	font-weight: 700;
	line-height: 1.2;
	padding: 0.72rem 0.9rem;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.footer-links a:hover,
.link-row.compact :is(a, button):hover {
	background: rgb(143 232 255 / 0.1);
	color: #fff;
}

/* Buttons */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	min-height: 50px;
	padding: 0.82rem 1.15rem;
	border: 0;
	border-radius: var(--radius);
	font: inherit;
	font-weight: 900;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button .icon {
	width: 1.35rem;
	height: 1.35rem;
}

.button:hover {
	transform: translateY(-1px);
}

.button-primary {
	background: var(--cyan);
	box-shadow: 0 12px 32px rgb(33 199 217 / 0.22);
	color: #041013;
}

.button-primary:hover {
	background: var(--hover);
	box-shadow: 0 14px 36px rgb(255 209 102 / 0.2);
	color: #140d04;
}

.button-secondary {
	background: rgb(255 255 255 / 0.085);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
	color: #fff;
}

.button-secondary:hover {
	background: rgb(255 255 255 / 0.16);
	box-shadow: inset 0 0 0 1px var(--line-strong);
}

.button-small {
	min-height: 2.6rem;
	padding: 0.55rem 0.95rem;
	font-size: 0.95rem;
}

.button-small .icon {
	width: 1.15rem;
	height: 1.15rem;
}

/* Shared text */

.kicker {
	margin-bottom: 0.55rem;
	color: var(--kicker);
	font-size: 0.8rem;
	font-weight: 900;
	text-transform: uppercase;
}

.section {
	padding-block: clamp(3rem, 5.2vw, 4.35rem);
}

.section-title {
	color: #fff;
	font-size: clamp(2.1rem, 3.8vw, 3.2rem);
	font-weight: 900;
	line-height: 1;
	text-shadow: 0 2px 0 rgb(33 199 217 / 0.16), 0 14px 34px rgb(0 0 0 / 0.32);
}

/* Cyan rule under section titles. */
.section-title::after {
	content: "";
	display: block;
	width: 100%;
	height: 2px;
	margin-top: 0.85rem;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--cyan) 0%, rgb(143 232 255 / 0.68) 22%, rgb(143 232 255 / 0.3) 62%, rgb(143 232 255 / 0) 100%);
	box-shadow: 0 0 14px rgb(33 199 217 / 0.24);
}

.link-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.link-row.compact {
	gap: 0.35rem;
}

.link-row.compact :is(a, button) {
	min-height: 2.35rem;
	padding: 0.5rem 0.65rem;
	background: rgb(255 255 255 / 0.035);
	color: var(--cyan-soft);
	font-size: 0.92rem;
}

.link-group {
	display: grid;
	justify-items: start;
	gap: 0.45rem;
}

.link-group-title {
	color: #fff;
	font-size: 0.78rem;
	font-weight: 900;
	line-height: 1.2;
	text-transform: uppercase;
}

/* Hero: the key art keeps its wide format, the logo sits on top, the copy follows below. */

.hero-art {
	position: relative;
	height: clamp(300px, 38vw, 560px);
	overflow: hidden;
	background-color: #0b0f14;
	background-position: center;
	background-size: cover;
}

.hero-art-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-art::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 34% 46% at 50% 50%, rgb(7 9 12 / 0.5) 0%, rgb(7 9 12 / 0) 100%),
		linear-gradient(180deg, rgb(7 9 12 / 0) 55%, var(--bg) 100%);
}

.hero-title {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: grid;
	place-items: center;
}

.hero-logo {
	width: clamp(200px, 27vw, 400px);
	filter: drop-shadow(0 18px 36px rgb(0 0 0 / 0.7));
}

.hero-copy {
	display: grid;
	justify-items: center;
	max-width: calc(52rem + var(--page-gutter) * 2);
	padding-block: 0.5rem clamp(3rem, 5.2vw, 4.35rem);
	text-align: center;
}

.hero-copy .kicker {
	margin-bottom: 0.8rem;
}

.hero-lead {
	color: #e4eef2;
	font-size: 1.1rem;
	line-height: 1.6;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.6rem;
}

.hero-community {
	margin-top: 1.4rem;
}

.hero-community .link-group {
	justify-items: center;
}

.hero[data-game="hikikomori-life"] .hero-logo {
	width: clamp(260px, 38vw, 560px);
}

.details-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 1.2rem;
	color: var(--cyan-soft);
	font-size: 0.95rem;
	font-weight: 900;
	transition: color 0.2s ease, transform 0.2s ease;
}

.details-link::after {
	content: "\2192";
}

a.details-link:hover,
.related:hover .details-link {
	color: var(--hover);
	transform: translateX(2px);
}

/* Game cards */

.games-list {
	display: grid;
	gap: 1.15rem;
	margin: 2.2rem 0 0;
	padding: 0;
	list-style: none;
}

.game-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(300px, 44%) minmax(0, 1fr);
	overflow: hidden;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 18px 52px rgb(0 0 0 / 0.2);
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.game-card:hover {
	border-color: var(--line-strong);
	transform: translateY(-2px);
}

.game-card-media {
	padding: 0.75rem;
	background:
		linear-gradient(180deg, rgb(143 232 255 / 0.06) 0%, rgb(143 232 255 / 0) 54%),
		rgb(5 8 11 / 0.28);
}

/* 16:9 media frame; the blurred inline preview fills it until the lazy image arrives. */
.media-frame-box {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 6px;
	background-color: #171d23;
	background-position: center;
	background-size: cover;
	box-shadow: 0 16px 36px rgb(0 0 0 / 0.28);
}

.media-frame-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.game-card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	padding: clamp(1.5rem, 2.6vw, 2rem);
}

.game-card-title {
	color: #fff;
	font-size: 1.42rem;
	font-weight: 900;
	line-height: 1.2;
}

/* Stretches the title link over the whole card; store links sit above it. */
.game-card-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.game-card-text {
	max-width: 560px;
	margin-top: 0.85rem;
	color: var(--text-soft);
	line-height: 1.65;
}

.game-card-body > .link-row,
.game-card-body > .link-group {
	position: relative;
	z-index: 2;
	margin-top: 1.2rem;
}

.game-card-more {
	display: inline-flex;
	gap: 0.4rem;
	margin-top: auto;
	padding-top: 1.4rem;
	color: var(--cyan-soft);
	font-size: 0.9rem;
	font-weight: 900;
	transition: color 0.2s ease, transform 0.2s ease;
}

.game-card-more::after {
	content: "\2192";
}

.game-card:hover .game-card-more {
	color: var(--hover);
	transform: translateX(2px);
}

/* Game page */

/* Compact hero of earlier games: cover on the left, copy on the right. */
.game-intro {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3rem);
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.game-intro-media {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 24px 60px rgb(0 0 0 / 0.35);
}

.game-intro-copy {
	display: grid;
	justify-items: start;
	gap: 1.1rem;
}

.game-intro-copy .kicker {
	margin-bottom: -0.5rem;
}

.game-intro-title {
	color: #fff;
	font-size: clamp(2.2rem, 4.4vw, 3.4rem);
	font-weight: 900;
	line-height: 1.05;
}

.game-intro-lead {
	color: #e4eef2;
	font-size: 1.1rem;
	line-height: 1.6;
}

.details-about {
	margin-top: 2.2rem;
}

.about-text {
	display: grid;
	align-content: start;
	gap: 1rem;
}

.about-text p {
	color: var(--text-soft);
	font-size: 1.05rem;
	line-height: 1.75;
}

.back-link {
	margin-top: 2rem;
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0 2rem;
}

.page-links .details-link {
	margin-top: 2rem;
}

.studio-copy .studio-press {
	justify-self: start;
	margin-top: 0;
}

.footer-note a {
	color: var(--cyan-soft);
	transition: color 0.2s ease;
}

.footer-note a:hover {
	color: var(--hover);
}

.back-link::after {
	content: none;
}

.back-link::before {
	content: "\2190";
}

a.back-link:hover {
	transform: translateX(-2px);
}

.section-flush,
.section-flush-top {
	padding-top: 0;
}

.story {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.25rem);
	margin-top: 2.2rem;
}

.story-item {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3rem);
}

/* Media alternates sides from row to row. */
.story-item:nth-child(even) .story-media {
	order: 2;
}

.story-media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background-color: #171d23;
	background-position: center;
	background-size: cover;
	box-shadow: 0 18px 52px rgb(0 0 0 / 0.28);
}

.story-media video,
.story-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.story-copy {
	display: grid;
	gap: 0.85rem;
}

.story-title {
	color: #fff;
	font-size: clamp(1.35rem, 2vw, 1.7rem);
	font-weight: 900;
	line-height: 1.2;
}

.story-copy p {
	color: var(--text-soft);
	font-size: 1.05rem;
	line-height: 1.7;
}

.details {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 1.15rem;
}

.panel {
	padding: clamp(1.5rem, 2.6vw, 2rem);
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 18px 52px rgb(0 0 0 / 0.2);
}

.panel-title {
	margin-bottom: 1.1rem;
	color: #fff;
	font-size: 1.42rem;
	font-weight: 900;
	line-height: 1.2;
}

.feature-list {
	display: grid;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--text-soft);
	line-height: 1.55;
}

.feature-list li {
	position: relative;
	padding-left: 1.6rem;
}

.feature-list li::before {
	content: "";
	position: absolute;
	top: 0.55em;
	left: 0.2rem;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 2px;
	background: var(--cyan);
	box-shadow: 0 0 10px rgb(33 199 217 / 0.5);
}

.facts {
	display: grid;
	gap: 0.8rem;
	margin: 0;
}

.facts div {
	display: grid;
	gap: 0.15rem;
	padding-bottom: 0.8rem;
	border-bottom: 1px solid rgb(143 232 255 / 0.1);
}

.facts div:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.facts dt {
	color: var(--kicker);
	font-size: 0.78rem;
	font-weight: 900;
	text-transform: uppercase;
}

.facts dd {
	margin: 0;
	color: #fff;
	font-weight: 700;
}

.trailer-tile {
	position: relative;
	display: block;
	width: 100%;
	margin-top: 2.2rem;
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	background: none;
	font: inherit;
	cursor: pointer;
}

.trailer-tile .media-frame-box {
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.trailer-tile img {
	transition: transform 0.4s ease;
}

.trailer-tile:hover img {
	transform: scale(1.02);
}

.trailer-tile-play {
	position: absolute;
	bottom: clamp(0.75rem, 2vw, 1.5rem);
	left: clamp(0.75rem, 2vw, 1.5rem);
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	min-height: 56px;
	padding: 0.9rem 1.4rem;
	border-radius: var(--radius);
	background: var(--cyan);
	box-shadow: 0 12px 32px rgb(33 199 217 / 0.3);
	color: #041013;
	font-weight: 900;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.trailer-tile:hover .trailer-tile-play {
	background: var(--hover);
	color: #140d04;
}

.trailer-tile-play .icon {
	width: 1.35rem;
	height: 1.35rem;
}

.shots {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.75rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.section-title + .shots {
	margin-top: 2.2rem;
}

.shot {
	display: block;
	border-radius: 6px;
}

.shot .media-frame-box {
	border: 1px solid rgb(143 232 255 / 0.14);
	box-shadow: none;
	opacity: 0.85;
	transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.shot:hover .media-frame-box {
	border-color: rgb(143 232 255 / 0.6);
	opacity: 1;
	transform: translateY(-2px);
}

.cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background:
		radial-gradient(120% 140% at 0% 0%, rgb(33 199 217 / 0.14), transparent 55%),
		var(--card);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
}

.cta-copy {
	display: grid;
	gap: 0.4rem;
}

.cta-title {
	color: #fff;
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	font-weight: 900;
	line-height: 1.15;
}

.cta-copy p {
	color: var(--text-soft);
}

.related {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	align-items: center;
	gap: 1.25rem;
	margin-top: 1.15rem;
	padding: 0.75rem;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color 0.2s ease;
}

.related:hover {
	border-color: var(--line-strong);
}

.related-frame {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 6px;
	background-color: #171d23;
	background-position: center;
	background-size: cover;
}

.related-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.related-copy {
	display: grid;
	justify-items: start;
	gap: 0.35rem;
	padding-right: 1rem;
}

.related-text {
	color: var(--text-soft);
	font-size: 1.05rem;
	line-height: 1.55;
}

.related .details-link {
	margin-top: 0;
}

/* Press kit */

.press-studio {
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.press-usage {
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.6;
}

.press-text {
	display: grid;
	align-content: start;
	gap: 1rem;
}

.press-text p {
	color: var(--text-soft);
	line-height: 1.7;
}

.press-text .panel-title {
	margin-bottom: 0.1rem;
}

.press-subtitle {
	margin-top: 0.6rem;
	color: #fff;
	font-size: 1.1rem;
	font-weight: 900;
}

.facts a {
	color: var(--cyan-soft);
	transition: color 0.2s ease;
}

.facts a:hover {
	color: var(--hover);
}

.press-games {
	display: grid;
	gap: 0.8rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.press-games li {
	display: grid;
	gap: 0.1rem;
	padding-bottom: 0.8rem;
	border-bottom: 1px solid rgb(143 232 255 / 0.1);
}

.press-games li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.press-game-title {
	color: var(--cyan-soft);
	font-weight: 900;
	transition: color 0.2s ease;
}

.press-game-title:hover {
	color: var(--hover);
}

.assets {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.15rem;
	margin: 2.2rem 0 0;
	padding: 0;
	list-style: none;
}

.assets-logos {
	grid-template-columns: repeat(auto-fill, minmax(280px, 360px));
}

/* Name, size and the download link line up across cards of different preview content. */
.asset {
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: 0.75rem;
	padding: 0.75rem;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.asset-preview {
	aspect-ratio: 16 / 10;
	padding: 0.75rem;
	overflow: hidden;
	border-radius: 6px;
	background: #0b0f14;
}

.asset-preview img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Checkerboard behind logos with transparency. */
.asset-preview-transparent {
	background-color: #151c24;
	background-image: conic-gradient(#1d2631 25%, transparent 0 50%, #1d2631 0 75%, transparent 0);
	background-size: 20px 20px;
}

.asset-preview-light {
	background: #e8eef2;
}

.asset-info {
	display: grid;
	align-content: start;
	gap: 0.2rem;
}

.asset-name {
	color: #fff;
	font-weight: 900;
}

.asset-meta {
	color: var(--muted);
	font-size: 0.85rem;
}

.press-download {
	margin-top: 1.25rem;
}

.button-meta {
	font-size: 0.85rem;
	font-weight: 700;
	opacity: 0.75;
}

.downloads {
	display: grid;
	gap: 0.75rem;
	margin: 2.2rem 0 0;
	padding: 0;
	list-style: none;
}

.download-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding: 1rem 1.25rem;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.link-row.compact button.icon-link {
	border: 0;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.press-note {
	margin-top: 1rem;
}

/* 404 page */

.notfound {
	display: grid;
	justify-items: center;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	padding-block: clamp(3.5rem, 8vw, 6rem);
	text-align: center;
}

.notfound-code {
	color: var(--cyan);
	font-size: clamp(5rem, 16vw, 9rem);
	font-weight: 900;
	line-height: 1;
	text-shadow: 0 0 40px rgb(33 199 217 / 0.35);
}

.notfound-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.15rem;
	width: 100%;
	max-width: 52rem;
}

/* Title, text and button rows line up across both languages: the text row absorbs the length difference. */
.notfound-block {
	display: grid;
	grid-template-rows: auto 1fr auto;
	justify-items: center;
	gap: 0.9rem;
}

.notfound-block p {
	color: var(--text-soft);
}

.notfound-title {
	color: #fff;
	font-size: 1.6rem;
	font-weight: 900;
	line-height: 1.2;
}

/* Studio */

.studio {
	display: grid;
	grid-template-columns: clamp(140px, 17vw, 210px) minmax(0, 1fr);
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3.5rem);
}

.studio-logo {
	width: 100%;
	filter: drop-shadow(0 24px 48px rgb(0 0 0 / 0.6));
}

.studio-copy {
	display: grid;
	gap: 1.2rem;
}

.studio-text {
	max-width: 46rem;
	color: #c7d3d8;
	font-size: 1.05rem;
	line-height: 1.75;
}

/* Footer */

.site-footer {
	padding-block: clamp(3rem, 5.2vw, 4.35rem) 2rem;
	background: rgb(8 10 12 / 0.6);
	border-top: 1px solid rgb(143 232 255 / 0.12);
}

.footer-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
	align-items: end;
	gap: clamp(1.5rem, 4vw, 3rem);
}

.footer-lead {
	margin-top: 1rem;
	color: #dce8ed;
	font-size: clamp(1.1rem, 1.6vw, 1.35rem);
	font-weight: 800;
	line-height: 1.3;
}

.footer-links {
	display: grid;
	gap: 0.6rem;
}

.footer-links a {
	background: rgb(255 255 255 / 0.035);
	box-shadow: inset 0 0 0 1px rgb(143 232 255 / 0.1);
}

.footer-links a span {
	overflow-wrap: anywhere;
}

.footer-note {
	grid-column: 1 / -1;
	color: var(--muted);
	font-size: 0.9rem;
}

/* Media viewer for trailers and screenshots */

.media-dialog {
	width: min(1200px, 100% - 32px);
	max-width: none;
	padding: 0;
	overflow: visible;
	background: transparent;
	border: 0;
}

.media-dialog::backdrop {
	background: rgb(3 5 7 / 0.9);
}

.media-frame {
	position: relative;
}

.media-video,
.media-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: contain;
	border-radius: var(--radius);
	background: #000;
	box-shadow: 0 30px 80px rgb(0 0 0 / 0.6);
}

.media-dialog [hidden] {
	display: none;
}

.media-button {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	background: rgb(255 255 255 / 0.1);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.media-button:hover {
	background: rgb(255 255 255 / 0.2);
}

.media-close {
	position: absolute;
	right: 0;
	bottom: calc(100% + 10px);
}

.media-nav {
	position: absolute;
	top: 50%;
	background: rgb(7 9 12 / 0.6);
	transform: translateY(-50%);
}

.media-prev {
	left: 10px;
}

.media-next {
	right: 10px;
}

.media-nav .icon {
	width: 1.4rem;
	height: 1.4rem;
}

/* Responsive */

@media (max-width: 900px) {
	.game-card {
		grid-template-columns: 1fr;
	}

	.story-item,
	.details,
	.game-intro,
	.notfound-columns {
		grid-template-columns: 1fr;
	}

	.story-item:nth-child(even) .story-media {
		order: 0;
	}

	.shots {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-inner {
		grid-template-columns: 1fr;
		align-items: start;
	}
}

@media (max-width: 640px) {
	.site-header {
		gap: 0.75rem;
		min-height: 60px;
	}

	.brand-mark span {
		display: none;
	}

	.brand-logo {
		height: 36px;
	}

	.site-nav {
		gap: 0.15rem;
	}

	.site-nav a {
		gap: 0.45rem;
		padding: 0.55rem 0.6rem;
		font-size: 0.95rem;
	}

	.hero-art {
		height: 58vw;
	}

	.hero-logo {
		width: 50vw;
	}

	.hero-lead {
		font-size: 1rem;
		line-height: 1.55;
	}

	.hero-actions {
		flex-direction: column;
		justify-self: stretch;
	}

	.section-title {
		font-size: 2.1rem;
	}

	.game-card-body {
		padding: 1.35rem;
	}

	.studio {
		grid-template-columns: 1fr;
	}

	.studio-logo {
		width: 120px;
	}

	.cta .button {
		width: 100%;
	}

	.trailer-tile-play {
		gap: 0.5rem;
		min-height: 40px;
		padding: 0.55rem 0.85rem;
		font-size: 0.9rem;
	}

	.trailer-tile-play .icon {
		width: 1.1rem;
		height: 1.1rem;
	}

	.related {
		grid-template-columns: 1fr;
	}

	.related-copy {
		padding: 0 0.5rem 0.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
	}
}
