body.home-page {
  --home-ink: #111111;
  --home-paper: #fcfcfc;
  --home-surface: #ffffff;
  --home-muted: #6e6e68;
  --home-line: #c5c5c3;

  --home-coral: #ff625c;
  --home-yellow: #ffd84d;
  --home-green: #63d471;
  --home-cyan: #4cc9f0;
  --home-blue: #5b7cfa;
  --home-purple: #9b6dff;
  --home-pink: #ff74b8;

  --home-blue-20: #232f5f;
  --home-blue-90: #d8e0fe;
  --home-purple-20: #3b2961;
  --home-purple-90: #e7dcff;

  --home-font: "Silkscreen", ui-monospace, monospace;
  --home-content: 76rem;
  --home-mobile-nav-height: 4.5rem;

  margin: 0;
  min-width: 20rem;
  padding-bottom: calc(var(--home-mobile-nav-height) + env(safe-area-inset-bottom));
  overflow-x: hidden;
  background: var(--home-paper);
  color: var(--home-ink);
  font-family: var(--home-font);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.home-page * {
  font-family: inherit;
}

body.home-page a {
  color: inherit;
  text-decoration: none;
}

body.home-page img,
body.home-page svg {
  display: block;
  max-width: 100%;
}

body.home-page :focus-visible {
  outline: 4px solid var(--home-cyan);
  outline-offset: 4px;
}

.home-shell {
  width: min(calc(100% - 2rem), var(--home-content));
  margin-inline: auto;
}

.home-header {
  display: none;
}

.home-header-inner {
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  width: fit-content;
}

.home-brand > img {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  image-rendering: pixelated;
}

.home-brand > span {
  display: grid;
  gap: 0.15rem;
  line-height: 1;
}

.home-brand strong {
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.home-brand small {
  color: var(--home-muted);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.home-desktop-nav {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.home-desktop-nav a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding-inline: 1rem;
  border: 2px solid transparent;
  font-size: 0.72rem;
  color: var(--home-muted);
}

.home-desktop-nav a:hover,
.home-desktop-nav a[aria-current="page"] {
  border-color: var(--home-ink);
  background: var(--home-surface);
  color: var(--home-ink);
  box-shadow: 3px 3px 0 var(--home-ink);
}

.home-hero {
  min-height: min(43rem, calc(100svh - var(--home-mobile-nav-height)));
  display: grid;
  align-content: space-between;
  gap: 2.5rem;
  padding-block: 2rem 4.5rem;
}

.home-hero-main {
  display: grid;
  align-content: center;
  gap: 2.25rem;
  max-width: 62rem;
}

.home-hero-brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.home-hero-brand > img {
  width: 4rem;
  height: 4rem;
  flex: 0 0 auto;
  image-rendering: pixelated;
}

.home-hero-brand-copy {
  display: grid;
  gap: 0.35rem;
  line-height: 1;
}

.home-hero-brand-copy strong {
  font-size: clamp(0.78rem, 3vw, 1rem);
  letter-spacing: 0.04em;
}

.home-hero-brand-copy small {
  color: var(--home-muted);
  font-size: clamp(0.52rem, 2vw, 0.62rem);
  letter-spacing: 0.12em;
}

.home-hero-copy {
  display: grid;
  gap: 1.35rem;
  max-width: 62rem;
}

.home-eyebrow {
  margin: 0;
  color: var(--home-blue-20);
  font-size: 0.56rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(2.7rem, 12.5vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.home-lede {
  max-width: 45rem;
  margin: 0;
  color: var(--home-muted);
  font-size: clamp(0.92rem, 3.6vw, 1.2rem);
  line-height: 1.9;
}

.px-home-button {
  min-height: 3.5rem;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  border: 2px solid var(--home-ink);
  background: var(--home-surface);
  color: var(--home-ink);
  box-shadow: 4px 4px 0 var(--home-ink);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.px-home-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--home-ink);
}

.px-home-button:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--home-ink);
}

.px-home-button-blue {
  background: var(--home-blue);
  color: white;
  box-shadow: 4px 4px 0 var(--home-blue-20);
}

body.home-page a.px-home-button-blue,
body.home-page a.px-home-button-blue span {
  color: #ffffff;
}

.home-hero-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--home-ink);
  border-bottom: 2px solid var(--home-ink);
}

.home-hero-note span {
  min-height: 3rem;
  display: grid;
  place-items: center;
  padding: 0.6rem;
  border-right: 2px solid var(--home-ink);
  font-size: 0.48rem;
  text-align: center;
}

.home-hero-note span:last-child {
  border-right: 0;
}

.featured-home {
  background: var(--home-ink);
  color: white;
}

.featured-home-inner {
  padding-block: 4.5rem;
}

.home-section-head {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  margin-bottom: 2.4rem;
}

.home-section-number {
  margin: 0;
  padding-top: 0.15rem;
  color: var(--home-coral);
  font-size: 0.68rem;
}

.home-section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.home-section-head-dark .home-eyebrow {
  color: var(--home-cyan);
}

.featured-game-card {
  display: grid;
  border: 2px solid white;
  background: #171717;
  box-shadow: 6px 6px 0 var(--home-blue);
  overflow: hidden;
}

.featured-game-art {
  position: relative;
  min-height: 25rem;
  overflow: hidden;
  border-bottom: 2px solid white;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    #1b1b1b;
  background-size: 1.5rem 1.5rem;
}

.featured-art-grid {
  position: absolute;
  inset: 2rem;
}

.pixel-room {
  position: absolute;
  display: block;
  border: 4px solid white;
  background: transparent;
}

.pixel-room-a {
  width: 8rem;
  height: 6rem;
  left: 3%;
  top: 10%;
  box-shadow: 1rem 1rem 0 var(--home-coral);
}

.pixel-room-b {
  width: 6rem;
  height: 8rem;
  right: 10%;
  top: 20%;
  box-shadow: -1rem 1rem 0 var(--home-yellow);
}

.pixel-room-c {
  width: 9rem;
  height: 5rem;
  left: 18%;
  bottom: 12%;
  box-shadow: 1rem -1rem 0 var(--home-cyan);
}

.pixel-room-d {
  width: 5rem;
  height: 5rem;
  right: 18%;
  bottom: 8%;
  box-shadow: -1rem -1rem 0 var(--home-purple);
}

.featured-art-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.55rem;
  background: var(--home-ink);
  color: white;
  font-size: 0.58rem;
}

.featured-game-copy {
  display: grid;
  align-content: center;
  gap: 1.25rem;
  padding: 1.5rem;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.home-badge {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border: 2px solid currentColor;
  font-size: 0.55rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-badge-blue {
  border-color: white;
  background: var(--home-blue);
  color: white;
}

.home-badge-purple {
  border-color: var(--home-ink);
  background: var(--home-purple);
  color: white;
}

.home-badge-dark {
  border-color: #555;
  background: var(--home-ink);
  color: #d6d6d1;
}

.featured-game-copy h3 {
  margin: 0;
  font-size: clamp(1.75rem, 7vw, 3.5rem);
  line-height: 1.1;
}

.featured-game-copy p {
  max-width: 36rem;
  margin: 0;
  color: #bababa;
  font-size: 0.82rem;
  line-height: 1.9;
}

.featured-game-link,
.home-card-action {
  width: fit-content;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.featured-game-link {
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--home-cyan);
  color: white;
}

.games-home {
  scroll-margin-top: 6rem;
  padding-block: 5rem;
}

.home-games-grid {
  display: grid;
  gap: 2rem;
}

.home-game-card {
  display: grid;
  border: 2px solid var(--home-ink);
  background: var(--home-surface);
  box-shadow: 5px 5px 0 var(--home-ink);
}

.home-game-art {
  position: relative;
  min-height: 19rem;
  overflow: hidden;
  border-bottom: 2px solid var(--home-ink);
  background:
    linear-gradient(90deg, rgba(17,17,17,0.05) 1px, transparent 1px),
    linear-gradient(rgba(17,17,17,0.05) 1px, transparent 1px),
    #f0f0ed;
  background-size: 1.5rem 1.5rem;
}

.home-game-art > span {
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 0.64rem;
}

.home-game-art-blue {
  box-shadow: inset 0 -0.9rem 0 var(--home-blue);
}

.home-game-art-purple {
  box-shadow: inset 0 -0.9rem 0 var(--home-purple);
}

.mini-dungeon {
  position: absolute;
  inset: 25% 14%;
}

.mini-dungeon i {
  position: absolute;
  width: 4.5rem;
  height: 3.5rem;
  border: 3px solid var(--home-ink);
  background: white;
}

.mini-dungeon i:nth-child(1) { left: 0; top: 0; box-shadow: 0.6rem 0.6rem 0 var(--home-coral); }
.mini-dungeon i:nth-child(2) { right: 0; top: 14%; box-shadow: -0.6rem 0.6rem 0 var(--home-yellow); }
.mini-dungeon i:nth-child(3) { left: 18%; bottom: 0; box-shadow: 0.6rem -0.6rem 0 var(--home-cyan); }
.mini-dungeon i:nth-child(4) { right: 16%; bottom: 3%; box-shadow: -0.6rem -0.6rem 0 var(--home-purple); }

.future-pixels {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  grid-template-columns: repeat(3, 3.25rem);
  gap: 0.65rem;
}

.future-pixels i {
  width: 3.25rem;
  height: 3.25rem;
  display: block;
  border: 3px solid var(--home-ink);
}

.future-pixels i:nth-child(1) { background: var(--home-purple); }
.future-pixels i:nth-child(2) { background: var(--home-pink); transform: translateY(-1.2rem); }
.future-pixels i:nth-child(3) { background: var(--home-yellow); }

.home-game-copy {
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem;
}

.home-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  color: var(--home-muted);
  font-size: 0.56rem;
}

.home-game-copy h3 {
  margin: 0;
  font-size: clamp(1.35rem, 5.6vw, 2rem);
  line-height: 1.2;
}

.home-game-copy p {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.72rem;
  line-height: 1.85;
}

.home-card-action {
  margin-top: 0.25rem;
}

.home-card-action-muted {
  color: var(--home-muted);
}

.home-game-card:not(.home-game-card-muted):hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--home-blue);
}

.about-home {
  border-top: 2px solid var(--home-ink);
  background: var(--home-blue-90);
}

.about-home-grid {
  padding-block: 5rem;
}

.about-home-copy {
  max-width: 52rem;
  display: grid;
  gap: 1.25rem;
}

.about-home-copy .home-eyebrow {
  color: var(--home-blue-20);
}

.about-home-copy h2 {
  margin: 0;
  font-size: clamp(2.1rem, 9vw, 4.8rem);
  line-height: 1.05;
}

.about-home-copy p:last-child {
  max-width: 45rem;
  margin: 0;
  color: #353549;
  font-size: 0.84rem;
  line-height: 1.9;
}


.home-footer {
  background: var(--home-ink);
  color: white;
}

.home-footer-inner {
  padding-block: 3rem 3.5rem;
  display: grid;
  gap: 2rem;
}

.home-brand-dark small {
  color: #aaa;
}

.home-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  color: #c5c5c3;
  font-size: 0.68rem;
}

.home-footer-inner > p {
  margin: 0;
  color: #8b8b86;
  font-size: 0.58rem;
}

.home-mobile-nav {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: var(--home-mobile-nav-height);
  padding:
    0
    max(0px, env(safe-area-inset-right))
    env(safe-area-inset-bottom)
    max(0px, env(safe-area-inset-left));
  border-top: 3px solid var(--home-ink);
  background: var(--home-ink);
}

.home-mobile-nav a {
  min-width: 0;
  min-height: 4.4rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.3rem;
  border-right: 2px solid #505050;
  color: #a8a8a4;
  font-size: 0.64rem;
}

.home-mobile-nav a:last-child {
  border-right: 0;
}

.home-mobile-nav a[aria-current="page"] {
  background: var(--home-blue);
  color: white;
  box-shadow: inset 0 -0.45rem 0 rgba(0,0,0,0.14);
}

.home-nav-icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.home-nav-cut {
  fill: var(--home-ink);
}

.home-mobile-nav a[aria-current="page"] .home-nav-cut {
  fill: var(--home-blue);
}

@media (min-width: 48rem) {
  body.home-page {
    padding-bottom: 0;
  }

  .home-header {
    position: sticky;
    z-index: 40;
    top: 0;
    display: block;
    border-bottom: 2px solid var(--home-ink);
    background: rgba(252,252,252,0.96);
  }

  .home-header-inner {
    display: flex;
  }

  .home-mobile-nav {
    display: none;
  }

  .home-hero {
    min-height: 40rem;
    padding-block: 4rem 5rem;
  }

  .home-hero-main {
    gap: 2.5rem;
  }

  .home-hero-brand > img {
    width: 4.25rem;
    height: 4.25rem;
  }

  .featured-home-inner {
    padding-block: 6rem;
  }

  .featured-game-card {
    grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
    min-height: 38rem;
  }

  .featured-game-art {
    min-height: 38rem;
    border-right: 2px solid white;
    border-bottom: 0;
  }

  .featured-game-copy {
    padding: 2.2rem;
  }

  .home-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .games-home {
    padding-block: 6rem;
  }

  .about-home-grid {
    padding-block: 6rem;
  }

  .home-footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .home-footer-inner > p {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .home-game-art {
    min-height: 23rem;
  }
}

@media (max-width: 26rem) {
  .home-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3rem);
  }

  .home-hero-note span {
    min-height: 2.8rem;
    font-size: 0.42rem;
  }

  .featured-game-art {
    min-height: 21rem;
  }

  .pixel-room-a,
  .pixel-room-c {
    width: 6.6rem;
  }

  .pixel-room-b {
    width: 5rem;
  }

  .home-mobile-nav a {
    font-size: 0.58rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* Compact shared mobile nav: keep inactive items visible on the dark bar. */
body.home-page .home-mobile-nav a {
  color: #d6d6d1;
}

body.home-page .home-mobile-nav a[aria-current="page"] {
  color: #ffffff;
}
