.page-arcade {
  color: #333333;
  background-color: #FFFFFF;
}

.page-arcade__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content clears fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #000000;
  color: #FFFFFF;
  padding-bottom: 60px;
}

.page-arcade__hero-content {
  max-width: 900px;
  padding: 40px 20px;
}

.page-arcade__hero-title {
  font-size: 3.2rem;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45;
}

.page-arcade__hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #F0F0F0;
}

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

.page-arcade__button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

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

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

.page-arcade__button--secondary {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

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

.page-arcade__button--small {
  padding: 10px 20px;
  font-size: 1rem;
}

.page-arcade__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-arcade__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: #000000;
}

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

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

.page-arcade__game-card {
  background-color: #F8F8F8;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-arcade__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-arcade__game-card:hover .page-arcade__game-card-image {
  transform: scale(1.03);
}

.page-arcade__game-card-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-arcade__game-card-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-arcade__game-card-title a:hover {
  color: #FCBC45;
}

.page-arcade__game-card-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-arcade__why-choose {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  background-color: #000000;
  color: #FFFFFF;
  padding-top: 60px;
  padding-bottom: 60px;
  border-radius: 12px;
}

.page-arcade__why-choose .page-arcade__section-title {
  color: #FCBC45;
  margin-bottom: 60px;
}

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

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

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

.page-arcade__feature-icon {
  width: 100px;
  height: 75px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-arcade__feature-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-arcade__feature-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #CCCCCC;
}

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

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

.page-arcade__step-item {
  background-color: #F8F8F8;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-arcade__step-number {
  width: 50px;
  height: 50px;
  background-color: #FCBC45;
  color: #000000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-arcade__step-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #000000;
}

.page-arcade__step-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-arcade__fanchai-advantage {
  max-width: 1200px;
  margin: 80px auto;
  padding: 60px 20px;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 12px;
  text-align: center;
}

.page-arcade__fanchai-advantage .page-arcade__section-title {
  color: #FCBC45;
  margin-bottom: 40px;
}

.page-arcade__content-paragraph {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #F0F0F0;
  text-align: left;
}

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

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

@media (max-width: 768px) {
  .page-arcade__hero-section {
    flex-direction: column;
    padding-top: var(--header-offset, 120px);
  }
  .page-arcade__hero-content {
    padding: 30px 15px;
  }
  .page-arcade__hero-title {
    font-size: 2.4rem;
  }
  .page-arcade__hero-description {
    font-size: 1rem;
  }
  .page-arcade__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__button {
    width: 100%;
    max-width: 300px;
  }
  .page-arcade__hero-image-wrapper {
    margin-top: 30px;
  }
  .page-arcade__section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }
  .page-arcade__games-showcase,
  .page-arcade__why-choose,
  .page-arcade__getting-started,
  .page-arcade__fanchai-advantage {
    margin: 60px auto;
    padding: 0 15px;
  }
  .page-arcade__game-grid,
  .page-arcade__features-grid,
  .page-arcade__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  /* Ensure content images do not overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
  /* Specific overrides for feature icons to not be smaller than 200px, if they were to scale down. */
  /* However, these are already set to 200x150 in HTML, so they will scale down proportionally */
  /* as long as their containing elements allow and max-width: 100% is applied. */
  /* The width/height attributes in HTML ensure CLS optimization. */
  /* The 'content-area img' rule ensures minimum display size if not explicitly larger */
  .page-arcade__feature-icon {
    width: 200px; /* Minimum width for feature icons in content area */
    height: auto;
    max-width: 100%;
  }
  .page-arcade__game-card-image {
    height: 200px; /* Adjusted for smaller screens */
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 2rem;
  }
  .page-arcade__section-title {
    font-size: 1.6rem;
  }
  .page-arcade__button {
    font-size: 1rem;
    padding: 12px 25px;
  }
  .page-arcade__game-card-title {
    font-size: 1.4rem;
  }
  .page-arcade__feature-title,
  .page-arcade__step-title {
    font-size: 1.3rem;
  }
  .page-arcade__step-number {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }
}