:root {
  color-scheme: dark;
  --bg: #090a12;
  --panel: rgba(22, 24, 43, 0.82);
  --panel-strong: rgba(33, 36, 66, 0.94);
  --text: #f6f4ff;
  --muted: #b8b4d8;
  --line: rgba(255, 255, 255, 0.14);
  --pink: #ff7ac8;
  --cyan: #69e7ff;
  --lime: #b7ff6a;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 122, 200, 0.2), transparent 34rem),
    radial-gradient(circle at 82% 18%, rgba(105, 231, 255, 0.17), transparent 30rem),
    linear-gradient(135deg, #090a12 0%, #111326 58%, #070812 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 56px;
}

.hero {
  padding: clamp(36px, 7vw, 76px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.05em;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 17vw, 11rem);
  line-height: 0.82;
  text-shadow: 0 0 40px rgba(255, 122, 200, 0.24);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

p,
li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

strong,
code {
  color: var(--text);
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

pre {
  overflow-x: auto;
  margin: 24px 0 0;
  padding: 18px;
  border: 1px solid rgba(105, 231, 255, 0.25);
  border-radius: 18px;
  background: rgba(5, 7, 16, 0.74);
}

.lede {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.07);
}

.button.primary {
  border-color: rgba(255, 122, 200, 0.5);
  color: #130713;
  background: linear-gradient(135deg, var(--pink), var(--lime));
}

.card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.notice {
  margin-top: 22px;
  padding: 28px;
  background: var(--panel-strong);
}

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

.grid .card,
.tester {
  padding: 30px;
}

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

figure {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
}

img {
  display: block;
  width: 100%;
  image-rendering: pixelated;
  border-radius: 18px;
  background: #000;
}

figcaption {
  padding: 12px 4px 2px;
  color: var(--muted);
}

.tester {
  margin-top: 22px;
}

.feedback-list {
  padding-left: 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.status-line,
.hint {
  margin: 18px 0 0;
  color: var(--muted);
}

.play-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 22px;
  margin-top: 22px;
}

.screen-card,
.objective-card {
  padding: 24px;
}

.screen-shell {
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 28px);
  border: 1px solid rgba(105, 231, 255, 0.22);
  border-radius: 24px;
  background: #02030a;
}

#gba-screen {
  width: min(100%, 720px);
  aspect-ratio: 3 / 2;
  height: auto;
  image-rendering: pixelated;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 22px 80px rgba(0,0,0,0.45);
}

.objective-list {
  display: grid;
  gap: 12px;
  padding-left: 1.25rem;
}

.objective-list li {
  padding-left: 4px;
}

@media (max-width: 760px) {
  main {
    width: min(100% - 20px, 1120px);
    padding-top: 24px;
  }

  .hero,
  .notice,
  .grid .card,
  .tester {
    border-radius: 22px;
    padding: 22px;
  }

  .grid,
  .screenshots,
  .play-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.6rem, 25vw, 6.4rem);
  }
}
