:root {
  --brand: #0D9488;
  --brand-dark: #0F766E;
  --brand-navy: #022C22;
  --brand-soft: #CCFBF1;
  --gold: #F59E0B;
  --gold-dark: #D97706;
  --gold-soft: #FEF3C7;
  --ink: #0f172a;
  --muted: #475569;
  --line: #d8eee8;
  --radius: 1.1rem;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: #f2faf7;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .navbar-brand, .btn, .badge, .display-6 {
  font-family: var(--font);
  letter-spacing: -0.02em;
}

.site-topbar { background: var(--brand-navy); color: #fff; font-size: .8rem; }

/* Mobile page switcher: horizontal scroll */
.mobile-page-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: linear-gradient(180deg, #03352f 0%, var(--brand-navy) 100%);
  border-bottom: 1px solid rgba(94,234,212,.18);
  box-shadow: 0 6px 18px rgba(2,44,34,.16);
}
.mobile-page-nav-track {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: .7rem 1rem;
}
.mobile-page-nav-track::-webkit-scrollbar { display: none; }
.mobile-page-nav-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: .48rem .9rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  color: rgba(236,253,245,.88);
  text-decoration: none;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
}
.mobile-page-nav-link:hover { color: #fff; background: rgba(255,255,255,.12); }
.mobile-page-nav-link.active {
  color: #022C22;
  background: #5eead4;
  border-color: #5eead4;
  font-weight: 800;
}

/* Desktop page nav inside sidebar */
.page-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .35rem;
}
.page-nav-link {
  display: block;
  padding: .65rem .85rem;
  border-radius: .8rem;
  font-weight: 700;
  color: var(--brand-dark);
  text-decoration: none;
  background: #f0fdfa;
  border: 1px solid transparent;
}
.page-nav-link:hover {
  color: var(--brand-navy);
  background: var(--brand-soft);
}
.page-nav-link.active {
  color: #fff;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .feature-card, .benefit-card, .game-card, .step-card { transition: none; }
  .feature-card:hover, .benefit-card:hover { transform: none; }
}

.btn {
  border-radius: 999px; font-weight: 700;
  padding: .8rem 1.55rem; font-size: 1rem; line-height: 1.2;
  max-width: 100%; white-space: normal; text-align: center;
}
.text-secondary { color: #475569 !important; }
.btn-sm { padding: .65rem 1.25rem; font-size: .95rem; border-radius: 999px; }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.15rem; border-radius: 999px; }
.btn-brand {
  background: linear-gradient(180deg, #fbbf24 0%, var(--gold) 55%, var(--gold-dark) 100%);
  border-color: var(--gold-dark); color: #1a1200;
  box-shadow: 0 3px 0 rgba(217,119,6,.35);
}
.btn-brand:hover { background: linear-gradient(180deg, #fcd34d 0%, #f59e0b 100%); border-color: #b45309; color: #1a1200; }
.btn-outline-brand { border-color: var(--brand); color: var(--brand-dark); font-weight: 700; }
.btn-outline-brand:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-light { color: var(--brand-navy) !important; font-weight: 800; border-radius: 999px; }

.hero {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(245,158,11,.22), transparent 55%),
    linear-gradient(160deg, var(--brand-navy) 0%, var(--brand-dark) 45%, #14B8A6 100%);
  color: #fff;
}
.hero-home { text-align: center; padding: 3.5rem 1rem 2.5rem; }
.hero-home .lead-copy {
  max-width: 42rem; margin-left: auto; margin-right: auto;
  opacity: .96; font-size: 1.05rem; font-weight: 500;
}
.hero-home .cta-row {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem;
}
@media (max-width: 575.98px) {
  .hero-home .cta-row,
  .hero-inner .d-flex {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-home .cta-row .btn,
  .hero-inner .d-flex .btn { width: 100%; }
}
.hero-inner { padding-top: 3rem; padding-bottom: 3rem; }
.hero-inner .lead { opacity: .95; max-width: 40rem; }

.banner-gallery { max-width: 960px; margin: 0 auto; }
.banner-gallery img {
  width: 100%; height: auto; display: block; border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(7,26,74,.12);
  aspect-ratio: 16 / 9; object-fit: contain; background: transparent;
}
.banner-gallery .banner-slot { border-radius: 1rem; overflow: hidden; background: transparent; }

.app-shot {
  max-width: 360px;
  border-radius: 1.25rem;
  overflow: visible;
  background: transparent;
}
.app-shot img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 18px 36px rgba(7,26,74,.18));
}

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ccfbf1, #f0fdfa);
  color: var(--brand-dark);
  border: 1px dashed #5eead4;
  border-radius: 1rem;
  font-weight: 700;
  font-size: .9rem;
  text-align: center;
  padding: 1rem;
  min-height: 180px;
}

.feature-card, .game-card, .step-card, .benefit-card {
  border: 1px solid var(--line); border-radius: 1.1rem; background: #fff; height: 100%;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover, .benefit-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7,26,74,.08); }
.feature-card .icon-wrap, .benefit-card .icon-wrap {
  width: 2.75rem; height: 2.75rem; border-radius: .9rem; background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.step-card .badge.text-bg-dark { background: var(--brand-dark) !important; border-radius: 999px; }

.callout { border-radius: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); background: #f8fafc; }
.callout-trust { background: var(--brand-soft); border-color: #99f6e4; }
.callout-warn { background: var(--gold-soft); border-color: #f5d56a; }
.callout-danger { background: #fef2f2; border-color: #fecaca; }

.table { border-radius: .75rem; overflow: hidden; font-size: .95rem; }
.table th { font-weight: 700; color: var(--ink); }
pre { max-width: 100%; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.cta-bar { background: var(--brand-soft); border: 1px solid #99f6e4; border-radius: 1.25rem; }
.section-title { font-weight: 800; letter-spacing: -0.03em; }
.pill-badge {
  display: inline-block; max-width: 100%; background: var(--gold); color: #1a1200; font-weight: 800;
  border-radius: 999px; padding: .4rem .9rem; font-size: .8rem;
  white-space: normal; overflow-wrap: anywhere;
}
.prose p, .prose li { color: #334155; }
.prose strong { color: var(--ink); }

footer.site-footer { background: var(--brand-navy); color: #cbd5e1; }
footer.site-footer a { color: #5eead4; text-decoration: none; }
footer.site-footer a:hover { color: var(--gold); text-decoration: underline; }

.breadcrumb-bar { background: #fff; border-bottom: 1px solid var(--line); font-size: .85rem; }
.breadcrumb-bar .breadcrumb { background: transparent; margin: 0; padding: 0; }
.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before { color: #94a3b8; }
.breadcrumb-bar .breadcrumb-item.active { color: var(--muted); }
.breadcrumb-bar a { color: var(--brand-dark); text-decoration: none; font-weight: 600; }
.breadcrumb-bar a:hover { text-decoration: underline; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 1080;
  background: var(--gold); color: #1a1200; font-weight: 800;
  padding: .65rem 1rem; border-radius: 999px;
}
.skip-link:focus { top: .6rem; color: #1a1200; }

.prose a:not(.btn):not(.feature-card) {
  color: var(--brand-dark); font-weight: 700;
  text-decoration: underline; text-underline-offset: .18em;
}
.prose a:not(.btn):not(.feature-card):hover { color: var(--brand); }
.prose a.feature-card { color: inherit; font-weight: inherit; text-decoration: none; }
.prose a.feature-card:hover { color: inherit; }

.game-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 576px) {
  .game-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) {
  .game-grid { grid-template-columns: repeat(5, 1fr); }
}

.faq-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: .9rem; padding: .9rem 1rem; margin-bottom: .65rem;
}
.faq-item summary { cursor: pointer; font-weight: 800; color: var(--ink); }
.faq-item .faq-a { margin-top: .55rem; }

.noscript-nav { background: #fff; border-bottom: 1px solid var(--line); font-size: .95rem; }
.noscript-nav a { font-weight: 700; color: var(--brand-dark); text-decoration: none; margin-right: .9rem; }
.noscript-nav a:hover { color: var(--brand); }
@media (min-width: 992px) {
  .noscript-nav { display: none; }
}

.content-wrap {
  padding-top: 2rem;
  padding-bottom: 3rem;
}
.container.content-wrap {
  max-width: 1140px;
}

/* Download panel + article layout */
.dl-panel {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(245,158,11,.18), transparent 50%),
    linear-gradient(160deg, #011916 0%, var(--brand-navy) 42%, #0F766E 100%);
  color: #fff;
}
.dl-hero { max-width: 420px; }
.dl-logo {
  width: 200px;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.35));
}
.btn-play {
  background: linear-gradient(180deg, #fbbf24 0%, var(--gold) 55%, var(--gold-dark) 100%);
  border: 1px solid var(--gold-dark);
  color: #1a1200;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(217,119,6,.35);
}
.btn-play:hover { background: linear-gradient(180deg, #fcd34d 0%, #f59e0b 100%); color: #1a1200; }
.update-note {
  max-width: 330px;
  height: auto;
  border-radius: .75rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.dl-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 1rem;
  overflow: hidden;
}
.dl-card-head {
  background: rgba(0,0,0,.25);
  padding: .85rem 1rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.dl-card-body { padding: 1rem; }
.btn-purple {
  background: #0F766E;
  border-color: #115E59;
  color: #fff;
  font-weight: 700;
}
.btn-purple:hover { background: #14B8A6; border-color: #0F766E; color: #fff; }
.test-chip {
  display: inline-block;
  width: 100%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: .75rem;
  padding: .65rem .8rem;
  font-weight: 700;
}
.dl-panel .link-light { color: #99f6e4; text-decoration: underline; text-underline-offset: .15em; }
.dl-panel .link-light:hover { color: #fff; }
.dl-panel .btn-outline-light { border-radius: 999px; font-weight: 700; }

.article-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.35rem 1.1rem 1.75rem;
  box-shadow: 0 10px 28px rgba(7,26,74,.05);
  max-width: none;
  margin: 0;
}
@media (min-width: 768px) {
  .article-box { padding: 1.75rem 1.85rem 2.25rem; }
}
.article-box h1,
.article-box h2,
.article-box h3,
.article-box h4 {
  text-align: left;
  line-height: 1.3;
}
.article-box h1 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.article-box h2 {
  font-size: 1.22rem;
  font-weight: 800;
  margin: 1.85rem 0 .8rem;
}
.article-box h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin: 1.55rem 0 .7rem;
}
.article-box h4 {
  font-size: 1rem;
  font-weight: 800;
  margin: 1.3rem 0 .6rem;
}
.article-box p,
.article-box li {
  margin-bottom: 1.05rem;
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.8;
  font-size: 1.02rem;
  hyphens: auto;
}
.article-box ol,
.article-box ul { padding-left: 1.2rem; }
.article-box li { margin-bottom: .55rem; }
.article-box p:has(> .article-img:only-child) {
  text-align: center;
  margin: 0 0 1.15rem;
}
.article-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(7,26,74,.12);
  background: #e2e8f0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-box .cta-bar,
.article-box .callout {
  text-align: left;
}
.article-box .cta-bar .small,
.article-box .callout li {
  text-align: left;
}

.sidebar-stack {
  display: grid;
  gap: 1rem;
}
@media (min-width: 992px) {
  .sidebar-stack {
    position: sticky;
    top: 1.25rem;
  }
}
.sidebar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 10px 24px rgba(7,26,74,.05);
}
.sidebar-test {
  border-color: #99f6e4;
  background: linear-gradient(180deg, #fff 0%, #f0fdfa 100%);
}
.sidebar-kicker {
  display: inline-block;
  background: var(--gold);
  color: #1a1200;
  font-size: .72rem;
  font-weight: 800;
  border-radius: 999px;
  padding: .28rem .65rem;
  margin-bottom: .7rem;
}
.sidebar-chip {
  background: #fff;
  border: 1px solid #b6ebe1;
  border-radius: .8rem;
  padding: .7rem .8rem;
  font-size: .92rem;
}
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-links li { margin-bottom: .55rem; }
.sidebar-links a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}
.sidebar-links a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* Generic inner page hero */
.page-hero {
  background: linear-gradient(135deg, #022C22 0%, #0F766E 55%, #14B8A6 100%);
  color: #fff;
}
.page-hero-title {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}
.page-hero-lead {
  opacity: .9;
  font-weight: 500;
}

/* Muat turun page */
.mt-hero {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(245,158,11,.2), transparent 48%),
    linear-gradient(160deg, #022C22 0%, #0F766E 45%, #14B8A6 100%);
  color: #fff;
}
.mt-hero-inner { max-width: 46rem; }
.mt-hero-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 1.25rem;
  background: rgba(255,255,255,.96);
  padding: .55rem;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.mt-hero-title {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.mt-hero-sub {
  display: inline-block;
  margin-top: .35rem;
  font-size: .72em;
  font-weight: 700;
  opacity: .92;
}
.mt-hero-lead {
  font-size: 1.05rem;
  font-weight: 500;
  opacity: .95;
}
.mt-hero-note {
  max-width: 40rem;
  color: var(--ink);
}
.mt-hero .btn-light { color: var(--brand-navy) !important; font-weight: 800; }
.mt-status-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
}
.mt-status-card a { color: #fcd34d; font-weight: 700; }
.mt-status-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .8;
  margin-bottom: .35rem;
}
.section-kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mt-info-table th {
  width: 34%;
  background: #f8fafc;
  font-weight: 700;
  white-space: nowrap;
}
.mt-check-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.05rem;
  box-shadow: 0 8px 20px rgba(7,26,74,.04);
}
@media (max-width: 575.98px) {
  .mt-hero .d-flex.gap-2 {
    flex-direction: column;
    align-items: stretch;
  }
  .mt-hero .d-flex.gap-2 .btn { width: 100%; }
}
