:root {
  --ink: #101018;
  --paper: #0b0b12;
  --muted: #c2c8d6;
  --line: rgba(255, 255, 255, 0.14);
  --orange: #ff6b28;
  --cyan: #00b8d9;
  --lime: #b7f042;
  --pink: #f64786;
  --panel: #171724;
  --night: #171724;
  --deep: #0f0f19;
  --section-gameplay: #0c1220;
  --section-gallery: #10182a;
  --section-controls: #111326;
  --section-worlds: #0d1724;
  --section-final: #120f1d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #ffffff;
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 52px);
  color: #ffffff;
  background: rgba(14, 14, 23, 0.36);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(14, 14, 23, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
}

.brand img {
  width: 38px;
  height: 38px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a,
.header-cta {
  text-decoration: none;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.header-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #111118;
  background: var(--lime);
  border: 2px solid #111118;
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 4px 4px 0 #111118;
}

.header-cta-steam {
  color: #ffffff;
  background: var(--cyan);
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: #ffffff;
  display: grid;
  align-items: end;
  padding: 110px clamp(18px, 5vw, 72px) 78px;
  isolation: isolate;
}

.hero-bg,
.hero picture,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 10, 18, 0.92) 0%, rgba(10, 10, 18, 0.62) 45%, rgba(10, 10, 18, 0.16) 100%),
    linear-gradient(0deg, rgba(10, 10, 18, 0.84) 0%, rgba(10, 10, 18, 0.12) 42%);
}

.hero picture {
  z-index: -2;
}

.hero-inner {
  width: min(720px, 100%);
}

.hero-logo {
  width: min(420px, 78vw);
  margin: 0 0 12px;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.45));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--lime);
  font-family: "Press Start 2P", Inter, sans-serif;
  font-size: 12px;
  line-height: 1.7;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: 64px;
  line-height: 0.96;
  font-weight: 900;
}

h2 {
  margin-bottom: 16px;
  font-size: 38px;
  line-height: 1.06;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.hero-copy {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.55;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  border: 2px solid #111118;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 5px 5px 0 #111118;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #111118;
}

.button.primary {
  background: var(--cyan);
  color: #ffffff;
}

.button.secondary {
  background: var(--lime);
  color: #111118;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink);
  color: #ffffff;
}

.quick-strip div {
  padding: 24px clamp(18px, 4vw, 44px);
  background: var(--night);
}

.quick-strip strong,
.quick-strip span {
  display: block;
}

.quick-strip strong {
  margin-bottom: 6px;
  color: var(--lime);
  font-size: 18px;
}

.quick-strip span {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.section {
  padding: 76px clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.media-section,
.worlds-section {
  background: var(--section-gameplay);
}

.media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.video-frame {
  overflow: hidden;
  border-radius: 8px;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--cyan);
  background: #000000;
}

.video-frame video {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-list article,
.world-grid article {
  padding: 22px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 5px 5px 0 var(--cyan);
}

.feature-list p,
.world-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.gallery-section {
  background: var(--section-gallery);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shot {
  appearance: none;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #000000;
  box-shadow: 5px 5px 0 rgba(16, 16, 24, 0.86);
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 220ms ease;
}

.shot:hover img,
.shot.is-active img {
  transform: scale(1.04);
}

.controls-section {
  background: var(--section-controls);
  color: #ffffff;
}

.control-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tab {
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  color: #ffffff;
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.tab.is-active {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}

.control-panel {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.control-panel.is-active {
  display: grid;
}

.control-panel span {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  line-height: 1.35;
}

.control-panel b {
  color: var(--lime);
  white-space: nowrap;
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.worlds-section {
  background: var(--section-worlds);
}

.world-grid article:nth-child(2n) {
  box-shadow: 5px 5px 0 var(--orange);
}

.world-grid article:nth-child(3n) {
  box-shadow: 5px 5px 0 var(--pink);
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1fr);
  gap: 34px;
  align-items: center;
  background: var(--section-final);
  color: #ffffff;
}

.final-cta img {
  border: 3px solid #ffffff;
  border-radius: 8px;
  box-shadow: 8px 8px 0 var(--orange);
}

.final-cta p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: #ffffff;
  background: #000000;
  font-weight: 800;
}

.site-footer a {
  color: var(--lime);
  text-decoration: none;
}

.lightbox {
  width: min(1080px, calc(100vw - 32px));
  padding: 0;
  border: 3px solid #ffffff;
  border-radius: 8px;
  background: #000000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.lightbox img {
  width: 100%;
}

.close-lightbox {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 40px;
  padding: 0 14px;
  border: 2px solid #111118;
  border-radius: 8px;
  background: var(--lime);
  color: #111118;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    background: rgba(14, 14, 23, 0.94);
  }

  .nav-links {
    display: none;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 31px;
  }

  .quick-strip,
  .media-grid,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .gallery,
  .world-grid,
  .control-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 8px;
    padding: 12px 16px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 7px;
    font-size: 14px;
  }

  .brand img {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .header-cta {
    min-height: 34px;
    padding: 0 8px;
    font-size: 11px;
    box-shadow: 3px 3px 0 #111118;
  }

  .hero {
    min-height: 88vh;
    padding: 72px 18px 54px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(10, 10, 18, 0.92) 0%, rgba(10, 10, 18, 0.48) 62%, rgba(10, 10, 18, 0.18) 100%);
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 27px;
  }

  .hero-copy,
  .section-heading p:not(.eyebrow),
  .final-cta p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .gallery,
  .world-grid,
  .control-panel {
    grid-template-columns: 1fr;
  }

  .video-frame video {
    min-height: 220px;
  }

  .site-footer {
    flex-direction: column;
  }
}
