:root {
  --primary-color: #11A84E;
  --auxiliary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-dark: #08160F; /* Assuming this is the body background */
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-fortune-mouse {
  font-family: 'Arial', sans-serif;
  background-color: var(--background-dark); /* Inherited from shared, should be dark */
  color: var(--text-main); /* Light text for dark background */
}

.page-fortune-mouse__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-fortune-mouse__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 30px;
}

.page-fortune-mouse__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-fortune-mouse__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1; /* Ensure content is above any background effects */
  padding: 0 15px;
}

.page-fortune-mouse__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size */
  color: var(--gold-color); /* Use Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.page-fortune-mouse__hero-description {
  font-size: clamp(1rem, 2.5vw, 1.3rem); /* Responsive font size */
  color: var(--text-main);
  margin-bottom: 30px;
  line-height: 1.5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-fortune-mouse__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width */
  max-width: 600px; /* Limit max width for desktop */
  box-sizing: border-box;
}

.page-fortune-mouse__btn-primary,
.page-fortune-mouse__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Important for responsiveness */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

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

.page-fortune-mouse__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-fortune-mouse__btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 2px solid var(--deep-green-color); /* Use Deep Green for border */
}

.page-fortune-mouse__btn-secondary:hover {
  background-color: var(--deep-green-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-fortune-mouse__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-fortune-mouse__sub-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.3;
}

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

.page-fortune-mouse__about-game-section,
.page-fortune-mouse__how-to-play-section,
.page-fortune-mouse__features-section,
.page-fortune-mouse__why-fogobet-section,
.page-fortune-mouse__tips-section,
.page-fortune-mouse__faq-section,
.page-fortune-mouse__cta-final-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--divider-color); /* Use Divider color */
}

.page-fortune-mouse__dark-section {
  background-color: var(--card-bg); /* Use Card B G for dark sections */
  color: var(--text-main); /* Light text for dark background */
}

.page-fortune-mouse__content-block {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-main);
}

.page-fortune-mouse__content-block p {
  margin-bottom: 1.5em;
  color: var(--text-main);
}

.page-fortune-mouse__content-block strong {
  color: var(--glow-color); /* Use Glow for strong emphasis */
}

.page-fortune-mouse__content-block a {
  color: var(--auxiliary-color); /* Use auxiliary color for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-fortune-mouse__content-block a:hover {
  color: var(--primary-color);
}

.page-fortune-mouse__image-full,
.page-fortune-mouse__image-centered,
.page-fortune-mouse__image-large,
.page-fortune-mouse__image-responsive,
.page-fortune-mouse__image-strategy {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 800px; /* Default max-width for content images */
}

.page-fortune-mouse__ordered-list,
.page-fortune-mouse__unordered-list {
  list-style-position: inside;
  margin-bottom: 2em;
  padding-left: 20px;
  color: var(--text-main);
}

.page-fortune-mouse__ordered-list li,
.page-fortune-mouse__unordered-list li {
  margin-bottom: 1em;
  line-height: 1.6;
}

.page-fortune-mouse__faq-list {
  margin-top: 40px;
}

.page-fortune-mouse__faq-item {
  background-color: var(--card-bg); /* Use Card B G for FAQ item background */
  border: 1px solid var(--border-color); /* Use Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-fortune-mouse__faq-item summary {
  display: block; /* For details tag */
  padding: 20px;
  cursor: pointer;
  outline: none;
  background-color: var(--deep-green-color); /* Use Deep Green for summary background */
  color: var(--text-main);
  font-weight: bold;
  font-size: 1.1rem;
  position: relative;
  user-select: none;
  list-style: none; /* Hide default marker for details */
}

.page-fortune-mouse__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-fortune-mouse__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-fortune-mouse__faq-toggle {
  font-size: 1.5rem;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.page-fortune-mouse__faq-item[open] .page-fortune-mouse__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-fortune-mouse__faq-answer {
  padding: 20px;
  background-color: var(--card-bg); /* Use Card B G for answer background */
  color: var(--text-secondary); /* Secondary text for answer content */
  line-height: 1.6;
  font-size: 1rem;
}

.page-fortune-mouse__faq-answer p {
  margin-bottom: 1em;
}

.page-fortune-mouse__cta-center {
  text-align: center;
}

.page-fortune-mouse__cta-final-section {
  padding-bottom: 80px;
}

.page-fortune-mouse__description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 1.5em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-fortune-mouse__hero-section {
    padding: 10px 15px 40px;
  }

  .page-fortune-mouse__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-fortune-mouse__hero-description {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }

  .page-fortune-mouse__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to button container for mobile */
  }

  .page-fortune-mouse__btn-primary,
  .page-fortune-mouse__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-fortune-mouse__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-fortune-mouse__sub-title {
    font-size: clamp(1.2rem, 5vw, 1.7rem);
  }

  .page-fortune-mouse__about-game-section,
  .page-fortune-mouse__how-to-play-section,
  .page-fortune-mouse__features-section,
  .page-fortune-mouse__why-fogobet-section,
  .page-fortune-mouse__tips-section,
  .page-fortune-mouse__faq-section,
  .page-fortune-mouse__cta-final-section {
    padding: 40px 0;
  }

  .page-fortune-mouse__container {
    padding: 0 15px;
  }

  .page-fortune-mouse__content-block {
    font-size: 1rem;
    line-height: 1.6;
  }

  .page-fortune-mouse__image-full,
  .page-fortune-mouse__image-centered,
  .page-fortune-mouse__image-large,
  .page-fortune-mouse__image-responsive,
  .page-fortune-mouse__image-strategy {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
  }
  
  /* Ensure all img elements are responsive */
  .page-fortune-mouse img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all image containers are responsive */
  .page-fortune-mouse__hero-image-wrapper,
  .page-fortune-mouse__content-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Video specific mobile rules if video were present */
  .page-fortune-mouse video,
  .page-fortune-mouse__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-fortune-mouse__video-section,
  .page-fortune-mouse__video-container,
  .page-fortune-mouse__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-fortune-mouse__video-section {
    padding-top: 10px !important; /* Small top padding for video section */
  }
  
  .page-fortune-mouse__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Color contrast enforcement */
/* Assuming body background is dark (var(--background-dark)) */
.page-fortune-mouse {
  color: var(--text-main); /* Light text on dark body background */
}

.page-fortune-mouse__dark-section {
  background-color: var(--card-bg); /* Dark background */
  color: var(--text-main); /* Light text */
}

.page-fortune-mouse__light-bg {
  color: #333333; /* Dark text */
  background: #ffffff; /* Light background */
}

/* Critical elements for contrast */
.page-fortune-mouse p,
.page-fortune-mouse li,
.page-fortune-mouse__hero-description {
  color: var(--text-main); /* Ensure light text on dark backgrounds */
}

.page-fortune-mouse__faq-answer {
  color: var(--text-secondary); /* Slightly less bright for secondary text */
}

.page-fortune-mouse__btn-primary {
  color: #ffffff; /* White text on primary button */
}
.page-fortune-mouse__btn-secondary {
    color: var(--text-main); /* On transparent background, use main text color */
}
.page-fortune-mouse__btn-secondary:hover {
    color: #ffffff; /* On hover, background changes, so text becomes white */
}