/* 首页试玩布局 CSS - Bắt buộc phải có theo yêu cầu */
@media (max-width: 1023px) {
  .page-slot-games__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-slot-games__hero-brand,
  .page-slot-games__hero-jackpot {
    display: none !important;
  }
  .page-slot-games__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-slot-games__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-slot-games__game-trial-topbar,
  .page-slot-games__game-trial-bottombar {
    display: none !important;
  }
  .page-slot-games__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-slot-games__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-slot-games__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-slot-games__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-slot-games__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-slot-games__hero-brand,
  .page-slot-games__hero-jackpot,
  .page-slot-games__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-slot-games__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-slot-games__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-slot-games__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-slot-games__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-slot-games__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* General Page Styles for slot-games.html */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

.page-slot-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-slot-games__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #2F6BFF; /* Main Color */
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
}

.page-slot-games__text-block {
  font-size: 16px;
  margin-bottom: 15px;
  text-align: justify;
}

/* Hero Section */
.page-slot-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 50px;
  background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%); /* Auxiliary to Main */
  color: #FFFFFF;
}

.page-slot-games__hero-image-container {
  width: 100%;
  max-width: 800px;
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-slot-games__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 800px;
}

.page-slot-games__hero-description {
  font-size: 18px;
  max-width: 700px;
  margin-bottom: 30px;
}

.page-slot-games__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  max-width: 100%; /* Important for responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-slot-games__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
  background: #FFFFFF; /* Card BG */
  color: #2F6BFF; /* Main Color */
  border: 2px solid #2F6BFF; /* Main Color */
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.page-slot-games__btn-secondary:hover {
  background: #F4F7FB; /* Background */
  color: #2F6BFF;
  transform: translateY(-2px);
}

/* Why Choose Section */
.page-slot-games__dark-bg {
  background-color: #2F6BFF; /* Main Color */
  color: #FFFFFF;
}

.page-slot-games__dark-bg .page-slot-games__section-title {
  color: #FFFFFF;
}

.page-slot-games__light-bg {
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D; /* Text Main */
}

.page-slot-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-slot-games__feature-description {
  font-size: 15px;
  line-height: 1.6;
}

/* Popular Games Section */
.page-slot-games__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-slot-games__game-card {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-slot-games__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-slot-games__game-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #1F2D3D; /* Text Main */
  padding: 0 15px;
}

.page-slot-games__game-title a {
  color: #1F2D3D;
  text-decoration: none;
}

.page-slot-games__game-title a:hover {
  color: #2F6BFF; /* Main Color */
}

.page-slot-games__game-description {
  font-size: 14px;
  color: #1F2D3D;
  margin-bottom: 15px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-slot-games__btn-play {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #FFFFFF;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.page-slot-games__btn-play:hover {
  opacity: 0.9;
}

.page-slot-games__cta-more-games {
  text-align: center;
  margin-top: 40px;
}

/* How to Play Section */
.page-slot-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__step-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #6FA3FF; /* Auxiliary Color */
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  border: 3px solid #2F6BFF; /* Main Color */
}

.page-slot-games__step-title {
  font-size: 20px;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-slot-games__step-description {
  font-size: 15px;
  color: #F0F0F0;
}

.page-slot-games__cta-join {
  text-align: center;
  margin-top: 40px;
}

/* Promotions Section */
.page-slot-games__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-slot-games__promo-item {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-slot-games__promo-item::before {
  content: '⭐';
  margin-right: 10px;
  font-size: 20px;
  line-height: 1;
}

.page-slot-games__cta-promotions {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #6FA3FF; /* Auxiliary Color */
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question::-webkit-details-marker {
  display: none;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}
.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFFFFF;
}
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFFFFF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 20px 20px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 10px 10px;
  color: #F0F0F0;
}

/* Responsible Gaming Section */
.page-slot-games__responsible-gaming-section .page-slot-games__section-title {
  color: #2F6BFF;
}

.page-slot-games__cta-responsible {
  text-align: center;
  margin-top: 40px;
}

/* Final CTA Section */
.page-slot-games__final-cta-section .page-slot-games__section-title {
  color: #FFFFFF;
}

.page-slot-games__final-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Copyright */
.page-slot-games__copyright {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  border-top: 1px solid #D6E2FF; /* Border */
}

/* Responsive Styles */
@media (max-width: 1023px) {
  .page-slot-games__hero-section {
    padding-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 15px;
  }
  .page-slot-games__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .page-slot-games__hero-description {
    font-size: 16px;
  }
  .page-slot-games__hero-cta-buttons,
  .page-slot-games__final-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-play,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__hero-cta-buttons,
  .page-slot-games__final-cta-buttons,
  .page-slot-games__cta-more-games,
  .page-slot-games__cta-join,
  .page-slot-games__cta-promotions,
  .page-slot-games__cta-responsible {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__feature-item,
  .page-slot-games__game-card,
  .page-slot-games__step-item,
  .page-slot-games__promo-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-slot-games__feature-title,
  .page-slot-games__game-title,
  .page-slot-games__step-title {
    font-size: 18px;
  }
  .page-slot-games__feature-description,
  .page-slot-games__game-description,
  .page-slot-games__step-description,
  .page-slot-games__promo-item, 
  .page-slot-games__faq-qtext {
    font-size: 15px;
  }
  details.page-slot-games__faq-item summary.page-slot-games__faq-question { padding: 15px; }
  .page-slot-games__faq-toggle { font-size: 20px; }
  details.page-slot-games__faq-item .page-slot-games__faq-answer { padding: 0 15px 15px; }

  /* 移动端 @media (max-width: 768px) 必写清单 */
  /* 2. 优惠 __promo-strip: (Không áp dụng trực tiếp cho trang này, nhưng đảm bảo các thẻ card/list có flex-wrap) */
  .page-slot-games__promo-list { flex-wrap: wrap; }
  /* 3. 热门 __hot-games: (Không áp dụng trực tiếp cho trang này, nhưng đảm bảo grid 2 cột) */
  .page-slot-games__game-grid { grid-template-columns: repeat(2, 1fr); }
  /* 4. 品牌 __brand-intro: (Không áp dụng trực tiếp cho trang này) */
  /* 5. 中奖条 __winner-ticker: (Không áp dụng trực tiếp cho trang này) */
  /* 6. 通用图片与容器: Đã xử lý ở trên */
  /* 7. 按钮与按钮容器: Đã xử lý ở trên */
  /* 8. 其他模块 (内页 FAQ 等) 768px 规则: Đã xử lý ở trên */
}