/* Meshor Games – studio design system.
   The studio is the stage (ink + paper); every game brings its own colours. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2-variations"), url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/fredoka.ttf") format("truetype");
  font-weight: 400 700; font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #10122b;
  --ink-deep: #0a0c1f;
  --ink-2: #1a1d40;
  --line: #2e3266;
  --paper: #f5f1e6;
  --paper-soft: #bfc1da;
  --signal: #ffd25a;
  /* game colours, used by the studio mark and the hero shelf */
  --c-needle: #e8b64a;
  --c-fuchs: #e06a2c;
  --c-slf: #38b28c;
  --c-blue: #3f6fe0;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-needle: "Fredoka", "Archivo", system-ui, sans-serif;

  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.33rem;
  --t-lg: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem);
  --t-xl: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem);
  --t-mega: clamp(3.6rem, 0.6rem + 13vw, 11.5rem);

  --gutter: clamp(16px, 4vw, 48px);
  --measure: 64ch;
  --header-h: 64px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--font); font-size: var(--t-base); line-height: 1.6; font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: var(--signal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--paper); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--signal); color: var(--ink-deep); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--paper); color: var(--ink-deep); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font-weight: 900; font-stretch: 125%; letter-spacing: 0.01em; font-size: 1rem; text-transform: uppercase; }
.brand svg { width: 34px; height: 28px; flex: none; }
.brand:hover { color: var(--paper); }
.nav { display: flex; gap: clamp(0px, 1.6vw, 20px); }
.nav a { color: var(--paper-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 10px 7px; border-radius: 6px; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: 4px; height: 2px; background: var(--signal); border-radius: 2px; }
@media (max-width: 520px) { .brand span { display: none; } .nav a { font-size: 0.9rem; padding-inline: 6px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease-out);
}
.btn-signal { background: var(--signal); color: var(--ink-deep); }
.btn-signal:hover { background: var(--paper); color: var(--ink-deep); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { color: inherit; background: color-mix(in srgb, currentColor 10%, transparent); }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px;
  min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 14px; text-decoration: none;
  background: var(--paper); color: var(--ink-deep); transition: background-color .2s ease;
}
.store:hover { background: #fff; color: var(--ink-deep); }
.store svg { width: 24px; height: 24px; grid-row: span 2; }
.store small { font-size: 0.75rem; line-height: 1.1; font-weight: 500; }
.store strong { font-size: 1.02rem; line-height: 1.15; font-weight: 800; font-stretch: 110%; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; line-height: 1; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip[data-status="released"] { background: rgba(255, 210, 90, .14); color: var(--signal); }
.chip[data-status="live"] { background: rgba(255, 140, 90, .14); color: #ff9b6a; }
.chip[data-status="development"] { background: rgba(56, 178, 140, .16); color: #5fd3ad; }

/* ---------- studio hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh - var(--header-h), 920px);
  display: grid; align-items: center;
  background:
    radial-gradient(circle at 1px 1px, rgba(245, 241, 230, .09) 1px, transparent 1.6px) 0 0 / 28px 28px,
    radial-gradient(60% 70% at 85% 40%, #1f2356 0%, transparent 70%),
    var(--ink);
}
.hero-grid { display: grid; gap: 36px 48px; grid-template-columns: minmax(0, 1fr); padding-block: clamp(32px, 6vh, 80px) clamp(48px, 8vh, 96px); align-items: center; }
.hero-grid .wordmark { grid-column: 1 / -1; }
@media (max-width: 999px) {
  .hero-grid { gap: 28px; }
  .hero-grid .shelf { order: 2; }
  .hero-grid > div { order: 3; }
  .hero-grid .lede { font-size: var(--t-base); margin-top: 12px; }
  .token:nth-child(2) { margin-top: 20px; }
}
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.wordmark {
  margin: 0; font-size: var(--t-mega); line-height: 0.82; font-weight: 900; font-stretch: 125%;
  letter-spacing: -0.045em; text-transform: uppercase;
}
.wordmark span { display: block; }
.wordmark .w2 { -webkit-text-stroke: 2px var(--paper); color: transparent; }
@supports not (-webkit-text-stroke: 2px red) { .wordmark .w2 { color: var(--paper); } }
.tagline { margin: 0; font-size: var(--t-lg); line-height: 1.15; font-weight: 750; font-stretch: 112%; letter-spacing: -0.015em; }
.tagline span { display: inline-block; }
.hero .lede { max-width: 46ch; margin: 18px 0 28px; color: var(--paper-soft); font-size: var(--t-md); line-height: 1.5; }

/* the shelf: one floating object per game, staggered */
.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 32px); align-items: start; }
.token:nth-child(2) { margin-top: clamp(24px, 5vw, 64px); }
.token:nth-child(3) { margin-top: clamp(8px, 2vw, 24px); }
.token { position: relative; }
.token a { display: grid; gap: 12px; justify-items: start; text-decoration: none; color: var(--paper); transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .5s var(--ease-out); }
.token .obj {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 28px; display: grid; place-items: center; overflow: hidden;
  background: var(--tok-bg); box-shadow: 0 24px 60px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255,255,255,.08);
  transform: rotate(var(--rot, 0deg)); transition: transform .45s var(--ease-back), box-shadow .3s ease;
}
.token .obj img { width: 74%; height: 74%; object-fit: contain; transition: transform .45s var(--ease-back); }
.token[data-game="needle"] .obj { --tok-bg: radial-gradient(circle at 50% 60%, #2a3a8a, #121731 70%); --rot: -6deg; }
.token[data-game="needle"] .obj img { width: 64%; height: 64%; border-radius: 22%; }
.token[data-game="stationsfuchs"] .obj { --tok-bg: #faf8f3; --rot: 5deg; }
.token[data-game="stationsfuchs"] .obj img { height: 86%; }
.token[data-game="stadt-land-fluss"] .obj { --tok-bg: #e6efe9; --rot: -3deg; }
.token[data-game="stadt-land-fluss"] .obj img { width: 62%; height: 62%; }
.token .name { font-weight: 850; font-stretch: 118%; font-size: clamp(1rem, 0.8rem + 1vw, 1.45rem); line-height: 1.05; letter-spacing: -0.01em; }
.token a:hover .obj, .token a:focus-visible .obj { transform: rotate(0deg) scale(1.04); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 3px var(--tok-glow, var(--signal)); }
.token a:hover .obj img { transform: scale(1.06) rotate(-3deg); }
.token[data-game="needle"] { --tok-glow: var(--c-needle); }
.token[data-game="stationsfuchs"] { --tok-glow: var(--c-fuchs); }
.token[data-game="stadt-land-fluss"] { --tok-glow: var(--c-slf); }
@media (max-width: 999px) {
  .token .obj { border-radius: 20px; }
  .token .name { font-size: 0.98rem; }
  .token .chip { font-size: 0.7rem; padding: 5px 8px; }
}
@media (max-width: 420px) { .token .chip { white-space: normal; } }

/* single orchestrated entrance: wordmark, then the shelf drops in */
@media (prefers-reduced-motion: no-preference) {
  .wordmark span, .tagline, .hero .lede, .hero .btn-row { animation: rise .8s var(--ease-out) both; }
  .wordmark .w2 { animation-delay: .08s; }
  .tagline { animation-delay: .18s; }
  .hero .lede { animation-delay: .26s; }
  .hero .btn-row { animation-delay: .32s; }
  .token { animation: drop .9s var(--ease-back) both; }
  .token:nth-child(1) { animation-delay: .35s; }
  .token:nth-child(2) { animation-delay: .47s; }
  .token:nth-child(3) { animation-delay: .59s; }
  .token .obj { animation: bob 6s ease-in-out infinite alternate; }
  .token:nth-child(2) .obj { animation-duration: 7s; animation-delay: -2s; }
  .token:nth-child(3) .obj { animation-duration: 8s; animation-delay: -4s; }
  .token a:hover .obj { animation-play-state: paused; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } }
  @keyframes drop { from { opacity: 0; transform: translateY(-60px) rotate(-8deg); } }
  @keyframes bob { from { translate: 0 0; } to { translate: 0 -10px; } }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 11vw, 144px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(32px, 5vw, 56px); }
.section h2, .h-section { margin: 0; font-size: var(--t-xl); line-height: 1.02; letter-spacing: -0.03em; font-weight: 850; font-stretch: 122%; text-wrap: balance; }
.section h3 { font-size: var(--t-md); line-height: 1.25; margin: 0 0 8px; font-weight: 750; font-stretch: 110%; }
.section p { max-width: var(--measure); }
.muted { color: var(--paper-soft); }
.page-title { margin: 0; font-size: clamp(3rem, 1rem + 9vw, 8rem); line-height: 0.86; letter-spacing: -0.045em; font-weight: 900; font-stretch: 125%; text-transform: uppercase; }
.page-intro { font-size: var(--t-md); color: var(--paper-soft); max-width: 50ch; margin: 24px 0 0; }

/* ---------- featured strip (home) ---------- */
.featured { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .featured { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.featured-art { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.4); background: #cfe8f7; }
.featured-art img { width: 100%; height: auto; transition: transform .8s var(--ease-out); }
.featured-art:hover img { transform: scale(1.03); }
.featured .kicker { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; color: var(--paper-soft); font-size: var(--t-sm); }

/* ---------- library ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  font: inherit; font-weight: 650; font-size: 0.95rem; color: var(--paper-soft); background: transparent;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px; min-height: 44px; cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.filters button:hover { color: var(--paper); border-color: var(--paper-soft); }
.filters button[aria-pressed="true"] { background: var(--paper); color: var(--ink-deep); border-color: var(--paper); }
.library { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(20px, 3vw, 32px); }
.library [hidden] { display: none; }
.game {
  --g-bg: var(--ink-2); --g-ink: var(--paper); --g-accent: var(--signal);
  display: grid; grid-template-columns: minmax(0, 1fr); border-radius: 28px; overflow: hidden;
  background: var(--g-bg); color: var(--g-ink); position: relative;
}
@media (min-width: 860px) {
  .game { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 420px; }
  .library > li:nth-child(even) .game .game-art { order: 2; }
}
.game-art { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 240px; padding: clamp(20px, 4vw, 40px); }
.game-art img { max-height: 340px; width: auto; transition: transform .6s var(--ease-out); }
.game-art.is-wide { padding: 0; }
.game-art.is-wide img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.game:hover .game-art img { transform: scale(1.04) rotate(-1deg); }
.game-body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; justify-content: center; align-items: flex-start; }
.game-body h3 { margin: 0; font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); line-height: 0.95; font-weight: 900; font-stretch: 118%; letter-spacing: -0.03em; }
.game-body h3 a { color: inherit; text-decoration: none; }
.game-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.game-body .sub { margin: -4px 0 0; font-weight: 650; color: var(--g-accent); }
.game-body p { margin: 0; max-width: 52ch; }
.game-meta { margin: 6px 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 18px; font-size: 0.95rem; }
.game-meta dt { opacity: .7; }
.game-meta dd { margin: 0; font-weight: 650; }
.game-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; position: relative; z-index: 2; }
.game-actions a { font-weight: 700; font-size: 0.95rem; color: inherit; border: 1.5px solid currentColor; border-radius: 999px; padding: 9px 16px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.game-actions a:hover { background: color-mix(in srgb, currentColor 12%, transparent); color: inherit; }
.game-actions a.primary { background: var(--g-ink); color: var(--g-bg); border-color: var(--g-ink); }
.game-actions a.primary:hover { background: var(--g-accent); border-color: var(--g-accent); color: var(--g-bg); }
.game[data-game="needle"] { --g-bg: #121731; --g-ink: #f3ebd3; --g-accent: #e8b64a; box-shadow: inset 0 0 0 1px #2a3266; }
.game[data-game="needle"] .game-art { background: #bfe6ff; }
.game[data-game="stationsfuchs"] { --g-bg: #faf8f3; --g-ink: #14213d; --g-accent: #c2521c; }
.game[data-game="stationsfuchs"] .game-art { background: #1f4fb0; }
.game[data-game="stadt-land-fluss"] { --g-bg: #f4f1e8; --g-ink: #16302b; --g-accent: #1f7a5e; }
.game[data-game="stadt-land-fluss"] .game-art { background: #e6efe9; }
.game .chip[data-status="live"] { background: rgba(194, 82, 28, .12); color: #a8440f; }
.game .chip[data-status="development"] { background: rgba(31, 122, 94, .14); color: #1a6b52; }
.library-note { margin-top: 32px; color: var(--paper-soft); max-width: var(--measure); }

/* scroll-driven reveal of library rows (progressive enhancement, no JS) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .library > li { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    @keyframes lift { from { opacity: .3; transform: translateY(48px) scale(.97); } }
  }
}

/* ---------- studio / about ---------- */
.studio { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .studio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; }
.facts dt { color: var(--paper-soft); }
.facts dd { margin: 0; font-weight: 600; }
.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .principles li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.principles b { font-size: var(--t-lg); line-height: 1.1; font-weight: 850; font-stretch: 120%; letter-spacing: -0.02em; }
.principles p { margin: 0; color: var(--paper-soft); }
.contact-band { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 860px) { .contact-band { grid-template-columns: minmax(0, 1.4fr) auto; } }
.contact-band .mail { font-size: clamp(1.6rem, 0.8rem + 4vw, 3.6rem); font-weight: 900; font-stretch: 120%; letter-spacing: -0.03em; line-height: 1; color: var(--paper); text-decoration-thickness: 3px; text-underline-offset: 0.12em; word-break: break-word; }
.contact-band .mail:hover { color: var(--signal); }

/* ---------- game detail pages: shared skeleton, per-game theme ---------- */
.gpage { background: var(--g-bg); color: var(--g-ink); }
.gpage a:not(.btn):not(.store) { color: var(--g-link, var(--g-accent)); }
.gpage .muted { color: var(--g-muted); }
.gpage-hero { position: relative; isolation: isolate; overflow: hidden; }
.gpage-hero .wrap { padding-block: clamp(40px, 8vw, 104px); display: grid; gap: clamp(32px, 6vw, 80px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .gpage-hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.gpage-hero h1 { margin: 0; font-size: clamp(3.2rem, 1.4rem + 7.4vw, 7.6rem); line-height: 0.9; letter-spacing: -0.03em; }
.gpage-hero .sub { font-size: var(--t-md); font-weight: 650; color: var(--g-accent); margin: 10px 0 20px; }
.gpage-hero .lede { font-size: var(--t-md); line-height: 1.5; max-width: 44ch; }
.crumbs { font-size: var(--t-sm); margin: 0 0 20px; }
.crumbs a { color: inherit !important; opacity: .75; }
.gsection { padding-block: clamp(56px, 9vw, 112px); border-top: 1px solid var(--g-line); }
.gsection h2 { margin: 0 0 20px; font-size: var(--t-xl); line-height: 1.02; letter-spacing: -0.025em; }
.gsection p { max-width: var(--measure); }
.gpage .facts dt { color: var(--g-muted); }
.links-list { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--g-line); }
@media (min-width: 720px) { .links-list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; } }
.links-list a { display: block; padding: 20px 0; border-bottom: 1px solid var(--g-line); text-decoration: none; color: var(--g-ink) !important; }
.links-list b { display: block; font-weight: 750; font-stretch: 110%; }
.links-list span { color: var(--g-muted); font-size: var(--t-sm); }
.links-list a:hover b { color: var(--g-accent); }

/* NEEDLE: night field, hay, lantern; the game's own typeface */
.theme-needle { --g-bg: #121731; --g-ink: #f3ebd3; --g-accent: #e8b64a; --g-muted: #c3c7dd; --g-line: #2a3266; }
.theme-needle .gpage-hero { min-height: min(92svh - var(--header-h), 860px); display: grid; align-items: end; background: radial-gradient(120% 80% at 70% 100%, #1b2350 0%, #0c1024 70%); }
.theme-needle .gpage-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; touch-action: pan-y; }
.theme-needle .gpage-hero .wrap { pointer-events: none; }
.theme-needle .gpage-hero .wrap > * { pointer-events: auto; }
.theme-needle h1, .theme-needle .gsection h2 { font-family: var(--font-needle); font-weight: 600; letter-spacing: 0.005em; }
.theme-needle h1 .dot { color: var(--g-accent); }
.theme-needle .hero-text { text-shadow: 0 2px 24px rgba(12, 16, 36, .9); }
.theme-needle .status { min-height: 1.6em; margin: 14px 0 0; font-weight: 600; color: #cfe3ff; }
.theme-needle .icon { width: 84px; height: 84px; border-radius: 20px; margin-bottom: 18px; box-shadow: 0 12px 40px rgba(232, 182, 74, .2); }
.trailer { position: relative; width: min(100%, 320px); margin-inline: auto; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: #1d2452; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px #323b78; }
.trailer video { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; border-top: 2px solid var(--g-line); padding-top: 16px; }
.steps li::before { content: counter(step); display: block; font-family: var(--font-needle); font-size: 2.4rem; line-height: 1; color: var(--g-accent); margin-bottom: 10px; }
.steps h3 { margin: 0 0 6px; font-size: 1.15rem; }
.steps p { margin: 0; }
.feature-list { columns: 1; column-gap: 48px; padding: 0; margin: 20px 0 0; list-style: none; }
@media (min-width: 760px) { .feature-list { columns: 2; } }
.feature-list li { break-inside: avoid; padding: 0 0 16px 26px; position: relative; max-width: 52ch; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 14px; height: 2px; background: var(--g-accent); transform: rotate(-24deg); border-radius: 2px; }
.showcase { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 640px) { .showcase { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); } }
.showcase [role="tablist"] { display: flex; flex-direction: column; gap: 2px; }
.showcase [role="tab"] { appearance: none; background: transparent; border: 0; text-align: left; cursor: pointer; font: inherit; color: var(--g-muted); padding: 12px 16px 12px 18px; border-radius: 10px; position: relative; display: grid; gap: 2px; transition: background-color .2s ease, color .2s ease; }
.showcase [role="tab"] b { font-weight: 750; font-stretch: 110%; font-size: 1.05rem; }
.showcase [role="tab"] span { font-size: var(--t-sm); }
.showcase [role="tab"]::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--g-line); transition: background-color .2s ease; }
.showcase [role="tab"]:hover { color: var(--g-ink); background: rgba(29, 36, 82, .5); }
.showcase [role="tab"][aria-selected="true"] { color: var(--g-ink); background: #1d2452; }
.showcase [role="tab"][aria-selected="true"]::before { background: var(--g-accent); }
@media (max-width: 639px) {
  .showcase [role="tablist"] { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; order: 2; }
  .showcase [role="tab"] { flex: none; scroll-snap-align: start; padding: 10px 14px 12px; }
  .showcase [role="tab"] span { display: none; }
  .showcase [role="tab"]::before { left: 14px; right: 14px; top: auto; bottom: 4px; width: auto; height: 3px; }
}
.shot { position: relative; margin: 0 auto; width: min(100%, 300px); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #1d2452; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px #323b78; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.shot img.is-loading { opacity: 0; }

/* Stationsfuchs: ward paper, navy ink, fox orange, a name badge */
.theme-stationsfuchs { --g-bg: #faf8f3; --g-ink: #14213d; --g-accent: #c2521c; --g-muted: #4a5672; --g-line: #e3ddcf; color-scheme: light; }
.theme-stationsfuchs .gpage-hero { background: linear-gradient(180deg, #faf8f3 0%, #f3eee2 100%); }
.theme-stationsfuchs h1 { font-weight: 900; font-stretch: 108%; font-size: clamp(2.6rem, 1rem + 4.8vw, 5.2rem); line-height: 0.95; text-wrap: balance; }
.theme-stationsfuchs .fox { width: min(100%, 380px); margin-inline: auto; filter: drop-shadow(0 24px 40px rgba(20, 33, 61, .18)); }
.theme-stationsfuchs .badge { display: inline-block; background: #fff; border: 3px solid #14213d; border-radius: 6px; padding: 6px 14px; font-weight: 800; letter-spacing: 0.02em; margin-bottom: 20px; box-shadow: 4px 4px 0 #1f4fb0; }
.theme-stationsfuchs .btn-solid { background: #14213d; color: #faf8f3; }
.theme-stationsfuchs .btn-solid:hover { background: #c2521c; color: #fff; }
.theme-stationsfuchs .gsection h2 { font-weight: 850; font-stretch: 110%; }
.qcard { background: #fff; border: 3px solid #14213d; border-radius: 16px; padding: clamp(20px, 3vw, 32px); box-shadow: 8px 8px 0 #1f4fb0; max-width: 560px; }
.qcard .q { font-weight: 750; font-size: 1.15rem; margin: 6px 0 16px; }
.qcard ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qcard button { width: 100%; font: inherit; font-weight: 700; padding: 12px; min-height: 48px; border-radius: 10px; border: 2px solid #14213d; background: #faf8f3; color: #14213d; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.qcard button:hover { background: #f1e7d6; }
.qcard button[data-result="right"] { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }
.qcard button[data-result="wrong"] { background: #fde3d6; border-color: #c2521c; color: #7a2f0b; }
.qcard .explain { min-height: 1.6em; margin: 14px 0 0; font-size: 0.95rem; color: #4a5672; }
.theme-stationsfuchs .facts dd { font-weight: 650; }

/* Stadt Land Fluss: graph paper, ink green, letter dice */
.theme-stadt-land-fluss { --g-bg: #f4f1e8; --g-ink: #16302b; --g-accent: #1f7a5e; --g-muted: #4b625c; --g-line: #d9e2da; color-scheme: light; }
.theme-stadt-land-fluss .gpage-hero {
  background: linear-gradient(#d9e5dd 1px, transparent 1px) 0 0 / 26px 26px, linear-gradient(90deg, #d9e5dd 1px, transparent 1px) 0 0 / 26px 26px, #f4f1e8;
}
.theme-stadt-land-fluss h1 { font-weight: 900; font-stretch: 80%; text-transform: uppercase; letter-spacing: -0.01em; }
.theme-stadt-land-fluss h1 span { display: block; }
.theme-stadt-land-fluss h1 span:nth-child(2) { color: var(--g-accent); }
.die-wrap { display: grid; justify-items: center; gap: 16px; }
.die {
  width: clamp(150px, 30vw, 220px); aspect-ratio: 1; border-radius: 28%; border: 0; cursor: pointer;
  background: linear-gradient(145deg, #3cc196, #2f9e7c); color: #fbfaf5;
  font: 900 clamp(5rem, 3rem + 7vw, 8.4rem)/1 var(--font); font-stretch: 90%;
  box-shadow: 0 18px 0 #1d6e55, 0 34px 50px rgba(22, 48, 43, .28);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.die:hover { transform: translateY(-3px); }
.die:active { transform: translateY(10px); box-shadow: 0 8px 0 #1d6e55, 0 16px 30px rgba(22, 48, 43, .28); }
.die.is-rolling { animation: roll .5s var(--ease-out); }
@keyframes roll { 0% { transform: rotate(0) scale(1); } 40% { transform: rotate(-14deg) scale(.92); } 100% { transform: rotate(0) scale(1); } }
.die-hint { font-size: var(--t-sm); color: var(--g-muted); }
.sheet { width: 100%; border-collapse: collapse; background: #fbfaf5; border: 2px solid #16302b; border-radius: 12px; overflow: hidden; font-size: 1.05rem; }
.sheet th, .sheet td { border: 1px solid #c9d8d0; padding: 12px 14px; text-align: left; }
.sheet th { background: #16302b; color: #fbfaf5; font-weight: 750; font-stretch: 90%; }
.sheet td.ok::after { content: " ✓"; color: #1f7a5e; font-weight: 900; }
.sheet-wrap { overflow-x: auto; max-width: 720px; }
.theme-stadt-land-fluss .facts dd { font-weight: 650; }
.dev-note { border-left: 4px solid var(--g-accent); padding: 4px 0 4px 18px; max-width: var(--measure); }

/* ---------- prose (legal, support) ---------- */
.prose { max-width: 760px; padding-block: clamp(40px, 8vw, 96px); }
.prose h1 { font-size: var(--t-xl); line-height: 1.05; letter-spacing: -0.025em; font-weight: 850; font-stretch: 118%; margin: 0 0 10px; text-wrap: balance; }
.prose h2 { font-size: var(--t-md); margin: 40px 0 8px; font-weight: 750; font-stretch: 108%; }
.prose h3 { font-size: 1.1rem; margin: 24px 0 4px; font-weight: 700; }
.prose p, .prose li { max-width: var(--measure); }
.prose .soft { color: var(--paper-soft); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 12px 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
.lang-switch { display: flex; gap: 16px; margin: 0 0 32px; font-weight: 600; }
.prose .crumbs a { color: var(--paper-soft) !important; }
.support-games { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.support-games li { padding: 22px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.support-games h3 { margin: 0 0 6px; font-size: 1.25rem; }
.support-games p { margin: 4px 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-deep); color: var(--paper); padding-block: 56px 40px; font-size: 0.95rem; }
.site-footer .cols { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; margin: 0 0 12px; font-weight: 750; font-stretch: 110%; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.site-footer a { color: var(--paper-soft); text-decoration: none; display: inline-block; padding: 5px 0; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.site-footer .legal-line { margin-top: 40px; color: var(--paper-soft); font-size: var(--t-sm); }

/* ---------- reduced motion: tiered ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .token a { transform: none !important; }
  .token .obj, .token a:hover .obj { transform: rotate(var(--rot, 0deg)); transition: box-shadow .15s ease; }
  .token a:hover .obj img, .game:hover .game-art img, .featured-art:hover img { transform: none; }
  .btn:active, .die:active, .die:hover { transform: none; }
}
