.page-arcade {
  color: #ffffff; /* Light text for dark body background */
  padding-top: var(--header-offset, 120px);
}

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

.page-arcade__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
  background-color: #000; /* Ensure a dark base for hero */
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: brightness(0.6); /* Darken image slightly for text readability */
  min-width: 1920px; /* Ensure image covers wide screens */
  min-height: 1080px; /* Ensure image covers tall screens */
}

.page-arcade__hero-overlay {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 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;
  font-weight: 700;
  color: #FFD700; /* Primary brand color */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-arcade__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.page-arcade__button--primary {
  background-color: #FFD700; /* Primary brand color */
  color: #8B0000; /* Secondary brand color for contrast */
  border: 2px solid #FFD700;
}

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

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

.page-arcade__button--secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
}

.page-arcade__button--small {
  padding: 10px 20px;
  font-size: 0.95em;
  border-radius: 6px;
  background-color: #8B0000; /* Secondary brand color */
  color: #FFD700; /* Primary brand color for contrast */
  border: 2px solid #8B0000;
}

.page-arcade__button--small:hover {
  background-color: #a80000;
  border-color: #a80000;
}

.page-arcade__button--large {
  padding: 18px 35px;
  font-size: 1.2em;
  border-radius: 10px;
}

.page-arcade__section-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  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: #8B0000;
  border-radius: 2px;
}

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

.page-arcade__section-title--light::after {
  background-color: #FFD700;
}

.page-arcade__text-content {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

.page-arcade__text-content--center {
  text-align: center;
}

.page-arcade__text-content--light {
  color: #ffffff;
}

.page-arcade__inline-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-arcade__inline-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-arcade__about-section, .page-arcade__game-types-section, .page-arcade__getting-started-section, .page-arcade__promotions-section, .page-arcade__download-app-section, .page-arcade__faq-section, .page-arcade__cta-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter black for sections */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-arcade__about-section {
  background-color: #000;
}

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

.page-arcade__feature-card, .page-arcade__game-card, .page-arcade__step-card, .page-arcade__promo-card, .page-arcade__app-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  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__step-card:hover, .page-arcade__promo-card:hover, .page-arcade__app-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-arcade__feature-image, .page-arcade__game-image, .page-arcade__promo-image, .page-arcade__app-icon {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum image display size */
}

.page-arcade__app-icon {
  max-width: 250px; /* Specific sizing for app icons */
  height: 250px;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
}

.page-arcade__card-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-arcade__card-description {
  font-size: 1em;
  line-height: 1.7;
  color: #cccccc;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-arcade__step-card {
  position: relative;
  padding-top: 60px;
}

.page-arcade__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #8B0000;
  color: #FFD700;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  font-weight: 700;
  border: 3px solid #FFD700;
}

.page-arcade__call-to-action {
  text-align: center;
  margin-top: 60px;
}

.page-arcade__cta-section {
  background: linear-gradient(135deg, #8B0000, #FFD700);
  padding: 100px 0;
  color: #ffffff;
  text-align: center;
}

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

.page-arcade__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-arcade__faq-question {
  font-size: 1.3em;
  color: #FFD700;
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-arcade__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-arcade__faq-question::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-arcade__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-arcade__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-arcade__faq-answer.active {
  max-height: 500px; /* Adjust based on expected content height */
  padding: 0 25px 20px 25px;
}

.page-arcade__faq-answer p {
  margin: 0;
  color: #cccccc;
  line-height: 1.7;
}

/* Floating Register/Login Buttons */
.page-arcade__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-arcade__floating-button {
  background-color: #8B0000; /* Secondary brand color */
  color: #FFD700; /* Primary brand color for contrast */
  border: 2px solid #FFD700;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 1em;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.page-arcade__floating-button:hover {
  background-color: #a80000;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-arcade__floating-icon {
  font-size: 1.2em;
}

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

  .page-arcade__section-title {
    font-size: 2.2em;
  }

  .page-arcade__text-content {
    font-size: 1em;
  }

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

@media (max-width: 768px) {
  .page-arcade__hero-section {
    padding: 60px 0;
  }

  .page-arcade__hero-overlay {
    padding: 30px 15px;
  }

  .page-arcade__hero-title {
    font-size: 2.5em;
  }

  .page-arcade__hero-description {
    font-size: 1.1em;
  }

  .page-arcade__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-arcade__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-arcade__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-arcade__about-section, .page-arcade__game-types-section, .page-arcade__getting-started-section, .page-arcade__promotions-section, .page-arcade__download-app-section, .page-arcade__faq-section, .page-arcade__cta-section {
    padding: 60px 0;
  }

  .page-arcade__features-grid, .page-arcade__game-grid, .page-arcade__steps-grid, .page-arcade__promo-cards-grid, .page-arcade__app-download-grid {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .page-arcade__feature-image, .page-arcade__game-image, .page-arcade__promo-image, .page-arcade__app-icon {
    max-width: 100%; /* Ensure images don't overflow */
    height: auto;
    min-width: 200px; /* Enforce minimum image display size */
    min-height: 200px;
  }

  .page-arcade__app-icon {
    max-width: 200px;
    height: 200px;
  }

  .page-arcade__card-title {
    font-size: 1.4em;
  }

  .page-arcade__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-arcade__faq-answer.active {
    padding: 0 20px 15px 20px;
  }

  .page-arcade__floating-buttons {
    bottom: 10px;
    right: 10px;
    flex-direction: row; /* Arrange horizontally on smaller screens */
    width: calc(100% - 20px);
    justify-content: center;
    gap: 8px;
  }

  .page-arcade__floating-button {
    flex: 1;
    padding: 10px 15px;
    font-size: 0.9em;
  }
}

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

  .page-arcade__hero-description {
    font-size: 1em;
  }

  .page-arcade__section-title {
    font-size: 1.8em;
  }

  .page-arcade__button--large {
    font-size: 1.1em;
    padding: 15px 25px;
  }

  .page-arcade__floating-buttons {
    flex-direction: column; /* Stack vertically again if too narrow */
    width: auto;
    right: 10px;
    left: auto;
  }

  .page-arcade__floating-button {
    width: auto;
  }
}