/* ========== ИМПОРТ ШРИФТОВ ========== */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* ========== BASE ========== */
html, body {
  overflow-x: hidden;
}
body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Open Sans', system-ui, sans-serif;
  background: #1a1a2e;
  background-attachment: fixed;
  color: #ffffff;
  position: relative;
}

/* Добавляем декоративный фон с магическими элементами */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(30, 58, 138, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(15, 23, 42, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(30, 58, 138, 0.05) 0%, transparent 30%);
  pointer-events: none;
  z-index: -1;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 180px;
  height: 100vh;
  background: #16213e;
  border-right: 3px solid #1e3a8a;
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.4);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 900;
  box-sizing: border-box;
}

/* Декоративная рамка для сайдбара */
.sidebar::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px solid #1e40af;
  border-radius: 8px;
  opacity: 0.3;
  pointer-events: none;
}

.logo {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 0px;
}

.logo .chip {
  color: #60a5fa;
  text-shadow: none;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: #1e293b;
  border: 1px solid rgba(59, 130, 246, 0.2);
  position: relative;
  overflow: hidden;
}

.menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
  transition: left 0.5s;
}

.menu a:hover::before {
  left: 100%;
}

.menu a:hover {
  background: #334155;
  border-color: #3b82f6;
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.icon {
  font-size: 1.2rem;
  color: #60a5fa;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.support-btn {
  display: block;
  width: auto;
  min-width: 100px;
  text-align: center;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  padding: 0.75rem;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
  border: none;
  text-shadow: none;
  position: relative;
  overflow: hidden;
}

.support-btn::before {
  content: '✨';
  position: absolute;
  top: 50%;
  left: -30px;
  transform: translateY(-50%);
  font-size: 1.5rem;
  animation: sparkle 2s infinite;
}

@keyframes sparkle {
  0%, 100% { left: -30px; opacity: 0; }
  50% { left: calc(100% + 10px); opacity: 1; }
}

.support-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6);
  transform: translateY(-3px);
}

/* Скрыть sidebar на мобильных */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
}

/* ========== BURGER ========== */
.burger {
  display: none;
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1100;
  background: #1e293b;
  color: #ffffff;
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
}

/* ========== HEADER / TOPBAR ========== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #16213e;
  border-bottom: 3px solid #1e3a8a;
  padding: 0.75rem 1rem;
  height: 70px;
  position: relative;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Декоративные элементы для топбара */
.topbar::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1e3a8a, #3b82f6, #1e3a8a);
}

/* ====== BURGER (mobile only) ====== */
.subnav-toggle {
  font-size: 0.85rem !important;
  line-height: 1 !important;
  padding: 0.5rem !important;
  width: 2rem !important;
  height: 2rem !important;
  display: none;
  background: #1e293b;
  border: 1px solid #3b82f6;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
}
/* ====== SUBNAV (левое меню) ====== */
.subnav {
  display: flex;
  margin-left: 100px;
  gap: 1rem;
}

.subnav a {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  background: #1e293b;
  border: 2px solid rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.subnav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.subnav a:hover::before {
  transform: translateX(100%);
}

.subnav a:hover,
.subnav a:focus {
  background: #334155;
  border-color: #3b82f6;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* обёртка для правых кнопок */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: 150px;
}

.topbar-right .btn {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Фон и текст для Register */
.topbar-right .btn-register {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  text-shadow: none;
}

.topbar-right .btn-register:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.6);
  transform: translateY(-3px);
}

/* Обводка для Log In */
.topbar-right .btn-login {
  background: transparent;
  color: #ffffff;
  border: 2px solid #3b82f6;
}

.topbar-right .btn-login:hover {
  background: #3b82f6;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

/* ====== АДАПТАЦИЯ ДЛЯ 14-ДЮЙМОВЫХ ЭКРАНОВ ====== */
@media (max-width: 1440px) {
  .subnav {
    margin-left: 160px; /* значительно уменьшаем отступ слева */
    gap: 0.4rem; /* минимальный промежуток */
  }
  
  .subnav a {
    padding: 0.4rem 0.6rem; /* компактный padding */
    font-size: 0.8rem; /* уменьшаем шрифт */
  }
  
  .topbar-right {
    margin-right: 50px; /* минимальный отступ справа */
    gap: 0.4rem; /* минимальный промежуток */
  }
  
  .topbar-right .btn {
    padding: 0.4rem 0.8rem; /* компактные кнопки */
    font-size: 0.75rem; /* уменьшаем шрифт */
  }
}

/* ====== ДЛЯ ЭКРАНОВ 1366x768 (типичные 14") ====== */
@media (max-width: 1366px) {
  .subnav {
    margin-left: 140px; /* ещё меньше отступ */
    gap: 0.3rem;
  }
  
  .subnav a {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .topbar-right {
    margin-right: 30px; /* минимальный отступ */
    gap: 0.3rem;
  }
  
  .topbar-right .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }
}

/* ====== ДЛЯ УЗКИХ ЭКРАНОВ ====== */
@media (max-width: 1200px) {
  .subnav {
    margin-left: 120px; /* очень маленький отступ */
    gap: 0.2rem;
  }
  
  .subnav a {
    padding: 0.25rem 0.4rem;
    font-size: 0.7rem;
  }
  
  .topbar-right {
    margin-right: 20px; /* минимальный отступ */
    gap: 0.2rem;
  }
  
  .topbar-right .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
  }
}

/* ====== ДЛЯ ОЧЕНЬ УЗКИХ ЭКРАНОВ ====== */
@media (max-width: 1024px) {
  .subnav {
    margin-left: 100px;
    gap: 0.15rem;
  }
  
  .subnav a {
    padding: 0.2rem 0.3rem;
    font-size: 0.7rem;
  }
  
  .topbar-right {
    margin-right: 10px;
    gap: 0.15rem;
  }
  
  .topbar-right .btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
  }
}
/* Мобильные стили */
@media (max-width: 768px) {
  .topbar-right {
    margin-right: 0;
    gap: 0.5rem;
  }
  
  .topbar-right .btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
  
  .topbar-right .btn-register:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  }
  
  .topbar-right .btn-login:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  }
}


/* ====== МОБИЛЬНЫЕ СТИЛИ ====== */
@media (max-width: 768px) {
  .topbar {
    justify-content: space-between;
    padding: 0.75rem 1rem;
  }
  
  .subnav-toggle {
    display: block;
    order: -1;
    background: #1e293b;
    border: 1px solid #3b82f6;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  }
  
  .subnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #16213e;
    flex-direction: column;
    padding: 1rem;
    margin-left: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
  
  .subnav.active {
    display: flex;
  }
  
  .subnav.active {
    gap: 0;
  }
  
  .subnav a {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .subnav a:last-child {
    border-bottom: none;
  }
  
  .topbar-right {
    margin-left: auto;
  }
}

/* ========== MAIN ========== */
.main {
  padding: 2rem 1rem;
  margin-top: 10px;
  margin-left: 90px;
  width: calc(100% - 240px);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .main {
    margin-left: 0;
    width: 100%; 
  }
}

/* ========== HERO ========== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 12px;
  border: 4px solid #047857;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  margin-bottom: 3rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Декоративная рамка для героя */
.hero-section::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 2rem;
  width: 100%;
}

.hero-title {
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.5em;
  color: #ffffff;
  text-shadow: 
    0 0 30px rgba(0, 0, 0, 1),
    6px 6px 12px rgba(0, 0, 0, 1),
    12px 12px 24px rgba(0, 0, 0, 0.9);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.8rem);
  margin-bottom: 1.5em;
  color: #ffffff;
  text-shadow: 
    0 0 40px rgba(0, 0, 0, 1),
    6px 6px 12px rgba(0, 0, 0, 1),
    12px 12px 24px rgba(0, 0, 0, 0.95);
  font-weight: 400;
  line-height: 1.4;
}

.hero-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
  transition: all 0.3s ease;
  border: none;
  text-shadow: none;
  position: relative;
  overflow: hidden;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

.hero-btn:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.6);
  transform: translateY(-5px);
}

/* Большие экраны - делаем еще шире и выше */
@media (min-width: 1200px) {
  .hero-section {
    max-width: 2200px;
    min-height: 400px;
    border-radius: 12px;
  }
  
  .hero-content {
    padding: 3rem;
  }
}

/* Средние экраны */
@media (min-width: 768px) and (max-width: 1199px) {
  .hero-section {
    max-width: 1200px;
    min-height: 55vh;
  }
}

/* Планшеты */
@media (max-width: 767px) {
  .hero-section {
    border-radius: 8px;
    min-height: 45vh;
    margin-bottom: 2rem;
    border: 3px solid #047857;
  }
  
  .hero-content {
    padding: 1.5rem;
  }
  
  .hero-section::before {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 6px;
  }
}

/* Мобильные телефоны */
@media (max-width: 480px) {
  .hero-section {
    border-radius: 6px;
    min-height: 40vh;
    margin-bottom: 1.5rem;
    border: 2px solid #047857;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;  
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .hero-btn {
    padding: 0.8rem 2rem;
  }
}

/* ========== GAME SECTIONS ========== */
.game-section {
  margin: 3rem 0;
  padding: 2rem;
  background: #16213e;
  border: 4px solid #1e3a8a;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}

.game-section::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  pointer-events: none;
}

.game-section.hidden {
  display: none;
}

/* ========== GAME SECTION HEADER ========== */
.game-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #1e3a8a;
}

.game-section-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-section-controls {
  display: flex;
  gap: 0.5rem;
}

.game-nav-prev,
.game-nav-next {
  background: #1e293b;
  color: #ffffff;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.game-nav-prev:hover,
.game-nav-next:hover {
  background: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
  transform: translateY(-2px);
}

.game-nav-prev:active,
.game-nav-next:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

/* ========== GAMES GRID ========== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ===== GAME NAVIGATION ===== */
.game-nav {
  background: #1e293b;
  padding-right: 20px; 
  padding-left: 20px;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #334155;
}

.game-nav-container {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.game-nav-container::-webkit-scrollbar {
  display: none;
}

.game-nav-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 20.8px 31.2px;
  cursor: pointer;
  font-size: 18.2px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  border-bottom: 3.9px solid transparent;
}

.game-nav-tab:hover {
  color: #ffffff;
  background: #334155;
}

.game-nav-tab.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

/* ===== GAME SECTIONS ===== */
.game-section {
  padding-left: 20px;
  padding-right: 20px; 
  margin-bottom: 50px;
}

.game-section.hidden {
  display: none;
}

.game-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.game-section-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Open Sans', sans-serif;
}

.game-section-controls {
  display: flex;
  gap: 8px;
}

.game-nav-prev,
.game-nav-next {
  background: #334155;
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #3b82f6;
}

.game-nav-prev:hover,
.game-nav-next:hover {
  background: #3b82f6;
  transform: scale(1.1);
}

/* ===== GAMES GRID ===== */
.games-grid {
  padding-left: 20px;
  padding-right: 20px; 
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 20px;
}

.game-card {
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid #334155;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: #3b82f6;
}

.game-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-image {
  transform: scale(1.05);
}

/* ===== GAME ACTIONS OVERLAY ===== */
.game-actions {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-actions {
  opacity: 1;
}

.btn-demo,
.btn-play,
.btn-play-single {
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.btn-demo {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
}

.btn-demo:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
}

.btn-play,
.btn-play-single {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: none;
}

.btn-play:hover,
.btn-play-single:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-2px);
}

/* ===== BADGES ===== */
.jackpot-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.jackpot-icon {
  font-size: 14px;
}

.exclusive-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-title {
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  line-height: 1.4;
}

/* ========== BONUS TILES ========== */
.bonus-tiles {
  display: grid;
  gap: 1.5rem;
  margin: 3rem 0;
  padding: 0 1rem;
  grid-auto-rows: 1fr;
}

@media (max-width: 768px) { 
  .bonus-tiles { 
    grid-template-columns: 1fr; 
    padding: 0 0.5rem; 
  } 
}
@media (min-width: 769px) and (max-width: 1024px) { 
  .bonus-tiles { 
    grid-template-columns: repeat(2, 1fr); 
  } 
}
@media (min-width: 1025px) { 
  .bonus-tiles { 
    grid-template-columns: repeat(3, 1fr); 
  } 
}

.bonus-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #16213e;
  border: 3px solid #1e3a8a;
  padding: 1.5rem;
  border-radius: 12px;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bonus-tile::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  pointer-events: none;
  transition: all 0.3s ease;
}

.bonus-tile:hover::before {
  border-color: #3b82f6;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.3);
}

.bonus-tile:hover {
  transform: translateY(-10px);
  border-color: #3b82f6;
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.bonus-tile .image-wrapper {
  height: 150px;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 8px;
}

.bonus-tile .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bonus-tile:hover .image-wrapper img {
  transform: scale(1.1);
}

.bonus-tile h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.bonus-tile p {
  margin-bottom: 1rem;
  flex-grow: 1;
  color: #94a3b8;
}

.bonus-tile a {
  display: inline-block;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  border: none;
  text-shadow: none;
}

.bonus-tile a:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.6);
  transform: translateY(-3px);
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-nav,
.mobile-menu-panel {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #16213e;
    border-top: 3px solid #1e3a8a;
    padding: 0.5rem 0;
    justify-content: space-around;
    z-index: 999;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.4);
  }

  .mobile-menu-panel.open {
    display: flex !important;
  }

  .mobile-nav a {
    color: #94a3b8;
    font-size: 0.7rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
  }

  .mobile-nav a:hover,
  .mobile-nav a.active {
    color: #3b82f6;
  }

  .mobile-menu-panel {
    display: none;
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background: #16213e;
    padding: 1rem;
    border-top: 1px solid #334155;
    z-index: 999;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mobile-menu-panel a {
    display: block;
    color: #ffffff;
    padding: 0.75rem 1rem;
    background: #1e293b;
    border-radius: 8px;
    text-align: center;
  }
}

/* ========== TOP NAVIGATION (MOBILE ONLY) ========== */
.topnav {
  background: #16213e;
  padding: 0.4rem 0.5rem;
  border-bottom: 3px solid #1e3a8a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: none;
}

/* Показываем topnav только на мобилке */
@media (max-width: 768px) {
  .topnav {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .topnav-visible {
    display: flex;
    gap: 0.2rem;
    flex-wrap: nowrap;
    justify-content: space-between;
    overflow-x: auto;
  }

  .topnav-visible .more-toggle {
    display: flex !important;
  }
}

/* Скрываем topnav и topnav-visible на десктопе */
@media (min-width: 769px) {
  .topnav,
  .topnav-visible {
    display: none !important;
  }
}

.topnav-visible a {
  flex: 1 1 18%;
  min-width: 48px;
  background: #1e293b;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  color: #ffffff;
  text-align: center;
  font-size: 0.65rem;
  padding: 0.4rem 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: 'Open Sans', sans-serif;
  font-weight: 500;
}

.topnav-visible a i {
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
  color: #60a5fa;
}

.topnav-hidden {
  display: none;
}

.topnav-hidden.open {
  display: flex;
  flex-wrap: wrap;
}

.mobile-logo {
  display: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-align: center;
}

.mobile-logo .chip {
  color: #60a5fa;
}

/* ==== Показываем логотип и ограничиваем его размер на мобилке ==== */
@media (max-width: 768px) {
  .mobile-logo {
    display: block !important;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .mobile-logo img {
    max-width: 120px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}

.logo img {
  height: 36px;
  object-fit: contain;
}

/* ========== FOOTER ========== */
.footer {
  background: #0f172a;
  color: #ffffff;
  margin-top: auto;
  border-top: 4px solid #1e3a8a;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.3);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e3a8a, #3b82f6, #1e3a8a);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Основная сетка футера */
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

/* Брендинг */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.footer-description {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Колонки навигации */
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: #3b82f6;
}

/* Контактная информация */
.footer-contact p {
  margin: 0.5rem 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-contact a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: #3b82f6;
}

/* Нижняя часть футера */
.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-bottom-logo {
  height: 24px;
  width: auto;
}

.footer-copyright {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.footer-text {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

/* Tablet стили */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
  }
}

/* Мобильные стили */
@media (max-width: 768px) {
  .footer-container {
    padding: 1.5rem 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-brand {
    grid-column: 1;
    align-items: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-bottom-left {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-logo {
    height: 32px;
  }
  
  .footer-title {
    font-size: 1.25rem;
  }
}

/* ========== PROSE ========== */
.prose {
  font-size: 1rem;
  line-height: 1.8;
  color: #ffffff;
  margin-top: 3rem;
  font-family: 'Open Sans', sans-serif;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#TableOfContents {
  border: 3px solid #1e3a8a;
  padding: 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  margin: 2rem 0;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: #16213e;
}

#TableOfContents ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#TableOfContents li {
  margin-bottom: 1rem;
}

#TableOfContents a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

#TableOfContents a:hover {
  color: #3b82f6;
}

/* ========== TABLES ========== */
.table-container {
  background: #16213e;
  border: 3px solid #1e3a8a;
  border-radius: 12px;
  margin: 2rem 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: #ffffff;
  background-color: transparent;
  font-family: 'Open Sans', sans-serif;
}

thead {
  background: #1e293b;
}

th {
  padding: 1rem 0.75rem;
  text-align: left;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 2px solid #334155;
}

td {
  padding: 0.875rem 0.75rem;
  border-bottom: 1px solid #334155;
}

tbody tr:hover {
  background: #1e293b;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Ссылки в таблице */
table a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

table a:hover {
  color: #60a5fa;
  text-decoration: underline;
}

/* ========== FAQ ========== */
.faq-block {
  background: #16213e;
  padding: 2rem;
  margin: 3rem 0;
  border-radius: 12px;
  border: 4px solid #1e3a8a;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.faq-heading {
  font-family: 'Open Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.faq-item {
  background: #1e293b;
  border: 3px solid #334155;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-size: 1.125rem;
  transition: all 0.3s ease;
}

.faq-item h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.faq-item div {
  line-height: 1.7;
  color: #94a3b8;
}

.faq-item:hover {
  background: #334155;
  border-color: #3b82f6;
}

@media (max-width: 768px) {
  .prose table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    table-layout: fixed;
    border-collapse: collapse;
  }

  .prose thead,
  .prose tbody {
    display: table;
    width: 790px;
    table-layout: fixed;
  }

  .prose tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  .prose th,
  .prose td {
    white-space: normal;
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
    text-align: left;
  }

  .prose thead th {
    background-color: #1e293b;
    color: #ffffff;
  }

  .prose tbody tr {
    border-bottom: 1px solid #334155;
  }
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 1000;
  padding: 12px 16px;
  font-size: 18px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.6);
}

/* Тонкая верхняя полоска с логотипом и языковым переключателем */
.top-bar {
  background-color: #0f172a;
  padding: 6px 0;
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid #1e293b;
}

.top-bar-content {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.top-bar-logo img {
  margin-left: 100px;
  height: 50px;
  width: auto;
}

/* Языковой переключатель */
.language-switcher {
  position: relative;
  display: inline-block;
  margin-right: 10px;
}

.lang-current {
  background-color: transparent;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  color: #ffffff;
  position: relative;
  min-width: 60px;
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  transition: all 0.3s ease;
}

.lang-current:hover {
  background-color: #1e293b;
  border-color: #3b82f6;
}

.lang-current::after {
  content: '▼';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #60a5fa;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #1e293b;
  border: 1px solid #334155;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1001;
}

.language-switcher:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
}

.lang-option {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #ffffff;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: bold;
  border-bottom: 1px solid #334155;
  transition: all 0.3s ease;
}

.lang-option:hover {
  background-color: #334155;
  color: #3b82f6;
}

.lang-option:last-child {
  border-bottom: none;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .top-bar {
    padding: 4px 0;
  }
  
  .top-bar-content {
    padding: 0 15px;
  }
  
  .top-bar-logo img {
    height: 30px;
  }
  
  .lang-current {
    min-width: 50px;
    padding: 4px 8px;
    font-size: 11px;
  }
}