:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --card-bg: #111111;
  --body-bg: #0A0A0A; /* Assuming --color-bg from shared.css resolves to this */
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
}

.page-fortune-dragon {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Light text for dark body background */
  background-color: var(--body-bg);
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* --- Hero Section --- */
.page-fortune-dragon__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background: var(--body-bg);
  border-bottom: 1px solid var(--border-color);
}

.page-fortune-dragon__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width for flex item */
}

.page-fortune-dragon__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-fortune-dragon__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(255, 211, 107, 0.4); /* Glow effect */
}

.page-fortune-dragon__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.page-fortune-dragon__hero-content h1 {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 size */
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.6);
}

.page-fortune-dragon__hero-content p {
  font-size: 1.2em;
  color: var(--text-main);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-fortune-dragon__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fortune-dragon__cta-button:hover {
  background: linear-gradient(180deg, #FFE082 0%, #E8B940 100%);
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4);
}

/* --- General Section Styling --- */
.page-fortune-dragon__about-game-section,
.page-fortune-dragon__why-pixbets-section,
.page-fortune-dragon__gameplay-tips-section,
.page-fortune-dragon__faq-section,
.page-fortune-dragon__related-games-section,
.page-fortune-dragon__cta-bottom-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border-color);
}

.page-fortune-dragon__cta-bottom-section {
  border-bottom: none; /* Last section doesn't need a border-bottom */
}

.page-fortune-dragon__about-game-section h2,
.page-fortune-dragon__why-pixbets-section h2,
.page-fortune-dragon__gameplay-tips-section h2,
.page-fortune-dragon__faq-section h2,
.page-fortune-dragon__related-games-section h2,
.page-fortune-dragon__cta-bottom-section h2 {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-fortune-dragon__why-pixbets-section h3,
.page-fortune-dragon__gameplay-tips-section h3,
.page-fortune-dragon__related-games-section h3 {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  text-shadow: 0 0 5px rgba(255, 211, 107, 0.3);
}

.page-fortune-dragon__about-game-section p,
.page-fortune-dragon__why-pixbets-section p,
.page-fortune-dragon__gameplay-tips-section p,
.page-fortune-dragon__related-games-section p,
.page-fortune-dragon__cta-bottom-section p {
  font-size: 1.1em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.page-fortune-dragon img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 30px auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Ensure content images are at least 200px wide for their display area */
.page-fortune-dragon__about-game-section img,
.page-fortune-dragon__why-pixbets-section img,
.page-fortune-dragon__gameplay-tips-section img {
  min-width: 200px;
  min-height: 200px;
}

/* --- Game Cards Section --- */
.page-fortune-dragon__game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fortune-dragon__game-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-fortune-dragon__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-color);
}

.page-fortune-dragon__game-card img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Card images must be at least 200px */
  min-height: 200px;
}

.page-fortune-dragon__game-card h3 {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-fortune-dragon__game-card h3 a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-fortune-dragon__game-card h3 a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-fortune-dragon__game-card p {
  font-size: 0.95em;
  color: var(--text-main);
  margin-bottom: 20px;
  min-height: 60px; /* Ensure consistent card height */
}

.page-fortune-dragon__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: none;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fortune-dragon__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--body-bg); /* Dark text on light button */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* --- FAQ Section --- */
.page-fortune-dragon__faq-list {
  margin-top: 40px;
}

details.page-fortune-dragon__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-fortune-dragon__faq-item summary.page-fortune-dragon__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-fortune-dragon__faq-item summary.page-fortune-dragon__faq-question::-webkit-details-marker {
  display: none;
}
details.page-fortune-dragon__faq-item summary.page-fortune-dragon__faq-question:hover {
  background: rgba(255, 211, 107, 0.1); /* Lighter hover for dark background */
}
.page-fortune-dragon__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-fortune-dragon__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-fortune-dragon__faq-item .page-fortune-dragon__faq-answer {
  padding: 0 20px 20px;
  background: rgba(17, 17, 17, 0.8); /* Slightly lighter than card-bg for contrast */
  border-radius: 0 0 5px 5px;
  color: var(--text-main);
}
.page-fortune-dragon__faq-item .page-fortune-dragon__faq-answer p {
    margin-bottom: 0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-fortune-dragon__hero-content h1 {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-fortune-dragon__hero-content p {
    font-size: 1.1em;
  }
  .page-fortune-dragon__about-game-section,
  .page-fortune-dragon__why-pixbets-section,
  .page-fortune-dragon__gameplay-tips-section,
  .page-fortune-dragon__faq-section,
  .page-fortune-dragon__related-games-section,
  .page-fortune-dragon__cta-bottom-section {
    padding: 40px 15px;
  }
  .page-fortune-dragon__about-game-section h2,
  .page-fortune-dragon__why-pixbets-section h2,
  .page-fortune-dragon__gameplay-tips-section h2,
  .page-fortune-dragon__faq-section h2,
  .page-fortune-dragon__related-games-section h2,
  .page-fortune-dragon__cta-bottom-section h2 {
    font-size: 2em;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-fortune-dragon__hero-section {
    padding-top: 10px !important; /* Small top padding as body handles header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-fortune-dragon__hero-image img {
    border-radius: 4px;
  }
  
  .page-fortune-dragon__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* All images responsive for mobile */
  .page-fortune-dragon img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* All containers with images/buttons responsive for mobile */
  .page-fortune-dragon__about-game-section,
  .page-fortune-dragon__why-pixbets-section,
  .page-fortune-dragon__gameplay-tips-section,
  .page-fortune-dragon__faq-section,
  .page-fortune-dragon__related-games-section,
  .page-fortune-dragon__cta-bottom-section,
  .page-fortune-dragon__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ mobile adjustments */
  details.page-fortune-dragon__faq-item summary.page-fortune-dragon__faq-question { padding: 15px; }
  .page-fortune-dragon__faq-qtext { font-size: 15px; }
  .page-fortune-dragon__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  details.page-fortune-dragon__faq-item .page-fortune-dragon__faq-answer {
    padding: 0 15px 15px;
  }

  /* Game cards responsive grid */
  .page-fortune-dragon__game-cards {
    grid-template-columns: 1fr;
  }
  .page-fortune-dragon__game-card p {
    min-height: auto; /* Remove fixed height for mobile */
  }
  .page-fortune-dragon__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}