/* =========================================================
   ENOT — PAGE-SPECIFIC (style_site.css)
   Все страницы — в едином визуальном языке.
   ========================================================= */

/* =========================================================
   ДАШБОРД — Лаунчер
   ========================================================= */
.enot-dash {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
}
.ds-main, .ds-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.ds-panel {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  min-width: 0;
}
.ds-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.ds-panel-title {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ds-panel-link {
  font-size: 11px;
  color: var(--text-3);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: color .1s;
}
.ds-panel-link:hover { color: var(--text-1); }

.ds-hero {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-1);
  display: grid;
  grid-template-columns: 1fr 260px;
  min-height: 260px;
}
.ds-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  pointer-events: none;
}
.ds-hero-info {
  position: relative;
  z-index: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.ds-hero-profile { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ds-hero-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  color: var(--text-2);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.ds-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ds-hero-avatar-vip {
  position: absolute;
  bottom: 0; right: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
}
.ds-hero-name-block { flex: 1; min-width: 0; }
.ds-hero-name {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.015em;
  margin: 0 0 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.ds-badge-vip {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: var(--r-xs);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  line-height: 1.2;
}
.ds-badge-private {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: var(--r-xs);
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-3);
  line-height: 1.2;
}
.ds-hero-details {
  font-size: 11.5px;
  color: var(--text-2);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.4;
}
.ds-hero-details .sep { opacity: 0.35; }
.ds-hero-meta { display: flex; gap: 4px; flex-wrap: wrap; }

.ds-hero-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ds-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: background .1s;
}
.ds-play-btn:hover { background: var(--accent-hover); }
.ds-play-btn .icon {
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.18);
  border-radius: 3px;
  font-size: 8px;
}
.ds-hero-btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-1);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: background .1s, border-color .1s;
}
.ds-hero-btn-mini:hover:not(:disabled) { background: var(--bg-3); border-color: var(--border-strong); }
.ds-hero-btn-mini:disabled { opacity: 0.4; cursor: not-allowed; }

.ds-hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 260px;
  background: var(--bg-2);
  border-left: 1px solid var(--border);
}
#raccoon3d {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
#raccoon3d:active { cursor: grabbing; }
.ds-hero-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 84px;
  line-height: 1;
  pointer-events: none;
  transition: opacity .3s;
}
.ds-hero-fallback.hidden { opacity: 0; }

/* Метрики */
.ds-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.ds-metric {
  background: var(--bg-1);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ds-metric-icon {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.ds-metric-icon.green  { color: var(--success); background: var(--success-soft); }
.ds-metric-icon.yellow { color: var(--warning); background: var(--warning-soft); }
.ds-metric-icon.blue   { color: var(--info);    background: var(--info-soft); }
.ds-metric-icon.red    { color: var(--danger);  background: var(--danger-soft); }
.ds-metric-icon.violet { color: var(--accent);  background: var(--accent-soft); }
.ds-metric-info { min-width: 0; flex: 1; }
.ds-metric-k {
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 2px;
}
.ds-metric-v {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.2;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.ds-metric-v small { font-size: 10.5px; color: var(--text-3); font-weight: 400; }
.ds-metric-bar { height: 3px; background: var(--bg-3); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.ds-metric-bar > i { display: block; height: 100%; border-radius: 2px; }
.ds-metric-timer { font-size: 9.5px; color: var(--warning); margin-top: 3px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Прогресс */
.ds-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 6px;
  gap: 8px;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}
.ds-progress-info strong { color: var(--text-1); }
.ds-progress-bar {
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.ds-progress-bar > i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width .4s ease;
}

/* Активы */
.ds-assets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ds-asset {
  padding: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ds-asset-ic {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.ds-asset-ic img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.ds-asset-emoji { font-size: 18px; line-height: 1; }
.ds-asset-body { min-width: 0; flex: 1; }
.ds-asset-k {
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: 1px;
}
.ds-asset-v {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ds-asset-s {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

/* Бизнесы в дашборде */
.ds-biz-total {
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--success-soft);
  border: 1px solid var(--success-line);
  text-align: center;
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 8px;
}
.ds-biz-total b { color: var(--success); font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; }
.ds-biz-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  margin-bottom: 4px;
}
.ds-biz-row:last-child { margin-bottom: 0; }
.ds-biz-emoji { font-size: 15px; flex-shrink: 0; }
.ds-biz-name { flex: 1; min-width: 0; font-size: 11.5px; font-weight: 500; color: var(--text-1); overflow-wrap: anywhere; }
.ds-biz-name .per { font-size: 10px; color: var(--success); font-weight: 500; margin-top: 1px; }
.ds-biz-lvl {
  font-size: 9.5px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: var(--r-xs);
  background: var(--warning-soft);
  color: var(--warning);
  border: 1px solid var(--warning-line);
  white-space: nowrap;
}

/* Быстрый доступ */
.ds-quick-list { display: flex; flex-direction: column; gap: 4px; }
.ds-quick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-1);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background .1s, border-color .1s;
  min-height: 40px;
}
.ds-quick:hover { border-color: var(--border-strong); background: var(--bg-3); }
.ds-quick .ic {
  width: 26px; height: 26px;
  border-radius: var(--r-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.ds-quick.violet .ic { background: var(--accent-soft); color: var(--accent); }
.ds-quick.blue   .ic { background: var(--info-soft);   color: var(--info); }
.ds-quick.green  .ic { background: var(--success-soft);color: var(--success); }
.ds-quick.yellow .ic { background: var(--warning-soft);color: var(--warning); }

/* Инвентарь в дашборде */
.ds-inv { display: flex; gap: 5px; flex-wrap: wrap; }
.ds-inv-cell {
  width: 36px; height: 36px;
  border-radius: var(--r-xs);
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: help;
  flex-shrink: 0;
}
.ds-inv-cell .ic { font-size: 14px; line-height: 1; }
.ds-inv-cell .q { font-size: 8px; font-weight: 500; color: var(--text-3); }

/* Форма промокода */
.ds-form { display: flex; gap: 5px; flex-wrap: wrap; }
.ds-input {
  flex: 1;
  min-width: 120px;
  padding: 8px 10px;
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-size: 11.5px;
  font-family: inherit;
  text-transform: uppercase;
}
.ds-input:focus { outline: none; border-color: var(--accent); }
.ds-btn {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  color: var(--text-1);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.ds-btn:hover { background: var(--bg-3); border-color: var(--border-accent); }
.ds-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.ds-btn.primary:hover { background: var(--accent-hover); }

/* Бусты */
.ds-buff {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 11px;
  margin-bottom: 4px;
  gap: 6px;
}
.ds-buff:last-child { margin-bottom: 0; }
.ds-buff .nm { color: var(--success); font-weight: 500; }
.ds-buff .tm { color: var(--text-1); font-weight: 500; font-size: 10.5px; font-variant-numeric: tabular-nums; }

/* Пустое состояние */
.ds-empty {
  text-align: center;
  padding: 16px 12px;
  color: var(--text-3);
  font-size: 11.5px;
}
.ds-empty .ic { font-size: 24px; opacity: 0.35; display: block; margin-bottom: 5px; }

/* Уведомление */
.ds-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--accent-line);
  flex-wrap: wrap;
}
.ds-notice-title { font-size: 12px; font-weight: 500; color: var(--text-1); margin-bottom: 1px; }
.ds-notice-sub { font-size: 10.5px; color: var(--text-3); }
.ds-notice-go {
  padding: 7px 12px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.ds-notice-go:hover { background: var(--accent-hover); }

/* Guest-лендинг */
.guest-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-1);
}
.guest-section {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin: 8px 0 0;
}
.guest-section::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.guest-hero {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-1);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  min-height: 420px;
}
.guest-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  pointer-events: none;
}
.guest-hero-info {
  position: relative;
  z-index: 2;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.guest-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.guest-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.05;
  letter-spacing: -0.028em;
  margin: 0;
}
.guest-title .accent { color: var(--accent); }
.guest-subtitle {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 520px;
  margin: 0;
}
.guest-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.guest-btn-big {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .1s;
  white-space: nowrap;
}
.guest-btn-big:hover { background: var(--accent-hover); }
.guest-btn-big .icon {
  width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.18);
  border-radius: 3px;
  font-size: 9px;
}
.guest-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-1);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--border-strong);
  text-decoration: none;
  transition: background .1s, border-color .1s;
  white-space: nowrap;
}
.guest-btn-ghost:hover { background: var(--bg-2); border-color: var(--border-accent); }
.guest-hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px 20px 0;
  height: 100%;
  min-height: 380px;
}
.guest-hero-scene {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.guest-hero-scene svg { display: block; width: 100%; height: 100%; }

.guest-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.guest-stat-box {
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--bg-1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.guest-stat-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.guest-stat-icon.violet { background: var(--accent-soft); color: var(--accent); }
.guest-stat-icon.green  { background: var(--success-soft);color: var(--success); }
.guest-stat-icon.blue   { background: var(--info-soft);   color: var(--info); }
.guest-stat-icon.yellow { background: var(--warning-soft);color: var(--warning); }
.guest-stat-info { min-width: 0; }
.guest-stat-v {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.15;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.guest-stat-k {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-top: 2px;
}
.guest-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.guest-feature {
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--bg-1);
  border: 1px solid var(--border);
  min-width: 0;
  transition: border-color .12s;
}
.guest-feature:hover { border-color: var(--border-strong); }
.guest-feature-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}
.guest-feature-icon.violet { background: var(--accent-soft); color: var(--accent); }
.guest-feature-icon.green  { background: var(--success-soft);color: var(--success); }
.guest-feature-icon.blue   { background: var(--info-soft);   color: var(--info); }
.guest-feature-icon.yellow { background: var(--warning-soft);color: var(--warning); }
.guest-feature-title { font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 4px; line-height: 1.3; }
.guest-feature-text { font-size: 11.5px; color: var(--text-3); line-height: 1.55; }
.guest-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.guest-step {
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--bg-1);
  border: 1px solid var(--border);
  position: relative;
  min-width: 0;
}
.guest-step-num {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 26px;
  font-weight: 700;
  color: var(--bg-3);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.guest-step-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.guest-step-text {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}
.guest-top {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
}
.guest-top-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.guest-top-title {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.guest-top-link {
  font-size: 11px;
  color: var(--text-3);
  text-decoration: none;
  font-weight: 500;
}
.guest-top-link:hover { color: var(--text-1); }
.guest-top-row {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  margin-bottom: 4px;
  min-width: 0;
}
.guest-top-row:last-child { margin-bottom: 0; }
.guest-top-rank {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 11px;
  background: var(--bg-3);
  color: var(--text-3);
  flex-shrink: 0;
}
.guest-top-rank.r1 { background: var(--warning); color: var(--text-inv); }
.guest-top-rank.r2 { background: #94a3b8; color: var(--text-inv); }
.guest-top-rank.r3 { background: #ea580c; color: #fff; }
.guest-top-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.guest-top-name.hidden { color: var(--text-3); font-style: italic; font-weight: 400; }
.guest-top-lvl { font-size: 11px; font-weight: 500; color: var(--warning); white-space: nowrap; font-variant-numeric: tabular-nums; }
.guest-top-bal { font-size: 11.5px; font-weight: 500; color: var(--success); white-space: nowrap; font-variant-numeric: tabular-nums; }
.guest-cta {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--r-lg);
  background: var(--bg-1);
  border: 1px solid var(--accent-line);
}
.guest-cta-inner { position: relative; z-index: 1; }
.guest-cta-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.guest-cta-text {
  font-size: 13px;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

/* =========================================================
   БИЗНЕСЫ
   ========================================================= */
.biz-layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.biz-image-box { transition: border-color .12s; }
.biz-image-img { transition: transform .35s cubic-bezier(.2,.8,.3,1); }
.biz-image-box:hover .biz-image-img { transform: scale(1.04) translateY(-3px); }

.biz-mine-card {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-2);
  border-radius: var(--r-lg);
  padding: 14px;
  border: 1px solid var(--border);
  transition: border-color .12s;
}
.biz-mine-media {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.biz-mine-media > img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
.biz-mine-info { flex: 1; min-width: 260px; display: flex; flex-direction: column; }
.biz-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.biz-stat-grid.compact {
  background: var(--bg-1);
  padding: 8px;
  border-radius: var(--r-sm);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  text-align: center;
}
.biz-stat-grid.compact > div > div:first-child {
  font-size: 9.5px;
  color: var(--text-3);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.biz-stat-grid.compact > div > div:last-child {
  font-size: 11.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.biz-actions { display: flex; gap: 6px; margin-top: auto; flex-wrap: wrap; }
.biz-actions > form { margin: 0; }

/* Каталог бизнесов */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.biz-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  transition: border-color .12s, background .12s;
  position: relative;
  min-width: 0;
}
.biz-card:hover { border-color: var(--border-strong); background: var(--bg-2); }
.biz-card.owned { border-color: var(--success-line); }
.biz-card.out-of-stock { opacity: 0.65; }
.biz-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 6px;
}
.biz-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.biz-badge {
  font-size: 9.5px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: var(--r-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-3);
  white-space: nowrap;
}
.biz-badge.ok { background: var(--success-soft); border-color: var(--success-line); color: var(--success); }
.biz-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-0);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  padding: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.biz-image img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* =========================================================
   МАШИНЫ
   ========================================================= */
.garage-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.garage-stat {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
}
.garage-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}
.garage-stat .k {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 5px;
}
.garage-stat .v {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.garage-stat .v.gold  { color: var(--warning); }
.garage-stat .v.green { color: var(--success); }
.garage-stat .v.blue  { color: var(--info); }
.garage-stat .sub { font-size: 10px; color: var(--text-3); margin-top: 2px; }

.car-scene {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 0;
  aspect-ratio: 4 / 3;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg-0);
}
.car-scene-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.04) 0%, transparent 55%),
    var(--bg-0);
  z-index: 0;
}
.car-scene::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 25%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
  z-index: 1;
}
.car-scene-img {
  position: relative;
  z-index: 3;
  width: 80%;
  max-width: 80%;
  max-height: 65%;
  object-fit: contain;
  transition: transform .35s cubic-bezier(.2,.8,.3,1);
  border-radius: var(--r-sm);
}
.car-scene:hover .car-scene-img { transform: scale(1.02) translateY(-2px); }
.car-scene-ground {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 2;
  pointer-events: none;
}
.car-rating-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong);
}
.car-rating-badge .letter { font-size: 14px; font-weight: 600; line-height: 1; }
.car-lvl-pill {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 5;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: 11px;
  background: rgba(0,0,0,0.5);
  color: var(--warning);
  border: 1px solid var(--warning-line);
  backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
}
.car-vin-panel {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  padding: 8px 0;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  min-width: 60%;
  max-width: 90%;
}
.car-vin-cell {
  flex: 1;
  padding: 0 14px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.car-vin-cell:last-child { border-right: none; }
.car-vin-cell .k {
  font-size: 8px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 2px;
}
.car-vin-cell .v {
  font-size: 11px;
  color: var(--text-1);
  font-weight: 500;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.car-vin-cell .v.accent { color: var(--success); }

.stat-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
}
.stat-bar-row .icon {
  width: 22px; height: 22px;
  border-radius: var(--r-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.stat-bar-row .label {
  font-size: 10.5px;
  color: var(--text-3);
  font-weight: 500;
  min-width: 82px;
}
.stat-bar-row .bar {
  flex: 1;
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.stat-bar-row .bar > i {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width .35s ease;
}
.stat-bar-row .val {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-1);
  min-width: 54px;
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.catalog-card-wrap { position: relative; }
.catalog-card-wrap .product-card { position: relative; overflow: hidden; }
.catalog-card-wrap .product-image { position: relative; overflow: hidden; }

.catalog-badge {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: var(--r-xs);
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
}
.catalog-badge.real { background: var(--accent); color: #fff; }
.catalog-badge.owned { background: var(--success); color: #fff; }
.catalog-badge.out { background: var(--danger); color: #fff; }

.catalog-rating {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: var(--r-xs);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
}
.catalog-rating .letter { font-size: 10.5px; font-weight: 600; }

.stock-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-xs);
  font-size: 10px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: nowrap;
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid var(--success-line);
  font-variant-numeric: tabular-nums;
}
.stock-chip .ic { font-size: 10px; }
.stock-chip.low { background: var(--warning-soft); color: var(--warning); border-color: var(--warning-line); }
.stock-chip.out { background: var(--danger-soft); color: #fca5a5; border-color: var(--danger-line); }
.stock-chip.inf { background: var(--bg-2); color: var(--text-2); border-color: var(--border-strong); }

.next-level-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.next-level-card .lvl {
  font-size: 10px;
  font-weight: 500;
  color: var(--info);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.next-level-card .stats { font-size: 10px; color: var(--text-3); line-height: 1.5; font-variant-numeric: tabular-nums; }
.next-level-card .stats strong { color: var(--success); }
.next-level-card .cost { font-size: 10.5px; color: var(--warning); font-weight: 500; margin-top: 1px; font-variant-numeric: tabular-nums; }

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .1s, border-color .1s;
  line-height: 1.2;
  font-family: inherit;
}
.action-btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 500; }
.action-btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.action-btn.primary:disabled { opacity: 0.5; cursor: not-allowed; }
.action-btn.gold { background: var(--warning); color: var(--text-inv); border-color: var(--warning); }
.action-btn.gold:hover { background: #f0c020; }
.action-btn.ghost { background: transparent; color: var(--text-2); border-color: var(--border-strong); }
.action-btn.ghost:hover { background: var(--bg-2); color: var(--text-1); border-color: var(--border-accent); }
.action-btn.danger { background: transparent; color: var(--danger); border-color: var(--danger-line); }
.action-btn.danger:hover { background: var(--danger-soft); }

.info-block {
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 11.5px;
  color: var(--text-2);
  line-height: 1.55;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.info-block.warn { background: var(--warning-soft); border-color: var(--warning-line); color: var(--warning); }
.info-block.ok { background: var(--success-soft); border-color: var(--success-line); color: var(--success); }
.info-block .ico { font-size: 14px; flex-shrink: 0; }

.plate-tile {
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: border-color .1s;
}
.plate-tile:hover { border-color: var(--border-strong); }

@keyframes platePop {
  0%   { transform: scale(0.5); opacity: 0; }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1);    opacity: 1; }
}

/* =========================================================
   КАЗИНО
   ========================================================= */
.casino-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-text h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.hero-text p {
  font-size: 12.5px;
  color: var(--text-2);
  margin: 0;
  max-width: 400px;
  line-height: 1.5;
}
.hero-balance {
  position: relative;
  padding: 14px 22px;
  border-radius: var(--r-md);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  text-align: right;
  min-width: 0;
  max-width: 100%;
}
.hero-balance .k {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 4px;
}
.hero-balance .v {
  font-size: 22px;
  font-weight: 600;
  color: var(--success);
  transition: transform .2s, color .2s;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}
.hero-balance .v.win { color: var(--warning); transform: scale(1.03); }
.hero-balance .v.lose { color: var(--danger); }

.casino-layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.casino-main {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  position: relative;
  min-width: 0;
}
.casino-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: var(--bg-2);
  padding: 4px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.casino-tabs::-webkit-scrollbar { display: none; }
.casino-tab {
  flex: 1;
  min-width: 80px;
  padding: 9px 8px;
  border-radius: var(--r-xs);
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-3);
  transition: background .1s, color .1s;
  user-select: none;
  font-size: 11.5px;
}
.casino-tab:hover { color: var(--text-1); background: var(--bg-3); }
.casino-tab.active { background: var(--accent); color: #fff; font-weight: 600; }
.casino-tab .tab-icon { display: block; font-size: 18px; margin-bottom: 3px; }
.casino-tab.disabled { opacity: 0.5; pointer-events: none; }

.casino-game { display: none; }
.casino-game.active { display: block; animation: fadeIn .18s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bet-section {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 16px;
}
.bet-header {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  gap: 8px;
  flex-wrap: wrap;
}
.bet-input {
  width: 100%;
  padding: 12px;
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
  transition: border-color .1s;
  font-family: var(--font-mono);
  box-sizing: border-box;
  -moz-appearance: textfield;
  font-variant-numeric: tabular-nums;
}
.bet-input::-webkit-outer-spin-button,
.bet-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bet-input:focus { border-color: var(--accent); outline: none; }
.quick-bets { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; }
.qb {
  padding: 7px 13px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .1s, border-color .1s;
  color: var(--text-2);
  user-select: none;
  font-variant-numeric: tabular-nums;
}
.qb:hover { background: var(--bg-hover); border-color: var(--border-strong); color: var(--text-1); }
.qb.all-btn { border-color: var(--warning-line); color: var(--warning); }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.choice-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background .1s, border-color .1s;
  overflow: hidden;
  user-select: none;
}
.choice-btn:hover { border-color: var(--border-strong); background: var(--bg-3); }
.choice-btn input { position: absolute; opacity: 0; pointer-events: none; }
.choice-btn:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.cb-icon {
  font-size: 32px;
  margin-bottom: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  transition: transform .25s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.choice-btn:has(input:checked) .cb-icon { transform: scale(1.08) translateY(-2px); }
.cb-label { font-size: 13px; font-weight: 500; color: var(--text-1); }
.cb-mult {
  font-size: 10.5px;
  color: var(--success);
  font-weight: 500;
  margin-top: 4px;
  background: var(--success-soft);
  padding: 1px 7px;
  border-radius: var(--r-xs);
  font-variant-numeric: tabular-nums;
}

.coin-icon { width: 48px; height: 48px; }
.dice-icon { font-size: 26px; color: var(--text-1); }
.roulette-icon { font-size: 32px; }

.slots-machine {
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 16px;
  position: relative;
}
.slots-display {
  display: flex;
  justify-content: center;
  gap: 10px;
  background: #000;
  padding: 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.slot-reel {
  --reel-h: 96px;
  width: 80px;
  height: var(--reel-h);
  background: var(--bg-1);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.slot-reel .reel-strip { display: flex; flex-direction: column; align-items: center; width: 100%; }
.slot-reel .reel-item { height: var(--reel-h); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.slot-reel.spinning .reel-strip { animation: spinReels .1s linear infinite; }
@keyframes spinReels {
  0%   { transform: translateY(0); }
  100% { transform: translateY(calc(-1 * var(--reel-h))); }
}

.casino-submit {
  width: 100%;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background .12s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-sizing: border-box;
  font-family: inherit;
}
.casino-submit:hover:not(:disabled) { background: var(--accent-hover); }
.casino-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.casino-warning {
  padding: 10px 12px;
  margin-bottom: 10px;
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
  border-radius: var(--r-sm);
  color: #fca5a5;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.4;
}
.casino-warning strong { color: var(--text-1); font-weight: 600; }
.casino-warning a { color: var(--info); text-decoration: underline; text-underline-offset: 2px; }

.casino-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.side-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  min-width: 0;
}
.side-title {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  gap: 8px;
}
.stat-row:last-child { border: none; }
.stat-row .k { color: var(--text-2); font-weight: 500; }
.stat-row .v {
  font-weight: 500;
  color: var(--text-1);
  font-family: var(--font-mono);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.live-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  margin-bottom: 6px;
  font-size: 11.5px;
  animation: slideIn .25s ease;
  min-width: 0;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.live-item .u {
  flex: 1;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.live-item .w { color: var(--success); font-weight: 500; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.live-item .m { font-size: 9.5px; color: var(--warning); font-weight: 500; text-transform: uppercase; white-space: nowrap; }

.casino-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  padding: 12px 18px;
  border-radius: var(--r-md);
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform .3s cubic-bezier(0.34, 1.4, 0.64, 1), opacity .2s;
  opacity: 0;
  pointer-events: none;
  max-width: min(90vw, 480px);
  box-sizing: border-box;
}
.casino-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.casino-toast.win  { border-color: var(--success-line); background: var(--bg-1); }
.casino-toast.lose { border-color: var(--danger-line);  background: var(--bg-1); }
.toast-icon { font-size: 24px; flex-shrink: 0; }
.toast-text { font-weight: 600; font-size: 13px; color: var(--text-1); overflow-wrap: anywhere; }
.toast-sub {
  font-size: 11.5px;
  color: var(--text-2);
  font-weight: 500;
  margin-top: 2px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

@keyframes pulse {
  0%   { opacity: 1; }
  70%  { opacity: 0.5; }
  100% { opacity: 1; }
}

/* =========================================================
   КЛАН
   ========================================================= */
.clan-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
}
.clan-hero-inner { position: relative; z-index: 1; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.clan-avatar-big {
  width: 100px;
  height: 100px;
  border-radius: var(--r-md);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.clan-avatar-big img { width: 100%; height: 100%; object-fit: cover; }
.clan-avatar-big .placeholder { font-size: 48px; }
.clan-avatar-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--r-xs);
  border: 2px solid var(--bg-1);
  z-index: 2;
  font-variant-numeric: tabular-nums;
}
.clan-title-block { flex: 1; min-width: 220px; }
.clan-name-big {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-1);
  margin: 0 0 8px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.clan-badges-row { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }
.clan-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.clan-metric {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
}
.clan-metric .k {
  font-size: 9.5px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 3px;
}
.clan-metric .v {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-variant-numeric: tabular-nums;
}
.clan-metric .v small { font-size: 10px; color: var(--text-3); font-weight: 400; }
.clan-metric.money .v  { color: var(--success); }
.clan-metric.members .v{ color: var(--info); }
.clan-metric.power .v  { color: var(--warning); }
.clan-metric.wealth .v { color: var(--warning); }

.clan-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-bottom: 16px; }
.clan-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.clan-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  gap: 6px;
  flex-wrap: wrap;
}
.clan-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.clan-progress {
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.clan-progress > i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.clan-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 4px;
  gap: 6px;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}
.clan-upgrade-hero {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 12px;
}
.clan-upgrade-lvl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 6px;
  flex-wrap: wrap;
}
.clan-lvl-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--warning-soft);
  color: var(--warning);
  border: 1px solid var(--warning-line);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 11.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.clan-lvl-arrow { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); }
.clan-lvl-next {
  background: var(--success-soft);
  color: var(--success);
  padding: 3px 8px;
  border-radius: var(--r-xs);
  font-weight: 500;
  border: 1px solid var(--success-line);
  font-variant-numeric: tabular-nums;
}
.clan-upgrade-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.clan-diff-item {
  background: var(--bg-1);
  padding: 8px 10px;
  border-radius: var(--r-sm);
  text-align: center;
  border: 1px solid var(--border);
}
.clan-diff-item .k {
  font-size: 9.5px;
  color: var(--text-3);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.clan-diff-item .v { font-size: 12px; font-weight: 500; color: var(--text-1); font-variant-numeric: tabular-nums; }
.clan-diff-item .v .old { color: var(--text-3); font-weight: 400; }
.clan-diff-item .v .arr { color: var(--text-4); margin: 0 3px; font-size: 10px; }
.clan-diff-item .v .new { color: var(--success); }

.clan-deposit {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
}
.clan-deposit-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 4px;
}
.clan-deposit-title { font-size: 11.5px; font-weight: 500; color: var(--success); display: flex; align-items: center; gap: 5px; }
.clan-deposit-mine { font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.clan-deposit-mine strong { color: var(--text-1); font-weight: 500; }
.clan-deposit-form { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.clan-deposit-form input {
  flex: 1;
  min-width: 120px;
  padding: 8px 10px;
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-size: 12.5px;
  font-family: inherit;
}
.clan-deposit-form input:focus { outline: none; border-color: var(--accent); }
.clan-deposit-form button { padding: 8px 16px; }
.clan-quick-btns { display: flex; gap: 5px; flex-wrap: wrap; }
.clan-quick-btn {
  background: var(--bg-1);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 4px 9px;
  border-radius: var(--r-xs);
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background .1s, border-color .1s;
  font-variant-numeric: tabular-nums;
}
.clan-quick-btn:hover { background: var(--bg-2); border-color: var(--border-strong); color: var(--text-1); }

.clan-podium { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 6px; margin-bottom: 4px; align-items: end; }
.clan-podium-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.clan-podium-item.rank-1 {
  background: var(--bg-2);
  border-color: var(--warning-line);
  padding-bottom: 16px;
}
.clan-podium-item.rank-2 { border-color: #94a3b8; }
.clan-podium-item.rank-3 { border-color: #ea580c; }
.clan-podium-medal {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
}
.clan-podium-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-2);
  margin: 4px auto 6px;
}
.clan-podium-item.rank-1 .clan-podium-avatar { border-color: var(--warning-line); color: var(--warning); }
.clan-podium-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.clan-podium-bal { font-size: 10.5px; font-weight: 500; color: var(--success); white-space: nowrap; font-variant-numeric: tabular-nums; }
.clan-podium-item.rank-1 .clan-podium-bal { color: var(--warning); font-size: 11.5px; }

.clan-members-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 3px;
}
.clan-member-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  position: relative;
}
.clan-member-row.is-me { border-color: var(--info-line); background: var(--bg-2); }
.clan-member-row.is-chief { border-color: var(--warning-line); background: var(--bg-2); }
.clan-member-place {
  width: 20px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-3);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.clan-member-place.top { color: var(--warning); }
.clan-member-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 11px;
  color: var(--text-2);
  flex-shrink: 0;
}
.clan-member-row.is-chief .clan-member-avatar { border-color: var(--warning-line); color: var(--warning); }
.clan-member-info { flex: 1; min-width: 0; }
.clan-member-name {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}
.clan-member-name a { color: inherit; text-decoration: none; }
.clan-member-tags { font-size: 9px; display: flex; gap: 3px; margin-top: 1px; flex-wrap: wrap; }
.clan-member-stats { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.clan-member-stat { text-align: right; font-size: 10.5px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.clan-member-stat.lvl { color: var(--warning); width: 44px; }
.clan-member-stat.bal { color: var(--success); width: 64px; }
.clan-member-kick { flex-shrink: 0; }
.clan-kick-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--r-xs);
  background: transparent;
  border: 1px solid var(--danger-line);
  color: var(--danger);
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .1s;
  font-family: inherit;
}
.clan-kick-btn:hover { background: var(--danger-soft); }

.clan-mgmt { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.clan-join-toggle {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.clan-join-toggle.open { background: var(--success-soft); border-color: var(--success-line); }
.clan-join-toggle.closed { background: var(--danger-soft); border-color: var(--danger-line); }
.clan-join-toggle-info { flex: 1; min-width: 160px; }
.clan-join-toggle-title { font-size: 12px; font-weight: 500; color: var(--text-1); margin-bottom: 3px; }
.clan-join-toggle-desc { font-size: 11px; color: var(--text-3); line-height: 1.4; }

.clan-invite-form {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 10px;
}
.clan-invite-form input {
  flex: 1;
  min-width: 120px;
  padding: 8px 10px;
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-size: 12px;
  font-family: inherit;
}
.clan-invite-form button { padding: 8px 14px; }

.clan-invites-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 12px;
}
.clan-invites-title {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: 3px;
}
.clan-invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
}
.clan-invite-row-name {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-1);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.clan-invite-row-name small { color: var(--text-3); font-size: 10px; font-weight: 400; }
.clan-mgmt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.clan-mgmt-box {
  background: var(--bg-2);
  padding: 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}
.clan-mgmt-label {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.invite-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  flex-wrap: wrap;
}
.invite-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
  font-size: 18px;
}
.invite-avatar img { width: 100%; height: 100%; object-fit: cover; }
.invite-body { flex: 1; min-width: 160px; }
.invite-name { font-size: 12.5px; font-weight: 500; color: var(--text-1); margin-bottom: 2px; overflow-wrap: anywhere; }
.invite-meta { font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.clan-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-2);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}
.clan-top-row.rank-1 { border-color: var(--warning-line); }
.clan-top-row.rank-2 { border-color: #94a3b8; }
.clan-top-row.rank-3 { border-color: #ea580c; }
.clan-top-row.is-mine { border-color: var(--info-line); }
.clan-top-place {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
  background: var(--bg-3);
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.clan-top-row.rank-1 .clan-top-place { background: var(--warning); color: var(--text-inv); }
.clan-top-row.rank-2 .clan-top-place { background: #94a3b8; color: var(--text-inv); }
.clan-top-row.rank-3 .clan-top-place { background: #ea580c; color: #fff; }
.clan-top-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.clan-top-avatar img { width: 100%; height: 100%; object-fit: cover; }
.clan-top-status { font-size: 9px; padding: 1px 6px; border-radius: var(--r-xs); font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
.clan-top-status.open { background: var(--success-soft); color: var(--success); }
.clan-top-status.closed { background: var(--danger-soft); color: #fca5a5; }

/* =========================================================
   КВЕСТЫ
   ========================================================= */
.quest-hero { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.quest-streak-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--warning-line);
  border-radius: var(--r-md);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.streak-flame { font-size: 26px; }
.streak-count {
  font-size: 20px;
  font-weight: 600;
  color: var(--warning);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.streak-label {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 2px;
}
.streak-desc { font-size: 11.5px; color: var(--text-2); }

.quest-reward-summary {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 6px;
}
.qrs-item { display: flex; gap: 6px; font-size: 11.5px; }
.qrs-item .k { color: var(--text-3); font-weight: 500; }
.qrs-item .v { color: var(--success); font-weight: 500; font-variant-numeric: tabular-nums; }

.qs-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  margin-bottom: 8px;
  transition: border-color .15s;
  position: relative;
  overflow: hidden;
}
.qs-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--rarity-color, var(--border));
}
.qs-card.ready { border-color: var(--success-line); background: var(--bg-2); }
.qs-card.claimed { opacity: 0.5; }
.qs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.qs-title-block { flex: 1; min-width: 0; }
.qs-title { font-size: 13px; font-weight: 500; color: var(--text-1); margin-bottom: 4px; }
.qs-meta { display: flex; gap: 4px; flex-wrap: wrap; }
.qs-status { font-size: 11px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qs-progress { height: 5px; background: var(--bg-3); border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.qs-progress > i { display: block; height: 100%; border-radius: 3px; }
.qs-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.qs-reward { font-size: 11px; color: var(--text-3); }
.qs-reward b { color: var(--success); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.qs-actions { display: flex; gap: 5px; flex-wrap: wrap; }

.qh-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.qh-stat {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.qh-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--qh-accent, var(--accent));
}
.qh-stat.today { --qh-accent: var(--success); }
.qh-stat.week  { --qh-accent: var(--info); }
.qh-stat.total { --qh-accent: var(--warning); }
.qh-stat .k {
  font-size: 9.5px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 3px;
}
.qh-stat .v {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.qh-stat .sub { font-size: 10px; color: var(--text-3); margin-top: 1px; font-variant-numeric: tabular-nums; }
.qh-stat .v.green { color: var(--success); }
.qh-stat .v.blue  { color: var(--info); }
.qh-stat .v.gold  { color: var(--warning); }

.qh-filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.qh-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-2);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background .1s, border-color .1s, color .1s;
}
.qh-filter:hover { background: var(--bg-3); color: var(--text-1); border-color: var(--border-strong); }
.qh-filter.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--text-1); }
.qh-filter .cnt {
  font-size: 9.5px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--bg-3);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.qh-filter.active .cnt { background: var(--accent-soft); color: var(--accent); }

.qh-group { margin-bottom: 14px; }
.qh-group:last-child { margin-bottom: 0; }
.qh-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0 8px;
  margin-bottom: 6px;
  border-bottom: 1px dashed var(--border);
  flex-wrap: wrap;
}
.qh-group-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.qh-group-sum {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.qh-group-sum b { color: var(--success); }
.qh-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  margin-bottom: 4px;
  transition: border-color .1s;
}
.qh-item:hover { border-color: var(--border-strong); }
.qh-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  position: relative;
}
.qh-item-body { flex: 1; min-width: 0; }
.qh-item-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qh-item-meta { font-size: 10px; color: var(--text-3); display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.qh-item-reward { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; gap: 1px; }
.qh-item-money {
  font-size: 12px;
  font-weight: 500;
  color: var(--success);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.qh-item-exp {
  font-size: 10px;
  font-weight: 500;
  color: var(--info);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.qh-item-time {
  font-size: 9.5px;
  color: var(--text-3);
  white-space: nowrap;
  text-align: right;
  min-width: 46px;
  font-variant-numeric: tabular-nums;
}
.qh-empty {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-2);
  border: 1px dashed var(--border);
  border-radius: var(--r-sm);
  color: var(--text-3);
  font-size: 12px;
}
.qh-empty-icon { font-size: 36px; opacity: 0.4; margin-bottom: 6px; }

.quest-reset-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: var(--success-soft);
  border: 1px solid var(--success-line);
  border-radius: var(--r-sm);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-2);
}
.quest-reset-notice .ic { font-size: 18px; flex-shrink: 0; }

/* =========================================================
   НАСТРОЙКИ
   ========================================================= */
.st-page { display: flex; flex-direction: column; gap: 10px; }
.st-panel {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
}
.st-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.st-title {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.st-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  flex-wrap: wrap;
}
.st-toggle-row + .st-toggle-row { margin-top: 6px; }
.st-toggle-body { flex: 1; min-width: 200px; }
.st-toggle-name { font-size: 12px; font-weight: 500; color: var(--text-1); margin-bottom: 3px; display: flex; align-items: center; gap: 5px; }
.st-toggle-desc { font-size: 11px; color: var(--text-3); line-height: 1.5; }
.st-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; cursor: pointer; }
.st-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.st-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-3);
  border-radius: 22px;
  transition: background .18s;
  border: 1px solid var(--border-strong);
}
.st-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 2px; top: 2px;
  background: var(--text-2);
  border-radius: 50%;
  transition: transform .18s, background .18s;
}
.st-switch input:checked + .st-slider { background: var(--accent); border-color: var(--accent); }
.st-switch input:checked + .st-slider::before { transform: translateX(18px); background: #fff; }
.st-switch input:focus-visible + .st-slider { outline: 2px solid var(--accent); outline-offset: 2px; }

.st-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 11.5px;
  font-weight: 500;
  margin-bottom: 10px;
}
.st-status.public  { background: var(--success-soft); border: 1px solid var(--success-line); color: var(--success); }
.st-status.private { background: var(--accent-soft);  border: 1px solid var(--accent-line);  color: var(--accent); }

.st-preview {
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  gap: 10px;
  align-items: center;
}
.st-preview-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-2);
  flex-shrink: 0;
  overflow: hidden;
}
.st-preview-avatar img { width: 100%; height: 100%; object-fit: cover; }
.st-preview-body { flex: 1; min-width: 0; }
.st-preview-name { font-size: 12.5px; font-weight: 500; color: var(--text-1); margin-bottom: 2px; }
.st-preview-meta { font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.st-preview-hidden { color: var(--text-3); font-style: italic; }
.st-btn {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  color: var(--text-1);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .1s, border-color .1s;
}
.st-btn:hover { background: var(--bg-3); border-color: var(--border-accent); }
.st-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.st-btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* =========================================================
   ТАЛАНТЫ
   ========================================================= */
.skill-hero {
  background: var(--bg-1);
  border-color: var(--border);
  margin-bottom: 14px;
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}
.skill-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 2px solid var(--skill-color);
  border-radius: var(--r-sm);
  padding: 14px;
  position: relative;
  transition: border-color .15s;
}
.skill-card:hover { border-color: var(--border-strong); }
.skill-card.maxed {
  background: var(--bg-2);
  border-left-color: var(--warning);
}
.skill-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.skill-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.skill-body { flex: 1; min-width: 0; }
.skill-title { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 3px; flex-wrap: wrap; }
.skill-name { font-size: 13px; font-weight: 500; color: var(--text-1); }
.skill-lvl-badge { font-size: 10px; font-weight: 500; padding: 1px 7px; border-radius: var(--r-xs); font-variant-numeric: tabular-nums; }
.skill-desc { font-size: 11px; color: var(--text-3); line-height: 1.4; }
.skill-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 10.5px;
}
.skill-stat { text-align: center; padding: 5px; background: var(--bg-1); border-radius: var(--r-xs); }
.skill-stat .k { color: var(--text-3); font-size: 9px; text-transform: uppercase; font-weight: 500; margin-bottom: 1px; }
.skill-stat .v { color: var(--text-1); font-weight: 500; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.skill-stat .v.next { color: var(--success); }
.skill-actions { display: flex; gap: 5px; margin-top: 10px; flex-wrap: wrap; }
.skill-actions form { margin: 0; flex: 1; min-width: 90px; }

.combo-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.combo-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-xs);
  font-size: 10.5px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.combo-chip.active {
  color: var(--chip-color);
  background: var(--bg-2);
  border-color: var(--chip-color);
}
.combo-chip.locked { color: var(--text-3); opacity: 0.5; }

/* =========================================================
   ОБНОВЛЕНИЯ
   ========================================================= */
.upd-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
}
.upd-hero-inner { position: relative; z-index: 1; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.upd-hero-icon {
  width: 72px; height: 72px;
  border-radius: var(--r-md);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  flex-shrink: 0;
}
.upd-hero-info { flex: 1; min-width: 220px; }
.upd-hero-title { font-size: 22px; font-weight: 600; color: var(--text-1); margin: 0 0 4px; letter-spacing: -0.02em; line-height: 1.15; }
.upd-hero-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.5; margin-bottom: 12px; max-width: 620px; }
.upd-hero-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.upd-hero-stat .k {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 2px;
}
.upd-hero-stat .v {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.upd-hero-stat .v.accent { color: var(--success); }
.upd-hero-stat .v.blue   { color: var(--info); }
.upd-hero-stat .v.gold   { color: var(--warning); }

.upd-filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.upd-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-2);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background .1s, border-color .1s, color .1s;
}
.upd-filter:hover { background: var(--bg-3); color: var(--text-1); }
.upd-filter.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--text-1); }
.upd-filter .cnt {
  font-size: 9.5px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--bg-3);
  font-weight: 500;
  min-width: 16px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.upd-filter.active .cnt { background: var(--accent-soft); color: var(--accent); }

.upd-feed { position: relative; padding-left: 36px; }
.upd-feed::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border);
}
.upd-item { position: relative; margin-bottom: 14px; }
.upd-dot {
  position: absolute;
  left: -36px;
  top: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 1px solid var(--dot-color, var(--border-strong));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 2;
}
.upd-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  transition: border-color .12s;
  position: relative;
  overflow: hidden;
}
.upd-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--dot-color, var(--border));
}
.upd-card:hover { border-color: var(--border-strong); }
.upd-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.upd-card-title-wrap { flex: 1; min-width: 0; }
.upd-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin: 0 0 5px;
  word-break: break-word;
}
.upd-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 10.5px;
  color: var(--text-3);
}
.upd-type-badge { white-space: nowrap; }
.upd-ago {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-3);
  font-weight: 500;
}
.upd-ago svg { opacity: 0.6; }
.upd-content {
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-2);
  word-break: break-word;
  position: relative;
}
.upd-content.is-collapsed {
  max-height: 90px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.upd-content p { margin: 0 0 5px; }
.upd-content p:last-child { margin-bottom: 0; }
.upd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 8px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  color: var(--info);
  font: inherit;
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .1s, border-color .1s;
}
.upd-toggle:hover { background: var(--info-soft); border-color: var(--info-line); }
.upd-version {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-3);
  font-weight: 500;
  padding: 1px 6px;
  background: var(--bg-2);
  border-radius: var(--r-xs);
  letter-spacing: 0.02em;
}
.upd-empty {
  text-align: center;
  padding: 44px 16px;
  background: var(--bg-1);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
}
.upd-empty-icon { font-size: 44px; opacity: 0.35; margin-bottom: 10px; }
.upd-empty h2 { font-size: 15px; color: var(--text-1); margin-bottom: 5px; font-weight: 500; }
.upd-empty p { color: var(--text-3); font-size: 12px; max-width: 400px; margin: 0 auto; }
.upd-item.is-hidden { display: none; }

/* =========================================================
   ДОСТИЖЕНИЯ
   ========================================================= */
.ach-hero {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--r-lg);
  margin-bottom: 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
}
.ach-hero-inner { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; position: relative; z-index: 1; }
.ach-hero-badge {
  width: 60px; height: 60px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}
.ach-hero-title { font-size: 18px; font-weight: 600; color: var(--text-1); margin: 0; letter-spacing: -0.015em; }
.ach-hero-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.ach-hero-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.ach-hero-stat { text-align: center; }
.ach-hero-stat .k { font-size: 9.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.ach-hero-stat .v { font-size: 18px; font-weight: 600; color: var(--text-1); line-height: 1.1; margin-top: 2px; font-variant-numeric: tabular-nums; }

.ach-filters { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 16px; }
.ach-filter {
  padding: 6px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-2);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .1s, border-color .1s, color .1s;
}
.ach-filter:hover { background: var(--bg-3); color: var(--text-1); }
.ach-filter.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--text-1); }
.ach-filter .cnt {
  font-size: 9.5px;
  padding: 0 5px;
  background: var(--bg-3);
  border-radius: 999px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.ach-filter.active .cnt { background: var(--accent-soft); color: var(--accent); }

.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.ach-card {
  position: relative;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .12s;
  overflow: hidden;
}
.ach-card:hover { border-color: var(--border-strong); }
.ach-card.is-done { background: var(--bg-2); border-color: var(--success-line); }
.ach-card.is-locked .ach-icon { filter: grayscale(1); opacity: 0.55; }
.ach-icon {
  font-size: 24px;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-xs);
  background: var(--bg-1);
  flex-shrink: 0;
  line-height: 1;
}
.ach-top { display: flex; align-items: flex-start; gap: 8px; }
.ach-info { flex: 1; min-width: 0; }
.ach-name { font-size: 12.5px; font-weight: 500; color: var(--text-1); margin-bottom: 2px; line-height: 1.2; }
.ach-card.is-locked .ach-name { color: var(--text-2); }
.ach-desc { font-size: 10.5px; color: var(--text-3); line-height: 1.4; }
.ach-badges { display: flex; gap: 3px; flex-wrap: wrap; }
.ach-progress-wrap { margin-top: 2px; }
.ach-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 3px;
  font-variant-numeric: tabular-nums;
}
.ach-progress {
  height: 5px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.ach-progress > i { display: block; height: 100%; border-radius: 3px; transition: width .35s ease; }

.ach-group-section { margin-bottom: 22px; }
.ach-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.ach-group-title { font-size: 13px; font-weight: 600; color: var(--text-1); letter-spacing: -0.015em; }
.ach-group-count { font-size: 11px; color: var(--text-3); font-weight: 500; margin-left: auto; font-variant-numeric: tabular-nums; }

/* =========================================================
   БАГ-ТРЕКЕР
   ========================================================= */
.bt-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  text-decoration: none;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 500;
  margin-bottom: 12px;
  transition: background .1s, color .1s;
}
.bt-back:hover { background: var(--bg-3); color: var(--text-1); }

.bt-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
}
.bt-hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bt-hero-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--bg-2);
  border: 1px solid var(--danger-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.bt-hero-info { flex: 1; min-width: 220px; }
.bt-hero-title { font-size: 20px; font-weight: 600; color: var(--text-1); letter-spacing: -0.02em; margin: 0 0 4px; }
.bt-hero-desc { font-size: 12px; color: var(--text-3); line-height: 1.5; max-width: 560px; }
.bt-hero-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.bt-hs { text-align: center; }
.bt-hs .k { font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); font-weight: 500; margin-bottom: 2px; }
.bt-hs .v { font-size: 18px; font-weight: 600; color: var(--text-1); line-height: 1; font-variant-numeric: tabular-nums; }
.bt-hs .v.b { color: var(--info); }
.bt-hs .v.o { color: var(--warning); }
.bt-hs .v.g { color: var(--success); }

.bt-filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.bt-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-2);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .1s, border-color .1s, color .1s;
}
.bt-filter:hover { background: var(--bg-3); color: var(--text-1); }
.bt-filter.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--text-1); }
.bt-filter .cnt {
  background: var(--bg-3);
  padding: 0 5px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 500;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.bt-filter.active .cnt { background: var(--accent-soft); color: var(--accent); }

.bt-filter-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--text-3);
  align-items: center;
}
.bt-filter-row span { font-weight: 500; }
.bt-filter-mini {
  padding: 3px 9px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .1s, color .1s;
}
.bt-filter-mini:hover { background: var(--bg-2); color: var(--text-1); }
.bt-filter-mini.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--text-1); }

.bt-list { display: flex; flex-direction: column; gap: 6px; }
.bt-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: border-color .12s, background .12s;
  position: relative;
  overflow: hidden;
}
.bt-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--item-color, var(--info));
}
.bt-item:hover { border-color: var(--border-strong); background: var(--bg-2); }
.bt-item-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: var(--item-bg, var(--info-soft));
}
.bt-item-body { flex: 1; min-width: 0; }
.bt-item-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  margin: 0 0 4px;
  line-height: 1.3;
  word-break: break-word;
}
.bt-item-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 10.5px;
  color: var(--text-3);
  align-items: center;
}
.bt-item-meta > span { display: inline-flex; align-items: center; gap: 2px; }
.bt-item-badges { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 6px; }
.bt-item-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  flex-shrink: 0;
  text-align: right;
}
.bt-item-vote {
  font-size: 11px;
  font-weight: 500;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}
.bt-item-comments {
  font-size: 10.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}

.bt-empty {
  text-align: center;
  padding: 44px 16px;
  background: var(--bg-1);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
}
.bt-empty-icon { font-size: 48px; opacity: 0.35; margin-bottom: 10px; }
.bt-empty h2 { font-size: 16px; color: var(--text-1); margin: 0 0 5px; font-weight: 500; }
.bt-empty p { font-size: 12px; color: var(--text-3); max-width: 400px; margin: 0 auto 16px; }

.bt-pagination { display: flex; gap: 5px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.bt-page {
  padding: 6px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background .1s, color .1s;
  font-variant-numeric: tabular-nums;
}
.bt-page:hover { background: var(--bg-3); color: var(--text-1); }
.bt-page.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

.bt-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 11.5px;
  border: 1px solid var(--accent);
  cursor: pointer;
  font-family: inherit;
  transition: background .1s;
}
.bt-create-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* Детальный просмотр бага */
.bt-detail-head {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.bt-detail-head::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--danger), var(--info));
}
.bt-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.bt-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.25;
  word-break: break-word;
}
.bt-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-3);
  align-items: center;
}
.bt-meta span { display: inline-flex; align-items: center; gap: 3px; }
.bt-meta a { color: var(--info); text-decoration: none; }
.bt-meta a:hover { text-decoration: underline; }
.bt-body {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
  word-break: break-word;
  white-space: pre-wrap;
}
.bt-admin-note {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 1.55;
}
.bt-admin-note .lbl {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 4px;
}
.bt-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.bt-vote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-weight: 500;
  background: var(--success-soft);
  border: 1px solid var(--success-line);
  color: var(--success);
  cursor: pointer;
  font-family: inherit;
  font-size: 11.5px;
  transition: background .12s;
}
.bt-vote:hover:not(:disabled) { background: rgba(34, 197, 94, 0.18); }
.bt-vote:disabled { opacity: 0.6; cursor: not-allowed; }
.bt-vote.voted { background: rgba(34, 197, 94, 0.18); color: var(--success); }
.bt-vote .cnt {
  background: rgba(0,0,0,0.18);
  padding: 1px 6px;
  border-radius: var(--r-xs);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.bt-admin-panel {
  background: var(--bg-2);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 16px;
}
.bt-admin-panel .ttl {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 10px;
}
.bt-admin-form { display: flex; flex-direction: column; gap: 8px; }
.bt-admin-form select, .bt-admin-form textarea {
  padding: 8px 10px;
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-size: 12px;
  font-family: inherit;
}
.bt-admin-form textarea { min-height: 60px; resize: vertical; }
.bt-admin-form .row { display: flex; gap: 6px; }
.bt-comments-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 6px; }
.bt-comments-title { font-size: 13px; font-weight: 600; color: var(--text-1); }
.bt-comments-count {
  font-size: 11px;
  color: var(--text-3);
  background: var(--bg-2);
  padding: 2px 8px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.bt-comment {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 6px;
}
.bt-comment.is-admin { background: var(--accent-soft); border-color: var(--accent-line); }
.bt-comment-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-2);
  font-size: 12px;
  flex-shrink: 0;
}
.bt-comment.is-admin .bt-comment-avatar { background: var(--accent); color: #fff; }
.bt-comment-body { flex: 1; min-width: 0; }
.bt-comment-head { display: flex; gap: 6px; align-items: center; margin-bottom: 3px; flex-wrap: wrap; }
.bt-comment-name { font-weight: 500; color: var(--text-1); font-size: 12px; }
.bt-comment-admin-tag {
  font-size: 9px;
  font-weight: 500;
  padding: 1px 5px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--r-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bt-comment-time { font-size: 10px; color: var(--text-3); margin-left: auto; font-variant-numeric: tabular-nums; }
.bt-comment-text { font-size: 12px; line-height: 1.6; color: var(--text-2); word-break: break-word; white-space: pre-wrap; }
.bt-comment-form {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  margin-top: 12px;
}
.bt-comment-form textarea {
  width: 100%;
  min-height: 70px;
  resize: vertical;
  padding: 10px 12px;
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.5;
}
.bt-comment-form textarea:focus { outline: none; border-color: var(--accent); }

/* BT modal */
.bt-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.bt-modal.open { display: flex; }
.bt-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.bt-modal-box {
  position: relative;
  z-index: 1;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  max-width: 540px;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: translateY(8px) scale(0.98);
  transition: transform .18s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.bt-modal.open .bt-modal-box { transform: translateY(0) scale(1); }
.bt-modal-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bt-modal-title { font-size: 14px; font-weight: 600; color: var(--text-1); margin: 0; }
.bt-modal-close {
  width: 24px; height: 24px;
  border-radius: var(--r-xs);
  background: transparent;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .1s;
}
.bt-modal-close:hover { background: var(--bg-2); color: var(--text-1); }
.bt-modal-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.bt-field label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: 5px;
}
.bt-field input, .bt-field textarea, .bt-field select {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-size: 12.5px;
  font-family: inherit;
  line-height: 1.5;
}
.bt-field input:focus, .bt-field textarea:focus, .bt-field select:focus {
  outline: none;
  border-color: var(--accent);
}
.bt-field textarea { min-height: 100px; resize: vertical; }
.bt-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bt-modal-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

/* =========================================================
   FUN GAMES
   ========================================================= */
.page-fun { display: flex; flex-direction: column; gap: 16px; max-width: 1100px; margin: 0 auto; }
.fun-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 24px;
  background: var(--bg-1);
  border: 1px solid var(--border);
}
.fun-hero-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.hero-text h1 { font-size: 26px; font-weight: 700; color: var(--text-1); margin: 0 0 6px; letter-spacing: -0.02em; }
.hero-text p { font-size: 13px; color: var(--text-2); margin: 0; max-width: 420px; line-height: 1.6; }
.hero-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-stat { text-align: right; }
.hero-stat .k { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 500; margin-bottom: 3px; }
.hero-stat .v { font-size: 19px; font-weight: 600; color: var(--text-1); line-height: 1; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.hero-stat .v.money { color: var(--success); }
.hero-stat .v.gold  { color: var(--warning); }
.hero-stat .v.blue  { color: var(--info); }

.fun-games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.game-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color .15s;
}
.game-card:hover { border-color: var(--border-strong); }
.game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}
.game-card.wheel   { --accent: var(--accent); }
.game-card.fish    { --accent: var(--info); }
.game-card.lottery { --accent: var(--warning); }
.game-icon { font-size: 42px; text-align: center; margin-bottom: 14px; line-height: 1; }
.game-title { font-size: 17px; font-weight: 600; color: var(--text-1); margin-bottom: 6px; text-align: center; letter-spacing: -0.01em; }
.game-desc { font-size: 12px; color: var(--text-2); line-height: 1.6; text-align: center; margin-bottom: 16px; flex: 1; }
.game-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  background: var(--bg-2);
  border-radius: var(--r-sm);
  padding: 10px;
  border: 1px solid var(--border);
}
.game-stat { text-align: center; }
.game-stat .k { font-size: 8.5px; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 3px; }
.game-stat .v { font-size: 12px; font-weight: 500; color: var(--text-1); font-variant-numeric: tabular-nums; }

.wheel-wrapper { position: relative; width: 180px; height: 180px; margin: 0 auto 16px; }
.wheel-svg {
  width: 100%;
  height: 100%;
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--border-strong), 0 8px 20px rgba(0,0,0,0.5);
}
.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  z-index: 10;
  color: var(--text-1);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}
.energy-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 12px;
  font-weight: 500;
}
.energy-bar-wrap strong { color: var(--info); font-variant-numeric: tabular-nums; }

.game-btn {
  width: 100%;
  height: 42px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  color: #fff;
  font-family: inherit;
}
.game-btn:disabled { opacity: 0.4; cursor: not-allowed; filter: grayscale(0.5); }
.game-btn.purple { background: var(--accent); border-color: var(--accent); }
.game-btn.purple:hover:not(:disabled) { background: var(--accent-hover); }
.game-btn.blue { background: var(--info); border-color: var(--info); }
.game-btn.blue:hover:not(:disabled) { background: #2f6fdb; }
.game-btn.gold { background: var(--warning); border-color: var(--warning); color: var(--text-inv); font-weight: 600; }
.game-btn.gold:hover:not(:disabled) { background: #f0c020; }

.game-result {
  margin-top: 12px;
  padding: 10px;
  border-radius: var(--r-sm);
  text-align: center;
  font-weight: 500;
  font-size: 12px;
  display: none;
}
.game-result.win  { background: var(--success-soft); border: 1px solid var(--success-line); color: var(--success); display: block; }
.game-result.lose { background: var(--danger-soft);  border: 1px solid var(--danger-line);  color: #fca5a5; display: block; }

.ticket-visual {
  background: var(--bg-2);
  border: 1px dashed var(--warning);
  border-radius: var(--r-sm);
  padding: 14px;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
}
.ticket-text { font-size: 15px; font-weight: 600; color: var(--warning); letter-spacing: 2px; }

.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.details-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
}
.details-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.prizes-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.prizes-table td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.prizes-table tr:last-child td { border-bottom: none; }
.prizes-table td.name { color: var(--text-2); }
.prizes-table td.chance { text-align: right; font-weight: 500; color: var(--warning); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.prizes-table td .dim { color: var(--text-3); font-size: 10px; margin-left: 3px; font-weight: 400; }
.live-feed { display: flex; flex-direction: column; gap: 6px; max-height: 380px; overflow-y: auto; }
.live-feed::-webkit-scrollbar { width: 3px; }
.live-feed::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.top-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-2);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  font-size: 12px;
  margin-bottom: 6px;
}
.top-player .rank {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 10.5px;
  background: var(--bg-3);
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.top-player.rank-1 .rank { background: var(--warning); color: var(--text-inv); }
.top-player.rank-2 .rank { background: #94a3b8; color: var(--text-inv); }
.top-player.rank-3 .rank { background: #ea580c; color: #fff; }
.top-player .name { flex: 1; font-weight: 500; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-player .earned { color: var(--success); font-weight: 500; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .enot-dash { grid-template-columns: 1fr; }
  .ds-hero { grid-template-columns: 1fr; min-height: 0; }
  .ds-hero-visual { position: relative; width: 100%; min-height: 220px; height: 220px; border-left: none; border-top: 1px solid var(--border); }
  .guest-hero { grid-template-columns: 1fr; min-height: 0; }
  .guest-hero-visual { min-height: 280px; padding: 0 20px 20px; }
  .guest-hero-scene { max-width: 340px; }
  .guest-hero-info { padding: 28px 22px; }
  .guest-title { font-size: 30px; }
  .guest-features { grid-template-columns: repeat(2, 1fr); }
  .guest-stats { grid-template-columns: repeat(2, 1fr); }
  .guest-steps { grid-template-columns: 1fr; }
  .biz-layout { grid-template-columns: 1fr; }
  .casino-layout { grid-template-columns: 1fr; }
  .clan-layout { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .ds-metrics { grid-template-columns: repeat(2, 1fr); }
  .ds-metric { padding: 10px 12px; }
  .ds-hero-avatar { width: 60px; height: 60px; font-size: 22px; }
  .ds-hero-name { font-size: 16px; }
  .ds-play-btn { padding: 9px 14px; font-size: 11.5px; }
  .ds-hero-btn-mini { padding: 8px 10px; font-size: 10.5px; }
  .ds-assets { grid-template-columns: 1fr; }
  .ds-hero-visual { min-height: 190px; height: 190px; }
  .clan-hero-metrics { grid-template-columns: repeat(3, 1fr); }
  .guest-hero-info { padding: 22px 16px; gap: 14px; }
  .guest-hero-visual { min-height: 220px; padding: 0 14px 14px; }
  .guest-title { font-size: 24px; }
  .guest-subtitle { font-size: 12px; }
  .guest-features, .guest-stats { grid-template-columns: 1fr; }
  .guest-feature, .guest-stat-box { padding: 12px; }
  .guest-btn-big, .guest-btn-ghost { flex: 1; justify-content: center; padding: 10px 16px; font-size: 11px; }
  .guest-cta { padding: 24px 14px; }
  .guest-cta-title { font-size: 17px; }
  .guest-top-row { grid-template-columns: 26px 1fr auto; gap: 6px; }
  .guest-top-lvl { display: none; }
  .garage-stats { grid-template-columns: repeat(2, 1fr); }
  .car-scene { aspect-ratio: auto; min-height: 240px; }
  .car-vin-panel { min-width: 90%; padding: 6px 0; }
  .car-vin-cell { padding: 0 6px; }
  .car-vin-cell .v { font-size: 10px; }
  .car-vin-cell .k { font-size: 7px; }
  .casino-hero { gap: 12px; padding: 16px; }
  .hero-text h1 { font-size: 20px; }
  .hero-text p { font-size: 12px; }
  .hero-balance { width: 100%; text-align: left; padding: 12px 14px; }
  .hero-balance .v { font-size: 19px; }
  .casino-main { padding: 12px; }
  .casino-tabs { margin: 0 -12px 12px; padding: 4px 12px; border-radius: 0; border-left: none; border-right: none; }
  .casino-tab { flex: 0 0 auto; min-width: 76px; padding: 8px 6px; font-size: 10.5px; }
  .casino-tab .tab-icon { font-size: 16px; margin-bottom: 3px; }
  .bet-section { padding: 10px; }
  .bet-input { font-size: 18px; padding: 10px; }
  .qb { padding: 8px 10px; font-size: 11px; }
  .slots-machine { padding: 10px; }
  .slots-display { gap: 6px; padding: 10px; }
  .slot-reel { --reel-h: 76px; width: 62px; font-size: 36px; }
  .casino-submit { padding: 11px; font-size: 12px; }
  .casino-toast {
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 12px; right: 12px;
    transform: translateY(-120px);
    max-width: none;
    padding: 12px 14px;
  }
  .casino-toast.show { transform: translateY(0); }
  .toast-text { font-size: 13px; }
  .biz-mine-card { padding: 12px; gap: 12px; }
  .biz-mine-media { flex: 0 0 100%; padding: 12px; }
  .biz-mine-media > img { height: 140px; }
  .biz-mine-info { min-width: 0; width: 100%; }
  .biz-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .biz-actions { flex-direction: column; }
  .biz-actions > form, .biz-actions > button, .biz-actions > a { width: 100%; }
  .fun-hero-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-stats { flex-direction: column; gap: 10px; text-align: left; width: 100%; }
  .hero-stat { text-align: left; }
  .upd-hero-inner { flex-direction: column; align-items: flex-start; }
  .upd-hero-stats { width: 100%; justify-content: space-between; }
  .clan-hero { padding: 14px; }
  .clan-avatar-big { width: 80px; height: 80px; }
  .clan-avatar-big .placeholder { font-size: 40px; }
  .clan-name-big { font-size: 20px; }
  .clan-podium { grid-template-columns: 1fr; }
  .clan-podium-item.rank-1 { order: -1; }
  .clan-card { padding: 12px; }
  .clan-upgrade-diff { grid-template-columns: 1fr; }
  .clan-deposit-form { flex-direction: column; }
  .clan-deposit-form input { min-width: 0; }
  .clan-deposit-form button { width: 100%; }
  .clan-top-row { padding: 8px 10px; gap: 6px; }
  .clan-top-avatar { width: 30px; height: 30px; }
  .clan-mgmt-grid { grid-template-columns: 1fr; }
  .ach-hero-badge { width: 52px; height: 52px; font-size: 24px; }
  .ach-hero-title { font-size: 16px; }
  .skill-grid { grid-template-columns: 1fr; }
  .upd-feed { padding-left: 28px; }
  .upd-feed::before { left: 11px; }
  .upd-dot { left: -28px; width: 24px; height: 24px; font-size: 11px; top: 12px; }
  .upd-card { padding: 12px 14px; }
  .upd-card-title { font-size: 13px; }
  .bt-title { font-size: 17px; }
  .bt-detail-head { padding: 14px; }
  .bt-comment { padding: 10px; }
  .bt-hero { padding: 16px; }
  .bt-hero-icon { width: 44px; height: 44px; font-size: 20px; }
  .bt-hero-title { font-size: 17px; }
  .bt-item { padding: 10px; gap: 8px; }
  .bt-item-icon { width: 32px; height: 32px; font-size: 15px; }
  .bt-item-title { font-size: 12px; }
  .bt-field-row { grid-template-columns: 1fr; }
  .bt-item-stats { display: none; }
  .qh-stats { grid-template-columns: repeat(2, 1fr); }
  .qh-item-time { display: none; }
}
@media (max-width: 640px) {
  .quest-hero { gap: 10px; }
  .qs-footer { flex-direction: column; align-items: stretch; }
  .qs-actions { justify-content: stretch; }
  .qs-actions button, .qs-actions a { flex: 1; }
  .qh-item-icon { width: 28px; height: 28px; font-size: 14px; }
  .qh-item { padding: 7px 8px; gap: 8px; }
  .qh-item-name { font-size: 11.5px; }
  .qh-item-money { font-size: 11px; }
  .ach-grid { grid-template-columns: 1fr; }
  .ach-hero-stats { gap: 14px; }
  .ds-hero-info { padding: 14px; }
  .ds-hero-actions { gap: 5px; }
  .ds-play-btn { padding: 9px 12px; font-size: 11px; flex: 1; justify-content: center; }
  .ds-hero-btn-mini { padding: 8px 10px; font-size: 10px; flex: 1; justify-content: center; }
  .ds-hero-actions form { flex: 1; }
  .ds-hero-actions form button { width: 100%; }
  .ds-metric { padding: 8px 10px; gap: 8px; }
  .ds-metric-icon { width: 28px; height: 28px; font-size: 13px; }
  .ds-metric-v { font-size: 12.5px; }
  .ds-panel { padding: 12px; }
  .ds-inv-cell { width: 32px; height: 32px; }
  .biz-mine-card { padding: 10px; }
  .biz-mine-media { padding: 10px; }
  .biz-mine-media > img { height: 120px; }
  .game-card { padding: 16px 12px; }
  .game-icon { font-size: 34px; margin-bottom: 10px; }
  .game-title { font-size: 15px; }
  .game-stats { padding: 8px; }
  .wheel-wrapper { width: 160px; height: 160px; }
  .details-card { padding: 12px; }
  .top-player { padding: 7px 10px; }
}
@media (max-width: 480px) {
  .casino-tab { min-width: 68px; padding: 7px 4px; font-size: 10px; }
  .casino-tab .tab-icon { font-size: 14px; }
  .slot-reel { --reel-h: 68px; width: 56px; font-size: 32px; }
  .slots-display { gap: 4px; padding: 8px; }
  .bet-input { font-size: 16px; }
  .casino-submit { font-size: 11.5px; padding: 10px; }
  .choice-btn { padding: 12px 8px; min-height: 74px; }
  .cb-icon { font-size: 24px; }
  .cb-label { font-size: 11.5px; }
  .coin-icon { width: 34px; height: 34px; }
  .dice-icon { font-size: 20px; }
  .roulette-icon { font-size: 24px; }
  .garage-stats { grid-template-columns: 1fr; }
  .clan-hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .guest-title { font-size: 22px; }
  .guest-hero-raccoon { font-size: 40px; }
  .upd-hero-icon { width: 44px; height: 44px; font-size: 20px; }
  .upd-hero-title { font-size: 17px; }
  .upd-hero-stat .v { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .slot-reel.spinning .reel-strip { animation-duration: 0.2s; }
  .casino-game { animation: none; }
  .live-item { animation: none; }
  .casino-toast { transition: opacity .15s, transform .15s; }
  .choice-btn:hover { transform: none; }
  .casino-submit:hover:not(:disabled) { transform: none; }
  .ds-progress-bar > i { transition: none; }
  .ach-progress > i { transition: none; }
}