/* ============================================================
   Simulator Warung — style.css  (versi cerah)
   Mobile-first. Tanpa font eksternal, tanpa gambar, tanpa CDN.
   Titik henti: 768px (utama) dan 1024px (tiga kartu sejajar).
   ============================================================ */

:root {
  --bg: #fffcf6;
  --bg-alt: #fff4e4;
  --surface: #ffffff;
  --ink: #1d1410;
  --ink-soft: #5b4a3d;
  --brand: #f04e23;
  --brand-ink: #c2360f;
  --brand-2: #ff8a00;
  --pink: #e5007d;
  --violet: #6d3bea;
  --teal: #00b39f;
  --sun: #ffcf3f;
  --line: #f3dfc6;
  --night: #191018;
  --shadow-sm: 0 1px 2px rgba(120, 50, 10, .08), 0 8px 22px rgba(120, 50, 10, .08);
  --shadow-lg: 0 4px 10px rgba(120, 50, 10, .1), 0 22px 44px rgba(120, 50, 10, .16);
  --radius: 20px;
  --wrap: 1080px;
  --ease: cubic-bezier(.32, .72, .28, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, iframe, svg { max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -.022em;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--brand-ink); }

::selection {
  background: #ffe28a;
  color: #2b1600;
}

:focus-visible {
  outline: 3px solid #0b7a6a;
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Lompat ke konten — hanya tampil saat fokus papan tombol */
.skip {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 20;
  background: #fff;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: top .16s var(--ease);
}
.skip:focus { top: 12px; }

/* ================= Header ================= */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 46px 54px;
  color: #fffaf5;
  background:
    radial-gradient(130% 125% at 0% 28%, rgba(24, 4, 12, .46) 0%, rgba(24, 4, 12, .2) 42%, transparent 70%),
    radial-gradient(90% 90% at 96% 6%, rgba(255, 255, 255, .28) 0%, transparent 55%),
    linear-gradient(135deg, #ff7a18 0%, #f4224c 48%, #b3179e 100%);
}

/* Garis-garis tenda di bagian atas */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 84px;
  z-index: -1;
  background: repeating-linear-gradient(90deg,
      rgba(255, 255, 255, .22) 0 18px,
      rgba(255, 255, 255, 0) 18px 36px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9ff5e;
  box-shadow: 0 0 0 3px rgba(201, 255, 94, .25);
}

.hero__title {
  font-size: clamp(2rem, 8.4vw, 3.45rem);
  font-weight: 800;
  letter-spacing: -.032em;
  text-shadow: 0 2px 18px rgba(40, 6, 20, .22);
}

/* Stabilo kuning di belakang dua kata pertama */
.hero__mark {
  background-image: linear-gradient(180deg,
      transparent 54%,
      rgba(255, 207, 63, .85) 54%,
      rgba(255, 207, 63, .85) 94%,
      transparent 94%);
  background-repeat: no-repeat;
  padding-inline: .07em;
  color: #2a1200;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__sub {
  margin-top: 18px;
  max-width: 34em;
  font-size: clamp(1rem, 3.9vw, 1.18rem);
  line-height: 1.6;
  color: #fff2e6;
  text-shadow: 0 1px 10px rgba(40, 6, 20, .25);
}

.hero__cta { margin-top: 28px; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe680 0%, #ffc61a 100%);
  color: #2b1600;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    0 14px 28px -8px rgba(120, 30, 0, .55),
    0 0 0 1px rgba(255, 255, 255, .35);
  transition: transform .14s var(--ease), box-shadow .14s var(--ease), filter .14s var(--ease);
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 20px 34px -10px rgba(120, 30, 0, .6),
    0 0 0 1px rgba(255, 255, 255, .4);
}

.btn:active {
  transform: translateY(0);
  box-shadow: inset 0 3px 8px rgba(120, 60, 0, .3);
}

.hero__note {
  margin-top: 16px;
  font-size: .875rem;
  color: #ffe6d3;
  text-shadow: 0 1px 8px rgba(40, 6, 20, .3);
}

/* Tepi bergerigi seperti tenda warung */
.hero__awning {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 12px;
  background:
    radial-gradient(circle at 50% 100%, var(--bg) 0 9px, transparent 9.4px) 0 0 / 24px 12px repeat-x;
}

/* ================= Dekorasi pohon kelapa ================= */

.deco-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  color: #fff;
}

/* Di atas gradasi hangat header */
.deco--hero {
  right: -56px;
  bottom: 4px;
  width: 228px;
  height: auto;
  opacity: .2;
  transform-origin: bottom right;
}

/* Samar di sudut bagian perkenalan */
.deco--about {
  right: -48px;
  top: 8px;
  width: 186px;
  height: auto;
  opacity: .07;
  color: #00897a;
}

/* Sudut gelap footer */
.deco--foot {
  right: -44px;
  bottom: -16px;
  width: 206px;
  height: auto;
  opacity: .13;
  color: var(--sun);
}

.section--alt .wrap,
.site-foot .wrap {
  position: relative;
  z-index: 1;
}

/* ================= Section ================= */

.section {
  padding-block: 40px;
  scroll-margin-top: 12px;
}

.section--alt {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-alt) 0%, #fffcf6 100%);
  border-block: 1px solid var(--line);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-ink);
}

.kicker::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--pink));
}

.section__title {
  font-size: clamp(1.5rem, 5.8vw, 2.15rem);
  font-weight: 800;
}

.section__lead {
  margin-top: 10px;
  max-width: 58ch;
  color: var(--ink-soft);
}

/* ================= Kartu game ================= */

.game-grid {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  --accent: var(--brand);
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent);
}

.card--kopi { --accent: var(--brand); }
.card--kelontong { --accent: var(--teal); }
.card--makan { --accent: var(--pink); }

.card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 19px 18px 14px;
}

.card__no {
  flex: 0 0 auto;
  margin-top: 2px;
  font-size: .75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 7px;
  background: #fdf2e3;
}

.card__text { min-width: 0; }

.card__name {
  font-size: 1.075rem;
  font-weight: 800;
}

.card__desc {
  margin-top: 4px;
  font-size: .9375rem;
  color: var(--ink-soft);
}

/* Bingkai 16:9 — penuh, tidak pernah melebarkan halaman */
.frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #ffe9cf 0%, #ffd9b8 100%);
  border-top: 1px solid var(--line);
}

.frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@supports not (aspect-ratio: 16 / 9) {
  .frame { height: 0; padding-bottom: 56.25%; }
}

/* Efek angkat hanya di perangkat berpenunjuk */
@media (hover: hover) {
  .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #f0c6a4;
  }
}

/* ================= Ringkasan + teks ================= */

.summary {
  position: relative;
  margin-top: 22px;
  padding: 20px 20px 18px;
  border: 1px solid #c8f0e8;
  border-left: 4px solid var(--teal);
  border-radius: 14px;
  background: linear-gradient(180deg, #f1fffc 0%, #ffffff 100%);
  box-shadow: 0 6px 18px rgba(0, 120, 105, .07);
}

.summary__title {
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #00786a;
}

.summary__list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.summary__list li {
  position: relative;
  padding-left: 22px;
  font-size: .9625rem;
  color: #33302a;
}

.summary__list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .52em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  opacity: .65;
}

.prose {
  margin-top: 22px;
  max-width: 68ch;
}

.prose p {
  margin-bottom: 1.05em;
  font-size: 1.0125rem;
  line-height: 1.72;
  color: #2d2118;
  text-wrap: pretty;
}

.prose p:last-child { margin-bottom: 0; }

/* ================= Angka ringkas ================= */

.stats {
  list-style: none;
  margin: 30px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.stat__num {
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--brand-ink);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: .875rem;
  color: var(--ink-soft);
}

/* ================= FAQ ================= */

.faq {
  margin-top: 22px;
  display: grid;
  gap: 10px;
  max-width: 780px;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 18px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background-color .16s var(--ease);
}

.faq__item[open] {
  border-color: #ffc7a6;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(180deg, #fffdf7 0%, #fff 100%);
}

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-block: 16px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-right: 2.6px solid var(--brand);
  border-bottom: 2.6px solid var(--brand);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s var(--ease);
}

.faq__item[open] .faq__q::after {
  transform: rotate(-135deg) translateY(-2px);
}

.faq__q:hover { color: var(--brand-ink); }

.faq__a {
  padding-bottom: 18px;
  color: var(--ink-soft);
  font-size: .9625rem;
}

/* ================= Footer ================= */

.site-foot {
  position: relative;
  overflow: hidden;
  padding-block: 36px 44px;
  color: #f6e6d8;
  font-size: .9375rem;
  background:
    radial-gradient(120% 140% at 12% 0%, #35121f 0%, transparent 62%),
    var(--night);
}

.site-foot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--pink) 50%, var(--violet) 100%);
}

.site-foot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(246, 230, 216, .16);
}

.site-foot__brand {
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
}

.site-foot__nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  font-size: .875rem;
}

.site-foot__nav a {
  color: #ecd2bd;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .14s var(--ease), border-color .14s var(--ease);
}

.site-foot__nav a:hover {
  color: #fff;
  border-color: var(--sun);
}

.site-foot__copy { margin-top: 16px; }

.site-foot__note {
  margin-top: 8px;
  color: #c9ab95;
  font-size: .875rem;
}

/* ================= 768px ke atas ================= */

@media (min-width: 768px) {
  .hero { padding-block: 72px 80px; }
  .deco--hero { right: -24px; bottom: 0; width: 330px; opacity: .22; }
  .deco--about { right: -30px; top: 24px; width: 300px; opacity: .06; }
  .deco--foot { right: -20px; bottom: -24px; width: 290px; opacity: .12; }
  .hero__awning { height: 16px; background-size: 28px 16px; }
  .section { padding-block: 60px; }
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .card__head { padding: 21px 20px 15px; }
  .summary { padding: 24px 26px 22px; }
  .prose p { font-size: 1.0625rem; }
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
    padding-top: 26px;
  }
  .stat { flex-direction: column; align-items: flex-start; gap: 4px; }
  .stat__num { font-size: 2.35rem; }
  .faq__item { padding: 0 22px; }
  .site-foot { padding-block: 44px 54px; }
}

@media (min-width: 1024px) {
  .hero__inner { max-width: 820px; }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .card__name { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
