:root {
  --black: #000000;
  --navy: #0a1628;
  --navy-bar: #0d1f3c;
  --blue-deep: #0054a6;
  --electric: #00e0ff;
  --electric-dim: #00aeef;
  --blue-glow: #00aeef;
  --silver: #e2e8f0;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --line-glow: rgba(0, 224, 255, 0.5);
  --max: 1400px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.5;
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-wrap {
  position: relative;
  z-index: 1;
}

.glow-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line-glow), var(--electric), var(--line-glow), transparent);
  box-shadow: 0 0 12px var(--electric);
}

.container {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

.container-fluid {
  width: 100%;
  padding-inline: 0.75rem;
}

/* ===== TOP HEADER ===== */
.top-header {
  background: rgba(0, 0, 0, 0.85);
  padding: 0.65rem 0;
}

.top-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: clamp(44px, 10vw, 64px);
  width: auto;
  max-width: min(240px, 55vw);
  object-fit: contain;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.35rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}

.btn-daftar {
  background: linear-gradient(180deg, var(--electric) 0%, var(--electric-dim) 100%);
  color: #001018;
  box-shadow: 0 0 18px rgba(0, 224, 255, 0.5);
}

.btn-masuk {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--electric);
  box-shadow: inset 0 0 12px rgba(0, 224, 255, 0.15);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(0, 224, 255, 0.55);
}

/* ===== HERO CAROUSEL (PERBAIKAN TOTAL SLIDER GAMBAR) ===== */
.hero-zone {
  position: relative;
  background: #000;
  overflow: hidden;
  width: 100%;
}

.hero-viewport {
  overflow: hidden;
  width: 100%;
  /* KUNCI RASIO BANNER DI SINI (Contoh rasio 2:1 -> jika lebar 800px maka tinggi otomatis 400px) */
  aspect-ratio: 2 / 1; 
}

.hero-slides {
  display: flex !important; /* WAJIB FLEX: Supaya banner berjejer ke samping */
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  width: 100%;
}

.hero-slide {
  flex: 0 0 100% !important; /* Kunci agar 1 slide memakan 100% lebar layar */
  width: 100% !important;
  position: relative;
  height: 100%;
}

/* Memastikan Link Mengisi Penuh Area Slide */
.hero-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Memastikan Gambar Mengikuti Wadah dan Tampil Utuh */
.hero-slide img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: fill; /* Memaksa seluruh bagian gambar masuk tanpa terpotong */
}

/* Navigasi Titik Slider */
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 0 1rem;
  background: #000;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #1e3a8a;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.hero-dots button.is-active {
  background: var(--electric, #00E0FF);
  box-shadow: 0 0 10px var(--electric, #00E0FF);
  transform: scale(1.15);
}

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
  padding: 0.6rem 0;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(0, 174, 239, 0.15);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
}

.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb li:not(:last-child)::after { content: '/'; color: var(--muted); }
.breadcrumb a { color: var(--electric); text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a[aria-current="page"] { color: #fff; }

/* ===== KATEGORI BESAR (grid di bawah hero) ===== */
.category-section {
  padding: 1.5rem 0;
  background: linear-gradient(180deg, #030508 0%, transparent 100%);
}

.section-label {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 0.75rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0.5rem;
  background: rgba(13, 31, 60, 0.8);
  border: 1px solid rgba(0, 174, 239, 0.25);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.category-card img, .category-card .cat-ico {
  width: 44px;
  height: 44px;
}

.category-card span {
  font-weight: 700;
  font-size: 0.9rem;
}

.category-card:hover,
.category-card.is-active {
  border-color: var(--electric);
  box-shadow: 0 0 20px rgba(0, 224, 255, 0.25);
  transform: translateY(-2px);
  background: rgba(0, 84, 166, 0.25);
}

/* ===== GAMES ===== */
.games-section {
  padding: 1rem 0 2.5rem;
}

.section-head h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--electric);
}

.game-panel { display: none; animation: fadeUp 0.35s ease; }
.game-panel.is-visible { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 0.85rem;
  padding: 0 0.75rem;
  max-width: var(--max);
  margin: 0 auto;
}

.game-card {
  background: rgba(10, 22, 40, 0.9);
  border: 1px solid rgba(0, 174, 239, 0.2);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  border-color: var(--electric);
  box-shadow: 0 8px 28px rgba(0, 224, 255, 0.2);
}

.game-card img { max-width: 100%; height: auto; margin-bottom: 0.5rem; border-radius: 4px; }
.game-card h3 { margin: 0 0 0.25rem; font-size: 0.92rem; }
.game-card p { margin: 0; font-size: 0.78rem; color: var(--muted); }
.game-card a { display: inline-block; margin-top: 0.6rem; color: var(--electric); font-weight: 600; font-size: 0.82rem; text-decoration: none; }

/* ===== ARTIKEL ===== */
.article-section {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(0, 174, 239, 0.2);
}

.article-card {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem;
  background: rgba(10, 22, 40, 0.85);
  border: 1px solid rgba(0, 174, 239, 0.2);
  border-radius: 10px;
}

.article-card h2 { margin-top: 0; color: var(--electric); font-size: 1.3rem; }
.article-card h3 { font-size: 1.05rem; margin: 1.25rem 0 0.4rem; }
.article-card p, .article-card ul { color: var(--muted); font-size: 0.92rem; }

/* ===== FOOTER ===== */
.site-footer {
  background: #020408;
  border-top: 1px solid rgba(0, 174, 239, 0.25);
  padding: 2rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto 1.5rem;
  padding: 0 0.75rem;
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--electric);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.86rem; }
.footer-col a:hover { color: #fff; }
.footer-col li { margin-bottom: 0.35rem; }

.footer-bottom {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-actions .btn-masuk { display: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-viewport { max-height: 280px; min-height: 200px; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
