.page-arcade {
  color: #333333; /* Dark text for light body background */
}

.page-arcade__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  background-color: #000000; /* Dark background for hero section */
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

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

.page-arcade__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-arcade__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45;
}

.page-arcade__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-arcade__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-arcade__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
  white-space: nowrap;
}

.page-arcade__button--register {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-arcade__button--register:hover {
  background-color: #e0a030;
  border-color: #e0a030;
}

.page-arcade__button--explore {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-arcade__button--explore:hover {
  background-color: #FFFFFF;
  color: #000000;
}

.page-arcade__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-arcade__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.page-arcade__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-arcade__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-arcade__features-grid,
.page-arcade__games-showcase .page-arcade__game-cards,
.page-arcade__steps-grid,
.page-arcade__info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-arcade__feature-card,
.page-arcade__game-card,
.page-arcade__step-card,
.page-arcade__info-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-arcade__feature-card:hover,
.page-arcade__game-card:hover,
.page-arcade__step-card:hover,
.page-arcade__info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-arcade__feature-description,
.page-arcade__game-description,
.page-arcade__step-description,
.page-arcade__info-description {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-arcade__button--download,
.page-arcade__button--learn-more,
.page-arcade__button--view-promo,
.page-arcade__button--play,
.page-arcade__button--step-action,
.page-arcade__button--info-action {
  background-color: #000000;
  color: #FFFFFF;
  padding: 12px 25px;
  font-size: 0.95em;
  border: 2px solid #000000;
  margin-top: auto; /* Push button to bottom */
}

.page-arcade__button--download:hover,
.page-arcade__button--learn-more:hover,
.page-arcade__button--view-promo:hover,
.page-arcade__button--play:hover,
.page-arcade__button--step-action:hover,
.page-arcade__button--info-action:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #000000;
}

.page-arcade__game-category {
  margin-bottom: 60px;
}

.page-arcade__category-title {
  font-size: 2.2em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
}

.page-arcade__future-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
}

.page-arcade__future-section .page-arcade__section-title {
  color: #FFFFFF;
}

.page-arcade__future-section .page-arcade__section-intro {
  color: #f0f0f0;
}

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

.page-arcade__future-point {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}

.page-arcade__future-title {
  font-size: 1.8em;
  color: #FCBC45;
  margin-bottom: 15px;
}

.page-arcade__future-description {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-arcade__faq-section {
  padding: 60px 20px;
}

.page-arcade__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid #eeeeee;
}

.page-arcade__faq-question {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
}

.page-arcade__faq-answer {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-arcade__faq-answer a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-arcade__faq-answer a:hover {
  text-decoration: underline;
}

.page-arcade__cta-section {
  background-color: #FCBC45;
  padding: 80px 20px;
  text-align: center;
  color: #000000;
}

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

.page-arcade__cta-section .page-arcade__section-title::after {
  background-color: #000000;
}

.page-arcade__cta-section .page-arcade__section-intro {
  color: #333333;
}

.page-arcade__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.page-arcade__cta-buttons .page-arcade__button--register {
  background-color: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

.page-arcade__cta-buttons .page-arcade__button--register:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-arcade__cta-buttons .page-arcade__button--login {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-arcade__cta-buttons .page-arcade__button--login:hover {
  background-color: #e0e0e0;
  border-color: #e0e0e0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-arcade__hero-title {
    font-size: 3em;
  }

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

  .page-arcade__category-title {
    font-size: 1.8em;
  }
}

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

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

  .page-arcade__button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-arcade__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-arcade__content-area {
    padding: 30px 15px;
  }

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

  .page-arcade__section-intro {
    font-size: 0.95em;
  }

  .page-arcade__feature-card,
  .page-arcade__game-card,
  .page-arcade__step-card,
  .page-arcade__info-card {
    padding: 25px 20px;
  }

  .page-arcade__feature-title,
  .page-arcade__game-name,
  .page-arcade__step-title,
  .page-arcade__info-title {
    font-size: 1.5em;
  }

  .page-arcade__feature-image,
  .page-arcade__game-image,
  .page-arcade__info-image {
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    max-width: 100%; /* Prevent overflow */
    height: auto; /* Maintain aspect ratio */
  }

  .page-arcade__future-point {
    padding: 25px 20px;
  }

  .page-arcade__future-title {
    font-size: 1.5em;
  }

  .page-arcade__faq-question {
    font-size: 1.2em;
  }

  .page-arcade__cta-section {
    padding: 60px 15px;
  }

  .page-arcade__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Ensure content area images do not cause horizontal scroll */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 2em;
  }

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

  .page-arcade__category-title {
    font-size: 1.6em;
  }
}