/* Simulator Warung — tema warung pinggir jalan: kertas hangat + kanopi bergaris.
   Titik ingat tunggal situs ini: kanopi bergaris di puncak halaman depan. */

:root {
  --bg: #f7f1e8;
  --card: #fffaf2;
  --ink: #2b2118;
  --muted: #6b5b4b;
  --brand: #c2562f;
  --accent: #e0a03a;
  --line: rgba(43, 33, 24, 0.12);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px; }

a { color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--card);
  padding: 12px 16px;
  z-index: 50;
}
.skip:focus { left: 12px; top: 12px; color: var(--card); }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap--narrow { max-width: 720px; }

/* ---------- bilah atas ---------- */

.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--brand); }

.nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- panggung depan ---------- */

.hero { position: relative; overflow: hidden; }

.awning {
  height: 18px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--brand) 0 28px,
    var(--card) 28px 56px
  );
  box-shadow: var(--shadow-1);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero__copy { max-width: 620px; }

.hero__art {
  display: flex;
  justify-content: flex-end;
}
.stall { width: 100%; max-width: 420px; height: auto; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  list-style: none;
  margin: 32px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact__n {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
}
.fact__l { font-size: 14px; color: var(--muted); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.hero__title {
  font-size: 48px;
  margin-bottom: 24px;
}
.hero__title em {
  display: block;
  font-style: normal;
  color: var(--brand);
  font-size: 28px;
  margin-top: 8px;
}

.hero__lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 32px;
}

.hero__cta { margin-bottom: 16px; }

.hero__meta {
  font-size: 14px;
  color: var(--muted);
  max-width: 58ch;
  margin: 0;
}

/* ---------- tombol ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: #a4461f; border-color: #a4461f; color: #fff; }

.btn--sm { min-height: 44px; padding: 0 20px; font-size: 16px; }

.btn--ghost {
  background: transparent;
  color: #a4461f;
  border-color: var(--brand);
}
.btn--ghost:hover { background: rgba(194, 86, 47, 0.08); color: #8f3c18; }

/* ---------- blok ---------- */

.section { padding: 64px 0; }
.section--alt {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section__title { font-size: 36px; }

.section__lead {
  max-width: 62ch;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ---------- kartu game ---------- */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

.card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.card__art {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: #f0e3d2;
}
.card__art--kopi { background: #f3ddc9; }
.card__art--kelontong { background: #e3e8d8; }
.card__art--makan { background: #f2d9dc; }

.card__status {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.card__name { font-size: 22px; margin-bottom: 8px; }

.card__desc { margin: 0; color: var(--muted); font-size: 16px; }

.cards__note {
  margin: 24px 0 0;
  padding: 16px;
  border-left: 4px solid var(--accent);
  background: var(--card);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 16px;
}

/* ---------- teks panjang ---------- */

.prose { max-width: 70ch; }
.prose h2 { font-size: 28px; margin-top: 32px; }
.prose h3 { font-size: 22px; margin-top: 32px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose > :first-child { margin-top: 0; }

/* ---------- tanya jawab ---------- */

.faq { max-width: 70ch; }

.faq__item {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }

.faq__q {
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  list-style: none;
  padding-right: 32px;
  position: relative;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--brand);
  font-size: 22px;
}
.faq__item[open] .faq__q::after { content: "\2212"; }

.faq__a { padding-top: 12px; color: var(--muted); }
.faq__a p { margin: 0; }

/* ---------- kolom pesan ---------- */

.cform {
  margin: 0 0 32px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cform__row {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--brand);
  font-weight: 600;
}

.cform__label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}

.cform__hint { color: var(--muted); font-weight: 400; }

.cform__input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
}
.cform__input--area { resize: vertical; }

.cform__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.cform__msg { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

.comments { margin-top: 32px; }

.comment {
  padding: 16px;
  margin-bottom: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 14px;
}
.comment__name { font-weight: 700; }
.comment__owner {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}
.comment__time { color: var(--muted); }

.comment__text { margin: 0 0 8px; }

.comment__reply {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: #a4461f;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  min-height: 44px;
  cursor: pointer;
}

.comment__replies { padding-left: 24px; margin-top: 16px; }
.comment__replies .comment { background: var(--card); box-shadow: none; }

[data-gf-comments][data-gf-empty]::before {
  content: "Belum ada pesan. Tulis yang pertama di kolom di atas.";
  display: block;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- halaman dokumen ---------- */

.doc { padding: 64px 0; }
.doc__title { font-size: 36px; }
.doc__intro { color: var(--muted); font-size: 18px; margin-bottom: 24px; }
.doc__back { margin-top: 48px; font-size: 16px; }

/* ---------- kaki ---------- */

.foot {
  border-top: 1px solid var(--line);
  padding: 48px 0 64px;
  font-size: 14px;
  color: var(--muted);
}

.foot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.foot__brand {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.foot__nav { display: flex; flex-wrap: wrap; gap: 16px; }
.foot__nav a { color: var(--muted); text-decoration: none; }
.foot__nav a:hover { color: var(--brand); text-decoration: underline; }

.foot__copy { margin: 0 0 8px; }
.foot__note { margin: 0; max-width: 70ch; }

/* ---------- telepon ---------- */

@media (max-width: 640px) {
  body { font-size: 16px; }

  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav { gap: 16px; }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .hero__art { justify-content: center; }
  .stall { max-width: 300px; }
  .facts { gap: 24px; }

  .hero__title { font-size: 28px; }
  .hero__title em { font-size: 22px; }

  .hero__inner { padding-top: 32px; padding-bottom: 32px; }

  .section { padding: 48px 0; }
  .section__title, .doc__title { font-size: 28px; }

  .card { grid-template-columns: 1fr; gap: 16px; }
  .card__art { aspect-ratio: 16 / 9; }

  .btn, .btn--sm { width: 100%; }
  .cform__actions .btn { width: 100%; }

  .faq__q { font-size: 18px; }
  .prose h2 { font-size: 22px; }
}


/* ---------- kartu game (bisa diklik) ---------- */

.cards--games {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card--game {
  display: block;
  padding: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card--game:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }

.card__cover {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #efe3d2;
  border-bottom: 1px solid var(--line);
}

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

.card--game .card__status { color: #a4461f; }

.card__play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

/* ---------- halaman game ---------- */

.game-page { padding: 32px 0 64px; }

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 14px;
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--brand); text-decoration: underline; }

.game-page__title { font-size: 36px; margin-bottom: 8px; }

.game-page__meta {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
}

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1f1a14;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

.stage__cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage__cover[hidden] { display: none; }

.stage__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 26, 20, 0.42);
}

.stage__cover .btn {
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-2);
}

.stage__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fffaf2;
  font-size: 16px;
  background: #1f1a14;
}
.stage__loading[hidden] { display: none; }
.stage__loading::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 250, 242, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: stage-spin 0.9s linear infinite;
}
@keyframes stage-spin { to { transform: rotate(360deg); } }

.stage__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0 32px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: #a4461f;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { background: #fff; }
.chip[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.chip__msg { font-size: 14px; color: var(--muted); }

@media (max-width: 640px) {
  .stage { aspect-ratio: 4 / 3; }
  .game-page__title { font-size: 28px; }
  .chip { flex: 1 1 auto; justify-content: center; }
}
