/* Look and feel of the srpg.online mockup, in this site's own colours: one hue for the page and the hero, and one accent for the actions. */
@font-face {
  font-family: "DM Sans";
  src: url(/site/fonts/dm-sans.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url(/site/fonts/space-grotesk.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: oklch(98.5% .003 205);
  --surface: #ffffff;
  --text: oklch(24% .017 205);
  --muted: oklch(51% .012 205);
  --line: oklch(89% .009 205);
  --soft: oklch(94% .007 205);
  --accent: oklch(85% .11 195);
  --accent-text: oklch(22% .03 205);
  --link: oklch(47% .09 205);
  --focus: oklch(47% .09 205);
  --danger: #b3261e;
  --ok: oklch(47% .09 205);
  --hero-bg: oklch(21% .025 205);
  --hero-text: oklch(98% .008 205);
  --hero-muted: oklch(83% .02 135);
  --radius: .75rem;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(20% .009 205);
    --surface: oklch(23.5% .009 205);
    --text: oklch(90% .009 205);
    --muted: oklch(68% .01 205);
    --line: oklch(34% .01 205);
    --soft: oklch(27% .01 205);
    --link: oklch(82% .11 205);
    --focus: oklch(85% .11 195);
    --danger: #ff8a80;
    --ok: oklch(82% .11 205);
    --hero-bg: oklch(16% .02 205);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font-sans);
}

.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

a { color: var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  flex-wrap: wrap;
}

.brand { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.brand b { font-weight: 700; }
nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--text); }
nav a:hover, nav a[aria-current="page"] { color: var(--link); }

main { max-width: 960px; margin: 0 auto; padding: 24px 16px 64px; }
.foot { max-width: 960px; margin: 0 auto; padding: 16px; color: var(--muted); }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.1; margin: 0 0 10px; font-weight: 700; }
h2 { font-size: 1.3rem; margin: 32px 0 8px; font-weight: 600; }
.lede { color: var(--muted); max-width: 60ch; }

.card, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.panel + .panel { margin-top: 16px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 16px 0; }
/* A game card: cover (or a dark stand-in), title, creator, a line of description. The whole card is the link. */
.card { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: var(--link); box-shadow: 0 18px 36px -24px oklch(0% 0 0 / .5); transform: translateY(-2px); }
.card-body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.card h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:hover { color: var(--link); }
.card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: .85rem; }
.card .cover { border-radius: 0; }
.cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: calc(var(--radius) - 4px); background: var(--soft); }
.cover-blank {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  background:
    radial-gradient(70% 60% at 100% 0%, oklch(42% .11 205 / .5), transparent 70%),
    linear-gradient(165deg, var(--hero-bg), oklch(13% .025 205));
}
.cover-blank::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(98% .008 205 / .07) 1px, transparent 1px),
    linear-gradient(90deg, oklch(98% .008 205 / .07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(80% 80% at 50% 50%, #000 30%, transparent 100%);
}
.cover-blank span { position: relative; }
.meta { color: var(--muted); font-size: .9rem; }
.tag { display: inline-block; border-radius: 99px; padding: 2px 10px; font-size: .78rem; font-weight: 600; background: var(--soft); color: var(--muted); margin-right: 4px; }
.tag.mature { color: var(--danger); background: oklch(from var(--danger) l c h / .1); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tags .tag { margin: 0; }

form.stack { display: grid; gap: 12px; max-width: 420px; }
label { display: grid; gap: 4px; font-weight: 600; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=search], input:not([type]), select, textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input[type=text], input[type=email], input[type=password], input[type=search], input:not([type]), select { min-height: 46px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px oklch(from var(--focus) l c h / .18); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 14px; margin: 0; display: grid; gap: 8px; }
legend { font-weight: 600; padding: 0 6px; }

button, .button {
  font: inherit;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover, .button:hover { filter: brightness(.96); }

button.secondary, .button.secondary { background: transparent; color: var(--text); border-color: var(--line); }

button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
button.link { background: none; border: 0; color: var(--link); padding: 0; font-weight: 400; text-decoration: underline; }
form.inline { display: inline; }

.error { color: var(--danger); font-weight: 600; }
.ok { color: var(--ok); font-weight: 600; }
.secret { font-family: ui-monospace, monospace; overflow-wrap: anywhere; word-break: break-all; padding: 12px; border: 2px dashed var(--focus); border-radius: 8px; user-select: all; }
.qr { width: min(100%, 15rem); margin: 12px 0; border-radius: 8px; overflow: hidden; line-height: 0; }
.qr svg { display: block; width: 100%; height: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding-top: 4px; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
tbody tr:hover td { background: var(--soft); }
.table-wrap { overflow-x: auto; }
.usercode { font-size: 2rem; letter-spacing: .15em; font-family: ui-monospace, monospace; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* The home page's opening band. */
.hero {
  width: 100vw;
  margin: -24px 0 32px calc(50% - 50vw);
  padding: 56px 16px 48px;
  background:
    radial-gradient(60% 80% at 85% 10%, oklch(40% .1 205 / .55), transparent 70%),
    linear-gradient(180deg, var(--hero-bg), oklch(14% .025 205));
  color: var(--hero-text);
}
.hero-inner { max-width: 960px; margin: 0 auto; }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; color: var(--hero-muted); }
.hero .eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--accent); border-radius: 2px; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: 1.05; margin: 14px 0 12px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { color: var(--hero-muted); font-size: 1.1rem; }
.hero .row { margin-top: 24px; }
.hero .button.secondary { color: var(--hero-text); border-color: oklch(98% .008 205 / .3); }
.hero a:focus-visible { outline-color: var(--accent); }

nav a.button.nav-cta { padding: 6px 14px; color: var(--accent-text); }
nav a.button.nav-cta:hover { color: var(--accent-text); }
.spaced { margin-top: 16px; }
.pre { white-space: pre-wrap; }
.cover-thumb { max-width: 320px; }
.narrow-input { max-width: 14em; }

/* Sign in and register: a dark map panel beside the form. Full-bleed under the header, like the hero. */
.auth {
  width: 100vw;
  margin: -24px 0 -48px calc(50% - 50vw);
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}
.auth-side {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 56px 48px;
  color: var(--hero-text);
  background:
    radial-gradient(70% 60% at 100% 0%, oklch(42% .11 205 / .5), transparent 70%),
    linear-gradient(165deg, var(--hero-bg), oklch(13% .025 205));
}
.auth-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(98% .008 205 / .06) 1px, transparent 1px),
    linear-gradient(90deg, oklch(98% .008 205 / .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 100%);
  pointer-events: none;
}
.auth-side > * { position: relative; }
.auth-side .eyebrow { display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 600; color: var(--hero-muted); }
.auth-side .eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--accent); border-radius: 2px; }
.auth-side h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.08; margin: 18px 0 0; font-weight: 700; max-width: 18ch; }
.auth-side h2 em { font-style: normal; color: var(--accent); }
.auth-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; color: var(--hero-muted); font-size: .98rem; max-width: 34ch; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.auth-points li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 5px; background: var(--accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat, linear-gradient(#000 0 0); mask-composite: exclude; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat, linear-gradient(#000 0 0); -webkit-mask-composite: xor; }

/* A small battle map: a tilted grid with a few units on it. Decorative only. */
.auth-map {
  align-self: flex-end;
  display: grid;
  grid-template-columns: repeat(7, 34px);
  gap: 4px;
  transform: perspective(700px) rotateX(38deg) rotateZ(-14deg);
  transform-origin: 70% 60%;
  filter: drop-shadow(0 30px 40px oklch(0% 0 0 / .45));
}
.auth-map i { display: block; height: 34px; border-radius: 6px; background: oklch(98% .008 205 / .07); border: 1px solid oklch(98% .008 205 / .08); }
.auth-map i.g { background: oklch(60% .13 205 / .4); }
.auth-map i.w { background: oklch(60% .1 230 / .45); }
.auth-map i.r { background: oklch(98% .008 205 / .14); }
.auth-map i.you { background: var(--accent); box-shadow: 0 0 0 3px oklch(85% .11 195 / .3), 0 8px 18px oklch(85% .11 195 / .35); }
.auth-map i.foe { background: oklch(62% .19 25); box-shadow: 0 0 0 3px oklch(62% .19 25 / .3); }
.auth-map i.move { background: oklch(85% .11 195 / .22); border-color: oklch(85% .11 195 / .5); }

.auth-main { display: grid; place-items: center; padding: 48px 24px 64px; }
.auth-form { width: 100%; max-width: 24rem; }
.auth-form h1 { font-size: 2rem; margin: 0 0 6px; }
.auth-form .lede { margin: 0 0 28px; max-width: none; }
.auth-form form.stack { max-width: none; gap: 18px; }
.auth-form label { gap: 6px; font-size: .88rem; }
.auth-form input[type=text], .auth-form input[type=email], .auth-form input[type=password] {
  height: 50px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 400;
  transition: border-color .15s, box-shadow .15s;
}
.auth-form input:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px oklch(from var(--focus) l c h / .18); }
.auth-form button { width: 100%; height: 50px; padding: 0 18px; border-radius: 12px; font-weight: 700; transition: transform .08s, filter .15s, background .15s; }
.auth-form button:active { transform: translateY(1px); }
.auth-form button.secondary:hover { background: var(--soft); }
.auth-form button.link { width: auto; height: auto; padding: 0; font-weight: 400; }
.hint { color: var(--muted); font-size: .85rem; font-weight: 400; line-height: 1.4; }
.notice { border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line); background: var(--soft); font-size: .92rem; line-height: 1.4; }
.notice.error { color: var(--danger); background: oklch(from var(--danger) l c h / .08); border-color: oklch(from var(--danger) l c h / .35); font-weight: 500; }
.notice.ok { color: var(--ok); background: oklch(from var(--ok) l c h / .08); border-color: oklch(from var(--ok) l c h / .3); font-weight: 500; }
label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.4; }
label.check input { width: 1.15rem; height: 1.15rem; margin-top: .1rem; flex: none; accent-color: var(--focus); }
.pw { position: relative; display: block; }
.pw input { padding-right: 4.5rem; }
.auth-form .pw button.reveal { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: auto; height: auto; padding: 4px 8px; font-size: .82rem; font-weight: 600; background: transparent; border: 0; color: var(--link); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: var(--muted); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-alt { display: grid; gap: 10px; }
.auth-foot { text-align: center; margin: 26px 0 0; color: var(--muted); font-size: .95rem; }
.auth-done { text-align: center; }
.auth-done .mark { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; background: var(--accent); display: grid; place-items: center; color: var(--accent-text); font-size: 1.8rem; font-weight: 700; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-side { padding: 28px 20px; gap: 0; }
  .auth-side h2 { font-size: 1.4rem; }
  .auth-points, .auth-map { display: none; }
  .auth-main { padding: 36px 16px 56px; }
}

/* Landing pages */
.foot { padding: 32px 16px 48px; border-top: 1px solid var(--line); margin-top: 48px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.foot h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 10px; color: var(--muted); }
.foot a { display: block; color: var(--text); text-decoration: none; margin: 6px 0; }
.foot a:hover { color: var(--link); }
.foot .brand { display: inline-block; margin-bottom: 6px; }
.foot .meta { max-width: 32ch; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero .note { margin: 14px 0 0; color: var(--hero-muted); font-size: .9rem; }
.shot { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid oklch(98% .008 205 / .14); box-shadow: 0 30px 60px -30px oklch(0% 0 0 / .6), 0 0 0 1px oklch(0% 0 0 / .2); background: var(--surface); }
.hero .shot { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.shot-frame { position: relative; }
.shot-frame .shot-label { position: absolute; left: 14px; bottom: 14px; background: oklch(20% .02 205 / .85); color: var(--hero-text); font-size: .78rem; padding: 4px 10px; border-radius: 99px; backdrop-filter: blur(6px); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero .shot { transform: none; } }

.section { padding: 48px 0 8px; }
.section > h2, .band > .inner > h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 8px; }
.section > .lede, .band > .inner > .lede { margin: 0 0 24px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.kicker::before { content: ""; width: 10px; height: 10px; background: var(--accent); border-radius: 2px; }

.band { width: 100vw; margin: 48px 0 0 calc(50% - 50vw); padding: 56px 16px; background: var(--soft); }
.band.dark { background: linear-gradient(165deg, var(--hero-bg), oklch(13% .025 205)); color: var(--hero-text); }
.band.dark .kicker, .band.dark .lede, .band.dark .meta { color: var(--hero-muted); }
.band.dark h2 em { font-style: normal; color: var(--accent); }
.band > .inner { max-width: 960px; margin: 0 auto; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-text); font-family: var(--font-display); font-weight: 700; margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.features li { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.features h3 { margin: 0 0 6px; font-size: 1rem; display: flex; align-items: flex-start; gap: 10px; line-height: 1.3; }
.features h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); flex: none; margin-top: .3em; }
.features p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; align-items: center; margin-top: 24px; }
.split.flip > .split-text { order: 2; }
.split h2 { margin: 0 0 8px; font-size: 1.6rem; }
.split .shot { box-shadow: 0 24px 50px -28px oklch(0% 0 0 / .45); border-color: var(--line); }
.split ul.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.split ul.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.split ul.ticks li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--accent); color: var(--accent-text); font-size: .8rem; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > .split-text { order: 0; } }

.cta { text-align: center; }
.cta h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 8px; }
.cta .row { justify-content: center; margin-top: 20px; }
.cta .button.secondary { color: var(--hero-text); border-color: oklch(98% .008 205 / .3); }

.samples { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.samples li { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); }
.samples strong { display: block; margin-bottom: 4px; }
.samples p { margin: 0; color: var(--muted); font-size: .92rem; }
.samples .meta { display: block; margin-top: 6px; font-size: .82rem; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 36px; }
.prose h3 { margin: 24px 0 6px; font-size: 1.05rem; }
.prose p, .prose li { line-height: 1.6; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
kbd { font-family: ui-monospace, monospace; font-size: .85em; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); }
.toc { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 24px; }
.toc a { border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; text-decoration: none; color: var(--text); font-size: .92rem; }
.toc a:hover, .toc a[aria-current="page"] { border-color: var(--link); color: var(--link); }
.toc a[aria-current="page"] { font-weight: 600; }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.facts li { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; }
.facts strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.facts span { color: var(--muted); font-size: .92rem; }

/* The working pages (browse, game pages, account, staff): the same kicker, type and cards as the landing pages. */
.page-head { margin: 20px 0 28px; }
.page-head h1 { margin: 0 0 8px; }
.page-head .lede { margin: 0; }
.page-head .row { margin-top: 16px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--link); }

.filters { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 12px; align-items: end; padding: 16px; margin: 0 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters label { gap: 6px; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.filters select { min-width: 10em; }
.filters button { min-height: 46px; }
@media (max-width: 720px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filters label:first-child, .filters button { grid-column: 1 / -1; }
}
.results-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; }
.pager { display: flex; gap: 10px; justify-content: center; margin: 28px 0 0; }
.pager a { border: 1px solid var(--line); border-radius: 99px; padding: 8px 18px; text-decoration: none; color: var(--text); font-weight: 600; }
.pager a:hover { border-color: var(--link); color: var(--link); }
.empty { padding: 40px 20px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }
.empty strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: 1.1rem; color: var(--text); }

/* A game's page opens with a dark band: title, creator, tags and Play beside the cover. */
.band.game-head { margin: -24px 0 36px calc(50% - 50vw); padding: 44px 16px 44px; }
.game-head .inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.game-head h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; margin: 8px 0 10px; }
.game-head .meta a { color: var(--hero-text); }
.game-head .tags { margin-top: 14px; }
.game-head .tag { background: oklch(98% .008 205 / .12); color: var(--hero-text); }
.game-head .tag.mature { background: oklch(62% .19 25 / .35); }
.game-head .row { margin-top: 24px; }
.game-head .button.secondary { color: var(--hero-text); border-color: oklch(98% .008 205 / .3); }
.game-head .cover-blank { border-radius: 14px; border: 1px solid oklch(98% .008 205 / .14); font-size: 4rem; }
@media (max-width: 860px) { .game-head .inner { grid-template-columns: 1fr; } }
.game-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.game-body .prose h2:first-child { margin-top: 0; }
@media (max-width: 860px) { .game-body { grid-template-columns: 1fr; } }
.facts-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .95rem; }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; }

/* Sectioned pages: each part of the account or a staff page sits in its own card. */
.block { padding: 22px; margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.block > h2 { margin: 0 0 4px; font-size: 1.15rem; }
.block > .meta { margin: 0 0 14px; }
.block > form.stack, .block > .table-wrap, .block > table { margin-top: 14px; }
.block.danger { border-color: oklch(from var(--danger) l c h / .35); }
.block.danger > h2 { color: var(--danger); }
.block details { margin-top: 12px; }
.block summary { cursor: pointer; font-weight: 600; }
.block .notice { margin-bottom: 14px; }
.notice-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 8px; }
.notice-card .pre { margin: 0 0 12px; }
.notice + .notice { margin-top: 10px; }
.notices { display: grid; gap: 10px; margin: 0 0 20px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.stats li { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); }
.stats strong { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.stats strong a { color: var(--text); text-decoration: none; }
.stats strong a:hover { color: var(--link); }
.stats span { color: var(--muted); font-size: .88rem; }

.badge { display: inline-block; border-radius: 99px; padding: 2px 10px; font-size: .76rem; font-weight: 700; background: var(--accent); color: var(--accent-text); vertical-align: middle; }
.badge.quiet { background: var(--soft); color: var(--muted); }

/* One thing to do, in the middle of the page: confirm a device code, finish a sign-in. */
.focus-card { max-width: 30rem; margin: 24px auto 0; }
.focus-card .block { padding: 28px; }
.focus-card .usercode { display: block; margin: 18px 0; padding: 14px; border-radius: 12px; background: var(--soft); font-size: 2.2rem; text-align: center; }
.focus-card form.stack { max-width: none; }
.focus-card .row.center { justify-content: center; }

/* Concept drawings of the Studio: an inline SVG, filled from the page tokens, and a panel sketched in HTML. Neither is a screenshot. */
.mock text { font-family: var(--font-sans); font-size: 10px; font-weight: 500; fill: oklch(98% .01 205 / .62); }
.mock text.th { font-family: var(--font-display); font-size: 11px; font-weight: 600; fill: var(--hero-text); }
.mock text.ink { font-weight: 700; }
.mock .bg { fill: oklch(16% .02 205); }
.mock .chrome { fill: oklch(21.5% .022 205); }
.mock .ln { stroke: oklch(98% .01 205 / .07); fill: none; }
.mock .dim { fill: oklch(98% .01 205 / .1); }
.mock .mid { fill: oklch(98% .01 205 / .24); }
.mock .acc { fill: var(--accent); }
.mock .acc-s { stroke: var(--accent); fill: none; }
.mock .acc-soft { fill: oklch(from var(--accent) l c h / .2); }
.mock .tile { fill: oklch(36% .06 205); stroke: none; }
.mock .tile-top { fill: oklch(60% .11 205); }
.mock .foe { fill: oklch(64% .19 25); }
.mock .coin { fill: oklch(87% .16 92); }
.mock .ink { fill: oklch(18% .03 205); }
.mock .ra { fill: oklch(72% .12 190 / .45); }
.mock .rb { fill: oklch(66% .15 300 / .5); }

.concept { padding: 16px 20px 8px; border-radius: 14px; border: 1px solid oklch(98% .008 205 / .15); color: var(--hero-text); font-size: .92rem;
  background: linear-gradient(165deg, var(--hero-bg), oklch(13% .025 205)); box-shadow: 0 24px 50px -28px oklch(0% 0 0 / .45); }
.concept dl { margin: 0; }
.concept-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid oklch(98% .008 205 / .12); }
.concept-head strong { font-family: var(--font-display); font-size: 1.05rem; }
.concept-head span { font-size: .78rem; color: var(--hero-muted); }
.concept-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(70px, 120px) 4.5em; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid oklch(98% .008 205 / .08); }
.concept-row:last-child { border-bottom: 0; }
.concept-row dt { color: var(--hero-muted); }
.concept-row dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.concept-row .meter { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: oklch(98% .008 205 / .12); }
.concept-row .meter i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.concept-row .meter .w40 { width: 40%; } .concept-row .meter .w48 { width: 48%; } .concept-row .meter .w58 { width: 58%; }
.concept-row .meter .w64 { width: 64%; } .concept-row .meter .w72 { width: 72%; } .concept-row .meter .w80 { width: 80%; }
.concept-row.gate { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; }
.concept-row.gate dt { color: var(--hero-text); font-weight: 600; }
.concept-row.gate dd { display: grid; gap: 2px; text-align: right; font-weight: 400; color: var(--hero-muted); font-size: .85em; }
.concept-ok { margin: 4px 0 10px; font-size: .88rem; color: var(--accent); }
.concept-caption { margin: 10px 0 0; text-align: center; font-size: .8rem; color: var(--muted); }
