/* ==========================================================================
   Dewa Kekayaan — base.css
   Token warna, reset dan komponen yang sama di semua layar.
   Tata letak per layar: mobile.css (<768) · tablet.css (768–1199) · desktop.css (≥1200)
   ========================================================================== */

:root {
  --bg: #07090f;
  --bg-2: #0c111d;
  --card: #111827;
  --card-2: #161f33;
  --line: rgba(245, 197, 66, .16);
  --line-strong: rgba(245, 197, 66, .45);
  --gold: #f5c542;
  --gold-2: #b8860b;
  --gold-hi: #ffe9a3;
  --gold-grad: linear-gradient(180deg, #ffe9a3 0%, #f5c542 45%, #b8860b 100%);
  --red: #b3122e;
  --green: #22c55e;
  --text: #f3f4f6;
  --muted: #9aa3b2;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hdr-h: 60px;
  --gap: 12px;
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }   /* atribut hidden menang atas display komponen (.btn, .alert, dll.) */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(245, 197, 66, .10), transparent 70%),
    radial-gradient(900px 500px at 100% 30%, rgba(179, 18, 46, .10), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 500 14px/1.5 var(--font);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.ic { flex: none; display: block; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  font-weight: 800; font-size: 13px; letter-spacing: .3px; text-transform: uppercase;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn-gold {
  background: var(--gold-grad); color: #1a1100;
  box-shadow: 0 4px 14px rgba(245, 197, 66, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-gold::after {               /* kilau emas berjalan */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%); animation: shine 3.2s ease-in-out infinite;
}
.btn-ghost { border: 1.5px solid var(--line-strong); color: var(--gold-hi); background: rgba(245, 197, 66, .06); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 15, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { height: var(--hdr-h); display: flex; align-items: center; gap: 16px; }
.hdr-logo img { height: 38px; width: auto; }
.hdr-nav { display: none; }
.hdr-act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hdr-burger {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line-strong); color: var(--gold);
}
.bal-pill {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 14px;
  border-radius: 999px; background: var(--card); border: 1px solid var(--line);
}
.bal-name { font-size: 11px; color: var(--muted); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bal-amt { font-weight: 800; color: var(--gold-hi); white-space: nowrap; }
.bal-ref { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--gold); }
.bal-ref.spin .ic { animation: rot .8s linear infinite; }

/* ---------- Marquee pengumuman ---------- */
.news { background: linear-gradient(90deg, rgba(179, 18, 46, .25), rgba(12, 17, 29, .9) 30%, rgba(12, 17, 29, .9) 70%, rgba(179, 18, 46, .25)); border-bottom: 1px solid var(--line); }
.news-in { display: flex; align-items: center; gap: 10px; height: 36px; overflow: hidden; }
.news-ic { color: var(--gold); }
.news-track { display: flex; gap: 80px; white-space: nowrap; animation: marquee 28s linear infinite; font-size: 12px; font-weight: 700; color: var(--gold-hi); text-transform: uppercase; letter-spacing: .4px; }

/* ---------- Laci menu ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(320px, 86vw);
  background: var(--bg-2); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-bg { opacity: 1; pointer-events: auto; }
.drawer-open { overflow: hidden; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-x { color: var(--gold); width: 40px; height: 40px; display: grid; place-items: center; }
.drawer-user { padding: 16px; background: linear-gradient(135deg, rgba(245, 197, 66, .12), transparent); border-bottom: 1px solid var(--line); }
.drawer-user small { color: var(--muted); display: block; }
.drawer-user strong { font-size: 18px; font-weight: 800; color: var(--gold-hi); }
.drawer-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.drawer-bal { margin-top: 8px; font-size: 13px; color: var(--muted); }
.drawer-bal b { color: var(--green); }
.drawer-nav { padding: 8px; display: flex; flex-direction: column; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; font-weight: 700; color: #d6dae2; position: relative; overflow: hidden; }
.drawer-nav a .ic { color: var(--gold); }
.drawer-nav a.on, .drawer-nav a:hover { background: rgba(245, 197, 66, .08); color: var(--gold-hi); }
.drawer-sep { padding: 14px 12px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.drawer-out { color: #ff8a8a !important; }

/* ---------- Bagian / judul ---------- */
main { display: block; }
.sec { margin-top: 22px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sec-h h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
.sec-h h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--gold-grad); }
.sec-h a { font-size: 12px; font-weight: 700; color: var(--gold); display: inline-flex; align-items: center; gap: 2px; }
.badge-live { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; color: #fff; background: var(--red); padding: 2px 8px; border-radius: 999px; }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }

/* ---------- Slider banner ---------- */
.slider { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.slides { display: flex; height: 100%; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.slide { flex: 0 0 100%; height: 100%; position: relative; overflow: hidden; }
.slide > img { width: 100%; height: 100%; object-fit: cover; }
.dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.dots button { width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .45); transition: width .3s, background .3s; }
.dots button.on { width: 22px; background: var(--gold); }

/* Slide CSS (tanpa gambar besar) */
.cs { display: flex; align-items: center; gap: 4%; padding: 6% 7%; height: 100%; }
.cs-1 { background: radial-gradient(120% 120% at 85% 50%, #5b0f1e 0%, #1b0a10 45%, #07090f 100%); }
.cs-2 { background: radial-gradient(120% 120% at 85% 50%, #0f3d2e 0%, #0a1712 45%, #07090f 100%); }
.cs-3 { background: radial-gradient(120% 120% at 85% 50%, #1e2a5e 0%, #0b1022 45%, #07090f 100%); }
.cs-txt { flex: 1; min-width: 0; }
.cs-kicker { font-size: clamp(10px, 1.6vw, 13px); font-weight: 800; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; }
.cs-title { font-size: clamp(20px, 4.4vw, 44px); line-height: 1.05; font-weight: 800; margin: 6px 0 8px; text-transform: uppercase; }
.cs-sub { font-size: clamp(11px, 1.8vw, 15px); color: #cfd4dc; margin-bottom: 12px; }
.cs-art { width: 34%; max-width: 300px; aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.cs-art img { width: 100%; height: auto; animation: float 4s ease-in-out infinite; filter: drop-shadow(0 10px 25px rgba(245, 197, 66, .35)); }
.cs-big { font-size: clamp(34px, 9vw, 96px); font-weight: 800; line-height: 1; animation: float 4s ease-in-out infinite; }
.cs .btn { height: 34px; font-size: 11px; }
.cs-bolt { color: var(--gold); filter: drop-shadow(0 0 18px rgba(245, 197, 66, .55)); animation: float 4s ease-in-out infinite; }
.cs-bolt .ic { width: 70%; height: auto; }

/* ---------- Hadiah ---------- */
.prize-panel { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.prize-panel h3 { font-size: 15px; font-weight: 800; text-transform: uppercase; }
.prize-panel > p { font-size: 12px; color: var(--muted); margin: 2px 0 10px; }
.prize-list { display: grid; gap: 8px; flex: 1; align-content: start; }
.prize { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .05); position: relative; overflow: hidden; }
.prize img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-strong); }
.prize b { font-size: 13px; display: block; }
.prize small { font-size: 11px; color: var(--muted); }
.prize-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.prize-strip::-webkit-scrollbar { display: none; }
.prize-strip .prize { flex: 0 0 auto; scroll-snap-align: start; background: var(--card); }
.prize-strip .prize-cta { background: var(--gold-grad); color: #1a1100; border: 0; font-weight: 800; }
.prize-strip .prize-cta small { color: #3a2a00; }

/* ---------- Menu cepat ---------- */
.quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 11px; font-weight: 700; color: #d6dae2; position: relative; overflow: hidden; text-align: center; }
.quick a .ic { color: var(--gold); }
.quick i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: radial-gradient(circle at 30% 20%, rgba(245, 197, 66, .25), rgba(245, 197, 66, .04)); }

/* ---------- Kartu member / tamu ---------- */
.mcard { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: linear-gradient(120deg, rgba(245, 197, 66, .16), rgba(179, 18, 46, .10)); border: 1px solid var(--line-strong); }
.mcard-txt { flex: 1; min-width: 0; }
.mcard-txt small { color: var(--muted); font-size: 11px; display: block; }
.mcard-txt b { font-size: 18px; font-weight: 800; color: var(--gold-hi); }
.mcard .btn { height: 38px; padding: 0 14px; font-size: 12px; }

/* ---------- Jackpot ---------- */
.jp { position: relative; max-width: 700px; margin: 0 auto; width: 100%; container-type: inline-size; }
.jp img { width: 100%; filter: drop-shadow(0 0 14px rgba(245, 197, 66, .35)); }
.jp-val {
  position: absolute; left: 24.5%; right: 21%; top: 34%; height: 33%;
  display: flex; align-items: center; justify-content: center; gap: .4em;
  background: radial-gradient(120% 140% at 50% 50%, #0f5a57 0%, #0a3b3c 55%, #072728 100%);
  border-radius: 6px; font-weight: 800; letter-spacing: 1px;
  font-size: clamp(14px, 4.6vw, 30px); font-size: 5.6cqw; color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(255, 255, 255, .35), 0 2px 0 rgba(0, 0, 0, .5);
}
.jp-val small { font-size: .8em; opacity: .9; }

/* ---------- Ticker penarikan (data asli) ---------- */
.ticker { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; }
.ticker-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.ticker-win { height: 132px; overflow: hidden; position: relative; mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); }
.ticker-list { list-style: none; animation: tickup var(--tick-dur, 20s) linear infinite; }
.ticker-list li { display: flex; justify-content: space-between; align-items: center; height: 44px; border-bottom: 1px dashed rgba(255, 255, 255, .06); font-size: 13px; }
.ticker-list li span { color: #cfd4dc; }
.ticker-list li b { color: var(--green); font-weight: 800; }
.ticker-list li small { color: var(--muted); font-size: 11px; margin-left: 6px; }
.jp-cta { justify-content: center; }
.jp-cta-list { list-style: none; display: grid; gap: 8px; margin-bottom: 12px; }
.jp-cta-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #cfd4dc; }
.jp-cta-list .ic { color: var(--gold); }
.jp-cta-list b { color: var(--gold-hi); }
.jp-cta-btn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- Provider ---------- */
.provs { display: grid; gap: 8px; }
.prov { height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; transition: border-color .2s, transform .2s; }
.prov-logo { flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: contain; background: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #1a1100; }
span.prov-logo { background: var(--gold-grad); }
.prov-name { font-size: 12px; font-weight: 700; color: #d6dae2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---------- Grid game ---------- */
.games { display: grid; gap: var(--gap); }
.game { position: relative; border-radius: 12px; overflow: hidden; background: var(--card); border: 1px solid rgba(255, 255, 255, .06); transition: transform .2s, box-shadow .2s, border-color .2s; }
.game-img { position: relative; aspect-ratio: 1; background: linear-gradient(135deg, #1a2236, #0f1522); }
.game-img img { width: 100%; height: 100%; object-fit: cover; }
.game-img img.img-fb { object-fit: contain; padding: 18%; opacity: .55; }
.game-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7, 9, 15, .55); opacity: 0; transition: opacity .2s; }
.game-play i { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #1a1100; box-shadow: 0 0 0 6px rgba(245, 197, 66, .2); }
.game-tag { position: absolute; top: 6px; left: 6px; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: var(--red); color: #fff; letter-spacing: .5px; }
.game-name { padding: 8px 8px 9px; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.game:hover { border-color: var(--line-strong); }
.game[hidden] { display: none; }
.game-link { display: block; }
.game-fav { position: absolute; top: 6px; right: 6px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(7, 9, 15, .65); color: #fff; border: 1px solid rgba(255, 255, 255, .15); transition: transform .15s, background .2s, color .2s; }
.game-fav:active { transform: scale(.85); }
.game.is-fav .game-fav { background: #e11d48; border-color: #e11d48; color: #fff; }
.game.is-fav .game-fav .ic { fill: currentColor; }
.game:hover .game-play, .game:focus-visible .game-play { opacity: 1; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Tentang (SEO) ---------- */
.about { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 16px; align-items: center; }
.about-art img { width: 100%; max-width: 260px; margin: 0 auto; animation: float 5s ease-in-out infinite; }
.about h2 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.about p { color: #c4cad4; font-size: 13px; margin-bottom: 8px; }
.about details summary { cursor: pointer; color: var(--gold); font-weight: 700; font-size: 13px; list-style: none; }
.about details summary::-webkit-details-marker { display: none; }
.about details[open] summary { margin-bottom: 8px; }
.about h3 { font-size: 14px; margin: 10px 0 4px; color: var(--gold-hi); }
.hl { color: var(--gold); font-weight: 700; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.feat { text-align: center; padding: 10px 6px; border-radius: 12px; background: rgba(255, 255, 255, .03); font-size: 11px; color: var(--muted); }
.feat .ic { color: var(--gold); margin: 0 auto 4px; }
.feat b { display: block; color: var(--text); font-size: 12px; }

/* ---------- Judul halaman + tombol kembali ---------- */
.page-h { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.page-back { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line-strong); color: var(--gold); }
.page-back .ic { transform: rotate(180deg); }
.page-h h1 { font-size: 22px; font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.page-h p { font-size: 12px; color: var(--muted); }

/* ---------- Chip provider (geser horizontal) ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 14px; padding-bottom: 2px; position: sticky; top: var(--hdr-h); z-index: 20; background: linear-gradient(var(--bg) 70%, transparent); padding-top: 8px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 12px; font-weight: 800; color: #cfd4dc; text-transform: uppercase; white-space: nowrap; }
.chip.on { background: var(--gold-grad); color: #1a1100; border-color: transparent; }
.chip img { width: 22px; height: 22px; border-radius: 50%; margin: 0 8px 0 -6px; }
.lobby-bar { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.lobby-search { flex: 1; max-width: 420px; }
.lobby-search input { height: 42px; }
.lobby-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.lobby-count b { color: var(--gold-hi); }

.game-label { margin: -2px 8px 9px; text-align: center; font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-label.top { color: var(--gold-hi); }

/* ---------- Indeks Hoki (halaman Game Populer) ---------- */
.hoki { margin: -2px 8px 9px; }
.hoki-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 4px; }
.hoki-top span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hoki-top b { font-size: 13px; }
.hoki-bar { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.hoki-bar i { display: block; height: 100%; border-radius: 999px; position: relative; overflow: hidden; }
.hoki-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-100%); animation: shine 2.6s ease-in-out infinite; }
.hoki-hi .hoki-bar i { background: linear-gradient(90deg, #16a34a, #4ade80); box-shadow: 0 0 10px rgba(74, 222, 128, .6); }
.hoki-hi .hoki-top b, .hoki-hi .hoki-top span { color: #4ade80; }
.hoki-ok .hoki-bar i { background: linear-gradient(90deg, #65a30d, #a3e635); }
.hoki-ok .hoki-top b { color: #a3e635; }
.hoki-mid .hoki-bar i { background: linear-gradient(90deg, #b45309, #f5c542); }
.hoki-mid .hoki-top b { color: var(--gold); }
.hoki-low .hoki-bar i { background: linear-gradient(90deg, #475569, #94a3b8); }
.hoki-low .hoki-top b { color: #cbd5e1; }
.note-small { margin-top: 14px; font-size: 11px; color: var(--muted); text-align: center; }

/* ---------- Bar RTP ---------- */
.rtp-bar { position: relative; height: 18px; margin: 0 8px 9px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.rtp-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; }
.rtp-bar span { position: relative; display: block; text-align: center; font-size: 10px; font-weight: 800; line-height: 18px; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.rtp-hi i { background: linear-gradient(90deg, #15803d, #22c55e); }
.rtp-ok i { background: linear-gradient(90deg, #65a30d, #a3e635); }
.rtp-mid i { background: linear-gradient(90deg, #b45309, #f5c542); }
.rtp-low i { background: linear-gradient(90deg, #991b1b, #ef4444); }

/* ---------- Promo ---------- */
.promos { display: grid; gap: 14px; }
.promo { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.promo-art { aspect-ratio: 16 / 9; overflow: hidden; background: var(--card-2); }
.promo-art img { width: 100%; height: 100%; object-fit: cover; }
.promo-art-css { display: grid; place-items: center; }
.promo-body { padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.promo-kicker { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: var(--gold); text-transform: uppercase; }
.promo-body h2 { font-size: 18px; font-weight: 800; }
.promo-body p { font-size: 13px; color: #c4cad4; margin-bottom: 6px; }
.promo-body b { color: var(--gold-hi); }
.notice { background: rgba(179, 18, 46, .08); border: 1px solid rgba(255, 107, 129, .25); border-radius: var(--radius); padding: 14px 16px; }
.notice h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; color: #ffb3c0; }
.notice ul { padding-left: 18px; font-size: 12px; color: #c4cad4; display: grid; gap: 4px; }
.notice a { color: var(--gold); font-weight: 700; }

/* ---------- Panel umum (akun, deposit, withdraw, riwayat) ---------- */
.panel { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-h h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; text-transform: uppercase; }
.panel-h h2 .ic { color: var(--gold); }
.cols { display: grid; gap: 14px; }
.cols > *, .hero > *, .auth > * { min-width: 0; }  /* isi lebar (mis. strip roda spin) tidak boleh melebarkan kolom */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stat small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.stat b { font-size: 18px; font-weight: 800; color: var(--gold-hi); }
.kv { display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07); font-size: 13px; }
.kv div:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { text-align: right; word-break: break-all; }
.rows { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .05); }
.row-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(245, 197, 66, .1); color: var(--gold); }
.row-ic.out { background: rgba(239, 68, 68, .12); color: #f87171; }
.row-ic.in { background: rgba(34, 197, 94, .12); color: #4ade80; }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main small { font-size: 11px; color: var(--muted); }
.row-end { text-align: right; }
.row-end b { display: block; font-size: 14px; }
.badge { display: inline-block; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; background: rgba(255, 255, 255, .08); color: #cfd4dc; }
.badge.ok { background: rgba(34, 197, 94, .15); color: #4ade80; }
.badge.wait { background: rgba(245, 197, 66, .15); color: var(--gold); }
.badge.bad { background: rgba(239, 68, 68, .15); color: #f87171; }
.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { flex: 1; height: 36px; padding: 0 14px; display: grid; place-items: center; border-radius: 999px; font-weight: 800; font-size: 12px; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.tabs .on { background: var(--gold-grad); color: #1a1100; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.amounts button { height: 42px; border-radius: 10px; background: #0a0f1a; border: 1px solid rgba(255, 255, 255, .1); font-weight: 800; font-size: 13px; color: var(--text); }
.amounts button.on { border-color: var(--gold); color: var(--gold-hi); box-shadow: 0 0 0 3px rgba(245, 197, 66, .15); }
.copy { display: flex; gap: 8px; }
.copy input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; background: #0a0f1a; border: 1px solid rgba(255, 255, 255, .1); color: var(--gold-hi); font: 700 13px var(--font); }
.copy .btn { height: 44px; }
.prose h2 { font-size: 16px; margin: 16px 0 6px; color: var(--gold-hi); }
.prose p, .prose li { font-size: 13px; color: #c4cad4; margin-bottom: 8px; }
.prose ol, .prose ul { padding-left: 20px; }

/* ---------- Spin Hari Keberuntungan ---------- */
.spn-reel { position: relative; background: #0a0f1a; border: 1px solid var(--line-strong); border-radius: 14px; padding: 18px 0; overflow: hidden; box-shadow: inset 0 0 30px rgba(0, 0, 0, .6); }
.spn-reel::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); background: var(--gold); z-index: 3; box-shadow: 0 0 14px var(--gold); }
.spn-ptr { position: absolute; left: 50%; transform: translateX(-50%); z-index: 4; color: var(--gold); font-size: 14px; line-height: 1; }
.spn-ptr.t { top: 2px; } .spn-ptr.b { bottom: 2px; }
#reel-viewport { overflow: hidden; width: 100%; }
#reel-strip { display: flex; will-change: transform; }
.reel-card { flex: 0 0 112px; width: 112px; margin: 0 5px; background: linear-gradient(160deg, #1f2638, #111827); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 6px; text-align: center; }
.reel-card img { width: 72px; height: 72px; object-fit: contain; margin: 0 auto; }
.reel-card span { display: block; font-size: 10px; color: var(--gold-hi); margin-top: 6px; font-weight: 700; line-height: 1.2; min-height: 24px; }
.spn-btn { height: 54px !important; font-size: 15px !important; margin-top: 16px; }
.spn-btn:disabled { opacity: .7; filter: grayscale(.4); cursor: not-allowed; }
.spn-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; min-height: 18px; }
.spn-modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .78); }
.spn-modal[hidden] { display: none; }
.spn-modal-box { width: min(340px, 100%); text-align: center; padding: 26px 20px; border-radius: 20px; background: linear-gradient(160deg, var(--card-2), var(--card)); border: 1px solid var(--gold); box-shadow: 0 0 40px rgba(245, 197, 66, .35); animation: popin .4s cubic-bezier(.2, .9, .3, 1.2); }
.spn-modal-box img { width: 110px; height: 110px; object-fit: contain; margin: 0 auto 8px; }
.spn-modal-box h3 { font-size: 20px; font-weight: 800; }
.spn-modal-box p { color: #cfd4dc; font-size: 13px; margin: 10px 0 18px; }

/* ---------- Elemen halaman akun / deposit / referral ---------- */
.txt-in { color: #4ade80; }
.txt-out { color: #f87171; }
.hint { font-size: 12px; color: var(--muted); margin-top: 8px; }
.hint a, .hint b { color: var(--gold); font-weight: 700; }
.share { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.steps { list-style: none; counter-reset: st; display: grid; gap: 10px; }
.steps li { counter-increment: st; position: relative; padding: 4px 0 4px 38px; font-size: 13px; line-height: 1.5; color: #c4cad4; min-height: 28px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #1a1100; font-weight: 800; font-size: 12px; }
.steps b { color: var(--gold-hi); }
.qr-box { text-align: center; padding: 16px; border-radius: 14px; background: #fff; color: #111; }
.qr-box small { display: block; font-size: 11px; color: #555; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.qr-amt { font-size: 26px; font-weight: 800; margin: 4px 0 8px; -webkit-text-fill-color: #8a6400; color: #8a6400; background: none; }
.qr-img { width: min(260px, 100%); margin: 0 auto 6px; }
.qr-img svg { width: 100%; height: auto; display: block; }
.dep-done { text-align: center; padding: 10px 0; }
.dep-done-ic { width: 70px; height: 70px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 197, 94, .15); color: #4ade80; }
.dep-done h3 { font-size: 18px; margin-bottom: 6px; }
.dep-done p { font-size: 13px; color: #c4cad4; margin-bottom: 14px; }
.dep-done b { color: var(--gold-hi); }
.acct-av { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #1a1100; font-weight: 800; font-size: 18px; }
.acct .bal-ref { width: 40px; height: 40px; border: 1px solid var(--line-strong); }
.quick-acct { grid-template-columns: repeat(3, 1fr); }
.row-end small { display: block; font-size: 10px; color: var(--muted); }
.row-end .badge { margin-top: 3px; }

.bank-act { display: flex; align-items: center; gap: 6px; flex: none; }
.bank-act form { display: inline; }
.bank-act button.badge { cursor: pointer; border: 0; display: inline-flex; align-items: center; gap: 4px; }
.bank-add { margin-top: 12px; }
.bank-add summary { list-style: none; cursor: pointer; }
.bank-add summary::-webkit-details-marker { display: none; }
.bank-pick { display: grid; gap: 8px; }
.bank-pick label { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); cursor: pointer; }
.bank-pick input { accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.bank-pick label:has(input:checked) { border-color: var(--gold); background: rgba(245, 197, 66, .08); }
.bank-pick b { display: block; font-size: 13px; }
.dep-acc { flex: 1; min-width: 0; }
.bank-pick label .badge { flex: none; border: 0; cursor: pointer; }
.bank-pick small { font-size: 11px; color: var(--muted); }

/* ---------- Halaman Masuk / Daftar ---------- */
.auth { display: grid; gap: 16px; margin-top: 16px; align-items: start; }
.auth-promo { display: none; }
.auth-card { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line-strong); border-radius: 18px; padding: 22px 18px; box-shadow: var(--shadow), 0 0 0 1px rgba(245, 197, 66, .06) inset; position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--gold-grad); }
.auth-head { text-align: center; margin-bottom: 16px; }
.auth-head img { width: 92px; margin: 0 auto 6px; animation: float 4s ease-in-out infinite; }
.auth-head h1 { font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.auth-head p { color: var(--muted); font-size: 13px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); margin-bottom: 18px; }
.auth-tabs a { height: 38px; display: grid; place-items: center; border-radius: 999px; font-weight: 800; font-size: 13px; color: var(--muted); text-transform: uppercase; }
.auth-tabs a.on { background: var(--gold-grad); color: #1a1100; }
.form { display: grid; gap: 12px; }
.form-2 { display: grid; gap: 12px; }
.fld label { display: block; font-size: 12px; font-weight: 700; color: #cfd4dc; margin-bottom: 6px; }
.fld label small { color: var(--muted); font-weight: 500; }
.inp { position: relative; }
.inp .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gold); pointer-events: none; }
.inp input, .inp select {
  width: 100%; height: 46px; padding: 0 12px 0 40px; border-radius: 12px;
  background: #0a0f1a; border: 1px solid rgba(255, 255, 255, .10); color: var(--text);
  font: 600 14px var(--font); outline: none; transition: border-color .2s, box-shadow .2s; appearance: none;
}
.inp select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.inp input::placeholder { color: #5f6878; font-weight: 500; }
.inp input:focus, .inp select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 197, 66, .18); }
.inp .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); }
.form .btn { height: 48px; font-size: 14px; margin-top: 4px; }
.form-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-note a { color: var(--gold); font-weight: 800; }
.alert { padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.alert-err { background: rgba(179, 18, 46, .18); border: 1px solid rgba(255, 107, 129, .4); color: #ffb3c0; }
.alert-ok { background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .4); color: #9ff0bb; }
.ref-ok { font-size: 11px; color: var(--green); margin-top: 4px; }
.trust { display: flex; justify-content: center; gap: 14px; margin-top: 16px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.trust span { display: inline-flex; align-items: center; gap: 4px; }
.trust .ic { color: var(--gold); }
.auth-promo h2 { font-size: 30px; line-height: 1.15; font-weight: 800; text-transform: uppercase; }
.auth-promo p { color: #c4cad4; margin: 8px 0 14px; }
.auth-promo .slider { aspect-ratio: 16 / 9; }
.auth-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.auth-perks div { padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.auth-perks b { display: block; color: var(--gold-hi); font-size: 15px; }

/* ---------- Popup banner saat pertama masuk ---------- */
.promo-pop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .78); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); cursor: pointer; animation: popfade .35s ease-out; }
.promo-pop[hidden] { display: none; }
.promo-pop-box { position: relative; width: min(720px, 100%); animation: popin .45s cubic-bezier(.2, .9, .3, 1.2); }
.promo-pop-box img { width: 100%; border-radius: 16px; border: 2px solid var(--gold); box-shadow: 0 0 0 6px rgba(245, 197, 66, .12), 0 20px 60px rgba(0, 0, 0, .7), 0 0 40px rgba(245, 197, 66, .35); }
.promo-pop-x { position: absolute; top: -14px; right: -14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #1a1100; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.promo-pop-hint { text-align: center; margin-top: 12px; font-size: 12px; color: #cfd4dc; letter-spacing: .5px; }
.promo-pop.out { animation: popout .25s ease-in forwards; }
@keyframes popfade { from { opacity: 0; } }
@keyframes popin { from { opacity: 0; transform: scale(.85) translateY(20px); } }
@keyframes popout { to { opacity: 0; } }

/* ---------- Footer ---------- */
.ftr { margin-top: 32px; border-top: 1px solid var(--line); background: var(--bg-2); }
.ftr-in { display: grid; gap: 18px; padding-top: 22px; padding-bottom: 18px; }
.ftr-brand img { width: 180px; }
.ftr-brand p { color: var(--muted); font-size: 12px; margin-top: 6px; max-width: 320px; }
.ftr-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 6px; }
.ftr-col a { display: block; color: #c4cad4; font-size: 13px; padding: 3px 0; }
.ftr-col a:hover { color: var(--gold-hi); }
.ftr-note { border-top: 1px solid rgba(255, 255, 255, .05); padding-top: 12px; padding-bottom: 14px; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.age { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--red); color: #ff6b81; font-weight: 800; font-size: 10px; flex: none; }

/* ---------- Tombol melayang Telegram ---------- */
.float-tg { position: fixed; right: 14px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #2aa3e0, #1c7fc0); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); overflow: hidden; }

/* ---------- Nav bawah (mobile/tablet; disembunyikan di desktop.css) ---------- */
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(10, 13, 22, .96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 64px; font-size: 10px; font-weight: 700; color: #aab2c0; position: relative; overflow: hidden; }
.bnav a.on { color: var(--gold); }
.bnav-mid { overflow: visible !important; }
.bnav-mid i { width: 56px; height: 56px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #1a1100; box-shadow: 0 0 0 5px var(--bg), 0 6px 20px rgba(245, 197, 66, .45); animation: pulse 2.4s ease-in-out infinite; }
.bnav-mid span { color: var(--gold-hi); }

/* ==========================================================================
   Efek klik ala kasino (dibuat oleh app.js pada elemen .fx)
   ========================================================================== */
.fx { overflow: hidden; transition: transform .12s ease; }
.fx:not(.float-tg) { position: relative; }
.fx:active { transform: scale(.96); }
.fx-ripple { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 233, 163, .55) 0%, rgba(245, 197, 66, .25) 40%, transparent 70%); transform: scale(0); animation: ripple .6s ease-out forwards; }
.fx-coin { position: fixed; z-index: 999; width: 9px; height: 9px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 35% 30%, #fff6cf, #f5c542 45%, #9a6b00); box-shadow: 0 0 6px rgba(245, 197, 66, .8); animation: coin .7s cubic-bezier(.2, .7, .3, 1) forwards; }

@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
@keyframes coin { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(.3) rotate(240deg); opacity: 0; } }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 40px)); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 5px var(--bg), 0 6px 20px rgba(245, 197, 66, .45); } 50% { box-shadow: 0 0 0 5px var(--bg), 0 6px 30px rgba(245, 197, 66, .8); } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes tickup { from { transform: translateY(0); } to { transform: translateY(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .news-track { white-space: normal; }
}
