@font-face {  
  font-family: 'Future Z';  
  src: url('/fonts/Future Z.ttf') format('truetype');
  font-display: swap;  
}  

/* Основные стили navbar с анимацией появления */  
.navbar {  
  display: flex;  
  align-items: center;  
  justify-content: space-between;  
  padding: 0 20px;  
  height: 70px;
  background-color: rgba(12, 14, 20, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;  
  position: fixed;  
  width: 100%;  
  top: 0;  
  left: 0;
  z-index: 1000;  
  box-sizing: border-box;  
  animation: navbarFadeIn 0.5s ease-out forwards;  
  transition: all 0.3s ease;  
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);  
}

/* Контейнер для выравнивания - ИСПРАВЛЕНО */
.nav-container {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* Эффект при прокрутке */  
.navbar.scrolled {  
  background-color: rgba(10, 12, 18, 0.97);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(220, 53, 69, 0.2);
}

/* ИСПРАВЛЕНО - теперь логотип и меню в одном контейнере слева */
.nav-left {  
  display: flex;  
  align-items: center;  
  height: 100%;
}  

.nav-right {  
  display: flex;  
  align-items: center;  
  height: 100%;  
  gap: 15px;
  margin-left: auto;
}  

/* Логотип с эффектом свечения */  
.nav-logo {  
  font-size: 42px;  
  font-family: 'Future Z', sans-serif;  
  color: #ff4d4d;  
  text-decoration: none;  
  margin-right: 30px;  
  transition: all 0.3s ease;  
  animation: logoGlow 3s infinite alternate;  
  position: relative;  
  display: flex;  
  flex-direction: column;  
  align-items: center;  
  line-height: 1;
}  

.nav-logo:hover {  
  color: #ff2222;  
  text-shadow: 0 0 10px rgba(255, 34, 34, 0.5);  
  transform: scale(1.05);  
}  

/* Десктопная навигация - ИСПРАВЛЕНО */
.desktop-nav {
  height: 100%;
}

.desktop-nav > ul {  
  list-style: none;  
  display: flex;  
  height: 100%;  
  margin: 0;  
  padding: 0;  
  gap: 20px;
  align-items: center;
}  

.desktop-nav > ul > li {  
  display: flex;  
  align-items: center;
  height: 100%;  
  opacity: 0;  
  animation: fadeInRight 0.5s ease forwards;  
}  

/* Задержка анимации для каждого пункта */  
.desktop-nav > ul > li:nth-child(1) { animation-delay: 0.1s; }  
.desktop-nav > ul > li:nth-child(2) { animation-delay: 0.2s; }  
.desktop-nav > ul > li:nth-child(3) { animation-delay: 0.3s; }  
.desktop-nav > ul > li:nth-child(4) { animation-delay: 0.4s; }  
.desktop-nav > ul > li:nth-child(5) { animation-delay: 0.5s; }  
.desktop-nav > ul > li:nth-child(6) { animation-delay: 0.6s; }  
.desktop-nav > ul > li:nth-child(7) { animation-delay: 0.7s; }  
.desktop-nav > ul > li:nth-child(8) { animation-delay: 0.8s; }

/* ── Dropdown ── */
.nav-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  font-weight: 600;
  font-size: 0.92em;
  letter-spacing: 0.3px;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
  position: relative;
  font-family: inherit;
  white-space: nowrap;
}

.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #dc3545;
  transition: width 0.3s ease;
  z-index: 1001;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
  color: white;
}

.nav-dropdown-toggle:hover::after,
.nav-dropdown.open .nav-dropdown-toggle::after,
.nav-dropdown.has-active .nav-dropdown-toggle::after {
  width: 100%;
}

.nav-dropdown.has-active .nav-dropdown-toggle {
  color: white;
}

.nav-dropdown-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nav-dropdown.open .nav-dropdown-arrow,
.nav-dropdown:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: rgba(10, 12, 18, 0.98);
  border: 1px solid rgba(220, 53, 69, 0.2);
  border-top: 2px solid #dc3545;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
  z-index: 1010;
  padding: 6px 0;
  list-style: none;
  margin: 0;
  animation: dropdownFadeIn 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.88em;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
  color: white;
  background: rgba(220, 53, 69, 0.1);
  padding-left: 26px;
}

.nav-dropdown-menu li a.active {
  color: #ff4d4d;
  background: rgba(220, 53, 69, 0.1);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.desktop-nav > ul > li > a {  
  color: #9ca3af;
  text-decoration: none;  
  font-weight: 600;  
  position: relative;  
  padding: 5px 0;  
  transition: color 0.3s ease;
  font-size: 0.92em;
  letter-spacing: 0.3px;
}

/* Подчеркивание при наведении */  
.desktop-nav > ul > li > a::after {  
  content: '';  
  position: absolute;  
  bottom: -4px;  
  left: 0;  
  width: 0;  
  height: 2px;  
  background-color: #dc3545;
  transition: width 0.3s ease;  
  z-index: 1001;  
}

.desktop-nav > ul > li > a:hover {  
  color: white;  
}  

.desktop-nav > ul > li > a:hover::after {  
  width: 100%;  
}  

/* Подсвечивание активного пункта меню */  
.desktop-nav > ul > li > a.active {  
  color: white !important;  
  position: relative;  
}  

.desktop-nav > ul > li > a.active::after {  
  content: '';  
  position: absolute;  
  bottom: -4px;  
  left: 0;  
  width: 100% !important;  
  height: 2px;  
  background-color: #dc3545;
  z-index: 5;  
}

/* Контейнер для балансов - вертикальное расположение */
.balance-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 15px;
  gap: 2px;
}

/* Анимированное появление блока с RedPoints */  
#redpoints-balance {  
  font-family: 'Future Z', sans-serif;  
  color: #e90303;  
  font-size: 1.1em;  
  animation: pulsateRP 2s infinite alternate;  
  line-height: 1.2;
}

/* Блок с игровыми деньгами */
#money-balance {
  font-family: 'Future Z', sans-serif;
  color: #4caf50;
  font-size: 1.1em;
  animation: pulsateMoney 2s infinite alternate;
  line-height: 1.2;
}

@keyframes pulsateMoney {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
  }
}

/* Анимация при обновлении RP */  
#redpoints-balance.rp-updated {  
  animation: rpUpdate 1s ease;  
}  

/* Социальные сети с эффектом при наведении */  
.social-links {  
  display: flex;  
  align-items: center;  
  margin: 0;  
  padding: 0;  
  list-style: none;  
  height: 100%;  
}  

.social-links li {  
  margin: 0 5px;  
  opacity: 0;  
  display: flex;  
  align-items: center;  
  height: 100%;  
  animation: fadeInUp 0.5s ease forwards;  
}  

.social-links li:nth-child(1) { animation-delay: 0.4s; }  
.social-links li:nth-child(2) { animation-delay: 0.5s; }  
.social-links li:nth-child(3) { animation-delay: 0.6s; }  
.social-links li:nth-child(4) { animation-delay: 0.7s; }  

.social-links li a {  
  display: flex;  
  align-items: center;  
  height: 100%;  
}  

.social-links li a img {  
  width: 20px;  
  height: 20px;  
  transition: transform 0.3s ease, filter 0.3s ease;  
  filter: grayscale(20%);  
}  

.social-links li a:hover img {  
  transform: translateY(-3px);  
  filter: grayscale(0%);  
}  

/* Статусы авторизации с анимацией появления */  
.auth-status {  
  font-size: 13px;  
  padding: 5px 12px;  
  border-radius: 20px;  
  margin-right: 10px;  
  opacity: 0;  
  animation: fadeIn 0.8s ease forwards;  
  animation-delay: 0.8s;  
  font-weight: 500;  
}  

.auth-status.logged-in {  
  color: #ffffff;  
  background-color: rgba(46, 204, 113, 0.2);  
  border: 1px solid rgba(46, 204, 113, 0.5);  
}  

.auth-status.logged-out {  
  color: #ffffff;  
  background-color: rgba(231, 76, 60, 0.2);  
  border: 1px solid rgba(231, 76, 60, 0.5);  
}  

/* Кнопка входа с эффектами */  
.login-btn {  
  display: inline-block;  
  padding: 8px 18px;  
  background-color: #dc3545;
  color: #fff;  
  text-decoration: none;  
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;  
  opacity: 0;  
  animation: fadeIn 0.8s ease forwards;  
  animation-delay: 0.9s;  
  position: relative;  
  overflow: hidden;  
  font-weight: 600;
  font-size: 14px;  
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.login-btn::before {  
  content: '';  
  position: absolute;  
  top: 0;  
  left: -100%;  
  width: 100%;  
  height: 100%;  
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);  
  transition: left 0.5s ease;  
}  

.login-btn:hover {  
  background-color: #b91c2c;
  transform: translateY(-2px);  
  box-shadow: 0 4px 14px rgba(220, 53, 69, 0.4);
}

.login-btn:hover::before {  
  left: 100%;  
}  

.login-btn:active {  
  transform: translateY(0);  
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);  
}  

/* Мобильное меню - кнопка */  
.menu-toggle {  
  display: none;  
  flex-direction: column;  
  cursor: pointer;  
  z-index: 1001;
  margin-left: auto;
  margin-right: 15px;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
}  

.menu-toggle span {  
  display: block;
  width: 25px;  
  height: 3px;  
  background-color: #fff;  
  margin: 3px 0;  
  transition: all 0.3s ease;
  border-radius: 2px;
  transform-origin: center;
} 

.menu-toggle.active span:nth-child(1) {  
  transform: rotate(45deg) translate(6px, 6px);  
}  

.menu-toggle.active span:nth-child(2) {  
  opacity: 0;
  transform: scaleX(0);
}  

.menu-toggle.active span:nth-child(3) {  
  transform: rotate(-45deg) translate(6px, -6px);  
} 

/* Мобильное меню */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background-color: rgba(10, 12, 18, 0.98);
  border-top: 1px solid rgba(220, 53, 69, 0.15);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Стили для мобильного меню */
.mobile-menu nav ul {
  list-style: none;
  padding: 20px 0;
  margin: 0;
}

.mobile-menu nav ul li {
  margin: 0;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideIn 0.3s ease forwards;
}

.mobile-menu.active nav ul li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu nav ul li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu nav ul li:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu nav ul li:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu nav ul li:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu nav ul li:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu nav ul li:nth-child(6) { animation-delay: 0.35s; }
.mobile-menu nav ul li:nth-child(7) { animation-delay: 0.4s; }

.mobile-menu nav ul li a {
  display: block;
  padding: 15px 30px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.mobile-menu nav ul li a:active,
.mobile-menu nav ul li a:hover {
  background-color: rgba(255, 77, 77, 0.1);
  padding-left: 40px;
  color: #ff4d4d;
}

.mobile-menu nav ul li a.active {
  color: #ff4d4d;
  background-color: rgba(255, 77, 77, 0.1);
}

/* Заголовки групп в мобильном меню */
.mobile-nav-group-label {
  padding: 10px 30px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #dc3545;
  opacity: 0.8;
  pointer-events: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 4px;
}

.mobile-nav-group-item > a {
  padding-left: 42px !important;
  font-size: 16px !important;
}

/* Нижняя часть мобильного меню */
.mobile-menu-bottom {
  padding: 20px 30px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.mobile-redpoints {
  font-family: 'Future Z', sans-serif;
  color: #e90303;
  font-size: 1.2em;
  margin-bottom: 15px;
  text-align: center;
}

.mobile-login-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #dc3545;
  color: #fff;
  text-decoration: none;
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.mobile-login-btn:active {
  background-color: #b91c2c;
  transform: scale(0.98);
}

/* Социальные иконки в мобильном меню */
.mobile-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.mobile-social a img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.mobile-social a:active img {
  transform: scale(0.9);
}

/* Предотвращение прокрутки body при открытом меню */
body.menu-open {
  overflow: hidden;
}

/* Стили для touch-устройств */
.touch-device .mobile-menu nav ul li a.touch-active {
  background-color: rgba(255, 77, 77, 0.2);
  padding-left: 40px;
  color: #ff4d4d;
}

.touch-device .mobile-login-btn.touch-active {
  background-color: #e60000;
  transform: scale(0.98);
}

.touch-device .mobile-social a.touch-active img {
  transform: scale(0.9);
}

/* Предотвращение выделения текста при долгом нажатии */
.menu-toggle,
.mobile-menu nav ul li a,
.mobile-login-btn {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Убираем outline для touch устройств */
.touch-device *:focus {
  outline: none;
}

/* Георгиевская лента */
.georgievka-ribbon {  
  position: absolute;
  bottom: -27px;
  width: 100px;
  max-width: 120%;
  height: auto;
  object-fit: contain;
  z-index: 1;
  opacity: 0.9;  
  transition: transform 0.2s ease;  
}  

.georgievka-ribbon:hover {  
  transform: scale(1.05);  
}

/* Анимации */  
@keyframes navbarFadeIn {  
  from {  
    opacity: 0;  
    transform: translateY(-20px);  
  }  
  to {  
    opacity: 1;  
    transform: translateY(0);  
  }  
}  

@keyframes fadeInRight {  
  from {  
    opacity: 0;  
    transform: translateX(-15px);  
  }  
  to {  
    opacity: 1;  
    transform: translateX(0);  
  }  
}  

@keyframes fadeInUp {  
  from {  
    opacity: 0;  
    transform: translateY(10px);  
  }  
  to {  
    opacity: 1;  
    transform: translateY(0);  
  }  
}  

@keyframes fadeIn {  
  from {  
    opacity: 0;  
  }  
  to {  
    opacity: 1;  
  }  
}  

@keyframes logoGlow {  
  0% {  
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.3);  
  }  
  100% {  
    text-shadow: 0 0 15px rgba(255, 68, 68, 0.5);  
  }  
}  

@keyframes pulsateRP {  
  0% {  
    transform: scale(1);  
  }  
  100% {  
    transform: scale(1.05);  
    text-shadow: 0 0 10px rgba(233, 3, 3, 0.4);  
  }  
}  

@keyframes rpUpdate {  
  0% {  
    transform: scale(1);  
  }  
  50% {  
    transform: scale(1.2);  
    text-shadow: 0 0 15px rgba(233, 3, 3, 0.6);  
  }  
  100% {  
    transform: scale(1);  
  }  
}  

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Иконка «Как зайти» (вариант B) ── */
.guide-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #dc3545;
  border: 2px solid rgba(220, 53, 69, 0.45);
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
  animation: guidePulse 2.8s ease-in-out infinite;
}

.guide-icon-btn svg {
  width: 17px;
  height: 17px;
}

.guide-icon-btn:hover {
  background: rgba(220, 53, 69, 0.12);
  border-color: #dc3545;
  color: #ff4d4d;
  transform: scale(1.1);
  animation: none;
  box-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

/* Тултип */
.guide-icon-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: rgba(10, 12, 18, 0.97);
  border: 1px solid rgba(220, 53, 69, 0.35);
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1020;
}

.guide-icon-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: rgba(220, 53, 69, 0.35);
}

.guide-icon-btn:hover .guide-icon-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Форум-уведомления в шапке */
.nav-bell {
  position: relative;
  flex-shrink: 0;
}

.nav-bell-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(220, 53, 69, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-bell-btn:hover,
.nav-bell-btn[aria-expanded="true"] {
  color: #fff;
  background: rgba(220, 53, 69, 0.18);
  border-color: rgba(220, 53, 69, 0.7);
}

.nav-bell-btn svg {
  width: 17px;
  height: 17px;
}

.nav-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 5px;
  background: #dc3545;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border: 1px solid rgba(10, 12, 18, 0.9);
}

.nav-bell-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, calc(100vw - 20px));
  max-height: 420px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(220, 53, 69, 0.28);
  background: rgba(10, 12, 18, 0.98);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  z-index: 1015;
}

.nav-bell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  font-size: 13px;
}

.nav-bell-list {
  max-height: 320px;
  overflow-y: auto;
}

.nav-bell-filters {
  display: flex;
  gap: 6px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-bell-filter {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}

.nav-bell-filter.is-active {
  color: #fff;
  border-color: rgba(220, 53, 69, 0.55);
  background: rgba(220, 53, 69, 0.2);
}

.nav-bell-item {
  display: block;
  padding: 11px 14px;
  color: #d1d5db;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease;
}

.nav-bell-item:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #fff;
}

.nav-bell-item__title {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.nav-bell-item__meta {
  display: block;
  color: #9ca3af;
  font-size: 12px;
}

.nav-bell-empty {
  padding: 18px 14px;
  color: #9ca3af;
  font-size: 13px;
}

.nav-bell-footer {
  display: block;
  padding: 10px 14px;
  color: #f87171;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 600;
}

.nav-bell-footer:hover {
  color: #fff;
  background: rgba(220, 53, 69, 0.08);
}

@keyframes guidePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
  50% { box-shadow: 0 0 0 5px rgba(220, 53, 69, 0.12); }
}

/* ── Инфополоска для гостей (вариант C) ── */
.guide-strip {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  z-index: 998;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg,
    rgba(10, 12, 18, 0.97) 0%,
    rgba(28, 6, 6, 0.97) 40%,
    rgba(28, 6, 6, 0.97) 60%,
    rgba(10, 12, 18, 0.97) 100%
  );
  border-bottom: 1px solid rgba(220, 53, 69, 0.25);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  animation: stripSlideDown 0.4s ease;
}

.guide-strip.dismissed {
  display: none;
}

.guide-strip-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #9ca3af;
}

.guide-strip-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dc3545;
  flex-shrink: 0;
  animation: stripDot 1.6s ease-in-out infinite;
}

.guide-strip-text {
  color: #9ca3af;
}

.guide-strip-link {
  color: #dc3545;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: color 0.2s ease;
  letter-spacing: 0.2px;
}

.guide-strip-link:hover {
  color: #ff4d4d;
  text-decoration: underline;
}

.guide-strip-close {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: #4b5563;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  transition: color 0.2s ease;
  font-family: inherit;
}

.guide-strip-close:hover {
  color: #9ca3af;
}

@keyframes stripSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes stripDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.7); }
}

/* ── Баннер для ghost-аккаунтов (создан через сайт, ещё не был на игровом сервере) ──
 * По компоновке копирует guide-strip / impersonation-banner: fixed под навбаром,
 * чтобы не ломать flex-разметку body и не давить высоту main. Компенсация
 * main margin-top подаётся через body.has-ghost-banner (см. ниже).
 */
.ghost-banner {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  width: 100%;
  height: 38px;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg,
    rgba(10, 12, 18, 0.97) 0%,
    rgba(40, 28, 6, 0.97) 40%,
    rgba(40, 28, 6, 0.97) 60%,
    rgba(10, 12, 18, 0.97) 100%
  );
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  animation: stripSlideDown 0.4s ease;
}

.ghost-banner__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  padding: 0 20px;
  max-width: 1200px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.ghost-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  font-size: 12px;
  flex-shrink: 0;
}

.ghost-banner__text {
  color: #d4d4d8;
  font-size: 13px;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.1px;
}

.ghost-banner__link {
  color: #f59e0b;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.ghost-banner__link:hover {
  color: #fbbf24;
  text-decoration: underline;
}

/* Когда ghost-banner показан, сдвигаем main вниз на высоту навбара + баннера. */
body.has-ghost-banner main {
  margin-top: 118px; /* 70 navbar + 38 banner + 10 запас */
}

@media (max-width: 768px) {
  .ghost-banner {
    height: auto;
    min-height: 38px;
  }
  .ghost-banner__inner {
    flex-wrap: nowrap;
    padding: 0 12px;
    gap: 8px;
    font-size: 12px;
  }
  .ghost-banner__text {
    font-size: 12px;
  }
  .ghost-banner__link {
    font-size: 12px;
  }
  body.has-ghost-banner main {
    margin-top: 118px;
  }
}

/* Адаптивность для мобильных устройств */  
@media (max-width: 768px) {  
  .navbar {  
    padding: 10px 15px;  
  }  

  .nav-logo {
    font-size: 36px;
    margin-right: 15px;
  }

  .menu-toggle {  
    display: flex;
  }  
  
  .desktop-nav {
    display: none;
  }
  
  .nav-right {
    display: none;
  }

  .guide-strip-text {
    display: none;
  }

  .guide-strip-inner {
    gap: 8px;
  }
  
  .mobile-menu {
    display: block;
  }

  .mobile-menu nav ul li a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  .mobile-login-btn {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-social a {
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}  

@media (max-width: 480px) {  
  .navbar {  
    padding: 8px 15px;  
  }  
  
  .nav-logo {  
    font-size: 30px;  
  }  
  
  .mobile-menu nav ul li a {
    font-size: 16px;
    padding: 12px 25px;
  }
  
  .mobile-social a img {
    width: 25px;
    height: 25px;
  }
}

/* ── Impersonation banner ────────────────────────────────────────────────── */
.impersonation-banner {
  position: fixed;
  top: 70px; /* sit directly below the navbar */
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 20px;
  background: linear-gradient(90deg, #7c1a1a 0%, #a02020 50%, #7c1a1a 100%);
  border-bottom: 2px solid #e03030;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 12px rgba(200, 30, 30, 0.45);
  animation: impersonationPulse 3s ease-in-out infinite;
}

@keyframes impersonationPulse {
  0%, 100% { box-shadow: 0 3px 12px rgba(200, 30, 30, 0.45); }
  50%       { box-shadow: 0 3px 20px rgba(200, 30, 30, 0.75); }
}

.impersonation-banner__icon {
  font-size: 16px;
  flex-shrink: 0;
}

.impersonation-banner__label {
  opacity: 0.85;
}

.impersonation-banner__name {
  font-weight: 800;
  color: #ffd0d0;
}

.impersonation-banner__stop {
  margin-left: 8px;
  padding: 4px 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.impersonation-banner__stop:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ── Survey notification strip ──────────────────────────────────────────── */
/*
 * Показывается под навбаром (top: 70px), когда у авторизованного игрока есть
 * непройденные опросы. Управляется через navbar.js (initSurveyStrip).
 * body.has-survey-strip сдвигает main вниз аналогично ghost-banner.
 */
.survey-strip {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  width: 100%;
  height: 40px;
  z-index: 996;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg,
    rgba(10, 12, 18, 0.97) 0%,
    rgba(90, 10, 10, 0.97) 35%,
    rgba(100, 12, 12, 0.97) 65%,
    rgba(10, 12, 18, 0.97) 100%
  );
  border-bottom: 1px solid rgba(220, 53, 69, 0.5);
  color: #fca5a5;
  box-shadow: 0 2px 14px rgba(220, 53, 69, 0.2);
  animation: stripSlideDown 0.35s ease;
}

.survey-strip[hidden] {
  display: none;
}

.survey-strip__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  padding: 0 16px 0 20px;
  max-width: 1200px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.survey-strip__icon {
  color: #ef4444;
  font-size: 15px;
  flex-shrink: 0;
  animation: surveyStripPulse 2.2s ease-in-out infinite;
}

@keyframes surveyStripPulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.9); }
}

.survey-strip__text {
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 500;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.1px;
}

.survey-strip__link {
  color: #ef4444;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  flex-shrink: 0;
  transition: color 0.2s ease;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.survey-strip__link:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.6);
  background: rgba(239, 68, 68, 0.08);
}

.survey-strip__close {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 14px;
  flex-shrink: 0;
  transition: color 0.2s ease;
  margin-left: auto;
}

.survey-strip__close:hover {
  color: #d1d5db;
}

body.has-survey-strip main {
  margin-top: 120px; /* 70 navbar + 40 strip + 10 запас */
}

@media (max-width: 768px) {
  .survey-strip {
    height: auto;
    min-height: 40px;
  }

  .survey-strip__inner {
    flex-wrap: nowrap;
    padding: 6px 10px 6px 14px;
    gap: 8px;
    font-size: 12px;
  }

  .survey-strip__text {
    font-size: 12px;
  }

  .survey-strip__link {
    font-size: 12px;
  }

  body.has-survey-strip main {
    margin-top: 120px;
  }
}
