/* Shared CSS from prompt for homepage trial (included as per strict instruction, even if this is an inner page) */
@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;
  }
}

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

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

.page-fishing-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, relying on body for --header-offset */
  padding-bottom: 40px;
  background-color: #0D0E12;
}

.page-fishing-games__hero-content {
  text-align: center;
  max-width: 800px;
  margin-bottom: 30px;
}

.page-fishing-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FF8C1A;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-fishing-games__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #FFF3E6;
}

.page-fishing-games__hero-image-container {
  width: 100%;
  max-width: 1200px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.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,
.page-fishing-games__btn-tertiary,
.page-fishing-games__btn-small {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-fishing-games__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-fishing-games__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-fishing-games__btn-secondary:hover {
  background: rgba(255, 140, 26, 0.1);
  transform: translateY(-2px);
}

.page-fishing-games__btn-tertiary {
  background: #17191F;
  color: #FF8C1A;
  border: 1px solid #A84F0C;
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 5px;
}

.page-fishing-games__btn-tertiary:hover {
  background: #2a2d36;
  color: #FFA53A;
}

.page-fishing-games__btn-small {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
  padding: 8px 15px;
  font-size: 0.85rem;
  border-radius: 5px;
}

.page-fishing-games__btn-small:hover {
  opacity: 0.9;
}

.page-fishing-games__section-title {
  font-size: 2.2rem;
  color: #FF8C1A;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-fishing-games__subsection-title {
  font-size: 1.8rem;
  color: #FFA53A;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-fishing-games__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #FFF3E6;
}

.page-fishing-games__text-block {
  font-size: 1rem;
  color: #FFF3E6;
  margin-bottom: 20px;
}

.page-fishing-games__about-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__popular-games-section,
.page-fishing-games__advantages-section,
.page-fishing-games__faq-section,
.page-fishing-games__cta-bottom {
  padding: 60px 0;
}

.page-fishing-games__dark-section {
  background-color: #17191F; /* Card BG */
}

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

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

.page-fishing-games__list-item {
  background-color: #17191F; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #A84F0C;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  counter-increment: step-counter;
  position: relative;
}

.page-fishing-games__list-item::before {
  content: counter(step-counter);
  position: absolute;
  top: -15px;
  left: -15px;
  background: #FF8C1A;
  color: #FFF3E6;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: bold;
  border: 2px solid #A84F0C;
}

.page-fishing-games__list-title {
  font-size: 1.4rem;
  color: #FFA53A;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-fishing-games__list-text {
  font-size: 1rem;
  color: #FFF3E6;
}

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

.page-fishing-games__game-card {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  border: 1px solid #A84F0C;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
}

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

.page-fishing-games__game-card-title {
  font-size: 1.3rem;
  color: #FFA53A;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-fishing-games__game-card-description {
  font-size: 0.95rem;
  color: #FFF3E6;
  margin-bottom: 20px;
  padding: 0 15px;
}

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

.page-fishing-games__advantage-item {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  border: 1px solid #A84F0C;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__advantage-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__advantage-title {
  font-size: 1.4rem;
  color: #FFA53A;
  margin-bottom: 10px;
}

.page-fishing-games__advantage-text {
  font-size: 1rem;
  color: #FFF3E6;
}

/* FAQ Styles */
details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C;
  overflow: hidden;
  background: #17191F; /* Card BG */
  color: #FFF3E6;
}
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: #2a2d36;
}
.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 20px 20px;
  background: #0D0E12; /* Background */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
}

.page-fishing-games__cta-bottom {
  text-align: center;
  background-color: #17191F;
  padding: 80px 0;
}

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

.page-fishing-games__cta-title {
  font-size: 2.5rem;
  color: #FF8C1A;
  margin-bottom: 20px;
}

.page-fishing-games__cta-text {
  font-size: 1.15rem;
  margin-bottom: 40px;
  color: #FFF3E6;
}

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

/* Mobile responsiveness (max-width: 768px) */
@media (max-width: 768px) {
  .page-fishing-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-fishing-games__container {
    padding: 0 15px;
  }

  .page-fishing-games__hero-section {
    padding-top: 10px;
    padding-bottom: 20px;
  }

  .page-fishing-games__hero-content {
    margin-bottom: 20px;
  }

  .page-fishing-games__main-title {
    font-size: 2rem;
  }

  .page-fishing-games__hero-description {
    font-size: 1rem;
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games__btn-tertiary,
  .page-fishing-games__btn-small,
  .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__section-title {
    font-size: 1.8rem;
  }

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

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

  .page-fishing-games__list-item {
    padding: 20px;
  }

  .page-fishing-games__list-item::before {
    top: -10px;
    left: -10px;
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }

  .page-fishing-games__list-title {
    font-size: 1.2rem;
  }

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

  .page-fishing-games__advantage-item {
    padding: 25px;
  }

  details.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-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
    padding: 0 15px 15px;
  }

  .page-fishing-games__cta-bottom {
    padding: 40px 0;
  }

  .page-fishing-games__cta-title {
    font-size: 2rem;
  }

  .page-fishing-games__cta-text {
    font-size: 1rem;
  }

  /* Ensure all content sections are constrained */
  .page-fishing-games__about-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__popular-games-section,
  .page-fishing-games__advantages-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-bottom {
    padding: 40px 0;
  }

  .page-fishing-games__about-section .page-fishing-games__container,
  .page-fishing-games__how-to-play-section .page-fishing-games__container,
  .page-fishing-games__popular-games-section .page-fishing-games__container,
  .page-fishing-games__advantages-section .page-fishing-games__container,
  .page-fishing-games__faq-section .page-fishing-games__container,
  .page-fishing-games__cta-bottom .page-fishing-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image specific rules */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* Additional rules for promo/hot-games/brand-intro/winner-ticker if they were on this page, as per prompt. Not directly applicable to this inner page, but included for completeness if prompt implies global inclusion. */
@media (max-width: 768px) {
  .page-fishing-games__promo-strip-track { /* Placeholder for promo strip if it were here */
    grid-template-columns: repeat(4, 1fr);
    overflow-x: hidden;
  }
  .page-fishing-games__hot-games-grid { /* Placeholder for hot games if it were here */
    grid-template-columns: repeat(2, 1fr);
  }
  /* .page-fishing-games__brand-intro { display: none !important; } */ /* Assuming it's not present or handled by other rules */
  /* .page-fishing-games__winner-ticker { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 9999; } */ /* Placeholder */
  /* body { padding-bottom: 50px; } */ /* Adjust body padding if winner-ticker is fixed at bottom */
}

/* For homepage trial boilerplate overlay and modal */
.page-fishing-games__game-trial-overlay{
  z-index:5;pointer-events:auto;
}
.page-fishing-games__game-trial-overlay.is-hidden{
  display:none!important;pointer-events:none!important;
}
.page-fishing-games__game-trial-start{
  z-index:6;pointer-events:auto;touch-action:manipulation;
}
.page-fishing-games__game-trial-shell{
  border:1px solid #A84F0C;border-radius:10px;overflow:hidden;
}
.page-fishing-games__reward-modal{
  position:fixed;inset:0;z-index:10000;
}
.page-fishing-games__reward-modal-close {
  background: #D96800;
  color: #FFF3E6;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
}
.page-fishing-games__reward-modal[hidden] { display: none; }
.page-fishing-games--reward-open { overflow: hidden; }