:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --card-bg: #111111;
  --bg-primary: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
}

/* Ensure page content text color contrasts with assumed dark body background */
.page-arcade {
  color: var(--text-main);
  background-color: var(--bg-primary);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom for content */
}

.page-arcade__dark-bg {
  background-color: var(--bg-primary);
  color: var(--text-main);
}

.page-arcade__card {
  background-color: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 20px;
}

.page-arcade__section-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H1, H2, H3 */
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-arcade__section-description {
  font-size: 1.1em;
  color: rgba(255, 246, 214, 0.8);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-arcade__btn-primary,
.page-arcade__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
}

.page-arcade__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(255, 211, 107, 0.4);
}

.page-arcade__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 211, 107, 0.6);
}

.page-arcade__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-arcade__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

/* Hero Section */
.page-arcade__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  overflow: hidden;
}

.page-arcade__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-arcade__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-arcade__hero-title {
  font-size: clamp(2.5em, 6vw, 3.5em); /* H1 specific font size */
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
}

.page-arcade__hero-description {
  font-size: 1.2em;
  color: rgba(255, 246, 214, 0.9);
  margin-bottom: 30px;
}

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

/* Video Section */
.page-arcade__video-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
}

.page-arcade__video-section .page-arcade__section-title {
  margin-bottom: 15px;
}

.page-arcade__video-section .page-arcade__section-description {
  margin-bottom: 30px;
}

.page-arcade__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.page-arcade__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.page-arcade__video-cta {
  margin-top: 30px;
  font-size: 1.1em;
  padding: 15px 35px;
}

/* Features Section */
.page-arcade__features-section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-arcade__feature-card {
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 211, 107, 0.3);
}

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

.page-arcade__feature-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-arcade__feature-text {
  font-size: 1em;
  color: rgba(255, 246, 214, 0.7);
}

/* Categories Section */
.page-arcade__categories-section {
  padding: 80px 20px;
  text-align: center;
}

.page-arcade__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-arcade__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.2);
}

.page-arcade__category-icon {
  width: 30px; /* Allowed small size for icons */
  height: 30px; /* Allowed small size for icons */
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px rgba(255, 211, 107, 0.5));
}

.page-arcade__category-title {
  font-size: 1.2em;
  color: var(--text-main);
  font-weight: bold;
}

/* Popular Games Section */
.page-arcade__popular-games-section {
  padding: 80px 20px;
  text-align: center;
}

.page-arcade__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-arcade__game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(255, 211, 107, 0.4);
}

.page-arcade__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-arcade__game-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-arcade__game-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-arcade__game-title a {
  color: inherit;
  text-decoration: none;
}

.page-arcade__game-title a:hover {
  text-decoration: underline;
}

.page-arcade__game-description {
  font-size: 0.95em;
  color: rgba(255, 246, 214, 0.7);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-arcade__promotions-section {
  padding: 80px 20px;
  text-align: center;
}

.page-arcade__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-arcade__promo-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
}

.page-arcade__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

.page-arcade__promo-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin: 20px 0 10px;
}

.page-arcade__promo-text {
  font-size: 1em;
  color: rgba(255, 246, 214, 0.7);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Partners Section */
.page-arcade__partners-section {
  padding: 80px 20px;
  text-align: center;
}