:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --ink: #171a1f;
  --muted: #66707b;
  --line: #dce2e7;
  --line-strong: #c7d0d8;
  --charcoal: #111419;
  --cyan: #00a7c4;
  --cyan-soft: #dff7fb;
  --pink: #d63b7d;
  --pink-soft: #fce6ef;
  --green: #198b61;
  --green-soft: #e1f5ec;
  --yellow: #b27600;
  --yellow-soft: #fff2c9;
  --violet: #7052bd;
  --violet-soft: #eee9fb;
  --red: #c53e47;
  --red-soft: #fde8ea;
  --shadow: 0 10px 28px rgba(24, 34, 45, 0.08);
  --topbar-height: 68px;
  --sidebar-width: 272px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-height) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.62;
}

body.menu-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(0, 167, 196, 0.28);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.22;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2.25rem, 5vw, 4.1rem);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

code {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid #d7e1e7;
  border-radius: 4px;
  background: #eef3f6;
  color: #13566a;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.91em;
  line-height: 1.45;
}

kbd {
  min-width: 26px;
  padding: 1px 7px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  font: 600 0.78rem Consolas, monospace;
  text-align: center;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 9px 14px;
  transform: translateY(-150%);
  border-radius: 6px;
  background: var(--charcoal);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--topbar-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--charcoal);
  color: #fff;
}

.topbar__inner {
  display: flex;
  width: min(1520px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  object-fit: cover;
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 4px;
  color: #aeb7c0;
  font-size: 0.76rem;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-button,
.icon-button,
.copy-button,
.primary-button,
.filter-button,
.game-tab {
  border: 0;
  cursor: pointer;
}

.text-button {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 6px;
  align-items: center;
  gap: 7px;
  color: #dfe6ec;
  text-decoration: none;
}

.text-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.is-disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.text-button.is-disabled:hover {
  background: transparent;
  color: #dfe6ec;
}

.text-button svg,
.icon-button svg,
.copy-button svg,
.footer a svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 6px;
  place-items: center;
  background: transparent;
  color: currentColor;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-shell {
  display: grid;
  width: min(1520px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding-top: var(--topbar-height);
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  z-index: 80;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #eef1f4;
  scrollbar-width: thin;
}

.sidebar__head {
  display: flex;
  min-height: 52px;
  padding: 14px 18px 10px;
  align-items: center;
  justify-content: space-between;
}

.sidebar__head strong {
  font-size: 0.88rem;
}

.side-nav {
  padding: 0 10px 32px;
}

.side-nav p {
  margin: 20px 10px 7px;
  color: #8a949e;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.side-nav a {
  display: flex;
  min-height: 39px;
  padding: 8px 10px;
  border-radius: 6px;
  align-items: center;
  gap: 9px;
  color: #4c5661;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.side-nav a span {
  width: 24px;
  flex: 0 0 24px;
  text-align: center;
}

.side-nav a:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.side-nav a.is-active {
  background: var(--surface);
  box-shadow: inset 3px 0 var(--cyan);
  color: #006f82;
}

.scrim {
  display: none;
}

.content {
  width: min(1080px, calc(100% - 64px));
  min-width: 0;
  margin: 0 auto;
  padding: 32px 0 0;
}

.brand-banner {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border-radius: 8px;
  background: #0c1116;
  color: #fff;
  isolation: isolate;
}

.brand-banner img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.brand-banner__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(4, 12, 18, 0.58);
}

.brand-banner__content {
  position: absolute;
  inset: auto 34px 28px;
  max-width: 620px;
}

.brand-banner p {
  margin-bottom: 0;
  color: #d9eef2;
  font-size: 1.05rem;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-banner .eyebrow {
  color: #77e9f4;
}

.finder {
  position: sticky;
  z-index: 50;
  top: calc(var(--topbar-height) + 10px);
  display: grid;
  margin: 22px 0 30px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.search-box {
  display: flex;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  align-items: center;
  gap: 9px;
  background: var(--surface-soft);
}

.search-box:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 167, 196, 0.12);
}

.search-box svg {
  width: 19px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-box input::placeholder {
  color: #8a949e;
}

.role-filter {
  display: grid;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  grid-template-columns: repeat(3, auto);
  background: #eef2f4;
}

.filter-button {
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 4px;
  background: transparent;
  color: #65707a;
  font-size: 0.81rem;
  font-weight: 700;
}

.filter-button:hover {
  color: var(--ink);
}

.filter-button.is-active {
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(28, 39, 48, 0.12);
  color: #00778d;
}

.finder__status {
  grid-column: 1 / -1;
  margin: -2px 2px 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.intro-grid {
  display: grid;
  margin-bottom: 80px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.summary-block {
  display: flex;
  min-height: 128px;
  padding: 22px;
  border-top: 3px solid var(--cyan);
  align-items: flex-start;
  gap: 15px;
  background: var(--surface);
}

.summary-block:nth-child(2) {
  border-top-color: var(--pink);
}

.summary-block h2 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.summary-block p {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 8px;
  place-items: center;
  background: var(--cyan-soft);
  font-size: 1.35rem;
}

.section-icon--cyan { background: var(--cyan-soft); }
.section-icon--pink { background: var(--pink-soft); }
.section-icon--green { background: var(--green-soft); }
.section-icon--yellow { background: var(--yellow-soft); }
.section-icon--violet { background: var(--violet-soft); }
.section-icon--red { background: var(--red-soft); }

.doc-section {
  margin: 0 0 96px;
}

.section-heading {
  display: flex;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 15px;
}

.section-heading h2,
.section-heading .eyebrow {
  margin-bottom: 0;
}

.part-heading {
  margin: 20px 0 48px;
  padding: 28px 0 24px;
  border-top: 5px solid var(--cyan);
  border-bottom: 1px solid var(--line-strong);
}

.part-heading--admin {
  border-top-color: var(--pink);
}

.part-heading span {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.part-heading--admin span {
  color: var(--pink);
}

.part-heading h2 {
  margin: 5px 0;
}

.part-heading p {
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.step {
  display: grid;
  min-height: 104px;
  padding: 20px 22px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  background: var(--surface);
}

.step > span,
.payment-steps > div > span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  place-items: center;
  background: var(--charcoal);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
}

.step h3 {
  margin: 2px 0 5px;
}

.step p {
  color: var(--muted);
}

.callout {
  display: grid;
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 4px solid var(--cyan);
  border-radius: 0 6px 6px 0;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  background: #e9f7fa;
}

.callout > svg {
  width: 23px;
  color: #087c92;
}

.callout strong {
  display: block;
  margin-bottom: 3px;
}

.callout p {
  color: #47616a;
}

.callout--warning {
  border-color: #d58a00;
  background: #fff5d9;
}

.callout--warning > svg { color: #a76a00; }
.callout--warning p { color: #6f5a2e; }

.callout--danger {
  border-color: var(--red);
  background: var(--red-soft);
}

.callout--danger > svg { color: var(--red); }
.callout--danger p { color: #74464a; }

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.docs-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.doc-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 5px 16px rgba(35, 47, 56, 0.04);
}

.doc-card--wide {
  margin-top: 16px;
}

.doc-card__head {
  display: flex;
  margin-bottom: 12px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.doc-card__head h3 {
  margin: 1px 0 0;
}

.doc-card p,
.doc-card li {
  color: #4f5964;
}

.doc-card ol,
.doc-card ul {
  padding-left: 21px;
}

.doc-card li + li,
.check-list li + li {
  margin-top: 6px;
}

.badge {
  display: inline-flex;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  align-items: center;
  flex: 0 0 auto;
  background: #f0f3f5;
  color: #5c6670;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.badge--user { border-color: #aadfe8; background: var(--cyan-soft); color: #06758a; }
.badge--admin { border-color: #eeb9ce; background: var(--pink-soft); color: #a7255d; }
.badge--dm { border-color: #c9bdea; background: var(--violet-soft); color: #5c42a2; }
.badge--full { border-color: #a9dbc6; background: var(--green-soft); color: #146f4f; }
.badge--free { border-color: #e9d592; background: var(--yellow-soft); color: #8a5d00; }
.badge--private { border-color: #eab4b8; background: var(--red-soft); color: #a52e37; }

.muted {
  color: var(--muted) !important;
  font-size: 0.88rem;
}

.command-row {
  display: flex;
  min-height: 42px;
  margin-top: 16px;
  padding: 5px 5px 5px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-soft);
}

.command-row--standalone {
  width: min(360px, 100%);
  margin-top: 18px;
}

.command-row code {
  padding: 0;
  border: 0;
  background: transparent;
}

.copy-button {
  display: inline-flex;
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 4px;
  align-items: center;
  gap: 6px;
  background: #e7eef1;
  color: #3f5059;
  font-size: 0.75rem;
  font-weight: 700;
}

.copy-button:hover {
  background: #d9e6ea;
  color: #075c6c;
}

.check-list {
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 25px;
}

.check-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  content: "✓";
  color: var(--green);
  font-weight: 900;
}

.inline-warning {
  display: flex;
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 6px;
  align-items: flex-start;
  gap: 9px;
  background: var(--yellow-soft);
  color: #6f5929;
  font-style: normal;
  font-size: 0.88rem;
}

.inline-warning svg {
  width: 19px;
  flex: 0 0 19px;
  color: var(--yellow);
}

.command-list {
  display: grid;
  gap: 8px;
}

.command-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4f5964;
  font-size: 0.9rem;
}

.game-tabs {
  display: flex;
  margin-bottom: 16px;
  padding-bottom: 1px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-strong);
  scrollbar-width: thin;
}

.game-tab {
  min-width: max-content;
  min-height: 44px;
  padding: 9px 16px;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.game-tab:hover {
  color: var(--ink);
}

.game-tab.is-active {
  border-bottom-color: var(--violet);
  color: #5e43a9;
}

.game-panel {
  display: none;
  min-height: 230px;
  padding: 26px;
  border-left: 5px solid var(--violet);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 32px;
  background: var(--surface);
}

.game-panel.is-active {
  display: grid;
}

.game-panel h3 {
  margin-top: 12px;
  font-size: 1.35rem;
}

.game-panel p,
.game-panel li {
  color: var(--muted);
}

.game-panel ol {
  margin: 0;
  padding-left: 23px;
  align-self: center;
}

.game-panel li + li {
  margin-top: 8px;
}

.game-mark {
  font-size: 2.3rem;
}

.mini-flow {
  display: flex;
  margin: 20px 0;
  align-items: center;
  gap: 10px;
  color: #27505b;
  font-size: 0.88rem;
  font-weight: 700;
}

.mini-flow span {
  padding: 8px 10px;
  border: 1px solid #bee0e6;
  border-radius: 4px;
  background: #edf9fb;
}

.mini-flow svg {
  width: 18px;
  flex: 0 0 auto;
  color: var(--cyan);
}

.access-table,
.command-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.access-row,
.command-table__row {
  display: grid;
  min-height: 58px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1.05fr 1.8fr 1fr;
  align-items: center;
  gap: 18px;
  color: #535e68;
  font-size: 0.9rem;
}

.access-row:last-child,
.command-table__row:last-child {
  border-bottom: 0;
}

.access-row--head,
.command-table__head {
  min-height: 42px;
  background: #edf1f3;
  color: #78838d;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.access-row strong,
.command-table__row strong {
  color: var(--ink);
}

.panel-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.panel-map article {
  min-height: 168px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.panel-map article > span {
  font-size: 1.55rem;
}

.panel-map h3 {
  margin: 12px 0 6px;
  font-size: 0.98rem;
}

.panel-map p {
  color: var(--muted);
  font-size: 0.83rem;
}

.feature-band {
  display: grid;
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 30px;
  background: var(--surface);
}

.feature-band__visual {
  display: grid;
  min-height: 230px;
  padding: 20px;
  border: 1px solid #d7d0eb;
  grid-template-columns: repeat(3, 58px);
  align-content: center;
  justify-content: center;
  gap: 12px;
  background: #f4f0fc;
}

.feature-band__visual span {
  display: grid;
  width: 58px;
  height: 58px;
  border: 1px solid #d4c9ed;
  border-radius: 8px;
  place-items: center;
  background: #fff;
  font-size: 1.8rem;
  box-shadow: 0 4px 10px rgba(70, 53, 113, 0.08);
}

.feature-band h3 {
  font-size: 1.35rem;
}

.moderation-grid {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.moderation-grid > span {
  display: flex;
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  flex-direction: column;
  justify-content: center;
  background: var(--surface-soft);
}

.moderation-grid code {
  width: max-content;
}

.moderation-grid small {
  margin-top: 5px;
  color: var(--muted);
}

.payment-steps {
  display: grid;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr) 22px) minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  background: var(--surface);
}

.payment-steps > div > span {
  background: var(--green);
}

.payment-steps p {
  margin: 10px 0 0;
  color: #4f5d58;
  font-size: 0.82rem;
}

.payment-steps > svg {
  width: 18px;
  margin-top: 8px;
  color: #9ba7a1;
}

.payment-entry {
  display: grid;
  min-height: 68px;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid #a9dbc6;
  border-radius: 6px;
  grid-template-columns: 28px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  background: var(--green-soft);
  color: #145c45;
  text-decoration: none;
}

.payment-entry:hover {
  border-color: #73bf9d;
  background: #d7f1e5;
}

.payment-entry.is-disabled:hover {
  border-color: #a9dbc6;
  background: var(--green-soft);
}

.payment-entry > svg {
  width: 22px;
}

.payment-entry > svg:last-child {
  width: 18px;
}

.payment-entry span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.payment-entry small {
  margin-top: 2px;
  color: #4b7666;
}

.command-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.command-catalog article {
  padding: 20px;
  border-left: 4px solid var(--cyan);
  background: var(--surface);
}

.command-catalog article:nth-child(2n) { border-left-color: var(--violet); }
.command-catalog article:nth-child(3n) { border-left-color: var(--yellow); }
.command-catalog article:nth-child(4n) { border-left-color: var(--red); }

.command-catalog h3 {
  margin-bottom: 13px;
}

.command-catalog article > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.diagnostic {
  border-top: 1px solid var(--line);
}

.diagnostic ol {
  margin: 0;
  padding: 0;
  counter-reset: diagnosis;
  list-style: none;
}

.diagnostic li {
  display: grid;
  min-height: 82px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 34px 210px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  counter-increment: diagnosis;
}

.diagnostic li::before {
  display: grid;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  place-items: center;
  content: counter(diagnosis);
  background: var(--charcoal);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
}

.diagnostic li span {
  color: var(--muted);
}

.empty-state {
  min-height: 320px;
  margin-bottom: 80px;
  padding: 70px 20px;
  text-align: center;
}

.empty-state svg {
  width: 42px;
  height: 42px;
  color: #89939c;
}

.empty-state h2 {
  margin: 12px 0 5px;
}

.empty-state p {
  color: var(--muted);
}

.primary-button {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--charcoal);
  color: #fff;
  font-weight: 700;
}

.primary-button:hover {
  background: #293039;
}

.footer {
  display: grid;
  min-height: 120px;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.footer img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.footer p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer a {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 6px;
  align-items: center;
  gap: 7px;
  color: #31515a;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.footer a:hover {
  background: #e6edef;
}

.toast {
  position: fixed;
  z-index: 180;
  right: 22px;
  bottom: 22px;
  display: flex;
  min-height: 46px;
  padding: 10px 15px;
  border-radius: 6px;
  align-items: center;
  gap: 9px;
  transform: translateY(120px);
  background: var(--charcoal);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  color: #fff;
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast svg {
  width: 18px;
  color: #63e3af;
}

.is-filtered-out,
.is-search-hidden {
  display: none !important;
}

.searchable mark {
  padding: 0;
  background: #ffec9b;
  color: inherit;
}

.mobile-only {
  display: none;
}

@media (max-width: 1160px) {
  :root { --sidebar-width: 242px; }
  .content { width: min(960px, calc(100% - 40px)); }
  .docs-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-grid--three > :last-child { grid-column: 1 / -1; }
  .panel-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moderation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-steps { grid-template-columns: 1fr; gap: 10px; }
  .payment-steps > svg { display: none; }
  .payment-steps > div { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 10px; }
  .payment-steps p { margin: 0; }
}

@media (max-width: 860px) {
  :root { --topbar-height: 62px; }
  .mobile-only { display: inline-grid; }
  .desktop-only { display: none; }
  .topbar__inner { padding: 0 12px; }
  .topbar__inner > .icon-button { order: -1; }
  .brand { margin-right: auto; }
  .brand img { width: 38px; height: 38px; }
  .brand small { display: none; }
  .text-button span { display: none; }
  .text-button { width: 40px; padding: 0; justify-content: center; }
  .page-shell { display: block; }
  .sidebar {
    position: fixed;
    z-index: 130;
    top: 0;
    left: 0;
    width: min(330px, 88vw);
    height: 100vh;
    transform: translateX(-105%);
    border-right: 0;
    box-shadow: 12px 0 34px rgba(14, 21, 26, 0.22);
    transition: transform 180ms ease;
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar__head { position: sticky; top: 0; z-index: 2; min-height: 58px; background: #eef1f4; }
  .sidebar__head .icon-button:hover { background: #dce3e8; }
  .scrim {
    position: fixed;
    z-index: 120;
    inset: 0;
    display: block;
    border: 0;
    pointer-events: none;
    background: rgba(5, 10, 14, 0.5);
    opacity: 0;
    transition: opacity 180ms ease;
  }
  .scrim.is-visible { pointer-events: auto; opacity: 1; }
  .content { width: min(100% - 28px, 720px); padding-top: 18px; }
  .brand-banner { min-height: 250px; }
  .brand-banner__content { inset: auto 22px 22px; }
  .finder { top: calc(var(--topbar-height) + 7px); grid-template-columns: 1fr; margin-top: 14px; }
  .role-filter { grid-template-columns: repeat(3, 1fr); }
  .intro-grid { margin-bottom: 60px; }
  .docs-grid, .docs-grid--three { grid-template-columns: 1fr; }
  .docs-grid--three > :last-child { grid-column: auto; }
  .game-panel { grid-template-columns: 1fr; gap: 8px; }
  .feature-band { grid-template-columns: 1fr; }
  .feature-band__visual { min-height: 210px; }
  .access-row, .command-table__row { grid-template-columns: 1fr 1.5fr; }
  .access-row > :last-child { display: none; }
  .command-table__row > :nth-child(2) { text-align: right; }
  .command-table__row > :nth-child(3) { grid-column: 1 / -1; padding-top: 8px; border-top: 1px dashed var(--line); }
  .command-table__head > :nth-child(3) { display: none; }
  .diagnostic li { grid-template-columns: 34px minmax(0, 1fr); }
  .diagnostic li span { grid-column: 2; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .content { width: calc(100% - 20px); }
  .brand-banner { min-height: 225px; border-radius: 6px; }
  .brand-banner__content { inset: auto 17px 17px; }
  .brand-banner p { font-size: 0.92rem; }
  .finder { padding: 9px; }
  .search-box kbd { display: none; }
  .filter-button { padding: 7px 5px; font-size: 0.72rem; }
  .intro-grid { grid-template-columns: 1fr; }
  .summary-block { min-height: 112px; padding: 18px; }
  .doc-section { margin-bottom: 72px; }
  .section-heading { align-items: flex-start; }
  .section-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .part-heading { margin-bottom: 36px; }
  .step { padding: 17px 15px; grid-template-columns: 36px minmax(0, 1fr); }
  .step > span { width: 30px; height: 30px; }
  .doc-card { padding: 18px; }
  .doc-card__head { flex-direction: column; }
  .callout { padding: 16px; grid-template-columns: 22px minmax(0, 1fr); }
  .copy-button span { display: none; }
  .game-panel { min-height: 0; padding: 20px; }
  .game-tab { padding-inline: 12px; }
  .mini-flow { align-items: stretch; flex-direction: column; }
  .mini-flow svg { align-self: center; transform: rotate(90deg); }
  .access-row { padding: 12px; gap: 10px; font-size: 0.8rem; }
  .panel-map { grid-template-columns: 1fr; }
  .panel-map article { min-height: 125px; }
  .feature-band { padding: 18px; }
  .feature-band__visual { grid-template-columns: repeat(3, 50px); gap: 8px; }
  .feature-band__visual span { width: 50px; height: 50px; }
  .moderation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .command-catalog { grid-template-columns: 1fr; }
  .diagnostic li { align-items: start; }
  .footer { grid-template-columns: 42px minmax(0, 1fr); }
  .footer img { width: 42px; height: 42px; }
  .footer a { grid-column: 1 / -1; justify-content: center; }
  .toast { right: 10px; bottom: 10px; left: 10px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
