.page-game-rules {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #FFFFFF;
}

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

.page-game-rules__section {
  padding: 40px 0;
  text-align: center;
}

.page-game-rules__hero-section {
  padding-bottom: 24px;
  background-color: #f5f5f5;
}

.page-game-rules__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.page-game-rules__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-game-rules__hero-content {
  padding: 0 15px;
}

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

.page-game-rules__description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-rules__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-game-rules__btn-primary,
.page-game-rules__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-game-rules__btn-secondary:hover {
  background-color: #e0f2f7;
}

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

.page-game-rules__section-title--white {
  color: #FFFFFF;
}

.page-game-rules__text-block {
  font-size: 16px;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 20px;
}

.page-game-rules__text-block--white {
  color: #f0f0f0;
}

.page-game-rules__overview-section .page-game-rules__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-game-rules__card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.page-game-rules__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

.page-game-rules__card p {
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
}

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

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

.page-game-rules__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.page-game-rules__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-game-rules__game-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-game-rules__game-card-title {
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.page-game-rules__game-card-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-rules__game-card-content .page-game-rules__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #FFFFFF;
  align-self: flex-start;
  padding: 8px 18px;
  font-size: 14px;
}

.page-game-rules__game-card-content .page-game-rules__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #26A9E0;
}

.page-game-rules__security-section .page-game-rules__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
  text-align: left;
}

.page-game-rules__security-image {
  width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-game-rules__security-text {
  width: 50%;
}

.page-game-rules__security-text .page-game-rules__btn-primary {
  margin-top: 20px;
  display: inline-flex;
}

.page-game-rules__responsibility-section .page-game-rules__responsibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-game-rules__responsibility-grid .page-game-rules__btn-secondary,
.page-game-rules__responsibility-grid .page-game-rules__btn-primary {
  margin-top: 20px;
  align-self: flex-start;
}

.page-game-rules__faq-list {
  margin-top: 30px;
  text-align: left;
}

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

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

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

.page-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-game-rules__faq-item .page-game-rules__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-game-rules__faq-answer p {
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 0;
}

.page-game-rules__conclusion-section {
  padding-top: 50px;
  padding-bottom: 50px;
}

.page-game-rules__conclusion-section .page-game-rules__btn-primary--large {
  padding: 15px 35px;
  font-size: 18px;
  margin-top: 30px;
}

/* ==================================================================
   RESPONSIVE STYLES
   ================================================================== */

@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;
  }
  /* Placeholder for promo strip, hot games, brand intro, winner ticker desktop styles */
  /* These are for homepage, but included as per instructions */
  .page-game-rules__promo-strip { margin-top: 16px; /* Example desktop style */ }
  .page-game-rules__hot-games-grid { grid-template-columns: repeat(6, 1fr); /* Example desktop style */ }
  .page-game-rules__brand-intro { display: block; /* Example desktop style */ }
  .page-game-rules__winner-ticker { display: block; /* Example desktop style */ }
}

@media (max-width: 768px) {
  .page-game-rules__section {
    padding: 30px 0;
  }

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

  .page-game-rules__description {
    font-size: 16px;
  }

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

  .page-game-rules__btn-primary,
  .page-game-rules__btn-secondary,
  .page-game-rules a[class*="button"],
  .page-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-game-rules__cta-buttons,
  .page-game-rules__button-group,
  .page-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;
  }

  .page-game-rules__content-grid {
    grid-template-columns: 1fr;
  }

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

  .page-game-rules__card p {
    font-size: 14px;
  }

  .page-game-rules__game-type-cards {
    grid-template-columns: 1fr;
  }

  .page-game-rules__game-card-image {
    height: 180px;
  }

  .page-game-rules__game-card-title {
    font-size: 18px;
  }

  .page-game-rules__game-card-content p {
    font-size: 13px;
  }

  .page-game-rules__security-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-game-rules__security-image,
  .page-game-rules__security-text {
    width: 100%;
  }

  .page-game-rules__responsibility-grid {
    grid-template-columns: 1fr;
  }

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

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

  .page-game-rules__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-game-rules__faq-item .page-game-rules__faq-answer {
    padding: 0 15px 15px;
  }

  .page-game-rules__faq-answer p {
    font-size: 14px;
  }

  /* All images mobile responsive */
  .page-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-rules__hero-image-wrapper,
  .page-game-rules__overview-section .page-game-rules__content-grid,
  .page-game-rules__game-type-cards,
  .page-game-rules__security-content,
  .page-game-rules__responsibility-grid,
  .page-game-rules__faq-list,
  .page-game-rules__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Placeholder for homepage specific elements on mobile */
  .page-game-rules__promo-strip-track { grid-template-columns: repeat(4,1fr); overflow-x:hidden; /* Example mobile style */ }
  .page-game-rules__hot-games-grid { grid-template-columns: repeat(2,1fr); /* Example mobile style */ }
  .page-game-rules__brand-intro { display: block; /* Example mobile style */ }
  .page-game-rules__winner-ticker { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; /* Example mobile style */ }
}

/* Common styles for game trial if applicable, included for completeness as per instructions */
.page-game-rules__game-trial-overlay{z-index:5;pointer-events:auto;}.page-game-rules__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}.page-game-rules__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}.page-game-rules__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}.page-game-rules__reward-modal{position:fixed;inset:0;z-index:10000;}
.page-game-rules__reward-modal.is-hidden { display: none !important; pointer-events: none !important; }
.page-game-rules__reward-modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 24px; color: #fff; cursor: pointer; }