/* Base styles for the fishing games page */
.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F3F8FF); /* Default to light text for dark body background */
  background-color: var(--deep-navy, #08162B); /* Inherited from body, ensuring contrast */
}

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

.page-fishing-games__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-main, #F3F8FF);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__section-description {
  font-size: 18px;
  color: var(--text-secondary, #AFC4E8);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: cover;
  display: block;
  margin-bottom: 30px; /* Space between image and text content */
  border-radius: 10px;
}

.page-fishing-games__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-fishing-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__intro-text {
  font-size: 20px;
  color: var(--text-main, #F3F8FF);
  margin-bottom: 30px;
  line-height: 1.5;
}

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

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-fishing-games__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
}

.page-fishing-games__btn-secondary {
  background: transparent;
  color: var(--text-main, #F3F8FF);
  border: 2px solid var(--border, #244D84);
}

.page-fishing-games__btn-secondary:hover {
  background: rgba(var(--primary-color-rgb, 17, 59, 122), 0.2);
  transform: translateY(-2px);
}

/* About Section */
.page-fishing-games__about-section {
  padding: 80px 0;
  background-color: var(--card-bg, #10233F); /* Card BG for light-bg sections */
  color: var(--text-main, #F3F8FF);
}

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

.page-fishing-games__feature-item {
  background: rgba(var(--primary-color-rgb, 17, 59, 122), 0.3); /* Slightly lighter background for features */
  border: 1px solid var(--border, #244D84);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__feature-title {
  font-size: 22px;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
}

.page-fishing-games__feature-item p {
  font-size: 16px;
  color: var(--text-secondary, #AFC4E8);
}

/* Games Showcase Section */
.page-fishing-games__games-showcase {
  padding: 80px 0;
  background-color: var(--deep-navy, #08162B);
}

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

.page-fishing-games__game-card {
  background: var(--card-bg, #10233F);
  border: 1px solid var(--border, #244D84);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
}

.page-fishing-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-fishing-games__game-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-fishing-games__game-title a {
  color: var(--gold, #F2C14E);
  text-decoration: none;
}

.page-fishing-games__game-title a:hover {
  text-decoration: underline;
}

.page-fishing-games__game-desc {
  font-size: 15px;
  color: var(--text-secondary, #AFC4E8);
  margin-bottom: 20px;
  padding: 0 15px;
}

/* How To Play Section */
.page-fishing-games__how-to-play {
  padding: 80px 0;
  background-color: var(--card-bg, #10233F);
  color: var(--text-main, #F3F8FF);
}

.page-fishing-games__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-fishing-games__steps-list li {
  background: rgba(var(--primary-color-rgb, 17, 59, 122), 0.3);
  border: 1px solid var(--border, #244D84);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__step-title {
  font-size: 22px;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
}

.page-fishing-games__steps-list p {
  font-size: 16px;
  color: var(--text-secondary, #AFC4E8);
}

.page-fishing-games__steps-list a {
  color: var(--glow, #4FA8FF);
  text-decoration: none;
}

.page-fishing-games__steps-list a:hover {
  text-decoration: underline;
}

.page-fishing-games__guide-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Tips Section */
.page-fishing-games__tips-section {
  padding: 80px 0;
  background-color: var(--deep-navy, #08162B);
}

.page-fishing-games__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-fishing-games__tips-list li {
  background: rgba(var(--primary-color-rgb, 17, 59, 122), 0.3);
  border: 1px solid var(--border, #244D84);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__tip-title {
  font-size: 22px;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
}

.page-fishing-games__tips-list p {
  font-size: 16px;
  color: var(--text-secondary, #AFC4E8);
}

/* CTA Section */
.page-fishing-games__cta-section {
  padding: 80px 0;
  background-color: var(--card-bg, #10233F);
  color: var(--text-main, #F3F8FF);
  text-align: center;
}

.page-fishing-games__cta-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  display: block;
  margin: 0 auto 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-fishing-games__faq-section {
  padding: 80px 0;
  background-color: var(--deep-navy, #08162B);
}

.page-fishing-games__faq-list {
  margin-top: 40px;
}

details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border, #244D84);
  overflow: hidden;
  background: var(--card-bg, #10233F);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-fishing-games__faq-item summary.page-fishing-games__faq-question::-webkit-details-marker {
  display: none;
}

details.page-fishing-games__faq-item summary.page-fishing-games__faq-question:hover {
  background: rgba(var(--primary-color-rgb, 17, 59, 122), 0.5); /* Lighter hover for dark background */
}

.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #F3F8FF);
}

.page-fishing-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold, #F2C14E);
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
}

details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 25px 25px;
  background: rgba(var(--primary-color-rgb, 17, 59, 122), 0.3);
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary, #AFC4E8);
}

.page-fishing-games__faq-answer p {
  margin-top: 0;
  font-size: 16px;
}

.page-fishing-games__faq-answer a {
  color: var(--glow, #4FA8FF);
  text-decoration: none;
}

.page-fishing-games__faq-answer a:hover {
  text-decoration: underline;
}

/* General image responsiveness */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

@media (min-width: 1024px) {
  /* Homepage PC three-column layout (as per strict instruction, even if not directly used on inner page) */
  .page-fishing-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-fishing-games__hero-brand,
  .page-fishing-games__hero-jackpot,
  .page-fishing-games__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-fishing-games__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-fishing-games__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-fishing-games__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-fishing-games__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-fishing-games__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  /* Placeholder for other homepage modules if they were present */
  .page-fishing-games__promo-strip { margin-top: 16px; }
}

@media (max-width: 768px) {
  .page-fishing-games__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__section-title {
    font-size: 28px;
  }

  .page-fishing-games__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-fishing-games__hero-section {
    padding-top: 5px;
    padding-bottom: 40px;
  }

  .page-fishing-games__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-fishing-games__intro-text {
    font-size: 17px;
  }

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

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    margin: 0 auto; /* Center buttons if flex-direction column */
  }

  .page-fishing-games__features-grid,
  .page-fishing-games__game-grid,
  .page-fishing-games__tips-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__feature-title,
  .page-fishing-games__step-title,
  .page-fishing-games__tip-title {
    font-size: 20px;
  }

  .page-fishing-games__game-image {
    height: 180px;
  }

  .page-fishing-games__game-title {
    font-size: 18px;
  }

  .page-fishing-games__how-to-play, .page-fishing-games__tips-section, .page-fishing-games__cta-section, .page-fishing-games__about-section, .page-fishing-games__games-showcase, .page-fishing-games__faq-section {
    padding: 50px 0;
  }

  .page-fishing-games__steps-list li {
    padding: 20px;
  }

  .page-fishing-games__faq-qtext {
    font-size: 16px;
  }

  .page-fishing-games__faq-toggle {
    font-size: 24px;
    width: 28px;
  }

  details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
    padding: 15px 20px;
  }

  details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
    padding: 0 20px 20px;
  }

  /* General content area containers for overflow prevention */
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Placeholder for homepage specific modules if they were present */
  .page-fishing-games__promo-strip-track { grid-template-columns: repeat(2,1fr); overflow-x: hidden; gap: 15px; }
  .page-fishing-games__hot-games-grid { grid-template-columns: repeat(2,1fr); gap: 15px; }
  .page-fishing-games__hot-games-name, .page-fishing-games__hot-games-rtp, .page-fishing-games__hot-games-desc { display: none; }
  /* .page-fishing-games__winner-ticker { styles for fixed bottom ticker } */
}

/* Trial Game Overlay (as per strict instruction, even if not directly used on inner page) */
.page-fishing-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-fishing-games__game-trial-overlay.is-hidden {
  opacity: 0;
  display: none !important;
  pointer-events: none !important;
}

.page-fishing-games__game-trial-start {
  background: linear-gradient(180deg, #F2C14E 0%, #D4AF37 100%);
  color: #113B7A;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
  transition: transform 0.2s ease;
}

.page-fishing-games__game-trial-start:hover {
  transform: translateY(-2px);
}

/* Reward Modal (as per strict instruction, even if not directly used on inner page) */
.page-fishing-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;
}

.page-fishing-games__reward-modal-content {
  background: var(--card-bg, #10233F);
  border-radius: 15px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  position: relative;
}

.page-fishing-games__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-secondary, #AFC4E8);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.page-fishing-games__reward-modal-close:hover {
  color: var(--gold, #F2C14E);
}

.page-fishing-games__reward-modal-title {
  font-size: 32px;
  color: var(--gold, #F2C14E);
  margin-bottom: 20px;
}

.page-fishing-games__reward-modal-text {
  font-size: 18px;
  color: var(--text-main, #F3F8FF);
  margin-bottom: 30px;
}

.page-fishing-games__reward-modal-cta {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  display: inline-block;
}

.page-fishing-games__reward-modal-cta:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
}

/* Ensure body scroll is hidden when modal is open */
body.page-fishing-games--reward-open {
  overflow: hidden;
}

/* Default styles for trial game shell (as per strict instruction, even if not directly used on inner page) */
.page-fishing-games__game-trial-shell {
  border: 1px solid var(--border, #244D84);
  border-radius: 10px;
  overflow: hidden;
}