/* Base styles for the page */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
  padding-bottom: 50px; /* Adjust for potential fixed footer */
}

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

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

.page-slot-games__section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #F3C54D; /* Gold */
  line-height: 1.2;
}

.page-slot-games__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #2A1212; /* Card BG */
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-slot-games__hero-content {
  padding: 30px 15px;
  max-width: 900px;
  margin: 0 auto;
}

.page-slot-games__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 900;
  color: #FFB04A; /* Button start color for emphasis */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-slot-games__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFF1E8;
}

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

.page-slot-games__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  color: #FFF1E8;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

.page-slot-games__btn--primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
}

.page-slot-games__btn--primary:hover {
  background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
  transform: translateY(-2px);
}

.page-slot-games__btn--secondary {
  background: #2A1212; /* Card BG */
  border: 2px solid #6A1E1E; /* Border */
}

.page-slot-games__btn--secondary:hover {
  background: #6A1E1E; /* Border */
  transform: translateY(-2px);
}

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

/* Why Choose Section */
.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-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-slot-games__feature-title {
  font-size: 22px;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
}

.page-slot-games__feature-description {
  font-size: 15px;
  color: #FFF1E8;
}

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

.page-slot-games__game-type-card {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.page-slot-games__game-type-title {
  font-size: 20px;
  color: #FFB04A;
  margin-bottom: 10px;
}

.page-slot-games__game-type-description {
  font-size: 15px;
  color: #FFF1E8;
}

/* How to Play Section */
.page-slot-games__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-slot-games__step-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 16px;
  color: #FFF1E8;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-slot-games__step-item strong {
  color: #F3C54D; /* Gold */
}

/* Game Trial Section */
.page-slot-games__game-trial-section {
  padding: 40px 0;
  text-align: center;
}

.page-slot-games__game-trial-shell {
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  margin: 30px auto;
  position: relative;
  width: 100%;
  max-width: 900px;
  height: auto;
  aspect-ratio: 16/9; /* Default aspect ratio for iframe container */
  background-color: #000;
}

.page-slot-games__game-trial-viewport {
  position: relative;
  width: 100%;
  height: 100%;
}

.page-slot-games__game-trial-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.page-slot-games__game-trial-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #FFF1E8;
  font-size: 20px;
  cursor: pointer;
  z-index: 5;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.page-slot-games__game-trial-overlay.is-hidden {
  opacity: 0;
  pointer-events: none !important;
  display: none !important;
}

.page-slot-games__game-trial-start {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  padding: 15px 40px;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}

.page-slot-games__game-trial-start:hover {
  background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
  transform: translateY(-2px);
}

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

.page-slot-games__promo-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 8px;
  padding: 20px;
  font-size: 16px;
  color: #FFF1E8;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Security Section */
/* Reuses general text and image styles */

/* FAQ Section */
details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background: #2A1212; /* Card BG */
}
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: rgba(106, 30, 30, 0.5); /* Deep Red variant */
}
.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF1E8;
}
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  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: rgba(42, 18, 18, 0.8); /* Slightly darker Card BG */
  border-radius: 0 0 5px 5px;
  color: #FFF1E8;
}

/* Final CTA Section */
.page-slot-games__cta-final-section .page-slot-games__dark-section {
  background-color: #7E0D0D; /* Deep Red */
  padding: 40px;
  border-radius: 10px;
  text-align: center;
}

.page-slot-games__cta-final-section .page-slot-games__section-title {
  color: #F3C54D; /* Gold */
}

/* --- Reward Modal Styles --- */
.page-slot-games__reward-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.page-slot-games__reward-modal[hidden] {
  display: none;
}

.page-slot-games__reward-modal-content {
  background-color: #2A1212; /* Card BG */
  border: 2px solid #F3C54D; /* Gold border */
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  position: relative;
}

.page-slot-games__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #FFF1E8;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

.page-slot-games__reward-modal-close:hover {
  color: #FFB04A;
}

.page-slot-games__reward-modal-title {
  font-size: 28px;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
}

.page-slot-games__reward-modal-text {
  font-size: 16px;
  color: #FFF1E8;
  margin-bottom: 30px;
}

.page-slot-games__reward-modal-btn {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.page-slot-games__reward-modal-btn:hover {
  background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
  transform: translateY(-2px);
}

/* --- Responsive Styles --- */
/* Homepage Trial Layout (as per prompt, even if this is an inner page, these media queries are explicitly required) */
@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;
  }
}

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

  .page-slot-games__hero-description {
    font-size: 16px;
  }

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

  .page-slot-games__btn {
    padding: 12px 20px;
    font-size: 16px;
    width: 100% !important; /* Ensure full width on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-slot-games__features-grid,
  .page-slot-games__game-type-grid,
  .page-slot-games__promo-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}