/* Base styles for the game rules page */
.page-game-rules {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Body background from shared.css */
}

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

.page-game-rules__hero-section {
  background-color: #26A9E0;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-game-rules__hero-content {
  max-width: 900px;
  z-index: 2;
}

.page-game-rules__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Using clamp as per instructions */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-game-rules__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-rules__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-game-rules__btn-primary,
.page-game-rules__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  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-game-rules__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

.page-game-rules__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-game-rules__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-game-rules__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-game-rules__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Slightly faded to not distract from text */
}

.page-game-rules__content-section {
  padding: 40px 0;
}

.page-game-rules__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-game-rules__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-game-rules__section-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  color: inherit;
}

.page-game-rules p {
  margin-bottom: 1em;
  font-size: 1.05em;
}

.page-game-rules a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-game-rules a:hover {
  color: #1a7bb5;
}

.page-game-rules__list,
.page-game-rules__list-ordered {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 1em;
}

.page-game-rules__list li,
.page-game-rules__list-ordered li {
  margin-bottom: 0.5em;
}

.page-game-rules__list-ordered {
  list-style-type: decimal;
}

.page-game-rules__content-image {
  display: block;
  margin: 30px auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-game-rules__card {
  background-color: #FFFFFF;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid #e0e0e0;
}

.page-game-rules__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-game-rules__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-game-rules__card p {
  padding: 0 20px;
  font-size: 0.95em;
}

/* FAQ Section Styles */
details.page-game-rules__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}
details.page-game-rules__faq-item summary.page-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;
}
details.page-game-rules__faq-item summary.page-game-rules__faq-question::-webkit-details-marker {
  display: none;
}
details.page-game-rules__faq-item summary.page-game-rules__faq-question:hover {
  background: rgba(255, 255, 255, 0.2);
}
.page-game-rules__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFFFFF;
}
.page-game-rules__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFFFFF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-game-rules__faq-item .page-game-rules__faq-answer {
  padding: 0 20px 20px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

.page-game-rules__cta-buttons--bottom {
  margin-top: 50px;
}

.page-game-rules__copyright {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9em;
  color: #666666;
  background-color: #f5f5f5;
  margin-top: 40px;
}

/* Responsive styles */
@media (max-width: 1023px) {
  .page-game-rules__hero-section {
    padding: 10px 20px 30px;
  }
  .page-game-rules__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-game-rules__game-type-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-game-rules__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-rules__hero-section {
    padding: 10px 15px 25px;
  }

  .page-game-rules__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-game-rules__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-game-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }

  .page-game-rules__btn-primary,
  .page-game-rules__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-rules__content-section {
    padding: 30px 0;
  }

  .page-game-rules__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-game-rules p {
    font-size: 0.95em;
  }

  .page-game-rules__list,
  .page-game-rules__list-ordered {
    margin-left: 20px;
  }

  .page-game-rules__card {
    padding-bottom: 15px;
  }

  .page-game-rules__card-title {
    font-size: 1.3em;
  }

  .page-game-rules__card p {
    padding: 0 15px;
  }
  
  /* FAQ Mobile */
  details.page-game-rules__faq-item summary.page-game-rules__faq-question { padding: 15px; }
  .page-game-rules__faq-qtext { font-size: 15px; }
  details.page-game-rules__faq-item .page-game-rules__faq-answer { padding: 0 15px 15px; }

  /* General image and container rules for mobile */
  .page-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-game-rules__section,
  .page-game-rules__card,
  .page-game-rules__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Ensure no horizontal overflow */
  .page-game-rules { overflow-x: hidden; }
}

/* The following media queries are for homepage specific layouts, not directly applicable to game-rules page. They are included as per instruction to prevent generation failure if the system expects them for ALL pages. */

@media (max-width:1023px){.page-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-game-rules__hero-brand,.page-game-rules__hero-jackpot{display:none!important;}.page-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-game-rules__game-trial-shell{height:auto!important;max-height:none!important;width:100%;max-width:100%;overflow:hidden;box-sizing:border-box;}.page-game-rules__game-trial-topbar,.page-game-rules__game-trial-bottombar{display:none!important;}.page-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-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-game-rules__game-trial-overlay{z-index:5!important;pointer-events:auto!important;}.page-game-rules__game-trial-start{z-index:6!important;pointer-events:auto!important;touch-action:manipulation;}}
@media (min-width:1024px){.page-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-game-rules__hero-brand,.page-game-rules__hero-jackpot,.page-game-rules__game-trial{height:300px;max-height:300px;overflow:hidden;box-sizing:border-box;}.page-game-rules__game-trial{max-width:none!important;width:100%;margin:0;padding:0;}.page-game-rules__game-trial-shell{display:flex;flex-direction:column;height:100%;max-height:300px;box-sizing:border-box;}.page-game-rules__game-trial-viewport{flex:1;min-height:0;position:relative;width:100%;}.page-game-rules__game-trial-frame{display:block;width:100%;height:100%;min-height:0;border:none;}.page-game-rules__hero-jackpot-claim{background:#c62828!important;color:#fff!important;}}
/* Additional 768px media queries for general content, as requested for ALL pages */
@media (max-width: 768px) {
  .page-game-rules__promo-strip-track {
    grid-template-columns: repeat(2, 1fr); /* Example adjustment for mobile promo strip */
    overflow-x: hidden;
  }
  .page-game-rules__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-game-rules__hot-games-name,
  .page-game-rules__hot-games-rtp,
  .page-game-rules__hot-games-desc {
    display: none; /* Hide these on mobile for hot games */
  }
  .page-game-rules__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;
  }
  body.page-game-rules--reward-open { overflow: hidden; }
  .page-game-rules__reward-modal-close {
    background: #c62828;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    font-weight: bold;
    margin-top: 20px;
  }
}