.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F3F8FF); /* Default text color for dark body background */
  background-color: var(--card-bg, #10233F); /* Inherit from body or default */
}

.page-index__container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index__section {
  padding: 40px 0;
}

.page-index__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--text-main, #F3F8FF);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-index__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gold, #F2C14E);
  margin: 10px auto 0;
}

/* Module 1: Full-width main Banner */
.page-index__hero-section {
  padding-top: 10px; /* Adjusted for fixed header, not var(--header-offset) */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.page-index__hero-image {
  width: 100%;
  overflow: hidden;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border: none;
  box-shadow: none;
  border-radius: 0;
  object-fit: cover;
}

/* Module 2: Three-link main button bar */
.page-index__access-links-section {
  padding: 30px 0;
  background-color: var(--deep-navy, #08162B);
}

.page-index__access-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.page-index__btn-access-link {
  display: block;
  text-align: center;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  color: var(--text-main, #F3F8FF);
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-index__btn-access-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow, #4FA8FF);
}

/* Module 3: Brand main title + intro (h1) */
.page-index__brand-intro {
  padding: 40px 0;
  text-align: center;
}

.page-index__main-title {
  font-size: clamp(2em, 3.5vw, 2.8em);
  font-weight: 800;
  color: var(--gold, #F2C14E);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__intro-text {
  font-size: 1.1em;
  color: var(--text-secondary, #AFC4E8);
  max-width: 800px;
  margin: 0 auto 20px auto;
  text-align: justify;
}

.page-index__intro-text a {
  color: var(--glow, #4FA8FF);
  text-decoration: none;
  font-weight: bold;
}

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

/* Module 4: Game lobby entry (5 square gameshow images) */
.page-index__category-lobby {
  padding: 40px 0;
}

.page-index__category-lobby__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.page-index__category-card {
  display: block;
  border: none;
  box-shadow: none;
  outline: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
}