:root {
  --ink: #0f1c2e;
  --ink-soft: #3d4f66;
  --paper: #e7eef5;
  --paper-deep: #cfdcea;
  --cyan: #2ec4b6;
  --cyan-deep: #1a8f85;
  --amber: #f0a202;
  --rose: #e4576a;
  --line: rgba(15, 28, 46, 0.14);
  --shadow: 0 24px 48px rgba(15, 28, 46, 0.18);
  --font-pixel: "Silkscreen", "Courier New", monospace;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --max: 1100px;
  --pixel: 4px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: clip;
  background:
    linear-gradient(180deg, #f4f8fc 0%, var(--paper) 42%, #d9e6f2 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

a {
  color: var(--cyan-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
  backdrop-filter: blur(10px);
  background: rgba(244, 248, 252, 0.88);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  background:
    linear-gradient(135deg, var(--cyan) 50%, transparent 50%),
    linear-gradient(315deg, var(--amber) 50%, transparent 50%);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.brand-word {
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.45rem 0.85rem;
  background: var(--ink);
  color: var(--paper) !important;
  box-shadow: 3px 3px 0 var(--cyan);
}

.nav-cta:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--cyan);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92vh, 860px);
  overflow: hidden;
  color: #f4f8fc;
}

.hero-bleed {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.04);
  animation: hero-drift 22s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 14, 24, 0.88) 0%, rgba(8, 14, 24, 0.55) 48%, rgba(8, 14, 24, 0.28) 100%),
    linear-gradient(0deg, rgba(8, 14, 24, 0.75) 0%, transparent 42%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(0, 0, 0, 0.08) 3px,
      rgba(0, 0, 0, 0.08) 4px
    );
  pointer-events: none;
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.08) translate(-1.2%, 1%); }
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(5rem, 14vw, 8rem) clamp(1rem, 4vw, 2rem) clamp(2.5rem, 7vw, 4rem);
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.brand-hero {
  margin: 0 0 1rem;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 4rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-shadow: 4px 4px 0 rgba(46, 196, 182, 0.45);
  animation: brand-in 0.7s ease both;
}

@keyframes brand-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  color: rgba(244, 248, 252, 0.86);
  font-size: 1.12rem;
  animation: brand-in 0.7s ease 0.12s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: brand-in 0.7s ease 0.22s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 4px 4px 0 #fff;
}

.btn-primary:hover {
  color: var(--ink);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #fff;
}

.btn-ghost {
  background: transparent;
  color: #f4f8fc;
  box-shadow: inset 0 0 0 2px rgba(244, 248, 252, 0.85);
}

.btn-ghost:hover {
  background: rgba(244, 248, 252, 0.1);
  color: #f4f8fc;
}

.about {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.about-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1rem, 4vw, 2rem);
}

.about-inner h2,
.games-head h2,
.game-title {
  font-family: var(--font-pixel);
  letter-spacing: 0.02em;
}

.about-inner h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
}

.about-inner p {
  margin: 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.games {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem) 4rem;
}

.games-head {
  margin-bottom: 2.5rem;
}

.games-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.games-head p {
  margin: 0;
  color: var(--ink-soft);
}

.game {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  padding: 2rem 0;
  border-top: 1px dashed var(--line);
}

.game:first-of-type {
  border-top: none;
  padding-top: 0;
}

.game-meta {
  margin: 0 0 0.4rem;
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  color: var(--cyan-deep);
  letter-spacing: 0.04em;
}

.game-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
}

.game-blurb {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  max-width: 28rem;
}

.game-notes {
  margin: 0 0 1.25rem;
  max-width: 28rem;
  padding: 0.85rem 0 0.15rem;
  border-top: 1px dashed var(--line);
}

.game-notes .notes-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--cyan-deep);
}

.game-notes ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.game-notes li {
  margin: 0.25rem 0;
}

.game-notes .notes-tag {
  margin: 0.75rem 0 0;
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  color: var(--amber);
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dl {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--rose);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.dl:hover {
  color: var(--ink);
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--rose);
}

.game-media {
  display: grid;
  gap: 0.75rem;
}

.game-cover {
  margin: 0;
}

.game-cover img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  object-position: left center;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(15, 28, 46, 0.04) 3px,
      rgba(15, 28, 46, 0.04) 4px
    ),
    #0a1220;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(46, 196, 182, 0.45);
}

.shot-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.5rem;
}

.shot-strip img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border: 2px solid var(--ink);
  background: #0a1220;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 7vw, 4.5rem);
}

.page-header {
  margin-bottom: 1.75rem;
}

.page-header .eyebrow {
  margin-bottom: 0.85rem;
  color: var(--cyan-deep);
}

.page-header .eyebrow a {
  text-decoration: none;
  color: inherit;
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.page-header h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-pixel);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.page-lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.page-body {
  color: var(--ink);
  line-height: 1.65;
}

.page-body h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-pixel);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.page-body p,
.page-body ul {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.page-body ul {
  padding-left: 1.2rem;
}

.page-body li {
  margin-bottom: 0.35rem;
}

.page-body a {
  font-weight: 500;
}

.page-body strong {
  color: var(--ink);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2rem);
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-pixel);
  font-size: 1rem;
}

.footer-tag {
  margin: 0 0 0.75rem;
  color: rgba(231, 238, 245, 0.72);
  font-size: 0.95rem;
}

.footer-meta {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(231, 238, 245, 0.55);
}

.footer-meta a {
  color: var(--cyan);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  .site-header {
    padding: 0.7rem 1rem;
    gap: 0.55rem;
  }

  .brand-word {
    font-size: 0.82rem;
  }

  .site-nav {
    gap: 0.5rem;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .nav-cta {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
    box-shadow: 2px 2px 0 var(--cyan);
  }

  .hero {
    min-height: min(78vh, 560px);
    align-items: flex-end;
  }

  .hero-veil {
    background:
      linear-gradient(180deg, rgba(8, 14, 24, 0.35) 0%, rgba(8, 14, 24, 0.55) 35%, rgba(8, 14, 24, 0.92) 100%),
      linear-gradient(90deg, rgba(8, 14, 24, 0.72) 0%, rgba(8, 14, 24, 0.35) 100%),
      repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 0, 0, 0.08) 3px,
        rgba(0, 0, 0, 0.08) 4px
      );
  }

  .hero-copy {
    padding: 4.5rem 1rem 2rem;
  }

  .brand-hero {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
    text-shadow: 3px 3px 0 rgba(46, 196, 182, 0.4);
  }

  .eyebrow {
    font-size: 0.58rem;
    line-height: 1.4;
  }

  .lede {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    color: rgba(244, 248, 252, 0.92);
  }

  .cta-row {
    gap: 0.55rem;
  }

  .btn {
    padding: 0.85rem 0.95rem;
    font-size: 0.62rem;
    min-height: 2.85rem;
    justify-content: center;
  }

  .btn-ghost {
    background: rgba(8, 14, 24, 0.45);
  }

  .about-inner,
  .games {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .about-inner {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .about-inner h2,
  .games-head h2 {
    font-size: clamp(1.1rem, 5.5vw, 1.35rem);
    line-height: 1.35;
  }

  .about-inner p,
  .game-blurb,
  .games-head p {
    font-size: 0.98rem;
  }

  .game {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1.5rem 0;
  }

  .game-title {
    font-size: clamp(1.05rem, 5vw, 1.3rem);
    line-height: 1.35;
  }

  .downloads {
    gap: 0.45rem;
  }

  .dl {
    padding: 0.7rem 0.8rem;
    font-size: 0.55rem;
    line-height: 1.35;
    min-height: 2.75rem;
    flex: 1 1 calc(50% - 0.45rem);
    justify-content: center;
    text-align: center;
  }

  .game-cover img {
    max-height: 240px;
    object-position: center top;
    box-shadow: 4px 4px 0 rgba(46, 196, 182, 0.45);
  }

  .shot-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-strip img {
    height: 96px;
  }

  .footer-inner {
    padding: 1.5rem 1rem;
  }

  .footer-brand {
    font-size: 0.9rem;
  }

  .footer-tag,
  .footer-meta {
    font-size: 0.88rem;
  }
}

@media (max-width: 420px) {
  .brand-word {
    font-size: 0.72rem;
  }

  .cta-row .btn {
    width: 100%;
    justify-content: center;
  }

  .dl {
    flex: 1 1 100%;
  }

  .shot-strip {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: min(72vh, 480px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bleed img,
  .brand-hero,
  .lede,
  .cta-row {
    animation: none;
  }
  .js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
