/* Base styles for the slot-games page */
.page-slot-games {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background: #F5F7FA; /* Default page background */
}

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

.page-slot-games__section {
  padding: 40px 0;
  margin-bottom: 20px;
}

.page-slot-games__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 30px;
}

.page-slot-games__main-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-slot-games__description {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Hero Section */
.page-slot-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background: linear-gradient(180deg, #F5F7FA 0%, #ffffff 100%);
}

.page-slot-games__hero-content {
  order: 2; /* Content below image */
  padding: 20px 15px;
  max-width: 900px;
  text-align: center;
}

.page-slot-games__hero-image-wrapper {
  order: 1; /* Image above content */
  width: 100%;
  max-width: 1000px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

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

.page-slot-games__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__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;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-slot-games__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-slot-games__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-slot-games__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.2);
}

.page-slot-games__btn-small {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-slot-games__btn-small:hover {
  opacity: 0.9;
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3);
}

/* Introduction Section */
.page-slot-games__intro-section p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
}

.page-slot-games__intro-section p strong {
  color: #E53935;
}

/* Advantages Section */
.page-slot-games__dark-section {
  background: #E53935;
  color: #ffffff;
}

.page-slot-games__dark-section .page-slot-games__section-title {
  color: #ffffff;
}

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

.page-slot-games__feature-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__feature-card:hover {
  transform: translateY(-5px);
}

.page-slot-games__feature-image {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
}

.page-slot-games__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-slot-games__feature-card p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Popular Games Section */
.page-slot-games__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-slot-games__game-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__game-card:hover {
  transform: translateY(-3px);
}

.page-slot-games__game-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-slot-games__game-title {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 10px;
}

.page-slot-games__game-card p {
  font-size: 14px;
  line-height: 1.5;
  color: #666666;
  flex-grow: 1;
  margin-bottom: 15px;
}

.page-slot-games__view-all-games {
  text-align: center;
  margin-top: 40px;
}

/* How to Play Section */
.page-slot-games__light-bg {
  background: #ffffff;
}

.page-slot-games__steps-list {
  list-style: none;
  padding: 0;
  margin: 30px auto 0;
  max-width: 800px;
}

.page-slot-games__steps-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  font-size: 16px;
  line-height: 1.7;
}

.page-slot-games__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #E53935;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  margin-right: 15px;
}

.page-slot-games__steps-list li p strong {
  color: #E53935;
}

.page-slot-games__steps-list li p a {
  color: #E53935;
  text-decoration: underline;
}

.page-slot-games__steps-list li p a:hover {
  color: #FF5A4F;
}

/* Tips Section */
.page-slot-games__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-slot-games__tip-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-slot-games__tip-title {
  font-size: 20px;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 10px;
}

.page-slot-games__tip-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #333333;
}

.page-slot-games__tip-card a {
  color: #E53935;
  text-decoration: underline;
}

.page-slot-games__tip-card a:hover {
  color: #FF5A4F;
}

/* Promotions Section */
.page-slot-games__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-slot-games__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__promo-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-slot-games__promo-title {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-slot-games__promo-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

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

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

/* Final CTA Section */
.page-slot-games__cta-content {
  text-align: center;
}

.page-slot-games__cta-content p {
  font-size: 18px;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Copyright Info */
.page-slot-games__copyright-info {
    text-align: center;
    padding: 20px 15px;
    background: #222222;
    color: #aaaaaa;
    font-size: 14px;
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1023px) {
  /* Homepage trial layout - included as per instruction, but not used in slot-games.html */
  .page-slot-games__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-slot-games__hero-brand,
  .page-slot-games__hero-jackpot {
    display: none !important;
  }
  .page-slot-games__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-slot-games__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-slot-games__game-trial-topbar,
  .page-slot-games__game-trial-bottombar {
    display: none !important;
  }
  .page-slot-games__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-slot-games__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-slot-games__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-slot-games__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  /* Homepage trial layout - included as per instruction, but not used in slot-games.html */
  .page-slot-games__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-slot-games__hero-brand,
  .page-slot-games__hero-jackpot,
  .page-slot-games__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-slot-games__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-slot-games__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-slot-games__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-slot-games__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-slot-games__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

@media (max-width: 768px) {
  .page-slot-games__main-title {
    font-size: 32px;
  }
  .page-slot-games__description {
    font-size: 16px;
  }
  .page-slot-games__section-title {
    font-size: 28px;
  }

  /* General image and container adaptation */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slot-games__container,
  .page-slot-games__hero-image-wrapper,
  .page-slot-games__feature-card,
  .page-slot-games__game-card,
  .page-slot-games__promo-card,
  .page-slot-games__tip-card,
  .page-slot-games__cta-buttons,
  .page-slot-games__view-all-games,
  .page-slot-games__view-all-promos {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons adaptation */
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-small,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* FAQ adaptation */
  details.page-slot-games__faq-item summary.page-slot-games__faq-question {
    padding: 15px;
  }
  .page-slot-games__faq-qtext {
    font-size: 15px;
  }
  details.page-slot-games__faq-item .page-slot-games__faq-answer {
    padding: 0 15px 15px;
  }

  /* Sections padding */
  .page-slot-games__section {
    padding: 30px 0;
  }

  /* Grid layouts */
  .page-slot-games__features-grid,
  .page-slot-games__game-grid,
  .page-slot-games__tips-grid,
  .page-slot-games__promo-cards {
    grid-template-columns: 1fr;
  }

  .page-slot-games__steps-list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-slot-games__step-number {
    margin-right: 0;
    margin-bottom: 10px;
  }

  /* Homepage specific elements (if present) */
  .page-slot-games__promo-strip-track { /* Example for promo strip */
    grid-template-columns: repeat(4, 1fr);
    overflow-x: hidden;
  }
  .page-slot-games__hot-games-grid { /* Example for hot games */
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Common and general styles from prompt */
.page-slot-games__game-trial-overlay{z-index:5;pointer-events:auto;}
.page-slot-games__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}
.page-slot-games__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}
.page-slot-games__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}
.page-slot-games__reward-modal{position:fixed;inset:0;z-index:10000;}
.page-slot-games__reward-modal-close { /* Style for reward modal close button */
  position: absolute;
  top: 15px;
  right: 15px;
  background: #E53935;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.page-slot-games__reward-modal-close:hover { background: #FF5A4F; }