:root {
  /* Optional lobby background: drop assets/server-background.png in this folder and tweak these values. */
  --server-bg-image: url("./server-background.png");
  --server-bg-blur: 5px;
  --server-bg-position: center top;
  --server-bg-position-mobile: 74% center;

  --bg: #08090c;
  --bg-deep: #0c0d11;
  --bg-raised: rgba(22, 24, 29, 0.78);
  --bg-raised-strong: rgba(22, 24, 29, 0.92);
  --bg-soft: rgba(255, 255, 255, 0.025);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-hot: rgba(255, 255, 255, 0.2);
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --muted-strong: #d4d4d8;
  --accent: #6aa9ff;
  --accent-soft: rgba(106, 169, 255, 0.14);
  --accent-warm: #f2f2f5;
  --good: #8bd9b0;
  --warn: #ffd38c;
  --danger: #ff9696;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --page-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(8, 9, 12, 0.76) 0%, rgba(8, 9, 12, 0.92) 38%, rgba(8, 9, 12, 0.98) 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -8%;
  z-index: -3;
  background-image: var(--server-bg-image);
  background-size: cover;
  background-position: var(--server-bg-position);
  background-repeat: no-repeat;
  filter: blur(var(--server-bg-blur));
  transform: scale(1.08);
  opacity: 0.52;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      180deg,
      rgba(2, 4, 6, 0.22) 0%,
      rgba(8, 9, 12, 0.44) 22%,
      rgba(8, 9, 12, 0.64) 100%
    ),
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.03),
      transparent 26%
    );
  pointer-events: none;
}
a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

code,
pre,
.mono {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

::selection {
  background: rgba(152, 214, 255, 0.2);
}

.site-shell,
.docs-shell,
.site-header-inner {
  width: min(var(--page-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px);
  background: rgba(8, 9, 12, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.header-nav,
.header-actions,
.hero-actions,
.inline-actions,
.toolbar,
.helper-row,
.pill-row,
.doc-chip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header-nav {
  flex: 1 1 auto;
}

.header-actions {
  justify-content: flex-end;
}

.nav-link,
.button,
.text-button,
.icon-button,
.rail-button,
.mode-pill,
.doc-chip,
.doc-nav-link,
.outline-link {
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.nav-link,
.button,
.text-button,
.icon-button,
.rail-button,
.mode-pill,
.doc-chip {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-align: center;
}

.icon-button,
.rail-button {
  width: 44px;
  padding: 0;
}

.nav-link:hover,
.button:hover,
.text-button:hover,
.icon-button:hover,
.rail-button:hover,
.mode-pill:hover,
.doc-chip:hover,
.doc-nav-link:hover,
.outline-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.nav-link.active,
.button.primary,
.mode-pill.active,
.doc-chip.active {
  background: rgba(106, 169, 255, 0.14);
  border-color: rgba(106, 169, 255, 0.24);
  color: #ffffff;
}

.button.ghost,
.text-button {
  background: rgba(255, 255, 255, 0.02);
}

.icon-button:disabled,
.rail-button:disabled {
  opacity: 0.35;
  transform: none;
  cursor: default;
}

.page {
  padding: 28px 0 54px;
}

.hero-stage,
.surface,
.panel,
.player-panel,
.player-hero-card,
.match-card,
.explorer-panel,
.docs-section,
.docs-article,
.docs-sidebar,
.docs-outline {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 24, 29, 0.8), rgba(15, 17, 22, 0.72));
  box-shadow: var(--shadow);
}

.hero-stage::before,
.surface::before,
.panel::before,
.player-panel::before,
.player-hero-card::before,
.match-card::before,
.explorer-panel::before,
.docs-section::before,
.docs-article::before,
.docs-sidebar::before,
.docs-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 30%);
}

.hero-stage > *,
.surface > *,
.panel > *,
.player-panel > *,
.player-hero-card > *,
.match-card > *,
.explorer-panel > *,
.docs-section > *,
.docs-article > *,
.docs-sidebar > *,
.docs-outline > * {
  position: relative;
  z-index: 1;
}

.hero-stage {
  padding: clamp(24px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 22px;
  margin-bottom: 18px;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0%, transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(8, 9, 12, 0.12) 100%);
  pointer-events: none;
}

.hero-copy,
.hero-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero-side-panel,
.hero-note,
.doc-grid-card,
.telemetry-card,
.mode-focus-card,
.fighter-card,
.compare-row {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.022);
}

.hero-side-panel,
.hero-note,
.doc-grid-card,
.telemetry-card,
.mode-focus-card,
.fighter-card,
.compare-row {
  padding: 18px;
}

.hero-list,
.sidebar-list,
.mode-focus,
.board-list,
.match-list,
.recent-list,
.metric-stack,
.list-stack,
.list,
.metric-list,
.compare-list,
.docs-page {
  display: grid;
  gap: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(106, 169, 255, 0.42);
}

.page-title,
.hero-stage h1,
.center-hero h1,
.player-hero-copy h2 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.page-copy,
.hero-stage p,
.center-hero p,
.section-copy,
.docs-lead {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-number,
.summary-card .value,
.player-rank-number,
.telemetry-card strong,
.mode-focus-card strong {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.hero-number {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero-number,
.score-number {
  color: #f5f5f7;
}

.hero-signal {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-signal:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.section-label,
.telemetry-label,
.stat-card .label,
.summary-card .label,
.mode-focus-card .label,
.sidebar-heading {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.73rem;
  font-weight: 700;
}

.hero-note p,
.hero-note strong,
.hero-signal span:last-child {
  color: var(--muted);
}

.hero-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.hero-note p,
.doc-grid-card p {
  margin: 0;
}

.search-hero {
  margin-top: 4px;
}

.searchbar {
  width: min(780px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 12px;
}

.searchbar.three {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.searchbar > * {
  min-width: 0;
}

input,
textarea,
select,
.input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  outline: none;
}

textarea {
  min-height: 168px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
}

input::placeholder,
textarea::placeholder {
  color: rgba(208, 220, 238, 0.46);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(152, 214, 255, 0.34);
  box-shadow: 0 0 0 4px rgba(152, 214, 255, 0.1);
}

.metrics-band,
.summary-band {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.metrics-band {
  margin-top: 20px;
}

.stat-card,
.summary-card {
  padding: 20px 22px;
  background: transparent;
}

.metrics-band > * + *,
.summary-band > * + * {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card .value,
.summary-card .value {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-top: 8px;
  font-weight: 700;
}

.stat-card .sub,
.summary-card .sub,
.soft,
.helper-row,
.status-line,
.muted,
.footer-note {
  display: block;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.section-head h2,
.section-head h3,
.section-head h4 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  letter-spacing: -0.05em;
  font-weight: 650;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-head h3 {
  font-size: 1.3rem;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.surface,
.panel,
.player-panel,
.player-hero-card,
.match-card,
.explorer-panel,
.docs-section,
.docs-article {
  padding: 22px;
}

.board-shell,
.player-layout,
.match-layout,
.match-overview,
.player-hero-card,
.site-footer {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.board-shell,
.player-layout,
.match-layout {
  display: grid;
  gap: 14px;
}

.board-shell {
  margin-top: 22px;
}

.board-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px) auto;
  align-items: start;
  gap: 18px;
  margin-bottom: 20px;
}

.board-title h2,
.player-hero-copy h2 {
  margin: 0;
}

.board-title {
  display: grid;
  gap: 10px;
  align-content: start;
}

.board-title p,
.player-hero-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

.mode-rail-wrap {
  position: relative;
}

.mode-rail {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding: 4px 56px 8px 4px;
  scrollbar-width: none;
}

.mode-rail::-webkit-scrollbar {
  display: none;
}

.mode-pill {
  min-height: 42px;
}

.rail-controls {
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}

.board-row,
.recent-row {
  width: 100%;
  display: grid;
  gap: 14px;
  align-items: center;
}

.board-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.board-row-button {
  appearance: none;
  color: inherit;
  text-align: left;
}

.board-row:hover,
.board-row-button:focus-visible,
.recent-row:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.board-rank {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.06em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.board-row.rank-1 .board-rank {
  background: linear-gradient(180deg, rgba(245, 205, 120, 0.92), rgba(214, 170, 83, 0.84));
  color: #2b1f08;
}

.board-row.rank-2 .board-rank {
  background: linear-gradient(180deg, rgba(237, 240, 244, 0.94), rgba(177, 184, 196, 0.84));
  color: #1a2029;
}

.board-row.rank-3 .board-rank {
  background: linear-gradient(180deg, rgba(214, 156, 111, 0.92), rgba(160, 107, 68, 0.86));
  color: #28160c;
}

.player-identity,
.fighter-head,
.player-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.avatar,
.avatar-lg,
.fighter-avatar {
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.avatar-lg {
  width: 110px;
  height: 110px;
  border-radius: 18px;
}

.fighter-avatar {
  width: 76px;
  height: 76px;
  border-radius: 16px;
}

.player-name,
.fighter-name {
  display: block;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.player-sub,
.fighter-sub,
.player-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.88rem;
}

.board-score {
  min-width: 92px;
  display: grid;
  justify-items: end;
  gap: 4px;
}

.score-number {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.07em;
}

.score-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.board-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.notice,
.empty-state,
.error-state {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.7;
}

.error-state {
  border-color: rgba(255, 150, 150, 0.22);
  color: #ffd7d7;
  background: rgba(255, 150, 150, 0.08);
}

.notice strong,
.empty-state strong,
.error-state strong {
  display: block;
  margin-bottom: 4px;
}

.status-line,
.site-footer {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.7;
}

.site-footer {
  margin-top: 28px;
  color: var(--muted);
}

.site-footer a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.82rem;
}

.pill.good {
  color: #edfff3;
  border-color: rgba(159, 224, 181, 0.22);
  background: rgba(159, 224, 181, 0.09);
}

.pill.warn {
  color: #fff3db;
  border-color: rgba(255, 211, 140, 0.2);
  background: rgba(255, 211, 140, 0.08);
}

.player-topline,
.recent-row-top,
.match-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.list-row {
  display: grid;
  grid-template-columns: minmax(84px, 110px) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.metric-row strong,
.list-row strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.metric-bar,
.progress-track,
.compare-track {
  position: relative;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.metric-fill,
.progress-fill,
.compare-fill-left,
.compare-fill-right {
  height: 100%;
  border-radius: inherit;
}

.metric-fill,
.progress-fill {
  background: linear-gradient(90deg, rgba(106, 169, 255, 0.94), rgba(255, 255, 255, 0.94));
}

.progress-track {
  margin-top: 12px;
}

.mode-focus-grid,
.telemetry-grid,
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mode-focus-card strong,
.telemetry-card strong {
  margin-top: 10px;
  font-size: 1.7rem;
}

.mode-focus-card span,
.telemetry-card span:last-child {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.recent-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.match-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
  margin-top: 24px;
}

.vs-badge {
  align-self: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.winner-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(159, 224, 181, 0.08);
  border: 1px solid rgba(159, 224, 181, 0.22);
  color: #eafff1;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.compare-row {
  padding: 16px;
}

.compare-head {
  display: grid;
  grid-template-columns: auto minmax(110px, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.compare-head .center {
  text-align: center;
  color: var(--muted);
}

.compare-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.compare-fill-left {
  justify-self: end;
  background: linear-gradient(90deg, rgba(106, 169, 255, 0.32), rgba(106, 169, 255, 0.88));
}

.compare-fill-right {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(217, 217, 222, 0.86));
}

.compare-track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.docs-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 230px;
  gap: 18px;
  align-items: start;
}

.docs-sidebar,
.docs-outline {
  position: sticky;
  top: 96px;
  padding: 20px;
}

.docs-sidebar-title {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.docs-sidebar-title h2 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1.45rem;
  letter-spacing: -0.05em;
}

.docs-sidebar-title p,
.docs-outline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.sidebar-group {
  display: grid;
  gap: 6px;
}

.sidebar-group + .sidebar-group {
  margin-top: 18px;
}

.doc-nav-link,
.outline-link {
  min-height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
}

.doc-nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.docs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted-strong);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}

.docs-kicker::before {
  content: "";
  width: 10px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.endpoint-header {
  display: grid;
  gap: 14px;
}

.endpoint-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.doc-chip {
  min-height: 36px;
  padding: 0 12px;
}

.doc-callout {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  line-height: 1.7;
}

.doc-grid-card {
  display: block;
}

.doc-grid-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.doc-grid-card h3,
.docs-article h2,
.docs-article h3,
.docs-article h4 {
  margin: 0 0 10px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  letter-spacing: -0.04em;
}

.docs-article h2 {
  font-size: 1.8rem;
}

.docs-article h3 {
  margin-top: 8px;
  font-size: 1.2rem;
}

.docs-article p,
.docs-article li {
  color: var(--muted);
  line-height: 1.8;
}

.docs-article ul {
  padding-left: 1.2rem;
}

.code-block,
.json-box {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(3, 6, 10, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: auto;
}

.code-block code,
.json-box pre,
.json-box {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.92rem;
  line-height: 1.75;
}

.param-grid,
.field-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.param-grid th,
.param-grid td,
.field-table th,
.field-table td {
  padding: 13px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.param-grid th,
.field-table th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.docs-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.docs-pagination a {
  flex: 1 1 220px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.docs-pagination span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.docs-pagination strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.loader {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent);
  display: inline-block;
  animation: spin 0.9s linear infinite;
  vertical-align: -3px;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1180px) {
  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-sidebar,
  .docs-outline {
    position: static;
  }
}

@media (max-width: 980px) {
  .site-header-inner {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: stretch;
  }

  .header-nav {
    justify-content: center;
  }

  .header-actions {
    justify-content: center;
  }

  .hero-stage,
  .split-layout,
  .match-versus,
  .board-toolbar,
  .mode-focus-grid,
  .telemetry-grid,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .metrics-band,
  .summary-band {
    grid-template-columns: 1fr 1fr;
  }

  .metrics-band > *:nth-child(odd),
  .summary-band > *:nth-child(odd) {
    border-left: 0;
  }

  .board-toolbar {
    margin-bottom: 16px;
  }
}

@media (max-width: 760px) {
  body::before {
    background-position: var(--server-bg-position-mobile);
    transform: scale(1.12);
  }

  .page {
    padding-top: 18px;
  }

  .site-shell,
  .docs-shell,
  .site-header-inner {
    width: min(var(--page-width), calc(100% - 24px));
  }

  .searchbar,
  .searchbar.three,
  .metrics-band,
  .summary-band {
    grid-template-columns: 1fr;
  }

  .metrics-band > * + *,
  .summary-band > * + * {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .recent-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .board-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
  }

  .board-score {
    min-width: 72px;
    grid-column: auto;
    justify-items: end;
    padding-left: 0;
  }

  .player-topline,
  .recent-row-top,
  .match-header {
    flex-direction: column;
    align-items: stretch;
  }

  .list-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .list-row strong {
    text-align: left;
  }

  .vs-badge {
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .nav-link,
  .button,
  .text-button,
  .mode-pill,
  .doc-chip,
  .icon-button,
  .rail-button {
    min-height: 42px;
    padding-inline: 14px;
  }

  .fighter-head,
  .player-hero {
    grid-template-columns: 1fr;
  }

  .player-identity {
    grid-template-columns: auto minmax(0, 1fr);
  }
}
