/* WINNING303 v2 — "Chip Kuningan"
   Mahoni gelap yang sinematik, kuningan metalik sebagai cahaya, kaca untuk lapisan. */
@property --ang {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --mahoni: #5C2905;
  --mahoni-hi: #8A4515;
  --bark: #2A1305;
  --bark-2: #1F0D03;
  --abyss: #160A02;
  --brass: #E2B04A;
  --brass-hi: #FFD98A;
  --brass-lo: #A86E1C;
  --cream: #F7EBDA;
  --muted: #C9AF93;
  --ok: #4FD18F;
  --warn: #F2B544;
  --bad: #F06A5B;

  --gold: linear-gradient(135deg, #FFE7AE 0%, #E2B04A 42%, #B57A22 72%, #F2C96E 100%);
  --glass: rgba(42, 19, 5, .55);
  --line: rgba(226, 176, 74, .18);
  --line-soft: rgba(247, 235, 218, .08);

  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 26px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  interpolate-size: allow-keywords;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--abyss);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* butiran film tipis di seluruh halaman */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brass); color: var(--abyss);
  padding: 10px 14px; border-radius: var(--r-s); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--brass-hi); outline-offset: 3px; border-radius: 6px; }

/* ---------- Tombol ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s, background-color .2s;
}
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 1rem; }
.btn-gold {
  background: var(--gold); color: #2A1305;
  box-shadow: 0 8px 24px -8px rgba(226, 176, 74, .55), inset 0 1px 0 rgba(255, 255, 255, .5);
}
/* kilau yang lewat saat disentuh */
.btn-gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease);
}
.btn-gold:hover::after { transform: translateX(120%); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -8px rgba(226, 176, 74, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold:active { transform: translateY(0); }
.btn-glass {
  background: rgba(247, 235, 218, .06); color: var(--cream);
  border: 1px solid rgba(247, 235, 218, .18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-glass:hover { border-color: var(--brass); background: rgba(226, 176, 74, .1); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 10px var(--gutter) 0;
  pointer-events: none;
}
.header-shell {
  position: relative; pointer-events: auto;
  max-width: calc(var(--wrap) - 2 * var(--gutter) + 40px);
  height: calc(var(--header-h) - 20px);
  margin-inline: auto; padding: 0 10px 0 20px;
  display: flex; align-items: center; gap: 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
/* kaca di pseudo-element, supaya drawer `fixed` tidak terkurung */
.header-shell::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(22, 10, 2, .35);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  opacity: 0; transition: opacity .3s;
}
.site-header.is-scrolled .header-shell { border-color: var(--line); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8); }
.site-header.is-scrolled .header-shell::before { opacity: 1; background: rgba(22, 10, 2, .72); }

.brand { flex-shrink: 0; display: flex; align-items: center; text-decoration: none; }
.brand img {
  height: 38px; width: auto;
  font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; color: var(--brass); line-height: 38px;
}

.nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-list a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 999px;
  font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav-list a:hover { color: var(--cream); background: rgba(247, 235, 218, .06); }
.nav-list a[aria-current="true"] { color: var(--abyss); background: var(--brass); }
.ext {
  width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: translateY(1px); opacity: .7;
}
.nav-auth { display: flex; gap: 8px; }

.menu-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  background: rgba(247, 235, 218, .04); color: var(--cream); cursor: pointer;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; margin-inline: auto;
  transition: transform .25s var(--ease), background-color .2s;
}
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(48px, 7vw, 88px);
  background: radial-gradient(140% 100% at 50% 0%, var(--bark) 0%, var(--abyss) 70%);
}
/* garis grid tipis yang memudar */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(226, 176, 74, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 176, 74, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 35%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 70% 35%, #000 0%, transparent 75%);
}

.aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.aurora i {
  position: absolute; border-radius: 50%;
  will-change: transform;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) {
  width: 70vmax; height: 70vmax; right: -25vmax; top: -30vmax;
  background: radial-gradient(circle, rgba(138, 69, 21, .75) 0%, transparent 62%);
}
.aurora i:nth-child(2) {
  width: 46vmax; height: 46vmax; right: 2vmax; top: 4vmax;
  background: radial-gradient(circle, rgba(226, 176, 74, .22) 0%, transparent 60%);
  animation-duration: 16s; animation-delay: -6s;
}
.aurora i:nth-child(3) {
  width: 60vmax; height: 60vmax; left: -30vmax; bottom: -35vmax;
  background: radial-gradient(circle, rgba(92, 41, 5, .7) 0%, transparent 60%);
  animation-duration: 26s;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6%, 5%, 0) scale(1.12); }
}

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; margin-bottom: 26px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(247, 235, 218, .04);
  font-size: .85rem; color: var(--muted);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { to { transform: scale(3.2); opacity: 0; } }

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 4.1rem); font-weight: 900; max-width: 15ch;
  background: linear-gradient(180deg, #FFF6E6 30%, #E9CFA6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 22px; font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--muted); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: .84rem; color: rgba(201, 175, 147, .7); }

/* Teks hero muncul sekali saat dimuat */
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Chip 3D ---------- */
.chip-stage {
  --chip: clamp(220px, 30vw, 380px);
  position: relative; display: grid; place-items: center;
  min-height: calc(var(--chip) * 1.25);
  perspective: 1100px;
}
.chip-glow {
  position: absolute; width: calc(var(--chip) * 1.3); height: calc(var(--chip) * .5);
  bottom: 2%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(226, 176, 74, .35), transparent);
  filter: blur(6px);
  animation: glow 6s ease-in-out infinite;
}
@keyframes glow { 50% { transform: scale(.85); opacity: .6; } }

.chip-tilt {
  --rx: 0deg; --ry: 0deg;
  transform-style: preserve-3d;
  transform: rotateX(calc(22deg + var(--rx))) rotateY(var(--ry)) rotateZ(-14deg);
  transition: transform .5s var(--ease);
  animation: chip-in 1.2s var(--ease) both;
}
@keyframes chip-in {
  from { opacity: 0; transform: rotateX(70deg) rotateY(-30deg) rotateZ(-60deg) translateY(40px); }
}

.chip {
  position: relative; width: var(--chip); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 66%, rgba(0, 0, 0, .35) 66% 67.2%, transparent 67.2%),
    repeating-conic-gradient(from 8deg, #F6DDA4 0 13deg, var(--mahoni) 13deg 45deg);
  box-shadow:
    inset 0 0 0 5px #3A1903,
    inset 0 0 0 7px rgba(255, 217, 138, .35),
    0 14px 0 -2px #2A1204,
    0 16px 0 -2px #160A02,
    0 50px 70px -20px rgba(0, 0, 0, .8);
}
.chip-front { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateZ(26px) translateY(-10px); } }

.chip-front::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 240, 210, .35) 46%, transparent 58%);
  mix-blend-mode: soft-light;
}

.chip-face {
  position: absolute; inset: 17%; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, var(--mahoni-hi), var(--mahoni) 55%, #3A1903);
  box-shadow:
    inset 0 0 0 3px var(--brass),
    inset 0 0 0 9px var(--mahoni),
    inset 0 0 0 10px rgba(226, 176, 74, .5),
    inset 0 -14px 34px rgba(0, 0, 0, .5);
}
.chip-num {
  font-family: var(--font-display); font-weight: 900; font-size: calc(var(--chip) * .16);
  letter-spacing: -0.04em;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .45));
}
.chip-ring {
  position: absolute; inset: 11%; border-radius: 50%;
  border: 2px dashed rgba(226, 176, 74, .45);
  animation: spin 50s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.chip-back {
  --chip: clamp(120px, 15vw, 190px);
  position: absolute; top: 0; right: 4%;
  transform: rotateX(55deg) rotateZ(30deg) translateZ(-120px);
  filter: blur(2px) brightness(.7);
  opacity: .85;
  animation: float-back 8s ease-in-out infinite;
}
@keyframes float-back { 50% { transform: rotateX(55deg) rotateZ(40deg) translateZ(-120px) translateY(14px); } }

/* ---------- Panel link + cek koneksi ---------- */
.links-panel {
  position: relative; margin-top: clamp(32px, 5vw, 56px);
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--r-l);
  background: linear-gradient(180deg, rgba(247, 235, 218, .06), rgba(247, 235, 218, .02)), var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.links-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.links-head h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.links-head p { margin-top: 6px; font-size: .85rem; color: var(--muted); }
.recheck {
  flex-shrink: 0; min-height: 40px; padding: 0 16px; cursor: pointer;
  font: inherit; font-size: .85rem; font-weight: 700; color: var(--brass-hi);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
}
.recheck:hover { border-color: var(--brass); }
.recheck[disabled] { opacity: .5; cursor: progress; }

.links-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.link-item {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "url url" "ping copy";
  gap: 14px 10px; align-items: center;
  padding: 16px; border-radius: var(--r-m);
  background: rgba(22, 10, 2, .55);
  border: 1px solid var(--line-soft);
  transition: border-color .3s, box-shadow .3s;
}
.link-item a { grid-area: url; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.link-item a:hover { color: var(--brass-hi); text-decoration: underline; text-underline-offset: 3px; }
.link-item.is-fastest { border-color: rgba(79, 209, 143, .55); box-shadow: 0 0 0 4px rgba(79, 209, 143, .08); }
.link-item.is-fastest::before {
  content: "Tercepat"; position: absolute; top: -10px; right: 14px;
  padding: 2px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; color: var(--abyss); background: var(--ok);
}

.ping { grid-area: ping; display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.ping-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.ping[data-state="checking"] .ping-dot { animation: blink 1s ease-in-out infinite; }
.ping[data-state="ok"] { color: var(--ok); }
.ping[data-state="slow"] { color: var(--warn); }
.ping[data-state="fail"] { color: var(--bad); }
@keyframes blink { 50% { opacity: .2; } }

.copy {
  grid-area: copy; min-height: 36px; padding: 0 14px; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 700;
  color: var(--cream); background: rgba(247, 235, 218, .07);
  border: 1px solid rgba(247, 235, 218, .14); border-radius: 999px;
  transition: background-color .2s, border-color .2s;
}
.copy:hover { border-color: var(--brass); }
.copy.is-done { background: var(--ok); border-color: var(--ok); color: var(--abyss); }
.links-status { min-height: 1.2em; margin-top: 12px; font-size: .82rem; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee {
  display: flex; overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bark-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  flex-shrink: 0; display: flex; gap: 0; margin: 0; padding: 18px 0; list-style: none;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  display: flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(.95rem, 1.6vw, 1.2rem);
  color: var(--muted); white-space: nowrap;
}
.marquee-track li::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: repeating-conic-gradient(var(--brass) 0 30deg, var(--mahoni) 30deg 60deg);
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Section umum ---------- */
.features, .app, .about, .faq, .contact { padding-block: clamp(72px, 10vw, 128px); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2, .app h2, .about h2, .faq h2, .contact h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; max-width: 56ch; }

/* ---------- Features (bento + sorotan) ---------- */
.features { position: relative; }
.bento {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "pay pay games games"
    "pay pay games games"
    "score light secure cs";
}
.tile-pay { grid-area: pay; }
.tile-games { grid-area: games; }
.tile-score { grid-area: score; }
.tile-light { grid-area: light; }
.tile-secure { grid-area: secure; }
.tile-cs { grid-area: cs; }

.tile {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r-l);
  background: linear-gradient(160deg, rgba(92, 41, 5, .45), rgba(31, 13, 3, .9));
  border: 1px solid var(--line-soft);
  text-decoration: none;
}
/* cahaya yang mengikuti kursor */
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(226, 176, 74, .16), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
/* garis tepi yang menyala di dekat kursor */
.tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 217, 138, .75), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .3s;
}
.bento:hover .tile::before, .bento:hover .tile::after { opacity: 1; }

.tile h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--cream); }
.tile p { color: var(--muted); font-size: .95rem; max-width: 46ch; }

.tile-pay {
  display: flex; flex-direction: column;
  background: radial-gradient(120% 80% at 100% 100%, rgba(226, 176, 74, .18), transparent 60%), linear-gradient(160deg, var(--mahoni), var(--bark-2));
}
/* tepi berputar khusus tile utama */
.tile-pay::after {
  background: conic-gradient(from var(--ang), transparent 0 65%, var(--brass-hi) 80%, transparent 95%);
  opacity: .9; animation: orbit 7s linear infinite;
}
@keyframes orbit { to { --ang: 360deg; } }
.tile-pay h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 16ch; }
.tile-pay p { font-size: 1.02rem; color: rgba(247, 235, 218, .8); }

.qris {
  position: relative; overflow: hidden;
  width: clamp(130px, 14vw, 170px); aspect-ratio: 1; margin-top: auto; align-self: flex-end;
  padding: 12px; border-radius: 14px; background: var(--cream);
  background-image: radial-gradient(var(--abyss) 38%, transparent 40%);
  background-size: 9px 9px; background-position: 4px 4px;
  background-clip: content-box;
  box-shadow: 0 0 0 10px var(--cream), 0 24px 40px -16px rgba(0, 0, 0, .8);
  margin-block-start: 28px;
}
.qris span {
  position: absolute; width: 30%; aspect-ratio: 1; border-radius: 6px;
  background: var(--cream);
  box-shadow: inset 0 0 0 5px var(--abyss), inset 0 0 0 9px var(--cream), inset 0 0 0 40px var(--abyss);
}
.qris span:nth-child(1) { top: 0; left: 0; }
.qris span:nth-child(2) { top: 0; right: 0; }
.qris span:nth-child(3) { bottom: 0; left: 0; }
.qris::after {
  content: ""; position: absolute; left: 0; right: 0; height: 30%;
  background: linear-gradient(180deg, transparent, rgba(226, 176, 74, .55) 90%, var(--brass) 100%);
  animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan { from { top: -30%; } to { top: 100%; } }

.tile-games { display: flex; flex-direction: column; }
.game-list { flex: 1; list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.game-list li {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; border-radius: var(--r-m);
  background: radial-gradient(120px circle at 100% 0%, rgba(226, 176, 74, .12), transparent 70%), rgba(22, 10, 2, .5);
  border: 1px solid var(--line-soft);
}
.game-list strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--brass-hi); margin-bottom: 6px; }
.game-list span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.45; }

.tile-score { display: flex; flex-direction: column; }
.tile-score:hover h3 { color: var(--brass-hi); }
.scoreline { display: grid; gap: 7px; margin: 18px 0; }
.live {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; color: var(--bad);
}
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.bar { height: 6px; border-radius: 6px; background: rgba(247, 235, 218, .08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 58%; border-radius: inherit; background: var(--gold); }
.bar:nth-of-type(3) i { width: 34%; }
.bar:nth-of-type(4) i { width: 72%; }
.tile-link { margin-top: auto; font-size: .88rem; font-weight: 700; color: var(--brass-hi); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- App ---------- */
.app {
  position: relative; overflow: hidden;
  background: radial-gradient(70% 70% at 15% 50%, rgba(92, 41, 5, .65), transparent 70%), var(--bark-2);
}
.app-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 96px); align-items: center; }

.phone {
  justify-self: center;
  width: clamp(200px, 22vw, 260px); aspect-ratio: 9 / 18.5;
  padding: 10px; border-radius: 40px;
  background: linear-gradient(145deg, #3A1A06, #120700);
  box-shadow: inset 0 0 0 1.5px rgba(226, 176, 74, .4), 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 120px -20px rgba(226, 176, 74, .25);
  transform: rotate(-6deg);
  animation: float-phone 7s ease-in-out infinite;
}
@keyframes float-phone { 50% { transform: rotate(-4deg) translateY(-12px); } }
.phone-screen {
  height: 100%; border-radius: 31px; padding: 28% 14% 14%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: radial-gradient(100% 60% at 50% 0%, var(--mahoni-hi), var(--mahoni) 45%, var(--abyss));
}
.phone-chip {
  width: 58%; aspect-ratio: 1; border-radius: 50%; margin-bottom: 12%;
  background:
    radial-gradient(circle, var(--mahoni) 0 50%, transparent 51%),
    repeating-conic-gradient(#F6DDA4 0 13deg, #3A1903 13deg 45deg);
  box-shadow: 0 0 0 3px rgba(226, 176, 74, .4), 0 14px 30px -8px rgba(0, 0, 0, .8);
  animation: spin 18s linear infinite;
}
.phone-bar { width: 100%; height: 10px; border-radius: 6px; background: rgba(247, 235, 218, .18); }
.phone-bar.short { width: 64%; }
.phone-btn { width: 100%; height: 38px; margin-top: auto; border-radius: 999px; background: var(--gold); }

.app h2 { max-width: 16ch; }
.app-lead { margin: 18px 0 34px; max-width: 50ch; font-size: 1.05rem; color: var(--muted); }

.steps { position: relative; list-style: none; margin: 0 0 36px; padding: 0; counter-reset: step; }
/* garis langkah: terisi saat digulir (bila browser mendukung) */
.steps::before, .steps::after {
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px;
}
.steps::before { background: rgba(247, 235, 218, .1); }
.steps::after { background: var(--gold); transform-origin: top; }
@supports (animation-timeline: view()) {
  .steps::after {
    animation: fill-line linear both;
    animation-timeline: view();
    animation-range: entry 40% cover 55%;
  }
  .steps li::before {
    animation: light-step linear both;
    animation-timeline: view();
    animation-range: entry 70% cover 45%;
  }
}
@keyframes fill-line { from { transform: scaleY(0); } }
@keyframes light-step {
  from { background: var(--bark); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
}
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 66px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  background: var(--brass); color: var(--abyss);
}
.steps h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.steps p { color: var(--muted); max-width: 46ch; }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.app-meta { font-size: .86rem; color: var(--muted); }

/* ---------- About ---------- */
.about { position: relative; overflow: hidden; isolation: isolate; }
.about::before {
  content: "303"; position: absolute; z-index: -1; right: -2vw; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 900; font-size: clamp(10rem, 30vw, 26rem); line-height: 1; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(226, 176, 74, .12);
  pointer-events: none;
}
.about-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.about h2 { margin-bottom: 22px; }
.about-copy p { max-width: 62ch; line-height: 1.75; color: var(--muted); }
.about-copy p + p { margin-top: 16px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.facts div {
  padding: 22px; border-radius: var(--r-m);
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.facts dt { font-size: .84rem; color: var(--muted); }
.facts dd {
  margin: 8px 0 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- FAQ ---------- */
.faq { background: var(--bark-2); border-block: 1px solid var(--line-soft); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq h2 { max-width: 12ch; }
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  border-radius: var(--r-m); border: 1px solid var(--line-soft);
  background: rgba(247, 235, 218, .03);
  transition: border-color .25s, background-color .25s;
}
.faq-list details[open] { border-color: var(--line); background: rgba(92, 41, 5, .35); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font-weight: 700; font-size: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line);
  font-size: 1.2rem; font-weight: 500; color: var(--brass-hi);
  transition: transform .3s var(--ease), background-color .2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background: rgba(226, 176, 74, .15); }
.faq-list summary:hover { color: var(--brass-hi); }
.faq-list details p { padding: 0 20px 20px; color: var(--muted); max-width: 64ch; }
/* buka-tutup halus di browser modern */
.faq-list details::details-content {
  height: 0; overflow: hidden;
  transition: height .35s var(--ease), content-visibility .35s allow-discrete;
}
.faq-list details[open]::details-content { height: auto; }

/* ---------- Contact ---------- */
.contact-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: calc(var(--r-l) + 6px);
  background: radial-gradient(90% 120% at 0% 0%, var(--mahoni), var(--bark-2) 70%);
  border: 1px solid var(--line);
}
.contact-card::before {
  content: ""; position: absolute; z-index: -1; width: 420px; aspect-ratio: 1; right: -140px; bottom: -200px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(226, 176, 74, .28) 0 6deg, transparent 6deg 15deg);
  -webkit-mask: radial-gradient(closest-side, transparent 90%, #000 91% 99%, transparent);
  mask: radial-gradient(closest-side, transparent 90%, #000 91% 99%, transparent);
  animation: spin 60s linear infinite;
}
.contact-intro p { margin: 16px 0 28px; color: rgba(247, 235, 218, .8); max-width: 44ch; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: var(--r-m); text-decoration: none;
  background: rgba(22, 10, 2, .5); border: 1px solid var(--line-soft);
  transition: border-color .2s, transform .2s var(--ease);
}
.contact-list a:hover { border-color: var(--brass); transform: translateX(4px); }
.contact-list strong { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.contact-list span { font-size: .9rem; color: var(--muted); overflow-wrap: anywhere; text-align: right; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 52px; background: #110801; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; padding-bottom: 32px; }
.footer-brand {
  font-family: var(--font-display); font-weight: 900; font-size: 1.4rem;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.footer-text { margin-top: 12px; max-width: 52ch; font-size: .9rem; color: var(--muted); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 44px; justify-content: end; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: .93rem; }
.footer-links a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 20px; border-top: 1px solid var(--line-soft);
  font-size: .82rem; color: rgba(201, 175, 147, .7);
}
.age-badge {
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 2px solid var(--brass); color: var(--brass); border-radius: 50%;
}

.mobile-bar { display: none; }

/* ---------- Responsif ---------- */
@media (max-width: 1080px) {
  .nav-list a { padding: 8px 9px; font-size: .86rem; }
  .nav { gap: 12px; }
  .links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: block; }
  .header-shell { padding: 0 8px 0 18px; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px;
    padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
    background: radial-gradient(120% 60% at 100% 0%, var(--mahoni), var(--abyss) 70%);
    overflow-y: auto;
    visibility: hidden; opacity: 0;
    clip-path: circle(0 at calc(100% - 44px) 36px);
    transition: clip-path .5s var(--ease), opacity .3s, visibility 0s .5s;
  }
  .nav.is-open {
    visibility: visible; opacity: 1;
    clip-path: circle(150% at calc(100% - 44px) 36px);
    transition: clip-path .5s var(--ease), opacity .2s;
  }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a {
    justify-content: space-between; padding: 16px 4px; border-radius: 0;
    font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--cream);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-list a:hover { background: transparent; color: var(--brass-hi); }
  .nav-list a[aria-current="true"] { background: transparent; color: var(--brass); }
  .nav-auth { display: grid; grid-template-columns: 1fr 1fr; }
  .nav-auth .btn { min-height: 54px; }
  .site-header.menu-open .header-shell { border-color: transparent; box-shadow: none; }
  .site-header.menu-open .header-shell::before { opacity: 0; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .chip-stage { order: -1; --chip: clamp(170px, 46vw, 260px); min-height: calc(var(--chip) * 1.15); margin-bottom: -8px; }
  .chip-back { right: 6%; }
  .app-grid, .about-grid, .faq-wrap, .contact-card { grid-template-columns: minmax(0, 1fr); }
  .phone { width: 190px; }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "pay pay" "games games" "score light" "secure cs";
  }
  .faq h2 { max-width: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .header-shell { height: calc(var(--header-h) - 16px); }
  .site-header { padding-top: 8px; }
  .brand img { height: 32px; line-height: 32px; font-size: 1rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .pill { font-size: .78rem; margin-bottom: 20px; }
  .links-head { flex-direction: column; }
  .links-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pay" "games" "score" "light" "secure" "cs"; }
  .game-list { grid-template-columns: minmax(0, 1fr); }
  .qris { align-self: flex-start; }
  .phone { display: none; }
  .facts div { padding: 18px; }
  .contact-card::before { display: none; }
  .contact-list a { flex-direction: column; align-items: flex-start; gap: 4px; }
  .contact-list span { text-align: left; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: start; }

  /* bar aksi tetap di bawah layar */
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    padding: 8px; border-radius: 999px;
    background: rgba(22, 10, 2, .82);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8);
  }
  .mobile-bar .btn { min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* pita berhenti: tampilkan sebagai daftar statis */
  .marquee { justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-shrink: 1; flex-wrap: wrap; justify-content: center; row-gap: 6px; padding-inline: var(--gutter); }
  .marquee-track[aria-hidden="true"] { display: none; }
  .marquee-track li:last-child::after { display: none; }
}

/* ---------- Penghalang salin ---------- */
body { -webkit-user-select: none; user-select: none; }
a, input, textarea, .links-panel, .contact-list { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; }
