:root{
  --bg: #070812;
  --fg: #e9ecff;
  --muted: rgba(233,236,255,.72);
  --glass: rgba(10,12,24,.55);
  --stroke: rgba(255,255,255,.10);
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --accent: #7c5cff;
  --pad: clamp(16px, 2.4vw, 28px);
  --r: 18px;
  --h: 100vh;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--fg);
  overflow:hidden; /* main scroll ada di .rail */
}

a{ color: inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

/* Topbar */
.topbar{
  position: fixed;
  inset: 0 0 auto 0;
  height: 64px;
  padding: 0 var(--pad);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(7,8,18,.85), rgba(7,8,18,.20) 70%, transparent);
  backdrop-filter: blur(10px);
}

.brand{ display:flex; align-items:center; gap:10px; }
.brand__mark{
  width: 18px; height: 18px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 30% 30%, var(--accent), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.brand__name{ font-weight: 700; letter-spacing:.2px; }

.topbar__nav{ display:flex; align-items:center; gap: 16px; }
.navlink{ opacity: .86; font-weight: 600; font-size: 14px; }
.navlink:hover{ opacity: 1; }

.cta{
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

/* Mobile menu button */
.menuBtn{
  display:none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.menuBtn span{
  display:block;
  height: 2px;
  width: 18px;
  margin: 0 auto 4px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
}
.menuBtn span:last-child{ margin-bottom:0; }

.mobileMenu{
  position: fixed;
  inset: 72px var(--pad) auto var(--pad);
  z-index: 19;
  padding: 12px;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,12,24,.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  display:none;
}
.mobileMenu a{
  display:block;
  padding: 12px;
  border-radius: 12px;
  opacity:.92;
  font-weight: 700;
}
.mobileMenu a:hover{ background: rgba(255,255,255,.06); opacity: 1; }
.mobileMenu a.cta{ margin-top: 8px; text-align:center; }

/* Rail = slideshow */
.rail{
  height: var(--h);
  display:flex;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.rail::-webkit-scrollbar{ height: 0; width: 0; }

.slide{
  position: relative;
  flex: 0 0 100vw;
  height: var(--h);
  scroll-snap-align: start;
  padding: calc(64px + env(safe-area-inset-top) + 10px) var(--pad) calc(env(safe-area-inset-bottom) + 18px);
  display:flex;
  align-items:center;
  overflow: hidden; /* desktop: jangan bisa scroll vertikal per slide */
}

/* Background layers */
.bg{
  position:absolute;
  inset: 0;
  background: #111;
  background-image: var(--bgimg);
  background-size: cover;
  background-position: center;
  transform: translate3d(var(--mx,0px), var(--my,0px), 0) scale(1.06);
  filter: saturate(1.05) contrast(1.05);
  transition: transform 600ms cubic-bezier(.2,.8,.2,1);
}
.slide::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1000px 600px at 20% 25%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(900px 520px at 80% 30%, rgba(51,214,255,.12), transparent 60%),
    linear-gradient(to bottom, rgba(7,8,18,.52), rgba(7,8,18,.78));
  pointer-events:none;
}
.grain{
  position:absolute;
  inset:0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity:.18;
  pointer-events:none;
}

.content{
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.slide.is-active .content{
  opacity: 1;
  transform: translateY(0);
}

.kicker{
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  margin: 0 0 10px;
}
.title{
  margin: 0 0 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(34px, 5.3vw, 64px);
}
.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.6;
  max-width: 60ch;
}

.actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top: 10px; }

.btn{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  font-weight: 800;
}
.btn.primary{
  background: linear-gradient(
    135deg,
    color-mix(in oklab, var(--accent), white 12%),
    color-mix(in oklab, var(--accent), black 36%)
  );
  border-color: rgba(255,255,255,.20);
}
.btn.ghost{ background: rgba(255,255,255,.06); }
.btn:hover{ filter: brightness(1.05); }

.chips{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 18px; }
.chip{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,12,24,.40);
  color: rgba(255,255,255,.82);
  font-weight: 700;
  font-size: 13px;
}

/* Layout helpers */
.grid2{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(14px, 2.4vw, 28px);
  align-items: center;
}

.cardStack{ display:grid; gap: 12px; }
.card{
  padding: 14px 14px;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,12,24,.55);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 46px rgba(0,0,0,.38);
}
.card h3{ margin:0 0 6px; font-size: 16px; }
.card p{ margin:0; color: var(--muted); line-height: 1.55; }

/* Screens gallery */
.gallery{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.shot{
  border-radius: var(--r);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.shot img{ width:100%; height: 220px; object-fit: cover; }

/* How to play */
.steps{
  margin: 14px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.84);
  line-height: 1.65;
}

.bigCard{
  border-radius: calc(var(--r) + 6px);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,12,24,.60);
  backdrop-filter: blur(12px);
  padding: 18px;
  box-shadow: var(--shadow);
}
.bigCard__badge{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 10px;
}
.bigCard h3{ margin: 0 0 8px; }
.bigCard p{ margin: 0 0 10px; color: var(--muted); line-height: 1.6; }
.bigCard .small{ font-size: 13px; color: rgba(233,236,255,.68); }

/* Vote + Topup grid */
.voteGrid,
.topupGrid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Hint */
.hint{
  position:absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display:flex;
  align-items:center;
  gap: 10px;
  opacity: .85;
  z-index: 2;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mouse{
  width: 22px; height: 34px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.45);
  position: relative;
}
.mouse::after{
  content:"";
  position:absolute;
  left: 50%;
  top: 7px;
  width: 4px; height: 6px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  animation: wheel 1.2s infinite ease-in-out;
}
@keyframes wheel{
  0%{ transform: translate(-50%, 0); opacity: .9; }
  80%{ transform: translate(-50%, 10px); opacity: .2; }
  100%{ opacity:0; }
}

/* Dots */
.dots{
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 21;
  display:flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,12,24,.35);
  backdrop-filter: blur(12px);
}
.dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.14);
  cursor:pointer;
}
.dot.is-active{
  background: var(--accent);
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 0 0 6px rgba(124,92,255,.16);
}

/* Footer */
.footer{
  position: fixed;
  left: var(--pad);
  right: var(--pad);
  bottom: 16px;
  z-index: 18;
  display:flex;
  justify-content:space-between;
  color: rgba(233,236,255,.70);
  font-weight: 700;
  font-size: 13px;
  pointer-events: none;
}
.footer a{ pointer-events: auto; opacity: .9; }
.footer a:hover{ opacity: 1; }

/* Responsive */
@media (max-width: 980px){
  .topbar__nav{ display:none; }
  .menuBtn{ display:block; }

  .grid2{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: 1fr; }
  .shot img{ height: 200px; }
  .dots{ right: 6px; }
  .voteGrid, .topupGrid{ grid-template-columns: 1fr; }

  /* penting: biar vertical scroll native jalan, horizontal swipe kita handle via JS */
  .rail{ touch-action: pan-y; }

  /* Mobile: swipe/scroll atas-bawah untuk lihat detail per slide */
  .slide{
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: calc(env(safe-area-inset-bottom) + 96px);
  }
  .slide::-webkit-scrollbar{ width: 0; height: 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .rail{ scroll-behavior: auto; }
  .bg{ transition: none; }
  .content{ transition: none; transform: none; opacity: 1; }
  .mouse::after{ animation: none; }
}

.brand { display:flex; align-items:center; gap:10px; }
.brand__logo{
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px; /* optional */
}

.btn.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

/* styles.css */
/* =========================================
   STAFF SLIDER SECTION
   ========================================= */
.staff-slider-container {
    position: relative;
    width: 100%;
    margin-top: 24px;
    display: flex;
    align-items: center;
}

.staff-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 4px 20px 4px; /* Ruang untuk efek shadow */
    width: 100%;
    
    /* Menyembunyikan scrollbar untuk tampilan bersih */
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.staff-track::-webkit-scrollbar { 
    display: none; 
}

.staff-card {
    flex: 0 0 240px; /* Lebar tetap per kartu */
    scroll-snap-align: start;
    
    /* Desain glassmorphism menyesuaikan dengan .card bawaan */
    padding: 24px 16px;
    border-radius: var(--r);
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(10, 12, 24, .55);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 46px rgba(0, 0, 0, .38);
    
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
}

.staff-avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 16px auto;
}

.staff-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent, #7c5cff); /* Menggunakan aksen slide */
}

/* Lencana Owner */
.owner-crown {
    position: absolute;
    top: -10px;
    right: -5px;
    background: #fee75c; /* Warna kuning discord */
    color: #000;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 6px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.staff-name {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--fg);
}

.staff-role {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.4;
}

.loading-state {
    width: 100%;
    text-align: center;
    padding: 40px 0;
    color: var(--muted);
    font-weight: 600;
}

/* Tombol Navigasi Desktop */
.staff-nav-btn {
    display: none; /* Disembunyikan di mobile, ditampilkan via media query */
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    z-index: 10;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.staff-nav-btn:hover {
    background: rgba(255,255,255,.15);
    transform: scale(1.05);
}

.staff-nav-btn.prev { margin-right: 12px; }
.staff-nav-btn.next { margin-left: 12px; }

/* Menampilkan tombol di layar yang lebih lebar */
@media (min-width: 768px) {
    .staff-nav-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
