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

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

.page-arcade__section-title {
  font-size: 2.5em;
  color: #000000; /* Main color for titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

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

.page-arcade__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-arcade__hero-section {
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF; /* Light text on dark background */
  padding: 80px 20px 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-arcade__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-arcade__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background effect */
  display: block;
}

.page-arcade__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-arcade__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
  color: #FFFFFF;
}

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

.page-arcade__hero-actions {
  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;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-arcade__button--register {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text on bright background */
}

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

.page-arcade__button--play {
  background-color: #FFFFFF; /* White button */
  color: #000000; /* Dark text on white background */
  border: 2px solid #FCBC45;
}

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

/* About Section */
.page-arcade__about-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  text-align: center;
}

.page-arcade__content-image {
  width: 100%;
  max-width: 700px; /* Ensure image is not too small */
  height: auto;
  border-radius: 12px;
  margin-top: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Game Categories Section */
.page-arcade__game-categories-section {
  padding: 80px 0;
}

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

.page-arcade__category-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-arcade__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-arcade__category-image {
  width: 100%;
  max-width: 400px; /* Ensure image is not too small */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

.page-arcade__category-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-arcade__button--category {
  background-color: #FCBC45;
  color: #000000;
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 6px;
}

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

/* Why Choose Section */
.page-arcade__why-choose-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background */
  color: #FFFFFF; /* Light text */
}

.page-arcade__why-choose-section .page-arcade__section-title, 
.page-arcade__why-choose-section .page-arcade__section-title::after {
  color: #FFFFFF;
  background-color: #FCBC45; /* Accent for underline */
}

.page-arcade__why-choose-section .page-arcade__section-title::after {
  background-color: #FCBC45;
}

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

.page-arcade__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.page-arcade__feature-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-arcade__feature-title {
  font-size: 1.6em;
  color: #FCBC45; /* Accent color for titles */
  margin-bottom: 10px;
}

.page-arcade__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-arcade__feature-description a {
  color: #FCBC45;
  text-decoration: none;
}

.page-arcade__feature-description a:hover {
  text-decoration: underline;
}

/* How to Play Section */
.page-arcade__how-to-play-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-arcade__step-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-arcade__step-title {
  font-size: 1.7em;
  color: #000000;
  margin-bottom: 15px;
}

.page-arcade__step-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-arcade__button--step {
  background-color: #000000;
  color: #FFFFFF;
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 6px;
}

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

/* Strategy Section */
.page-arcade__strategy-section {
  padding: 80px 0;
}

.page-arcade__detail-card {
  background-color: #FFFFFF;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-arcade__detail-title {
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-arcade__detail-title a {
  color: #000000;
  text-decoration: none;
}

.page-arcade__detail-title a:hover {
  color: #FCBC45;
  text-decoration: underline;
}

.page-arcade__detail-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 25px;
}

.page-arcade__button--detail {
  background-color: #FCBC45;
  color: #000000;
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 6px;
}

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

/* CTA Section */
.page-arcade__cta-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background */
  color: #FFFFFF; /* Light text */
  text-align: center;
}

.page-arcade__cta-section .page-arcade__section-title, 
.page-arcade__cta-section .page-arcade__section-title::after {
  color: #FFFFFF;
  background-color: #FCBC45; /* Accent for underline */
}

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

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

.page-arcade__button--register-large {
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 35px;
  font-size: 1.2em;
  border-radius: 10px;
}

.page-arcade__button--register-large:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

.page-arcade__button--login-large {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 18px 35px;
  font-size: 1.2em;
  border-radius: 10px;
}

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

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

@media (max-width: 768px) {
  .page-arcade {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
  }
  .page-arcade__hero-section {
    padding: 60px 15px 80px;
  }
  .page-arcade__hero-title {
    font-size: 2.5em;
  }
  .page-arcade__hero-description {
    font-size: 1.1em;
  }
  .page-arcade__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__button {
    width: 100%;
    max-width: 300px;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__text-content {
    font-size: 1em;
  }
  .page-arcade__category-grid, .page-arcade__features-list, .page-arcade__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__category-card, .page-arcade__feature-item, .page-arcade__step-card, .page-arcade__detail-card {
    padding: 20px;
  }
  /* Mobile images must be responsive and not cause overflow */
  .page-arcade__hero-image,
  .page-arcade__content-image,
  .page-arcade__category-image,
  .page-arcade img { /* General rule for all images within .page-arcade */
    max-width: 100%;
    height: auto;
    /* Ensure no image display size smaller than 200px */
    min-width: 200px; 
    min-height: 200px;
  }
  .page-arcade__button--register-large, .page-arcade__button--login-large {
    width: 100%;
    max-width: 320px;
  }
}

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