/*
  IMPORTANT: The following @media blocks for homepage trial game layout are included verbatim as per strict instructions,
  even though this is an inner page (slot-games.html) and these styles will not be directly applied to its HTML structure.
  This is to comply with the 'css field must be complete' and 'must write in original' requirements for the homepage templates.
*/
@media (max-width: 1023px) {
  .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) {
  .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;
  }
}

/* Base styles for the slot-games page */
.page-slot-games {
  background: #140C0C; /* Body background color from custom palette */
  color: #FFF1E8; /* Main text color from custom palette */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-slot-games__hero-section {
  padding-top: 10px; /* Small top padding as shared.css handles body padding-top */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #FFF1E8;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-slot-games__hero-content-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 800px;
  width: 90%;
  z-index: 2;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text readability */
  border-radius: 10px;
  box-sizing: border-box;
}

.page-slot-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  color: #F3C54D; /* Gold from custom palette */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF1E8;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-link,
.page-slot-games__btn-large {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient from custom palette */
  color: #FFF1E8;
  border: none;
}

.page-slot-games__btn-primary:hover {
  background: linear-gradient(180deg, #E53030 0%, #C61F1F 100%); /* Hover with brand colors */
  transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
  background: transparent;
  color: #F3C54D; /* Gold text */
  border: 2px solid #F3C54D; /* Gold border */
}

.page-slot-games__btn-secondary:hover {
  background: #F3C54D;
  color: #140C0C; /* Dark background color from custom palette */
  transform: translateY(-2px);
}

.page-slot-games__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F3C54D; /* Gold from custom palette */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-slot-games__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: justify;
  color: #FFF1E8;
}

.page-slot-games__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Dark section styling */
.page-slot-games__dark-section {
  background: #2A1212; /* Card BG from custom palette */
  color: #FFF1E8;
}

/* Light section styling (for contrast) */
.page-slot-games__light-bg {
  background: #1A0F0F; /* Slightly lighter than body background for subtle contrast */
  color: #FFF1E8;
}

/* Feature list */
.page-slot-games__feature-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-slot-games__feature-item {
  background: #2A1212; /* Card BG from custom palette */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #6A1E1E; /* Border from custom palette */
}

.page-slot-games__feature-title {
  font-size: 1.4rem;
  color: #F3C54D; /* Gold from custom palette */
  margin-top: 0;
  margin-bottom: 10px;
}

.page-slot-games__feature-description {
  font-size: 0.95rem;
  color: #FFF1E8;
}

/* Benefits Grid */
.page-slot-games__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-slot-games__card {
  background: #2A1212; /* Card BG from custom palette */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #6A1E1E; /* Border from custom palette */
  color: #FFF1E8;
}

.page-slot-games__card-title {
  font-size: 1.3rem;
  color: #F3C54D; /* Gold from custom palette */
  margin-top: 0;
  margin-bottom: 10px;
}

.page-slot-games__card-description {
  font-size: 0.95rem;
  color: #FFF1E8;
}

/* How-to-play steps */
.page-slot-games__step-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-slot-games__step-item {
  background: #2A1212; /* Card BG from custom palette */
  padding: 20px 25px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 5px solid #F3C54D; /* Gold accent */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-slot-games__step-title {
  font-size: 1.25rem;
  color: #F3C54D; /* Gold from custom palette */
  margin-top: 0;
  margin-bottom: 10px;
}

.page-slot-games__step-description {
  font-size: 0.95rem;
  color: #FFF1E8;
}

.page-slot-games__step-description a {
  color: #F3C54D;
  text-decoration: underline;
}

.page-slot-games__step-description a:hover {
  color: #FFB04A;
}

/* Tips and Strategy */
.page-slot-games__bullet-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-slot-games__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1rem;
  color: #FFF1E8;
}

.page-slot-games__list-item::before {
  content: '★'; /* Star bullet point */
  color: #F3C54D; /* Gold from custom palette */
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
  line-height: 1.6;
}

.page-slot-games__list-item strong {
  color: #F3C54D;
}

/* Security features */
.page-slot-games__security-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

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

.page-slot-games__promo-cards .page-slot-games__card {
  padding: 0;
  text-align: left;
  overflow: hidden;
}

.page-slot-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin-bottom: 15px;
}

.page-slot-games__promo-cards .page-slot-games__card-title {
  padding: 0 20px;
  font-size: 1.2rem;
  color: #F3C54D;
}

.page-slot-games__promo-cards .page-slot-games__card-description {
  padding: 0 20px 15px;
  font-size: 0.9rem;
  color: #FFF1E8;
}

.page-slot-games__btn-link {
  display: block;
  text-align: center;
  padding: 10px 20px;
  background: #7E0D0D; /* Deep Red from custom palette */
  color: #FFF1E8;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-slot-games__btn-link:hover {
  background: #C61F1F; /* Main brand color */
}

.page-slot-games__btn-full-width {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
  padding: 15px 30px;
  font-size: 1.1rem;
}

/* FAQ Section */
details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #6A1E1E; /* Border from custom palette */
  overflow: hidden;
  background: #2A1212; /* Card BG from custom palette */
  color: #FFF1E8;
}
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: #1A0F0F; /* Slightly lighter for hover */
}
.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3C54D; /* Gold from custom palette */
}
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F3C54D; /* Gold from custom palette */
  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: #1A0F0F; /* Slightly lighter for answer background */
  border-radius: 0 0 5px 5px;
}

/* Final CTA section */
.page-slot-games__cta-final {
  text-align: center;
  padding: 60px 0;
}

.page-slot-games__cta-content {
  max-width: 800px;
}

.page-slot-games__cta-final .page-slot-games__section-title {
  color: #FFF1E8;
}

.page-slot-games__cta-final .page-slot-games__text-block {
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.page-slot-games__btn-large {
  padding: 15px 40px;
  font-size: 1.2rem;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  border: none;
}

.page-slot-games__btn-large:hover {
  background: linear-gradient(180deg, #E53030 0%, #C61F1F 100%);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-slot-games__hero-content-wrapper {
    position: static;
    transform: none;
    padding: 20px 15px;
    width: 100%;
    background: rgba(0, 0, 0, 0.6); /* Ensure readability */
    border-radius: 0;
  }

  .page-slot-games__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-slot-games__intro-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-large {
    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-slot-games__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-slot-games__text-block {
    font-size: 0.95rem;
  }

  .page-slot-games__feature-list,
  .page-slot-games__benefits-grid,
  .page-slot-games__promo-cards,
  .page-slot-games__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__card-image {
    height: 180px;
  }

  .page-slot-games__promo-cards .page-slot-games__card-title {
    font-size: 1.1rem;
  }

  .page-slot-games__promo-cards .page-slot-games__card-description {
    font-size: 0.85rem;
  }

  .page-slot-games__btn-full-width {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .page-slot-games__faq-item summary.page-slot-games__faq-question { padding: 15px; }
  .page-slot-games__faq-qtext { font-size: 15px; }
  .page-slot-games__faq-toggle { font-size: 20px; width: 24px; }
  details.page-slot-games__faq-item .page-slot-games__faq-answer { padding: 0 15px 15px; }

  /* General image and container responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__cta-buttons,
  .page-slot-games__button-group,
  .page-slot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}