:root {
	color-scheme: dark;
	--paper: #fff5df;
	--muted: rgba(255, 245, 223, 0.68);
	--line: rgba(255, 245, 223, 0.24);
	--ink: #111827;
	--accent: #ffd166;
	--danger: #ff4f64;
	font-family:
		Inter,
		ui-sans-serif,
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		sans-serif;
	background: #151a2a;
	color: var(--paper);
}

* {
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
}

button,
a {
	font: inherit;
}

button {
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--paper);
	cursor: pointer;
	/* Stop long-press on mobile from selecting the label or popping the
	   callout/selection menu, and drop the tap-highlight flash. */
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

button:hover,
a:hover {
	border-color: var(--accent);
}

.museum-stage,
#museum-canvas {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
}

#museum-canvas {
	display: block;
	background: #151a2a;
	/* Own all touch gestures so dragging to look around works on phones instead
	   of the browser panning/zooming the page; also suppress selection/callouts. */
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: transparent;
}

/* Loading curtain: painted instantly from static markup, then faded out by
   museum.js once the first frame renders, so the cold-load (blank canvas,
   scene pop-in, panel) happens behind a themed screen. */
#museum-loader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	background: radial-gradient(circle at 50% 38%, #1c2438 0%, #151a2a 58%, #0f1320 100%);
	color: var(--paper);
	transition: opacity 0.7s ease, visibility 0.7s ease;
}
body.museum-ready #museum-loader {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
.loader-inner {
	display: grid;
	gap: 1.15rem;
	justify-items: center;
	padding: 2rem;
	text-align: center;
}
.loader-mark {
	position: relative;
	display: grid;
	place-items: center;
	width: 124px;
	height: 124px;
}
.loader-logo {
	width: 88px;
	height: 88px;
	/* Upscale the small canvas with hard pixels for a deliberate pixel-art look.
	   crisp-edges first (Firefox), pixelated last so it wins in Chrome/Safari. */
	image-rendering: crisp-edges;
	image-rendering: pixelated;
	filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.45));
	animation: loader-pulse 2.4s ease-in-out infinite;
}
.loader-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 3px dashed rgba(255, 209, 102, 0.5);
	border-top-color: var(--accent);
	animation: loader-spin 3.6s linear infinite;
}
.loader-title {
	margin: 0;
	font-family: 'Press Start 2P', monospace;
	font-size: clamp(15px, 4.4vw, 26px);
	line-height: 1.55;
	letter-spacing: 0.06em;
	text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}
.loader-bar {
	width: min(260px, 70vw);
	height: 14px;
	border: 2px solid rgba(255, 245, 223, 0.5);
	border-radius: 3px;
	background: rgba(255, 245, 223, 0.06);
	overflow: hidden;
}
.loader-bar span {
	display: block;
	width: 40%;
	height: 100%;
	background: linear-gradient(90deg, transparent, var(--accent), transparent);
	animation: loader-sweep 1.25s ease-in-out infinite;
}
.loader-caption {
	margin: 0;
	font-family: 'Special Elite', 'VT323', monospace;
	font-size: clamp(13px, 3vw, 17px);
	letter-spacing: 0.04em;
	color: var(--muted);
}
.loader-kicker {
	margin: 0;
	font-family: 'VT323', monospace;
	font-size: 15px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255, 209, 102, 0.82);
}
@keyframes loader-spin {
	to {
		transform: rotate(360deg);
	}
}
@keyframes loader-pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.06);
	}
}
@keyframes loader-sweep {
	0% {
		transform: translateX(-120%);
	}
	100% {
		transform: translateX(320%);
	}
}
@media (prefers-reduced-motion: reduce) {
	.loader-mark svg,
	.loader-ring,
	.loader-bar span {
		animation: none;
	}
	.loader-bar span {
		width: 100%;
		background: var(--accent);
	}
}

.museum-stage::after {
	position: fixed;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(
			circle at 50% 25%,
			transparent 0 34%,
			rgba(0, 0, 0, 0.1) 72%
		),
		linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18));
	content: '';
}

.reticle {
	position: fixed;
	left: 50%;
	top: 50%;
	z-index: 8;
	width: 22px;
	height: 22px;
	border: 2px solid rgba(255, 255, 255, 0.95);
	border-radius: 50%;
	opacity: 0;
	transform: translate(-50%, -50%);
	transition: opacity 160ms ease;
	/* Dark halo so the cursor stays visible on light marble and dark signage. */
	box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.55), 0 0 7px rgba(0, 0, 0, 0.4);
}

.reticle::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 4px;
	height: 4px;
	background: #fff;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.6);
}

body.is-walking .reticle {
	opacity: 1;
}

.hud,
.release-panel,
.tour-controls,
.release-rail,
.mobile-pad,
.help-card {
	position: fixed;
	z-index: 10;
}

.top-hud {
	left: 24px;
	right: 24px;
	top: 18px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	pointer-events: none;
}

.top-hud > *,
.release-panel,
.tour-controls,
.release-rail,
.mobile-pad,
.help-card {
	pointer-events: auto;
}

.kicker,
.panel-kicker {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	margin: 0 0 8px;
	color: var(--muted);
	font-size: 0.78rem;
	text-transform: uppercase;
}

.kicker::before,
.panel-kicker::before {
	flex: 0 0 45px;
	width: 45px;
	height: 9px;
	background:
		radial-gradient(
			circle at 4.5px 50%,
			var(--danger) 0 4.5px,
			transparent 5px
		),
		radial-gradient(
			circle at 22.5px 50%,
			var(--accent) 0 4.5px,
			transparent 5px
		),
		radial-gradient(circle at 40.5px 50%, #50d890 0 4.5px, transparent 5px);
	content: '';
}

h1 {
	margin: 0;
	font-family: 'Arial Black', Impact, ui-sans-serif, system-ui, sans-serif;
	font-size: clamp(2rem, 5vw, 4.7rem);
	line-height: 0.9;
	text-transform: uppercase;
}

.hud-actions {
	display: flex;
	gap: 10px;
	padding-top: 6px;
}

.hud-actions button,
.tour-controls button,
.mobile-pad button {
	min-height: 42px;
	padding: 0 16px;
	font-weight: 760;
}

#walk-button {
	border-color: transparent;
	background: var(--accent);
	color: #111;
}

.release-panel {
	right: 24px;
	top: 122px;
	width: min(360px, calc(100vw - 48px));
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--variant-panel, rgba(17, 24, 39, 0.74));
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
	backdrop-filter: blur(18px);
}

.release-panel h2 {
	margin: 0;
	font-family: 'Arial Black', Impact, ui-sans-serif, system-ui, sans-serif;
	font-size: clamp(1.5rem, 3vw, 2.4rem);
	line-height: 1;
}

.release-panel p {
	margin: 12px 0 0;
	color: var(--muted);
	line-height: 1.45;
}

#release-known-for {
	color: var(--paper);
	font-weight: 780;
}

.panel-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.panel-links a {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 13px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--paper);
	font-size: 0.86rem;
	font-weight: 760;
	text-decoration: none;
}

.panel-links a:first-child {
	border-color: transparent;
	background: #50d890;
	color: #07100b;
}

.tour-controls {
	left: 50%;
	bottom: 94px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(17, 24, 39, 0.72);
	backdrop-filter: blur(16px);
	transform: translateX(-50%);
}

#release-counter {
	min-width: 84px;
	text-align: center;
	white-space: nowrap;
}

#release-counter.is-active {
	border-color: transparent;
	background: var(--accent);
	color: #111;
}

/* No release is focused while parked at the rotunda centre. */
.release-panel.is-hidden {
	display: none;
}

.release-rail {
	left: 0;
	right: 0;
	bottom: 0;
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr) 92px;
	align-items: center;
	gap: 12px;
	padding: 12px 16px 16px;
	border-top: 1px solid var(--line);
	background: rgba(17, 24, 39, 0.78);
	backdrop-filter: blur(18px);
}

.release-rail::after {
	width: 92px;
	content: '';
}

.rail-center-button {
	min-height: 38px;
	padding: 0 14px;
	font-weight: 760;
}

#release-rail-track {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 2px;
}

#release-rail-track button:first-child {
	margin-left: auto;
}

#release-rail-track button:last-child {
	margin-right: auto;
}

#release-rail-track button {
	flex: 0 0 auto;
	min-width: 54px;
	min-height: 38px;
	padding: 0 12px;
	white-space: nowrap;
	border-color: color-mix(
		in srgb,
		var(--release-color, var(--line)) 42%,
		var(--line)
	);
}

#release-rail-track button.is-room {
	min-width: 46px;
	font-weight: 760;
	color: var(--release-color, var(--paper));
}

#release-rail-track button.is-active {
	border-color: transparent;
	background: var(--release-color, var(--accent));
	color: #111;
	box-shadow: 0 0 18px
		color-mix(in srgb, var(--release-color, var(--accent)) 42%, transparent);
}

.mobile-pad {
	left: 18px;
	bottom: 146px;
	display: none;
	gap: 8px;
	width: 128px;
}

.mobile-pad,
.mobile-pad div {
	flex-direction: column;
}

.mobile-pad div {
	display: flex;
	flex-direction: row;
	gap: 8px;
}

.mobile-pad button {
	flex: 1;
	min-height: 48px;
	padding: 0 10px;
	font-size: 1.3rem;
	line-height: 1;
}

.help-card {
	left: 24px;
	bottom: 146px;
	width: min(320px, calc(100vw - 48px));
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(17, 24, 39, 0.68);
	color: var(--muted);
	backdrop-filter: blur(14px);
}

.help-card strong,
.help-card span {
	display: block;
}

.help-card strong {
	color: var(--paper);
}

.help-card span {
	margin-top: 4px;
	font-size: 0.86rem;
	line-height: 1.38;
}

.help-card ul {
	margin: 6px 0 0;
	padding-left: 1.3em;
	list-style: square;
}

.help-card li {
	font-size: 0.86rem;
	line-height: 1.5;
}

body[data-ui='terminal'] {
	--paper: #afffce;
	--muted: rgba(175, 255, 206, 0.68);
	--line: rgba(91, 255, 181, 0.28);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body[data-ui='terminal'] h1,
body[data-ui='terminal'] .release-panel h2 {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: 0;
}

body[data-ui='terminal'] button,
body[data-ui='terminal'] .panel-links a,
body[data-ui='terminal'] .release-panel,
body[data-ui='terminal'] .tour-controls,
body[data-ui='terminal'] .release-rail {
	border-radius: 2px;
	box-shadow: 0 0 22px rgba(89, 255, 183, 0.13);
}

body[data-ui='ticket'] .release-panel,
body[data-ui='ticket'] .tour-controls,
body[data-ui='ticket'] .release-rail,
body[data-ui='paper'] .release-panel,
body[data-ui='paper'] .tour-controls,
body[data-ui='paper'] .release-rail {
	color: #24170d;
	background: rgba(245, 232, 199, 0.9);
	border-color: rgba(36, 23, 13, 0.24);
}

body[data-ui='ticket'] .release-panel p,
body[data-ui='ticket'] .panel-kicker,
body[data-ui='paper'] .release-panel p,
body[data-ui='paper'] .panel-kicker {
	color: rgba(36, 23, 13, 0.72);
}

body[data-ui='ticket'] #release-known-for,
body[data-ui='paper'] #release-known-for {
	color: #24170d;
}

body[data-ui='ticket'] {
	--paper: #fff1c9;
	--muted: rgba(255, 241, 201, 0.72);
}

body[data-ui='ticket'] .release-panel {
	border-style: dashed;
}

body[data-ui='zine'] .release-panel,
body[data-ui='zine'] button,
body[data-ui='zine'] .panel-links a {
	border-radius: 0;
	transform: rotate(-0.4deg);
}

body[data-ui='zine'] .release-rail {
	background: rgba(20, 19, 31, 0.88);
}

body[data-ui='neon'] .release-panel,
body[data-ui='neon'] .tour-controls,
body[data-ui='neon'] .release-rail {
	border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
	box-shadow:
		0 0 22px color-mix(in srgb, var(--accent) 24%, transparent),
		0 24px 70px rgba(0, 0, 0, 0.36);
}

body[data-ui='museum-label'] .release-panel {
	background: rgba(255, 248, 224, 0.9);
	color: #23351f;
}

body[data-ui='museum-label'] .release-panel p,
body[data-ui='museum-label'] .panel-kicker {
	color: rgba(35, 53, 31, 0.72);
}

body[data-ui='blueprint'] {
	--paper: #e6f0ff;
	--muted: rgba(230, 240, 255, 0.7);
	--line: rgba(109, 220, 255, 0.34);
}

body[data-ui='blueprint'] .release-panel,
body[data-ui='blueprint'] .tour-controls,
body[data-ui='blueprint'] .release-rail {
	background-image:
		linear-gradient(rgba(109, 220, 255, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(109, 220, 255, 0.08) 1px, transparent 1px);
	background-size: 18px 18px;
}

body[data-ui='brutalist'] button,
body[data-ui='brutalist'] .panel-links a,
body[data-ui='brutalist'] .release-panel,
body[data-ui='brutalist'] .tour-controls,
body[data-ui='brutalist'] .release-rail {
	border: 2px solid #f4f1e4;
	border-radius: 0;
	box-shadow: none;
}

body[data-ui='arcade'] h1 {
	text-shadow:
		4px 0 #ff4f64,
		-4px 0 #2bb7ff;
}

body[data-ui='arcade'] button,
body[data-ui='arcade'] .panel-links a {
	border-radius: 4px;
}

body[data-ui='glass'] .release-panel,
body[data-ui='glass'] .tour-controls,
body[data-ui='glass'] .release-rail {
	backdrop-filter: blur(18px) saturate(1.2);
}

body[data-ui='glass'] .top-hud {
	align-items: flex-start;
	padding: 14px 18px;
	border: 1px solid rgba(255, 245, 223, 0.18);
	border-radius: 8px;
	background:
		repeating-linear-gradient(
			0deg,
			rgba(255, 245, 223, 0.04) 0 1px,
			transparent 1px 4px
		),
		linear-gradient(180deg, rgba(34, 22, 56, 0.45), rgba(11, 16, 28, 0.34));
	box-shadow:
		inset 0 0 0 2px rgba(255, 209, 102, 0.16),
		0 24px 70px rgba(0, 0, 0, 0.42);
	backdrop-filter: blur(10px) saturate(1.2);
}

body[data-ui='glass'] h1 {
	font-size: clamp(1.55rem, 3.5vw, 3.45rem);
	line-height: 0.95;
}

body[data-ui='glass'] .kicker {
	margin-bottom: 8px;
	font-size: 0.66rem;
}

body[data-variant='current'] {
	--paper: #fff5df;
	--muted: rgba(255, 245, 223, 0.72);
	--line: rgba(255, 209, 102, 0.32);
	--accent: #ffd166;
	--danger: #ff4f64;
	--ink: #1c1306;
	--pixel-font: 'Press Start 2P', ui-monospace, SFMono-Regular, Menlo, monospace;
	--retro-font: 'VT323', ui-monospace, Menlo, monospace;
	--label-font: 'Special Elite', 'Courier New', ui-monospace, monospace;
}

body[data-variant='current'] .title-block {
	position: relative;
}

body[data-variant='current'] .kicker {
	font-family: var(--pixel-font);
	letter-spacing: 0.04em;
	color: #ffd166;
	text-shadow:
		0 0 12px rgba(255, 209, 102, 0.4),
		2px 0 0 rgba(83, 32, 19, 0.4);
}

body[data-variant='current'] .kicker::before {
	display: none;
}

body[data-variant='current'] h1 {
	display: flex;
	align-items: baseline;
	gap: 14px;
	flex-wrap: wrap;
	letter-spacing: -0.02em;
	color: #fff5df;
	text-shadow:
		3px 3px 0 #ff4f64,
		6px 6px 0 #2bb7ff,
		0 0 30px rgba(255, 245, 223, 0.18);
}

body[data-variant='current'] h1 .title-word {
	background: linear-gradient(180deg, #fff5df, #ffd166);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

body[data-variant='current'] h1 .title-museum {
	background: linear-gradient(180deg, #ffd166, #ff8a3c);
	-webkit-background-clip: text;
	background-clip: text;
}

body[data-variant='current'] h1 .title-stamp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 76px;
	padding: 6px 10px;
	font: 700 11px / 1 var(--label-font);
	color: #fff5df;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	border: 2px solid #fff5df;
	border-radius: 6px;
	transform: rotate(-6deg) translateY(-12px);
	background: rgba(255, 79, 100, 0.85);
	text-shadow: none;
	box-shadow:
		0 0 0 2px rgba(255, 79, 100, 0.4),
		2px 4px 0 rgba(0, 0, 0, 0.35);
}

body[data-variant='current'] .subhead {
	margin: 8px 0 0;
	font-family: var(--label-font);
	font-size: 0.92rem;
	letter-spacing: 0.02em;
	color: rgba(255, 245, 223, 0.84);
}

body[data-variant='current'] .hud-actions button {
	font-family: var(--pixel-font);
	font-size: 0.62rem;
	letter-spacing: 0.06em;
	padding: 14px 18px;
	border-width: 2px;
	border-style: solid;
	border-radius: 4px;
	text-transform: uppercase;
}

body[data-variant='current'] #walk-button {
	background: var(--accent);
	color: #1c1306;
	border-color: #1c1306;
	box-shadow:
		4px 4px 0 #1c1306,
		inset 0 0 0 2px rgba(255, 245, 223, 0.6);
}

body[data-variant='current'] #walk-button:hover {
	transform: translate(-1px, -1px);
	box-shadow:
		5px 5px 0 #1c1306,
		inset 0 0 0 2px rgba(255, 245, 223, 0.7);
}

body[data-variant='current'] #tour-button {
	background: rgba(20, 26, 42, 0.78);
	color: #fff5df;
	border-color: #ffd166;
	box-shadow: 4px 4px 0 rgba(255, 209, 102, 0.36);
}

body[data-variant='current'] #tour-button:hover {
	background: rgba(255, 209, 102, 0.18);
}

body[data-variant='current'] .release-panel {
	position: fixed;
	top: auto;
	bottom: 90px;
	right: 24px;
	width: min(380px, calc(100vw - 48px));
	padding: 22px 22px 20px 56px;
	color: #1c1306;
	background:
		repeating-linear-gradient(
			0deg,
			rgba(28, 19, 6, 0.04) 0 1px,
			transparent 1px 5px
		),
		linear-gradient(180deg, #fff7df 0%, #f4e0a8 100%);
	border: 2px dashed rgba(28, 19, 6, 0.42);
	border-radius: 4px;
	box-shadow:
		0 26px 80px rgba(0, 0, 0, 0.5),
		inset 0 0 0 8px #fff5df,
		inset 0 0 0 10px rgba(28, 19, 6, 0.18);
	backdrop-filter: none;
	font-family: var(--label-font);
}

body[data-variant='current'] .release-panel .ticket-stub {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border-right: 2px dashed rgba(28, 19, 6, 0.42);
	background:
		repeating-linear-gradient(
			-45deg,
			rgba(255, 79, 100, 0.92) 0 6px,
			rgba(255, 245, 223, 0.92) 6px 12px
		);
}

body[data-variant='current'] .release-panel .ticket-stub-line {
	font-family: var(--pixel-font);
	font-size: 0.55rem;
	color: #1c1306;
	letter-spacing: 0.1em;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

body[data-variant='current'] .panel-corner {
	position: absolute;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(28, 19, 6, 0.36);
}

body[data-variant='current'] .panel-corner-tl {
	top: 6px;
	left: 50px;
	border-right: none;
	border-bottom: none;
}

body[data-variant='current'] .panel-corner-tr {
	top: 6px;
	right: 6px;
	border-left: none;
	border-bottom: none;
}

body[data-variant='current'] .panel-corner-bl {
	bottom: 6px;
	left: 50px;
	border-right: none;
	border-top: none;
}

body[data-variant='current'] .panel-corner-br {
	bottom: 6px;
	right: 6px;
	border-left: none;
	border-top: none;
}

body[data-variant='current'] .release-panel .panel-kicker {
	display: inline-flex;
	gap: 8px;
	margin: 0 0 4px;
	padding: 4px 9px;
	background: #1c1306;
	color: #ffd166;
	font-family: var(--pixel-font);
	font-size: 0.56rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-radius: 2px;
}

body[data-variant='current'] .release-panel .panel-kicker::before {
	display: none;
}

body[data-variant='current'] .release-panel h2 {
	font-family: 'Arial Black', Impact, sans-serif;
	font-size: clamp(1.5rem, 3vw, 2.05rem);
	line-height: 1.02;
	color: #2a1808;
	text-shadow: 2px 2px 0 rgba(255, 209, 102, 0.55);
}

body[data-variant='current'] .release-panel .panel-date {
	margin: 6px 0 12px;
	font-family: var(--pixel-font);
	font-size: 0.6rem;
	letter-spacing: 0.06em;
	color: #6b3a14;
	text-transform: uppercase;
}

body[data-variant='current'] .release-panel .panel-tagline {
	margin: 6px 0 4px;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: 1.05rem;
	font-weight: 400;
	color: #1c1306;
	border-bottom: 1.5px dotted rgba(28, 19, 6, 0.42);
	padding-bottom: 6px;
}

body[data-variant='current'] .release-panel #release-detail {
	color: rgba(28, 19, 6, 0.84);
	font-family: var(--retro-font);
	font-size: 1.08rem;
	line-height: 1.25;
}

body[data-variant='current'] .release-panel #release-known-for {
	color: #1c1306;
	font-weight: 400;
}

body[data-variant='current'] .panel-links {
	margin-top: 14px;
}

body[data-variant='current'] .panel-links a {
	font-family: var(--pixel-font);
	font-size: 0.56rem;
	padding: 12px 14px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-radius: 2px;
	border-width: 2px;
	border-style: solid;
}

body[data-variant='current'] .panel-links a:first-child {
	background: #1c1306;
	color: #ffd166;
	border-color: #1c1306;
	box-shadow: 3px 3px 0 rgba(28, 19, 6, 0.6);
}

body[data-variant='current'] .tour-controls {
	padding: 8px 12px;
	background: #1c1306;
	border: 2px solid #ffd166;
	border-radius: 0;
	box-shadow:
		3px 3px 0 rgba(28, 19, 6, 0.6),
		0 12px 40px rgba(0, 0, 0, 0.46);
	backdrop-filter: none;
	color: #ffd166;
}

body[data-variant='current'] .tour-controls button {
	font-family: var(--pixel-font);
	font-size: 0.56rem;
	padding: 10px 12px;
	background: transparent;
	color: #ffd166;
	border: 1.5px solid #ffd166;
	border-radius: 0;
	letter-spacing: 0.04em;
}

body[data-variant='current'] .mobile-pad button {
	border-radius: 0;
}

body[data-variant='current'] #release-counter {
	font-family: var(--pixel-font);
	font-size: 0.6rem;
	border-radius: 2px;
	cursor: pointer;
}

body[data-variant='current'] #release-counter.is-active {
	background: #ffd166;
	color: #1c1306;
	border: 2px solid #1c1306;
	box-shadow: 2px 2px 0 #2a1808;
}

body[data-variant='current'] #release-counter:hover {
	background: #ffe08a;
	color: #1c1306;
	border-color: #2a1808;
}

body[data-variant='current'] .release-rail {
	background:
		repeating-linear-gradient(
			90deg,
			#1c1306 0 24px,
			#10080a 24px 25px
		);
	border-top: 4px double rgba(255, 209, 102, 0.66);
	box-shadow: 0 -6px 40px rgba(0, 0, 0, 0.55);
	backdrop-filter: none;
}

body[data-variant='current'] .rail-center-button {
	font-family: var(--pixel-font);
	font-size: 0.55rem;
	/* Silver — set apart from the era-colored number buttons. */
	background: linear-gradient(180deg, #eef1f5, #b7bdc8);
	color: #1c1306;
	border: 2px solid #5a5f68;
	box-shadow: 3px 3px 0 #3a3e45;
	border-radius: 2px;
}

body[data-variant='current'] #release-rail-track button {
	font-family: var(--pixel-font);
	font-size: 0.62rem;
	background: rgba(255, 245, 223, 0.08);
	color: var(--release-color, #fff5df);
	border-width: 2px;
	border-style: solid;
	border-color: color-mix(in srgb, var(--release-color, var(--line)) 70%, #1c1306);
	border-radius: 2px;
	box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

body[data-variant='current'] .rail-center-button.is-active {
	box-shadow:
		3px 3px 0 #3a3e45,
		0 0 16px rgba(214, 221, 231, 0.8);
	outline: 2px solid #f2f5f9;
}

body[data-variant='current'] #release-rail-track button.is-active {
	background: var(--release-color, var(--accent));
	color: #1c1306;
	border-color: #1c1306;
	box-shadow:
		2px 2px 0 #1c1306,
		0 0 14px color-mix(in srgb, var(--release-color, var(--accent)) 56%, transparent);
}

body[data-variant='current'] .help-card {
	bottom: 90px;
	padding: 18px 14px 14px;
	background:
		repeating-linear-gradient(
			0deg,
			rgba(28, 19, 6, 0.04) 0 1px,
			transparent 1px 4px
		),
		#fff5df;
	color: #2a1808;
	border: 2px solid #2a1808;
	border-radius: 4px;
	box-shadow: 4px 4px 0 rgba(28, 19, 6, 0.5);
}

body[data-variant='current'] .help-card strong {
	font-family: 'Arial Black', Impact, sans-serif;
	color: #2a1808;
	font-size: 1.05rem;
}

body[data-variant='current'] .help-card span:not(.help-stamp) {
	font-family: var(--retro-font);
	font-size: 1rem;
	color: #2a1808;
}

body[data-variant='current'] .help-card li {
	font-family: var(--retro-font);
	font-size: 1rem;
	color: #2a1808;
}

body[data-variant='current'] .help-stamp {
	display: inline-block;
	position: absolute;
	top: -10px;
	left: 10px;
	padding: 2px 8px;
	background: #ff4f64;
	color: #fff5df;
	font-family: var(--pixel-font);
	font-size: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	border: 2px solid #1c1306;
	border-radius: 2px;
	transform: rotate(-3deg);
}

/* Top-centre ESC reminder, shown only while walking (pointer locked) */
.walk-hint {
	position: fixed;
	left: 50%;
	/* Sits clear below the title header (its tallest, h1-capped, is ~151px). */
	top: 160px;
	z-index: 12;
	display: none;
	gap: 8px;
	max-width: calc(100vw - 28px);
	padding: 11px 18px;
	font-family: var(--pixel-font, ui-monospace, monospace);
	font-size: 0.62rem;
	letter-spacing: 0.03em;
	text-align: center;
	color: #fff5df;
	background: rgba(20, 13, 6, 0.9);
	border: 2px solid var(--accent, #ffd166);
	border-radius: 4px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
	pointer-events: none;
	transform: translateX(-50%);
}

.walk-hint strong {
	color: var(--accent, #ffd166);
}

body.is-walking .walk-hint {
	display: block;
}

@media (max-width: 760px) {
	/* The header wraps taller on phones (title + buttons stack), so drop the
	   hint further down to stay clear of it. */
	.walk-hint {
		top: 196px;
	}
}

/* Collapsible ADMIT ONE ticket */
body[data-variant='current'] .release-panel {
	transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-variant='current'] .release-panel.is-collapsed {
	transform: translateX(calc(100% - 30px));
}

body[data-variant='current'] .panel-toggle {
	position: absolute;
	top: 14px;
	left: -16px;
	width: 32px;
	height: 32px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--pixel-font);
	font-size: 0.9rem;
	color: #ffd166;
	background: #1c1306;
	border: 2px solid #ffd166;
	border-radius: 50%;
	box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
	cursor: pointer;
	z-index: 2;
}

body[data-variant='current'] .panel-toggle:hover {
	background: #2a1c08;
}

body[data-variant='current'] .panel-toggle-open {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	/* The "›" glyph isn't in Press Start 2P, so it falls back to a font whose
	   off-centre glyph drifts low-left. Draw a crisp chevron instead, centred by
	   construction regardless of the visitor's fonts. */
	font-size: 0;
}

body[data-variant='current'] .panel-toggle-open::before {
	content: '';
	box-sizing: border-box;
	width: 8px;
	height: 8px;
	border: solid #ffd166;
	border-width: 2.5px 2.5px 0 0;
	transform: translateX(-2px) rotate(45deg);
}

body[data-variant='current'] .release-panel.is-collapsed .panel-toggle {
	left: -42px;
	width: auto;
	height: auto;
	padding: 10px 6px;
	border-radius: 6px 0 0 6px;
	writing-mode: vertical-rl;
}

body[data-variant='current'] .release-panel.is-collapsed .panel-toggle-open {
	display: none;
}

body[data-variant='current'] .panel-toggle-tab {
	display: none;
	font-size: 0.55rem;
	letter-spacing: 0.12em;
}

body[data-variant='current'] .release-panel.is-collapsed .panel-toggle-tab {
	display: inline-block;
}

@media (max-width: 760px) {
	/* The ticket becomes a narrow right-edge card (below the title HUD, clear of
	   the top-left movement pad) that starts collapsed to a tappable tab. These
	   need the data-variant prefix to beat the base panel rule's specificity. */
	body[data-variant='current'] .release-panel {
		left: auto;
		right: 0;
		top: 190px;
		bottom: auto;
		width: min(248px, 66vw);
		max-height: none;
		overflow: visible;
		padding: 14px 14px 16px;
	}
	body[data-variant='current'] .release-panel .ticket-stub {
		display: none;
	}
	body[data-variant='current'] .release-panel.is-collapsed {
		transform: translateX(100%);
	}
	body[data-variant='current'] h1 .title-stamp {
		display: none;
	}
}

@media (max-width: 760px) {
	.top-hud {
		left: 14px;
		right: 14px;
		top: 12px;
	}

	h1 {
		max-width: 220px;
	}

	.hud-actions {
		flex-direction: column;
	}

	.hud-actions button {
		min-height: 38px;
		padding: 0 12px;
		font-size: 0.86rem;
	}

	.release-panel {
		left: 14px;
		right: 14px;
		top: auto;
		bottom: 168px;
		width: auto;
		max-height: 32vh;
		overflow: auto;
		padding: 12px;
	}

	/* Keep the bottom-anchored desktop panel clear of the mobile movement pad. */
	body[data-variant='current'] .release-panel {
		bottom: 168px;
	}

	.release-panel h2 {
		font-size: 1.34rem;
		line-height: 1.02;
	}

	.release-panel p {
		margin-top: 7px;
		font-size: 0.84rem;
		line-height: 1.36;
	}

	.panel-links {
		margin-top: 10px;
		gap: 8px;
	}

	.panel-links a {
		min-height: 34px;
		padding: 0 11px;
		font-size: 0.8rem;
	}

	.tour-controls {
		bottom: 92px;
	}

	.mobile-pad {
		display: flex;
		top: auto;
		bottom: 168px;
	}

	.help-card {
		display: none;
	}

	/* Fit the whole room rail (Center · I … VII) across the phone width instead of
	   letting the later numbers run off the right edge. */
	.release-rail {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 6px;
		padding: 10px 10px 14px;
	}
	.release-rail::after {
		display: none;
	}
	#release-rail-track {
		gap: 5px;
		overflow: hidden;
	}
	#release-rail-track button.is-room {
		flex: 1 1 0;
		min-width: 0;
		margin: 0;
		padding: 0 2px;
	}
	body[data-variant='current'] .rail-center-button {
		font-size: 0.5rem;
		padding: 0 9px;
	}
	body[data-variant='current'] #release-rail-track button {
		font-size: 0.56rem;
	}
}

/* Developer overlay: live FPS / draw-call / light stats, shown when the URL has
   ?debug. Hidden by default. */
.debug-panel {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 60;
	display: none;
	white-space: pre;
	padding: 8px 11px;
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	font-size: 12px;
	line-height: 1.5;
	color: #c6f7c0;
	background: rgba(8, 12, 18, 0.82);
	border: 1px solid rgba(150, 230, 150, 0.35);
	border-radius: 6px;
	pointer-events: none;
	tab-size: 2;
}
.debug-panel.is-visible {
	display: block;
}

/* Embedded WordPress Playground modal (opened by clicking a focused picture) */
.playground-modal {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: none;
}

.playground-modal.is-open {
	display: block;
}

.playground-modal-backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(10, 8, 4, 0.8);
	cursor: zoom-out;
}

.playground-modal-dialog {
	position: absolute;
	inset: 3.5% 4%;
	display: flex;
	flex-direction: column;
	background: #140d05;
	border: 2px solid var(--accent, #ffd166);
	border-radius: 8px;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.62);
	overflow: hidden;
}

.playground-modal-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 14px;
	background: #1c1306;
	color: #fff5df;
	font-family: var(--pixel-font, ui-monospace, monospace);
	font-size: 0.66rem;
	letter-spacing: 0.03em;
}

.playground-modal-bar button {
	font-family: var(--pixel-font, ui-monospace, monospace);
	font-size: 0.8rem;
	line-height: 1;
	padding: 6px 10px;
	color: #1c1306;
	background: var(--accent, #ffd166);
	border: 2px solid #1c1306;
	border-radius: 3px;
	cursor: pointer;
}

.playground-modal-iframe {
	flex: 1;
	width: 100%;
	border: 0;
	background: #fff;
}
