.page-arcade {
  color: #333333; /* Default text color for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #FFFFFF; /* Matches body background */
}

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

/* Header offset for fixed header */
.page-arcade__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply offset here */
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a decent height */
}

.page-arcade__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
}

.page-arcade__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 0 0 10px rgba(252, 188, 69, 0.7);
}

.page-arcade__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-arcade__button--register {
  background-color: #FFFFFF; /* White background for register */
  color: #000000; /* Black text for register */
  border: 2px solid #FFFFFF;
}

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

.page-arcade__button--login {
  background-color: #FCBC45; /* Gold background for login */
  color: #000000; /* Black text for login */
  border: 2px solid #FCBC45;
}

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

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

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

.page-arcade__introduction-section,
.page-arcade__how-to-start-section,
.page-arcade__security-section,
.page-arcade__faq-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-arcade__featured-games-section,
.page-arcade__mobile-gaming-section,
.page-arcade__cta-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background for these sections */
  color: #FFFFFF;
}

.page-arcade__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 30px;
  color: inherit;
}

.page-arcade__featured-games-section .page-arcade__section-title,
.page-arcade__mobile-gaming-section .page-arcade__section-title,
.page-arcade__cta-section .page-arcade__section-title {
  color: #FFFFFF;
}

.page-arcade__section-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: inherit;
}

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

.page-arcade__game-card,
.page-arcade__step-card {
  background-color: #1a1a1a; /* Slightly lighter dark background for cards */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-arcade__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 10px 10px 0 0;
}

.page-arcade__game-title,
.page-arcade__step-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #FCBC45;
  padding: 0 20px;
}

.page-arcade__game-description,
.page-arcade__step-description {
  font-size: 1em;
  color: #e0e0e0;
  padding: 0 20px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-arcade__button--play,
.page-arcade__button--action {
  background-color: #FCBC45;
  color: #000000;
  border: none;
  margin-top: auto; /* Push button to bottom */
}

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

.page-arcade__mobile-layout,
.page-arcade__security-layout {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-arcade__mobile-layout {
  flex-direction: row; /* Default for desktop */
}

.page-arcade__security-layout {
  flex-direction: row-reverse; /* Image on left for security section */
}

.page-arcade__mobile-text-content,
.page-arcade__security-text-content {
  flex: 1;
}

.page-arcade__mobile-image-wrapper,
.page-arcade__security-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-arcade__mobile-image,
.page-arcade__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-arcade__button--download,
.page-arcade__button--learn-more,
.page-arcade__button--join-now {
  background-color: #FCBC45;
  color: #000000;
  border: none;
  margin-top: 30px;
}

.page-arcade__button--download:hover,
.page-arcade__button--learn-more:hover,
.page-arcade__button--join-now:hover {
  background-color: #FFFFFF;
  color: #000000;
  transform: translateY(-3px);
}

.page-arcade__security-features {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
}

.page-arcade__security-features li {
  background-color: rgba(252, 188, 69, 0.1);
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: #e0e0e0;
  font-size: 1.05em;
  display: flex;
  align-items: center;
}

.page-arcade__security-features li::before {
  content: '✓';
  color: #FCBC45;
  font-weight: bold;
  margin-right: 10px;
}

.page-arcade__cta-section .page-arcade__section-text {
  margin-bottom: 50px;
}

.page-arcade__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-arcade__hero-title {
    font-size: 2.8em;
  }
  .page-arcade__section-title {
    font-size: 2.2em;
  }
  .page-arcade__games-grid,
  .page-arcade__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-arcade__mobile-layout,
  .page-arcade__security-layout {
    flex-direction: column;
    text-align: center;
  }
  .page-arcade__security-layout {
    flex-direction: column; /* Ensure consistent column direction */
  }
  .page-arcade__security-features {
    text-align: center;
  }
  .page-arcade__security-features li {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-section {
    min-height: 450px;
  }
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__hero-description {
    font-size: 1.1em;
  }
  .page-arcade__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-arcade__introduction-section,
  .page-arcade__featured-games-section,
  .page-arcade__how-to-start-section,
  .page-arcade__mobile-gaming-section,
  .page-arcade__security-section,
  .page-arcade__cta-section,
  .page-arcade__faq-section {
    padding: 60px 0;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__section-text {
    font-size: 1em;
  }
  .page-arcade__game-title,
  .page-arcade__step-title {
    font-size: 1.5em;
  }
  .page-arcade__games-grid,
  .page-arcade__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__mobile-image,
  .page-arcade__security-image,
  .page-arcade img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size if not already larger */
    min-height: 200px; /* Enforce minimum size if not already larger */
  }
  .page-arcade__security-features li {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-section {
    padding-top: var(--header-offset, 100px); /* Adjust for smaller header on mobile */
    min-height: 400px;
  }
  .page-arcade__hero-title {
    font-size: 1.8em;
  }
  .page-arcade__hero-description {
    font-size: 0.95em;
  }
  .page-arcade__button {
    font-size: 0.9em;
    padding: 10px 20px;
  }
  .page-arcade__section-title {
    font-size: 1.5em;
  }
  .page-arcade__faq-question {
    font-size: 1.3em;
  }
  .page-arcade__game-image {
    height: 200px;
  }
}