/* ════════════════════════════════════════════════════════════════════════
   АНАРХИЯ · тема «НОЧЬ» — базовый дизайн сайта, когда ивент выключен.

   Подключается сервером (web.py) ТОЛЬКО если хэллоуин-ивент выключен:
   идёт после anarchy.css / site-extras.css / news.css и перекрывает их.
   Пока ивент включён — этот файл в браузер вообще не приезжает.

   Принципы, чтобы не выглядело как «сгенерировали нейросети»:
   • никаких радужных градиентов, свечения и стеклянных блобов;
   • чёрная бумага + волосяные линии, крупная типографика, много воздуха;
   • один акцент — огонь (--ember), и только там, где он что-то значит;
   • цифры — табличные, подписи — капсом с разрядкой;
   • движение короткое и по делу (появление, нажатие), без «дыхания» вечно.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --ink: #08080a;
  --ink-2: #0e0e11;
  --ink-3: #141418;
  --ink-4: #1b1b20;

  --bone: #f4f1ec;
  --stone: #9b9892;
  --stone-2: #6d6a66;

  --hair: rgba(244, 241, 236, 0.10);
  --hair-2: rgba(244, 241, 236, 0.18);

  --ember: #ff5b2e;
  --ember-dim: rgba(255, 91, 46, 0.14);

  /* переменные старой темы: их используют site-extras.css и news.css,
     поэтому просто переопределяем — и всё наследуется в новой палитре */
  --bg: var(--ink);
  --bg-soft: var(--ink-2);
  --panel: rgba(244, 241, 236, 0.035);
  --panel-strong: rgba(244, 241, 236, 0.055);
  --panel-hover: rgba(244, 241, 236, 0.08);
  --line: var(--hair);
  --line-red: rgba(255, 91, 46, 0.22);
  --text: var(--bone);
  --text-dim: #d3cfc8;
  --muted: var(--stone);
  --red: var(--ember);
  --red-2: #ff8a5b;
  --red-deep: #c23a12;
  --red-grad: linear-gradient(180deg, #f7f4ee, #ded9d1);
  --red-grad-soft: linear-gradient(180deg, #f7f4ee, #ded9d1);
  --gold: #e8c07a;
  --ok: #56c98d;
  --danger: #ff6a5d;
  --radius-lg: 16px;
  --radius-md: 13px;
  --radius-sm: 10px;
  --shadow-card: none;
  --shadow-red: none;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Helvetica Neue', 'Arial Narrow', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--bone);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  /* чёрная бумага: одна тёплая подсветка сверху + мелкое зерно */
  background:
    radial-gradient(720px 380px at 50% -14%, rgba(255, 120, 60, 0.10), transparent 66%),
    radial-gradient(900px 600px at 50% 108%, rgba(255, 90, 30, 0.045), transparent 62%),
    var(--ink);
  background-attachment: fixed;
}

/* едва заметная сетка точек + мягкий вырез — фон перестаёт быть «просто чёрным» */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(244, 241, 236, 0.06) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(125% 85% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(125% 85% at 50% 0%, #000 0%, transparent 72%);
}

/* зерно поверх фона — убивает «пластиковую» гладкость градиента */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

/* «тяжёлый» слой старой темы больше не нужен */
.liquid-home::before { display: none !important; content: none !important; }
.liquid-home { isolation: auto; }

::selection { background: rgba(255, 91, 46, 0.32); color: #fff; }

a { color: var(--bone); text-decoration-color: var(--hair-2); text-underline-offset: 2px; }
a:hover { color: #fff; }

img { max-width: 100%; }

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(244, 241, 236, 0.16); border-radius: 99px; }

/* Чёрный занавес до появления заставки: страница не успевает мигнуть
   белым, пока браузер разбирает разметку. Анимация — страховка на случай,
   если скрипт загрузки почему-то не выполнится. */
html::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #050506;
  pointer-events: none;
  animation: curtainLift 0.35s ease 3.2s forwards;
}
html.ax-curtain-off::before {
  animation: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
@keyframes curtainLift {
  to { opacity: 0; }
}

/* ─── Каркас страниц ───────────────────────────────────────────────────── */
.home-wrap,
.faq-wrap {
  position: relative;
  z-index: 1;
  max-width: 470px;
  margin: 0 auto;
  padding: 26px 20px 124px;
  padding-top: calc(26px + env(safe-area-inset-top));
  text-align: left;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 20px 90px;
  text-align: left;
}

/* ─── Шапка страницы: маленькая подпись + крупный заголовок ────────────── */
.home-eyebrow,
.faq-eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
  color: var(--stone);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: left;
}

.home-eyebrow::before,
.faq-eyebrow::before,
.eyebrow::before {
  content: '';
  width: 16px;
  height: 1px;
  flex-shrink: 0;
  border-radius: 0;
  background: var(--ember);
  box-shadow: none;
}

.home-title,
.faq-title,
h1.page-title {
  margin: 0 0 22px;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  color: var(--bone);
  background: none;
  -webkit-text-fill-color: currentColor;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-transform: uppercase;
}

/* ─── Подписи разделов ─────────────────────────────────────────────────── */
.profile-section-title,
.shop-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 12px;
  color: var(--stone);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  text-align: left;
}
.profile-section-title::after,
.shop-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hair);
}

/* ─── Поверхности ──────────────────────────────────────────────────────── */
.profile-card,
.glass-card {
  position: relative;
  padding: 22px 18px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.profile-card::before,
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: none;
  opacity: 0;
}

/* ─── Кнопки ───────────────────────────────────────────────────────────── */
.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--bone);
  color: #0a0a0c;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover,
.btn-primary:hover { background: #fff; filter: none; transform: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: default; transform: none; }

.btn-ghost {
  background: transparent;
  border-color: var(--hair-2);
  color: var(--bone);
}
.btn-ghost:hover { background: rgba(244, 241, 236, 0.06); color: #fff; }
.btn-danger { background: transparent; border-color: rgba(255, 106, 93, 0.5); color: #ff8f83; }
.btn-danger:hover { background: rgba(255, 106, 93, 0.12); }
.btn-success { background: var(--bone); }
.btn-small { min-height: 34px; padding: 7px 14px; font-size: 0.72rem; border-radius: 8px; }
.btn-block { width: 100%; }

.pencil-btn,
.menu-pencil-btn,
.faq-pencil-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: var(--ink-3);
  color: var(--stone);
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.pencil-btn:hover,
.menu-pencil-btn:hover,
.faq-pencil-btn:hover { border-color: var(--hair-2); color: var(--bone); transform: none; }

/* ─── Формы ────────────────────────────────────────────────────────────── */
input[type='text'],
input[type='password'],
input[type='number'],
textarea,
select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: #0a0a0c;
  color: var(--bone);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s ease;
}
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 91, 46, 0.55);
  box-shadow: none;
}
textarea { resize: vertical; }
::placeholder { color: var(--stone-2); }

/* ─── Бейджи ───────────────────────────────────────────────────────────── */
.role-badge,
.shop-badge,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border: 1px solid var(--hair);
  border-radius: 6px;
  background: transparent;
  color: var(--stone);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.role-badge.role-admin { color: #ffb59d; border-color: rgba(255, 91, 46, 0.4); background: var(--ember-dim); }
.role-badge.role-owner,
.badge.owner { color: var(--gold); border-color: rgba(232, 192, 122, 0.35); background: rgba(232, 192, 122, 0.08); }
.role-badge.role-prefix { color: #d9b8ff; border-color: rgba(190, 140, 255, 0.32); }
.role-badge.role-vip,
.shop-badge.vip { color: var(--gold); border-color: rgba(232, 192, 122, 0.35); }
.shop-badge.boost { color: #8fd0ff; border-color: rgba(120, 190, 255, 0.3); }
.badge.admin { color: #8fd0ff; border-color: rgba(120, 190, 255, 0.3); }

/* ─── Мелочи ───────────────────────────────────────────────────────────── */
.muted { color: var(--stone); }
.profile-section-value { color: var(--text-dim); white-space: pre-wrap; word-break: break-word; }
.profile-section-value a { color: var(--ember); }
.profile-error,
.faq-error,
.home-state,
.faq-state,
.profile-state { color: var(--stone); }
.profile-error,
.faq-error { margin-top: 8px; min-height: 1.2em; color: #ff8f83; font-size: 0.82rem; }
.hr { border: none; border-top: 1px solid var(--hair); margin: 20px 0; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.hidden { display: none !important; }

/* ════════════════════════════════════════════════════════════════════════
   ГЛАВНАЯ
   ════════════════════════════════════════════════════════════════════════ */

.home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 34px;
}

.home-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* знак в шапке: буква в тонком круге — читается на 32 px, в отличие от эмблемы */
.home-logo-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--hair-2);
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0;
  overflow: hidden;
  box-shadow: none;
}
.home-logo-mark::after {
  content: 'А';
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.home-admin-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  min-height: 0;
}

.home-admin-link,
.faq-admin-link {
  padding: 6px 12px;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: transparent;
  color: var(--stone);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.home-admin-link:hover,
.faq-admin-link:hover { color: var(--bone); border-color: var(--hair-2); }

.home-done-btn {
  padding: 6px 12px;
  border: 1px solid rgba(255, 91, 46, 0.45);
  border-radius: 8px;
  background: var(--ember-dim);
  color: #ffb59d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Обложка главной: 3D-эмблема чата — центр композиции, а не картинка
   сбоку от текста. Под ней тёплое пятно огня, вокруг — воздух. */
.nh-hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 12px;
  padding: 4px 0 0;
}
.nh-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 380px;
  height: 380px;
  margin: -193px 0 0 -193px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 118, 62, 0.22) 0%,
    rgba(255, 96, 42, 0.09) 42%,
    rgba(255, 96, 42, 0.02) 62%,
    transparent 72%);
  pointer-events: none;
}
.nh-emblem {
  position: relative;
  display: block;
  width: min(300px, 72vw);
  height: auto;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.62));
  animation: nhFloat 8s ease-in-out infinite;
  will-change: transform;
}
@keyframes nhFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* Свежая запись новостей под обложкой */
.nh-news {
  display: block;
  margin: 0 0 26px;
  padding: 15px 16px 16px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(244, 241, 236, 0.045), rgba(244, 241, 236, 0.014));
  text-decoration: none;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.nh-news:hover,
.nh-news:active {
  border-color: var(--hair-2);
  background: rgba(244, 241, 236, 0.055);
}
.nh-news-k {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--stone-2);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nh-news-d {
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--stone-2);
  font-variant-numeric: tabular-nums;
}
.nh-news-t {
  display: block;
  margin-top: 9px;
  color: var(--bone);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.36;
  letter-spacing: -0.012em;
}

/* Заголовок главной: постер, а не «градиентный текст».
   Центрируем только обложку: дальше страница снова идёт списком слева. */
.home-intro {
  display: block;
  margin: 0 0 30px;
  text-align: center;
}
.home-intro h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 10.6vw, 3.1rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  color: var(--bone);
  text-wrap: balance;
}
.home-intro h1 span {
  color: var(--stone-2);
  -webkit-text-fill-color: currentColor;
  background: none;
}
.home-intro p {
  margin: 16px auto 0;
  max-width: 28ch;
  color: var(--stone);
  font-size: 0.86rem;
  line-height: 1.55;
  text-align: center;
}
.home-footer {
  margin: 30px 0 0;
  color: var(--stone-2);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
}
.home-state {
  padding: 40px 0;
  color: var(--stone-2);
  font-size: 0.85rem;
  text-align: left;
}

/* Меню: плотный список со сквозной нумерацией и волосяными линиями */
.menu-list {
  display: block;
  border-top: 1px solid var(--hair);
  counter-reset: menu;
}

.menu-item {
  position: relative;
  counter-increment: menu;
  border-bottom: 1px solid var(--hair);
}

.menu-item::before {
  content: counter(menu, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  color: var(--stone-2);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 0;
  padding: 17px 34px 17px 34px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--bone);
  text-align: left;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background-color 0.15s ease, padding-left 0.18s ease;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.menu-btn:hover,
.menu-btn-secondary:hover {
  background: rgba(244, 241, 236, 0.04);
  color: #fff;
  filter: none;
  transform: none;
  box-shadow: none;
}
.menu-btn:active { transform: none; background: rgba(244, 241, 236, 0.07); }

/* блик-«стекло» из старой темы больше не нужен */
.menu-btn::before,
.menu-item:first-child .menu-btn::before { display: none !important; content: none !important; }

.menu-btn::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 22px;
  height: 1px;
  margin-top: -0.5px;
  background: var(--stone-2);
  transition: background-color 0.15s ease, width 0.15s ease;
}
.menu-item:hover .menu-btn::after { width: 28px; background: var(--bone); }

/* ─── Иконки пунктов меню (рисуются в theme-noir.js) ─────────────────── */
.menu-ic {
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: rgba(244, 241, 236, 0.028);
  color: var(--stone);
  animation: icIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.menu-ic svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.menu-item:hover .menu-ic {
  color: var(--bone);
  border-color: var(--hair-2);
  background: rgba(244, 241, 236, 0.07);
}
/* номер пункта вспыхивает — микроподсказка, куда ведёт строка */
.menu-item:hover::before { color: var(--ember); }
.menu-item:first-child .menu-ic {
  color: #0a0a0c;
  border-color: rgba(10, 10, 12, 0.22);
  background: rgba(10, 10, 12, 0.10);
}
.menu-item:first-child .menu-ic svg { width: 21px; height: 21px; }
.menu-item:active .menu-ic { transform: scale(0.92); }

@keyframes icIn {
  from { opacity: 0; transform: translateY(5px) scale(0.82); }
  to { opacity: 1; transform: none; }
}

/* у каждой иконки — своё едва заметное дыхание */
.ic-plane { animation: icPlane 4.6s ease-in-out infinite; }
@keyframes icPlane {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2px, -2px); }
}
.ic-bolt { animation: icBolt 3.2s ease-in-out infinite; }
@keyframes icBolt {
  0%, 100% { opacity: 0.88; transform: scale(1); }
  42% { opacity: 1; transform: scale(1.09); }
  58% { opacity: 1; transform: scale(0.97); }
}
.ic-link { animation: icLink 6s ease-in-out infinite; }
@keyframes icLink {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}
.ic-q { animation: icQ 5.4s ease-in-out infinite; }
@keyframes icQ {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(8deg); }
}
.ic-smile { animation: icSmile 5.2s ease-in-out infinite; }
@keyframes icSmile {
  0%, 100% { transform: rotate(0deg); }
  34% { transform: rotate(-7deg); }
  68% { transform: rotate(6deg); }
}
.ic-sticker { animation: icSticker 6.4s ease-in-out infinite; }
@keyframes icSticker {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(-6deg); }
}

.menu-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.menu-label { display: block; line-height: 1.3; }
.menu-subtitle {
  display: block;
  max-height: 0;
  overflow: hidden;
  color: var(--stone);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0;
  transition: max-height 0.2s ease;
}
.menu-btn:hover .menu-subtitle { max-height: 30px; }

/* Первая кнопка — «Вступить в чат»: белая плита */
.menu-item:first-child { margin-bottom: 0; }
.menu-item:first-child::before { content: none; }
.menu-item:first-child .menu-btn {
  padding: 22px 20px;
  background: var(--bone);
  color: #0a0a0c;
  border-radius: 12px;
  margin: 14px 0;
  border: 1px solid var(--bone);
}
.menu-item:first-child .menu-btn::after {
  display: block;
  width: 22px;
  height: 1px;
  margin-top: -0.5px;
  border: 0;
  border-radius: 0;
  background: #0a0a0c;
  right: 20px;
  box-shadow: none;
}
.menu-item:first-child .menu-label { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; }
.menu-item:first-child .menu-subtitle { color: #4a4744; max-height: 30px; }
.menu-item:first-child .menu-btn:hover { background: #fff; color: #0a0a0c; }
.menu-item:first-child .menu-pencil-btn { background: var(--ink-3); }

.menu-pencil-btn {
  position: absolute;
  top: 50%;
  right: 46px;
  transform: translateY(-50%);
  z-index: 2;
}
.menu-item:first-child .menu-pencil-btn { top: 8px; right: 8px; transform: none; }

.menu-edit-card {
  padding: 14px;
  margin: 0 0 14px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--ink-3);
}
.menu-edit-card label {
  display: block;
  margin: 10px 0 5px;
  color: var(--stone);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.menu-edit-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.menu-btn-save,
.menu-btn-cancel {
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-btn-save { border: 1px solid var(--bone); background: var(--bone); color: #0a0a0c; }
.menu-btn-cancel { border: 1px solid var(--hair-2); background: transparent; color: var(--bone); }
.menu-error { margin-top: 6px; color: #ff8f83; font-size: 0.8rem; }

/* ════════════════════════════════════════════════════════════════════════
   ПРОФИЛЬ
   ════════════════════════════════════════════════════════════════════════ */

.profile-photo-wrap { position: relative; width: 104px; margin: 4px auto 20px; }
.profile-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border: 1px solid var(--hair-2);
  border-radius: 50%;
  background: var(--ink-3);
  color: var(--stone);
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  object-fit: cover;
  box-shadow: none;
}
.profile-photo-wrap .pencil-btn {
  position: absolute;
  right: -4px;
  bottom: 0;
  border: 1px solid var(--hair-2);
  background: var(--ink-2);
}
.profile-photo.frame-gold { border-color: rgba(232, 192, 122, 0.75); box-shadow: 0 0 0 3px rgba(232, 192, 122, 0.12); }
.profile-photo.frame-neon { border-color: rgba(92, 240, 220, 0.7); box-shadow: 0 0 0 3px rgba(92, 240, 220, 0.12); }
.profile-photo.frame-fire { border-color: rgba(255, 91, 46, 0.8); box-shadow: 0 0 0 3px rgba(255, 91, 46, 0.14); }

.profile-name-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.profile-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.profile-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 10px 0 0;
}

.profile-coins {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 16px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--gold);
  font-size: 1.28rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.profile-funstats { margin-top: 8px; color: var(--stone); font-size: 0.8rem; }
.profile-joined {
  margin-top: 10px;
  color: var(--stone-2);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* статистика профиля */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 1px;
  margin: 20px 0 4px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--hair);
  overflow: hidden;
}
.pstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 13px 6px;
  background: var(--ink-2);
  text-align: center;
}
.pstat-ic { color: var(--stone); font-size: 0.9rem; line-height: 1; }
.pstat-tx { color: var(--stone); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; }
.pstat b {
  color: var(--bone);
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.profile-section {
  margin-top: 22px;
  padding-top: 0;
  border-top: 0;
  text-align: left;
}
.profile-section-title { margin-top: 22px; }
.profile-edit-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.profile-edit-row textarea { min-height: 74px; }
.profile-edit-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.btn-save,
.btn-cancel {
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-save { border: 1px solid var(--bone); background: var(--bone); color: #0a0a0c; }
.btn-cancel { border: 1px solid var(--hair-2); background: transparent; color: var(--bone); }

.profile-divorce-btn {
  margin-top: 12px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 106, 93, 0.4);
  border-radius: 9px;
  background: transparent;
  color: #ff8f83;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.profile-divorce-confirm { margin-top: 12px; }
.profile-divorce-confirm > div:first-child { margin-bottom: 8px; color: var(--text-dim); }

.referral-count {
  margin-top: 4px;
  color: var(--bone);
  font-size: 1.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.referral-desc { margin: 2px 0 12px; color: var(--stone); font-size: 0.76rem; }
.referral-linkrow { display: flex; gap: 8px; }
.referral-copy {
  flex-shrink: 0;
  padding: 9px 16px;
  border: 1px solid var(--hair-2);
  border-radius: 9px;
  background: transparent;
  color: var(--bone);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.referral-copy.copied { border-color: rgba(86, 201, 141, 0.6); color: #7fe0ab; }

.achievements-block {
  margin-top: 24px;
  padding-top: 0;
  border-top: 0;
  text-align: left;
}
.achievements-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.achievements-count {
  color: var(--stone-2);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.achievement-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1px solid var(--hair);
  border-radius: 11px;
  background: var(--ink-2);
  text-align: center;
}
.achievement-tile.locked { background: transparent; border-style: dashed; }
.achievement-tile .ach-icon { font-size: 1.3rem; line-height: 1; filter: none; }
.achievement-tile .ach-title {
  color: var(--text-dim);
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.3;
}
.achievement-tile.locked .ach-icon { opacity: 0.3; filter: grayscale(1); }
.achievement-tile.locked .ach-title { color: var(--stone-2); }
.achievements-empty { padding: 16px 0; color: var(--stone-2); font-size: 0.8rem; text-align: center; }

/* ════════════════════════════════════════════════════════════════════════
   МАГАЗИН
   ════════════════════════════════════════════════════════════════════════ */

.shop-balance {
  color: var(--bone);
  font-size: 1.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.shop-balance-sub { margin-bottom: 4px; color: var(--stone); font-size: 0.78rem; }
.shop-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; margin: 12px 0 0; }

.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 4px;
  border: 1px solid var(--hair);
  border-radius: 13px;
  background: var(--hair);
  overflow: hidden;
}
.shop-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 15px 14px 14px;
  border: 0;
  border-radius: 0;
  background: var(--ink-2);
  text-align: left;
  transition: background-color 0.15s ease;
}
.shop-card:hover { background: var(--ink-3); border-color: transparent; transform: none; }
.shop-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  border: 1px solid var(--hair);
  border-radius: 9px;
  background: transparent;
  font-size: 1rem;
}
.shop-card-name { color: var(--bone); font-size: 0.88rem; font-weight: 600; line-height: 1.3; }
.shop-card-desc { flex: 1; margin: 4px 0 10px; color: var(--stone-2); font-size: 0.7rem; line-height: 1.45; }
.shop-card-price {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.shop-card-buy {
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--hair-2);
  border-radius: 8px;
  background: transparent;
  color: var(--bone);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.shop-card-buy:hover { background: var(--bone); color: #0a0a0c; border-color: var(--bone); }
.shop-card-buy:disabled { opacity: 0.35; cursor: default; }

.star-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.star-card {
  padding: 13px 8px;
  border: 1px solid var(--hair);
  border-radius: 11px;
  background: var(--ink-2);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.star-card:hover { border-color: var(--hair-2); background: var(--ink-3); transform: none; }
.star-card-coins {
  color: var(--bone);
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.star-card-stars { margin-top: 3px; color: var(--gold); font-size: 0.72rem; }
.star-card-custom { border-style: dashed; }
.star-card-custom .star-card-coins { color: var(--stone); }
.star-calc { margin-top: 12px; color: var(--gold); font-size: 0.84rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.shop-history-btn {
  width: 100%;
  margin-top: 22px;
  padding: 12px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: transparent;
  color: var(--stone);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.shop-history-btn:hover { color: var(--bone); border-color: var(--hair-2); }

.premium-picker { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.shop-color-btn {
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink-4);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease;
}
.shop-color-btn:hover { border-color: var(--bone); transform: scale(1.06); }
.premium-color-btn {
  padding: 8px 15px;
  border: 1px solid var(--hair-2);
  border-radius: 8px;
  background: var(--ink-3);
  color: #fff;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-background-clip: text;
  background-clip: text;
}
.premium-color-btn:hover { border-color: var(--bone); transform: none; }
.frame-btn {
  padding: 9px 15px;
  border: 1px solid var(--hair-2);
  border-radius: 9px;
  background: transparent;
  color: var(--bone);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}
.frame-btn:hover { border-color: var(--bone); color: #fff; }

.lottery-table { margin: 6px 0 12px; font-size: 0.84rem; text-align: left; }
.lottery-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--hair);
}
.lottery-row .amt { color: var(--bone); font-weight: 700; font-variant-numeric: tabular-nums; }
.lottery-row .chance { color: var(--stone-2); font-variant-numeric: tabular-nums; }

/* ─── Модальные окна ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 4, 5, 0.78);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; animation: modalFade 0.16s ease; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%;
  max-width: 380px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 22px 18px;
  border: 1px solid var(--hair-2);
  border-radius: 16px;
  background: var(--ink-2);
  text-align: center;
  box-shadow: 0 30px 80px -30px #000;
  animation: modalUp 0.18s ease;
}
@keyframes modalUp { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-title {
  margin-bottom: 12px;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.modal-msg { margin: 8px 0 4px; font-size: 0.95rem; font-weight: 600; }
.modal-msg.win { color: #7fe0ab; }
.modal-msg.lose { color: #ff8f83; }
.modal-price { margin: 4px 0 12px; color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.modal-buy { width: 100%; margin-top: 8px; }
.modal-close {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: transparent;
  color: var(--bone);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.modal-close:hover { border-color: var(--hair-2); }

/* ════════════════════════════════════════════════════════════════════════
   КАЗИНО
   ════════════════════════════════════════════════════════════════════════ */

.casino-balance {
  margin-bottom: 6px;
  color: var(--bone);
  font-size: 1.7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.casino-rules {
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid var(--hair);
  border-left: 2px solid var(--ember);
  border-radius: 0 10px 10px 0;
  background: transparent;
  color: var(--stone);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: left;
}
.casino-rules b { color: var(--text-dim); font-weight: 700; }

.game-tabs,
.bet-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--hair);
}
.game-tab,
.bet-tab {
  flex: 1;
  padding: 10px 6px 12px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--stone-2);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}
.game-tab:hover,
.bet-tab:hover { color: var(--bone); }
.game-tab.active,
.bet-tab.active {
  background: none;
  border: 0;
  color: var(--bone);
  box-shadow: none;
}
.game-tab.active::after,
.bet-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ember);
}

/* Колесо */
.wheel-outer { position: relative; width: 268px; height: 268px; margin: 10px auto 24px; }
.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 12px solid var(--bone);
  filter: none;
  z-index: 3;
}
.wheel-rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--hair-2);
  background: #0b0b0d;
  box-shadow: inset 0 0 0 6px #0b0b0d, inset 0 0 0 7px var(--hair);
}
.wheel {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.6);
  transition: transform 4.2s cubic-bezier(0.15, 0.65, 0.25, 1);
}
.wheel-number {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transform-origin: 10px 10px;
  color: rgba(244, 241, 236, 0.92);
  font-size: 8.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
  border-radius: 50%;
}
.wheel-number.winner {
  background: var(--bone);
  color: #0a0a0c;
  text-shadow: none;
  animation: none;
  z-index: 4;
}
.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border: 1px solid var(--hair-2);
  border-radius: 50%;
  background: var(--ink-3);
  font-size: 1.2rem;
  box-shadow: 0 6px 20px -10px #000;
}

.casino-result { min-height: 1.5em; margin-bottom: 18px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.casino-result.win { color: #7fe0ab; text-shadow: none; }
.casino-result.lose { color: #ff8f83; }

.bet-options { display: flex; gap: 8px; margin-bottom: 16px; }
.bet-color-btn {
  flex: 1;
  padding: 13px;
  border: 1px solid var(--hair-2);
  border-radius: 10px;
  background: transparent;
  color: var(--bone);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.bet-color-btn[data-color='red'] { border-color: rgba(255, 90, 60, 0.45); }
.bet-color-btn[data-color='black'] { border-color: var(--hair-2); }
.bet-color-btn.selected { border-color: var(--bone); background: rgba(244, 241, 236, 0.07); box-shadow: none; }
.bet-color-sub { display: block; margin-top: 3px; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.06em; opacity: 0.6; }

.bet-number-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.bet-number-row input { width: 82px; text-align: center; font-weight: 700; }
.bet-number-sub { color: var(--stone-2); font-size: 0.76rem; }

.bet-amount-row { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.bet-amount-row input { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.bet-quick-btn {
  flex-shrink: 0;
  padding: 10px 12px;
  border: 1px solid var(--hair);
  border-radius: 9px;
  background: transparent;
  color: var(--stone);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}
.bet-quick-btn:hover { border-color: var(--hair-2); color: var(--bone); }

.spin-btn {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid var(--bone);
  border-radius: 11px;
  background: var(--bone);
  color: #0a0a0c;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
.spin-btn:disabled { opacity: 0.35; }
.spin-btn:active { transform: translateY(1px); }

.casino-history {
  display: block;
  overflow: visible;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
}
.slots-history { display: block; }
.hist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid var(--hair);
  border-radius: 9px;
  background: transparent;
  font-size: 0.78rem;
}
.hist-row.win { border-color: rgba(86, 201, 141, 0.35); background: rgba(86, 201, 141, 0.05); }
.hist-bet { flex: 1; display: flex; align-items: center; gap: 6px; color: var(--stone); font-variant-numeric: tabular-nums; }
.hist-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; border: 1px solid var(--hair-2); }
.hist-arrow { color: var(--stone-2); font-size: 0.7rem; }
.hist-res {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(244, 241, 236, 0.08);
  color: var(--bone);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hist-pay { min-width: 62px; color: #ff8f83; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.hist-row.win .hist-pay { color: #7fe0ab; }
.hist-empty { padding: 12px 2px; color: var(--stone-2); font-size: 0.76rem; text-align: center; }

/* стол чисел 0–36 */
.roulette-table {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  margin-bottom: 16px;
}
.rn-cell {
  padding: 10px 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--ink-3);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.rn-red { background: rgba(190, 50, 40, 0.28); color: #ffd9d2; }
.rn-black { background: var(--ink-3); color: var(--text-dim); }
.rn-green { background: rgba(40, 150, 95, 0.28); color: #bdf0d3; }
.rn-zero { grid-column: 1 / -1; }
.rn-cell.selected { border-color: var(--bone); box-shadow: none; }
.rn-cell.hit { animation: rnHit 0.9s ease; }
@keyframes rnHit {
  0% { transform: scale(1); }
  40% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.wheel-number.bet-mark { outline: 1px solid var(--bone); outline-offset: 1px; box-shadow: none; }

.bet-summary { margin: 4px 0 14px; color: var(--stone); font-size: 0.8rem; text-align: center; }
.bet-summary b { color: var(--bone); font-variant-numeric: tabular-nums; }
.bet-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border: 1px solid var(--hair-2);
  border-radius: 50%;
  vertical-align: middle;
}
.casino-hint {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: transparent;
  color: var(--stone);
  font-size: 0.78rem;
  text-align: center;
}

/* Слоты */
.slot-machine { margin: 6px 0 18px; }
.slot-cabinet {
  position: relative;
  padding: 16px 12px;
  border: 1px solid var(--hair-2);
  border-radius: 14px;
  background: #0b0b0d;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.slot-reels { display: flex; justify-content: center; gap: 8px; }
.slot-reel {
  position: relative;
  width: 86px;
  height: 104px;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: #14141a;
  box-shadow: inset 0 10px 18px rgba(0, 0, 0, 0.55), inset 0 -10px 18px rgba(0, 0, 0, 0.55);
}
.slot-reel.win { border-color: var(--bone); box-shadow: inset 0 10px 18px #000a, inset 0 -10px 18px #000a, 0 0 0 1px var(--bone); }
.reel-window { position: absolute; inset: 0; overflow: hidden; perspective: 700px; }
.reel-drum {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 1.1s cubic-bezier(0.16, 0.74, 0.12, 1.02);
}
.reel-drum.spinning { filter: blur(1.9px); }
.reel-facet {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 52px;
  margin-top: -26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  backface-visibility: hidden;
}
.reel-glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 15%, rgba(0, 0, 0, 0) 34%,
    rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0) 66%,
    rgba(0, 0, 0, 0.3) 86%, rgba(0, 0, 0, 0.9) 100%);
}
.slot-winline {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 58px;
  margin-top: -29px;
  border: 1px solid transparent;
  border-radius: 9px;
  pointer-events: none;
}
.slot-winline.win { border-color: var(--bone); box-shadow: inset 0 0 20px rgba(244, 241, 236, 0.08); animation: none; }
.slot-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fx-coin { position: absolute; bottom: 10%; opacity: 0; animation: coinRise 1.9s ease-out forwards; }
@keyframes coinRise {
  0% { opacity: 0; transform: translateY(10px) scale(0.6); }
  18% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-130px) scale(1.1) rotate(25deg); }
}
.slot-pay {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  color: var(--stone);
  font-size: 0.76rem;
  text-align: left;
}
.slot-pay b { color: var(--bone); font-weight: 700; }
.slot-pay-row { display: flex; justify-content: space-between; padding: 3px 0; }
.slot-pay-row span:last-child { color: var(--gold); font-variant-numeric: tabular-nums; }

/* ════════════════════════════════════════════════════════════════════════
   ПРАВИЛА / FAQ
   ════════════════════════════════════════════════════════════════════════ */

.faq-header-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: -6px 0 22px; }
.faq-section { margin-bottom: 26px; }
.faq-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--bone);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.faq-underline { width: 28px; height: 2px; margin-bottom: 14px; border-radius: 0; background: var(--ember); }
.faq-card {
  padding: 16px 16px;
  border: 1px solid var(--hair);
  border-left: 2px solid var(--hair-2);
  border-radius: 0 12px 12px 0;
  background: var(--ink-2);
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.faq-card strong { color: var(--bone); }
.faq-card a { color: var(--ember); }
.faq-edit-wrap textarea { min-height: 320px; line-height: 1.6; }
.faq-edit-hint { margin: 8px 0 0; color: var(--stone-2); font-size: 0.74rem; }
.faq-edit-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.faq-btn-save,
.faq-btn-cancel {
  padding: 9px 16px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.faq-btn-save { border: 1px solid var(--bone); background: var(--bone); color: #0a0a0c; }
.faq-btn-cancel { border: 1px solid var(--hair-2); background: transparent; color: var(--bone); }
.faq-state { padding: 40px 0; color: var(--stone-2); font-size: 0.85rem; text-align: left; }

/* ════════════════════════════════════════════════════════════════════════
   НОВОСТИ (перекрываем news.css)
   ════════════════════════════════════════════════════════════════════════ */

.news-admin-row { display: flex; justify-content: flex-end; margin: 0 0 16px; }
.news-admin-link {
  padding: 6px 12px;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: transparent;
  color: var(--stone);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.news-admin-link:hover { color: var(--bone); border-color: var(--hair-2); }
.news-state { padding: 30px 0; color: var(--stone-2); font-size: 0.85rem; text-align: left; }
.news-list { display: block; }
.news-item { margin-bottom: 10px; }
.news-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--hair);
  border-radius: 13px;
  background: var(--ink-2);
  color: var(--bone);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.news-card:hover { border-color: var(--hair-2); background: var(--ink-3); }
.news-card:active { transform: none; }
.news-card-img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  margin-bottom: 14px;
  border-radius: 9px;
  filter: grayscale(0.15);
}
.news-card-body { display: block; padding: 0; }
.news-card-title {
  display: block;
  margin-bottom: 6px;
  color: var(--bone);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.news-card-date,
.news-date {
  display: block;
  color: var(--stone-2);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.news-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 7vw, 2.1rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.news-hero { max-height: 340px; object-fit: cover; }
.news-body {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.75;
}
.news-body a { color: var(--ember); }
.news-body img { border-radius: 10px; }
.news-share { display: flex; gap: 8px; margin-top: 24px; }
.news-share-btn,
.news-share-btn-main,
.news-back {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--hair-2);
  border-radius: 10px;
  background: transparent;
  color: var(--bone);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.news-share-btn-main { border-color: var(--bone); background: var(--bone); color: #0a0a0c; }
.news-share-btn:active,
.news-share-btn-main:active,
.news-back:active { transform: none; }
.news-back { display: block; margin-top: 12px; }
.news-draft-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid rgba(232, 192, 122, 0.4);
  border-radius: 5px;
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.news-empty { padding: 40px 0; color: var(--stone-2); font-size: 0.85rem; }
.news-item .news-editor-actions { margin-top: 8px; }
.news-editor { padding: 16px; border: 1px solid var(--hair); border-radius: 12px; background: var(--ink-2); }
.news-editor h2 { margin: 0 0 12px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.news-editor label { display: block; margin: 12px 0 5px; color: var(--stone); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; }
.news-editor textarea { min-height: 190px; }
.news-editor-file { color: var(--stone); font-size: 0.76rem; }
.news-editor-preview { max-height: 200px; margin-top: 10px; border-radius: 9px; }
.news-editor-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.news-editor-actions button {
  padding: 9px 14px;
  border: 1px solid var(--hair-2);
  border-radius: 9px;
  background: transparent;
  color: var(--bone);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.news-btn-primary { border-color: var(--bone) !important; background: var(--bone) !important; color: #0a0a0c !important; }
.news-btn-ghost { background: transparent; }
.news-btn-danger { border-color: rgba(255, 106, 93, 0.45) !important; color: #ff8f83 !important; }
.news-editor-msg { margin-top: 10px; color: var(--stone); font-size: 0.76rem; }
.news-editor-msg.is-err { color: #ff8f83; }

/* ════════════════════════════════════════════════════════════════════════
   АДМИНКА
   ════════════════════════════════════════════════════════════════════════ */

.login-card {
  max-width: 380px;
  margin: 60px auto 0;
  padding: 26px 22px;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: var(--ink-2);
  text-align: center;
  box-shadow: none;
}
.login-card .login-sub { margin-bottom: 4px; color: var(--stone); font-size: 0.84rem; }
.login-card input { margin: 14px 0; }

/* заголовок админки приходит отдельной разметкой (.wrap > h1 > .grad) */
.wrap > h1 {
  margin: 0 0 26px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--hair);
  color: var(--bone);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-align: left;
  text-transform: uppercase;
}
.wrap > h1 .grad {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: var(--bone);
}

.err { min-height: 20px; margin-top: 8px; color: #ff8f83; font-size: 0.84rem; }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin-bottom: 24px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--hair);
  overflow: hidden;
}
.tile { padding: 16px 18px; border: 0; border-radius: 0; background: var(--ink-2); }
.tile:hover { border-color: transparent; background: var(--ink-3); }
.tile-num {
  color: var(--bone);
  font-size: 1.7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.tile-num.gold { color: var(--gold); }
.tile-num.red { color: var(--ember); }
.tile-label { margin-top: 2px; color: var(--stone-2); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; }

.note {
  margin-bottom: 22px;
  padding: 11px 14px;
  border: 1px solid rgba(232, 192, 122, 0.22);
  border-radius: 10px;
  background: rgba(232, 192, 122, 0.05);
  color: #d6c398;
  font-size: 0.78rem;
}

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tab {
  padding: 8px 14px;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: transparent;
  color: var(--stone);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab:hover { color: var(--bone); border-color: var(--hair-2); }
.tab.active { border-color: var(--bone); background: var(--bone); color: #0a0a0c; box-shadow: none; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.count { color: var(--stone-2); font-size: 0.8rem; font-variant-numeric: tabular-nums; }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--ink-2);
}
table { width: 100%; min-width: 600px; border-collapse: collapse; }
th,
td { padding: 12px 14px; font-size: 0.84rem; text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
th {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--hair-2);
  background: var(--ink-3);
  color: var(--stone);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
tbody tr { border-top: 1px solid var(--hair); }
tbody tr:hover { background: rgba(244, 241, 236, 0.03); }
.empty { padding: 40px 0; color: var(--stone-2); text-align: center; }

/* ════════════════════════════════════════════════════════════════════════
   НИЖНЯЯ НАВИГАЦИЯ
   ════════════════════════════════════════════════════════════════════════ */

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  width: min(470px, 100%);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hair);
  border-radius: 0;
  background: rgba(8, 8, 10, 0.92);
  box-shadow: none;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transform: translateX(-50%);
}

.bn-item {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 7px 2px 5px;
  border-radius: 8px;
  color: var(--stone-2);
  text-decoration: none;
  transition: color 0.15s ease;
}
.bn-item:hover { background: none; color: var(--stone); }
.bn-item:active { transform: none; }
.bn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  filter: none;
}
.bn-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bn-label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.02em; }

.bn-item.active {
  color: var(--bone);
  background: none;
  box-shadow: none;
}
.bn-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 16px;
  height: 2px;
  margin-left: -8px;
  background: var(--ember);
}
.bn-item.active .bn-icon { color: var(--bone); text-shadow: none; }
.bn-item.active .bn-label { color: var(--bone); }

/* ════════════════════════════════════════════════════════════════════════
   ЕЖЕДНЕВНЫЙ ОГОНЁК И УВЕДОМЛЕНИЯ (site-extras.css подтянет переменные)
   ════════════════════════════════════════════════════════════════════════ */

.streak-pstat { border-color: var(--hair-2) !important; background: var(--ink-3) !important; box-shadow: none !important; }
.streak-pstat::after { display: none; }
.streak-overlay-bg { background: #050506 !important; }
.streak-overlay-bg::before,
.streak-overlay-bg::after { background: none !important; opacity: 0 !important; }
.streak-card {
  border: 1px solid var(--hair-2);
  border-radius: 18px;
  background: var(--ink-2);
  box-shadow: 0 30px 80px -40px #000;
}
.streak-kicker { color: var(--stone); letter-spacing: 0.18em; }
.streak-kicker::before { background: var(--ember); box-shadow: none; }
.streak-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bone);
}
.streak-sub,
.streak-meta,
.streak-count-label,
.streak-record { color: var(--stone); }
.streak-claim {
  border: 1px solid var(--bone);
  border-radius: 10px;
  background: var(--bone);
  color: #0a0a0c;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: none;
}
.streak-continue { border: 1px solid var(--hair-2); border-radius: 10px; background: transparent; color: var(--stone); }

/* ════════════════════════════════════════════════════════════════════════
   ЗАГРУЗОЧНЫЙ ЭКРАН (js/app-boot.js)
   ════════════════════════════════════════════════════════════════════════ */

.ax-boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background:
    radial-gradient(600px 420px at 50% 38%, rgba(255, 110, 55, 0.12), transparent 70%),
    #050506;
  opacity: 1;
  transition: opacity 0.42s ease;
  will-change: opacity;
}
.ax-boot.is-done { opacity: 0; pointer-events: none; }

body.ax-booting { overflow: hidden; }

.ax-boot-emblem {
  position: relative;
  width: 300px;
  height: 300px;
  /* PNG с альфой: медальон честно лежит на фоне, без blend-хаков */
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.6));
  animation: axEmblemIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
/* тёплое пятно огня за медальоном */
.ax-boot-emblem::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  margin: -160px 0 0 -160px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 118, 62, 0.24) 0%,
    rgba(255, 96, 42, 0.08) 45%,
    transparent 68%);
  z-index: -1;
  animation: axGlow 3.4s ease-in-out infinite;
}
@keyframes axGlow {
  0%, 100% { opacity: 0.75; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.03); }
}
.ax-boot-emblem img,
.ax-boot-emblem svg { display: block; width: 100%; height: 100%; }

/* статичный кадр 3D-рельефа; живая сцена проявляется поверх него */
.ax-boot-emblem .ax-boot-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s ease;
}
.ax-boot-emblem .ax-boot-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.ax-boot-emblem.is-live .ax-boot-canvas { opacity: 1; }
.ax-boot-emblem.is-live .ax-boot-poster { opacity: 0; }

/* редкие искры вокруг эмблемы — заставка дышит, а не висит стоп-кадром */
.ax-boot-sparks { position: absolute; inset: 0; pointer-events: none; }
.ax-boot-sparks i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #ffc27a;
  box-shadow: 0 0 6px 1px rgba(255, 132, 52, 0.75);
  opacity: 0;
  animation: axSpark 5.4s linear infinite;
}
.ax-boot-sparks i:nth-child(1) { left: 26%; bottom: 20%; animation-delay: 0s; }
.ax-boot-sparks i:nth-child(2) { left: 72%; bottom: 26%; animation-delay: 1.1s; animation-duration: 6.2s; }
.ax-boot-sparks i:nth-child(3) { left: 41%; bottom: 14%; animation-delay: 2.3s; animation-duration: 4.8s; }
.ax-boot-sparks i:nth-child(4) { left: 61%; bottom: 10%; animation-delay: 3.4s; animation-duration: 5.9s; }
.ax-boot-sparks i:nth-child(5) { left: 15%; bottom: 34%; animation-delay: 1.7s; animation-duration: 6.6s; }
.ax-boot-sparks i:nth-child(6) { left: 84%; bottom: 40%; animation-delay: 4.1s; animation-duration: 5.1s; }
@keyframes axSpark {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.6); }
  12% { opacity: 0.9; }
  55% { opacity: 0.55; }
  100% { opacity: 0; transform: translate3d(-10px, -88px, 0) scale(0.2); }
}


@keyframes axEmblemIn {
  from { opacity: 0; transform: scale(0.92) translateY(6px); }
  to { opacity: 1; transform: none; }
}

.ax-boot-word {
  margin-top: 24px;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  text-indent: 0.44em;
  opacity: 0.92;
}
.ax-boot-word small {
  display: block;
  margin-top: 9px;
  color: var(--stone-2);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
}

.ax-boot-line {
  position: relative;
  width: 112px;
  height: 2px;
  margin-top: 26px;
  overflow: hidden;
  background: rgba(244, 241, 236, 0.14);
}
.ax-boot-line span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: var(--ember);
  animation: axBootRun 1.1s cubic-bezier(0.5, 0, 0.4, 1) infinite;
}
@keyframes axBootRun {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}

.ax-boot-hint {
  margin-top: 16px;
  color: var(--stone-2);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-indent: 0.28em;
  animation: axHint 2.6s ease-in-out infinite;
}
@keyframes axHint {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* тонкая полоса прогресса при переходе между страницами */
.ax-boot.is-leaving .ax-boot-emblem { animation: axEmblemPulse 0.6s ease-in-out infinite; }
@keyframes axEmblemPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.97); opacity: 0.82; }
}

/* ════════════════════════════════════════════════════════════════════════
   АДАПТИВ / СЛУЖЕБНОЕ
   ════════════════════════════════════════════════════════════════════════ */

@media (min-width: 700px) {
  .home-wrap, .faq-wrap { padding-top: 40px; }
  .profile-stats { grid-template-columns: repeat(3, 1fr); }
  .bottom-nav { border-radius: 0; border-left: 1px solid var(--hair); border-right: 1px solid var(--hair); }
}

@media (max-width: 380px) {
  .home-wrap, .faq-wrap { padding-left: 16px; padding-right: 16px; padding-bottom: 112px; }
  .home-intro h1 { font-size: 2.05rem; }
  .menu-btn { padding: 15px 30px; font-size: 0.92rem; }
  .menu-item:first-child .menu-btn { padding: 18px 16px; }
  .game-tab, .bet-tab { font-size: 0.64rem; letter-spacing: 0.06em; }
  .wheel-outer { transform: scale(0.92); }
  .profile-card { padding: 18px 14px; }
  .slot-reel { width: 76px; height: 96px; }
  .bn-label { font-size: 0.56rem; }
  .ax-boot-emblem { width: 188px; height: 188px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ax-boot-line span { width: 100%; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bottom-nav { background: #0c0c0f; }
  .modal-overlay { background: rgba(4, 4, 5, 0.94); }
}
