:root {
  color-scheme: dark;
  --bg: #090c17;
  --panel: #111a2a;
  --line: #29364c;
  --text: #f0f5ff;
  --muted: #b9c6d9;
  --cyan: #83edff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Inter", system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); background: #0b0f1b; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; }
.studio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font: 750 .85rem/1.1 "Barlow", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.star { color: var(--cyan); font-size: 1.35rem; line-height: 1; }
nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 35px); font-size: .88rem; color: var(--muted); }
nav a:hover, .text-link:hover { color: var(--cyan); }
.hero {
  display: flex;
  min-height: clamp(480px, 53vw, 680px);
  background:
    linear-gradient(180deg, #090c1790 0%, #090c1700 29%, #090c1742 52%, #090c17ed 87%, var(--bg) 100%),
    url("media/key-art.jpg") center 46% / cover no-repeat;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  text-align: center;
  padding: clamp(20px, 4vw, 48px) 0 34px;
}
h1 { margin: 0 auto; max-width: 720px; }
h1 img { width: 100%; height: auto; filter: drop-shadow(0 6px 24px #03050f); }
.hero p {
  margin: 4px 0 23px;
  font: 660 clamp(1.23rem, 2.8vw, 1.92rem)/1.16 "Barlow", system-ui, sans-serif;
  text-shadow: 0 2px 12px #040715;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 10px 18px;
  background: var(--cyan);
  color: #08141c;
  font-weight: 720;
  font-size: .88rem;
  transition: background-color .16s, border-color .16s;
}
.button:hover { background: #b9f7ff; }
.button-steam:disabled { color: #0a2430; background: #83edff; cursor: default; }
.button-secondary { background: #111929bd; border-color: #5a687f; color: var(--text); }
.button-secondary:hover { background: #1b2943; border-color: var(--cyan); }
.hero small { display: block; margin-top: 10px; color: var(--muted); font-size: .78rem; }
section[id] { scroll-margin-top: 26px; }
.trailer-section { padding-top: 30px; }
.section-intro { display: grid; grid-template-columns: max-content minmax(0, 520px); gap: 20px; justify-content: space-between; align-items: baseline; margin-bottom: 25px; }
h2 { margin: 0; font: 750 clamp(1.85rem, 4vw, 3.12rem)/1.08 "Barlow", system-ui, sans-serif; letter-spacing: -.045em; }
.section-intro p, .press p { margin: 0; color: var(--muted); }
.player { position: relative; overflow: hidden; border: 1px solid #365577; border-radius: 12px; background: #03060d; box-shadow: 0 10px 38px #020611a0; }
video { display: block; width: 100%; aspect-ratio: 16 / 9; }
.play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 0 0 0 4px;
  width: clamp(55px, 8vw, 84px);
  aspect-ratio: 1;
  border: 2px solid #a3f4ff;
  border-radius: 50%;
  background: #09172de0;
  box-shadow: 0 0 35px #30c8ff55;
  color: #f1fdff;
  font-size: 1.65rem;
  cursor: pointer;
}
.play[hidden] { display: none; }
.play:hover { background: #163657; }
.screenshots-section, .press-section { margin-top: 65px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 18px; margin-top: 24px; }
figure { margin: 0; }
figure a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
figure a:hover { border-color: var(--cyan); }
figure img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
figcaption { margin-top: 7px; color: var(--muted); font-size: .86rem; }
.press {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(24px, 5vw, 48px);
  background: linear-gradient(117deg, #151828, #0f2332);
}
.press h2 { margin-bottom: 11px; }
.press-actions { display: grid; justify-items: center; gap: 13px; flex: 0 0 auto; }
.text-link { font-size: .86rem; color: var(--muted); text-underline-offset: 4px; text-decoration: underline; }
.site-footer { padding: 29px 0 36px; margin-top: 45px; border-top: 1px solid var(--line); }
dialog { width: min(1250px, 94vw); max-width: none; max-height: 92dvh; border: 1px solid var(--line); border-radius: 10px; padding: 0; background: var(--panel); color: var(--text); }
dialog::backdrop { background: #02040cef; }
dialog img { width: 100%; max-height: 79dvh; object-fit: contain; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px; }
.dialog-top button { border: 0; min-width: 42px; min-height: 42px; background: transparent; color: var(--text); font-size: 1.6rem; cursor: pointer; }
@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .nav-row { min-height: 60px; }
  .studio { font-size: .71rem; letter-spacing: .09em; gap: 6px; white-space: nowrap; }
  nav { gap: 12px; font-size: .77rem; }
  .hero {
    min-height: 485px;
    background:
      linear-gradient(180deg, #090c1700 38%, var(--bg) 76%),
      url("media/key-art.jpg") center top / auto 370px no-repeat;
  }
  .hero p { margin-top: 8px; }
  .hero-inner { padding-bottom: 19px; }
  .trailer-section { padding-top: 22px; }
  .section-intro { grid-template-columns: 1fr; gap: 11px; margin-bottom: 18px; }
  .screenshots-section, .press-section { margin-top: 42px; }
  .gallery { gap: 16px 10px; margin-top: 17px; }
  figcaption { font-size: .76rem; }
  .press { align-items: start; flex-direction: column; gap: 20px; }
  .press-actions { justify-items: start; }
}
@media (max-width: 355px) {
  .nav-row { gap: 10px; }
  nav { gap: 8px; }
  .hero { min-height: 440px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
