/* Multiplayer API — v6 layer for the hand-written pages (docs, SDK, demos,
   legal, 404, console). Loaded after each page's own stylesheet: it brings the
   language of the home page and /mcp — Inter Tight headings with one word in
   Instrument Serif italic, rounded cards, pill buttons and tags. */
:root {
  --serif: "Instrument Serif", Georgia, serif;
  --grot: "Inter Tight", "IBM Plex Sans", sans-serif;
  --mark: #b8c6ff;
}

/* ── Headings ─────────────────────────────────────────────────────────────── */
.doc-hero h1, .wrap > h1, .hero h1, .lobby h1, .lobby-card h1, main > .wrap h1 {
  font-family: var(--grot);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-transform: none;
  line-height: 1.02;
}
.doc-hero h1 em, .hero h1 em, .wrap h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink, #0f1115);
  font-size: 1.1em;
  background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 88% / 100% 0.24em;
  padding: 0 0.04em;
}
main h2, article h2 {
  font-family: var(--grot);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
  line-height: 1.12;
}
main h3, article h3, .card h4, .channel h4, .recipe h4 {
  font-family: var(--grot);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}

/* ── Eyebrows become pills ────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--line, #d6d4cc);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--dim, #5b606b);
  font: 600 12px var(--grot);
  letter-spacing: 0.01em;
  text-transform: none;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  border-radius: 14px;
  border-width: 2px;
  font-family: var(--grot);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-transform: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { filter: none; transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink, #0f1115); }
.jump, .pill, .chip, .badge, .metric-pills .pill, .period-pills .pill, .live-pill { border-radius: 999px !important; }
.jump { padding-left: 13px; padding-right: 13px; }

/* ── Surfaces ─────────────────────────────────────────────────────────────── */
.card, .channel, .recipe, .stat, .game, .panel, .lobby-card, .auth-card, .gate-card, .plan-card,
.preset-card, .snippet-card, .step-card, .template-card, .stats-chart-panel, .facts, .note, blockquote {
  border-radius: 20px !important;
}
.card, .channel, .recipe, .game { overflow: hidden; }
.card:hover, .recipe:hover, .game:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -24px rgba(15, 17, 21, 0.45); }
pre { border-radius: 14px !important; }
:not(pre) > code { border-radius: 6px; }
table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--line-soft, #e4e2db); border-radius: 14px; overflow: hidden; }
th:first-child, td:first-child { border-left: 0; }
.tabs { gap: 4px; border-bottom: 0; margin-bottom: 8px; }
.tabs button { border-radius: 10px; border: 0 !important; font-family: var(--grot); font-weight: 600; letter-spacing: 0; text-transform: none; }
.copy { border-radius: 8px; }

/* Forms (demos, console) */
input, select, textarea { border-radius: 10px; }
button { border-radius: 10px; }
.btn-go, .btn-join, .codeInput, .field input { border-radius: 12px !important; }
.btn-go { font-family: var(--grot); letter-spacing: -0.01em; text-transform: none; }
.code { border-radius: 10px; }
.toast { border-radius: 12px; }
kbd { border-radius: 6px; }

/* Docs: a softer reading column */
.toc a, .onthis a { border-radius: 8px; }
.doc-hero { border-radius: 24px; }

/* Demo hub game cards */
.game .name { font-family: var(--grot); font-weight: 800; letter-spacing: -0.03em; text-transform: none; }
.game .go { border-radius: 10px; }
