/* ===== Fonts (self-hosted – DSGVO-freundlich, keine Google-Server) ===== */
@font-face { font-family: "Anton"; src: url("assets/fonts/anton.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* Layout: full-bleed cinematic hero, then alternating image-led game rows, about band, newsletter */
:root {
  color-scheme: dark;
  --bg: #0a0d0b;          /* green-black, matches the game's toxic haze */
  --bg-2: #121813;
  --line: rgba(220, 255, 230, 0.09);
  --text: #f2f1ea;
  --muted: #95a097;
  --accent: #46f08c;      /* Hauptfarbe – Terminal-Grün aus Atomic Drifter */
  --accent-2: #9dffc2;
  --rust: #e2753a;        /* Zweitfarbe – Rost */
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  -webkit-tap-highlight-color: transparent;
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
section[id] { scroll-margin-top: 60px; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #000; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* film grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; cursor: pointer;
  font: 800 14px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase;
  border: 2px solid transparent; border-radius: 2px;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #06120b; box-shadow: 0 0 0 0 rgba(70, 240, 140, 0.5); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 0 32px 2px rgba(70, 240, 140, 0.45); }
.btn-lg { min-height: 62px; padding: 0 44px; font-size: 17px; }

/* ===== Nav ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter); border-bottom: 1px solid transparent;
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(10, 13, 11, 0.84); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding-top: 14px; padding-bottom: 14px; border-bottom-color: var(--line);
}
.brand { display: flex; align-items: baseline; gap: 8px; line-height: 1; margin-right: 24px; }
.brand-mark { font-family: var(--display); font-size: 28px; letter-spacing: 0.04em; }
.brand-sub { font: 800 11px/1 var(--body); letter-spacing: 0.3em; color: var(--accent); }
.nav-links { display: flex; gap: 36px; }
.nav-links a { position: relative; font: 600 13px/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase; padding: 8px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }
.nav-links { align-items: center; margin-left: auto; }

/* language switch */
.lang {
  display: flex; flex: none; margin-left: 24px; padding: 3px; gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 3px;
}
.lang-btn {
  min-width: 38px; min-height: 30px; padding: 0 8px; border: 0; border-radius: 2px; cursor: pointer;
  background: transparent; color: var(--muted);
  font: 800 12px/1 var(--body); letter-spacing: 0.12em;
  transition: background 0.2s, color 0.2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] { background: var(--accent); color: #06120b; }
.nav-socials { display: flex; gap: 4px; padding-left: 20px; border-left: 1px solid var(--line); }
.nav-socials a { display: grid; place-items: center; width: 34px; height: 34px; color: var(--muted); padding: 0; transition: color 0.2s; }
.nav-socials a::after { display: none; }
.nav-socials a:hover { color: var(--accent); }
.nav-socials .ico { width: 17px; height: 17px; }
.follow-label { font: 800 12px/1 var(--body); letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); }


/* ===== HERO ===== */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 620px; max-height: 1200px;
  overflow: hidden; isolation: isolate; background: var(--bg);
}
.hero-bg { position: absolute; inset: 0; z-index: -4; transform: translate(var(--bx, 0), var(--by, 0)); transition: transform 0.8s var(--ease); }
.hero-bg-img {
  position: absolute; inset: -6%;
  background-size: cover; background-position: center 55%;
  filter: saturate(0.9) brightness(0.6);
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.8s ease;
}
.hero-bg-img.active { opacity: 1; animation: zoom-in 9s linear forwards; }
.hero-bg-img.zoom-out.active { animation-name: zoom-out; }
@keyframes zoom-in  { from { transform: scale(1.04); } to { transform: scale(1.18) translate(-1%, 0.5%); } }
@keyframes zoom-out { from { transform: scale(1.18) translate(1%, -0.5%); } to { transform: scale(1.04); } }
.hero-glow {
  position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(70, 240, 140, 0.16), transparent 70%);
  animation: pulse 6s ease-in-out infinite alternate;
}
@keyframes pulse { from { opacity: 0.55; } to { opacity: 1; } }

/* characters */
.hero-chars { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.char {
  position: absolute; bottom: 0; height: min(78%, 35vw);
  transform: translate(var(--px, 0), var(--py, 0)); transition: transform 0.7s var(--ease);
}
.char img {
  height: 100%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 99%);
          mask-image: linear-gradient(to bottom, #000 68%, transparent 99%);
  opacity: 0;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}
.fade-right img {
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 99%), linear-gradient(to left, transparent 0, #000 22%);
          mask-image: linear-gradient(to bottom, #000 68%, transparent 99%), linear-gradient(to left, transparent 0, #000 22%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.fade-left img {
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 99%), linear-gradient(to right, transparent 0, #000 22%);
          mask-image: linear-gradient(to bottom, #000 68%, transparent 99%), linear-gradient(to right, transparent 0, #000 22%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.char-left  img { translate: -55vw 6%; }
.char-right img { translate: 55vw 6%; }
.hero.ready .char img {
  animation:
    enter 1.5s var(--ease) calc(0.35s + var(--i) * 0.22s) forwards,
    idle 5.5s ease-in-out calc(2s + var(--i) * 0.7s) infinite alternate;
}
@keyframes enter { to { translate: 0 0; opacity: 1; } }
@keyframes idle { from { transform: translateY(0); } to { transform: translateY(-10px); } }

.char-left.char-front  { left: -9vw; z-index: 2; }
.char-right.char-front { right: -5vw; z-index: 2; }
.char-back { height: min(60%, 34vw); z-index: 1; }
.char-back img { filter: brightness(0.42) saturate(0.7) blur(1px); }
.char-left.char-back  { left: 13vw; }
.char-right.char-back { right: 13vw; }

.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,13,11,0.6) 0%, transparent 22%, transparent 62%, rgba(10,13,11,0.85) 90%, var(--bg) 100%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.5) 100%);
}
.hero-inner {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(28px, 4vh, 44px);
  padding: 90px var(--gutter) 70px; text-align: center;
}
.hero-logo { margin: 0; width: min(560px, 46vw); }
.hero-logo img {
  width: 100%; height: auto;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 2px rgba(0,0,0,0.9));
  opacity: 0; scale: 1.35;
}
.hero.ready .hero-logo img { animation: logo-in 1s var(--ease) 0.25s forwards; }
@keyframes logo-in {
  0% { opacity: 0; scale: 1.35; filter: blur(14px) drop-shadow(0 6px 30px rgba(0,0,0,0.85)); }
  100% { opacity: 1; scale: 1; filter: blur(0) drop-shadow(0 6px 30px rgba(0,0,0,0.85)) drop-shadow(0 0 2px rgba(0,0,0,0.9)); }
}
.hero-cta { opacity: 0; translate: 0 24px; }
.hero.ready .hero-cta { animation: rise 0.8s var(--ease) 0.9s forwards; }
@keyframes rise { to { opacity: 1; translate: 0 0; } }

.scroll-cue {
  position: absolute; bottom: 24px; left: 50%; z-index: 3; margin-left: -13px;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.5); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--accent); border-radius: 2px; animation: cue 1.8s infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ===== Section heads ===== */
.kicker {
  display: block; font: 800 12px/1 var(--body); letter-spacing: 0.4em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 8px;
}
h2 {
  margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(56px, 10vw, 140px); line-height: 1; padding-top: 0.12em; text-wrap: balance;
}
.section-head { max-width: 1400px; margin: 0 auto clamp(40px, 6vw, 90px); }

/* ===== Games ===== */
.games { padding: clamp(72px, 10vw, 140px) var(--gutter) clamp(60px, 8vw, 120px); }
#gameList { display: grid; gap: clamp(80px, 12vw, 170px); max-width: 1400px; margin: 0 auto; }
.game { display: grid; gap: 16px; }
.game-main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); align-items: end; gap: clamp(24px, 4vw, 64px); }
.game.flip .game-main { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); }
.game.flip .game-media { order: 2; }
.game.flip .game-info { text-align: right; align-items: flex-end; }

.game-media {
  position: relative; overflow: hidden; max-width: 100%; background: var(--bg-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
}
.game-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line); }
.game-media img { width: 100%; height: auto; object-fit: cover; transition: transform 1.2s var(--ease); }
.game:hover .game-media img { transform: scale(1.035); }

.game-info { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: 8px; min-width: 0; }
.badge {
  font: 800 11px/1 var(--body); letter-spacing: 0.22em; text-transform: uppercase;
  padding: 8px 12px; border: 1px solid var(--accent); color: var(--accent);
}
.game-title {
  margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(44px, 5.4vw, 88px); line-height: 0.92; overflow-wrap: anywhere; text-wrap: balance;
}
.plats { display: flex; flex-wrap: wrap; gap: 10px; }
.game.flip .plats { justify-content: flex-end; }
.plat {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px;
  font: 800 13px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--text); color: var(--bg); border-radius: 2px;
  transition: background 0.25s, transform 0.25s var(--ease);
}
.plat:hover { background: var(--accent); transform: translateY(-2px); }
.plat-trailer, .plat-presskit { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.5); }
.plat.is-soon { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); cursor: default; }
.plat.is-soon:hover { background: transparent; transform: none; }
.plat.is-soon small {
  font: 800 10px/1 var(--body); letter-spacing: 0.16em; padding: 4px 6px; border-radius: 2px;
  background: rgba(70, 240, 140, 0.14); color: var(--accent);
}
.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

.funding {
  display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line);
  min-width: 160px; transition: opacity 0.2s;
}
.game.flip .funding { align-items: flex-end; }
.funding:hover { opacity: 0.8; }
.funding-label { font: 600 11px/1 var(--body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.funding-name { font: 800 22px/1 var(--body); letter-spacing: -0.01em; }
.funding img { width: min(300px, 100%); height: auto; }

.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shot {
  position: relative; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.4s; filter: brightness(0.85); }
.shot:hover img { transform: scale(1.06); filter: brightness(1); }
.shot::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.3s; }
.shot:hover::after { box-shadow: inset 0 0 0 2px var(--accent); }

.noscript-games { max-width: 760px; margin: 0 auto; }
.noscript-games h3 { font-family: var(--display); font-weight: 400; font-size: 48px; text-transform: uppercase; margin: 40px 0 8px; }

/* ===== YouTube (two-click) ===== */
.yt { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: #000; }
.yt > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.4) blur(2px); transform: scale(1.03); }
.yt-cover { position: relative; z-index: 1; height: 100%; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 20px; text-align: center; }
.yt-play {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px; cursor: pointer;
  background: var(--accent); color: #06120b; border: 0; border-radius: 2px;
  font: 800 14px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.yt-play:hover { background: var(--accent-2); transform: translateY(-2px); }
.yt-icon { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; }
.yt-note { margin: 0; max-width: 46ch; font-size: 13px; color: rgba(242, 241, 234, 0.75); }
.yt-note a { text-decoration: underline; text-underline-offset: 2px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== About ===== */
.about { background: var(--bg-2); border-block: 1px solid var(--line); padding: clamp(80px, 11vw, 150px) var(--gutter); }
.about-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 100px); align-items: end;
}
.about .section-head { margin: 0; }
.about-text { margin: 0; font-size: clamp(21px, 2.2vw, 30px); line-height: 1.4; font-weight: 600; max-width: 30ch; color: var(--text); }

/* ===== Newsletter ===== */
/* newsletter + devlog share one soft glow so they read as one block */
.stay-tuned {
  background:
    radial-gradient(ellipse 60% 38% at 50% 58%, rgba(70, 240, 140, 0.12), transparent 75%),
    linear-gradient(180deg, transparent 0%, rgba(70, 240, 140, 0.03) 50%, transparent 100%);
}
.newsletter { padding: clamp(100px, 13vw, 180px) var(--gutter) clamp(56px, 6vw, 88px); text-align: center; }
.nl-inner { max-width: 760px; margin: 0 auto; }
.nl-inner h2 { font-size: clamp(48px, 8vw, 110px); }
.nl-text { margin: 22px auto 40px; color: var(--muted); font-size: 18px; }
.nl-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: 580px; margin: 0 auto; text-align: left; }
.nl-form input[type="email"] {
  min-height: 56px; padding: 0 18px; width: 100%;
  font: 400 16px/1 var(--body); color: var(--text);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
}
.nl-form input[type="email"]:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.08); }
.nl-form .btn { min-height: 56px; }
.nl-consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-top: 6px; cursor: pointer; }
.nl-consent input { accent-color: var(--accent); margin-top: 3px; flex: none; }
.nl-consent a { text-decoration: underline; text-underline-offset: 2px; }
.nl-form .btn:disabled { opacity: 0.6; cursor: wait; }
.nl-status { min-height: 1.5em; margin: 18px 0 0; color: var(--accent-2); font-size: 14px; }

/* ===== Devlog ===== */
.devlog { padding: 0 var(--gutter) clamp(80px, 10vw, 140px); }
.devlog-inner {
  position: relative; max-width: 980px; margin: 0 auto; padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 4vw, 56px);
  background: rgba(18, 24, 19, 0.72); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
/* small connector line from the newsletter down to the devlog card */
.devlog-inner::before {
  content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: clamp(32px, 4vw, 56px);
  background: linear-gradient(180deg, transparent, var(--line));
}
.devlog-title { font-size: clamp(40px, 5vw, 68px); }
.devlog-text p { margin: 14px 0 0; color: var(--muted); max-width: 52ch; }
.btn-yt { background: #ff3d3d; color: #fff; min-height: 56px; padding: 0 28px; white-space: nowrap; }
.btn-yt:hover { background: #ff5c5c; box-shadow: 0 0 32px 2px rgba(255, 61, 61, 0.35); }
.btn-yt .ico { width: 22px; height: 22px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); padding: 56px var(--gutter) 32px; text-align: center; display: grid; gap: 18px; justify-items: center; }
.socials { display: flex; justify-content: center; gap: 12px; }
.socials:empty { display: none; }
.socials a {
  display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%;
  color: var(--muted); transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.socials .ico { width: 18px; height: 18px; }
.footer-mail { font-weight: 600; }
.footer-mail:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; font-size: 13px; color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }
.sep { opacity: 0.4; }

/* ===== Lightbox ===== */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: rgba(5, 8, 6, 0.94); cursor: zoom-out;
}
.lightbox img { max-width: min(1600px, 94vw); max-height: 88vh; width: auto; box-shadow: 0 30px 80px rgba(0,0,0,0.7); }
.lb-close {
  position: absolute; top: 16px; right: 20px; width: 48px; height: 48px;
  background: none; border: 0; color: var(--text); font-size: 40px; line-height: 1; cursor: pointer;
}

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Press kit (WIP) ===== */
.wip {
  min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: 120px var(--gutter) 80px;
  background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(70, 240, 140, 0.12), transparent 70%);
}
.wip h1 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(56px, 11vw, 150px); line-height: 0.9; text-wrap: balance; }
.wip-tag {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  font: 800 13px/1 var(--body); letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent);
  padding: 12px 16px; border: 1px dashed var(--accent);
}
.wip-tag::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 1.2s ease-in-out infinite alternate; }
.wip .btn-ghost { margin-top: 48px; border-color: rgba(255,255,255,0.5); color: var(--text); }
.wip .btn-ghost:hover { background: var(--text); color: var(--bg); }

/* ===== Legal pages ===== */
.nav-back { font: 600 13px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; padding: 12px 0; }
.nav-back:hover { color: var(--accent); }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 4px 0; }
.legal { max-width: 760px; margin: 0 auto; padding: 140px var(--gutter) 100px; }
.legal h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(48px, 8vw, 96px); line-height: 1.08; margin: 0 0 40px; }
.legal h2 { font-family: var(--body); font-weight: 800; font-size: 20px; text-transform: none; line-height: 1.3; margin: 40px 0 10px; }
.legal p, .legal li { color: #cfd3cc; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ===== Tablet / Mobile ===== */
@media (max-width: 1100px) and (min-width: 761px) {
  .nav-socials { display: none; }
  .nav-links { gap: 26px; }
}
@media (max-width: 1000px) {
  .char-back { display: none; }
  .hero-logo { width: min(520px, 62vw); }
}
@media (max-width: 760px) {
  body::after { display: none; } /* grain off on phones: smoother scrolling */

  /* nav */
  .nav, .nav.scrolled { padding: 12px 16px; }
  .brand { margin-right: auto; }
  .brand-mark { font-size: 24px; }
  .lang { margin-left: 0; }
  .lang-btn { min-height: 34px; min-width: 40px; }
  .nav-toggle {
    display: grid; align-content: center; gap: 6px; width: 44px; height: 44px; padding: 0 10px; margin-left: 8px; margin-right: -10px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--text); transition: transform 0.3s var(--ease); }
  .nav-toggle span { transition: transform 0.3s var(--ease), opacity 0.2s; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  /* backdrop-filter would trap the fixed menu inside the header bar -> solid bar on phones */
  .nav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10, 13, 11, 0.96); }
  .nav.open { background: var(--bg); border-bottom-color: transparent; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; margin: 0; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
    background: var(--bg); opacity: 0; pointer-events: none; transition: opacity 0.3s;
    padding: 80px 16px env(safe-area-inset-bottom, 0px);
  }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-links a { font-family: var(--display); font-weight: 400; font-size: 46px; letter-spacing: 0.04em; padding: 4px 0; }
  .nav-socials { border-left: 0; padding-left: 0; margin-top: 18px; gap: 12px; }
  .nav-socials a { width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--text); }
  .nav-socials .ico { width: 20px; height: 20px; }

  /* hero */
  .hero { min-height: 580px; max-height: none; }
  .hero-inner { justify-content: flex-start; padding: calc(84px + 7vh) 16px 40px; gap: 26px; }
  .hero-logo { width: min(84vw, 420px); }
  .btn-lg { min-height: 56px; padding: 0 28px; font-size: 15px; width: min(320px, 100%); }
  .char { height: 44%; }
  .char-left.char-front { left: -12vw; z-index: 3; }
  .char-right.char-front { right: -42vw; }
  .char img { filter: brightness(0.92) drop-shadow(0 20px 40px rgba(0,0,0,0.6)); }
  .scroll-cue { display: none; }

  /* games */
  .games { padding: 56px 16px 64px; }
  #gameList { gap: 72px; }
  .game { gap: 14px; }
  .game-main, .game.flip .game-main { grid-template-columns: 1fr; gap: 20px; }
  .game.flip .game-media { order: 0; }
  .game-media { margin-inline: -16px; width: calc(100% + 32px); max-width: none; box-shadow: none; }
  .game-media::after { display: none; }
  .game.flip .game-info { text-align: left; align-items: flex-start; }
  .game-info { gap: 14px; }
  .game-title { font-size: clamp(42px, 13vw, 60px); }
  .plats, .game.flip .plats { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
  .plat { justify-content: center; min-height: 50px; padding: 0 12px; font-size: 12px; }
  .plat-steam, .plats .plat:last-child:nth-child(even) { grid-column: 1 / -1; }
  .funding, .game.flip .funding { align-items: flex-start; width: 100%; }
  .funding img { width: min(260px, 80%); }

  /* screenshots: swipeable row */
  .shots {
    display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -16px; padding: 4px 16px;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 82%; scroll-snap-align: center; }

  /* about + newsletter */
  .about { padding: 72px 16px; }
  .about-inner { grid-template-columns: 1fr; gap: 22px; }
  .about-text { font-size: 20px; }
  .newsletter { padding: 80px 16px 48px; }
  .devlog-inner::before { display: none; }
  .nl-inner h2 { font-size: clamp(44px, 13vw, 64px); }
  .nl-text { margin: 16px auto 28px; font-size: 16px; }
  .nl-form { grid-template-columns: 1fr; }
  .nl-form .btn { width: 100%; }
  .nl-consent { font-size: 13px; line-height: 1.45; }
  .nl-consent input { width: 20px; height: 20px; margin-top: 0; }
  .devlog { padding: 0 16px 72px; }
  .devlog-inner { grid-template-columns: 1fr; padding: 24px 20px; }
  .btn-yt { width: 100%; white-space: normal; text-align: center; }

  .footer { padding: 44px 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .lightbox { padding: 12px; }
  .lightbox img { max-width: 100%; }
}
/* phones held sideways / very short screens */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 100vh; min-height: 100svh; }
  .hero-inner { justify-content: center; padding: 64px 16px 24px; gap: 16px; }
  .hero-logo { width: min(320px, 38vw); }
  .btn-lg { min-height: 48px; padding: 0 28px; font-size: 14px; width: auto; }
  .char { height: 82%; }
  .char-left.char-front { left: -6vw; }
  .char-right.char-front { right: -4vw; }
  .scroll-cue { display: none; }
}
/* bigger touch targets on touch screens */
@media (pointer: coarse) {
  .lang-btn { min-height: 36px; min-width: 42px; }
}
@media (hover: none) {
  .game:hover .game-media img, .shot:hover img { transform: none; }
  .btn:hover, .plat:hover, .socials a:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero-bg-img:first-child, .hero-logo img, .hero-cta, .char img { opacity: 1 !important; scale: 1 !important; translate: 0 0 !important; }
}
