:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #f1f5fa;
  background: #0b1018;
  --muted: #aebccc;
  --line: #273448;
  --blue: #58b9ff;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(ellipse 65rem 45rem at 50% 10rem, #132236 0%, transparent 78%);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, figure, dl, dd { margin: 0; }
.shell { width: min(75rem, calc(100% - 3rem)); margin-inline: auto; }

.skip-link {
  position: absolute;
  inset: .75rem auto auto .75rem;
  z-index: 2;
  background: #0b1018;
  padding: .7rem 1rem;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.site-header {
  background: #0b111b;
  border-bottom: 1px solid var(--line);
}

.header-inner, .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  min-height: 4.25rem;
}

.wordmark, .footer-inner p { font-weight: 800; letter-spacing: -.025em; }
.wordmark { font-size: 1.15rem; }
.wordmark span, .footer-inner p span { color: var(--blue); }

nav { display: flex; flex-wrap: wrap; gap: .5rem clamp(1rem, 3vw, 2.25rem); }
nav a, .footer-inner a { color: var(--muted); font-size: .9rem; }
nav a { display: block; padding-block: .55rem; }
nav a:hover, .footer-inner a:hover { color: #fff; }

.banner {
  margin-top: clamp(1rem, 3vw, 2rem);
  border: 1px solid #354964;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 18px 65px #02071085;
}

.banner img { width: 100%; }
.showcase { padding-block: clamp(2.75rem, 5.5vw, 4.75rem) clamp(3.75rem, 8vw, 6.5rem); }
.section-heading { margin-bottom: 1.85rem; }

.eyebrow, .game-setting, figcaption span, dt {
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--blue); }
.eyebrow span { display: inline-block; width: 1.5rem; height: 2px; background: currentColor; }

h1, h2 { line-height: 1.09; letter-spacing: -.038em; text-wrap: balance; }
h1 { margin-block: .45rem .65rem; font-size: clamp(2.25rem, 5.5vw, 4.25rem); }
.section-heading > p:last-child { max-width: 46rem; color: var(--muted); }

.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.1rem, 3vw, 2rem); }

.game {
  --accent: #f3c17e;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #101925;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: .9rem;
  scroll-margin-top: 1rem;
  overflow: hidden;
}

.secret-war { --accent: #92d8ff; }
.neixron { --accent: #ffab6b; grid-column: 1 / -1; }

.neixron-screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.neixron-screens img { aspect-ratio: 16 / 9; object-fit: contain; }
.neixron .game-content > p { max-width: 50rem; }
.screenshot { display: block; position: relative; background: #080d12; }
.screenshot img { width: 100%; }
.screenshot:focus-visible { outline-offset: -4px; }

.enlarge {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  aspect-ratio: 1;
  border: 1px solid #657791;
  border-radius: .5rem;
  background: #0b111bf2;
  line-height: 1;
}

.screenshot:hover .enlarge, .screenshot:focus-visible .enlarge { color: #0b111b; background: var(--accent); }

figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  padding: .65rem clamp(1rem, 2.7vw, 1.7rem);
  border-block: 1px solid var(--line);
  background: #0c141f;
  color: var(--muted);
  font-size: .8rem;
}

figcaption span, .game-setting { color: var(--accent); }

.game-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1rem, 2.7vw, 1.7rem);
}

h2 { margin-block: .35rem .8rem; font-size: clamp(1.8rem, 3.35vw, 2.65rem); }
.game-content > p:not(.game-setting), .features { color: #c3cfdd; }
.features { margin-block: 1rem 1.4rem; padding-left: 1.15rem; }
.features li + li { margin-top: .35rem; }
.features li::marker { color: var(--accent); }

.game-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .85rem;
  margin-top: 1.25rem;
}

.download-count { color: var(--muted); font-size: .85rem; }

.download-button {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem 1rem;
  border-radius: .5rem;
  background: var(--accent);
  color: #16110e;
  font-weight: 750;
}

.download-button:hover { background: #ffd0a8; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: .75rem 1rem;
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}

dt { color: var(--muted); }
dd { font-size: .88rem; }

.site-footer { border-top: 1px solid var(--line); background: #0b111b; }
.footer-inner { min-height: 5rem; }
.footer-inner small { margin-left: .4rem; color: var(--muted); font-weight: 500; }
.footer-inner nav { gap: 0 1.25rem; }
.footer-inner a span { margin-left: .25rem; }
.footer-inner a[aria-current="page"] { color: var(--blue); }

.legal-page {
  width: min(46rem, calc(100% - 3rem));
  margin: clamp(2rem, 6vw, 4.5rem) auto;
  padding: clamp(1rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  border-radius: .9rem;
  background: #101925;
  overflow-wrap: anywhere;
}

.legal-page h1 { font-size: clamp(1.75rem, 5vw, 3.2rem); }
.legal-page h2 { font-size: 1.35rem; }
.legal-page h1, .legal-page h2 { text-wrap: wrap; }
.legal-page section { margin-top: 1.75rem; }
.legal-page p + p { margin-top: .75rem; }
.legal-page address { font-style: normal; }
.legal-page a { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 45rem) {
  .shell { width: calc(100% - 2rem); }
  .games { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .neixron-screens { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 32rem) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 0; padding-block: .55rem .2rem; }
  .footer-inner { flex-wrap: wrap; gap: .15rem 1rem; padding-block: .75rem; }
  .legal-page { width: calc(100% - 2rem); }
  .banner { border-radius: .65rem; }
}
