/* ==========================================================================
   Janobyte – Website
   Pixel-Look, dunkles Theme, keine externen Ressourcen (kein Cookie-Banner nötig)
   ========================================================================== */

@font-face {
  font-family: "Press Start 2P";
  src: url("../fonts/PressStart2P-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "VT323";
  src: url("../fonts/VT323-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0e0f1a;
  --bg-2: #13142a;
  --panel: #191a30;
  --panel-2: #20223d;
  --line: #2d3056;
  --text: #eef0ff;
  --muted: #a7abd0;
  --cream: #fff4d6;
  --sand: #f2c89d;
  --orange: #f97a26;
  --orange-2: #ff9a4d;
  --red: #c3432f;
  --green: #3cc86e;
  --blue: #43a6f5;
  --gold: #ffd166;

  --pixel: "Press Start 2P", ui-monospace, monospace;
  --retro: "VT323", ui-monospace, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}

/* ---------- Grundlagen ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.pixelated,
.pg-hero,
.pg-boss,
.egg,
.values img,
.brand-mark,
.footer-dino img { image-rendering: pixelated; }

.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-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--orange); color: #1b1c2b; padding: 10px 14px;
  font-family: var(--pixel); font-size: 11px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px dashed var(--orange); outline-offset: 6px; }

/* Pixel-Rahmen: vier versetzte Schatten = Rahmen mit "abgeknabberten" Ecken */
.px-frame {
  --frame: var(--line);
  --fw: 4px;
  box-shadow:
    0 calc(var(--fw) * -1) 0 0 var(--frame),
    0 var(--fw) 0 0 var(--frame),
    calc(var(--fw) * -1) 0 0 0 var(--frame),
    var(--fw) 0 0 0 var(--frame);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--orange);
  --btn-fg: #1b1c2b;
  --bw: 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: var(--bw);
  padding: 15px 20px 17px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--pixel);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    0 calc(var(--bw) * -1) 0 0 var(--btn-bg),
    0 var(--bw) 0 0 var(--btn-bg),
    calc(var(--bw) * -1) 0 0 0 var(--btn-bg),
    var(--bw) 0 0 0 var(--btn-bg),
    inset 0 -4px 0 0 rgba(0, 0, 0, 0.22);
  transition: transform 0.12s steps(2), background-color 0.12s;
}
.btn:hover { --btn-bg: var(--orange-2); transform: translateY(-2px); }
.btn:active { transform: translateY(2px); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  --bw: 3px;
  box-shadow:
    0 -3px 0 0 var(--cream),
    0 3px 0 0 var(--cream),
    -3px 0 0 0 var(--cream),
    3px 0 0 0 var(--cream);
}
.btn-ghost:hover { --btn-bg: rgba(255, 244, 214, 0.08); }

.btn-small { padding: 10px 14px 12px; font-size: 10px; }

/* Pixel-Pfeil (Press Start 2P hat kein ▸) */
.px-arrow {
  width: 6px;
  height: 10px;
  background: currentColor;
  clip-path: polygon(0 0, 33% 0, 33% 20%, 66% 20%, 66% 40%, 100% 40%, 100% 60%, 66% 60%, 66% 80%, 33% 80%, 33% 100%, 0 100%);
  transition: transform 0.12s steps(2);
}
.btn:hover .px-arrow { transform: translateX(3px); }

.text-link {
  display: inline-flex;
  gap: 8px;
  font-family: var(--pixel);
  font-size: 11px;
  line-height: 1.6;
  color: var(--orange);
  text-decoration: none;
  text-transform: uppercase;
}
.text-link span { transition: transform 0.15s steps(2); }
.text-link:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled {
  background: rgba(14, 15, 26, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 0 0 var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark { width: 42px; height: auto; }
.brand-name {
  font-family: var(--pixel);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-shadow: 2px 2px 0 var(--red);
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  font-family: var(--pixel);
  font-size: 11px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 0;
}
.site-nav a:not(.btn):hover { color: var(--cream); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  padding: 0;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 24px;
  height: 4px;
  margin-inline: auto;
  background: currentColor;
  position: relative;
}
.menu-icon::before,
.menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -8px; }
.menu-icon::after { top: 8px; }

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    box-shadow: 0 2px 0 0 var(--line), 0 24px 40px rgba(0, 0, 0, 0.5);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; font-size: 12px; border-bottom: 2px solid var(--line); }
  .site-nav .btn { margin-top: 18px; justify-content: center; }
  .site-header.menu-open { background: var(--bg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  max-height: 1040px;
  overflow: hidden;
  background: #121330;
  isolation: isolate;
  touch-action: manipulation;
}
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
  image-rendering: pixelated;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 60% 48% at 50% 36%, rgba(10, 10, 28, 0.55), transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(36px, 9vh, 120px));
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 8px 14px;
  font-family: var(--pixel);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sand);
  background: rgba(14, 15, 26, 0.55);
  box-shadow: 0 -2px 0 0 rgba(242, 200, 157, 0.35), 0 2px 0 0 rgba(242, 200, 157, 0.35),
    -2px 0 0 0 rgba(242, 200, 157, 0.35), 2px 0 0 0 rgba(242, 200, 157, 0.35);
}
.blink-dot { width: 8px; height: 8px; background: var(--green); animation: blink 1.2s steps(1) infinite; }

.hero-title {
  font-family: var(--pixel);
  font-size: clamp(2.1rem, 9.2vw, 6.2rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-shadow:
    0.06em 0.06em 0 var(--orange),
    0.12em 0.12em 0 var(--red),
    0 0 60px rgba(249, 122, 38, 0.35);
  margin: 0 0 22px -0.12em;
  animation: title-in 0.9s steps(6) both;
}
.hero-tagline {
  font-family: var(--retro);
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  line-height: 1.1;
  color: var(--sand);
  margin-bottom: 14px;
}
.hero-lead {
  max-width: 34rem;
  margin: 0 auto 30px;
  color: #cfd2f0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
}

.hero-hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 0 var(--gutter) 14px;
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1.6;
  color: rgba(242, 200, 157, 0.85);
  pointer-events: none;
}
.hero-hud p { margin: 0; }
.hud-hint { margin-left: auto !important; }
.hud-hint .key {
  display: inline-block;
  padding: 3px 6px 4px;
  margin-right: 4px;
  color: #1b1c2b;
  background: var(--sand);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}
.hint-touch { display: none; }
@media (hover: none) {
  .hint-desktop { display: none; }
  .hint-touch { display: inline; }
}
.hud-score { margin-left: auto !important; color: var(--cream); letter-spacing: 0.06em; }
.hud-score [data-hud-hi] { color: var(--muted); margin-right: 14px; }
.hud-over {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  color: var(--cream);
  white-space: nowrap;
  animation: blink 1s steps(1) infinite;
}

/* ---------- Laufband ---------- */
.marquee {
  overflow: hidden;
  background: var(--orange);
  color: #1b1c2b;
  font-family: var(--pixel);
  font-size: 11px;
  text-transform: uppercase;
  border-block: 4px solid #1b1c2b;
}
.marquee-track {
  display: flex;
  width: max-content;
  padding: 14px 0 13px;
  animation: marquee 38s linear infinite;
}
.marquee-track span { padding-right: 48px; white-space: nowrap; }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }

.section-head { max-width: 44rem; margin-bottom: clamp(40px, 5vw, 64px); }
.section-kicker {
  font-family: var(--retro);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.section-kicker::before { content: "> "; color: var(--muted); }
.section-title {
  font-family: var(--pixel);
  font-size: clamp(1.45rem, 3.6vw, 2.4rem);
  line-height: 1.35;
  color: var(--cream);
  text-shadow: 3px 3px 0 var(--red);
  margin-bottom: 20px;
}
.section-lead { color: var(--muted); font-size: 1.125rem; margin: 0; }

/* ---------- Spiele ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 44px);
}

.game-card {
  display: flex;
  flex-direction: column;
  margin: 4px;
  background: var(--panel);
  box-shadow:
    0 -4px 0 0 var(--line),
    0 4px 0 0 var(--line),
    -4px 0 0 0 var(--line),
    4px 0 0 0 var(--line);
  transition: transform 0.18s steps(3), box-shadow 0.18s;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 -4px 0 0 var(--orange),
    0 4px 0 0 var(--orange),
    -4px 0 0 0 var(--orange),
    4px 0 0 0 var(--orange),
    0 18px 40px -10px rgba(249, 122, 38, 0.28);
}

.game-art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  container-type: inline-size;
  border-bottom: 4px solid var(--line);
}
.game-body { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; flex: 1; }
.game-body > p { color: #c9cce8; }
.game-body .text-link { margin-top: auto; }

.game-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.game-icon { width: 56px; height: 56px; flex: none; }
.game-title {
  font-family: var(--pixel);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.4;
  color: var(--cream);
  margin-bottom: 6px;
}
.game-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--retro);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--muted);
}
.status-dot { width: 8px; height: 8px; background: var(--green); flex: none; animation: blink 1.6s steps(1) infinite; }
.status-dot-soon { background: var(--gold); }

.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 4px 0 24px; }
.tags li {
  font-family: var(--retro);
  font-size: 1.2rem;
  line-height: 1;
  padding: 5px 10px 6px;
  color: var(--sand);
  background: var(--panel-2);
  box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line);
}

/* Pixel Gym Szene */
.art-pixelgym {
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 209, 102, 0.16), transparent 30%),
    linear-gradient(180deg, #121433 0%, #1f2156 55%, #3a2b6a 100%);
}
.pg-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 8% 18%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 22% 42%, #cfd8ff 50%, transparent 51%),
    radial-gradient(3px 3px at 35% 12%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 48% 30%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 63% 8%, #cfd8ff 50%, transparent 51%),
    radial-gradient(3px 3px at 74% 38%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 16%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 94% 46%, #cfd8ff 50%, transparent 51%),
    radial-gradient(2px 2px at 14% 58%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 56% 52%, #cfd8ff 50%, transparent 51%);
  animation: twinkle 3s steps(2) infinite;
}
.pg-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20%;
  background:
    linear-gradient(180deg, #6ee39a 0 4px, #2fad5c 4px 12px, transparent 12px),
    repeating-linear-gradient(90deg, #233428 0 12px, #1d2b22 12px 24px);
}
.pg-hero {
  position: absolute;
  left: 18%;
  bottom: 20%;
  width: 17cqw;
  height: auto;
  animation: bob 0.9s steps(2) infinite;
}
.pg-boss {
  position: absolute;
  right: 13%;
  bottom: 20%;
  width: 27cqw;
  height: auto;
  transform-origin: 50% 100%;
  animation: squish 1.3s steps(2) infinite;
}
.pg-hud {
  position: absolute;
  top: 7%;
  right: 9%;
  width: 40%;
  display: grid;
  gap: 6px;
  font-family: var(--pixel);
  font-size: clamp(7px, 1.6cqw, 10px);
  color: var(--cream);
  text-align: right;
}
.pg-hp {
  display: block;
  height: 12px;
  background: #3a1730;
  box-shadow: 0 -2px 0 0 #0b0c18, 0 2px 0 0 #0b0c18, -2px 0 0 0 #0b0c18, 2px 0 0 0 #0b0c18;
}
.pg-hp-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(180deg, #ff6b6b 0 50%, #e5484d 50%);
  animation: boss-hp 7s steps(1) infinite;
}
.pg-dmg {
  position: absolute;
  right: 20%;
  bottom: 52%;
  font-family: var(--pixel);
  font-size: clamp(10px, 2.6cqw, 16px);
  color: var(--gold);
  text-shadow: 2px 2px 0 #1b1c2b;
  opacity: 0;
  animation: dmg 3.5s steps(8) infinite;
}

/* Gym Fighter Szene */
.art-gymfighter { background: #3b130c; }
.gf-layer {
  position: absolute;
  inset: -4% -4% 0;
  width: 108%;
  height: 104%;
  object-fit: cover;
  object-position: 50% 100%;
  transition: transform 0.4s ease-out;
}
.gf-sky { transform: translate3d(calc(var(--px, 0) * -4px), calc(var(--py, 0) * -3px), 0); }
.gf-far { transform: translate3d(calc(var(--px, 0) * -9px), 0, 0); }
.gf-near { transform: translate3d(calc(var(--px, 0) * -16px), 0, 0); }
.gf-sun {
  position: absolute;
  left: 75%;
  top: 68%;
  width: 36%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 214, 160, 0.55), rgba(249, 122, 38, 0.15) 45%, transparent 70%);
  animation: glow 4s ease-in-out infinite alternate;
  pointer-events: none;
}
.gf-fighter {
  position: absolute;
  left: 27%;
  bottom: 5%;
  height: 66%;
  width: auto;
  filter: drop-shadow(0 0 1px #ff8a3d) drop-shadow(0 0 10px rgba(249, 122, 38, 0.55));
  transform: translate3d(calc(var(--px, 0) * -22px), 0, 0);
  transition: transform 0.4s ease-out;
}
.gf-hud {
  position: absolute;
  top: 7%;
  left: 6%;
  right: 6%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--pixel);
  font-size: clamp(9px, 2.2cqw, 13px);
  color: var(--cream);
  text-shadow: 2px 2px 0 #1b1c2b;
}
.gf-bar {
  flex: 1;
  height: 12px;
  background: #4a1410;
  box-shadow: 0 -2px 0 0 #140707, 0 2px 0 0 #140707, -2px 0 0 0 #140707, 2px 0 0 0 #140707;
  display: flex;
}
.gf-bar span { width: var(--hp); background: linear-gradient(180deg, #ffe08a 0 50%, var(--gold) 50%); }
.gf-bar-right { justify-content: flex-end; }

/* SplitFun Szene */
.art-splitfun {
  background:
    radial-gradient(circle at 16% 22%, rgba(233, 78, 107, 0.38), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(26, 165, 143, 0.4), transparent 44%),
    linear-gradient(180deg, #151d3c 0%, #1d2a4f 62%, #2a2346 100%);
}
.sf-table {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20%;
  background:
    linear-gradient(180deg, #c07c4e 0 4px, #8a5535 4px 10px, transparent 10px),
    repeating-linear-gradient(90deg, #6a3e26 0 22px, #5f371f 22px 24px);
}
.sf-receipt {
  position: absolute;
  left: 50%;
  bottom: 20%;
  width: 18cqw;
  height: auto;
  transform: translateX(-50%) rotate(-4deg);
  transform-origin: 50% 100%;
  animation: receipt 2.4s steps(1) infinite;
}
.sf-dice {
  position: absolute;
  left: 12%;
  bottom: 20%;
  width: 12cqw;
  height: auto;
  animation: dice 1.8s steps(1) infinite;
}
.sf-coin { position: absolute; width: 8cqw; height: auto; }
.sf-coin-1 { right: 12%; bottom: 20%; }
.sf-coin-2 { right: 21%; bottom: 20%; }
.sf-coin-3 { right: 16%; bottom: 44%; animation: coin-flip 1.4s steps(4) infinite; }
.sf-board {
  position: absolute;
  top: 8%;
  right: 6%;
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  font-family: var(--pixel);
  font-size: clamp(8px, 2.2cqw, 11px);
  line-height: 1.2;
  color: var(--cream);
  background: rgba(10, 12, 28, 0.78);
  box-shadow: 0 -3px 0 0 #3a3f6e, 0 3px 0 0 #3a3f6e, -3px 0 0 0 #3a3f6e, 3px 0 0 0 #3a3f6e;
}
.sf-board-title { color: #ff7a93; margin-bottom: 3px; animation: blink 1.4s steps(1) infinite; }
.sf-row { display: grid; grid-template-columns: 1.6em 1fr auto; gap: 0.6em; }
.sf-row b { font-weight: 400; color: var(--muted); }
.sf-row i { font-style: normal; text-align: right; }
.sf-win i { color: var(--green); }
.sf-lose i { color: #ff6b6b; }
.sf-receipt,
.sf-dice,
.sf-coin { image-rendering: pixelated; }

/* Teaser */
.game-card-teaser { grid-column: auto; }
.art-teaser {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 40% 55% at 50% 55%, rgba(255, 209, 102, 0.14), transparent 70%),
    repeating-linear-gradient(45deg, #15162b 0 10px, #17182f 10px 20px);
}
.egg {
  width: clamp(84px, 20cqw, 132px);
  height: auto;
  transform-origin: 50% 90%;
  animation: wobble 2.6s steps(1) infinite;
  position: relative;
  z-index: 1;
}
.egg-shadow {
  position: absolute;
  top: calc(50% + clamp(56px, 13cqw, 88px));
  left: 50%;
  width: clamp(70px, 16cqw, 110px);
  height: 10px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.35);
}
@media (min-width: 1024px) {
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-card-teaser { grid-column: 1 / -1; flex-direction: row; }
  .game-card-teaser .game-art {
    flex: 0 0 45%;
    aspect-ratio: auto;
    min-height: 260px;
    border-bottom: 0;
    border-right: 4px solid var(--line);
  }
  .game-card-teaser .game-body { justify-content: center; }
  .game-card-teaser .game-status { margin-bottom: 12px; }
  .game-card-teaser .game-title { margin-bottom: 14px; }
  .game-card-teaser .text-link { margin-top: 4px; }
}

/* ---------- Studio ---------- */
.studio-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.studio-figure { margin: 4px; background: var(--panel); }
.studio-figure img { width: 100%; height: auto; }
.studio-figure figcaption {
  padding: 10px 14px 12px;
  font-family: var(--retro);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--muted);
  border-top: 4px solid var(--line);
}
.studio-text p { color: #c9cce8; }

.values { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.values li { display: flex; align-items: center; gap: 18px; }
.values img { width: 36px; height: auto; flex: none; }
.values div { display: grid; }
.values strong { font-family: var(--pixel); font-weight: 400; font-size: 11px; line-height: 1.6; color: var(--cream); text-transform: uppercase; }
.values span { color: var(--muted); font-size: 1rem; }

/* ---------- Playtest / Arcade ---------- */
.arcade {
  --frame: #3a3d6b;
  margin: 4px;
  padding: clamp(10px, 1.6vw, 16px);
  background: linear-gradient(180deg, #2a2c52, #1d1f3c);
}
.arcade-screen {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 64px);
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, #1d2148, #0a0b16 75%);
  box-shadow: inset 0 0 0 4px #0a0b16, inset 0 0 80px rgba(67, 166, 245, 0.12);
}
.arcade-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
}
.arcade-blink {
  font-family: var(--pixel);
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.2em;
  animation: blink 1.1s steps(1) infinite;
  margin-bottom: 22px;
}
.arcade-title {
  font-family: var(--pixel);
  font-size: clamp(1.25rem, 3.6vw, 2.2rem);
  line-height: 1.4;
  color: var(--cream);
  text-shadow: 3px 3px 0 var(--red), 0 0 30px rgba(249, 122, 38, 0.35);
  margin-bottom: 20px;
}
.arcade-lead { max-width: 36rem; margin: 0 auto 36px; color: #c9cce8; }
.steps {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  text-align: left;
}
.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}
.steps p { margin: 4px 0 0; }
.steps strong { color: var(--cream); font-weight: 600; }
.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-family: var(--pixel);
  font-size: 12px;
  color: #1b1c2b;
  background: var(--green);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}
.arcade-actions { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(56px, 7vw, 88px);
  background: #0b0c15;
  box-shadow: 0 -4px 0 0 var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer-nav h3 {
  font-family: var(--pixel);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.footer-nav a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.footer-nav a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-block: 20px 0;
  border-top: 2px solid var(--line);
  font-size: 0.875rem;
  color: #6f739c;
}
.footer-bottom p { margin: 0 0 20px; }
.footer-dino { margin: 0 !important; }
.footer-dino img { width: 40px; height: auto; transition: transform 0.15s steps(2); }
.footer-dino:hover img { transform: translateY(-10px); }

/* ---------- Unterseiten ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(32px, 5vw, 56px);
  background: linear-gradient(180deg, #151638, var(--bg));
  box-shadow: 0 4px 0 0 var(--line);
}
.page-content { padding-block: clamp(48px, 7vw, 88px); }
.page-content .prose { max-width: 46rem; }
.prose h2 { font-family: var(--pixel); font-size: 1rem; line-height: 1.5; color: var(--cream); margin: 2.2em 0 0.8em; }
.prose p, .prose li { color: #c9cce8; }
.prose h3 { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; color: var(--cream); margin: 1.6em 0 0.5em; }
.prose a { color: var(--orange); overflow-wrap: anywhere; }
.prose a.btn { color: var(--btn-fg); overflow-wrap: normal; margin-top: 12px; margin-bottom: 8px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.sans { font-family: var(--sans); font-weight: 700; }
.notice {
  margin: 4px 4px 32px;
  padding: 18px 20px;
  background: var(--panel);
  color: var(--sand);
  box-shadow: 0 -3px 0 0 var(--gold), 0 3px 0 0 var(--gold), -3px 0 0 0 var(--gold), 3px 0 0 0 var(--gold);
}

.page-art {
  margin: 4px 4px 40px;
  box-shadow: 0 -4px 0 0 var(--line), 0 4px 0 0 var(--line), -4px 0 0 0 var(--line), 4px 0 0 0 var(--line);
  border-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .studio-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .games-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .hud-hint { font-size: 9px; }
}
@media (max-width: 420px) {
  .btn { font-size: 11px; padding: 14px 16px 16px; }
  .hero-actions .btn { width: calc(100% - 8px); justify-content: center; }
  .footer-nav { grid-template-columns: 1fr; }
}
@media (max-height: 720px) and (max-width: 760px) {
  .hero-content { padding-top: calc(var(--header-h) + 24px); }
  .eyebrow { margin-bottom: 18px; }
  .hero-lead { margin-bottom: 22px; }
}

/* ---------- Animationen ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes title-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes twinkle { 50% { opacity: 0.55; } }
@keyframes bob { 50% { transform: translateY(-4%); } }
@keyframes squish { 50% { transform: scale(1.06, 0.92); } }
@keyframes boss-hp {
  0% { width: 100%; }
  15% { width: 84%; }
  30% { width: 70%; }
  45% { width: 58%; }
  60% { width: 41%; }
  75% { width: 27%; }
  90% { width: 12%; }
}
@keyframes dmg {
  0% { opacity: 0; transform: translateY(0); }
  10% { opacity: 1; }
  40% { opacity: 1; transform: translateY(-40%); }
  50%, 100% { opacity: 0; transform: translateY(-60%); }
}
@keyframes receipt {
  0%, 100% { transform: translateX(-50%) rotate(-4deg); }
  50% { transform: translateX(-50%) rotate(3deg) translateY(-4%); }
}
@keyframes dice {
  0% { transform: translateY(0) rotate(0); }
  20% { transform: translateY(-70%) rotate(90deg); }
  40% { transform: translateY(-30%) rotate(180deg); }
  60%, 100% { transform: translateY(0) rotate(270deg); }
}
@keyframes coin-flip {
  0%, 100% { transform: translateY(0) scaleX(1); }
  25% { transform: translateY(-25%) scaleX(0.4); }
  50% { transform: translateY(-40%) scaleX(1); }
  75% { transform: translateY(-25%) scaleX(0.4); }
}
@keyframes glow { to { opacity: 0.6; transform: translate(-50%, -50%) scale(1.08); } }
@keyframes wobble {
  0%, 60%, 100% { transform: rotate(0); }
  66% { transform: rotate(-7deg); }
  72% { transform: rotate(6deg); }
  78% { transform: rotate(-4deg); }
  84% { transform: rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
}
