/* ===== CSS ПЕРЕМЕННЫЕ (MEGARICH CASINO THEME) ===== */
:root {
  /* Font Awesome переменные */
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
  --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
  --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
  --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
  
  /* Bootstrap цвета - адаптированы под MEGARICH Casino */
  --blue: #1F56FF;
  --indigo: #6610f2;
  --purple: #6f42c1;
  --pink: #e83e8c;
  --red: #FF0011;
  --orange: #FF4A2B;
  --yellow: #FFCC00;
  --green: #1BCB1E;
  --teal: #20c997;
  --cyan: #17a2b8;
  --white: #FFFFFF;
  --gray: #CCCCCC;
  --gray-dark: #2C2C2C;
  --primary: #FFCC00;
  --secondary: #CCCCCC;
  --success: #1BCB1E;
  --info: #1F56FF;
  --warning: #FFCC00;
  --danger: #FF0011;
  --light: #2C2C2C;
  --dark: #141414;
  
  /* Breakpoints */
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  
  /* Шрифты - MEGARICH Casino стиль */
  --font-family-sans-serif: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-regular: "Roboto", sans-serif;
  --font-light: "Roboto", sans-serif;
  --font-title-heading: "Oswald", sans-serif;
  
  /* Дизайн-система MEGARICH Casino */
  --button-radius: 6px;
  --shadow-color: rgba(0, 0, 0, 0.8);
  --primary-color: #FFCC00;
  --darken-primary-color: #FFAA00;
  --lighten-primary-color: #FFDD33;
  --site-background-color: #141414;
  --darken-site-background-color: #0F0F0F;
  --loader-darken-background-color: #FFAA00;
  --loader-lighten-background-color: #FFDD33;
  --site-background-text-color: #FFFFFF;
  --site-background-color-secondary: #2C2C2C;
  --site-background-text-color-secondary: #CCCCCC;
  --header-background-color: #141414;
  --header-background-text-color: #FFFFFF;
  --footer-background-color: #0F0F0F;
  --footer-background-text-color: #FFFFFF;
  --button-background: linear-gradient(135deg, #FFCC00 0%, #FF0011 100%);
  --darken-button-background: linear-gradient(135deg, #FFAA00 0%, #DD0010 100%);
  --site-radius: 8px;
  --game-hover: rgba(255, 204, 0, 0.15);
  
  /* Дополнительные переменные для MEGARICH Casino */
  --body-background: #141414;
  --text-muted: rgba(255,255,255,0.7);
  --text-muted-dark: rgba(255,255,255,0.8);
  --text-light: rgba(255,255,255,0.9);
  --border-light: rgba(255,204,0,0.3);
  --overlay-dark: rgba(20,20,20,0.9);
  --overlay-darker: rgba(20,20,20,0.95);
  --overlay-light: rgba(20,20,20,0.7);
  --card-background: #2C2C2C;
  --search-background: #3C3C3C;
  
  /* Swiper переменные */
  --swiper-theme-color: #FFCC00;
  --swiper-navigation-size: 44px;
  
  /* MEGARICH Casino специфичные */
  --megarich-red: #FF0011;
  --megarich-yellow: #FFCC00;
  --megarich-orange: #FF4A2B;
  --popular-blue: #1F56FF;
  --new-green: #1BCB1E;
  --scroll-green: #00F100;
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  list-style: none;
}

body {
  font-family: var(--font-light);
  background: var(--body-background);
  color: var(--site-background-text-color);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center !important;
  font-weight: 400;
  box-sizing: inherit;
  list-style: none;
  -webkit-text-size-adjust: none !important;
}

body.burger-open {
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== КАСТОМНЫЙ СКРОЛЛБАР (MEGARICH СТИЛЬ) ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--site-background-color);
}

::-webkit-scrollbar-thumb {
  background: var(--scroll-green);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00DD00;
}

/* ===== HEADER СТИЛИ (MEGARICH) ===== */
.header {
  background: var(--header-background-color);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(255, 204, 0, 0.2);
  border-bottom: 1px solid rgba(255, 204, 0, 0.2);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.header-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-login {
  background: transparent;
  color: var(--white);
  padding: 10px 24px;
  border-radius: var(--button-radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(255, 204, 0, 0.3);
}

.btn-login:hover {
  background: var(--primary-color);
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
}

.btn-register {
  background: var(--button-background);
  color: #FFFFFF;
  padding: 10px 24px;
  border-radius: var(--button-radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(255, 0, 17, 0.3);
}

.btn-register:hover {
  background: var(--darken-button-background);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 0, 17, 0.4);
}

/* ===== BURGER MENU ===== */
.burger-toggle {
  display: flex;
  order: -1;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 4px;
}

.burger-toggle span {
  width: 24px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100vh;
  background: var(--header-background-color);
  z-index: 1000;
  transition: left 0.3s ease;
  overflow-y: auto;
  border-right: 1px solid var(--border-light);
}

.burger-menu.active {
  left: 0;
}

.burger-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--overlay-darker);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.burger-overlay.active {
  opacity: 1;
  visibility: visible;
}

.burger-menu-content {
  padding: 30px 24px;
}

/* ===== BURGER MENU HEADER ===== */
.burger-menu-header {
  text-align: center;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
}

.burger-menu-logo {
  height: 50px;
  width: auto;
  max-width: 200px;
}

.burger-menu-buttons {
  margin-bottom: 40px;
  margin-top: 0; 
}

.btn-register-burger {
  display: block;
  background: var(--button-background);
  color: #FFFFFF;
  padding: 14px 24px;
  border-radius: var(--button-radius);
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-login-burger {
  display: block;
  background: transparent;
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--button-radius);
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.burger-menu-nav {
  display: flex;
  flex-direction: column;
}

.burger-menu-item {
  color: var(--white);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  transition: color 0.3s ease;
}

.burger-menu-item:hover {
  color: var(--primary-color);
}

.burger-menu-item .arrow {
  font-size: 14px;
  opacity: 0.7;
  color: var(--primary-color);
}

.loyalty-item {
  position: relative;
}

/* ===== HERO BANNER (MEGARICH TOURNAMENT STYLE) ===== */
.hero-section {
  padding: 80px 0 100px;
  text-align: left;
  position: relative;
  background: linear-gradient(135deg, #141414 0%, #2C2C2C 100%);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  min-height: 60vh;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-dark);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
  font-family: var(--font-title-heading);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero-subtitle {
  font-size: 28px;
  color: var(--megarich-red);
  margin-bottom: 30px;
  opacity: 1;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-btn {
  display: inline-block;
  background: var(--megarich-red);
  color: #FFFFFF;
  padding: 18px 36px;
  border-radius: var(--site-radius);
  text-decoration: none;
  font-weight: 900;
  font-size: 16px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(255, 0, 17, 0.4);
  border: 2px solid var(--megarich-red);
}

.hero-btn:hover {
  background: #DD0010;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 0, 17, 0.6);
}

/* ===== FEATURES SECTION ===== */
.features-section {
  background: var(--card-background);
  padding: 60px 0;
  margin-bottom: 40px;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--site-background-color);
  border-radius: var(--site-radius);
  border: 2px solid var(--border-light);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(255, 204, 0, 0.3);
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(88%) sepia(85%) saturate(2500%) hue-rotate(356deg) brightness(102%) contrast(96%);
}

.feature-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
  font-family: var(--font-title-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feature-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== GAME NAVIGATION (MEGARICH CATEGORIES) ===== */
.game-nav {
  background: var(--card-background);
  padding-right: 20px; 
  padding-left: 20px;
  margin-bottom: 30px;
  border-radius: var(--site-radius);
  overflow: hidden;
  border: 2px solid var(--border-light);
}

.game-nav-container {
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-green) var(--card-background);
  -ms-overflow-style: none;
}

.game-nav-container::-webkit-scrollbar {
  height: 6px;
}

.game-nav-container::-webkit-scrollbar-track {
  background: var(--card-background);
}

.game-nav-container::-webkit-scrollbar-thumb {
  background: var(--scroll-green);
  border-radius: 3px;
}

.game-nav-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 16px 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-nav-tab:hover {
  color: var(--primary-color);
  background: rgba(255, 204, 0, 0.1);
}

.game-nav-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: rgba(255, 204, 0, 0.15);
}

/* ===== 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: 32px;
  font-weight: 900;
  color: var(--primary-color);
  font-family: var(--font-title-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

.game-nav-prev,
.game-nav-next {
  background: var(--card-background);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-nav-prev:hover,
.game-nav-next:hover {
  background: var(--primary-color);
  color: #000000;
  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: var(--card-background);
  border-radius: var(--site-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--border-light);
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(255, 204, 0, 0.3);
  border-color: var(--primary-color);
}

.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.08);
}

/* ===== GAME ACTIONS OVERLAY ===== */
.game-actions {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--game-hover);
  backdrop-filter: blur(8px);
  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: 12px 24px;
  border-radius: var(--button-radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-demo {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-demo:hover {
  background: var(--white);
  color: var(--dark);
}

.btn-play,
.btn-play-single {
  background: var(--megarich-red);
  color: #FFFFFF;
  border: 2px solid var(--megarich-red);
}

.btn-play:hover,
.btn-play-single:hover {
  background: #DD0010;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 17, 0.5);
}

/* ===== BADGES (MEGARICH STYLE) ===== */
.jackpot-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: linear-gradient(45deg, var(--primary-color), var(--lighten-primary-color));
  color: #000000;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(255, 204, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.exclusive-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--megarich-red);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 0, 17, 0.5);
}

/* Бейджи для POPULAR и NEW */
.popular-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--popular-blue);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(31, 86, 255, 0.5);
}

.new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--new-green);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(27, 203, 30, 0.5);
}

.game-title {
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  line-height: 1.4;
}

/* ===== CONTENT SECTION ===== */
.content-section {
  padding-left: 20px;
  padding-right: 20px;
  text-align: left;
  background: var(--card-background);
  border-radius: var(--site-radius);
  margin: 20px;
  border: 2px solid var(--border-light);
}

.content-section h1,
.content-section h2,
.content-section h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-family: var(--font-title-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 900;
}

.content-section h1 {
  font-size: 36px;
  color: var(--primary-color);
}

.content-section h2 {
  font-size: 28px;
}

.content-section h3 {
  font-size: 22px;
}

.content-section p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.content-section ul {
  list-style-type: disc;
  list-style-position: outside;
}

.content-section ol {
  list-style-type: decimal;
  list-style-position: outside;
}

.content-section ul,
.content-section ol {
  margin-left: 40px;
  padding-left: 0;
}

.content-section strong {
  color: var(--primary-color);
  font-weight: 900;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--footer-background-color);
  padding: 50px 0 30px;
  margin-top: 80px;
  border-top: 2px solid var(--border-light);
}

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

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 20px;
}

.footer-description {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 14px;
}

.footer-nav {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  color: var(--text-muted-dark);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--primary-color);
}

.footer-contact p {
  margin-bottom: 8px;
  color: var(--text-muted);
}

.footer-contact a {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
  text-align: center;
}

.footer-copyright,
.footer-text {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  margin-bottom: 8px;
}

/* ===== UTILITY КЛАССЫ ===== */
.d-flex {
  display: flex !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.align-self-center {
  align-self: center !important;
}

.pl-1 {
  padding-left: .25rem !important;
}

.pr-2 {
  padding-right: .5rem !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  
  .burger-toggle {
    display: flex;
  }
  
  .hero-section {
    min-height: 50vh;
    padding: 60px 0 80px;
  }
  
  .hero-content {
    align-items: center;
    text-align: center;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .features-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .game-section-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    padding: 0 10px;
  }
  
  .game-nav-container {
    padding: 0 10px;
  }
  
  .game-nav-tab {
    font-size: 13px;
    padding: 14px 18px;
  }
  
  .content-section {
    padding: 40px 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 40vh;
    padding: 40px 0 60px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .game-section-title {
    font-size: 24px;
  }
  
  .burger-menu {
    width: 280px;
    left: -280px;
  }
  
  .hero-btn {
    padding: 14px 24px;
    font-size: 14px;
  }
}

/* ===== АНИМАЦИИ И ЭФФЕКТЫ ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes goldShimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

@keyframes megarichGlow {
  0% { 
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
  }
  50% { 
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.6), 0 0 30px rgba(255, 0, 17, 0.3);
  }
  100% { 
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
  }
}

.game-card {
  animation: fadeInUp 0.6s ease-out;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }

/* Специальная анимация для главных элементов */
.hero-btn:hover {
  animation: megarichGlow 1.5s ease-in-out infinite;
}

/* ===== ПРЕЛОАДЕРЫ И СКРОЛЛЫ ===== */
.games-grid[data-section] {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-green) var(--card-background);
}

.games-grid[data-section]::-webkit-scrollbar {
  height: 6px;
}

.games-grid[data-section]::-webkit-scrollbar-track {
  background: var(--card-background);
  border-radius: 3px;
}

.games-grid[data-section]::-webkit-scrollbar-thumb {
  background: var(--scroll-green);
  border-radius: 3px;
}

.games-grid[data-section]::-webkit-scrollbar-thumb:hover {
  background: #00DD00;
}

/* ===== BONUS TILES SECTION (MEGARICH STYLE) ===== */
.bonus-tiles-section {
  background: var(--card-background);
  padding: 60px 0;
  margin-bottom: 50px;
  border-top: 2px solid var(--border-light);
  border-bottom: 2px solid var(--border-light);
}

.bonus-tiles-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.bonus-tile {
  background: var(--site-background-color);
  border-radius: var(--site-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--border-light);
}

.bonus-tile:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(255, 204, 0, 0.3);
  border-color: var(--primary-color);
}

.bonus-tile-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--header-background-color);
}

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

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

.bonus-tile-content {
  padding: 24px;
  text-align: center;
}

.bonus-tile-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 16px;
  line-height: 1.3;
  font-family: var(--font-title-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bonus-tile-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  opacity: 0.9;
}

.bonus-tile-button {
  display: inline-block;
  background: var(--megarich-red);
  color: #FFFFFF;
  padding: 14px 32px;
  border-radius: var(--site-radius);
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid var(--megarich-red);
  box-shadow: 0 4px 15px rgba(255, 0, 17, 0.4);
}

.bonus-tile-button:hover {
  background: #DD0010;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 17, 0.6);
}

/* ===== BONUS TILES ANIMATIONS ===== */
.bonus-tile {
  animation: fadeInUp 0.6s ease-out;
}

.bonus-tile:nth-child(1) { animation-delay: 0.1s; }
.bonus-tile:nth-child(2) { animation-delay: 0.2s; }
.bonus-tile:nth-child(3) { animation-delay: 0.3s; }
.bonus-tile:nth-child(4) { animation-delay: 0.4s; }
.bonus-tile:nth-child(5) { animation-delay: 0.5s; }
.bonus-tile:nth-child(6) { animation-delay: 0.6s; }

/* ===== BONUS TILES RESPONSIVE ===== */
@media (max-width: 768px) {
  .bonus-tiles-section {
    padding: 40px 0;
  }
  
  .bonus-tiles-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 15px;
  }
  
  .bonus-tile-content {
    padding: 20px;
  }
  
  .bonus-tile-title {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .bonus-tile-text {
    font-size: 13px;
    margin-bottom: 20px;
  }
  
  .bonus-tile-button {
    padding: 12px 28px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .bonus-tiles-container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 10px;
  }
  
  .bonus-tile-title {
    font-size: 18px;
  }
  
  .bonus-tile-text {
    font-size: 12px;
  }
}

/* ========== TABLE STYLES (MEGARICH CASINO THEME) ========== */
.table-container {
  background-color: var(--card-background);
  border: 2px solid var(--border-light);
  border-radius: var(--site-radius);
  margin: 2rem 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: var(--white);
  background-color: transparent;
}

thead {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--megarich-red) 100%);
}

th {
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 900;
  color: #000000;
  border-bottom: 2px solid var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

td {
  padding: 0.875rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
}

tbody tr:hover {
  background-color: rgba(255, 204, 0, 0.08);
}

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

/* Ссылки в таблице */
table a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

table a:hover {
  color: var(--megarich-red);
  text-decoration: underline;
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */
@media (max-width: 768px) {
  .table-container {
    margin: 1rem -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  table {
    font-size: 0.8rem;
  }

  th, td {
    padding: 0.5rem 0.4rem;
  }

  /* Первая колонка зафиксирована при скролле */
  th:first-child,
  td:first-child {
    position: sticky;
    left: 0;
    background-color: var(--card-background);
    z-index: 1;
  }

  thead th:first-child {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--megarich-red) 100%);
  }
}

/* ========== PROSE (MEGARICH CASINO THEME) ========== */
.prose {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-top: 3rem;
  background: var(--card-background);
  padding: 2rem;
  border-radius: var(--site-radius);
  border: 2px solid var(--border-light);
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-color);
  font-family: var(--font-title-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.prose p {
  margin-bottom: 1.2rem;
}

.prose strong {
  color: var(--primary-color);
  font-weight: 900;
}

/* ========== TABLE OF CONTENTS ========== */
#TableOfContents {
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: var(--site-radius);
  border: 2px solid var(--border-light);
  font-size: 1rem;
  margin: 2rem 0;
  color: var(--text-muted);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

#TableOfContents li {
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border-light);
  transition: border-color 0.3s ease;
}

#TableOfContents li:hover {
  border-left-color: var(--primary-color);
}

#TableOfContents a {
  color: var(--text-muted-dark);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

#TableOfContents a:hover {
  color: var(--primary-color);
}

/* ========== FAQ BLOCK (MEGARICH CASINO THEME) ========== */
.faq-block {
  background: var(--card-background);
  padding: 2rem;
  margin: 3rem 0;
  border-radius: var(--site-radius);
  border: 2px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.faq-heading {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
  font-family: var(--font-title-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.faq-item {
  background: var(--site-background-color);
  border: 2px solid var(--border-light);
  border-radius: var(--site-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.faq-item h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-family: var(--font-title-heading);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faq-item div {
  line-height: 1.7;
}

.faq-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 204, 0, 0.2);
}

/* ========== LANGUAGE SWITCHER (MEGARICH CASINO THEME) ========== */
.language-switcher {
  position: relative;
  font-size: 14px;
  z-index: 1000;
}

.lang-current {
  background: var(--card-background);
  color: var(--white);
  padding: 8px 12px;
  border-radius: var(--button-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  max-width: 100%;
  border: 2px solid var(--border-light);
  transition: all 0.3s ease;
  font-weight: 700;
}

.lang-current:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: var(--card-background);
  border-radius: var(--button-radius);
  overflow: hidden;
  min-width: 120px;
  max-width: 100vw;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  border: 2px solid var(--border-light);
}

.language-switcher.active .lang-dropdown {
  display: block;
}

.lang-option {
  display: block;
  padding: 10px 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  word-wrap: break-word;
  white-space: normal;
  font-weight: 700;
}

.lang-option:hover {
  background: rgba(255, 204, 0, 0.15);
  color: var(--primary-color);
}

/* ========== COOKIES POPUP (MEGARICH STYLE) ========== */
.cookies-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--card-background);
  color: var(--white);
  padding: 20px;
  border-radius: var(--site-radius);
  border: 2px solid var(--border-light);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  z-index: 1000;
  font-size: 14px;
}

.cookies-popup .highlight {
  color: var(--primary-color);
  font-weight: 900;
}

.cookies-ok-btn {
  background: var(--primary-color);
  color: #000000;
  padding: 8px 16px;
  border: none;
  border-radius: var(--button-radius);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  margin-left: 10px;
  transition: all 0.3s ease;
}

.cookies-ok-btn:hover {
  background: var(--megarich-red);
  color: var(--white);
}

/* ========== DAILY BONUS MAP BUTTON ========== */
.daily-bonus-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--megarich-red);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--site-radius);
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(255, 0, 17, 0.5);
  border: 2px solid var(--megarich-red);
  transition: all 0.3s ease;
  z-index: 999;
}

.daily-bonus-btn:hover {
  background: #DD0010;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 0, 17, 0.7);
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ ========== */
.hero-btn,
.btn-register,
.btn-play,
.btn-play-single,
.bonus-tile-button {
  position: relative;
  overflow: hidden;
}

.hero-btn::before,
.btn-register::before,
.btn-play::before,
.btn-play-single::before,
.bonus-tile-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.hero-btn:hover::before,
.btn-register:hover::before,
.btn-play:hover::before,
.btn-play-single:hover::before,
.bonus-tile-button:hover::before {
  left: 100%;
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ АДАПТАЦИИ ========== */
@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
    line-height: 1.6;
    padding: 1.5rem;
  }

  .prose h1,
  .prose h2,
  .prose h3 {
    font-size: 1.5rem;
  }
  
  .faq-heading {
    font-size: 2rem;
  }
  
  .faq-item h3 {
    font-size: 1.2rem;
  }
  
  .daily-bonus-btn {
    bottom: 80px;
    left: 10px;
    font-size: 12px;
    padding: 10px 16px;
  }
}

/* Мобильная адаптация языкового переключателя */
@media (max-width: 480px) {
  .lang-current {
    font-size: 12px;
    padding: 6px 10px;
  }

  .lang-dropdown {
    min-width: unset;
    width: 100%;
    left: 0;
    border-radius: var(--button-radius);
  }

  .lang-option {
    padding: 12px;
    font-size: 13px;
  }
  
  .cookies-popup {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 15px;
    font-size: 12px;
  }
}