.page-xs__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  margin-bottom: 40px;
  background-color: var(--bg-color);
}

.page-xs__hero-banner {
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.page-xs__hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/5;
  object-fit: cover;
  object-position: center;
  filter: none; /* Prohibit grayscale */
}

.page-xs__hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px 40px;
  text-align: center;
  color: var(--text-main-color);
}

.page-xs__main-title {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-xs__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-xs__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  background: var(--button-color);
  color: var(--text-main-color);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-xs__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-xs__cta-button--small {
  padding: 10px 25px;
  font-size: 1rem;
}

.page-xs__cta-button--large {
  padding: 18px 40px;
  font-size: 1.2rem;
}

.page-xs__info-section, .page-xs__games-section, .page-xs__how-to-play-section, .page-xs__faq-section, .page-xs__cta-bottom-section {
  padding: 50px 0;
  background-color: var(--bg-color);
  color: var(--text-main-color);
}

.page-xs__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-xs__section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold-color);
  position: relative;
}

.page-xs__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--deep-red-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-xs__text-content {
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
}

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

.page-xs__feature-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-xs__feature-card:hover {
  transform: translateY(-5px);
}

.page-xs__feature-card img {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: none; /* Prohibit grayscale */
}

.page-xs__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.page-xs__card-description {
  font-size: 0.95rem;
  line-height: 1.5;
}

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

.page-xs__game-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-xs__game-card:hover {
  transform: translateY(-5px);
}

.page-xs__game-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  filter: none; /* Prohibit grayscale */
}

.page-xs__game-title {
  font-size: 1.3rem;
  font-weight: 600;
  padding: 15px 20px 5px;
  color: var(--gold-color);
}

.page-xs__game-description {
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0 20px 20px;
}

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

.page-xs__step-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-top: 60px;
}

.page-xs__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-color);
  color: var(--bg-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  border: 4px solid var(--deep-red-color);
}

.page-xs__step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.page-xs__step-description {
  font-size: 0.95rem;
  line-height: 1.5;
}

.page-xs__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-xs__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-xs__faq-question {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 18px 25px;
  cursor: pointer;
  color: var(--text-main-color);
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-xs__faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.page-xs__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-xs__faq-answer {
  font-size: 1rem;
  line-height: 1.6;
  padding: 0 25px 18px;
  display: none;
  color: var(--text-main-color);
}

.page-xs__faq-answer p {
  margin: 0;
}

.page-xs__cta-bottom-section {
  text-align: center;
  padding: 60px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-xs__hero-section {
    margin-bottom: 30px;
  }

  .page-xs__hero-content {
    padding: 15px 10px 30px;
  }

  .page-xs__main-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .page-xs__subtitle {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    margin-bottom: 20px;
  }

  .page-xs__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-xs__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1rem;
  }

  .page-xs__info-section, .page-xs__games-section, .page-xs__how-to-play-section, .page-xs__faq-section, .page-xs__cta-bottom-section {
    padding: 40px 0;
  }

  .page-xs__section-title {
    font-size: clamp(1.3rem, 5vw, 2rem);
    margin-bottom: 30px;
  }

  .page-xs__text-content {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .page-xs__feature-card, .page-xs__game-card, .page-xs__step-card {
    padding: 20px;
  }

  .page-xs__feature-card img, .page-xs__game-card img {
    max-width: 100%; /* Ensure images don't overflow */
    height: auto; /* Maintain aspect ratio */
  }

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

  .page-xs__game-title {
    font-size: 1.15rem;
  }

  .page-xs__step-title {
    font-size: 1.1rem;
  }

  .page-xs__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-xs__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }
  
  .page-xs__container img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 549px) {
  .page-xs__main-title {
    font-size: clamp(1.3rem, 7vw, 2rem);
  }
  .page-xs__subtitle {
    text-align: left; /* Adjust for smaller screens */
  }
  .page-xs__text-content {
    text-align: left; /* Adjust for smaller screens */
  }
  .page-xs__section-title::after {
    margin-left: 0; /* Align line with left text */
  }
  .page-xs__grid, .page-xs__game-grid, .page-xs__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-xs__section-title {
    text-align: left;
  }
  .page-xs__step-card {
    padding-top: 40px;
  }
  .page-xs__step-number {
    left: 20px;
    transform: none;
  }
}