/* Adventure Space — style.css
   Palet diambil dari logo & banner: navy ruang angkasa, emas globe, biru rambut maskot. */

:root {
  --bg: #0a1020;
  --bg2: #111b35;
  --card: #0e1730;
  --line: rgba(216, 180, 106, .22);
  --ink: #e8edf7;
  --mute: #9eacc8;
  --gold: #d8b46a;
  --on-gold: #1a1405;
  --sky: #62c6ff;
  --side: 264px;
  --font-display: "Unbounded", "Poppins", "Inter", system-ui, sans-serif;
  --font-body: "Figtree", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f2f6fb;
  --bg2: #e4ecf7;
  --card: #ffffff;
  --line: rgba(13, 24, 48, .16);
  --ink: #0d1830;
  --mute: #46577a;
  --gold: #86600f;
  --on-gold: #ffffff;
  --sky: #0b6aa8;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 12px; }

/* ── Sidebar ─────────────────────────────────────────────── */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side);
  display: flex; flex-direction: column; gap: 28px;
  padding: 36px 28px 28px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  z-index: 50;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; color: var(--ink); text-decoration: none; }
.brand img { width: 96px; height: 96px; border-radius: 50%; }
.brand span { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; letter-spacing: .02em; line-height: 1.25; }
.menu-btn { display: none; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  color: var(--mute); text-decoration: none; padding: 8px 0 8px 14px;
  border-left: 2px solid transparent; font-weight: 500;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); border-left-color: var(--gold); }
.theme-btn {
  margin-top: 12px; align-self: flex-start;
  background: none; color: var(--mute); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font: inherit; font-size: .9rem; cursor: pointer;
}
.theme-btn:hover { color: var(--ink); border-color: var(--gold); }
.social { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.social a { color: var(--mute); text-decoration: none; }
.social a:hover { color: var(--gold); }

/* ── Layout utama ────────────────────────────────────────── */
main { margin-left: var(--side); }
.wrap { width: min(100% - 64px, 880px); margin-inline: auto; }
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.25; margin: 0 0 14px; }
.lede { color: var(--mute); max-width: 60ch; margin: 0 0 40px; }
p { max-width: 64ch; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }
.hero-art { position: absolute; right: -14%; top: 50%; width: min(86vw, 820px); aspect-ratio: 1; transform: translateY(-50%); z-index: 1; pointer-events: none; }
.hero-art svg { width: 100%; height: 100%; }
.orbit { transform-box: view-box; transform-origin: 400px 400px; animation: spin 90s linear infinite; }
.orbit.o2 { animation-duration: 150s; animation-direction: reverse; }
.orbit.o3 { animation-duration: 230s; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero h1 { margin: 0; }
.wm { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.3rem, 6.4vw, 5rem); line-height: 1.04; letter-spacing: .06em; text-transform: uppercase; }
.tag { display: block; margin-top: 22px; font-family: var(--font-body); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--gold); letter-spacing: 0; text-transform: none; }
.hero p.intro { margin: 18px 0 32px; color: var(--mute); font-size: 1.15rem; max-width: 46ch; }
.ja { font-size: .85rem; color: var(--mute); letter-spacing: .3em; margin: 0 0 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: var(--gold); color: var(--on-gold); border: 1px solid var(--gold);
}
.btn:hover { color: var(--on-gold); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { color: var(--gold); border-color: var(--gold); filter: none; }

/* ── Daftar produk ───────────────────────────────────────── */
.items { border-bottom: 1px solid var(--line); }
.item { display: grid; grid-template-columns: 208px 1fr auto; gap: 8px 28px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.cover { display: block; text-decoration: none; position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.type {
  display: grid; place-items: center; padding: 12px; text-align: center;
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--gold) 55%, transparent) 0 9%, transparent 10%),
    radial-gradient(circle at 82% 18%, transparent 0 30%, color-mix(in srgb, var(--gold) 28%, transparent) 30.6% 31.4%, transparent 32%),
    linear-gradient(140deg, var(--bg2), var(--bg));
}
.cover.type span { font-family: var(--font-display); font-weight: 500; font-size: clamp(.9rem, 1.6vw, 1.05rem); line-height: 1.3; color: var(--gold); }
.item h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; line-height: 1.35; }
.item h3 a { color: var(--ink); text-decoration: none; }
.item h3 a:hover { color: var(--gold); }
.item p { margin: 0; color: var(--mute); font-size: .98rem; }
.chip { display: inline-block; margin-top: 10px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; color: var(--mute); }
.buy { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.price { font-weight: 700; font-size: 1.1rem; }
.buy .btn { padding: 9px 18px; font-size: .95rem; white-space: nowrap; }
.buy a.more { font-size: .9rem; }
.empty { color: var(--mute); padding: 28px 0; }

/* ── Cara beli & FAQ ─────────────────────────────────────── */
.steps { margin: 56px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 14px; border-top: 2px solid var(--gold); color: var(--mute); }
.steps li::before { content: counter(s); display: block; font-family: var(--font-display); color: var(--gold); font-size: 1.3rem; margin-bottom: 6px; }
.steps strong { color: var(--ink); display: block; }
.faq { margin-top: 56px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style-position: outside; }
.faq details p { margin: 10px 0 0; color: var(--mute); }

/* ── Tentang & kontak ────────────────────────────────────── */
.games { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.games li { padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; color: var(--mute); }
.links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.links a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.links a small { display: block; color: var(--mute); font-size: .9rem; }
.links a:hover { color: var(--gold); }
.foot { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--mute); font-size: .9rem; }
.foot p { margin: 0 0 6px; max-width: none; }

/* ── Halaman produk ──────────────────────────────────────── */
.crumbs { padding-top: 40px; font-size: .92rem; color: var(--mute); }
.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--gold); }
.pdp { padding: 24px 0 80px; }
.pdp h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.25; margin: 8px 0 20px; }
.pdp .cover { max-width: 640px; margin-bottom: 28px; }
.pdp .buybar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 0 0 36px; }
.pdp .buybar .price { font-size: 1.5rem; }
.pdp h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; margin: 40px 0 12px; }
.pdp ul.plain { margin: 0; padding-left: 1.2em; color: var(--mute); }
.pdp ul.plain li { margin: 4px 0; }
.note { border-left: 3px solid var(--gold); padding: 4px 0 4px 16px; color: var(--mute); max-width: 64ch; }
.related { display: grid; gap: 8px; padding: 0; list-style: none; }

/* ── Responsif ───────────────────────────────────────────── */
@media (max-width: 1000px) {
  :root { --side: 0px; }
  .side {
    position: sticky; top: 0; inset: auto; width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 0; padding: 10px 20px; border-right: 0; border-bottom: 1px solid var(--line);
  }
  .brand { flex-direction: row; align-items: center; gap: 12px; }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: .95rem; }
  .menu-btn { display: inline-block; background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font: inherit; cursor: pointer; }
  .nav, .social { display: none; width: 100%; }
  .side.open .nav { display: flex; padding: 16px 0 4px; }
  .side.open .social { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 18px; padding: 10px 0 8px; margin: 0; }
  main { margin-left: 0; }
  .wrap { width: min(100% - 40px, 880px); }
  .hero { min-height: calc(100vh - 62px); }
  .hero-art { right: -34%; opacity: .55; }
  .section { padding: 72px 0; }
  .item { grid-template-columns: 1fr; }
  .buy { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; margin-top: 8px; }
  .steps { grid-template-columns: 1fr; }
  .links { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit { animation: none; }
}

/* ── Artikel & halaman info ──────────────────────────────── */
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; line-height: 1.35; margin: 36px 0 10px; }
.prose p { max-width: 68ch; }
.prose ul { padding-left: 1.2em; max-width: 68ch; }
.prose li { margin: 6px 0; }
.meta { color: var(--mute); font-size: .92rem; margin: -8px 0 24px; }
.post-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.post-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.post-list a { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; color: var(--ink); text-decoration: none; }
.post-list a:hover { color: var(--gold); }
.post-list p { margin: 6px 0 0; color: var(--mute); font-size: .98rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 14px; }
.foot nav a { color: var(--mute); }
.foot nav a:hover { color: var(--gold); }
.pdp ol.plain { margin: 0; padding-left: 1.4em; color: var(--mute); max-width: 68ch; }
.pdp ol.plain li { margin: 8px 0; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .86em; background: var(--bg2); color: var(--ink); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.pdp .meta { margin: 8px 0 0; }
.pdp details.files { margin: 14px 0 0; color: var(--mute); }
.pdp details.files summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.pdp details.files ul { margin: 10px 0 0; padding-left: 1.2em; font-size: .92rem; }
.pdp details.files li { margin: 4px 0; }
.price s { color: var(--mute); font-weight: 400; font-size: .85em; margin-right: 8px; }

/* ── Pencarian produk ────────────────────────────────────── */
.search { margin: -16px 0 24px; }
.search input {
  width: 100%; max-width: 480px; padding: 11px 18px; font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px;
}
.search input::placeholder { color: var(--mute); opacity: .8; }
.search input:focus { outline: none; border-color: var(--gold); }
.search-info { margin: 8px 0 0 18px; font-size: .9rem; color: var(--mute); min-height: 1.4em; }
.item[hidden] { display: none; }
