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

.page-arcade__hero-section {
  position: relative;
  background-color: #000000; /* Dark background for hero */
  color: #ffffff;
  text-align: center;
  padding: 0;
  overflow: hidden;
}

.page-arcade__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 700px; /* Limit height for hero image */
  opacity: 0.6; /* Slightly dim image to make text stand out */
}

.page-arcade__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 90%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-arcade__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  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;
  gap: 20px;
  justify-content: center;
}

.page-arcade__btn {
  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__btn--primary {
  background-color: #FCBC45; /* Login color for primary action */
  color: #000000; /* Dark text for contrast */
  border: 2px solid #FCBC45;
}

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

.page-arcade__btn--secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-arcade__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.page-arcade__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  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__section-intro {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.page-arcade__features-section,
.page-arcade__games-showcase,
.page-arcade__promo-section,
.page-arcade__how-to-play-section,
.page-arcade__safety-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

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

.page-arcade__feature-card,
.page-arcade__game-card,
.page-arcade__promo-card,
.page-arcade__step-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;
  align-items: center;
}

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

.page-arcade__feature-icon,
.page-arcade__game-image,
.page-arcade__promo-image {
  width: 100%;
  height: 250px; /* Consistent height for card images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-arcade__feature-title,
.page-arcade__game-title,
.page-arcade__promo-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
  min-height: 60px; /* Ensure titles have enough space */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

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

.page-arcade__feature-text,
.page-arcade__game-description,
.page-arcade__promo-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-arcade__btn--play,
.page-arcade__btn--claim {
  background-color: #FCBC45;
  color: #000000;
  padding: 10px 20px;
  font-size: 0.95em;
  border-radius: 6px;
  margin-top: auto; /* Push button to bottom of card */
}

.page-arcade__btn--play:hover,
.page-arcade__btn--claim:hover {
  background-color: #e0a53b;
}

.page-arcade__mobile-section {
  background-color: #000000; /* Dark background for mobile section */
  color: #ffffff;
  padding: 80px 20px;
}

.page-arcade__mobile-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-arcade__mobile-content {
  flex: 1;
  min-width: 300px;
}

.page-arcade__mobile-section .page-arcade__section-title {
  color: #ffffff;
}

.page-arcade__mobile-section .page-arcade__section-intro {
  color: #f0f0f0;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

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

.page-arcade__mobile-feature-item {
  font-size: 1.1em;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.page-arcade__mobile-feature-item::before {
  content: '✓';
  color: #FCBC45;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.page-arcade__mobile-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-arcade__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-arcade__step-card {
  padding: 40px 20px;
}

.page-arcade__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FCBC45;
  margin-bottom: 15px;
}

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

.page-arcade__step-description {
  font-size: 0.95em;
  color: #666666;
}

.page-arcade__cta-wrapper {
  text-align: center;
  margin-top: 60px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-arcade__safety-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.page-arcade__safety-item {
  background-color: #f9f9f9;
  border: 1px solid #eeeeee;
  border-left: 5px solid #FCBC45;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.05em;
  color: #333333;
  text-align: left;
}

.page-arcade__safety-conclusion {
  text-align: center;
  font-size: 1.1em;
  color: #555555;
  margin-top: 40px;
}

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

@media (max-width: 768px) {
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__btn {
    width: 80%;
    max-width: 300px;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-arcade__mobile-container {
    flex-direction: column;
  }
  .page-arcade__mobile-content {
    text-align: center;
  }
  .page-arcade__mobile-section .page-arcade__section-intro {
    text-align: center;
  }
  .page-arcade__mobile-features-list {
    text-align: left;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-arcade__mobile-image-wrapper {
    order: -1; /* Move image above text on mobile */
  }
  .page-arcade__cta-wrapper {
    flex-direction: column;
  }
  .page-arcade__safety-list {
    grid-template-columns: 1fr;
  }
  /* Ensure all content images are responsive and do not overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
  .page-arcade__feature-icon, .page-arcade__game-image, .page-arcade__promo-image {
    height: auto; /* Allow height to adjust naturally */
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 1.6em;
  }
  .page-arcade__hero-description {
    font-size: 0.9em;
  }
  .page-arcade__section-title {
    font-size: 1.5em;
  }
  .page-arcade__feature-card, .page-arcade__game-card, .page-arcade__promo-card, .page-arcade__step-card {
    padding: 20px;
  }
  .page-arcade__feature-title, .page-arcade__game-title, .page-arcade__promo-title {
    font-size: 1.4em;
  }
  .page-arcade__step-number {
    font-size: 2em;
  }
}