.page-arcade {
  color: #333333; /* Default text color for light 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-arcade__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-arcade__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #1A202C;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-arcade__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.page-arcade__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-arcade__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-arcade__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A202C;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-arcade__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-arcade__introduction-section,
.page-arcade__features-section,
.page-arcade__popular-games-section,
.page-arcade__get-started-section,
.page-arcade__cta-section,
.page-arcade__responsible-gaming-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  margin-bottom: 20px;
  border-radius: 10px;
}

.page-arcade__introduction-section {
  background-color: #ffffff;
}

.page-arcade__section-title {
  font-size: 2.5em;
  color: #1A202C;
  text-align: center;
  margin-bottom: 40px;
}

.page-arcade__section-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-arcade__features-grid,
.page-arcade__games-grid,
.page-arcade__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-arcade__feature-card,
.page-arcade__game-card,
.page-arcade__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-arcade__feature-card:hover,
.page-arcade__game-card:hover,
.page-arcade__step-card:hover {
  transform: translateY(-5px);
}

.page-arcade__feature-icon,
.page-arcade__game-image {
  width: 100%;
  height: auto;
  min-height: 200px; /* Enforce minimum image height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-arcade__feature-title,
.page-arcade__game-title,
.page-arcade__step-title {
  font-size: 1.8em;
  color: #1A202C;
  margin-bottom: 15px;
}

.page-arcade__feature-description,
.page-arcade__game-description,
.page-arcade__step-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-arcade__game-button,
.page-arcade__step-button {
  display: inline-block;
  background-color: #1A202C;
  color: #FFD700;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-arcade__game-button:hover,
.page-arcade__step-button:hover {
  background-color: #333d4d;
}

.page-arcade__step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background-color: #FFD700;
  color: #1A202C;
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

.page-arcade__cta-section {
  background-color: #1A202C;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
}

.page-arcade__cta-section .page-arcade__section-title {
  color: #FFD700;
}

.page-arcade__cta-section .page-arcade__section-text {
  color: #f0f0f0;
}

.page-arcade__cta-button--large {
  padding: 18px 35px;
  font-size: 1.4em;
  margin-bottom: 20px;
}

.page-arcade__cta-button--secondary {
  background-color: transparent;
  border: 2px solid #FFD700;
  color: #FFD700;
  margin-left: 20px;
}

.page-arcade__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.page-arcade__responsible-gaming-section {
  background-color: #f0f0f0;
  text-align: center;
}

.page-arcade__responsible-gaming-link {
  display: inline-block;
  color: #1A202C;
  text-decoration: underline;
  font-weight: bold;
  margin-top: 20px;
}

.page-arcade__responsible-gaming-link:hover {
  color: #FFD700;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-arcade__hero-title {
    font-size: 2.5em;
  }

  .page-arcade__hero-description {
    font-size: 1.1em;
  }

  .page-arcade__section-title {
    font-size: 2em;
  }

  .page-arcade__section-text {
    font-size: 1em;
  }

  .page-arcade__features-grid,
  .page-arcade__games-grid,
  .page-arcade__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-arcade__cta-button--secondary {
    margin-left: 0;
    margin-top: 15px;
  }

  .page-arcade__cta-button, .page-arcade__cta-button--secondary {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  /* Ensure images do not overflow on mobile */
  .page-arcade__hero-image,
  .page-arcade__feature-icon,
  .page-arcade__game-image {
    max-width: 100%;
    height: auto;
  }

  /* Content area images must not be smaller than 200px even on mobile */
  .page-arcade img {
    min-width: 200px;
    min-height: 200px;
  }
}