/* Page banner (шапка внутренних страниц с фоновым изображением).
   Верх картинки сдвинут вниз на реальную высоту фиксированной навигации
   (переменная --nav-height считается в hero.js), чтобы шапка сайта
   не перекрывала голову персонажа — тот же приём, что и в hero-секции
   главной страницы. */
.page-banner {
  position: relative;
  width: 100%;
  height: calc(420px + var(--nav-height, 76px));
  overflow: hidden;
}

.page-banner__img {
  position: absolute;
  top: var(--nav-height, 76px);
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
}

.page-banner__veil {
  position: absolute;
  top: var(--nav-height, 76px);
  right: 0;
  bottom: 0;
  left: 0;
  background:
    linear-gradient(
      180deg,
      hsl(220 18% 6% / 0.35) 0%,
      hsl(220 18% 6% / 0.55) 60%,
      hsl(220 18% 6%) 100%
    ),
    linear-gradient(
      90deg,
      hsl(220 18% 6% / 0.75) 0%,
      transparent 45%,
      transparent 55%,
      hsl(220 18% 6% / 0.75) 100%
    );
}

.page-banner__title {
  position: absolute;
  z-index: 1;
  top: var(--nav-height, 76px);
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-family: Cinzel, "King", Georgia, serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: hsl(45 71% 73%);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
  text-align: center;
}

@media (max-width: 960px) {
  .page-banner {
    height: calc(300px + var(--nav-height, 76px));
  }
  .page-banner__img {
    height: 300px;
  }
  .page-banner__title {
    font-size: 28px;
  }
}

@media (max-width: 560px) {
  .page-banner {
    height: calc(220px + var(--nav-height, 76px));
  }
  .page-banner__img {
    height: 220px;
  }
  .page-banner__title {
    font-size: 22px;
  }
}

/* Полоса под баннером внутренних страниц: печатающийся слоган (тот же,
   что и в hero-секции главной) + кнопка "Начать игру". */
.page-toolbar {
  align-items: center;
  gap: 20px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.page-toolbar__slogan {
  margin: 0;
  flex: 1 1 320px;
}

.page-toolbar__start {
  margin: 0 !important;
}

/* Timeline banner (компактный баннер для внутренних страниц) */
.timeline-banner {
  width: fit-content;
  gap: 10px;
  margin: 0 auto 32px;
  padding: 12px 26px;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    hsl(32 22% 12% / 0.9),
    hsl(30 18% 7% / 0.95)
  );
  box-shadow:
    0 16px 36px -20px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px hsl(45 60% 62% / 0.25);
}

.timeline-banner__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: hsl(140 60% 50%);
  box-shadow: 0 0 8px hsl(140 60% 50% / 0.8);
  flex-shrink: 0;
}

.timeline-banner__text {
  font-family: Cinzel, "King", Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: hsl(45 71% 73%);
  text-align: center;
}

@media (max-width: 640px) {
  .timeline-banner {
    margin-bottom: 22px;
    padding: 10px 18px;
  }
  .timeline-banner__text {
    font-size: 13px;
  }
}
/* Chrome, Edge, Safari и браузеры на WebKit */
.hero__video::-webkit-media-controls {
  display: none !important;
}

.hero__video::-webkit-media-controls-panel {
  display: none !important;
}

.hero__video::-webkit-media-controls-overlay-play-button {
  display: none !important;
}

.hero__video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

#skip-button,
.container.underwave {
  display: none !important;
}

.header__fade {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 110px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    hsl(220 18% 6% / 0) 0%,
    hsl(220 18% 6% / 0.28) 42%,
    hsl(220 18% 6% / 0.72) 72%,
    hsl(220 18% 6%) 100%
  );
  z-index: -1;
}

html {
  scroll-behavior: smooth;
}

#about {
  scroll-margin-top: var(--nav-height, 76px);
}

/* ---------- Разделитель ---------- */
.divider {
  position: relative;
  height: 30px;
  margin: 0 auto;
  max-width: 1100px;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    hsl(45 60% 60% / 0.15) 12%,
    hsl(45 70% 70% / 0.55) 50%,
    hsl(45 60% 60% / 0.15) 88%,
    transparent
  );
}

.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(135deg, #f6e7b4 0%, #bb9743 55%, #6d5320 100%);
  box-shadow: 0 0 16px hsl(42 85% 58% / 0.6);
}

/* ---------- Плавающие соц-иконки справа ---------- */
.soc-sticky {
  position: fixed;
  z-index: 45;
  top: 50%;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    180deg,
    hsl(32 22% 12% / 0.95),
    hsl(30 18% 7% / 0.97)
  );
  border-radius: 12px 0 0 12px;
  box-shadow:
    0 16px 36px -20px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px hsl(45 60% 62% / 0.22);
  overflow: hidden;
}

.soc-sticky__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  transition: background 0.2s ease;
}

.soc-sticky__link:hover {
  background: hsl(45 60% 62% / 0.14);
}

.soc-sticky__link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .soc-sticky {
    display: none;
  }
}

/* ---------- Всплывающий призыв подписаться ---------- */
.soc-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 46;
  width: min(320px, calc(100vw - 40px));
  padding: 20px 22px;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    hsl(32 22% 11% / 0.98),
    hsl(30 18% 6% / 0.99)
  );
  box-shadow:
    0 20px 48px -20px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px hsl(45 60% 62% / 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.soc-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.soc-toast__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(41 30% 65%);
  font-size: 20px;
  line-height: 1;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.soc-toast__close:hover {
  color: hsl(45 71% 73%);
  background: hsl(45 60% 62% / 0.12);
}

.soc-toast__title {
  margin: 0 22px 6px 0;
  font-family: Cinzel, "King", Georgia, serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: hsl(45 71% 73%);
}

.soc-toast__text {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: hsl(41 30% 72%);
}

.soc-toast__links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.soc-toast__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: hsl(45 60% 62% / 0.1);
  box-shadow: inset 0 0 0 1px hsl(45 60% 62% / 0.25);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.soc-toast__link:hover {
  background: hsl(45 60% 62% / 0.2);
  transform: translateY(-2px);
}

.soc-toast__link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .soc-toast {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .soc-toast {
    top: 10px;
    right: 10px;
    bottom: auto;
    width: min(240px, calc(100vw - 20px));
    padding: 14px 16px;
    transform: translateY(-24px);
  }
  .soc-toast.is-visible {
    transform: translateY(0);
  }
  .soc-toast__title {
    margin-bottom: 4px;
    font-size: 14px;
  }
  .soc-toast__text {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.4;
  }
  .soc-toast__link {
    width: 36px;
    height: 36px;
  }
  .soc-toast__link img {
    width: 18px;
    height: 18px;
  }
}

/* Мобильная шапка: если пунктам меню не хватает места в одну строку,
   .navigation__right (класс flex-ec) переносит их на новую строку. Без
   отступа между строками и без выравнивания переключатель языка падал
   вплотную под пункт "Аккаунт", наслаиваясь на его подчёркивание. */
.navigation__right {
  gap: 10px 16px;
}

.navigation__right .lang-wrap {
  margin-left: auto;
}

/* Выпадающее меню "Сообщество" (Telegram / Форум / Discord) — единый
   визуальный стиль с переключателем языка (.lang-wrap/.lang-menu из
   css/hero.css) и с кнопкой "Ещё" (.navigation__link-box/.navigation__link-items
   из css/style.css, переопределены ниже под тот же стиль). Полностью
   независимый компонент, НЕ пересекается с логикой js/navigation.js. */
.nav-community-wrap {
  position: relative;
}

.nav-community {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.nav-community__caret {
  width: 14px;
  height: 14px;
  color: hsl(41 49% 88% / 0.7);
  transition: transform 0.2s;
  flex: none;
}

.nav-community.is-open .nav-community__caret {
  transform: rotate(180deg);
}

/* Выпадашка центрируется ровно под кнопкой "Сообщество" (а не прижимается
   к левому краю) — так стрелка-указатель сверху всегда попадает точно в
   середину кнопки, независимо от ширины текста на разных языках. */
.nav-community-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 12px);
  z-index: 50;
  width: 190px;
  padding: 6px;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    hsl(32 22% 10% / 0.98),
    hsl(30 18% 6% / 0.98)
  );
  box-shadow:
    0 18px 42px -14px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px hsl(45 60% 62% / 0.22);
  backdrop-filter: blur(14px);
}

.nav-community-menu[hidden] {
  display: none;
}

.nav-community-menu::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  transform: rotate(45deg);
  background: hsl(32 22% 10%);
  box-shadow: -1px -1px 0 hsl(45 60% 62% / 0.22);
}

.nav-community-menu__item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 7px;
  background: none;
  cursor: pointer;
  font-family: Cinzel, "King", Georgia, serif;
  font-size: 14px;
  line-height: 1;
  color: hsl(41 40% 82%);
  transition: all 0.2s;
  text-decoration: none;
}

.nav-community-menu__item:hover {
  background: hsl(42 32% 18% / 0.7);
  color: hsl(45 71% 73%);
}

/* Единый визуальный "вес" для иконок разных сервисов: сами глифы FontAwesome
   геометрически разные (paper-plane тоньше и мельче, comments шире, discord
   плотнее), поэтому размер каждой иконки подобран отдельно, чтобы визуально
   они казались одного размера внутри одинакового по ширине столбца. */
.nav-community__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: hsl(46 68% 47%);
  line-height: 1;
}

.nav-community__icon i {
  display: block;
  line-height: 1;
}

.nav-community__icon .fa-telegram-plane {
  font-size: 17px;
}

.nav-community__icon .fa-comments {
  font-size: 14px;
}

.nav-community__icon .fa-discord {
  font-size: 16px;
}

/* Кнопка "Ещё" (.navigation__link-box/.navigation__link-items) — приведена
   к тому же визуальному стилю, что и "Сообщество"/переключатель языка:
   заменяем старый фон drop_box_bg.png на тот же градиент+блюр+рамку. */
.navigation__link-items {
  background: linear-gradient(
    180deg,
    hsl(32 22% 10% / 0.98),
    hsl(30 18% 6% / 0.98)
  ) !important;
  box-shadow:
    0 18px 42px -14px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px hsl(45 60% 62% / 0.22);
  backdrop-filter: blur(14px);
  border-radius: 10px !important;
  width: 190px !important;
  padding: 6px !important;
  padding-bottom: 6px !important;
}

.navigation__link-items .navigation__link {
  border-radius: 7px;
}

.navigation__link-items .navigation__link a {
  padding: 9px 10px !important;
  font-family: Cinzel, "King", Georgia, serif;
  font-size: 14px !important;
  color: hsl(41 40% 82%);
  transition: all 0.2s;
  border-radius: 7px;
}

.navigation__link-items .navigation__link a:hover {
  background: hsl(42 32% 18% / 0.7);
  color: hsl(45 71% 73%);
}

.navigation__link-items .navigation__link:not(:last-child) {
  border-bottom: 0 !important;
}

.navigation__link-items .navigation__link span {
  margin-right: 0 !important;
}


/* Поворот стрелки у кнопки "Ещё" при открытом состоянии (класс .active
   ставит существующий js/navigation.js на .navigation__link-items) */
.navigation__link-box {
  position: relative;
}

.navigation__link-box__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.navigation__link-box:has(.navigation__link-items.active) .nav-community__caret {
  transform: rotate(180deg);
}


/* Убираем декоративную подчёркивающую полоску (.navigation__link span:after
   из style.css) внутри выпадашки "Сообщество" — правило работает на ЛЮБОЙ
   span внутри .navigation__link (а обёртка кнопки имеет этот класс), из-за
   чего полоска неуместно появлялась под каждым пунктом (Telegram/Форум/
   Discord) и под иконками. Оставляем эффект только на самой кнопке
   "СООБЩЕСТВО" верхнего уровня. */
.nav-community-menu span:after {
  display: none !important;
}


/* Мобильная шапка: при нехватке места js/navigation.js автоматически
   переносит последний пункт меню (чаще всего "Сообщество") в выпадашку
   "Ещё". Проблема: "Сообщество" — это <button class="nav-community">, а
   не <a>, поэтому стили соседних компактных пунктов
   (.navigation__link-items .navigation__link a) на него не действовали —
   он оставался крупным золотым текстом с подчёркиванием (декоративный
   эффект .navigation__link span:after срабатывает на ЛЮБОЙ span внутри
   .navigation__link, включая span внутри перенесённой кнопки) и заметно
   выбивался из списка. Приводим кнопку к тому же компактному виду. */
.navigation__link-items .nav-community-wrap span:after {
  display: none !important;
}

.navigation__link-items .nav-community {
  width: 100%;
  padding: 9px 10px;
  font-family: Cinzel, "King", Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  color: hsl(41 40% 82%);
  border-radius: 7px;
  transition: all 0.2s;
}

.navigation__link-items .nav-community:hover {
  background: hsl(42 32% 18% / 0.7);
  color: hsl(45 71% 73%);
}

.navigation__link-items .nav-community__caret {
  width: 12px;
  height: 12px;
  color: hsl(41 40% 82% / 0.6);
}

/* Вложенная выпадашка Telegram/Форум/Discord: внутри узкой колонки "Ещё"
   плавающее позиционирование (как у самостоятельной кнопки "Сообщество")
   накладывало список поверх соседних пунктов (Статистика/Библиотека/Медиа),
   создавая визуальное наслоение. Вместо floating-оверлея раскрываем список
   по месту (аккордеоном) — он раздвигает соседние пункты вниз, а не
   перекрывает их. */
.navigation__link-items .nav-community-menu {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  width: 100%;
  margin: 4px 0 4px;
  background: hsl(42 30% 16% / 0.55);
  box-shadow: none;
  backdrop-filter: none;
}

.navigation__link-items .nav-community-menu::before {
  display: none;
}


/* Розыгрыш к открытию Aurora — асимметричная карточка: арт сундука слева,
   текст справа (вместо симметричной "иконка по центру сверху", как у типового
   AI-шаблона). Палитра приглушена под общий тон сайта, без чистого золота
   на чёрном. */
.soc-toast--giveaway {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(155deg, hsl(28 24% 11% / 0.98), hsl(230 20% 8% / 0.98));
  box-shadow: inset 0 0 0 1px hsl(38 35% 45% / 0.18);
}

.soc-toast__art {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
  box-shadow:
    0 6px 16px -6px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px hsl(38 30% 45% / 0.35);
}

.soc-toast__body {
  min-width: 0;
}

/* Иерархия: бейдж — маленький акцентный лейбл; заголовок — самый яркий и
   контрастный элемент (главное сообщение); подпись — заметно светлее, чем
   было, для читаемости при слабом зрении; кнопка — сплошная заливка с
   тёмным текстом, самый высокий контраст на карточке. */
.soc-toast__badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  background: hsl(42 60% 55% / 0.16);
  color: hsl(42 75% 72%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.soc-toast--giveaway .soc-toast__title {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: hsl(45 90% 92%);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.soc-toast--giveaway .soc-toast__text {
  margin: 0 0 12px;
  font-size: 13px;
  color: hsl(36 22% 74%);
}

.soc-toast__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 6px;
  background: hsl(42 70% 58%);
  color: hsl(28 30% 8%);
  font-family: Cinzel, "King", Georgia, serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.soc-toast__cta:hover {
  background: hsl(42 80% 66%);
  transform: translateY(-1px);
}
