/* Pigeon Casino. Farben, Schrift, Schild, Tauben und Handschuh kommen aus dem Spiel (web/build.py).
   Die Pixelschrift ist 10 px hoch gezeichnet und steht hier nur in ganzen Vielfachen: 20, 30, 40 px.
   --px ist ein Spielpixel bei Figuren und Schild, in ganzen Bildpunkten, damit jeder Pixel quadratisch bleibt. */
@font-face{font-family:"PC latin";src:url(/fonts/latin.woff2?v=514fbc8ffc) format("woff2");font-display:swap}
@font-face{font-family:"PC zh_hans";src:url(/fonts/zh_hans.woff2?v=d21bc7aa78) format("woff2");font-display:swap}
@font-face{font-family:"PC zh_hant";src:url(/fonts/zh_hant.woff2?v=12ab7d032d) format("woff2");font-display:swap}
@font-face{font-family:"PC ja";src:url(/fonts/ja.woff2?v=9a63915bbd) format("woff2");font-display:swap}
@font-face{font-family:"PC ko";src:url(/fonts/ko.woff2?v=55cfa4f7e3) format("woff2");font-display:swap}

:root {
	--night: #191527;
	--deep: #110f1b;
	--ink: #05040a;
	--line: #2e2742;
	--amber: #ffd070;
	--bulb: #ffe03d;
	--pink: #ff5aa8;
	--plum: #6e2454;
	--text: #efe9dc;
	--dim: #a7a3b4;
	--px: 2px;
	--hand: url(/media/cursor.png) 6 2;
	--font: "PC latin";
	color-scheme: dark;
}
@media (min-width: 700px) { :root { --px: 3px; } }
@media (min-width: 1200px) { :root { --px: 4px; } }
html:lang(zh-Hans) { --font: "PC zh_hans"; }
html:lang(zh-Hant) { --font: "PC zh_hant"; }
html:lang(ja) { --font: "PC ja"; }
html:lang(ko) { --font: "PC ko"; }

* { box-sizing: border-box; }
html { cursor: var(--hand), auto; scroll-behavior: smooth; }
a, button, summary, .bird { cursor: var(--hand), pointer; }
body {
	margin: 0;
	background: var(--night);
	color: var(--text);
	font: 20px/30px var(--font), system-ui, sans-serif;
	-webkit-font-smoothing: none;
	font-smooth: never;
	overflow-wrap: break-word;
}
img, video { max-width: 100%; }
a { color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--bulb); }
:focus-visible { outline: 2px solid var(--bulb); outline-offset: 3px; }
h1, h2, h3 { font-weight: normal; }
h2 { font-size: 30px; line-height: 40px; color: var(--amber); text-shadow: 0 3px 0 var(--plum); margin: 0 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; z-index: 10; background: var(--ink); padding: 6px 12px; }
.pixel, .board, .lights, .bird, .rat, .home img { image-rendering: pixelated; }

/* ---------- Kopf: Leuchtreklame vor der Parkbank in der Dämmerung (Video aus dem Spiel, web/build.py) ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 40px 16px 50px;
	min-height: min(100svh, 56.25vw); display: flex; flex-direction: column; justify-content: center;
	background: var(--deep);
}
.hero > video.bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
/* Schrift vor dem Video mit dunklem Pixelrand, wie die Zahlen im Spiel */
.tagline, .price { text-shadow: 2px 0 var(--ink), -2px 0 var(--ink), 0 2px var(--ink), 0 -2px var(--ink), 2px 2px var(--ink), -2px 2px var(--ink), 2px -2px var(--ink), -2px -2px var(--ink); }
.sign { position: relative; width: calc(151 * var(--px)); margin: calc(24 * var(--px)) auto 0; }
.sign h1 { margin: 0; line-height: 0; }
.board, .lights { display: block; width: calc(151 * var(--px)); height: calc(75 * var(--px)); }
.lights {
	position: absolute; left: 0; top: 0; pointer-events: none;
	background: url(/media/sign-lights.png) 0 0 / calc(453 * var(--px)) 100%;
	animation: lights 0.9s steps(3) infinite;
}
@keyframes lights { to { background-position-x: calc(-453 * var(--px)); } }
.perch { position: absolute; left: 0; top: calc(-22 * var(--px)); width: 100%; height: calc(24 * var(--px)); }

/* Die Tauben: 5 Bilder je 32 x 24 (stehen, gehen, picken, Flügel oben, Flügel unten), wie im Spiel */
.bird {
	--u: var(--px);
	position: absolute; top: 0;
	width: calc(32 * var(--u)); height: calc(24 * var(--u));
	background: url(/media/pigeon.png) 0 0 / calc(160 * var(--u)) 100%;
}
.bird.left { scale: -1 1; }
.bird.peck { background-position-x: calc(-64 * var(--u)); }
.bird.fly { animation: flap 0.16s steps(2) infinite; pointer-events: none; }
@keyframes flap { from { background-position-x: calc(-96 * var(--u)); } to { background-position-x: calc(-160 * var(--u)); } }
.b0 { left: calc(-2 * var(--px)); }
.b1 { left: calc(29 * var(--px)); scale: -1 1; }
.b2 { left: calc(60 * var(--px)); }
.b3 { left: calc(91 * var(--px)); scale: -1 1; }
.b4 { left: calc(122 * var(--px)); }

.pitch { align-self: center; max-width: 820px; margin-top: 30px; padding: 18px 30px 24px; background: rgb(5 4 10 / 0.8); box-shadow: inset 0 0 0 2px var(--line); }
.tagline { font-size: 30px; line-height: 40px; margin: 0 0 8px; }
.price { color: #cfcad9; margin: 0 0 22px; }
.cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Knöpfe wie die Plättchen im Spiel: dunkel, Ecken um einen Pixel gestutzt, Bernstein heißt "das hier" */
.btn {
	display: inline-block; padding: 10px 22px; text-decoration: none;
	color: var(--text); background: var(--ink); box-shadow: inset 0 0 0 2px var(--line);
	clip-path: polygon(2px 0, calc(100% - 2px) 0, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 0 calc(100% - 2px), 0 2px);
}
.btn:hover { color: var(--bulb); }
.btn.main { background: var(--amber); color: var(--ink); box-shadow: inset 0 -4px 0 #c98f2c; }
.btn.main:hover { background: var(--bulb); color: var(--ink); }
.btn:active { translate: 0 2px; }

.stores { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 0; margin: 26px 0 0; }
.plate {
	display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; text-align: left;
	min-width: 210px; padding: 8px 18px 8px 14px; text-decoration: none;
	background: var(--deep); color: var(--text); box-shadow: inset 0 0 0 2px var(--line);
}
.plate b { font-weight: normal; }
.plate .icon { grid-row: span 2; width: 32px; height: 32px; image-rendering: pixelated; }
.plate small { font-size: 20px; color: var(--dim); }
a.plate:hover { box-shadow: inset 0 0 0 2px var(--amber); color: var(--text); }

details.lang { position: absolute; top: 12px; right: 12px; text-align: left; z-index: 5; }
details.lang summary { list-style: none; padding: 4px 12px; background: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
details.lang summary::-webkit-details-marker { display: none; }
details.lang summary::after { content: " ▾"; color: var(--dim); }
details.lang nav { position: absolute; right: 0; margin-top: 4px; display: grid; background: var(--ink); padding: 8px 0; box-shadow: inset 0 0 0 2px var(--line); }
details.lang nav a { padding: 2px 16px; white-space: nowrap; text-decoration: none; color: var(--text); }
details.lang nav a:hover, [aria-current="page"] { color: var(--amber); }


/* ---------- Inhalt ---------- */
main { padding: 0 16px; }
section { max-width: 1100px; margin: 0 auto; }
.intro { max-width: 760px; padding: 60px 0 20px; }
.lead { color: var(--amber); }
.lead strong { font-weight: normal; color: var(--pink); }
.skinner { background: var(--ink); padding: 24px 28px; text-transform: uppercase; letter-spacing: 1px; margin: 34px 0; }
.clip { display: block; width: 100%; height: auto; background: var(--ink); box-shadow: 0 0 0 2px var(--ink), 0 calc(2 * var(--px)) 0 2px var(--ink); }
.hook { margin: 0 0 30px; }

.trailer { padding: 50px 0 30px; text-align: center; }
.marquee {
	border: calc(5 * var(--px)) solid transparent;
	border-image: url(/media/frame.png) 5 round;
	image-rendering: pixelated;
	background: var(--ink);
}
.marquee video { display: block; width: 100%; height: auto; }

.feature { display: grid; gap: 30px; align-items: center; padding: 50px 0; border-top: 2px dashed var(--line); }
.feature p { margin: 0; }
@media (min-width: 900px) {
	.feature { grid-template-columns: 5fr 6fr; gap: 50px; }
	.feature:nth-of-type(odd) .text { order: 2; }
}
.points { list-style: none; max-width: 760px; margin: 0 auto; padding: 30px 0 50px; border-top: 2px dashed var(--line); }
.points li { padding-left: 30px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; background: var(--amber); }

.screens { padding: 50px 0; border-top: 2px dashed var(--line); }
.grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
.grid figure { margin: 0; }
.grid img { display: block; width: 100%; height: auto; box-shadow: 0 0 0 2px var(--ink); }
.grid figcaption { color: var(--dim); margin-top: 6px; }

.faq { max-width: 760px; padding: 50px 0; border-top: 2px dashed var(--line); }
.faq dt { color: var(--amber); margin-top: 26px; }
.faq dd { margin: 4px 0 0; }

.again { padding: 70px 0 60px; text-align: center; border-top: 2px dashed var(--line); }

/* ---------- Fuß: die Ratte schaut aus dem Gully ---------- */
.foot { background: var(--ink); padding: 40px 16px 30px; text-align: center; }
.gully { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.gully .rat { width: calc(68 * var(--px)); height: auto; }
.gully p { max-width: 20em; text-align: left; margin: 0; }
.legal, .langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 26px; }
.langs a { color: var(--dim); text-decoration: none; }
.langs a:hover { color: var(--amber); }
.copy { color: var(--dim); margin: 26px 0 0; }
.copy a { color: var(--dim); }

/* ---------- Unterseiten: Impressum, Datenschutz, Presse, 404 ---------- */
.mini { text-align: center; padding: 30px 16px 0; }
.home img { width: calc(151 * 2px); height: auto; }
.prose { max-width: 800px; margin: 0 auto; padding: 20px 16px 60px; }
.prose h1, .prose .h1 { font-size: 40px; line-height: 50px; color: var(--amber); text-shadow: none; margin-top: 30px; }
.prose h2 { margin-top: 40px; }
.prose h3 { font-size: 20px; color: var(--amber); margin: 30px 0 6px; }
.prose p, .prose li, .prose dd, .prose address {
	font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: auto; font-smooth: auto;
}
.prose address { font-style: normal; }
.prose .lead { font: inherit; color: var(--amber); }
.prose .short { background: var(--deep); padding: 14px 18px; box-shadow: inset 4px 0 0 var(--amber); }
.prose .fine { color: var(--dim); font-size: 15px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; }
.facts ul { margin: 0; padding-left: 18px; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 8px; } }
.press .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.press .grid figcaption { font: 14px system-ui, sans-serif; }
.lost { text-align: center; padding: 80px 16px; }
.lost .bird { --u: 6px; position: relative; display: inline-block; }

@media (max-width: 699px) {
	.tagline { font-size: 20px; line-height: 30px; }
	.pitch { padding: 14px 16px 18px; }
	h2 { font-size: 20px; line-height: 30px; text-shadow: 0 2px 0 var(--plum); }
	.hero { padding-top: 60px; }
	.skinner { padding: 16px 18px; }
	.stores { flex-direction: column; max-width: 330px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.lights, .bird { animation: none !important; }
}
