:root {
  color-scheme: dark;
  --bg: #0f131a;
  --raise: #171d28;
  --card: #212939;
  --gold: #fbf600;
  --ink: #161400;
  --text: #f4f6fb;
  --muted: #c5cedb;
  --line: rgba(255, 255, 255, 0.08);
  --gold-line: rgba(251, 246, 0, 0.45);
  --max: 1120px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background:
    radial-gradient(900px 280px at 0% -10%, rgba(251, 246, 0, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

a { color: var(--gold); text-underline-offset: 0.18em; }

a:hover { color: #fff6a8; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 0;
  transform: translateY(-120%);
  background: var(--gold);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 40;
}

.skip:focus {
  transform: none;
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 19, 26, 0.96);
  border-bottom: 1px solid var(--gold-line);
}

.header-inner,
.footer-inner,
.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "logo auth" "nav nav";
  align-items: center;
  gap: 2px 12px;
  padding: 8px 0 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-weight: 750;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.brand-wordmark {
  grid-area: logo;
  height: 44px;
  max-width: none;
  justify-self: start;
}

.brand-wordmark img {
  display: block;
  width: auto;
  height: 32px;
  max-width: 148px;
  background: transparent;
}

.brand-footer {
  max-width: 140px;
}

.nav-list {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  gap: 4px;
}

.nav-list a {
  display: flex;
  flex: 1 1 calc(20% - 4px);
  align-items: center;
  justify-content: center;
  min-width: min(100%, max-content);
  max-width: 100%;
  min-height: 40px;
  padding: 4px 6px;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list a[aria-current="page"] {
  background: var(--gold);
  color: var(--ink);
}

.wrap { min-width: 0; max-width: 100%; padding: 32px 0 72px; }

.block {
  min-width: 0;
  margin: 0 0 28px;
  padding: 24px 20px 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.block > h2,
.section-head h2,
.faq-list > h2 { scroll-margin-top: 88px; }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: #0f131a;
}

.narrow { max-width: 760px; }

.table-wrap {
  display: block;
  max-width: 100%;
  margin: 8px 0 12px;
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
}

.table-wrap caption {
  caption-side: top;
  margin: 0 0 8px;
  padding: 0;
  color: var(--text);
  font-weight: 750;
  text-align: left;
}

.table-wrap th,
.table-wrap td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.table-wrap th { color: var(--text); }

.table-note { margin-top: 0; }

.next-read {
  margin: 0 0 28px;
  padding: 14px 16px;
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  background: var(--raise);
  color: var(--text);
}

.block ol,
.block ul { padding-left: 1.2rem; }

.block li { margin: 0 0 8px; }

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 18px;
  align-items: flex-start;
  margin-bottom: 28px;
  background: #000;
  border-color: var(--gold-line);
}

.hero > div { min-width: 0; flex: 1 1 12rem; }

.kicker,
.notice,
.lede,
.toc { min-width: 0; max-width: 100%; }

.hero-mark {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 14px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: 0; }

h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.7rem); }

h2 { margin: 0 0 10px; font-size: 1.35rem; }

.lede, .notice, p { color: var(--muted); }

.lede { font-size: 1.08rem; }

.notice {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: var(--raise);
  color: var(--text);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  align-items: baseline;
  margin: 10px 0 14px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 16px;
}

.card-media { display: block; }
.card-copy { padding-top: 10px; }
.card-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-weight: 750;
}

.article-list {
  display: grid;
  gap: 14px;
}
.article-list article {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.article-list h3 { margin: 0 0 6px; font-size: 1.15rem; }
.article-list h3 a { color: var(--text); text-decoration: none; }

.header-primary { display: contents; }
.auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}
.auth-link.masuk {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.auth-link.daftar {
  background: var(--gold);
  color: var(--ink);
  border: 2px solid var(--gold);
}
.auth-link.masuk:hover { color: var(--gold); }
.auth-link.daftar:hover { color: var(--ink); }
.auth-row {
  grid-area: auth;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  height: 44px;
}
.site-address {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.source-cite {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}
.source-cite a { color: var(--muted); }

.footer-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 22px 28px;
  align-items: start;
}
.footer-grid h2 { font-size: 0.95rem; margin: 0 0 8px; }
.footer-grid nav {
  display: grid;
  align-content: start;
}
.footer-grid nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}
.footer-auth { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; align-content: start; }
.footer-auth h2 { width: 100%; }
.footer-auth .auth-link { width: auto; }
.footer-auth .auth-link.masuk { color: var(--gold); }
.footer-auth .auth-link.daftar { color: var(--ink); }

.dock { display: none; }
.dock-item {
  flex: 1 1 3.5rem;
  min-width: 3.5rem;
  max-width: 50%;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  padding: 6px 4px 4px;
  color: #f4f6fb;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}
.dock-item svg { width: 24px; height: 24px; display: block; flex: 0 0 24px; }
.dock-item span {
  display: block;
  max-width: 100%;
  font-size: 0.75rem;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}
.dock-item[aria-current="page"] { color: var(--gold); }

.game-card,
.status-card,
.shot,
.gallery-empty {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.game-card { padding: 16px 16px 18px; }

.game-card h2 { margin: 4px 0 8px; font-size: 1.35rem; }

.game-card h2 a { color: var(--text); text-decoration: none; }

.game-card h2 a:hover { color: var(--gold); }

.card-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #000;
}

.mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 0 8px;
  border-radius: 14px;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.not-shot {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.developer, .layout { margin: 0 0 8px; }

.mini-status, .facts {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.mini-status div, .facts div {
  display: grid;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

dt { color: var(--muted); font-size: 0.82rem; }

dd { margin: 0; color: var(--text); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

.steps { padding-left: 1.2rem; }

.steps li, section li { margin: 0.4rem 0; color: var(--muted); }

.detail {
  display: grid;
  gap: 18px;
}

.status-card { padding: 16px; }

.status-note {
  margin: 8px 0 0;
  color: var(--text);
}

.crumbs {
  margin-bottom: 16px;
  color: var(--muted);
}

.gallery, .faq-list { margin: 22px 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.gallery-empty { padding: 22px 16px; border-style: dashed; border-color: var(--gold-line); }

.shot { margin: 0; overflow: hidden; }

.shot img { display: block; width: 100%; }

.shot figcaption, .shot p { padding: 10px 12px; }

.faq {
  border-top: 1px solid var(--line);
  background: var(--card);
}

.faq summary {
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: var(--text);
  font-weight: 700;
}

.faq p { margin: 0; padding: 0 12px 14px; }

.placeholder-label {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 12px 0;
  list-style: none;
}

.chips li {
  padding: 6px 10px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.85rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  background: #0c1016;
}

.footer-inner p { max-width: 62ch; }

p, li, dd, figcaption, .source-cite, code, a { overflow-wrap: anywhere; }
.nav-list a,
.dock-item,
.auth-link { overflow-wrap: normal; word-break: keep-all; }

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .brand-wordmark img { height: 36px; max-width: 168px; }
  .brand-wordmark.brand-footer { max-width: 150px; }
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo nav auth";
    align-items: center;
    gap: 8px 20px;
    padding: 10px 0;
  }
  .nav-list a { min-height: 44px; max-width: none; font-size: 0.95rem; padding: 0 8px; }
  .hero { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; }
  .hero-mark { width: 88px; height: 88px; }
  .detail { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .status-card { position: sticky; top: 96px; }
}

@media (min-width: 1100px) {
  .footer-grid { grid-template-columns: 1.35fr 1fr 1fr 1fr; }
}

@media (max-width: 359px) {
  .brand-wordmark img { height: 24px; max-width: 96px; }
  .auth-row { gap: 4px; }
  .auth-link { padding: 0 10px; font-size: 14px; }
  .nav-list a { font-size: 0.7rem; padding: 4px 2px; }
}

@media (max-width: 899px) {
  .hero.block { padding: 12px 12px 4px; }
  .hero-mark { width: 56px; height: 56px; }
  .hero h1 { font-size: 1.55rem; }
  .dock {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: #0c1016;
    border-top: 1px solid var(--gold);
    padding: 0 0 calc(2px + env(safe-area-inset-bottom));
  }
  body { padding-bottom: calc(8rem - 50px + env(safe-area-inset-bottom)); }
  .detail { display: flex; flex-direction: column; }
  .status-card { order: -1; }
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  h1 { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}
