/* Homepage Trial CSS (FORCED by prompt, even if not homepage) */
@media (max-width: 1023px) {
  .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) {
  .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;
  }
}

/* Common mobile overrides (FORCED by prompt) */
@media (max-width: 768px) {
  /* Placeholder for __promo-strip mobile rules */
  .page-fishing-games__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* Adjusted for better mobile display */
    overflow-x: hidden;
    gap: 15px;
  }
  .page-fishing-games__promo-card .page-fishing-games__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-fishing-games__promo-card .page-fishing-games__promo-content {
    padding: 15px !important;
    text-align: center;
  }
  .page-fishing-games__promo-card .page-fishing-games__promo-title {
    font-size: 18px !important;
  }
  .page-fishing-games__promo-card .page-fishing-games__promo-description {
    font-size: 14px !important;
  }
  /* Placeholder for __hot-games mobile rules */
  .page-fishing-games__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
  }
  .page-fishing-games__hot-games-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-fishing-games__hot-games-name,
  .page-fishing-games__hot-games-rtp,
  .page-fishing-games__hot-games-desc {
    display: none !important;
  }
  /* Placeholder for __brand-intro mobile rules */
  .page-fishing-games__brand-intro {
    padding: 20px 15px !important;
    text-align: center;
  }
  /* Placeholder for __winner-ticker mobile rules */
  .page-fishing-games__winner-ticker {
    position: fixed !important;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 10px 15px !important;
    font-size: 14px !important;
  }
  body {
    padding-bottom: 50px; /* Adjust if ticker height varies */
  }
  /* General image and container rules 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__hero-section,
  .page-fishing-games__game-trial-section,
  .page-fishing-games__features-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Button and button container rules for mobile */
  .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% !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-fishing-games__cta-buttons,
  .page-fishing-games__button-group,
  .page-fishing-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure buttons stack vertically */
  }
  .page-fishing-games__faq-item summary.page-fishing-games__faq-question { padding: 15px; }
  .page-fishing-games__faq-qtext { font-size: 15px; }
  .page-fishing-games__faq-answer { padding: 0 15px 15px; }
}

/* Page-specific CSS for fishing-games.html */
.page-fishing-games {
  background-color: #0A0A0A;
  color: #FFF6D6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-fishing-games__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.4);
}

.page-fishing-games__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  color: #FFF6D6;
}

/* Hero Section */
.page-fishing-games__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  height: auto;
  overflow: hidden;
}

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

.page-fishing-games__hero-content {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.8) 0%, #0A0A0A 100%);
}

.page-fishing-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F2C14E;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.6);
}

.page-fishing-games__description {
  font-size: 20px;
  color: #FFF6D6;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
}

.page-fishing-games__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #333333; /* Ensuring contrast on gradient */
  border: none;
}

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

.page-fishing-games__btn-secondary {
  background: transparent;
  color: #FFF6D6;
  border: 2px solid #3A2A12;
}

.page-fishing-games__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #F2C14E;
  color: #F2C14E;
  transform: translateY(-2px);
}

.page-fishing-games__cta-buttons--centered {
  margin-top: 30px;
}

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

.page-fishing-games__game-trial-wrapper {
  border: 2px solid #3A2A12;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9; /* Maintain aspect ratio */
  max-width: 900px;
  margin: 0 auto 30px;
}

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

/* Features Section */
.page-fishing-games__features-section {
  padding: 60px 0;
  background-color: #111111;
}

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

.page-fishing-games__feature-card {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6;
}

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

.page-fishing-games__feature-icon {
  width: 100%;
  height: auto;
  max-width: 400px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-fishing-games__feature-description {
  font-size: 16px;
  color: #FFF6D6;
}

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

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

.page-fishing-games__promo-card {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6;
  display: flex;
  flex-direction: column;
}

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

.page-fishing-games__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-fishing-games__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-fishing-games__promo-title {
  font-size: 22px;
  font-weight: bold;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-fishing-games__promo-description {
  font-size: 16px;
  color: #FFF6D6;
  margin-bottom: 20px;
}

/* FAQ Section */
details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12;
  overflow: hidden;
  background: #111111;
  color: #FFF6D6;
}
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(242, 193, 78, 0.1);
}
.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF6D6;
}
.page-fishing-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E;
  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 25px;
  background: #0A0A0A;
  border-radius: 0 0 10px 10px;
  color: #FFF6D6;
}

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

.page-fishing-games__cta-final-section .page-fishing-games__container {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 15px;
  padding: 50px 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-fishing-games__features-grid,
  .page-fishing-games__promotions-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .page-fishing-games__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-fishing-games__section-title {
    font-size: 30px;
  }
  .page-fishing-games__description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__hero-content {
    padding: 30px 15px;
  }
  .page-fishing-games__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-fishing-games__section-title {
    font-size: 26px;
  }
  .page-fishing-games__description {
    font-size: 16px;
  }
  .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;
  }
  .page-fishing-games__game-trial-wrapper {
    aspect-ratio: 4 / 3;
  }
  .page-fishing-games__features-grid,
  .page-fishing-games__promotions-grid {
    grid-template-columns: 1fr;
  }
  .page-fishing-games__feature-card,
  .page-fishing-games__promo-card {
    padding: 20px;
  }
  .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; }
  .page-fishing-games__faq-answer { padding: 0 15px 15px; }
}

/* Contrast Fixes */
.page-fishing-games__dark-section {
  background-color: #111111;
  color: #FFF6D6;
}
.page-fishing-games__light-bg {
  background-color: #FFF6D6;
  color: #333333;
}
.page-fishing-games__btn-primary {
  color: #333333; /* For contrast on golden gradient */
}
.page-fishing-games__btn-secondary {
  color: #FFF6D6; /* For contrast on dark background */
}