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

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

.page-casino-game-rules__section {
  padding: 40px 0;
  margin-bottom: 20px;
}

.page-casino-game-rules__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 40px;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-casino-game-rules__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-casino-game-rules__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-casino-game-rules__main-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-casino-game-rules__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
  color: #555555;
}

.page-casino-game-rules__section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
}

.page-casino-game-rules__game-types {
  background-color: #f8f8f8;
}

.page-casino-game-rules__game-rule-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino-game-rules__game-card-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-casino-game-rules__game-card-title {
  font-size: 24px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 15px;
}

.page-casino-game-rules__game-rule-card p {
  font-size: 16px;
  color: #666666;
  margin-bottom: 20px;
}

.page-casino-game-rules__betting-tips {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-casino-game-rules__betting-tips .page-casino-game-rules__section-title {
  color: #ffffff;
}

.page-casino-game-rules__tips-list {
  list-style: disc inside;
  text-align: left;
  margin: 0 auto 30px;
  max-width: 800px;
  font-size: 16px;
}

.page-casino-game-rules__tips-list li {
  margin-bottom: 10px;
}

.page-casino-game-rules__tips-list strong {
  color: #FFFFFF;
}

/* Buttons */
.page-casino-game-rules__btn-primary,
.page-casino-game-rules__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-casino-game-rules__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-casino-game-rules__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

.page-casino-game-rules__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  margin-top: 15px; /* For cards with button below text */
}

.page-casino-game-rules__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a8cc4;
  border-color: #1a8cc4;
}

/* FAQ styles */
details.page-casino-game-rules__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-casino-game-rules__faq-item summary.page-casino-game-rules__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: #333333;
}
details.page-casino-game-rules__faq-item summary.page-casino-game-rules__faq-question::-webkit-details-marker {
  display: none;
}
details.page-casino-game-rules__faq-item summary.page-casino-game-rules__faq-question:hover {
  background: #f5f5f5;
}
.page-casino-game-rules__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-casino-game-rules__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-casino-game-rules__faq-item .page-casino-game-rules__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Responsive styles */
@media (max-width: 1023px) {
  /* Homepage trial reset - Required by prompt, even if not used on this page */
  .page-casino-game-rules__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-game-rules__hero-brand,
  .page-casino-game-rules__hero-jackpot {
    display: none !important;
  }
  .page-casino-game-rules__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-rules__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-casino-game-rules__game-trial-topbar,
  .page-casino-game-rules__game-trial-bottombar {
    display: none !important;
  }
  .page-casino-game-rules__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-rules__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-rules__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-casino-game-rules__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  /* PC three-column layout - Required by prompt, even if not used on this page */
  .page-casino-game-rules__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-game-rules__hero-brand,
  .page-casino-game-rules__hero-jackpot,
  .page-casino-game-rules__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-casino-game-rules__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-casino-game-rules__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-casino-game-rules__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-casino-game-rules__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-casino-game-rules__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  .page-casino-game-rules__promo-strip {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
  }
  .page-casino-game-rules__promo-card {
    display: flex;
    flex-direction: row; /* Left image, right text */
    align-items: center;
    text-align: left;
    padding: 15px;
  }
  .page-casino-game-rules__promo-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin-right: 15px;
  }
  .page-casino-game-rules__promo-content {
    flex-grow: 1;
  }
  .page-casino-game-rules__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 30px auto;
    padding: 0 16px;
  }
  .page-casino-game-rules__hot-game-card-content {
    text-align: center; /* Image below text */
  }
  .page-casino-game-rules__hot-games-name,
  .page-casino-game-rules__hot-games-rtp,
  .page-casino-game-rules__hot-games-desc {
    display: block; /* Show details */
  }
}

@media (max-width: 768px) {
  /* Mobile specific styles */
  .page-casino-game-rules {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-casino-game-rules__hero-section {
    padding-bottom: 20px;
  }
  .page-casino-game-rules__main-title {
    font-size: 28px;
  }
  .page-casino-game-rules__intro-text {
    font-size: 16px;
  }
  .page-casino-game-rules__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .page-casino-game-rules__game-rule-card {
    padding: 15px;
    margin-bottom: 20px;
  }
  .page-casino-game-rules__game-card-title {
    font-size: 20px;
  }
  .page-casino-game-rules__game-card-image {
    margin-bottom: 15px;
  }
  .page-casino-game-rules__tips-list {
    font-size: 15px;
    padding-left: 20px;
  }
  details.page-casino-game-rules__faq-item summary.page-casino-game-rules__faq-question {
    padding: 15px;
  }
  .page-casino-game-rules__faq-qtext {
    font-size: 15px;
  }
  .page-casino-game-rules__faq-answer {
    padding: 0 15px 15px;
  }

  /* Mobile image adaptation */
  .page-casino-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino-game-rules__section,
  .page-casino-game-rules__container,
  .page-casino-game-rules__game-rule-card,
  .page-casino-game-rules__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }

  /* Mobile button adaptation */
  .page-casino-game-rules__btn-primary,
  .page-casino-game-rules__btn-secondary,
  .page-casino-game-rules a[class*="button"],
  .page-casino-game-rules 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-game-rules__cta-buttons,
  .page-casino-game-rules__button-group,
  .page-casino-game-rules__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;
    display: flex;
    flex-direction: column;
  }

  /* Required for homepage modules, even if not on this page */
  .page-casino-game-rules__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns for promo strip on mobile */
    overflow-x: hidden;
    gap: 10px;
    padding: 0;
  }
  .page-casino-game-rules__promo-card {
    flex-direction: column !important; /* Stack image and text */
    text-align: center !important;
    padding: 10px;
  }
  .page-casino-game-rules__promo-image {
    margin-right: 0 !important;
    margin-bottom: 10px;
    width: 60px !important;
    height: 60px !important;
  }
  .page-casino-game-rules__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
    padding: 0;
  }
  .page-casino-game-rules__hot-games-name,
  .page-casino-game-rules__hot-games-rtp,
  .page-casino-game-rules__hot-games-desc {
    display: none !important; /* Hide details on mobile */
  }
  .page-casino-game-rules__winner-ticker {
    position: fixed !important;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #000000; /* Example dark background */
    color: #ffffff;
    padding: 8px 15px;
  }
  .page-casino-game-rules__body-padding-for-ticker {
    padding-bottom: 50px; /* Adjust body padding if ticker is fixed */
  }
}

/* Common styles for elements that might appear on homepage or inner pages */
.page-casino-game-rules__game-trial-overlay{
  z-index:5;
  pointer-events:auto;
}
.page-casino-game-rules__game-trial-overlay.is-hidden{
  display:none!important;
  pointer-events:none!important;
}
.page-casino-game-rules__game-trial-start{
  z-index:6;
  pointer-events:auto;
  touch-action:manipulation;
}
.page-casino-game-rules__game-trial-shell{
  border:1px solid rgba(212,175,55,.45);
  border-radius:10px;
  overflow:hidden;
}
.page-casino-game-rules__reward-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-casino-game-rules__reward-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.page-casino-game-rules__reward-modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.page-casino-game-rules__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  line-height: 1;
}
.page-casino-game-rules__reward-modal-title {
  color: #26A9E0;
  font-size: 28px;
  margin-bottom: 15px;
}
.page-casino-game-rules__reward-modal-text {
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
}
.page-casino-game-rules__reward-modal-btn {
  background-color: #EA7C07;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.page-casino-game-rules__reward-modal-btn:hover {
  background-color: #d16b06;
}
.page-casino-game-rules--reward-open {
  overflow: hidden; /* Prevent scrolling when modal is open */
}