@font-face{font-family:"Inter";font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter.f11d729b.woff2) format("woff2")}
@font-face{font-family:"Space Grotesk";font-style:normal;font-display:swap;font-weight:300 700;src:url(/assets/space-grotesk.c0781ea2.woff2) format("woff2")}
/*
 * wust-ui header: the same top bar on wust.dev, games.wust.dev and blog.wust.dev.
 * Uses each site's theme tokens (--nav-bg, --card-border, --card-bg, --text, --accent-text,
 * --font-display) and falls back to the wust.dev dark values.
 */
.wu-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.25rem);
  min-height: 3.5rem;
  padding: .6rem clamp(1rem, 4vw, 2rem);
  padding-top: max(.6rem, env(safe-area-inset-top));
  background: var(--nav-bg, rgba(14, 21, 56, .85));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border, rgba(254, 248, 248, .12));
  color: var(--text, #fef8f8);
  font-size: 1rem;
  line-height: 1.5;
}

.wu-header a {
  color: inherit;
  text-decoration: none;
}

/* logo plus a lowercase site name ("games", "blog") */
.wu-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-right: auto;
  font: 700 1.2rem/1 var(--font-display, sans-serif);
}

.wu-brand img {
  display: block;
  height: 24px;
  width: auto;
}

.wu-brand span {
  translate: 0 1px;
}

.wu-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.wu-links a {
  font-weight: 500;
  white-space: nowrap;
}

.wu-links a:hover,
.wu-lang a:hover {
  color: var(--accent-text, #f68714);
}

@media (max-width: 600px) {
  .wu-links .wu-optional {
    display: none;
  }
}

@media (max-width: 420px) {
  .wu-links {
    display: none;
  }
}

/* DE / EN, the current language in orange */
.wu-lang {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  font-size: .95rem;
}

.wu-lang [aria-current] {
  color: var(--accent-text, #f68714);
}

.wu-lang a {
  opacity: .7;
}

.wu-lang a:hover {
  opacity: 1;
}

.wu-lang [aria-hidden] {
  opacity: .35;
}

/* round icon buttons: theme toggle, search, … */
.wu-icon-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--card-border, rgba(254, 248, 248, .12));
  background: var(--card-bg, rgba(254, 248, 248, .04));
  color: var(--accent-text, #f68714);
  cursor: pointer;
  transition: border-color .2s ease;
}

.wu-icon-btn:hover {
  border-color: var(--accent-text, #f68714);
}

.wu-icon-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* the toggle shows the current theme: moon when dark, sun when light */
.wu-theme .wu-sun {
  display: none;
}

:root[data-theme="light"] .wu-theme .wu-moon {
  display: none;
}

:root[data-theme="light"] .wu-theme .wu-sun {
  display: block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .wu-theme .wu-moon {
    display: none;
  }

  :root:not([data-theme="dark"]) .wu-theme .wu-sun {
    display: block;
  }
}

.wu-header :focus-visible {
  outline: 2px solid #f68714;
  outline-offset: 3px;
}
/* wust.dev games – angelehnt an wust.dev (Farben, Schriften, Karten, Tape-Überschriften) */
:root {
  --max-width: 1100px;
  --border-radius: 12px;
  --card-radius: 24px;

  --wu-orange: #f68714;
  --wu-green: #3dba6a;
  --wu-white: #fef8f8;
  --wu-blue: #0e1538;
  --wu-black: #111;

  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.4vw, 1.35rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.75vw, 1.8rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.5vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 4vw, 5rem);

  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: clamp(3rem, 2rem + 4vw, 6rem);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font-body);

  /* dunkel ist Standard, wie auf wust.dev */
  --bg: var(--wu-blue);
  --text: var(--wu-white);
  --muted: rgba(254, 248, 248, 0.7);
  --accent-text: var(--wu-orange);
  --card-border: rgba(254, 248, 248, 0.12);
  --card-bg: rgba(254, 248, 248, 0.04);
  --surface: var(--wu-black);
  --input-bg: rgba(254, 248, 248, 0.06);
  --nav-bg: rgba(14, 21, 56, .85);
  --footer-bg: #111;
  --footer-text: #ddd;
  --tag: rgba(254, 248, 248, .08);
  --hex-line: rgba(254, 248, 248, 0.06);
  --stage-bg: #0a0f2a;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f5f4; --text: var(--wu-blue); --muted: #5b6178; --accent-text: #b85f05;
    --card-border: #e3e4ec; --card-bg: #fff; --surface: #fff; --input-bg: #fff;
    --nav-bg: rgba(247, 245, 244, .85); --footer-bg: #ecebe9; --footer-text: #3c4258;
    --tag: #f0f1f6; --hex-line: rgba(14, 21, 56, 0.07); --stage-bg: #e9e7ef;
    --shadow: 0 2px 4px rgb(14 21 56 / 0.08), 0 12px 32px rgb(14 21 56 / 0.14);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f7f5f4; --text: var(--wu-blue); --muted: #5b6178; --accent-text: #b85f05;
  --card-border: #e3e4ec; --card-bg: #fff; --surface: #fff; --input-bg: #fff;
  --nav-bg: rgba(247, 245, 244, .85); --footer-bg: #ecebe9; --footer-text: #3c4258;
  --tag: #f0f1f6; --hex-line: rgba(14, 21, 56, 0.07); --stage-bg: #e9e7ef;
  --shadow: 0 2px 4px rgb(14 21 56 / 0.08), 0 12px 32px rgb(14 21 56 / 0.14);
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; padding: 0; margin: 0; }
html, body { max-width: 100vw; overflow-x: clip; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  color: var(--text); background: var(--bg);
  font: var(--step-0)/1.5 var(--font-body);
  min-height: 100svh; display: flex; flex-direction: column;
}
main { flex: 1; width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--wu-orange); outline-offset: 3px; }
::selection { background: var(--wu-orange); color: var(--wu-black); }
ul { list-style: none; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.visually-hidden { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.skip-link {
  position: fixed; top: .5rem; left: .5rem; z-index: 300; padding: .6em 1em;
  background: var(--wu-orange); color: var(--wu-black); font-weight: bold; translate: 0 -200%;
}
.skip-link:focus { translate: 0 0; }

.link { position: relative; display: inline-block; cursor: pointer; }
.link::before {
  content: ""; position: absolute; width: 100%; height: 2px; bottom: -2px; left: 0;
  background: var(--wu-orange); transform: scaleX(0); transition: transform .3s ease; rotate: -2deg;
}
.link:hover::before, .link:focus-visible::before { transform: scaleX(1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  background: var(--wu-orange); padding: 10px 16px; color: var(--wu-black);
  font-weight: 700; border: 1px solid transparent; transition: all .2s ease-in-out; white-space: nowrap;
}
.btn:hover { background: transparent; border-color: var(--wu-orange); color: var(--accent-text); }
.btn.inverted { background: transparent; border-color: var(--wu-orange); color: var(--accent-text); }
.btn.inverted:hover { background: var(--wu-orange); color: var(--wu-black); }
.btn.sm { padding: 6px 12px; font-size: .9rem; }
.btn.big { padding: 14px 28px; font-size: var(--step-1); }

/* ---------- Navigation ---------- */
/* Leiste, Logo, Sprache und Theme-Knopf kommen aus wust-ui/header.css */
.nav nav a { font-weight: 500; }
@media (max-width: 420px) { .nav nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-s);
  padding: var(--space-xl) 16px var(--space-l);
}
.hex-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* spitze Sechsecke wie im Hero von wust.dev, als Muster */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='104' height='180' viewBox='0 0 104 180'%3E%3Cg fill='none' stroke='%23888' stroke-width='1.2'%3E%3Cpath d='M52 2 100 30v56L52 114 4 86V30Z'/%3E%3Cpath d='M0 92 0 148M104 92v56M52 120l48 28M52 120 4 148'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 104px 180px; opacity: .14;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .hex-bg { animation: drift 60s linear infinite; }
}
.eyebrow { color: var(--accent-text); font-weight: 600; letter-spacing: .15em; text-transform: uppercase; font-size: var(--step-0); }
.hero h1 { font-size: var(--step-4); font-weight: 700; line-height: 1; rotate: -1deg; max-width: 14ch; }
.tagline { max-width: 42ch; font-size: var(--step-2); font-weight: 300; line-height: 1.3; }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; color: var(--muted); font-weight: 500; }

/* ---------- Abschnitte mit Tape-Überschrift ---------- */
.catalog, .detail, .legal, .notfound { max-width: var(--max-width); margin: 0 auto; padding: 0 16px var(--space-xl); }
@media (min-width: 700px) { .catalog, .detail, .notfound { padding-inline: 24px; } }
.catalog > h2, .shots > h2, .related > h2 {
  position: relative; z-index: 0; display: inline-block; rotate: -1deg;
  font-size: var(--step-3); margin: var(--space-m) 0 var(--space-m); padding: 0 .2em; color: var(--wu-black);
}
.catalog > h2::after, .shots > h2::after, .related > h2::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wu-orange); rotate: 1deg;
}
@media (prefers-reduced-motion: no-preference) {
  .catalog > h2:hover, .shots > h2:hover, .related > h2:hover { animation: wiggle .5s ease-in-out; }
}

/* ---------- Suche, Sortierung, Filter ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.search {
  flex: 1 1 260px; display: flex; align-items: center; gap: .6rem;
  background: var(--input-bg); border: 1px solid var(--card-border); border-radius: 999px; padding: .55rem 1rem;
}
.search:focus-within { border-color: var(--wu-orange); }
.search svg { width: 1.2rem; height: 1.2rem; flex: none; color: var(--muted); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; }
.search input::placeholder { color: var(--muted); }
.search kbd { font: 600 .75rem var(--font-body); color: var(--muted); border: 1px solid var(--card-border); border-radius: 6px; padding: 0 .4em; }
@media (hover: none) { .search kbd { display: none; } }
.sort { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 500; position: relative; }
.sort-icon { display: none; }
.sort select {
  background: var(--input-bg); color: var(--text); border: 1px solid var(--card-border);
  border-radius: 999px; padding: .55rem 2.2rem .55rem 1rem; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.sort select option { background: var(--surface); color: var(--text); }

.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.chip {
  display: inline-flex; align-items: center; gap: .3em; border: 1px solid var(--card-border);
  background: var(--tag); color: var(--text); border-radius: 999px; padding: .3rem .8rem; font-size: .9rem; font-weight: 500;
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--wu-orange); }
.chip.on, .chip[aria-pressed="true"] { background: var(--wu-orange); border-color: var(--wu-orange); color: var(--wu-black); }
.chip.fav { margin-left: auto; }
@media (max-width: 560px) { .chip.fav { margin-left: 0; } }
.active-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.active-filters .chip::after { content: "✕"; font-size: .75em; margin-left: .2em; }
.result-count { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.empty { text-align: center; padding: var(--space-l) 0; color: var(--muted); display: grid; gap: 1rem; justify-items: center; }
.empty[hidden] { display: none; }

/* ---------- Karten ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.game {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--card-radius);
  transition: translate .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.game:hover, .game:focus-within { border-color: var(--wu-orange); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: no-preference) { .game:hover { translate: 0 -4px; } }
.game[hidden] { display: none; }
.game-link { display: flex; flex-direction: column; flex: 1; }
.game-body { padding: 1rem 1.25rem .5rem; display: grid; gap: .35rem; }
.game-body h3 { font-size: var(--step-2); }
.game-body p { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.badge-new {
  position: absolute; bottom: 12px; left: 12px; z-index: 2; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); background: var(--wu-green); color: var(--wu-black);
  font-weight: 700; font-size: .8rem; padding: .15rem .6rem; border-radius: 999px; rotate: -3deg;
}
.badge-new.static { position: static; display: inline-block; margin-bottom: .5rem; }

/* Screenshot randlos, hochkant, oben bündig */
.stage { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--stage-bg); }
.stage img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale .4s ease; }
@media (prefers-reduced-motion: no-preference) { .game:hover .stage img { scale: 1.03; } }
.stage.empty { display: grid; place-items: center; font-size: 3rem; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .25rem 1.25rem .75rem; }
.chips .chip { font-size: .8rem; padding: .2rem .65rem; }
.game-foot {
  display: flex; align-items: center; gap: .75rem; margin-top: auto;
  padding: .75rem 1.25rem 1rem; border-top: 1px solid var(--card-border);
}
.plays { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.langs { display: flex; gap: .25rem; margin-left: auto; }
.langs abbr { text-decoration: none; font-size: .7rem; font-weight: 700; border: 1px solid var(--card-border); border-radius: 4px; padding: 0 .3em; color: var(--muted); }

.heart {
  display: inline-flex; align-items: center; gap: .35rem; background: none; border: 1px solid var(--card-border);
  border-radius: 999px; padding: .25rem .7rem; font-size: .9rem; color: var(--muted);
}
.heart svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; }
.heart:hover { border-color: #e5484d; color: #e5484d; }
.heart[aria-pressed="true"] { color: #e5484d; border-color: #e5484d; }
.heart[aria-pressed="true"] svg { fill: currentColor; }
.heart.pop svg { animation: pop .45s ease; }
.heart.big { padding: .7rem 1.1rem; font-size: var(--step-1); }
.heart.big svg { width: 1.4rem; height: 1.4rem; }

/* ---------- Spielseite ---------- */
.back { margin: var(--space-m) 0; font-weight: 500; }
.detail-grid { display: grid; gap: var(--space-l); align-items: start; }
@media (min-width: 820px) { .detail-grid { grid-template-columns: minmax(260px, 400px) 1fr; } }
.detail-cover .stage { border-radius: var(--card-radius); aspect-ratio: auto; border: 1px solid var(--card-border); max-width: 400px; margin-inline: auto; }
.detail-cover .stage img { height: auto; max-height: 80vh; object-fit: cover; }
.detail-info h1 { font-size: var(--step-4); line-height: 1; margin-bottom: var(--space-s); rotate: -1deg; }
.detail-desc { font-size: var(--step-1); margin-bottom: var(--space-m); }
.detail-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.facts { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: var(--space-m) 0; }
.facts dt { color: var(--muted); font-size: .85rem; }
.facts dd { font-weight: 600; }
.detail-info .chips { padding: 0; }
.shots, .related { margin-top: var(--space-xl); }
.shot-strip { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
.shot-strip li { flex: 0 0 auto; scroll-snap-align: start; }
.shot { display: block; border: 1px solid var(--card-border); border-radius: 16px; overflow: hidden; background: none; padding: 0; transition: border-color .2s; }
.shot:hover { border-color: var(--wu-orange); }
.shot img { height: min(60vh, 520px); width: auto; }
.lightbox { margin: auto; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; padding: 3rem 3.5rem; overflow: visible; }
.lightbox::backdrop { background: rgba(14, 21, 56, .85); }
.lightbox img { max-height: calc(100vh - 6rem); width: auto; border-radius: 16px; }
.lb-close, .lb-nav {
  position: absolute; background: var(--wu-orange); color: var(--wu-black); border: 0; border-radius: 50%;
  width: 2.75rem; height: 2.75rem; font-size: 1.4rem; font-weight: 700; display: grid; place-items: center;
}
.lb-close { top: .25rem; right: .25rem; }
.lb-nav { top: 50%; translate: 0 -50%; }
.lb-nav.prev { left: .25rem; } .lb-nav.next { right: .25rem; }
@media (max-width: 520px) { .lightbox { padding: 3.5rem .5rem; } .lb-nav { top: auto; bottom: .25rem; translate: none; } }

/* ---------- Rechtliches (weiße Karte wie auf wust.dev) ---------- */
.legal {
  max-width: 820px; background: var(--wu-white); color: var(--wu-black);
  padding: clamp(1rem, 3vw, 2rem); margin: var(--space-l) auto; border-radius: var(--border-radius);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
@media (max-width: 852px) { .legal { margin-inline: 16px; } }
.legal h1 { font-size: 1.6rem; margin-bottom: .25rem; }
.legal h2 { font-size: 1.2rem; margin: 1.75rem 0 .75rem; }
.legal p { margin-bottom: 1rem; }
.legal ul { padding-left: 1.4em; margin-bottom: 1rem; list-style: disc; }
.legal li { margin-bottom: .35rem; }
.legal a { text-decoration: underline; color: var(--wu-blue); }
.legal-meta { color: #555; font-size: .9rem; }
.notfound { text-align: center; padding-top: var(--space-xl); display: grid; gap: 1rem; justify-items: center; }
.notfound h1 { font-size: var(--step-4); color: var(--accent-text); }

/* ---------- Footer wie auf wust.dev ---------- */
.footer {
  background: var(--footer-bg); color: var(--footer-text); padding: 3em 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .5em;
}
.socials { display: flex; gap: 2em; margin: 1em 0 1.5em; }
.socials a { color: var(--accent-text); transition: transform .2s; }
.socials svg { height: 2.25em; width: auto; display: block; }
@media (prefers-reduced-motion: no-preference) { .socials a:hover { transform: scale(1.2); } }
.heart-char { color: var(--accent-text); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1em; }

@keyframes wiggle { 0%, 100% { rotate: -1deg; } 25% { rotate: 1.5deg; } 50% { rotate: -2.5deg; } 75% { rotate: 0deg; } }
@keyframes pop { 0% { scale: 1; } 40% { scale: 1.45; } 100% { scale: 1; } }
@keyframes drift { from { background-position: 0 0; } to { background-position: 104px 180px; } }

/* ---------- App-Teile: Installieren ---------- */
.install-btn {
  border: 1px solid var(--wu-orange); background: transparent; color: var(--accent-text);
  border-radius: 999px; padding: .3rem .8rem; font-weight: 600; font-size: .9rem; white-space: nowrap;
}
.install-btn { display: inline-flex; align-items: center; gap: .3rem; }
.install-btn svg { width: 1rem; height: 1rem; }
.install-btn:hover { background: var(--wu-orange); color: var(--wu-black); }
.install-btn[hidden] { display: none; }
.install-dialog {
  margin: auto; max-width: min(420px, calc(100vw - 32px)); border: 1px solid var(--card-border);
  border-radius: var(--card-radius); background: var(--surface); color: var(--text); padding: 1.5rem;
}
.install-dialog::backdrop { background: rgba(14, 21, 56, .7); }
.install-dialog h2 { font-size: var(--step-2); margin-bottom: .75rem; }
.install-dialog ol { list-style: decimal; padding-left: 1.4em; display: grid; gap: .35rem; margin-bottom: .75rem; }
.install-dialog .btn { margin-top: 1rem; width: 100%; }
.tile-start, .tile-info { display: none; }
.dock { display: contents; }

/* ---------- Installierte App: kein Begrüßungstext ---------- */
.is-app .hero { display: none; }
.is-app .catalog > h2 { margin-top: var(--space-s); }
.nav { padding-top: max(.6rem, env(safe-area-inset-top)); }

/* ---------- Handy: Launcher ---------- */
@media (max-width: 700px) {
  .hero { display: none; }
  .nav { transition: translate .25s ease; }
  .nav.nav-hidden { translate: 0 -100%; }
  .nav nav { display: none; }

  .catalog { padding-inline: 12px; padding-bottom: var(--space-l); }
  .catalog > h2 { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
  .result-count { margin: .75rem 0 .5rem; font-size: .8rem; }

  /* Suche und Filter als Daumenleiste unten */
  .dock {
    display: flex; flex-direction: column; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: .6rem 12px calc(.6rem + env(safe-area-inset-bottom));
    background: var(--nav-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--card-border);
  }
  .dock .filter-row {
    order: 1; flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 2px;
    scrollbar-width: none; scroll-snap-type: x proximity;
  }
  .dock .filter-row::-webkit-scrollbar { display: none; }
  .dock .chip { flex: none; scroll-snap-align: start; padding: .4rem .85rem; }
  .dock .chip.fav { margin-left: 0; }
  .dock .toolbar { order: 2; margin: 0; flex-wrap: nowrap; gap: .5rem; }
  .dock .search { flex: 1 1 auto; padding: .6rem .9rem; }
  .dock .search input { font-size: 16px; } /* verhindert Zoom auf iOS */
  .dock .search kbd { display: none; }
  /* Sortierung als runder Knopf, die native Auswahl liegt unsichtbar darüber */
  .dock .sort > span { display: none; }
  .dock .sort {
    flex: none; width: 2.9rem; height: 2.9rem; justify-content: center; border-radius: 50%;
    background: var(--input-bg); border: 1px solid var(--card-border); color: var(--text);
  }
  .dock .sort:focus-within { border-color: var(--wu-orange); }
  .dock .sort.changed { background: var(--wu-orange); border-color: var(--wu-orange); color: var(--wu-black); }
  .dock .sort-icon { display: block; width: 1.3rem; height: 1.3rem; }
  .dock .sort select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; }

  /* Kompakte Kacheln, zwei pro Reihe, Antippen startet das Spiel */
  .catalog .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .catalog .game { border-radius: 18px; }
  .catalog .game:hover { translate: none; }
  .catalog .stage { aspect-ratio: 3 / 4; }
  .catalog .game-body { padding: .6rem .75rem .2rem; }
  .catalog .game-body h3 { font-size: 1.05rem; }
  .catalog .game-body p, .catalog .game .chips, .catalog .plays, .catalog .langs, .catalog .game-foot .btn.play { display: none; }
  .catalog .badge-new { bottom: 8px; left: 8px; font-size: .7rem; }
  .catalog .game-foot { border-top: 0; padding: .25rem .75rem .7rem; justify-content: space-between; }
  .catalog .heart { padding: .2rem .6rem; font-size: .85rem; }
  .catalog .tile-start { display: block; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
  .catalog .tile-start:focus-visible { outline-offset: -3px; }
  .catalog .heart, .catalog .tile-info { position: relative; z-index: 2; }
  .catalog .tile-info {
    display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
    border: 1px solid var(--card-border); color: var(--muted); font: italic 700 .95rem/1 Georgia, serif;
  }
  .catalog .tile-info:hover { border-color: var(--wu-orange); color: var(--accent-text); }

  .detail { padding-inline: 12px; }

  /* Footer schlank */
  .footer { padding: 1.25rem 16px calc(1.25rem + env(safe-area-inset-bottom)); gap: .35rem; font-size: .8rem; }
  .footer .socials { margin: 0 0 .25rem; gap: 1.25rem; }
  .footer .socials svg { height: 1.4em; }
  .footer-links { gap: .4rem 1rem; }
  body[data-page="index"] .footer { padding-bottom: calc(130px + env(safe-area-inset-bottom)); }
}

/* ---------- Desktop: Bild links, Text rechts (Screenshots sind hochkant) ---------- */
@media (min-width: 701px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 470px), 1fr)); }
  .game { display: grid; grid-template-columns: minmax(180px, min(42%, 250px)) 1fr; grid-template-rows: auto auto 1fr; }
  .game-link { display: contents; }
  .game .stage { grid-column: 1; grid-row: 1 / -1; aspect-ratio: 3 / 4; }
  .game .stage img { position: absolute; inset: 0; }
  .game-body { grid-column: 2; grid-row: 1; padding: 1.25rem 1.25rem .6rem; }
  .game-body h3 { font-size: var(--step-2); }
  .game-body p { font-size: .95rem; line-height: 1.45; -webkit-line-clamp: 4; }
  .game .chips { grid-column: 2; grid-row: 2; padding: .1rem 1.25rem .75rem; }
  .game-foot { grid-column: 2; grid-row: 3; align-self: end; gap: .6rem; padding: .75rem 1.25rem 1rem; }
  .game-foot .langs { display: none; }
  .game-foot .btn.play { margin-left: auto; }
}
