:root {
  --bg: #111426;
  --bg-deep: #090b16;
  --panel: rgba(13, 18, 39, 0.82);
  --panel-strong: rgba(27, 35, 72, 0.95);
  --shell-top: #7b84ca;
  --shell-bottom: #50589f;
  --screen: #d5f9d4;
  --screen-shadow: #89d28a;
  --line: rgba(200, 217, 255, 0.15);
  --text: #f6f5ff;
  --muted: #b6b9d5;
  --cyan: #8ee7ff;
  --pink: #ff7bd5;
  --lime: #d6ff65;
  --orange: #ffb257;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(90, 114, 255, 0.34), transparent 32%),
    radial-gradient(circle at 20% 20%, rgba(255, 123, 213, 0.18), transparent 24%),
    linear-gradient(180deg, #1d2451 0%, var(--bg) 42%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar,
.hero,
.howto-section,
.feature-grid,
.modes-section,
.where-section,
.download-panel {
  position: relative;
  z-index: 1;
}

.topbar {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
  padding: 16px 18px;
  border: 1px solid rgba(200, 217, 255, 0.18);
  border-radius: 28px;
  background: rgba(10, 14, 31, 0.6);
  backdrop-filter: blur(12px);
}

.brand,
.topnav a,
.eyebrow,
.section-tag,
.screen-header,
.screen-footer,
.console-copy,
.marquee-track {
  font-family: "Press Start 2P", monospace;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: min(260px, 100%);
  height: auto;
}

.topnav {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.56rem;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--cyan);
  border-color: rgba(142, 231, 255, 0.34);
  background: rgba(142, 231, 255, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  padding: 36px 0 24px;
}

.eyebrow,
.section-tag {
  margin: 0 0 18px;
  font-size: 0.62rem;
  line-height: 1.8;
  letter-spacing: 0.12em;
  color: var(--lime);
}

.hero-logo {
  width: min(100%, 480px);
  display: block;
  margin-bottom: 22px;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.4));
}

.hero-text,
.card p,
.modes-copy p,
.mode-card p,
.download-copy p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  border: 2px solid transparent;
  font-family: "Press Start 2P", monospace;
  font-size: 0.68rem;
  line-height: 1.5;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #130f27;
  background: linear-gradient(135deg, var(--lime), #7dffb6);
  box-shadow: 0 12px 28px rgba(130, 255, 181, 0.3);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--cyan);
  text-decoration: none;
  font-family: "Press Start 2P", monospace;
  font-size: 0.58rem;
  line-height: 1.8;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--lime);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-stats li,
.card,
.mode-card,
.download-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-stats li {
  padding: 16px;
  border-radius: 18px;
}

.stat-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--pink);
  letter-spacing: 0.08em;
}

.gba-frame {
  position: relative;
  padding: 28px 28px 34px;
  border-radius: 34px 34px 80px 34px;
  background: linear-gradient(180deg, var(--shell-top) 0%, var(--shell-bottom) 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -6px 18px rgba(0, 0, 0, 0.28),
    0 28px 60px rgba(10, 12, 26, 0.55);
}

.power-led {
  position: absolute;
  top: 16px;
  left: 20px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ff5f7d;
  box-shadow: 0 0 18px rgba(255, 95, 125, 0.85);
}

.screen-bezel {
  padding: 18px 18px 16px;
  border-radius: 22px 22px 54px 22px;
  background: linear-gradient(180deg, #1a1f38 0%, #0f1326 100%);
}

.screen-header,
.screen-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.5rem;
  color: rgba(213, 249, 212, 0.85);
}

.screen-header {
  margin-bottom: 12px;
}

.screen-footer {
  margin-top: 12px;
}

.screen-image {
  display: block;
  width: 100%;
  border: 8px solid #b6d9aa;
  border-radius: 12px;
  background: var(--screen);
  box-shadow:
    inset 0 0 0 3px rgba(69, 111, 71, 0.18),
    0 0 24px rgba(137, 210, 138, 0.25);
}

.console-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 0.52rem;
  color: #e9ebff;
}

.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
}

.dpad {
  position: relative;
  width: 94px;
  height: 94px;
}

.dpad::before,
.dpad::after,
.dpad span {
  content: "";
  position: absolute;
  border-radius: 10px;
  background: linear-gradient(180deg, #313756 0%, #191d31 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.25);
}

.dpad::before {
  top: 26px;
  left: 0;
  width: 94px;
  height: 42px;
}

.dpad::after {
  top: 0;
  left: 26px;
  width: 42px;
  height: 94px;
}

.dpad span {
  top: 34px;
  left: 34px;
  width: 26px;
  height: 26px;
}

.face-buttons {
  display: flex;
  gap: 14px;
}

.face-buttons span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  font-family: "Press Start 2P", monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, #e25fc1 0%, #8e2f7f 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.22),
    0 14px 22px rgba(43, 13, 39, 0.42);
}

.button-b {
  transform: translateY(-14px);
}

.marquee {
  overflow: hidden;
  margin: 18px 0 28px;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  font-size: 0.7rem;
  color: var(--orange);
  animation: scroll 18s linear infinite;
}

.howto-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  margin-top: 28px;
  align-items: start;
}

.howto-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.howto-copy p:last-child {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}

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

.howto-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.howto-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.howto-card p {
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
}

.howto-card.bonus {
  background:
    linear-gradient(180deg, rgba(142, 231, 255, 0.14), rgba(142, 231, 255, 0.04)),
    var(--panel);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 18px;
  margin-top: 28px;
}

.card,
.mode-card,
.download-panel {
  border-radius: 26px;
}

.card {
  padding: 28px;
}

.card h2,
.modes-copy h2,
.download-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.rules-list,
.controls-list {
  margin: 0;
  padding: 0;
}

.rules-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.rules-list li {
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
  color: var(--muted);
}

.rules-list li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

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

.controls-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.controls-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.controls-list dt {
  margin-bottom: 6px;
  font-family: "Press Start 2P", monospace;
  font-size: 0.64rem;
  color: var(--cyan);
}

.controls-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.modes-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

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

.mode-card {
  min-height: 100%;
  padding: 28px;
}

.mode-card h3 {
  margin: 0 0 16px;
  font-size: 1.55rem;
}

.mode-card.alt {
  background:
    linear-gradient(180deg, rgba(255, 123, 213, 0.15), rgba(255, 123, 213, 0.05)),
    var(--panel);
}

.where-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

.where-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.where-copy p:last-child {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}

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

.where-card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.where-card h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.where-card p {
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
}

.where-card.alt {
  background:
    linear-gradient(180deg, rgba(214, 255, 101, 0.14), rgba(214, 255, 101, 0.04)),
    var(--panel);
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: start;
  margin-top: 22px;
  padding: 30px;
}

.download-copy {
  max-width: 44rem;
}

.download-copy h2 {
  max-width: 16ch;
}

.download-copy p {
  max-width: 42rem;
}

.legal-copy {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--text);
}

.download-actions {
  display: grid;
  gap: 14px;
  justify-items: stretch;
  align-content: start;
}

.download-badge {
  justify-self: end;
  width: min(100%, 360px);
  height: auto;
  border-radius: 16px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 18px 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
  max-width: 28rem;
  line-height: 1.6;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1024px) {
  .hero,
  .howto-section,
  .feature-grid,
  .modes-section,
  .where-section,
  .download-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .modes-section,
  .download-panel {
    gap: 20px;
  }

  .download-actions {
    justify-items: start;
  }

  .download-badge {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .topbar {
    border-radius: 28px;
    padding: 16px;
  }

  .brand img {
    width: min(220px, 100%);
  }

  .topnav {
    justify-content: flex-start;
    gap: 10px;
  }

  .hero {
    gap: 28px;
  }

  .hero-stats,
  .howto-steps,
  .mode-cards,
  .where-cards {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .gba-frame {
    padding: 22px 18px 24px;
  }

  .screen-header,
  .screen-footer,
  .console-copy,
  .brand,
  .topnav a,
  .eyebrow,
  .section-tag,
  .button,
  .controls-list dt,
  .marquee-track {
    font-size: 0.52rem;
  }

  .hero-text,
  .card p,
  .modes-copy p,
  .mode-card p,
  .download-copy p,
  .controls-list dd,
  .rules-list li {
    font-size: 0.98rem;
  }

  .controls-row {
    gap: 18px;
  }

  .dpad {
    width: 78px;
    height: 78px;
  }

  .dpad::before {
    top: 22px;
    width: 78px;
    height: 34px;
  }

  .dpad::after {
    left: 22px;
    width: 34px;
    height: 78px;
  }

  .dpad span {
    top: 29px;
    left: 29px;
    width: 20px;
    height: 20px;
  }

  .face-buttons span {
    width: 46px;
    height: 46px;
  }
}
