/* ============================================================================
   dn-ui.css — БАЗОВЫЕ КОМПОНЕНТЫ DragoNightly (UI-kit).
   Перенесено из docs/design3 максимально дословно (значения d3), токены — из
   dn-theme.css (:root). Документация и витрина — /uikit, docs/site/UIKIT.md.

   Состояния интерактивных контролов:
     normal · .is-selected (латунный inset) · .is-pressed (сдвиг+заливка)
     .is-active/.is-focus (void-blue рамка/glow) · :disabled/.is-disabled
   Грузится ПОСЛЕ dn-theme.css.
   ============================================================================ */

/* ---- Кнопки (полностью из d3: значения, анимации, подсветки) ------------- */
/* d3 .btn: шрифт наследуется (Manrope, обычный вес, размер body) — font: inherit. */
.dn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex: 0 0 auto;
  min-height: 40px; padding: 9px 15px;
  border: 1px solid rgba(214,180,95,0.42); border-radius: 8px;
  color: var(--fg); font: inherit; line-height: normal; cursor: pointer; text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, color 120ms ease, opacity 120ms ease;
}
.dn-btn-sm { min-height: 34px; padding: 7px 11px; font-size: 13px; }
.dn-btn-lg { min-height: 48px; padding: 13px 18px; }
.dn-btn-block { width: 100%; }
.dn-btn-primary { background: linear-gradient(180deg, rgba(243,212,122,0.24), rgba(214,180,95,0.12)); color: var(--brand-soft); }
.dn-btn-secondary { border-color: rgba(42,168,255,0.42); background: rgba(16,46,67,0.62); color: #d4eeff; }
.dn-btn-ghost { background: transparent; color: var(--fg-dim); }
.dn-btn-danger { border-color: rgba(212,71,91,0.50); background: linear-gradient(180deg, rgba(212,71,91,0.22), rgba(212,71,91,0.10)); color: #ffd6dd; }
.dn-btn:hover, .dn-iconbtn:hover, .dn-chip:hover { transform: translateY(-1px); border-color: var(--brand); }
.dn-btn-danger:hover { border-color: var(--red); box-shadow: 0 0 20px rgba(212,71,91,0.18); }
.dn-btn .ic { font-size: 16px; }
.dn-btn-trunc { max-width: 168px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }

.dn-iconbtn { display: grid; width: 40px; height: 40px; place-items: center; flex: 0 0 auto;
  border: 1px solid rgba(214,180,95,0.36); border-radius: 8px; background: rgba(31,30,38,0.72);
  color: var(--brand-soft); cursor: pointer; font: inherit; line-height: normal;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, color 120ms ease; }

/* состояния (общие модификаторы, как в d3) */
.is-selected { box-shadow: inset 0 0 0 1px rgba(243,212,122,0.42), 0 0 18px rgba(214,180,95,0.12); }
.is-pressed { transform: translateY(1px); background: rgba(214,180,95,0.2); }
.is-active { border-color: var(--accent) !important; box-shadow: 0 0 18px rgba(42,168,255,0.26); }
.dn-btn:disabled, .dn-iconbtn:disabled, .dn-input:disabled, .dn-textarea:disabled, .dn-select:disabled, .is-disabled {
  opacity: 0.42; cursor: not-allowed; filter: grayscale(0.7); }
.dn-btn:disabled:hover, .dn-iconbtn:disabled:hover, .dn-chip.is-disabled:hover {
  transform: none;
}
.dn-check.is-disabled, .dn-check:has(input:disabled) {
  cursor: not-allowed;
}
.dn-check.is-disabled input, .dn-check input:disabled {
  cursor: not-allowed;
}

.dn-btn:focus-visible, .dn-iconbtn:focus-visible, .dn-chip:focus-visible,
.dn-input:focus-visible, .dn-textarea:focus-visible, .dn-select:focus-visible,
.dn-check:focus-within, .field-checkbox:focus-within,
.is-focus {
  outline: none;
  border-color: rgba(42,168,255,0.72) !important;
  box-shadow: 0 0 0 3px rgba(42,168,255,0.12), 0 0 18px rgba(42,168,255,0.20);
}

/* ---- Поля ввода: ДВА режима ----------------------------------------------
   Базовый — НАШ «простой» (плоский). Модификатор .dn-field-pro — «пользовательский»
   (как d3 .text-input: латунная рамка + полупрозрачный фон). Оба во всех статусах
   (фокус void-ring, .is-selected/.is-pressed/.is-active/:disabled). */
.dn-input, .dn-textarea, .dn-select {
  width: 100%; min-height: 40px; padding: 9px 12px; color: var(--fg); font: inherit;
  border: 1px solid var(--border-hi); border-radius: 8px; background: var(--bg-soft);
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease; }
.dn-textarea { min-height: 96px; resize: vertical; }
.dn-input::placeholder, .dn-textarea::placeholder { color: var(--fg-faint); }
.dn-input:hover, .dn-textarea:hover, .dn-select:hover { border-color: rgba(214,180,95,0.38); background: rgba(31,30,38,0.78); }
.dn-input:focus, .dn-textarea:focus, .dn-select:focus { outline: none;
  border-color: rgba(42,168,255,0.7); box-shadow: 0 0 0 3px rgba(42,168,255,0.12); }
.dn-select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-dim) 50%), linear-gradient(135deg, var(--fg-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
/* «пользовательский» режим = d3 .text-input */
.dn-field-pro { border-color: rgba(214,180,95,0.24); background: rgba(17,16,20,0.76); }

.dn-field { display: grid; gap: 7px; }
.dn-field-label {
  display: block; margin: 0; color: var(--brand); font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.dn-field-hint, .dn-field-note {
  color: var(--fg-faint); font-family: var(--font-sans); font-size: 13px;
  letter-spacing: 0; line-height: 1.45; text-transform: none;
}
.dn-field-error { color: #F3C4CC; font-size: 13px; line-height: 1.45; }
.dn-field.is-error .dn-input, .dn-field.is-error .dn-textarea, .dn-field.is-error .dn-select,
.dn-input.is-error, .dn-textarea.is-error, .dn-select.is-error {
  border-color: rgba(212,71,91,0.72);
  box-shadow: 0 0 0 3px rgba(212,71,91,0.10);
}
.dn-field.is-success .dn-input, .dn-field.is-success .dn-textarea, .dn-field.is-success .dn-select,
.dn-input.is-success, .dn-textarea.is-success, .dn-select.is-success {
  border-color: rgba(76,175,122,0.68);
  box-shadow: 0 0 0 3px rgba(76,175,122,0.10);
}
.dn-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; }
.dn-form-stack { display: grid; gap: 14px; }
.dn-form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }

/* ---- Чекбокс / радио (из d3 .check-row), единый вид для обоих ------------- */
.dn-check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer;
  border: 1px solid rgba(214,180,95,0.22); border-radius: 8px; color: var(--fg-dim); background: rgba(17,16,20,0.54);
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease; }
.dn-check:hover { border-color: rgba(214,180,95,0.4); }
.dn-check input { accent-color: var(--brand); width: 17px; height: 17px; flex: 0 0 auto; cursor: pointer; }
.dn-check input[type="radio"] { border-radius: 50%; }

/* ---- Чип / таб (полностью из d3) ----------------------------------------- */
.dn-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 12px;
  border: 1px solid rgba(214,180,95,0.26); border-radius: 999px; color: var(--fg-dim);
  background: rgba(17,16,20,0.62); cursor: pointer; font: inherit; line-height: normal;
  transition: transform 120ms ease, border-color 120ms ease, color 120ms ease, background 120ms ease; }
.dn-chip.is-current { color: var(--brand-soft); background: rgba(214,180,95,0.14); border-color: rgba(214,180,95,0.4); }

/* ---- Поверхности (d3 .surface-samples) ----------------------------------- */
.dn-surfs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 10px; }
.dn-surf { min-height: 88px; padding: 12px; border: 1px solid rgba(214,180,95,0.2); border-radius: 8px;
  color: var(--fg-dim); font-family: var(--font-mono); font-size: 12px; }
.dn-surf-normal { background: var(--bg-soft); }
.dn-surf-selected { background: rgba(214,180,95,0.13); }
.dn-surf-pressed { background: rgba(214,180,95,0.22); transform: translateY(1px); }
.dn-surf-active { background: rgba(42,168,255,0.13); border-color: var(--accent) !important; }
.dn-surf-disabled { background: rgba(31,30,38,0.42); opacity: 0.42; }
/* «игровой» фон-поверхность (аркан d3: void-glow + латунь) — под игровые блоки/uikit2 */
.dn-bg-arcane { background:
  radial-gradient(circle at 70% 10%, rgba(42,168,255,0.16), transparent 28rem),
  linear-gradient(135deg, rgba(214,180,95,0.07), transparent 38%),
  rgba(7,8,11,0.56); }

/* ---- Карточки: ТРИ тира — простая / пользовательская / игровая ----------- */
.dn-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.dn-card, .dn-card-simple, .dn-card-game {
  position: relative; padding: 24px 22px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); transition: border-color .2s, transform .12s, box-shadow .2s; }
.dn-card h3, .dn-card-simple h3, .dn-card-game h3 { font-family: var(--font-sans); font-weight: 700; font-size: 17px; margin: 0 0 8px; color: var(--fg); }
.dn-card p, .dn-card-simple p, .dn-card-game p { margin: 0; color: var(--fg-dim); font-size: 14.5px; line-height: 1.55; }
.dn-card .dn-card-ic, .dn-card-simple .dn-card-ic, .dn-card-game .dn-card-ic { display:block; margin-bottom: 12px; font-size: 22px; color: var(--brand-soft); }
/* простая */
.dn-card-simple { background: var(--bg-soft); }
.dn-card-simple:hover { border-color: var(--border-hi); transform: translateY(-2px); }
/* пользовательская (латунный уголок + ховер-glow) */
.dn-card { background: linear-gradient(180deg, var(--bg-card), var(--bg-soft)); }
.dn-card:hover { border-color: var(--brand-strong); transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45), 0 0 0 1px var(--brand-glow); }
.dn-card::before { content:""; position:absolute; top:0; left:0; width:34px; height:34px;
  border-top: 1.5px solid var(--brand-strong); border-left: 1.5px solid var(--brand-strong);
  border-top-left-radius: 14px; opacity: .55; }
/* игровая (аркан-фон + латунно-void рамка + орнамент-уголок) */
.dn-card-game { border-color: rgba(214,180,95,0.34);
  background:
    radial-gradient(circle at 78% 8%, rgba(42,168,255,0.14), transparent 22rem),
    linear-gradient(135deg, rgba(214,180,95,0.08), transparent 42%),
    linear-gradient(180deg, var(--bg-card), #0c0b10);
  box-shadow: inset 0 0 0 1px rgba(214,180,95,0.06); }
.dn-card-game:hover { border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(0,0,0,0.5), 0 0 26px rgba(42,168,255,0.18); }
.dn-card-game::before { content:""; position:absolute; top:8px; left:8px; width:40px; height:40px; opacity:.8;
  background: url('/assets/img/ornaments/corner-tl.png') top left / contain no-repeat; }

/* ---- Eyebrow (надзаголовок) ---------------------------------------------- */
/* основной — ровный латунный mono-капс БЕЗ черты; размеры/разрядка — из токенов типографики */
.dn-eyebrow { margin: 0 0 12px; color: var(--brand);
  font-family: var(--ty-eyebrow-ff); font-size: var(--ty-eyebrow-fs);
  letter-spacing: var(--ty-eyebrow-ls); text-transform: var(--ty-eyebrow-tt); }
/* доп. вариант — с латунной чертой слева */
.dn-eyebrow-line { display: inline-flex; align-items: center; gap: 10px; }
.dn-eyebrow-line::before { content:""; flex: 0 0 auto; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent); }

/* ---- Отчёркивания (разделители) ----------------------------------------- */
.dn-rule { width: min(1180px, 92%); margin: 6px auto; height: 1px; border: 0; position: relative;
  background: linear-gradient(90deg, transparent 0%, var(--border) 10%, var(--brand-strong) 50%, var(--border) 90%, transparent 100%); }
.dn-rule::after { content:"✦"; position:absolute; left:50%; top:50%; transform: translate(-50%,-50%);
  color: var(--brand); background: var(--bg); padding: 0 14px; font-size: 12px; }
.dn-rule-wide { width: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--border) 16%, var(--brand-strong) 50%, var(--border) 84%, transparent 100%); }

/* ---- Шрифт-хелперы ------------------------------------------------------- */
.dn-font-display { font-family: var(--font-display); }
.dn-font-sans { font-family: var(--font-sans); }
.dn-font-serif { font-family: var(--font-serif); }
.dn-font-mono { font-family: var(--font-mono); }

/* ===========================================================================
   Compatibility components for current gm_panel_site pages
   =========================================================================== */

.btn-primary:not(.dn-btn),
.btn-secondary:not(.dn-btn),
.btn-danger,
.btn-ghost:not(.dn-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 8px;
  border: 1px solid rgba(214,180,95,0.42);
  font: inherit;
  line-height: normal;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, color 120ms ease, opacity 120ms ease;
}

.btn-primary:not(.dn-btn) {
  color: var(--brand-soft);
  background: linear-gradient(180deg, rgba(243,212,122,0.24), rgba(214,180,95,0.12));
}

.btn-secondary:not(.dn-btn) {
  color: #d4eeff;
  border-color: rgba(42,168,255,0.42);
  background: rgba(16,46,67,0.62);
}

.btn-ghost:not(.dn-btn) {
  color: var(--fg-dim);
  background: transparent;
}

.btn-danger {
  color: #ffd6dd;
  border-color: rgba(212,71,91,0.50);
  background: linear-gradient(180deg, rgba(212,71,91,0.22), rgba(212,71,91,0.10));
}

.btn-mini {
  min-height: 34px !important;
  padding: 7px 11px !important;
  font-size: 13px !important;
  line-height: normal !important;
}

.btn-primary:not(.dn-btn):hover,
.btn-secondary:not(.dn-btn):hover,
.btn-danger:hover,
.btn-ghost:not(.dn-btn):hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  text-decoration: none;
}

.btn-danger:hover {
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(212,71,91,0.18);
}

.btn-primary:not(.dn-btn):disabled,
.btn-secondary:not(.dn-btn):disabled,
.btn-danger:disabled,
.btn-ghost:not(.dn-btn):disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.7);
}

.btn-primary:not(.dn-btn):disabled:hover,
.btn-secondary:not(.dn-btn):disabled:hover,
.btn-danger:disabled:hover,
.btn-ghost:not(.dn-btn):disabled:hover {
  transform: none;
}

input[type="email"],
input[type="text"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
input[type="tel"],
input[type="file"],
textarea,
select {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  color: var(--fg);
  font: inherit;
  border: 1px solid rgba(214,180,95,0.24);
  border-radius: 8px;
  background: rgba(17,16,20,0.76);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

input[type="file"] {
  padding: 8px 12px;
  color: var(--fg-dim);
}

input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(214,180,95,0.34);
  border-radius: 7px;
  color: var(--brand-soft);
  background: linear-gradient(180deg, rgba(243,212,122,0.18), rgba(214,180,95,0.08));
  font: inherit;
  cursor: pointer;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

select {
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--fg-dim) 50%),
    linear-gradient(135deg, var(--fg-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

input::placeholder,
textarea::placeholder {
  color: var(--fg-faint);
}

input[type="email"]:hover,
input[type="text"]:hover,
input[type="password"]:hover,
input[type="search"]:hover,
input[type="url"]:hover,
input[type="number"]:hover,
input[type="tel"]:hover,
input[type="file"]:hover,
textarea:hover,
select:hover {
  border-color: rgba(214,180,95,0.38);
  background: rgba(31,30,38,0.78);
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="file"]:focus,
textarea:focus,
select:focus {
  border-color: rgba(42,168,255,0.70);
  box-shadow: 0 0 0 3px rgba(42,168,255,0.12);
  background: rgba(17,16,20,0.86);
}

input[type="email"]:focus-visible,
input[type="text"]:focus-visible,
input[type="password"]:focus-visible,
input[type="search"]:focus-visible,
input[type="url"]:focus-visible,
input[type="number"]:focus-visible,
input[type="tel"]:focus-visible,
input[type="file"]:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn-primary:not(.dn-btn):focus-visible,
.btn-secondary:not(.dn-btn):focus-visible,
.btn-danger:focus-visible,
.btn-ghost:not(.dn-btn):focus-visible {
  outline: none;
  border-color: rgba(42,168,255,0.72) !important;
  box-shadow: 0 0 0 3px rgba(42,168,255,0.12), 0 0 18px rgba(42,168,255,0.20);
}

.field.is-error input,
.field.is-error textarea,
.field.is-error select,
input.is-error,
textarea.is-error,
select.is-error {
  border-color: rgba(212,71,91,0.72);
  box-shadow: 0 0 0 3px rgba(212,71,91,0.10);
}

.field.is-success input,
.field.is-success textarea,
.field.is-success select,
input.is-success,
textarea.is-success,
select.is-success {
  border-color: rgba(76,175,122,0.68);
  box-shadow: 0 0 0 3px rgba(76,175,122,0.10);
}

.field {
  display: grid;
  gap: 7px;
}

.field-label {
  display: block;
  margin: 0;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.field-hint {
  color: var(--fg-faint);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.field-error {
  color: #F3C4CC;
  font-size: 13px;
  line-height: 1.45;
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(214,180,95,0.22);
  border-radius: 8px;
  color: var(--fg-dim);
  background: rgba(17,16,20,0.54);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.field-checkbox:hover {
  border-color: rgba(214,180,95,0.40);
}

.field-checkbox input[type="checkbox"],
.field-checkbox input[type="radio"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.field-checkbox a {
  color: var(--accent-hi);
  border-bottom: 1px dotted currentColor;
}

.field-checkbox a:hover {
  color: var(--brand-soft);
}

.dn-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions,
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.form-link {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.45;
}

.form-link a {
  color: var(--accent-hi);
  border-bottom: 1px dotted currentColor;
}

.form-link:hover,
.form-link a:hover {
  color: var(--brand-soft);
}

.auth-page {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(214,180,95,0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(42,168,255,0.15), transparent 18rem),
    linear-gradient(135deg, rgba(214,180,95,0.08), transparent 40%),
    rgba(31,30,38,0.82);
  box-shadow: 0 26px 80px rgba(0,0,0,0.42), inset 0 0 0 1px rgba(214,180,95,0.04);
}

.auth-page::before,
.profile-card::before,
.legal-head::before,
.dn-form-surface::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 36px;
  height: 36px;
  background: none;
  border-top: 1.5px solid var(--brand-strong);
  border-left: 1.5px solid var(--brand-strong);
  border-top-left-radius: 8px;
  opacity: .68;
}

.auth-page h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 520;
  line-height: 1.12;
}

.auth-sub,
.auth-hint {
  color: var(--fg-dim);
  margin: 0 0 24px;
  line-height: 1.58;
}

.auth-form,
.profile-form {
  display: grid;
  gap: 16px;
}

.auth-form .form-actions {
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
}

.auth-form .form-actions .btn-primary {
  width: 100%;
}

.auth-form .form-actions .dn-btn-primary {
  width: 100%;
}

.captcha-field {
  gap: 8px;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.captcha-img {
  border-radius: 8px;
  border: 1px solid rgba(214,180,95,0.24);
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px rgba(214,180,95,0.04);
}

.captcha-refresh {
  min-height: 56px;
  min-width: 48px;
  padding-inline: 12px !important;
}

.verify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(224,169,60,0.34);
  border-radius: 8px;
  padding: 14px 16px;
  color: #F6DCA1;
  background:
    linear-gradient(135deg, rgba(224,169,60,0.10), transparent 46%),
    rgba(31,30,38,0.76);
}

.verify-banner strong {
  color: var(--brand-soft);
}

.verify-banner form {
  margin: 0;
  flex: 0 0 auto;
}

.profile-page {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.profile-card,
.legal-head,
.legal-table-wrap {
  position: relative;
  border: 1px solid rgba(214,180,95,0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(214,180,95,0.07), transparent 36%),
    rgba(31,30,38,0.78);
  box-shadow: 0 18px 52px rgba(0,0,0,0.30);
}

.profile-card {
  padding: 22px;
  overflow: hidden;
}

.profile-card h2,
.legal-section h2 {
  margin: 0 0 10px;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 760;
}

.profile-info {
  display: grid;
  grid-template-columns: minmax(96px, max-content) 1fr;
  gap: 8px 18px;
  margin: 0;
}

.profile-info dt {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.profile-info dd {
  margin: 0;
  color: var(--fg);
}

.profile-info .mono,
.mono {
  font-family: var(--font-mono);
}

.muted {
  color: var(--fg-faint);
}

.profile-hint {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.58;
}

.profile-card > .profile-hint {
  margin: 0 0 16px;
}

.profile-policy-note {
  margin-top: 16px !important;
  margin-bottom: 0;
  font-size: 12px;
}

.profile-hint a {
  color: var(--accent-hi);
  border-bottom: 1px dotted currentColor;
}

.profile-hint a:hover {
  color: var(--brand-soft);
}

.profile-hint code,
.legal-section code,
.legal-meta code {
  color: var(--accent-hi);
  background: rgba(42,168,255,0.08);
  border: 1px solid rgba(42,168,255,0.22);
  border-radius: 4px;
  padding: 1px 5px;
}

.profile-danger {
  border-color: rgba(212,71,91,0.42);
}

.profile-danger::before {
  border-color: var(--red);
}

.profile-card.profile-danger::before {
  background: none;
}

.profile-danger h2,
.profile-danger strong {
  color: #F09BA8;
}

.legal-page {
  max-width: 900px;
  margin: 0 auto;
}

.legal-head {
  padding: 28px;
  margin-bottom: 28px;
  overflow: hidden;
}

.legal-head h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 520;
  line-height: 1.1;
}

.legal-meta {
  color: var(--fg-dim);
  margin: 0;
  line-height: 1.6;
}

.legal-section {
  margin: 0 0 32px;
}

.legal-section h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(214,180,95,0.22);
}

.legal-section p,
.legal-section li {
  color: var(--fg-dim);
  line-height: 1.68;
}

.legal-section ul {
  margin: 10px 0 0 20px;
}

.legal-section strong {
  color: var(--fg);
}

.legal-section a {
  color: var(--accent-hi);
  border-bottom: 1px dotted currentColor;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  vertical-align: top;
  border-bottom: 1px solid rgba(214,180,95,0.16);
}

.legal-table th {
  color: var(--brand-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  background: rgba(17,16,20,0.52);
}

.legal-table td {
  color: var(--fg-dim);
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.feedback-fieldset {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.feedback-fieldset .field-label {
  grid-column: 1 / -1;
}

.feedback-images {
  display: grid;
  gap: 8px;
}

.feedback-page .feedback-form {
  max-width: 860px;
  margin: 0 auto;
}

.feedback-block {
  display: grid;
  gap: 14px;
}

.feedback-noshow {
  margin: 0;
}

.device-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.device-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(214,180,95,0.20);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(214,180,95,0.06), transparent 38%),
    rgba(17,16,20,0.58);
}

.device-name {
  display: inline-block;
  margin-right: 8px;
  color: var(--fg);
}

.device-meta {
  color: var(--fg-faint);
  font-size: 12px;
}

.device-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
  margin: 10px 0 0;
  font-size: 12px;
}

.device-dl dt {
  color: var(--brand);
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.device-dl dd {
  margin: 0;
  color: var(--fg-dim);
}

.device-revoke {
  margin: 0;
}

.profile-empty,
.dn-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 96px;
  margin: 16px 0 0;
  padding: 18px;
  border: 1px dashed rgba(214,180,95,0.28);
  border-radius: 8px;
  color: var(--fg-dim);
  background:
    radial-gradient(circle at 100% 0%, rgba(42,168,255,0.08), transparent 14rem),
    rgba(17,16,20,0.42);
  text-align: center;
}

.profile-empty span,
.dn-empty span {
  color: var(--brand-soft);
  font-family: var(--font-mono);
  font-size: 20px;
}

.dn-note-center {
  text-align: center;
}

.dn-lore-spaced {
  margin-top: 32px;
}

.dn-cta-center {
  justify-content: center;
}

.dn-section-tail {
  margin-top: 40px;
  margin-bottom: 0;
}

.dn-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dn-card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(214,180,95,0.32);
  border-radius: 999px;
  color: var(--brand-soft);
  background: rgba(214,180,95,0.12);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .10em;
  line-height: 1;
  text-transform: uppercase;
}

.dn-card-badge-muted {
  color: var(--fg-dim);
  background: rgba(255,255,255,0.04);
}

.dn-card .dn-cta-row,
.dn-card-simple .dn-cta-row,
.dn-card-game .dn-cta-row {
  margin-top: 18px;
}

.dn-download-guest-actions {
  justify-content: center;
  margin-top: 24px;
}

.dn-download-grid {
  align-items: stretch;
}

/* Резерв под 2 строки подписи, чтобы кнопки в ряду не разъезжались, когда одна
   подпись (macOS) длиннее и переносится. Селектор с .dn-card перебивает базовое
   `.dn-card p`. */
.dn-download-grid .dn-card > p {
  min-height: 3.1em;
}

.dn-download-options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.dn-download-option {
  justify-content: flex-start;
  min-height: 48px;
  width: 100%;
  text-align: left;
}

.dn-download-option .ic {
  flex: 0 0 auto;
}

.dn-download-menu {
  min-width: 0;
}

.dn-download-menu summary {
  list-style: none;
}

.dn-download-menu summary::-webkit-details-marker {
  display: none;
}

.dn-download-menu-button {
  cursor: pointer;
}

.dn-download-caret {
  margin-left: auto;
  color: var(--brand-soft);
  transition: transform 120ms ease;
}

.dn-download-menu[open] .dn-download-caret {
  transform: rotate(180deg);
}

.dn-download-menu-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.dn-download-suboption {
  justify-content: flex-start;
  min-height: 50px;
  width: 100%;
  text-align: left;
}

.dn-download-option-text {
  display: grid;
  gap: 3px;
}

.dn-download-option-text b {
  color: inherit;
  font-weight: 600;
}

.dn-download-option-text small,
.dn-download-status small {
  color: var(--fg-faint);
  font-size: 12px;
  line-height: 1.35;
}

.dn-download-status {
  min-height: 56px;
  padding: 12px 14px;
  border: 1px dashed rgba(214,180,95,0.24);
  border-radius: 8px;
  background: rgba(17,16,20,0.42);
}

/* Вспомогательная подпись под кнопками. Селектор с .dn-card нужен, чтобы
   перебить более специфичное `.dn-card p` (font-size:14.5px; color:--fg-dim). */
/* /download: секция «Установка и первый запуск» + контрольные суммы */
.dn-download-install {
  margin-top: 44px;
}

.dn-install-steps {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.55;
  display: grid;
  gap: 6px;
}

/* Подпись перед код-блоком установки зависимостей + сам блок команд */
.dn-install-deps-label {
  margin: 14px 0 6px;
  color: var(--fg-dim);
  font-size: 13px;
}
.dn-code {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17,16,20,0.62);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  white-space: pre;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dn-hash-block {
  margin-top: 28px;
}

.dn-hash-block h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--fg);
}

.dn-hash-hint {
  margin: 0 0 10px;
  color: var(--fg-dim);
  font-size: 13px;
}

.dn-hash-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.dn-hash-list li {
  display: grid;
  gap: 2px;
}

.dn-hash-file {
  font-size: 13px;
  color: var(--fg-dim);
}

.dn-hash-list code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-soft);
  word-break: break-all;
}

.dn-card .dn-download-note {
  margin: 16px 0 0;                      /* ниже — отделить от кнопок */
  color: var(--fg-faint);                /* темнее/тише, чем основной текст карточки */
  font-size: 11px;                       /* мельче */
  line-height: 1.5;
  letter-spacing: .01em;
}

/* macOS: точная сборка, подсвеченная JS (UA-CH) как рекомендованная */
.dn-download-suboption.is-recommended {
  border-color: var(--brand);
  background: rgba(214,180,95,0.10);
}
.dn-suboption-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border: 1px solid rgba(214,180,95,0.32);
  border-radius: 999px;
  color: var(--brand-soft);
  background: rgba(214,180,95,0.12);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;
}

.dn-docs-placeholder {
  min-height: 190px;
}

/* ---- User documentation page -------------------------------------------- */
.dn-user-docs .dn-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}

.dn-doc-hero-grid,
.dn-doc-layout {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.dn-doc-hero-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(280px, 540px);
  gap: 34px;
  align-items: center;
  justify-content: space-between;
}

.dn-doc-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 690px;
}

.dn-doc-hero-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 520;
  line-height: 1.04;
}

.dn-doc-hero-copy p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--fg-dim);
  font-size: 17px;
  line-height: 1.7;
}

.dn-doc-hero-media,
.dn-doc-media-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(214,180,95,0.28);
  border-radius: 8px;
  background: rgba(17,16,20,0.74);
  box-shadow: 0 28px 84px rgba(0,0,0,0.45);
}

.dn-doc-hero-media {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: 100%;
  max-width: 540px;
  padding: 10px;
}

.dn-doc-hero-media img,
.dn-doc-media-card img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.dn-doc-hero-media img {
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(214,180,95,0.18);
  border-radius: 6px;
}

.dn-doc-hero-media figcaption,
.dn-doc-media-card figcaption {
  color: var(--fg-faint);
  font-size: 13px;
  line-height: 1.5;
}

.dn-doc-hero-media figcaption {
  padding: 13px 6px 3px;
}

.dn-doc-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-top: 40px;
}

.dn-doc-nav {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(214,180,95,0.22);
  border-radius: 8px;
  background: rgba(17,16,20,0.72);
  box-shadow: 0 18px 48px rgba(0,0,0,0.30);
}

.dn-doc-nav strong {
  margin: 0 0 8px;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dn-doc-nav a {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--fg-dim);
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}

.dn-doc-nav a:hover {
  color: var(--brand-soft);
  background: rgba(214,180,95,0.10);
  transform: translateX(2px);
}

/* Scroll-spy: текущий прокрученный раздел (класс ставит скрипт на /docs) */
.dn-doc-nav a.is-active {
  color: var(--brand);
  background: rgba(214,180,95,0.14);
  box-shadow: inset 2px 0 0 var(--brand);
}

.dn-doc-content {
  min-width: 0;
}

.dn-doc-content > .dn-section {
  padding: 38px 0;
}

.dn-doc-content > .dn-section:first-child {
  padding-top: 0;
}

.dn-doc-section-head {
  max-width: 780px;
  margin-bottom: 22px;
}

.dn-doc-section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 520;
  line-height: 1.12;
}

.dn-doc-section-head p {
  margin: 12px 0 0;
  color: var(--fg-dim);
  line-height: 1.68;
}

.dn-doc-steps,
.dn-doc-checklist {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dn-doc-steps {
  counter-reset: doc-step;
}

.dn-doc-steps li,
.dn-doc-checklist li {
  position: relative;
  min-height: 54px;
  padding: 15px 18px 15px 62px;
  border: 1px solid rgba(214,180,95,0.20);
  border-radius: 8px;
  color: var(--fg-dim);
  background:
    linear-gradient(135deg, rgba(214,180,95,0.06), transparent 36%),
    rgba(31,30,38,0.66);
  line-height: 1.6;
}

.dn-doc-steps li::before,
.dn-doc-checklist li::before {
  position: absolute;
  left: 16px;
  top: 14px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(214,180,95,0.38);
  border-radius: 8px;
  color: var(--brand-soft);
  background: rgba(17,16,20,0.72);
  font-family: var(--font-mono);
  font-size: 12px;
}

.dn-doc-steps li::before {
  counter-increment: doc-step;
  content: counter(doc-step);
}

.dn-doc-checklist li::before {
  content: "✓";
}

.dn-doc-card-grid,
.dn-doc-feature-grid,
.dn-doc-media-grid {
  display: grid;
  gap: 16px;
}

.dn-doc-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

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

.dn-doc-feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.dn-doc-install-card ol {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.62;
}

.dn-doc-install-card li + li {
  margin-top: 8px;
}

.dn-doc-timeline {
  display: grid;
  gap: 14px;
}

.dn-doc-timeline article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(214,180,95,0.20);
  border-radius: 8px;
  background: rgba(31,30,38,0.66);
}

.dn-doc-timeline article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(42,168,255,0.38);
  border-radius: 8px;
  color: #d4eeff;
  background: rgba(16,46,67,0.62);
  font-family: var(--font-mono);
  font-size: 13px;
}

.dn-doc-timeline h3 {
  margin: 0 0 6px;
  color: var(--fg);
  font-size: 18px;
}

.dn-doc-timeline p {
  margin: 0;
  color: var(--fg-dim);
  line-height: 1.62;
}

.dn-doc-callout {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(42,168,255,0.26);
  border-left: 3px solid rgba(42,168,255,0.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(42,168,255,0.14), transparent 18rem),
    rgba(16,46,67,0.32);
}

.dn-doc-callout strong {
  color: #d4eeff;
}

.dn-doc-callout p {
  margin: 6px 0 0;
  color: var(--fg-dim);
  line-height: 1.62;
}

.dn-doc-callout-strong {
  border-color: rgba(214,180,95,0.34);
  border-left-color: rgba(214,180,95,0.84);
  background:
    radial-gradient(circle at 14% 0%, rgba(214,180,95,0.16), transparent 18rem),
    radial-gradient(circle at 100% 100%, rgba(42,168,255,0.10), transparent 18rem),
    rgba(17,16,20,0.72);
}

.dn-doc-callout-strong strong {
  color: var(--brand-soft);
}

.dn-doc-resource-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px;
  margin-top: 18px;
}

.dn-doc-resource-flow article {
  position: relative;
  min-height: 170px;
  padding: 20px;
  border: 1px solid rgba(214,180,95,0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(214,180,95,0.08), transparent 34%),
    rgba(17,16,20,0.72);
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
}

.dn-doc-resource-flow article::before {
  content: "";
  position: absolute;
  inset: 10px auto auto 10px;
  width: 34px;
  height: 34px;
  opacity: .55;
  background: url('/assets/img/ornaments/corner-tl.png') top left / contain no-repeat;
}

.dn-doc-resource-flow h3 {
  margin: 0 0 10px;
  color: var(--fg);
  font-size: 18px;
}

.dn-doc-resource-flow p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.62;
}

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

.dn-doc-media-card img {
  aspect-ratio: 16 / 9;
}

.dn-doc-media-card figcaption {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.dn-doc-media-card strong {
  color: var(--fg);
  font-size: 15px;
}

.dn-doc-media-card span {
  color: var(--fg-dim);
}

.dn-doc-video-card {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(214,180,95,0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(214,180,95,0.07), transparent 34%),
    rgba(17,16,20,0.74);
}

.dn-doc-video-frame {
  display: grid;
  min-height: 170px;
  place-items: center;
  border: 1px solid rgba(214,180,95,0.24);
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 50%, rgba(214,180,95,0.14), transparent 11rem),
    url('/assets/img/brand-hero.png') center / cover no-repeat;
}

.dn-doc-video-frame span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(214,180,95,0.48);
  border-radius: 50%;
  color: var(--brand-soft);
  background: rgba(7,8,11,0.68);
  box-shadow: 0 0 34px rgba(214,180,95,0.18);
}

.dn-doc-video-card h3 {
  margin: 0 0 8px;
  color: var(--fg);
  font-size: 19px;
}

.dn-doc-video-card p {
  margin: 0;
  color: var(--fg-dim);
  line-height: 1.62;
}

/* ---- Homepage/product sections from docs/design3 ------------------------ */
.dn-problem-grid {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) 1.22fr;
  gap: 36px;
  align-items: start;
}

.dn-problem-intro {
  display: grid;
  gap: 12px;
}

.dn-problem-intro .dn-problem-kicker {
  color: var(--brand-soft);
  text-shadow: 0 0 20px rgba(214,180,95,0.16);
}

.dn-problem-intro h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 520;
  line-height: 1.12;
}

.dn-problem-intro p {
  color: var(--fg-dim);
  margin: 0;
}

.dn-anchor-target {
  scroll-margin-top: 96px;
}

.dn-screen-section .dn-section-head {
  margin-bottom: 28px;
}

.dn-screen-section .dn-shot {
  max-width: none;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(214,180,95,0.28);
  border-radius: 8px;
  background: rgba(31,30,38,0.72);
  box-shadow: 0 26px 80px rgba(0,0,0,0.42);
}

.dn-screen-section .dn-shot img {
  border: 1px solid rgba(214,180,95,0.18);
  border-radius: 6px;
  box-shadow: none;
}

.dn-screen-section .dn-shot figcaption {
  margin-top: 0;
  padding: 14px 6px 4px;
  color: var(--fg-faint);
  font-size: 13px;
}

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

.dn-glass-card,
.dn-feature-strip article {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(214,180,95,0.20);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(214,180,95,0.07), transparent 34%),
    rgba(31,30,38,0.80);
  box-shadow: 0 26px 80px rgba(0,0,0,0.42);
}

.dn-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(214,180,95,0.36);
  border-radius: 8px;
  color: var(--brand-soft);
  background: rgba(17,16,20,0.72);
}

.dn-glass-card h3,
.dn-feature-strip h3 {
  margin: 0 0 8px;
  color: var(--fg);
  font-size: 18px;
}

.dn-glass-card p,
.dn-feature-strip p {
  margin: 0;
  color: var(--fg-dim);
  line-height: 1.62;
}

.dn-feature-strip {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}

.dn-feature-strip span {
  color: var(--accent);
  font-family: var(--font-mono);
}

.dn-roadmap-grid {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) 1.22fr;
  gap: 36px;
  align-items: start;
}

.dn-roadmap-intro {
  display: grid;
  gap: 12px;
}

.dn-roadmap-intro .dn-roadmap-kicker {
  color: var(--brand-soft);
  text-shadow: 0 0 20px rgba(214,180,95,0.16);
}

.dn-roadmap-intro h2 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 520;
  line-height: 1.12;
}

.dn-roadmap-intro p {
  color: var(--fg-dim);
  margin: 0;
}

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

.dn-arcane-panel {
  border: 1px solid rgba(214,180,95,0.24);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 10%, rgba(42,168,255,0.16), transparent 28rem),
    linear-gradient(135deg, rgba(214,180,95,0.07), transparent 38%),
    url('/assets/img/arcane-focus-background.png') center / cover no-repeat,
    rgba(7,8,11,0.56);
  box-shadow: 0 26px 80px rgba(0,0,0,0.42);
}

@media (max-width: 1180px) {
  .dn-doc-hero-grid,
  .dn-doc-layout {
    grid-template-columns: 1fr;
  }

  .dn-doc-hero-media {
    justify-self: start;
    max-width: 760px;
  }

  .dn-doc-nav {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .dn-doc-nav strong {
    grid-column: 1 / -1;
  }

  .dn-doc-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dn-doc-card-grid-three {
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  }

  .dn-problem-grid,
  .dn-roadmap-grid,
  .dn-feature-strip {
    grid-template-columns: 1fr;
  }

  .dn-roadmap-cards {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 680px) {
  .dn-doc-hero-copy h2 {
    font-size: 36px;
  }

  .dn-doc-hero-copy p {
    font-size: 15.5px;
  }

  .dn-user-docs .dn-cta-row .dn-btn,
  .dn-doc-nav a {
    width: 100%;
  }

  .dn-doc-content > .dn-section {
    padding: 30px 0;
  }

  .dn-doc-steps li,
  .dn-doc-checklist li {
    padding-right: 14px;
  }

  .dn-doc-timeline article,
  .dn-doc-video-card {
    grid-template-columns: 1fr;
  }

  .dn-doc-media-grid {
    grid-template-columns: 1fr;
  }

  .auth-page,
  .legal-head,
  .profile-card {
    padding: 20px;
  }

  .verify-banner,
  .form-actions,
  .profile-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-info {
    grid-template-columns: 1fr;
  }

  .device-item {
    grid-template-columns: 1fr;
  }

  .device-dl {
    grid-template-columns: 1fr;
  }

  .device-revoke .btn-danger,
  .device-revoke .dn-btn-danger {
    width: 100%;
  }

  .dn-card .dn-cta-row .dn-btn,
  .dn-card-simple .dn-cta-row .dn-btn,
  .dn-card-game .dn-cta-row .dn-btn {
    width: 100%;
  }

  .captcha-row {
    align-items: stretch;
  }

  .captcha-img {
    width: min(180px, calc(100% - 58px));
    height: auto;
  }

  .dn-problem-cards,
  .dn-roadmap-cards {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================================
   Compendium: публичный браузер эталонных справочников
   =========================================================================== */
.dn-compendium {
  width: 100%;
  min-height: calc(100vh - 138px);
  min-width: 0;
  overflow-x: clip;
  color: var(--fg);
  background:
    linear-gradient(180deg, rgba(42, 168, 255, 0.035), transparent 280px),
    transparent;
}

.dn-comp-shell {
  width: min(1180px, calc(100% - 48px));
  max-width: 100%;
  margin: 0 auto;
  padding: 42px 0 76px;
}

.dn-comp-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  min-height: 230px;
  margin-bottom: 30px;
  padding: 38px 42px;
  overflow: hidden;
  border: 1px solid rgba(214, 180, 95, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(17, 16, 20, 0.98) 0%, rgba(17, 16, 20, 0.92) 56%, rgba(17, 16, 20, 0.55) 100%),
    url('/assets/img/arcane-focus-background.png') 82% 42% / 680px auto no-repeat,
    var(--bg-soft);
  box-shadow: inset 0 0 0 1px rgba(214, 180, 95, 0.04), var(--shadow-md);
}

.dn-comp-hero::before,
.dn-comp-mechanic::before,
.dn-comp-source-card::before {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-top: 1px solid rgba(214, 180, 95, 0.66);
  border-left: 1px solid rgba(214, 180, 95, 0.66);
  content: "";
  pointer-events: none;
}

.dn-comp-hero::after {
  position: absolute;
  right: 42px;
  bottom: 0;
  left: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 180, 95, 0.52), transparent);
  content: "";
}

.dn-comp-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.dn-comp-hero h1,
.dn-comp-entry-hero h1 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.08;
}

.dn-comp-hero-copy > p {
  max-width: 64ch;
  margin: 14px 0 0;
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.65;
}

.dn-comp-hero-seal,
.dn-comp-hero-stat {
  position: relative;
  z-index: 1;
  justify-self: end;
}

.dn-comp-hero-seal {
  display: grid;
  width: 126px;
  height: 126px;
  place-items: center;
  border: 1px solid rgba(214, 180, 95, 0.36);
  border-radius: 50%;
  box-shadow: 0 0 32px rgba(42, 168, 255, 0.12), inset 0 0 24px rgba(214, 180, 95, 0.08);
}

.dn-comp-hero-seal::before,
.dn-comp-hero-seal::after,
.dn-comp-hero-seal span {
  position: absolute;
  border: 1px solid rgba(214, 180, 95, 0.32);
  content: "";
  transform: rotate(45deg);
}

.dn-comp-hero-seal::before { width: 72px; height: 72px; }
.dn-comp-hero-seal::after { width: 42px; height: 42px; border-color: rgba(42, 168, 255, 0.52); }
.dn-comp-hero-seal span { width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 18px var(--accent-glow); }

.dn-comp-hero.is-compact {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 170px;
  margin-bottom: 24px;
  padding-block: 30px;
}

.dn-comp-hero-stat {
  display: grid;
  min-width: 138px;
  gap: 3px;
  padding-left: 24px;
  border-left: 1px solid rgba(214, 180, 95, 0.28);
}

.dn-comp-hero-stat b {
  color: var(--brand-soft);
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
}

.dn-comp-hero-stat span {
  max-width: 14ch;
  color: var(--fg-faint);
  font-size: 12px;
  line-height: 1.35;
}

/* Overview */
.dn-comp-mechanics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dn-comp-mechanic {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 310px;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid rgba(214, 180, 95, 0.24);
  border-radius: 8px;
  color: var(--fg);
  background:
    linear-gradient(145deg, rgba(214, 180, 95, 0.07), transparent 44%),
    linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.dn-comp-mechanic:hover {
  border-color: rgba(214, 180, 95, 0.62);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36), 0 0 22px rgba(214, 180, 95, 0.08);
  text-decoration: none;
  transform: translateY(-2px);
}

.dn-comp-mechanic.is-empty { opacity: 0.68; }
.dn-comp-mechanic.is-empty:hover { opacity: 0.9; }

.dn-comp-mechanic-sigil {
  display: inline-grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(214, 180, 95, 0.38);
  border-radius: 8px;
  color: var(--brand-soft);
  background: rgba(17, 16, 20, 0.68);
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 18px rgba(214, 180, 95, 0.06);
}

.dn-comp-mechanic-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.dn-comp-mechanic-meta {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--brand);
  font: 700 10px/1.2 var(--font-mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dn-comp-mechanic-body > strong {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.2;
}

.dn-comp-mechanic-description {
  display: -webkit-box;
  margin-top: 9px;
  overflow: hidden;
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.dn-comp-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.dn-comp-type-chips > span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid rgba(214, 180, 95, 0.18);
  border-radius: 999px;
  color: var(--fg-dim);
  background: rgba(17, 16, 20, 0.48);
  font-size: 11px;
}

.dn-comp-type-chips small { color: var(--brand); font: 700 10px/1 var(--font-mono); }

.dn-comp-soon {
  margin-top: 18px;
  color: var(--fg-faint);
  font: 700 11px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dn-comp-mechanic-foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 17px;
  border-top: 1px solid var(--border);
  color: var(--fg-faint);
  font-size: 12px;
}

.dn-comp-mechanic-foot b { color: var(--fg); font: 700 17px/1 var(--font-mono); }

.dn-comp-arrow {
  position: relative;
  display: block;
  width: 22px;
  height: 14px;
  flex: 0 0 auto;
}

.dn-comp-arrow::before,
.dn-comp-arrow::after {
  position: absolute;
  content: "";
}

.dn-comp-arrow::before {
  top: 6px;
  right: 0;
  width: 20px;
  height: 1px;
  background: var(--brand);
}

.dn-comp-arrow::after {
  top: 3px;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--brand);
  border-right: 1px solid var(--brand);
  transform: rotate(45deg);
}

.dn-comp-note {
  display: flex;
  max-width: 820px;
  align-items: flex-start;
  gap: 14px;
  margin: 28px auto 0;
  color: var(--fg-faint);
  font-size: 13px;
  line-height: 1.55;
}

.dn-comp-note p { margin: 0; }
.dn-comp-note-mark {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid rgba(214, 180, 95, 0.34);
  transform: rotate(45deg);
}

/* Navigation and browser */
.dn-comp-breadcrumb {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--fg-faint);
  font-size: 12px;
}

.dn-comp-breadcrumb a { color: var(--fg-dim); text-decoration: none; }
.dn-comp-breadcrumb a:hover { color: var(--brand-soft); }
.dn-comp-breadcrumb strong { overflow: hidden; color: var(--fg-dim); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.dn-comp-breadcrumb > span { width: 16px; height: 1px; flex: 0 0 auto; background: rgba(214, 180, 95, 0.42); }

.dn-comp-browser {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.dn-comp-sidebar {
  position: sticky;
  top: 86px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 16, 20, 0.72);
}

.dn-comp-side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px 13px;
  color: var(--brand);
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dn-comp-side-title small {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(214, 180, 95, 0.22);
  border-radius: 50%;
  color: var(--fg-faint);
  letter-spacing: 0;
}

.dn-comp-type-nav {
  display: grid;
  gap: 3px;
}

.dn-comp-type-nav a {
  display: grid;
  min-width: 0;
  min-height: 43px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--fg-dim);
  font-size: 13px;
  text-decoration: none;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.dn-comp-type-nav a:hover {
  border-color: rgba(214, 180, 95, 0.2);
  color: var(--fg);
  background: rgba(214, 180, 95, 0.06);
}

.dn-comp-type-nav a.is-active {
  border-color: rgba(42, 168, 255, 0.42);
  color: var(--accent-hi);
  background: rgba(42, 168, 255, 0.1);
  box-shadow: inset 2px 0 var(--accent);
}

.dn-comp-type-nav a.is-empty { opacity: 0.48; }
.dn-comp-type-nav a > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn-comp-type-nav small { color: var(--fg-faint); font: 700 10px/1 var(--font-mono); }

.dn-comp-type-icon {
  position: relative;
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(214, 180, 95, 0.28);
  border-radius: 6px;
  color: var(--brand-soft);
  background: rgba(214, 180, 95, 0.06);
  font: 700 11px/1 var(--font-mono);
}

.dn-comp-type-icon::before { content: "•"; }
.dn-comp-type-icon[data-type="all"]::before { content: "▦"; }
.dn-comp-type-icon[data-type="spells"]::before { content: "✦"; }
.dn-comp-type-icon[data-type="classes"]::before { content: "⚔"; }
.dn-comp-type-icon[data-type="races"]::before { content: "R"; }
.dn-comp-type-icon[data-type="items"]::before { content: "◆"; }
.dn-comp-type-icon[data-type="monsters"]::before { content: "M"; }
.dn-comp-type-icon[data-type="npc"]::before { content: "N"; }
.dn-comp-type-icon[data-type="rules"]::before { content: "§"; }
.dn-comp-type-icon[data-type="dice"]::before { content: "D"; }
.dn-comp-type-icon[data-type="factions"]::before { content: "F"; }
.dn-comp-type-icon[data-type="organizations"]::before { content: "O"; }
.dn-comp-type-icon[data-type="deities"]::before { content: "†"; }
.dn-comp-type-icon[data-type="locations"]::before { content: "⌖"; }
.dn-comp-type-icon.is-large { width: 58px; height: 58px; border-radius: 8px; font-size: 22px; }

.dn-comp-results { min-width: 0; }

.dn-comp-filter-form { margin-bottom: 25px; }

.dn-comp-search {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  padding: 9px 10px 9px 15px;
  border: 1px solid rgba(214, 180, 95, 0.3);
  border-radius: 8px;
  background: rgba(17, 16, 20, 0.82);
  box-shadow: inset 0 0 18px rgba(214, 180, 95, 0.025);
}

.dn-comp-filter-form .dn-comp-search { margin-bottom: 0; }

.dn-comp-search:focus-within {
  border-color: rgba(42, 168, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(42, 168, 255, 0.1), 0 0 22px rgba(42, 168, 255, 0.08);
}

.dn-comp-search input[type="search"] {
  min-height: 36px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dn-comp-search input[type="search"]:hover,
.dn-comp-search input[type="search"]:focus { border: 0; background: transparent; box-shadow: none; }

.dn-comp-search-icon {
  position: relative;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--brand);
  border-radius: 50%;
}

.dn-comp-search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 1.5px;
  background: var(--brand);
  content: "";
  transform: rotate(45deg);
}

.dn-comp-search-reset {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--fg-faint);
  font-size: 20px;
  text-decoration: none;
}

.dn-comp-search-reset:hover { color: var(--fg); background: rgba(255, 255, 255, 0.05); text-decoration: none; }

.dn-comp-filter-panel {
  margin-top: 8px;
  padding: 13px 15px 15px;
  border: 1px solid rgba(214, 180, 95, 0.18);
  border-radius: 8px;
  background: rgba(17, 16, 20, 0.62);
}

.dn-comp-filter-head {
  display: flex;
  min-height: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.dn-comp-filter-head > span {
  color: var(--fg-faint);
  font: 700 9px/1.2 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dn-comp-filter-head a {
  color: var(--brand-soft);
  font-size: 11px;
  text-decoration: none;
}

.dn-comp-filter-head a:hover { color: var(--brand); text-decoration: underline; }

.dn-comp-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
}

.dn-comp-filter-grid label {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.dn-comp-filter-grid label > span {
  overflow: hidden;
  color: var(--fg-faint);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dn-comp-filter-grid select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 7px 30px 7px 10px;
  border-color: rgba(214, 180, 95, 0.22);
  border-radius: 6px;
  color: var(--fg-dim);
  background-color: rgba(10, 10, 13, 0.78);
  font-size: 12px;
}

.dn-comp-filter-grid label.is-active > span { color: var(--accent-hi); }
.dn-comp-filter-grid label.is-active select {
  border-color: rgba(42, 168, 255, 0.48);
  color: var(--fg);
  background-color: rgba(42, 168, 255, 0.07);
  box-shadow: 0 0 0 2px rgba(42, 168, 255, 0.06);
}

.dn-comp-results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.dn-comp-results-head .dn-eyebrow { margin-bottom: 7px; }
.dn-comp-results-head h2 { margin: 0; color: var(--text-strong); font-family: var(--font-display); font-size: 27px; line-height: 1.2; }
.dn-comp-results-head > p { max-width: 40ch; margin: 0; color: var(--fg-faint); font-size: 12px; text-align: right; }

.dn-comp-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dn-comp-category {
  display: grid;
  min-width: 0;
  min-height: 78px;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  background: linear-gradient(135deg, rgba(214, 180, 95, 0.045), transparent 48%), var(--bg-soft);
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.dn-comp-category:hover { border-color: rgba(214, 180, 95, 0.48); background-color: var(--bg-card); text-decoration: none; transform: translateY(-1px); }
.dn-comp-category.is-empty { opacity: 0.5; }
.dn-comp-category .dn-comp-type-icon { width: 42px; height: 42px; }
.dn-comp-category > span:nth-child(2) { display: grid; min-width: 0; gap: 4px; }
.dn-comp-category strong { overflow: hidden; color: var(--fg); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.dn-comp-category small { color: var(--fg-faint); font-size: 11px; }

/* Entry cards */
.dn-comp-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dn-comp-entry-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 190px;
  grid-template-columns: 58px minmax(0, 1fr) 20px;
  align-items: start;
  gap: 14px;
  padding: 17px 15px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  background: linear-gradient(145deg, rgba(214, 180, 95, 0.045), transparent 42%), var(--bg-soft);
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.dn-comp-entry-card::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(214, 180, 95, 0.72), transparent);
  content: "";
}

.dn-comp-entry-card:hover {
  border-color: rgba(214, 180, 95, 0.48);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  text-decoration: none;
  transform: translateY(-1px);
}

.dn-comp-entry-card > .dn-comp-arrow { align-self: center; opacity: 0.58; }

.dn-comp-entry-visual {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(214, 180, 95, 0.2);
  border-radius: 8px;
  background: rgba(17, 16, 20, 0.72);
}

.dn-comp-entry-visual img { width: 100%; height: 100%; object-fit: cover; }
.dn-comp-entry-visual .dn-comp-type-icon { width: 42px; height: 42px; font-size: 16px; }

.dn-comp-entry-body { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.dn-comp-entry-kicker { margin-bottom: 4px; color: var(--brand); font: 700 9px/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.dn-comp-entry-body > strong { max-width: 100%; overflow: hidden; color: var(--text-strong); font-size: 15px; line-height: 1.28; text-overflow: ellipsis; white-space: nowrap; }
.dn-comp-entry-alt { max-width: 100%; margin-top: 3px; overflow: hidden; color: var(--fg-faint); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dn-comp-entry-summary {
  display: -webkit-box;
  margin-top: 9px;
  overflow: hidden;
  color: var(--fg-dim);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dn-comp-entry-facts {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin-top: auto;
  padding-top: 12px;
}

.dn-comp-entry-facts > span { display: flex; min-width: 0; align-items: baseline; gap: 5px; }
.dn-comp-entry-facts small { flex: 0 0 auto; color: var(--fg-faint); font-size: 9px; text-transform: uppercase; }
.dn-comp-entry-facts b { overflow: hidden; color: var(--fg-dim); font: 600 10px/1.2 var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }

.dn-comp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 25px;
}

.dn-comp-pagination a {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(214, 180, 95, 0.28);
  border-radius: 7px;
  color: var(--brand-soft);
  text-decoration: none;
}

.dn-comp-pagination span { color: var(--fg-faint); font: 700 11px/1 var(--font-mono); }

/* Empty state */
.dn-comp-empty {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg-dim);
  background: rgba(17, 16, 20, 0.62);
  text-align: center;
}

.dn-comp-empty.is-inline { min-height: 230px; }
.dn-comp-empty h1, .dn-comp-empty h2, .dn-comp-empty h3 { margin: 0; color: var(--fg); font-family: var(--font-display); }
.dn-comp-empty p { max-width: 52ch; margin: 0; color: var(--fg-faint); }
.dn-comp-empty-mark { position: relative; width: 48px; height: 48px; border: 1px solid rgba(214, 180, 95, 0.32); transform: rotate(45deg); }
.dn-comp-empty-mark::after { position: absolute; inset: 14px; border: 1px solid var(--accent); content: ""; }

/* Detail page */
.dn-comp-entry-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px 0 28px;
  border-bottom: 1px solid rgba(214, 180, 95, 0.24);
}

.dn-comp-entry-hero .dn-eyebrow { margin-bottom: 9px; }
.dn-comp-entry-alt-name { margin: 7px 0 0; color: var(--fg-faint); font-family: var(--font-serif); font-size: 17px; }

.dn-comp-quick-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 30px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dn-comp-quick-facts > div {
  min-width: 0;
  min-height: 77px;
  padding: 14px 16px;
  border-top: 0;
  border-right: 0;
  border-left: 1px solid var(--border);
  background: rgba(17, 16, 20, 0.52);
}

.dn-comp-quick-facts dt,
.dn-comp-detail-facts dt,
.dn-comp-stat-grid dt,
.dn-comp-source-card dt,
.dn-comp-feature-list dt {
  margin-bottom: 5px;
  color: var(--brand);
  font: 700 9px/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dn-comp-quick-facts dd,
.dn-comp-detail-facts dd,
.dn-comp-stat-grid dd,
.dn-comp-source-card dd,
.dn-comp-feature-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--fg);
  font-size: 13px;
  line-height: 1.4;
}

.dn-comp-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  align-items: start;
  gap: 28px;
}

.dn-comp-detail-main { min-width: 0; }
.dn-comp-detail-aside { position: sticky; top: 86px; display: grid; min-width: 0; gap: 14px; }

.dn-comp-detail-section {
  padding: 29px 0;
  border-bottom: 1px solid var(--border);
}

.dn-comp-detail-section:first-child { padding-top: 0; }
.dn-comp-detail-section:last-child { border-bottom: 0; }
.dn-comp-detail-section h2 { margin: 0 0 18px; color: var(--text-strong); font-family: var(--font-display); font-size: 23px; line-height: 1.25; }
.dn-comp-detail-section .dn-eyebrow { margin-bottom: 7px; }
.dn-comp-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.dn-comp-detail-heading small { display: grid; min-width: 27px; height: 27px; place-items: center; border: 1px solid rgba(214, 180, 95, 0.26); border-radius: 50%; color: var(--brand); font: 700 10px/1 var(--font-mono); }

.dn-comp-prose { max-width: 76ch; color: var(--fg-dim); font-family: var(--font-serif); font-size: 16px; line-height: 1.75; }
.dn-comp-prose p { margin: 0 0 1.05em; }
.dn-comp-prose p:last-child { margin-bottom: 0; }

.dn-comp-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}

.dn-comp-detail-facts > div { min-width: 0; padding: 13px 15px; background: var(--bg-soft); }

.dn-comp-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.dn-comp-stat-grid > div {
  min-width: 0;
  padding: 12px 9px;
  border: 1px solid rgba(214, 180, 95, 0.2);
  border-radius: 7px;
  background: rgba(214, 180, 95, 0.045);
  text-align: center;
}

.dn-comp-stat-grid dt { color: var(--fg-faint); }
.dn-comp-stat-grid dd { color: var(--brand-soft); font: 700 18px/1.2 var(--font-mono); }

.dn-comp-feature-list { display: grid; gap: 9px; }
.dn-comp-feature-list article {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(214, 180, 95, 0.045), transparent 46%), rgba(17, 16, 20, 0.56);
}
.dn-comp-feature-list h3 { margin: 0 0 8px; color: var(--brand-soft); font-size: 15px; }
.dn-comp-feature-list p { margin: 8px 0 0; color: var(--fg-dim); font-size: 13px; line-height: 1.62; }
.dn-comp-feature-list dl { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 10px; }
.dn-comp-feature-list dl > div { display: flex; align-items: baseline; gap: 6px; }
.dn-comp-feature-list dt { margin: 0; }
.dn-comp-feature-list dd { color: var(--fg-dim); font: 600 11px/1.2 var(--font-mono); }

.dn-comp-entry-image {
  display: grid;
  min-height: 230px;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 180, 95, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(214, 180, 95, 0.08), transparent 48%),
    var(--bg-soft);
}

.dn-comp-entry-image img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: cover; }
.dn-comp-entry-image.is-placeholder {
  background:
    radial-gradient(circle at center, rgba(42, 168, 255, 0.1), transparent 36%),
    linear-gradient(145deg, rgba(214, 180, 95, 0.07), transparent 54%),
    var(--bg-soft);
}
.dn-comp-entry-image.is-placeholder .dn-comp-type-icon { background: rgba(17, 16, 20, 0.78); box-shadow: 0 0 28px rgba(42, 168, 255, 0.14); }

.dn-comp-source-card {
  position: relative;
  padding: 22px 19px 18px;
  overflow: hidden;
  border: 1px solid rgba(214, 180, 95, 0.23);
  border-radius: 8px;
  background: var(--bg-soft);
}

.dn-comp-source-card h2 { margin: 0 0 15px; color: var(--fg); font-family: var(--font-display); font-size: 18px; }
.dn-comp-source-card dl { display: grid; gap: 11px; margin: 0; }
.dn-comp-source-card dl > div { min-width: 0; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.dn-comp-source-card dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
.dn-comp-source-card dd { color: var(--fg-dim); font-size: 12px; }

@media (max-width: 980px) {
  .dn-comp-mechanics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dn-comp-browser { grid-template-columns: 210px minmax(0, 1fr); gap: 16px; }
  .dn-comp-entry-grid { grid-template-columns: 1fr; }
  .dn-comp-quick-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dn-comp-detail-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; }
}

@media (max-width: 760px) {
  .dn-comp-shell { width: 100%; max-width: 680px; padding-top: 28px; }
  .dn-comp-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 29px 25px; }
  .dn-comp-hero h1, .dn-comp-entry-hero h1 { font-size: 34px; }
  .dn-comp-hero-seal { display: none; }
  .dn-comp-hero.is-compact { grid-template-columns: minmax(0, 1fr) auto; }
  .dn-comp-hero-stat { min-width: 108px; }
  .dn-comp-hero-stat b { font-size: 31px; }
  .dn-comp-mechanics { grid-template-columns: 1fr; }
  .dn-comp-mechanic { min-height: 250px; }

  .dn-comp-browser { grid-template-columns: minmax(0, 1fr); }
  .dn-comp-sidebar { position: static; padding: 9px; overflow: hidden; }
  .dn-comp-side-title { display: none; }
  .dn-comp-type-nav { display: flex; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .dn-comp-type-nav a { min-width: max-content; grid-template-columns: 28px auto auto; }

  .dn-comp-detail-layout { grid-template-columns: minmax(0, 1fr); }
  .dn-comp-detail-aside { position: static; grid-row: 1; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr); align-items: stretch; }
  .dn-comp-detail-aside > .dn-btn { grid-column: 1 / -1; }
  .dn-comp-entry-image { min-height: 210px; }
  .dn-comp-quick-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .dn-comp-shell { width: 100%; padding: 20px 0 52px; }
  .dn-comp-hero { margin-bottom: 18px; padding: 25px 20px; }
  .dn-comp-hero h1, .dn-comp-entry-hero h1 { font-size: 29px; }
  .dn-comp-hero-copy > p { font-size: 14px; }
  .dn-comp-hero.is-compact { grid-template-columns: 1fr; }
  .dn-comp-hero-stat { justify-self: start; margin-top: 20px; padding: 12px 0 0; border-top: 1px solid rgba(214, 180, 95, 0.24); border-left: 0; }
  .dn-comp-mechanic { padding: 21px; }
  .dn-comp-note { padding-inline: 8px; }
  .dn-comp-breadcrumb { overflow-x: auto; padding-bottom: 4px; white-space: nowrap; }

  .dn-comp-search { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .dn-comp-search .dn-btn { grid-column: 1 / -1; width: 100%; }
  .dn-comp-search-reset { grid-column: 3; grid-row: 1; }
  .dn-comp-filter-panel { padding: 12px; }
  .dn-comp-filter-grid { grid-template-columns: 1fr; }
  .dn-comp-results-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .dn-comp-results-head > p { text-align: left; }
  .dn-comp-category-grid { grid-template-columns: 1fr; }
  .dn-comp-entry-card { min-height: 0; grid-template-columns: 46px minmax(0, 1fr); padding: 14px 13px; }
  .dn-comp-entry-card > .dn-comp-arrow { display: none; }
  .dn-comp-entry-visual { width: 46px; height: 46px; }
  .dn-comp-entry-visual .dn-comp-type-icon { width: 34px; height: 34px; }
  .dn-comp-entry-summary { -webkit-line-clamp: 3; }
  .dn-comp-entry-facts { grid-template-columns: 1fr; }

  .dn-comp-entry-hero { align-items: start; }
  .dn-comp-entry-hero > .dn-comp-type-icon { display: none; }
  .dn-comp-quick-facts { grid-template-columns: 1fr 1fr; }
  .dn-comp-quick-facts > div { min-height: 68px; padding: 12px; }
  .dn-comp-detail-aside { grid-template-columns: 1fr; }
  .dn-comp-detail-aside > .dn-btn { grid-column: auto; }
  .dn-comp-detail-facts { grid-template-columns: 1fr; }
  .dn-comp-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dn-comp-prose { font-size: 15px; }
  .dn-comp-pagination { justify-content: space-between; gap: 8px; }
  .dn-comp-pagination a { padding-inline: 9px; font-size: 12px; }
}
