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

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

.page-arcade__section-title {
  font-size: 2.5em;
  color: #000080; /* Midnight Blue for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  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: #FFD700; /* Gold underline */
  border-radius: 2px;
}

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

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

.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;
  opacity: 0.6; /* Slightly dim image for text readability */
}

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

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

.page-arcade__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-arcade__hero-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;
}

.page-arcade__hero-button--primary {
  background-color: #FFD700; /* Gold button */
  color: #000080; /* Midnight Blue text */
  border: 2px solid #FFD700;
}

.page-arcade__hero-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-arcade__hero-button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-arcade__hero-button--secondary:hover {
  background-color: #FFD700;
  color: #000080;
  transform: translateY(-3px);
}

.page-arcade__features-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-arcade__feature-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-arcade__feature-icon {
  width: 200px; /* Minimum size */
  height: 150px; /* Adjusted height for better aspect ratio */
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade__feature-title {
  font-size: 1.5em;
  color: #000080;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-arcade__popular-games-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-arcade__game-card {
  background-color: #fdfdfd;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-arcade__game-image {
  width: 100%;
  height: 250px; /* Consistent height for game images */
  object-fit: cover;
  display: block;
}

.page-arcade__game-title {
  font-size: 1.6em;
  color: #000080;
  padding: 15px 20px 0;
  font-weight: bold;
}

.page-arcade__game-description {
  font-size: 0.95em;
  color: #666666;
  padding: 10px 20px;
}

.page-arcade__game-button {
  display: block;
  width: calc(100% - 40px);
  margin: 15px 20px 20px;
  padding: 12px 0;
  background-color: #FFD700;
  color: #000080;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-arcade__game-button:hover {
  background-color: #e6c200;
}

.page-arcade__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

.page-arcade__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: #000080;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #000080;
}

.page-arcade__cta-button:hover {
  background-color: #FFD700;
  color: #000080;
  transform: translateY(-3px);
  border-color: #FFD700;
}

.page-arcade__how-to-play-section {
  padding: 80px 0;
  background-color: #f0f4f8;
}

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

.page-arcade__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
}

.page-arcade__step-title {
  font-size: 1.8em;
  color: #000080;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-arcade__step-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #FFD700;
  color: #000080;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.page-arcade__step-button:hover {
  background-color: #e6c200;
}

.page-arcade__bonuses-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-arcade__bonus-card {
  background-color: #fdfdfd;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__bonus-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.page-arcade__bonus-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-arcade__bonus-title {
  font-size: 1.6em;
  color: #000080;
  padding: 15px 20px 0;
  font-weight: bold;
}

.page-arcade__bonus-description {
  font-size: 0.95em;
  color: #666666;
  padding: 10px 20px;
  min-height: 80px; /* Ensure consistent card height */
}

.page-arcade__bonus-button {
  display: block;
  width: calc(100% - 40px);
  margin: 15px 20px 20px;
  padding: 12px 0;
  background-color: #FFD700;
  color: #000080;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-arcade__bonus-button:hover {
  background-color: #e6c200;
}

.page-arcade__mobile-app-section {
  padding: 80px 0;
  background-color: #000080; /* Midnight Blue background */
  color: #ffffff;
}

.page-arcade__mobile-app-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.page-arcade__mobile-app-section .page-arcade__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-arcade__mobile-app-section .page-arcade__section-title {
  color: #FFD700;
  text-align: left;
  font-size: 2.2em;
}

.page-arcade__mobile-app-section .page-arcade__section-title::after {
  background-color: #FFD700;
  left: 0;
  transform: translateX(0);
}

.page-arcade__mobile-app-section .page-arcade__section-intro {
  text-align: left;
  max-width: none;
  margin-bottom: 0;
  color: #e0e0e0;
}

.page-arcade__app-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-arcade__app-features li {
  margin-bottom: 10px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-arcade__app-feature-icon {
  color: #FFD700;
  font-weight: bold;
  font-size: 1.2em;
}

.page-arcade__mobile-app-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-arcade__mobile-app-image {
  width: 400px; /* Specific width for the app image */
  height: auto;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-arcade__faq-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.page-arcade__faq-list {
  margin-top: 40px;
}

.page-arcade__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
  padding: 20px 25px;
  border-left: 5px solid #FFD700; /* Gold accent */
}

.page-arcade__faq-question {
  font-size: 1.3em;
  color: #000080;
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-arcade__cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #000080, #0d0d6b); /* Gradient background */
  color: #ffffff;
  text-align: center;
}

.page-arcade__cta-container {
  max-width: 900px;
}

.page-arcade__cta-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-arcade__cta-description {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: #e0e0e0;
}

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

.page-arcade__cta-button--primary {
  background-color: #FFD700;
  color: #000080;
  border: 2px solid #FFD700;
}

.page-arcade__cta-button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-arcade__cta-button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-arcade__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #000080;
}

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

@media (max-width: 768px) {
  .page-arcade__hero-content {
    max-width: 90%;
    padding: 15px;
  }
  .page-arcade__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-arcade__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-arcade__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__hero-button {
    width: 100%;
    padding: 12px 20px;
  }

  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__section-intro {
    font-size: 1em;
  }
  .page-arcade__feature-card,
  .page-arcade__game-card,
  .page-arcade__step-card,
  .page-arcade__bonus-card {
    padding: 20px;
  }
  .page-arcade__mobile-app-section .page-arcade__container {
    flex-direction: column;
    text-align: center;
  }
  .page-arcade__mobile-app-section .page-arcade__section-title,
  .page-arcade__mobile-app-section .page-arcade__section-title::after,
  .page-arcade__mobile-app-section .page-arcade__section-intro {
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
  }
  .page-arcade__app-features {
    align-self: center;
  }
  .page-arcade__app-features li {
    justify-content: center;
  }
  .page-arcade__mobile-app-image {
    width: 100%;
    height: auto;
    max-width: 300px;
  }
  .page-arcade__cta-title {
    font-size: 2em;
  }
  .page-arcade__cta-description {
    font-size: 1em;
  }
  .page-arcade__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__cta-button {
    width: 100%;
  }

  /* Critical: Prevent content area images from overflowing on mobile */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }

  .page-arcade__feature-icon {
    width: 150px;
    height: 100px;
  }

  .page-arcade__game-image {
    height: 180px;
  }

  .page-arcade__bonus-image {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 1.8em;
  }
  .page-arcade__hero-description {
    font-size: 0.9em;
  }
  .page-arcade__section-title {
    font-size: 1.5em;
  }
  .page-arcade__cta-title {
    font-size: 1.8em;
  }
  .page-arcade__feature-icon,
  .page-arcade__game-image,
  .page-arcade__bonus-image,
  .page-arcade__mobile-app-image {
    width: 100%; /* Ensure images scale down */
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }
  .page-arcade__feature-icon {
    object-fit: contain;
  }
  .page-arcade__game-image, .page-arcade__bonus-image {
    object-fit: cover;
  }
  .page-arcade__feature-card,
  .page-arcade__game-card,
  .page-arcade__step-card,
  .page-arcade__bonus-card {
    box-shadow: none;
    border: 1px solid #eee;
  }
}