/* Arcade Buffalo site styles. Brand: Arcade Purple ground, Midnight panels, Joystick Cyan and Coin Pink accents,
   Press Start 2P for short uppercase labels, Space Grotesk for text, 8 px grid, square corners, hard shadows only. */

@font-face { font-family: "Press Start 2P"; font-weight: 400; font-display: block; src: url("/fonts/press-start-2p.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap; src: url("/fonts/space-grotesk-400.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("/fonts/space-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/fonts/space-grotesk-700.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --purple: #381F58;
  --midnight: #180C28;
  --cyan: #13CBCB;
  --pink: #EC40C8;
  --white: #FFFFFF;
  --cream: #E6C9A3;
  --ink-soft: rgba(255,255,255,.80);
  --ink-dim: rgba(255,255,255,.68);
  --line: rgba(255,255,255,.14);
  --font-arcade: "Press Start 2P", ui-monospace, "Courier New", monospace;
  --font-sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' shape-rendering='crispEdges'%3E%3Cg fill='%23fff'%3E%3Crect x='18' y='26' width='2' height='2'/%3E%3Crect x='146' y='12' width='2' height='2'/%3E%3Crect x='204' y='92' width='2' height='2'/%3E%3Crect x='70' y='150' width='2' height='2'/%3E%3Crect x='182' y='196' width='2' height='2'/%3E%3Crect x='112' y='84' width='2' height='2' opacity='.6'/%3E%3C/g%3E%3Cg fill='%2313CBCB'%3E%3Crect x='96' y='206' width='2' height='2'/%3E%3Crect x='30' y='108' width='2' height='2' opacity='.8'/%3E%3Crect x='226' y='160' width='2' height='2'/%3E%3C/g%3E%3C/svg%3E");
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--purple); color: var(--white);
  font-family: var(--font-sans); font-size: 16px; line-height: 24px;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
}
img, video { max-width: 100%; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--white); }
:focus-visible { outline: 4px solid var(--cyan); outline-offset: 2px; }
::selection { background: var(--pink); color: var(--midnight); }
[hidden] { display: none !important; }
/* visually hidden, still read by screen readers */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1184px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -64px; z-index: 200; background: var(--pink); color: var(--midnight); font-weight: 700; padding: 8px 16px; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- type */
.display, .title {
  font-family: var(--font-arcade); font-weight: 400; text-transform: uppercase; margin: 0; text-wrap: balance; color: var(--white);
  text-shadow: -1px -1px 0 var(--midnight), 1px -1px 0 var(--midnight), -1px 1px 0 var(--midnight), 1px 1px 0 var(--midnight), 4px 4px 0 var(--pink), 5px 5px 0 var(--midnight);
}
.display { font-size: 32px; line-height: 48px; }
.display .c { color: var(--cyan); }
.title { font-size: 24px; line-height: 32px; text-shadow: -1px -1px 0 var(--midnight), 1px -1px 0 var(--midnight), -1px 1px 0 var(--midnight), 1px 1px 0 var(--midnight), 3px 3px 0 var(--pink); }
@media (min-width: 720px) {
  .display { font-size: 40px; line-height: 56px; }
  .title { font-size: 32px; line-height: 48px; text-shadow: -1px -1px 0 var(--midnight), 1px -1px 0 var(--midnight), -1px 1px 0 var(--midnight), 1px 1px 0 var(--midnight), 4px 4px 0 var(--pink), 5px 5px 0 var(--midnight); }
}
@media (min-width: 1120px) { .display { font-size: 48px; line-height: 64px; } }
.lead { font-size: 20px; line-height: 30px; font-weight: 500; color: var(--ink-soft); margin: 0; max-width: 40em; }
.fine { font-size: 14px; line-height: 20px; color: var(--ink-dim); margin: 0; }
/* ---------- buttons (primary: Coin Pink with Midnight text and shadow; secondary: cyan outline with a pink shadow) */
.btn {
  font-family: var(--font-arcade); font-size: 16px; line-height: 24px; text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 56px; padding: 12px 24px;
  background: var(--pink); color: var(--midnight); border: 4px solid var(--midnight);
  box-shadow: 8px 8px 0 var(--midnight); cursor: pointer; white-space: nowrap;
  transition: transform .08s steps(2), box-shadow .08s steps(2);
}
.btn:hover { color: var(--midnight); transform: translate(4px,4px); box-shadow: 4px 4px 0 var(--midnight); }
.btn:active { transform: translate(8px,8px); box-shadow: 0 0 0 var(--midnight); }
.btn svg { width: 24px; height: 24px; flex: none; shape-rendering: crispEdges; }
.btn-alt { background: var(--midnight); color: var(--cyan); border-color: var(--cyan); box-shadow: 8px 8px 0 var(--pink); }
.btn-alt:hover { color: var(--cyan); box-shadow: 4px 4px 0 var(--pink); }
.btn-alt:active { box-shadow: 0 0 0 var(--pink); }
.btn-sm { min-height: 48px; padding: 8px 16px; box-shadow: 4px 4px 0 var(--midnight); }
.btn-sm:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--midnight); }
.btn-sm svg { width: 20px; height: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 8px; }
@media (max-width: 479px) { .cta-row .btn, .beta-panel .btn { flex: 1 1 100%; width: 100%; white-space: normal; text-align: center; padding-inline: 16px; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chip {
  display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 4px;
  font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); border: 2px solid var(--line); background: transparent; white-space: nowrap;
}
.chip-soon { background: var(--pink); border-color: var(--pink); color: var(--midnight); }
.chip-feat { background: var(--cyan); border-color: var(--cyan); color: var(--midnight); }
.chip-dev { border-color: var(--cream); color: var(--cream); }

.link { font: inherit; color: var(--cyan); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.link:hover { color: var(--white); }

/* ---------- header: the original site's header, unchanged (logo left, BE A PLAYTESTER right) */
.site-head { background: var(--purple); border-bottom: 4px solid var(--midnight); position: relative; z-index: 5; }
.head-row { width: 100%; max-width: 1184px; margin: 0 auto; padding-inline: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
@media (min-width: 720px) { .head-row { padding-inline: 32px; } }
.brand { display: inline-block; }
.brand img { width: 272px; height: auto; aspect-ratio: 2357 / 1240; }
.head-btn {
  font-family: var(--font-arcade); font-size: 16px; line-height: 24px; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 16px; height: 56px; padding: 0 24px;
  background: var(--cyan); color: var(--midnight); border: 4px solid var(--midnight);
  box-shadow: 8px 8px 0 var(--pink); cursor: pointer; white-space: nowrap;
  transition: transform .08s steps(2), box-shadow .08s steps(2);
}
.head-btn:hover { transform: translate(4px,4px); box-shadow: 4px 4px 0 var(--pink); }
.head-btn:active { transform: translate(8px,8px); box-shadow: 0 0 0 var(--pink); }
.head-btn svg { width: 24px; height: 24px; flex: none; shape-rendering: crispEdges; }
/* the playtester button keeps the original phone treatment (icon only), from 767 px down so the menu button fits */
@media (max-width: 767px) {
  .head-btn { width: 56px; padding: 0; justify-content: center; }
  .head-btn .txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.head-end { display: flex; align-items: center; gap: 16px; flex: none; }
.head-nav { display: flex; align-items: center; gap: 24px; }
.head-nav a { color: var(--white); text-decoration: none; font-weight: 700; font-size: 16px; line-height: 24px; padding: 12px 0; border-bottom: 4px solid transparent; }
.head-nav a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.menu-btn { display: none; width: 48px; height: 48px; place-items: center; padding: 0; background: var(--midnight); color: var(--white); border: 4px solid var(--midnight); cursor: pointer; }
.menu-btn svg { width: 24px; height: 20px; shape-rendering: crispEdges; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { color: var(--midnight); background: var(--cyan); }
/* wide screens: text links beside the button; narrower: a menu button and a dropdown panel */
@media (min-width: 1000px) { .head-nav a { margin-right: 8px; } .head-end { gap: 24px; } }
@media (max-width: 999px) {
  .head-nav { display: none; } .menu-btn { display: grid; }
  /* the menu button sits at the far left, before the logo; Be a playtester stays at the right */
  .head-row { justify-content: flex-start; } .head-end { display: contents; } .head-end > .head-btn { margin-left: auto; }
}
/* under 440 px the logo keeps its full width: the playtester button moves to the top of the menu panel */
.menu-cta { display: none; }
@media (max-width: 439px) {
  .head-end > .head-btn { display: none; }
  .menu-list > li.menu-cta { display: block; border-bottom: 0; padding: 16px 0 24px; }
  .menu-cta .head-btn { width: 100%; justify-content: center; }
  .menu-cta .head-btn .txt { position: static; width: auto; height: auto; clip: auto; }
}
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--midnight); border-bottom: 4px solid var(--pink); box-shadow: 0 8px 0 rgba(24,12,40,.5); max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow-y: auto; }
.menu-panel[hidden] { display: none; }
.menu-list { list-style: none; margin: 0 auto; padding: 8px 16px 16px; max-width: 1184px; display: grid; }
.menu-list > li { border-bottom: 2px solid var(--line); }
.menu-list > li:last-child { border-bottom: 0; }
.menu-list a { display: flex; align-items: center; min-height: 48px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 18px; }
.menu-list a:hover { color: var(--cyan); }
.menu-games { list-style: none; margin: 0 0 8px; padding: 0 0 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.menu-games a { font-weight: 500; font-size: 16px; color: var(--ink-soft); min-height: 44px; }
@media (min-width: 720px) { .menu-list { padding-inline: 32px; } .menu-games { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: no-preference) { .menu-panel:not([hidden]) { animation: drop .12s steps(3); } }
@keyframes drop { from { transform: translateY(-8px); opacity: 0; } }

/* ---------- home: the original greeting and pixel scene, unchanged. The block fills the first screen the way the
   one-page site did (viewport minus the header and the original 44 px footer line, 72 px where that line wrapped). */
.home-top {
  --head-h: calc(min(272px, 100vw - 104px) * 1240 / 2357 + 4px); --foot-h: 44px;   /* 104 = gutters + gap + 56 px button */
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: calc(100vh - var(--head-h) - var(--foot-h)); min-height: calc(100dvh - var(--head-h) - var(--foot-h));
}
@media (max-width: 483px) { .home-top { --foot-h: 72px; } }
@media (max-width: 439px) { .home-top { --head-h: calc(min(272px, 100vw - 96px) * 1240 / 2357 + 4px); } }   /* 48 px menu button */
.sky { position: absolute; left: 0; top: 0; pointer-events: none; image-rendering: pixelated; image-rendering: crisp-edges; z-index: 0; }
.wrap-top { width: 100%; max-width: 1184px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap-top { padding-inline: 32px; } }
.greet, .scene { position: relative; z-index: 1; }
.greet { display: grid; justify-items: center; text-align: center; gap: 24px; padding-block: 64px 32px; }
.greet .eyebrow { font-family: var(--font-arcade); font-size: 16px; line-height: 24px; text-transform: uppercase; color: var(--cyan); margin: 0; position: relative; }
.greet .eyebrow svg { position: absolute; right: 100%; top: 4px; margin-right: 16px; width: 16px; height: 16px; shape-rendering: crispEdges; }
.greet h1 {
  font-family: var(--font-arcade); font-weight: 400; text-transform: uppercase; margin: 0; text-wrap: balance;
  font-size: 32px; line-height: 48px; color: var(--white);
  text-shadow: -1px -1px 0 var(--midnight), 1px -1px 0 var(--midnight), -1px 1px 0 var(--midnight), 1px 1px 0 var(--midnight), 4px 4px 0 var(--pink), 5px 5px 0 var(--midnight);
}
.greet h1 .c { color: var(--cyan); }
@media (min-width: 720px) { .greet h1 { font-size: 48px; line-height: 64px; } }
@media (min-width: 1040px) { .greet h1 { font-size: 64px; line-height: 88px; } }
.greet .lead { font-size: 20px; line-height: 32px; font-weight: 500; max-width: 44ch; margin: 0; color: var(--ink-soft); text-wrap: balance; }
.scene { margin-top: auto; padding-top: 24px; overflow: hidden; line-height: 0; }
@media (min-width: 1100px) { .greet { padding-block: 48px 16px; gap: 16px; } .scene { padding-top: 8px; } }
@media (min-width: 1100px) and (max-height: 820px) { .greet { padding-block: 24px 8px; } .greet h1 { font-size: 48px; line-height: 64px; } .greet .lead { max-width: 70ch; } }
.scene canvas { display: block; position: relative; left: 50%; transform: translateX(-50%); image-rendering: pixelated; image-rendering: crisp-edges; }

/* ---------- home: featured game, the first item of the games grid: a compact, centered two-column card
   (media about 55% on the left, text on the right) that stacks with the media on top on phones */
.game-grid > li.feature-item { grid-column: 1 / -1; justify-content: center; }
.feature-card { display: grid; width: 100%; max-width: 960px; background: var(--midnight); border: 4px solid var(--midnight); box-shadow: 8px 8px 0 var(--pink); min-width: 0; }
.feature-media { margin: 0; position: relative; background: var(--midnight); aspect-ratio: 16 / 9; overflow: hidden; min-width: 0; }
.feature-media img, .feature-media video { width: 100%; height: 100%; object-fit: cover; }
.feature-media.store-art { aspect-ratio: 1024 / 500; }
.feature-media.is-video.portrait { aspect-ratio: auto; height: 400px; display: flex; justify-content: center; background: var(--midnight) var(--stars); }
.feature-media.portrait video { position: relative; width: auto; height: 100%; aspect-ratio: var(--ar); object-fit: contain; }
.feature-body { padding: 24px; display: grid; gap: 12px; justify-items: center; align-content: center; text-align: center; }
.feature-body .chips { justify-content: center; }
.feature-title { margin: 0; font-family: var(--font-arcade); font-weight: 400; font-size: 24px; line-height: 32px; text-transform: uppercase; }
.feature-title a { color: var(--white); text-decoration: none; }
.feature-title a:hover { color: var(--cyan); }
.feature-pitch { margin: 0; color: var(--ink-soft); max-width: 32em; text-wrap: balance; }
.feature-meta { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-dim); }
.more-link { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-weight: 700; color: var(--cyan); text-decoration: none; }
.more-link svg { width: 12px; height: 12px; shape-rendering: crispEdges; }
.more-link:hover { color: var(--white); }
@media (min-width: 720px) { .feature-card { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); } .feature-media { align-self: center; } }
@media (min-width: 1120px) { .feature-body { padding: 32px; } }

/* ---------- sections: headings and intros centered, like the greeting */
.section { padding-block: 64px; }
.section + .section { padding-top: 0; }
.section-head { display: grid; gap: 16px; justify-items: center; text-align: center; margin: 0 auto 48px; max-width: 48em; }
.game-hero + .section { padding-top: 0; }   /* the hero's own bottom padding is the gap, as between sections */
.section-lead { margin: 0; font-size: 18px; line-height: 28px; color: var(--ink-soft); text-wrap: balance; }
.section > .wrap > .title { text-align: center; }
.games { background: var(--purple); border-top: 4px solid var(--midnight); }
@media (min-width: 720px) { .section { padding-block: 96px; } }

/* ---------- game cards */
.game-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; } }
@media (min-width: 1120px) { .game-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 720px) and (max-width: 1119px) { .game-grid.three > li:nth-child(3) { display: none; } }
/* home: every game, three across on wide screens (store key art stays near its own size); a last card on its own is
   centered. With the featured card first (.with-feature), the card count is one less than the item count. */
@media (min-width: 720px) and (max-width: 1119px) {
  .game-grid.all:not(.with-feature) > li:last-child:nth-child(odd),
  .game-grid.all.with-feature > li:last-child:nth-child(even):not(.feature-item) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 16px); }
}
@media (min-width: 1120px) {
  .game-grid.all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-grid.all:not(.with-feature) > li:last-child:nth-child(3n+1),
  .game-grid.all.with-feature > li:last-child:nth-child(3n+2):not(.feature-item) { grid-column: 2; }
}
.game-grid > li { display: flex; min-width: 0; }
.section > .wrap > .title + .game-grid { margin-top: 32px; }   /* same heading-to-content gap as the gallery and trailer */
.game-card {
  position: relative; display: flex; flex-direction: column; width: 100%; background: var(--midnight); border: 4px solid var(--midnight);
  transition: transform .08s steps(2), box-shadow .08s steps(2);
}
.game-card:hover, .game-card:focus-within { transform: translate(-4px,-4px); box-shadow: 8px 8px 0 var(--pink); }
.game-card:focus-within { outline: 4px solid var(--cyan); outline-offset: 2px; }
.game-card :focus-visible { outline: none; }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--midnight); }  /* matches the 1920x1080 key art, so nothing is cropped */
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; background: var(--midnight); }
.card-video.portrait { object-fit: contain; background: transparent; }
.game-card.playing .card-media img { opacity: .3; }
.game-card.playing .card-video { opacity: 1; }
.card-body { display: grid; gap: 12px; padding: 24px; align-content: start; justify-items: center; text-align: center; flex: 1; }
.card-body .chips { justify-content: center; }
.card-title { margin: 8px 0 0; font-family: var(--font-arcade); font-weight: 400; font-size: 16px; line-height: 24px; text-transform: uppercase; }
.card-title a { color: var(--white); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.game-card:hover .card-title a { color: var(--cyan); }
.card-pitch { margin: 0; color: var(--ink-soft); }
.card-platforms { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-dim); }
.game-card.has-video .card-media::after {
  content: "Preview"; position: absolute; left: 8px; bottom: 8px; z-index: 0; padding: 2px 8px; border-radius: 4px;
  font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--midnight); color: var(--white); transition: opacity .2s;
}
.game-card.has-video.playing .card-media::after { opacity: 0; }

/* ---------- beta band (centered) */
.beta-panel {
  background: var(--midnight); box-shadow: 8px 8px 0 var(--pink); padding: 40px 16px;
  display: grid; gap: 32px; justify-items: center; text-align: center;
}
.beta-copy { display: grid; gap: 16px; justify-items: center; }
.beta-copy p { margin: 0; color: var(--ink-soft); font-size: 18px; line-height: 28px; max-width: 36em; text-wrap: balance; }
@media (min-width: 480px) { .beta-panel { padding: 48px 24px; } }
@media (min-width: 720px) { .beta-panel { padding: 64px 48px; } }

/* ---------- about (centered copy over three equal fact cards) */
.section.about { padding-top: 64px; }
@media (min-width: 720px) { .section.about { padding-top: 96px; } }
.about-wrap { display: grid; gap: 48px; }
.about-copy { display: grid; gap: 24px; justify-items: center; text-align: center; max-width: 48em; margin: 0 auto; }
.about-copy p { text-wrap: balance; }
.about-copy p:not(.lead) { margin: 0; color: var(--ink-soft); max-width: 40em; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; align-items: start; }
.fact { background: var(--midnight); box-shadow: 8px 8px 0 var(--pink); padding: 24px; display: grid; gap: 8px; align-content: start; text-align: center; }
.fact h3 { text-wrap: balance; }
.fact h3 { margin: 0; font-family: var(--font-arcade); font-weight: 400; font-size: 16px; line-height: 24px; text-transform: uppercase; color: var(--cyan); }
.fact p { margin: 0; color: var(--ink-soft); }
.fact-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--ink-soft); }
.fact-points li { text-wrap: pretty; }
@media (min-width: 840px) { .facts { grid-template-columns: repeat(auto-fit, minmax(0, 352px)); justify-content: center; gap: 32px; align-items: stretch; } }   /* cards stay centred however many there are */

/* ---------- press link (home, above the footer) */
.press-band { padding-block: 0 64px; text-align: center; }
.press-band p { margin: 0 auto; max-width: 40em; color: var(--ink-soft); text-wrap: balance; }
.press-band .more-link { display: inline-flex; min-height: 24px; }
@media (min-width: 720px) { .press-band { padding-bottom: 96px; } }

/* ---------- game page: a centered title block above the media, like the home greeting */
.crumbs { padding-top: 16px; }
.crumbs a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 700; color: var(--cyan); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs svg { width: 12px; height: 12px; shape-rendering: crispEdges; }
.game-hero-stack { display: grid; gap: 40px; justify-items: center; text-align: center; padding-block: 8px 64px; }
@media (min-width: 720px) { .game-hero-stack { gap: 48px; padding-block: 16px 96px; } }
.game-head { display: grid; gap: 16px; justify-items: center; min-width: 0; max-width: 100%; }
.game-id { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.app-icon { width: 72px; height: 72px; border-radius: 16px; border: 4px solid var(--midnight); box-sizing: content-box; }
.game-title { overflow-wrap: anywhere; }
@media (min-width: 1120px) { .game-title { font-size: 56px; line-height: 80px; } }
.game-tagline { margin: 0; font-family: var(--font-arcade); font-size: 16px; line-height: 24px; text-transform: uppercase; color: var(--cyan); text-wrap: balance; }
.game-intro { display: grid; gap: 24px; justify-items: center; max-width: 44em; }
.game-intro .lead { text-wrap: balance; }
.game-intro .cta-row { justify-content: center; }
.platform-line { margin: 0; font-weight: 700; color: var(--white); }
.platform-line span { display: block; font-weight: 500; color: var(--cream); }
.game-media { position: relative; margin: 0; background: var(--midnight); border: 4px solid var(--midnight); box-shadow: 8px 8px 0 var(--pink); width: 100%; max-width: 895px; }
.game-media img, .game-media video { width: 100%; height: auto; aspect-ratio: var(--ar); object-fit: cover; }
.game-media.portrait { width: auto; max-width: 100%; }
/* store key art (no captured media yet) stays small: never wider than 512 px, half its own 1024 px */
.game-media.store-art { max-width: 512px; }
.game-media.portrait video { height: min(70vh, 640px); width: auto; max-width: 100%; }
@media (max-width: 959px) { .game-media.portrait video { height: min(56vh, 480px); } }

/* under 1120 px the gallery is a swipeable strip; wider screens get a grid sized to the number of shots */
.gallery { list-style: none; margin: 32px calc(-1 * var(--gutter)) 0; padding: 8px var(--gutter) 16px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--pink) transparent; justify-content: safe center; }
.gallery > li { flex: 0 0 auto; width: 44%; max-width: 240px; scroll-snap-align: start; }
.gallery.landscape > li { width: 82%; max-width: 480px; }
@media (min-width: 1120px) {
  /* wrapping flex rather than a grid, so an incomplete last row is centred too */
  .gallery { flex-wrap: wrap; justify-content: center; gap: 24px; margin-inline: 0; padding: 0; overflow: visible; }
  .gallery > li, .gallery.landscape > li { width: min(var(--colmax, 100%), (100% - (var(--cols, 4) - 1) * 24px) / var(--cols, 4)); max-width: none; }
}
.gallery + .gallery { margin-top: 8px; }
@media (min-width: 1120px) { .gallery + .gallery { margin-top: 24px; } }
.shot { position: relative; display: block; width: 100%; padding: 0; border: 4px solid var(--midnight); background: var(--midnight); cursor: zoom-in; transition: transform .08s steps(2), box-shadow .08s steps(2); }
.shot img { width: 100%; height: auto; }
.shot:hover, .shot:focus-visible { transform: translate(-4px,-4px); box-shadow: 8px 8px 0 var(--pink); }

.feat-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .feat-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: start; } }
.features { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.features li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 16px; font-size: 18px; line-height: 28px; color: var(--ink-soft); }
.features svg { width: 10px; height: 10px; margin-top: 9px; color: var(--pink); shape-rendering: crispEdges; }
.note { margin-top: 24px; max-width: 44em; }
.panel { background: var(--midnight); box-shadow: 8px 8px 0 var(--pink); padding: 24px; display: grid; gap: 16px; }
@media (min-width: 720px) { .panel { padding: 32px; } }
.panel-h { margin: 0; font-family: var(--font-arcade); font-weight: 400; font-size: 16px; line-height: 24px; text-transform: uppercase; color: var(--cyan); }
.plat-list { list-style: none; margin: 0; padding: 0; display: grid; }
.plat-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 12px; border-bottom: 2px solid var(--line); }
.plat-list li:last-child { border-bottom: 0; }
.p-name { font-weight: 700; }
.store-links { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; }

.trailer-frame { margin: 32px auto 0; position: relative; background: var(--midnight); border: 4px solid var(--midnight); box-shadow: 8px 8px 0 var(--pink); aspect-ratio: 16 / 9; overflow: hidden; max-width: 960px; }
.trailer-frame.portrait { aspect-ratio: auto; max-width: 400px; }
.trailer-frame video { width: 100%; height: 100%; object-fit: contain; background: var(--midnight); }
.trailer-frame.portrait video { height: auto; aspect-ratio: var(--ar); }
.trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-note { margin-top: 24px; text-align: center; }
.yt { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: var(--midnight); cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.yt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  display: inline-flex; align-items: center; gap: 16px; padding: 16px 24px;
  font-family: var(--font-arcade); font-size: 16px; line-height: 24px; text-transform: uppercase; white-space: nowrap;
  background: var(--pink); color: var(--midnight); border: 4px solid var(--midnight); box-shadow: 8px 8px 0 var(--midnight);
}
.yt-play svg { width: 24px; height: 24px; shape-rendering: crispEdges; }
.yt:hover .yt-play { transform: translate(calc(-50% + 4px), calc(-50% + 4px)); box-shadow: 4px 4px 0 var(--midnight); }
@media (max-width: 479px) { .yt-play { font-size: 8px; line-height: 16px; padding: 8px 16px; gap: 8px; } .yt-play svg { width: 16px; height: 16px; } }

/* ---------- lightbox */
.lightbox { padding: 0; border: 0; background: var(--midnight); color: var(--white); width: 100vw; height: 100vh; height: 100dvh; max-width: 100vw; max-height: 100vh; max-height: 100dvh; margin: 0; overflow: hidden; }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox::backdrop { background: var(--midnight); }
.lb-stage { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; padding: 72px 16px 16px; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; margin: auto; border: 4px solid var(--midnight); box-shadow: 8px 8px 0 var(--pink); object-fit: contain; }
.lb-bar { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 16px; align-items: center; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 960px; width: 100%; margin: 0 auto; }
.lb-cap { margin: 0; padding: 8px 12px; text-align: center; color: var(--white); background: var(--midnight); font-size: 14px; line-height: 20px; }
.lb-count { color: var(--cyan); font-weight: 700; white-space: nowrap; }
.lb-btn, .motion-btn { width: 56px; height: 56px; display: grid; place-items: center; background: var(--midnight); color: var(--white); border: 4px solid var(--white); cursor: pointer; }
.lb-btn:hover, .motion-btn:hover { color: var(--midnight); background: var(--cyan); border-color: var(--cyan); }
.lb-btn svg { width: 18px; height: 18px; shape-rendering: crispEdges; }
.lb-close svg { width: 16px; height: 16px; }
.lb-close { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
/* ---------- pause/play for the autoplaying loops and the home scene (the lightbox button look, 48 px) */
.motion-btn { position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 48px; height: 48px; padding: 0; }
.motion-btn span { display: grid; }
.motion-btn svg { width: 16px; height: 16px; shape-rendering: crispEdges; }
.motion-btn .i-play, .motion-btn.is-paused .i-pause { display: none; }
.motion-btn.is-paused .i-play { display: grid; }
.motion-btn.under { position: static; margin-top: -16px; }   /* game page: in the hero stack, centred under the loop */
.motion-btn.scene-btn { top: 16px; bottom: auto; right: max(var(--gutter), calc((100% - 1184px) / 2 + var(--gutter))); }   /* lined up with the header's right edge */
/* very short windows (e.g. 400% zoom): the viewer scrolls instead of shrinking the screenshot to a sliver */
@media (max-height: 480px) { .lightbox[open] { display: block; overflow: auto; } .lb-stage img { max-height: none; } }

/* ---------- privacy page */
.doc { padding-block: 48px 64px; }
.doc-wrap { max-width: 824px; }
.doc-card { background: var(--midnight); box-shadow: 8px 8px 0 var(--pink); padding: 32px 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 720px) { .doc-card { padding: 48px; } }
.doc-card h1 { font-family: var(--font-arcade); font-weight: 400; font-size: 24px; line-height: 32px; text-transform: uppercase; color: var(--cyan); margin: 0; }
.doc-card .updated { font-size: 14px; line-height: 20px; color: var(--ink-soft); margin: 0 0 8px; }
.doc-card h2 { font-size: 20px; line-height: 28px; font-weight: 700; margin: 24px 0 0; color: var(--white); }
.doc-card p, .doc-card li { color: var(--ink-soft); margin: 0; overflow-wrap: anywhere; }
.doc-card ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.doc-card strong { color: var(--white); }
.doc-card a { overflow-wrap: anywhere; }
/* open-source notices: one h3 per component or game, licence texts in collapsible preformatted blocks */
.doc-card h3 { font-size: 16px; line-height: 24px; font-weight: 700; margin: 16px 0 0; color: var(--white); }
.doc-card code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; overflow-wrap: anywhere; }
.doc-card details.license { border: 2px solid var(--line); }
.doc-card details.license summary { cursor: pointer; padding: 12px 16px; min-height: 48px; box-sizing: border-box; font-weight: 700; color: var(--white); }
.doc-card details.license summary:hover { color: var(--cyan); }
.doc-card .license-text { margin: 0; padding: 0 16px 16px; max-height: 480px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; line-height: 18px; color: var(--ink-soft); }
.optout { display: grid; gap: 16px; justify-items: start; margin-top: 8px; padding: 16px; border: 2px solid var(--line); }
.optout p { color: var(--white); }
.optout .btn { white-space: normal; max-width: 100%; text-align: center; }

/* ---------- footer: one slim row (copyright left, links right; centered and stacked on phones) */
.site-foot { background: var(--midnight); border-top: 4px solid var(--midnight); color: var(--ink-soft); font-size: 14px; line-height: 20px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; padding-block: 24px 8px; text-align: center; }
.foot-row p { margin: 0; }
.foot-links, .foot-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
.foot-links a, .foot-social a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-soft); }
.foot-links a:hover, .foot-social a:hover { color: var(--cyan); }
.foot-links li + li::before { content: "·"; margin-right: 20px; color: var(--ink-dim); }
.foot-links li { display: inline-flex; align-items: center; }
/* narrow screens: the links wrap, so no dots (a dot would start the second line); a wider gap keeps them apart */
@media (max-width: 719px) { .foot-links { gap: 0 24px; } .foot-links li + li::before { content: none; } }
@media (min-width: 720px) { .foot-row { justify-content: space-between; text-align: left; } }
.foot-legal { margin: 0 auto; padding-block: 0 calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 12px; line-height: 16px; color: var(--ink-dim); text-align: center; }
@media (min-width: 720px) { .foot-legal { text-align: left; } }

/* ---------- playtester and privacy dialogs (unchanged behavior from the original site) */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(24,12,40,.86); display: grid; place-items: center; padding: 16px; padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
.signup { position: relative; width: 100%; max-width: 480px; background: var(--midnight); border: 4px solid var(--white); box-shadow: 8px 8px 0 var(--pink); padding: 32px 24px 24px; display: grid; gap: 16px; text-align: left; animation: pop .16s steps(3); }
@keyframes pop { from { transform: translateY(16px); opacity: 0; } }
.x { position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; color: var(--white); cursor: pointer; }
.x svg { width: 16px; height: 16px; shape-rendering: crispEdges; }
.x:hover { color: var(--pink); }
body.locked { overflow: hidden; }
.signup-head { display: grid; gap: 8px; padding-right: 40px; }
.signup h2 { font-family: var(--font-arcade); font-weight: 400; font-size: 16px; line-height: 24px; text-wrap: balance; text-transform: uppercase; color: var(--cyan); margin: 0; }
.signup p { margin: 0; color: var(--ink-soft); }
.signup .fine { color: var(--ink-soft); }
.fields { display: grid; grid-template-columns: 1fr; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--white); }
.field input {
  font: 500 16px/24px var(--font-sans); color: var(--midnight); background: var(--white);
  border: 4px solid var(--white); border-radius: 4px; padding: 8px 12px; width: 100%; min-width: 0; height: 48px;
  -webkit-appearance: none; appearance: none;
}
.field input[aria-invalid="true"] { border-color: var(--pink); }
.field select {
  font: 500 16px/24px var(--font-sans); color: var(--midnight); background-color: var(--white); width: 100%; min-width: 0; height: 48px;
  border: 4px solid var(--white); border-radius: 4px; padding: 8px 36px 8px 12px; -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #180C28 50%), linear-gradient(-45deg, transparent 50%, #180C28 50%);
  background-position: calc(100% - 20px) 18px, calc(100% - 14px) 18px; background-size: 6px 6px; background-repeat: no-repeat;
}
.go {
  width: 100%; margin-top: 8px;
  font-family: var(--font-arcade); font-size: 16px; line-height: 24px; text-transform: uppercase;
  min-height: 48px; padding: 8px 24px; background: var(--cyan); color: var(--midnight);
  border: 4px solid var(--midnight); box-shadow: 4px 4px 0 var(--pink); cursor: pointer;
  transition: transform .08s steps(2), box-shadow .08s steps(2);
}
.go:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--pink); }
.go:disabled { opacity: .6; cursor: progress; transform: none; }
.privacy { max-width: 640px; max-height: calc(100vh - 32px); overflow-y: auto; gap: 8px; }
.privacy > p + h3 { margin-top: 16px; }
.privacy h3 { font-size: 16px; line-height: 24px; font-weight: 700; margin: 8px 0 0; color: var(--white); }
.privacy .updated { font-size: 14px; line-height: 20px; }
.privacy form { display: grid; gap: 16px; border-top: 4px solid var(--purple); padding-top: 16px; margin-top: 8px; }
.ts { min-height: 65px; }
.ts:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { font-weight: 700; color: var(--white); }
.msg.err { color: var(--pink); }
.done { display: grid; gap: 8px; }
.done:focus { outline: none; }   /* takes focus after a sign-up so it is announced; it isn't a control */
.done strong { font-family: var(--font-arcade); font-weight: 400; font-size: 16px; line-height: 24px; text-transform: uppercase; color: var(--pink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .signup { animation: none; }
  .btn, .go, .game-card, .shot, .card-video { transition: none; }
}
.game-intro .cta-row { column-gap: 16px; }
@media (min-width: 480px) { .game-intro .btn { padding-inline: 16px; } }

/* ---------- 404 page: fills the window, so the footer sits at the bottom */
.page-404 { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.page-404 > main { flex: 1; display: grid; align-content: center; }
.notfound-wrap { display: grid; gap: 40px; justify-items: center; text-align: center; }
.notfound .cta-row { justify-content: center; }

/* ---------- press kit */
.press-top { padding-top: 16px; }
.press-intro { display: grid; gap: 24px; justify-items: center; text-align: center; margin-bottom: 48px; }
.press-intro .lead { max-width: 36em; text-wrap: balance; }
.press-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .press-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.fact-sheet { margin: 0; display: grid; }
.fact-sheet > div { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 16px; padding-block: 12px; border-bottom: 2px solid var(--line); }
.fact-sheet > div:last-child { border-bottom: 0; }
.fact-sheet dt { font-weight: 700; }
.fact-sheet dd { margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.press-logo { width: 240px; height: auto; }
.press-dl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.press-dl .fine { display: inline; }
.press-shots { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.press-shots a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 12px; border: 2px solid var(--line); text-decoration: none; font-weight: 700; }
.press-shots a:hover { border-color: var(--cyan); }
.press-games { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 32px; }
.press-game { background: var(--midnight); box-shadow: 8px 8px 0 var(--pink); padding: 24px; display: grid; gap: 24px; align-items: start; }
.press-art { width: 100%; max-width: 320px; height: auto; }
.press-copy { display: grid; gap: 12px; }
.press-copy p { margin: 0; color: var(--ink-soft); max-width: 48em; }
.press-copy strong { color: var(--white); }
.press-copy .card-title { margin: 0; }
@media (min-width: 720px) { .press-game { grid-template-columns: 320px minmax(0, 1fr); padding: 32px; } }
.panel > p { margin: 0; color: var(--ink-soft); }
.press-status { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.press-status .fine { display: inline; }
.press-h { margin: 8px 0 0; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--white); }
.press-rules { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-soft); }
