/* SPDX-License-Identifier: GPL-3.0-or-later */
/* Arcade Planet homepage, 3D version "ORBIT": colours from shared/tokens/tokens.json, fonts served from this site.
   Everything reads without JavaScript; the hidden start states of the reveals exist only where scripts run
   (@media (scripting: enabled)) and motion is wanted. */

@font-face {
	font-family: 'Saira Condensed';
	src: url('../fonts/SairaCondensed-Medium.woff2') format('woff2');
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: 'Saira Condensed';
	src: url('../fonts/SairaCondensed-Bold.woff2') format('woff2');
	font-weight: 700;
	font-display: swap;
}

:root {
	--frame: #1c1a24;
	--frame-end: #0f0e14;
	--border: #6e6a7a;
	--title: #eeecf4;
	--primary: #b6b2c4;
	--secondary: #a4a0b4;
	--selector: #3b3747;
	--accent: #857990;
	--separator: #2b2935;
	--planet-light: #6a5a8c;
	--planet-dark: #0c0a12;
	--ring: #e2d9f2;
	--glow: rgba(200, 160, 255, 0.9);
	--shine: rgba(170, 130, 240, 0.35);
	--warn: #f0a040;
	--gold: #f2c14e;
	--radius: 0.3em;
	--head: 'Saira Condensed', 'Arial Narrow', sans-serif;
	--body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--glass: rgba(22, 20, 30, 0.72);
	/* what the themes change besides the colours above (css/themes.css): the ground of the page, bars, shapes */
	--bg0: #0b0a10;
	--bg1: #131119;
	--haze-a: #2a2238;
	--haze-b: #1d1830;
	--haze-c: #1f1a2e;
	--bar: rgba(15, 14, 20, 0.78);
	--bar-solid: rgba(15, 14, 20, 0.94);
	--glass-solid: rgba(22, 20, 30, 0.9);
	--glass-hover: rgba(30, 27, 41, 0.82);
	--card-hover: #45405a;
	--selector-end: #2e2a39;
	--sheen: rgba(226, 217, 242, 0.16);
	--quiet: rgba(15, 14, 20, 0.45);
	--key-bg: rgba(15, 14, 20, 0.35);
	--ink: rgba(15, 14, 20, 0.9);
	--cab-edge: #4a4559;
	--cab-a: #2a2733;
	--cab-b: #17151e;
	--stick-a: #a99bd0;
	--stick-b: #4a3f66;
	--foot-a: rgba(15, 14, 20, 0.55);
	--foot-b: rgba(11, 10, 16, 0.9);
	--focus: var(--ring);
	--card-radius: 0.5rem;
	--head-track: 0em;
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

html {
	background: var(--bg0);
	scroll-behavior: smooth;
	scroll-padding-top: 5rem;
}

body {
	margin: 0;
	color: var(--primary);
	font: 400 1.0625rem/1.6 var(--body);
	overflow-x: hidden;
	/* deep space: two soft lavender hazes on the dark frame; the stars are 3D (or these few dots without WebGL) */
	background:
		radial-gradient(1px 1px at 12% 18%, #fff7 50%, transparent 51%),
		radial-gradient(1px 1px at 78% 9%, #fff5 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 64% 31%, #fff4 50%, transparent 51%),
		radial-gradient(1px 1px at 33% 42%, #fff3 50%, transparent 51%),
		radial-gradient(1px 1px at 90% 47%, #fff4 50%, transparent 51%),
		radial-gradient(1px 1px at 6% 61%, #fff3 50%, transparent 51%),
		radial-gradient(1px 1px at 48% 77%, #fff3 50%, transparent 51%),
		radial-gradient(90rem 60rem at 78% -10%, var(--haze-a) 0%, transparent 60%),
		radial-gradient(70rem 50rem at -10% 45%, var(--haze-b) 0%, transparent 60%),
		radial-gradient(80rem 50rem at 100% 100%, var(--haze-c) 0%, transparent 60%),
		linear-gradient(var(--bg1), var(--bg0));
	background-attachment: fixed;
}

img {
	max-width: 100%;
}

a {
	color: var(--title);
}
:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 3px;
	border-radius: var(--radius);
}

.wrap {
	width: min(100% - 2.5rem, 72rem);
	margin-inline: auto;
}

.skip {
	position: absolute;
	left: -999rem;
	top: 0.5rem;
	z-index: 30;
	padding: 0.5rem 0.9rem;
	background: var(--selector);
	font: 500 1rem/1 var(--head);
	text-transform: uppercase;
}
.skip:focus {
	left: 0.5rem;
}

/* ---------- the 3D sky ---------- */
#space {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100vh;
	height: 100lvh;
	z-index: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.gl #space {
	opacity: var(--space-dim, 1);
}
header,
main,
footer,
.orbit-nav {
	position: relative;
	z-index: 1;
}
/* the reveals slide cards in from the right: never a sideways scroll while they are on their way */
main {
	overflow-x: clip;
}

/* ---------- top bar ---------- */
.top {
	position: sticky;
	top: 0;
	z-index: 20;
	border-bottom: 1px solid transparent;
	transition:
		background 0.42s,
		border-color 0.42s;
}
.top.stuck {
	background: var(--bar);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom-color: var(--separator);
}
/* without scripts nobody sets .stuck: the bar keeps its glass, or the page runs through the words of the bar */
@media (scripting: none) {
	.top {
		background: var(--bar-solid);
		border-bottom-color: var(--separator);
	}
}
.bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 0;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--title);
	font: 700 1.3rem/1 var(--head);
	letter-spacing: 0.06em;
	text-decoration: none;
	white-space: nowrap;
}
.brand img {
	width: 2.9rem;
	height: auto;
}
.top nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.2rem 1.4rem;
}
.top nav a {
	position: relative;
	padding: 0.35rem 0;
	color: var(--secondary);
	font: 500 1.05rem/1 var(--head);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 0.22s;
}
.top nav a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--ring);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.top nav a:hover,
.top nav a[aria-current] {
	color: var(--title);
}
.top nav a:hover::after,
.top nav a[aria-current]::after {
	transform: scaleX(1);
}
.top nav .lang {
	padding-inline: 0.5rem;
	border: 1px solid var(--separator);
	border-radius: var(--radius);
}
.top nav .lang::after {
	display: none;
}

/* ---------- orbit nav (wide screens): the way around the planet ---------- */
.orbit-nav {
	display: none;
}
/* only where the margin beside the 72rem column holds the labels (at 1280 px they lay on the cards); in the left
   margin, because the planet rests in the right one (js/scene.js) and no label may stand on it */
@media (min-width: 1420px) {
	.orbit-nav {
		position: fixed;
		z-index: 15;
		left: 1.6rem;
		top: 50%;
		display: flex;
		flex-direction: column;
		gap: 2.1rem;
		transform: translateY(-50%);
	}
	.orbit-nav::before {
		content: '';
		position: absolute;
		left: 3px;
		top: 4px;
		bottom: 4px;
		width: 1px;
		background: linear-gradient(transparent, var(--border) 12%, var(--border) 88%, transparent);
		opacity: 0.6;
	}
	.orbit-nav a {
		position: relative;
		display: flex;
		flex-direction: row-reverse;
		align-items: center;
		justify-content: flex-end;
		gap: 0.8rem;
		height: 7px;
		color: var(--secondary);
		font: 500 0.8rem/1 var(--head);
		letter-spacing: 0.14em;
		text-transform: uppercase;
		text-decoration: none;
	}
	.orbit-nav a span {
		opacity: 0;
		transform: translateX(-6px);
		transition:
			opacity 0.22s,
			transform 0.22s;
	}
	.orbit-nav a::after {
		content: '';
		width: 7px;
		height: 7px;
		border-radius: 50%;
		background: var(--frame-end);
		border: 1px solid var(--border);
		transition:
			background 0.22s,
			border-color 0.22s;
	}
	.orbit-nav a:hover span,
	.orbit-nav a:focus-visible span,
	.orbit-nav a[aria-current] span {
		opacity: 1;
		transform: none;
	}
	.orbit-nav a[aria-current] {
		color: var(--title);
	}
	.orbit-nav a[aria-current]::after {
		border-color: var(--ring);
	}
	/* the moon that travels along the line (placed by js/main.js) */
	.orbit-nav .moon {
		position: absolute;
		z-index: 1;
		left: -1px;
		top: -1px;
		width: 9px;
		height: 9px;
		border-radius: 50%;
		background: var(--ring);
		box-shadow: 0 0 10px 2px var(--glow);
		opacity: 0;
		pointer-events: none;
	}
	.ready .orbit-nav .moon {
		opacity: 1;
	}
	/* the hero belongs to the whole ring: the way appears once it has gone up */
	.orbit-nav {
		transition:
			opacity 0.42s,
			visibility 0.42s;
	}
	.gl.at-start .orbit-nav {
		opacity: 0;
		visibility: hidden;
	}
}

/* ---------- hero ---------- */
.hero {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: calc(100vh - 4.6rem);
	min-height: calc(100svh - 4.6rem);
	padding: 2rem 0 0;
}
.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 36rem) 1fr;
	gap: 2rem;
	align-items: center;
	flex: 1;
}
.kicker {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	color: var(--secondary);
	font: 500 1rem/1 var(--head);
	letter-spacing: 0.28em;
	text-transform: uppercase;
}
.kicker::before {
	content: '';
	width: 2.4rem;
	height: 1px;
	background: var(--accent);
}
h1 {
	margin: 1.1rem 0 1.3rem;
	color: var(--title);
	font: 700 clamp(3.3rem, 7vw, 6rem) / 0.94 var(--head);
	letter-spacing: 0.005em;
	text-transform: uppercase;
	text-shadow: 0 0 3rem var(--ink);
}
h1 .ch {
	display: inline-block;
	will-change: transform, opacity;
}
.lead {
	max-width: 32rem;
	margin: 0;
	font-size: 1.12rem;
	text-shadow: 0 0 1rem var(--frame-end);
}
.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 1.9rem;
}
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.8rem 1.4rem 0.8rem 0.95rem;
	border-left: 3px solid var(--accent);
	border-radius: var(--radius);
	background: linear-gradient(90deg, var(--selector), var(--selector-end));
	color: var(--title);
	font: 500 1.3rem/1 var(--head);
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	overflow: hidden;
	transition:
		border-color 0.22s,
		box-shadow 0.42s;
}
/* a soft light that sweeps over the bar, like the selected row of the app */
.btn::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 20%, var(--sheen) 50%, transparent 80%);
	transform: translateX(-110%);
	transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn:hover,
.btn:focus-visible {
	border-left-color: var(--ring);
	box-shadow: 0 0 2.2rem -0.6rem var(--glow);
}
.btn:hover::before,
.btn:focus-visible::before {
	transform: translateX(110%);
}
.btn.quiet {
	background: var(--quiet);
	border: 1px solid var(--separator);
	border-left: 3px solid var(--separator);
	color: var(--primary);
}
.key {
	position: relative;
	padding: 0.28rem 0.42rem;
	border: 1px solid var(--accent);
	border-bottom-width: 2px;
	border-radius: var(--radius);
	background: var(--key-bg);
	color: var(--primary);
	font: 500 0.78rem/1 var(--head);
	letter-spacing: 0.06em;
	transition:
		transform 0.12s,
		border-color 0.12s,
		color 0.12s;
}
.btn:active .key,
.btn.pressed .key {
	transform: translateY(1px);
	border-color: var(--ring);
	color: var(--title);
}
.note {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: baseline;
	margin-top: 1.5rem;
	color: var(--secondary);
	font-size: 0.92rem;
}
.note b {
	color: var(--warn);
	font: 500 0.95rem/1 var(--head);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.note + .note {
	margin-top: 0.5rem;
}
.note a {
	color: var(--primary);
}
.note a:hover {
	color: var(--title);
}
.planet-flat {
	justify-self: center;
	width: min(100%, 30rem);
	height: auto;
	transition: opacity 0.9s ease;
}
/* the real 3D planet takes its place */
.gl .planet-flat {
	opacity: 0;
}
.specs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 2.6rem;
	margin-block: 2rem 1.6rem;
	padding: 1rem 0 0;
	border-top: 1px solid var(--separator);
	list-style: none;
	color: var(--title);
	font: 500 1.05rem/1.2 var(--head);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.specs span {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--secondary);
	font-size: 0.78rem;
	letter-spacing: 0.2em;
}

/* ---------- sections ---------- */
section[id]:not(.hero) {
	padding-block: clamp(4rem, 10vw, 7.5rem) 0;
}
.showcase {
	padding-top: clamp(1.5rem, 5vw, 4rem);
}
.head {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 1.6rem;
}
.head .idx {
	color: var(--secondary);
	font: 500 1rem/1 var(--head);
	letter-spacing: 0.2em;
}
.head h2 {
	margin: 0;
	color: var(--title);
	font: 700 clamp(2.2rem, 5vw, 3.4rem) / 1 var(--head);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.head .rule {
	flex: 1;
	height: 1px;
	align-self: center;
	background: linear-gradient(90deg, var(--border), transparent);
	transform-origin: left;
	opacity: 0.7;
}
.intro {
	max-width: 44rem;
	margin: -0.4rem 0 1.6rem;
}

/* screenshot frame */
.shot {
	margin: 0;
	border: 1px solid var(--separator);
	border-radius: var(--card-radius);
	overflow: hidden;
	background: var(--frame);
	box-shadow:
		0 1.5rem 4rem #000a,
		0 0 0 1px #0006;
}
.shot img {
	display: block;
	width: 100%;
	height: auto;
}
.shot figcaption {
	padding: 0.6rem 0.95rem;
	border-top: 1px solid var(--separator);
	color: var(--secondary);
	font: 500 0.95rem/1.2 var(--head);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
/* the big screenshot in an arcade cabinet: marquee on top, control panel below (static, decoration only) */
.cab {
	width: min(62rem, 100%);
	margin: 0 auto;
}
.cab-body {
	padding: 0 0.8rem;
	border: 1px solid var(--cab-edge);
	border-radius: 0.9rem 0.9rem 0.5rem 0.5rem;
	background: linear-gradient(180deg, var(--cab-a), var(--cab-b));
	box-shadow:
		0 0 0 1px var(--frame-end),
		0 2.5rem 6rem #000c,
		0 0 7rem -2rem var(--shine);
}
.cab-marquee {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.7rem 0.4rem 0.6rem;
	color: var(--ring);
	font: 700 0.95rem/1 var(--head);
	letter-spacing: 0.32em;
	text-shadow: 0 0 0.8rem var(--glow);
}
.cab-marquee span:last-child {
	color: var(--secondary);
	font-weight: 500;
	text-shadow: none;
}
.cab-marquee i {
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, color-mix(in srgb, var(--ring) 50%, transparent), color-mix(in srgb, var(--ring) 5%, transparent));
}
.cab-screen {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--planet-dark);
	border-radius: 0.35rem;
	background: var(--frame);
	box-shadow:
		0 0 0 1px var(--selector),
		0 0 2.4rem var(--shine);
}
.cab-screen img {
	display: block;
	width: 100%;
	height: auto;
}
/* a faint sheen of glass and the lines of an old screen, barely there */
.cab-glass {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(115deg, #ffffff10 0%, transparent 28%, transparent 100%),
		repeating-linear-gradient(180deg, transparent 0 2px, #0000000f 2px 3px);
}
.cab-panel {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	padding: 0.75rem 0.6rem 0.8rem;
}
.stick {
	width: 1.05rem;
	height: 1.05rem;
	margin-left: 0.5rem;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, var(--stick-a), var(--stick-b) 60%, var(--frame));
	box-shadow:
		0 0 0 0.3rem var(--frame),
		0 0 0 calc(0.3rem + 1px) var(--cab-edge);
}
.dots {
	display: flex;
	gap: 0.55rem;
	margin-left: 0.6rem;
}
.dots i {
	width: 0.8rem;
	height: 0.8rem;
	border: 1px solid var(--accent);
	border-radius: 50%;
	background: var(--selector);
}
.dots i:first-child {
	background: var(--ring);
	box-shadow: 0 0 0.7rem var(--glow);
}
.cab-led {
	width: 2.4rem;
	height: 3px;
	margin-left: auto;
	border-radius: 2px;
	background: var(--ring);
	box-shadow: 0 0 0.8rem var(--glow);
	opacity: 0.8;
}
.cab figcaption {
	margin-top: 1rem;
	color: var(--secondary);
	font: 500 0.95rem/1.3 var(--head);
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
}

/* cards */
.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}
.card {
	position: relative;
	padding: 1.4rem 1.4rem 1.5rem;
	border: 1px solid var(--separator);
	border-radius: var(--card-radius);
	background: var(--glass);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition:
		border-color 0.42s,
		background 0.42s;
}
.card::before {
	content: '';
	position: absolute;
	left: -1px;
	top: 1.3rem;
	width: 3px;
	height: 1.7rem;
	border-radius: 2px;
	background: var(--accent);
	transition:
		background 0.22s,
		box-shadow 0.22s;
}
.card:hover {
	border-color: var(--card-hover);
	background: var(--glass-hover);
}
.card:hover::before {
	background: var(--ring);
	box-shadow: 0 0 12px var(--glow);
}
.card svg {
	width: 1.7rem;
	height: 1.7rem;
	fill: none;
	stroke: var(--ring);
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0.85;
}
.card h3 {
	margin: 0.8rem 0 0.4rem;
	color: var(--title);
	font: 500 1.4rem/1.1 var(--head);
	letter-spacing: 0.03em;
	text-transform: uppercase;
}
.card p {
	margin: 0;
	font-size: 0.98rem;
}

/* online */
.split {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 1.6rem;
	align-items: center;
}
.panel {
	padding: 1.4rem 1.5rem 1rem;
	border: 1px solid var(--separator);
	border-radius: var(--card-radius);
	background: var(--glass);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}
.panel p {
	margin: 0.6rem 0 1.1rem;
}
.link {
	display: block;
	width: 100%;
	max-width: 22rem;
	height: auto;
	margin-inline: auto;
	fill: none;
	stroke: var(--border);
	stroke-width: 1.2;
	stroke-linecap: round;
}
.link .node rect {
	fill: var(--frame);
	stroke: var(--primary);
}
.link .direct {
	stroke: var(--ring);
	stroke-width: 1.6;
	filter: drop-shadow(0 0 3px var(--glow));
}
.link .find {
	stroke-dasharray: 0.012 0.018;
}
.link .server {
	fill: var(--accent);
	stroke: none;
}
.link .pulse {
	fill: var(--title);
	stroke: none;
	opacity: 0;
}
.link text {
	fill: var(--secondary);
	stroke: none;
	font: 500 8.5px var(--head);
	letter-spacing: 0.14em;
}
.link text.hi {
	fill: var(--title);
}
.facts {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--separator);
	list-style: none;
}
.facts li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--separator);
	font: 500 1.05rem/1.3 var(--head);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.facts li:last-child {
	border-bottom: 0;
}
.facts li span:last-child {
	color: var(--title);
	text-align: right;
}

/* themes: a small dot in the colour of each theme before its name */
.trio figcaption {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.trio figcaption::before {
	content: '';
	flex: none;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--tint);
	box-shadow: 0 0 0.6rem var(--tint);
}
.t-cyber {
	--tint: #58c8d4;
}
.t-ghost {
	--tint: #ff9a4a;
}
.t-newyear {
	--tint: var(--gold);
}
.trio {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}
.trio .shot {
	transition:
		border-color 0.42s,
		box-shadow 0.42s;
}
.trio .shot:hover {
	border-color: var(--accent);
	box-shadow:
		0 1.5rem 4rem #000a,
		0 0 3rem -1rem var(--glow);
}

/* download */
.dl {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
.dl .card {
	padding-block: 1.6rem 1.7rem;
}
.dl .card h3 {
	margin-top: 0;
	font-size: 1.7rem;
}
/* what Arcade Planet never ships: games, BIOS, firmware, keys */
.notice {
	margin-top: 1rem;
	padding: 1.3rem 1.4rem 1.4rem;
	border: 1px solid var(--separator);
	border-left: 3px solid var(--warn);
	border-radius: var(--card-radius);
	background: var(--glass);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}
.notice h3 {
	margin: 0 0 0.45rem;
	color: var(--title);
	font: 500 1.4rem/1.1 var(--head);
	letter-spacing: 0.03em;
	text-transform: uppercase;
}
.notice p {
	margin: 0;
	font-size: 0.98rem;
}
.state {
	float: right;
	margin-left: 1rem;
	padding: 0.32rem 0.6rem;
	border: 1px solid var(--accent);
	border-radius: var(--radius);
	color: var(--ring);
	font: 500 0.9rem/1 var(--head);
	letter-spacing: 0.18em;
}

/* footer */
footer {
	/* room for the last look at the planet */
	margin-top: clamp(5rem, 14vw, 10rem);
	padding: 1.6rem 0 2.4rem;
	border-top: 1px solid var(--separator);
	background: linear-gradient(var(--foot-a), var(--foot-b));
	color: var(--secondary);
}
footer .row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem 1.5rem;
	margin-bottom: 0.9rem;
}
footer .caps {
	color: var(--title);
	font: 700 1.05rem/1 var(--head);
	letter-spacing: 0.08em;
}
footer nav {
	display: flex;
	gap: 1.4rem;
}
footer nav a {
	font: 500 1rem/1 var(--head);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-underline-offset: 0.25em;
}
footer small {
	display: block;
	max-width: 60rem;
	font-size: 0.85rem;
	line-height: 1.55;
}

/* ---------- start states of the reveals: only where scripts run and motion is wanted ---------- */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
	[data-intro],
	[data-letters],
	[data-reveal='rise'],
	[data-reveal='head'],
	[data-reveal='moons'] > * {
		opacity: 0;
	}
	/* safety net: if the script never arrives, everything shows after a moment */
	:root:not(.ready) :is([data-intro], [data-letters], [data-reveal='rise'], [data-reveal='head'], [data-reveal='moons'] > *) {
		animation: late-show 0.6s 2.5s forwards;
	}
}
@keyframes late-show {
	to {
		opacity: 1;
	}
}

/* ---------- no motion wanted: one still picture of the planet that scrolls away with the hero ---------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	#space {
		position: absolute;
		transition: none;
	}
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
	/* phone and upright tablet: the planet floats above, the words stand below it */
	.hero {
		justify-content: flex-end;
		padding-top: 0;
	}
	.hero-grid {
		grid-template-columns: 1fr;
		gap: 0;
		align-items: end;
	}
	.hero-text {
		order: 2;
	}
	.planet-flat {
		order: 1;
		width: min(78%, 20rem);
		margin-block: 1rem 0.5rem;
	}
	.gl .planet-flat {
		/* keep the room for the 3D planet */
		height: 36svh;
		margin: 0;
	}
	.cards {
		grid-template-columns: repeat(2, 1fr);
	}
	.split {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 760px) {
	body {
		font-size: 1rem;
	}
	.bar {
		padding: 0.7rem 0;
	}
	.brand {
		font-size: 1.1rem;
	}
	.brand img {
		width: 2.3rem;
	}
	.top nav {
		gap: 0.1rem 0.9rem;
	}
	.top nav a {
		font-size: 0.92rem;
		letter-spacing: 0.03em;
	}
	h1 {
		margin: 0.8rem 0 0.9rem;
	}
	.lead {
		font-size: 1rem;
	}
	.actions {
		margin-top: 1.3rem;
	}
	.btn {
		font-size: 1.15rem;
		padding: 0.75rem 1.1rem 0.75rem 0.8rem;
	}
	.note {
		margin-top: 1.1rem;
	}
	.specs {
		gap: 0.7rem 1.6rem;
		margin-block: 1.4rem 1.2rem;
		font-size: 0.95rem;
	}
	.cards,
	.trio,
	.dl {
		grid-template-columns: 1fr;
	}
	.card,
	.panel {
		background: var(--glass-solid);
	}
	.facts li {
		font-size: 0.98rem;
	}
}
@media (max-width: 760px), (pointer: coarse) {
	.top.stuck {
		background: var(--bar-solid);
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}
	.card,
	.panel {
		background: var(--glass-solid);
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}
}
@media (max-width: 760px) {
	.cab-body {
		padding: 0 0.4rem;
	}
	.cab-marquee {
		font-size: 0.72rem;
		letter-spacing: 0.22em;
	}
	.cab-panel {
		padding-block: 0.5rem;
	}
}
/* with the tabs WIKI and BLOG the bar no longer holds every link on one line (measured from 320 to 1100 px, all
   themes, DE and EN): the links to sections of the start page give way – "Online" first, then "Die App" (both one
   scroll further down); wiki and blog keep their tabs */
@media (max-width: 819.98px) {
	.top nav a[href$='#online'] {
		display: none;
	}
}
@media (max-width: 559.98px) {
	.top nav a[href$='#app'] {
		display: none;
	}
}
@media (max-width: 380px) {
	.top nav {
		gap: 0.1rem 0.7rem;
	}
	.top nav a {
		font-size: 0.88rem;
	}
}
@media (max-width: 420px) {
	.brand {
		font-size: 0;
		gap: 0;
	}
	.specs li:nth-child(n + 4) {
		display: none;
	}
}

/* with the 3D sky the page ends on the planet: room between the download cards and the footer */
.gl footer {
	margin-top: max(46vh, 16rem);
}
@media (prefers-reduced-motion: reduce) {
	.gl footer {
		margin-top: clamp(5rem, 14vw, 10rem);
	}
}
