
:root {
  /* Colors */
  --bg-body: #13151b;
  --bg-header: #1a1d26;
  --bg-card: #20242f;
  --bg-input: #0f1116;
  
  --primary: #ff6b00;
  --primary-hover: #ff8533;
  --secondary: #00c853;
  --secondary-hover: #00e676;
  --accent-purple: #7c4dff;
  
  --text-main: #ffffff;
  --text-secondary: #a0a5b9;
  --text-muted: #62687f;
  
  --border-color: #2c3240;
  
  /* Spacing & Sizing */
  --container-width: 1200px;
  --header-height: 4.5rem;
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 16px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 15px rgba(255, 107, 0, 0.3);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

input, button {
  font-family: inherit;
  border: none;
  outline: none;
}

/* --- Utilities --- */
.layout__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

.layout__mb-30 { margin-bottom: 2rem; }
.layout__mb-20 { margin-bottom: 1.25rem; }
.layout__mb-15 { margin-bottom: 1rem; }
.layout__mb-10 { margin-bottom: 0.625rem; }
.layout__mb-3 { margin-bottom: 0.2rem; }
.layout__mt-3 { margin-top: 0.2rem; }

/* --- Header & Control Panel --- */
.head-control-panel {
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.head-control-panel .layout__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.layout__pull-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.head-control-panel__logo {
  display: flex;
  align-items: center;
  width: 8rem;
  height: auto;
  transition: transform var(--transition-fast);
}

.head-control-panel__logo:hover {
  transform: scale(1.05);
}

.head-control-panel__logo svg {
  fill: var(--primary);
  width: 100%;
}

/* Header Menu */
.head-dynamic-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.head-dynamic-menu__pseudo-link {
  font-weight: 600;
  color: var(--text-main);
  position: relative;
}

.head-dynamic-menu__pseudo-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
}

.head-dynamic-menu__pseudo-link:hover::after {
  width: 100%;
}

/* Social List */
.social-list {
  display: flex;
  gap: 0.5rem;
}

.social-list__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--bg-card);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-list__link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.social-list__title {
  display: none;
}

/* Language Switcher */
.head-control-panel__lang-pseudo-link {
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
}

.head-control-panel__lang-pseudo-link:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

/* Navigation Tabs */
.head-control-tabs {
  display: flex;
  justify-content: center;
  background: var(--bg-body);
  padding: 1rem 0;
  gap: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.head-control-tabs__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

.head-control-tabs__link:hover,
.head-control-tabs__link_state_active {
  background: var(--bg-card);
  color: var(--primary);
}

.head-control-tabs__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

/* --- Hero Slider --- */
.main-slider {
  margin: 2rem 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}

.main-slider__img-holder {
  position: relative;
  width: 100%;
  height: 400px;
}

.main-slider__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-slider__img-holder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(19,21,27,0.9) 0%, rgba(19,21,27,0.4) 50%, rgba(19,21,27,0) 100%);
  pointer-events: none;
}

.main-slider .layout__container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
}

.main-slider__title {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 4px 8px rgba(0,0,0,0.5);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* --- Buttons --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 2em;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
  text-align: center;
}

.button_style_flat-warning {
  background: var(--primary);
  color: #fff;
}
.button_style_flat-warning:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-glow);
}

.button_style_success {
  background: linear-gradient(135deg, var(--secondary), #00a040);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 200, 83, 0.4);
}
.button_style_success:hover {
  background: linear-gradient(135deg, var(--secondary-hover), #00b347);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 200, 83, 0.6);
}

.button_size_xl {
  font-size: 1.25rem;
  padding: 1rem 3rem;
}

/* Decorative elements inside buttons */
.button__decor, .button__shadow, .button__decor-above, .button__aligner { display: none; }

/* --- Game Filters --- */
.menu-filter {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  scrollbar-width: none; /* Firefox */
}

.menu-filter::-webkit-scrollbar { display: none; }

.menu-filter__item {
  flex-shrink: 0;
}

.menu-filter__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 5rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.menu-filter__link:hover, 
.menu-filter__item_state_acitve .menu-filter__link {
  background: var(--bg-card);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.menu-filter__icon svg {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.5rem;
  fill: currentColor;
}

.menu-filter__text {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Search Input within Filter */
.menu-filter__item_type_search {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
}

.menu-filter__input-holder {
  position: relative;
  background: var(--bg-input);
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

.menu-filter__input {
  background: transparent;
  color: var(--text-main);
  width: 150px;
  font-size: 0.9rem;
}

.menu-filter__search-btn svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: var(--text-secondary);
}

/* --- Games Grid --- */
.games-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.game-box {
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  aspect-ratio: 16/10;
}

.game-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.game-box__img-holder {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #2a2f3d; /* Placeholder color */
  background-size: cover;
  background-position: center;
}

/* Hover Content */
.game-box__action-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(19, 21, 27, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
  text-align: center;
}

.game-box:hover .game-box__action-content {
  opacity: 1;
}

.game-box__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.game-box:hover .game-box__title {
  transform: translateY(0);
}

.game-box__holder {
  margin-bottom: 0.75rem;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.game-box:hover .game-box__holder {
  transform: scale(1);
}

.game-box__demo-holder {
  font-size: 0.9rem;
}

.game-box__pseudo-link {
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--text-secondary);
  cursor: pointer;
}

.game-box__pseudo-link:hover {
  color: var(--text-main);
  border-color: var(--text-main);
}

/* Badges */
.game-box__label-new {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.game-box__label-new svg { width: 30px; height: auto; }

/* Decorative Icons in Game Box */
.game-box__icon-decor {
  position: absolute;
  width: 20px;
  height: 20px;
  fill: rgba(255,255,255,0.1);
  pointer-events: none;
}

/* --- Widgets & Info --- */
.title-section {
  text-align: center;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 2px;
  margin: 3rem 0 1.5rem;
  font-weight: 900;
}

/* Jackpot SVG Styling */
.widgets-slider + .title-section + div svg text tspan {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700;
}

/* Tournament Table */
.table-info_type_scoreboard {
  width: 100%;
  border-collapse: collapse;
}

.tournament-list {
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 1rem;
  font-size: 0.9rem;
}

.tournament-list__row {
  display: flex;
  align-items: center;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.tournament-list__row:last-child {
  border-bottom: none;
}

.tournament-list__row_type_header {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.tournament-list__title, 
.tournament-list__cell {
  flex: 1;
}
.tournament-list__title:first-child, .tournament-list__cell:first-child { flex: 0 0 50px; text-align: center; }
.tournament-list__title:last-child, .tournament-list__cell:last-child { text-align: right; color: var(--primary); font-weight: bold; }

.booster-indicator {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  border-radius: 50%;
  background: #2a2f3d;
  font-weight: bold;
  font-size: 0.8rem;
}

.tournament-list__row_index_1 .booster-indicator { background: #ffd700; color: #000; }
.tournament-list__row_index_2 .booster-indicator { background: #c0c0c0; color: #000; }
.tournament-list__row_index_3 .booster-indicator { background: #cd7f32; color: #000; }

.tournament-list__player-info {
  color: var(--text-main);
  font-weight: 600;
}

/* Counter */
.counter {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.counter__item {
  background: #000;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  color: var(--primary);
  font-weight: bold;
}

/* --- Content Section --- */
.pcontent {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 4rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
}

.pcontent h1, .pcontent h2, .pcontent h3 {
  color: var(--text-main);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.pcontent h1 { font-size: 1.75rem; }
.pcontent h2 { font-size: 1.5rem; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 0.5rem; }

.pcontent p { margin-bottom: 1rem; }
.pcontent ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }

/* --- Footer --- */
.menu-simple {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
}

.menu-simple__link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.list-media {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 0;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all var(--transition-smooth);
}

.list-media:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.list-media__item i {
  display: block;
  width: 50px;
  height: 30px;
  background-color: #333; /* Placeholder for sprite icons */
  border-radius: 4px;
}

.line {
  height: 1px;
  background: var(--border-color);
  margin: 1rem 0;
}

/* --- SVG Icons General --- */
.svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* --- Responsive Design --- */

/* Tablet and below */
@media (max-width: 1024px) {
  .layout__col-wrap {
    flex-direction: column;
  }
  .layout__col-50pct {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 3.5rem;
  }

  .head-control-panel__logo { width: 6rem; }
  .head-dynamic-menu__title, .social-list { display: none; }
  
  .head-control-tabs {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0.5rem 1rem;
  }
  
  .head-control-tabs__link {
    flex-shrink: 0;
    font-size: 0.9rem;
  }
  
  .main-slider__img-holder { height: 250px; }
  .main-slider__title { font-size: 1.5rem; }
  
  .games-list {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 0.75rem;
  }
  
  .game-box__action-content {
    /* Always visible specific buttons on mobile or keep hidden until tap */
    opacity: 0; 
  }
  
  .menu-filter__input-holder { display: none; } /* Hide search on small screens to save space */
  .menu-filter__item_type_search { display: none; }

  .layout__col-wrap { display: block; }
}

@media (max-width: 480px) {
  .games-list {
    grid-template-columns: 1fr; /* 1 column on very small screens */
  }
  
  .button_size_xl {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.games-list__item {
  animation: fadeIn 0.5s ease forwards;
}
