/* =========================================================
   mega389 — Tema Kasino (Ungu · Emas · Merah · Hijau · Biru)
   Stylesheet utama, responsif untuk semua perangkat
   ========================================================= */

:root {
  --bg: #120a1f;
  --bg-2: #1b0f2e;
  --bg-3: #241540;
  --card: #1e1233;
  --card-2: #26183f;
  --line: rgba(255, 197, 61, 0.16);
  --line-soft: rgba(255, 255, 255, 0.08);
  --purple: #7c3aed;
  --purple-2: #a855f7;
  --gold: #ffc53d;
  --gold-2: #ffe08a;
  --red: #e63946;
  --green: #22c55e;
  --orange: #fb923c;
  --blue: #3b82f6;
  --brown: #6b4a2f;
  --text: #f5f3ff;
  --muted: #b9aecd;
  --muted-2: #8d80a6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 10px 30px rgba(255, 197, 61, 0.22);
  --wrap: 1200px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(124, 58, 237, 0.30), transparent 60%),
    radial-gradient(980px 560px at 92% 4%, rgba(255, 197, 61, 0.13), transparent 62%),
    radial-gradient(760px 520px at 50% 100%, rgba(230, 57, 70, 0.10), transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-2); text-decoration: underline; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }

/* ---------------------------------------------- age gate strip */
.agebar {
  background: linear-gradient(90deg, #2a0d12, #351018 55%, #2a0d12);
  border-bottom: 1px solid rgba(230, 57, 70, .35);
  font-size: 12.5px;
  color: #ffd7db;
}
.agebar .wrap {
  display: flex; gap: 10px; align-items: center; justify-content: center;
  padding: 7px 18px; text-align: center; flex-wrap: wrap;
}
.agebar b { color: #fff; }
.badge18 {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 20px; padding: 0 7px;
  background: var(--red); color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .4px; flex: none;
}

/* ---------------------------------------------- marquee pemenang */
.marquee {
  background: linear-gradient(90deg, rgba(34, 197, 94, .12), rgba(124, 58, 237, .14), rgba(255, 197, 61, .12));
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden; position: relative;
}
.marquee-inner {
  display: flex; gap: 34px; white-space: nowrap; width: max-content;
  padding: 8px 0; animation: slide 46s linear infinite;
  font-size: 13px; color: #e9e3f7;
}
.marquee:hover .marquee-inner { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 8px; }
.marquee-item i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green); flex: none;
}
.marquee-item b { color: var(--gold); font-weight: 700; }
.marquee-item span.g { color: var(--muted); }
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(18, 10, 31, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr { display: flex; align-items: center; gap: 16px; padding: 11px 18px; }
.logo { display: flex; align-items: center; gap: 11px; flex: none; }
.logo img { width: 42px; height: 42px; border-radius: 12px; }
.logo-txt { display: flex; flex-direction: column; line-height: 1.15; }
.logo-txt b {
  font-size: 21px; letter-spacing: .3px;
  background: linear-gradient(92deg, var(--gold), var(--orange) 55%, var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-txt small { font-size: 10.5px; color: var(--muted-2); letter-spacing: .5px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > li { list-style: none; position: relative; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > li > a {
  display: block; padding: 9px 12px; border-radius: 10px;
  color: #ece7f8; font-size: 14.5px; font-weight: 600; white-space: nowrap;
}
.nav > li > a:hover, .nav > li.on > a {
  background: rgba(124, 58, 237, .22); color: #fff; text-decoration: none;
}
.nav .sub {
  position: absolute; top: 100%; left: 0; min-width: 232px;
  background: #1d1231; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow);
  padding: 7px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: .18s ease;
}
.nav li:hover .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .sub a {
  display: block; padding: 8px 11px; border-radius: 8px;
  color: #ded7ee; font-size: 13.5px;
}
.nav .sub a:hover { background: rgba(255, 197, 61, .13); color: var(--gold); text-decoration: none; }

.hdr-act { display: flex; align-items: center; gap: 9px; flex: none; }
.btn-ghost {
  padding: 9px 15px; border-radius: 10px; font-size: 14px; font-weight: 700;
  border: 1px solid rgba(255, 197, 61, .45); color: var(--gold);
}
.btn-ghost:hover { background: rgba(255, 197, 61, .12); text-decoration: none; }
.btn-solid {
  padding: 9px 17px; border-radius: 10px; font-size: 14px; font-weight: 800;
  color: #2a1400; background: linear-gradient(94deg, var(--gold), var(--orange));
  box-shadow: var(--shadow-gold);
}
.btn-solid:hover { filter: brightness(1.07); color: #2a1400; text-decoration: none; }

.burger {
  display: none; margin-left: auto; width: 44px; height: 40px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(124, 58, 237, .16); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--gold); border-radius: 2px; }

/* search in header */
.hdr-search { position: relative; flex: none; }
.hdr-search input {
  width: 190px; padding: 9px 34px 9px 13px; border-radius: 10px;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .05);
  color: var(--text); font-size: 13.5px; font-family: var(--font);
}
.hdr-search input::placeholder { color: var(--muted-2); }
.hdr-search input:focus { outline: none; border-color: rgba(255, 197, 61, .5); }
.hdr-search button {
  position: absolute; right: 4px; top: 4px; width: 28px; height: 28px;
  border: 0; border-radius: 8px; background: transparent; color: var(--gold);
  cursor: pointer; font-size: 14px;
}
.search-sugg {
  position: absolute; top: 110%; left: 0; right: 0; z-index: 70;
  background: #1d1231; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px; display: none; max-height: 320px; overflow: auto;
}
.search-sugg a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: #ded7ee; }
.search-sugg a:hover { background: rgba(255, 197, 61, .12); text-decoration: none; }
.search-sugg small { display: block; color: var(--muted-2); font-size: 11px; }

/* ---------------------------------------------- breadcrumb */
.crumb { padding: 14px 0 2px; font-size: 13px; color: var(--muted); }
.crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.crumb li { display: flex; align-items: center; gap: 7px; }
.crumb li + li::before { content: "›"; color: var(--muted-2); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--gold); }
.crumb [aria-current] { color: var(--gold); }

/* ---------------------------------------------- hero */
.hero { position: relative; padding: 40px 0 26px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(620px 320px at 18% 20%, rgba(124, 58, 237, .34), transparent 62%),
    radial-gradient(560px 300px at 84% 30%, rgba(255, 197, 61, .17), transparent 64%);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .95fr; gap: 30px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 13px;
  padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  background: rgba(34, 197, 94, .14); border: 1px solid rgba(34, 197, 94, .34); color: #86efac;
}
.hero h1 {
  margin: 0 0 14px; font-size: clamp(27px, 4.1vw, 45px); line-height: 1.18; font-weight: 800;
  letter-spacing: -.4px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(93deg, var(--gold), var(--orange) 48%, var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 16.5px; color: #dcd4ee; margin: 0 0 20px; max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.btn-lg {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 14px; font-size: 15.5px; font-weight: 800;
}
.btn-primary {
  color: #2a1400; background: linear-gradient(96deg, var(--gold-2), var(--gold) 40%, var(--orange));
  box-shadow: 0 14px 34px rgba(255, 165, 40, .3);
}
.btn-primary:hover { filter: brightness(1.06); color: #2a1400; text-decoration: none; transform: translateY(-1px); }
.btn-outline { color: var(--text); border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.btn-tele { color: #fff; background: linear-gradient(96deg, #2aa8e0, var(--blue)); }
.btn-tele:hover { filter: brightness(1.07); color: #fff; text-decoration: none; }

.hero-note { font-size: 12.5px; color: var(--muted-2); max-width: 620px; }

.hero-card {
  background: linear-gradient(168deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: 20px; padding: 20px;
  box-shadow: var(--shadow);
}
.hero-card h3 { margin: 0 0 13px; font-size: 15.5px; color: var(--gold); letter-spacing: .3px; }
.hc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13.5px;
}
.hc-row:last-child { border-bottom: 0; }
.hc-row span { color: var(--muted); }
.hc-row b { color: var(--text); }
.hc-row b.g { color: var(--green); }
.hc-row b.y { color: var(--gold); }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.stat {
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 14px 16px;
}
.stat b { display: block; font-size: 20px; color: var(--gold); line-height: 1.3; }
.stat span { font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------- sections */
section { padding: 34px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: clamp(21px, 2.7vw, 30px); font-weight: 800; letter-spacing: -.3px; }
.sec-head h2 small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 5px; }
.sec-head a.more { font-size: 13.5px; font-weight: 700; white-space: nowrap; }

/* ---------------------------------------------- game cards */
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.game-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.gcard {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(170deg, var(--card-2), var(--card));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; transition: .2s ease; text-decoration: none; color: inherit;
}
.gcard:hover { transform: translateY(-4px); border-color: rgba(255, 197, 61, .42); box-shadow: var(--shadow); text-decoration: none; }
.gthumb {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center;
  overflow: hidden; border-bottom: 1px solid var(--line-soft);
}
.gthumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .14), transparent 60%);
}
.gthumb .reel {
  position: relative; z-index: 2; display: flex; gap: 6px; align-items: flex-end;
}
.gthumb .reel i {
  display: block; width: 15px; border-radius: 6px;
  background: rgba(255, 255, 255, .82); box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.gthumb .ini {
  position: relative; z-index: 3; font-size: 30px; font-weight: 900; letter-spacing: -1px;
  color: rgba(255, 255, 255, .96); text-shadow: 0 3px 14px rgba(0, 0, 0, .5);
}
.gthumb .rtp-chip {
  position: absolute; z-index: 4; top: 9px; right: 9px;
  background: rgba(10, 6, 18, .74); border: 1px solid rgba(34, 197, 94, .5);
  color: #86efac; font-size: 11px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(4px);
}
.gthumb .prov-chip {
  position: absolute; z-index: 4; bottom: 9px; left: 9px;
  background: rgba(10, 6, 18, .72); border: 1px solid var(--line-soft);
  color: #efe9fb; font-size: 10.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(4px);
}
.gbody { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.gbody h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.35; }
.gbody p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.gmeta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.tag {
  font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: rgba(124, 58, 237, .2); border: 1px solid rgba(124, 58, 237, .38); color: #d8c8ff;
}
.tag.v-t { background: rgba(230, 57, 70, .16); border-color: rgba(230, 57, 70, .4); color: #ffb3b8; }
.tag.v-m { background: rgba(251, 146, 60, .16); border-color: rgba(251, 146, 60, .42); color: #fed7aa; }
.tag.v-r { background: rgba(34, 197, 94, .15); border-color: rgba(34, 197, 94, .4); color: #a7f3c4; }

/* ---------------------------------------------- leaderboard */
.board {
  background: linear-gradient(168deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.board-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap;
}
.board-head b { font-size: 15px; color: var(--gold); }
.board-head span { font-size: 12px; color: var(--muted-2); }
.tbl-wrap { width: 100%; overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
table.tbl th {
  text-align: left; padding: 11px 14px; color: var(--muted);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--line-soft); white-space: nowrap;
}
table.tbl td { padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, .05); color: #e6e0f5; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr:hover td { background: rgba(124, 58, 237, .09); }
.rank {
  display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 8px;
  font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .07); color: var(--muted);
}
.rank.r1 { background: linear-gradient(140deg, var(--gold), var(--orange)); color: #2a1400; }
.rank.r2 { background: linear-gradient(140deg, #d7d9e0, #9aa0ad); color: #22252c; }
.rank.r3 { background: linear-gradient(140deg, #d08a4e, var(--brown)); color: #fff; }
.pct { font-weight: 800; }
.pct.hi { color: var(--green); }
.pct.mid { color: var(--gold); }
.pct.lo { color: var(--orange); }
.bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .09); overflow: hidden; min-width: 74px; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green), var(--gold)); }

/* ---------------------------------------------- tag cloud */
.cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.cloud a {
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-soft); color: #e2dbf3;
}
.cloud a:hover { background: rgba(255, 197, 61, .14); border-color: rgba(255, 197, 61, .45); color: var(--gold); text-decoration: none; }
.cloud a.hot { background: rgba(230, 57, 70, .15); border-color: rgba(230, 57, 70, .4); color: #ffb9be; }

/* ---------------------------------------------- generic cards / prose */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: linear-gradient(170deg, var(--card-2), var(--card));
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px;
}
.card h3 { margin: 0 0 9px; font-size: 16.5px; color: var(--gold-2); }
.card p { margin: 0 0 10px; font-size: 14px; color: #ddd6ee; }
.card p:last-child { margin-bottom: 0; }
.card .ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 19px; margin-bottom: 12px;
  background: rgba(124, 58, 237, .2); border: 1px solid rgba(124, 58, 237, .4);
}

.panel {
  background: linear-gradient(170deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 34px);
}

/* prose (artikel & konten panjang) */
.prose { font-size: 16px; line-height: 1.85; color: #e4def2; }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  margin: 34px 0 13px; font-size: clamp(20px, 2.5vw, 27px); line-height: 1.3;
  color: #fff; font-weight: 800; padding-left: 14px; border-left: 4px solid var(--gold);
}
.prose h3 { margin: 26px 0 10px; font-size: clamp(17px, 2vw, 20px); color: var(--gold-2); font-weight: 700; }
.prose h4 { margin: 20px 0 8px; font-size: 16px; color: #efe9fb; }
.prose p { margin: 0 0 15px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: #fff; }
.prose em { color: var(--gold-2); font-style: italic; }
.prose a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(255, 197, 61, .4); text-underline-offset: 3px; }
.prose a:hover { color: var(--gold-2); }
.prose blockquote {
  margin: 20px 0; padding: 15px 19px; border-left: 4px solid var(--purple);
  background: rgba(124, 58, 237, .11); border-radius: 0 12px 12px 0; color: #e8e2f6;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table {
  width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px;
  background: rgba(255, 255, 255, .03); border-radius: 12px; overflow: hidden;
  display: table;
}
.prose thead th {
  background: rgba(124, 58, 237, .22); color: #fff; text-align: left;
  padding: 11px 13px; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--line-soft);
}
.prose td { padding: 11px 13px; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) { background: rgba(255, 255, 255, .02); }
.table-scroll { width: 100%; overflow-x: auto; }

/* table of contents */
.toc {
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 17px 19px; margin: 0 0 26px;
}
.toc b { display: block; font-size: 13.5px; color: var(--gold); margin-bottom: 9px; letter-spacing: .3px; }
.toc ol { margin: 0; padding-left: 19px; }
.toc li { margin-bottom: 5px; font-size: 13.5px; }
.toc a { color: #d9d2ec; text-decoration: none; }
.toc a:hover { color: var(--gold); text-decoration: underline; }

/* ---------------------------------------------- article layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.sidebar { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 16px; }
.side-box {
  background: linear-gradient(170deg, var(--card-2), var(--card));
  border: 1px solid var(--line-soft); border-radius: 16px; padding: 17px;
}
.side-box h2 { margin: 0 0 12px; font-size: 14px; color: var(--gold); letter-spacing: .3px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 8px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13.5px; }
.side-list li:last-child { border-bottom: 0; }
.side-list a { color: #ded7ee; }
.side-list a:hover { color: var(--gold); }
.side-cta {
  background: linear-gradient(160deg, rgba(124, 58, 237, .28), rgba(230, 57, 70, .18));
  border: 1px solid rgba(255, 197, 61, .32); border-radius: 16px; padding: 19px; text-align: center;
}
.side-cta b { display: block; font-size: 15.5px; margin-bottom: 7px; color: #fff; }
.side-cta p { font-size: 12.5px; color: #ded7ee; margin: 0 0 13px; }

.post-head { padding: 22px 0 8px; }
.post-head h1 { margin: 8px 0 12px; font-size: clamp(25px, 3.6vw, 39px); line-height: 1.22; font-weight: 800; }
.post-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); align-items: center; }
.chip {
  padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: rgba(34, 197, 94, .15); border: 1px solid rgba(34, 197, 94, .38); color: #a7f3c4;
}
.chip.p { background: rgba(124, 58, 237, .2); border-color: rgba(124, 58, 237, .4); color: #d8c8ff; }
.chip.y { background: rgba(255, 197, 61, .15); border-color: rgba(255, 197, 61, .4); color: var(--gold-2); }
.chip.r { background: rgba(230, 57, 70, .15); border-color: rgba(230, 57, 70, .4); color: #ffb9be; }
.chip.b { background: rgba(59, 130, 246, .15); border-color: rgba(59, 130, 246, .4); color: #bfdbfe; }

.post-hero {
  height: clamp(150px, 26vw, 250px); border-radius: 18px; margin: 20px 0 26px;
  border: 1px solid var(--line-soft); position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.post-hero span {
  position: relative; z-index: 2; font-size: clamp(15px, 2.4vw, 23px); font-weight: 800;
  color: rgba(255, 255, 255, .93); text-align: center; padding: 0 22px; max-width: 760px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .55);
}
.post-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 80% at 50% 0, rgba(255, 255, 255, .12), transparent 62%);
}

/* article list cards */
.alist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.acard {
  display: flex; flex-direction: column;
  background: linear-gradient(170deg, var(--card-2), var(--card));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; transition: .2s ease; color: inherit; text-decoration: none;
}
.acard:hover { transform: translateY(-3px); border-color: rgba(255, 197, 61, .4); box-shadow: var(--shadow); text-decoration: none; }
.athumb { height: 132px; position: relative; display: grid; place-items: center; }
.athumb b {
  position: relative; z-index: 2; font-size: 13px; font-weight: 800; letter-spacing: 1.4px;
  text-transform: uppercase; color: rgba(255, 255, 255, .94);
}
.athumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(85% 80% at 50% 0, rgba(255, 255, 255, .14), transparent 60%); }
.abody { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.abody h3 { margin: 0; font-size: 16.5px; line-height: 1.35; color: #fff; font-weight: 700; }
.abody p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.abody .post-meta { margin-top: auto; padding-top: 6px; }

/* ---------------------------------------------- FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 11px; }
.faq-item {
  background: linear-gradient(170deg, var(--card-2), var(--card));
  border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden;
}
.faq-item > summary {
  padding: 15px 46px 15px 18px; cursor: pointer; font-weight: 700; font-size: 15px;
  color: #f1ecfd; position: relative; list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+"; position: absolute; right: 17px; top: 50%; transform: translateY(-50%);
  font-size: 21px; color: var(--gold); font-weight: 400; line-height: 1;
}
.faq-item[open] > summary::after { content: "−"; }
.faq-item[open] > summary { border-bottom: 1px solid var(--line-soft); color: var(--gold-2); }
.faq-body { padding: 15px 18px; font-size: 14.2px; color: #ddd6ee; line-height: 1.8; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------------------------------------------- steps */
.steps { counter-reset: st; display: flex; flex-direction: column; gap: 14px; }
.step {
  position: relative; padding: 17px 19px 17px 62px; border-radius: 14px;
  background: linear-gradient(170deg, var(--card-2), var(--card)); border: 1px solid var(--line-soft);
}
.step::before {
  counter-increment: st; content: counter(st);
  position: absolute; left: 17px; top: 17px; width: 31px; height: 31px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #2a1400;
  background: linear-gradient(140deg, var(--gold), var(--orange));
}
.step h3 { margin: 0 0 6px; font-size: 15.5px; color: #fff; }
.step p { margin: 0; font-size: 13.8px; color: #d9d2ec; line-height: 1.7; }

/* ---------------------------------------------- promo cards */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.promo {
  display: flex; flex-direction: column; border-radius: 18px; overflow: hidden;
  background: linear-gradient(170deg, var(--card-2), var(--card)); border: 1px solid var(--line);
}
.promo-top {
  padding: 19px; position: relative; text-align: center;
  border-bottom: 1px solid var(--line-soft);
}
.promo-top b { display: block; font-size: 28px; font-weight: 900; color: #fff; line-height: 1.2; text-shadow: 0 3px 14px rgba(0, 0, 0, .4); }
.promo-top span { font-size: 12.5px; color: rgba(255, 255, 255, .88); font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.promo-body { padding: 17px 18px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.promo-body h3 { margin: 0; font-size: 16.5px; color: var(--gold-2); }
.promo-body p { margin: 0; font-size: 13.5px; color: #d9d2ec; }
.terms { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.terms li { padding: 6px 0 6px 20px; position: relative; border-bottom: 1px dashed var(--line-soft); color: #cfc7e3; }
.terms li:last-child { border-bottom: 0; }
.terms li::before { content: "▸"; position: absolute; left: 3px; color: var(--gold); }
.terms li b { color: #fff; }

/* alert boxes */
.alert {
  display: flex; gap: 13px; padding: 15px 17px; border-radius: 14px; margin: 18px 0;
  font-size: 13.8px; line-height: 1.7;
}
.alert .ai { font-size: 19px; flex: none; line-height: 1.4; }
.alert.warn { background: rgba(230, 57, 70, .11); border: 1px solid rgba(230, 57, 70, .34); color: #ffd3d7; }
.alert.info { background: rgba(59, 130, 246, .11); border: 1px solid rgba(59, 130, 246, .34); color: #d6e6ff; }
.alert.ok { background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .32); color: #cdf5dc; }
.alert.gold { background: rgba(255, 197, 61, .1); border: 1px solid rgba(255, 197, 61, .34); color: #ffeec2; }
.alert b { color: #fff; }
.alert p { margin: 0 0 8px; }
.alert p:last-child { margin-bottom: 0; }

/* ---------------------------------------------- auth forms */
.auth-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: start; padding: 26px 0 8px; }
.auth-card {
  background: linear-gradient(168deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.auth-card h1 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 31px); font-weight: 800; }
.auth-card > p.sub { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: #e6e0f5; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 11px; font-size: 14.5px;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .05);
  color: var(--text); font-family: var(--font);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(255, 197, 61, .55); background: rgba(255, 255, 255, .07); }
.field small { display: block; margin-top: 5px; font-size: 11.5px; color: var(--muted-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 28px; font-size: 12.8px; color: #d3cbe8; margin-bottom: 15px; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--gold); cursor: pointer; }
.btn-block {
  display: block; width: 100%; text-align: center; padding: 15px 20px; border-radius: 13px;
  font-size: 16px; font-weight: 800; border: 0; cursor: pointer; font-family: var(--font);
  color: #2a1400; background: linear-gradient(96deg, var(--gold-2), var(--gold) 42%, var(--orange));
  box-shadow: 0 12px 30px rgba(255, 165, 40, .28);
}
.btn-block:hover { filter: brightness(1.06); text-decoration: none; color: #2a1400; }
.auth-alt { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* ---------------------------------------------- floating bottom CTA bar */
.floatbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(18, 10, 31, .82), rgba(10, 5, 18, .97));
  backdrop-filter: blur(14px); border-top: 1px solid rgba(255, 197, 61, .3);
  box-shadow: 0 -10px 34px rgba(0, 0, 0, .5);
}
.floatbar-in {
  max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 11px;
}
.fb-brand { display: flex; align-items: center; gap: 9px; flex: none; }
.fb-brand img { width: 38px; height: 38px; border-radius: 11px; }
.fb-brand div { line-height: 1.25; }
.fb-brand b { display: block; font-size: 13.5px; color: var(--gold); }
.fb-brand span { font-size: 10.5px; color: var(--muted-2); }
.fb-btns { display: flex; gap: 10px; flex: 1; }
.fb-btn {
  position: relative; flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 16px; border-radius: 14px; overflow: hidden;
  font-size: 15.5px; font-weight: 900; letter-spacing: .3px; text-align: center;
  white-space: nowrap; text-decoration: none; transition: transform .15s ease, filter .15s ease;
}
.fb-btn:hover { transform: translateY(-2px); filter: brightness(1.06); text-decoration: none; }
.fb-btn:active { transform: translateY(0); }
.fb-daftar {
  color: #2a1400;
  background: linear-gradient(96deg, #ffe08a, var(--gold) 34%, var(--orange) 74%, #f97316);
  box-shadow: 0 10px 26px rgba(255, 170, 45, .38), inset 0 1px 0 rgba(255, 255, 255, .55);
  animation: pulseGold 2.6s ease-in-out infinite;
}
.fb-login {
  color: #fff;
  background: linear-gradient(96deg, var(--purple-2), var(--purple) 55%, #5b21b6);
  box-shadow: 0 10px 26px rgba(124, 58, 237, .4), inset 0 1px 0 rgba(255, 255, 255, .28);
  border: 1px solid rgba(255, 255, 255, .16);
}
.fb-btn .ic { font-size: 17px; line-height: 1; }
/* efek kilau bergerak */
.fb-btn::before {
  content: ""; position: absolute; top: 0; left: -140%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-22deg); animation: shine 3.4s ease-in-out infinite;
}
.fb-login::before { animation-delay: 1.1s; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); }
@keyframes shine {
  0% { left: -140%; }
  55%, 100% { left: 150%; }
}
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 10px 26px rgba(255, 170, 45, .34), inset 0 1px 0 rgba(255, 255, 255, .55); }
  50% { box-shadow: 0 14px 34px rgba(255, 190, 60, .58), inset 0 1px 0 rgba(255, 255, 255, .6); }
}
/* koin emas beterbangan */
.coins { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.coins i {
  position: absolute; bottom: -12px; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff6cf, var(--gold) 45%, #d98a12);
  box-shadow: 0 0 7px rgba(255, 205, 80, .9);
  animation: coinUp 3.6s linear infinite;
}
.coins i:nth-child(1) { left: 9%;  animation-delay: 0s; }
.coins i:nth-child(2) { left: 27%; animation-delay: .7s; width: 7px; height: 7px; }
.coins i:nth-child(3) { left: 48%; animation-delay: 1.4s; }
.coins i:nth-child(4) { left: 68%; animation-delay: 2.1s; width: 6px; height: 6px; }
.coins i:nth-child(5) { left: 86%; animation-delay: 2.8s; }
@keyframes coinUp {
  0% { transform: translateY(0) scale(.7) rotate(0); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateY(-58px) scale(1) rotate(230deg); opacity: 0; }
}
.fb-note { display: none; }

/* jarak agar konten tidak tertutup floatbar */
body { padding-bottom: 104px; }
.site-footer { padding-bottom: 30px; }

/* ---------------------------------------------- footer */
.site-footer {
  margin-top: 40px; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(27, 15, 46, .6), rgba(10, 5, 18, .9));
  padding: 34px 0 24px;
}
.f-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 26px; }
.f-about p { font-size: 13px; color: var(--muted); margin: 12px 0; line-height: 1.75; }
.f-col h2 { margin: 0 0 13px; font-size: 13.5px; color: var(--gold); letter-spacing: .4px; }
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col li { margin-bottom: 8px; }
.f-col a { font-size: 13px; color: #cfc7e3; }
.f-col a:hover { color: var(--gold); }
.f-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.f-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px;
  border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-soft); color: #ddd6ee;
}
.f-badge.r { border-color: rgba(230, 57, 70, .42); color: #ffb9be; }
.f-bottom {
  margin-top: 28px; padding-top: 19px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.3px; color: var(--muted-2);
}
.f-legal { max-width: 900px; font-size: 12.3px; color: var(--muted-2); line-height: 1.8; margin-top: 14px; }

/* ---------------------------------------------- utilities */
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.center { text-align: center; }
.gap { height: 18px; }
.hr { height: 1px; background: var(--line-soft); border: 0; margin: 26px 0; }
.pill-row { display: flex; gap: 9px; flex-wrap: wrap; margin: 14px 0; }
.small { font-size: 12.5px; color: var(--muted-2); }
.cta-band {
  margin: 30px 0 0; padding: clamp(20px, 3vw, 32px); border-radius: 20px; text-align: center;
  background: linear-gradient(140deg, rgba(124, 58, 237, .3), rgba(230, 57, 70, .2) 60%, rgba(255, 197, 61, .18));
  border: 1px solid rgba(255, 197, 61, .34);
}
.cta-band h2 { margin: 0 0 10px; font-size: clamp(20px, 2.6vw, 28px); }
.cta-band p { margin: 0 auto 18px; max-width: 680px; font-size: 14.5px; color: #e9e3f7; }
.cta-band .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-band .small { margin-top: 14px; }

/* ---------------------------------------------- responsive */
@media (max-width: 1080px) {
  .f-grid { grid-template-columns: 1fr 1fr 1fr; }
  .f-about { grid-column: 1 / -1; }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar > * { flex: 1 1 260px; }
}

@media (max-width: 980px) {
  /* pada layar sedang, sembunyikan blok merek agar tombol mendapat ruang maksimum */
  .fb-brand { display: none; }
  .floatbar-in { max-width: 620px; }
}
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw);
    background: #170d27; border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 74px 14px 120px; overflow-y: auto; margin-left: 0;
    transform: translateX(105%); transition: transform .25s ease; z-index: 80;
  }
  .nav.open { transform: translateX(0); }
  .nav > li > a { padding: 12px 13px; font-size: 15px; }
  .nav .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 12px;
    display: none;
  }
  .nav li.open .sub { display: block; }
  .burger { display: flex; }
  .hdr-act { display: none; }
  .hdr-search { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .cards, .cards.c4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; padding-bottom: 148px; }
  .game-grid, .game-grid.g3 { grid-template-columns: repeat(2, 1fr); }
  .alist { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
  .cards, .cards.c2, .cards.c4 { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .prose { font-size: 15.5px; }
  .sec-head { align-items: flex-start; }
  /* floatbar mobile: tombol lebih besar & penuh */
  .floatbar-in { flex-direction: column; gap: 8px; }
  .fb-brand { display: none; }
  .fb-btns { width: 100%; gap: 9px; }
  .fb-btn { padding: 16px 10px; font-size: 16px; border-radius: 15px; }
  .fb-note {
    display: block; text-align: center; font-size: 10.5px; color: var(--muted-2);
    letter-spacing: .2px;
  }
}

@media (max-width: 420px) {
  .wrap { padding: 0 14px; }
  .game-grid, .game-grid.g3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gbody { padding: 11px 11px 13px; }
  .gbody h3 { font-size: 13.6px; }
  .gbody p { font-size: 11.8px; }
  .logo-txt b { font-size: 19px; }
  .fb-btn { font-size: 15px; padding: 15px 8px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
}

@media print {
  .floatbar, .site-header, .marquee, .agebar { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
}

/* ---------------------------------------------- utilitas aksesibilitas */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ---------------------------------------------- halaman pencarian */
.searchpage { max-width: 860px; }
.searchbig { display: flex; gap: 10px; margin-bottom: 12px; }
.searchbig input {
  flex: 1; padding: 15px 17px; border-radius: 14px; font-size: 15.5px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .05);
  color: var(--text); font-family: var(--font);
}
.searchbig input::placeholder { color: var(--muted-2); }
.searchbig input:focus { outline: none; border-color: rgba(255, 197, 61, .55); }
.searchbig button {
  flex: none; padding: 15px 28px; border: 0; border-radius: 14px; cursor: pointer;
  font-size: 15.5px; font-weight: 800; font-family: var(--font); color: #2a1400;
  background: linear-gradient(96deg, var(--gold), var(--orange));
  box-shadow: var(--shadow-gold);
}
.searchbig button:hover { filter: brightness(1.07); }
#search-status { margin: 6px 0 18px; color: var(--muted); }
#search-results .acard { min-height: auto; }
.sres {
  display: block; padding: 15px 17px; margin-bottom: 11px; border-radius: 14px;
  background: linear-gradient(170deg, var(--card-2), var(--card));
  border: 1px solid var(--line-soft); text-decoration: none; color: inherit;
}
.sres:hover { border-color: rgba(255, 197, 61, .42); text-decoration: none; }
.sres b { display: block; font-size: 16px; color: #fff; margin-bottom: 5px; }
.sres span { display: block; font-size: 13.2px; color: var(--muted); }
.sres em { font-style: normal; font-size: 11.5px; color: var(--gold); }

/* ---------------------------------------------- halaman 404 */
.nf { text-align: center; padding: 46px 0 30px; max-width: 720px; margin: 0 auto; }
.nf-code {
  font-size: clamp(76px, 15vw, 132px); font-weight: 900; line-height: 1;
  background: linear-gradient(96deg, var(--gold), var(--orange) 48%, var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nf h1 { font-size: clamp(22px, 3.4vw, 32px); margin: 12px 0 10px; }
.nf p { color: var(--muted); margin: 0 auto; max-width: 560px; }

@media (max-width: 720px) {
  .searchbig { flex-direction: column; }
  .searchbig button { width: 100%; }
}
