/* Base styles for the casino page */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

.page-casino__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-casino__main-title {
  font-size: 48px;
  font-weight: 800;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__section-description,
.page-casino__hero-description {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-casino__dark-bg {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
}

.page-casino__dark-section {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
  padding: 60px 0;
}

.page-casino__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #F2FFF6;
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino a[class*="button"],
.page-casino a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6;
  border: none;
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px #57E38D; /* Glow */
}

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

.page-casino__btn-secondary:hover {
  background-color: #2AD16F;
  color: #08160F;
  box-shadow: 0 0 15px #57E38D; /* Glow */
}

/* 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: 40px;
}

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

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

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

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

/* Features Section */
.page-casino__features-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

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

.page-casino__feature-card {
  text-align: center;
  padding: 30px;
}

.page-casino__feature-icon {
  width: 100%; /* Ensure images are not tiny icons */
  max-width: 250px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  border-radius: 8px;
}

.page-casino__feature-title {
  font-size: 24px;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-casino__feature-text {
  font-size: 16px;
  color: #A7D9B8;
}

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

.page-casino__game-category {
  margin-bottom: 60px;
}

.page-casino__category-title {
  font-size: 32px;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #2E7A4E; /* Border */
  padding-bottom: 15px;
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__category-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.page-casino__category-content--reverse {
  flex-direction: row-reverse;
}

.page-casino__category-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.page-casino__category-text {
  flex-grow: 1;
  color: #F2FFF6;
}

.page-casino__category-text p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #A7D9B8;
}

.page-casino__category-text .page-casino__btn-primary {
  margin-top: 15px;
}

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

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

.page-casino__promo-card {
  text-align: center;
  padding: 30px;
}

.page-casino__promo-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  border-radius: 8px;
}

.page-casino__promo-title {
  font-size: 24px;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-casino__promo-text {
  font-size: 16px;
  color: #A7D9B8;
  margin-bottom: 20px;
}

.page-casino__all-promos-cta {
  text-align: center;
  margin-top: 50px;
}

/* Security Section */
.page-casino__security-section {
  padding: 80px 0;
}

.page-casino__security-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-casino__security-list li {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 18px;
  color: #F2FFF6;
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-casino__list-icon {
  color: #2AD16F; /* Button green */
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
}

/* Get Started Section */
.page-casino__get-started-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

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

.page-casino__step-card {
  text-align: center;
  padding: 30px;
  position: relative;
}

.page-casino__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #F2C14E; /* Gold */
  color: #08160F;
  border-radius: 50%;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(242, 193, 78, 0.6);
}

.page-casino__step-title {
  font-size: 24px;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-casino__step-text {
  font-size: 16px;
  color: #A7D9B8;
  margin-bottom: 20px;
}

/* FAQ Section */
details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
  background: #11271B; /* 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: #0A4B2C; /* Deep Green */
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6;
}
.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2AD16F;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 20px 20px;
  background: #0A4B2C; /* Deep Green */
  border-radius: 0 0 10px 10px;
  color: #A7D9B8;
}
.page-casino__faq-answer p {
    margin-bottom: 10px;
}

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

/* === Mandatory CSS for Homepage Trial Game (as per output format instruction) === */
/* This section is included as per the strict output format requirement, 
   even if it's not semantically applicable to this specific casino.html inner page. */
@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;
  }
}

/* Styles for homepage specific elements, also included as per output format */
.page-casino__game-trial-overlay{z-index:5;pointer-events:auto;}.page-casino__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}.page-casino__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}.page-casino__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}.page-casino__reward-modal{position:fixed;inset:0;z-index:10000;}
.page-casino__reward-modal.is-hidden{display:none!important;}.page-casino__reward-modal-close{cursor:pointer;}

/* === Mobile Specific Styles (max-width: 768px) === */
@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-casino__container {
    padding: 0 15px;
  }

  .page-casino__main-title {
    font-size: 32px;
  }

  .page-casino__section-title {
    font-size: 28px;
  }

  .page-casino__section-description,
  .page-casino__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* General image responsiveness */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* All content containers */
  .page-casino__hero-section,
  .page-casino__features-section,
  .page-casino__games-overview,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__get-started-section,
  .page-casino__faq-section,
  .page-casino__cta-final,
  .page-casino__card,
  .page-casino__game-category,
  .page-casino__category-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-casino__hero-section .page-casino__container {
    flex-direction: column;
    gap: 30px;
  }

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Features Grid */
  .page-casino__features-grid {
    grid-template-columns: 1fr;
  }

  /* Games Overview */
  .page-casino__category-content {
    flex-direction: column !important;
    gap: 20px;
  }
  .page-casino__category-image {
    max-width: 100%;
  }

  /* Promotions Grid */
  .page-casino__promotions-grid {
    grid-template-columns: 1fr;
  }

  /* Security List */
  .page-casino__security-list li {
    font-size: 16px;
    padding: 12px 15px;
  }
  .page-casino__list-icon {
    font-size: 20px;
  }

  /* Get Started Steps */
  .page-casino__steps-grid {
    grid-template-columns: 1fr;
  }

  /* FAQ Section */
  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: 24px;
    width: 24px;
    height: 24px;
  }
  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 15px 15px;
  }

  /* Homepage specific elements from '必写清单' - not semantically for casino.html but required by output format */
  /* 1. 首屏试玩: Handled by the @media (max-width: 1023px) block above */
  /* 2. 优惠 __promo-strip: No specific __promo-strip-track class in this page, adapting for .page-casino__promotions-grid */
  .page-casino__promotions-grid {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }
  .page-casino__promo-card .page-casino__promo-image {
    width: 100%;
    height: auto;
  }
  /* 3. 热门 __hot-games: No __hot-games-grid class in this page */
  /* 4. 品牌 __brand-intro: No __brand-intro class in this page */
  /* 5. 中奖条 __winner-ticker: No __winner-ticker class in this page */
  /* 6. 通用图片与容器: Handled by general img and container rules above */
  /* 7. 按钮与按钮容器: Handled by general btn and cta-buttons rules above */
  /* 8. 其他模块 (内页 FAQ 等) 768px 规则 (如有): Handled by FAQ section rules above */
}