/* RESET & BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden; /* cegah scroll horizontal */
}
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #040406 0%, #0b0b0d 45%, #060607 100%);
  color: #eee;
  line-height: 1.45;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px;
  width: 100%; /* pastikan tidak meluber */
}

/* HEADER */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(8px);
  background: rgba(11, 11, 13, 0.95);
  transition: all 0.3s ease;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav {
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 100%;
}
.nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  transition: all 0.25s;
}
.nav a.cta {
  background: linear-gradient(90deg, #ffd700, #e6c200);
  color: #060606;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(255, 215, 0, 0.16);
}

/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  z-index: 10000;
}
.hamburger div {
  width: 28px;
  height: 3px;
  background: #ffd700;
  border-radius: 2px;
  transition: all 0.3s ease;
}
@media (max-width: 880px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100%;
    background: rgba(11, 11, 13, 0.98);
    flex-direction: column;
    padding: 70px 24px 24px;
    gap: 20px;
    border-left: 1px solid rgba(255, 215, 0, 0.1);
    transition: right 0.35s ease;
    display: flex;
    z-index: 9999;
  }
  .nav.active { right: 0; }
  .hamburger { display: flex; }
  .menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 9998;
  }
  .menu-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
  margin: 28px 0 18px;
  min-height: 420px;
  position: relative;
  width: 100%;
}
.hero-card {
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.03), rgba(255, 215, 0, 0.01));
  border-radius: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 215, 0, 0.06);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}
.hero .title {
  font-size: 32px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-shadow: 0 6px 30px rgba(184, 134, 11, 0.06);
}
.hero .lead {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}
.play-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 28px;
  border-radius: 44px;
  background: linear-gradient(90deg, #ffd700, #caa000);
  color: #070707;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(202, 160, 0, 0.12);
}
.gold-orb {
  position: absolute;
  right: -60px;
  top: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,236,179,0.5), rgba(255,215,0,0.14) 30%, transparent 50%);
  filter: blur(20px);
  opacity: 0.95;
  pointer-events: none;
}
.panel {
  background: linear-gradient(160deg,#0b0b0d, rgba(255,255,255,0.02));
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(255,215,0,0.04);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.mockup {
  width: 100%;
  height: 231px;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 10%, rgba(255,255,255,0.02), transparent 10%), linear-gradient(180deg,#111118,#08080a);
  border: 1px solid rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.mockup img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* GAMES GRID */
.section-title {
  position: relative;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin: 40px 0 24px;
  text-align: left;
  padding: 12px 24px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255,215,0,0.15), rgba(255,215,0,0.05));
  box-shadow: 0 0 24px rgba(255,215,0,0.4), inset 0 0 12px rgba(255,255,255,0.1);
  border-left: 6px solid #ffd700;
  transition: all 0.3s ease;
}
.games {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-behavior: smooth;
  width: 100%; /* penting */
}
.games::-webkit-scrollbar {
  height: 8px;
}
.games::-webkit-scrollbar-thumb {
  background: gold;
  border-radius: 4px;
}
.game {
  flex: 0 0 auto;
  min-width: 220px;
  background: linear-gradient(180deg,#0f0f12,#070708);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(255,215,0,0.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  overflow: hidden;
  cursor: pointer;
  transition: none;
}
.game .img-wrap {
  position: relative;
  width: 100%;
  padding-top: 103%;
  overflow: hidden;
  border-radius: 10px;
}
.game .img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game h4 {
  margin-top: 10px;
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.2px;
}
.play-btn-game {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 22px;
  border-radius: 30px;
  background: linear-gradient(90deg,#ffd700,#e6c200);
  color: #060606;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 6px 18px rgba(255,215,0,0.25);
  transition: all 0.25s ease;
}
.play-btn-game:hover {
  box-shadow: 0 10px 28px rgba(255,215,0,0.4);
}

/* RESPONSIVE */
@media(max-width:880px){
  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .container { padding: 18px; }
  .nav { flex-direction: column; }
}
