.page-arcade {
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Ensures consistency with body background */
  padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

.page-arcade__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-arcade__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-arcade__hero-content {
  z-index: 1;
  max-width: 800px;
  margin-bottom: 40px;
}

.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;
}

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

.page-arcade__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.3s ease;
  white-space: nowrap;
}

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

.page-arcade__button--register:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
  transform: translateY(-3px);
}

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

.page-arcade__button--login:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
  transform: translateY(-3px);
}

.page-arcade__hero-image {
  width: 100%;
  max-width: 1200px; /* Constrain max width for image */
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-arcade__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

.page-arcade__about-section {
  padding: 80px 0;
  background-color: #F8F8F8;
}

.page-arcade__text-content {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.page-arcade__featured-games {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-arcade__game-card {
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-arcade__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-arcade__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  filter: grayscale(0%); /* Ensure original color */
}

.page-arcade__game-card h3 {
  font-size: 1.8em;
  margin: 20px 15px 10px;
  color: #FCBC45;
}

.page-arcade__game-card p {
  font-size: 0.95em;
  line-height: 1.6;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-arcade__button--play {
  background-color: #FCBC45;
  color: #000000;
  border: none;
  padding: 12px 25px;
  margin-bottom: 20px;
  align-self: center;
}

.page-arcade__button--play:hover {
  background-color: #FFFFFF;
  transform: translateY(-3px);
}

.page-arcade__view-more {
  text-align: center;
}

.page-arcade__button--full-library {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-arcade__button--full-library:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-arcade__benefits-section {
  padding: 80px 0;
  background-color: #F8F8F8;
}

.page-arcade__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-arcade__benefit-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-arcade__benefit-item:hover {
  transform: translateY(-5px);
}

.page-arcade__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  filter: grayscale(0%); /* Ensure original color */
}

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

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

.page-arcade__how-to-play {
  padding: 80px 0;
  background-color: #000000;
  color: #FFFFFF;
}

.page-arcade__how-to-play .page-arcade__section-title {
  color: #FFFFFF;
}

.page-arcade__how-to-play .page-arcade__section-title::after {
  background-color: #FCBC45;
}

.page-arcade__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
  margin-bottom: 50px;
}

.page-arcade__step-item {
  background-color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-arcade__step-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  filter: grayscale(0%); /* Ensure original color */
}

.page-arcade__step-title {
  font-size: 1.5em;
  color: #FCBC45;
  margin-bottom: 10px;
}

.page-arcade__step-description {
  font-size: 1em;
  line-height: 1.7;
  color: #E0E0E0;
}

.page-arcade__cta-bottom {
  text-align: center;
}

.page-arcade__button--start-playing {
  background-color: #FCBC45;
  color: #000000;
  border: none;
}

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

.page-arcade__faq-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-arcade__faq-item {
  background-color: #F8F8F8;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.page-arcade__cta-banner {
  padding: 100px 0;
  background: linear-gradient(135deg, #000000, #333333);
  color: #FFFFFF;
  text-align: center;
}

.page-arcade__banner-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FCBC45;
}

.page-arcade__banner-text {
  font-size: 1.2em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-arcade__button--join-now {
  background-color: #FCBC45;
  color: #000000;
  border: none;
  padding: 18px 40px;
  font-size: 1.2em;
}

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

.page-arcade__related-links {
  padding: 60px 0;
  background-color: #F0F0F0;
  text-align: center;
}

.page-arcade__links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px 30px;
}

.page-arcade__links-list a {
  color: #000000;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-arcade__links-list a:hover {
  color: #FCBC45;
  text-decoration: underline;
}

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

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

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

  .page-arcade__banner-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-arcade {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }

  .page-arcade__hero-section {
    padding: 40px 15px;
  }

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

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

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

  .page-arcade__button {
    width: 100%;
    max-width: 280px;
  }

  .page-arcade__hero-image,
  .page-arcade__game-image,
  .page-arcade__benefit-icon,
  .page-arcade__step-icon {
    max-width: 100% !important;
    height: auto !important;
    min-width: 200px; /* Ensure content images are not too small */
    min-height: 200px; /* Ensure content images are not too small */
  }

  .page-arcade__container {
    padding: 0 15px;
  }

  .page-arcade__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-arcade__game-grid,
  .page-arcade__benefits-grid,
  .page-arcade__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-arcade__game-card h3 {
    font-size: 1.5em;
  }

  .page-arcade__benefit-title,
  .page-arcade__step-title {
    font-size: 1.3em;
  }

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

  .page-arcade__cta-banner {
    padding: 60px 20px;
  }

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

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

  .page-arcade__button--join-now {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  .page-arcade__links-list {
    flex-direction: column;
    gap: 10px;
  }
}

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

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

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

  .page-arcade__game-image,
  .page-arcade__benefit-icon,
  .page-arcade__step-icon {
    min-width: 200px;
    min-height: 200px;
  }
}