.page-fishing-games__dark-bg { background: #2F6BFF; color: #ffffff; }
.page-fishing-games__light-bg { background: #F4F7FB; color: #1F2D3D; }

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

.page-fishing-games__section {
  padding: 50px 0;
  text-align: center;
}

.page-fishing-games__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: inherit;
}

.page-fishing-games__section-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

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

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

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

.page-fishing-games__btn-secondary {
  background: #FFFFFF;
  color: #2F6BFF;
  border: 2px solid #D6E2FF;
}

.page-fishing-games__btn-secondary:hover {
  background: #D6E2FF;
  color: #2F6BFF;
  transform: translateY(-2px);
}

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

/* Card Styles */
.page-fishing-games__card {
  background: #FFFFFF;
  color: #1F2D3D;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  padding: 20px;
  text-align: center;
  border: 1px solid #D6E2FF;
}

/* Hero Section */
.page-fishing-games__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.page-fishing-games__hero-section .page-fishing-games__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.page-fishing-games__hero-content {
  flex: 1;
  max-width: 50%;
}

.page-fishing-games__main-title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-fishing-games__hero-description {
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-fishing-games__hero-image-wrapper {
  flex: 1;
  max-width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-fishing-games__hero-image {
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  height: auto;
  display: block;
}

/* Features Grid */
.page-fishing-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-fishing-games__feature-card {
  padding: 30px;
}

.page-fishing-games__feature-icon {
  width: 100%; /* Ensure image fills card */
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #2F6BFF;
}

.page-fishing-games__feature-description {
  font-size: 16px;
  line-height: 1.6;
  color: #1F2D3D;
}

/* Game Trial Section */
.page-fishing-games__game-trial-section .page-fishing-games__section-title,
.page-fishing-games__game-trial-section .page-fishing-games__section-description {
  color: #ffffff;
}

.page-fishing-games__game-trial-shell {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 30px auto 0;
  aspect-ratio: 16 / 9; /* Standard video aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid #A5C4FF;
}

.page-fishing-games__game-trial-viewport {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

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

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

.page-fishing-games__game-trial-start {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  padding: 15px 40px;
  font-size: 22px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}

.page-fishing-games__game-trial-start:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Popular Games Grid */
.page-fishing-games__game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-fishing-games__game-card {
  padding: 20px;
}

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

.page-fishing-games__game-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2F6BFF;
}

.page-fishing-games__game-description {
  font-size: 15px;
  line-height: 1.5;
  color: #1F2D3D;
  margin-bottom: 20px;
}

.page-fishing-games__game-card .page-fishing-games__btn-primary {
  font-size: 16px;
  padding: 10px 25px;
}

/* How to Play Section */
.page-fishing-games__how-to-play-section .page-fishing-games__section-title,
.page-fishing-games__how-to-play-section .page-fishing-games__section-description {
  color: #ffffff;
}

.page-fishing-games__guide-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-fishing-games__guide-steps {
  flex: 1;
  text-align: left;
}

.page-fishing-games__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  gap: 15px;
}

.page-fishing-games__step-number {
  background: #6FA3FF;
  color: #ffffff;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.page-fishing-games__step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #ffffff;
}

.page-fishing-games__step-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f0;
  margin: 0;
}

.page-fishing-games__guide-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
}

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

/* Tips & Strategies Section */
.page-fishing-games__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-fishing-games__tip-item {
  padding: 25px;
  text-align: left;
}

.page-fishing-games__tip-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2F6BFF;
}

.page-fishing-games__tip-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #1F2D3D;
  margin: 0;
}

/* Promotions Section */
.page-fishing-games__promotions-section .page-fishing-games__section-title,
.page-fishing-games__promotions-section .page-fishing-games__section-description {
  color: #ffffff;
}

.page-fishing-games__promotion-banner {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 30px;
  text-align: left;
  margin-top: 40px;
}

.page-fishing-games__promotion-image {
  max-width: 40%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.page-fishing-games__promotion-content {
  flex: 1;
}

.page-fishing-games__promotion-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #2F6BFF;
}

.page-fishing-games__promotion-content p {
  font-size: 17px;
  line-height: 1.6;
  color: #1F2D3D;
  margin-bottom: 25px;
}

.page-fishing-games__promotion-content .page-fishing-games__btn-primary {
  font-size: 17px;
  padding: 12px 30px;
}

/* FAQ Section */
details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #fff;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
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: #F4F7FB;
}
.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #1F2D3D;
}
details.page-fishing-games__faq-item[open] .page-fishing-games__faq-qtext {
  color: #2F6BFF;
}
.page-fishing-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2F6BFF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
  font-size: 16px;
  line-height: 1.7;
  color: #1F2D3D;
}
.page-fishing-games__faq-answer p {
    margin: 0;
}

/* Final CTA Section */
.page-fishing-games__cta-section {
  padding: 60px 0;
}
.page-fishing-games__cta-section .page-fishing-games__section-title,
.page-fishing-games__cta-section .page-fishing-games__section-description {
  color: #ffffff;
}

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

.page-fishing-games__reward-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

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

.page-fishing-games__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  color: #6FA3FF;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.page-fishing-games__reward-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__reward-title {
  font-size: 28px;
  font-weight: 700;
  color: #2F6BFF;
  margin-bottom: 15px;
}

.page-fishing-games__reward-message {
  font-size: 17px;
  line-height: 1.6;
  color: #1F2D3D;
  margin-bottom: 30px;
}

/* Global image rules for content area */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .page-fishing-games__hero-section .page-fishing-games__container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .page-fishing-games__hero-content,
  .page-fishing-games__hero-image-wrapper {
    max-width: 100%;
  }
  .page-fishing-games__main-title {
    font-size: clamp(32px, 6vw, 48px);
  }
  .page-fishing-games__section-title {
    font-size: 32px;
  }
  .page-fishing-games__promotion-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .page-fishing-games__promotion-image {
    max-width: 80%;
    margin-bottom: 20px;
  }
  .page-fishing-games__how-to-play-section .page-fishing-games__guide-content {
    flex-direction: column;
  }
  .page-fishing-games__guide-steps {
    order: 2;
  }
  .page-fishing-games__guide-image-wrapper {
    order: 1;
    padding-top: 0;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__section {
    padding: 30px 0;
  }
  .page-fishing-games__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-fishing-games__main-title {
    font-size: 32px;
  }
  .page-fishing-games__hero-description {
    font-size: 17px;
  }
  .page-fishing-games__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-fishing-games__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  /* Buttons */
  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px;
    padding: 12px 20px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Images */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__game-trial-shell {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Features Grid */
  .page-fishing-games__features-grid,
  .page-fishing-games__game-cards-grid,
  .page-fishing-games__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-fishing-games__feature-card,
  .page-fishing-games__game-card,
  .page-fishing-games__tip-item {
    padding: 20px;
  }
  .page-fishing-games__feature-title,
  .page-fishing-games__game-title {
    font-size: 20px;
  }
  .page-fishing-games__feature-description,
  .page-fishing-games__game-description,
  .page-fishing-games__tip-item p {
    font-size: 15px;
  }

  /* How to Play */
  .page-fishing-games__step-title {
    font-size: 18px;
  }
  .page-fishing-games__step-item p {
    font-size: 15px;
  }
  .page-fishing-games__step-number {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  /* Promotions */
  .page-fishing-games__promotion-banner {
    padding: 15px;
  }
  .page-fishing-games__promotion-content h3 {
    font-size: 22px;
  }
  .page-fishing-games__promotion-content p {
    font-size: 15px;
  }
  .page-fishing-games__promotion-image {
    max-width: 100%;
  }

  /* FAQ */
  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;
    width: 25px;
  }
  details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
    padding: 0 20px 15px;
  }

  /* Reward Modal */
  .page-fishing-games__reward-modal-content {
    padding: 30px 20px;
  }
  .page-fishing-games__reward-title {
    font-size: 24px;
  }
  .page-fishing-games__reward-message {
    font-size: 15px;
  }
  .page-fishing-games__reward-icon {
    width: 80px;
    height: 80px;
  }
}