/* -------------------------------------------------------------------------- */
/*                            Base & Layout Styles                            */
/* -------------------------------------------------------------------------- */

.page-fishing-games {
  font-family: 'Arial', sans-serif;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  line-height: 1.6;
}

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

.page-fishing-games__dark-bg {
  background-color: #0D0E12;
  color: #FFF3E6;
}

.page-fishing-games__card-bg {
  background-color: #17191F;
  color: #FFF3E6;
}

.page-fishing-games__text-main {
  color: #FFF3E6;
}

.page-fishing-games__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFB04D; /* Glow */
  line-height: 1.2;
}

.page-fishing-games__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

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

.page-fishing-games__hero-section .page-fishing-games__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-width: 800px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border: 2px solid #A84F0C; /* Border */
}

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

.page-fishing-games__main-title {
  font-size: 48px;
  font-weight: 800;
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
  line-height: 1.1;
  max-width: 900px;
}

.page-fishing-games__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 700px;
  opacity: 0.95;
}

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

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

.page-fishing-games__game-trial-shell {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 40px auto 0;
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__game-trial-viewport {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background-color: #000;
}

.page-fishing-games__game-trial-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

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

.page-fishing-games__game-trial-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  display: none !important; /* Force hide after transition */
}

.page-fishing-games__game-trial-start {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
  padding: 15px 30px;
  font-size: 22px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}

.page-fishing-games__game-trial-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

/* Reward Modal */
.page-fishing-games__reward-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 15px;
  box-sizing: border-box;
}

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

.page-fishing-games__reward-modal-content {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid #A84F0C; /* Border */
}

.page-fishing-games__reward-modal-title {
  font-size: 28px;
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
}

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

.page-fishing-games__reward-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-fishing-games__reward-modal-close {
  background: none;
  border: 1px solid #A84F0C; /* Border */
  color: #FFF3E6;
  padding: 12px 25px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.page-fishing-games__reward-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FFB04D;
}

/* -------------------------------------------------------------------------- */
/*                              Features Section                              */
/* -------------------------------------------------------------------------- */
.page-fishing-games__features-section {
  padding: 80px 0;
}

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

.page-fishing-games__feature-item {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C; /* Border */
}

.page-fishing-games__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 140, 26, 0.3);
}

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

.page-fishing-games__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFA53A; /* Auxiliary Color */
  margin-bottom: 15px;
}

.page-fishing-games__feature-text {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.85;
}

/* -------------------------------------------------------------------------- */
/*                             Game Types Section                             */
/* -------------------------------------------------------------------------- */
.page-fishing-games__game-types-section {
  padding: 80px 0;
}

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

.page-fishing-games__type-item {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C; /* Border */
}

.page-fishing-games__type-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 140, 26, 0.3);
}

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

.page-fishing-games__type-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFA53A; /* Auxiliary Color */
  margin-bottom: 10px;
}

.page-fishing-games__type-text {
  font-size: 15px;
  opacity: 0.8;
}

/* -------------------------------------------------------------------------- */
/*                                Guide Section                               */
/* -------------------------------------------------------------------------- */
.page-fishing-games__guide-section {
  padding: 80px 0;
}

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

.page-fishing-games__step-item {
  text-align: center;
  background-color: #0D0E12; /* Background */
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid #A84F0C; /* Border */
}

.page-fishing-games__step-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  margin: 0 auto 25px;
  box-shadow: 0 0 15px rgba(255, 176, 77, 0.6);
}

.page-fishing-games__step-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
}

.page-fishing-games__step-text {
  font-size: 16px;
  opacity: 0.85;
}

.page-fishing-games__cta-buttons--center {
  margin-top: 60px;
}

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

.page-fishing-games__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__tips-list li {
  background-color: #17191F; /* Card BG */
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.8;
  border-left: 5px solid #FFA53A;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__tip-highlight {
  font-weight: 700;
  color: #FFB04D; /* Glow */
}

.page-fishing-games__tips-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 50px auto 0;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #A84F0C; /* Border */
}

/* -------------------------------------------------------------------------- */
/*                                 FAQ Section                                */
/* -------------------------------------------------------------------------- */
.page-fishing-games__faq-section {
  padding: 80px 0;
}

.page-fishing-games__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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(255, 176, 77, 0.1);
}

.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}

.page-fishing-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFA53A;
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 25px 25px;
  background: #0D0E12; /* Background */
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.8;
}

/* -------------------------------------------------------------------------- */
/*                             Final CTA Section                              */
/* -------------------------------------------------------------------------- */
.page-fishing-games__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-fishing-games__cta-container {
  max-width: 800px;
}

.page-fishing-games__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
  border: none;
}

.page-fishing-games__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-fishing-games__btn-primary--large {
  padding: 20px 45px;
  font-size: 22px;
}

.page-fishing-games__btn-secondary {
  background: none;
  border: 2px solid #FFA53A;
  color: #FFA53A;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  display: inline-block;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-fishing-games__btn-secondary:hover {
  background-color: #FFA53A;
  color: #0D0E12;
  border-color: #FFA53A;
}

/* -------------------------------------------------------------------------- */
/*                                 Responsive                                 */
/* -------------------------------------------------------------------------- */

/* Mobile specific styles for images and containers */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-fishing-games__section,
.page-fishing-games__card,
.page-fishing-games__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-fishing-games__cta-button,
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games a[class*="button"],
.page-fishing-games a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__cta-buttons,
.page-fishing-games__button-group,
.page-fishing-games__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 1023px) {
  /* No home-hero specific grid reset for this inner page */
  /* Game trial viewport uses aspect-ratio, no fixed height */
  .page-fishing-games__game-trial-viewport {
    aspect-ratio: 1024 / 768; /* Fixed aspect ratio for trial frame */
    min-height: 240px;
    max-height: none !important;
    flex: none !important;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
  }
  .page-fishing-games__game-trial-frame {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
  }
}

@media (min-width: 1024px) {
  /* No home-hero specific grid for this inner page */
  .page-fishing-games__game-trial-shell {
    height: auto; /* Allow height to be determined by content */
    max-height: none;
  }
  .page-fishing-games__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Re-apply aspect ratio for larger screens */
  }
  .page-fishing-games__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .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-bottom: 40px;
  }

  .page-fishing-games__hero-section .page-fishing-games__container {
    gap: 30px;
  }

  .page-fishing-games__main-title {
    font-size: 36px;
  }

  .page-fishing-games__hero-description {
    font-size: 18px;
  }

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

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100%;
    padding: 12px 25px;
    font-size: 16px;
  }

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

  .page-fishing-games__game-trial-section {
    padding: 40px 0;
  }

  .page-fishing-games__game-trial-shell {
    margin-top: 30px;
  }

  .page-fishing-games__game-trial-start {
    font-size: 18px;
    padding: 12px 25px;
  }

  .page-fishing-games__reward-modal-content {
    padding: 30px 20px;
  }

  .page-fishing-games__reward-modal-title {
    font-size: 24px;
  }

  .page-fishing-games__reward-modal-text {
    font-size: 16px;
  }

  .page-fishing-games__reward-modal-close {
    font-size: 16px;
    padding: 10px 20px;
  }

  .page-fishing-games__features-section,
  .page-fishing-games__game-types-section,
  .page-fishing-games__guide-section,
  .page-fishing-games__tips-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__final-cta-section {
    padding: 50px 0;
  }

  .page-fishing-games__features-grid,
  .page-fishing-games__game-types-grid,
  .page-fishing-games__guide-steps {
    gap: 20px;
    margin-top: 30px;
  }

  .page-fishing-games__feature-item,
  .page-fishing-games__type-item,
  .page-fishing-games__step-item {
    padding: 25px 15px;
  }

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

  .page-fishing-games__feature-text,
  .page-fishing-games__type-text,
  .page-fishing-games__step-text {
    font-size: 15px;
  }

  .page-fishing-games__step-icon {
    width: 50px;
    height: 50px;
    font-size: 26px;
    margin-bottom: 20px;
  }

  .page-fishing-games__tips-list {
    margin-top: 30px;
  }

  .page-fishing-games__tips-list li {
    font-size: 15px;
    padding: 18px 20px;
  }

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

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

  .page-fishing-games__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
  }

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

  /* Mobile image and container adaptation */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-fishing-games__hero-section,
  .page-fishing-games__game-trial-section,
  .page-fishing-games__features-section,
  .page-fishing-games__game-types-section,
  .page-fishing-games__guide-section,
  .page-fishing-games__tips-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__final-cta-section,
  .page-fishing-games__container,
  .page-fishing-games__cta-buttons,
  .page-fishing-games__features-grid,
  .page-fishing-games__game-types-grid,
  .page-fishing-games__guide-steps,
  .page-fishing-games__faq-list,
  .page-fishing-games__tips-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}