/* Base Styles for page-slot-games */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background: #F4F7FB; /* Custom Background */
}

.page-slot-games__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 16px;
  box-sizing: border-box;
}

.page-slot-games__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #1F2D3D; /* Custom Text Main */
  text-align: center;
  margin-bottom: 40px;
}

.page-slot-games__dark-section {
  background: #2F6BFF;
  color: #ffffff;
  padding: 60px 0;
}

.page-slot-games__dark-section .page-slot-games__section-title,
.page-slot-games__dark-section .page-slot-games__hero-description,
.page-slot-games__dark-section .page-slot-games__cta-description {
  color: #ffffff;
}

.page-slot-games__light-bg {
  background: #F4F7FB;
  color: #1F2D3D;
  padding: 60px 0;
}

/* 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;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
}

.page-slot-games__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-slot-games__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.page-slot-games__btn-large {
  padding: 15px 30px;
  font-size: 18px;
}

/* Cards */
.page-slot-games__card {
  background: #FFFFFF; /* Custom Card BG */
  border: 1px solid #D6E2FF; /* Custom Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #1F2D3D;
}

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

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

.page-slot-games__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-slot-games__card-title a:hover {
  text-decoration: underline;
}

.page-slot-games__card-text {
  font-size: 15px;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* 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: 60px;
  text-align: center;
}

.page-slot-games__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
}

.page-slot-games__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.page-slot-games__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-width: 900px;
  margin-top: 30px;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Game Trial Section */
.page-slot-games__game-trial-section {
  padding: 40px 0;
  background: #F4F7FB;
}

.page-slot-games__game-trial-shell {
  border: 1px solid #D6E2FF;
  border-radius: 10px;
  overflow: hidden;
  background: #FFFFFF;
  padding: 15px;
  box-sizing: border-box;
}

.page-slot-games__game-trial-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Default aspect ratio */
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.page-slot-games__game-trial-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

.page-slot-games__game-trial-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

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

.page-slot-games__game-trial-start {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px 30px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
  transition: all 0.3s ease;
}

.page-slot-games__game-trial-start:hover {
  opacity: 0.9;
  transform: translate(-50%, -50%) scale(1.05);
}

.page-slot-games__trial-info {
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
  color: #555;
}

/* Advantages Section */
.page-slot-games__grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-slot-games__advantage-card .page-slot-games__card-image {
  height: 200px;
  object-fit: cover;
}

/* Popular Games Section */
.page-slot-games__popular-games-section {
  padding: 60px 0;
}

.page-slot-games__grid-4-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-slot-games__game-card .page-slot-games__card-image {
  height: 180px;
  object-fit: cover;
}

.page-slot-games__game-card .page-slot-games__btn-primary {
  margin-top: auto;
  width: calc(100% - 30px);
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
  padding: 60px 0;
}

.page-slot-games__grid-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.page-slot-games__step-card {
  padding: 20px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.page-slot-games__step-number {
  font-size: 36px;
  font-weight: 700;
  color: #2F6BFF;
  margin-bottom: 10px;
}

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

.page-slot-games__step-text {
  font-size: 14px;
  color: #555555;
}

.page-slot-games__how-to-play-image {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Promotions Section */
.page-slot-games__promotions-section {
  padding: 60px 0;
}

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

.page-slot-games__promo-card .page-slot-games__card-image {
  height: 200px;
  object-fit: cover;
}

.page-slot-games__promo-card .page-slot-games__btn-primary {
  margin-top: auto;
  width: calc(100% - 30px);
}

/* Tips Section */
.page-slot-games__tips-section {
  padding: 60px 0;
}

.page-slot-games__grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-slot-games__tips-list li {
  font-size: 16px;
  color: #1F2D3D;
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.page-slot-games__tips-list li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #2F6BFF;
}

.page-slot-games__tips-list li strong {
  color: #000000; /* Custom Color_1776249996415 */
}

.page-slot-games__tips-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* FAQ Section */
details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #D6E2FF; /* Custom Border */
  overflow: hidden;
  background: #FFFFFF; /* Custom Card BG */
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF;
  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 10px 10px;
  font-size: 15px;
  color: #555555;
}

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

.page-slot-games__cta-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-slot-games__reward-modal[hidden] {
  opacity: 0;
  pointer-events: none;
}

.page-slot-games__reward-modal-content {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

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

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

.page-slot-games__reward-modal-title {
  font-size: 28px;
  color: #2F6BFF;
  margin-bottom: 20px;
}

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

/* ==================== Responsive Styles ==================== */

/* Mobile/Tablet: max-width 1023px (for game trial layout override) */
@media (max-width: 1023px) {
  .page-slot-games__game-trial-section .page-slot-games__container {
    padding: 0;
  }
  .page-slot-games__game-trial-shell {
    border: none;
    border-radius: 0;
    padding: 0;
  }
  .page-slot-games__game-trial-viewport {
    aspect-ratio: 1024 / 768; /* Enforce 4:3 or similar for mobile */
    min-height: 240px;
  }
  .page-slot-games__game-trial-frame {
    min-height: 0 !important;
  }
}

/* Desktop: min-width 1024px (standard layout) */
@media (min-width: 1024px) {
  .page-slot-games__hero-section {
    flex-direction: row;
    padding-top: 10px;
    text-align: left;
    gap: 40px;
  }
  .page-slot-games__hero-content {
    text-align: left;
    margin-bottom: 0;
  }
  .page-slot-games__cta-buttons {
    justify-content: flex-start;
  }
  .page-slot-games__hero-image-wrapper {
    margin-top: 0;
  }
  .page-slot-games__grid-steps {
    grid-template-columns: repeat(5, 1fr);
  }
  .page-slot-games__tips-section .page-slot-games__grid-2-col {
    grid-template-columns: 0.8fr 1.2fr; /* Adjust for image to be larger */
  }
}

/* General Mobile Styles: max-width 768px */
@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 20px 15px;
  }
  .page-slot-games__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-slot-games__dark-section,
  .page-slot-games__light-bg {
    padding: 40px 0;
  }

  /* Hero Section */
  .page-slot-games__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }
  .page-slot-games__hero-description {
    font-size: 16px;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Game Trial */
  .page-slot-games__game-trial-section .page-slot-games__container {
    padding: 0;
  }
  .page-slot-games__game-trial-shell {
    padding: 0;
  }
  .page-slot-games__game-trial-viewport {
    aspect-ratio: 1024 / 768; /* Maintain aspect ratio */
    min-height: 200px;
  }
  .page-slot-games__game-trial-start {
    font-size: 18px;
    padding: 12px 25px;
  }

  /* Grids */
  .page-slot-games__grid-3-col,
  .page-slot-games__grid-4-col,
  .page-slot-games__promo-grid,
  .page-slot-games__grid-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__grid-2-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Cards */
  .page-slot-games__card {
    padding: 20px;
  }
  .page-slot-games__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slot-games__card-title {
    font-size: 18px;
  }

  /* Tips */
  .page-slot-games__tips-list li {
    font-size: 15px;
  }

  /* FAQ */
  details.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;
    margin-left: 10px;
  }
  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__game-trial-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  .page-slot-games__cta-buttons {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__game-card .page-slot-games__btn-primary,
  .page-slot-games__promo-card .page-slot-games__btn-primary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Homepage-specific trial layout (as requested to be included, despite this not being index.html) */
@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) {
  /* Placeholder for promo strip, hot games, brand intro, winner ticker if they were on this page */
  /* No promo strip on this specific slot-games page as designed, but including general structure */
  .page-slot-games__promo-strip-track {
    /* grid-template-columns: repeat(4,1fr); */ /* Not applicable if only 1 column */
    overflow-x: hidden;
  }
  .page-slot-games__hot-games-grid {
    grid-template-columns: repeat(2,1fr);
  }
  /* Generic mobile image and button styles from prompt, ensures content responsiveness */
  .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;
    overflow-x: hidden;
  }
  .page-slot-games__cta-button,
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__cta-buttons {
    display: flex;
    flex-direction: column; /* Ensure vertical stacking for buttons */
    gap: 10px;
  }
}