:root {
  color-scheme: dark;
  --bg: #11131a;
  --panel: #191d27;
  --panel-strong: #202635;
  --text: #f8f5e8;
  --muted: #aeb6c4;
  --line: #333a4d;
  --red: #ff3d57;
  --green: #27d6a6;
  --yellow: #f6e86d;
  --blue: #6aa7ff;
  --ink: #090b10;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 32px 32px;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 14px;
  box-shadow: 0 6px 0 var(--red);
}

.main-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.main-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"],
.site-footer a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 36px;
  align-items: center;
  width: min(var(--max), calc(100% - 32px));
  min-height: calc(100vh - 124px);
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero-copy h1,
.page-hero h1,
.legal-page h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(52px, 9vw, 128px);
  line-height: .82;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-hero h1,
.legal-page h1 {
  font-size: clamp(40px, 6vw, 84px);
  line-height: .95;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lede,
.page-hero p,
.section-copy p,
.legal-page p,
.detail-card p,
.feature-card p {
  color: var(--muted);
  line-height: 1.65;
}

.lede {
  max-width: 560px;
  margin: 24px 0;
  font-size: clamp(18px, 2vw, 24px);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: var(--red);
  border-color: var(--red);
  color: white;
  box-shadow: 0 6px 0 #921d2e;
}

.button.secondary {
  background: var(--panel-strong);
  color: var(--text);
}

.hero-art {
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 0 rgba(0, 0, 0, .22);
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

.status-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  border-block: 2px solid var(--line);
  background: var(--panel);
}

.status-band div {
  padding: 20px calc((100vw - min(var(--max), calc(100vw - 32px))) / 2);
}

.status-band div + div {
  border-left: 2px solid var(--line);
}

.status-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-grid,
.feature-list,
.partner-grid,
.page-layout,
.legal-page {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: center;
  padding: 80px 0;
}

.section-copy h2,
.feature-card h2,
.detail-card h2,
.legal-page h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

.feature-card h2,
.detail-card h2,
.legal-page h2 {
  font-size: 24px;
  line-height: 1.15;
}

.text-link {
  color: var(--yellow);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.game-frame-shell {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
}

.game-frame-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 0 88px;
}

.feature-card,
.detail-card {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
}

.feature-icon {
  display: inline-grid;
  width: 48px;
  height: 38px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 6px;
  background: var(--blue);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.page-layout {
  padding: 48px 0 88px;
}

.page-hero {
  max-width: 900px;
  margin-bottom: 38px;
}

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

pre {
  overflow-x: auto;
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  padding: 16px;
  color: var(--green);
  line-height: 1.5;
}

.notice {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  color: var(--text);
  font-size: 14px;
  background: var(--panel-strong);
}

td {
  color: var(--muted);
  line-height: 1.55;
}

.plain-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.legal-page {
  max-width: 860px;
  padding: 48px 0 88px;
}

.legal-page section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.updated {
  margin-top: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 34px;
  border-top: 2px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.game-page {
  overflow: hidden;
  background: var(--ink);
}

.game-viewport {
  display: grid;
  width: 100vw;
  height: 100vh;
  place-items: center;
  background: var(--ink);
}

.pixel-stage {
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  min-width: 320px;
  min-height: 180px;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 2px, transparent 2px),
    #11131a;
  background-size: 34px 34px;
}

.skyline {
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: #191d27;
}

.platform,
.hero-player,
.key,
.exit-door {
  position: absolute;
}

.platform {
  height: 8%;
  border-bottom: 10px solid #159474;
  background: var(--green);
}

.platform-left {
  left: 8%;
  bottom: 22%;
  width: 30%;
}

.platform-mid {
  left: 44%;
  bottom: 39%;
  width: 22%;
}

.platform-right {
  right: 7%;
  bottom: 56%;
  width: 24%;
}

.hero-player {
  left: 16%;
  bottom: 30%;
  width: 6%;
  min-width: 28px;
  aspect-ratio: .68;
  border-radius: 8px 8px 4px 4px;
  background: var(--yellow);
  box-shadow: inset 18px 18px 0 -14px var(--ink), inset -18px 18px 0 -14px var(--ink);
}

.hero-player::before,
.hero-player::after {
  position: absolute;
  top: -32%;
  width: 45%;
  height: 38%;
  content: "";
  background: var(--red);
}

.hero-player::before {
  left: 0;
  clip-path: polygon(0 0, 100% 100%, 20% 100%);
}

.hero-player::after {
  right: 0;
  clip-path: polygon(100% 0, 80% 100%, 0 100%);
}

.spikes-a,
.spikes-b {
  position: absolute;
  bottom: 22%;
  height: 9%;
  background: var(--red);
  clip-path: polygon(0 100%, 12.5% 0, 25% 100%, 37.5% 0, 50% 100%, 62.5% 0, 75% 100%, 87.5% 0, 100% 100%);
}

.spikes-a {
  left: 39%;
  width: 20%;
}

.spikes-b {
  right: 22%;
  width: 13%;
}

.key {
  left: 52%;
  bottom: 50%;
  width: 52px;
  height: 22px;
  background: var(--yellow);
}

.key::before {
  position: absolute;
  left: -30px;
  top: -14px;
  width: 34px;
  height: 34px;
  border: 10px solid var(--yellow);
  border-radius: 50%;
  content: "";
}

.key::after {
  position: absolute;
  right: 6px;
  bottom: -20px;
  width: 10px;
  height: 20px;
  background: var(--yellow);
  box-shadow: 18px 0 0 var(--yellow);
  content: "";
}

.exit-door {
  right: 16%;
  bottom: 64%;
  width: 9%;
  min-width: 48px;
  aspect-ratio: .75;
  border-radius: 6px 6px 0 0;
  background: var(--blue);
}

.exit-door::before {
  position: absolute;
  inset: 24% 22% 0;
  background: var(--ink);
  content: "";
}

.exit-door::after {
  position: absolute;
  right: 24%;
  top: 56%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}

.game-message {
  position: absolute;
  left: 50%;
  top: 10%;
  width: min(520px, calc(100% - 32px));
  margin: 0;
  transform: translateX(-50%);
  color: var(--text);
  font-size: clamp(18px, 4vw, 38px);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .hero,
  .section-grid,
  .feature-list,
  .partner-grid,
  .status-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .status-band div {
    padding: 18px 16px;
  }

  .status-band div + div {
    border-top: 2px solid var(--line);
    border-left: 0;
  }

  .section-grid {
    padding: 56px 0;
  }

  .feature-list {
    padding-bottom: 56px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero-copy h1 {
    font-size: 52px;
  }

  .main-nav {
    gap: 8px 14px;
  }

  .button {
    width: 100%;
  }

  .feature-card,
  .detail-card {
    padding: 18px;
  }
}
