.page-fishing-games {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B;
  color: var(--text-main);
  background-color: var(--deep-navy); /* Based on body background being dark */
}

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

.page-fishing-games__section-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.2;
}

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

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-fishing-games__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__btn-secondary {
  background: none;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
}

.page-fishing-games__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  color: var(--gold-color);
}

.page-fishing-games__btn-small {
  padding: 8px 15px;
  font-size: 14px;
  border-radius: 6px;
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  padding-bottom: 60px;
  overflow: hidden;
  text-align: center;
}

.page-fishing-games__hero-image-wrapper {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 80px; /* Adjust as needed, ensuring no overlap with header */
}

.page-fishing-games__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__intro-description {
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 40px;
  line-height: 1.5;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

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

/* Game Trial Section */
.page-fishing-games__game-trial-section {
  padding: 60px 0;
  background: var(--deep-navy);
}

.page-fishing-games__game-trial-shell {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  padding: 15px;
  box-sizing: border-box;
}

.page-fishing-games__game-trial-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 768; /* Fixed aspect ratio for game content */
  background-color: #000;
  overflow: hidden;
}

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

.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;
  pointer-events: none;
  display: none !important; /* Force hide for accessibility and events */
}

.page-fishing-games__game-trial-start {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px 30px;
  font-size: 20px;
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-fishing-games__game-trial-start:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.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;
  padding: 16px;
  box-sizing: border-box;
}

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

.page-fishing-games__reward-modal-content {
  background: var(--card-bg);
  color: var(--text-main);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  position: relative;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
}

.page-fishing-games__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  padding: 5px;
  transition: color 0.3s ease;
}

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

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

.page-fishing-games__reward-modal-text {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Why Choose Us */
.page-fishing-games__why-choose-us {
  padding: 60px 0;
  background: #0d1e3c; /* A slightly lighter dark background for contrast with deep-navy */
}

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

.page-fishing-games__feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fishing-games__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(242, 193, 78, 0.5));
}

.page-fishing-games__card-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-fishing-games__card-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Popular Games */
.page-fishing-games__popular-games {
  padding: 60px 0;
  background: var(--deep-navy);
}

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

.page-fishing-games__game-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fishing-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-fishing-games__game-card .page-fishing-games__card-title {
  margin-top: 0;
  font-size: 20px;
}

.page-fishing-games__game-card .page-fishing-games__card-description {
  font-size: 15px;
  padding: 0 20px;
  margin-bottom: 20px;
}

/* How to Play */
.page-fishing-games__how-to-play {
  padding: 60px 0;
  background: #0d1e3c; /* A slightly lighter dark background */
}

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

.page-fishing-games__step-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fishing-games__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-color);
  color: var(--deep-navy);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  border: 3px solid var(--deep-navy);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__step-card .page-fishing-games__card-title {
  margin-top: 20px;
}

/* Strategies */
.page-fishing-games__strategies {
  padding: 60px 0;
  background: var(--deep-navy);
}

.page-fishing-games__strategy-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-fishing-games__strategy-text {
  flex: 1;
}

.page-fishing-games__strategy-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-fishing-games__strategy-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-fishing-games__strategy-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--text-main);
  line-height: 1.6;
}

.page-fishing-games__strategy-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-color);
  font-weight: bold;
  font-size: 20px;
  top: -2px;
}

.page-fishing-games__strategy-image-wrapper {
  flex: 1;
  max-width: 50%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

/* Promotions */
.page-fishing-games__promotions {
  padding: 60px 0;
  background: #0d1e3c; /* A slightly lighter dark background */
}

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

.page-fishing-games__promo-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fishing-games__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-fishing-games__promo-card .page-fishing-games__card-title {
  margin-top: 0;
  font-size: 20px;
}

.page-fishing-games__promo-card .page-fishing-games__card-description {
  font-size: 15px;
  padding: 0 20px;
  margin-bottom: 20px;
}

.page-fishing-games__cta-center {
  text-align: center;
}

/* Download App */
.page-fishing-games__download-app {
  padding: 60px 0;
  background: var(--deep-navy);
}

.page-fishing-games__download-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-fishing-games__download-text {
  flex: 1;
  min-width: 300px;
}

.page-fishing-games__download-text .page-fishing-games__section-title {
  text-align: left;
}

.page-fishing-games__download-text .page-fishing-games__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-fishing-games__download-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-fishing-games__download-image-wrapper {
  flex: 1;
  max-width: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

/* FAQ Section */
.page-fishing-games__faq-section {
  padding: 60px 0;
  background: #0d1e3c; /* A slightly lighter dark background */
}

details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
}
details.page-fishing-games__faq-item summary.page-fishing-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-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(242, 193, 78, 0.05);
}
.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-fishing-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 20px 20px;
  background: rgba(16, 35, 63, 0.8);
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

/* Conclusion */
.page-fishing-games__conclusion {
  padding: 60px 0;
  background: var(--deep-navy);
}

.page-fishing-games__conclusion .page-fishing-games__section-title {
  color: var(--gold-color);
}

.page-fishing-games__conclusion .page-fishing-games__section-description {
  margin-bottom: 40px;
}

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

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

/* Responsive Media Queries */
@media (max-width: 1023px) {
  .page-fishing-games__hero-content {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .page-fishing-games__main-title {
    font-size: clamp(28px, 6vw, 48px);
  }
  .page-fishing-games__intro-description {
    font-size: 17px;
  }
  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100%;
  }

  /* Game Trial Specifics for <1024px */
  .page-fishing-games__game-trial-section .page-fishing-games__container {
    padding: 0;
  }
  .page-fishing-games__game-trial-shell {
    border-radius: 0;
    padding: 0;
    border: none;
  }
  .page-fishing-games__game-trial-viewport {
    aspect-ratio: 16 / 9; /* Adjusted for common mobile video ratio */
  }
  .page-fishing-games__game-trial-frame {
    width: 100% !important;
    height: 100% !important;
  }
}

@media (min-width: 1024px) {
  /* No specific 3-column game trial layout for inner page as per rules, using full width */
  .page-fishing-games__hero-content {
    padding-top: 100px;
    padding-bottom: 100px;
  }
  .page-fishing-games__strategy-content {
    flex-direction: row;
  }
  .page-fishing-games__download-content {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__container {
    padding: 0 15px !important;
  }
  .page-fishing-games__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .page-fishing-games__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-fishing-games__hero-section {
    padding-bottom: 40px;
  }
  .page-fishing-games__hero-content {
    padding-top: 60px;
  }
  .page-fishing-games__main-title {
    font-size: 32px;
  }
  .page-fishing-games__intro-description {
    font-size: 16px;
  }
  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 15px;
  }

  .page-fishing-games__game-trial-section,
  .page-fishing-games__why-choose-us,
  .page-fishing-games__popular-games,
  .page-fishing-games__how-to-play,
  .page-fishing-games__strategies,
  .page-fishing-games__promotions,
  .page-fishing-games__download-app,
  .page-fishing-games__faq-section,
  .page-fishing-games__conclusion {
    padding: 40px 0;
  }

  .page-fishing-games__features-grid,
  .page-fishing-games__games-grid,
  .page-fishing-games__steps-grid,
  .page-fishing-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__strategy-content,
  .page-fishing-games__download-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-fishing-games__strategy-image-wrapper,
  .page-fishing-games__download-image-wrapper {
    max-width: 100%;
  }
  .page-fishing-games__download-text .page-fishing-games__section-title,
  .page-fishing-games__download-text .page-fishing-games__section-description {
    text-align: center;
  }
  .page-fishing-games__download-buttons {
    justify-content: center;
    padding: 0;
  }

  /* FAQ */
  details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
    padding: 15px;
  }
  .page-fishing-games__faq-qtext {
    font-size: 16px;
  }
  .page-fishing-games__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
    padding: 0 15px 15px;
  }

  /* Global image and container responsiveness with !important for mobile */
  .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__cta-buttons,
  .page-fishing-games__download-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-fishing-games__cta-buttons,
  .page-fishing-games__download-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}