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

:root {
  --bg: #05060a;
  --panel: #0b0d14;
  --panel-2: #11141d;
  --line: #2a3142;
  --text: #aeb8cc;
  --muted: #6c768c;
  --heading: #e6e9f0;
  --accent: #ff2d55;
  --cyan: #3ad1ff;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); }

h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0; }

.wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(5, 6, 10, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #141824;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: 64px;
}

.brand { padding: 8px 0; }
.brand img { height: 48px; width: auto; transition: filter 0.2s; }
.brand:hover img { filter: drop-shadow(-2px 0 rgba(58, 209, 255, 0.6)) drop-shadow(2px 0 rgba(255, 45, 85, 0.6)); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(14px, 3vw, 36px);
}

.site-nav .menu-link {
  display: inline-block;
  padding: 10px 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav .menu-link:hover,
.site-nav .menu-link:focus-visible,
.site-nav .dropdown:hover > .menu-link,
.site-nav .menu-link[aria-current="page"] {
  color: var(--accent);
  outline: none;
}

/* ---------- generic page blocks ---------- */

.page-hero {
  position: relative;
  padding: clamp(64px, 12vw, 140px) 0 clamp(40px, 6vw, 72px);
  background: radial-gradient(ellipse at 50% 0%, #1a0a12 0%, transparent 70%);
  border-bottom: 1px solid #141824;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.page-hero h1 {
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tagline {
  margin: 20px 0 0;
  color: var(--heading);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.lede {
  max-width: 640px;
  margin: 16px 0 0;
  font-size: clamp(16px, 2vw, 19px);
}

.section { padding: clamp(48px, 8vw, 88px) 0; }
.section + .section { border-top: 1px solid #141824; }

.section-title {
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid #171b27;
  padding: 24px;
}

.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { margin: 0; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--line);
  color: var(--heading);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #d81f45; }

/* Brand icons (Simple Icons, CC0) in img/icons/, tinted via mask so they follow currentColor */
.icon-link {
  display: inline-flex;
  padding: 4px;
  color: var(--text);
  transition: color 0.2s, filter 0.2s;
}
.icon-link:hover,
.icon-link:focus-visible {
  color: var(--accent);
  filter: drop-shadow(-2px 0 rgba(58, 209, 255, 0.6)) drop-shadow(2px 0 rgba(255, 45, 85, 0.6));
  outline: none;
}
.icon {
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon-spotify { --icon: url("../img/icons/spotify.svg"); }
.icon-artstation { --icon: url("../img/icons/artstation.svg"); }
.icon-instagram { --icon: url("../img/icons/instagram.svg"); }
.icon-discord { --icon: url("../img/icons/discord.svg"); }

.placeholder-note {
  margin: 0;
  padding: 10px 16px;
  background: #1a0a12;
  color: #ff8aa1;
  font-size: 13px;
  text-align: center;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 32px 0;
  border-top: 1px solid #141824;
  color: var(--muted);
  font-size: 13px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.site-footer a { color: var(--muted); }
.footer-links { display: flex; align-items: center; gap: 16px; }
.site-footer .icon { width: 18px; height: 18px; }

/* ---------- about ---------- */

.split {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  align-items: center;
}

.aside { color: var(--muted); font-style: italic; }

.card-statement {
  grid-column: 1 / -1;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, #1a0a12, var(--panel) 60%);
}
.card-statement p { max-width: 70ch; color: var(--heading); }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 24px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 7px;
  width: 9px;
  height: 9px;
  background: var(--accent);
}
.timeline time { color: var(--accent); font-size: 13px; letter-spacing: 0.15em; }

/* ---------- collaborators ---------- */

.person { padding: 0; }
.person img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); transition: filter 0.3s; }
.person:hover img { filter: none; }
.person-body { padding: 20px; }
.person .role { margin: 0 0 10px; color: var(--accent); font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; }
.person .worked-on { margin: -6px 0 10px; color: var(--muted); font-size: 12px; }
.person-links { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: 13px; }

.person-wide { display: grid; grid-template-columns: minmax(0, 260px) 1fr; align-items: center; }
@media (max-width: 600px) { .person-wide { grid-template-columns: 1fr; } }
.person-wide { align-items: stretch; }
@media (min-width: 601px) {
  .person-wide img { height: 100%; aspect-ratio: auto; }
}
.person img.focus-left { object-position: 20% center; }
.founder-bio { padding: 28px 32px; max-width: 68ch; }
.founder-bio p + p { margin-top: 14px; }
.founder-bio p.founder-sign { margin-top: 22px; color: var(--heading); font-weight: 600; letter-spacing: 0.04em; }

.thanks { margin: 0; color: var(--heading); font-size: 17px; letter-spacing: 0.05em; }
.person-wide + .thanks { margin-top: 32px; }

/* ---------- contact ---------- */

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid #171b27; }
.contact-list span { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; }

.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 13px; letter-spacing: 0.1em; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--heading);
  font: inherit;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { justify-self: start; cursor: pointer; font: inherit; font-size: 13px; }
.form .btn:disabled { opacity: 0.5; cursor: wait; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .turnstile { min-height: 65px; }
.form-status { margin: 0; min-height: 1.4em; font-size: 13px; letter-spacing: 0.05em; color: var(--text); }
.form-status.is-error { color: var(--accent); }
.form-note { margin: 0; color: var(--muted); font-size: 12px; }

/* ---------- game page (minimal: store details live on Steam) ---------- */

.game-banner {
  position: relative;
  min-height: clamp(260px, 42vw, 520px);
  display: flex;
  align-items: flex-end;
  background: center / cover no-repeat;
}
.game-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 6, 10, 0.2), var(--bg));
}
.game-banner .wrap { position: relative; z-index: 1; padding-bottom: 32px; }
.game-banner h1 { font-size: clamp(30px, 6vw, 64px); font-weight: 300; letter-spacing: 0.06em; text-transform: uppercase; }
.game-meta { margin: 14px 0 0; color: var(--text); font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; }

.game-media { padding-top: 24px; }

.media-main {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.media-main img, .media-main iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  pointer-events: none;
}
.play-overlay::before {
  content: "";
  border-left: 34px solid rgba(255, 255, 255, 0.85);
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
}

.thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.thumbs button {
  flex: 0 0 120px;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 2px solid transparent;
  background: #000;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button:hover { opacity: 1; }
.thumbs button[aria-current="true"] { opacity: 1; border-color: var(--accent); }
.thumbs .is-video { position: relative; }
.thumbs .is-video::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
}

.game-about p { max-width: 68ch; }
.game-about .lede { margin: 0 0 16px; color: var(--heading); }
.game-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.devlog img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.devlog .card { padding: 0; }
.devlog .card div { padding: 18px; }
.devlog time { color: var(--muted); font-size: 12px; letter-spacing: 0.15em; }

/* ---------- legal pages (Impressum, Datenschutz) ---------- */

.legal-text { overflow-wrap: anywhere; }
.legal-text > * { max-width: 72ch; }
.legal-text h2 { margin: 40px 0 12px; font-size: 18px; font-weight: 500; letter-spacing: 0.02em; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text h3 { margin: 24px 0 8px; font-size: 15px; font-weight: 600; }
.legal-text h4 { margin: 18px 0 6px; color: var(--heading); font-size: 14px; font-weight: 600; }
.legal-text p, .legal-text ul { margin: 0 0 12px; }
.legal-text ul { padding-left: 20px; }
