/* akundemoslotid: mobile-first. Breakpoints: 700px (phone -> tablet), 820px (tab bar -> header nav). */
:root {
  --bg: #0e0c1d; --bg-2: #0a0916; --paper: #17142b; --paper-2: #211c3d; --ink: #f3f0fc; --ink-2: #aca6c8; --line: #2d2852;
  --violet: #7c4dff; --gold: #f5c542; --gold-2: #ffe08a; --red: #e5243b; --ok: #4ade80; --pc: var(--gold);
  --r: 16px; --tab-h: 62px; --safe-b: env(safe-area-inset-bottom, 0px);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tab-h) + var(--safe-b)); }
@media (min-width: 821px) { body { padding-bottom: 0; } }
img { max-width: 100%; }
a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.75rem, 6.4vw, 3rem); margin: .3rem 0 .5rem; }
h2 { font-size: clamp(1.18rem, 4.2vw, 1.45rem); margin: 0 0 .8rem; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.lead { font-size: 1.04rem; color: #d9d4ee; max-width: 640px; margin: 0 0 1.1rem; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gold { color: var(--gold); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--gold); color: #1b1600; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sec { margin: 2.2rem 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: .8rem; }
.sec-head h2 { margin: 0; }
.sec-head a { font-size: .9rem; white-space: nowrap; text-decoration: none; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(14, 12, 29, .88); backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 1.16rem; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { color: #fff; }
.brand-mark { border-radius: 10px; box-shadow: 0 0 0 1px rgba(245,197,66,.35), 0 4px 16px rgba(124,77,255,.35); }
.brand-text b { font-weight: 800; color: var(--gold); }
.brand-text i { font-style: normal; font-size: .62em; font-weight: 800; margin-left: 3px; padding: 1px 5px; border-radius: 5px; background: var(--red); color: #fff; vertical-align: 3px; }
.main-nav { display: none; margin-left: auto; gap: 4px; font-size: .92rem; }
.main-nav a { text-decoration: none; color: var(--ink-2); padding: 8px 11px; border-radius: 999px; }
.main-nav a:hover { color: #fff; background: var(--paper); }
.main-nav a[aria-current="page"] { color: #1b1600; background: var(--gold); font-weight: 700; }
.top-search { margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); background: var(--paper); border: 1px solid var(--line); }
@media (min-width: 821px) { .main-nav { display: flex; } .top-search { margin-left: 4px; } }

/* bottom tab bar (phones) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(16, 13, 34, .96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--ink-2); font-size: .7rem; font-weight: 600; }
.tabbar a[aria-current="page"] { color: var(--gold); }
.tabbar a[aria-current="page"] svg { filter: drop-shadow(0 0 6px rgba(245,197,66,.55)); }
@media (min-width: 821px) { .tabbar { display: none; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--ink-2); padding-top: .9rem; }
.crumbs a { color: var(--ink-2); text-decoration: none; }

/* home hero */
.hero { position: relative; isolation: isolate; overflow: hidden; margin: 12px -16px 0; padding: 150px 16px 26px; border-bottom: 1px solid var(--line); }
.hero-art img { position: absolute; z-index: -2; top: 0; right: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,12,29,.15) 0%, rgba(14,12,29,.55) 38%, rgba(14,12,29,.96) 68%, var(--bg) 100%); }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: #e9e3ff; padding: 5px 12px; border-radius: 999px;
  background: rgba(124,77,255,.28); border: 1px solid rgba(124,77,255,.6); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.hero-actions > a { flex: 1 1 180px; justify-content: center; }
.btn-light { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 999px; font-weight: 800;
  text-decoration: none; color: #17142b; background: #fff; box-shadow: 0 6px 22px rgba(0,0,0,.35); }
.btn-light:hover { color: #17142b; background: #f1edff; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: .84rem; color: #d9d4ee; }
.trust li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
@media (min-width: 701px) {
  .hero { margin: 16px 0 0; padding: 64px 48px; border: 1px solid var(--line); border-radius: 24px; min-height: 440px; display: flex; align-items: center; }
  .hero::after { background: linear-gradient(90deg, rgba(14,12,29,.97) 0%, rgba(14,12,29,.86) 38%, rgba(14,12,29,.15) 70%, rgba(14,12,29,0) 100%); }
  .hero-art img { object-position: right center; }
  .hero-inner { max-width: 560px; }
  .hero-actions > a { flex: 0 0 auto; }
}

/* search + chips */
.tools { position: sticky; top: 58px; z-index: 10; margin: 0 -16px 14px; padding: 10px 16px; background: rgba(14,12,29,.94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.search { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.search:focus-within { border-color: var(--gold); }
.search input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.chips { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 38px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--gold); color: #1b1600; border-color: var(--gold); }
.empty { padding: 18px; text-align: center; color: var(--ink-2); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r); }
@media (min-width: 701px) { .tools { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 18px; display: flex; gap: 14px; align-items: center; }
  .search { flex: 0 1 420px; } .chips { margin-top: 0; } }

/* game cards */
.ggrid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .ggrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .ggrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ggrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ggrid > div[hidden] { display: none; }
.ggrid.rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
.ggrid.rail::-webkit-scrollbar { display: none; }
.ggrid.rail > .gcard { flex: 0 0 min(44vw, 210px); scroll-snap-align: start; }
.gcard { position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .16s, border-color .16s, box-shadow .16s; }
.gcard:hover { color: var(--ink); transform: translateY(-3px); border-color: var(--pc); box-shadow: 0 10px 28px rgba(0,0,0,.4), 0 0 0 1px var(--pc); }
.gcard:active { transform: scale(.98); }
.gcard-img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--paper-2); }
.gcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcard-ph { display: grid; place-items: center; height: 100%; font-size: 2.4rem; font-weight: 800; color: var(--pc); }
.gcard-tag, .gcard-hot { position: absolute; top: 8px; font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.gcard-tag { left: 8px; color: #fff; background: rgba(14,12,29,.78); border: 1px solid rgba(255,255,255,.18); }
.gcard-hot { right: 8px; color: #06210f; background: var(--ok); }
.gcard-play { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1b1600; box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.gcard-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; }
.gcard-name { font-size: .96rem; line-height: 1.25; }
.gcard-meta { display: flex; flex-wrap: wrap; gap: 3px 8px; font-size: .75rem; color: var(--ink-2); }
.pbadge { color: var(--pc); font-weight: 700; }

/* game page */
.game-h1 { margin-bottom: .35rem; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; padding: 0; list-style: none; font-size: .82rem; color: var(--ink-2); }
.meta-chips li { padding: 4px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.meta-chips b { color: var(--ink); }
.meta-chips .pbadge a { color: var(--pc); text-decoration: none; }

/* CTA banner above the demo (copy: config/cta_copy.json) */
.hook { position: relative; isolation: isolate; margin: 14px 0 0; padding: 14px; border-radius: 20px 20px 0 0;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 12px; overflow: hidden;
  background: linear-gradient(120deg, #5a22c9 0%, #2c1663 50%, color-mix(in srgb, var(--pc) 45%, #2c1663) 100%);
  border: 1px solid #6a45d6; border-bottom: 0; box-shadow: 0 -6px 30px rgba(124,77,255,.25) inset; }
.hook::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.12) 45%, transparent 60%); background-size: 250% 100%; animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }
.hook-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 2px rgba(245,197,66,.7), 0 6px 16px rgba(0,0,0,.4); }
.hook-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hook-kicker { align-self: flex-start; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1b1600; background: var(--gold); padding: 2px 9px; border-radius: 999px; }
.hook-head { font-size: 1.06rem; line-height: 1.25; color: #fff; }
.hook-sub { grid-column: 1 / -1; font-size: .88rem; color: #e6defb; }
.hook-btn { grid-column: 1 / -1; justify-content: center; width: 100%; font-size: 1.05rem; min-height: 52px; animation: glow 2.2s ease-in-out infinite; }
.hook-note { grid-column: 1 / -1; font-size: .7rem; color: #c2b8e6; text-align: center; margin-top: -4px; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(245,197,66,.6), 0 6px 22px rgba(245,197,66,.3); } 50% { box-shadow: 0 0 0 10px rgba(245,197,66,0), 0 6px 22px rgba(245,197,66,.3); } }
.hook + .demo { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
@media (min-width: 701px) {
  .hook { grid-template-columns: auto 1fr auto; padding: 16px 18px; }
  .hook-thumb { grid-row: span 2; width: 76px; height: 76px; }
  .hook-head { font-size: 1.25rem; }
  .hook-sub { grid-column: 2; }
  .hook-btn { grid-column: 3; grid-row: 1 / span 2; width: auto; padding: 14px 26px; }
  .hook-note { grid-column: 3; text-align: center; }
}

/* demo frame */
.demo { margin: 14px 0 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #000; }
.demo-stage { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; align-content: center; gap: 12px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--pc) 35%, #0e0c1d), #07060f 70%); }
.demo-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; filter: blur(3px) saturate(1.2); transform: scale(1.06); }
.demo-play { position: relative; font: inherit; font-weight: 800; font-size: 1.06rem; color: #17142b; background: #fff; border: 0; border-radius: 999px;
  min-height: 52px; padding: 12px 24px 12px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 10px 34px rgba(0,0,0,.55); }
.demo-play:hover { background: #f1edff; }
.demo-play:active { transform: scale(.97); }
.demo-play-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #17142b; color: #fff; }
.demo-hint { position: relative; font-size: .84rem; color: #ece7fb; text-shadow: 0 1px 6px #000; padding: 0 12px; text-align: center; }
.demo-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; background: var(--paper); font-size: .84rem; }
.demo-bar a { color: var(--ink-2); }
.demo-full { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font: inherit; font-size: .84rem; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px; cursor: pointer; }
.demo-full[hidden] { display: none; }
@media (max-width: 700px) {
  .demo { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .hook { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .demo.demo-on .demo-stage { aspect-ratio: auto; height: calc(100svh - 58px - var(--tab-h) - 46px); min-height: 480px; }
}
@media (min-width: 701px) { .demo-stage { aspect-ratio: 16 / 9; } }

/* CTA card */
.cta { position: relative; margin: 16px 0; padding: 16px; border-radius: 20px; display: grid; grid-template-columns: 1fr; gap: 10px;
  background: radial-gradient(140% 120% at 0% 0%, #4a23a8 0%, #1f1446 55%, #17122e 100%); border: 1px solid #4b3596; }
.cta-has-thumb { grid-template-columns: auto 1fr; }
.cta-thumb { width: 92px; height: 58px; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px rgba(245,197,66,.5); }
.cta-copy { min-width: 0; }
.cta-title { display: block; font-size: 1.06rem; line-height: 1.25; }
.cta-text { margin: 4px 0 0; font-size: .9rem; color: #d6cff0; }
.cta-has-thumb .cta-btn, .cta-has-thumb .cta-note { grid-column: 1 / -1; }
.cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; text-decoration: none; font-weight: 800; color: #1b1600;
  padding: 12px 22px; border-radius: 999px; background: linear-gradient(180deg, var(--gold-2), var(--gold) 60%, #e0a91c);
  box-shadow: 0 6px 22px rgba(245,197,66,.32), inset 0 1px 0 rgba(255,255,255,.6); }
.cta-btn:hover { color: #1b1600; filter: brightness(1.06); }
.cta-btn:active { transform: scale(.98); }
.cta-note { font-size: .74rem; color: var(--ink-2); text-align: center; }
@media (min-width: 701px) {
  .cta { grid-template-columns: 1fr auto; align-items: center; padding: 18px 22px; }
  .cta-has-thumb { grid-template-columns: auto 1fr auto; }
  .cta-has-thumb > .cta-btn { grid-column: 3; }
  .cta > .cta-btn { grid-row: 1; grid-column: 2; }
  .cta-has-thumb .cta-note, .cta-note { grid-column: 1 / -1; text-align: left; }
}

/* sticky "main versi asli" bar, game pages, after the demo starts */
.stick { position: fixed; z-index: 25; left: 10px; right: 10px; bottom: calc(var(--tab-h) + var(--safe-b) + 8px);
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 18px;
  background: rgba(36, 22, 82, .96); border: 1px solid #6a45d6; box-shadow: 0 12px 40px rgba(0,0,0,.55); animation: up .35s ease-out; }
.stick[hidden] { display: none; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.stick img { width: 52px; height: 34px; object-fit: cover; border-radius: 8px; flex: none; }
.stick-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; font-size: .8rem; color: #d6cff0; }
.stick-txt b { color: #fff; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stick-btn { min-height: 44px; padding: 10px 16px; font-size: .95rem; flex: none; }
.stick-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--ink-2); font-size: 1.2rem; cursor: pointer; }
@media (min-width: 821px) { .stick { left: auto; right: 24px; bottom: 24px; width: 420px; } }

/* tables, lists, prose */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: .93rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.facts th { width: 42%; color: var(--ink-2); font-weight: 600; }
.rtp thead th { background: var(--paper-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
.rtp td a { font-weight: 600; }
.table-scroll + .ggrid { margin-top: 18px; }
.ticks { padding: 0; list-style: none; margin: 0; }
.ticks li { position: relative; padding-left: 28px; margin: .5rem 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; display: grid; place-items: center; font-size: .75rem;
  border-radius: 50%; background: rgba(74,222,128,.15); color: var(--ok); font-weight: 800; }
.steps { padding-left: 1.3rem; margin: 0; }
.steps li { margin: .5rem 0; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.8rem; }
.faq { margin: 2.2rem 0; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 13px 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 16px 14px; color: #d9d4ee; }

/* footer */
.foot { margin-top: 3rem; padding: 1.8rem 0 2rem; border-top: 1px solid var(--line); background: var(--bg-2); font-size: .92rem; }
.foot-brand { margin-bottom: .6rem; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1rem 0; }
.foot-cols div { display: flex; flex-direction: column; gap: 6px; }
.foot-cols a { color: var(--ink-2); text-decoration: none; padding: 3px 0; }
.foot-cols a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
