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

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

.page-casino__section-padding {
  padding: 60px 0;
}

.page-casino__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-casino__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2F6BFF, #6FA3FF);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-casino__section-title--light {
  color: #ffffff;
}

.page-casino__section-title--light::after {
  background: #ffffff;
}

.page-casino__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__text-block--light {
  color: #f0f0f0;
}

.page-casino a {
  color: #2F6BFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino a:hover {
  color: #6FA3FF;
  text-decoration: underline;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-casino__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__btn-secondary:hover {
  background: #f0f5ff;
  color: #2F6BFF;
  border-color: #2F6BFF;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-casino__btn-tertiary {
  background: #6FA3FF;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 5px;
}

.page-casino__btn-tertiary:hover {
  background: #2F6BFF;
}

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

.page-casino__cta-buttons--center {
  margin-top: 40px;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  min-height: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding to avoid double header offset */
}

.page-casino__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
}

.page-casino__main-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__subtitle {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Intro Section */
.page-casino__intro-section .page-casino__text-block {
  text-align: left;
}

/* Game Types Section */
.page-casino__dark-section {
  background-color: #2F6BFF;
  color: #ffffff;
}

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

.page-casino__game-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 25px;
}

.page-casino__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-casino__game-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 10px;
  padding: 0 15px;
}

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

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

.page-casino__promo-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 25px;
}

.page-casino__promo-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-casino__promo-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__promo-card-description {
  font-size: 15px;
  color: #333333;
  padding: 0 20px;
  margin-bottom: 20px;
}

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

.page-casino__step-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__step-number {
  font-size: 48px;
  font-weight: 800;
  color: #2F6BFF;
  margin-bottom: 15px;
  line-height: 1;
}

.page-casino__step-title {
  font-size: 22px;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 10px;
}

.page-casino__step-description {
  font-size: 15px;
  color: #333333;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Support Section */
.page-casino__support-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__support-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__support-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-casino__support-title {
  font-size: 22px;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 10px;
}

.page-casino__support-description {
  font-size: 15px;
  color: #333333;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #ffffff; /* 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;
  color: #1F2D3D; /* Text Main */
}
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: #f5f5f5;
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

.page-casino__faq-section {
  background-color: #2F6BFF;
  color: #ffffff;
}

.page-casino__faq-list {
  margin-top: 40px;
}

/* Conclusion Section */
.page-casino__conclusion-section .page-casino__text-block {
  text-align: center;
}

/* Copyright */
.page-casino__copyright {
  text-align: center;
  padding: 20px 15px;
  font-size: 14px;
  color: #666;
  background-color: #F4F7FB;
  border-top: 1px solid #e0e0e0;
}

/* Responsive Styles */
@media (max-width: 1023px) {
  .page-casino__main-title {
    font-size: 40px;
  }
  .page-casino__subtitle {
    font-size: 18px;
  }
  .page-casino__section-title {
    font-size: 32px;
  }
  .page-casino__game-card-image,
  .page-casino__promo-card-image {
    height: 160px;
  }
  .page-casino__step-number {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-casino__section-padding {
    padding: 40px 0;
  }
  .page-casino__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-casino__subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-casino__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-casino__text-block {
    font-size: 15px;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-tertiary,
  .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__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__hero-content {
    padding: 15px;
  }
  .page-casino__game-grid,
  .page-casino__promo-grid,
  .page-casino__step-grid,
  .page-casino__support-channels {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-casino__game-card-image,
  .page-casino__promo-card-image {
    height: 150px;
  }
  .page-casino__game-card-title,
  .page-casino__promo-card-title,
  .page-casino__step-title,
  .page-casino__support-title {
    font-size: 18px;
  }
  .page-casino__step-number {
    font-size: 36px;
  }
  .page-casino__faq-item summary.page-casino__faq-question {
    padding: 15px;
  }
  .page-casino__faq-qtext {
    font-size: 15px;
  }
  .page-casino__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 15px 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;
  }
}

/* Fixed header padding (if shared.css doesn't handle body padding-top) */
/* If shared.css already has body { padding-top: var(--header-offset); }, then remove this from .page-casino */
/* .page-casino { padding-top: var(--header-offset, 122px); } */

/* This page is not index.html, so the homepage-specific CSS for game trial is not needed */
/* The provided template includes desktop/mobile for homepage game trial which is not relevant here. */
/* However, as per instructions, I must include the homepage game trial CSS if it was provided as a 'write-template' */
/* Since this is an inner page, I will only include the general responsive rules for this page's content */
/* The provided CSS template for game trial is for index.html, so I will omit it for casino.html unless explicitly forced again for non-index.html */
/* Re-reading the instructions: "首页须同时包含 ... 完整规则；内页至少含 768px" - so the game trial CSS is NOT for this inner page. */
/* Re-reading again: "css 字段必须完整：必须把本文「写死模板」中的 A 段 @media (max-width:1023px) 与 B 段 @media (min-width:1024px) ... 原样写入" - This is contradictory. The previous instruction for non-homepage said "禁止在非首页复制首页全套 (试玩壳+优惠条+热门 2 列+品牌+ticker)". I will stick to the non-homepage rule for content, but if the CSS template *must* be included literally, I will put it. The instruction is about 'css field must be complete' and then lists game trial CSS. This implies it must be included even if not used. */
/* Given the latest instructions, I must include the homepage game trial CSS sections A and B verbatim, even if they don't apply to this page's actual content. I will place them at the top of the CSS. */

@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;
  }
}

/* The following are specific to index.html and are not used by casino.html, but included as per instructions if they were part of a 'write-template' */
/* As per the instruction, the 768px for homepage sections (promo, hot-games, etc.) should also be included. */
@media (max-width: 768px) {
  .page-casino__promo-strip-track { /* Placeholder for homepage promo strip */
    grid-template-columns: repeat(4, 1fr);
    overflow-x: hidden;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-casino__promo-strip-card { /* Placeholder for homepage promo strip card */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
  }
  .page-casino__promo-strip-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  .page-casino__promo-strip-card h3 {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 5px;
  }
  .page-casino__promo-strip-card button {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
  }
  .page-casino__hot-games-grid { /* Placeholder for homepage hot games */
    grid-template-columns: repeat(2, 1fr);
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-casino__hot-games-card { /* Placeholder for homepage hot games card */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
  }
  .page-casino__hot-games-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  .page-casino__hot-games-name,
  .page-casino__hot-games-rtp,
  .page-casino__hot-games-desc {
    display: none; /* Hide for mobile */
  }
  .page-casino__brand-intro { /* Placeholder for homepage brand intro */
    display: block;
    padding: 20px 15px;
    text-align: center;
  }
  .page-casino__winner-ticker { /* Placeholder for homepage winner ticker */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 15px;
    z-index: 999;
  }
  body.page-casino--winner-ticker-active main.page-casino {
    padding-bottom: 50px; /* Adjust if ticker height varies */
  }
}