/* rennspiel.net - the game's own two fonts, its yellow, its chequered band. */

@font-face {
	font-family: "Press Start 2P";
	src: url("../fonts/PressStart2P-Regular.woff2") format("woff2");
	font-display: swap;
}
@font-face {
	font-family: "VT323";
	src: url("../fonts/VT323-Regular.woff2") format("woff2");
	font-display: swap;
}

:root {
	--bg: #141322;
	--panel: #1f1e33;
	--panel-2: #2a2946;
	--line: #4a4878;
	--text: #ebe9f2;
	--muted: #aeacc8;
	--yellow: #f2c34a;
	--yellow-shadow: #7a2a1e;
	--red: #c9352b;
	--cyan: #8fdcff;
	--green: #57b552;
	--pixel: "Press Start 2P", "Courier New", monospace;
	--body: "VT323", "Courier New", monospace;
	--max: 1120px;
	--gutter: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--body);
	font-size: 23px;
	line-height: 1.3;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; display: block; }

p { max-width: 68ch; }

/* The band the title picture ends on. */
.band {
	height: 16px;
	background: repeating-conic-gradient(#e6e6e6 0 25%, #151515 0 50%) 0 0 / 16px 16px;
}

/* ---- header ---- */

.top {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(20, 19, 34, 0.94);
	border-bottom: 2px solid var(--line);
	backdrop-filter: blur(6px);
}
.top__in {
	max-width: var(--max);
	margin: 0 auto;
	padding: 10px var(--gutter);
	display: flex;
	align-items: center;
	gap: 12px 24px;
	flex-wrap: wrap;
}
.wordmark {
	font-family: var(--pixel);
	font-size: 18px;
	color: var(--yellow);
	text-decoration: none;
	text-shadow: 3px 3px 0 var(--yellow-shadow);
	letter-spacing: 1px;
	margin-right: auto;
}
.wordmark:hover { color: #ffe08a; }
.nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	align-items: center;
}
.nav a {
	color: var(--text);
	text-decoration: none;
	font-size: 22px;
}
.nav a:hover { color: var(--yellow); }
.nav .lang {
	font-family: var(--pixel);
	font-size: 11px;
	color: var(--muted);
	border: 2px solid var(--line);
	padding: 6px 8px;
}
.nav .lang:hover { color: var(--yellow); border-color: var(--yellow); }

/* ---- buttons ---- */

.btn {
	display: inline-block;
	font-family: var(--pixel);
	font-size: 12px;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	padding: 16px 20px;
	border: 3px solid var(--yellow);
	color: var(--yellow);
	background: var(--panel);
	box-shadow: 4px 4px 0 #000;
	cursor: pointer;
}
.btn:hover { color: #fff; border-color: #fff; }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.btn--primary { background: var(--yellow); color: #1b1408; }
.btn--primary:hover { background: #ffd866; color: #1b1408; border-color: #ffd866; }
.btn--small { font-size: 10px; padding: 10px 12px; }

/* ---- hero ---- */

.hero {
	background: #000;
	border-bottom: 2px solid var(--line);
}
.hero img {
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.lead {
	max-width: var(--max);
	margin: 0 auto;
	padding: 36px var(--gutter) 8px;
}
.lead p {
	font-size: 27px;
	line-height: 1.25;
	margin: 0 0 24px;
	max-width: 46ch;
}
.lead .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.lead .meta {
	margin: 26px 0 0;
	color: var(--muted);
	font-size: 21px;
}
.lead .meta span + span::before { content: " · "; color: var(--line); }

/* ---- sections ---- */

.section {
	max-width: var(--max);
	margin: 0 auto;
	padding: 56px var(--gutter) 16px;
	scroll-margin-top: 64px;
}
/* The privacy notice's channel section is linked from YouTube by its id. */
.legal [id] { scroll-margin-top: 64px; }
.section h2 {
	font-family: var(--pixel);
	font-size: 18px;
	color: var(--yellow);
	text-shadow: 3px 3px 0 var(--yellow-shadow);
	margin: 0 0 8px;
	line-height: 1.5;
}
.section h2::after {
	content: "";
	display: block;
	width: 96px;
	height: 8px;
	margin-top: 12px;
	background: repeating-conic-gradient(#e6e6e6 0 25%, #151515 0 50%) 0 0 / 8px 8px;
}
.section > p:first-of-type { margin-top: 24px; }
.section p { font-size: 24px; }

/* ---- trailer ---- */

.yt {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	border: 3px solid var(--line);
	box-shadow: 6px 6px 0 #000;
	margin-top: 28px;
	overflow: hidden;
}
.yt img, .yt iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.yt img { object-fit: cover; }
.yt__play {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: rgba(0, 0, 0, 0.18);
	cursor: pointer;
	display: grid;
	place-items: center;
	color: var(--text);
	font-family: var(--body);
	font-size: 24px;
	padding: 0;
}
.yt__play:hover { background: rgba(0, 0, 0, 0.05); }
.yt__play span {
	display: inline-grid;
	place-items: center;
	width: 84px;
	height: 84px;
	background: var(--yellow);
	border: 3px solid #1b1408;
	box-shadow: 4px 4px 0 #000;
}
.yt__play span::after {
	content: "";
	width: 0;
	height: 0;
	margin-left: 6px;
	border-left: 30px solid #1b1408;
	border-top: 18px solid transparent;
	border-bottom: 18px solid transparent;
}
.yt__play:hover span { background: #ffd866; }
.yt__play em {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 18px;
	text-align: center;
	font-style: normal;
	color: #fff;
	text-shadow: 2px 2px 0 #000;
	padding: 0 16px;
}
.yt--pending .yt__play { cursor: default; }
.yt--pending .yt__play span { display: none; }
.yt__note {
	color: var(--muted);
	font-size: 20px;
	margin: 12px 0 0;
}

/* ---- features ---- */

.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 22px;
	margin-top: 32px;
	padding: 0;
	list-style: none;
}
.features li {
	background: var(--panel);
	border: 2px solid var(--line);
	box-shadow: 4px 4px 0 #000;
	padding: 20px 22px 16px;
}
.features h3 {
	font-family: var(--pixel);
	font-size: 12px;
	line-height: 1.6;
	color: var(--cyan);
	margin: 0 0 14px;
}
.features ul {
	margin: 0;
	padding-left: 22px;
}
.features ul li {
	background: none;
	border: 0;
	box-shadow: none;
	padding: 0 0 8px;
	font-size: 22px;
}
.features ul li::marker { color: var(--yellow); }

/* ---- gallery ---- */

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 22px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}
.gallery figure { margin: 0; }
.gallery a {
	display: block;
	border: 2px solid var(--line);
	box-shadow: 4px 4px 0 #000;
	background: #000;
}
.gallery a:hover { border-color: var(--yellow); }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption {
	color: var(--muted);
	font-size: 21px;
	margin-top: 8px;
}

.lightbox {
	border: 3px solid var(--line);
	background: #000;
	padding: 0;
	max-width: min(96vw, 1600px);
	box-shadow: 8px 8px 0 #000;
	color: var(--text);
}
.lightbox::backdrop { background: rgba(10, 9, 20, 0.9); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	background: var(--panel);
	border-top: 2px solid var(--line);
	font-size: 21px;
}
.lightbox__bar p { margin: 0 auto 0 0; }
.lightbox__bar button {
	font-family: var(--pixel);
	font-size: 10px;
	background: var(--panel-2);
	color: var(--text);
	border: 2px solid var(--line);
	padding: 8px 10px;
	cursor: pointer;
}
.lightbox__bar button:hover { border-color: var(--yellow); color: var(--yellow); }

/* ---- facts ---- */

.facts {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 10px 28px;
	margin: 28px 0 0;
	font-size: 23px;
}
.facts dt { color: var(--yellow); }
.facts dd { margin: 0; }
@media (max-width: 560px) {
	.facts { grid-template-columns: 1fr; gap: 2px; }
	.facts dd { margin-bottom: 12px; }
}

/* ---- contact ---- */

.contact {
	margin-top: 28px;
	background: var(--panel);
	border: 2px solid var(--line);
	box-shadow: 4px 4px 0 #000;
	padding: 20px 22px 24px;
	max-width: 640px;
}
.contact__topics {
	border: 0;
	padding: 0;
	margin: 0 0 22px;
	display: grid;
	gap: 8px;
}
.contact__topics legend {
	font-family: var(--pixel);
	font-size: 11px;
	color: var(--cyan);
	padding: 0;
	margin-bottom: 14px;
}
.contact__topics label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 23px;
}
.contact__topics input {
	appearance: none;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 2px solid var(--line);
	background: var(--bg);
	flex: none;
}
.contact__topics input:checked { background: var(--yellow); border-color: var(--yellow); box-shadow: inset 0 0 0 3px var(--bg); }
.contact__topics input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---- text pages ---- */

.page {
	max-width: 820px;
	margin: 0 auto;
	padding: 48px var(--gutter) 32px;
}
.page h1 {
	font-family: var(--pixel);
	font-size: 20px;
	line-height: 1.5;
	color: var(--yellow);
	text-shadow: 3px 3px 0 var(--yellow-shadow);
	margin: 0 0 28px;
}
.page h2 {
	font-family: var(--pixel);
	font-size: 12px;
	line-height: 1.6;
	color: var(--cyan);
	margin: 36px 0 10px;
}
.page p, .page li { font-size: 23px; }
.page address { font-style: normal; }
.page h3 {
	font-family: var(--body);
	font-size: 26px;
	color: var(--yellow);
	margin: 26px 0 6px;
}
.page h4 {
	font-family: var(--body);
	font-size: 23px;
	color: var(--text);
	margin: 16px 0 4px;
}
.page ul { padding-left: 24px; }
.page ul li::marker { color: var(--yellow); }
/* Contact details are set as entities with hidden decoy characters between
   them, so a scraper gets junk and a reader gets the number. */
.obf .decoy { display: none; }

/* ---- footer ---- */

.foot {
	margin-top: 56px;
	border-top: 2px solid var(--line);
	background: var(--panel);
}
.foot__in {
	max-width: var(--max);
	margin: 0 auto;
	padding: 28px var(--gutter) 32px;
	color: var(--muted);
	font-size: 21px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	align-items: baseline;
}
.foot__in a { color: var(--text); text-decoration: none; }
.foot__in a:hover { color: var(--yellow); }
.foot__in .copy { margin-right: auto; }
.foot__legal {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter) 28px;
	color: var(--muted);
	font-size: 19px;
}

@media (max-width: 720px) {
	body { font-size: 21px; }
	.wordmark { font-size: 15px; }
	.nav a { font-size: 20px; }
	.lead p { font-size: 24px; }
	.section h2 { font-size: 15px; }
}
