/* SPDX-License-Identifier: GPL-3.0-or-later */
/* Arcade Planet homepage: the theme switch and the four other themes of the app (Cyberpunk, Geisterstunde, Neujahr,
   Weihnachten). The default look "Arcade Planet" is css/style.css alone. A theme is on while <html> carries
   data-theme="<id>" (set by js/theme-early.js before first paint and by js/themes.js after a choice); its colours are
   those of the app's theme (modules/app/themes/<id>/theme.json: colors, menuColors). Each theme changes the variables
   of style.css, brings its own fonts (loaded only while it is on) and one small, still effect of its own; the 3D
   planet and what moves are in js/scene.js. Nothing here moves by itself. */

/* ---------- fonts of the themes (OFL / Apache 2.0, licences next to the files); a browser fetches a font only when
   a rule that is in use names it, and js/theme-early.js preloads those of the theme that is on. size-adjust brings
   each one to the width of Saira Condensed, so no layout breaks. The stacks of the themes do not name Saira
   Condensed: while a font of a theme is on its way the browser would fetch Saira for nothing */
@font-face {
	font-family: 'AP Oxanium';
	src: url('../fonts/Oxanium-Variable.woff2') format('woff2');
	font-weight: 200 800;
	font-display: swap;
	size-adjust: 76%;
}
@font-face {
	font-family: 'AP Rajdhani';
	src: url('../fonts/Rajdhani-Medium.woff2') format('woff2');
	font-weight: 100 900;
	font-display: swap;
	size-adjust: 108%;
}
@font-face {
	font-family: 'AP Special Elite';
	src: url('../fonts/SpecialElite-Regular.woff2') format('woff2');
	font-weight: 100 900;
	font-display: swap;
	size-adjust: 75%;
}
@font-face {
	font-family: 'AP Courier Prime';
	src: url('../fonts/CourierPrime-Regular.woff2') format('woff2');
	font-weight: 100 500;
	font-display: swap;
	size-adjust: 92%;
}
@font-face {
	font-family: 'AP Courier Prime';
	src: url('../fonts/CourierPrime-Bold.woff2') format('woff2');
	font-weight: 600 900;
	font-display: swap;
	size-adjust: 92%;
}
@font-face {
	font-family: 'AP Poiret One';
	src: url('../fonts/PoiretOne-Regular.woff2') format('woff2');
	font-weight: 100 900;
	font-display: swap;
	size-adjust: 84%;
}

/* ---------- the switch ---------- */

/* the one drawing of the small planet (<symbol> at the top of the page) */
.defs {
	position: absolute;
}
/* words only for screen readers (the name of the switch: "Theme: <name>") */
.vh {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.mini {
	flex: none;
	width: 2rem;
	height: 1.25rem;
	overflow: visible;
}
.mp-ball {
	fill: var(--m-ball, var(--planet-light));
	stroke: var(--m-edge, transparent);
	stroke-width: 1;
}
.mp-ring {
	fill: none;
	stroke: var(--m-ring, var(--ring));
	stroke-width: 1.3;
	stroke-linecap: round;
}
/* the planet of each theme, small: in the list always, on the button for the theme that is on */
.m-arcadeplanet {
	--m-ball: #6a5a8c;
	--m-ring: #e2d9f2;
}
.m-cyberpunk,
[data-theme='cyberpunk'] .theme-btn .mini {
	--m-ball: #3a1117;
	--m-edge: #ff5a4f;
	--m-ring: #5ef6ff;
}
.m-halloween,
[data-theme='halloween'] .theme-btn .mini {
	--m-ball: #d8701c;
	--m-ring: #e6d6ac;
}
.m-neujahr,
[data-theme='neujahr'] .theme-btn .mini {
	--m-ball: #3d51a0;
	--m-edge: #d9b36a;
	--m-ring: #d9b36a;
}
.m-weihnachten,
[data-theme='weihnachten'] .theme-btn .mini {
	--m-ball: #77acdc;
	--m-edge: #e2f4ff;
	--m-ring: #dcf4ff;
}

/* without scripts there is no switch (js/themes.js sets .themes) and the page is Arcade Planet */
.theme-pick,
.theme-try {
	display: none;
}
.themes .theme-pick {
	position: relative;
	display: block;
}
.theme-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.2rem 0.4rem 0.2rem 0.3rem;
	border: 1px solid var(--separator);
	border-radius: var(--radius);
	background: var(--quiet);
	color: var(--secondary);
	font: 500 1.05rem/1 var(--head);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition:
		color 0.22s,
		border-color 0.22s;
}
.theme-btn:hover,
.theme-btn[aria-expanded='true'] {
	border-color: var(--accent);
	color: var(--title);
}
.theme-btn .key {
	padding: 0.2rem 0.34rem;
	font-size: 0.7rem;
}
.theme-menu {
	position: absolute;
	z-index: 30;
	right: 0;
	top: calc(100% + 0.55rem);
	min-width: 14rem;
	margin: 0;
	padding: 0.35rem;
	border: 1px solid var(--border);
	border-radius: var(--card-radius);
	background: var(--frame);
	box-shadow: 0 1.2rem 3rem #000c;
	list-style: none;
	animation: menu-in 0.18s ease-out;
}
.theme-menu[hidden] {
	display: none;
}
@keyframes menu-in {
	from {
		opacity: 0;
		transform: translateY(-0.3rem);
	}
}
.theme-menu button,
.chip {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	border: 0;
	border-left: 3px solid transparent;
	border-radius: var(--radius);
	background: none;
	color: var(--primary);
	font: 500 1.12rem/1 var(--head);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: left;
	white-space: nowrap;
	cursor: pointer;
}
.theme-menu button {
	width: 100%;
	padding: 0.6rem 0.7rem 0.6rem 0.55rem;
}
.theme-menu button:hover,
.theme-menu button:focus-visible {
	border-left-color: var(--accent);
	background: linear-gradient(90deg, var(--selector), var(--selector-end));
	color: var(--title);
}
.theme-menu button:focus-visible {
	outline-offset: -2px;
}
/* the theme that is on: a small light at the end of its row */
.theme-menu button::after {
	content: '';
	width: 0.45rem;
	height: 0.45rem;
	margin-left: auto;
	border-radius: 50%;
}
.theme-menu button[aria-checked='true'] {
	color: var(--title);
}
.theme-menu button[aria-checked='true']::after {
	background: var(--ring);
	box-shadow: 0 0 0.6rem var(--glow);
}

/* the same choice in the section "Themes": try it where the themes are described */
.themes .theme-try {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.9rem 1.6rem;
	margin: 0 0 1.4rem;
	padding: 0.9rem 1.1rem;
	border: 1px solid var(--separator);
	border-radius: var(--card-radius);
	background: var(--glass);
}
.theme-try p {
	margin: 0;
	font-size: 0.98rem;
}
.theme-try b {
	display: block;
	color: var(--title);
	font: 500 1.25rem/1.2 var(--head);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.chip {
	gap: 0.5rem;
	padding: 0.5rem 0.8rem 0.5rem 0.5rem;
	border: 1px solid var(--separator);
	border-left: 3px solid var(--separator);
	background: var(--quiet);
	font-size: 1.05rem;
}
.chip:hover {
	border-color: var(--accent);
	color: var(--title);
}
.chip[aria-pressed='true'] {
	border-color: var(--accent);
	border-left-color: var(--ring);
	background: linear-gradient(90deg, var(--selector), var(--selector-end));
	color: var(--title);
}
/* narrower screens and phones: the button is the small planet alone, in the row of the bar (its name stays for
   screen readers); a touch target of 40 × 40 px that does not make the bar taller. Below 640 px the bar shows the
   logo without the words, below 420 px it runs a little tighter, so it keeps one row down to 320 px in every theme */
@media (max-width: 960px) {
	.theme-btn .theme-now {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
	.theme-btn .key {
		display: none;
	}
	.theme-btn {
		justify-content: center;
		min-width: 2.5rem;
		min-height: 2.5rem;
		margin-block: -0.5rem;
		padding: 0 0.2rem;
	}
	.theme-btn .mini {
		width: 1.8rem;
		height: 1.125rem;
	}
}
@media (max-width: 760px) {
	.theme-menu button {
		padding-block: 0.8rem;
	}
	.chip {
		padding-block: 0.65rem;
	}
	.themes .theme-try {
		background: var(--glass-solid);
	}
}
@media (max-width: 640px) {
	.themes .brand {
		font-size: 0;
		gap: 0;
	}
	.themes .top nav {
		gap: 0.1rem 0.75rem;
	}
}
@media (max-width: 420px) {
	.themes .bar {
		gap: 0.6rem;
	}
	.themes .top nav {
		gap: 0.1rem 0.45rem;
	}
	.themes .top nav a {
		font-size: 0.8rem;
		letter-spacing: 0;
	}
	.themes .top nav .lang {
		padding-inline: 0.4rem;
	}
}
@media (max-width: 350px) {
	.themes .top nav {
		gap: 0.1rem 0.2rem;
	}
	.themes .top nav a {
		font-size: 0.72rem;
	}
}

/* the change itself: one cross-fade of the whole page (view transition), or – where a browser has none – the colours
   run over for a moment (.theme-fade, set by js/themes.js). Neither with reduced motion. */
::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 0.5s;
}
.theme-fade,
.theme-fade *,
.theme-fade *::before,
.theme-fade *::after {
	transition:
		color 0.5s,
		background-color 0.5s,
		border-color 0.5s,
		fill 0.5s,
		stroke 0.5s,
		box-shadow 0.5s !important;
}

/* =====================================================================================================
   CYBERPUNK – the screen of an interface at night: red-black, thin coral lines and type, the chosen in
   cyan, frames with a cut corner, key hints in boxes, fine scan lines and the corners of a HUD
   ===================================================================================================== */
[data-theme='cyberpunk'] {
	--frame: #0d0507;
	--frame-end: #080304;
	--border: #ff5a4f;
	--title: #efe9df;
	--primary: #ff6457;
	/* small type in the coral of the app's pop-up texts: Secondary (#d0544a) is too weak for it (WCAG AA) */
	--secondary: #ff8a7e;
	--selector: rgba(94, 246, 255, 0.2);
	--accent: #ff5a4f;
	--separator: rgba(255, 90, 79, 0.18);
	--planet-light: #3a1117;
	--planet-dark: #070304;
	--ring: #5ef6ff;
	--glow: rgba(94, 246, 255, 0.55);
	--shine: rgba(255, 90, 79, 0.3);
	--radius: 0;
	--head: 'AP Oxanium', 'Arial Narrow', sans-serif;
	--body: 'AP Rajdhani', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--glass: rgba(20, 7, 9, 0.78);
	--bg0: #070304;
	--bg1: #13070a;
	--haze-a: #22090d;
	--haze-b: #1a070a;
	--haze-c: #22090d;
	--bar: rgba(13, 5, 7, 0.8);
	--bar-solid: rgba(13, 5, 7, 0.95);
	--glass-solid: rgba(20, 7, 9, 0.92);
	--glass-hover: rgba(34, 9, 13, 0.86);
	--card-hover: #ff5a4f;
	--selector-end: rgba(94, 246, 255, 0.05);
	--sheen: rgba(94, 246, 255, 0.2);
	--quiet: rgba(255, 90, 79, 0.08);
	--key-bg: rgba(10, 4, 5, 0.6);
	--ink: rgba(7, 3, 4, 0.9);
	--cab-edge: rgba(255, 90, 79, 0.6);
	--cab-a: #22090d;
	--cab-b: #0d0507;
	--stick-a: #5ef6ff;
	--stick-b: rgba(94, 246, 255, 0.3);
	--foot-a: rgba(13, 5, 7, 0.6);
	--foot-b: rgba(7, 3, 4, 0.94);
	--card-radius: 0;
	--cut: 0.8rem;
}
[data-theme='cyberpunk'] body {
	font-weight: 500;
}
/* the chosen: a cyan frame with cyan type; under pointer or focus it fills (the focus stays visible inside the cut) */
[data-theme='cyberpunk'] .btn {
	border: 1px solid var(--ring);
	border-left-width: 3px;
	color: var(--ring);
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
[data-theme='cyberpunk'] .btn .key {
	border-color: var(--ring);
	border-bottom-width: 1px;
	color: var(--ring);
}
[data-theme='cyberpunk'] .btn:hover,
[data-theme='cyberpunk'] .btn:focus-visible {
	background: var(--ring);
	color: #0a0405;
}
[data-theme='cyberpunk'] .btn:hover .key,
[data-theme='cyberpunk'] .btn:focus-visible .key {
	border-color: #0a0405;
	background: none;
	color: #0a0405;
}
[data-theme='cyberpunk'] .btn.quiet {
	border-color: var(--border);
	background: var(--quiet);
	color: var(--primary);
}
[data-theme='cyberpunk'] .btn.quiet .key {
	border-color: var(--border);
	color: var(--primary);
}
[data-theme='cyberpunk'] .btn.quiet:hover,
[data-theme='cyberpunk'] .btn.quiet:focus-visible {
	border-color: var(--ring);
	background: var(--ring);
}
[data-theme='cyberpunk'] .key {
	border-bottom-width: 1px;
}
/* frames with a cut corner and the line along the cut */
[data-theme='cyberpunk'] :is(.card, .panel, .shot, .theme-try) {
	border-color: rgba(255, 90, 79, 0.45);
	background-image: linear-gradient(
		225deg,
		transparent calc(var(--cut) * 0.7071),
		var(--border) calc(var(--cut) * 0.7071) calc(var(--cut) * 0.7071 + 1.5px),
		transparent calc(var(--cut) * 0.7071 + 1.5px)
	);
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
[data-theme='cyberpunk'] .card:hover {
	border-color: var(--ring);
}
[data-theme='cyberpunk'] .state {
	border-color: var(--ring);
}
[data-theme='cyberpunk'] .theme-menu button:hover,
[data-theme='cyberpunk'] .theme-menu button:focus-visible,
[data-theme='cyberpunk'] .chip[aria-pressed='true'] {
	border-color: var(--ring);
	color: var(--ring);
}
/* fine scan lines and a dark edge over the whole screen; the four corners of a HUD. Both stand still. */
[data-theme='cyberpunk'] body::after {
	content: '';
	position: fixed;
	z-index: 25;
	inset: 0;
	pointer-events: none;
	background:
		repeating-linear-gradient(180deg, transparent 0 2px, rgba(0, 0, 0, 0.17) 2px 3px),
		radial-gradient(120% 95% at 50% 50%, transparent 62%, rgba(7, 3, 4, 0.6));
}
[data-theme='cyberpunk'] body::before {
	content: '';
	position: fixed;
	z-index: 25;
	inset: 0.55rem;
	pointer-events: none;
	opacity: 0.75;
	--l: linear-gradient(var(--border), var(--border));
	background:
		var(--l) left top / 1.5rem 1px no-repeat,
		var(--l) left top / 1px 1.5rem no-repeat,
		var(--l) right top / 1.5rem 1px no-repeat,
		var(--l) right top / 1px 1.5rem no-repeat,
		var(--l) left bottom / 1.5rem 1px no-repeat,
		var(--l) left bottom / 1px 1.5rem no-repeat,
		var(--l) right bottom / 1.5rem 1px no-repeat,
		var(--l) right bottom / 1px 1.5rem no-repeat;
}
[data-theme='cyberpunk'] :is(.planet-flat, .brand img) {
	filter: hue-rotate(95deg) saturate(1.7) brightness(0.85);
}

/* =====================================================================================================
   GEISTERSTUNDE – the safe room of an abandoned house: night and fog outside, candle light, files and
   typed notes inside; keys are the keys of a typewriter
   ===================================================================================================== */
[data-theme='halloween'] {
	--frame: #14110e;
	--frame-end: #0c0a08;
	--border: #5d5546;
	--title: #ebe3cf;
	--primary: #cfc6b0;
	--secondary: #a79f8a;
	--selector: #5a3f14;
	--accent: #bfa36a;
	--separator: #3a3329;
	--planet-light: #d8701c;
	--planet-dark: #120604;
	--ring: #f2b450;
	--glow: rgba(242, 180, 80, 0.6);
	--shine: rgba(216, 112, 28, 0.3);
	--radius: 0.15em;
	--head: 'AP Special Elite', 'Courier New', monospace;
	--body: 'AP Courier Prime', 'Courier New', monospace;
	--glass: rgba(20, 17, 14, 0.8);
	--bg0: #050708;
	--bg1: #0b1011;
	--haze-a: #1d2b27;
	--haze-b: rgba(29, 43, 39, 0.6);
	--haze-c: #1d2b27;
	--bar: rgba(12, 10, 8, 0.8);
	--bar-solid: rgba(12, 10, 8, 0.95);
	--glass-solid: rgba(20, 17, 14, 0.93);
	--glass-hover: rgba(29, 25, 20, 0.88);
	--card-hover: #5d5546;
	--selector-end: rgba(90, 63, 20, 0.13);
	--sheen: rgba(242, 180, 80, 0.2);
	--quiet: rgba(12, 10, 8, 0.5);
	--key-bg: #1d1914;
	--ink: rgba(5, 7, 8, 0.9);
	--cab-edge: #5d5546;
	--cab-a: #1d1914;
	--cab-b: #0c0a08;
	--stick-a: #f2b450;
	--stick-b: #5a3f14;
	--foot-a: rgba(12, 10, 8, 0.6);
	--foot-b: rgba(5, 7, 8, 0.94);
	--card-radius: 0.2rem;
}
/* the chosen lies in the light of a candle */
[data-theme='halloween'] .btn:not(.quiet) {
	border-left-color: var(--ring);
	background:
		radial-gradient(9rem 4rem at 0% 50%, rgba(242, 180, 80, 0.3), transparent 70%),
		linear-gradient(90deg, var(--selector), var(--selector-end));
}
/* keys of a typewriter: round caps with a ring */
[data-theme='halloween'] .key {
	padding: 0.34rem 0.55rem;
	border: 1px solid var(--primary);
	border-bottom-width: 3px;
	border-radius: 999px;
	color: var(--title);
}
/* the cards of the app are notes of old parchment as in the app (its four papers, burnt at the edge, three with
   blood: img/papier-0…3.webp from _art/detailed/panel-info-paper-*.webp); all their type in ink, kept off the burnt
   rim. Nothing on them takes the focus: the focus ring would not show on paper */
[data-theme='halloween'] #app .card {
	--title: #1b1611;
	--primary: #1b1611;
	--ring: #7e1410;
	--glow: rgba(126, 20, 16, 0.35);
	--accent: #7e1410;
	padding: 1.7rem 1.9rem 1.9rem;
	border-color: transparent;
	color: var(--primary);
	background: url('../img/papier-0.webp') 0 0 / 100% 100% no-repeat;
	box-shadow: none;
	filter: drop-shadow(0 0.6rem 0.8rem rgba(0, 0, 0, 0.6));
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}
[data-theme='halloween'] #app .card:nth-child(4n + 2) {
	background-image: url('../img/papier-1.webp');
}
[data-theme='halloween'] #app .card:nth-child(4n + 3) {
	background-image: url('../img/papier-2.webp');
}
[data-theme='halloween'] #app .card:nth-child(4n + 4) {
	background-image: url('../img/papier-3.webp');
}
[data-theme='halloween'] #app .card::before {
	display: none;
}
[data-theme='halloween'] #app .card:hover {
	border-color: transparent;
	filter: drop-shadow(0 0.6rem 0.8rem rgba(0, 0, 0, 0.6)) brightness(1.06);
}
[data-theme='halloween'] #app .card p {
	font-weight: 700;
}
/* a dark edge like an old photograph, and a breath of fog along the ground (the drifting fog is in the 3D sky) */
[data-theme='halloween'] body::after {
	content: '';
	position: fixed;
	z-index: 25;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(transparent 62%, rgba(147, 166, 159, 0.1)),
		radial-gradient(125% 100% at 50% 45%, transparent 58%, rgba(5, 7, 8, 0.7));
}
[data-theme='halloween'] :is(.planet-flat, .brand img) {
	filter: hue-rotate(125deg) saturate(2.2);
}

/* =====================================================================================================
   NEUJAHR – midnight above the city: night blue and champagne gold, thin lines, a quiet glow
   ===================================================================================================== */
[data-theme='neujahr'] {
	--frame: #0b1124;
	--frame-end: #060914;
	--border: #8c6e3a;
	--title: #f4eedd;
	--primary: #d9d2c0;
	--secondary: #aaa593;
	--selector: #5c4722;
	--accent: #d9b36a;
	--separator: #1a2140;
	--planet-light: #3d51a0;
	--planet-dark: #060918;
	--ring: #f3dfa8;
	--glow: rgba(217, 179, 106, 0.6);
	--shine: rgba(217, 179, 106, 0.28);
	--radius: 0.12em;
	--head: 'AP Poiret One', 'Arial Narrow', sans-serif;
	--glass: rgba(11, 17, 36, 0.78);
	--bg0: #04060d;
	--bg1: #0a1024;
	--haze-a: #161c40;
	--haze-b: #2a2140;
	--haze-c: #161c40;
	--bar: rgba(6, 9, 20, 0.8);
	--bar-solid: rgba(6, 9, 20, 0.95);
	--glass-solid: rgba(11, 17, 36, 0.93);
	--glass-hover: rgba(18, 26, 54, 0.88);
	--card-hover: #8c6e3a;
	--selector-end: rgba(74, 58, 24, 0.33);
	--sheen: rgba(243, 223, 168, 0.2);
	--quiet: rgba(6, 9, 20, 0.5);
	--key-bg: rgba(6, 9, 20, 0.5);
	--ink: rgba(4, 6, 13, 0.9);
	--cab-edge: #8c6e3a;
	--cab-a: #161c40;
	--cab-b: #0b1124;
	--stick-a: #f3dfa8;
	--stick-b: #8c6e3a;
	--foot-a: rgba(6, 9, 20, 0.6);
	--foot-b: rgba(4, 6, 13, 0.94);
	--card-radius: 0.15rem;
}
/* Poiret One is one thin weight: a little more body for small type, wide capitals as on an invitation */
[data-theme='neujahr']
	:is(
		.theme-btn,
		.theme-menu button,
		.chip,
		.kicker,
		.specs,
		.btn,
		.key,
		.note b,
		.head .idx,
		.card h3,
		.notice h3,
		.facts li,
		figcaption,
		.state,
		footer .caps,
		footer nav a,
		.cab-marquee,
		.orbit-nav a,
		.theme-try b
	) {
	-webkit-text-stroke: 0.022em currentColor;
	letter-spacing: 0.09em;
}
[data-theme='neujahr'] .top nav a {
	-webkit-text-stroke: 0.022em currentColor;
	letter-spacing: 0.09em;
}
@media (max-width: 760px) {
	/* the wide capitals would push the bar into a second row */
	[data-theme='neujahr'] .top nav a {
		letter-spacing: 0.03em;
	}
}
@media (max-width: 420px) {
	[data-theme='neujahr'] .top nav a {
		letter-spacing: 0;
	}
}
[data-theme='neujahr'] :is(h1, .head h2) {
	-webkit-text-stroke: 0.012em currentColor;
	letter-spacing: 0.05em;
}
[data-theme='neujahr'] :is(.card, .panel, .shot, .theme-try) {
	border-color: rgba(140, 110, 58, 0.5);
	box-shadow: inset 0 1px 0 rgba(243, 223, 168, 0.28);
}
/* the rule beside a heading: two thin golden lines */
[data-theme='neujahr'] .head .rule {
	height: 4px;
	border-block: 1px solid var(--border);
	background: none;
	mask-image: linear-gradient(90deg, #000, transparent);
	-webkit-mask-image: linear-gradient(90deg, #000, transparent);
}
[data-theme='neujahr'] :is(.planet-flat, .brand img) {
	filter: hue-rotate(-35deg) saturate(1.5);
}

/* =====================================================================================================
   WEIHNACHTEN – Arcade Planet in winter: ice blue on deep blue, snow on every frame
   ===================================================================================================== */
[data-theme='weihnachten'] {
	--frame: #0b1626;
	--frame-end: #070e19;
	--border: #4f7ea3;
	--title: #e8f3fb;
	--primary: #b9cfe0;
	--secondary: #9fb8cc;
	--selector: #1f4668;
	--accent: #7fb6d8;
	--separator: #16283d;
	--planet-light: #77acdc;
	--planet-dark: #07122a;
	--ring: #dcf4ff;
	--glow: rgba(120, 210, 255, 0.7);
	--shine: rgba(110, 190, 255, 0.35);
	--glass: rgba(11, 22, 38, 0.78);
	--bg0: #070e19;
	--bg1: #081220;
	--haze-a: #152c45;
	--haze-b: #0f2033;
	--haze-c: #152c45;
	--bar: rgba(7, 14, 25, 0.8);
	--bar-solid: rgba(7, 14, 25, 0.95);
	--glass-solid: rgba(11, 22, 38, 0.93);
	--glass-hover: rgba(21, 44, 69, 0.88);
	--card-hover: #4f7ea3;
	--selector-end: rgba(20, 48, 76, 0.25);
	--sheen: rgba(220, 244, 255, 0.2);
	--quiet: rgba(7, 14, 25, 0.5);
	--key-bg: rgba(7, 14, 25, 0.5);
	--ink: rgba(7, 14, 25, 0.9);
	--cab-edge: #4f7ea3;
	--cab-a: #152c45;
	--cab-b: #0b1626;
	--stick-a: #e2384f;
	--stick-b: #a3233a;
	--foot-a: rgba(7, 14, 25, 0.6);
	--foot-b: rgba(7, 14, 25, 0.94);
	--card-radius: 0.6rem;
}
/* snow lies on the frames: a white upper edge with a cold shine */
[data-theme='weihnachten'] :is(.card, .panel, .shot, .theme-try, .cab-body) {
	border-top: 2px solid rgba(242, 251, 255, 0.85);
	box-shadow:
		0 -0.35rem 1.2rem -0.5rem rgba(140, 210, 255, 0.55),
		0 1.2rem 3rem #0008;
}
/* the one warm colour of the theme: the red of the hat on the edge of the chosen */
[data-theme='weihnachten'] .btn:not(.quiet),
[data-theme='weihnachten'] .chip[aria-pressed='true'] {
	border-left-color: #e2384f;
}
[data-theme='weihnachten'] :is(.planet-flat, .brand img) {
	filter: hue-rotate(-58deg) saturate(1.5) brightness(1.25);
}
