:root {
  --bg: #05070a;
  --panel: #090d12;
  --panel-2: #0d131a;
  --text: #f3f7f8;
  --muted: #89949e;
  --line: #26313b;
  --cyan: #15e8ff;
  --yellow: #ffe55a;
  --orange: #ff8b38;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 0%, rgba(21, 232, 255, .07), transparent 29rem),
    var(--bg);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  line-height: 1.65;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--bg);
  background: var(--cyan);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--bg);
  background: var(--text);
  clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 22% 100%, 0 78%);
}

.cyan { color: var(--cyan); }

nav { display: flex; gap: 30px; }

nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover,
nav a:focus-visible,
nav a.active { color: var(--text); }

nav a.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--cyan);
  content: "";
}

.frame {
  position: relative;
  border: 1px solid var(--line);
}

.frame::before,
.frame::after {
  position: absolute;
  width: 14px;
  height: 14px;
  content: "";
  pointer-events: none;
}

.frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}

.frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
}

.hero {
  min-height: 560px;
  margin-top: 56px;
  padding: clamp(54px, 9vw, 104px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, .98) 0%, rgba(5, 7, 10, .78) 55%, rgba(5, 7, 10, .22) 100%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(21, 232, 255, .055) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(21, 232, 255, .055) 31px 32px);
}

.hero::marker { display: none; }

.hero .scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(255,255,255,.015) 50%);
  background-size: 100% 4px;
  pointer-events: none;
}

.eyebrow,
.game-index,
.section-code,
.genre,
.updated {
  color: var(--cyan);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin: 8px 0 16px;
  font-size: clamp(3.2rem, 9vw, 7.7rem);
  line-height: .88;
  letter-spacing: -.075em;
}

.hero-number {
  position: absolute;
  right: clamp(28px, 7vw, 88px);
  bottom: -70px;
  margin: 0;
  color: rgba(21, 232, 255, .09);
  font-size: clamp(12rem, 30vw, 28rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.12em;
  user-select: none;
}

.hero-copy {
  position: relative;
  max-width: 610px;
  margin: 25px 0;
  color: #bac2c9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-status {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 35px;
  color: var(--yellow);
  font-size: .72rem;
  letter-spacing: .14em;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  box-shadow: 0 0 16px var(--yellow);
}

.button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 230px;
  padding: 14px 18px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: .75rem;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.button:hover,
.button:focus-visible {
  color: var(--bg);
  background: var(--cyan);
  transform: translateY(-2px);
}

.button-yellow {
  border-color: var(--yellow);
  color: var(--yellow);
}

.button-yellow:hover,
.button-yellow:focus-visible { background: var(--yellow); }

.games-section { padding: 120px 0 40px; }

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

.section-heading h2,
.contact-panel h2,
.faq-section > h2 {
  margin: 4px 0 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.section-code { color: var(--yellow); }

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.game-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  transition: background .2s ease;
}

.game-card:hover { background: var(--panel-2); }

.game-screen {
  aspect-ratio: 16 / 8.5;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(21, 232, 255, .025), rgba(21, 232, 255, .025)),
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(255,255,255,.025) 19px 20px);
}

.game-screen svg { width: 100%; height: 100%; }
.screen-frame { fill: none; stroke: #273641; stroke-width: 1; }
.game-line, .terrain, .cavern { fill: none; stroke: var(--cyan); stroke-width: 3; }
.thin-line { fill: none; stroke: #71808b; stroke-width: 1.5; }
.dashed { stroke-dasharray: 4 5; }
.game-dot { fill: var(--yellow); filter: drop-shadow(0 0 5px var(--yellow)); }
.brick-row { fill: none; stroke: var(--cyan); stroke-width: 2; }
.brick-row path:nth-child(3n) { stroke: var(--yellow); }
.paddle, .landing-pad { fill: none; stroke: var(--text); stroke-width: 5; }
.lander, .ship { fill: none; stroke: var(--text); stroke-width: 2.5; }
.thruster { fill: none; stroke: var(--orange); stroke-width: 2; }
.shot { fill: none; stroke: var(--yellow); stroke-width: 2; stroke-dasharray: 5 5; }

.game-info { padding: 28px 30px 32px; }
.game-info h3 { margin: 2px 0 12px; font-size: 1.4rem; letter-spacing: -.025em; }
.game-info > p:not(.game-index) { min-height: 78px; color: #a9b2ba; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.genre { display: inline-block; margin-top: 8px; color: var(--yellow); }

.system-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 86px 0;
  padding: 30px;
  background: var(--panel);
}

.system-strip div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-right: 1px solid var(--line);
}

.system-strip div:last-child { border-right: 0; }
.system-strip strong { color: var(--cyan); font-size: 2.3rem; line-height: 1; }
.system-strip span { color: var(--muted); font-size: .68rem; letter-spacing: .12em; }

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: 70px 0 100px;
  padding: clamp(34px, 6vw, 70px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-panel p:not(.eyebrow) { color: var(--muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.text-page { padding-bottom: 100px; }

.page-hero {
  margin: 56px 0 50px;
  padding: clamp(40px, 7vw, 80px);
  background:
    linear-gradient(90deg, rgba(5,7,10,.3), rgba(21,232,255,.04)),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(21,232,255,.04) 31px 32px);
}

.page-hero h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
.page-hero > p:last-child { color: #b0bac2; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1.1rem; }

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

.content-card {
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  background: var(--panel);
}

.content-card h2 { margin: 2px 0 16px; font-size: 1.55rem; }
.content-card p,
.content-card li,
.faq-section p { color: #b1bac2; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.content-card li { margin-bottom: 7px; }

.text-link { color: var(--cyan); text-underline-offset: 4px; }
.text-link:hover { color: var(--yellow); }

.faq-section { margin-top: 70px; }
.faq-section details { border-top: 1px solid var(--line); }
.faq-section details:last-child { border-bottom: 1px solid var(--line); }
.faq-section summary { padding: 22px 0; cursor: pointer; font-weight: 700; }
.faq-section details p { max-width: 760px; margin: -5px 0 24px; }

.policy { max-width: 900px; margin-inline: auto; }
.policy h2 { margin-top: 38px; }
.policy .notice { padding: 18px 20px; border-left: 3px solid var(--yellow); background: rgba(255,229,90,.06); }
.policy .notice strong { color: var(--yellow); }
.policy .updated { margin-top: 48px; color: var(--muted); font-family: inherit; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; padding: 17px 0; }
  nav { width: 100%; justify-content: space-between; gap: 14px; }
  .hero { min-height: 540px; padding: 50px 30px; }
  .hero-number { right: 25px; font-size: 14rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .game-grid, .content-grid { grid-template-columns: 1fr; }
  .game-info > p:not(.game-index) { min-height: 0; }
  .system-strip { grid-template-columns: 1fr; gap: 22px; }
  .system-strip div { padding-bottom: 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .system-strip div:last-child { padding-bottom: 0; border-bottom: 0; }
  .contact-panel { align-items: flex-start; flex-direction: column; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
