/* Base styles for the casino page */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f5f5f5; /* Light background for the page */
}

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

.page-casino__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #017439;
}

.page-casino__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #555;
}

/* Hero Section */
.page-casino__hero-section {
  padding: 10px 0 40px 0; /* Small top padding, then content handles its own spacing */
  text-align: center;
  color: #ffffff;
  background-color: #017439; /* Main brand color for hero background */
  overflow: hidden;
  position: relative;
}

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

.page-casino__hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

.page-casino__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFF00; /* Register and Login font color for emphasis */
}

.page-casino__hero-description {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 30px;
  z-index: 1;
  position: relative;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Content Sections */
.page-casino__intro-section,
.page-casino__promotions-section,
.page-casino__security-section,
.page-casino__mobile-section,
.page-casino__payments-section,
.page-casino__support-section,
.page-casino__cta-section {
  padding: 60px 0;
}

.page-casino__games-section,
.page-casino__faq-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-casino__games-section .page-casino__section-title,
.page-casino__faq-section .page-casino__section-title {
  color: #FFFF00; /* Emphasize titles in dark sections */
}

.page-casino__games-section .page-casino__section-description,
.page-casino__faq-section .page-casino__section-description {
  color: #f0f0f0;
}

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

.page-casino__content-flex--reverse {
  flex-direction: row-reverse;
}

.page-casino__text-block {
  flex: 1;
  min-width: 0;
}

.page-casino__text-block p {
  margin-bottom: 15px;
  font-size: 16px;
}

.page-casino__image-block {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.page-casino__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Game Categories Grid */
.page-casino__game-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__game-category {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-casino__category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-casino__category-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-casino__category-text {
  font-size: 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__btn-category {
  display: inline-block;
  background-color: #C30808; /* Register/Login color for CTA */
  color: #FFFF00; /* Register/Login font color */
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-category:hover {
  background-color: #e02a2a;
}

/* Lists */
.page-casino__promo-list,
.page-casino__security-features,
.page-casino__mobile-benefits,
.page-casino__payment-methods,
.page-casino__support-channels {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.page-casino__promo-list li,
.page-casino__security-features li,
.page-casino__mobile-benefits li,
.page-casino__payment-methods li,
.page-casino__support-channels li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  font-size: 16px;
}

.page-casino__promo-list li::before,
.page-casino__security-features li::before,
.page-casino__mobile-benefits li::before,
.page-casino__payment-methods li::before,
.page-casino__support-channels li::before {
  content: '✔';
  color: #C30808; /* Accent color for list checkmarks */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-casino__security-section .page-casino__text-block p,
.page-casino__security-section .page-casino__text-block li {
  color: #f0f0f0;
}

.page-casino__payments-section .page-casino__text-block p,
.page-casino__payments-section .page-casino__text-block li {
  color: #f0f0f0;
}

.page-casino__faq-section .page-casino__text-block p,
.page-casino__faq-section .page-casino__text-block li {
  color: #f0f0f0;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid transparent;
}

.page-casino__btn-primary:hover {
  background-color: #e02a2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color for contrast */
  border: 2px solid #FFFF00;
}

.page-casino__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808; /* Text color changes on hover for contrast */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-large {
  padding: 15px 40px;
  font-size: 18px;
}

/* FAQ Section */
details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}
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, 255, 255, 0.1);
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #ffffff;
}
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFFF00;
  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.02);
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1023px) {
  .page-casino__hero-section .page-casino__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__content-flex {
    flex-direction: column;
  }
  .page-casino__content-flex--reverse {
    flex-direction: column;
  }
  .page-casino__hero-section {
    padding-bottom: 30px;
  }
}

@media (min-width: 1024px) {
  /* No homepage game trial specific CSS needed for casino page content */
  /* This section is intentionally left minimal for casino page content */
  .page-casino__intro-section .page-casino__text-block,
  .page-casino__promotions-section .page-casino__text-block,
  .page-casino__security-section .page-casino__text-block,
  .page-casino__mobile-section .page-casino__text-block,
  .page-casino__payments-section .page-casino__text-block,
  .page-casino__support-section .page-casino__text-block {
    padding-right: 20px;
  }
  .page-casino__intro-section .page-casino__image-block,
  .page-casino__promotions-section .page-casino__image-block,
  .page-casino__security-section .page-casino__image-block,
  .page-casino__mobile-section .page-casino__image-block,
  .page-casino__payments-section .page-casino__image-block,
  .page-casino__support-section .page-casino__image-block {
    padding-left: 20px;
  }
}

@media (max-width: 768px) {
  .page-casino__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-casino__section-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-casino__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-casino__hero-description {
    font-size: 16px;
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-category,
  .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;
  }

  .page-casino__hero-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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-casino__game-categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__game-category {
    padding: 20px;
  }

  .page-casino__category-image {
    height: 160px;
  }

  .page-casino__category-title {
    font-size: 20px;
  }

  .page-casino__category-text {
    font-size: 14px;
  }

  .page-casino__intro-section,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__mobile-section,
  .page-casino__payments-section,
  .page-casino__support-section,
  .page-casino__cta-section,
  .page-casino__games-section,
  .page-casino__faq-section {
    padding: 40px 0;
  }

  .page-casino__text-block p,
  .page-casino__text-block li {
    font-size: 15px;
  }

  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__section,
  .page-casino__card,
  .page-casino__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

/* The following CSS snippets are included verbatim as per '返回格式' requirement, even if they are primarily for homepage game trial. */
@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;
  }
}

@media (max-width: 768px) {
  /* This section includes the required 768px media queries for homepage modules, even if not directly used by casino.html content. */
  .page-casino__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
    overflow-x: hidden;
  }
  .page-casino__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Common styles for game trial overlay (from provided snippet) */
.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;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-casino__reward-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
}
.page-casino__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}
.page-casino__reward-modal-title {
  color: #C30808;
  font-size: 24px;
  margin-bottom: 15px;
}
.page-casino__reward-modal-text {
  color: #333;
  margin-bottom: 20px;
}
.page-casino__reward-modal-button {
  background-color: #017439;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}