/* ==========================================================
   Rust External Interactive Demo — rust-demo.css
   ========================================================== */

@font-face {
  font-family: 'Geist';
  src: url('./Geist-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── Page layout ────────────────────────────────────────── */
#view-demo { display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); }
/* view-hidden class (display:none !important in styles.css) handles hiding; no .active needed */

/* ── Menu Window ────────────────────────────────────────── */
.rd-menu {
  width: 660px; height: 675px;
  background: #090909;
  border-radius: 6px;
  border: 1px solid rgba(255,231,231,0.10);
  display: flex; flex-direction: column;
  overflow: hidden;
  font-family: 'Geist', 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  color: rgb(234,221,221);
  position: relative;
  user-select: none;
}

/* ── Nav bar ────────────────────────────────────────────── */
.rd-nav {
  height: 56px; flex-shrink: 0;
  display: flex; align-items: stretch;
  border-bottom: 1px solid rgba(255,231,231,0.078);
}

.rd-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 0 4px; cursor: pointer; position: relative;
  color: rgb(115,110,110); font-size: 13px; font-weight: 600;
  border: none; background: none; transition: color 0.15s;
  white-space: nowrap;
}
.rd-tab svg { flex-shrink: 0; transition: color 0.15s; }
.rd-tab::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--accent, #7c00ff); opacity: 0;
  transition: opacity 0.18s;
}
.rd-tab.active { color: rgb(234,221,221); }
.rd-tab.active::after { opacity: 1; }
.rd-tab.active svg { color: var(--accent, #7c00ff); }
/* ── Content area ───────────────────────────────────────── */
.rd-subtabs {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px; padding: 10px 14px 0; flex-shrink: 0;
}
.rd-subtab {
  padding: 6px 10px; border-radius: 3px;
  border: 1px solid rgba(255,231,231,0.0392);
  background: none; font-family: inherit; font-size: 12px; font-weight: 600;
  color: rgb(115,110,110); cursor: pointer;
  transition: color 0.13s, border-color 0.13s;
  white-space: nowrap;
}
.rd-subtab.active { color: rgb(234,221,221); border-color: rgba(255,231,231,0.22); }

.rd-content {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  padding: 10px 14px 14px;
  scrollbar-width: thin; scrollbar-color: var(--accent, #7c00ff) #161616;
}
.rd-content::-webkit-scrollbar { width: 4px; }
.rd-content::-webkit-scrollbar-thumb { background: var(--accent, #7c00ff); border-radius: 2px; }
.rd-content::-webkit-scrollbar-track { background: #161616; }

/* Two-column layout */
.rd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.rd-cols > div { min-width: 0; }

/* ── Sections (collapsible children) ───────────────────── */
.rd-section {
  background: transparent; border: none; overflow: visible;
  margin-bottom: 8px;
}
.rd-section-head {
  display: flex; align-items: center; gap: 5px;
  padding: 0 0 4px; cursor: pointer;
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
  color: rgb(190,180,180);
  user-select: none; transition: color 0.1s;
}
.rd-section-head:hover { color: rgb(234,221,221); }
.rd-section-chevron { color: rgb(115,110,110); transition: transform 0.18s; flex-shrink: 0; }
.rd-section.open .rd-section-chevron { transform: rotate(180deg); }
.rd-section-body {
  border: 1px solid rgba(255,231,231,0.055); background: #090909;
  border-radius: 0; padding: 6px 10px 10px; display: none;
}
.rd-section.open .rd-section-body { display: block; }

/* ── Separator / TextDisabled ───────────────────────────── */
.rd-sep { height: 1px; background: rgba(255,231,231,0.039); margin: 6px 0; }
.rd-td { font-size: 11px; color: rgb(115,110,110); margin: 8px 0 4px; display: block; font-weight: 600; letter-spacing: 0.04em; }

/* ── Checkbox row ───────────────────────────────────────── */
.rd-cb-row { display: flex; align-items: center; padding: 3px 0; min-height: 22px; }
.rd-cb {
  width: 15px; height: 15px; border-radius: 2px;
  border: 1px solid rgba(255,231,231,0.22); flex-shrink: 0;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: #101010; transition: background 0.11s, border-color 0.11s;
}
.rd-cb.checked { background: var(--accent, #7c00ff); border-color: var(--accent, #7c00ff); }
.rd-cb svg { display: none; color: #fff; }
.rd-cb.checked svg { display: block; }
.rd-cb-label {
  margin-left: 9px; flex: 1; font-size: 12px; color: rgb(115,110,110);
  cursor: pointer; transition: color 0.11s; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rd-cb-row.enabled .rd-cb-label { color: rgb(234,221,221); }
.rd-cb-accessories { display: flex; align-items: center; gap: 5px; margin-left: 7px; }

/* Wrench button */
.rd-wrench {
  width: 17px; height: 17px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgb(115,110,110); border-radius: 2px;
  border: none; background: none; padding: 0; flex-shrink: 0;
  transition: color 0.11s;
}
.rd-wrench:hover, .rd-wrench.open { color: var(--accent, #7c00ff); }

/* Color swatch */
.rd-swatch {
  width: 13px; height: 13px; border-radius: 50%;
  cursor: pointer; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.18);
  transition: transform 0.1s;
}
.rd-swatch:hover { transform: scale(1.2); }

/* Key binder */
.rd-binder {
  height: 22px; padding: 0 8px; border-radius: 3px;
  background: #161616; border: 1px solid rgba(255,231,231,0.16);
  color: rgb(195,185,185); font-size: 11px; font-family: 'Courier New', monospace;
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  white-space: nowrap; transition: border-color 0.11s, color 0.11s;
  letter-spacing: 0.03em;
}
.rd-binder svg { flex-shrink: 0; opacity: 0.7; order: 1; color: rgb(195,185,185); }
.rd-binder.listening { border-color: var(--accent, #7c00ff); color: var(--accent, #7c00ff); }
.rd-binder.listening svg { opacity: 1; color: var(--accent, #7c00ff); }
.rd-binder:hover { border-color: rgba(255,231,231,0.28); color: rgb(234,221,221); }
.rd-binder:hover svg { color: rgb(234,221,221); }

/* ── Slider ──────────────────────────────────────────────── */
.rd-sl-row { padding: 4px 0; }
.rd-sl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.rd-sl-label { font-size: 12px; color: rgb(234,221,221); }
.rd-sl-val {
  font-size: 12px; color: rgb(115,110,110);
  min-width: 28px; text-align: right;
  font-family: inherit; line-height: 1;
}
.rd-sl-track {
  width: 100%; height: 16px; border-radius: 3px;
  background: transparent; position: relative; cursor: pointer;
}
.rd-sl-track::before {
  content: ''; position: absolute;
  left: 0; right: 0; top: 50%; height: 4px;
  transform: translateY(-50%);
  background: #161616; border-radius: 3px;
  pointer-events: none;
}
.rd-sl-fill {
  height: 4px; border-radius: 3px;
  background: var(--accent, #7c00ff);
  position: absolute; top: 50%; left: 0;
  transform: translateY(-50%);
  pointer-events: none;
}
.rd-sl-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgb(234,221,221);
  position: absolute; top: 50%;
  transform: translate(-50%, -50%);
  cursor: grab; z-index: 1;
}
.rd-sl-thumb:active { cursor: grabbing; }

/* ── Combo ───────────────────────────────────────────────── */
.rd-cm-row { padding: 4px 0; }
.rd-cm-label { font-size: 11px; color: rgb(234,221,221); margin-bottom: 3px; display: block; }
.rd-cm-trigger {
  width: 100%; height: 22px; background: #101010;
  border: 1px solid rgba(255,231,231,0.039); border-radius: 3px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px; cursor: pointer; transition: background 0.11s;
}
.rd-cm-trigger:hover { background: #161616; }
.rd-cm-val { font-size: 11px; color: rgb(234,221,221); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.rd-cm-arrow { color: rgb(115,110,110); flex-shrink: 0; transition: transform 0.13s; }
.rd-cm-trigger.open .rd-cm-arrow { transform: rotate(180deg); }

/* Dropdown portal (appended to body, position:fixed) */
.rd-dropdown {
  position: fixed; z-index: 99990;
  background: #101010; border: 1px solid rgba(255,231,231,0.039);
  border-radius: 3px; overflow-y: auto; max-height: 140px;
  scrollbar-width: thin; scrollbar-color: var(--accent,#7c00ff) #161616;
  animation: rdFadeIn 0.1s ease;
  min-width: 120px;
}
.rd-dropdown::-webkit-scrollbar { width: 4px; }
.rd-dropdown::-webkit-scrollbar-thumb { background: var(--accent,#7c00ff); border-radius: 2px; }
.rd-di {
  padding: 6px 9px; font-size: 12px; cursor: pointer;
  color: rgb(115,110,110); transition: background 0.09s;
  white-space: nowrap;
}
.rd-di:hover { background: #161616; color: rgb(234,221,221); }
.rd-di.sel { color: var(--accent,#7c00ff); background: #161616; }

/* MultiCombo items — plain selectable lines, no checkbox */
.rd-mc-di.sel { color: var(--accent,#7c00ff); background: #161616; }

/* ── Popover (wrench options) ───────────────────────────── */
.rd-popover {
  position: fixed; z-index: 99991;
  width: 210px; background: #101010;
  border: 1px solid rgba(255,231,231,0.039); border-radius: 3px;
  padding: 12px; animation: rdFadeIn 0.11s ease;
  overflow-y: auto; max-height: calc(100vh - 24px);
}

/* ── Color Picker ───────────────────────────────────────── */
.rd-cp {
  position: fixed; z-index: 99992;
  width: 230px; background: #101010;
  border: 1px solid rgba(255,231,231,0.039); border-radius: 3px;
  padding: 12px; animation: rdFadeIn 0.11s ease;
}
.rd-cp-sv {
  width: 180px; height: 150px; border-radius: 2px;
  position: relative; cursor: crosshair; flex-shrink: 0;
}
.rd-cp-sv-thumb {
  width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid #fff; position: absolute;
  pointer-events: none; transform: translate(-50%, -50%);
  box-shadow: 0 0 3px rgba(0,0,0,0.6);
}
.rd-cp-hue {
  width: 22px; height: 150px; border-radius: 2px;
  position: relative; cursor: crosshair; flex-shrink: 0;
  background: linear-gradient(to bottom, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}
.rd-cp-hue-thumb {
  width: 100%; height: 3px; background: rgba(255,255,255,0.8);
  border-radius: 1px; position: absolute; pointer-events: none;
  left: 0; transform: translateY(-50%);
}
.rd-cp-alpha {
  width: 22px; height: 150px; border-radius: 2px;
  position: relative; cursor: crosshair; flex-shrink: 0;
}
.rd-cp-alpha-thumb {
  width: 100%; height: 3px; background: rgba(255,255,255,0.8);
  border-radius: 1px; position: absolute; pointer-events: none;
  left: 0; transform: translateY(-50%);
}
.rd-cp-inputs { margin-top: 9px; display: flex; flex-direction: column; gap: 5px; }
.rd-cp-hex-row {
  display: flex; align-items: center; gap: 6px;
  background: #161616; border: 1px solid rgba(255,231,231,0.039);
  border-radius: 3px; padding: 3px 8px;
}
.rd-cp-hex-row span { font-size: 11px; color: rgb(115,110,110); flex-shrink: 0; }
.rd-cp-hex-row input {
  background: none; border: none; outline: none;
  font-size: 12px; color: rgb(234,221,221); width: 100%;
  font-family: 'Courier New', monospace;
}
.rd-cp-preview {
  width: 22px; height: 22px; border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.15); flex-shrink: 0;
}

/* ── Button ──────────────────────────────────────────────── */
.rd-btn {
  height: 26px; padding: 0 12px;
  background: var(--accent, #7c00ff); border: none; border-radius: 3px;
  color: #fff; font-size: 12px; font-weight: 700; font-family: inherit;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: opacity 0.12s;
}
.rd-btn:hover { opacity: 0.85; }
.rd-btn-frame {
  height: 26px; padding: 0 12px;
  background: #101010; border: 1px solid rgba(255,231,231,0.039); border-radius: 3px;
  color: rgb(115,110,110); font-size: 12px; font-family: inherit;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.11s, color 0.11s;
}
.rd-btn-frame:hover { background: #161616; color: rgb(234,221,221); }
/* ── TextField ───────────────────────────────────────────── */
.rd-tf {
  display: flex; align-items: center; gap: 7px;
  background: #101010; border: 1px solid rgba(255,231,231,0.039);
  border-radius: 3px; padding: 0 9px; height: 28px; flex: 1;
  transition: border-color 0.11s;
}
.rd-tf:focus-within { border-color: rgba(255,231,231,0.12); }
.rd-tf svg { color: rgb(115,110,110); flex-shrink: 0; }
.rd-tf input {
  background: none; border: none; outline: none;
  font-family: inherit; font-size: 12px; color: rgb(234,221,221); width: 100%;
}
.rd-tf input::placeholder { color: rgb(115,110,110); }
.rd-tf-row { display: flex; gap: 7px; margin-bottom: 10px; }

/* ── Toast ───────────────────────────────────────────────── */
.rd-toast-root {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 7px;
  z-index: 999999; pointer-events: none;
}
.rd-toast {
  display: flex; align-items: center; gap: 9px;
  background: #101010; border: 1px solid rgba(255,231,231,0.039);
  border-radius: 4px; padding: 9px 14px;
  font-size: 12px; color: rgb(234,221,221);
  min-width: 220px; max-width: 300px;
  animation: rdSlideIn 0.18s ease;
  pointer-events: all;
}
@keyframes rdSlideIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
.rd-toast.out { animation: rdSlideOut 0.18s ease forwards; }
@keyframes rdSlideOut {
  to { opacity: 0; transform: translateX(16px); }
}
.rd-toast-icon { flex-shrink: 0; }
.rd-toast.success .rd-toast-icon { color: var(--accent, #7c00ff); }
.rd-toast.error   .rd-toast-icon { color: #ef4444; }

@keyframes rdFadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Footer ──────────────────────────────────────────────── */
.rd-footer {
  height: 38px; flex-shrink: 0;
  display: flex; align-items: center; padding: 0 10px;
  border-top: 1px solid rgba(255,231,231,0.078);
  gap: 8px;
}
/* ── Player List ─────────────────────────────────────────── */
.rd-pl-search { margin-bottom: 10px; }
.rd-pl-card {
  background: #090909; border: 1px solid rgba(255,231,231,0.05);
  border-radius: 6px; overflow: hidden; margin-bottom: 7px;
}
.rd-pl-hdr {
  display: flex; align-items: center; gap: 9px;
  padding: 0 10px; height: 50px; cursor: pointer;
  transition: background 0.1s;
}
.rd-pl-hdr:hover { background: rgba(255,255,255,0.022); }
.rd-pl-av {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; position: relative;
  background: #1a1a1a;
}
.rd-pl-av-dot {
  position: absolute; bottom: -1px; right: -1px;
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid #090909;
}
.rd-pl-av-dot.in  { background: #22c55e; }
.rd-pl-av-dot.out { background: #ef4444; }
.rd-pl-info { flex: 1; min-width: 0; }
.rd-pl-name {
  font-size: 13px; color: rgb(234,221,221);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 5px;
}
.rd-pl-sub { font-size: 11px; color: rgb(115,110,110); margin-top: 1px; }
.rd-pl-right { text-align: right; flex-shrink: 0; }
.rd-pl-dist { font-size: 11px; color: rgb(115,110,110); }
.rd-pl-hbar { width: 52px; height: 3px; border-radius: 2px; background: #1a1a1a; margin: 3px 0; overflow: hidden; }
.rd-pl-hfill { height: 100%; border-radius: 2px; background: #22c55e; }
.rd-pl-hp { font-size: 10px; color: rgb(115,110,110); }
.rd-pl-chev { color: rgb(115,110,110); flex-shrink: 0; transition: transform 0.15s; }
.rd-pl-card.open .rd-pl-chev { transform: rotate(180deg); }
.rd-pl-body {
  border-top: 1px solid rgba(255,231,231,0.05);
  padding: 9px 10px; display: none; font-size: 12px;
  color: rgb(115,110,110);
}
.rd-pl-card.open .rd-pl-body { display: block; }
.rd-pl-sec-lbl { font-size: 10px; color: rgb(115,110,110); margin-bottom: 4px; margin-top: 7px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.rd-pl-sec-lbl:first-child { margin-top: 0; }
.rd-pl-slots { display: flex; flex-wrap: wrap; gap: 3px; }
.rd-pl-slot {
  width: 28px; height: 28px; background: #161616;
  border: 1px solid rgba(255,231,231,0.039); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: rgb(115,110,110);
}
.rd-pl-slot.active {
  border-color: rgba(124,0,255,0.4); background: rgba(124,0,255,0.12);
  color: rgb(234,221,221);
}
.rd-pl-actions { display: flex; gap: 5px; margin-top: 9px; }
.rd-pl-actions .rd-btn-frame { flex: 1; justify-content: center; font-size: 11px; height: 24px; padding: 0 8px; }
.rd-skull {
  display: inline-flex; align-items: center;
  background: rgba(239,68,68,0.15); border-radius: 3px;
  padding: 0 3px; height: 16px; color: #ef4444;
}

/* ── Configs / Library ───────────────────────────────────── */
.rd-cfg-card {
  background: #090909; border: 1px solid rgba(255,231,231,0.05);
  border-radius: 4px; padding: 10px 12px; margin-bottom: 7px;
  display: flex; align-items: center; gap: 10px;
}
.rd-cfg-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid rgba(255,231,231,0.15); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #101010; transition: background 0.11s, border-color 0.11s;
}
.rd-cfg-dot.loaded { background: var(--accent,#7c00ff); border-color: var(--accent,#7c00ff); }
.rd-cfg-dot.loaded svg { display: block; }
.rd-cfg-dot svg { display: none; color: #fff; }
.rd-cfg-info { flex: 1; min-width: 0; }
.rd-cfg-name { font-size: 13px; color: rgb(234,221,221); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-cfg-meta { font-size: 11px; color: rgb(115,110,110); margin-top: 2px; }
.rd-cfg-actions { display: flex; gap: 5px; flex-shrink: 0; }
.rd-cfg-empty { text-align: center; padding: 28px 0; font-size: 12px; color: rgb(115,110,110); }

/* Rust+ houses */
.rd-house-card {
  background: #090909; border: 1px solid rgba(255,231,231,0.05);
  border-radius: 4px; padding: 10px 12px; margin-bottom: 7px;
}
.rd-house-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rd-house-icon {
  width: 28px; height: 28px; background: #161616; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rd-house-name { font-size: 13px; color: rgb(234,221,221); font-weight: 600; }
.rd-house-sub { font-size: 11px; color: rgb(115,110,110); margin-top: 1px; }
.rd-house-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }

/* ── Search results (inline in content area) ─────────────── */
.rd-sr-result {
  display: flex; flex-direction: column;
  padding: 6px 0; border-bottom: 1px solid rgba(255,231,231,0.039);
}
.rd-sr-result:last-child { border-bottom: none; }
.rd-sr-result .rd-cb-row,
.rd-sr-result .rd-sl-row,
.rd-sr-result .rd-cm-row { padding: 2px 0; }

/* ── Menu wrap / scaler ──────────────────────────────────── */
.rd-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px 40px;
}
.rd-scaler {
  transform-origin: top center;
}

/* ── Logo in nav ─────────────────────────────────────────── */
.rd-logo {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px; flex-shrink: 0;
  border-right: 1px solid rgba(255,231,231,0.039);
  font-size: 12px; font-weight: 700; color: rgb(234,221,221);
  letter-spacing: -0.01em;
}
.rd-logo svg { flex-shrink: 0; }

/* ── Nav spacer ──────────────────────────────────────────── */
.rd-nav-spacer { flex: 1; }

/* ── Nav tabs row ────────────────────────────────────────── */
.rd-tabs-row {
  display: flex; align-items: stretch;
  padding: 0 4px; gap: 2px;
}

/* ── Nav search ──────────────────────────────────────────── */
.rd-nav-search {
  display: flex; align-items: center; gap: 7px;
  padding: 0 12px;
}
.rd-nav-search-icon { color: rgb(115,110,110); display: flex; align-items: center; }
.rd-nav-search-inp {
  background: none; border: none; outline: none;
  font-family: inherit; font-size: 12px; color: rgb(234,221,221); width: 100%;
}
.rd-nav-search-inp:focus,
.rd-nav-search-inp:focus-visible { outline: none; box-shadow: none; }
.rd-nav-search-inp::placeholder { color: rgb(115,110,110); }

.rd-sr-row {
  padding: 7px 10px; cursor: pointer; transition: background 0.09s;
}
.rd-sr-row:hover { background: rgba(255,255,255,0.03); }
.rd-sr-lbl { font-size: 11px; color: rgb(200,190,190); font-weight: 400; }
.rd-sr-bc {
  font-size: 10px; color: rgb(115,110,110); margin-bottom: 3px;
  letter-spacing: 0; text-transform: none;
}
.rd-sr-empty { padding: 16px 10px; font-size: 12px; color: rgb(115,110,110); text-align: center; }

/* ── Footer helpers ──────────────────────────────────────── */
.rd-footer-lang {
  display: flex; align-items: center; gap: 5px;
  color: rgb(115,110,110);
}
.rd-footer-lang svg { color: var(--accent,#7c00ff); }
.rd-footer-lang-btn {
  height: 22px; padding: 0 7px; background: none; border: none;
  border-radius: 3px; color: rgb(234,221,221); font-size: 11px;
  font-family: inherit; cursor: pointer; transition: background 0.11s;
}
.rd-footer-lang-btn:hover { background: rgba(255,255,255,0.04); }

/* ── Responsive scaling ──────────────────────────────────── */
@media (max-width: 720px) {
  .rd-scaler { transform-origin: top center; }
  .rd-nav-search { width: 120px; }
}
@media (max-width: 480px) {
  .rd-wrap { padding: 12px 8px 24px; }
}

:root{--accent:#7c00ff;--rd-accent-glow:rgba(124,0,255,.12);color-scheme:dark}
*{box-sizing:border-box}html,body{margin:0;min-width:0;background:#090909;color:rgb(234,221,221)}button,input{font:inherit}button{color:inherit}
#rust-menu{width:100%;min-height:0}.rd-wrap{width:100%;padding:0!important;display:block;overflow:hidden}.rd-scaler{transform-origin:top left!important;margin:0 auto;padding:0}.rd-menu{margin:0}
button:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
[hidden]{display:none!important}.rd-load-error{padding:28px;color:#d8c5ef;font:14px system-ui}
