.hero-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 3rem;
  min-height: 80vh;
  animation: fadeInUp 1s ease-out forwards;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hero-text {
  max-width: 600px;
  text-align: left;
}
.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: hero-art-float 6s ease-in-out infinite alternate;
}
@keyframes hero-art-float {
  from {
    transform: translateY(-15px);
  }
  to {
    transform: translateY(15px);
  }
}

.hero-art img {
  max-width: 120%;
  max-height: 400px;
  box-shadow: none;
  filter: none;
  -webkit-mask-image: radial-gradient(circle, black 60%, transparent 95%);
  mask-image: radial-gradient(circle, black 60%, transparent 95%);
}
.version-badge { display: inline-block; background: rgba(0, 149, 224, 0.1); color: var(--color-primary-hover); padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.875rem; font-weight: 700; margin-bottom: 1.5rem; border: 1px solid rgba(0, 149, 224, 0.2); }
.main-title { font-size: 4rem; font-weight: 700; line-height: 1.1; margin-bottom: 1rem; background: linear-gradient(45deg, #ffffff, #c9d1d9); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.main-subtitle { font-size: 1.25rem; color: var(--text-secondary); max-width: 500px; line-height: 1.6; margin: 0 0 2.5rem 0; }
.hero-actions { display: flex; align-items: center; justify-content: flex-start; gap: 1.5rem; }
.play-button-large { text-decoration: none; background-color: var(--color-primary); color: white; border: none; border-radius: 8px; font-family: var(--font-main); font-weight: 700; cursor: pointer; transition: all 0.3s ease; padding: 1rem 2rem; font-size: 1.125rem; }
.play-button-large:hover { background-color: var(--color-primary-hover); transform: translateY(-2px); box-shadow: 0 0 20px rgba(0, 170, 255, 0.4); }
.online-status { background-color: rgba(30, 30, 30, 0.5); border: 1px solid var(--color-border); padding: 1rem 1.5rem; border-radius: 8px; font-weight: 600; display: flex; align-items: center; gap: 0.75rem; }
.live-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: all 0.5s ease;
}
.live-indicator.online {
  background-color: #32cd32;
  box-shadow: 0 0 8px #32cd32;
  animation: pulse 2s infinite;
}
.live-indicator.offline {
  background-color: #e53935;
  box-shadow: 0 0 8px #e53935;
  animation: none;
}

@keyframes pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(50, 205, 50, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(50, 205, 50, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(50, 205, 50, 0); }
}

.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; margin-top: 4rem; }

.features-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card { background: rgba(22, 22, 22, 0.6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); padding: 2.5rem 2rem; border-radius: 12px; text-align: center; border: 1px solid var(--color-border); transition: transform 0.3s ease, border-color 0.3s ease; }
.feature-card:hover { transform: translateY(-8px); border-color: var(--color-primary); }
.feature-icon { font-size: 2.5rem; color: var(--text-secondary); margin-bottom: 1rem; transition: color 0.3s ease; }
.feature-card:hover .feature-icon { color: var(--color-primary); }
.feature-title { font-size: 1.25rem; color: var(--text-main); font-weight: 700; margin-bottom: 0.75rem; }
.feature-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

.how-to-play-section { padding-top: 4rem; }
.steps-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step-card {
  background: rgba(22, 22, 22, 0.6);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.step-number {
  position: absolute;
  top: 0.5rem;
  right: 1.5rem;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  z-index: 1;
}
.step-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}
.step-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* Community */
.community-section { margin: 6rem auto; max-width: 900px; background: linear-gradient(45deg, rgba(0, 149, 224, 0.1), rgba(0, 170, 255, 0.05)); border: 1px solid var(--color-border); border-radius: 16px; padding: 3rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.community-text h2 { font-size: 2rem; margin-bottom: 1rem; }
.community-text p { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; }
.community-button { background-color: var(--color-primary); color: white; text-decoration: none; padding: 1rem 2rem; border-radius: 10px; font-weight: 700; font-size: 1.1rem; white-space: nowrap; transition: all 0.3s ease; }
.community-button:hover { background-color: var(--color-primary-hover); transform: scale(1.05); }


/* GameModes */
.gamemodes-section {
  margin-top: 6rem;
  padding: 3rem 0;
  text-align: center;
  background: rgba(18, 18, 18, 0.4);
  border: 1px solid var(--color-border);
  border-radius: 24px;
}

.section-subtitle {
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

.highlight { color: var(--color-primary-hover); }

.gamemode-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.gamemode-selector-wrapper {
  flex-grow: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.gamemode-selector {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 40%;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 40%;
}
.gamemode-selector::-webkit-scrollbar { display: none; }

.gamemode-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background-color: rgba(30, 30, 30, 0.5);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transform: scale(0.85);
  opacity: 0.6;
  transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.gamemode-btn img { height: 24px; }

.gamemode-btn.adjacent {
  transform: scale(0.95);
  opacity: 0.8;
}

.gamemode-btn.active {
  transform: scale(1.1);
  opacity: 1;
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary-hover);
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.4);
}

.carousel-arrow {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--text-secondary);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 2.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.carousel-arrow:hover { background-color: rgba(50, 50, 50, 0.7); color: var(--text-main); }
.carousel-arrow:disabled { display: none; }

.gamemode-description-panel {
  background-color: rgba(10, 10, 10, 0.5);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.3);
}

#gamemode-description-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  transition: opacity 0.2s ease-in-out;
}

/* Adaptive */
@media (max-width: 1024px) {
  .features-section, .steps-container { grid-template-columns: repeat(2, 1fr); }
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text {
    max-width: 100%;
    order: 2;
  }
  .hero-art {
    order: 1;
  }
  .hero-actions {
    justify-content: center;
  }
  .main-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 768px) {
  .features-section, .steps-container { grid-template-columns: 1fr; }
  .community-section { flex-direction: column; text-align: center; }
  .gamemodes-section { padding: 2rem 1rem; }
  .gamemode-selector-wrapper { -webkit-mask-image: none; mask-image: none; }
}
