@font-face {
  font-family: 'Jersey 15';
  src: url('fonts/jersey-15-latin-400-normal.244065acc0429b77.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Oxanium';
  src: url('fonts/oxanium-latin-wght-normal.3aa555c528430aab.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-latin-wght-normal.a30ddcd349703aff.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #f4f1e9;
  --bg-deep: #ebe7de;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #fbf9f3;
  --surface-soft: rgba(28, 27, 48, 0.06);
  --text: #14181d;
  --muted: #5f6370;
  --line: rgba(28, 27, 48, 0.15);
  --line-strong: rgba(28, 27, 48, 0.27);
  --signal: #62698a;
  --signal-bright: #7c82a9;
  --magenta: #7b6db2;
  --amber: #a66043;
  --accent: #7f86aa;
  --glow: rgba(99, 91, 170, 0.13);
  --shadow: 0 20px 70px rgba(20, 28, 32, 0.12);
  --font-display: 'Jersey 15', 'Oxanium', 'Arial Black', ui-sans-serif,
    sans-serif;
  --font-headline: 'Jersey 15', 'Oxanium', 'Arial Black', ui-sans-serif,
    sans-serif;
  --font-body: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-technical: 'Oxanium', ui-monospace, monospace;
  color-scheme: light;
  font-family: var(--font-body);
  font-synthesis: none;
}

.dark {
  --bg: #08090e;
  --bg-deep: #05070b;
  --surface: rgba(17, 20, 31, 0.8);
  --surface-solid: #0d1018;
  --surface-soft: rgba(210, 208, 255, 0.065);
  --text: #f1eee7;
  --muted: #a7abba;
  --line: rgba(190, 193, 224, 0.15);
  --line-strong: rgba(190, 193, 224, 0.3);
  --signal: #969bc2;
  --signal-bright: #b0b5de;
  --magenta: #a99add;
  --amber: #e0a15f;
  --glow: rgba(118, 105, 205, 0.15);
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.44);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 8%, var(--glow), transparent 31rem),
    radial-gradient(circle at 12% 42%, color-mix(in srgb, var(--amber) 5%, transparent), transparent 32rem),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.38;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.018) 0 1px,
      transparent 1px 4px
    ),
    linear-gradient(
      color-mix(in srgb, var(--line) 42%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--line) 42%, transparent) 1px,
      transparent 1px
    );
  background-size: auto, 88px 88px, 88px 88px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
  content: '';
}

button,
input,
textarea {
  font: inherit;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-headline);
  font-synthesis: none;
  font-weight: 400;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

button,
summary,
.brand strong,
.desktop-nav,
.mobile-nav,
.signal-band,
.eyebrow,
.classification,
.game-era,
.console-pills,
.console-route-link,
.planned-badge,
.explore-link {
  font-family: var(--font-technical);
}

img {
  display: block;
  max-width: 100%;
}

figure,
p,
dl,
dd {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--signal-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--bg-deep);
  background: var(--signal-bright);
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

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

.site-header {
  position: relative;
  z-index: 30;
  display: grid;
  min-height: 94px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 13px;
}

.brand > span,
.site-footer > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--signal);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--signal) 12%, transparent);
  font-family: var(--font-technical);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.brand strong {
  display: grid;
  font-size: 0.82rem;
  letter-spacing: 0.17em;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.desktop-nav {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desktop-nav a {
  position: relative;
  padding-block: 12px;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transition: transform 180ms ease;
  content: '';
}

.desktop-nav a:hover,
.desktop-nav a[aria-current='page'] {
  color: var(--text);
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.header-actions {
  position: relative;
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 2px;
}

.header-actions > button,
.mobile-nav > summary {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 1.08rem;
  cursor: pointer;
}

.header-actions > button:hover,
.mobile-nav > summary:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.header-actions i[data-unread-dot] {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  background: #ff4a7a;
  border: 1px solid var(--bg);
  border-radius: 50%;
}

.theme-sun {
  display: none;
}

.dark .theme-sun {
  display: inline;
}

.dark .theme-moon {
  display: none;
}

.mobile-nav {
  display: none;
}

.signal-band {
  display: grid;
  min-height: 48px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.signal-band p {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.16em;
}

.signal-band p span,
.signal-band p strong {
  color: var(--text);
}

.signal-band p span {
  margin-right: 0.65rem;
  color: var(--amber);
}

.signal-band > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.signal-band > div::before,
.signal-band > div::after {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--line-strong));
  content: '';
}

.signal-band > div::after {
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.signal-band i {
  width: 3px;
  height: 3px;
  background: var(--amber);
  border-radius: 50%;
  opacity: 0.45;
}

.signal-band i:nth-child(3) {
  width: 5px;
  height: 5px;
  opacity: 0.9;
  box-shadow: 0 0 10px color-mix(in srgb, var(--amber) 55%, transparent);
}

.observatory-hero {
  position: relative;
  display: grid;
  min-height: 530px;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.observatory-hero::before {
  position: absolute;
  z-index: -1;
  top: 11%;
  right: 2%;
  width: min(42vw, 610px);
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  border-radius: 50%;
  filter: blur(18px);
  content: '';
}

.eyebrow {
  color: var(--signal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-copy h1,
.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-headline);
  font-size: clamp(3.25rem, 5.8vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-copy .eyebrow + h1,
.hero > .eyebrow + h1 {
  margin-top: 0.65rem;
}

.hero-copy > p:last-of-type,
.hero > p:last-of-type {
  max-width: 58ch;
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.7;
}

.collection-stats {
  display: flex;
  max-width: 620px;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.collection-stats > div {
  display: grid;
  min-width: 130px;
  flex: 1;
  gap: 0.35rem;
  padding: 1.3rem 20px 1.3rem 0;
}

.collection-stats > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.collection-stats dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.collection-stats dd {
  font-family: var(--font-technical);
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.mascot-stage {
  position: relative;
  display: grid;
  min-height: 460px;
  place-items: center;
  align-self: center;
  isolation: isolate;
}

.mascot-stage::before {
  position: absolute;
  z-index: -1;
  inset: 16%;
  height: auto;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  border-radius: 50%;
  filter: blur(12px);
  content: '';
}

.mascot-stage img {
  position: relative;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 500px);
  height: 470px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.38));
}

.orbit {
  position: absolute;
  z-index: 1;
  top: 17%;
  left: 50%;
  width: 82%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--signal) 30%, transparent);
  border-radius: 50%;
  transform: translateX(-50%) rotate(-14deg);
}

.orbit::after {
  position: absolute;
  top: 14%;
  right: 10%;
  width: 7px;
  height: 7px;
  background: var(--signal-bright);
  border-radius: 50%;
  box-shadow: 0 0 22px var(--signal);
  content: '';
}

.orbit-two {
  top: 25%;
  width: 64%;
  border-color: color-mix(in srgb, var(--magenta) 27%, transparent);
  transform: translateX(-50%) rotate(22deg);
}

.orbit-two::after {
  top: auto;
  right: auto;
  bottom: 10%;
  left: 17%;
  background: var(--magenta);
  box-shadow: 0 0 20px var(--magenta);
}

.browse {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 58px 0 20px;
}

.browse h2 {
  margin: 8px 0 0;
  font-family: var(--font-headline);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 340;
  letter-spacing: 0.055em;
}

.browse-toggle {
  display: flex;
  margin: 0;
  padding: 4px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.browse-toggle button {
  display: flex;
  min-width: 126px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 17px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.browse-toggle button[aria-pressed='true'] {
  color: var(--text);
  background: var(--surface-solid);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.1);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: stretch;
  gap: 20px;
  padding-bottom: 90px;
}

.catalog-shelves {
  padding-bottom: 82px;
}

.catalog-shelf {
  padding: 30px 0 0;
}

.catalog-shelf + .catalog-shelf {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.catalog-shelf-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.15rem;
  padding: 0.2rem 0 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.catalog-shelf-heading::before {
  position: absolute;
  top: 0.25rem;
  bottom: 1rem;
  left: 0;
  width: 2px;
  background: var(--amber);
  box-shadow: 0 0 18px color-mix(in srgb, var(--amber) 52%, transparent);
  content: '';
}

.catalog-shelf-heading h2,
.catalog-shelf-heading h3,
.catalog-shelf-heading h4 {
  margin: 4px 0 8px;
  font-family: var(--font-headline);
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  font-weight: 340;
  letter-spacing: 0.055em;
  line-height: 1.15;
  text-transform: uppercase;
}

.catalog-shelf-heading > div > p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.catalog-shelf-heading > span {
  padding: 7px 10px;
  color: var(--amber);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.catalog-shelf .cards {
  padding-bottom: 0;
}

.catalog-shelf.compact {
  padding: 26px 0 36px;
  border-top-style: dashed;
}

.catalog-shelf.compact .catalog-shelf-heading {
  padding-bottom: 20px;
}

.catalog-shelf.compact .catalog-shelf-heading h4 {
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.accent-battlezone {
  --accent: #ef3b2d;
}

.accent-castle-blast {
  --accent: #ff941f;
}

.accent-gravitar {
  --accent: #2fcbff;
}

.accent-red-baron {
  --accent: #e23a43;
}

.accent-rounders {
  --accent: #22c7da;
}

.accent-rounders-2 {
  --accent: #b56cff;
}

.accent-vaboom-2000 {
  --accent: #ffb525;
}

.accent-vaboom-2026 {
  --accent: #36e3d1;
}

.accent-star-wars-vector-assault {
  --accent: #ffb925;
}

.game-card {
  --card-art-height: 260px;
  --accent-ink: color-mix(in srgb, var(--accent) 50%, #0c1822);
  position: relative;
  display: grid;
  min-height: 0;
  height: 100%;
  grid-template-rows: var(--card-art-height) 1fr;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  isolation: isolate;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.dark .game-card {
  --accent-ink: color-mix(in srgb, var(--accent) 77%, white);
}

.game-card:hover {
  z-index: 3;
  border-color: color-mix(in srgb, var(--accent) 65%, var(--line));
  box-shadow: 0 24px 70px color-mix(in srgb, var(--accent) 14%, rgba(0, 0, 0, 0.25));
  transform: translateY(-3px);
}

.game-card.is-featured {
  grid-column: auto;
  grid-template-columns: 1fr;
  grid-template-rows: var(--card-art-height) 1fr;
}

.game-card-visual {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #07080d;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 31%, var(--line));
}

.game-card.is-featured .game-card-visual {
  min-height: 0;
  border-right: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 31%, var(--line));
}

.game-card-visual::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  content: '';
}

.game-card-visual::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 4, 8, 0.05), rgba(3, 4, 8, 0.48)),
    radial-gradient(circle at 50% 35%, transparent 20%, rgba(3, 4, 8, 0.52) 100%);
  pointer-events: none;
  content: '';
}

.game-card-artwork {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: calc(100% - 32px);
  max-height: calc(var(--card-art-height) - 64px);
  margin-bottom: 28px;
  padding: 0;
  object-fit: contain;
  filter: drop-shadow(0 15px 22px rgba(0, 0, 0, 0.48));
  transition: transform 360ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.game-card-backdrop {
  position: absolute;
  z-index: -2;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  filter: blur(22px) saturate(1.15);
  opacity: 0.28;
  transform: scale(1.08);
}

.game-card-visual[data-art-kind='label'] .game-card-artwork {
  padding-bottom: 0;
  clip-path: inset(0 round 3%);
}

.game-card.is-featured .game-card-artwork {
  max-height: calc(var(--card-art-height) - 64px);
}

.game-card:hover .game-card-artwork {
  transform: scale(1.025);
}

.game-card-visual figcaption {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 11px;
  padding: 6px 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(4, 6, 11, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 0.7rem;
  font-weight: 730;
  letter-spacing: 0.1em;
}

.artwork-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--accent);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}

.game-card-copy {
  position: relative;
  display: flex;
  min-height: 290px;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 52%),
    var(--surface);
}

.card-signal {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  display: flex;
  align-items: flex-start;
  gap: 3px;
  opacity: 0.42;
}

.card-signal i {
  width: 3px;
  height: 12px;
  background: var(--accent);
  opacity: 0.28;
}

.card-signal i:nth-child(2) {
  height: 19px;
  opacity: 0.6;
}

.card-signal i:nth-child(3) {
  height: 27px;
  opacity: 1;
}

.game-card-topline,
.game-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.game-card-topline {
  flex-wrap: wrap;
  gap: 8px;
  padding-right: 0;
}

.classification {
  max-width: none;
  padding: 5px 7px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 730;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rating {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
}

.rating > span {
  color: var(--accent-ink);
}

.rating small {
  display: block;
  margin-top: 3px;
  font-size: 0.7rem;
  text-align: right;
}

.game-card .classification {
  max-width: calc(100% - 68px);
  white-space: normal;
}

.game-era {
  margin-top: 1.25rem;
  color: var(--text);
  color: var(--accent-ink);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-card h3 {
  margin: 8px 0 11px;
  font-family: var(--font-headline);
  min-height: 2.1em;
  font-size: clamp(1.75rem, 2.1vw, 2.2rem);
  font-weight: 340;
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-wrap: balance;
  text-transform: uppercase;
}

.game-card.is-featured h3 {
  font-size: clamp(1.75rem, 2.1vw, 2.2rem);
}

.game-summary {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.game-card footer {
  margin-top: auto;
  padding-top: 25px;
}

.console-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.console-pills small {
  padding: 5px 7px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.035em;
}

.console-pills small.planned {
  color: var(--muted);
  border-style: dashed;
}

.card-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  color: #071016;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 25%, transparent);
  font-size: 1.05rem;
  transition: transform 180ms ease;
}

.card-arrow:hover {
  transform: translateX(3px);
}

.console-groups {
  padding-bottom: 72px;
}

.console-group {
  padding: 12px 0 22px;
  border-top: 1px solid var(--line);
}

.console-group > header {
  display: grid;
  grid-template-columns: minmax(210px, 280px) 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
}

.console-group-art {
  position: relative;
  min-height: 170px;
  aspect-ratio: 16 / 10;
  align-self: stretch;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 72% 22%,
      color-mix(in srgb, var(--signal-bright) 19%, transparent),
      transparent 48%
    ),
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--surface-solid) 90%, var(--bg-deep)),
      color-mix(in srgb, var(--surface-soft) 72%, #09101c)
    );
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.console-group-art::after,
.console-hero-art::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 5px,
    color-mix(in srgb, var(--signal) 8%, transparent) 6px
  );
  opacity: 0.3;
  pointer-events: none;
  content: '';
}

.console-group-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.92) contrast(1.04)
    drop-shadow(0 16px 23px rgba(0, 0, 0, 0.28));
  transition:
    filter 220ms ease,
    transform 260ms ease;
}

.console-group:hover .console-group-art img {
  filter: saturate(1.06) contrast(1.06)
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.34));
  transform: scale(1.018);
}

.console-group-art figcaption {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 7px 9px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: 7px;
  backdrop-filter: blur(12px);
  font-size: 0.51rem;
  font-weight: 780;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.console-group > header > span {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--signal);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 0.67rem;
  font-weight: 780;
}

.console-group h3 {
  margin: 5px 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.025em;
}

.console-route-link {
  display: inline-flex;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  color: var(--signal);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.console-group .cards {
  padding-bottom: 28px;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 82px;
}

.console-card {
  overflow: hidden;
  padding: 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.08);
  transition:
    border-color 220ms ease,
    transform 220ms ease;
}

.console-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.console-card-art {
  position: relative;
  width: calc(100% + 2.6rem);
  height: 230px;
  margin: -1.3rem -1.3rem 1.3rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(80, 110, 176, 0.24), transparent 52%),
    linear-gradient(145deg, #111724, #05070d 74%);
  border-bottom: 1px solid var(--line);
}

.console-card-art::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 5px, rgba(150, 155, 194, 0.035) 6px);
  pointer-events: none;
  content: '';
}

.console-card-art img {
  width: 100%;
  height: 100%;
  padding: 1rem;
  object-fit: contain;
  filter: saturate(0.92) contrast(1.02) drop-shadow(0 18px 22px rgba(0, 0, 0, 0.38));
  transition: transform 240ms ease;
}

.console-card:hover .console-card-art img {
  transform: scale(1.018);
}

.console-card-art figcaption {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  left: 10px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-technical);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.console-card-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.console-index {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  color: var(--signal);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-technical);
  font-size: 0.65rem;
}

.console-card-heading p,
.console-card-heading > div > span {
  color: var(--muted);
  font-size: 0.75rem;
}

.console-card-heading h3 {
  margin: 0.25rem 0;
  font-family: var(--font-headline);
  font-size: 1.85rem;
  font-weight: 340;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.console-card-heading .console-route-link {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0;
  place-items: center;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.console-game-shelves {
  display: grid;
  gap: 1.2rem;
  padding-top: 1.2rem;
}

.console-game-shelf + .console-game-shelf {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.console-game-shelf > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.console-game-shelf h4 {
  margin: 0;
  font-family: var(--font-headline);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 750;
  font-weight: 340;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.console-game-shelf > header > span {
  flex: 0 0 auto;
  padding: 0.25rem 0.42rem;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-technical);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-game-shelf ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.console-game-shelf li + li {
  border-top: 1px solid var(--line);
}

.console-game-shelf li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.console-game-shelf li a > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.25rem;
}

.console-game-shelf li strong {
  font-size: 0.9rem;
}

.console-game-shelf li small {
  color: var(--muted);
  font-size: 0.76rem;
}

.console-game-shelf .planned-badge {
  flex: 0 0 auto;
  font-size: 0.68rem;
}

.console-game-arrow {
  color: var(--signal);
  font-size: 1.3rem;
  font-weight: 400;
}

.design-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.design-principles > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 2rem;
}

.design-principles > div + div {
  border-left: 1px solid var(--line);
}

.principle-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--signal);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-technical);
  font-size: 0.65rem;
}

.design-principles p {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.design-principles strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text);
  font-size: 0.75rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  color: var(--muted);
  min-height: 44px;
  font-size: 0.8rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--signal);
}

.console-page,
.archive-page {
  padding-bottom: 90px;
}

.console-heading {
  display: grid;
  min-height: 440px;
  grid-template-columns: minmax(280px, 0.56fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 7vw, 110px);
  border-bottom: 1px solid var(--line);
}

.console-orbit {
  position: relative;
  display: grid;
  width: min(100%, 390px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  color: var(--signal);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow:
    inset 0 0 90px color-mix(in srgb, var(--signal) 10%, transparent),
    0 0 60px color-mix(in srgb, var(--signal) 10%, transparent);
}

.console-orbit::before,
.console-orbit::after {
  position: absolute;
  inset: 12%;
  border: 1px solid color-mix(in srgb, var(--magenta) 36%, transparent);
  border-radius: 50%;
  transform: rotate(26deg) scaleY(0.48);
  content: '';
}

.console-orbit::after {
  inset: 23%;
  border-color: color-mix(in srgb, var(--signal) 42%, transparent);
  transform: rotate(-31deg) scaleX(0.52);
}

.console-orbit span {
  font-family: var(--font-technical);
  font-size: clamp(1.1rem, 3vw, 2rem);
  letter-spacing: 0.1em;
}

.console-hero-art {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 450px;
  place-items: center;
  justify-self: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 50%,
      color-mix(in srgb, var(--signal-bright) 13%, transparent),
      transparent 55%
    ),
    linear-gradient(
      135deg,
      transparent,
      color-mix(in srgb, var(--magenta) 5%, transparent)
    );
  border-radius: 24px;
  isolation: isolate;
}

.console-hero-art .console-orbit {
  position: absolute;
  z-index: 0;
  inset: 5%;
  width: auto;
}

.console-hero-art .console-orbit span {
  opacity: 0.2;
}

.console-hero-art img {
  position: relative;
  z-index: 1;
  width: 96%;
  max-height: 390px;
  object-fit: contain;
  filter: saturate(0.94) contrast(1.04)
    drop-shadow(0 30px 34px rgba(0, 0, 0, 0.46));
}

.console-hero-art figcaption {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  max-width: min(86%, 340px);
  padding: 9px 11px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-solid) 86%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
  font-size: 0.72rem;
  font-weight: 680;
  letter-spacing: 0.045em;
  line-height: 1.45;
  text-transform: uppercase;
}

.console-hero-art figcaption strong {
  display: block;
  margin-bottom: 3px;
  color: var(--signal);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.console-heading h1,
.archive-heading h1 {
  margin: 14px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 6vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.018em;
  line-height: 0.94;
}

.console-heading > div:last-child > p:last-child,
.archive-heading > div > p:last-child {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.75;
}

.console-game-list {
  display: grid;
  gap: 12px;
  padding-top: 48px;
}

.console-page-categories {
  padding-top: 30px;
}

.console-page-category {
  padding: 30px 0 48px;
  border-bottom: 1px solid var(--line);
}

.console-page-category .catalog-shelf-heading {
  padding-bottom: 22px;
}

.console-page-category .console-game-list {
  padding-top: 0;
}

.console-game {
  position: relative;
  display: grid;
  min-height: 132px;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  padding: 14px 22px 14px 14px;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--accent) 10%, transparent),
      transparent 48%
    ),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.console-game::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  content: '';
}

.console-game:hover {
  border-color: color-mix(in srgb, var(--accent) 54%, var(--line));
  transform: translateX(3px);
}

.console-game img {
  width: 100%;
  height: 104px;
  padding: 0;
  object-fit: contain;
  background: #05070b;
  border-radius: 8px;
}

.console-game p {
  color: var(--text);
  color: color-mix(in srgb, var(--accent) 52%, var(--text));
  font-size: 0.74rem;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.console-game h2,
.console-game h3 {
  margin: 7px 0 5px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.025em;
}

.console-game small {
  color: var(--muted);
  font-size: 0.8rem;
}

.planned-badge,
.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planned-badge {
  padding: 7px 9px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
}

.explore-link {
  color: var(--text);
}

.explore-link b {
  color: var(--accent);
  font-size: 1rem;
}

.archive-heading {
  display: grid;
  min-height: 440px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}

.archive-heading > span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 46%, var(--line));
  border-radius: 50%;
  box-shadow: inset 0 0 32px color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: 2rem;
}

.archive-list {
  display: grid;
  gap: 12px;
  padding-top: 48px;
}

.archive-list > article {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.35fr) auto;
  align-items: center;
  gap: 28px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.release-state {
  display: inline-flex;
  width: max-content;
  padding: 5px 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.archive-list article > div:first-child p {
  margin-top: 14px;
  color: var(--text);
  color: color-mix(in srgb, var(--accent) 54%, var(--text));
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.archive-list h2 {
  margin: 5px 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
}

.archive-list small,
.archive-list article > div:nth-child(2) p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.archive-list code {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.archive-list article > div:nth-child(2) p {
  margin-top: 8px;
}

.rights-hold {
  display: grid;
  min-width: 88px;
  justify-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rights-hold > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 50%;
}

.hero {
  display: grid;
  min-height: 650px;
  align-content: center;
  border-bottom: 1px solid var(--line);
}

.hero.compact {
  min-height: 420px;
}

.hero.compact h1 {
  font-size: clamp(3.25rem, 6vw, 6rem);
}

.text-link {
  width: max-content;
  margin-top: 24px;
  padding-bottom: 4px;
  color: var(--signal);
  border-bottom: 1px solid currentColor;
  font-size: 0.78rem;
  font-weight: 760;
}

.game-detail-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
}

.game-detail-hero h1 {
  max-width: 980px;
  font-family: var(--font-headline);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 340;
  letter-spacing: 0.035em;
  line-height: 0.94;
  text-transform: uppercase;
}

.game-detail-hero .eyebrow {
  color: var(--text);
  color: color-mix(in srgb, var(--accent) 58%, var(--text));
}

.hero-console-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
}

.hero-console-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.55rem 0.75rem;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-technical);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-console-links a:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}

.hero-console-links a.is-planned {
  color: var(--muted);
  border-style: dashed;
}

.detail-art {
  position: relative;
  display: grid;
  height: 370px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--accent) 20%, transparent),
      transparent 62%
    ),
    #05070b;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.detail-art img {
  width: auto;
  height: auto;
  max-width: calc(100% - 36px);
  max-height: calc(100% - 36px);
  padding: 0;
  object-fit: contain;
  filter: drop-shadow(0 18px 25px rgba(0, 0, 0, 0.48));
}

.detail-art figcaption {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  color: #f1eee7;
  background: rgba(7, 9, 14, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  backdrop-filter: blur(16px);
}

.detail-art figcaption > span {
  color: color-mix(in srgb, var(--accent) 66%, #fff);
  font-family: var(--font-technical);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.13em;
}

.detail-art figcaption dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.detail-art figcaption dl > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
}

.detail-art figcaption dt {
  color: #b2b6c3;
}

.detail-art figcaption dd {
  font-family: var(--font-technical);
}

.port {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.port:not(.planned-port) {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(400px, 1.15fr);
  align-items: center;
  column-gap: clamp(2rem, 7vw, 8rem);
}

.port:not(.planned-port) > header,
.port:not(.planned-port) > .artifact-section,
.port:not(.planned-port) > .release-list,
.port:not(.planned-port) > .archive-link,
.port:not(.planned-port) > .rights {
  grid-column: 1 / -1;
}

.port > header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.port > header > div {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  color: var(--signal);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 760;
}

.port > header h2 {
  margin: 4px 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
}

.port > header small {
  color: var(--muted);
  font-size: 0.8rem;
}

.port mark {
  padding: 6px 9px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  text-transform: capitalize;
}

.port-copy {
  max-width: 800px;
  padding: 72px 0 30px;
}

.port:not(.planned-port) > .port-copy {
  align-self: center;
  padding: 34px 0;
}

.port-copy h3 {
  margin: 0;
  font-family: var(--font-headline);
  font-size: 2.45rem;
  font-weight: 340;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.port-copy p {
  max-width: 62ch;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.cartridge-island {
  position: relative;
  display: grid;
  min-height: 360px;
  margin-bottom: 26px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 44%,
      color-mix(in srgb, var(--accent) 18%, transparent),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--accent) 8%, transparent),
      transparent 54%
    ),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 16px;
  isolation: isolate;
}

.port:not(.planned-port) > .cartridge-island {
  width: 100%;
  min-height: 390px;
  margin: 30px 0;
}

.planned-port > .empty-state {
  min-height: 270px;
  padding: clamp(2rem, 5vw, 4rem);
  background:
    repeating-linear-gradient(-45deg, transparent 0 12px, var(--surface-soft) 13px 14px),
    var(--surface);
  border-style: dashed;
}

.cartridge-island::before {
  position: absolute;
  z-index: -1;
  width: min(44%, 260px);
  aspect-ratio: 0.82;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 38%), #151b23;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, #34404b);
  border-radius: 16px 16px 28px 28px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.36),
    inset 0 0 0 8px rgba(255, 255, 255, 0.025);
  transform: rotate(-5deg);
  content: '';
}

.cartridge-island::after {
  position: absolute;
  z-index: -1;
  top: 38%;
  width: min(31%, 186px);
  height: 25%;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 74%, #101722),
    color-mix(in srgb, var(--accent) 24%, #101722)
  );
  border: 1px solid color-mix(in srgb, var(--accent) 68%, white);
  border-radius: 6px;
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 20%, transparent);
  transform: rotate(-5deg);
  content: '';
}

.cartridge-island canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.island-cartridge,
.island-cartridge-canvas {
  position: absolute;
  inset: 0;
}

.island-cartridge {
  z-index: 2;
}

.island-cartridge-canvas {
  min-height: 360px;
}

.island-cartridge-controls {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 5px;
  padding: 5px;
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.island-cartridge-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
}

.island-cartridge-controls button:hover {
  background: var(--surface-soft);
  border-color: var(--line);
}

.island-cartridge > p {
  position: absolute;
  z-index: 3;
  bottom: 22px;
  left: 22px;
  max-width: calc(100% - 220px);
  color: var(--muted);
  font-size: 0.76rem;
}

.cartridge-fallback {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: grid;
  gap: 5px;
  padding: 15px 17px;
  background: color-mix(in srgb, var(--surface-solid) 86%, transparent);
  border: 1px solid var(--line);
  border-radius: 10px;
  backdrop-filter: blur(14px);
}

.cartridge-fallback span {
  color: var(--text);
  color: color-mix(in srgb, var(--accent) 56%, var(--text));
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.cartridge-fallback strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}

.cartridge-fallback p {
  max-width: 650px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.planned-port [data-cartridge] {
  display: none !important;
}

.artifact-section {
  margin: 28px 0;
  padding: clamp(20px, 3.5vw, 38px);
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--accent) 7%, transparent),
      transparent 48%
    ),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 16px;
}

.artifact-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.artifact-heading .eyebrow,
.artifact-subheading .eyebrow {
  color: var(--text);
  color: color-mix(in srgb, var(--accent) 58%, var(--text));
}

.artifact-heading h3,
.artifact-subheading h4,
.artifact-group h4,
.physical-kind h4 {
  margin: 5px 0 0;
  font-weight: 650;
}

.artifact-heading h3 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.artifact-heading > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.artifact-group,
.box-concept-block {
  margin-top: 30px;
}

.artifact-group > h4,
.physical-kind > h4 {
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.screenshot-gallery,
.video-gallery,
.physical-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.screenshot-gallery figure,
.video-gallery figure,
.physical-gallery figure,
.interactive-box-figure {
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.screenshot-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #030508;
  image-rendering: pixelated;
}

/* Preserve the Vectrex's portrait CRT instead of treating it as a TV console. */
#vectrex .screenshot-gallery img {
  aspect-ratio: 4 / 5;
}

/* A rating is a cumulative 1–5 choice, not five independently toggled stars. */
.island-community .community-rating .rating-stars button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 9px;
  place-items: center;
  color: var(--muted);
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
}
.island-community .community-rating .rating-stars button svg {
  width: 22px;
  height: 22px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.island-community .community-rating .rating-stars button.selected {
  color: var(--amber);
  border-color: color-mix(in srgb, var(--amber) 45%, var(--line-strong));
}
.island-community .community-rating .rating-stars button.selected svg {
  fill: currentColor;
}
.island-community .community-rating .rating-stars button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
.island-community .community-rating .rating-choice {
  min-height: 1.65em;
  margin: 12px 0 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.65;
}
@media (max-width: 400px) {
  .island-community .community-rating {
    min-width: 0;
    padding: 20px;
  }
}

.video-gallery {
  grid-template-columns: 1fr;
}

.video-gallery video {
  display: block;
  width: 100%;
  max-height: 650px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #020305;
}

.screenshot-gallery figcaption,
.video-gallery figcaption,
.physical-gallery figcaption,
.interactive-box-figure > figcaption {
  padding: 11px 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.5;
}

.artifact-empty {
  display: grid;
  min-height: 0;
  align-content: center;
  gap: 7px;
  padding: 22px;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent) 7%, transparent),
      transparent
    ),
    var(--bg-deep);
  border: 1px dashed color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 12px;
}

.artifact-empty.compact {
  min-height: 0;
}

.artifact-empty strong {
  font-size: 0.9rem;
}

.artifact-empty p {
  max-width: 680px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.physical-artifacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.physical-gallery {
  grid-template-columns: 1fr;
}

.physical-gallery figure {
  display: grid;
  grid-template-rows: 372px auto;
  background: #030508;
}

.physical-gallery img {
  width: auto;
  height: auto;
  max-width: calc(100% - 36px);
  max-height: 340px;
  align-self: center;
  justify-self: center;
  padding: 0;
  object-fit: contain;
  background: #030508;
  clip-path: inset(0 round 3%);
}

.artifact-subheading {
  margin-bottom: 13px;
}

.artifact-subheading h4 {
  font-size: 1.25rem;
}

.box-concept-island {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 42%,
      color-mix(in srgb, var(--accent) 17%, transparent),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--accent) 7%, transparent),
      transparent 55%
    ),
    var(--bg-deep);
}

.box-static-fallback,
.island-box-static {
  display: grid;
  min-height: 450px;
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 5vw, 60px);
  padding: clamp(24px, 5vw, 54px);
}

.box-static-fallback img,
.island-box-static-art,
.cartridge-fallback img,
.island-cartridge-fallback img {
  width: auto;
  max-width: 100%;
  max-height: 320px;
  justify-self: center;
  object-fit: contain;
  clip-path: inset(0 round 3%);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
}

.box-static-fallback > div,
.island-box-static > div {
  display: grid;
  gap: 8px;
}

.box-static-fallback span,
.island-box-static span {
  color: var(--text);
  color: color-mix(in srgb, var(--accent) 58%, var(--text));
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.box-static-fallback strong,
.island-box-static strong {
  font-size: 1.1rem;
}

.box-static-fallback p,
.island-box-static p {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.6;
}

.island-box {
  position: absolute;
  inset: 0;
  min-height: 450px;
}

.island-box-stage {
  display: grid;
  width: 100%;
  min-height: 450px;
  padding: 0;
  place-items: center;
  color: inherit;
  background: transparent;
  border: 0;
  outline: none;
  perspective: 1050px;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.island-box-stage:active {
  cursor: grabbing;
}

.island-box-stage:focus-visible {
  box-shadow: inset 0 0 0 2px var(--signal-bright);
}

.island-box-model {
  position: relative;
  width: var(--box-width, 190px);
  height: var(--box-height, 270px);
  transform: scale(var(--box-zoom)) rotateX(var(--box-x)) rotateY(var(--box-y));
  transform-style: preserve-3d;
  transition: transform 120ms ease-out;
}

.island-box-face {
  position: absolute;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  overflow: hidden;
  padding: 13px;
  color: white;
  background:
    linear-gradient(180deg, transparent 34%, rgba(2, 3, 7, 0.9)),
    var(--box-accent);
  border: 1px solid color-mix(in srgb, var(--box-accent) 74%, white);
  backface-visibility: hidden;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.3);
}

.island-box-face span {
  max-width: 75%;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.08;
}

.island-box-face small {
  font-size: 0.46rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.island-box-face.box-front,
.island-box-face.box-back {
  width: var(--box-width, 190px);
  height: var(--box-height, 270px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 8px;
}

.island-box-face-art {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 210px;
  object-fit: contain;
  clip-path: inset(0 round 3%);
}

.island-box-face.box-front {
  transform: translateZ(calc(var(--box-depth, 58px) / 2));
}

.island-box-face.box-back {
  filter: brightness(0.74) saturate(0.8);
  transform: rotateY(180deg) translateZ(calc(var(--box-depth, 58px) / 2));
}

.island-box-face.box-left,
.island-box-face.box-right {
  left: calc((var(--box-width, 190px) - var(--box-depth, 58px)) / 2);
  width: var(--box-depth, 58px);
  height: var(--box-height, 270px);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--box-accent) 74%, #17141d),
      #080a10
    ),
    var(--box-accent);
}

.island-box-face.box-left {
  transform: rotateY(-90deg) translateZ(calc(var(--box-width, 190px) / 2));
}

.island-box-face.box-right {
  transform: rotateY(90deg) translateZ(calc(var(--box-width, 190px) / 2));
}

.island-box-face.box-top,
.island-box-face.box-bottom {
  top: calc((var(--box-height, 270px) - var(--box-depth, 58px)) / 2);
  width: var(--box-width, 190px);
  height: var(--box-depth, 58px);
  background: color-mix(in srgb, var(--box-accent) 68%, #17141d);
}

.island-box-face.box-top {
  transform: rotateX(90deg) translateZ(calc(var(--box-height, 270px) / 2));
}

.island-box-face.box-bottom {
  transform: rotateX(-90deg) translateZ(calc(var(--box-height, 270px) / 2));
}

/* Real packaging faces keep their complete rectangular art and natural proportions. */
.island-box-face.has-face-art {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  padding: 0;
  background: #080b11;
  filter: none;
}
.island-box-face.has-face-art .is-packaging-face {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  clip-path: none;
}
.island-box-static-art.is-packaging-face {
  clip-path: none;
}

.island-box-controls {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 5px;
  padding: 5px;
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.island-box-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
}

.island-box-controls button:hover {
  background: var(--surface-soft);
  border-color: var(--line);
}

.island-box > p {
  position: absolute;
  z-index: 2;
  bottom: 23px;
  left: 22px;
  max-width: calc(100% - 220px);
  color: var(--muted);
  font-size: 0.76rem;
}

.island-box-disclaimer {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 22px;
  padding: 7px 10px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
}

.island-box.is-reduced .island-box-model {
  transition: none;
}

.game-community {
  margin: 36px 0 44px;
}

.release-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.release-list article {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px;
  background: var(--surface);
}

.release-list article + article {
  border-top: 1px solid var(--line);
}

.release-list article > div {
  display: grid;
}

.release-list span,
.release-list code {
  color: var(--muted);
  font-size: 0.78rem;
}

.release-list code {
  overflow: hidden;
  text-overflow: ellipsis;
}

.release-list button,
.release-list a {
  min-height: 44px;
  padding: 9px 12px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.8rem;
}

.archive-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--signal);
  min-height: 44px;
  font-size: 0.8rem;
  font-weight: 780;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.rights,
.empty-state {
  margin-top: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.rights p,
.empty-state p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 88ch;
  font-size: 0.9rem;
  line-height: 1.7;
}

.prose {
  max-width: 900px;
}

.prose article {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.prose time {
  color: var(--signal);
  font-size: 0.7rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
}

.prose p {
  color: var(--muted);
  line-height: 1.75;
}

.site-footer {
  display: grid;
  min-height: 142px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

.site-footer p:last-child {
  text-align: right;
}

.site-footer a:hover {
  color: var(--text);
}

.bell-mount {
  position: relative;
}

.island-bell {
  position: fixed;
  z-index: 40;
  inset: 0;
  width: min(460px, calc(100vw - 32px));
  height: fit-content;
  max-height: calc(100svh - 48px);
  margin: auto;
  padding: 10px;
  overflow: auto;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.island-bell:not([open]) {
  display: none;
}

.island-bell[open] {
  display: block;
}

.island-bell::backdrop {
  background: rgba(3, 5, 10, 0.72);
  backdrop-filter: blur(5px);
}

.island-bell header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.island-bell header > div {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.island-bell header button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 11px;
  color: var(--signal);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.78rem;
  cursor: pointer;
}

.island-bell header button:disabled {
  opacity: 0.55;
  cursor: default;
}

.island-bell header button[aria-label='Close updates'] {
  font-size: 1.35rem;
}

.island-bell article {
  display: grid;
  grid-template-columns: 7px 1fr;
  gap: 10px;
  padding: 13px 8px;
  border-bottom: 1px solid var(--line);
}

.island-bell article i {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
}

.island-bell article.unread i {
  background: #ff4a7a;
}

.island-bell article strong {
  font-size: 0.76rem;
}

.island-bell article p,
.island-bell > p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.island-community {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 12px;
  margin-top: 40px;
}

.island-community > div,
.island-community form,
.community-comments {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.island-community p {
  color: var(--signal);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.island-community h3 {
  margin: 6px 0 18px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
}

.island-community h3 small {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
}

.island-community > div button {
  width: 40px;
  height: 40px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.island-community > div button.selected {
  color: #ffca52;
}

.island-community form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
}

.island-community textarea {
  min-height: 110px;
  padding: 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
}

.island-community .comment-name input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
}
.island-community p.comment-name-help { margin: 5px 0 16px; font-size: 0.78rem; letter-spacing: 0; }
.island-community label.comment-publication-consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 14px 0;
  cursor: pointer;
}
.island-community .comment-publication-consent input { width: 20px; height: 20px; margin: 3px 0; accent-color: var(--signal); }
.island-community .comment-author { color: var(--text); font-size: 0.82rem; }

/* One community submission, with a shared CAPTCHA and action footer. */
.island-community:has(.community-feedback-form) { grid-template-columns: minmax(0, 1fr); }
.island-community .community-feedback-form {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px 32px;
  padding: clamp(20px, 3vw, 36px);
}
.community-feedback-heading,
.community-feedback-actions { grid-column: 1 / -1; }
.island-community .community-feedback-heading { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.island-community .community-feedback-heading h3 { margin: 0 0 8px; }
.island-community .community-feedback-heading p,
.island-community .community-feedback-actions p,
.island-community .community-rating .rating-status {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  margin: 4px 0;
}
.island-community .community-feedback-form .community-rating { padding: 0; min-width: 0; }
.island-community .community-feedback-form .rating-stars button { border-radius: 8px; }
.island-community .community-feedback-form .comment-consent-help { color: var(--muted); font-weight: 400; letter-spacing: 0; margin-top: 12px; }
.island-community .community-feedback-form .rating-clear {
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 8px 0;
  color: var(--muted);
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.island-community .community-comment-fields { min-width: 0; }
.island-community .community-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.island-community .community-feedback-actions > button {
  min-height: 46px;
  min-width: 132px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  color: var(--bg);
  background: var(--text);
  font-weight: 800;
  cursor: pointer;
}
.island-community .community-feedback-actions > :is(output, p) { flex-basis: 100%; margin: 0; }
.island-community .community-feedback-actions > output:empty { display: none; }
.island-community .community-feedback-actions > button:disabled { opacity: 0.45; cursor: not-allowed; }
.island-community .community-feedback-actions .community-verification { width: 300px; flex: 0 1 300px; min-width: 0; max-width: 100%; }
@media (max-width: 700px) {
  .island-community .community-feedback-form { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .island-community .community-feedback-form .community-rating { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .island-community .community-feedback-actions > button { width: 100%; }
}

.island-community form > button {
  margin-top: 12px;
  padding: 11px 14px;
  color: var(--bg-deep);
  background: var(--signal);
  border: 0;
  border-radius: 7px;
  font-weight: 800;
}

.island-community output {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.72rem;
}

.community-comments {
  grid-column: 1 / -1;
}

.comments-paused {
  align-self: stretch;
  padding: 24px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
}

.comments-paused p {
  margin: 0 0 10px;
  color: var(--amber);
  font-family: var(--font-technical);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.comments-paused h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
}

.comments-paused span {
  color: var(--muted);
  line-height: 1.65;
}

.community-comments > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.community-comments > header button {
  padding: 8px 11px;
  color: var(--signal);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.68rem;
  cursor: pointer;
}

.community-comments ol {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.community-comments li {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.community-comments time {
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.community-comments li p,
.community-comments .community-comments-status {
  margin-top: 7px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.community-comments .community-comments-status {
  color: var(--muted);
}

.trap {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Collector review: clear primary actions, consistent artifact stages, and
   lightweight disclosures keep the archive usable at every viewport. */
.card-signal {
  display: none;
}

.game-card-art-link {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  place-items: center;
}

.game-card-art-link:focus-visible {
  outline-offset: -5px;
}

.game-card-art-link > .game-card-visual {
  width: 100%;
  height: 100%;
}

.console-game > img {
  width: auto;
  height: auto;
  max-width: 112px;
  max-height: 104px;
  justify-self: center;
  background: transparent;
  clip-path: inset(0 round 3%);
}

.game-card h3 a:hover,
.console-game-shelf li a:hover strong {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.detail-art[data-art-kind='label'] img {
  clip-path: inset(0 round 3%);
}

.detail-art {
  height: auto;
  min-height: 370px;
  grid-template-rows: 286px auto;
}

.detail-art img {
  max-height: 258px;
  align-self: center;
}

.detail-art figcaption {
  position: static;
  align-self: end;
  margin: 0 12px 12px;
}

.hero-actions,
.share-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.hero-actions a,
.share-tools button,
.primary-link,
.secondary-link,
.primary-action,
.secondary-action,
.button-primary,
.button-secondary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 750;
  line-height: 1.4;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.hero-actions a:first-child,
.hero-actions .button-primary,
.primary-link,
.primary-action,
.button-primary {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.hero-actions a:not(:first-child),
.share-tools button,
.secondary-link,
.secondary-action,
.button-secondary {
  color: var(--text);
  background: var(--surface-solid);
}

.hero-actions a:hover,
.share-tools button:hover,
.secondary-link:hover,
.secondary-action:hover,
.button-secondary:hover {
  border-color: var(--signal-bright);
  box-shadow: 0 0 0 2px var(--glow);
}

.share-tools {
  gap: 8px;
  margin-top: 18px;
}

.share-tools > span,
.share-tools output,
.share-tools p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.collection-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.collection-filters label {
  display: grid;
  flex: 1 1 180px;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.collection-filters label:first-child {
  flex-basis: 300px;
}

.collection-filters input,
.collection-filters select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.collection-filters button,
.collection-filters > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
}

.platform-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 32px 0 24px;
}

.platform-overview > a,
.platform-overview > article {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.platform-overview > a:hover {
  border-color: var(--line-strong);
  background: var(--surface-solid);
}

.platform-overview h2,
.platform-overview h3,
.platform-overview strong {
  margin: 0;
  font-family: var(--font-headline);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: 0.025em;
}

.platform-overview p,
.platform-overview small,
.platform-overview span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.platform-overview .is-planned {
  border-style: dashed;
}

.platform-jump-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px;
  background: color-mix(in srgb, var(--surface-solid) 96%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.platform-jump-nav > span {
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.platform-jump-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  color: var(--text);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 750;
}

.platform-jump-nav a:hover,
.platform-jump-nav a[aria-current='true'] {
  background: var(--surface-soft);
}

.port:not(.planned-port) > .port-copy,
.port:not(.planned-port) > .port-facts,
.port:not(.planned-port) > .port-media-summary,
.port:not(.planned-port) > .concept-drawer,
.port:not(.planned-port) > .publication-status {
  grid-column: 1 / -1;
}

.port-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 26px;
}

.port-facts > div,
.port-facts > section {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.port-facts h3,
.port-facts h4 {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.port-facts p,
.port-facts li,
.port-facts dt,
.port-facts dd {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.port-facts dl > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}

.port-facts dl > div:last-child {
  border-bottom: 0;
}

.port-facts dd {
  color: var(--text);
  text-align: right;
}

.port-media-summary,
.publication-status {
  margin: 12px 0 20px;
  padding: 16px 19px;
  color: var(--muted);
  background: var(--surface-soft);
  border-left: 2px solid var(--line-strong);
  border-radius: 0 7px 7px 0;
  font-size: 0.85rem;
  line-height: 1.65;
}

.port-media-summary strong,
.publication-status strong {
  color: var(--text);
}

.concept-drawer {
  overflow: hidden;
  margin: 22px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.concept-drawer > summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

.concept-drawer > summary::-webkit-details-marker {
  display: none;
}

.concept-drawer > summary::after {
  flex: 0 0 auto;
  color: var(--signal);
  font-size: 1.5rem;
  font-weight: 400;
  content: '+';
}

.concept-drawer[open] > summary {
  border-bottom: 1px solid var(--line);
}

.concept-drawer[open] > summary::after {
  content: '−';
}

.concept-drawer > summary:hover {
  background: var(--surface-soft);
}

.concept-drawer .cartridge-island {
  min-height: 390px;
  margin: 22px;
}

.concept-drawer .artifact-section {
  margin: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.concept-drawer .rights {
  margin: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
}

.packaging-concepts { margin: 30px 0 0; }
.packaging-concepts .packaging-permissions { margin: 20px 0 0; padding: 20px; background: var(--surface-soft); border-left: 3px solid var(--accent); }
.packaging-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 26px; margin-top: 26px; }
.packaging-layout > * { min-width: 0; }
.packaging-layout > .box-concept-block { margin-top: 0; }
.packaging-layout .artifact-subheading { display: grid; grid-template-rows: 24px 30px; align-content: start; height: 67px; margin: 0; }
.packaging-layout .artifact-subheading .eyebrow { margin: 0; }
.packaging-layout .artifact-subheading h4 { margin: 0; font-size: 1.25rem; line-height: 1.5; }
.packaging-artifact-card { overflow: hidden; margin: 0; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 12px; }
.packaging-labels .physical-gallery { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.packaging-label-stage { height: 480px; padding: 24px; align-content: center; }
.packaging-label-preview { min-height: 0; text-align: center; }
.packaging-label-preview .gallery-trigger { display: flex; justify-content: center; align-items: center; padding: 0; min-height: 0; }
.packaging-label-preview img { width: auto; max-width: 100%; max-height: 360px; object-fit: contain; clip-path: inset(0 round var(--artwork-corner-radius, 12px)); }
.packaging-label-preview small { display: block; padding-top: 8px; color: var(--muted); font-size: .75rem; }
.packaging-label-stage:has(.packaging-label-preview:nth-child(2)) img { max-height: 170px; }
.packaging-concepts .box-concept-island { height: 480px; min-height: 480px; border: 0; border-radius: 0; }
.packaging-concepts .island-box, .packaging-concepts .island-box-stage { min-height: 480px; }
.packaging-artifact-card > figcaption { display: flex; align-items: center; min-height: 94px; padding: 14px 18px; color: var(--muted); border-top: 1px solid var(--line); font-size: .8rem; line-height: 1.6; }
.packaging-artifact-empty { min-height: 576px; }
.site-footer .site-resale-notice { grid-column: 1 / -1; max-width: 100ch; text-align: left; color: var(--muted); font-size: .76rem; line-height: 1.65; }
@media (max-width: 960px) {
  .packaging-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .packaging-concepts .artifact-heading { flex-wrap: wrap; }
  .packaging-concepts .packaging-permissions { padding: 16px; }
  .packaging-layout { gap: 20px; }
}

.related-games {
  display: grid;
  gap: 14px;
  margin: 44px 0 58px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.related-games h2,
.related-games h3 {
  margin: 0;
  font-size: 2.25rem;
}

.related-games > div,
.related-games ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-games a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 700;
}

.related-games a:hover {
  border-color: var(--line-strong);
}

.island-community {
  gap: 18px;
  margin-top: 20px;
}

.island-community > div button {
  width: 46px;
  height: 46px;
  margin-right: 3px;
  border-radius: 7px;
  font-size: 1.15rem;
}

.island-community > div button:hover,
.island-community > div button:focus-visible {
  color: var(--amber);
  border-color: var(--amber);
}

.island-community p,
.island-community form label,
.island-community output,
.island-community h3 small,
.community-comments time,
.island-bell article p,
.island-bell > p {
  font-size: 0.82rem;
  line-height: 1.6;
}

.comments-paused {
  border-radius: 14px;
}

.island-community form > button {
  min-height: 44px;
  color: var(--bg);
  background: var(--text);
}

.island-bell article strong {
  font-size: 0.9rem;
}

.gallery-trigger {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 0;
  place-items: center;
  color: inherit;
  background: #030508;
  border: 0;
  cursor: zoom-in;
}

.gallery-trigger:hover img {
  filter: brightness(1.08);
}

[hidden] {
  display: none !important;
}

.material-download { display: grid; gap: 5px; margin-top: 10px; font-family: var(--font-body); }
.material-download small { color: var(--muted); font-size: .75rem; line-height: 1.6; }
.download-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; width: fit-content; font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
.download-library { margin: 24px 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-deep); }
.download-library summary { cursor: pointer; min-height: 44px; font-weight: 700; }
.download-library summary span { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.download-library ul { padding: 0; list-style: none; }
.download-library li { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.download-library li > div { min-width: 0; overflow-wrap: anywhere; }
.download-library li strong, .download-library li small { display: block; }
.game-instructions {
  --guide-text: var(--text, var(--foreground));
  --guide-muted: var(--muted, var(--muted-foreground));
  --guide-line: var(--line, var(--border));
  margin: 28px 0 48px; padding: clamp(20px,3.5vw,44px);
  border: 1px solid var(--guide-line); border-radius: 22px;
  background: var(--surface-solid,var(--surface)); color: var(--guide-text); scroll-margin-top: 104px;
}
.guide-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:24px; }
.guide-heading .eyebrow { margin:0 0 8px; color:var(--guide-muted); font-size:.75rem; letter-spacing:.14em; }
.guide-heading h2 { margin:0; font-size:clamp(2.2rem,4vw,3.5rem); line-height:1; }
.guide-heading p:not(.eyebrow) { margin:10px 0 0; color:var(--guide-muted); font-size:1rem; line-height:1.6; }
.guide-read-time { flex-shrink:0; padding:8px 12px; border:1px solid var(--guide-line); border-radius:99px; font-size:.75rem; color:var(--guide-muted); }
.guide-goal { display:flex; align-items:center; gap:16px; padding:18px 20px; background:var(--surface-soft,var(--secondary)); border-left:3px solid var(--accent,var(--page-accent,var(--signal))); border-radius:0 12px 12px 0; }
.guide-goal > span { font-size:2rem; color:var(--guide-text); }
.guide-goal p { margin:0; line-height:1.7; }
.guide-goal strong { display:block; font-size:.7rem; text-transform:uppercase; letter-spacing:.14em; margin-bottom:3px; }
.guide-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); list-style:none; counter-reset:guide-step; margin:28px 0 32px; padding:0; gap:clamp(16px,3vw,32px); }
.guide-steps li { counter-increment:guide-step; min-width:0; }
.guide-steps li::before { content:"0" counter(guide-step); display:block; margin-bottom:12px; font-family:var(--font-technical,'Oxanium',monospace); font-size:.8rem; letter-spacing:.08em; color:var(--guide-muted); }
.guide-steps h3 { font-family:var(--font-body,'Manrope',sans-serif); font-size:1.05rem; line-height:1.4; margin:0 0 8px; letter-spacing:0; font-weight:800; }
.guide-steps p { color:var(--guide-muted); font-size:.95rem; line-height:1.75; margin:0; }
.guide-console-heading { border-top:1px solid var(--guide-line); padding-top:24px; }
.guide-console-heading h3 { font-size:1.6rem; margin:0 0 5px; }
.guide-console-heading p { margin:0 0 20px; color:var(--guide-muted); line-height:1.7; font-size:.85rem; }
.guide-consoles { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:16px; align-items:start; }
.guide-console { min-width:0; border:1px solid var(--guide-line); border-radius:14px; overflow:hidden; background:var(--surface-soft,var(--secondary)); }
.guide-console > header { display:flex; align-items:center; gap:12px; padding:16px 18px; }
.guide-console > header > span { font-family:var(--font-technical,'Oxanium',monospace); font-size:.7rem; padding:6px 7px; border:1px solid var(--guide-line); border-radius:5px; }
.guide-console h4 { font-family:var(--font-body,'Manrope',sans-serif); font-size:.9rem; margin:0; letter-spacing:0; }
.guide-frame { margin:0 14px 16px; border-radius:9px; overflow:hidden; border:1px solid var(--guide-line); background:#030407; }
.guide-frame a { display:flex; height:180px; justify-content:center; align-items:center; }
.guide-frame img { display:block; max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; image-rendering:pixelated; }
.guide-frame.is-vector a { height:220px; }
.guide-frame figcaption { padding:9px 12px; color:#c7cbd6; font-size:.65rem; line-height:1.6; border-top:1px solid #252936; }
.guide-console > ul { padding:0 18px 0 34px; margin:14px 0; font-size:.85rem; line-height:1.75; }
.guide-console > ul li + li { margin-top:6px; }
.guide-edition-note { padding:0 18px; margin:14px 0; color:var(--guide-muted); line-height:1.7; font-size:.8rem; }
.guide-edition-note strong { color:var(--guide-text); }
.guide-edition-link { display:flex; align-items:center; justify-content:space-between; min-height:44px; padding:12px 18px; border-top:1px solid var(--guide-line); font-size:.8rem; font-weight:700; }
.guide-setup { margin:8px 18px 16px; font-size:.8rem; color:var(--guide-muted); }
.guide-setup summary { min-height:44px; cursor:pointer; padding:12px 0; color:var(--guide-text); }
.guide-setup p { line-height:1.7; margin:0 0 10px; }
.guide-tips { display:flex; gap:24px; padding:20px 0 0; margin-top:24px; border-top:1px solid var(--guide-line); }
.guide-tips h3 { flex:0 0 160px; margin:0; font-family:var(--font-body,'Manrope',sans-serif); font-size:.9rem; letter-spacing:0; }
.guide-tips ul { margin:0; padding-left:20px; font-size:.9rem; line-height:1.75; color:var(--guide-muted); }
.guide-footnote { margin:22px 0 0; color:var(--guide-muted); font-size:.7rem; line-height:1.7; }
@media(max-width:640px) {
  .guide-heading { display:block; }
  .guide-read-time { display:inline-block; margin-top:16px; }
  .guide-steps { grid-template-columns:1fr; gap:20px; }
  .guide-steps li { display:grid; grid-template-columns:30px minmax(0,1fr); gap:0 12px; }
  .guide-steps li::before { grid-row:span 2; padding-top:3px; }
  .guide-steps p { grid-column:2; }
  .guide-tips { display:block; }
  .guide-tips h3 { margin-bottom:10px; }
  .guide-goal { padding:14px; }
}
.download-panel { max-width: 880px; margin: 0 auto 72px; padding: 28px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 20px; }
.download-panel p { color: var(--muted); line-height: 1.7; }
.download-file-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.download-file-facts dt { color: var(--muted); font-size: .85rem; }
.download-file-facts dd { margin: 8px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.download-checksum { grid-column: 1 / -1; }
.download-checksum code { font-size: .8rem; }
.download-verification { margin: 24px 0; }
.download-captcha-heading { padding: 20px 0 12px; border-top: 1px solid var(--line); }
.download-captcha-heading .eyebrow { font-size: .7rem; letter-spacing: .12em; margin: 0 0 10px; }
.download-captcha-heading h2 { margin: 0; font-size: clamp(1.8rem,4vw,2.8rem); line-height: 1.15; }
.download-captcha-heading p:not(.eyebrow) { max-width: 60ch; font-size: .9rem; }
.download-challenge { min-height: 70px; }
.download-verification fieldset { margin: 24px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.download-verification label { display: block; font-size: .9rem; line-height: 1.6; }
.download-verification input:not([type=checkbox]) { display: block; width: 100%; margin: 8px 0 18px; padding: 12px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.download-verification .download-consent { display: flex; align-items: start; gap: 10px; min-height: 44px; }
.download-consent input { margin-top: 5px; flex-shrink: 0; width: 20px; height: 20px; }
.download-verification button { font: inherit; cursor: pointer; margin: 0 8px 8px 0; }
.download-verification button:disabled { opacity: .5; cursor: not-allowed; }
.download-verification [role=status] { color: var(--text); }

/* One hardware-specific ROM picker, shared by game pages and release archives. */
html.rom-download-open { overflow: hidden; }
.material-download button.download-link { justify-content: center; padding: 12px 16px; font: inherit; font-weight: 700; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-soft); cursor: pointer; text-decoration: none; }
.material-download button.download-link:hover { border-color: var(--signal-bright); background: color-mix(in srgb, var(--signal) 12%, var(--surface-solid)); }
.rom-download-dialog { width: min(620px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 32px); margin: auto; padding: 0; overflow: auto; color: var(--text); background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: 0 32px 100px rgb(0 0 0 / .5); }
.rom-download-dialog::backdrop { background: rgb(4 7 15 / .76); backdrop-filter: blur(7px); }
.rom-download-shell { padding: 28px; }
.rom-download-heading { position: sticky; top: 0; z-index: 2; display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 12px 0 14px; margin-top: -12px; border-bottom: 1px solid var(--line); background: var(--surface-solid); }
.rom-download-heading > div { min-width: 0; }
.rom-download-heading .eyebrow { font-size: .7rem; margin: 0 0 8px; }
.rom-download-heading h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 7vw, 2.9rem); line-height: 1.05; letter-spacing: .035em; overflow-wrap: anywhere; }
.rom-download-subtitle { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.rom-download-close { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--text); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 50%; font: inherit; font-size: 1.35rem; cursor: pointer; }
.rom-download-close span:last-child { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rom-download-introduction > summary { min-height: 44px; display: flex; align-items: center; color: var(--muted); cursor: pointer; font-size: .8rem; }
.rom-download-introduction > summary::before { content: '+'; margin-right: 8px; font-size: 1.1rem; }
.rom-download-introduction[open] > summary::before { content: '−'; }
.rom-download-picker { display: grid; gap: 8px; margin: 22px 0 18px; }
.rom-download-picker label { font-size: .86rem; font-weight: 700; }
.rom-download-picker select { display: block; width: 100%; min-height: 48px; padding: 10px 34px 10px 13px; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 9px; font: inherit; font-size: .9rem; text-overflow: ellipsis; }
.rom-download-picker option { color: var(--text); background: var(--surface-solid); }
.rom-download-metadata { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.rom-download-metadata div { min-width: 0; }
.rom-download-metadata dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; }
.rom-download-metadata dd { margin: 5px 0 0; font-size: .88rem; overflow-wrap: anywhere; }
.rom-download-metadata div:has(.rom-download-sha) { grid-column: 1 / -1; }
.rom-download-sha { display: block; font: .74rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.rom-download-guidance { margin: 14px 0; font-size: .8rem; line-height: 1.65; color: var(--muted); }
.rom-download-picker .rom-download-guidance { margin: 0; font-size: .75rem; }
.rom-download-dialog .is-rom-dialog { margin: 18px 0 0; }
.rom-download-dialog .download-captcha-heading { padding: 0; border: 0; }
.rom-download-dialog .download-captcha-heading h2 { font-family: var(--font-body); font-size: 1rem; letter-spacing: 0; font-weight: 700; }
.rom-download-dialog .download-captcha-heading p { margin: 6px 0 12px; font-size: .82rem; line-height: 1.55; color: var(--muted); }
.rom-download-dialog .download-challenge { margin-bottom: 12px; }
.rom-download-dialog fieldset { margin: 14px 0; padding: 12px 14px; }
.rom-download-dialog legend { padding: 0 5px; font-size: .78rem; color: var(--muted); }
.rom-download-dialog .download-verification label { font-size: .8rem; }
.rom-download-dialog .download-verification input:not([type=checkbox]) { padding: 9px 11px; margin-bottom: 10px; }
.rom-download-dialog .download-verification [role=status] { margin: 10px 0; font-size: .84rem; line-height: 1.55; }
.rom-download-dialog .download-count { font-size: .72rem; line-height: 1.6; color: var(--muted); }
.rom-download-rights { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; line-height: 1.6; }
.rom-download-dialog :is(button, select, input):focus-visible { outline: 3px solid var(--signal-bright); outline-offset: 3px; }
@media (max-width: 600px) {
  .rom-download-dialog { width: calc(100vw - 20px); max-height: calc(100svh - 20px); border-radius: 14px; }
  .rom-download-shell { padding: 20px; }
  .rom-download-metadata { gap: 12px; padding: 13px; }
  .rom-download-dialog .download-verification button { margin-right: 0; }
}
@media (max-width: 600px) {
  .download-panel { padding: 18px; }
  .download-library li { flex-direction: column; align-items: start; gap: 4px; }
  .download-file-facts { grid-template-columns: 1fr; }
  .download-verification button { width: 100%; }
}

.saved-shelf-tools {
  margin: 0 0 24px;
}

.share-tools button[aria-pressed='true'] {
  border-color: var(--signal);
  background: var(--surface-soft);
}

.gallery-dialog {
  width: min(1100px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100svh - 32px);
  padding: 54px 18px 18px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
  overflow: auto;
}

.gallery-dialog::backdrop {
  background: rgba(3, 5, 10, 0.84);
  backdrop-filter: blur(6px);
}

.gallery-dialog-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - 160px);
  margin-inline: auto;
  object-fit: contain;
}

.gallery-dialog[data-kind='label'] .gallery-dialog-image,
.gallery-dialog[data-kind='box'] .gallery-dialog-image {
  clip-path: inset(0 round 3%);
}

.gallery-dialog-caption {
  max-width: 85ch;
  margin: 15px auto 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.65;
  text-align: center;
}

.gallery-close {
  position: absolute;
  top: 7px;
  right: 10px;
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
}

.gallery-close:hover {
  border-color: var(--line-strong);
}

.community-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.community-intro h2 {
  margin: 0 0 8px;
  font-size: 2.5rem;
}

.community-intro p,
.community-status,
.rating-status,
.game-action-status {
  max-width: 65ch;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
}

.game-action-status:empty,
.rating-status:empty {
  display: none;
}

.game-action-status {
  flex-basis: 100%;
}

.community-rating [role='group'] {
  display: flex;
  gap: 4px;
}

.island-community .community-rating button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  margin: 0;
}

.island-community [aria-busy='true'] {
  cursor: progress;
}

.island-community button:disabled,
.island-community .is-saving {
  opacity: 0.65;
  cursor: progress;
}

.island-community .status-success {
  color: var(--text);
}

.island-community .status-error {
  color: var(--amber);
}

@media (max-width: 1180px) {
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .cards:has(> .game-card:last-child:nth-child(4)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-card.is-featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
    grid-template-rows: 260px 1fr;
  }

  .game-card.is-featured .game-card-visual {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  }

  .game-card.is-featured h3 {
    font-size: clamp(1.75rem, 2.1vw, 2.2rem);
  }

  .observatory-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  }

  .mascot-stage {
    min-height: 460px;
  }
}

@media (max-width: 900px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 36px, 760px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    position: relative;
    display: block;
  }

  .mobile-nav > summary {
    list-style: none;
  }

  .mobile-nav > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav > summary span,
  .mobile-nav > summary span::before,
  .mobile-nav > summary span::after {
    display: block;
    width: 17px;
    height: 1px;
    background: currentColor;
    transition: transform 160ms ease;
    content: '';
  }

  .mobile-nav > summary span::before {
    transform: translateY(-5px);
  }

  .mobile-nav > summary span::after {
    transform: translateY(4px);
  }

  .mobile-nav[open] > summary span {
    background: transparent;
  }

  .mobile-nav[open] > summary span::before {
    transform: translateY(0) rotate(45deg);
  }

  .mobile-nav[open] > summary span::after {
    transform: translateY(-1px) rotate(-45deg);
  }

  .mobile-nav nav {
    position: absolute;
    z-index: 50;
    top: 50px;
    right: -92px;
    display: grid;
    width: min(260px, calc(100vw - 36px));
    padding: 8px;
    color: var(--text);
    background: var(--surface-solid);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .mobile-nav nav a {
    padding: 13px 12px;
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }

  .mobile-nav nav a:hover,
  .mobile-nav nav a[aria-current='page'] {
    background: var(--surface-soft);
  }

  .signal-band {
    gap: 14px;
  }

  .observatory-hero {
    min-height: 510px;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.58fr);
    gap: 0;
  }

  .hero-copy h1 {
    font-size: clamp(3.25rem, 6vw, 4.8rem);
  }

  .collection-stats {
    margin-top: 36px;
  }

  .collection-stats > div {
    min-width: 0;
    padding-right: 12px;
  }

  .collection-stats > div + div {
    padding-left: 12px;
  }

  .mascot-stage {
    min-height: 430px;
  }

  .mascot-stage img {
    height: 440px;
  }

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

  .console-grid,
  .design-principles {
    grid-template-columns: 1fr;
  }

  .design-principles > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .port:not(.planned-port) {
    grid-template-columns: 1fr;
  }

  .port:not(.planned-port) > .port-copy,
  .port:not(.planned-port) > .cartridge-island {
    grid-column: 1;
  }

  .port:not(.planned-port) > .port-copy {
    padding: 30px 0 24px;
  }

  .port:not(.planned-port) > .cartridge-island {
    margin-top: 0;
  }

  .game-detail-hero {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.5fr);
  }

  .console-heading {
    grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1fr);
    gap: 38px;
  }

  .console-group > header {
    grid-template-columns: minmax(190px, 230px) 58px minmax(0, 1fr);
  }

  .console-group-art {
    grid-row: 1 / 3;
  }

  .console-group > header .console-route-link {
    grid-column: 3;
    margin-left: 0;
  }

  .console-hero-art {
    min-height: 390px;
  }

  .archive-list > article {
    grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1fr);
  }

  .rights-hold {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
    justify-self: start;
    align-items: center;
  }

  .island-community {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .signal-band {
    grid-template-columns: auto 1fr;
  }

  .signal-band > p:last-child {
    display: none;
  }

  .observatory-hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .hero-copy h1 {
    font-size: clamp(3.25rem, 11vw, 5rem);
  }

  .mascot-stage {
    width: min(100%, 390px);
    min-height: 370px;
    margin-inline: auto;
    margin-top: 14px;
  }

  .mascot-stage img {
    height: 380px;
  }

  .browse {
    align-items: flex-start;
    flex-direction: column;
  }

  .browse-toggle {
    width: 100%;
  }

  .browse-toggle button {
    min-width: 0;
    flex: 1;
  }

  .catalog-shelf-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
  }

  .catalog-shelf-heading > span {
    justify-self: start;
  }

  .game-detail-hero {
    grid-template-columns: 1fr;
    padding: 38px 0;
  }

  .detail-art {
    width: min(100%, 430px);
    justify-self: center;
  }

  .console-heading {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 38px 0;
  }

  .console-orbit {
    width: min(68vw, 310px);
  }

  .console-group > header {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px 16px;
  }

  .console-group-art {
    width: 100%;
    min-height: 220px;
    grid-row: auto;
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .console-group-art img {
    min-height: 0;
  }

  .console-group > header .console-route-link {
    grid-column: 2;
    width: 100%;
    margin-left: 0;
  }

  .console-hero-art {
    width: min(100%, 560px);
    min-height: min(88vw, 440px);
  }

  .console-hero-art .console-orbit {
    width: auto;
  }

  .archive-heading {
    min-height: 390px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 22px;
  }

  .archive-heading > span {
    width: 66px;
    height: 66px;
  }

  .archive-list > article {
    grid-template-columns: 1fr;
  }

  .rights-hold {
    grid-column: auto;
  }

  .artifact-heading {
    align-items: start;
    flex-direction: column;
  }

  .screenshot-gallery,
  .physical-artifacts {
    grid-template-columns: 1fr;
  }

  .port-facts {
    grid-template-columns: 1fr;
  }

  .platform-jump-nav {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .platform-jump-nav a {
    flex: 0 0 auto;
  }

  .platform-jump-nav > span {
    display: none;
  }

  .box-static-fallback,
  .island-box-static {
    grid-template-columns: 1fr;
  }

  .box-static-fallback img {
    max-height: 230px;
  }

  .island-box-static-art {
    min-height: 230px;
  }
}

@media (max-width: 580px) {
  .site-header,
  .site-footer,
  main {
    width: calc(100% - 32px);
  }

  .site-header {
    min-height: 76px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand > span {
    width: 42px;
    height: 42px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 0.65rem;
    letter-spacing: 0.09em;
  }

  .header-actions > button,
  .mobile-nav > summary {
    width: 44px;
    height: 44px;
  }

  .mobile-nav nav {
    right: -88px;
  }

  .signal-band p {
    font-size: 0.62rem;
  }

  .observatory-hero {
    padding-top: 36px;
  }

  .hero-copy h1,
  .hero h1 {
    font-size: clamp(2.85rem, 12.5vw, 4.2rem);
  }

  .collection-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .collection-stats > div {
    padding: 14px 7px 13px 0;
  }

  .collection-stats > div + div {
    padding-left: 9px;
  }

  .collection-stats dt {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
  }

  .collection-stats dd {
    font-size: 1.35rem;
  }

  .mascot-stage {
    min-height: 330px;
  }

  .mascot-stage img {
    height: 345px;
  }

  .browse {
    padding-top: 38px;
  }

  .catalog-shelves {
    padding-bottom: 58px;
  }

  .catalog-shelf {
    padding: 24px 0 12px;
  }

  .cards,
  .cards:has(> .game-card:last-child:nth-child(4)) {
    grid-template-columns: 1fr;
  }

  .game-card.is-featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .game-card,
  .game-card.is-featured {
    min-height: 0;
    --card-art-height: 250px;
    grid-template-rows: var(--card-art-height) 1fr;
  }

  .game-card-visual,
  .game-card.is-featured .game-card-visual {
    height: 250px;
  }

  .game-card h3,
  .game-card.is-featured h3 {
    min-height: 0;
    font-size: 2.1rem;
  }

  .game-card-copy {
    min-height: 265px;
  }

  .console-game {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
  }

  .console-game img {
    width: auto;
    height: auto;
    max-width: 82px;
    max-height: 88px;
  }

  .console-game > .planned-badge,
  .console-game > .explore-link {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 96px;
  }

  .cartridge-island {
    min-height: 320px;
  }

  .cartridge-island::before {
    width: min(56%, 230px);
  }

  .cartridge-island::after {
    width: min(40%, 164px);
  }

  .cartridge-fallback {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 13px;
  }

  .port > header {
    grid-template-columns: auto 1fr;
  }

  .port mark {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .release-list article {
    grid-template-columns: 1fr;
  }

  .artifact-section {
    padding: 16px;
  }

  .physical-gallery img {
    max-height: 270px;
  }

  .physical-gallery figure {
    grid-template-rows: 300px auto;
  }

  .port {
    padding: 38px 0;
  }

  .port-copy h3 {
    font-size: 2rem;
  }

  .concept-drawer > summary {
    padding: 15px 17px;
  }

  .concept-drawer .cartridge-island {
    min-height: 360px;
    margin: 16px;
  }

  .island-cartridge > p {
    right: 13px;
    bottom: 74px;
    left: 13px;
    max-width: none;
    text-align: center;
  }

  .island-cartridge-controls {
    right: 50%;
    bottom: 13px;
    transform: translateX(50%);
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions a {
    flex: 1 1 145px;
  }

  .collection-filters {
    padding: 14px;
  }

  .collection-filters label {
    flex-basis: 100%;
  }

  .box-concept-island,
  .island-box {
    min-height: 0;
  }

  .island-box {
    position: relative;
    inset: auto;
    padding: 68px 13px 13px;
  }

  .island-box-stage {
    min-height: 390px;
  }

  .packaging-concepts .box-concept-island, .packaging-label-stage { height: 620px; min-height: 620px; }
  .packaging-concepts .island-box { min-height: 0; }
  .packaging-concepts .island-box-stage { min-height: 390px; }
  .packaging-artifact-card > figcaption { min-height: 128px; }

  .island-box-disclaimer {
    top: 13px;
    right: 13px;
    left: 13px;
    text-align: center;
  }

  .island-box > p {
    position: static;
    max-width: none;
    margin: 8px 0 12px;
    text-align: center;
  }

  .island-box-controls {
    position: static;
    width: max-content;
    margin: 0 auto;
    transform: none;
  }

  .community-comments > header {
    align-items: start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: auto 1fr;
  }

  .site-footer p:last-child {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .island-box-model {
    transition: none !important;
  }
}

/* Authenticated saved-game preview, using the same game-page presentation. */
.admin-preview-banner { display:flex; gap:1.5rem; justify-content:space-between; align-items:center; margin:1.5rem 0 0; padding:1.25rem; border:2px solid var(--accent, #bbff65); border-radius:16px; background:var(--surface, #17211d); color:var(--text, #f5f5ee); }
.admin-preview-banner h2 { margin:.3rem 0; font-size:1.25rem; }
.admin-preview-banner p { margin:.4rem 0; max-width:64ch; }
.admin-preview-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.75rem; flex-shrink:0; }
.admin-preview-actions form { margin:0; }
.admin-preview-actions button { font:inherit; cursor:pointer; }
@media (max-width:800px) { .admin-preview-banner { align-items:flex-start; flex-direction:column; } .admin-preview-actions { width:100%; } }
/* Cartridge editions share a console, never a media/release identity. */
.cartridge-nav { display:flex; flex-wrap:wrap; align-items:center; gap:.55rem; padding:1rem; margin:1rem 0 1.5rem; background:var(--surface-soft); border:1px solid var(--line); border-radius:12px; }
.cartridge-nav > span { flex-basis:100%; font-size:.75rem; font-weight:750; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.cartridge-nav a { display:inline-flex; align-items:center; min-height:44px; padding:.65rem 1rem; border:1px solid var(--line); border-radius:8px; background:var(--surface-solid); color:var(--text); text-decoration:none; font-weight:750; }
.cartridge-nav a[aria-selected='true'] { border-color:var(--accent,var(--signal)); box-shadow:inset 0 -3px 0 var(--accent,var(--signal)); }
.cartridge-nav a:focus-visible { outline:3px solid var(--text); outline-offset:3px; }
.cartridge-panel { min-width:0; scroll-margin-top:100px; }
.cartridge-panel[hidden] { display:none; }
[data-cartridge-panels]:not([data-cartridge-enhanced='true']) .cartridge-panel + .cartridge-panel { margin-top:2rem; padding-top:2rem; border-top:1px solid var(--line); }
@media (max-width:640px) { .cartridge-nav a { flex:1 1 160px; justify-content:center; text-align:center; } }
