/* 首页试玩布局 CSS - 强制要求原样输出，即使此页面 không sử dụng */
@media (max-width: 1023px) {
  .page-casino__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-casino__hero-brand,
  .page-casino__hero-jackpot {
    display: none !important;
  }
  .page-casino__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-casino__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-casino__game-trial-topbar,
  .page-casino__game-trial-bottombar {
    display: none !important;
  }
  .page-casino__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-casino__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-casino__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-casino__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-casino__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-casino__hero-brand,
  .page-casino__hero-jackpot,
  .page-casino__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-casino__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-casino__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-casino__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-casino__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-casino__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* General styles for page-casino */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

.page-casino__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 15px;
  box-sizing: border-box;
}

.page-casino__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #F2C14E; /* Main color for titles */
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-casino__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF6D6;
}

.page-casino__card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: #FFF6D6;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__card-title {
  font-size: 22px;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 10px;
  color: #F2C14E;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  margin: 10px 5px;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111;
  border: none;
}

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

.page-casino__btn-secondary {
  background: transparent;
  color: #F2C14E;
  border: 2px solid #F2C14E;
}

.page-casino__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-2px);
}

/* Hero Section */
.page-casino__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-casino__hero-section .page-casino__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-casino__hero-content {
  max-width: 800px;
}

.page-casino__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #F2C14E;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

.page-casino__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFF6D6;
}

.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

/* Features Section */
.page-casino__features-section {
  padding: 60px 0;
}

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

.page-casino__feature-icon {
  width: 100%;
  height: auto;
  max-width: 150px;
  margin-bottom: 15px;
  border-radius: 8px;
}

/* Games Overview Section */
.page-casino__games-overview {
  padding: 60px 0;
}

.page-casino__game-category {
  margin-bottom: 50px;
  padding: 30px;
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-casino__category-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #FFD36B; /* Glow */
}

.page-casino__category-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__game-category p {
  max-width: 900px;
  margin-bottom: 25px;
  font-size: 16px;
  color: #FFF6D6;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 60px 0;
}

.page-casino__promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-casino__promo-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Get Started Section */
.page-casino__get-started-section {
  padding: 60px 0;
}

.page-casino__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-casino__step-card {
  position: relative;
  padding-top: 50px; /* Space for number */
}

.page-casino__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #F2C14E;
  color: #111111;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(242, 193, 78, 0.5);
}

/* Responsible Gambling Section */
.page-casino__responsible-gambling-section {
  padding: 60px 0;
  text-align: center;
}

.page-casino__content-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__responsible-gambling-section p {
  max-width: 900px;
  margin: 0 auto 30px;
  font-size: 16px;
  color: #333333; /* Dark text on light background */
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 60px 0;
}

.page-casino__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #111111; /* Card BG */
  color: #FFF6D6;
}

details.page-casino__faq-item summary.page-casino__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-casino__faq-item summary.page-casino__faq-question::-webkit-details-marker {
  display: none;
}

details.page-casino__faq-item summary.page-casino__faq-question:hover {
  background: rgba(242, 193, 78, 0.1);
}

.page-casino__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF6D6;
}

.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 20px 20px;
  background: rgba(17, 17, 17, 0.8); /* Slightly darker for answer */
  border-radius: 0 0 5px 5px;
  font-size: 16px;
  color: #FFF6D6;
}

/* Final CTA Section */
.page-casino__cta-final-section {
  padding: 60px 0;
  text-align: center;
}

.page-casino__cta-final-section .page-casino__section-title {
  color: #333333;
}

.page-casino__cta-final-section .page-casino__section-description {
  color: #333333;
}


/* Responsive Styles */
@media (max-width: 1023px) {
  .page-casino__main-title {
    font-size: 40px;
  }
  .page-casino__section-title {
    font-size: 30px;
  }
  .page-casino__hero-section .page-casino__container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-casino__container {
    padding: 15px;
  }
  .page-casino__main-title {
    font-size: clamp(28px, 8vw, 36px);
  }
  .page-casino__section-title {
    font-size: clamp(24px, 7vw, 28px);
  }
  .page-casino__hero-description,
  .page-casino__section-description,
  .page-casino p,
  .page-casino li {
    font-size: 15px;
  }
  .page-casino__hero-section,
  .page-casino__features-section,
  .page-casino__games-overview,
  .page-casino__promotions-section,
  .page-casino__get-started-section,
  .page-casino__responsible-gambling-section,
  .page-casino__faq-section,
  .page-casino__cta-final-section {
    padding: 40px 0;
  }
  
  /* Mobile image adaptation */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__hero-image-wrapper,
  .page-casino__feature-card,
  .page-casino__game-category,
  .page-casino__promo-card,
  .page-casino__step-card,
  .page-casino__faq-item,
  .page-casino__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile button adaptation */
  .page-casino__cta-button,
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino a[class*="button"],
  .page-casino a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 8px 0 !important; /* Adjust margin for vertical stack */
  }
  .page-casino__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px; /* Spacing between stacked buttons */
    padding: 0 15px; /* Add padding to container */
  }
  
  details.page-casino__faq-item summary.page-casino__faq-question { padding: 15px; }
  .page-casino__faq-qtext { font-size: 16px; }
  .page-casino__faq-toggle { font-size: 20px; width: 24px; height: 24px; }
  details.page-casino__faq-item .page-casino__faq-answer { padding: 0 15px 15px; }

  /* Specific overrides for mobile, if any of the homepage elements were present */
  .page-casino__promo-strip-track { /* Placeholder for mobile promo strip if it was on this page */
    grid-template-columns: repeat(4,1fr); /* Example, assuming 4 small items */
    overflow-x: hidden;
  }
  .page-casino__hot-games-grid { /* Placeholder for mobile hot games if it was on this page */
    grid-template-columns: repeat(2,1fr);
  }
}