/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Root CSS Custom Properties */
:root {
  --color-bg: #150b3e;
  --color-accent: #FF8C00;
  --color-text: #FFFFFF;
  --color-text-secondary: #AAAAAA;
  --color-content-bg: #3b2d9d;
}

/* Body & Typography */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles - Версия в одну строку */
.header {
  background: linear-gradient(to right, #150b3e, #2a1573);
  padding: 15px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

/* Logo Styles */
.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--color-text);
  text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.header__logo a{
  text-decoration: none;
}

.header__logo:hover {
  transform: scale(1.05);
}

.logo-text {
  background: linear-gradient(to right, #FF8C00, #FFC107);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon {
  font-size: 1.4rem;
}

/* Middle Section - Contains Jackpot and Ticker */
.header__middle-section {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 0; /* Important for flex items with overflow hidden */
}

/* Jackpot Box */
.jackpot-box {
  background: linear-gradient(135deg, #492eb8, #3b2d9d);
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  padding: 3px 12px;
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.4);
  text-align: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.jackpot-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 140, 0, 0.2), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -50%;
  }
  100% {
    left: 150%;
  }
}

.jackpot-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
}

.jackpot-amount {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-accent);
  text-shadow: 0 0 5px rgba(255, 140, 0, 0.5);
}

/* Ticker Styles */
.header__ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(21, 11, 62, 0.5);
  border-radius: 6px;
  padding: 5px 10px 5px 0;
  overflow: hidden;
  flex: 1;
  min-width: 0; /* Important for flex children with overflow */
}

.ticker-label {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--color-accent);
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 9999;
}

.ticker-content {
  white-space: nowrap;
  animation: ticker 15s linear infinite;
  flex: 1;
  overflow: hidden;
}

@keyframes ticker {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.win-item {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-text);
}

.win-amount {
  color: var(--color-accent);
  font-weight: bold;
}

.ticker-separator {
  display: inline-block;
  margin: 0 10px;
  color: var(--color-accent);
  font-size: 0.9rem;
}

/* Navigation */
.header__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Buttons */
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.button-icon {
  font-size: 1rem;
}

.button--primary {
  background: linear-gradient(to bottom, #FF8C00, #FF6B00);
  color: var(--color-text);
  box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
}

.button--primary:hover {
  background: linear-gradient(to bottom, #FF9F2A, #FF7C1F);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 140, 0, 0.4);
}

.button--primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(255, 140, 0, 0.3);
}

.button--secondary {
  background-color: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.button--secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  transition: all 0.3s ease;
  z-index: -1;
}

.button--secondary:hover {
  color: var(--color-text);
}

.button--secondary:hover::before {
  left: 0;
}

/* Animation for Jackpot Counter */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

#jackpot-counter {
  animation: pulse 2s infinite;
}

/* RESPONSIVE STYLES - Улучшенная версия */

/* Large Tablets */
@media (max-width: 1024px) {
  .header__middle-section {
    gap: 10px;
  }
  
  .jackpot-box {
    padding: 3px 10px;
  }
  
  .jackpot-amount {
    font-size: 1.1rem;
  }
  
  .button {
    padding: 8px 12px;
  }
}

/* Medium Tablets and Small Screens */
@media (max-width: 900px) {
  .header__ticker {
    max-width: 200px;
  }
}

/* Small Tablets */
@media (max-width: 768px) {
  .header__ticker {
    display: none; /* Скрываем бегущую строку на планшетах для экономии места */
  }
  
  .header__middle-section {
    justify-content: center;
  }
}

/* Mobile Landscape */
@media (max-width: 576px) {
  .header__container {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
  }
  
  .header__logo {
    flex: 0 0 100%;
    justify-content: center;
    order: 1;
  }
  
  .header__middle-section {
    flex: 0 0 100%;
    justify-content: center;
    order: 2;
  }
  
  .jackpot-box {
    width: 100%;
    max-width: 200px;
  }
  
  .header__nav {
    flex: 0 0 100%;
    justify-content: center;
    order: 3;
  }
  
  .button {
    flex: 1;
    max-width: 160px;
  }
}

/* Small Mobile */
@media (max-width: 380px) {
  .header {
    padding: 10px 0;
  }
  
  .header__logo {
    font-size: 1.4rem;
  }
  
  .jackpot-label {
    font-size: 0.65rem;
  }
  
  .jackpot-amount {
    font-size: 1rem;
  }
  
  .button {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  .button-icon {
    font-size: 0.9rem;
  }
}

/* Hamburger menu for very small screens */
@media (max-width: 320px) {
  .button-text {
    display: none;
  }
  
  .button {
    width: 40px;
    max-width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
  }
  
  .button-icon {
    font-size: 1.2rem;
    margin: 0;
  }
}

/* Jackpot Container */
.header__jackpot-container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Jackpot Box */
.jackpot-box {
  background: linear-gradient(135deg, #492eb8, #3b2d9d);
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  padding: 5px 15px;
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.4);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-width: 200px;
}

.jackpot-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 140, 0, 0.2), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -50%;
  }
  100% {
    left: 150%;
  }
}

.jackpot-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.jackpot-amount {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-accent);
  text-shadow: 0 0 5px rgba(255, 140, 0, 0.5);
}

/* Ticker Styles */
.header__ticker-container {
  width: 100%;
  max-width: 500px;
  background: rgba(21, 11, 62, 0.5);
  border-radius: 6px;
  padding: 5px 10px;
  overflow: hidden;
}

.ticker-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticker-label {
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--color-accent);
  white-space: nowrap;
  /*background: linear-gradient(to right, #150b3e, #2a1573);*/
  background: rgba(21, 11, 62, 1);
}

.ticker-tape {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 25s linear infinite;
}

@keyframes ticker {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.win-item {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-text);
}

.win-amount {
  color: var(--color-accent);
  font-weight: bold;
}

.ticker-separator {
  display: inline-block;
  margin: 0 10px;
  color: var(--color-accent);
  font-size: 1rem;
}

/* Navigation */
.header__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Buttons */
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.button-icon {
  font-size: 1.1rem;
}

.button--primary {
  background: linear-gradient(to bottom, #FF8C00, #FF6B00);
  color: var(--color-text);
  box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
}

.button--primary:hover {
  background: linear-gradient(to bottom, #FF9F2A, #FF7C1F);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 140, 0, 0.4);
}

.button--primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(255, 140, 0, 0.3);
}

.button--secondary {
  background-color: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.button--secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  transition: all 0.3s ease;
  z-index: -1;
}

.button--secondary:hover {
  color: var(--color-text);
}

.button--secondary:hover::before {
  left: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .header__container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .header__logo-block {
    flex: 0 0 100%;
    text-align: center;
    margin-bottom: 10px;
  }
  
  .header__logo {
    justify-content: center;
  }
  
  .header__jackpot-container {
    order: 3;
    flex: 0 0 100%;
    margin-top: 15px;
  }
  
  .jackpot-box {
    width: 100%;
    max-width: 300px;
  }
  
  .header__ticker-container {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .header__nav {
    flex: 0 0 100%;
    justify-content: center;
    gap: 15px;
  }
  
  .button {
    min-width: auto;
    flex: 1;
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .ticker-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .ticker-label {
    width: 100%;
    text-align: center;
  }
}

/* Animation for Jackpot Counter */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

#jackpot-counter {
  animation: pulse 2s infinite;
}
/* Hero Section */
.hero {
  background: linear-gradient(135deg, #150b3e, #1a0a4d);
  padding: 60px 0;
  text-align: center;
}
.hero__title {
  font-size: 2rem;
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: 1rem;
  margin-bottom: 30px;
  color: var(--color-text-secondary);
}
.hero__cta {
  display: inline-flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Info Section */
.info-section {
  padding: 50px 0;
  background: rgba(21, 11, 62, 0.7);
}

.info-section__container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: center;
}

.info-section__video {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
}

.info-section__details {
  flex: 1;
  min-width: 280px;
  /*max-width: 500px;*/
  max-width: 600px;
}

.info-section__title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--color-text-primary);
  text-align: left;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.content-img {
  max-width: 800px;
  width: 100%;
  height: auto;
  margin: 30px auto;
  display: block;
}

/* Video Container */
.video-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.video-link {
  display: block;
  transition: transform 0.3s ease;
}

.video-link:hover {
  transform: scale(1.02);
}

.video-image {
  display: block;
  width: 100%;
  height: auto;
}

.video-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease;
}

.video-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-button-bg {
  fill: #FF0000;
}

.video-button-arrow {
  fill: #FFFFFF;
}

/* Info Table */
.info-table {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 25px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 1px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-label {
  color: var(--color-text-secondary);
  font-weight: 500;
  text-align: left;
}

.info-value {
  color: var(--color-text-primary);
  text-align: right;
}

.info-cta {
  margin-top: 20px;
  text-align: center;
}

/* Media Queries */
@media (max-width: 768px) {
  .info-section__container {
    flex-direction: column;
    align-items: center;
  }
  
  .info-section__video, 
  .info-section__details {
    max-width: 100%;
  }
  
  /* Скрыть видео на мобильных устройствах */
  .info-section__video {
    display: none;
  }
}

/* Features Section (Horizontal Icons Grid) */
.features {
  padding: 20px 0;
  background: transparent;
  text-align: center;
}
.features > .container {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.features__item {
  background: var(--color-content-bg);
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  padding: 20px;
  flex: 1 0 120px;
  max-width: 150px;
  text-align: center;
}
.features__icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.features__caption {
  font-size: 1rem;
}

/* Content Layout - Improved */
.content-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin: 40px auto;
}

/* Main Content */
.content-layout__main {
  background-color: var(--color-content-bg);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Sidebar */
.content-layout__sidebar {
  background-color: rgba(59, 45, 157, 0.5);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Sections */
section {
  padding: 30px 0;
  text-align: center;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--color-text);
  font-weight: 700;
}
p, li {
  font-size: 1rem;
  margin-bottom: 15px;
}

/* Concept Section */
.concept {
  padding-top: 10px;
}
.concept__text {
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
  line-height: 1.7;
}

/* Interface Section */
.interface__mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
}
.interface__game-window,
.interface__bets-panel {
  background: rgba(21, 11, 62, 0.5);
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  padding: 40px;
  color: var(--color-text);
}
.interface__game-window {
  font-size: 1.2rem;
}
.interface__bets-panel {
  font-size: 1rem;
}

/* How To Play Section */
.how-to-play__list {
  list-style: decimal;
  text-align: left;
  max-width: 600px;
  margin: 20px auto 0;
  padding-left: 40px;
}
.how-to-play__item {
  margin-bottom: 15px;
  position: relative;
}

.styled-table-div {
  overflow-x: auto;
  width: 100%;
  max-width: 1128px;
  margin: 20px auto;
}
.styled-table {
  width: 100%;
  border-collapse: collapse;
}
.styled-table th, .styled-table td {
  border: 1px solid #d5d8e2;
  padding: 10px;
  text-align: left;
}
.styled-table th {
  background-color: #150b3e;
  color: #fff;
}
.styled-table tr {
  background-color: #3b2d9d;
}
.styled-table tr:nth-child(even) {
  background-color: #3a2c86;
}

.section ul, .section ol {
  padding-left: 30px;
  margin: 20px auto;
}

.section ul li, .section ol li {
  list-style: circle;
  padding: 0;
  line-height: 26px;
}

.section ol li {
  list-style: decimal;
}
.content {
  text-align: left;
}
.content h2, .content h3, .content h4 {
  text-align: center;
}
.section ul, .section ol {
  padding-left: 30px;
  margin: 20px auto;
}

/* FAQ Accordion - Improved */
.faq {
  padding-bottom: 10px;
}
.faq__item {
  margin-bottom: 15px;
}
.faq__details {
  background: rgba(21, 11, 62, 0.5);
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  margin: 10px 0;
  padding: 15px 20px;
  text-align: left;
  transition: all 0.3s ease;
}
.faq__details:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.faq__question {
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  padding-right: 30px;
}
.faq__question::after {
  content: "+";
  position: absolute;
  right: 5px;
  top: 0;
  font-size: 1.3rem;
  font-weight: 700;
}
.faq__details[open] .faq__question::after {
  content: "-";
}
.faq__answer {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--color-text);
  padding-left: 10px;
  border-left: 3px solid var(--color-accent);
  margin-left: 5px;
}

/* Casino Cards in Sidebar - Redesigned */
.top-casino {
  padding: 10px 0;
  margin: 0 0 60px 20px;
  box-shadow: 0 4px 16px rgb(0 0 0 / 10%);
  position: sticky;
  top: 100px;
}
.top-casino__title {
  margin-bottom: 25px;
  text-align: center;
  font-size: 1.8rem;
}
.top-casino__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.casino-card {
  background: var(--color-content-bg);
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}
.casino-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}
.casino-card__rating {
  background: var(--color-accent);
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  margin-right: 15px;
}
.casino-card__logo {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}
.casino-logo {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-accent);
}
.casino-card__title {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;
}

/* Footer */
.footer {
  background: #1a0a4d;
  padding: 20px 0;
}
.footer__container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  text-align: center;
}
.footer__links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.footer__link {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
}
.footer__link:hover {
  text-decoration: underline;
}
.footer__info {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}
.footer__disclaimer {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header__container {
    flex-direction: column;
  }
  .content-layout {
    grid-template-columns: 1fr;
  }
  .content-layout__main,
  .content-layout__sidebar {
    margin-bottom: 20px;
  }
  .faq__details {
    text-align: left;
  }
  .footer__container {
    align-items: center;
  }
  .casino-card {
    flex-direction: column;
    text-align: center;
  }
  .casino-card__rating,
  .casino-card__logo {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .how-to-play__list {
    padding-left: 25px;
  }
  .interface__game-window,
  .interface__bets-panel {
    padding: 20px;
  }
}