.page-arcade {
  color: #333333; /* Dark text for light body background */
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-arcade__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000;
  padding: 0;
}

.page-arcade__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-arcade__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FFFFFF;
  max-width: 900px;
  padding: 20px;
  z-index: 1;
}

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

.page-arcade__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

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

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

.page-arcade__button--primary {
  background-color: #FCBC45;
  color: #000000;
}

.page-arcade__button--primary:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

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

.page-arcade__button--secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-arcade__info-section, .page-arcade__game-categories-section, .page-arcade__popular-games-section, .page-arcade__features-section, .page-arcade__how-to-play-section, .page-arcade__mobile-section, .page-arcade__faq-section, .page-arcade__final-cta-section {
  padding: 60px 20px;
  background-color: #FFFFFF;
}

.page-arcade__section-title {
  font-size: 2.5em;
  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: 10px auto 0;
  border-radius: 2px;
}

.page-arcade__section-intro {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-arcade__info-container, .page-arcade__game-categories-container, .page-arcade__popular-games-container, .page-arcade__features-container, .page-arcade__how-to-play-container, .page-arcade__mobile-container, .page-arcade__faq-container, .page-arcade__final-cta-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-arcade__info-grid, .page-arcade__categories-grid, .page-arcade__popular-games-grid, .page-arcade__features-list, .page-arcade__faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-arcade__info-card, .page-arcade__category-card, .page-arcade__game-card, .page-arcade__feature-item, .page-arcade__faq-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
}

.page-arcade__info-card:hover, .page-arcade__category-card:hover, .page-arcade__game-card:hover, .page-arcade__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-arcade__info-card-image, .page-arcade__category-card-image, .page-arcade__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-arcade__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

.page-arcade__info-card-title, .page-arcade__category-card-title, .page-arcade__game-card-title, .page-arcade__feature-title, .page-arcade__step-title, .page-arcade__faq-question {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 15px;
}

.page-arcade__info-card-description, .page-arcade__category-card-description, .page-arcade__game-card-description, .page-arcade__feature-description, .page-arcade__step-description, .page-arcade__faq-answer {
  font-size: 1em;
  color: #666666;
}

.page-arcade__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: 20px;
  background-color: #000000;
  color: #FFFFFF;
  border: none;
}

.page-arcade__button--small:hover {
  background-color: #333333;
}

.page-arcade__button--tiny {
  padding: 8px 15px;
  font-size: 0.8em;
  margin-top: 15px;
  background-color: #FCBC45;
  color: #000000;
  border: none;
}

.page-arcade__button--tiny:hover {
  background-color: #e0a53b;
}

.page-arcade__how-to-play-list {
  list-style: none;
  counter-reset: step-counter;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 0;
  margin: 40px 0;
}

.page-arcade__how-to-play-list li {
  position: relative;
  padding-left: 60px;
  text-align: left;
}

.page-arcade__how-to-play-list li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-arcade__step-title {
  color: #000000;
  margin-top: 0;
}

.page-arcade__call-to-action {
  text-align: center;
  margin-top: 50px;
}

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

.page-arcade__button--large:hover {
  background-color: #e0a53b;
}

.page-arcade__mobile-section {
  background-color: #f0f0f0;
}

.page-arcade__mobile-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-arcade__mobile-image {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.page-arcade__mobile-content {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  text-align: left;
}

.page-arcade__mobile-content .page-arcade__section-title, .page-arcade__mobile-content .page-arcade__section-intro {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-arcade__mobile-content .page-arcade__section-title::after {
  margin-left: 0;
}

.page-arcade__mobile-benefits {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-arcade__mobile-benefits li {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.page-arcade__mobile-benefits li::before {
  content: '✔';
  color: #FCBC45;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-arcade__faq-question {
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-arcade__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: #FCBC45;
  transition: transform 0.3s ease;
}

.page-arcade__faq-item.active .page-arcade__faq-question::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-arcade__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  padding-top: 0;
  opacity: 0;
  color: #666666;
}

.page-arcade__faq-item.active .page-arcade__faq-answer {
  max-height: 200px; /* Adjust as needed */
  padding-top: 15px;
  opacity: 1;
}

.page-arcade__final-cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
}

.page-arcade__final-cta-section .page-arcade__section-title {
  color: #FCBC45;
}

.page-arcade__final-cta-section .page-arcade__section-title::after {
  background-color: #FCBC45;
}

.page-arcade__final-cta-section .page-arcade__section-intro {
  color: #F0F0F0;
}

.page-arcade__button--hero {
  padding: 20px 45px;
  font-size: 1.3em;
  background-color: #FCBC45;
  color: #000000;
  border: none;
}

.page-arcade__button--hero:hover {
  background-color: #e0a53b;
}

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

@media (max-width: 768px) {
  .page-arcade__hero-title {
    font-size: 2.2em;
  }
  .page-arcade__hero-description {
    font-size: 0.9em;
  }
  .page-arcade__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__info-grid, .page-arcade__categories-grid, .page-arcade__popular-games-grid, .page-arcade__features-list, .page-arcade__faq-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__mobile-container {
    flex-direction: column;
    text-align: center;
  }
  .page-arcade__mobile-image {
    max-width: 80%;
    margin: 0 auto;
  }
  .page-arcade__mobile-content {
    max-width: 100%;
  }
  .page-arcade__mobile-content .page-arcade__section-title, .page-arcade__mobile-content .page-arcade__section-intro {
    text-align: center;
  }
  .page-arcade__mobile-content .page-arcade__section-title::after {
    margin: 10px auto 0;
  }
  .page-arcade__mobile-benefits li {
    padding-left: 0;
    text-align: left;
  }
  .page-arcade__mobile-benefits li::before {
    left: -25px; /* Adjust as needed for alignment */
  }
  .page-arcade__how-to-play-list li {
    padding-left: 0;
    text-align: left;
  }
  .page-arcade__how-to-play-list li::before {
    position: static;
    margin-right: 10px;
  }

  /* Critical: Mobile content area images must not overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
  .page-arcade {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 1.8em;
  }
  .page-arcade__hero-description {
    font-size: 0.85em;
  }
  .page-arcade__button {
    padding: 12px 20px;
    font-size: 1em;
    width: 90%;
  }
  .page-arcade__section-title {
    font-size: 1.5em;
  }
  .page-arcade__section-intro {
    font-size: 0.9em;
  }
  .page-arcade__info-card, .page-arcade__category-card, .page-arcade__game-card, .page-arcade__feature-item, .page-arcade__faq-item {
    padding: 20px;
  }
}