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

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

.page-casino__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #FFB04D; /* Glow */
}

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

.page-casino__paragraph {
  margin-bottom: 15px;
  color: #FFF3E6;
}

/* Hero Section */
.page-casino__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 50px;
  background-color: #0D0E12;
  position: relative;
  overflow: hidden;
}

.page-casino__hero-image-container {
  width: 100%;
  max-width: 1200px;
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-casino__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 15px;
  z-index: 2;
}

.page-casino__main-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
}

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

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  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: #FFA53A;
  color: #0D0E12;
}

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

.page-casino__image-text-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-casino__image-left {
  flex: 0 0 45%;
  max-width: 45%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 100%;
  height: auto;
  display: block;
}

.page-casino__text-right {
  flex: 1;
}

/* Games Section */
.page-casino__games-section {
  background-color: #0D0E12;
  padding: 60px 0;
}

.page-casino__game-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;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #A84F0C; /* Border */
}

.page-casino__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-casino__game-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
}

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

.page-casino__game-button {
  margin-top: auto;
  display: inline-block;
  width: 100%;
}

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

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

.page-casino__promo-card {
  background-color: #0D0E12; /* Background */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid #A84F0C; /* Border */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__promo-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
}

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

.page-casino__view-all-promos {
  text-align: center;
  margin-top: 40px;
}

/* Why Choose Section */
.page-casino__why-choose-section {
  background-color: #0D0E12;
  padding: 60px 0;
}

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

.page-casino__feature-item {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border */
}

.page-casino__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__feature-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFA53A;
  margin-bottom: 10px;
}

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

/* Guide Section */
.page-casino__guide-section {
  background-color: #17191F; /* Card BG */
  padding: 60px 0;
}

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

.page-casino__step-item {
  background-color: #0D0E12; /* Background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border */
}

.page-casino__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-casino__step-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
}

.page-casino__step-description {
  font-size: 15px;
  color: #FFF3E6;
}

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

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

.page-casino__faq-list {
  max-width: 900px;
  margin: 0 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: #2a2d34; /* Slightly lighter Card BG */
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6; /* Text Main */
}
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-casino__faq-item[open] .page-casino__faq-toggle {
  content: '−';
}
details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 20px 20px;
  background: #0D0E12; /* Background */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
}

/* Final CTA Section */
.page-casino__cta-section {
  background-color: #17191F; /* Card BG */
  padding: 60px 0;
}

.page-casino__copyright {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #FFF3E6;
  background-color: #0D0E12; /* Background */
}

/* Global image responsiveness */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Specific media queries for homepage trial layout (as per strict instruction) */
@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 responsiveness */
@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-casino__hero-section {
    padding-bottom: 30px;
  }

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

  .page-casino__intro-text {
    font-size: 16px;
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-casino__image-text-layout {
    flex-direction: column;
    gap: 20px;
  }

  .page-casino__image-left {
    max-width: 100%;
    flex: none;
  }

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

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

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

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

  .page-casino__feature-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: 16px;
  }
  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 15px 15px;
  }

  /* General content area images and containers */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .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__guide-section,
  .page-casino__faq-section,
  .page-casino__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Homepage specific elements for CSS, as per strict instruction, even if not used in casino.html HTML */
.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;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
}
.page-casino__reward-modal[hidden] {
  display: none !important;
}
.page-casino__reward-modal-content {
  background: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  position: relative;
  border: 1px solid #A84F0C;
}
.page-casino__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: #FFF3E6;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
}
.page-casino__reward-modal-title {
  font-size: 28px;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
}
.page-casino__reward-modal-text {
  font-size: 18px;
  color: #FFF3E6;
  margin-bottom: 25px;
}
.page-casino__reward-modal-button {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  border: none;
  transition: opacity 0.3s ease;
}
.page-casino__reward-modal-button:hover {
  opacity: 0.9;
}