:root {
  color-scheme: dark;
  --bg: #070807;
  --panel: #111612;
  --panel-strong: #182017;
  --text: #f4f1e8;
  --muted: #aaa99a;
  --line: #303c31;
  --acid: #b6f44f;
  --hot: #ff6f3d;
  --steel: #78a7ba;
  --shadow: rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 7, 0.68), var(--bg) 74%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 78px),
    radial-gradient(circle at 18% 6%, rgba(182, 244, 79, 0.16), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(255, 111, 61, 0.12), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(182, 244, 79, 0.48);
  background: #162113;
  color: var(--acid);
  font-size: 13px;
}

.nav {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100vh - 68px);
  padding: 72px max(16px, calc((100vw - 1120px) / 2)) 72px;
}

.hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-art::before {
  position: absolute;
  inset: 9% 0 auto;
  height: 420px;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(120, 167, 186, 0.16), transparent),
    repeating-linear-gradient(0deg, transparent 0 36px, rgba(182, 244, 79, 0.13) 37px 39px);
  transform: skewY(-8deg);
}

.track {
  position: absolute;
  right: -60px;
  left: -60px;
  display: flex;
  gap: 34px;
  height: 74px;
  padding: 12px 0;
  border-block: 1px solid rgba(120, 167, 186, 0.24);
  background: rgba(14, 19, 16, 0.78);
  box-shadow: 0 20px 60px var(--shadow);
  transform: rotate(-8deg);
}

.track-a {
  top: 21%;
}

.track-b {
  top: 44%;
  transform: rotate(6deg);
}

.track span {
  flex: 0 0 104px;
  height: 48px;
  border: 1px solid rgba(244, 241, 232, 0.13);
  background:
    linear-gradient(135deg, rgba(182, 244, 79, 0.18), transparent 44%),
    #202820;
}

.core {
  position: absolute;
  width: clamp(120px, 18vw, 230px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 111, 61, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 111, 61, 0.45), transparent 38%),
    linear-gradient(45deg, transparent 42%, rgba(244, 241, 232, 0.16) 43% 57%, transparent 58%),
    #171a16;
  box-shadow: 0 24px 90px rgba(255, 111, 61, 0.14);
  transform: rotate(45deg);
}

.core-left {
  left: max(22px, calc((100vw - 1120px) / 2));
  top: 24%;
}

.core-right {
  right: max(22px, calc((100vw - 1120px) / 2));
  top: 35%;
}

.signal-grid {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 38%;
  background:
    linear-gradient(180deg, transparent, var(--bg)),
    repeating-linear-gradient(90deg, rgba(182, 244, 79, 0.1) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, rgba(182, 244, 79, 0.08) 0 1px, transparent 1px 58px);
  mask-image: linear-gradient(transparent, black 34%);
}

.hero-copy {
  position: relative;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--acid);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(72px, 13vw, 168px);
  line-height: 0.86;
}

.tagline {
  margin-bottom: 22px;
  color: var(--hot);
  font-size: clamp(24px, 4vw, 52px);
  font-weight: 900;
  line-height: 1;
}

.intro {
  max-width: 650px;
  margin-bottom: 28px;
  color: #d6d2c4;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.game-content a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
}

.button.primary,
.game-content a {
  border-color: rgba(182, 244, 79, 0.54);
  background: var(--acid);
  color: #11160d;
}

.button.secondary {
  background: rgba(17, 22, 18, 0.86);
}

.games-section,
.studio-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.game-card {
  display: grid;
  grid-template-rows: 220px 1fr;
  min-height: 100%;
  border: 1px solid var(--line);
  background: rgba(17, 22, 18, 0.9);
}

.game-thumb {
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(120, 167, 186, 0.22), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 34px),
    #1c241b;
}

.game-thumb img {
  width: min(150px, 56%);
  height: auto;
  image-rendering: pixelated;
}

.fallback-thumb span {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(182, 244, 79, 0.54);
  color: var(--acid);
  font-size: 32px;
  font-weight: 900;
}

.game-content {
  padding: 24px;
}

.game-status {
  margin-bottom: 10px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  font-size: 28px;
}

.game-content p:not(.game-status),
.studio-section p {
  color: var(--muted);
  line-height: 1.58;
}

.game-content a {
  margin-top: 8px;
}

.studio-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1fr);
  gap: 48px;
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    gap: 12px;
  }

  .hero {
    min-height: 760px;
    padding-top: 56px;
  }

  h1 {
    font-size: clamp(64px, 22vw, 104px);
  }

  .track {
    height: 58px;
  }

  .core-right {
    top: 48%;
  }

  .section-heading,
  .studio-section,
  .site-footer {
    display: block;
  }

  .site-footer span {
    display: block;
    margin-top: 8px;
  }
}
