/* Game pages (subsite0-4.html: main.ng-gamepage.ng-gpN) and DLC pages (dlc-*.html from
   .github/templates/dlc.html: main.ng-dlcpage). Experience mode: the game's own screenshot is
   the lead, a pasted print held by two strips; the thumbnails are small prints on the wall;
   the facts are a typed index card pinned over the title sheet; the description is a reading
   sheet; the DLC list is a console tree pane; brass only on the buy button.
   The five game pages share the markup; --sheet-tilt / --shot-* / --card-tilt / --slip-tilt and
   the A (title left) / B (title right) grids keep them from looking stamped.
   DLC page = the small sibling: one sheet (lead + about) and one console box (screenshots).
   Generated shapes kept: #subImage / #subMainShot / #subThumbs (script.js gallery), .ng-facts,
   .ng-lede, section.ng-dlc > .ng-sec > h2 + ul.ng-dlc-list (steam-sync). */

/* ─── Page frame: the legacy single sheet is replaced by sheets on the wall ─ */

main.ng-gamepage,
main.ng-dlcpage {
	width: 100%;
	max-width: 1320px;
	margin: var(--s7) auto 0;
	padding: 0 var(--s6);
	background: none;
	box-shadow: none;
}

main.ng-gamepage::before,
main.ng-gamepage::after,
main.ng-dlcpage::before,
main.ng-dlcpage::after {
	content: none;
}

/* per-page variation (A = title left, B = title right) */
.ng-gp0 { --sheet-tilt: -.4deg; --shot-tilt: .8deg;  --shot-ar: 16 / 9;  --shot-pos: 50% 50%; --card-tilt: 1.2deg;  --slip-tilt: 1deg;    --art-tilt: -.5deg; }
.ng-gp1 { --sheet-tilt: .5deg;  --shot-tilt: -1.1deg; --shot-ar: 16 / 10; --shot-pos: 50% 40%; --card-tilt: -1deg;  --slip-tilt: -1.2deg; --art-tilt: .6deg; }
.ng-gp2 { --sheet-tilt: .3deg;  --shot-tilt: -.6deg; --shot-ar: 3 / 2;   --shot-pos: 42% 50%; --card-tilt: -.8deg;  --slip-tilt: .7deg;   --art-tilt: -.8deg; }
.ng-gp3 { --sheet-tilt: -.6deg; --shot-tilt: 1.3deg; --shot-ar: 16 / 9;  --shot-pos: 50% 50%; --card-tilt: 1.4deg;  --slip-tilt: -.8deg;  --art-tilt: .5deg; }
.ng-gp4 { --sheet-tilt: .2deg;  --shot-tilt: -1.4deg; --shot-ar: 16 / 10; --shot-pos: 50% 30%; --card-tilt: .6deg;  --slip-tilt: 1.3deg;  --art-tilt: -.4deg; }

/* ─── Back link: a small slip with its own strip ─────────────────────────── */

.ng-back {
	position: relative;
	z-index: 7;
	width: fit-content;
	max-width: 100%;
	margin: 0 0 var(--s5) var(--s5);
	padding: var(--s1) var(--s4) 0;
	background-color: var(--panel-2);
	background-image: var(--grain);
	box-shadow: 3px 4px 0 var(--shadow);
	transform: rotate(-1.6deg);
}

.ng-back::before {
	content: "";
	position: absolute;
	top: -12px;
	left: calc(50% - 30px);
	width: 60px;
	height: 22px;
	background: var(--tape);
	clip-path: polygon(0 5%, 100% 0, 98% 100%, 2% 95%);
	transform: rotate(4deg);
}

.ng-back a {
	display: inline-flex;
	align-items: center;
	gap: var(--s3);
	min-height: 44px;
	font: 400 var(--t2)/1.2 var(--f-disp);
	text-decoration: underline;
	text-underline-offset: 4px;
	overflow-wrap: anywhere;
}

/* a drawn chevron, not a glyph */
.ng-back a::before {
	content: "";
	flex: none;
	width: .5em;
	height: .5em;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

.ng-back a:hover,
.ng-back a:focus-visible {
	text-decoration-thickness: 2px;
}

/* ─── Game page lead: title sheet + facts card | the print + small prints ── */

.ng-gamepage .ng-lead {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 640px);
	grid-template-rows: auto 1fr;
	grid-template-areas: "copy shot" "copy thumbs";
	gap: var(--s5) var(--s7);
	align-items: start;
}

.ng-gp1 .ng-lead,
.ng-gp3 .ng-lead {
	grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
	grid-template-areas: "shot copy" "thumbs copy";
}

/* the figure dissolves: the print and the thumbnails are placed separately */
.ng-gamepage .ng-gallery {
	display: contents;
}

.ng-gamepage .ng-lead-copy {
	grid-area: copy;
	position: relative;
	margin-bottom: var(--s7);
	padding: var(--s7) var(--s6) 0;
	background-color: var(--panel);
	background-image: var(--grain);
	box-shadow: 5px 7px 1px var(--shadow);
	transform: rotate(var(--sheet-tilt, 0deg));
}

.ng-lead-title {
	margin: 0 0 var(--s5);
	font: 300 var(--t6)/1.02 var(--f-disp);
	overflow-wrap: anywhere;
}

.ng-lede {
	max-width: 60ch;
	margin: 0;
	font-size: var(--t2);
	line-height: 1.6;
}

.ng-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s3) var(--s5);
	margin: var(--s5) 0 0;
}

.ng-cta .ng-tlink {
	font-size: var(--t2);
}

/* the facts: a typed index card pasted over the sheet's lower edge; label over value, two columns */
.ng-gamepage .ng-facts {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: var(--s5);
	margin: var(--s6) calc(-1 * var(--s3)) calc(-1 * var(--s7)) var(--s4);
	padding: var(--s6) var(--s5) var(--s4);
	background-color: var(--panel-2);
	background-image: var(--grain);
	box-shadow: 3px 4px 0 var(--shadow);
	transform: rotate(var(--card-tilt, 0deg));
}

.ng-gamepage .ng-facts::before {
	content: "";
	position: absolute;
	top: -14px;
	left: calc(50% - 40px);
	width: 80px;
	height: 26px;
	background: var(--tape);
	clip-path: polygon(0 5%, 100% 0, 98% 100%, 2% 95%);
	transform: rotate(-3deg);
}

.ng-facts > div {
	display: contents;
}

.ng-facts dt,
.ng-facts dd {
	margin: 0;
	padding: var(--s2) 0;
	border-bottom: 1px dashed var(--dim);
	font-size: var(--t1);
	line-height: 1.45;
}

.ng-facts dt {
	padding-right: var(--s4);
	color: var(--dim);
	font-family: var(--f-disp);
	font-weight: 500;
}

.ng-facts > div:last-child dt,
.ng-facts > div:last-child dd {
	border-bottom: 0;
}

.ng-gamepage .ng-facts > div {
	display: block;
	padding: var(--s2) 0;
	border-bottom: 1px dashed var(--dim);
}

.ng-gamepage .ng-facts > div:nth-last-child(-n + 2):nth-child(odd),
.ng-gamepage .ng-facts > div:last-child {
	border-bottom: 0;
}

.ng-gamepage .ng-facts dt,
.ng-gamepage .ng-facts dd {
	padding: 0;
	border: 0;
}

.ng-facts a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: calc(-1 * var(--s3)) 0;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* the main screenshot: a pasted print, two strips across its top corners */
.ng-gamepage #subImage {
	grid-area: shot;
	position: relative;
	z-index: 1;
	margin-top: var(--s4);
	padding: var(--s3);
	background-color: var(--panel-2);
	background-image: var(--grain);
	box-shadow: 5px 7px 1px var(--shadow);
	transform: rotate(var(--shot-tilt, 0deg));
}

.ng-gp2 #subImage {
	margin-top: var(--s7);
}

.ng-gamepage #subImage::before,
.ng-gamepage #subImage::after {
	content: "";
	position: absolute;
	z-index: 2;
	top: -2px;
	width: 84px;
	height: 28px;
	background: var(--tape);
	clip-path: polygon(0 5%, 100% 0, 98% 100%, 2% 95%);
	pointer-events: none;
}

.ng-gamepage #subImage::before {
	left: -30px;
	transform: rotate(-42deg);
}

.ng-gamepage #subImage::after {
	right: -18px;
	transform: rotate(37deg);
}

.ng-gp1 #subImage::before,
.ng-gp3 #subImage::before {
	transform: rotate(-35deg);
}

.ng-gp1 #subImage::after,
.ng-gp3 #subImage::after {
	transform: rotate(45deg);
}

#subImage img,
#subImage video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--shot-ar, 16 / 9);
	object-fit: cover;
	object-position: var(--shot-pos, 50% 50%);
}

#subImage video {
	object-fit: contain;
	background: var(--con-bg);
}

/* the thumbnails: small prints, each at its own angle; a press puts it on the main print */
.ng-gamepage #subThumbs {
	grid-area: thumbs;
	display: flex;
	flex-wrap: wrap;
	gap: var(--s4);
	padding: var(--s4) var(--s2) 0;
}

.ng-gamepage #subThumbs > img,
.ng-gamepage #subThumbs > .videoThumb {
	position: relative;
	display: block;
	flex: none;
	width: 112px;
	padding: var(--s1);
	background-color: var(--panel-2);
	box-shadow: 2px 3px 0 var(--shadow);
	transform: rotate(var(--r, -1deg));
	transition: transform 120ms cubic-bezier(.2, .7, .2, 1);
}

.ng-gamepage #subThumbs > :nth-child(5n + 1) { --r: -1.6deg; }
.ng-gamepage #subThumbs > :nth-child(5n + 2) { --r: 1.1deg; }
.ng-gamepage #subThumbs > :nth-child(5n + 3) { --r: -.4deg; }
.ng-gamepage #subThumbs > :nth-child(5n + 4) { --r: 1.8deg; }
.ng-gamepage #subThumbs > :nth-child(5n) { --r: -1deg; }

#subThumbs img {
	display: block;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	cursor: pointer;
}

#subThumbs .videoThumb img {
	width: 100%;
}

/* hover / focus, and the print now on the main frame (aria-pressed, set by script.js) */
.ng-gamepage #subThumbs > img:hover,
.ng-gamepage #subThumbs > img:focus-visible,
.ng-gamepage #subThumbs > img[aria-pressed="true"],
.ng-gamepage #subThumbs > .videoThumb:hover,
.ng-gamepage #subThumbs > .videoThumb:focus-within,
.ng-gamepage #subThumbs > .videoThumb:has(img[aria-pressed="true"]) {
	transform: none;
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

/* a trailer is a screen: an inverse console cap with a drawn play mark */
#subThumbs .videoThumb::before,
#subThumbs .videoThumb::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	pointer-events: none;
}

#subThumbs .videoThumb::before {
	width: 32px;
	height: 32px;
	transform: translate(-50%, -50%);
	background: var(--con-bg);
	box-shadow: 0 0 0 2px var(--con-ink);
}

#subThumbs .videoThumb::after {
	width: 12px;
	height: 14px;
	transform: translate(-35%, -50%);
	background: var(--con-ink);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ─── Game page body: the reading sheet | DLC tree pane + credits slip ───── */

.ng-gamepage .ng-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
	gap: var(--s7);
	align-items: start;
	margin-top: var(--s8);
}

.ng-gp1 .ng-body,
.ng-gp3 .ng-body {
	grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
}

.ng-gp1 .ng-story,
.ng-gp3 .ng-story {
	grid-column: 2;
	grid-row: 1;
}

.ng-gp1 .ng-aside,
.ng-gp3 .ng-aside {
	grid-column: 1;
	grid-row: 1;
}

.ng-gamepage .ng-story {
	position: relative;
	padding: var(--s7) var(--s7) var(--s6);
	background-color: var(--panel);
	background-image: var(--grain);
	box-shadow: 5px 7px 1px var(--shadow);
}

.ng-sec {
	margin: 0;
}

.ng-story .ng-sec h2 {
	margin: 0 0 var(--s5);
	font: 300 var(--t5)/1.05 var(--f-disp);
}

/* Steam's own description, set as reading text at a comfortable measure */
.ng-prose {
	max-width: 66ch;
	font-size: var(--t2);
	line-height: 1.65;
	overflow-wrap: break-word;
}

.ng-prose p {
	margin: 0 0 var(--s4);
}

.ng-prose p:empty {
	display: none;
}

.ng-prose h2,
.ng-prose h3 {
	margin: var(--s7) 0 var(--s4);
	font: 500 var(--t3)/1.2 var(--f-disp);
}

/* the store's art inside the text: prints pasted onto the sheet */
.ng-prose img,
.ng-prose video {
	display: block;
	max-width: 100%;
	height: auto;
	margin: var(--s5) 0;
	padding: var(--s2);
	background-color: var(--panel-2);
	box-shadow: 3px 4px 0 var(--shadow);
	transform: rotate(var(--art-tilt, 0deg));
}

.ng-prose ul,
.ng-prose ol {
	margin: 0 0 var(--s4);
	padding-left: var(--s5);
}

.ng-prose ul {
	list-style: square;
}

.ng-prose li {
	margin: 0 0 var(--s2);
}

.ng-prose li::marker {
	color: var(--dim);
}

.ng-prose li p {
	margin: 0;
}

.ng-prose li:has(> p:only-child:empty) {
	display: none;
}

.ng-prose a {
	text-underline-offset: 3px;
}

/* the side column stays in view along the long reading sheet */
.ng-gamepage .ng-aside {
	position: sticky;
	top: var(--s5);
	display: flex;
	flex-direction: column;
	gap: var(--s7);
	padding-top: var(--s5);
}

/* the DLC list: a console tree pane (the generated h2 sits on the frame's top rule) */
.ng-dlc-box {
	padding: var(--s6) var(--s4) var(--s4);
}

.ng-dlc-box:not(:has(.ng-dlc)) {
	display: none;
}

.ng-dlc-box .ng-sec h2 {
	position: absolute;
	top: -.95em;
	left: var(--s4);
	max-width: calc(100% - 2 * var(--s4));
	margin: 0;
	padding: 0 var(--s3);
	background: var(--con-bg);
	color: var(--con-ink);
	font: 400 var(--t1)/1.75 var(--f-con);
	white-space: nowrap;
	overflow: hidden;
}

.ng-dlc-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ng-dlc-list li {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: var(--s2);
	padding-left: 3ch;
}

.ng-dlc-list li::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 0;
	width: 18px;
	height: 22px;
	border-left: 2px solid var(--con-dim);
	border-bottom: 2px solid var(--con-dim);
}

.ng-dlc-list li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 22px;
	bottom: 0;
	border-left: 2px solid var(--con-dim);
}

.ng-dlc-list img {
	display: none;
}

/* one DLC: its cover is shown, the branch is not needed */
.ng-dlc-list li:only-child {
	padding-left: 0;
}

.ng-dlc-list li:only-child::before {
	content: none;
}

.ng-dlc-list li:only-child img {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: var(--s2);
	aspect-ratio: 460 / 215;
	object-fit: cover;
}

.ng-dlc-name {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: var(--s1) var(--s2);
	color: var(--con-ink);
	font: 400 var(--t1)/1.35 var(--f-read);
	text-decoration: underline;
	text-decoration-color: var(--con-dim);
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

.ng-dlc-list .ng-steam {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 var(--s2);
	color: var(--con-dim);
	font: 400 var(--t1)/1 var(--f-con);
	text-decoration: none;
}

.ng-dlc-name:hover,
.ng-dlc-name:focus-visible,
.ng-dlc-list .ng-steam:hover,
.ng-dlc-list .ng-steam:focus-visible {
	background: var(--con-inv-bg);
	color: var(--con-inv-ink);
	outline-offset: -3px;
}

/* credits, roadmap, press kit, all games: a slip of the second paper */
.ng-slip {
	position: relative;
	padding: var(--s6) var(--s5) var(--s4);
	background-color: var(--panel-2);
	background-image: var(--grain);
	box-shadow: 5px 7px 1px var(--shadow);
	transform: rotate(var(--slip-tilt, 0deg));
}

.ng-credits .ng-sec h2 {
	margin: 0 0 var(--s2);
	font: 300 var(--t4)/1.1 var(--f-disp);
}

.ng-credits p {
	margin: 0;
	font-size: var(--t1);
	line-height: 1.6;
}

.ng-links {
	display: flex;
	flex-wrap: wrap;
	column-gap: var(--s5);
	margin: var(--s3) 0 0;
	padding: 0;
	list-style: none;
}

.ng-links a,
.ng-sec-end a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: var(--t1);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.ng-links a:hover,
.ng-links a:focus-visible,
.ng-sec-end a:hover,
.ng-sec-end a:focus-visible {
	text-decoration-thickness: 2px;
}

/* where the game came from: the 2012 browser quest, under the credits */
.ng-origin {
	margin-top: var(--s5);
}

.ng-origin a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.ng-origin a:hover,
.ng-origin a:focus-visible {
	text-decoration-thickness: 2px;
}

/* ─── DLC page: one sheet (lead + about) and one console box (screenshots) ─ */

main.ng-dlcpage {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
	grid-template-areas: "back ." "lead shots" "story shots";
	column-gap: var(--s7);
	align-items: start;
}

.ng-dlcpage .ng-back {
	grid-area: back;
}

.ng-dlcpage .ng-body {
	display: contents;
}

.ng-dlcpage .ng-lead {
	grid-area: lead;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
	grid-template-areas: "copy shot";
	gap: var(--s6);
	align-items: start;
	padding: var(--s7) var(--s6) var(--s5);
	background-color: var(--panel);
	background-image: var(--grain);
	box-shadow: 5px 7px 1px var(--shadow);
}

.ng-dlcpage .ng-lead-copy {
	grid-area: copy;
}

.ng-dlcpage .ng-lead-title {
	font-size: var(--t5);
	line-height: 1.05;
}

.ng-dlcpage .ng-lead-shot {
	grid-area: shot;
	margin: 0;
	padding: var(--s2);
	background-color: var(--panel-2);
	box-shadow: 3px 4px 0 var(--shadow);
	transform: rotate(1.8deg);
}

.ng-cover {
	display: block;
	width: 100%;
	max-width: 460px;
	height: auto;
}

.ng-dlcpage .ng-facts {
	display: grid;
	grid-template-columns: fit-content(11rem) minmax(0, 1fr);
	margin: var(--s5) 0 0;
	border-top: 2px solid var(--ink);
}

/* positioned like the lead, so it paints over the lead's shadow: one sheet, no seam */
.ng-dlcpage .ng-story {
	grid-area: story;
	position: relative;
	padding: var(--s3) var(--s6) var(--s7);
	background-color: var(--panel);
	background-image: var(--grain);
	box-shadow: 5px 7px 1px var(--shadow);
}

.ng-dlcpage .ng-story .ng-sec h2 {
	font-size: var(--t4);
}

/* the screenshots on a console screen: no tilt, framed thumbnails */
.ng-dlcpage .ng-aside {
	grid-area: shots;
	margin-top: var(--s6);
	padding: var(--s6) var(--s4) var(--s4);
}

.ng-dlcpage #subImage {
	box-shadow: 0 0 0 2px var(--con-dim);
}

.ng-dlcpage #subThumbs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s2);
	margin-top: var(--s3);
}

.ng-dlcpage #subThumbs > img,
.ng-dlcpage #subThumbs > .videoThumb {
	position: relative;
	display: block;
	flex: 0 0 calc((100% - 2 * var(--s2)) / 3);
	width: calc((100% - 2 * var(--s2)) / 3);
	box-shadow: 0 0 0 2px var(--con-dim);
}

.ng-dlcpage #subThumbs > img:hover,
.ng-dlcpage #subThumbs > img[aria-pressed="true"],
.ng-dlcpage #subThumbs > .videoThumb:hover,
.ng-dlcpage #subThumbs > .videoThumb:has(img[aria-pressed="true"]) {
	box-shadow: 0 0 0 2px var(--con-ink);
	outline: 2px solid var(--con-ink);
	outline-offset: 2px;
}

/* ─── Narrower desktop ───────────────────────────────────────────────────── */

@media (max-width: 1180px) {
	main.ng-gamepage,
	main.ng-dlcpage {
		padding: 0 var(--s5);
	}

	.ng-gamepage .ng-lead,
	.ng-gp1 .ng-lead,
	.ng-gp3 .ng-lead {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	}

	.ng-gp1 .ng-lead,
	.ng-gp3 .ng-lead {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	}

	.ng-gamepage .ng-body,
	.ng-gp1 .ng-body,
	.ng-gp3 .ng-body {
		grid-template-columns: minmax(0, 1fr);
	}

	.ng-gp1 .ng-story,
	.ng-gp3 .ng-story,
	.ng-gp1 .ng-aside,
	.ng-gp3 .ng-aside {
		grid-column: 1;
		grid-row: auto;
	}

	.ng-gamepage .ng-aside {
		position: static;
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: start;
	}

	main.ng-dlcpage {
		grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
	}
}

/* ─── Phone: one column, the print first, recomposed ─────────────────────── */

@media (max-width: 760px) {
	main.ng-gamepage,
	main.ng-dlcpage {
		margin-top: var(--s6);
		padding: 0 var(--s4);
		overflow-x: clip;
	}

	.ng-back {
		margin: 0 0 var(--s6) var(--s2);
	}

	.ng-gamepage .ng-lead,
	.ng-gp1 .ng-lead,
	.ng-gp3 .ng-lead {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: var(--s6);
	}

	.ng-gamepage #subImage,
	.ng-gp2 #subImage {
		order: -1;
		margin: 0 var(--s1);
		padding: var(--s2);
		transform: rotate(calc(var(--shot-tilt, 0deg) * .6));
	}

	.ng-gamepage #subImage::before {
		left: -18px;
		width: 64px;
	}

	.ng-gamepage #subImage::after {
		right: -16px;
		width: 60px;
	}

	.ng-gamepage .ng-lead-copy {
		margin-bottom: var(--s6);
		padding: var(--s6) var(--s4) 0;
		transform: rotate(calc(var(--sheet-tilt, 0deg) * .5));
	}

	.ng-gamepage .ng-facts {
		grid-template-columns: minmax(0, 1fr);
		margin: var(--s5) calc(-1 * var(--s2)) calc(-1 * var(--s6)) var(--s2);
		padding: var(--s5) var(--s4) var(--s3);
	}

	.ng-gamepage .ng-facts > div:nth-last-child(-n + 2):nth-child(odd):not(:last-child) {
		border-bottom: 1px dashed var(--dim);
	}

	/* the thumbnails become a strip of prints to swipe, right under the print they change (as on desktop), running off
	   both screen edges; a print is sized so the fourth one is cut about in half at the right edge, the cue that the
	   strip goes on (a nearly whole print cut by a few px reads as a fault), and the title stays on the first screen */
	.ng-gamepage #subThumbs {
		order: -1;
		flex-wrap: nowrap;
		gap: var(--s4);
		margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) 0;
		padding: var(--s3) var(--s4) var(--s4);
		overflow-x: auto;
		scroll-snap-type: x proximity;
		scroll-padding-inline: var(--s4);
		scrollbar-width: thin;
	}

	.ng-gamepage #subThumbs > img,
	.ng-gamepage #subThumbs > .videoThumb {
		width: calc((100% - 2 * var(--s4)) / 3.5);
		scroll-snap-align: start;
	}

	.ng-gamepage .ng-body {
		gap: var(--s7);
		margin-top: var(--s7);
	}

	.ng-gamepage .ng-aside {
		display: flex;
		padding-top: 0;
	}

	.ng-gamepage .ng-story {
		padding: var(--s6) var(--s4) var(--s5);
	}

	.ng-prose {
		font-size: var(--t1);
	}

	.ng-prose h2,
	.ng-prose h3 {
		margin-top: var(--s6);
		font-size: var(--t2);
	}

	.ng-prose img,
	.ng-prose video {
		padding: var(--s1);
	}

	.ng-slip {
		margin: 0 var(--s2);
		padding: var(--s6) var(--s4) var(--s3);
	}

	/* DLC: the sheet with the cover first, then the console box */
	main.ng-dlcpage {
		display: flex;
		flex-direction: column;
	}

	.ng-dlcpage .ng-lead {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: var(--s5);
		padding: var(--s6) var(--s4) var(--s4);
	}

	.ng-dlcpage .ng-lead-shot {
		order: -1;
		margin: 0 var(--s2);
		transform: rotate(1.2deg);
	}

	.ng-dlcpage .ng-facts {
		grid-template-columns: minmax(0, 1fr);
	}

	.ng-dlcpage .ng-facts dt {
		padding-bottom: 0;
		border-bottom: 0;
	}

	.ng-dlcpage .ng-facts dd {
		padding-top: 0;
	}

	.ng-dlcpage .ng-story {
		padding: var(--s2) var(--s4) var(--s6);
	}

	.ng-dlcpage .ng-aside {
		margin-top: var(--s7);
		padding: var(--s6) var(--s3) var(--s3);
	}

	.ng-dlcpage #subThumbs > img,
	.ng-dlcpage #subThumbs > .videoThumb {
		flex-basis: calc((100% - var(--s2)) / 2);
		width: calc((100% - var(--s2)) / 2);
	}
}

/* ─── Reduced motion: the thumb no longer straightens; the ring stays ─────── */

@media (prefers-reduced-motion: reduce) {
	.ng-gamepage #subThumbs > img,
	.ng-gamepage #subThumbs > .videoThumb {
		transition: none;
	}

	.ng-gamepage #subThumbs > img:hover,
	.ng-gamepage #subThumbs > img:focus-visible,
	.ng-gamepage #subThumbs > .videoThumb:hover,
	.ng-gamepage #subThumbs > .videoThumb:focus-within {
		transform: rotate(var(--r, -1deg));
	}
}
