:root {
  --primary-color: #26A9E0;
  --secondary-color: #007bff;
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --background-dark: #000000;
  --background-light: #ffffff;
  --login-button-color: #EA7C07;
}

.page-index {
  background-color: var(--background-dark); /* Body background from shared.css is #000000 */
  color: var(--text-color-dark-bg); /* Default text color for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* --- Video Section --- */
.page-index__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

.page-index__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-index__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from interfering with click event on parent <a> */
}

.page-index__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-index__video-link:hover .page-index__video-overlay {
  opacity: 1;
}

.page-index__video-click-hint {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(0, 123, 255, 0.8);
  border-radius: 5px;
  white-space: nowrap;
}

.page-index__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-index__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-button-color); /* Using custom color for login/play now */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-index__play-now-button:hover {
  background: #c76506; /* Darker shade for hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* --- Title Section --- */
.page-index__title-section {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--background-dark);
  color: var(--text-color-dark-bg);
  box-sizing: border-box;
}

.page-index__title-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__main-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
  line-height: 1.2;
}

.page-index__title-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-index__cta-button--primary {
  background: var(--primary-color);
  color: #ffffff;
  border: 2px solid var(--primary-color);
}

.page-index__cta-button--primary:hover {
  background: #1f8ec4;
  border-color: #1f8ec4;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

.page-index__cta-button--secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* --- Brand Section --- */
.page-index__brand-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--primary-color); /* Using brand primary color */
  color: var(--text-color-dark-bg); /* White text for primary color background */
  box-sizing: border-box;
}

.page-index__brand-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__brand-title {
  font-size: 36px;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-index__brand-intro {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.8;
  color: #f0f0f0;
}

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

.page-index__brand-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-index__brand-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__brand-item-title {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-index__brand-item-description {
  font-size: 16px;
  color: #f0f0f0;
  line-height: 1.7;
}

/* --- Game Section --- */
.page-index__game-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--background-light); /* Light background for this section */
  color: var(--text-color-light-bg); /* Dark text for light background */
  box-sizing: border-box;
}

.page-index__game-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__game-title {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-index__game-intro {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.8;
  color: #555555;
}

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

.page-index__game-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index__game-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-index__game-card-title {
  font-size: 22px;
  margin: 20px 20px 10px 20px;
  color: var(--primary-color);
}

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

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

.page-index__game-card-description {
  font-size: 16px;
  color: #666666;
  padding: 0 20px 20px 20px;
  line-height: 1.7;
}}