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

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

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

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

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

.page-casino__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  text-align: center;
  background-color: #0D0E12; /* Background */
}

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

.page-casino__main-title {
  font-size: 48px;
  font-weight: 700;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__hero-description {
  font-size: 20px;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  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%); /* Button */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  transform: translateY(-2px);
}

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

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

.page-casino__btn-small {
  padding: 10px 20px;
  font-size: 16px;
}

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

.page-casino__btn-full-width {
  width: 100%;
  max-width: 300px;
  margin: 30px auto 0;
}

.page-casino__light-bg {
  background-color: #17191F; /* Card BG */
  color: #FFF3E6;
}

.page-casino__dark-bg {
  background-color: #0D0E12; /* Background */
  color: #FFF3E6;
}

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

.page-casino__feature-item {
  background-color: #0D0E12; /* Background */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__feature-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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

.page-casino__game-categories {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-casino__category-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFA53A;
}

.page-casino__category-description {
  font-size: 17px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #FFF3E6;
}

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

.page-casino__game-card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-casino__game-name {
  font-size: 20px;
  font-weight: bold;
  color: #FFB04D;
  margin: 15px 10px 10px;
}

.page-casino__btn-play {
  display: inline-block;
  padding: 10px 20px;
  margin: 10px auto 20px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button */
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.page-casino__btn-play:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
}

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

.page-casino__live-casino-image,
.page-casino__other-game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #A84F0C; /* Border */
}

.page-casino__promotions {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-casino__promo-card {
  background-color: #0D0E12; /* Background */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-casino__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

.page-casino__promo-description {
  font-size: 16px;
  color: #FFF3E6;
  padding: 0 15px;
  flex-grow: 1;
}

.page-casino__mt-30 {
  margin-top: 30px;
}

.page-casino__security-rg {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-casino__security-rg-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__security-rg-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__security-rg-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-casino__security-rg-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FF8C1A;
}

.page-casino__security-rg-description {
  font-size: 16px;
  color: #FFF3E6;
  margin-bottom: 20px;
}

.page-casino__link-text {
  color: #FFA53A;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-casino__link-text:hover {
  color: #FFB04D;
  text-decoration: underline;
}

.page-casino__faq-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-casino__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

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: rgba(255, 140, 26, 0.1);
}

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

.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 .page-casino__faq-answer {
  padding: 0 20px 20px;
  background: #0D0E12; /* Background */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
  font-size: 16px;
}

.page-casino__final-cta {
  padding-top: 60px;
  padding-bottom: 80px;
  background-color: #17191F; /* Card BG */
}

.page-casino__center-content {
  text-align: center;
}

/* --- Homepage Game Trial CSS (FORCED INSTRUCTION) --- */
/* This block is included as per specific instruction despite being a casino 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;
  }
}

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

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

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

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

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

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

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

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

  .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 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__hero-image,
  .page-casino__feature-icon,
  .page-casino__game-image,
  .page-casino__live-casino-image,
  .page-casino__other-game-image,
  .page-casino__promo-image,
  .page-casino__security-rg-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__features-grid,
  .page-casino__game-cards-grid,
  .page-casino__live-casino-grid,
  .page-casino__other-games-grid,
  .page-casino__promo-cards-grid,
  .page-casino__security-rg-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__feature-item,
  .page-casino__security-rg-item {
    padding: 20px;
  }

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

  /* Placeholder for homepage promo strip, if it were present */
  .page-casino__promo-strip-track {
    grid-template-columns: repeat(2, 1fr); /* Example for mobile promo strip */
    overflow-x: hidden;
  }

  /* Placeholder for homepage hot games, if it were present */
  .page-casino__hot-games-grid {
    grid-template-columns: repeat(2, 1fr); /* Example for mobile hot games */
  }

  /* Placeholder for homepage brand intro, if it were present */
  .page-casino__brand-intro {
    display: block; /* Ensure visibility if meant to be visible on mobile */
  }

  /* Placeholder for homepage winner ticker, if it were present */
  .page-casino__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
  }
}

/* Ensure reward modal close button exists and is styled */
.page-casino__reward-modal-close {
  background: #c62828; /* Deep Orange */
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.page-casino__reward-modal-close:hover {
  background: #a01f1f;
}

.page-casino--reward-open {
  overflow: hidden; /* Prevent scrolling when modal is open */
}

/* For forced game trial CSS */
.page-casino__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}

.page-casino__game-trial-shell {
  border: 1px solid #A84F0C;
  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[hidden] {
  display: none;
}

.page-casino__reward-modal-content {
  background-color: #17191F;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  position: relative;
  color: #FFF3E6;
}

.page-casino__reward-modal-content h3 {
  color: #FFB04D;
  font-size: 28px;
  margin-bottom: 20px;
}

.page-casino__reward-modal-content p {
  font-size: 18px;
  margin-bottom: 30px;
}

.page-casino__reward-modal-content .page-casino__btn-primary {
  width: auto;
  padding: 12px 25px;
}