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

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

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

.page-casino__dark-section .page-casino__section-title,
.page-casino__dark-section .page-casino__section-intro {
  color: #ffffff;
}

.page-casino__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #1F2D3D; /* Text Main */
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.6);
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-casino__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  font-weight: 700;
}

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

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

/* Buttons */
.page-casino__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  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;
  border: 2px solid transparent;
}

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

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

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

.page-casino__btn--small {
  padding: 8px 18px;
  font-size: 16px;
  border-radius: 6px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
}

.page-casino__btn--small:hover {
  opacity: 0.9;
}

.page-casino__btn--promo {
  padding: 10px 22px;
  font-size: 17px;
  border-radius: 7px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
}

.page-casino__btn--promo:hover {
  opacity: 0.9;
}

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

.page-casino__game-card {
  background: #ffffff; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF; /* Border */
}

.page-casino__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-casino__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-casino__game-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-casino__game-card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #1F2D3D; /* Text Main */
}

.page-casino__game-card-title a {
  text-decoration: none;
  color: #1F2D3D;
  transition: color 0.3s ease;
}

.page-casino__game-card-title a:hover {
  color: #2F6BFF;
}

.page-casino__game-card-description {
  font-size: 15px;
  color: #555;
  flex-grow: 1;
}

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

.page-casino__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-casino__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-casino__promo-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-casino__promo-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-casino__promo-card-title {
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
}

.page-casino__promo-card-title a {
  text-decoration: none;
  color: #ffffff;
  transition: color 0.3s ease;
}

.page-casino__promo-card-title a:hover {
  color: #A5C4FF; /* Glow */
}

.page-casino__promo-card-description {
  font-size: 15px;
  color: #e0e0e0;
  flex-grow: 1;
}

/* Why Choose k8cc */
.page-casino__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-casino__benefit-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid #D6E2FF;
}

.page-casino__benefit-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.page-casino__benefit-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #1F2D3D;
}

.page-casino__benefit-description {
  font-size: 15px;
  color: #555;
}

/* How to Start */
.page-casino__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-casino__step-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid #D6E2FF;
}

.page-casino__step-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.page-casino__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #2F6BFF;
}

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

/* FAQ Section */
.page-casino__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #fff;
}

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: #f5f5f5;
}

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

.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF;
  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: #333;
}

/* CTA Bottom */
.page-casino__cta-bottom {
  padding-top: 50px;
  padding-bottom: 50px;
  text-align: center;
}

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

/* Forced Homepage Trial Layout CSS - Irrelevant to casino.html content, but 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;
  }
}

/* Mobile responsive adaptations for casino.html content */
@media (max-width: 768px) {
  .page-casino__section {
    padding: 25px 15px;
  }

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

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

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

  .page-casino__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
  }

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

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

  .page-casino__section-intro {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-casino__game-grid,
  .page-casino__promo-grid,
  .page-casino__benefits-grid,
  .page-casino__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__game-card-image,
  .page-casino__promo-card-image {
    height: 180px;
  }

  .page-casino__game-card-title,
  .page-casino__promo-card-title {
    font-size: 20px;
  }

  .page-casino__benefit-image,
  .page-casino__step-image {
    max-width: 150px;
  }

  .page-casino__benefit-title,
  .page-casino__step-title {
    font-size: 18px;
  }

  details.page-casino__faq-item summary.page-casino__faq-question {
    padding: 15px;
  }

  .page-casino__faq-qtext {
    font-size: 15px;
  }

  .page-casino__faq-answer {
    padding: 0 15px 15px;
  }

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

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

/* Placeholder for homepage-specific elements' mobile CSS (as per prompt, even if not in HTML) */
@media (max-width: 768px) {
  /* This section is for forced homepage-specific CSS from the prompt's '必写清单', 
     even if these elements are not present on this inner 'casino.html' page. */
  .page-casino__promo-strip-track { /* Example for '__promo-strip' */
    grid-template-columns: repeat(2, 1fr); /* Adjust as needed for 2 columns */
    overflow-x: hidden;
  }
  .page-casino__hot-games-grid { /* Example for '__hot-games' */
    grid-template-columns: repeat(2, 1fr);
    overflow-x: hidden;
  }
  .page-casino__hot-games-name, .page-casino__hot-games-rtp, .page-casino__hot-games-desc { /* Hide details */
    display: none;
  }
  .page-casino__winner-ticker { /* Example for '__winner-ticker' */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
  }
  /* body/main padding for winner-ticker (if shared.css doesn't handle it) */
  body.page-casino--winner-ticker-active { /* Example class */
    padding-bottom: 50px; /* Adjust height of ticker */
  }
}