@font-face {
  font-family: Cozette;
  src: url('/assets/fonts/CozetteVector.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: Iosevka;
  src: url('/assets/fonts/Iosevka.woff2') format('woff2');
  font-display: swap;
}

:root {
  color-scheme: dark;
  --accent: #69789b;
  --accent-rgb: 105, 120, 155;
  --bg: #0d0e12;
  --surface: #12141a;
  --surface-strong: #171a21;
  --surface-hover: #1b1e26;
  --text: #f1f1f4;
  --muted: #8e929d;
  --quiet: #60646f;
  --border: #292c34;
  --border-bright: #3b3f49;
  --shadow: 0 22px 60px rgba(0, 0, 0, .28);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
  zoom: 1.1;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg);
  font-family: Iosevka, ui-monospace, SFMono-Regular, Consolas, monospace;
  transition: color .2s ease, background-color .2s ease;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), .055), transparent 38%),
    url('/assets/background.svg') center top / 920px auto repeat;
  opacity: .36;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
}

svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

::selection {
  color: var(--bg);
  background: var(--accent);
}

.site-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.page-width,
.header-inner {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border), transparent 20%);
  background: color-mix(in srgb, var(--bg), transparent 10%);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 150px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--accent);
  font-size: 27px;
  line-height: 1;
  transition: transform .25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(14deg) scale(1.08);
}

.brand-type {
  position: relative;
  font-family: Cozette, monospace;
  font-size: 24px;
  letter-spacing: .02em;
}

.brand-type::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--accent);
  animation: blink .9s steps(1) infinite;
}

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

.header-link,
.icon-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  background: var(--surface);
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

.header-link {
  gap: 8px;
  padding: 0 13px;
  font-size: 13px;
}

.icon-button {
  width: 38px;
  padding: 0;
  cursor: pointer;
}

.header-link:hover,
.icon-button:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(var(--accent-rgb), .1);
  transform: translateY(-1px);
}

main {
  flex: 1;
}

.hero {
  padding-top: clamp(72px, 10vw, 132px);
  padding-bottom: clamp(76px, 9vw, 116px);
}

.eyebrow,
.section-index,
.section-note,
.result-count {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-family: Cozette, monospace;
  font-size: clamp(52px, 8vw, 98px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.035em;
}

.accent {
  color: var(--accent);
  text-shadow: 0 0 28px rgba(var(--accent-rgb), .18);
}

.hero p {
  max-width: 590px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.command-section,
.catalog-section {
  padding-bottom: 96px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading > div {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.section-index {
  color: var(--accent);
}

.section-heading h2 {
  margin: 0;
  font-family: Cozette, monospace;
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 400;
}

.command-box {
  display: flex;
  width: 100%;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.command-box:hover {
  border-color: var(--accent);
  background: var(--surface-strong);
}

.command-box code {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-copy {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
}

.catalog-heading {
  margin-bottom: 20px;
}

.result-count {
  color: var(--accent);
}

.search-box {
  display: flex;
  height: 52px;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .1);
}

.search-box > span {
  display: flex;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 14px;
}

.search-box input::placeholder {
  color: var(--quiet);
}

.search-box kbd {
  min-width: 24px;
  padding: 3px 7px;
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  color: var(--quiet);
  background: var(--surface-strong);
  font: 12px Iosevka, monospace;
  text-align: center;
}

.skin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.skin-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
  cursor: copy;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.skin-card:hover,
.skin-card:focus-visible {
  z-index: 1;
  border-color: var(--accent);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18), 0 0 0 1px rgba(var(--accent-rgb), .13);
  transform: translateY(-3px);
}

.skin-preview {
  position: relative;
  display: grid;
  aspect-ratio: 1.42;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 52%, rgba(var(--accent-rgb), .16), transparent 37%),
    var(--surface-strong);
}

.skin-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .18));
  pointer-events: none;
}

.skin-preview img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .22));
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), filter .25s ease;
}

.skin-card:hover .skin-preview img {
  transform: scale(1.045) translateY(-2px);
  filter: drop-shadow(0 19px 19px rgba(0, 0, 0, .28));
}

.card-number {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 11px;
  color: var(--quiet);
  font-size: 10px;
  letter-spacing: .1em;
}

.copy-hint {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--border-bright), transparent 20%);
  border-radius: 4px;
  color: var(--text);
  background: color-mix(in srgb, var(--bg), transparent 12%);
  font-size: 10px;
  opacity: 0;
  transform: translateY(5px);
  backdrop-filter: blur(8px);
  transition: opacity .18s ease, transform .18s ease;
}

.skin-card:hover .copy-hint,
.skin-card:focus-visible .copy-hint {
  opacity: 1;
  transform: translateY(0);
}

.skin-info {
  padding: 15px 15px 13px;
}

.skin-name {
  overflow: hidden;
  font-family: Cozette, monospace;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skin-meta {
  display: flex;
  min-height: 26px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}

.skin-meta > span {
  overflow: hidden;
  color: var(--quiet);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-button {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  background: var(--surface-strong);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.download-button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb), .1);
}

.empty-state {
  padding: 90px 24px;
  border: 1px dashed var(--border-bright);
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
}

.empty-state span {
  color: var(--text);
  font: 32px Cozette, monospace;
}

.empty-state p {
  margin: 10px 0 0;
  font-size: 13px;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 26px;
  padding-bottom: 36px;
  border-top: 1px solid var(--border);
  color: var(--quiet);
  font-family: Cozette, monospace;
  font-size: 14px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.toast-region {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  display: flex;
  width: min(360px, calc(100% - 44px));
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--border-bright);
  border-radius: 5px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-strong), transparent 4%);
  box-shadow: var(--shadow);
  font-size: 12px;
  backdrop-filter: blur(14px);
  animation: toast-in .25s ease;
}

.toast-mark {
  color: var(--accent);
}

.toast-out {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 980px) {
  .skin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .page-width,
  .header-inner { width: min(100% - 28px, 1180px); }
  .header-link { display: none; }
  .hero { padding-top: 68px; }
  .hero h1 { font-size: clamp(48px, 15vw, 72px); }
  .section-note { display: none; }
  .command-box { align-items: flex-start; flex-direction: column; }
  .command-box code { width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .skin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
  .header-inner { min-height: 60px; }
  .brand-type { font-size: 21px; }
  .hero { padding-top: 56px; padding-bottom: 68px; }
  .hero h1 { font-size: clamp(43px, 14vw, 60px); }
  .hero p { font-size: 13px; }
  .command-section,
  .catalog-section { padding-bottom: 70px; }
  .catalog-heading { align-items: flex-start; }
  .skin-grid { grid-template-columns: 1fr; }
  .skin-preview { aspect-ratio: 1.65; }
  .copy-hint { opacity: 1; transform: none; }
  .search-box kbd { display: none; }
  .toast-region { right: 14px; bottom: 14px; width: calc(100% - 28px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.page-width,
.header-inner {
  width: min(1600px, calc(100% - 32px));
}

.header-inner {
  display: grid;
  min-height: 62px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
}

.connect-label {
  color: var(--text);
  font: 19px Cozette, monospace;
  white-space: nowrap;
}

.header-command {
  display: flex;
  min-width: 0;
  height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 11px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.header-command:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), .1);
}

.header-command code {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-command > span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 11px;
}

.header-link {
  height: 38px;
  flex: 0 0 auto;
  padding: 0 12px;
  font-size: 11px;
}

.catalog-section {
  padding-top: 22px;
  padding-bottom: 58px;
}

.catalog-heading {
  margin-bottom: 11px;
}

.section-heading h2 {
  font-size: 27px;
}

.search-box {
  height: 42px;
  margin-bottom: 12px;
}

.collection-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.collection-tab {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  font: 13px Cozette, monospace;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.collection-tab:hover {
  color: var(--text);
  background: var(--surface);
}

.collection-tab.active {
  border-color: rgba(var(--accent-rgb), .46);
  color: var(--text);
  background: rgba(var(--accent-rgb), .13);
}

.skin-grid {
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 8px;
}

.skin-preview {
  aspect-ratio: 1.12;
}

.skin-preview img {
  width: 96%;
  height: 96%;
}

.skin-canvas {
  width: 96%;
  height: auto;
  max-height: 96%;
  filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .22));
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), filter .25s ease;
}

.skin-card:hover .skin-canvas {
  transform: scale(1.045) translateY(-2px);
  filter: drop-shadow(0 19px 19px rgba(0, 0, 0, .28));
}

.skin-canvas.preview-error {
  opacity: .25;
}

.catalog-loader {
  margin: 16px auto 0;
  color: var(--quiet);
  font: 12px Cozette, monospace;
  text-align: center;
}

.card-number {
  top: 6px;
  left: 7px;
}

.copy-hint {
  right: 6px;
  bottom: 6px;
  padding: 5px;
}

.copy-hint span {
  display: none;
}

.skin-info {
  padding: 8px 8px 7px;
}

.skin-name {
  font-size: 13px;
}

.skin-meta {
  min-height: 21px;
  margin-top: 4px;
}

.skin-meta > span {
  font-size: 8px;
}

.download-button {
  width: 22px;
  height: 22px;
}

@media (max-width: 1250px) {
  .skin-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .skin-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .header-link {
    display: none;
  }
}

@media (max-width: 680px) {
  .page-width,
  .header-inner {
    width: calc(100% - 20px);
  }

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

  .connect-label {
    font-size: 16px;
  }

  .header-command > span > span {
    display: none;
  }

  .skin-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.result-count {
  color: #cbd3e7;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 0 14px rgba(var(--accent-rgb), .42);
}

.footer-faq {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.footer-faq:hover {
  color: var(--accent);
}

@media (max-width: 460px) {
  .header-inner {
    min-height: 56px;
  }

  .connect-label {
    font-size: 14px;
  }

  .header-command code {
    font-size: 9px;
  }

  .catalog-section {
    padding-top: 16px;
    padding-bottom: 48px;
  }

  .skin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .skin-preview {
    aspect-ratio: 1.12;
  }

  .skin-meta > span {
    display: none;
  }
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 218px;
  gap: 16px;
  align-items: start;
}

.catalog-main {
  min-width: 0;
}

.skin-grid {
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

.card-number,
.skin-meta {
  display: none;
}

.skin-info {
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.skin-name {
  min-width: 0;
}

.color-sidebar {
  position: sticky;
  top: 84px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .12);
}

.filter-heading {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
}

.filter-heading h2 {
  margin: 0;
  font: 20px Cozette, monospace;
  font-weight: 400;
}

.filter-heading button {
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}

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

.color-filters {
  display: flex;
  flex-direction: column;
  padding: 6px;
}

.color-filter {
  display: grid;
  min-height: 34px;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.color-filter:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.color-filter.active {
  border-color: rgba(var(--accent-rgb), .42);
  color: var(--text);
  background: rgba(var(--accent-rgb), .13);
}

.color-filter b {
  color: var(--quiet);
  font-size: 9px;
  font-weight: 400;
}

.color-filter.active b {
  color: var(--accent);
}

.color-swatch {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
}

.all-colors {
  background: conic-gradient(#e95762, #e7cf4f, #65b96c, #5c83d6, #9670d3, #e95762);
}

.color-loading {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 8px;
  color: var(--quiet);
  font-size: 10px;
}

.color-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: color-pulse .9s ease-in-out infinite alternate;
}

@keyframes color-pulse {
  to {
    opacity: .28;
    transform: scale(.72);
  }
}

@media (max-width: 1100px) {
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr) 190px;
  }

  .skin-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .color-sidebar {
    position: static;
    grid-row: 1;
  }

  .color-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .skin-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .color-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

.header-left,
.header-right {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

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

.faq-button,
.language-toggle {
  display: inline-flex;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.faq-button {
  padding: 0 12px;
  color: var(--text);
  font: 14px Cozette, monospace;
}

.language-toggle {
  gap: 5px;
  padding: 0 10px;
  font-size: 10px;
}

.mobile-language-toggle {
  display: none;
  margin-left: auto;
}

.language-toggle i {
  color: var(--quiet);
  font-style: normal;
}

.language-toggle span {
  transition: color .16s ease;
}

.language-toggle span.active {
  color: var(--accent);
}

.faq-button:hover,
.language-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(var(--accent-rgb), .1);
}

.faq-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.faq-modal[hidden] {
  display: none;
}

.faq-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(4, 5, 8, .76);
  cursor: default;
  backdrop-filter: blur(7px);
}

.faq-dialog {
  position: relative;
  width: min(620px, 100%);
  overflow: hidden;
  border: 1px solid var(--border-bright);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .56);
  animation: faq-in .2s ease;
}

.faq-header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid var(--border);
}

.faq-header h2 {
  margin: 0;
  font: 25px Cozette, monospace;
  font-weight: 400;
}

.faq-close {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  background: var(--surface-strong);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.faq-close:hover {
  border-color: var(--accent);
  color: var(--text);
}

.faq-content {
  padding: 4px 20px 20px;
}

.faq-item {
  padding: 18px 0;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  margin: 0 0 9px;
  color: var(--text);
  font: 18px Cozette, monospace;
  font-weight: 400;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.faq-command {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
  background: var(--surface-strong);
  cursor: pointer;
}

.faq-command:hover {
  border-color: var(--accent);
}

.faq-command code {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-open {
  overflow: hidden;
}

@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.985);
  }
}

@media (max-width: 900px) {
  .header-right .header-link {
    display: none;
  }
}

@media (max-width: 680px) {
  .header-inner {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    padding: 8px 0;
  }

  .header-left {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    padding-right: 0;
  }

  .header-right {
    position: absolute;
    top: 8px;
    right: 0;
  }

  .header-right .language-toggle {
    display: none;
  }

  .mobile-language-toggle {
    display: inline-flex;
  }

  .header-command {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .connect-label {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 460px) {
  .faq-button,
  .language-toggle {
    height: 34px;
  }

  .faq-button {
    padding: 0 9px;
  }

  .faq-content {
    padding-inline: 15px;
  }

  .faq-item h3 {
    font-size: 16px;
  }
}

@media (max-width: 680px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
  }

  .header-left {
    width: 100%;
    flex: 1 0 100%;
    order: 1;
  }

  .header-command {
    width: 100%;
    flex: 1 0 100%;
    order: 2;
  }

  .header-right {
    display: none;
    position: static;
  }

  .connect-label {
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 38px 38px;
  }

  .header-left {
    display: contents;
  }

  .faq-button {
    grid-column: 1;
    grid-row: 1;
  }

  .connect-label {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .mobile-language-toggle {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
  }

  .header-command {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
