/* Shared CSS rules for homepage trial layout (as required by prompt) */
@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;
  }
}
/* End of shared CSS rules for homepage trial layout */

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

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

.page-casino__section-title {
  font-size: 38px;
  font-weight: 700;
  color: #FF8C1A; /* Main color for titles */
  text-align: center;
  margin-bottom: 30px;
  padding-top: 50px;
}

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

/* Hero Section */
.page-casino__hero-section {
  width: 100%;
  padding-bottom: 50px;
  overflow: hidden;
  box-sizing: border-box;
  padding-top: 10px; /* Small top padding for first block, relying on body for header offset */
}

.page-casino__hero-image-wrapper {
  width: 100%;
  height: 600px; /* Fixed height for desktop, will adjust for mobile */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-casino__hero-content {
  max-width: 900px;
  margin: 0 auto; /* No negative margin, content is below image */
  text-align: center;
  position: relative;
  z-index: 2;
  background: #0D0E12; /* Solid background to separate from image */
  padding: 30px;
  border-radius: 10px;
  box-sizing: border-box;
}

.page-casino__main-title {
  font-size: clamp(30px, 5vw, 48px); /* Responsive font size */
  font-weight: 900;
  color: #FFA53A; /* Auxiliary color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__subtitle {
  font-size: 20px;
  color: #FFF3E6;
  margin-bottom: 30px;
}

.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

.page-casino__btn-secondary:hover {
  background: rgba(255, 165, 58, 0.1);
  transform: translateY(-2px);
}

/* About Section */
.page-casino__about-section {
  padding: 80px 0;
  background-color: #17191F; /* Card BG */
}

.page-casino__text-block {
  font-size: 17px;
  color: #FFF3E6;
  margin-bottom: 25px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid #A84F0C; /* Border */
}

.page-casino__feature-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-casino__feature-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 150px; /* Enforce minimum size */
}

.page-casino__feature-title {
  font-size: 22px;
  color: #FFA53A;
  margin-bottom: 15px;
}

.page-casino__feature-description {
  font-size: 16px;
  color: #FFF3E6;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
}

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

.page-casino__game-card {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  border: 1px solid #A84F0C; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__game-image {
  width: 100%;
  height: 200px; /* Fixed height for game cards */
  object-fit: cover;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__game-title {
  font-size: 24px;
  color: #FF8C1A;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__game-description {
  font-size: 16px;
  color: #FFF3E6;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-casino__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
  border-radius: 5px;
}

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

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
  background-color: #0D0E12; /* Background */
}

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

.page-casino__promo-card {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #A84F0C; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__promo-image {
  width: 100%;
  height: 250px; /* Fixed height */
  object-fit: cover;
  display: block;
  max-width: 100%;
  height: auto;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__promo-title {
  font-size: 24px;
  color: #FFA53A;
  margin: 20px 15px 10px;
}

.page-casino__promo-description {
  font-size: 16px;
  color: #FFF3E6;
  margin: 0 15px 20px;
}

.page-casino__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* Why Choose Section */
.page-casino__why-choose-section {
  padding: 80px 0;
  background-color: #17191F; /* Card BG */
}

.page-casino__why-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-casino__why-list li {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #A84F0C; /* Border */
}

.page-casino__why-item-title {
  font-size: 22px;
  color: #FF8C1A;
  margin-bottom: 10px;
}

.page-casino__why-list p {
  font-size: 16px;
  color: #FFF3E6;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: #0D0E12; /* Background */
}

.page-casino__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
}
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(255, 165, 58, 0.1); /* Hover effect with brand color */
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color for toggle icon */
  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(255, 255, 255, 0.03); /* Lighter background for answer */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-casino__hero-image-wrapper {
    height: 500px;
  }
  .page-casino__hero-content {
    padding: 20px;
  }
  .page-casino__main-title {
    font-size: 40px;
  }
  .page-casino__subtitle {
    font-size: 18px;
  }
  .page-casino__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  /* General responsive adjustments */
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-casino__container {
    padding: 0 15px;
  }
  .page-casino__hero-image-wrapper {
    height: 300px;
  }
  .page-casino__hero-content {
    padding: 15px;
  }
  .page-casino__main-title {
    font-size: 30px;
    margin-bottom: 15px;
  }
  .page-casino__subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    width: 100% !important; /* Enforce full width */
  }

  /* Section padding */
  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__why-choose-section,
  .page-casino__faq-section {
    padding: 40px 0;
  }
  .page-casino__section-title {
    font-size: 28px;
    padding-top: 30px;
    margin-bottom: 20px;
  }
  .page-casino__section-description,
  .page-casino__text-block {
    font-size: 15px;
    margin-bottom: 15px;
  }

  /* Grids */
  .page-casino__features-grid,
  .page-casino__games-grid,
  .page-casino__promo-cards,
  .page-casino__why-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  /* Card specific adjustments */
  .page-casino__game-image,
  .page-casino__promo-image {
    height: 180px;
  }
  .page-casino__game-title,
  .page-casino__promo-title {
    font-size: 20px;
    margin: 15px 10px 8px;
  }
  .page-casino__game-description,
  .page-casino__promo-description {
    font-size: 15px;
    margin: 0 10px 15px;
  }

  /* FAQ */
  details.page-casino__faq-item summary.page-casino__faq-question { padding: 15px; }
  .page-casino__faq-qtext { font-size: 16px; }
  details.page-casino__faq-item .page-casino__faq-answer { padding: 0 15px 15px; }

  /* Universal image and button rules for mobile */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__why-choose-section,
  .page-casino__faq-section,
  .page-casino__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* @media (max-width: 768px)必写清单 */
/* (1) 首屏试玩: 已在 1023px 规则中包含，无需重复 */
/* (2) 优惠 __promo-strip: My .page-casino__promo-cards already adapts to 1fr grid */
.page-casino__promo-cards {
  grid-template-columns: 1fr;
}
/* (3) 热门 __hot-games: Not present on this inner page */
/* (4) 品牌 __brand-intro: Not present on this inner page */
/* (5) 中奖条 __winner-ticker: Not present on this inner page */
/* (6) 通用图片与容器: Already handled by universal img and container rules */
/* (7) 按钮与按钮容器: Already handled by universal button rules */
/* (8) 其他模块 (内页 FAQ 等) 768px 规则: Already handled */

/* Ensure all images are content display images, not small icons */
.page-casino img {
  min-width: 200px;
  min- /* Adjusted to allow for common aspect ratios while meeting 200px width minimum */
}

/* No CSS filter for images */
.page-casino img {
  filter: none !important;
}