.page-index-how-to-play {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-index-how-to-play__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-index-how-to-play__hero-section {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.8), rgba(255, 215, 0, 0.6)); /* Dark red to gold gradient overlay */
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index-how-to-play__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-index-how-to-play__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-index-how-to-play__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-index-how-to-play__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index-how-to-play__hero-description {
  font-size: 1.4em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-how-to-play__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-index-how-to-play__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-index-how-to-play__button--primary {
  background-color: #FFD700; /* Gold button */
  color: #8B0000; /* Dark red text */
}

.page-index-how-to-play__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-index-how-to-play__button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-index-how-to-play__button--secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
  transform: translateY(-2px);
}

.page-index-how-to-play__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold for section titles */
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-index-how-to-play__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #e0e0e0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-how-to-play__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-how-to-play__card {
  background-color: rgba(139, 0, 0, 0.6); /* Semi-transparent dark red card */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-how-to-play__card:hover {
  transform: translateY(-10px);
}

.page-index-how-to-play__card-title {
  font-size: 1.5em;
  color: #FFD700; /* Gold for card titles */
  margin-bottom: 15px;
}

.page-index-how-to-play__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-index-how-to-play__card-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-index-how-to-play__list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-index-how-to-play__list-item {
  background-color: rgba(255, 215, 0, 0.1); /* Light gold semi-transparent background */
  border-left: 5px solid #FFD700;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  color: #f0f0f0;
}

.page-index-how-to-play__list-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index-how-to-play__list-description {
  font-size: 1em;
}

.page-index-how-to-play__numbered-list {
  list-style-type: decimal;
  padding-left: 20px;
  margin-top: 40px;
}

.page-index-how-to-play__numbered-list .page-index-how-to-play__list-item {
  background-color: rgba(139, 0, 0, 0.4); /* Dark red semi-transparent background */
  border-left: 5px solid #FFD700;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-index-how-to-play__numbered-list .page-index-how-to-play__list-item::marker {
  color: #FFD700;
  font-weight: bold;
  font-size: 1.2em;
}

.page-index-how-to-play__strategy-section {
  background-color: rgba(0, 0, 0, 0.4); /* Darker background for strategy section */
  padding: 60px 20px;
  margin-top: 40px;
}

.page-index-how-to-play__grid--strategy {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-index-how-to-play__strategy-card {
  background-color: rgba(255, 215, 0, 0.1); /* Light gold semi-transparent card */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-how-to-play__strategy-title {
  font-size: 1.3em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index-how-to-play__strategy-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-index-how-to-play__strategy-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-index-how-to-play__bullet-list {
  list-style: disc;
  padding-left: 30px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
}

.page-index-how-to-play__bullet-list .page-index-how-to-play__list-item {
  background: none;
  border: none;
  padding: 5px 0;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-index-how-to-play__bullet-list .page-index-how-to-play__list-item strong {
  color: #FFD700;
}

.page-index-how-to-play__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-index-how-to-play__feature-card {
  background-color: rgba(139, 0, 0, 0.6); /* Semi-transparent dark red card */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-how-to-play__feature-icon {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 150px; /* Enforce minimum size, adjusted for aspect ratio */
  border-radius: 8px;
}

.page-index-how-to-play__feature-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index-how-to-play__feature-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-index-how-to-play__call-to-action {
  background-color: rgba(255, 215, 0, 0.15); /* Light gold semi-transparent background */
  border-radius: 15px;
  padding: 50px 30px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-index-how-to-play__call-to-action-title {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-index-how-to-play__call-to-action-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-how-to-play__faq-section {
  padding: 60px 20px;
}

.page-index-how-to-play__faq-item {
  background-color: rgba(139, 0, 0, 0.4); /* Dark red semi-transparent background */
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-index-how-to-play__faq-question {
  font-size: 1.3em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index-how-to-play__faq-answer {
  font-size: 1em;
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-how-to-play__hero-title {
    font-size: 3em;
  }
  .page-index-how-to-play__hero-description {
    font-size: 1.2em;
  }
  .page-index-how-to-play__section-title {
    font-size: 2em;
  }
  .page-index-how-to-play__paragraph {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-index-how-to-play__hero-title {
    font-size: 2.5em;
  }
  .page-index-how-to-play__hero-description {
    font-size: 1.1em;
  }
  .page-index-how-to-play__hero-actions {
    flex-direction: column;
  }
  .page-index-how-to-play__button {
    width: 100%;
    max-width: 300px;
  }
  .page-index-how-to-play__section-title {
    font-size: 1.8em;
  }
  .page-index-how-to-play__card, .page-index-how-to-play__strategy-card, .page-index-how-to-play__feature-card {
    padding: 20px;
  }
  .page-index-how-to-play__card-image, .page-index-how-to-play__strategy-image, .page-index-how-to-play__feature-icon {
    max-width: 100%;
    height: auto; /* Ensure images are responsive and do not overflow */
    min-width: 200px;
    min-height: 150px;
  }
  .page-index-how-to-play__container img, .page-index-how-to-play__hero-section img {
    max-width: 100%;
    height: auto; /* Crucial for mobile responsiveness */
  }
  .page-index-how-to-play__call-to-action-title {
    font-size: 1.5em;
  }
  .page-index-how-to-play__call-to-action-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-index-how-to-play__hero-title {
    font-size: 2em;
  }
  .page-index-how-to-play__hero-description {
    font-size: 1em;
  }
  .page-index-how-to-play__button {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-index-how-to-play__section-title {
    font-size: 1.5em;
  }
  .page-index-how-to-play__card-title, .page-index-how-to-play__strategy-title, .page-index-how-to-play__list-title, .page-index-how-to-play__feature-title, .page-index-how-to-play__faq-question {
    font-size: 1.2em;
  }
  .page-index-how-to-play__call-to-action-title {
    font-size: 1.3em;
  }
}

/* Ensure all content images within .page-index-how-to-play are at least 200px wide/high */
.page-index-how-to-play img {
  min-width: 200px;
  min- /* Adjusted for common aspect ratios, but still >= 200px in one dimension */
  object-fit: cover;
}

/* Specific override for hero image to ensure it covers the area */
.page-index-how-to-play__hero-image img {
  min-width: unset;
  min-height: unset;
}

/* Ensure no CSS filter on images */
.page-index-how-to-play img {
  filter: none !important;
}