/* ========================================================================
   BERASTOGEL · RTP LIVE — AMOLED black & luxury gold theme
   ======================================================================== */
:root {
    --bg:        #000000;
    --bg-2:      #030303;
    --surface:   #090909;
    --surface-2: #11100b;
    --border:    #332b12;
    --text:      #fffdf2;
    --muted:     #b8af8b;

    --gold:      #d4af37;
    --gold-2:    #ffe88a;
    --purple:    #8f6a08;
    --purple-2:  #e1ba43;

    /* RTP heat */
    --hot:   #22e07a;   /* gacor  ≥ 80 */
    --warm:  #f7b731;   /* hangat 65–79 */
    --cold:  #ef5777;   /* dingin < 65 */

    --radius: 14px;
    --shadow: 0 10px 30px rgba(0,0,0,.45);
    --font-head: 'Rajdhani', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #000; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 50% -10%, #1a1403 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-2), var(--bg));
    background-attachment: scroll;
    background-color: #000;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 18px; border-radius: 10px; font-weight: 700;
    font-family: var(--font-head); letter-spacing: .04em; font-size: .95rem;
    cursor: pointer; border: 1px solid transparent; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold   { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #120e02; box-shadow: 0 6px 18px rgba(212,175,55,.32); }
.btn-gold:hover { box-shadow: 0 8px 24px rgba(212,175,55,.5); }
.btn-ghost  { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--purple-2); color: #fff; }
.btn-outline{ background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--purple-2); }

/* ---------------- Top bar ---------------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(3,3,3,.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.logo {
    font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: .02em;
    color: #fff; white-space: nowrap;
}
.logo span { color: var(--gold); text-shadow: 0 0 18px rgba(212,175,55,.5); }
.logo img { height: 42px; width: auto; max-width: 224px; object-fit: contain; display: block; }
.nav { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.nav a {
    font-family: var(--font-head); font-weight: 600; letter-spacing: .05em; font-size: .92rem;
    color: var(--muted); padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav a:hover { color: #fff; background: var(--surface); }
.nav a.active { color: var(--gold); }
.topbar-cta { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hamburger { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 48px 0 0; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(400px 200px at 15% 30%, rgba(143,106,8,.35), transparent 70%),
        radial-gradient(400px 200px at 85% 20%, rgba(212,175,55,.18), transparent 70%);
    pointer-events: none;
}
.hero-inner {
    position: relative; isolation: isolate; overflow: hidden; text-align: center;
    aspect-ratio: 1920 / 613; min-height: 300px; padding: 30px 28px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 1px solid rgba(212,175,55,.28); border-radius: 20px;
    background: #070604; box-shadow: 0 22px 60px rgba(0,0,0,.55);
}
.hero-brand-banner {
    position: absolute; z-index: 0; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px);
    max-width: none; object-fit: cover; object-position: center; pointer-events: none;
    filter: blur(3px) brightness(.63) saturate(.82); transform: scale(1.018);
}
.hero-inner::before {
    content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(0,0,0,.48), rgba(0,0,0,.3) 48%, rgba(0,0,0,.5)), linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.48));
}
.hero-inner > :not(.hero-brand-banner) { position: relative; z-index: 2; }
.hero-badge {
    display: inline-block; font-family: var(--font-head); font-weight: 600; letter-spacing: .1em;
    font-size: .8rem; color: var(--hot); background: rgba(34,224,122,.1);
    border: 1px solid rgba(34,224,122,.3); padding: 5px 14px; border-radius: 999px;
}
.hero h1 {
    font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 6vw, 4rem);
    margin: 16px 0 6px; letter-spacing: .01em; text-wrap: balance; line-height: 1.05;
}
.hero h1 span { color: var(--gold); text-shadow: 0 0 30px rgba(212,175,55,.45); }
.hero-sub { color: var(--muted); font-size: 1.02rem; margin: 0; }
.hero-sub b { color: var(--text); }
.marquee {
    margin-top: 34px; background: #000; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    overflow: hidden; white-space: nowrap; padding: 10px 0; font-family: var(--font-head); font-weight: 600; letter-spacing: .05em;
}
.marquee span { display: inline-block; padding-left: 100%; animation: scroll 26s linear infinite; color: var(--gold-2); }
@keyframes scroll { to { transform: translateX(-100%); } }

/* ---------------- Stats ---------------- */
.stats-shell { position: relative; }
.stats-arrow, .stat-icon { display: none; }
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    margin: 22px auto 8px; position: relative; z-index: 2;
}
.stat {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px 18px; text-align: left; box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.stat-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: var(--gold); line-height: 1; white-space: nowrap; }
.stat-lbl { display: block; margin-top: 0; color: var(--muted); font-size: .82rem; text-align: right; line-height: 1.25; }

/* ---------------- Controls ---------------- */
.controls {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    margin: 28px 0 18px; flex-wrap: wrap;
}
.providers { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    font-family: var(--font-head); font-weight: 600; letter-spacing: .03em; font-size: .86rem;
    padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap;
    background: var(--surface); border: 1px solid var(--border); color: var(--muted);
    text-transform: capitalize; transition: all .15s;
}
.chip:hover { color: #fff; border-color: var(--purple-2); }
.chip.active { background: linear-gradient(135deg, var(--purple), var(--purple-2)); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(143,106,8,.4); }
.controls-right { display: flex; gap: 10px; }
.search {
    display: flex; align-items: center; gap: 8px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 10px; padding: 0 12px;
}
.search span { color: var(--muted); }
.search input { background: none; border: 0; outline: none; color: var(--text); padding: 10px 0; width: 180px; font-family: var(--font-body); }
.sort {
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    border-radius: 10px; padding: 10px 12px; font-family: var(--font-body); cursor: pointer; outline: none;
}

/* ---------------- Grid & cards ---------------- */
.grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px;
}
.card {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column; transition: transform .15s ease, border-color .15s ease, box-shadow .2s ease;
    position: relative;
}
.card:hover { transform: translateY(-4px); border-color: var(--purple-2); box-shadow: 0 14px 34px rgba(143,106,8,.28); }
.card.gacor { border-color: rgba(34,224,122,.4); }
.card.gacor:hover { box-shadow: 0 14px 34px rgba(34,224,122,.3); }

.thumb { position: relative; aspect-ratio: 1 / 1; background: #090805; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gacor-badge {
    position: absolute; top: 8px; left: 8px; font-family: var(--font-head); font-weight: 700;
    font-size: .72rem; letter-spacing: .05em; color: #05230f; background: var(--hot);
    padding: 3px 9px; border-radius: 999px; box-shadow: 0 0 14px rgba(34,224,122,.6);
}
.prov-badge {
    position: absolute; bottom: 8px; right: 8px; font-size: .68rem; letter-spacing: .03em;
    color: var(--text); background: rgba(0,0,0,.65); border: 1px solid var(--border);
    padding: 3px 8px; border-radius: 6px; text-transform: capitalize; backdrop-filter: blur(4px);
}

.card-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.game-name {
    font-weight: 600; font-size: .92rem; line-height: 1.25; margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rtp-row { display: flex; align-items: baseline; justify-content: space-between; }
.rtp-label { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.rtp-val { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.rtp-val small { font-size: .8rem; opacity: .7; }
.bar { height: 7px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; transition: width .4s ease; }

.heat-hot  { color: var(--hot);  }
.heat-warm { color: var(--warm); }
.heat-cold { color: var(--cold); }
.fill-hot  { background: linear-gradient(90deg, #0f7a3e, var(--hot)); }
.fill-warm { background: linear-gradient(90deg, #a6741a, var(--warm)); }
.fill-cold { background: linear-gradient(90deg, #8a2540, var(--cold)); }

.pola-toggle {
    font-family: var(--font-head); font-weight: 600; letter-spacing: .04em; font-size: .78rem;
    background: var(--bg); border: 1px solid var(--border); color: var(--muted);
    border-radius: 8px; padding: 7px; cursor: pointer; text-align: center; transition: all .15s;
}
.pola-toggle:hover { color: #fff; border-color: var(--purple-2); }
.pola { display: none; flex-direction: column; gap: 4px; padding-top: 2px; }
.pola.open { display: flex; }
.pola-type { font-size: .72rem; color: var(--gold-2); letter-spacing: .03em; }
.pola-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.pola-cell { background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: 6px 8px; }
.pola-cell b { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--text); }
.pola-cell span { font-size: .64rem; color: var(--muted); }

/* ---------------- misc ---------------- */
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.loadmore-wrap { text-align: center; margin: 26px 0; }
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%); background-size: 400% 100%; animation: shine 1.4s infinite; }
@keyframes shine { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-card { height: 300px; border-radius: var(--radius); border: 1px solid var(--border); }

.footer { margin-top: 50px; border-top: 1px solid var(--border); background: var(--bg-2); padding: 32px 0; text-align: center; }
.foot-logo { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: #fff; }
.foot-logo span { color: var(--gold); }
.footer p { color: var(--muted); font-size: .86rem; max-width: 640px; margin: 12px auto 0; }
.footer .muted { opacity: .7; font-size: .78rem; }

/* Agency credit — deliberately quiet: separated by a hairline, smaller and
   dimmer than the disclaimer above it, so it reads as a signature on the
   client's site rather than an ad placed on it. */
.foot-credit {
    margin-top: 18px !important; padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: .72rem !important; opacity: .55; letter-spacing: .02em;
}
.foot-credit a { color: var(--gold); text-decoration: none; font-weight: 600; }
.foot-credit a:hover { text-decoration: underline; opacity: 1; }
.foot-credit:hover { opacity: .9; }

/* ---------------- responsive ---------------- */
@media (max-width: 760px) {
    .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 8px 16px; }
    .nav.open { display: flex; }
    .hamburger { display: block; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .controls { flex-direction: column; align-items: stretch; }
    .controls-right { }
    .search { flex: 1; } .search input { width: 100%; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .topbar-cta .btn-ghost { display: none; }
}

/* ============================================================
   Reference-style cards (RTP bar overlay + ribbon + buttons)
   ============================================================ */
.thumb { aspect-ratio: 1 / 1; }
.ribbon {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    font-family: var(--font-head); font-weight: 700; font-size: .68rem; letter-spacing: .06em;
    padding: 3px 10px; border-radius: 6px; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.4);
}
.r-TOP     { background: linear-gradient(135deg,#f5c518,#ff9800); color:#221a00; }
.r-NEW     { background: linear-gradient(135deg,#22c55e,#0ea968); }
.r-VIRAL   { background: linear-gradient(135deg,#ef4444,#b91c1c); }
.r-HOT     { background: linear-gradient(135deg,#f97316,#c2410c); }
.r-EKSKLUSIF { background: linear-gradient(135deg,#8f6a08,#d4af37); }

/* RTP progress bar overlaid on the bottom of the image */
.rtp-bar {
    position: relative; width: 100%;
    height: 22px; border-radius: 999px; background: rgba(0,0,0,.4);
    border: 1px solid var(--border); overflow: hidden;
    display: flex; align-items: center;
}
.rtp-bar > i {
    position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.28) 0 7px, transparent 7px 14px);
    background-size: 20px 20px; transition: width .4s ease;
}
.rtp-bar > span {
    position: relative; z-index: 2; margin: 0 11px 0 auto;
    font-family: var(--font-head); font-weight: 700; font-size: .86rem; color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.95);
}
.fill-hot  { background-color: #22c55e; }
.fill-warm { background-color: #f0a828; }
.fill-cold { background-color: #ef4444; }

.card-body { gap: 7px; padding: 10px; }
.btn-pola {
    width: 100%; font-family: var(--font-head); font-weight: 600; letter-spacing:.03em; font-size: .8rem;
    padding: 8px; border-radius: 8px; cursor: pointer; text-align:center; transition: all .15s;
    background: var(--surface); border: 1px solid var(--border); color: var(--muted);
}
.btn-pola:hover { color:#fff; border-color: var(--purple-2); background: var(--surface-2); }
.btn-pola.primary { background: linear-gradient(135deg,var(--purple),var(--purple-2)); color:#fff; border-color:transparent; }
.btn-pola.primary:hover { box-shadow: 0 4px 14px rgba(143,106,8,.45); }

/* ============================================================
   Modal: TIPS POLA GACOR
   ============================================================ */
.modal-overlay {
    position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.84); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay[hidden] { display: none; }
.modal {
    width: 100%; max-width: 720px; max-height: 92vh; overflow-y: auto;
    background: linear-gradient(180deg,var(--surface-2),var(--surface));
    border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
    position: relative; animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
    position: absolute; top: 12px; right: 14px; z-index: 3; background: none; border: 0;
    color: var(--muted); font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { color: #fff; }
.modal-head { text-align: center; padding: 20px 16px 8px; }
.modal-head h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: .06em; margin: 0; color: var(--gold); font-size: 1.35rem; }
.modal-head span { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing:.05em; }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 12px 18px 22px; }

.steps { display: flex; flex-direction: column; gap: 10px; }
.step { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.step-h { text-align: center; border-bottom: 1px dashed var(--border); padding-bottom: 8px; margin-bottom: 8px; }
.step-h b { display:block; font-family: var(--font-head); font-weight: 700; letter-spacing:.05em; color: var(--gold-2); font-size: .82rem; }
.step-h span { color: var(--text); font-size: .9rem; }
.step-b b { font-family: var(--font-head); color: var(--hot); font-size: 1.05rem; margin-right: 4px; }
.step-b span { color: var(--muted); font-size: .82rem; }
.step-b em { display:block; color: var(--muted); font-size: .78rem; font-style: normal; margin-top: 3px; }

.ginfo { display: flex; flex-direction: column; gap: 12px; }
.ginfo-top { display:flex; flex-direction: column; align-items:center; gap: 8px; }
.ginfo-top img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.gname { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; text-align:center; }
.ginfo-list { margin: 0; display: flex; flex-direction: column; gap: 0; }
.ginfo-list > div { display: flex; justify-content: space-between; align-items:center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ginfo-list dt { color: var(--muted); font-size: .78rem; letter-spacing: .04em; margin:0; }
.ginfo-list dd { margin: 0; font-weight: 600; font-size: .9rem; }
.ginfo-list dd.rtp { color: var(--hot); font-family: var(--font-head); font-size: 1.05rem; }
.ginfo-note { color: var(--muted); font-size: .74rem; line-height: 1.4; margin: 0; }
.w-100 { width: 100%; }

@media (max-width: 620px) {
    .modal-body { grid-template-columns: 1fr; }
    .ginfo { order: -1; }
}

/* ============================================================
   Provider carousel (circular logos + arrows)
   ============================================================ */
.controls-end { justify-content: flex-end; }
.provider-carousel { position: relative; margin: 26px 0 16px; }
.provider-carousel::before, .provider-carousel::after {
    content: ""; position: absolute; top: 0; bottom: 22px; width: 52px; z-index: 3; pointer-events: none;
}
.provider-carousel::before { left: 0; background: linear-gradient(90deg, var(--bg) 15%, transparent); }
.provider-carousel::after  { right: 0; background: linear-gradient(270deg, var(--bg) 15%, transparent); }
.pc-arrow {
    position: absolute; top: 47px; transform: translateY(-50%); z-index: 5;
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
    background: rgba(5,5,5,.78); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 1.2rem; line-height: 1;
    display: flex; align-items: center; justify-content: center; transition: all .16s;
    box-shadow: 0 6px 18px rgba(0,0,0,.45);
}
.pc-arrow:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-50%) scale(1.1); }
.pc-prev { left: -2px; } .pc-next { right: -2px; }
.pc-track {
    display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth;
    padding: 6px 46px; scrollbar-width: none; -ms-overflow-style: none;
}
.pc-track::-webkit-scrollbar { display: none; }
.pcard { flex: 0 0 auto; width: 84px; text-align: center; cursor: pointer; }
.pcard .circle {
    width: 70px; height: 70px; margin: 0 auto; border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, #221a00, #090805);
    border: 2px solid rgba(255,255,255,.55); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
.pcard .circle img { width: 80%; height: 80%; object-fit: contain; }
.pcard .circle .txt {
    width: 100%; height: 100%; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: #eee6c8; letter-spacing: .03em;
}
.pcard .name {
    display: block; margin-top: 13px; font-size: .72rem; color: var(--muted);
    text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pcard:hover .circle { border-color: var(--purple-2); transform: translateY(-2px); }
.pcard.active .circle { border-color: var(--gold); box-shadow: 0 0 18px rgba(212,175,55,.5); }
.pcard.active .name { color: var(--gold); font-weight: 600; }

/* ============================================================
   Mobile polish
   ============================================================ */
@media (max-width: 760px) {
    .hero { padding: 30px 0 0; }
    .hero h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
    .hero-sub { font-size: .9rem; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
    .stat { padding: 13px; }
    .stat-num { font-size: 1.5rem; }
    .provider-carousel { gap: 4px; margin: 18px 0 12px; }
    .pc-arrow { display: none; }            /* touch-scroll on mobile */
    .pc-track { gap: 10px; padding: 4px 0; }
    .pcard { width: 68px; }
    .pcard .circle { width: 58px; height: 58px; }
    .pcard .name { font-size: .66rem; }
    .controls-end { margin: 8px 0 16px; }
    .controls-right { width: 100%; }
    .search { flex: 1; } .search input { width: 100%; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .btn-pola { font-size: .74rem; padding: 7px; }
    .game-name { font-size: .84rem; }
    .rtp-bar { height: 18px; }
    .modal-head h3 { font-size: 1.15rem; }
    .modal-body { padding: 10px 14px 18px; gap: 12px; }
    .marquee { margin-top: 24px; font-size: .82rem; }
}
@media (max-width: 400px) {
    .grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Extra polish: QR banner · section head · tier tabs · fabs
   ============================================================ */
/* QR "anti blokir" banner */
.qr-banner {
    display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap;
    margin: 26px auto 0; max-width: 720px; padding: 20px 24px;
    background: linear-gradient(135deg, rgba(143,106,8,.18), rgba(212,175,55,.08));
    border: 1px solid var(--border); border-radius: 16px; position: relative; z-index: 2;
}
.qr-text { text-align: left; }
.qr-title { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1.05; color: #fff; letter-spacing: .02em; }
.qr-title span { color: var(--gold); text-shadow: 0 0 20px rgba(212,175,55,.5); }
.qr-text p { color: var(--muted); margin: 6px 0 12px; font-size: .9rem; }
.qr-text p b { color: var(--gold-2); }
.qr-box { text-align: center; background: #fff; padding: 8px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.qr-box img { width: 116px; height: 116px; display: block; object-fit: contain; }
.qr-box span { display: block; margin-top: 4px; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .1em; color: #000; }

/* Section heading */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 4px; flex-wrap: wrap; }
.sec-title { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: .04em; color: #fff; margin: 0; }
.sec-meta { color: var(--muted); font-size: .8rem; letter-spacing: .03em; }
.sec-meta b { color: var(--gold-2); }

/* RTP tier quick-filter tabs */
.tier-tabs { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.tier {
    font-family: var(--font-head); font-weight: 600; letter-spacing: .03em; font-size: .84rem;
    padding: 7px 14px; border-radius: 9px; cursor: pointer; border: 0; background: transparent; color: var(--muted); transition: all .15s;
}
.tier:hover { color: #fff; }
.tier.active { background: linear-gradient(135deg, var(--purple), var(--purple-2)); color: #fff; box-shadow: 0 3px 12px rgba(143,106,8,.4); }

/* Game-count badge on provider circle */
.pcard .circle { position: relative; overflow: visible; }
.pcount {
    position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); z-index: 3;
    font-family: var(--font-head); font-weight: 700; font-size: .62rem; line-height: 1; white-space: nowrap;
    background: var(--gold); color: #fff; padding: 3px 7px; border-radius: 999px;
    border: 2px solid var(--bg); box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

/* Floating Daftar (mobile) + back to top */
.fab-daftar {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 60; display: none;
    background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #fff;
    font-family: var(--font-head); font-weight: 700; letter-spacing: .05em; font-size: 1rem;
    padding: 12px 40px; border-radius: 999px; box-shadow: 0 10px 30px rgba(212,175,55,.45);
}
.back-top {
    position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(5,5,5,.88); backdrop-filter: blur(8px); border: 1px solid var(--border); color: #fff;
    font-size: 1.2rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s, transform .15s;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

@media (max-width: 760px) {
    .qr-banner { gap: 16px; padding: 16px; margin-top: 18px; }
    .qr-title { font-size: 1.2rem; }
    .qr-box img { width: 96px; height: 96px; }
    .sec-head { margin: 22px 0 2px; }
    .sec-title { font-size: 1.15rem; }
    .sec-meta { font-size: .72rem; width: 100%; }
    .controls { flex-direction: column; align-items: stretch; gap: 10px; }
    .tier-tabs { justify-content: space-between; }
    .tier { flex: 1; text-align: center; padding: 8px 6px; }
    .fab-daftar { display: block; }
    .back-top { bottom: 74px; }   /* clear the floating Daftar */
}

.booming-sec { margin-top: 26px; }
.booming-sec .sec-title { color: #fff; }

/* ============================================================
   Rating & trust
   ============================================================ */
.rating-sec { margin-top: 34px; }
.rating-box {
    display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px;
}
.rating-score { text-align: center; min-width: 130px; }
.rscore { font-family: var(--font-head); font-weight: 700; font-size: 3.4rem; line-height: 1; color: #fff; }
.rstars { position: relative; display: inline-block; font-size: 1.15rem; letter-spacing: 3px; color: #3a3215; }
.rstars-fill { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; color: var(--gold); width: 98%; }
.rcount { margin-top: 7px; color: var(--muted); font-size: .82rem; }
.rating-bars { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 6px; }
.rbar { display: flex; align-items: center; gap: 10px; }
.rbar-n { width: 10px; color: var(--muted); font-size: .8rem; text-align: right; }
.rbar-track { flex: 1; height: 9px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.rbar-track > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #0f7a3e, var(--hot)); width: 0; transition: width .6s ease; }

.trust-strip { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.trust {
    flex: 1; min-width: 150px; display: flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
}
.trust .ti { font-size: 1.35rem; }
.trust span:last-child { font-family: var(--font-head); font-weight: 600; letter-spacing: .02em; font-size: .9rem; color: var(--text); }

@media (max-width: 620px) {
    .rating-box { gap: 18px; padding: 16px; }
    .rscore { font-size: 2.6rem; }
    .rating-score { min-width: 100px; }
    .trust { min-width: 45%; }
}

/* JACKPOT nav highlight */
.nav a.nav-jp { color: var(--gold); font-weight: 700; }
.nav a.nav-jp:hover { background: rgba(212,175,55,.12); color: var(--gold-2); }

/* ============================================================
   Extra "gacor" polish
   ============================================================ */
/* Promo banner (rotating text) */
.promo-banner { background: linear-gradient(90deg, #b3121c, #ef4444); text-align: center; }
.promo-banner .wrap { padding: 8px 16px; }
.promo-banner span { color: #fff; font-family: var(--font-head); font-weight: 600; letter-spacing: .03em; font-size: .86rem; transition: opacity .4s; }

/* Jam gacor widget */
.jamgacor {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
    font-family: var(--font-head); font-weight: 600; letter-spacing: .03em; font-size: .9rem;
    color: var(--gold-2); background: rgba(212,175,55,.1); border: 1px solid rgba(212,175,55,.32);
    padding: 8px 16px; border-radius: 999px;
}
.jamgacor b { color: #fff; }

/* Hot toast (bottom-left rotating "game hot") */
.hot-toast {
    position: fixed; left: 16px; bottom: 16px; z-index: 55; max-width: 300px;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border); border-left: 3px solid var(--hot); border-radius: 12px;
    padding: 10px 14px; box-shadow: 0 12px 34px rgba(0,0,0,.55);
    display: flex; align-items: center; gap: 10px; animation: toastIn .35s ease;
}
.hot-toast[hidden] { display: none; }
.hot-toast img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.hot-toast .ht-txt { font-size: .8rem; line-height: 1.3; color: var(--text); }
.hot-toast .ht-txt b { color: var(--hot); }
@keyframes toastIn { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Salin Pola row */
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

/* Card polish: image zoom + shine sweep */
.thumb img { transition: transform .35s ease; }
.card:hover .thumb img { transform: scale(1.07); }
.thumb::after {
    content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.22) 50%, transparent 58%);
    transform: translateX(-130%); transition: transform .65s ease;
}
.card:hover .thumb::after { transform: translateX(130%); }

/* Booming → horizontal auto-scroll strip */
.booming-grid {
    display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth;
    scrollbar-width: none; padding: 2px 2px 8px;
}
.booming-grid::-webkit-scrollbar { display: none; }
.booming-grid .card { flex: 0 0 180px; }

/* Sticky filter bar */
.controls {
    position: sticky; top: 64px; z-index: 40;
    background: var(--bg); border-bottom: 1px solid var(--border);
    margin: 20px 0 16px; padding: 10px 0;
}

@media (max-width: 620px) {
    .hot-toast { left: 10px; bottom: 78px; max-width: 230px; padding: 8px 12px; }
    .hot-toast img { width: 34px; height: 34px; }
    .booming-grid .card { flex: 0 0 150px; }
    .controls { top: 62px; }
}

/* ============================================================
   BERASTOGEL · distinct UI — ring-gauge cards + provider pills
   (overrides the PUSATGAME card/provider look; same features)
   ============================================================ */

/* --- Cosmic hero flourish (orbital ring) --- */
.hero { padding: 56px 0 0; }
.hero::after {
    content: ""; position: absolute; left: 50%; top: 30px; width: 540px; height: 540px;
    transform: translateX(-50%); border-radius: 50%; pointer-events: none; z-index: 0;
    border: 1px solid rgba(212,175,55,.18);
    box-shadow: 0 0 0 46px rgba(212,175,55,.045), 0 0 0 128px rgba(212,175,55,.03);
}
.hero .wrap, .marquee { position: relative; z-index: 1; }

/* --- Promo banner + jackpot accent (BERASTOGEL) --- */
.promo-banner { background: linear-gradient(90deg, #5d4305, #a6741a 55%, #d4af37); color: #fffdf2; }
.nav a.nav-jp { color: #ffe88a; font-weight: 700; }
.nav a.nav-jp:hover { background: rgba(255,232,138,.12); color: #fff2b5; }

/* --- Provider PILLS (replaces circular carousel) --- */
.pc-track { gap: 10px; padding: 6px 46px; align-items: stretch; }
.opill {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    font-family: var(--font-head); font-weight: 600; letter-spacing: .02em; font-size: .86rem;
    padding: 9px 14px; border-radius: 12px; white-space: nowrap;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border); color: var(--muted); text-transform: capitalize;
    transition: border-color .15s, color .15s, box-shadow .15s, transform .12s;
}
.opill:hover { color: #fff; border-color: var(--purple-2); transform: translateY(-1px); }
.opill.active {
    color: #fff; border-color: transparent;
    background: linear-gradient(135deg, var(--purple), var(--purple-2));
    box-shadow: 0 6px 18px rgba(143,106,8,.4);
}
.opill-dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
/* Provider logo replaces the dot, but only after it loads — a missing file
   leaves the dot exactly as before. */
.oplogo { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }
.opill.has-logo .opill-dot { display: none; }
.opill-c {
    font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 999px;
    background: rgba(255,255,255,.08); color: inherit;
}
.opill.active .opill-c { background: rgba(255,255,255,.22); }

/* --- BERASTOGEL game card (RTP ring-gauge over the image) --- */
.grid { grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 16px; }
.ocard {
    position: relative; border-radius: 16px; overflow: hidden;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border); display: flex; flex-direction: column;
    transition: transform .16s ease, border-color .16s ease, box-shadow .22s ease;
}
.ocard:hover { transform: translateY(-5px); border-color: var(--purple-2); box-shadow: 0 16px 40px rgba(143,106,8,.32); }
.ocard.heat-hot { border-color: rgba(34,224,122,.35); }
.ocard.heat-hot:hover { box-shadow: 0 16px 40px rgba(34,224,122,.3); }

.othumb { position: relative; aspect-ratio: 1 / 1; background: #090805; overflow: hidden; }
.othumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ocard:hover .othumb img { transform: scale(1.08); }
.othumb::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.84));
}
.oribbon {
    position: absolute; top: 9px; left: 9px; z-index: 3;
    font-family: var(--font-head); font-weight: 700; font-size: .66rem; letter-spacing: .06em;
    padding: 3px 9px; border-radius: 6px; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.45);
}

/* the ring gauge */
.ogauge {
    --ring: #d4af37;
    position: absolute; right: 9px; bottom: 9px; z-index: 3;
    width: 54px; height: 54px; border-radius: 50%;
    background: conic-gradient(var(--ring) calc(var(--v) * 1%), rgba(255,255,255,.12) 0);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.5);
}
.ogauge::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #100d05; }
.ogauge span {
    position: relative; z-index: 2; font-family: var(--font-head); font-weight: 700;
    font-size: .92rem; color: #fff; line-height: 1;
}
.ogauge span small { font-size: .58rem; opacity: .8; }
.ogauge.heat-hot  { --ring: #22e07a; }
.ogauge.heat-warm { --ring: #f7b731; }
.ogauge.heat-cold { --ring: #ef5777; }

.ocard-b { padding: 11px 12px 13px; display: flex; flex-direction: column; gap: 9px; }
.oname {
    margin: 0; font-family: var(--font-head); font-weight: 600; font-size: .96rem; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text);
}
.ometa { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.oprov {
    font-size: .7rem; letter-spacing: .03em; color: var(--muted); text-transform: capitalize;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.otier {
    font-family: var(--font-head); font-weight: 700; font-size: .62rem; letter-spacing: .06em;
    padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.otier.heat-hot  { color: #05230f; background: var(--hot); }
.otier.heat-warm { color: #2a1c00; background: var(--warm); }
.otier.heat-cold { color: #2a0912; background: var(--cold); }
.obtn {
    width: 100%; font-family: var(--font-head); font-weight: 700; letter-spacing: .03em; font-size: .82rem;
    padding: 9px; border-radius: 10px; cursor: pointer; border: 0; color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--purple-2));
    box-shadow: 0 4px 14px rgba(143,106,8,.32); transition: box-shadow .15s, transform .12s;
}
.obtn:hover { box-shadow: 0 7px 20px rgba(212,175,55,.5); transform: translateY(-1px); }

/* Lihat Pola + Demo side by side; only games with a verified demo get the
   second button, so the single-button layout above still applies elsewhere.
   Flex, not grid: the label must be allowed to shrink instead of wrapping onto
   a second line, which is what made these cards look bloated. */
.ocard-actions { display: flex; gap: 6px; align-items: stretch; }
.ocard-actions .obtn {
    width: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-size: .76rem; padding: 8px 9px; line-height: 1.2;
}
.ocard-actions .obtn:not(.obtn-demo) { flex: 1 1 auto; min-width: 0; }
/* Two class levels on purpose: the theme block near the end of this sheet forces
   `color` on every .obtn with !important, and an equally specific rule declared
   earlier would lose to it. */
.ocard-actions .obtn-demo {
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    white-space: nowrap; padding-inline: 12px;
    background: rgba(16,185,129,.14); border: 1px solid rgba(16,185,129,.5);
    color: #34d399 !important; box-shadow: none;
}
.ocard-actions .obtn-demo:hover { background: rgba(16,185,129,.24); border-color: #34d399; box-shadow: none; }
.ocard-actions .obtn-demo { flex: 0 0 auto; padding-inline: 11px; }

/* booming strip uses the same card */
.booming-grid .ocard { flex: 0 0 190px; }

@media (max-width: 760px) {
    .grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
    .ogauge { width: 46px; height: 46px; }
    .ogauge span { font-size: .8rem; }
    .oname { font-size: .86rem; }
    .booming-grid .ocard { flex: 0 0 158px; }
}

/* pill carousel: recenter arrows + fades (pills are shorter than PST circles) */
.provider-carousel .pc-arrow { top: 50%; }
.provider-carousel::before, .provider-carousel::after { bottom: 0; }
.provider-carousel .pc-arrow:hover { border-color: var(--purple-2); color: var(--purple-2); }
.pcard.active .name, .pcard.active .circle { /* legacy, unused in BERASTOGEL */ }


/* ============================================================
   BERASTOGEL · black + yellow overrides  (legible dark text on yellow)
   ============================================================ */
.hero::after { border-color: rgba(212,175,55,.16); box-shadow: 0 0 0 46px rgba(212,175,55,.05), 0 0 0 128px rgba(212,175,55,.03); }
.hero::before {
    background:
        radial-gradient(420px 210px at 15% 30%, rgba(212,175,55,.16), transparent 70%),
        radial-gradient(420px 210px at 85% 20%, rgba(143,106,8,.12), transparent 70%);
}

/* promo bar: black with yellow text (not white on yellow) */
.promo-banner { background: #0a0a0a; border-bottom: 1px solid var(--border); }
.promo-banner span { color: var(--gold); }

/* JACKPOT nav — keep a hot gold pop */
.nav a.nav-jp { color: #d4af37; }
.nav a.nav-jp:hover { background: rgba(212,175,55,.14); color: #fff2b5; }

/* dark, readable text on every yellow/amber accent surface */
.btn-gold, .fab-daftar, .obtn, .opill.active, .tier.active, .chip.active, .btn-pola.primary, .pcount { color: #1a1600 !important; }
.btn-gold:hover, .obtn:hover { box-shadow: 0 8px 22px rgba(212,175,55,.5); }

/* RTP ring: default track colour = yellow */
.ogauge { --ring: #d4af37; }

.foot-links { display: flex; justify-content: center; gap: 18px; margin: 12px 0; }
.foot-links a { color: var(--gold-2); font-family: var(--font-head); font-weight: 700; }
.foot-links a:hover { color: #fff; }
.ogauge::before { background: #0c0b06; }

/* marquee yellow on black */
.marquee span { color: var(--gold-2); }

/* seamless marquee — two copies scroll -50% so the strip is never blank
   (old padding-left:100% left a gap that read as "text vanished" on mobile) */
#marquee { display: inline-block; padding-left: 0; white-space: nowrap; animation: mqscroll 34s linear infinite; }
@keyframes mqscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   Prediksi AI RTP — banner slider + console modal + results
   ============================================================ */
.ai-sec { margin-top: 30px; scroll-margin-top: 92px; }
.ai-showcase {
    overflow: hidden; border: 1px solid var(--border); border-radius: 20px;
    background: #070704; box-shadow: 0 18px 50px rgba(0,0,0,.42);
}
.ai-slider { position: relative; overflow: hidden; isolation: isolate; }
.ai-slider-track { display: flex; transition: transform .55s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.ai-slide {
    flex: 0 0 100%; min-width: 0; min-height: 318px; position: relative; overflow: hidden;
    display: grid; grid-template-columns: minmax(0,1fr) 280px; align-items: center; gap: 30px;
    padding: 38px 78px; background:
        radial-gradient(circle at 82% 28%, rgba(255,213,74,.19), transparent 31%),
        linear-gradient(120deg, #080805 0%, #111006 55%, #080805 100%);
}
.ai-slide::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
    background-image: linear-gradient(rgba(212,175,55,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(212,175,55,.16) 1px, transparent 1px);
    background-size: 38px 38px; mask-image: linear-gradient(90deg, transparent 5%, #000 65%, transparent);
}
.ai-slide-two { background: radial-gradient(circle at 82% 45%, rgba(255,206,45,.2), transparent 29%), linear-gradient(125deg, #070704, #151105 58%, #070704); }
.ai-slide-three { background: radial-gradient(circle at 80% 45%, rgba(34,224,122,.1), transparent 28%), radial-gradient(circle at 70% 20%, rgba(255,212,62,.18), transparent 32%), linear-gradient(125deg, #070704, #110e04 58%, #070704); }
.ai-slide-copy { position: relative; z-index: 2; max-width: 680px; }
.ai-badge, .ai-eyebrow {
    display: inline-block; font-family: var(--font-head); font-weight: 700; letter-spacing: .12em;
    font-size: .7rem; color: var(--gold-2); border: 1px solid var(--border);
    padding: 5px 12px; border-radius: 999px;
}
.ai-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4.5vw, 3.25rem); margin: 16px 0 10px; line-height: .98; color: var(--text); letter-spacing: .01em; }
.ai-title span { background: linear-gradient(120deg, var(--gold), var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-slide-copy > p { color: var(--muted); margin: 0; max-width: 650px; font-size: .96rem; line-height: 1.58; }
.ai-feature-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ai-feature-row span { color: #eee2ae; border: 1px solid rgba(212,175,55,.22); background: rgba(212,175,55,.07); border-radius: 999px; padding: 7px 11px; font-size: .74rem; white-space: nowrap; }
.ai-slide-visual {
    width: 206px; height: 206px; justify-self: center; position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid rgba(255,215,72,.38);
    background: radial-gradient(circle, rgba(212,175,55,.17), rgba(0,0,0,.5) 64%);
    box-shadow: 0 0 0 18px rgba(212,175,55,.035), 0 0 62px rgba(212,175,55,.2);
}
.ai-slide-visual b { position: relative; z-index: 2; font-family: var(--font-head); font-size: 3.4rem; color: var(--gold-2); line-height: .9; text-shadow: 0 0 24px rgba(212,175,55,.45); }
.ai-slide-visual b small { font-size: 1.2rem; }
.ai-slide-visual em { position: relative; z-index: 2; margin-top: 9px; font-family: var(--font-head); color: var(--muted); font-size: .66rem; font-style: normal; letter-spacing: .16em; }
.ai-orbit { position: absolute; inset: 14px; border: 1px dashed rgba(255,221,92,.38); border-radius: 50%; animation: aiOrbit 13s linear infinite; }
.ai-orbit::before { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; top: 12px; left: 30px; background: var(--gold-2); box-shadow: 0 0 16px var(--gold); }
@keyframes aiOrbit { to { transform: rotate(360deg); } }
.ai-visual-bars { border-radius: 24px; flex-direction: row; align-items: end; gap: 8px; padding: 40px 36px 54px; }
.ai-visual-bars i { width: 18px; border-radius: 6px 6px 2px 2px; background: linear-gradient(#ffe173, #9d7200); box-shadow: 0 0 12px rgba(212,175,55,.2); }
.ai-visual-bars i:nth-child(1) { height: 30%; }.ai-visual-bars i:nth-child(2) { height: 52%; }.ai-visual-bars i:nth-child(3) { height: 42%; }.ai-visual-bars i:nth-child(4) { height: 78%; }.ai-visual-bars i:nth-child(5) { height: 94%; }
.ai-visual-bars em { position: absolute; bottom: 25px; }
.ai-visual-target span { position: absolute; inset: 30px; border: 1px solid rgba(255,221,92,.3); border-radius: 50%; box-shadow: 0 0 0 26px rgba(212,175,55,.04); }
.ai-visual-target span::before, .ai-visual-target span::after { content: ""; position: absolute; background: rgba(255,221,92,.36); }
.ai-visual-target span::before { width: 1px; height: calc(100% + 36px); left: 50%; top: -18px; }.ai-visual-target span::after { height: 1px; width: calc(100% + 36px); top: 50%; left: -18px; }
.ai-slider-arrow {
    position: absolute; z-index: 5; top: 50%; transform: translateY(-50%); width: 38px; height: 54px;
    border: 1px solid rgba(212,175,55,.26); background: rgba(0,0,0,.45); color: var(--gold-2);
    font-size: 2rem; line-height: 1; cursor: pointer; border-radius: 11px; backdrop-filter: blur(8px); transition: .18s ease;
}
.ai-slider-arrow:hover { background: rgba(212,175,55,.15); border-color: var(--gold); color: #fff5c7; }
.ai-slider-prev { left: 18px; }.ai-slider-next { right: 18px; }
.ai-slider-dots { position: absolute; z-index: 5; left: 50%; bottom: 17px; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; }
.ai-slider-dots button { width: 7px; height: 7px; border: 0; padding: 0; border-radius: 999px; background: rgba(255,255,255,.3); cursor: pointer; transition: width .25s, background .25s; }
.ai-slider-dots button.active { width: 27px; background: var(--gold-2); }
.ai-showcase-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 22px; border-top: 1px solid var(--border); background: linear-gradient(90deg, #090906, #111006, #090906); }
.ai-showcase-cta > div { display: flex; flex-direction: column; gap: 2px; }
.ai-showcase-cta b { color: var(--text); font-family: var(--font-head); font-size: 1rem; }
.ai-showcase-cta span { color: var(--muted); font-size: .78rem; }
.ai-open-btn { width: auto; min-width: 250px; margin: 0; padding-inline: 22px; }

.ai-console-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ai-ver { font-family: var(--font-head); font-weight: 700; font-size: .66rem; letter-spacing: .08em; color: var(--gold-2); background: rgba(255,255,255,.06); border-radius: 999px; padding: 4px 10px; }
.ai-console h3 { font-family: var(--font-head); font-weight: 700; margin: 0 0 6px; color: var(--text); font-size: 1.15rem; }
.ai-desc { color: var(--muted); font-size: .84rem; margin: 0 0 14px; line-height: 1.45; }
.ai-console label { display: block; font-family: var(--font-head); font-weight: 600; letter-spacing: .06em; font-size: .68rem; color: var(--muted); margin: 12px 0 5px; }
.ai-input {
    width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
    color: var(--text); padding: 11px 13px; font-family: var(--font-body); font-size: .9rem; outline: none;
}
.ai-input:focus { border-color: var(--gold); }
.ai-select { cursor: pointer; text-transform: capitalize; }
.ai-btn {
    width: 100%; margin-top: 16px; border: 0; border-radius: 12px; cursor: pointer;
    padding: 13px; font-family: var(--font-head); font-weight: 700; letter-spacing: .04em; font-size: .95rem;
    color: #1a1600; background: linear-gradient(135deg, #c89509, #ffe273);
    box-shadow: 0 8px 22px rgba(212,175,55,.25); transition: transform .12s, box-shadow .2s;
}
.ai-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(212,175,55,.38); }
.ai-btn:disabled { cursor: default; opacity: .6; }
.ai-progress { margin-top: 14px; }
.ai-bar { height: 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); overflow: hidden; }
.ai-bar > i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .12s linear; }
#aiStatus { display: block; margin-top: 7px; font-size: .8rem; color: var(--gold-2); font-family: var(--font-head); letter-spacing: .03em; }
.ai-note { margin: 14px 0 0; font-size: .74rem; color: var(--muted); }

.ai-results { margin-top: 24px; }
.ai-results .grid { grid-template-columns: repeat(auto-fill, minmax(198px, 1fr)); }
.ai-card { display: block; color: inherit; text-decoration: none; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: transform .15s ease, border-color .15s ease, box-shadow .2s ease; }
.ai-card:hover { transform: translateY(-4px); border-color: var(--purple-2); box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.ai-card-top { position: relative; aspect-ratio: 16 / 10; background: var(--bg); overflow: hidden; }
.ai-card-top img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-conf { position: absolute; top: 8px; right: 8px; font-family: var(--font-head); font-weight: 700; font-size: .72rem; color: #05230f; background: var(--hot); padding: 3px 9px; border-radius: 999px; box-shadow: 0 3px 10px rgba(0,0,0,.45); }
.ai-play { position: absolute; bottom: 8px; left: 8px; font-family: var(--font-head); font-weight: 700; font-size: .66rem; letter-spacing: .05em; color: #fff; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.2); padding: 3px 9px; border-radius: 6px; backdrop-filter: blur(4px); }
.ai-card-b { padding: 11px 12px; display: flex; flex-direction: column; gap: 6px; }
.ai-card-name { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.ai-card-meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.ai-card-meta b.heat-hot { color: var(--hot); }
.ai-card-meta b.heat-warm { color: var(--warm); }
.ai-card-meta b.heat-cold { color: var(--cold); }
.ai-card-row { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); }
.ai-card-row b { color: var(--text); }
.ai-card-pola { font-size: .72rem; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 6px; }
.ai-card-pola b { color: var(--gold-2); font-family: var(--font-head); }
.ai-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.ai-actions .btn { flex: 1; min-width: 160px; }

/* AI Console Matrix modal */
body.ai-modal-open { overflow: hidden; }
.ai-console-modal { position: fixed; inset: 0; z-index: 140; display: flex; align-items: center; justify-content: center; padding: 18px; }
.ai-console-modal[hidden] { display: none; }
.ai-console-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(8px); animation: aiFade .2s ease; }
.ai-console-dialog {
    position: relative; z-index: 2; width: min(100%, 540px); max-height: calc(100dvh - 36px); overflow: auto;
    border: 1px solid rgba(212,175,55,.42); border-radius: 20px; background: #080806;
    box-shadow: 0 32px 100px rgba(0,0,0,.8), 0 0 42px rgba(212,175,55,.11); animation: aiModalIn .24s ease;
}
.ai-console-dialog .ai-console { background: linear-gradient(180deg, #111008, #080806); border: 0; border-radius: inherit; padding: 28px; }
.ai-console-close { position: absolute; z-index: 4; right: 13px; top: 11px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: rgba(0,0,0,.55); color: var(--muted); font-size: 1.45rem; line-height: 1; cursor: pointer; }
.ai-console-close:hover { color: #fff; border-color: var(--gold); }
.ai-console-modal.is-scanning .ai-console-close { pointer-events: none; opacity: .35; }
@keyframes aiFade { from { opacity: 0; } }
@keyframes aiModalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }

@media (max-width: 720px) {
    .stats-shell {
        display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; align-items: stretch;
        margin: 18px 0 6px; overflow: hidden; border: 1px solid rgba(212,175,55,.32); border-radius: 12px;
        background: #050504; box-shadow: 0 10px 28px rgba(0,0,0,.38);
    }
    .stats {
        display: flex; overflow-x: auto; overflow-y: hidden; gap: 0; scroll-snap-type: x mandatory;
        overscroll-behavior-inline: contain; scrollbar-width: none; padding: 0; margin: 0; background: #080806;
    }
    .stats::-webkit-scrollbar { display: none; }
    .stat {
        flex: 0 0 105px; min-width: 105px; height: 104px; scroll-snap-align: start;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        padding: 9px 6px; text-align: center; border: 0; border-right: 1px solid rgba(212,175,55,.16);
        border-radius: 0; background: linear-gradient(180deg, #111008, #080806); box-shadow: none;
    }
    .stat:last-child { border-right: 0; }
    .stat-icon { display: grid; place-items: center; width: 25px; height: 25px; margin-bottom: 1px; color: #fff5c8; }
    .stat-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 7px rgba(212,175,55,.32)); }
    .stat-num { font-size: 1.3rem; line-height: 1; color: var(--gold-2); }
    .stat-lbl { max-width: none; margin: 1px 0 0; color: #f2edd8; font-family: var(--font-head); font-weight: 700; font-size: .64rem; line-height: 1.08; letter-spacing: .025em; text-align: center; text-transform: uppercase; }
    .stats-arrow {
        display: grid; place-items: center; min-width: 0; padding: 0; border: 0; border-radius: 0;
        background: linear-gradient(180deg, #18160d, #0a0905); color: var(--gold-2);
        font-family: var(--font-head); font-size: 1.55rem; cursor: pointer; z-index: 2;
    }
    .stats-prev { border-right: 1px solid rgba(212,175,55,.24); }
    .stats-next { border-left: 1px solid rgba(212,175,55,.24); }
    .stats-arrow:disabled { color: #6e6544; cursor: default; }
    .stats-arrow:not(:disabled):active { background: rgba(212,175,55,.18); }
    .ai-showcase { border-radius: 15px; }
    .ai-slide { min-height: 320px; display: block; padding: 28px 38px 48px 26px; }
    .ai-slide-copy { z-index: 3; }
    .ai-badge { font-size: .6rem; letter-spacing: .09em; padding: 5px 9px; }
    .ai-title { font-size: clamp(1.8rem, 8.2vw, 2.15rem); max-width: none; margin: 14px 0 9px; line-height: 1; }
    .ai-slide-copy > p { max-width: none; font-size: .8rem; line-height: 1.48; }
    .ai-slide-visual { display: none; }
    .ai-slider-arrow { width: 28px; height: 40px; font-size: 1.45rem; border-radius: 9px; }
    .ai-slider-prev { left: 6px; }.ai-slider-next { right: 6px; }
    .ai-slider-dots { bottom: 16px; }
    .ai-feature-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: none; margin-top: 17px; }
    .ai-feature-row span { display: grid; place-items: center; min-height: 38px; white-space: normal; text-align: center; font-size: .62rem; line-height: 1.2; padding: 5px 4px; }
    .ai-showcase-cta { align-items: stretch; flex-direction: column; gap: 12px; padding: 14px; }
    .ai-showcase-cta b { font-size: .94rem; }
    .ai-showcase-cta span { font-size: .72rem; }
    .ai-open-btn { width: 100%; min-width: 0; }
    .ai-results .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .ai-sec { margin-top: 24px; }
    .ai-sec > .sec-head { align-items: flex-start; flex-direction: column; gap: 3px; }
    .ai-slide { min-height: 320px; padding: 26px 36px 47px 24px; }
    .ai-console-modal {
        align-items: center;
        justify-content: center;
        padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
    }
    .ai-console-dialog {
        width: min(100%, 430px);
        max-height: calc(100dvh - 28px);
        margin: auto;
        border: 1px solid rgba(212,175,55,.42);
        border-radius: 18px;
    }
    .ai-console-dialog .ai-console { padding: 26px 18px 22px; }
    .ai-console-head { padding-right: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    .ai-slider-track { transition: none; }
    .ai-orbit { animation: none; }
}

/* The source banner is 1920×613. Keep that ratio on wide screens, while
   mobile receives enough height for the live copy without clipping it. */
@media (max-width: 760px) {
    .hero { padding-top: 0; }
    .hero-inner { aspect-ratio: auto; min-height: 238px; padding: 24px 18px; border-radius: 15px; }
    .hero-brand-banner { object-position: center; filter: blur(2.5px) brightness(.56) saturate(.78); }
    .hero h1 { margin-top: 12px; }
    .hero-sub { line-height: 1.38; }
    .jamgacor { margin-top: 12px; }
    .hero .marquee { margin-top: 0; }
}
