/* NAMAWEB · Royal Emerald — base.css: token, huruf, komponen untuk semua ukuran.
   Tata letak per ukuran: mobile.css (<768) · tablet.css (768–1199) · desktop.css (≥1200). */
@font-face { font-family: 'Lato'; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/fonts/lato-400.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 700; font-style: normal; font-display: swap; src: url(/assets/fonts/lato-700.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 900; font-style: normal; font-display: swap; src: url(/assets/fonts/lato-900.woff2) format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 700 800; font-style: normal; font-display: swap; src: url(/assets/fonts/cinzel-800.woff2) format('woff2'); }

:root {
  --bg: #03130e; --bg2: #041a13; --bg3: #06291e;
  --tx: #f3ead6; --mut: rgba(243, 234, 214, .64); --dim: rgba(243, 234, 214, .42);
  --gold: #e9c77b; --gold-hi: #f3d68e; --gold-lo: #c99a43;
  --line: rgba(233, 199, 123, .2); --line2: rgba(233, 199, 123, .42);
  --card: rgba(233, 199, 123, .06); --card2: rgba(233, 199, 123, .11);
  --pri: linear-gradient(180deg, #f3d68e, #c99a43); --onpri: #2a1d05; --glow: 0 4px 14px rgba(201, 154, 67, .3);
  --green: #1f9d6c; --ok: #7fdcb0; --bad: #f87171; --warn: #fbbf24;
  --r: 8px; --r-sm: 6px; --r-xs: 4px;
  --hd-h: 56px; --side-w: 228px; --bnav-h: 64px;
  --font: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Cinzel', Georgia, 'Times New Roman', serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--tx); font: 400 14px/1.5 var(--font);
  background: var(--bg) radial-gradient(120% 50% at 50% -10%, rgba(25, 120, 85, .35), transparent 60%) no-repeat; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--gold); line-height: 1.15; letter-spacing: .5px; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.ic { flex: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; border-radius: var(--r-xs); background: var(--gold); color: var(--onpri); }
.skip:focus { left: 8px; }
.center { text-align: center; }
.hint { color: var(--mut); font-size: 12px; margin-top: 5px; }
.hint a, .prose a, .note a { color: var(--gold); }
.note { color: var(--dim); font-size: 12px; margin-top: 12px; }
.ok-text { display: flex; align-items: center; gap: 4px; color: var(--ok); font-size: 12px; margin-top: 5px; }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 30; height: var(--hd-h); display: flex; align-items: center; gap: 12px; padding: 0 12px;
  background: rgba(4, 26, 19, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.hd-menu { display: none; }
.logo { display: flex; align-items: center; gap: 9px; line-height: 1; white-space: nowrap; }
.logo-badge { flex: none; filter: drop-shadow(0 2px 7px rgba(201, 154, 67, .4)); }
.logo-tx { display: flex; flex-direction: column; }
.logo-name { font: 800 19px/1 var(--display); color: var(--gold); letter-spacing: .5px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo small { margin-top: 3px; font-size: 8px; font-weight: 700; letter-spacing: 2.5px; color: var(--mut); }
.logo-center { flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; text-align: center; }
.logo-center .logo-name { font-size: 26px; }
.hd-search { flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--mut);
  border: 1px solid var(--line); border-radius: var(--r-xs); background: rgba(0, 0, 0, .25); }
.hd-search:focus-within { border-color: var(--gold); }
.hd-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--tx); }
.wallet, .auth-btns { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hd-bell { position: relative; width: 36px; height: 36px; display: grid; place-items: center; color: var(--gold); }
.hd-sound { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
  background: rgba(0, 0, 0, .25); color: var(--gold); cursor: pointer; }
.hd-sound .ic-off, .hd-sound.muted .ic-on { display: none; }
.hd-sound.muted .ic-off { display: block; }
.hd-sound.muted { color: var(--mut); }
.pjax-bar { position: fixed; top: 0; left: 0; height: 2px; width: 0; opacity: 0; z-index: 200;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); transition: width .3s ease, opacity .25s ease; pointer-events: none; }

/* ============ Poles mewah (hero, tombol, kartu, skeleton, metode bayar, trust) — ringan, CSS/SVG ============ */
/* Hero: kilau emas + ornamen bulat */
.hero { background: radial-gradient(130% 90% at 85% 12%, rgba(31, 157, 108, .3), transparent 60%), linear-gradient(135deg, #063627, #03130e 72%);
  box-shadow: inset 0 1px 0 rgba(247, 223, 159, .12), 0 12px 34px rgba(0, 0, 0, .38); }
.slide::before { content: ""; position: absolute; top: -46px; right: -34px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 214, 142, .2), transparent 70%); pointer-events: none; }
.slide-t { text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }

/* Tombol emas: kilau menyapu saat hover/aktif */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after { content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); transition: left .6s ease; }
.btn-gold:hover::after { left: 150%; }

/* Kartu game: angkat + glow emas */
.game { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.game:hover { transform: translateY(-3px); border-color: var(--line2); box-shadow: 0 12px 26px rgba(0, 0, 0, .42), 0 0 0 1px rgba(233, 199, 123, .25); }
.panel { box-shadow: 0 6px 20px rgba(0, 0, 0, .22); }

/* Skeleton shimmer (dipakai saat saldo masih dimuat) */
.sk { position: relative; overflow: hidden; border-radius: var(--r-xs); color: transparent !important; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(233, 199, 123, .18), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* Metode pembayaran + trust (footer) */
.pays { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ft .pays, .ft .trust-row { flex: 0 0 100%; }
.ft .pays { margin-bottom: 4px; }
.pay { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border: 1px solid var(--line); border-radius: var(--r-xs);
  background: rgba(0, 0, 0, .25); color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .4px; }
.pay.qris { color: var(--onpri); background: var(--pri); border-color: transparent; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 12px; }
.trust-row span { display: inline-flex; align-items: center; gap: 5px; color: var(--mut); font-size: 11px; font-weight: 700; }
.trust-row svg { color: var(--gold); }

/* gambar yang gagal → tampil seperti placeholder logo provider (badge rapi, tidak gepeng) */
.game-fallimg { object-fit: contain; padding: 32%; border-radius: 50%;
  background: radial-gradient(120% 85% at 50% 0%, rgba(31, 157, 108, .22), transparent 62%), linear-gradient(160deg, #06291e, #03130e); }
.recent-item .game-fallimg { padding: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  .btn-gold::after, .sk::after { transition: none; animation: none; }
  .game { transition: none; }
}
.badge-dot { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bad);
  color: #fff; font-size: 10px; line-height: 17px; text-align: center; }
.bal { display: flex; flex-direction: column; align-items: flex-start; padding: 4px 10px; line-height: 1.15; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-xs); background: none; }
.bal small { font-size: 9px; font-weight: 700; letter-spacing: 1px; color: var(--mut); }
.bal b { font-size: 14px; color: var(--gold); white-space: nowrap; }
.av { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%;
  color: var(--gold); font-weight: 900; }
.lang-sw { flex: none; height: 34px; padding: 0 6px; border: 1px solid var(--line); border-radius: var(--r-xs); background: rgba(0, 0, 0, .25);
  color: var(--gold); font-size: 12px; font-weight: 800; cursor: pointer; }
.lang-sw option { background: var(--bg2); color: var(--tx); }

/* ---------- pengumuman berjalan ---------- */
.mq { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; color: var(--mut); font-size: 12px; border-bottom: 1px solid var(--line); }
.mq-ic { display: flex; color: var(--gold); }
.mq-view { flex: 1; min-width: 0; overflow: hidden; }
.mq-track { display: flex; gap: 60px; width: max-content; white-space: nowrap; animation: mq 32s linear infinite; }
@keyframes mq { to { transform: translateX(calc(-50% - 30px)); } }

/* ---------- kerangka & menu samping ---------- */
.shell { display: flex; align-items: flex-start; }
.main { flex: 1; min-width: 0; padding: 14px 12px 24px; }
.side-head { display: none; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-xs); color: var(--mut); font-weight: 700; white-space: nowrap; }
.side-nav a:hover { color: var(--tx); background: var(--card); }
.side-nav a.on { color: var(--gold); background: var(--card); box-shadow: inset 2px 0 0 var(--gold); }
.side-nav a em { margin-left: auto; padding: 1px 6px; border-radius: 3px; background: var(--green); color: #fff; font-size: 10px; font-style: normal; font-weight: 900; }
.side-nav .lbl { padding: 12px 10px 4px; color: rgba(233, 199, 123, .55); font-size: 10px; font-weight: 900; letter-spacing: 1.8px; }
.side-nav .more { color: var(--gold); }
.side-chat { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 9px; color: var(--gold); font-weight: 700;
  border: 1px solid var(--line); border-radius: var(--r-xs); }
.plogo { width: 18px; height: 18px; flex: none; border-radius: 50%; object-fit: cover; }
.plogo-x { display: inline-grid; place-items: center; background: var(--card2); color: var(--gold); font-size: 10px; font-weight: 900; }
.scrim { display: none; }
.bnav { display: none; }

/* ---------- footer ---------- */
.ft { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 32px; padding-top: 16px; color: var(--dim); font-size: 12px; border-top: 1px solid var(--line); }
.ft nav { display: flex; flex-wrap: wrap; gap: 14px; }
.ft a:hover { color: var(--gold); }
.ft p { display: flex; align-items: center; gap: 8px; }
.age { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--bad); border-radius: 50%; color: var(--bad); font-size: 10px; font-weight: 900; }

/* ---------- tombol & efek tekan bergaya kasino ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border: 1px solid transparent;
  border-radius: var(--r-xs); background: none; font-weight: 900; white-space: nowrap; cursor: pointer; }
.btn-gold { background: var(--pri); color: var(--onpri); box-shadow: var(--glow); }
.btn-line { border-color: var(--line2); color: var(--gold); }
.btn-ghost { border-color: var(--line); background: var(--card); color: var(--tx); }
.btn-block { width: 100%; height: 46px; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; }
.btn:disabled { opacity: .55; cursor: default; }
.fx { position: relative; overflow: hidden; transition: transform .12s, filter .12s; }
.fx:active { transform: scale(.96); filter: brightness(1.12); }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); pointer-events: none;
  background: radial-gradient(circle, rgba(243, 214, 142, .55), rgba(243, 214, 142, 0) 70%); animation: ripple .55s ease-out; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* ---------- judul, bagian, panel ---------- */
.page-h { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.page-h h1 { font-size: 22px; }
.page-h p { margin-top: 2px; color: var(--mut); font-size: 13px; }
.back { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-xs); color: var(--gold); }
.sec { margin-top: 22px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.sec-h h2 { font-size: 16px; letter-spacing: 1px; }
.sec-h a { color: var(--gold); font-size: 12px; font-weight: 700; white-space: nowrap; }
.panel { padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.panel + .panel { margin-top: 12px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.panel-h h2 { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cols { display: grid; gap: 14px; align-items: start; }
.cols > * { min-width: 0; } /* isi panjang (link referral) tidak boleh melebarkan kolom */
.empty { padding: 28px 16px; color: var(--mut); text-align: center; border: 1px dashed var(--line); border-radius: var(--r); }
.empty .btn { margin-top: 12px; }
.alert { padding: 10px 12px; border-radius: var(--r-xs); font-size: 13px; }
.alert-err { border: 1px solid rgba(248, 113, 113, .4); background: rgba(248, 113, 113, .12); color: #fecaca; }
.alert-ok { border: 1px solid rgba(31, 157, 108, .5); background: rgba(31, 157, 108, .14); color: var(--ok); }
.alert-info { border: 1px solid var(--line); background: var(--card); color: var(--tx); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--card2); color: var(--mut); font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge.ok { background: rgba(31, 157, 108, .18); color: var(--ok); }
.badge.wait { background: rgba(251, 191, 36, .14); color: var(--warn); }
.badge.bad { background: rgba(248, 113, 113, .14); color: var(--bad); }

/* ---------- chip, provider, lobi ---------- */
.chips { display: flex; gap: 6px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar, .prov-strip::-webkit-scrollbar, .recent::-webkit-scrollbar, .hero-track::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); font-size: 13px; font-weight: 700; white-space: nowrap; }
.chip.on { border-color: transparent; background: var(--pri); color: var(--onpri); }
.prov-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(130px, 1fr); gap: 8px; overflow-x: auto; scrollbar-width: none; }
.prov-item { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--card); font-size: 13px; font-weight: 700; white-space: nowrap; }
.prov-item .plogo { width: 24px; height: 24px; }
.lobby-bar { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.lobby-search { flex: 1; height: 40px; }
.lobby-count { color: var(--mut); font-size: 12px; white-space: nowrap; }
.lobby-count b { color: var(--gold); }
.lobby-open p { margin-bottom: 4px; }

/* ---------- kartu game ---------- */
.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.game { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.game-link { display: block; }
.game-img { position: relative; aspect-ratio: 1; background: var(--bg3); }
.game-img img { width: 100%; height: 100%; object-fit: cover; }
.game-ph { position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(120% 85% at 50% 0%, rgba(31, 157, 108, .22), transparent 62%), linear-gradient(160deg, #06291e, #03130e); }
.game-ph .plogo { width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
.game-tag { position: absolute; top: 6px; left: 6px; padding: 2px 6px; border-radius: 3px; background: var(--gold); color: var(--onpri); font-size: 9px; font-weight: 900; letter-spacing: .5px; }
.game-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(3, 19, 14, .45); opacity: 0; transition: opacity .15s; }
.game-play i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--pri); color: var(--onpri); }
.game:hover .game-play, .game-link:focus-visible .game-play { opacity: 1; }
.game-name { padding: 6px 8px 0; overflow: hidden; font-size: 12px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.game-prov { padding: 0 8px 7px; overflow: hidden; color: var(--mut); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.game-fav { position: absolute; top: 5px; right: 5px; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: rgba(3, 19, 14, .62); color: var(--tx); cursor: pointer; }
.game-fav.on { color: var(--bad); }
.game-fav.on .ic { fill: currentColor; }
.game-demo { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0 6px 7px; padding: 4px; border: 1px solid var(--line);
  border-radius: var(--r-xs); color: var(--mut); font-size: 10px; font-weight: 800; }
.game-demo:hover { border-color: var(--gold); color: var(--gold); }
.gf-demo { padding: 3px 9px; border-radius: 999px; background: rgba(233, 199, 123, .16); color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: 1px; }
.hoki { padding: 0 8px 8px; }
.hoki-top { display: flex; justify-content: space-between; color: var(--mut); font-size: 10px; font-weight: 700; }
.hoki-top b { color: var(--ok); }
.hoki-bar { height: 4px; margin-top: 3px; overflow: hidden; border-radius: 2px; background: var(--line); }
.hoki-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold-hi)); }
.hoki-low .hoki-top b { color: var(--mut); }

/* ---------- beranda ---------- */
.home-top { display: grid; gap: 12px; }
.hero { position: relative; min-height: 160px; overflow: hidden; border: 1px solid rgba(233, 199, 123, .45); border-radius: var(--r); }
.hero::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(233, 199, 123, .22); border-radius: 5px; pointer-events: none; }
.hero-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slide { position: relative; flex: 0 0 100%; min-height: 160px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; scroll-snap-align: start;
  background: radial-gradient(110% 120% at 30% 0%, #0f5a42 0%, #06291e 60%, #031610 100%); }
.slide-k { color: var(--mut); font-size: 10px; font-weight: 900; letter-spacing: 2.5px; }
.slide-t { max-width: 62%; margin: 4px 0 10px; font: 800 21px/1.12 var(--display); color: var(--gold-hi); }
.slide .btn { align-self: flex-start; }
.slide-art { position: absolute; top: 50%; right: 16px; display: flex; gap: 8px; transform: translateY(-50%); }
.slide-art img { width: 58px; height: 58px; object-fit: cover; border: 1px solid rgba(233, 199, 123, .5); border-radius: 6px; box-shadow: 0 8px 18px rgba(0, 0, 0, .45); }
.slide-art img:nth-child(2) { transform: translateY(-10px); }
.slide-art .big { font: 800 34px/1 var(--display); color: var(--gold-hi); text-shadow: 0 0 18px rgba(243, 214, 142, .4); }
.dots { position: absolute; right: 16px; bottom: 14px; z-index: 1; display: flex; gap: 4px; }
.dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: var(--gold); opacity: .35; cursor: pointer; }
.dots button.on { width: 16px; opacity: 1; }
.home-side { display: grid; gap: 10px; align-content: start; }
.stat-card { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.stat-card span { color: var(--mut); font-size: 10px; font-weight: 900; letter-spacing: 1.5px; }
.stat-card b { font: 800 18px/1 var(--display); color: var(--gold-hi); text-shadow: 0 0 10px rgba(243, 214, 142, .4); white-space: nowrap; }
.spin-card { display: flex; align-items: center; gap: 12px; }
.spin-card > div:not(.wheel-mini) { flex: 1; min-width: 0; }
.spin-card p { color: var(--mut); font-size: 12px; line-height: 1.4; }
.spin-card p b { color: var(--tx); }
.wheel-mini { width: 46px; height: 46px; flex: 0 0 46px; position: relative; border: 2px solid var(--gold); border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .3) inset, 0 2px 8px rgba(0, 0, 0, .35);
  background: conic-gradient(#0f5a42 0 45deg, #c99a43 0 90deg, #0f5a42 0 135deg, #c99a43 0 180deg, #0f5a42 0 225deg, #c99a43 0 270deg, #0f5a42 0 315deg, #c99a43 0); }
.wheel-mini::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--pri); box-shadow: 0 0 0 2px var(--bg); }
.recent { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 8px; overflow-x: auto; scrollbar-width: none; }
.recent-item { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); font-size: 12px; font-weight: 700; }
.recent-item img, .recent-item .plogo { width: 36px; height: 36px; flex: none; border-radius: 4px; object-fit: cover; }
.recent-item span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.features { display: grid; gap: 10px; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature .row-ic { width: 40px; height: 40px; }
.feature p { color: var(--mut); font-size: 13px; }
.feature b { display: block; color: var(--tx); }

/* ---------- daftar baris (transaksi, WD terbaru, pesan, rekening) ---------- */
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); }
.row:first-child { border-top: 0; }
.row-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--card2); color: var(--gold); }
.row-ic.in { color: var(--ok); }
.row-ic.out { color: var(--warn); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-main b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.row-main small, .row-main p { color: var(--mut); font-size: 12px; }
.row-amt { font-weight: 900; white-space: nowrap; }
.row-amt.plus { color: var(--ok); }
.row-amt.minus { color: var(--tx); }
.row-actions { display: flex; gap: 6px; flex: none; }
.log-win { color: var(--ok); font-weight: 900; }
.msg.unread .row-main b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--bad); vertical-align: middle; }
.msg .row-main b { white-space: normal; }

/* ---------- form ---------- */
.form { display: grid; gap: 12px; }
.form-2 { display: grid; gap: 12px; }
.fld label { display: block; margin-bottom: 5px; color: var(--mut); font-size: 12px; font-weight: 700; }
.fld label small { color: var(--dim); font-weight: 400; }
.inp { height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--mut); border: 1px solid var(--line); border-radius: var(--r-xs); background: rgba(0, 0, 0, .25); }
.inp:focus-within { border-color: var(--gold); }
.inp input, .inp select { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--tx); font-size: 15px; }
.inp select option, .inp select optgroup { background: var(--bg2); color: var(--tx); }
.eye { padding: 4px; border: 0; background: none; color: var(--mut); cursor: pointer; }
.tabs { display: flex; gap: 4px; margin-bottom: 12px; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(0, 0, 0, .2); overflow-x: auto; scrollbar-width: none; }
.tabs button, .tabs a { flex: 1; min-width: max-content; height: 36px; display: grid; place-items: center; padding: 0 12px; border: 0; border-radius: var(--r-xs);
  background: none; color: var(--mut); font-weight: 700; cursor: pointer; }
.tabs .on { background: var(--pri); color: var(--onpri); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.amounts button { height: 42px; border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--card); color: var(--tx); font-weight: 900; cursor: pointer; }
.amounts button.on { border-color: var(--gold); background: var(--card2); color: var(--gold); }
.pick-list { display: grid; gap: 8px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); cursor: pointer; }
.pick:has(input:checked) { border-color: var(--gold); background: var(--card2); }
.pick input { accent-color: var(--gold-lo); }
.pick-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pick-main small { color: var(--mut); font-size: 12px; }
.copy-box { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px dashed var(--line2); border-radius: var(--r-xs); background: rgba(0, 0, 0, .25); }
.copy-box code { flex: 1; min-width: 0; overflow: hidden; color: var(--gold-hi); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- deposit / withdraw ---------- */
.qr-box { padding: 16px; border-radius: var(--r); background: #fff; color: #222; text-align: center; }
.qr-box small { color: #555; }
.qr-amt { margin: 4px 0 8px; font: 800 24px/1.2 var(--display); color: #8a6a1d; }
.qr-img { width: 100%; max-width: 260px; margin: 0 auto; }
.qr-img svg { display: block; width: 100%; height: auto; }
.status-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--card2); }
.status-card .row-ic { width: 46px; height: 46px; }
.status-card.wait .row-ic { color: var(--warn); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(251, 191, 36, .1); } }
.steps { display: grid; gap: 6px; margin: 0; padding-left: 20px; color: var(--mut); font-size: 13px; }
.steps b { color: var(--tx); }

/* ---------- spin ---------- */
.wheel-wrap { position: relative; width: min(320px, 82vw); aspect-ratio: 1; margin: 10px auto 18px; }
.wheel { position: relative; width: 100%; height: 100%; overflow: hidden; border: 6px solid var(--gold-lo); border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold-hi), 0 12px 40px rgba(0, 0, 0, .5), inset 0 0 30px rgba(0, 0, 0, .35); transition: transform 5.2s cubic-bezier(.17, .67, .12, 1); }
.wheel-seg { position: absolute; top: 50%; left: 50%; width: 50%; height: 2px; transform-origin: 0 50%; }
.wheel-seg span { position: absolute; top: 50%; right: 12px; max-width: 70%; overflow: hidden; transform: translateY(-50%); color: var(--tx); font-size: 10px; font-weight: 900;
  white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.wheel-pointer { position: absolute; top: -10px; left: 50%; z-index: 2; width: 0; height: 0; transform: translateX(-50%);
  border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--gold-hi); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
.wheel-hub { position: absolute; inset: 37%; z-index: 2; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--pri); color: var(--onpri);
  font: 800 14px/1 var(--display); box-shadow: 0 4px 14px rgba(0, 0, 0, .5); cursor: pointer; }
.wheel-hub:disabled { filter: grayscale(.6); cursor: default; }
.spin-lock { text-align: center; }
.spin-lock p { margin: 6px 0 12px; color: var(--mut); }
.countdown { font: 800 26px/1.2 var(--display); color: var(--gold-hi); letter-spacing: 2px; }
.prize-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.prize { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); font-size: 12px; font-weight: 700; }
.prize img { width: 32px; height: 32px; object-fit: contain; }

/* ---------- referral & akun ---------- */
.stats-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 10px 6px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); text-align: center; }
.stat b { display: block; font: 800 17px/1.2 var(--display); color: var(--gold-hi); }
.stat b .ic { margin: 0 auto; }
.stat small { color: var(--mut); font-size: 11px; }
.share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.profile { display: flex; align-items: center; gap: 12px; }
.profile .av { width: 52px; height: 52px; font-size: 20px; }
.profile b { display: block; font-size: 16px; }
.profile small { color: var(--mut); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.setting-row b { display: block; }
.setting-row small { color: var(--mut); font-size: 12px; }
.switch { position: relative; flex: none; width: 46px; height: 26px; }
.switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch-track { position: absolute; inset: 0; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); transition: background .15s; pointer-events: none; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--mut); transition: transform .15s, background .15s; }
.switch input:checked + .switch-track { background: var(--pri); border-color: transparent; }
.switch input:checked + .switch-track::after { transform: translateX(20px); background: var(--onpri); }

/* ---------- promo, bantuan, teks ---------- */
.promo-list { display: grid; gap: 12px; }
.promo { position: relative; overflow: hidden; }
.promo h2 { margin: 8px 0 6px; font-size: 17px; }
.promo p { color: var(--mut); }
.promo .btn { margin-top: 12px; }
.promo-badge { display: inline-block; padding: 2px 8px; border-radius: 3px; background: var(--gold); color: var(--onpri); font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.faq details { padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.faq details + details { margin-top: 8px; }
.faq summary { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; font-weight: 700; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 900; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-bottom: 12px; color: var(--mut); }
.prose { max-width: 760px; color: var(--mut); line-height: 1.7; }
.prose h2 { margin: 18px 0 6px; font-size: 16px; }
.prose p + p, .prose ul { margin-top: 8px; }
.prose b { color: var(--tx); }

/* ---------- masuk / daftar ---------- */
.auth { display: grid; gap: 16px; max-width: 560px; margin: 0 auto; }
.auth-narrow { max-width: 480px; }
.auth-card { padding: 20px; }
.auth-head { margin-bottom: 14px; text-align: center; }
.auth-head h1, .auth-head h2 { font-size: 24px; }
.auth-head p { margin-top: 4px; color: var(--mut); font-size: 13px; }
.auth-tabs { margin-bottom: 14px; }
.auth-promo { display: none; }
.auth-alt { margin-top: 12px; color: var(--mut); font-size: 13px; text-align: center; }
.auth-alt a { color: var(--gold); font-weight: 700; }
.perks { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.perks li { display: flex; align-items: flex-start; gap: 10px; color: var(--mut); }
.perks li .ic { color: var(--gold); margin-top: 2px; }
.perks b { color: var(--tx); }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 14px; color: var(--mut); font-size: 11px; }
.trust span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- 404 / gangguan / perbaikan / halaman polos ---------- */
.bare { min-height: 100vh; }
.notfound { max-width: 460px; margin: 40px auto; padding: 0 16px; text-align: center; }
.notfound h1 { margin: 6px 0 8px; font-size: 24px; }
.notfound p { color: var(--mut); }
.nf-num { display: grid; place-items: center; font: 800 72px/1 var(--display); color: var(--gold-hi); text-shadow: 0 0 24px rgba(243, 214, 142, .35); }
.nf-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }

/* ---------- layar game ---------- */
.gf { position: fixed; inset: 0; display: flex; flex-direction: column; background: #000; }
.gf-bar { height: 48px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.gf-name { flex: 1; min-width: 0; overflow: hidden; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.gf-frame { flex: 1; width: 100%; border: 0; background: #000; }
.gf-err { max-width: 420px; margin: auto; padding: 24px; text-align: center; }
.gf-err p { margin: 8px 0 16px; color: var(--mut); }
.gf-stage { position: relative; flex: 1; min-height: 0; }
.gf-stage .gf-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.gf-loading { position: absolute; inset: 0; z-index: 0; display: grid; place-content: center; justify-items: center; gap: 12px;
  background: #000; color: var(--mut); font-size: 12px; }
.gf-spin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(233, 199, 123, .25); border-top-color: var(--gold); animation: spin .8s linear infinite; }
.game-launching { position: fixed; inset: 0; z-index: 9999; display: grid; place-content: center; justify-items: center; gap: 12px;
  background: rgba(3, 19, 14, .97); color: var(--mut); font-size: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gf-spin { animation-duration: 2s; } }

/* ---------- modal masuk & notifikasi ---------- */
.modal { width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line2); border-radius: var(--r); background: var(--bg2); color: var(--tx); }
.modal::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(2px); }
.modal-card { position: relative; padding: 20px; }
.modal-x { position: absolute; top: 10px; right: 10px; padding: 4px; border: 0; background: none; color: var(--mut); cursor: pointer; }
.toasts { position: fixed; left: 50%; bottom: 16px; z-index: 60; width: min(420px, calc(100vw - 24px)); display: grid; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.toast { padding: 12px 14px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--bg3); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); pointer-events: auto; animation: toast-in .25s ease-out; }
.toast b { display: block; color: var(--gold); }
.toast span { color: var(--mut); font-size: 13px; }
.toast.ok { border-color: rgba(31, 157, 108, .6); }
.toast.bad { border-color: rgba(248, 113, 113, .6); }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .mq-track { animation: none; }
}
