:root {
  --bg: #0b1020;
  --bg-2: #121a30;
  --card: #161f38;
  --line: #24304f;
  --ink: #eef1f8;
  --muted: #9aa6c3;
  --teal: #2fc4b2;
  --orange: #f5a524;
  --orange-ink: #1a1203;
  --red: #e5484d;
  --radius: 14px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: Fredoka, Inter, sans-serif; line-height: 1.15; margin: 0 0 .4em; letter-spacing: .01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(11, 16, 32, .72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 600 18px Fredoka, sans-serif; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px;
  font-weight: 700; font-size: 15px; line-height: 1;
  border: 1px solid transparent;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.08); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--orange); color: var(--orange-ink); box-shadow: 0 6px 24px rgba(245,165,36,.35); }
.btn-teal { background: var(--teal); color: #04201c; }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--ink); border-color: rgba(255,255,255,.16); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 92vh; min-height: 92svh;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 120px 20px 64px; overflow: hidden; text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,16,32,.35) 0%, rgba(11,16,32,0) 30%, rgba(11,16,32,.2) 60%, var(--bg) 100%);
}
.hero-content { max-width: 760px; }
.hero-logo { width: min(480px, 92vw); margin: 0 auto 4px; filter: drop-shadow(0 8px 30px rgba(0,0,0,.6)); }
.trailer {
  width: min(720px, 100%); margin: 4px auto 24px;
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.14); background: #000;
  box-shadow: 0 18px 50px rgba(0,0,0,.6);
}
.trailer button { all: unset; display: block; width: 100%; height: 100%; position: relative; cursor: pointer; }
.trailer button img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, filter .3s ease; filter: brightness(.82); }
.trailer button:hover img { transform: scale(1.03); filter: brightness(.95); }
.trailer button:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.trailer .play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: var(--orange-ink); box-shadow: 0 8px 30px rgba(245,165,36,.5);
  transition: transform .15s ease;
}
.trailer .play svg { width: 34px; height: 34px; margin-left: 4px; }
.trailer button:hover .play { transform: scale(1.08); }
.trailer-label {
  position: absolute; left: 0; right: 0; bottom: 14px; text-align: center;
  font-weight: 700; font-size: 14px; letter-spacing: .04em; text-shadow: 0 2px 8px rgba(0,0,0,.9);
}
.trailer iframe { width: 100%; height: 100%; border: 0; display: block; }
.hero-tagline { font-size: clamp(16px, 2vw, 19px); color: #dfe4f2; margin: 0 auto 26px; max-width: 560px; text-shadow: 0 2px 12px rgba(0,0,0,.8); }

.page-hero { padding: 132px 0 40px; background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0; }

/* ---------- sections ---------- */
section.block { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0; }
.section-head p { color: var(--muted); margin: 4px 0 0; }
.eyebrow { color: var(--teal); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 6px; }

/* ---------- game card ---------- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.game-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, border-color .18s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--teal); }
.game-card > a img { aspect-ratio: 1232 / 706; object-fit: cover; width: 100%; }
.game-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-card h3 { font-size: 22px; margin: 0; }
.game-card h3 a { color: var(--ink); }
.game-card p { color: var(--muted); margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(47,196,178,.12); color: var(--teal); }
.tag.dev { background: rgba(245,165,36,.14); color: var(--orange); }
.game-card .actions { margin-top: auto; padding-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.game-card .btn { padding: 10px 16px; font-size: 14px; }

.card-empty {
  border: 2px dashed var(--line); border-radius: var(--radius);
  display: grid; place-items: center; text-align: center; padding: 32px; color: var(--muted); min-height: 220px;
}
.card-empty strong { display: block; color: var(--ink); font-family: Fredoka, sans-serif; font-size: 20px; margin-bottom: 4px; }

/* ---------- studio ---------- */
.studio { background: var(--bg-2); border-block: 1px solid var(--line); }
.studio .wrap { display: grid; grid-template-columns: 160px 1fr; gap: 36px; align-items: center; }
.studio img { width: 160px; height: 160px; border-radius: 28px; }
.studio p { color: var(--muted); margin: 0 0 10px; max-width: 680px; }

/* ---------- features (game page) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 36px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-child(even) .media { order: 2; }
.feature .media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.feature .media video { width: 100%; height: 100%; object-fit: cover; }
.feature h3 { font-size: 26px; }
.feature p { color: var(--muted); margin: 0; }

.list-check { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.list-check li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--muted); }
.list-check b { color: var(--ink); display: block; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery a { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); display: block; }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.04); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.9); display: none; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; border-radius: 8px; }

.steam-widget { border: 0; width: 100%; max-width: 646px; height: 190px; margin: 0 auto; display: block; }

/* ---------- presskit ---------- */
.press-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.factsheet { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 84px; }
.factsheet dl { margin: 0; }
.factsheet dt { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 14px; }
.factsheet dt:first-child { margin-top: 0; }
.factsheet dd { margin: 2px 0 0; }
.press-body h2 { font-size: 26px; margin-top: 36px; }
.press-body h2:first-child { margin-top: 0; }
.press-body p, .press-body li { color: var(--muted); }
.downloads { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; color: var(--muted); font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--ink); font: 600 15px Fredoka, sans-serif; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--teal); }
.site-footer .copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .feature, .press-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature:nth-child(even) .media { order: 0; }
  .factsheet { position: static; }
  .studio .wrap { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
  .brand span { display: none; }
  .hero { min-height: 88svh; padding-bottom: 40px; }
  .hero-bg img { object-position: 22% center; }
  .hero-logo { width: min(420px, 84vw); }
  .btn-row .btn { flex: 1 1 40%; justify-content: center; }
  .btn-row .btn-primary { flex-basis: 100%; }
  .games-grid { grid-template-columns: 1fr; }
  section.block { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
