/* modoo.party. 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: 23px; 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: 1120px;
  height: 740px;
  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: 1120 / 740; }
.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 { font: 500 12.5px/1 var(--mono); padding: 7px 10px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--fg-muted); white-space: nowrap; }
.s-shipped { color: var(--ok); border-color: rgba(21, 128, 61, 0.3); background: var(--ok-soft); }
.s-testing { color: var(--accent-text); border-color: rgba(51, 85, 255, 0.3); background: var(--accent-soft); }
.s-building { color: var(--warn); border-color: rgba(180, 83, 9, 0.3); background: var(--warn-soft); }
.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: 20px; }
.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: 26px; 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); }

/* Community: a dark, Discord-style space for each game */
body[data-view="community"] .foot { display: none; }
.community {
  display: grid;
  grid-template-columns: 72px 248px minmax(0, 1fr);
  height: calc(100vh - 64px);
  min-height: 520px;
  background: var(--bg);
  color: var(--fg);
}
.rail { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; background: #070708; border-right: 1px solid var(--line); overflow-y: auto; }
.rail-item {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--fg);
  font: 600 13px/1 var(--mono);
  text-decoration: none;
  transition: border-radius var(--fast) var(--ease), background var(--fast) var(--ease);
}
.rail-item:hover { border-radius: 16px; background: #26262b; }
.rail-item[aria-current="true"] { border-radius: 16px; background: var(--accent); color: #fff; }
.rail-item[aria-current="true"]::before { content: ""; position: absolute; left: -12px; width: 4px; height: 36px; border-radius: 0 4px 4px 0; background: #fff; }
.rail-item .soon { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #070708; color: var(--warn); }
.rail-item .soon .i { width: 12px; height: 12px; }
.rail-sep { width: 32px; height: 1px; background: var(--line-strong); }
.channels { display: flex; flex-direction: column; min-height: 0; background: var(--bg-subtle); border-right: 1px solid var(--line); }
.channels-head { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.channels-head .status { color: var(--fg-faint); font-size: 13px; }
.channels-head h2 { flex: 1; min-width: 0; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channels-label { margin: 18px 16px 6px; font: 500 11.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-faint); }
.channel-list { margin: 0; padding: 0 8px; list-style: none; overflow-y: auto; }
.channel { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 6px; color: var(--fg-muted); text-decoration: none; font-size: 15px; }
.channel:hover { background: rgba(255, 255, 255, 0.04); color: var(--fg); }
.channel[aria-current="true"] { background: var(--bg-muted); color: var(--fg); }
.channel .hash { color: var(--fg-faint); font-size: 18px; line-height: 1; }
.channel .i { color: var(--fg-faint); margin-left: auto; width: 14px; height: 14px; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; background: #0c0c0e; border-top: 1px solid var(--line); font-size: 14px; }
.me b { display: block; font-weight: 600; }
.me span { color: var(--fg-faint); font-size: 12.5px; }
.me a { color: var(--accent-text); text-decoration: none; font-weight: 500; }
.chat { position: relative; display: grid; grid-template-rows: 52px minmax(0, 1fr) auto auto auto; min-height: 0; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 0 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.chat-head .hash { color: var(--fg-faint); font-size: 22px; }
.chat-head h3 { font-size: 16px; white-space: nowrap; }
.chat-topic { margin-left: 8px; 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; }
.chat-pick { display: none; }
.messages { margin: 0; padding: 12px 0 18px; list-style: none; overflow-y: auto; }
.msg { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; padding: 2px 56px 2px 18px; }
.msg.first { margin-top: 14px; }
.msg:hover { background: rgba(255, 255, 255, 0.025); }
.msg .av { width: 40px; height: 40px; font-size: 15px; grid-row: span 2; }
.msg.cont .av { visibility: hidden; height: 0; }
.msg.cont .meta { display: none; }
.msg .meta { display: flex; align-items: baseline; gap: 8px; }
.msg .name { font-weight: 600; color: var(--fg); }
.msg .time { color: var(--fg-faint); font: 400 11.5px/1 var(--mono); }
.msg .body { color: #d4d4da; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.staff { color: var(--accent-text); font-size: 12.5px; font-weight: 600; }
.msg .remove { position: absolute; right: 14px; top: 4px; display: none; width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-muted); color: var(--fg-muted); cursor: pointer; }
.msg:hover .remove { display: grid; place-items: center; }
.msg .remove:hover { color: var(--danger); }
.chat-start { padding: 24px 18px 6px; }
.chat-start .badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg-muted); color: var(--fg); font-size: 26px; margin-bottom: 12px; }
.chat-start h4 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.02em; }
.chat-start p { color: var(--fg-muted); }
.composer { display: flex; align-items: flex-end; gap: 10px; margin: 0 18px 6px; padding: 10px 10px 10px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg-muted); }
.composer:focus-within { border-color: rgba(51, 85, 255, 0.6); }
.composer textarea { flex: 1; min-width: 0; max-height: 180px; padding: 6px 0; border: 0; background: none; color: var(--fg); font: 400 15px/1.5 var(--font); resize: none; outline: none; }
.send { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9px; 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 18px 6px; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 12px; 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-msg { min-height: 22px; margin: 0 18px 10px; color: var(--fg-faint); font-size: 13px; }
.chat-msg[data-state="error"] { color: var(--danger); }

/* 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; }
  .community { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 64px); }
  .rail, .channels { display: none; }
  .chat-pick { display: block; max-width: 60%; height: 34px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-muted); color: var(--fg); font: 500 14px/1 var(--font); }
  .chat-head .hash, .chat-head h3, .chat-topic { display: none; }
  .profile { grid-template-columns: 1fr; }
  .profile-save { justify-items: start; }
  .msg { padding-right: 18px; }
  .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; }
}
