/* =====================================================================
   Erdgames – Strawberry
   Gemeinsames Stylesheet für Startseite und Rechtsseiten.
   Farben ändern: Variablen unter :root (dunkel) und [data-theme="light"].
   ===================================================================== */

/* Schriften lokal eingebunden – keine Verbindung zu Google Fonts */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/fonts/instrument-sans-latin.woff2") format("woff2");
}

:root {
  --bg: #0b0a0f;
  --bg-2: #100f15;
  --surface: #15131b;
  --raised: #1d1b25;
  --line: #2a2733;
  --line-2: #3d3947;
  --ink: #f6f4f9;
  --muted: #a8a4b4;
  --accent: #ff3d5a;
  --accent-2: #ff6b82;
  --accent-rgb: 255, 61, 90;
  --leaf: #7ddc5a;
  --leaf-rgb: 125, 220, 90;
  --amber: #f5b14c;
  --amber-rgb: 245, 177, 76;
  --sky: #6cb6ff;
  --sky-rgb: 108, 182, 255;
  --on-accent: #1a050a;
  --grid: rgba(255, 255, 255, .045);
  --shadow: 0 30px 60px -28px rgba(0, 0, 0, .9);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f8f7fa; --bg-2: #f1f0f4; --surface: #ffffff; --raised: #f4f3f7;
  --line: #e3e1e9; --line-2: #cfccd8; --ink: #17151c; --muted: #5b5866;
  --accent: #d4163a; --accent-2: #b8112f; --accent-rgb: 212, 22, 58;
  --leaf: #2f7d20; --leaf-rgb: 47, 125, 32; --on-accent: #ffffff;
  --amber: #9a5b00; --amber-rgb: 154, 91, 0;
  --sky: #1d63b8; --sky-rgb: 29, 99, 184;
  --grid: rgba(23, 21, 28, .06);
  --shadow: 0 30px 60px -30px rgba(23, 21, 28, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 84px;
}
body { 
  margin: 0; 
  background: var(--bg); 
  color: var(--ink); 
  font: 400 17px/1.6 var(--font-body); 
  -webkit-font-smoothing: antialiased; 
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--bg), var(--bg-2), var(--bg));
  background-size: 400% 400%;
  background-position: 0% 0%;
  opacity: 0.03;
  animation: gradientShift 30s ease infinite alternate;
  pointer-events: none;
}

@keyframes gradientShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
::-webkit-scrollbar-thumb:active { background: var(--accent); }
::-webkit-scrollbar-corner { background: var(--bg-2); }

img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
button, input, select { font-family: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pcard:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; color: var(--bg); }

/* ---------- Header ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
header.top { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; height: 66px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 700 20px var(--font-display); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav.main { position: relative; display: flex; gap: 4px; margin-left: auto; }
nav.main a { position: relative; z-index: 1; color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 99px; font-size: 15px; font-weight: 500; transition: color .2s; }
nav.main a:hover, nav.main a[aria-current="true"] { color: var(--ink); }
.nav-ind { position: absolute; z-index: 0; top: 0; bottom: 0; margin: auto 0; height: 36px; border-radius: 99px; background: var(--raised); border: 1px solid var(--line); transition: left .3s cubic-bezier(.3,.8,.3,1), width .3s cubic-bezier(.3,.8,.3,1), opacity .2s; opacity: 0; }
.tools { display: flex; align-items: center; gap: 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; background: var(--surface); }
.seg button { border: 0; background: transparent; color: var(--muted); font: 600 13px var(--font-body); padding: 5px 13px; min-height: 44px; border-radius: 99px; cursor: pointer; transition: background .2s, color .2s; -webkit-tap-highlight-color: transparent; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 50%; cursor: pointer; transition: border-color .25s cubic-bezier(.3,1,.5,1), transform .25s cubic-bezier(.3,1,.5,1), box-shadow .25s cubic-bezier(.3,1,.5,1); -webkit-tap-highlight-color: transparent; }
.icon-btn:hover { border-color: var(--line-2); transform: rotate(12deg) translateY(-2px); box-shadow: 0 8px 20px -12px rgba(var(--accent-rgb), .3); }
.icon-btn:active { transform: scale(0.95); }
.menu-btn { display: none; }
.sun { display: none; }
:root[data-theme="dark"] .sun { display: block; }
:root[data-theme="dark"] .moon { display: none; }

/* Mobile settings inside nav */
.mobile-settings {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.mobile-separator {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0;
}
.mobile-settings button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: left;
}
.mobile-settings button[hidden] { display: none; }
.mobile-settings button:hover {
  background: var(--raised);
}
.mobile-settings button svg {
  flex-shrink: 0;
  color: var(--muted);
}
.mobile-settings button:hover svg {
  color: var(--accent);
}
.mobile-settings .mobile-lang {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 8px 0;
}
.mobile-settings .mobile-lang button {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--raised);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mobile-settings .mobile-lang button:hover {
  background: var(--surface);
  border-color: var(--line-2);
}
.mobile-settings .mobile-lang button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

@media (max-width: 780px) {
  .mobile-settings { display: flex; }
  .header-actions { display: none; }

  /* Disable parallax on mobile for performance */
  .hero-bg { transform: none !important; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 12px 22px; border-radius: 12px; font: 600 15px var(--font-body); line-height: 1.25; text-decoration: none; text-align: center; border: 1px solid transparent; cursor: pointer; transition: background .25s cubic-bezier(.3,1,.5,1), border-color .25s cubic-bezier(.3,1,.5,1), box-shadow .25s cubic-bezier(.3,1,.5,1), transform .25s cubic-bezier(.3,1,.5,1); will-change: transform; }
.btn svg { flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), .7); }
.btn-primary:hover { background: var(--accent-2); color: var(--on-accent); box-shadow: 0 14px 36px -10px rgba(var(--accent-rgb), .9), 0 0 20px rgba(var(--accent-rgb), .35); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); box-shadow: 0 8px 20px -12px rgba(0,0,0,.12); transform: translateY(-1px); }
.btn:active { transform: scale(.97) !important; }
.btn.sm { min-height: 40px; padding: 8px 16px; font-size: 14px; border-radius: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.ext::after { content: "↗"; font-size: .9em; margin-left: -4px; opacity: .7; }

/* ---------- Hero ---------- */
.hero { 
  position: relative; 
  padding: 76px 0 110px; 
  overflow: hidden; 
  isolation: isolate;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.hero::before { 
  content: ""; 
  position: absolute; 
  z-index: -1; 
  inset: -20% -10% auto 40%; 
  height: 120%; 
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .16), transparent); 
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.16; transform: scale(1); }
  50% { opacity: 0.24; transform: scale(1.05); }
}
.hero-bg { 
  position: absolute; 
  z-index: -1; 
  inset: 0; 
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); 
  background-size: 28px 28px; 
  -webkit-mask-image: linear-gradient(#000 50%, transparent); 
  mask-image: linear-gradient(#000 50%, transparent); 
  pointer-events: none;
  will-change: transform;
}
.hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid { 
  display: grid; 
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); 
  gap: 48px; 
  align-items: center;
  transform: translateZ(0);
  transition: transform 0.1s ease-out;
}
.logo-btn { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 20px; margin-bottom: 30px; display: block; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.logo-btn:hover { transform: rotate(-6deg) scale(1.06); }
.logo-btn img { width: 80px; height: 80px; border-radius: 20px; box-shadow: 0 18px 40px -14px rgba(var(--accent-rgb), .7); }
.hero h1 { font-size: clamp(40px, 5.4vw, 78px); letter-spacing: -.04em; margin-bottom: 26px; overflow-wrap: break-word; }
.hero .lead { font-size: 21px; color: var(--muted); max-width: 28em; }
.hero .small { font-size: 17px; }
.hero .row { margin-top: 34px; }

.scene { perspective: 1400px; }
.stack { position: relative; aspect-ratio: 1.12 / 1; transform-style: preserve-3d; transition: transform .3s ease-out; }
.win { position: absolute; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; background: var(--raised); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; }
.win-bar i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }
.win img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: var(--raised); }
.w1 { width: 80%; right: 0; top: 9%; transform: translateZ(0); }
.w2 { width: 54%; left: 0; top: 38%; transform: translateZ(50px); }
.w3 { width: 44%; right: 5%; bottom: 0; transform: translateZ(95px); }
.badge { position: absolute; z-index: 5; left: 0; top: 0; transform: translateZ(120px); display: inline-flex; white-space: nowrap; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--ink); color: var(--bg); font: 600 14px var(--font-body); text-decoration: none; box-shadow: var(--shadow); }
.badge:hover { color: var(--bg); background: var(--accent); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--leaf); }
@media (prefers-reduced-motion: no-preference) {
  .win { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .w2 { animation-delay: .12s; } .w3 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; translate: 0 22px; } }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { max-width: 660px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 14px; }
.sec-head p { color: var(--muted); font-size: 19px; margin: 0; }
.reveal { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; translate: 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* ---------- Status + tags ---------- */
.tag { font-size: 13px; font-weight: 600; padding: 3px 11px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; border: 1px solid; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.active { color: var(--leaf); border-color: rgba(var(--leaf-rgb), .5); background: rgba(var(--leaf-rgb), .08); }
.status.development { color: var(--amber); border-color: rgba(var(--amber-rgb), .5); background: rgba(var(--amber-rgb), .08); }
.status.beta { color: var(--sky); border-color: rgba(var(--sky-rgb), .5); background: rgba(var(--sky-rgb), .08); }
.status.archived { color: var(--muted); border-color: var(--line-2); background: var(--raised); }

/* ---------- Featured project (bisheriges App-Panel) ---------- */
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding: 40px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.app-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.app-title .logo { width: 48px; height: 48px; border-radius: 12px; }
.app-title .logo img:not(.logo-ph-bg) { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.app-title h3 { font-size: clamp(30px, 3.4vw, 42px); }
.info p { color: var(--muted); }
.info .tagline { color: var(--ink); font-size: 20px; line-height: 1.45; }
.chips { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; font-weight: 500; padding: 6px 13px; border-radius: 99px; background: var(--raised); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.chips li:hover { border-color: var(--accent); transform: translateY(-2px); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 24px; }
.stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); }
.stat b { display: block; font: 700 28px var(--font-display); letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); line-height: 1.3; display: block; margin-top: 2px; }
.os { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.os em { font-style: normal; padding: 3px 11px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.note { font-size: 14px; border-left: 3px solid var(--leaf); padding: 2px 0 2px 14px; margin: 22px 0 0; color: var(--muted); }
.note strong { color: var(--ink); }

/* ---------- Gallery ---------- */
.gallery { min-width: 0; }
.stage { position: relative; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: var(--raised); box-shadow: var(--shadow); touch-action: pan-y; }
.stage > img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; cursor: zoom-in; transition: opacity .14s; }
.stage > img.out { opacity: 0; }
.gbtn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(10, 9, 14, .65); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, transform .2s; -webkit-tap-highlight-color: transparent; }
.gbtn:hover { background: var(--accent); color: var(--on-accent); }
.gbtn:active { transform: scale(0.95); }
.gbtn.prev { left: 12px; top: 50%; margin-top: -24px; }
.gbtn.next { right: 12px; top: 50%; margin-top: -24px; }
.gbtn.zoom { right: 12px; top: 12px; width: 44px; height: 44px; }
.count { position: absolute; left: 12px; bottom: 12px; padding: 3px 12px; border-radius: 99px; background: rgba(10,9,14,.7); color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cap { margin: 14px 2px 0; font-weight: 500; min-height: 1.6em; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; margin-top: 14px; }
.thumbs button { padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--raised); cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s, transform .2s; min-height: 60px; -webkit-tap-highlight-color: transparent; }
.thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.thumbs button:active { transform: scale(0.95); }
.thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.thumbs img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.single .gbtn.prev, .single .gbtn.next, .single .count, .single + .cap + .thumbs { display: none; }

dialog#lb { border: 0; padding: 0; background: transparent; width: min(1200px, 94vw); max-width: none; max-height: none; color: #fff; overflow: visible; }
dialog#lb::backdrop { background: rgba(5, 4, 8, .88); backdrop-filter: blur(8px); }
#lb img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 14px; background: #15131b; }
#lb .cap { text-align: center; margin-top: 14px; }
#lb .gbtn.prev { left: -6px; } #lb .gbtn.next { right: -6px; }
#lb .gbtn.x { right: 0; top: -54px; width: 48px; height: 48px; }

/* ---------- Project browser ---------- */
.featured { margin-bottom: 64px; }

/* ---------- Keyboard Shortcuts Dialog ---------- */
/* Removed - dialog no longer used */

.pb-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pb-head h3 { font-size: clamp(26px, 3vw, 34px); }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; margin-bottom: 22px; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; transition: color .25s cubic-bezier(.3,1,.5,1); }
.search input { width: 100%; min-height: 48px; padding: 10px 40px 10px 42px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 16px; transition: border-color .25s cubic-bezier(.3,1,.5,1), box-shadow .25s cubic-bezier(.3,1,.5,1), background .25s cubic-bezier(.3,1,.5,1); }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25), 0 0 20px rgba(var(--accent-rgb), .15); background: var(--bg); }
.search input:focus + svg { color: var(--accent); }
.search .clear { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; transition: color .25s cubic-bezier(.3,1,.5,1), background .25s cubic-bezier(.3,1,.5,1), transform .25s cubic-bezier(.3,1,.5,1); }
.search .clear:hover { color: var(--ink); background: var(--raised); transform: scale(1.1); }
.search .clear[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { min-height: 44px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); font: 600 14px var(--font-body); cursor: pointer; transition: border-color .25s cubic-bezier(.3,1,.5,1), color .25s cubic-bezier(.3,1,.5,1), background .25s cubic-bezier(.3,1,.5,1), transform .25s cubic-bezier(.3,1,.5,1), box-shadow .25s cubic-bezier(.3,1,.5,1); -webkit-tap-highlight-color: transparent; }
.filters button:hover { color: var(--ink); border-color: var(--line-2); transform: translateY(-1px); box-shadow: 0 6px 16px -10px rgba(0,0,0,.1); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: 0 8px 20px -12px rgba(0,0,0,.2); }
.filters button .n { margin-left: 6px; font-weight: 500; opacity: .65; font-variant-numeric: tabular-nums; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; min-height: 40px; padding: 7px 36px 7px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); font: 600 14px var(--font-body); cursor: pointer; }
.select::after { content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); rotate: 45deg; pointer-events: none; }
.result-info { font-size: 14px; color: var(--muted); margin: -8px 0 18px; min-height: 1.4em; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.pcard { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; isolation: isolate; transition: border-color .25s cubic-bezier(.3,1,.5,1), transform .25s cubic-bezier(.3,1,.5,1), box-shadow .25s cubic-bezier(.3,1,.5,1), opacity .5s cubic-bezier(.3,1,.5,1); opacity: 0; transform: translateY(20px); }
.pcard.visible { opacity: 1; transform: translateY(0); }
.pcard:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 22px 44px -30px rgba(var(--accent-rgb), .65), 0 0 24px rgba(var(--accent-rgb), .15); }
.pcard .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--raised); border-bottom: 1px solid var(--line); overflow: hidden; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .thumb img { transform: scale(1.03); }
.pcard .thumb .status { position: absolute; left: 12px; top: 12px; backdrop-filter: blur(6px); background: color-mix(in srgb, var(--surface) 82%, transparent); }
.pcard .body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.pcard .title { display: flex; align-items: center; gap: 12px; }
.pcard .logo { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line); color: var(--accent); overflow: hidden; font: 700 17px var(--font-display); }
.pcard .logo img:not(.logo-ph-bg) { width: 100%; height: 100%; object-fit: cover; }
.logo.logo-ph { position: relative; display: grid; place-items: center; padding: 0; }
.logo.logo-ph .logo-ph-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; pointer-events: none; }
.logo.logo-ph .logo-ph-sym { position: relative; z-index: 1; display: grid; place-items: center; color: var(--accent); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.logo.logo-ph .logo-ph-sym svg { width: 22px; height: 22px; }
.pcard .logo.logo-ph .logo-ph-sym svg { width: 20px; height: 20px; }
.pd-head .logo.logo-ph .logo-ph-sym svg { width: 24px; height: 24px; }
.g-avatars .logo.logo-ph .logo-ph-sym svg { width: 14px; height: 14px; }
.pcard h4 { margin: 0; font: 700 19px/1.2 var(--font-display); letter-spacing: -.01em; }
.pcard .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.pcard .meta span + span::before { content: "·"; margin-right: 10px; opacity: .6; }
.pcard p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.pcard .stretch::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.pcard .actions a, .pcard .actions button { position: relative; z-index: 1; }
.empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: 18px; color: var(--muted); }
.empty p { margin-bottom: 16px; }
.load-error { padding: 20px 22px; border: 1px solid rgba(var(--accent-rgb), .45); border-radius: 14px; background: rgba(var(--accent-rgb), .08); color: var(--ink); }

/* ---------- Project dialog ---------- */
dialog.pd { width: min(1080px, 100% - 32px); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 120px -30px rgba(0,0,0,.8); overflow: hidden; }
dialog.pd[open] { display: flex; flex-direction: column; }
dialog.pd::backdrop { background: rgba(5, 4, 8, .72); backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: no-preference) { dialog.pd[open] { animation: pdIn .35s cubic-bezier(.2,.7,.2,1); } @keyframes pdIn { from { opacity: 0; translate: 0 16px; } } }
.pd-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px 18px 24px; border-bottom: 1px solid var(--line); }
.pd-head .logo { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line); color: var(--accent); overflow: hidden; font: 700 19px var(--font-display); }
.pd-head .logo img:not(.logo-ph-bg) { width: 100%; height: 100%; object-fit: cover; }
.pd-head h2 { font-size: clamp(22px, 3vw, 30px); }
.pd-head .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.pd-head .icon-btn { margin-left: auto; flex: none; }
.pd-body { overflow-y: auto; overscroll-behavior: contain; padding: 28px 24px 32px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 36px; }
.pd-body .tagline { font-size: 19px; line-height: 1.45; margin-bottom: 12px; }
.pd-body .desc { color: var(--muted); }
.pd-body h3 { font-size: 15px; font-family: var(--font-body); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 0; }
.facts div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.dl-list { display: grid; gap: 8px; }
.dl { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.dl:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.dl .dl-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: var(--on-accent); }
.dl strong { display: block; font-size: 15px; }
.dl small { color: var(--muted); font-size: 13px; }
.dl .arrow { margin-left: auto; color: var(--muted); }
.mobile-note { display: none; font-size: 14px; color: var(--muted); padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 12px; }
.link-list { display: flex; flex-wrap: wrap; gap: 8px; }
.game-launch { margin-bottom: 22px; }

/* ---------- Eingebettete Spiele ---------- */
dialog.game-dialog { width: min(1440px, 100vw - 32px); height: min(920px, 100dvh - 32px); max-width: none; max-height: none; padding: 0; border: 1px solid var(--line-2); border-radius: 22px; background: var(--bg); color: var(--ink); box-shadow: 0 40px 120px -30px rgba(0,0,0,.8); overflow: hidden; }
dialog.game-dialog[open] { display: flex; }
dialog.game-dialog::backdrop { background: rgba(5, 4, 8, .82); backdrop-filter: blur(8px); }
.game-shell { width: 100%; height: 100%; min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; background: var(--bg); }
.game-shell:fullscreen { width: 100%; height: 100%; background: var(--bg); }
.game-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto auto; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.game-back, .game-fullscreen { justify-self: start; min-height: 42px; white-space: nowrap; }
.game-fullscreen { justify-self: end; }
.game-heading { min-width: 0; text-align: center; }
.game-eyebrow { display: block; margin-bottom: 2px; color: var(--accent); font: 700 10px var(--font-body); letter-spacing: .14em; }
.game-heading h2 { overflow: hidden; font-size: clamp(18px, 2.6vw, 24px); text-overflow: ellipsis; white-space: nowrap; }
.game-volume { display: flex; align-items: center; gap: 9px; }
.game-mute { width: 42px; min-width: 42px; height: 42px; padding: 0; justify-content: center; }
.game-volume input[type="range"] { width: clamp(84px, 9vw, 132px); height: 38px; margin: 0; appearance: none; background: transparent; cursor: pointer; touch-action: manipulation; }
.game-volume input[type="range"]::-webkit-slider-runnable-track { height: 6px; border: 1px solid var(--line-2); border-radius: 999px; background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--volume-progress, 100%), var(--line-2) var(--volume-progress, 100%), var(--line-2) 100%); }
.game-volume input[type="range"]::-moz-range-track { height: 6px; border: 1px solid var(--line-2); border-radius: 999px; background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--volume-progress, 100%), var(--line-2) var(--volume-progress, 100%), var(--line-2) 100%); }
.game-volume input[type="range"]::-webkit-slider-thumb { width: 17px; height: 17px; margin-top: -6px; appearance: none; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 2px 8px rgba(0,0,0,.3); }
.game-volume input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 2px 8px rgba(0,0,0,.3); }
.game-volume input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 999px; }
.game-volume input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2), 0 2px 8px rgba(0,0,0,.3); }
.game-volume input[type="range"]:hover::-moz-range-thumb { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2), 0 2px 8px rgba(0,0,0,.3); }
.game-volume #gameVolumeValue { min-width: 34px; color: var(--muted); font: 600 11px var(--font-body); font-variant-numeric: tabular-nums; text-align: right; }
.game-stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 14px; overflow: hidden; background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), .07), transparent 70%); }
.game-stage iframe { display: block; width: 100%; height: 100%; min-height: 0; border: 1px solid var(--line); border-radius: 14px; background: #08080b; }
.game-leaderboard-toggle { position: absolute; right: 24px; bottom: 24px; z-index: 2; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink); font: 700 12px var(--font-body); box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer; backdrop-filter: blur(12px); }
.game-leaderboard-toggle:hover { border-color: var(--accent); color: var(--accent-2); }
.game-leaderboard-toggle[hidden], .game-leaderboard[hidden] { display: none; }
.game-leaderboard { position: absolute; right: 24px; bottom: 24px; z-index: 3; width: min(340px, calc(100% - 32px)); max-height: min(78%, 460px); padding: 14px; overflow: auto; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); background: color-mix(in srgb, var(--surface) 96%, transparent); color: var(--ink); box-shadow: 0 18px 60px rgba(0,0,0,.45); backdrop-filter: blur(18px); }
.game-leaderboard-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.game-leaderboard-head h3 { margin: 0; font-size: 15px; }
.game-leaderboard-head .icon-btn { width: 34px; min-width: 34px; height: 34px; }
.game-leaderboard-columns { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 9px; margin: 12px 8px 5px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.game-leaderboard-columns span:last-child { text-align: right; }
.game-leaderboard-list { display: grid; gap: 4px; margin: 12px 0 0; padding: 0; list-style: none; }
.game-leaderboard-columns + .game-leaderboard-list { margin-top: 0; }
.game-leaderboard-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 34px; padding: 4px 8px; border-radius: 9px; background: var(--raised); font-size: 13px; }
.game-leaderboard-personal[hidden] { display: none; }
.game-leaderboard-personal { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.game-leaderboard-personal h4 { margin: 0 0 6px; color: var(--muted); font-size: 11px; }
.game-leaderboard-personal-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 36px; padding: 5px 8px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 9px; background: color-mix(in srgb, var(--accent) 10%, var(--raised)); font-size: 13px; }
.game-best-progress[hidden] { display: none; }
.game-best-progress { margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.game-best-progress-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.game-best-progress-heading h4 { margin: 0; color: var(--muted); font-size: 11px; }
.game-best-progress-heading strong { color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.game-best-progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: var(--line); }
.game-best-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .18s ease-out; }
.game-best-progress.is-record .game-best-progress-track span { background: linear-gradient(90deg, #f4a340, #f0644d); }
.game-best-progress p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.game-offline-toggle { justify-self: center; display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; min-height: 40px; margin: 6px 0 max(6px, env(safe-area-inset-bottom)); padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 12px var(--font-body); cursor: pointer; }
.game-offline-toggle:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-2); }
.game-offline-toggle:disabled { opacity: .65; cursor: progress; }
.game-offline-toggle[hidden] { display: none; }
.install-app[hidden], .install-app-mobile[hidden] { display: none; }
.game-leaderboard-rank { color: var(--accent-2); font-weight: 800; font-variant-numeric: tabular-nums; }
.game-leaderboard-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-leaderboard-score { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.game-leaderboard-status { margin: 10px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.game-leaderboard-status:empty { display: none; }
.game-help { display: flex; min-height: 40px; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 18px; padding: 7px 16px 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.4; text-align: center; }
.game-help p { margin: 0; }
.game-orientation { display: none; align-items: center; gap: 6px; color: var(--accent-2); }
.game-orientation[hidden] { display: none !important; }
.game-help.is-dismissed { display: none; }
@media (max-width: 640px) {
  dialog.game-dialog { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .game-head { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 6px; padding: calc(6px + env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 6px max(8px, env(safe-area-inset-left)); }
  .game-back, .game-fullscreen, .game-mute { width: 40px; min-width: 40px; height: 40px; padding: 0; justify-content: center; }
  .game-back span, .game-fullscreen span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .game-eyebrow { display: none; }
  .game-heading h2 { font-size: clamp(14px, 4vw, 17px); }
  .game-volume { gap: 2px; }
  .game-volume input[type="range"] { width: clamp(58px, 16vw, 76px); height: 40px; }
  .game-volume #gameVolumeValue { min-width: 30px; font-size: 10px; }
  .game-stage { padding: 4px max(4px, env(safe-area-inset-right)) 4px max(4px, env(safe-area-inset-left)); }
  .game-stage iframe { border-radius: 6px; }
  .game-leaderboard-toggle, .game-leaderboard { right: 12px; bottom: 12px; }
  .game-leaderboard { width: min(330px, calc(100% - 24px)); max-height: min(82%, 460px); padding: 12px; }
  .game-help { min-height: 34px; gap: 3px 12px; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); font-size: 10px; }
}
@media (max-width: 350px) {
  .game-head { gap: 4px; padding-right: max(5px, env(safe-area-inset-right)); padding-left: max(5px, env(safe-area-inset-left)); }
  .game-back, .game-fullscreen, .game-mute { width: 36px; min-width: 36px; height: 38px; }
  .game-volume { gap: 1px; }
  .game-volume input[type="range"] { width: 44px; }
  .game-volume #gameVolumeValue { min-width: 27px; font-size: 9px; }
}
@media (max-width: 760px) and (orientation: portrait) {
  .game-orientation:not([hidden]) { display: flex; }
}
@media (max-height: 500px) and (orientation: landscape) {
  dialog.game-dialog { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .game-head { gap: 8px; padding-top: max(4px, env(safe-area-inset-top)); padding-bottom: 4px; }
  .game-back, .game-fullscreen, .game-mute { min-height: 36px; height: 36px; }
  .game-volume input[type="range"] { height: 34px; }
  .game-stage { padding: 2px max(4px, env(safe-area-inset-right)) 2px max(4px, env(safe-area-inset-left)); }
}

/* Windows-/Desktop-Installer auf Handy-Bildschirmen ausblenden */
@media (max-width: 760px) {
  .desktop-only { display: none !important; }
  .mobile-note { display: block; }
}

/* ---------- Community + About + Contact ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; isolation: isolate; transition: border-color .25s, transform .25s; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), .16), transparent 60%); }
.spot:hover::before { opacity: 1; }
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card .ico, .c-top .ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--raised); border: 1px solid var(--line); color: var(--accent); margin-bottom: 20px; }
.card h3 { font-size: 24px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }
.card .row { margin-top: auto; }
.card.feature { border-color: rgba(var(--accent-rgb), .45); background: linear-gradient(160deg, rgba(var(--accent-rgb), .12), var(--surface) 60%); }
.kv { display: grid; gap: 8px; margin: 0 0 20px; }
.kv div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; }
.kv dt { color: var(--muted); min-width: 64px; }
.kv dd { margin: 0; display: flex; align-items: center; gap: 6px; }
.kv code { font: 600 14px ui-monospace, "Cascadia Code", Consolas, monospace; padding: 2px 8px; border-radius: 6px; background: var(--raised); border: 1px solid var(--line); }
.copy { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; }
.copy:hover { color: var(--ink); border-color: var(--line-2); }

.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.about h2 { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 18px; }
.role { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 6px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); font-size: 15px; font-weight: 600; }
.role img { width: 28px; height: 28px; border-radius: 50%; }
.about .big { font: 500 clamp(22px, 2.6vw, 30px)/1.3 var(--font-display); letter-spacing: -.015em; margin-bottom: 22px; }
.about p { color: var(--muted); max-width: 36em; }
.credits { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.credits h3 { font-size: 24px; margin-bottom: 18px; }
.credits dl { margin: 0; }
.credits .it { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.credits .it:first-of-type { border-top: 0; padding-top: 0; }
.credits dt { font-weight: 600; font-size: 15px; }
.credits dd { margin: 0; color: var(--muted); font-size: 15px; }

.contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.c-item { display: flex; flex-direction: column; gap: 18px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.c-top { display: flex; gap: 16px; align-items: center; }
.c-top .ico { margin: 0; }
.c-top strong { display: block; font: 700 19px var(--font-display); }
.c-top small { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }

footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; }
footer .brand { font-size: 17px; }
footer .brand img { width: 28px; height: 28px; border-radius: 7px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
footer nav a:hover { color: var(--ink); }

/* ---------- Toast + particles ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 400; translate: -50% 20px; opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px; transition: opacity .25s, translate .25s; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; translate: -50% 0; }
.pxp { position: fixed; z-index: 150; pointer-events: none; border-radius: 2px; animation: pxp .85s cubic-bezier(.1,.7,.3,1) forwards; }
@keyframes pxp { to { transform: translate(var(--dx), var(--dy)) rotate(120deg); opacity: 0; } }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 14px; }
.legal .intro { color: var(--muted); font-size: 18px; margin-bottom: 36px; }
.legal section { padding: 0; margin-bottom: 34px; }
.legal h2 { font-size: 24px; margin-bottom: 12px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal dl { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 8px 20px; margin: 0 0 1em; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
mark.ph { background: rgba(var(--amber-rgb), .18); color: var(--ink); border: 1px dashed rgba(var(--amber-rgb), .8); border-radius: 6px; padding: 0 6px; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--muted); text-decoration: none; font-weight: 500; }
.back:hover { color: var(--ink); }
.stand { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .panel, .about, .pd-body { grid-template-columns: 1fr; gap: 32px; }
  .panel { padding: 24px; }
  .hero { padding-top: 48px; }
  .scene { max-width: 680px; }
  .toolbar { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 24px 20px; margin: 0; }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 14px; font-size: 17px; }
  nav.main a:hover { background: var(--raised); }
  .nav-ind { display: none; }
  .menu-btn { display: inline-grid; }
  .tools { margin-left: auto; }
  section { padding: 68px 0; }
  .bar { gap: 14px; }
  .hero { padding-bottom: 72px; }
  .featured { margin-bottom: 48px; }
  .pd-body { padding: 22px 18px 28px; }
  .pd-head { padding: 14px 14px 14px 18px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 32px); }
  .brand span { display: block; font-size: 16px; }
  .brand img { width: 32px; height: 32px; }
  .hero h1 { font-size: 38px; }
  .hero .lead { font-size: 19px; }
  .hero .row .btn { flex: 1 1 100%; }
  .badge { font-size: 12px; padding: 6px 11px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 24px; }
  .panel { padding: 18px; border-radius: 20px; }
  .card, .credits, .c-item { padding: 22px; }
  .grid { grid-template-columns: 1fr; }
  dialog.pd { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 10px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } .reveal { opacity: 1; translate: 0 0; } }

/* =====================================================================
   Feinschliff (Oktober 2026): Kopfzeile, Buttons, Gruppen, Karten,
   Nach-oben-Knopf, Handy-Ansicht
   ===================================================================== */

/* Kopfzeile: dezenter Schatten nach dem Scrollen */
header.top { transition: box-shadow .3s cubic-bezier(.3,1,.5,1), background .3s cubic-bezier(.3,1,.5,1); }
header.top.scrolled { box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .65), 0 0 30px rgba(var(--accent-rgb), .12); }
.brand img { transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }

/* Buttons: leichter Hub, Glanz beim Primär-Button, Pfeil schiebt mit */
.btn { position: relative; overflow: hidden; isolation: isolate; -webkit-tap-highlight-color: transparent; }
.btn:hover { translate: 0 -1px; }
.btn:active { transform: scale(0.97) !important; }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); translate: -120% 0; transition: translate .6s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.btn-primary:hover::after { translate: 120% 0; }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn svg { transition: transform .2s; }
.btn:hover svg[width="16"] { transform: translate(2px, -2px); }

/* Ripple effect for buttons */
.btn .ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 20;
  animation: ripple 0.65s ease-out forwards;
}

.btn-primary .ripple {
  background: rgba(255, 255, 255, 0.5);
}

/* Abschnitts-Überschriften: kleiner Akzentbalken */
.sec-head h2::after, .about h2::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--leaf)); }

/* Werkzeugleiste */
.toggle-all { gap: 8px; white-space: nowrap; min-height: 44px; }
.toggle-all .chev, .group-h .chev { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; translate: 0 -2px; transition: rotate .3s cubic-bezier(.2,.7,.2,1), translate .3s; flex: none; }
.toggle-all[data-state="close"] .chev { rotate: 225deg; translate: 0 2px; }

/* Gruppen (aufklappbar) */
.groups { display: grid; gap: 14px; }
.group { padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: border-color .25s, box-shadow .25s; }
.group:hover { border-color: var(--line-2); }
.group.open { box-shadow: 0 24px 50px -40px rgba(var(--accent-rgb), .7); }
.group-h { margin: 0; font: inherit; }
.group-h button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 0; border-radius: 20px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; min-height: 48px; -webkit-tap-highlight-color: transparent; }
.group-h .g-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--raised); border: 1px solid var(--line); color: var(--accent); transition: background .25s, color .25s, border-color .25s; }
.group-h .g-ico.has-img { padding: 0; overflow: hidden; }
.group-h .g-ico.has-img img { width: 100%; height: 100%; object-fit: cover; }
.group.open .g-ico:not(.has-img) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.group-h .g-text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.group-h .g-title { font: 700 20px/1.2 var(--font-display); letter-spacing: -.01em; }
.group-h .g-desc { font-size: 14px; color: var(--muted); }
.group-h .g-avatars { display: flex; }
.group-h .av { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--surface); background: var(--raised); color: var(--accent); display: grid; place-items: center; overflow: hidden; margin-left: -8px; transition: margin .3s; }
.group-h .av:first-child { margin-left: 0; }
.group-h .av img:not(.logo-ph-bg) { width: 100%; height: 100%; object-fit: cover; }
.group-h .av.logo-ph .logo-ph-sym svg { width: 14px; height: 14px; }
.group-h .av svg { width: 16px; height: 16px; }
.group-h button:hover .av { margin-left: -2px; }
.group-h button:hover .av:first-child { margin-left: 0; }
.group-h .g-count { min-width: 30px; padding: 2px 10px; border-radius: 99px; background: var(--raised); border: 1px solid var(--line); font-size: 13px; font-weight: 600; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.group-h .chev { margin: 0 4px 0 2px; color: var(--muted); }
.group.open .group-h .chev { rotate: 225deg; translate: 0 2px; }
.group-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2,.7,.2,1); }
.group.open .group-body { grid-template-rows: 1fr; }
.group-inner { overflow: hidden; min-height: 0; }
.group-inner .grid { padding: 4px 20px 20px; }
.group.no-anim .group-body { transition: none; }

/* Projektkarten: farbiger Rand + Logo-Wackler beim Überfahren */
.pcard { background: var(--bg-2); }
:root[data-theme="light"] .pcard { background: var(--surface); }
.pcard:hover { border-color: rgba(var(--accent-rgb), .55); }
.pcard .logo { transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.pcard:hover .logo { transform: rotate(-6deg) scale(1.05); }

/* Nach-oben-Knopf */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity .25s, translate .25s, border-color .2s, color .2s; }
.to-top.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Handy-Ansicht ---------- */
@media (max-width: 1000px) {
  .toolbar { grid-template-columns: minmax(0, 1fr) auto; }
  .toolbar .search { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
  .bar { height: 60px; }
  nav.main { top: 60px; padding: 8px 16px 16px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.8); }
  nav.main a { border-radius: 12px; }
  nav.main a:hover { background: var(--raised); }
  nav.main a[aria-current="true"] { background: var(--raised); color: var(--ink); }
  .hero { padding: 36px 0 56px; }
  .logo-btn { margin-bottom: 22px; }
  .logo-btn img { width: 68px; height: 68px; border-radius: 17px; }
  .hero .row { margin-top: 26px; }
  .scene { margin-top: 8px; }
  .badge { left: 6px; top: -6px; }
  .group-h .g-avatars { display: none; }
  .group-h button { padding: 14px 16px; gap: 12px; }
  .group-inner .grid { padding: 2px 12px 14px; }
}
@media (max-width: 560px) {
  /* Kompakte Karten: Bild links, Text rechts */
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .pcard { display: grid; grid-template-columns: 96px minmax(0, 1fr); border-radius: 14px; }
  .pcard .thumb { aspect-ratio: auto; height: 100%; min-height: 112px; border-bottom: 0; border-right: 1px solid var(--line); }
  .pcard .thumb .status { left: 6px; top: 6px; font-size: 10px; padding: 2px 7px; gap: 4px; }
  .pcard .thumb .status::before { width: 5px; height: 5px; }
  .pcard .body { padding: 12px 14px; gap: 6px; }
  .pcard .title { gap: 8px; }
  .pcard .logo { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
  .pcard .logo svg { width: 16px; height: 16px; }
  .pcard h4 { font-size: 16px; }
  .pcard .meta { font-size: 12px; gap: 2px 8px; }
  .pcard .meta span + span::before { margin-right: 8px; }
  .pcard p { font-size: 14px; -webkit-line-clamp: 2; }
  .pcard .actions { padding-top: 4px; gap: 6px; }
  .pcard .actions .btn.sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }
  .group-h .g-desc { display: none; }
  .group-h .g-ico { width: 38px; height: 38px; border-radius: 11px; }
  .group-h .g-title { font-size: 18px; }
  .featured .panel .row .btn { flex: 1 1 100%; }
  .stage > img { aspect-ratio: 4 / 3; }
  .cards, .contact-list { gap: 12px; }
  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}
@media (max-width: 360px) {
  .pcard { grid-template-columns: 80px minmax(0, 1fr); }
  .seg button { padding: 5px 10px; }
  .tools { gap: 6px; }
}

@media (max-width: 780px) {
  dialog.game-dialog {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .game-head {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "back fullscreen" "heading volume";
    gap: 8px 12px;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  }
  .game-back { grid-area: back; }
  .game-heading { grid-area: heading; text-align: left; }
  .game-volume { grid-area: volume; justify-self: end; gap: 6px; }
  .game-fullscreen { grid-area: fullscreen; }
  .game-back, .game-fullscreen { min-height: 44px; }
  .game-volume input[type="range"] { width: clamp(68px, 22vw, 112px); }
  .game-stage { padding: 8px; }
  .game-stage iframe { border-radius: 10px; }
  .game-leaderboard { right: 12px; bottom: 12px; max-height: calc(100% - 24px); }
  .game-help { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .pcard .actions .btn.sm { min-height: 44px; }
}
@media (max-width: 380px) {
  .game-volume #gameVolumeValue { display: none; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .game-head {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "back heading volume fullscreen";
    gap: 8px;
    padding: calc(6px + env(safe-area-inset-top)) 10px 6px;
  }
  .game-heading { text-align: center; }
  .game-eyebrow { display: none; }
  .game-volume #gameVolumeValue { display: none; }
  .game-volume input[type="range"] { width: clamp(58px, 12vw, 88px); }
  .game-stage { padding: 6px; }
  .game-back, .game-fullscreen, .game-mute { min-height: 40px; height: 40px; }
  .game-back { padding-inline: 8px; }
  .game-back span, .game-fullscreen span { font-size: 12px; }
}

/* =====================================================================
   Runde 3 (Oktober 2026): Karten, Downloads, Hero-Zahlen, Tab-Leiste,
   Kontakt, Barrierefreiheit, 404
   ===================================================================== */

/* „Neu"-Abzeichen */
.status.new { color: var(--accent); border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .1); }

/* Karten: ganze Karte klickbar, ein Knopf, „Details"-Hinweis */
.pcard { cursor: pointer; }
.pcard:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.pcard .actions { align-items: center; justify-content: space-between; }
.pcard .more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); transition: color .2s, gap .2s; }
.pcard .more .chev { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: -45deg; }
.pcard:hover .more { color: var(--ink); gap: 9px; }

/* Downloads: passendes System groß */
.dl.primary { border-color: var(--accent); background: rgba(var(--accent-rgb), .08); padding: 16px 18px; }
.dl.primary strong { font-size: 17px; }
.dl-other { margin: 14px 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* ================================
   ENHANCED DOWNLOAD BUTTONS WITH LIQUID EFFECT
   ================================ */
.dl {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--surface), var(--raised));
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.18s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.dl:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 9px 25px rgba(0, 0, 0, 0.2), 0 0 14px rgba(var(--accent-rgb), 0.15);
}

.dl:active {
  transform: scale(0.975);
}

.dl.primary {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.15), rgba(var(--accent-rgb), 0.08));
  padding: 18px 20px;
  box-shadow: 0 8px 28px rgba(var(--accent-rgb), 0.12), inset 3px 0 0 var(--accent);
}

.dl.primary:hover {
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.12));
}

/* Liquid wave effect */
.dl::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -5%;
  bottom: -105%;
  width: 110%;
  height: 110%;
  background: linear-gradient(to bottom, var(--accent-2), var(--accent) 55%, rgba(var(--accent-rgb), 0.8));
  border-radius: 48% 52% 0 0 / 12% 12% 0 0;
  transition: bottom 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  opacity: 0.15;
}

.dl:hover::before {
  bottom: -3%;
  opacity: 0.2;
}

.dl.primary::before {
  opacity: 0.25;
}

.dl.primary:hover::before {
  opacity: 0.35;
}

/* Wave animation */
.dl::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -5%;
  bottom: -105%;
  width: 110%;
  height: 20px;
  background: var(--accent-2);
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-2%) rotate(-1deg);
  transition: bottom 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s ease;
  box-shadow: 0 -2px 7px rgba(var(--accent-rgb), 0.2);
}

.dl:hover::after {
  bottom: -3%;
  opacity: 1;
  animation: wave 2.2s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% {
    transform: translateX(-2%) rotate(-1deg);
  }
  50% {
    transform: translateX(2%) rotate(1deg);
  }
}

/* Icon container */
.dl .dl-ico {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--raised), var(--bg-2));
  border: 1px solid var(--line);
  color: var(--accent);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.dl:hover .dl-ico {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: var(--accent);
  transform: scale(1.02);
}

.dl.primary .dl-ico {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.dl.primary:hover .dl-ico {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

/* Download icon animation */
.dl .dl-ico svg {
  width: 23px;
  height: 23px;
  transition: transform 0.3s ease;
}

.dl:hover .dl-ico svg {
  transform: translateY(2px);
}

/* Text content */
.dl .dl-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: 10px;
  z-index: 2;
}

.dl strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.1px;
  line-height: 1.2;
  transition: transform 0.25s ease;
}

.dl small {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.78;
  transform: none;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.dl:hover small {
  opacity: 1;
  color: color-mix(in srgb, var(--ink) 55%, var(--muted));
}

.dl.primary strong {
  font-size: 17px;
}

.dl.primary small {
  font-size: 13px;
}

/* Arrow icon */
.dl .arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.dl:hover .arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.dl.primary .arrow {
  color: var(--on-accent);
}

.dl.primary:hover .arrow {
  color: var(--on-accent);
}

/* Ripple effect (added as span) */
.dl .ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 20;
  animation: ripple 0.65s ease-out forwards;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.85;
  }
  100% {
    transform: translate(-50%, -50%) scale(42);
    opacity: 0;
  }
}

/* Unsupported state (mobile) */
.dl.unsupported {
  cursor: not-allowed;
  background: linear-gradient(145deg, var(--bg-2), var(--raised));
  border-color: var(--line);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
  opacity: 0.92;
}

.dl.unsupported:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.dl.unsupported::before,
.dl.unsupported::after {
  display: none;
}

.dl.unsupported .dl-ico {
  background: var(--bg-2);
  border-color: var(--line);
}

.dl.unsupported .dl-ico svg {
  opacity: 0.45;
}

.dl.unsupported strong {
  color: var(--muted);
}

.dl.unsupported small {
  opacity: 1;
  transform: translateY(0);
  color: var(--line-2);
}

/* Mobile adjustments */
@media (max-width: 780px) {
  .dl {
    padding: 12px 16px;
  }
  .dl .dl-ico {
    width: 40px;
    height: 40px;
  }
  .dl strong {
    font-size: 14px;
  }
  .dl small {
    font-size: 11px;
  }
}

/* Hero: Zahlenzeile */
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 26px 0 0; padding: 0; }
.hero-facts div { display: flex; align-items: baseline; gap: 8px; }
.hero-facts b { font: 700 26px var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-facts span { font-size: 14px; color: var(--muted); }
.hero-facts:empty { display: none; }
.hero .row { margin-top: 26px; }

/* Kontakt: kompakte Zeile */
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cbtn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.cbtn:hover { color: var(--ink); border-color: rgba(var(--accent-rgb), .55); transform: translateY(-2px); box-shadow: 0 18px 36px -26px rgba(var(--accent-rgb), .7); }
.cbtn .ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); color: var(--accent); }
.cbtn strong { display: block; font: 700 16px var(--font-display); }
.cbtn small { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.cbtn.copy-mail { padding: 12px; margin-left: -4px; }
.cbtn.copy-mail .ico { color: var(--muted); }
.cbtn.copy-mail:hover .ico { color: var(--accent); }

/* Dialog: Teilen-Knopf */
.pd-head .icon-btn.share { margin-left: auto; }
.pd-head .icon-btn.share + .icon-btn { margin-left: 0; }

/* Untere Tab-Leiste (nur Handy) */
.tabbar { display: none; }
@media (max-width: 780px) {
  .tabbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 95; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border: 1px solid var(--line-2); border-radius: 20px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); translate: 0 calc(100% + 24px); transition: translate .35s cubic-bezier(.2,.7,.2,1); }
  .tabbar.show { translate: 0 0; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 6px; border-radius: 14px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; transition: color .2s, background .2s; }
  .tabbar a[aria-current="true"] { color: var(--accent); background: rgba(var(--accent-rgb), .1); }
  .tabbar a svg { transition: transform .2s; }
  .tabbar a:active svg { transform: scale(.9); }
  body { padding-bottom: 84px; }
  .to-top { bottom: 92px; }
  .menu-btn { display: none; }
  nav.main { display: none !important; }
  .hero-facts { gap: 6px 22px; margin-top: 20px; }
  .hero-facts b { font-size: 22px; }
}
@media (max-width: 560px) {
  .contact-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .cbtn:not(.copy-mail) { grid-column: 1; }
  .cbtn.copy-mail { grid-column: 2; margin: 0; }
}

/* 404 */
.nf { min-height: calc(100dvh - 66px); display: grid; place-items: center; text-align: center; padding: 48px 0; }
.nf .wrap { max-width: 560px; display: grid; justify-items: center; gap: 10px; }
.nf-logo { border-radius: 24px; box-shadow: 0 18px 40px -14px rgba(var(--accent-rgb), .7); margin-bottom: 8px; }
.nf-code { font: 700 clamp(64px, 14vw, 120px)/1 var(--font-display); letter-spacing: -.05em; color: var(--accent); margin: 0; }
.nf h1 { font-size: clamp(28px, 5vw, 40px); }
.nf p { color: var(--muted); max-width: 32em; }
.nf .row { justify-content: center; margin-top: 10px; }

/* ---------- Barrierefreiheits-Modus ----------
   Mehr Kontrast, größere Schrift, unterstrichene Links, keine Bewegung. */
:root[data-a11y="1"] {
  --muted: #d6d2df; --line: #4a4657; --line-2: #6b6680; --accent: #ff5c75; --accent-rgb: 255, 92, 117; --leaf: #9ef07e; --leaf-rgb: 158, 240, 126; --amber: #ffc46b; --sky: #8ec8ff;
  --grid: rgba(255, 255, 255, .08);
}
:root[data-a11y="1"][data-theme="light"] {
  --muted: #2e2b36; --line: #b9b5c6; --line-2: #8b8699; --accent: #b0102f; --accent-rgb: 176, 16, 47; --leaf: #1f6a14; --leaf-rgb: 31, 106, 20; --amber: #7a4700; --sky: #134a8f;
}
:root[data-a11y="1"] body { font-size: 19px; line-height: 1.7; }
:root[data-a11y="1"] a:not(.btn):not(.brand):not(.badge):not(.pcard):not(.dl):not(.cbtn):not(.tabbar a):not(nav.main a) { text-decoration: underline; text-underline-offset: 3px; }
:root[data-a11y="1"] .pcard p, :root[data-a11y="1"] .card p, :root[data-a11y="1"] .info p, :root[data-a11y="1"] .legal p, :root[data-a11y="1"] .legal li { font-size: 1.02em; }
:root[data-a11y="1"] .pcard .meta, :root[data-a11y="1"] .stat span, :root[data-a11y="1"] .pcard .more, :root[data-a11y="1"] .g-desc, :root[data-a11y="1"] .hero-facts span, :root[data-a11y="1"] .cbtn small { font-size: 15px; }
:root[data-a11y="1"] .status { font-size: 13px; }
:root[data-a11y="1"] :focus-visible { outline-width: 4px; outline-offset: 4px; }
:root[data-a11y="1"] .icon-btn#a11y { background: var(--ink); color: var(--bg); border-color: var(--ink); }
:root[data-a11y="1"] .hero-bg, :root[data-a11y="1"] .progress, :root[data-a11y="1"] .spot::before { display: none; }
:root[data-a11y="1"] .btn-primary::after { display: none; }
:root[data-a11y="1"] *, :root[data-a11y="1"] *::before, :root[data-a11y="1"] *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
:root[data-a11y="1"] .reveal { opacity: 1; translate: 0 0; }
:root[data-a11y="1"] html { scroll-behavior: auto; }
:root[data-a11y="1"] body::before { display: none; }
:root[data-a11y="1"] .hero::before { animation: none; }
:root[data-a11y="1"] .pcard { opacity: 1 !important; transform: none !important; }

/* ---------- Site styles selected by upload.bat ---------- */
.hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--accent-2); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero-eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.logo-btn { margin-bottom: 22px; }
.logo-btn:hover { transform: translateY(-2px); }
.btn { transition-duration: .18s; }
.btn-primary { box-shadow: 0 8px 22px -12px rgba(var(--accent-rgb), .65); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -14px rgba(var(--accent-rgb), .75); }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -24px rgba(var(--accent-rgb), .55); }
.pcard:hover .logo { transform: translateY(-1px); }
.group-h button:hover .av { margin-left: -5px; }
.group-h button:hover .av:first-child { margin-left: 0; }

:root[data-site-style="standard"] .hero-grid > div:first-child { max-width: 620px; }
:root[data-site-style="standard"] .hero h1 { max-width: 9ch; }
:root[data-site-style="standard"] .hero .lead { max-width: 31em; }

:root[data-site-style="arcade"] {
  --bg: #0a0d18; --bg-2: #101526; --surface: #121a2d; --raised: #19243b;
  --line: #283654; --line-2: #3c5276; --ink: #f4f7ff; --muted: #aab6d0;
  --accent: #67f0ce; --accent-2: #a2ffe9; --accent-rgb: 103, 240, 206;
  --leaf: #b4ed68; --leaf-rgb: 180, 237, 104; --amber: #ffbd62; --amber-rgb: 255, 189, 98;
  --sky: #83b9ff; --sky-rgb: 131, 185, 255; --on-accent: #071410; --grid: rgba(123, 173, 255, .08);
}
:root[data-site-style="arcade"][data-theme="light"] {
  --bg: #f1f5ff; --bg-2: #e8eefb; --surface: #ffffff; --raised: #edf2fd;
  --line: #d2dcef; --line-2: #aebfdd; --ink: #10192b; --muted: #4d5d79;
  --accent: #087a68; --accent-2: #075d52; --accent-rgb: 8, 122, 104;
  --leaf: #396b0d; --leaf-rgb: 57, 107, 13; --amber: #805000; --amber-rgb: 128, 80, 0;
  --sky: #2459a5; --sky-rgb: 36, 89, 165; --on-accent: #fff; --grid: rgba(27, 66, 136, .08);
}
:root[data-site-style="arcade"] body { background-image: radial-gradient(ellipse at 82% 7%, rgba(var(--accent-rgb), .11), transparent 34%), linear-gradient(180deg, var(--bg), var(--bg-2) 54%, var(--bg)); }
:root[data-site-style="arcade"] .hero { padding-top: 94px; }
:root[data-site-style="arcade"] .hero::before { inset: -5% -12% auto 36%; height: 95%; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .2), transparent); }
:root[data-site-style="arcade"] .hero-bg { opacity: .58; background-size: 36px 36px; mask-image: linear-gradient(#000 65%, transparent); -webkit-mask-image: linear-gradient(#000 65%, transparent); }
:root[data-site-style="arcade"] .hero h1 { max-width: 9ch; font-size: clamp(52px, 7vw, 96px); line-height: .98; }
:root[data-site-style="arcade"] .hero .lead { color: var(--ink); font-size: clamp(20px, 2vw, 25px); }
:root[data-site-style="arcade"] .hero .small { font-size: 16px; }
:root[data-site-style="arcade"] .hero-facts { gap: 8px; }
:root[data-site-style="arcade"] .hero-facts > div { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface) 90%, transparent); }
:root[data-site-style="arcade"] .stack { transform: rotate(-2deg) scale(.96); }
:root[data-site-style="arcade"] .win { border-color: rgba(var(--accent-rgb), .5); border-radius: 18px; box-shadow: 0 24px 70px rgba(0, 0, 0, .42), 0 0 32px rgba(var(--accent-rgb), .1); }
:root[data-site-style="arcade"] .win-bar { background: #11192b; }
:root[data-site-style="arcade"] .badge { background: var(--accent); color: var(--on-accent); font-size: 12px; letter-spacing: .02em; }
:root[data-site-style="arcade"] section { padding-block: 88px; }
:root[data-site-style="arcade"] .featured .panel { border-color: rgba(var(--accent-rgb), .42); background: linear-gradient(135deg, rgba(var(--accent-rgb), .08), var(--surface) 48%); }
:root[data-site-style="arcade"] .group { border-radius: 14px; background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--surface) 82%, var(--accent))); }
:root[data-site-style="arcade"] .group.open { border-color: rgba(var(--accent-rgb), .48); }
:root[data-site-style="arcade"] .group-h .g-title { letter-spacing: .01em; }
:root[data-site-style="arcade"] .pcard { border-radius: 14px; background: var(--surface); }
:root[data-site-style="arcade"] .pcard .thumb { aspect-ratio: 16 / 10; }
:root[data-site-style="arcade"] .pcard .actions .btn-primary { background: var(--accent); }
:root[data-site-style="arcade"] header.top { border-bottom-color: rgba(var(--accent-rgb), .25); }
:root[data-site-style="arcade"] footer { background: var(--bg); }

:root[data-site-style="lab"] {
  --bg: #f3f5ef; --bg-2: #e9eee5; --surface: #fbfcf8; --raised: #edf2e9;
  --line: #d3ddce; --line-2: #a9bca3; --ink: #1b2b20; --muted: #526455;
  --accent: #397b50; --accent-2: #286541; --accent-rgb: 57, 123, 80;
  --leaf: #447c27; --leaf-rgb: 68, 124, 39; --amber: #805600; --amber-rgb: 128, 86, 0;
  --sky: #285e81; --sky-rgb: 40, 94, 129; --on-accent: #fff; --grid: rgba(48, 88, 57, .07);
  color-scheme: light;
}
:root[data-site-style="lab"][data-theme="dark"] {
  --bg: #101711; --bg-2: #151f17; --surface: #1b281e; --raised: #223126;
  --line: #354638; --line-2: #4e6853; --ink: #eef5e9; --muted: #b0c0ae;
  --accent: #8bd49a; --accent-2: #b3edbd; --accent-rgb: 139, 212, 154;
  --leaf: #b2df71; --leaf-rgb: 178, 223, 113; --amber: #ffd078; --amber-rgb: 255, 208, 120;
  --sky: #99c9ef; --sky-rgb: 153, 201, 239; --on-accent: #102015; --grid: rgba(177, 222, 175, .08);
  color-scheme: dark;
}
:root[data-site-style="lab"] body { background-image: linear-gradient(rgba(var(--accent-rgb), .045) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--accent-rgb), .045) 1px, transparent 1px); background-size: 32px 32px; }
:root[data-site-style="lab"] header.top { background: color-mix(in srgb, var(--bg) 92%, transparent); }
:root[data-site-style="lab"] .hero { padding-block: 76px 92px; }
:root[data-site-style="lab"] .hero::before { inset: 0 0 auto 44%; height: 100%; background: radial-gradient(closest-side, rgba(var(--leaf-rgb), .14), transparent); }
:root[data-site-style="lab"] .hero-bg { opacity: .28; }
:root[data-site-style="lab"] .hero-eyebrow { color: var(--accent); letter-spacing: .14em; }
:root[data-site-style="lab"] .hero h1 { max-width: 11ch; font-size: clamp(46px, 5.8vw, 76px); }
:root[data-site-style="lab"] .hero .lead { color: var(--ink); font-size: 20px; }
:root[data-site-style="lab"] .logo-btn img { border-radius: 14px; box-shadow: 0 8px 22px rgba(var(--accent-rgb), .18); }
:root[data-site-style="lab"] .stack { transform: none; }
:root[data-site-style="lab"] .win { border-radius: 8px; box-shadow: 0 16px 36px rgba(22, 48, 27, .16); }
:root[data-site-style="lab"] .win-bar { background: var(--raised); }
:root[data-site-style="lab"] .badge { border-radius: 8px; box-shadow: 0 6px 18px rgba(22, 48, 27, .15); }
:root[data-site-style="lab"] .panel, :root[data-site-style="lab"] .group, :root[data-site-style="lab"] .card, :root[data-site-style="lab"] .credits { border-radius: 12px; box-shadow: 0 8px 26px rgba(27, 53, 31, .045); }
:root[data-site-style="lab"] .featured .panel { border-top: 3px solid var(--accent); }
:root[data-site-style="lab"] .pcard { border-radius: 10px; }
:root[data-site-style="lab"] .pcard .thumb { aspect-ratio: 16 / 10; }
:root[data-site-style="lab"] .group-h .g-ico { border-radius: 9px; }
:root[data-site-style="lab"] .sec-head h2::after, :root[data-site-style="lab"] .about h2::after { width: 30px; height: 2px; }

:root[data-site-style="editorial"] {
  --bg: #f5f0e7; --bg-2: #eee7dc; --surface: #fbf8f2; --raised: #eee9df;
  --line: #d8cfc0; --line-2: #b9ab98; --ink: #25231f; --muted: #635d54;
  --accent: #a53f31; --accent-2: #863025; --accent-rgb: 165, 63, 49;
  --leaf: #476647; --leaf-rgb: 71, 102, 71; --amber: #806024; --amber-rgb: 128, 96, 36;
  --sky: #3e6378; --sky-rgb: 62, 99, 120; --on-accent: #fff; --grid: rgba(44, 39, 30, .045);
  --font-display: Georgia, "Times New Roman", serif;
  color-scheme: light;
}
:root[data-site-style="editorial"][data-theme="dark"] {
  --bg: #171512; --bg-2: #211d18; --surface: #28231d; --raised: #302a22;
  --line: #494033; --line-2: #635747; --ink: #f5efe5; --muted: #c0b5a5;
  --accent: #ec8a74; --accent-2: #f4a08b; --accent-rgb: 236, 138, 116;
  --leaf: #a3c291; --leaf-rgb: 163, 194, 145; --amber: #e4bb77; --amber-rgb: 228, 187, 119;
  --sky: #9fc8d8; --sky-rgb: 159, 200, 216; --on-accent: #21130f; --grid: rgba(250, 237, 217, .04);
  color-scheme: dark;
}
:root[data-site-style="editorial"] body { font-family: var(--font-body); background-image: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg) 91%, var(--accent)) 100%); }
:root[data-site-style="editorial"] header.top { background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); }
:root[data-site-style="editorial"] .hero { padding-block: clamp(70px, 10vw, 132px) 100px; }
:root[data-site-style="editorial"] .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 7vw, 100px); }
:root[data-site-style="editorial"] .hero-eyebrow { color: var(--accent); font-size: 11px; letter-spacing: .16em; }
:root[data-site-style="editorial"] .hero h1 { max-width: 8ch; font-family: Georgia, "Times New Roman", serif; font-size: clamp(58px, 7vw, 96px); font-weight: 500; line-height: .94; letter-spacing: -.06em; }
:root[data-site-style="editorial"] .hero .lead { max-width: 26em; color: var(--ink); font-size: 20px; }
:root[data-site-style="editorial"] .hero .small { font-size: 16px; }
:root[data-site-style="editorial"] .hero::before { inset: 0 0 auto 48%; height: 100%; background: radial-gradient(closest-side, rgba(var(--amber-rgb), .12), transparent); animation: none; }
:root[data-site-style="editorial"] .hero-bg { display: none; }
:root[data-site-style="editorial"] .logo-btn { margin-bottom: 30px; }
:root[data-site-style="editorial"] .logo-btn img { border-radius: 50%; box-shadow: none; }
:root[data-site-style="editorial"] .stack { transform: rotate(1deg) scale(.96); }
:root[data-site-style="editorial"] .win { border-radius: 4px; box-shadow: 0 28px 60px rgba(45, 33, 21, .2); }
:root[data-site-style="editorial"] .win-bar { height: 28px; background: var(--bg-2); }
:root[data-site-style="editorial"] .badge { border-radius: 4px; background: var(--accent); color: #fff; font-family: var(--font-body); box-shadow: 0 12px 24px rgba(var(--accent-rgb), .16); }
:root[data-site-style="editorial"] section { padding-block: clamp(70px, 8vw, 112px); }
:root[data-site-style="editorial"] .sec-head { border-bottom: 1px solid var(--line-2); padding-bottom: 22px; }
:root[data-site-style="editorial"] .sec-head h2, :root[data-site-style="editorial"] .about h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 5vw, 64px); font-weight: 500; letter-spacing: -.045em; }
:root[data-site-style="editorial"] .sec-head h2::after, :root[data-site-style="editorial"] .about h2::after { display: none; }
:root[data-site-style="editorial"] .panel { padding: clamp(22px, 4vw, 48px); border-radius: 4px; background: var(--surface); }
:root[data-site-style="editorial"] .group, :root[data-site-style="editorial"] .pcard, :root[data-site-style="editorial"] .card, :root[data-site-style="editorial"] .credits { border-radius: 4px; box-shadow: none; }
:root[data-site-style="editorial"] .pcard .thumb { aspect-ratio: 16 / 10; }
:root[data-site-style="editorial"] .group-h button { padding-inline: 24px; }
:root[data-site-style="editorial"] .group-h .g-ico { border-radius: 4px; }
:root[data-site-style="editorial"] .btn { border-radius: 4px; }
:root[data-site-style="editorial"] footer { border-top-color: var(--line-2); }

:root[data-site-style="adventure"] {
  --bg: #10151f; --bg-2: #151d29; --surface: #1b2634; --raised: #223141;
  --line: #34475a; --line-2: #526a7c; --ink: #eff4e8; --muted: #b1bda9;
  --accent: #f4c95d; --accent-2: #ffe18a; --accent-rgb: 244, 201, 93;
  --leaf: #9ed66e; --leaf-rgb: 158, 214, 110; --amber: #f4ae58; --amber-rgb: 244, 174, 88;
  --sky: #77c7de; --sky-rgb: 119, 199, 222; --on-accent: #241b08; --grid: rgba(146, 192, 164, .07);
}
:root[data-site-style="adventure"][data-theme="light"] {
  --bg: #f1f3e9; --bg-2: #e7ebde; --surface: #fbfcf6; --raised: #e9eee1;
  --line: #ccd5c2; --line-2: #a6b69a; --ink: #1e2a20; --muted: #526151;
  --accent: #89620a; --accent-2: #6d4b04; --accent-rgb: 137, 98, 10;
  --leaf: #3c711d; --leaf-rgb: 60, 113, 29; --amber: #805000; --amber-rgb: 128, 80, 0;
  --sky: #24677b; --sky-rgb: 36, 103, 123; --on-accent: #fff; --grid: rgba(73, 99, 57, .08);
}
:root[data-site-style="adventure"] body { background-image: linear-gradient(var(--grid) 2px, transparent 2px), linear-gradient(90deg, var(--grid) 2px, transparent 2px); background-size: 38px 38px; }
:root[data-site-style="adventure"] header.top { background: var(--bg); border-bottom: 2px solid var(--line); }
:root[data-site-style="adventure"] .bar { height: 72px; }
:root[data-site-style="adventure"] .hero { padding-block: 58px 90px; }
:root[data-site-style="adventure"] .hero::before { inset: 0; height: 100%; background: radial-gradient(ellipse at 76% 45%, rgba(var(--sky-rgb), .14), transparent 48%); animation: none; }
:root[data-site-style="adventure"] .hero-bg { opacity: .35; background-size: 38px 38px; mask-image: linear-gradient(#000 75%, transparent); -webkit-mask-image: linear-gradient(#000 75%, transparent); }
:root[data-site-style="adventure"] .hero-eyebrow { color: var(--accent); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .08em; }
:root[data-site-style="adventure"] .hero h1 { max-width: 10ch; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: clamp(40px, 5vw, 72px); line-height: 1.05; letter-spacing: -.08em; }
:root[data-site-style="adventure"] .hero .lead { color: var(--ink); }
:root[data-site-style="adventure"] .logo-btn img { border: 3px solid var(--accent); border-radius: 4px; box-shadow: 4px 4px 0 rgba(var(--accent-rgb), .3); }
:root[data-site-style="adventure"] .stack { transform: rotate(1deg) scale(.95); }
:root[data-site-style="adventure"] .win { border: 2px solid var(--line-2); border-radius: 4px; box-shadow: 8px 8px 0 rgba(0, 0, 0, .22); }
:root[data-site-style="adventure"] .win-bar { background: var(--raised); }
:root[data-site-style="adventure"] .badge { border: 2px solid var(--ink); border-radius: 4px; background: var(--accent); color: var(--on-accent); box-shadow: 4px 4px 0 var(--ink); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
:root[data-site-style="adventure"] section { padding-block: 76px; }
:root[data-site-style="adventure"] .sec-head h2, :root[data-site-style="adventure"] .about h2 { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.07em; }
:root[data-site-style="adventure"] .sec-head h2::after, :root[data-site-style="adventure"] .about h2::after { width: 24px; height: 6px; border-radius: 0; background: var(--accent); }
:root[data-site-style="adventure"] .panel, :root[data-site-style="adventure"] .group, :root[data-site-style="adventure"] .pcard, :root[data-site-style="adventure"] .card, :root[data-site-style="adventure"] .credits { border: 2px solid var(--line-2); border-radius: 4px; box-shadow: 4px 4px 0 rgba(0, 0, 0, .18); }
:root[data-site-style="adventure"] .group.open { border-color: var(--accent); }
:root[data-site-style="adventure"] .group-h .g-ico, :root[data-site-style="adventure"] .pcard .logo { border-radius: 3px; }
:root[data-site-style="adventure"] .pcard .thumb { aspect-ratio: 16 / 10; }
:root[data-site-style="adventure"] .btn { border-radius: 4px; box-shadow: 3px 3px 0 rgba(0, 0, 0, .2); }
:root[data-site-style="adventure"] .btn:hover { transform: translate(-1px, -1px); }
:root[data-site-style="adventure"] .to-top { border-radius: 4px; }

@media (max-width: 780px) {
  :root[data-site-style="editorial"] .hero { padding-top: 50px; }
  :root[data-site-style="editorial"] .hero-grid { gap: 20px; }
  :root[data-site-style="arcade"] .hero { padding-top: 52px; }
  :root[data-site-style="adventure"] .bar { height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .pcard, .pcard .logo, .logo-btn { transition: none; }
}
