/* mashbox.gg. Tokens, fonts, icons and the switch come from /ui/tokens.css (shared with the app). */

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16.5px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
a { color: inherit; }
img, svg { display: block; }
.i { display: inline-block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The page frame: hairlines down both sides and across each section, like a drawing board. */
.frame { max-width: 1240px; margin: 0 auto; border-inline: 1px solid var(--line); min-height: 100vh; }
.band { position: relative; border-top: 1px solid var(--line); padding: 96px 56px; }
.band::before, .band::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 9px;
  height: 9px;
  background:
    linear-gradient(var(--fg-faint), var(--fg-faint)) center / 1px 100% no-repeat,
    linear-gradient(var(--fg-faint), var(--fg-faint)) center / 100% 1px no-repeat;
}
.band::before { left: -5px; }
.band::after { right: -5px; }
.band-tight { padding-block: 56px; }
.band-flush { padding: 0; }

/* Type */
.label { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }
h1 { font-size: clamp(48px, 8.2vw, 104px); line-height: 0.96; letter-spacing: -0.048em; }
h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -0.042em; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.018em; }
.lede { font-size: clamp(18px, 1.6vw, 20.5px); line-height: 1.5; color: var(--fg-muted); max-width: 40em; }
.muted { color: var(--fg-muted); }
.fine { font-size: 14px; color: var(--fg-faint); }
.mono { font-family: var(--mono); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: 56px; }
.section-head p:not(.label) { color: var(--fg-muted); font-size: 18px; max-width: 38em; }

/* Buttons: pills, like the switch */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: 500 15px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--fg); color: var(--bg); }
.btn-dark:hover { background: #26262a; }
.btn-blue { background: var(--accent); color: #fff; }
.btn-blue:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--line-strong); background: var(--bg); color: var(--fg); }
.btn-outline:hover { background: var(--bg-muted); }
.btn-ghost { background: none; color: var(--fg-muted); }
.btn-ghost:hover { color: var(--fg); background: var(--bg-muted); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.btn-google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.btn-google:hover { background: #f3f5f8; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
  padding: 0 24px 0 28px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: block; color: var(--fg); }
.brand .wordmark { height: 20px; width: auto; }
.links { display: flex; gap: 4px; }
.links a { padding: 8px 12px; border-radius: var(--r-pill); color: var(--fg-muted); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.links a:hover { color: var(--fg); background: var(--bg-muted); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.avatar-xs { width: 22px; height: 22px; border-radius: 50%; }

/* Hero: a real frame from the game, all text on one left edge */
.hero { position: relative; display: flex; align-items: center; min-height: min(760px, calc(100vh - 64px)); padding: 120px 56px 220px; overflow: hidden; background: #0b0b0c; color: #fff; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 8, 9, 0.92) 0%, rgba(8, 8, 9, 0.7) 42%, rgba(8, 8, 9, 0.15) 75%), linear-gradient(180deg, rgba(8, 8, 9, 0) 55%, rgba(8, 8, 9, 0.85) 100%); }
.hero-copy { position: relative; z-index: 1; display: grid; justify-items: start; gap: 26px; max-width: 760px; text-align: left; }
.hero h1 .nowrap { white-space: nowrap; }
.hero h1 { color: #fff; }
.hero h1 .switch { --h: 0.62em; --w: 1.16em; --pad: 0.065em; font-size: 1em; margin-left: 0.12em; vertical-align: -0.02em; }
.hero h1 .switch::before { border-width: 0.045em; }
.hero .lede { color: rgba(255, 255, 255, 0.78); max-width: 34em; }
.hero .fine { color: rgba(255, 255, 255, 0.6); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.final .ctas { justify-content: center; }
.btn-light { background: #fff; color: #0a0a0b; }
.btn-light:hover { background: #e8e8ec; }
.btn-glass { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.18); }

/* A window around the real app (both the hero and the tour use it) */
.window {
  overflow: hidden;
  border-radius: 14px;
  background: #0b0b0c;
  box-shadow: var(--shadow-window);
}
.window-bar {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 6px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #111113;
  color: #a1a1aa;
  font: 500 12.5px/1 var(--font);
}
.window-title { display: inline-flex; align-items: center; gap: 8px; }
.window-title svg { width: 16px; height: 16px; }
.window-ctl { margin-left: auto; display: flex; }
.window-ctl .i { width: 40px; height: 14px; stroke-width: 1.4; }
.viewport { position: relative; overflow: hidden; background: #0b0b0c; }
.viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1100px;
  height: 700px;
  border: 0;
  transform-origin: 0 0;
  transition: transform 900ms var(--ease);
}
.showcase { position: relative; z-index: 2; margin-top: -160px; padding: 0 56px 88px; }
.showcase .viewport { aspect-ratio: 1100 / 700; }
.caption { margin-top: 18px; color: var(--fg-faint); font-size: 14px; text-align: center; }

/* Proof strip */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.proof li { display: grid; gap: 10px; align-content: start; padding: 36px 32px; border-left: 1px solid var(--line); }
.proof li:first-child { border-left: 0; }
.proof b { font-weight: 600; letter-spacing: -0.01em; }
.proof span { color: var(--fg-muted); font-size: 15px; line-height: 1.5; }

/* The guided tour */
.story-grid { display: grid; grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.steps { margin: 0; padding: 0; list-style: none; }
.step { display: grid; align-content: start; gap: 14px; min-height: 60vh; padding: 28px 0 28px 26px; border-left: 2px solid var(--line); opacity: 0.38; transition: opacity 400ms var(--ease), border-color 400ms var(--ease); }
.step:first-child { padding-top: 0; }
.step.is-active { opacity: 1; border-left-color: var(--accent); }
.step h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.032em; line-height: 1.12; }
.step p { color: var(--fg-muted); }
.stage-wrap { position: sticky; top: 96px; }
.stage .viewport { height: min(560px, calc(100vh - 220px)); }
.stage-note { margin-top: 14px; color: var(--fg-faint); font-size: 14px; min-height: 22px; }
.stage-game { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms var(--ease); pointer-events: none; }
.stage-game.on { opacity: 1; }

/* The usual way, and ours */
.compare { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.compare > div { padding: 36px; }
.usual { background: var(--bg-subtle); }
.usual h3, .ours h3 { margin-bottom: 18px; }
.chores { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: chore; }
.chores li { padding: 11px 0; border-top: 1px solid var(--line); color: var(--fg-muted); }
.usual .fine { margin-top: 18px; }
.ours { display: grid; align-content: start; gap: 22px; background: #0b0b0c; color: #ededef; }
.ours h3 { color: #fff; }
.flip { display: flex; align-items: center; gap: 22px; padding: 26px 24px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; background: #121214; }
.flip b { display: block; font-size: 30px; letter-spacing: -0.035em; line-height: 1.1; font-weight: 600; }
.flip span { color: #a1a1aa; font-size: 15px; }
.ours .switch { --line-strong: rgba(255, 255, 255, 0.18); --bg-muted: #1d1d21; }
.gets { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.gets { gap: 0; }
.gets li { padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); color: #c9c9d1; }

/* What we build: the game's own art, plain mod rows, a gallery */
.lineup { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.game-art { position: relative; display: block; aspect-ratio: 1920 / 640; overflow: hidden; background: #0b0b0c; color: #fff; text-decoration: none; }
.game-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.game-art:hover img { transform: scale(1.02); }
.game-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 8, 9, 0) 40%, rgba(8, 8, 9, 0.88)); }
.game-art-text { position: absolute; left: 28px; right: 28px; bottom: 24px; z-index: 1; display: grid; gap: 6px; }
.game-art-text b { font-size: clamp(26px, 3.2vw, 40px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.game-art-text span { color: rgba(255, 255, 255, 0.78); font-size: 16px; max-width: 46em; }
.game-art-lg { border-radius: 16px; aspect-ratio: 1920 / 720; }
.mod-rows { margin: 0; padding: 0; list-style: none; }
.mod-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 28px; border-top: 1px solid var(--line); }
.mod-row b { display: block; font-weight: 600; letter-spacing: -0.01em; }
.mod-row span.sum { color: var(--fg-muted); font-size: 15px; }
.discuss { color: var(--fg-muted); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.discuss:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #0b0b0c; }
.after { margin-top: 22px; }
.after a { color: var(--fg); font-weight: 500; text-underline-offset: 3px; }

/* Requests */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 28px; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.flow li { display: grid; gap: 8px; padding: 22px 22px 24px; border-left: 1px solid var(--line); }
.flow li:first-child { border-left: 0; }
.flow h3 { font-size: 17px; }
.flow p { color: var(--fg-muted); font-size: 15px; }
.board { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.board-head { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: var(--bg-subtle); }
.board-head h3 { font-size: 16px; }
.board-head span { margin-left: auto; color: var(--fg-faint); font: 400 13px/1 var(--mono); }
.req { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 24px; border-top: 1px solid var(--line); }
.req:first-child { border-top: 0; }
.votes { display: grid; justify-items: center; padding: 6px 0; border: 1px solid var(--line); border-radius: 10px; font-variant-numeric: tabular-nums; }
.votes b { font-size: 17px; }
.votes small { color: var(--fg-faint); font-size: 11px; }
.req-title { font-weight: 600; }
.req-game { color: var(--fg-faint); font-size: 14px; }
.status-tag { color: var(--fg-muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.s-shipped { color: var(--ok); }
.s-testing { color: var(--accent-text); }
.s-building { color: var(--warn); }
.req .upvote { min-width: 56px; padding: 6px 8px; }
.ask { display: grid; gap: 10px; margin-top: 28px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 16px; }
.ask h3 { font-size: 18px; }
.ask-fields { display: grid; gap: 8px; max-width: 640px; margin-top: 6px; }
.ask-fields label { font-weight: 600; font-size: 14.5px; margin-top: 6px; }
.ask-fields input, .ask-fields select, .ask-fields textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--fg); font: 400 15.5px/1.4 var(--font); }
.ask-fields input:focus, .ask-fields select:focus, .ask-fields textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(51, 85, 255, 0.18); }
.ask-fields textarea { resize: vertical; }
.board-empty { display: grid; justify-items: center; gap: 12px; padding: 48px 24px; text-align: center; }
.board-empty .i { width: 28px; height: 28px; color: var(--fg-faint); }
.board-empty p { color: var(--fg-muted); max-width: 40em; }

/* Your files */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 32px; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.facts li { display: grid; gap: 10px; align-content: start; padding: 28px 28px 30px 0; }
.facts li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.facts b { font-weight: 600; letter-spacing: -0.01em; }
.facts span { color: var(--fg-muted); font-size: 15.5px; }
figure { margin: 0; }
.declaration { display: grid; gap: 10px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-subtle); }
.declaration h3 { font-size: 17px; }
.declaration p { font-size: 17.5px; line-height: 1.55; }
.declaration small { display: block; margin-top: 10px; color: var(--fg-faint); font-size: 14px; }

/* Membership */
.plan { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.plan > div { padding: 40px; }
.plan h2 { margin-bottom: 26px; }
.checks { display: grid; margin: 0; padding: 0; list-style: none; }
.checks li { padding: 12px 0; border-top: 1px solid var(--line); }
.price { display: grid; align-content: center; justify-items: start; gap: 14px; border-left: 1px solid var(--line); background: var(--bg-subtle); }
.price .amount { font-size: 44px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 550; letter-spacing: -0.012em; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 18px; height: 18px; color: var(--fg-faint); transition: transform var(--fast) var(--ease); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--fg-muted); max-width: 46em; }

/* Last call */
.final { display: grid; justify-items: center; gap: 26px; padding-block: 120px; text-align: center; background:
  radial-gradient(var(--line) 1px, transparent 1.2px) 0 0 / 14px 14px; }
.final h2 { font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.05em; }

/* Footer */
.foot { display: grid; gap: 22px; padding: 48px 56px 56px; border-top: 1px solid var(--line); color: var(--fg-faint); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.foot-row a { color: var(--fg-muted); text-decoration: none; }
.foot-row a:hover { color: var(--fg); }
.foot .brand { color: var(--fg); }
.foot .brand .wordmark { height: 17px; }
.foot .legal { max-width: 82ch; }

/* Sub-pages */
.page { display: grid; gap: 32px; padding: 64px 56px 96px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-muted); text-decoration: none; font-size: 15px; }
.back:hover { color: var(--fg); }
.dl { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.dl > div { display: grid; align-content: start; gap: 18px; padding: 40px; }
.dl > div + div { border-left: 1px solid var(--line); background: var(--bg-subtle); }
.dl ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: after; }
.dl ol li { counter-increment: after; display: grid; grid-template-columns: 34px 1fr; color: var(--fg-muted); }
.dl ol li::before { content: counter(after, decimal-leading-zero); font: 400 13px/1.8 var(--mono); color: var(--fg-faint); }
.msg { min-height: 22px; font-size: 14.5px; color: var(--fg-muted); }
.msg[data-state="error"] { color: var(--danger); }
.msg[data-state="ok"] { color: var(--accent-text); }
.auth { display: grid; place-items: center; padding: 96px 24px 120px; }
.card { width: 100%; max-width: 440px; display: grid; gap: 18px; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); box-shadow: var(--shadow-2); }
.card .wordmark { height: 22px; width: auto; }
.card .alt { color: var(--fg-faint); font-size: 14px; }
.acct-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.acct-head .btn { margin-left: auto; }
.avatar { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); }
.acct-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.panel { display: grid; gap: 14px; align-content: start; justify-items: start; padding: 28px; }
.panel + .panel { border-left: 1px solid var(--line); }
.panel h3 { display: flex; align-items: center; gap: 10px; }
.panel p { color: var(--fg-muted); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 15px; color: var(--fg-muted); }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.045em; margin-bottom: 18px; }
.doc h2 { font-size: 22px; letter-spacing: -0.02em; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--fg-muted); }
.doc p + p { margin-top: 12px; }


/* Recent discussion on a game page */
.recent { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.recent-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--bg-subtle); }
.recent-head h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.recent-list { margin: 0; padding: 0; list-style: none; }
.recent-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }
.recent-list li:first-child { border-top: 0; }
.recent-list .who { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 14px; }
.recent-list .who b { font-weight: 600; }
.recent-list .who a { color: var(--accent-text); text-decoration: none; font: 500 12.5px/1 var(--mono); }
.recent-list .who time { color: var(--fg-faint); font: 400 12px/1 var(--mono); }
.recent-list p { color: var(--fg-muted); font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.recent-empty { padding: 22px 20px; color: var(--fg-muted); }

/* Avatars everywhere: an uploaded picture or the first letter of the username */
.av { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--bg-muted); color: var(--fg-muted); font: 600 13px/1 var(--font); text-transform: uppercase; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-lg { width: 72px; height: 72px; font-size: 26px; }

/* Account: profile */
.profile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 32px; align-items: start; padding: 28px; border: 1px solid var(--line); border-radius: 16px; }
.profile-pic { display: flex; align-items: center; gap: 16px; }
.pic-actions { display: grid; gap: 6px; justify-items: start; }
.pic-actions label { cursor: pointer; }
.profile-name { display: grid; gap: 8px; }
.profile-name label { font-weight: 600; }
.field-row { display: flex; align-items: center; height: 42px; max-width: 360px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); }
.field-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(51, 85, 255, 0.18); }
.field-row .at { padding: 0 4px 0 12px; color: var(--fg-faint); font-family: var(--mono); }
.field-row input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--fg); font: 400 16px/1 var(--mono); outline: none; }
.hint { color: var(--fg-faint); font-size: 14px; max-width: 46ch; }
.profile-save { display: grid; gap: 8px; justify-items: end; }

/* Coming soon */
.queue { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.queue:empty { display: none; }
.queue li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 24px; border-top: 1px solid var(--line); }
.queue li:first-child { border-top: 0; background: var(--bg-subtle); }
.queue .rank { font: 500 15px/1 var(--mono); color: var(--fg-faint); }
.queue li:first-child .rank { color: var(--accent-text); }
.queue h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 19px; }
.queue p { color: var(--fg-muted); font-size: 15px; margin-top: 4px; }
.next-up { color: var(--accent-text); font-size: 14px; font-weight: 600; }
.upvote { display: grid; justify-items: center; gap: 2px; min-width: 64px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); color: var(--fg); font: 600 16px/1 var(--font); cursor: pointer; font-variant-numeric: tabular-nums; }
.upvote small { color: var(--fg-faint); font: 400 11px/1 var(--mono); }
.upvote:hover { border-color: var(--fg-faint); }
.upvote[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }

/* A game's mods, in full */
.mod-row.more a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.mod-catalog { margin-top: 56px; }
.mod-catalog-head h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; }
.mod-catalog-head .lede { max-width: 46em; margin-top: 8px; color: var(--fg-muted); font-size: 17px; }
.mod-index { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 8px; }
.mod-index:has(.mod-index-group) { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px 28px; }
.mod-index-group { display: grid; align-content: start; gap: 4px; }
.mod-index-group b { margin-bottom: 2px; color: var(--fg); font-size: 13px; font-weight: 600; }
.mod-index-group a { width: max-content; max-width: 100%; }
.mod-category { margin: 56px 0 0; padding-bottom: 12px; font-size: 22px; font-weight: 650; letter-spacing: -0.02em; scroll-margin-top: 80px; }
.mod-index a { color: var(--fg-muted); font-size: 14.5px; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.mod-index a:hover { color: var(--fg); border-color: var(--fg-faint); }
.mod-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.mod-detail:not(:has(.mod-media)) { grid-template-columns: minmax(0, 1fr); }
.mod-text h4 { margin: 0; font-size: 23px; font-weight: 650; letter-spacing: -0.02em; }
.mod-text .pitch { margin-top: 4px; color: var(--fg); font-size: 17px; }
.mod-text .when { margin-top: 6px; color: var(--accent-text); font-size: 14px; }
.mod-text > p:not(.pitch):not(.when) { margin-top: 14px; color: var(--fg-muted); }
.mod-section { margin-top: 20px; }
.mod-section h5 { margin: 0 0 6px; font-size: 14.5px; font-weight: 600; }
.mod-section ul, .mod-section ol { margin: 0; padding-left: 20px; color: var(--fg-muted); font-size: 15px; }
.mod-section li { padding: 3px 0; break-inside: avoid; }
.mod-section .cols { columns: 2 180px; column-gap: 28px; }
.mod-media { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 16px 14px; }
.mod-media figure { grid-column: span 2; }
.mod-media figure:nth-child(n+3) { grid-column: span 1; }
.mod-media figure:nth-child(n+3) figcaption { font-size: 12.5px; }
.mod-media figure { margin: 0; }
.mod-media img, .mod-media video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 12px; background: #0b0b0c; }
.mod-media figcaption { margin-top: 6px; color: var(--fg-faint); font-size: 13.5px; }
@media (max-width: 900px) {
  .mod-detail { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mod-media { order: -1; }
}

/* Community: #general plus one channel per game. */
body[data-view="community"] .foot { display: none; }
body[data-view="community"] .frame { max-width: none; border-inline: 0; }
.discord {
  display: grid;
  grid-template-columns: 72px 240px minmax(0, 1fr);
  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);
  min-height: 480px;
  background: var(--bg);
  color: var(--fg);
}
.servers { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; background: #060607; border-right: 1px solid var(--line); }
.server { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--accent); color: var(--accent); }
.server svg { width: 34px; height: 34px; }
.server[aria-current="true"]::before { content: ""; position: absolute; left: -12px; width: 4px; height: 40px; border-radius: 0 4px 4px 0; background: #fff; }
.sidebar { display: flex; flex-direction: column; min-height: 0; background: var(--bg-subtle); border-right: 1px solid var(--line); }
.sidebar-head { display: flex; align-items: center; height: 48px; flex: none; padding: 0 16px; border-bottom: 1px solid var(--line); }
.sidebar-head h2 { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.sidebar-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 16px; }
.category { margin: 18px 8px 4px; color: var(--fg-faint); font-size: 12px; font-weight: 600; }
.channel { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px; border-radius: 6px; color: var(--fg-faint); text-decoration: none; font-size: 15px; font-weight: 500; }
.channel:hover { background: rgba(255, 255, 255, 0.04); color: var(--fg-muted); }
.channel[aria-current="true"] { background: rgba(255, 255, 255, 0.08); color: var(--fg); }
.channel .hash { width: 20px; color: var(--fg-faint); font-size: 20px; line-height: 1; text-align: center; }
.channel span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me { display: flex; align-items: center; gap: 10px; flex: none; height: 56px; padding: 0 10px; background: #09090a; border-top: 1px solid var(--line); font-size: 14px; }
.me > div { min-width: 0; }
.me b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me a { color: var(--accent-text); font-size: 12.5px; text-decoration: none; }
.main { position: relative; display: grid; grid-template-rows: 48px minmax(0, 1fr); min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 10px 0 16px; border-bottom: 1px solid var(--line); }
.chat-head .hash { color: var(--fg-faint); font-size: 22px; line-height: 1; }
.chat-head h3 { font-size: 16px; font-weight: 650; white-space: nowrap; }
.chat-topic { flex: 1; min-width: 0; margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--line-strong); color: var(--fg-faint); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--fg-faint); cursor: pointer; }
.icon-btn:hover, .icon-btn[aria-pressed="true"] { color: var(--fg); }
.icon-btn:hover { background: rgba(255, 255, 255, 0.06); }
.narrow-only { display: none; }
.content { display: grid; grid-template-columns: minmax(0, 1fr) 240px; min-height: 0; }
.discord[data-members="off"] .content { grid-template-columns: minmax(0, 1fr); }
.discord[data-members="off"] .members { display: none; }
.conversation { display: grid; grid-template-rows: minmax(0, 1fr) auto auto auto; min-width: 0; min-height: 0; }
.messages { margin: 0; padding: 0 0 12px; list-style: none; overflow-y: auto; }
.welcome { padding: 32px 16px 8px; }
.welcome .mark { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 12px; border-radius: 50%; background: var(--bg-muted); color: var(--fg); font-size: 40px; font-weight: 300; }
.welcome h4 { margin: 0 0 6px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.welcome p { color: var(--fg-muted); }
.divider { display: flex; align-items: center; gap: 8px; margin: 18px 16px 2px; color: var(--fg-faint); font-size: 12px; font-weight: 600; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.post { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; padding: 2px 48px 2px 16px; }
.post.head { margin-top: 14px; }
.post:hover { background: rgba(255, 255, 255, 0.03); }
.post .av { width: 40px; height: 40px; margin-top: 2px; font-size: 15px; }
.post .meta { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.post .name { font-weight: 600; }
.post .team { color: var(--accent-text); }
.post .role { color: var(--accent-text); font-size: 12px; font-weight: 600; }
.post .stamp { color: var(--fg-faint); font-size: 12px; white-space: nowrap; }
.post .gutter { visibility: hidden; color: var(--fg-faint); font-size: 11px; line-height: 22px; text-align: right; white-space: nowrap; }
.post.cont:hover .gutter { visibility: visible; }
.post .body { grid-column: 2; color: #dbdbe0; font-size: 15px; line-height: 22px; white-space: pre-wrap; overflow-wrap: anywhere; }
.post .remove { position: absolute; top: -12px; right: 12px; display: none; width: 32px; height: 28px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg-muted); color: var(--fg-muted); cursor: pointer; }
.post:hover .remove, .post .remove:focus-visible { display: grid; place-items: center; }
.post .remove:hover { color: var(--danger); }
.composer { display: flex; align-items: flex-end; gap: 8px; margin: 0 16px 4px; padding: 6px 6px 6px 16px; border-radius: 10px; background: var(--bg-muted); }
.composer:focus-within { box-shadow: 0 0 0 1px rgba(51, 85, 255, 0.55); }
.composer textarea { flex: 1; min-width: 0; max-height: 180px; padding: 7px 0; border: 0; background: none; color: var(--fg); font: 400 15px/1.45 var(--font); resize: none; outline: none; }
.send { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; cursor: pointer; }
.send:disabled { opacity: 0.4; cursor: default; }
.gate { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 16px 4px; padding: 12px 14px; border-radius: 10px; background: var(--bg-muted); color: var(--fg-muted); }
.gate:empty { display: none; }
.gate .field-row { flex: 1; min-width: 200px; height: 38px; background: var(--bg); border-color: var(--line-strong); }
.gate .field-row input { color: var(--fg); }
.gate .btn-dark { background: var(--accent); color: #fff; }
.chat-note { min-height: 20px; margin: 0 16px 8px; color: var(--fg-faint); font-size: 12.5px; }
.chat-note[data-state="error"] { color: var(--danger); }
.members { min-height: 0; overflow-y: auto; padding: 4px 8px 16px; background: var(--bg-subtle); border-left: 1px solid var(--line); }
.members h4 { margin: 18px 8px 4px; color: var(--fg-faint); font-size: 12px; font-weight: 600; }
.members h4 span { margin-left: 6px; font-weight: 500; }
.member { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px; border-radius: 6px; color: var(--fg-muted); }
.member:hover { background: rgba(255, 255, 255, 0.04); color: var(--fg); }
.member .av { width: 32px; height: 32px; }
.member b { min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member.team b { color: var(--accent-text); }
.members .empty { margin: 18px 8px; color: var(--fg-faint); font-size: 13px; }
.scrim { display: none; }
@media (max-width: 1100px) {
  .content, .discord[data-members="off"] .content { grid-template-columns: minmax(0, 1fr); }
  .members { position: absolute; top: 48px; right: 0; bottom: 0; z-index: 4; width: 240px; box-shadow: -12px 0 32px rgba(0, 0, 0, 0.45); }
  .discord:not([data-members="open"]) .members { display: none; }
}
@media (max-width: 760px) {
  .discord { grid-template-columns: minmax(0, 1fr); }
  .servers { display: none; }
  .sidebar { position: fixed; top: 64px; bottom: 0; left: 0; z-index: 30; width: min(300px, 86vw); transform: translateX(-100%); transition: transform 0.2s var(--ease); }
  .discord[data-drawer="open"] .sidebar { transform: none; }
  .discord[data-drawer="open"] .scrim { display: block; position: fixed; inset: 64px 0 0 0; z-index: 29; border: 0; background: rgba(0, 0, 0, 0.55); }
  .narrow-only { display: grid; }
  .chat-head { padding-left: 6px; }
  .chat-topic { display: none; }
  .chat-head h3 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .post { padding-right: 16px; }
}

/* Smaller screens */
@media (max-width: 1080px) {
  .band, .hero, .page, .foot { padding-inline: 32px; }
  .showcase { padding-inline: 32px; }
  .links { display: none; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof li:nth-child(3) { border-left: 0; }
  .proof li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(3) { border-left: 0; }
  .flow li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hero { padding: 88px 32px 180px; min-height: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .profile { grid-template-columns: 1fr; }
  .profile-save { justify-items: start; }
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .stage-wrap { order: -1; top: 64px; z-index: 5; padding: 12px 0; background: var(--bg); }
  .stage .viewport { height: 32vh; }
  .stage-note { display: none; }
  .step { min-height: 56vh; padding-top: 32px; }
  .compare, .plan, .dl { grid-template-columns: 1fr; }
  .price, .dl > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 22px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
  .acct-grid { grid-template-columns: 1fr; }
  .panel + .panel { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .hero { padding: 64px 16px 150px; }
  .hero::after { background: linear-gradient(180deg, rgba(8, 8, 9, 0.55) 0%, rgba(8, 8, 9, 0.88) 70%); }
  .showcase { margin-top: -110px; }
  .game-art { aspect-ratio: 16 / 10; }
  .game-art-text { left: 18px; right: 18px; bottom: 16px; }
  .mod-row { padding-inline: 16px; }
  .frame { border-inline: 0; }
  .band::before, .band::after { display: none; }
  .band, .hero, .page, .foot, .showcase { padding-inline: 16px; }
  .band { padding-block: 72px; }
  .hero { padding-top: 64px; }
  .nav { gap: 12px; padding: 0 12px 0 16px; }
  .nav-actions .hide-narrow { display: none; }
  .proof, .flow { grid-template-columns: 1fr; }
  .proof li, .flow li { border-left: 0; border-top: 1px solid var(--line); padding-inline: 0; }
  .flow li { padding-inline: 20px; }
  .proof li:first-child, .flow li:first-child { border-top: 0; }
  .compare > div, .plan > div, .dl > div { padding: 24px; }
  .flip b { font-size: 24px; }
  .req { grid-template-columns: 56px minmax(0, 1fr); padding-inline: 16px; }
  .req .status-tag { grid-column: 2; justify-self: start; }
  .lineup-head { flex-wrap: wrap; }
  .lineup-head .btn { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .viewport iframe, .step { transition: none; }
}

/* ==========================================================================================
   Theme: deep navy pages, a near-black header, slate panels, a soft blue accent next to the
   logo's own blue (--brand), pale text, rounded-md controls with focus rings. Everything below
   overrides the rules above where they meet.
   ========================================================================================== */
:root,
[data-theme="dark"],
.theme-dark {
  --brand: #3355ff;
  --head: #13161d;
  --page: #172231;
  --panel: #283f57;
  --bg: #172231;
  --bg-subtle: #16202d;
  --bg-muted: #233447;
  --surface: #1f2f42;
  --fg: #e6eef5;
  --fg-muted: #a7b6c4;
  --fg-faint: #8597a8;
  --line: rgba(205, 215, 225, 0.1);
  --line-strong: rgba(205, 215, 225, 0.2);
  --accent: #7c9dff;
  --accent-hover: #a3baff;
  --accent-ink: #0b1b2a;
  --accent-soft: rgba(124, 157, 255, 0.14);
  --accent-text: #7c9dff;
  --ok: #8fcf4a;
  --ok-soft: rgba(143, 207, 74, 0.14);
  --warn: #e5b143;
  --danger: #ff7b6e;
  --r-pill: 6px;
  --shadow-2: 0 18px 40px -18px rgba(0, 0, 0, 0.75);
  --shadow-window: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}
html { background: var(--head); }
body { overflow-x: clip; }
body { background: linear-gradient(180deg, var(--head) 0, var(--page) 520px) fixed, var(--page); color: #cdd7e1; }
h1, h2, h3, b { color: #fff; }
.frame { border-inline: 0; max-width: 1240px; }
.band { padding: 80px 56px; border-top-color: var(--line); }
.band::before, .band::after { display: none; }
h2 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.035em; }
.section-head { margin-bottom: 40px; }

/* Controls: rounded-md, visible focus rings */
.btn { border-radius: 6px; font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-blue { background: linear-gradient(90deg, #5b78ff 0%, #3355ff 100%); color: #fff; border-color: rgba(255, 255, 255, 0.12); }
.btn-blue:hover { background: linear-gradient(90deg, #7590ff 0%, #4463ff 100%); }
.btn-outline { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--fg); }
.btn-outline:hover { background: rgba(124, 157, 255, 0.12); border-color: rgba(124, 157, 255, 0.45); }
.btn-ghost { color: var(--fg-muted); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.btn-dark { background: var(--panel); color: #fff; }
.btn-dark:hover { background: #34506c; }
.btn-glass { border-radius: 6px; }

/* Header */
.nav { background: rgba(19, 22, 29, 0.94); border-bottom: 1px solid rgba(0, 0, 0, 0.5); }
.brand { color: #fff; }
.links a { border-radius: 4px; color: #b8c6d3; font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.links a:hover { color: #fff; background: rgba(124, 157, 255, 0.1); }
.nav-menu, .links .links-narrow { display: none; }

/* Hero: our clip running, the copy on one left edge */
.hero { min-height: min(720px, calc(100vh - 64px)); margin-inline: calc(50% - 50vw); padding: 110px max(56px, calc(50vw - 564px)) 120px; background: #0e141b; }
.hero-bg { object-position: 50% 50%; }
.hero::after { background: linear-gradient(90deg, rgba(14, 20, 27, 0.94) 0%, rgba(14, 20, 27, 0.72) 40%, rgba(14, 20, 27, 0.1) 78%), linear-gradient(180deg, rgba(19, 22, 29, 0.35) 0%, rgba(23, 34, 49, 0) 30%, rgba(23, 34, 49, 0) 70%, var(--page) 100%); }
.hero h1 { font-size: clamp(44px, 7vw, 92px); max-width: 9.5em; }
.hero .lede { color: #cdd7e1; }
.hero-caption { position: absolute; z-index: 1; right: max(56px, calc(50vw - 564px)); bottom: 28px; max-width: 30em; color: rgba(205, 215, 225, 0.75); font-size: 13.5px; text-align: right; }

/* Four presses of the D-pad */
.dpad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 40px; padding: 0; list-style: none; }
.dpad li { display: grid; gap: 6px; align-content: start; }
.dpad img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 10px 24px -14px rgba(0, 0, 0, 0.9); margin-bottom: 6px; }
.dpad b { font-size: 15.5px; }
.dpad span { color: var(--fg-muted); font-size: 14.5px; line-height: 1.45; }
.facts { border-color: var(--line); }
.facts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.facts li + li { border-left-color: var(--line); }

/* The clip player: big stage, info panel, thumbnail strip */
.player { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0; border-radius: 8px; overflow: hidden; background: rgba(0, 0, 0, 0.25); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), var(--shadow-2); }
.player-stage { background: #000; }
.player-stage video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; background: #000; }
.player-info { display: grid; align-content: start; gap: 12px; padding: 24px; background: linear-gradient(160deg, rgba(40, 63, 87, 0.9), rgba(19, 22, 29, 0.95)); }
.player-info h3 { font-size: 21px; line-height: 1.2; }
.player-info p { color: #cdd7e1; font-size: 15px; line-height: 1.5; }
.player-info .player-rough { color: var(--warn); font-size: 13.5px; }
.player-info .player-rough:empty { display: none; }
.strip { grid-column: 1 / -1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 8px; margin: 0; padding: 10px; list-style: none; overflow-x: auto; background: rgba(0, 0, 0, 0.3); scrollbar-width: thin; }
.strip button { display: grid; gap: 6px; width: 100%; padding: 0; border: 0; background: none; color: var(--fg-muted); font: 500 12.5px/1.3 var(--font); text-align: left; cursor: pointer; }
.strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; opacity: 0.7; outline: 2px solid transparent; outline-offset: -2px; transition: opacity var(--fast) var(--ease), outline-color var(--fast) var(--ease); }
.strip button:hover img { opacity: 1; }
.strip button[aria-pressed="true"] { color: #fff; }
.strip button[aria-pressed="true"] img { opacity: 1; outline-color: var(--accent); }

/* World x gameplay grid */
.xgrid-wrap { overflow-x: auto; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); background: rgba(0, 0, 0, 0.18); }
.xgrid { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14.5px; }
.xgrid th, .xgrid td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.xgrid thead th { background: rgba(40, 63, 87, 0.55); color: #fff; font-weight: 600; }
.xgrid thead th span { display: block; color: var(--fg-faint); font-size: 12.5px; font-weight: 500; }
.xgrid tbody th { color: #fff; font-weight: 600; white-space: nowrap; }
.xgrid tbody tr:last-child th, .xgrid tbody tr:last-child td { border-bottom: 0; }
.xgrid tbody tr:hover { background: rgba(124, 157, 255, 0.05); }
.cell { display: inline-flex; align-items: center; min-height: 28px; padding: 0; border: 0; background: none; font: 600 13.5px/1.2 var(--font); white-space: nowrap; }
.cell.works { color: var(--ok); }
.cell.coming { color: var(--fg-faint); font-weight: 500; }
.cell.own { color: var(--fg-muted); font-weight: 500; }
button.cell { cursor: pointer; border-radius: 4px; }
button.cell span { margin-left: 4px; color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(124, 157, 255, 0.45); }
button.cell:hover span { color: #fff; text-decoration-color: currentColor; }

/* Game capsules */
.capsules { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.capsule { display: grid; height: 100%; overflow: hidden; border-radius: 6px; background: linear-gradient(180deg, rgba(40, 63, 87, 0.55), rgba(19, 22, 29, 0.6)); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); color: inherit; text-decoration: none; transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.capsule:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(124, 157, 255, 0.5), 0 14px 30px -16px rgba(0, 0, 0, 0.9); }
.capsule-art { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0f1922; }
.capsule-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.capsule-frame { position: absolute; inset: 0; opacity: 0; transition: opacity 260ms var(--ease); }
.capsule:hover .capsule-frame, .capsule:focus-visible .capsule-frame { opacity: 1; }
.art-text { display: flex; align-items: flex-end; width: 100%; height: 100%; padding: 14px; background: linear-gradient(135deg, #283f57, #13161d); color: #fff; font: 700 clamp(17px, 1.5vw, 21px)/1.15 var(--font); letter-spacing: -0.02em; }
.capsule-body { display: grid; gap: 6px; align-content: start; padding: 12px 12px 14px; }
.capsule-body b { font-size: 14.5px; line-height: 1.25; }
.capsule-body > span { color: var(--fg-muted); font-size: 13px; line-height: 1.4; }
.capsule-body .capsule-meta { color: var(--fg-faint); font-size: 12px; }
.st { font-weight: 600; }
.st-works { color: var(--ok); }
.st-testing { color: var(--accent); }
.st-coming { color: var(--fg-faint); }

/* What you need */
.need-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: need; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.need-how li { counter-increment: need; display: grid; gap: 6px; align-content: start; padding: 20px 22px; background: rgba(40, 63, 87, 0.35); }
.need-how li + li { border-left: 1px solid var(--line); }
.need-how b::before { content: counter(need) ". "; color: var(--accent); }
.need-how span { color: var(--fg-muted); font-size: 15px; }
.need-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.need-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0; overflow: hidden; border-radius: 8px; background: linear-gradient(135deg, rgba(40, 63, 87, 0.5), rgba(19, 22, 29, 0.55)); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3); scroll-margin-top: 84px; }
.need-card:target { box-shadow: 0 0 0 2px var(--accent); }
.need-card > .need-art { width: 100%; height: auto; aspect-ratio: 16 / 5; object-fit: cover; object-position: 50% 45%; }
.need-card > .art-text { font-size: 22px; padding: 18px 20px; }
.need-body { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 18px 20px 20px; }
.need-body h3 { font-size: 18px; line-height: 1.25; }
.need-src { color: var(--fg-muted); font-size: 13.5px; }
.need-src b { color: #cdd7e1; font-weight: 600; }
.need-link { margin-left: 8px; color: var(--accent); font-weight: 600; text-decoration: none; }
.need-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.need-own { color: #cdd7e1; font-size: 15px; line-height: 1.5; }
.need-body .fine { font-size: 13px; color: var(--fg-faint); }
code { font: 400 0.92em/1.4 var(--mono); color: #cdd7e1; overflow-wrap: anywhere; }
.tree { margin: 2px 0 0; padding: 12px 14px; border-radius: 6px; background: #0f1922; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); font: 400 12.5px/1.65 var(--mono); color: #9fb0bf; overflow-x: auto; }
.tree-root { color: #cdd7e1; white-space: nowrap; }
.tree ul { margin: 0; padding: 0; list-style: none; }
.tree li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-left: calc(var(--d) * 16px + 14px); position: relative; white-space: nowrap; }
.tree li::before { content: ""; position: absolute; left: calc(var(--d) * 16px + 2px); top: 0; bottom: 50%; width: 8px; border-left: 1px solid rgba(205, 215, 225, 0.25); border-bottom: 1px solid rgba(205, 215, 225, 0.25); }
.tree li.hit span { color: #fff; font-weight: 600; }
.tree li em { color: var(--accent); font: 600 11.5px/1.65 var(--font); font-style: normal; }
.need-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 28px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.need-rules > div { display: grid; gap: 12px; align-content: start; padding: 26px 28px; background: rgba(0, 0, 0, 0.15); }
.need-rules > div + div { border-left: 1px solid var(--line); }
.need-rules p { color: var(--fg-muted); }
.checks li { border-top-color: var(--line); color: #cdd7e1; }

/* Every game at a glance */
.glance-wrap { margin: 0 0 28px; overflow-x: auto; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); background: rgba(0, 0, 0, 0.18); }
.glance { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14.5px; }
.glance th, .glance td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.glance thead th { background: rgba(40, 63, 87, 0.55); color: #fff; font-weight: 600; font-size: 13.5px; }
.glance tbody tr:last-child th, .glance tbody tr:last-child td { border-bottom: 0; }
.glance tbody th a { color: #fff; font-weight: 600; text-decoration: none; }
.glance tbody th a:hover { color: var(--accent); }
.glance td { color: var(--fg-muted); }
.glance code { color: #fff; }

/* Engine compare */
.compare { border: 0; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.compare-one { grid-template-columns: 1fr; }
.usual { background: rgba(0, 0, 0, 0.18); }
.ours { gap: 0; background: linear-gradient(135deg, rgba(40, 63, 87, 0.85), rgba(19, 22, 29, 0.9)); color: #cdd7e1; }
.chores li { border-top-color: var(--line); }
.gets li { border-top-color: rgba(255, 255, 255, 0.1); color: #dbe6ef; }

/* Panels that existed before keep working on navy */
.board, .ask, .plan, .dl, .acct-grid, .profile, .queue, .recent, .lineup, .flow { border-color: var(--line); background: rgba(0, 0, 0, 0.12); border-radius: 8px; }
.board-head, .recent-head, .price, .dl > div + div { background: rgba(40, 63, 87, 0.35); }
.declaration { background: rgba(40, 63, 87, 0.35); border-color: var(--line); }
.card { background: #1f2f42; border-color: var(--line); border-radius: 8px; }
.ask-fields input, .ask-fields select, .ask-fields textarea, .field-row { background: #0f1922; border-color: var(--line-strong); border-radius: 6px; }
.upvote { border-radius: 6px; background: rgba(0, 0, 0, 0.2); }
.after a { color: var(--accent); }
.foot { border-top-color: var(--line); background: rgba(0, 0, 0, 0.2); color: var(--fg-faint); }
.foot .brand { color: #fff; }
.foot .legal a { color: var(--fg-muted); }
.servers { background: #121821; }
.me { background: #121821; }
.post .body { color: #dbe6ef; }
.composer:focus-within { box-shadow: 0 0 0 1px rgba(124, 157, 255, 0.55); }
.game-art::after { background: linear-gradient(180deg, rgba(14, 20, 27, 0) 40%, rgba(14, 20, 27, 0.9)); }
.mod-media img, .mod-media video, .gallery img { border-radius: 6px; }

@media (max-width: 1080px) {
  .nav-menu { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 6px; background: none; color: #fff; cursor: pointer; }
  .nav-menu:hover { background: rgba(255, 255, 255, 0.06); }
  .nav-menu .i { width: 22px; height: 22px; }
  body[data-menu="open"] .links { position: absolute; top: 64px; left: 0; right: 0; display: grid; gap: 2px; padding: 10px 16px 16px; background: rgba(19, 22, 29, 0.98); border-bottom: 1px solid rgba(0, 0, 0, 0.5); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.9); }
  body[data-menu="open"] .links a { padding: 12px; font-size: 15px; }
  body[data-menu="open"] .links .links-narrow { display: block; }
  .capsules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts-4 { grid-template-columns: 1fr 1fr; }
  .facts-4 li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts-4 li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .need-list { grid-template-columns: 1fr; }
  .player { grid-template-columns: 1fr; }
  .hero-caption { right: 32px; }
}
@media (max-width: 900px) {
  .dpad { grid-template-columns: 1fr 1fr; }
  .need-how { grid-template-columns: 1fr; }
  .need-how li + li { border-left: 0; border-top: 1px solid var(--line); }
  .need-rules { grid-template-columns: 1fr; }
  .need-rules > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .hero { padding: 88px 32px 110px; }
  .hero-caption { right: 32px; }
}
@media (max-width: 640px) {
  .band { padding: 64px 16px; }
  .hero { padding: 56px 16px 96px; min-height: 0; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero-caption { left: 16px; right: 16px; bottom: 18px; text-align: left; font-size: 12.5px; }
  .capsules { grid-template-columns: 1fr 1fr; gap: 10px; }
  .capsule-body { padding: 10px; }
  .capsule-body > span:not(.capsule-meta) { display: none; }
  .facts-4 { grid-template-columns: 1fr; }
  .facts-4 li, .facts-4 li + li { padding: 18px 0; border-left: 0; }
  .facts-4 li + li { border-top: 1px solid var(--line); }
  .need-card > .need-art { display: none; }
  .xgrid tbody th, .xgrid thead th:first-child { position: sticky; left: 0; z-index: 1; background: #182536; box-shadow: 1px 0 0 var(--line); white-space: normal; min-width: 116px; }
  .xgrid thead th:first-child { background: #22374d; }
  .xgrid th, .xgrid td { padding: 10px 12px; }
  .need-body { padding: 16px; }
  .player-info { padding: 18px; }
  .strip { grid-auto-columns: 132px; }
  .need-rules > div { padding: 20px; }
}

/* Demos: one card per demo (video + one honest line), filled from /demos.json */
.demos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin: 0; padding: 0; list-style: none; }
.demos:empty { display: none; }
.demo { display: grid; gap: 14px; align-content: start; }
.demo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: #0b0f15; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); }
.demo-text { display: grid; gap: 6px; }
.demo-text h3 { font-size: 19px; letter-spacing: -0.015em; }
.demo-text p { color: var(--fg-muted); font-size: 15.5px; line-height: 1.5; }
.demos-empty { color: var(--fg-muted); font-size: 17px; max-width: 38em; }
.capsules span.capsule:hover { transform: none; }
@media (max-width: 760px) {
  .demos { grid-template-columns: 1fr; }
}
@media (min-width: 1081px) {
  .capsules { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
