:root {
  color-scheme: dark;
  --void: #070908;
  --void-raised: #0d1110;
  --panel: #121715;
  --paper: #f2f0e8;
  --ink: #f5f5ed;
  --ink-dim: #b5bcb3;
  --ink-faint: #788179;
  --line: rgba(235, 239, 229, .16);
  --line-hot: rgba(255, 86, 24, .52);
  --hot: #ff571c;
  --hot-light: #ff956b;
  --mint: #67f0cf;
  --blue: #66a8ff;
  --violet: #9c83ef;
  --gold: #f0c85a;
  --display: "Avenir Next Condensed", "Avenir Next", "DIN Condensed", "Franklin Gothic Condensed", sans-serif;
  --body: "Avenir Next", "Seravek", "Gill Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --mono: "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--void); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% -10%, rgba(255, 87, 28, .09), transparent 34rem),
    radial-gradient(circle at 10% 45%, rgba(103, 240, 207, .045), transparent 30rem),
    var(--void);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
  overflow-x: clip;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }

.ambient-grid {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: .22;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 18px;
  top: 0;
  padding: 11px 16px;
  transform: translateY(-130%);
  border-radius: 0 0 8px 8px;
  background: var(--paper);
  color: var(--void);
  font-weight: 800;
  transition: transform 150ms ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 4px; }

.masthead {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(calc(100% - 48px), var(--max));
  min-height: 88px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 0 0 5px rgba(255,255,255,.035);
}
.brand-copy { display: grid; line-height: 1.08; }
.brand-copy b { font: 800 15px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.brand-copy small { margin-top: 4px; color: var(--ink-faint); font: 9px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.masthead-nav { display: flex; align-items: center; gap: clamp(15px, 2.5vw, 38px); }
.masthead-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-dim); font-size: 13px; font-weight: 650; text-decoration: none; transition: color 160ms ease; }
.masthead-nav a:hover { color: var(--ink); }
.account-teaser {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  color: var(--ink-faint);
  font: 10px/1 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.account-teaser > span { color: var(--hot); }

.atlas-hero {
  --atlas-px: 0;
  --atlas-py: 0;
  --atlas-scroll: 0;
  position: relative;
  min-height: 720px;
  height: clamp(720px, 100svh, 980px);
  overflow: hidden;
  overflow: clip;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 52% 46% at 69% 46%, rgba(255, 87, 28, .105), transparent 72%),
    radial-gradient(ellipse 34% 32% at 57% 34%, rgba(102, 168, 255, .055), transparent 78%),
    var(--void);
  isolation: isolate;
}
#atlasCanvas, .webgl-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
#atlasCanvas {
  z-index: 1;
  inset: auto;
  top: 64px;
  left: clamp(210px, 19vw, 360px);
  width: min(78vw, 1280px);
  height: calc(100% - 142px);
  display: block;
  touch-action: pan-y;
  cursor: grab;
  transform: translate3d(calc(var(--atlas-px) * 18px), calc((var(--atlas-py) * 12px) - (var(--atlas-scroll) * 22px)), 0) scale(1.025);
  transform-origin: 58% 48%;
  filter: saturate(1.08) contrast(1.025);
  will-change: transform;
  transition: filter 420ms ease, opacity 420ms ease;
}
#atlasCanvas.is-dragging { cursor: grabbing; }
.webgl-fallback {
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 72% 43%, rgba(255, 87, 28, .32), transparent 4%, rgba(255,87,28,.09) 18%, transparent 38%),
    radial-gradient(circle at 84% 21%, rgba(103, 240, 207, .14), transparent 2px),
    radial-gradient(circle at 68% 31%, rgba(255,255,255,.35), transparent 1px),
    linear-gradient(115deg, #080a09 35%, #111713 100%);
}
.webgl-fallback::before,
.webgl-fallback::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}
.webgl-fallback::before {
  top: 20%;
  left: 46%;
  width: min(48vw, 760px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 87, 28, .11);
  background:
    repeating-conic-gradient(from 20deg, rgba(255,87,28,.14) 0 1deg, transparent 1deg 18deg),
    radial-gradient(circle, transparent 0 47%, rgba(103,240,207,.08) 47.2% 47.5%, transparent 47.8%);
  opacity: .42;
  transform: translate3d(calc(var(--atlas-px) * 12px), calc(var(--atlas-py) * 8px), 0) rotate(-8deg);
}
.webgl-fallback::after {
  right: 9%;
  top: 40%;
  width: clamp(160px, 22vw, 360px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,87,28,.2), rgba(255,87,28,.045) 22%, transparent 68%);
  filter: blur(8px);
  transform: translate3d(calc(var(--atlas-px) * -6px), calc(var(--atlas-py) * -5px), 0);
}
.atlas-hero.webgl-failed #atlasCanvas { display: none; }
.atlas-hero.webgl-failed .atlas-hint { display: none; }
.atlas-hero.webgl-failed .webgl-fallback::before { opacity: .66; }
.atlas-hero::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,9,8,.99) 0%, rgba(7,9,8,.95) 24%, rgba(7,9,8,.7) 36%, rgba(7,9,8,.08) 57%, rgba(7,9,8,.16) 100%),
    linear-gradient(0deg, rgba(7,9,8,.9), transparent 26%, transparent 76%, rgba(7,9,8,.16));
}
.atlas-hero::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero-copy {
  position: absolute;
  z-index: 4;
  left: max(24px, calc((100vw - var(--max)) / 2));
  top: 46%;
  width: min(650px, 46vw);
  transform: translateY(-46%);
  translate: calc(var(--atlas-px) * -4px) calc((var(--atlas-scroll) * -10px) + (var(--atlas-py) * -3px));
  will-change: translate;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--ink-faint);
  font: 10px/1.2 var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow i { width: 28px; height: 1px; background: var(--hot); }
.hero-copy h1 {
  margin: 0;
  font: 800 clamp(72px, 7.3vw, 124px)/.76 var(--display);
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.hero-line { display: inline-block; white-space: nowrap; }
.hero-copy h1 em { color: var(--hot); font-family: var(--serif); font-size: .83em; font-weight: 500; letter-spacing: -.06em; text-transform: none; }
.hero-lede { max-width: 470px; margin: 30px 0 28px; color: var(--ink-dim); font-size: clamp(16px, 1.45vw, 21px); line-height: 1.5; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 750 12px/1 var(--mono);
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease;
}
.button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.38); }
.text-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-dim); font-size: 13px; text-underline-offset: 5px; transition: color 160ms ease; }
.text-link:hover { color: var(--ink); }
.hero-actions .text-link:first-child { color: var(--ink); font-weight: 700; }
.hero-actions .text-link:first-child span { margin-left: 8px; color: var(--hot); }
.trust-strip {
  display: flex;
  gap: 0;
  margin: 62px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-faint);
  font: 9px/1.3 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.trust-strip li { padding: 0 16px; border-left: 1px solid var(--line); }
.trust-strip li:first-child { padding-left: 0; border: 0; }
.trust-strip b { display: block; margin-bottom: 5px; color: var(--ink-dim); }

.hero-selection {
  position: absolute;
  z-index: 5;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 74px;
  width: min(310px, 27vw);
  padding: 9px;
  border: 1px solid var(--line);
  background: rgba(9, 12, 11, .78);
  box-shadow: 0 28px 90px rgba(0,0,0,.52), 0 0 44px rgba(255,87,28,.045);
  backdrop-filter: blur(18px);
  translate: calc(var(--atlas-px) * -14px) calc((var(--atlas-py) * -10px) + (var(--atlas-scroll) * -10px));
  transform-origin: 50% 72%;
  will-change: translate;
  transition: border-color 220ms ease, box-shadow 320ms ease;
}
.hero-selection::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: -2px;
  background:
    linear-gradient(var(--hot), var(--hot)) left top / 30px 1px no-repeat,
    linear-gradient(var(--hot), var(--hot)) left top / 1px 30px no-repeat,
    linear-gradient(var(--hot), var(--hot)) right bottom / 30px 1px no-repeat,
    linear-gradient(var(--hot), var(--hot)) right bottom / 1px 30px no-repeat;
  opacity: .42;
  pointer-events: none;
}
.selection-index {
  position: absolute;
  top: -24px;
  right: -1px;
  color: var(--hot-light);
  font: 9px/1 var(--mono);
  letter-spacing: .12em;
}
.selection-frame { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #111; }
.selection-frame img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.8,.2,1), filter 300ms ease; }
.capture-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(103,240,207,.08), transparent 42%),
    repeating-linear-gradient(115deg, transparent 0 18px, rgba(255,255,255,.025) 18px 19px),
    #111714;
  color: rgba(255,255,255,.16);
  font: 900 66px/1 var(--display);
}
.selection-frame img:not([src]), .selection-frame img[src=""] { display: none; }
.selection-frame img:not([src]) + .capture-fallback, .selection-frame img[src=""] + .capture-fallback { display: grid; }
.selection-frame img + .capture-fallback { display: none; }
.selection-frame.capture-missing img { display: none; }
.selection-frame.capture-missing .capture-fallback { display: grid; }
.selection-copy { padding: 15px 12px 12px; }
.selection-copy > p:first-child { margin: 0 0 5px; color: var(--mint); font: 8px/1 var(--mono); letter-spacing: .15em; }
.selection-copy h2 { margin: 0; font: 800 24px/1 var(--display); text-transform: uppercase; }
#heroSummary { min-height: 3.5em; margin: 8px 0 14px; color: var(--ink-dim); font-size: 12px; line-height: 1.45; }
.selection-release {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  padding: 9px 10px;
  border-left: 2px solid var(--mint);
  background: rgba(103,240,207,.045);
}
.selection-release span { color: var(--ink-faint); font: 7px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.selection-release code { overflow-wrap: anywhere; color: var(--mint); font: 700 8px/1.35 var(--mono); }
.selection-facts { display: grid; grid-template-columns: 1.35fr .7fr .85fr; gap: 6px; margin: 0 0 13px; opacity: .72; }
.selection-facts div { min-width: 0; padding-top: 8px; border-top: 1px solid var(--line); }
.selection-facts dt { color: var(--ink-faint); font: 7px/1.25 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.selection-facts dd { margin: 4px 0 0; overflow: hidden; color: var(--ink); font: 700 10px/1.2 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.button-play {
  width: 100%;
  min-height: 54px;
  border-color: var(--hot);
  background: var(--hot);
  color: #160905;
  box-shadow: 0 14px 38px rgba(255,87,28,.24);
  font-size: 11px;
}
.button-play:hover { border-color: #ff7543; background: #ff7543; }
.button-play:disabled { opacity: .5; cursor: wait; }
.selection-action-note { margin: 9px 2px 1px; color: var(--ink-faint); font: 8px/1.45 var(--mono); }

.orbit-nav-wrap {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 28px;
  width: min(calc(100% - 48px), var(--max));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}
.orbit-nav-wrap > p { flex: none; margin: 0; color: var(--ink-faint); font: 8px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.orbit-nav { display: flex; gap: 7px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.orbit-nav::-webkit-scrollbar { display: none; }
.orbit-button {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(8,10,9,.7);
  color: var(--ink-faint);
  cursor: pointer;
  font: 700 9px/1 var(--mono);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 220ms ease;
}
.orbit-button:hover { transform: translateY(-2px); }
.orbit-button:hover, .orbit-button[aria-current="true"] { border-color: var(--hot); background: var(--hot); color: var(--void); box-shadow: 0 8px 30px rgba(255,87,28,.15); }
.atlas-hint { position: absolute; z-index: 4; right: max(24px, calc((100vw - var(--max)) / 2)); top: 118px; margin: 0; color: rgba(255,255,255,.32); font: 8px/1 var(--mono); letter-spacing: .14em; }

@media (hover: hover) and (pointer: fine) {
  .hero-selection:hover,
  .hero-selection:focus-within {
    border-color: rgba(255,255,255,.3);
    box-shadow: 0 34px 110px rgba(0,0,0,.58), 0 0 64px rgba(255,87,28,.08);
  }
  .hero-selection:hover .selection-frame img,
  .hero-selection:focus-within .selection-frame img { transform: scale(1.025); filter: saturate(1.08) contrast(1.025); }
  .hero-actions .button span { transition: transform 180ms ease; }
  .hero-actions .button:hover span { transform: translate3d(3px, 3px, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes portal-reveal {
    from { opacity: 0; filter: blur(7px); }
    to { opacity: 1; filter: blur(0); }
  }
  @keyframes portal-stage-reveal {
    from { opacity: 0; filter: blur(13px) saturate(.65); }
    to { opacity: 1; filter: blur(0) saturate(1.08) contrast(1.025); }
  }
  @keyframes forge-drift {
    from { rotate: -10deg; }
    to { rotate: 10deg; }
  }
  #atlasCanvas { animation: portal-stage-reveal 1200ms cubic-bezier(.16,1,.3,1) 80ms both; }
  .hero-copy > * { animation: portal-reveal 720ms cubic-bezier(.16,1,.3,1) both; }
  .hero-copy > .eyebrow { animation-delay: 110ms; }
  .hero-copy > h1 { animation-delay: 170ms; }
  .hero-copy > .hero-lede { animation-delay: 250ms; }
  .hero-copy > .hero-actions { animation-delay: 320ms; }
  .hero-copy > .trust-strip { animation-delay: 400ms; }
  .hero-selection { animation: portal-reveal 850ms cubic-bezier(.16,1,.3,1) 330ms both; }
  .orbit-nav-wrap { animation: portal-reveal 700ms cubic-bezier(.16,1,.3,1) 520ms both; }
  .webgl-fallback::before { animation: forge-drift 18s ease-in-out infinite alternate; }
}

.catalog-section {
  position: relative;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: clamp(72px, 8vw, 120px) 0;
  scroll-margin-top: 12px;
}
.catalog-section:focus-visible { outline: none; }
.catalog-section:focus-visible .section-head .eyebrow { color: var(--hot-light); }
.section-head { display: grid; grid-template-columns: minmax(330px, .85fr) minmax(300px, .52fr); justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 48px; }
.section-head h2, .playtest-note h2 { margin: 0; font: 800 clamp(50px, 6vw, 92px)/.84 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.section-head > p { max-width: 540px; margin: 0; color: var(--ink-dim); font-size: 16px; line-height: 1.65; }
.catalog-status { min-height: 24px; margin-bottom: 16px; color: var(--ink-faint); font: 10px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.game-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.game-card {
  position: relative;
  grid-column: span 4;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--void-raised);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.game-card:first-child { grid-column: span 7; grid-row: span 2; display: flex; flex-direction: column; }
.game-card:nth-child(2), .game-card:nth-child(3) { grid-column: span 5; }
.game-card:hover, .game-card:focus-within { transform: translateY(-5px); border-color: rgba(255,255,255,.35); box-shadow: 0 26px 60px rgba(0,0,0,.3); }
.card-visual { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #101411; }
.game-card:first-child .card-visual { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; }
.game-card:first-child .card-body { flex: 0 0 auto; }
.card-visual img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 650ms cubic-bezier(.2,.8,.2,1), filter 250ms ease; }
.game-card:hover .card-visual img, .game-card:focus-within .card-visual img { transform: scale(1.045); filter: saturate(1.1) contrast(1.04); }
.card-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(7,9,8,.7), transparent 50%); }
.card-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background:
    radial-gradient(circle at 70% 30%, var(--card-accent, rgba(255,87,28,.28)), transparent 7%, transparent 28%),
    repeating-linear-gradient(120deg, transparent 0 24px, rgba(255,255,255,.025) 24px 25px),
    #101612;
  color: rgba(255,255,255,.15);
  font: 900 clamp(56px, 9vw, 126px)/1 var(--display);
  letter-spacing: -.08em;
}
.game-card.capture-missing .card-visual img { display: none; }
.game-card.capture-missing .card-fallback { display: grid; }
.card-number { position: absolute; z-index: 2; top: 12px; left: 12px; min-width: 34px; padding: 7px 8px; background: rgba(7,9,8,.82); color: var(--ink); font: 9px/1 var(--mono); backdrop-filter: blur(8px); }
.card-body { padding: 20px 20px 18px; }
.card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; color: var(--mint); font: 8px/1.2 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.card-meta i { width: 14px; height: 1px; background: currentColor; }
.card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.card-title-row h3 { margin: 0; font: 800 clamp(25px, 2.4vw, 40px)/.95 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
.card-play {
  flex: none;
  min-width: 124px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 750 9px/1 var(--mono);
  letter-spacing: .08em;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.card-play:hover { border-color: var(--hot); background: var(--hot); color: var(--void); }
.card-summary { min-height: 3em; margin: 12px 0 20px; color: var(--ink-dim); font-size: 13px; line-height: 1.5; }
.card-release { display: flex; align-items: center; gap: 9px; margin: -7px 0 14px; color: var(--ink-faint); font: 7px/1.2 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.card-release span { flex: none; }
.card-release code { overflow-wrap: anywhere; color: var(--mint); font: 700 8px/1.2 var(--mono); letter-spacing: .04em; }
.card-facts { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 10px; margin: 0; }
.card-facts div { min-width: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.card-facts dt { color: var(--ink-faint); font: 7px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.card-facts dd { margin: 5px 0 0; color: var(--ink); font: 700 10px/1.2 var(--mono); overflow-wrap: anywhere; }

.playtest-note {
  position: relative;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto clamp(64px, 8vw, 110px);
  display: grid;
  grid-template-columns: 120px minmax(300px, .8fr) minmax(440px, 1fr);
  gap: 50px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.note-number { color: var(--hot); font: 11px/1 var(--mono); letter-spacing: .15em; }
.playtest-note h2 { font-size: clamp(42px, 5vw, 76px); }
.playtest-note ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.playtest-note li { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.playtest-note li:first-child { border-top: 0; padding-top: 0; }
.playtest-note li > span { color: var(--hot-light); font: 9px/1.5 var(--mono); }
.playtest-note li b { font: 750 18px/1.1 var(--display); text-transform: uppercase; }
.playtest-note li p { margin: 6px 0 0; color: var(--ink-dim); font-size: 13px; line-height: 1.55; }

.portal-footer {
  width: min(calc(100% - 48px), var(--max));
  min-height: 150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: var(--ink-faint);
}
.portal-footer > div { display: flex; align-items: center; gap: 18px; color: var(--ink); }
.portal-footer b { font: 750 18px/1.05 var(--display); text-transform: uppercase; }
.footer-mark { width: 52px; height: 52px; display: block; object-fit: contain; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); }
.portal-footer p { max-width: 360px; font-size: 12px; text-align: right; }

.consent-dialog {
  width: min(850px, calc(100% - 28px));
  max-height: min(850px, calc(100svh - 28px));
  margin: auto;
  padding: clamp(24px, 4vw, 46px);
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 0;
  background: #0e1210;
  color: var(--ink);
  box-shadow: 0 35px 130px rgba(0,0,0,.78);
}
.consent-dialog::backdrop { background: rgba(3,5,4,.78); backdrop-filter: blur(14px); }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; font-size: 25px; }
.consent-head { max-width: 630px; }
.consent-head h2 { margin: 0; font: 800 clamp(38px, 5vw, 62px)/.9 var(--display); letter-spacing: -.035em; text-transform: uppercase; }
.consent-head > p:last-child { margin: 16px 0 0; color: var(--ink-dim); }
.consent-game { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; }
.consent-thumb { position: relative; width: 74px; aspect-ratio: 16/10; overflow: hidden; background: #151b17; }
.consent-thumb img { position: relative; z-index: 1; width: 100%; height: 100%; display: block; object-fit: cover; }
.consent-thumb span { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.2); font: 800 22px/1 var(--display); }
.consent-game > div:last-child { display: grid; }
.consent-game small { color: var(--ink-faint); font: 7px/1 var(--mono); letter-spacing: .1em; }
.consent-game b { margin-top: 4px; font: 750 17px/1 var(--display); text-transform: uppercase; }
.consent-game code { margin-top: 6px; color: var(--mint); font: 700 8px/1.3 var(--mono); overflow-wrap: anywhere; }
.consent-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent-choice {
  min-height: 245px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 170ms ease, background 170ms ease, transform 170ms ease;
}
.consent-choice:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.045); }
.consent-choice.share:hover { border-color: var(--mint); }
.consent-choice.private:hover { border-color: var(--hot-light); }
.choice-symbol { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: var(--mint); font-size: 22px; }
.private .choice-symbol { color: var(--hot-light); }
.consent-choice > span:nth-child(2) { display: grid; gap: 8px; }
.consent-choice b { font: 750 21px/1.05 var(--display); text-transform: uppercase; }
.consent-choice small { color: var(--ink-dim); font-size: 12px; line-height: 1.55; }
.consent-choice i { color: var(--ink); font: normal 750 10px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.consent-choice[aria-busy="true"] { opacity: .55; cursor: wait; }
.consent-details { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-dim); font-size: 12px; }
.consent-details summary { min-height: 44px; display: flex; align-items: center; color: var(--ink); cursor: pointer; font: 700 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.consent-details p { margin: 6px 0; max-width: 70ch; }
.dialog-error { min-height: 1.4em; margin: 12px 0 0; color: #ff9d87; font-size: 12px; }
.sr-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1100px) {
  #atlasCanvas { top: 58px; left: 15vw; width: 84vw; height: calc(100% - 132px); }
  .atlas-hero { min-height: 760px; }
  .hero-copy { width: 51vw; }
  .hero-copy h1 { font-size: clamp(66px, 9vw, 108px); }
  .hero-selection { width: min(300px, 32vw); }
  .atlas-hero::before {
    background:
      linear-gradient(90deg, rgba(7,9,8,.99), rgba(7,9,8,.93) 28%, rgba(7,9,8,.62) 43%, rgba(7,9,8,.1) 67%, rgba(7,9,8,.18)),
      linear-gradient(0deg, rgba(7,9,8,.9), transparent 27%);
  }
  .game-card, .game-card:first-child, .game-card:nth-child(2), .game-card:nth-child(3) { grid-column: span 6; grid-row: auto; display: block; }
  .game-card:first-child .card-visual { aspect-ratio: 16/10; }
  .playtest-note { grid-template-columns: 70px 1fr; }
  .playtest-note ol { grid-column: 2; }
}

@media (max-width: 880px) {
  #atlasCanvas { left: 8vw; width: 94vw; }
  .hero-copy { width: 55vw; }
  .hero-selection { width: min(285px, 35vw); }
  .trust-strip { margin-top: 44px; }
  .atlas-hint { top: 104px; }
}

@media (max-width: 760px) {
  .masthead { position: relative; width: calc(100% - 28px); min-height: 72px; transform: none; left: auto; }
  .brand-copy small, .masthead-nav a:not(:first-child), .account-teaser { display: none; }
  .masthead-nav { gap: 8px; }
  .atlas-hero { min-height: 1040px; height: auto; }
  #atlasCanvas {
    top: -18px;
    left: -14%;
    width: 128%;
    height: 610px;
    pointer-events: none;
    transform-origin: 50% 38%;
  }
  .atlas-hero::before {
    background:
      linear-gradient(0deg, rgba(7,9,8,.995) 0%, rgba(7,9,8,.98) 44%, rgba(7,9,8,.82) 70%, rgba(7,9,8,.46) 100%),
      linear-gradient(90deg, rgba(7,9,8,.72), transparent 35%, transparent 78%, rgba(7,9,8,.44));
  }
  .webgl-fallback { height: 610px; }
  .webgl-fallback::before { top: 3%; left: 8%; width: 90vw; }
  .hero-copy { position: relative; left: auto; top: auto; width: auto; transform: none; translate: calc(var(--atlas-px) * -2px) calc((var(--atlas-scroll) * -8px) + (var(--atlas-py) * -2px)); padding: 74px 18px 0; isolation: isolate; }
  .hero-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 34px -8px -26px -18px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(7,9,8,.94), rgba(7,9,8,.8) 72%, transparent 100%);
    filter: blur(14px);
  }
  .hero-copy h1 { font-size: clamp(58px, 19vw, 88px); }
  .hero-lede { margin-top: 22px; font-size: 16px; }
  .trust-strip { margin-top: 38px; overflow-x: auto; }
  .trust-strip li { flex: none; }
  .hero-selection { position: relative; right: auto; bottom: auto; width: calc(100% - 36px); margin: 58px auto 112px; }
  .atlas-hint { display: none; }
  .orbit-nav-wrap { width: calc(100% - 36px); bottom: 26px; }
  .catalog-section, .playtest-note, .portal-footer { width: calc(100% - 28px); }
  .catalog-section { padding: 72px 0; }
  .section-head { grid-template-columns: 1fr; gap: 30px; margin-bottom: 44px; }
  .section-head h2 { font-size: clamp(52px, 15vw, 76px); }
  .section-head > p { font-size: 14px; }
  .game-grid { display: block; }
  .game-card { margin-bottom: 14px; }
  .card-body { padding: 17px 16px; }
  .card-title-row h3 { font-size: 31px; }
  .playtest-note { display: block; padding: 50px 0; }
  .note-number { margin-bottom: 34px; }
  .playtest-note ol { margin-top: 44px; }
  .portal-footer { min-height: 230px; align-items: flex-start; flex-direction: column; justify-content: center; }
  .portal-footer p { text-align: left; }
  .consent-dialog { padding: 24px 18px; }
  .consent-head { padding-right: 38px; }
  .consent-choices { grid-template-columns: 1fr; }
  .consent-choice { min-height: 195px; }
}

@media (max-width: 430px) {
  .hero-line { white-space: normal; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { text-align: center; }
  .selection-facts, .card-facts { grid-template-columns: 1.25fr .75fr; }
  .selection-facts > div:last-child, .card-facts > div:last-child { display: none; }
  .card-title-row { display: grid; }
  .card-play { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .atlas-hero { --atlas-px: 0 !important; --atlas-py: 0 !important; --atlas-scroll: 0 !important; }
  #atlasCanvas { transform: scale(1.015); filter: none; will-change: auto; }
  .hero-copy { transform: translateY(-46%); translate: none; will-change: auto; }
  .hero-selection { translate: none; will-change: auto; }
  .atlas-hint { display: none; }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .hero-copy { transform: none; translate: none; }
}

@media (forced-colors: active) {
  .ambient-grid, .atlas-hero::after { display: none; }
  .button, .game-card, .consent-choice, .hero-selection { forced-color-adjust: auto; }
}
