/* =====================================================================
   MARANDANG 2026 · RESPONSIVE v4.4 (tablet & HP)
   Desktop 1440 (sudah disetujui dev) tidak diubah: semua aturan di sini
   hanya aktif di bawah 1280 / 1024 / 768px. File ini sengaja TIDAK berada
   di @layer, jadi otomatis menang atas utility Tailwind di layar kecil.
   Breakpoint: 1279 (laptop kecil) · 1023 (tablet) · 767 (HP, acuan 390px)
   ===================================================================== */

/* ---------- Menu HP (disembunyikan di desktop) ---------- */
.mnav { position: fixed; inset: 80px 0 0 0; z-index: 45; background: var(--color-cream); border-top: 3px solid var(--color-ink);
  padding: 24px 24px 40px; overflow-y: auto; }
.mnav[hidden] { display: none; }
.mlink { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 20px;
  background: #fff; border: 3px solid var(--color-ink); border-radius: 8px; box-shadow: 6px 6px 0 #111;
  font-family: var(--font-display); font-weight: 700; font-size: 26px; transition: transform 90ms ease-out, box-shadow 90ms ease-out; }
.mlink:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 #111; }
.mlink[aria-current="page"] { background: var(--color-secondary); }
.mlink-soft { background: var(--color-blue-soft); }
.burger { display: grid; gap: 5px; width: 22px; }
.burger i { display: block; height: 3px; border-radius: 3px; background: var(--color-ink); transition: transform 160ms ease-out, opacity 120ms; }
.menu-open .burger i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
html.menu-open, html.menu-open body { overflow: hidden; }

/* Cegah geser ke samping tanpa merusak navbar sticky */
#konten, footer { overflow-x: clip; }

/* =====================================================================
   ≤ 1439px · teks hero halaman tidak boleh masuk ke area maskot (40% kanan)
   ===================================================================== */
@media (min-width: 1024px) and (max-width: 1439px) {
  section[aria-labelledby="page-title"] .max-w-\[720px\] { max-width: calc(60vw - 104px); }
}

/* =====================================================================
   ≤ 1279px · laptop kecil
   ===================================================================== */
@media (max-width: 1279px) {
  header nav { padding-inline: 32px; }
  header nav > ul .nav-link { padding-inline: 12px; }
  /* Filter area Jadwal: baris geser supaya nama zona tidak terpotong */
  [role="group"][aria-label="Pilih area"] { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding: 14px 4px 6px; margin: 0 -4px; scrollbar-width: thin; }
  [role="group"][aria-label="Pilih area"] > * { flex: 0 0 168px; scroll-snap-align: start; }
  .seg button { white-space: nowrap; }
  [aria-label="Filter jadwal"] > .flex { flex-wrap: wrap; row-gap: 10px; }
}

/* =====================================================================
   ≤ 1023px · tablet (dan HP, ditimpa lagi di bawah)
   ===================================================================== */
@media (max-width: 1023px) {
  /* Navbar: menu → tombol hamburger */
  header nav { padding-inline: 24px; }
  header nav > ul, header nav > div > a.nav-link { display: none !important; }
  .menu-btn { display: grid; }
  header .btn-primary { height: 48px; }

  /* Jarak & kontainer */
  .px-20 { padding-left: 32px; padding-right: 32px; }
  .py-16 { padding-top: 56px; padding-bottom: 56px; }
  .py-20, .py-24 { padding-top: 64px; padding-bottom: 64px; }
  .py-14 { padding-top: 48px; padding-bottom: 48px; }
  .gap-12, .gap-10 { gap: 32px; }

  /* Tipografi */
  .text-h1 { font-size: 48px; }
  .text-h2 { font-size: 36px; }
  .text-\[92px\] { font-size: 72px; }

  /* Grid 12 kolom → tumpuk */
  .grid-cols-12 { grid-template-columns: minmax(0, 1fr); }
  .grid-cols-12 > [class*="col-span-"] { grid-column: 1 / -1; }
  .grid-cols-12 > .row-span-2 { grid-row: auto; }
  .grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  ul:has(> .bumbu) { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  /* Hero Beranda: teks dulu, lalu visual berbingkai */
  section[aria-labelledby="hero-title"] > .grid-cols-2 { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  section[aria-labelledby="hero-title"] .grid-paper { border-right: 0; border-bottom: 3px solid var(--color-ink); padding: 48px 32px; }
  section[aria-labelledby="hero-title"] .bg-primary { padding: 48px 40px; }

  /* Hero halaman: blok warna penuh, visual turun ke bawah teks */
  section[aria-labelledby="page-title"] { flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 0; }
  section[aria-labelledby="page-title"] > .absolute.right-0 { order: 2; }
  /* Visual hero dikunci di dalam areanya (sebelumnya maskot bisa membesar & menutupi teks) */
  section[aria-labelledby="page-title"] > .absolute.right-0 > .absolute { top: 0; }
  section[aria-labelledby="page-title"] > .absolute.right-0 img { max-height: 100%; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
  section[aria-labelledby="page-title"] > .absolute.right-0 > .absolute.inset-x-0.bottom-0.items-end { top: auto; height: 34%; }
  section[aria-labelledby="page-title"] > .absolute.right-0 > .absolute.inset-x-0.bottom-0.items-end img { height: 100%; }
  section[aria-labelledby="page-title"] > .absolute.right-0 > .absolute.left-4.bottom-0 { top: auto; height: 46%; }
  section[aria-labelledby="page-title"] > .absolute.right-0 { position: relative; inset: auto; width: auto; height: 280px; margin: 24px -32px 0; }
  section[aria-labelledby="page-title"] > img.deco.right-\[40\%\] { right: 96px; top: 20px; width: 44px; }
  section[aria-labelledby="page-title"] > img.deco.right-8 { right: 24px; top: 20px; width: 44px; }
  section[aria-labelledby="page-title"] .max-w-\[720px\] { max-width: 640px; }

  /* Bento Beranda: kartu Game naik ke paling atas */
  section[aria-label="Sekilas Marandang"] article.bg-purple { order: -1; }

  /* Band ungu/biru */
  .border-l-\[3px\].border-white\/40 { border-left: 0; padding-left: 0; }
  section.on-dark .col-span-3.justify-end { justify-content: flex-start; }

  /* Kartu 7 semangat: tetap acak-estetik, 4 kolom di tablet (tidak terpotong di tepi layar) */
  .deal { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; padding: 14px 6px 20px; }
  .deal > li:nth-child(n+5) { grid-column: auto; }

  /* Filter Jadwal: area jadi baris geser */
  [role="group"][aria-label="Pilih area"] { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding: 14px 4px 6px; margin: 0 -4px; scrollbar-width: thin; }
  [role="group"][aria-label="Pilih area"] > * { flex: 0 0 168px; scroll-snap-align: start; }

  /* Tab bersegmen & chip tidak boleh meluber */
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { white-space: nowrap; }

  /* Langkah bernomor: panah penghubung disembunyikan di tablet */
  ol.grid-cols-5 > li > span.absolute, ol.grid-cols-4 > li > span.absolute { display: none; }

  /* Footer: 2 kolom */
  footer .grid-cols-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  footer .grid-cols-12 > .col-span-4 { grid-column: 1 / -1; }
  footer .grid-cols-12 > .col-span-2 { grid-column: auto; }

  /* Modal */
  #modal-panel { width: min(720px, calc(100vw - 32px)); }
}

/* =====================================================================
   ≤ 767px · HP (acuan iPhone 390 × 844)
   ===================================================================== */
@media (max-width: 767px) {
  html { scroll-padding-top: 80px; }
  header { height: 64px; }
  header nav { padding-inline: 16px; gap: 10px; }
  header nav img.size-14 { width: 44px; height: 44px; margin: 0; }
  header nav a > span.font-display { font-size: 17px; }
  header nav a > span.font-display > span { display: none; }
  header nav > a { gap: 8px; }
  header .btn-primary { height: 44px; padding-inline: 12px; font-size: 14px; }
  .menu-btn { width: 44px; height: 44px; }
  .mnav { top: 64px; padding: 20px 16px 32px; }
  .mlink { min-height: 58px; font-size: 22px; }

  .px-20 { padding-left: 20px; padding-right: 20px; }
  .py-16 { padding-top: 48px; padding-bottom: 48px; }
  .py-20, .py-24 { padding-top: 56px; padding-bottom: 56px; }
  .py-14 { padding-top: 40px; padding-bottom: 40px; }
  .p-8 { padding: 24px; }
  .px-14 { padding-left: 20px; padding-right: 20px; }
  .gap-12, .gap-10, .gap-8 { gap: 24px; }

  /* Tipografi HP: H1 64→36, H2 44→28, body-lg 20→18 */
  .text-h1 { font-size: 36px; line-height: 1.08; }
  .text-h2 { font-size: 28px; }
  .text-h3 { font-size: 22px; }
  .text-body-lg { font-size: 18px; }
  .lead { font-size: 17px; }
  .text-\[92px\] { font-size: 52px; }
  .text-\[30px\] { font-size: 22px; }
  .text-\[28px\] { font-size: 22px; }
  .eyebrow { font-size: 14px; }

  /* Grid → 1 kolom (kecuali yang memang kecil) */
  .grid-cols-3, .grid-cols-4, .grid-cols-2 { grid-template-columns: minmax(0, 1fr); }
  .grid-cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  ol.grid-cols-3 { grid-template-columns: 1fr; }
  section[aria-label="Sekilas Marandang"] ol.grid-cols-3 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  section[aria-label="Sekilas Marandang"] ul.grid-cols-3, section[aria-label="Sekilas Marandang"] .grid-cols-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  section[aria-label="Sekilas Marandang"] .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [role="radiogroup"][aria-label="Pilih peran"].grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #opsi { grid-template-columns: 1fr; }
  .stamp-btn span { font-size: 12px; }

  /* Hero Beranda */
  section[aria-labelledby="hero-title"] .grid-paper { padding: 36px 20px 40px; }
  section[aria-labelledby="hero-title"] .bg-primary { padding: 40px 24px 36px; }
  section[aria-labelledby="hero-title"] .flex.items-center.gap-4 { flex-direction: column; align-items: stretch; }
  section[aria-labelledby="hero-title"] .btn-l { width: 100%; }
  section[aria-labelledby="hero-title"] img.deco.w-24 { width: 64px; left: -12px; top: -22px; }
  section[aria-labelledby="hero-title"] .bg-primary > img.deco { width: 44px; }

  /* Hero halaman */
  section[aria-labelledby="page-title"] { padding-top: 40px; }
  section[aria-labelledby="page-title"] > .absolute.right-0 { height: 230px; margin: 20px -20px 0; }
  section[aria-labelledby="page-title"] .btn-l { flex: 1 1 auto; }
  section[aria-labelledby="page-title"] .flex.gap-4, section[aria-labelledby="page-title"] .flex.items-center.gap-4 { flex-wrap: wrap; }
  section[aria-labelledby="page-title"] > img.deco.right-\[40\%\] { right: 72px; top: 14px; width: 36px; }
  section[aria-labelledby="page-title"] > img.deco.right-8 { right: 20px; top: 14px; width: 36px; }

  /* Tombol besar di HP: penuh lebar bila sendirian */
  .btn-l { height: 52px; padding-inline: 20px; font-size: 16px; }
  .h-16.btn-l { height: 56px; }

  /* Kepala section & baris yang meluber: boleh turun */
  #konten div.flex.items-end.justify-between, #konten div.flex.items-center.justify-between { flex-wrap: wrap; row-gap: 14px; }
  #konten button.flex.justify-between, #konten [data-action="faq"] { flex-wrap: nowrap; }

  /* Hitung mundur */
  .cd-box { min-width: 60px; padding: 6px 6px; }
  .cd-box .text-\[34px\] { font-size: 26px; }
  #countdown { gap: 8px; flex-wrap: wrap; }

  /* Kartu horizontal (keseruan, rowCard) */
  .min-h-\[172px\] { min-height: 150px; }
  .w-32.shrink-0 { width: 96px; }
  .w-24.shrink-0 { width: 76px; }

  /* Langkah bernomor (Cara main, Alur mitra): 1 kolom, panah penghubung mengarah ke bawah */
  ol.grid-cols-5, ol.grid-cols-4 { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  ol.grid-cols-5 > li > span.absolute, ol.grid-cols-4 > li > span.absolute { display: grid; top: auto; bottom: -22px; right: 50%; translate: 50% 0; rotate: 90deg; }

  /* Jadwal: baris ringkas (jam | nama+zona | panah) */
  .grid-cols-\[132px_1fr_260px_44px\] { grid-template-columns: 64px 1fr 40px; gap: 12px; padding: 14px 14px; }
  .grid-cols-\[132px_1fr_260px_44px\] > :nth-child(1) { font-size: 20px; }
  .grid-cols-\[132px_1fr_260px_44px\] > :nth-child(3) { grid-column: 2; grid-row: 2; min-width: 0; }
  .grid-cols-\[132px_1fr_260px_44px\] .tag, .grid-cols-\[110px_1fr_auto\] .tag { white-space: normal; text-align: left; }
  .grid-cols-\[132px_1fr_260px_44px\] > :nth-child(4) { grid-column: 3; grid-row: 1 / span 2; width: 40px; height: 40px; }
  .grid-cols-\[110px_1fr_auto\] { grid-template-columns: 62px 1fr auto; gap: 12px; padding: 12px 14px; }
  .grid-cols-\[110px_1fr_auto\] > :first-child { font-size: 20px; }
  .w-\[132px\] { width: 64px; }
  .sticky.top-24 { position: static; }
  [role="group"][aria-label="Pilih area"] > * { flex-basis: 150px; }

  /* Kartu 7 semangat: 2 kolom acak, kartu ke-7 di tengah */
  .deal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; padding: 12px 4px 18px; }
  .deal > li:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
  .deal .flip { height: 200px; }
  .deal .flip-face > span:first-child .text-\[56px\], .deal .text-\[56px\] { font-size: 44px; }

  /* Band ungu/biru: tombol penuh lebar */
  section.on-dark .col-span-3.justify-end .btn { width: 100%; }
  section.on-dark > img.deco.right-10 { right: 14px; top: 14px; width: 36px; }
  section.on-dark h2.col-span-4 { padding-right: 44px; }

  /* Galeri / lightbox / modal */
  #modal-panel { width: calc(100vw - 20px); max-height: 88vh; }
  .h-\[520px\] { height: 300px; }
  .grid-cols-\[120px_1fr\] { grid-template-columns: 96px 1fr; }

  /* Kartu QR di hero Main Game */
  [role="note"] > span:first-child { width: 60px; }
  [role="note"] b.font-display { font-size: 17px; }

  /* Halaman sukses */
  .place-items-center > .max-w-\[880px\] { width: 100%; padding: 32px 20px; }
  .place-items-center > .max-w-\[880px\] .flex.justify-center { flex-direction: column; }
  .place-items-center > .max-w-\[880px\] .sticker { right: 8px; }

  /* Footer */
  footer { padding-top: 48px; }
  footer .pt-8.flex { flex-direction: column; align-items: flex-start; gap: 14px; }
  footer .pt-8.flex > p { flex-wrap: wrap; gap: 10px 16px; }
}

/* HP besar / tablet kecil (560–767px): kartu 7 semangat 4 kolom supaya tetap berbentuk kartu */
@media (min-width: 560px) and (max-width: 767px) {
  .deal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .deal > li:last-child { grid-column: auto; justify-self: stretch; width: auto; }
}

/* HP kecil (≤ 400px): logo saja, tanpa tulisan, supaya tombol Main Game & menu muat */
@media (max-width: 400px) {
  header nav a > span.font-display { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Layar sangat sempit (≤ 360px) */
@media (max-width: 360px) {
  .text-\[92px\] { font-size: 46px; }
  .px-20 { padding-left: 16px; padding-right: 16px; }
}

/* =====================================================================
   v4.6 · PERBAIKAN HASIL AUDIT QA (19 Nov 2026)
   ID mengacu ke laporan audit: K = kritis, T = tinggi, S = sedang, R = rendah
   ===================================================================== */

/* K1 · Filter Jadwal: hanya menempel bila layar cukup tinggi (HP landscape tidak tertutup) */
@media (max-height: 699px) {
  [aria-label="Filter jadwal"] { position: static; }
}
@media (min-width: 768px) and (max-width: 1279px) and (min-height: 700px) {
  [aria-label="Filter jadwal"] { top: 88px; }
}

/* K2 · Ikon cadangan bila Lucide (CDN) gagal dimuat: <i data-lucide> yang tidak terganti jadi simbol teks */
i[data-lucide] { display: inline-grid; place-items: center; font-style: normal; font-weight: 800; line-height: 1; }
i[data-lucide]::before { content: ""; }
i[data-lucide="arrow-right"]::before { content: "→"; }
i[data-lucide="arrow-up-right"]::before { content: "↗"; }
i[data-lucide="arrow-left"]::before { content: "←"; }
i[data-lucide="arrow-down"]::before { content: "↓"; }
i[data-lucide="chevron-right"]::before { content: "›"; }
i[data-lucide="check"]::before, i[data-lucide="circle-check"]::before, i[data-lucide="badge-check"]::before { content: "✓"; }
i[data-lucide="plus"]::before { content: "+"; }
i[data-lucide="x"]::before { content: "✕"; }
i[data-lucide="play"]::before { content: "▶"; font-size: .8em; }
i[data-lucide="pause"]::before, i[data-lucide="pause-circle"]::before { content: "❚❚"; font-size: .7em; }
i[data-lucide="layers"]::before { content: "≡"; }
i[data-lucide="rotate-cw"]::before, i[data-lucide="rotate-ccw"]::before { content: "↻"; }
i[data-lucide="map-pin"]::before, i[data-lucide="navigation"]::before { content: "⌖"; }

/* T3 · Kartu 7 semangat: tulisan menyesuaikan lebar kartu (tidak terpotong), 4 kolom di 1024–1279 */
@media (max-width: 1279px) {
  .deal .flip { container-type: inline-size; }
  .deal .flip-face > .mt-auto.font-display { font-size: clamp(12px, 11.5cqi, 19px); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .deal { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
}
@media (min-width: 560px) and (max-width: 767px) {
  .deal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deal > li:last-child { grid-column: 1 / -1; justify-self: center; width: calc((100% - 32px) / 3); }
}

/* S2 · Teks abu di atas pilihan kuning terpilih → hitam (kontras 4,16 → 11:1) */
[aria-pressed="true"] .text-muted, [aria-selected="true"] .text-muted, [aria-checked="true"] .text-muted { color: var(--color-ink); }

/* S4 · Modal: pakai tinggi viewport dinamis (iOS/Android address bar) */
@supports (height: 100dvh) {
  .max-h-\[90vh\] { max-height: 90dvh; }
}

/* T1 · Latar krem ringan untuk layar ≤ 1023 (960px, 6 KB; tanpa background-attachment: fixed yang berat di HP) */
@media (max-width: 1023px) {
  body { background-image: url('brand/bg-krem-960.webp'); background-attachment: scroll; background-size: 100% auto; background-repeat: repeat-y; }
}

/* R2 · Link teks footer minimal 44px lebar sentuh */
footer nav a, footer ul a { min-width: 44px; }

@media (max-width: 767px) {
  /* T4 · Peta Zona: catatan denah pindah ke bawah peta, pin lebih kecil, label zona di peta disembunyikan
     (nama zona tetap tampil di daftar tombol tepat di bawah peta) */
  #prog-view .peta-note { display: none; }
  #prog-view .peta-note-m { display: block; }
  #prog-view .peta-note-m .tag { white-space: normal; text-align: left; }
  #prog-view .aspect-\[4\/3\] [data-action="hot"] { width: 44px; height: 44px; font-size: 18px; }
  #prog-view .aspect-\[4\/3\] [data-action="hot"][aria-pressed="true"] { width: 50px; height: 50px; }
  #prog-view .aspect-\[4\/3\] > div > span { display: none; }

  /* S3 · Teks label minimal 13px di HP */
  .tag { font-size: 13px; }
  .text-\[12px\], .text-\[11px\] { font-size: 13px; }
  .stamp-btn span { font-size: 13px; }
  #modal-panel { max-height: 88vh; }
  @supports (height: 100dvh) { #modal-panel { max-height: 88dvh; } }
}

/* S1 · Tombol simulasi game (Scan / Ulangi) turun baris di HP sempit */
@media (max-width: 400px) {
  .mt-6.flex.gap-4:has(> [data-action="sim-reset"]) { flex-wrap: wrap; }
  .mt-6.flex.gap-4:has(> [data-action="sim-reset"]) > .btn { flex: 1 1 100%; }
}

/* Kartu horizontal (rowCard) di 1024–1279: blok warna lebih ramping supaya panah tidak menempel tepi */
@media (min-width: 1024px) and (max-width: 1279px) {
  button.bx.press.overflow-hidden.flex > span.shrink-0:first-child { width: 60px; }
}

/* =====================================================================
   v4.7 · MOBILE RINGKAS ALA APLIKASI (hasil wawancara pengguna, 19 Nov)
   Masalah: tampilan HP terasa "kegedean", banyak scroll, tab terpotong,
   menu menutup layar, logo Jadi Mitra terpotong.
   Prinsip: skala tipografi & jarak ±30% lebih rapat di HP, tab selalu muat
   satu baris tanpa geser, menu = dropdown kecil, visual hero dibatasi.
   Desktop ≥ 1024 tidak terpengaruh (kecuali label tab hari yang tetap sama).
   ===================================================================== */

/* Label tab hari: desktop tetap "Hari 1 · Jum 11 Des" */
.seg-sub::before { content: " · "; }

/* ---------- Menu: dropdown ringkas (HP & tablet) ---------- */
.mnav-bg { position: fixed; inset: 0; z-index: 44; background: rgba(17, 17, 17, .35); }
.mnav-bg[hidden] { display: none; }
@media (max-width: 1023px) {
  .mnav { inset: auto; top: 88px; right: 16px; left: auto; bottom: auto; width: min(300px, calc(100vw - 32px));
    max-height: calc(100vh - 104px); padding: 12px; border: 3px solid var(--color-ink); border-radius: 12px; box-shadow: 6px 6px 0 #111; background: var(--color-cream); }
  .mnav nav { gap: 6px; }
  .mlink { min-height: 46px; padding: 0 14px; font-size: 18px; border-width: 2px; box-shadow: none; }
  .mlink:active { transform: translate(2px, 2px); box-shadow: none; }
  .mlink svg, .mlink i { width: 18px; height: 18px; }
  .mnav .btn-l { height: 46px; font-size: 15px; margin-top: 6px; }
  .mnav p { margin-top: 8px; font-size: 12.5px; }
}
@media (max-width: 1023px) and (min-height: 0px) {
  @supports (height: 100dvh) { .mnav { max-height: calc(100dvh - 104px); } }
}

@media (max-width: 767px) {
  .mnav { top: 72px; right: 12px; width: min(280px, calc(100vw - 24px)); }
  .mnav-bg { top: 64px; }

  /* ---------- Skala tipografi & jarak (lebih rapat) ---------- */
  .text-h1 { font-size: 28px; line-height: 1.12; }
  .text-h2 { font-size: 23px; line-height: 1.18; }
  .text-h3 { font-size: 19px; }
  .text-\[92px\] { font-size: 40px; }
  .text-\[30px\] { font-size: 18px; }
  .text-\[28px\] { font-size: 19px; }
  .text-\[26px\] { font-size: 18px; }
  .text-\[24px\], .text-\[22px\] { font-size: 17px; }
  .text-body-lg, .lead { font-size: 16px; }
  .lead { margin-top: 8px; }
  .eyebrow { font-size: 12px; padding: 3px 10px; margin-bottom: 8px; }
  .eyebrow svg { width: 14px; height: 14px; }

  .py-16, .py-14 { padding-top: 32px; padding-bottom: 32px; }
  .py-20, .py-24 { padding-top: 36px; padding-bottom: 36px; }
  .px-20 { padding-left: 16px; padding-right: 16px; }
  .p-8, .p-7 { padding: 18px; }
  .p-6 { padding: 14px; }
  .p-5 { padding: 12px; }
  .mb-10, .mb-12 { margin-bottom: 18px; }
  .mb-8 { margin-bottom: 14px; }
  .mt-10, .mt-12 { margin-top: 20px; }
  .mt-8, .mt-7 { margin-top: 16px; }
  .mt-6 { margin-top: 12px; }
  .gap-6 { gap: 12px; }
  .gap-8, .gap-12, .gap-10 { gap: 16px; }

  /* Tombol: setinggi tombol aplikasi (tetap ≥ 44px untuk jempol) */
  .btn { height: 44px; padding-inline: 14px; font-size: 15px; gap: 6px; }
  .btn-l { height: 46px; padding-inline: 16px; font-size: 15px; }
  .btn svg { width: 18px; height: 18px; }
  .chip { min-height: 40px; padding: 6px 12px; font-size: 14px; }

  /* ---------- Tab bar: selalu muat satu baris, tanpa geser ---------- */
  .seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; overflow: visible; }
  .seg button { white-space: normal; padding: 4px 6px; min-height: 48px; font-size: 14px; line-height: 1.15; text-align: center; }
  .seg button svg, .seg button i { display: none; }
  .seg-sub { display: block; font-size: 12px; font-weight: 600; opacity: .85; margin-top: 2px; }
  .seg-sub::before { content: none; }

  /* Filter area Jadwal: chip ringkas yang turun baris (tidak terpotong) */
  [role="group"][aria-label="Pilih area"] { display: flex; flex-wrap: wrap; overflow: visible; gap: 6px; padding: 10px 0 0; margin: 0; }
  [role="group"][aria-label="Pilih area"] > * { flex: 0 0 auto; min-height: 44px; padding: 4px 10px 4px 5px; gap: 6px; }
  [role="group"][aria-label="Pilih area"] > * > span:first-child { width: 26px; height: 26px; font-size: 12px; }
  [role="group"][aria-label="Pilih area"] .zcount { display: inline; margin-left: 2px; }
  [role="group"][aria-label="Pilih area"] .zcount::before { content: "· "; }
  [role="group"][aria-label="Pilih area"] > * > span.min-w-0 > span:first-child { display: inline; font-size: 13px; }
  [role="group"][aria-label="Pilih area"] .tick { width: 20px; height: 20px; top: -8px; right: -8px; }
  [aria-label="Filter jadwal"] { padding: 12px; }

  /* ---------- Hero Beranda ringkas ---------- */
  section[aria-labelledby="hero-title"] .grid-paper { padding: 22px 16px 24px; }
  section[aria-labelledby="hero-title"] p.mt-5 { margin-top: 10px; padding: 4px 12px; box-shadow: 4px 4px 0 #111; }
  section[aria-labelledby="hero-title"] .mt-7 { margin-top: 12px; font-size: 15px; }
  section[aria-labelledby="hero-title"] ul.mt-6 { margin-top: 12px; gap: 8px; }
  section[aria-labelledby="hero-title"] ul.mt-6 button, section[aria-labelledby="hero-title"] ul.mt-6 a { min-height: 40px; padding: 0 10px; font-size: 13px; border-width: 2px; }
  section[aria-labelledby="hero-title"] .flex.items-center.gap-4 { flex-direction: row; margin-top: 14px; gap: 10px; }
  section[aria-labelledby="hero-title"] .flex.items-center.gap-4 > .btn-l { width: auto; flex: 1 1 0; padding-inline: 10px; font-size: 14px; }
  section[aria-labelledby="hero-title"] .bg-primary { padding: 22px 20px 18px; }
  section[aria-labelledby="hero-title"] .bg-primary .relative.mt-12 { margin-top: 18px; }
  section[aria-labelledby="hero-title"] img.deco.w-24 { width: 48px; top: -16px; left: -10px; }

  /* Hitung mundur ringkas */
  .cd-box { min-width: 50px; padding: 4px 6px; }
  .cd-box .text-\[34px\] { font-size: 22px; }

  /* ---------- Hero halaman ringkas + visual dibatasi (tidak ada lagi gambar kegedean/terpotong) ---------- */
  section[aria-labelledby="page-title"] { padding-top: 22px; }
  section[aria-labelledby="page-title"] > .absolute.right-0 { height: 168px; margin: 14px -16px 0; }
  section[aria-labelledby="page-title"] > .absolute.right-0 img { max-height: 156px; }
  section[aria-labelledby="page-title"] > .absolute.right-0 > .absolute.inset-0.p-12 { padding: 8px; }
  section[aria-labelledby="page-title"] > .absolute.right-0 > .absolute.inset-0.p-12 img { width: auto; height: 150px; max-width: 70%; }
  section[aria-labelledby="page-title"] > .absolute.right-0 .h-44 { height: 112px; }
  section[aria-labelledby="page-title"] .flex.gap-4, section[aria-labelledby="page-title"] .flex.items-center.gap-4 { gap: 8px; }
  section[aria-labelledby="page-title"] .btn-l { flex: 1 1 auto; }
  section[aria-labelledby="page-title"] > img.deco { width: 30px; }

  /* ---------- Kartu & daftar lebih rapat ---------- */
  .min-h-\[172px\] { min-height: 0; }
  .w-32.shrink-0 { width: 72px; }
  .w-32.shrink-0 img { width: 52px; }
  .w-24.shrink-0, .w-20.shrink-0 { width: 60px; }
  .size-14 { width: 44px; height: 44px; }
  .stamp-btn span { display: none; }                      /* keterangan sektor: label sudah ada di gambar prangko */
  ul.grid-cols-6 { gap: 10px; }
  [data-action="faq"] { min-height: 52px; padding: 10px 14px; font-size: 15px; gap: 12px; }
  [data-action="faq"] .faq-ic { width: 32px; height: 32px; }
  .deal .flip { height: 168px; }
  .deal .text-\[56px\] { font-size: 36px; }

  /* Band & footer */
  section.on-dark.py-16 { padding-top: 28px; padding-bottom: 28px; }
  footer { padding-top: 32px; padding-bottom: 24px; }
  footer img.w-36 { width: 88px; height: auto; }
  footer .grid-cols-12 { row-gap: 20px; }
}

/* v4.7 · penyempurnaan ringkas (lanjutan) */
@media (max-width: 767px) {
  /* Langkah bernomor: nomor di kiri, judul + teks di kanan (seperti daftar di aplikasi) */
  ol.grid-cols-5 > li, ol.grid-cols-4 > li > button { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; row-gap: 2px; padding: 12px 14px; align-items: start; }
  ol.grid-cols-5 > li > span:first-child, ol.grid-cols-4 > li > button > span:first-child { grid-row: 1 / span 2; }
  ol.grid-cols-5 > li > span:first-child > span, ol.grid-cols-4 > li > button > span:first-child > span:first-child { width: 40px; height: 40px; font-size: 18px; }
  ol.grid-cols-5 > li > span:first-child > svg, ol.grid-cols-5 > li > span:first-child > i { display: none; }
  ol.grid-cols-5 > li > h3, ol.grid-cols-4 > li > button > span.mt-5 { margin-top: 0; font-size: 17px; }
  ol.grid-cols-5 > li > p, ol.grid-cols-4 > li > button > span.mt-1 { margin-top: 2px; font-size: 14.5px; }
  ol.grid-cols-5, ol.grid-cols-4 { row-gap: 20px; }

  /* Hero Main Game: peta & avatar proporsional */
  section[aria-labelledby="page-title"] > .absolute.right-0 > .absolute.inset-0.px-10 { padding: 4px 24px 52px; }
  section[aria-labelledby="page-title"] > .absolute.right-0 > .absolute.inset-0.px-10 img { width: auto; height: 108px; max-height: 108px; }
  section[aria-labelledby="page-title"] > .absolute.right-0 .h-32 { height: 60px; }

  /* Kartu avatar 3 kolom & kartu detail lebih pendek */
  [role="radiogroup"].grid-cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .avatar-card { padding: 8px; }
  .avatar-card img { max-height: 84px; width: auto; }
  .avatar-card span { font-size: 13px; }
  #avatar-show img { max-height: 120px; width: auto; }

  /* Simulasi misi: kuali & slot bumbu lebih kecil */
  #sim-kuali { width: 168px; }
  #sim-slots { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  #sim-slots > li { max-height: 52px; }

  /* Hiasan maskot di samping judul section: disembunyikan di HP (tidak ada ruang di samping judul) */
  #konten div.flex.items-end.justify-between > img, #konten div.flex.items-end.justify-between > div > img.deco { display: none; }

  /* Kartu keseruan: ringkasan 2 baris (isi lengkap tetap ada saat kartu dibuka) */
  button[data-action="seg"] span.text-small, .segcard-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* Footer: link navigasi berjajar */
  footer ul.flex-col, footer nav ul { flex-direction: row; flex-wrap: wrap; column-gap: 14px; row-gap: 0; }
  footer ul.flex-col a, footer nav ul a { min-height: 40px; display: inline-flex; align-items: center; }
}
@media (max-width: 767px) {
  /* Filter area: 2 kolom chip ringkas (nama + jumlah kegiatan di bawahnya) */
  [role="group"][aria-label="Pilih area"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [role="group"][aria-label="Pilih area"] > * { padding: 5px 8px 5px 5px; min-height: 46px; }
  [role="group"][aria-label="Pilih area"] .zcount { display: block; margin: 0; font-size: 11.5px; }
  [role="group"][aria-label="Pilih area"] .zcount::before { content: none; }
  [role="group"][aria-label="Pilih area"] > * > span.min-w-0 > span:first-child { display: block; font-size: 13px; line-height: 1.15; }
  /* Dua tombol di hero halaman: berdampingan */
  section[aria-labelledby="page-title"] .flex.gap-4 > .btn-l, section[aria-labelledby="page-title"] .flex.items-center.gap-4 > .btn-l { flex: 1 1 0; min-width: 0; padding-inline: 8px; font-size: 14px; white-space: nowrap; }
}
@media (max-width: 359px) {
  section[aria-labelledby="page-title"] .flex.gap-4, section[aria-labelledby="page-title"] .flex.items-center.gap-4 { flex-wrap: wrap; }
  section[aria-labelledby="page-title"] .flex.gap-4 > .btn-l, section[aria-labelledby="page-title"] .flex.items-center.gap-4 > .btn-l { flex: 1 1 100%; }
}
@media (max-width: 359px) {
  section[aria-labelledby="hero-title"] .flex.items-center.gap-4 { flex-wrap: wrap; }
  section[aria-labelledby="hero-title"] .flex.items-center.gap-4 > .btn-l { flex: 1 1 100%; }
}

@media (max-width: 767px) {
  ol.grid-cols-4 > li > button > span:first-child > svg, ol.grid-cols-4 > li > button > span:first-child > i { display: none; }
  /* Target sentuh tetap ≥ 44px setelah dirapatkan */
  .chip, footer ul.flex-col a, footer nav ul a, section[aria-labelledby="hero-title"] ul.mt-6 button, section[aria-labelledby="hero-title"] ul.mt-6 a { min-height: 44px; }
}

/* =====================================================================
   v4.8 · MOBILE LEGA & APP-LIKE (uji pengguna Abdul & Rani, 19 Nov)
   1. Overlay menu menutupi SELURUH layar (v4.7: mulai di bawah header,
      karena .mnav-bg { top: 64px } dan header z-40 di luar overlay).
   2. HP: navigasi bawah, menu = bottom sheet, detail = bottom sheet,
      filter area Jadwal = bottom sheet, carousel keseruan, daftar
      berkelompok (FAQ, jadwal, pihak terlibat) agar kotak berkurang.
   3. Skala jarak kelipatan 8px; border 2px & bayangan 4px di dalam konten.
   ===================================================================== */
.bnav, .mnav-handle, .mnav-head, .j-area-btn, .snap-dots, .faq-more-btn { display: none; }

/* ---------- Overlay & menu: konsisten di semua ukuran ---------- */
.mnav-bg { position: fixed; inset: 0; top: 0; z-index: 60; background: rgba(17, 17, 17, .55); }
.mnav { z-index: 61; }
@media (max-width: 1023px) {
  .mnav-bg { top: 0 !important; }
  .mnav { overflow: auto; overscroll-behavior: contain; }
  .mnav-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; }
  .mnav-x { display: grid; place-items: center; width: 44px; height: 44px; background: #fff; border: 2px solid var(--color-ink); border-radius: 10px; cursor: pointer; }
  .mnav-x:active { transform: translate(2px, 2px); }
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.calm) .mnav-bg:not([hidden]) { animation: mn-fade 200ms ease-out both; }
  html:not(.calm) .mnav-bg.closing { animation: mn-fade-out 160ms ease-in both; }
  html:not(.calm) .mnav:not([hidden]) { animation: mn-drop 220ms cubic-bezier(.2, .9, .3, 1.15) both; transform-origin: top right; }
  html:not(.calm) .mnav.closing { animation: mn-drop-out 160ms ease-in both; }
}
@keyframes mn-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mn-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes mn-drop { from { opacity: 0; transform: translateY(-8px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes mn-drop-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes mn-sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes mn-sheet-out { from { transform: none; } to { transform: translateY(100%); } }

@media (max-width: 767px) {
  /* ---------- Header ringkas: logo + nama; aksi pindah ke navigasi bawah ---------- */
  header { height: 60px; }
  header .btn-primary, header #menu-btn { display: none !important; }
  header nav a > span.font-display { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; font-size: 18px; }
  header nav img.size-14 { width: 40px; height: 40px; }

  /* ---------- Navigasi bawah ---------- */
  .bnav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: var(--color-cream); border-top: 3px solid var(--color-ink); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .bn-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 2px 0;
    font-size: 12px; font-weight: 700; line-height: 1.1; color: var(--color-ink); border: 2px solid transparent; border-radius: 12px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .bn-item[aria-current="page"] { background: var(--color-secondary); border-color: var(--color-ink); }
  .bn-item:active { transform: translate(1px, 2px); }
  .bn-main { background: none !important; border-color: transparent !important; }
  .bn-main-ic { display: grid; place-items: center; width: 52px; height: 52px; margin-top: -26px; background: var(--color-lime); border: 3px solid var(--color-ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--color-ink); }
  .bn-main[aria-current="page"] .bn-main-ic { background: var(--color-secondary); }
  .bn-main:active .bn-main-ic { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--color-ink); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  #toast { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }

  /* ---------- Menu = bottom sheet ---------- */
  .mnav { top: auto !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: auto !important; max-height: 85vh; border: 3px solid var(--color-ink); border-bottom: 0;
    border-radius: 20px 20px 0 0; box-shadow: none; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); transform-origin: bottom center; }
  @supports (height: 100dvh) { .mnav { max-height: 85dvh; } }
  .mnav-handle { display: block; width: 44px; height: 5px; margin: 0 auto 8px; border-radius: 9px; background: var(--color-ink); opacity: .3; }
  .mnav nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mnav nav > .btn, .mnav nav > p { grid-column: 1 / -1; }
  .mlink { min-height: 52px; font-size: 17px; }
  @media (prefers-reduced-motion: no-preference) {
    html:not(.calm) .mnav:not([hidden]) { animation-name: mn-sheet; animation-duration: 280ms; }
    html:not(.calm) .mnav.closing { animation-name: mn-sheet-out; animation-duration: 180ms; }
  }

  /* ---------- Jarak: kelipatan 8px, tepi konten 20px, antar-section 48px ---------- */
  #konten section.px-20, footer.px-20, section.px-20 { padding-left: 20px; padding-right: 20px; }
  .py-16, .py-14 { padding-top: 48px; padding-bottom: 48px; }
  .py-20, .py-24 { padding-top: 56px; padding-bottom: 56px; }
  section[aria-labelledby="page-title"] { padding-top: 32px; }
  section.on-dark.py-16 { padding-top: 40px; padding-bottom: 40px; }
  .mb-10, .mb-12 { margin-bottom: 24px; }
  .mb-8, .mb-6 { margin-bottom: 16px; }
  .mt-10, .mt-12 { margin-top: 24px; }
  .mt-8, .mt-7, .mt-6 { margin-top: 16px; }
  .gap-6, .gap-8, .gap-10, .gap-12 { gap: 16px; }
  .p-8, .p-7 { padding: 24px; }
  .p-6, .p-5 { padding: 16px; }
  .eyebrow { margin-bottom: 8px; }
  .lead { margin-top: 8px; line-height: 1.55; }
  #konten p, #konten li { line-height: 1.55; }
  section[aria-labelledby="page-title"] > .absolute.right-0 { margin: 16px -20px 0; }

  /* ---------- Neo-brutalism lebih ringan di dalam konten: border 2px, bayangan 4px ---------- */
  #konten .bx, #konten [class*="border-[3px]"]:not(section), #konten [class*="border-[4px]"] { border-width: 2px; }
  #konten section { border-bottom-width: 3px; }
  #konten [class*="shadow-[6px_6px_0_#111]"] { --tw-shadow: 4px 4px 0 var(--tw-shadow-color, #111); }
  :root { --shadow-rest: 4px 4px 0 #111111; --shadow-hover: 5px 5px 0 #111111; }
  .press:hover { box-shadow: 4px 4px 0 #111; transform: none; }
  .press:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #111; }
  /* pola titik di belakang teks dihapus; prangko hiasan di band disembunyikan */
  #konten .dots, section[aria-labelledby="hero-title"] .grid-paper { background-image: none !important; }
  section[aria-label="Ajakan main game"] ul[aria-hidden="true"] { display: none; }
  section[aria-labelledby="hero-title"] ul.mt-6 button, section[aria-labelledby="hero-title"] ul.mt-6 a { border-width: 2px; box-shadow: none; }

  /* ---------- Daftar berkelompok (satu kartu, pemisah tipis) ---------- */
  #konten .flex.flex-col.gap-3:has(> .bx [data-action="faq"]),
  #konten #j-list > ol, #konten #b-day,
  section[aria-label="Yang terlibat"] .grid.grid-cols-3 {
    gap: 0; background: #fff; border: 2px solid var(--color-ink); border-radius: 12px; overflow: hidden; box-shadow: 4px 4px 0 var(--color-ink); }
  #konten .flex.flex-col.gap-3:has(> .bx [data-action="faq"]) > .bx,
  #konten #j-list > ol > li > .bx, #konten #b-day > li > .bx, #konten #b-day > li > button,
  section[aria-label="Yang terlibat"] .grid.grid-cols-3 > .bx {
    border: 0; border-radius: 0; box-shadow: none !important; background: transparent; }
  #konten .flex.flex-col.gap-3:has(> .bx [data-action="faq"]) > * + *,
  #konten #j-list > ol > li + li, #konten #b-day > li + li,
  section[aria-label="Yang terlibat"] .grid.grid-cols-3 > * + * { border-top: 1.5px solid rgba(17, 17, 17, .14); }
  #konten #j-list > ol > li:not(:has(button)) { padding: 10px 16px; }
  section[aria-label="Yang terlibat"] .grid.grid-cols-3 > .bx { padding: 16px; gap: 16px; }
  section[aria-label="Yang terlibat"] .grid.grid-cols-3 > .bx > span:first-child { width: 40px; height: 40px; }
  section[aria-label="Yang terlibat"] .grid.grid-cols-3 > .bx .text-\[24px\] { font-size: 17px; }
  section[aria-label="Yang terlibat"] .grid.grid-cols-3 > .bx-pending { border-style: solid !important; }
  [data-action="faq"] { min-height: 56px; padding: 12px 16px; }
  [data-action="faq"] .faq-ic { width: 28px; height: 28px; border: 0; }
  /* FAQ bertahap (JS menambah .faq-more + tombol) */
  .faq-more { display: none; }
  .show-all > .faq-more { display: block; }
  .faq-more-btn { display: inline-flex; width: 100%; margin-top: 16px; }
  /* Jadwal sekilas di Beranda: 3 kegiatan pertama, sisanya lewat "Jadwal Lengkap" */
  #b-day > li:nth-child(n+4) { display: none; }

  /* ---------- Carousel geser: 5 keseruan Beranda ---------- */
  .snap-hp { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px !important; margin-inline: -20px; padding: 4px 20px 12px; scroll-padding-inline: 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .snap-hp::-webkit-scrollbar { display: none; }
  .snap-hp > li { flex: 0 0 84%; scroll-snap-align: start; }
  .snap-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
  .snap-dots i { width: 8px; height: 8px; border-radius: 9px; background: var(--color-ink); opacity: .25; transition: width 200ms ease-out, opacity 200ms; }
  .snap-dots i.on { width: 22px; opacity: 1; }

  /* ---------- Galeri: grid foto 2 kolom ala aplikasi ---------- */
  #g-grid > ul { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  #g-grid figcaption { padding: 8px 10px 10px; display: block; }
  #g-grid figcaption .tag { display: none; }
  #g-grid figcaption span.block { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  #g-grid figcaption .text-small { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

  /* ---------- Jadwal: bilah filter ringkas + pilih area di bottom sheet ---------- */
  [aria-label="Filter jadwal"] { top: 68px; padding: 12px; margin-bottom: 24px; }
  [aria-label="Filter jadwal"] > .flex { row-gap: 8px; column-gap: 8px; }
  [aria-label="Filter jadwal"] > .flex > p { flex: 1 1 auto; gap: 8px; flex-wrap: wrap; }
  .j-area-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; background: #fff; border: 2px solid var(--color-ink); border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; }
  .j-area-btn b { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  [aria-label="Filter jadwal"]:not(.areas-open) #j-areas { display: none !important; }
  .areas-open { z-index: 70 !important; }
  .areas-open #j-areas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; margin: 0; padding: 16px 20px calc(24px + env(safe-area-inset-bottom));
    background: var(--color-cream); border: 3px solid var(--color-ink); border-bottom: 0; border-radius: 20px 20px 0 0;
    box-shadow: 0 0 0 100vmax rgba(17, 17, 17, .55); max-height: 80vh; overflow: auto; gap: 12px 10px; }
  .areas-open #j-areas::before { content: "Pilih area"; grid-column: 1 / -1; font-family: var(--font-display); font-weight: 700; font-size: 20px; padding-bottom: 4px; }
  html.sheet-open, html.sheet-open body { overflow: hidden; }
  @media (prefers-reduced-motion: no-preference) { html:not(.calm) .areas-open #j-areas { animation: mn-sheet 280ms cubic-bezier(.2, .9, .3, 1.1) both; } }

  /* ---------- Detail kegiatan / modal = bottom sheet ---------- */
  #modal #modal-panel { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100% !important; transform: none; max-height: 88vh; border-radius: 20px 20px 0 0; }
  @supports (height: 100dvh) { #modal #modal-panel { max-height: 88dvh; } }
  #modal #modal-panel > :first-child { border-radius: 20px 20px 0 0; border-width: 3px; border-bottom-width: 0; box-shadow: none; }
  #modal #modal-panel::before { content: ""; position: sticky; top: 0; z-index: 3; display: block; width: 44px; height: 5px; margin: 8px auto -13px; border-radius: 9px; background: var(--color-ink); opacity: .35; }
  @media (prefers-reduced-motion: no-preference) { html:not(.calm) #modal #modal-panel.rise { animation: mn-sheet 280ms cubic-bezier(.2, .9, .3, 1.1) both; } }
}
@media (max-width: 359px) {
  .bn-item { font-size: 11px; }
  .mnav nav { grid-template-columns: 1fr; }
}
/* HP landscape: menu & sheet tidak lebih tinggi dari layar */
@media (max-height: 480px) and (min-width: 768px) and (max-width: 1023px) {
  .mnav { top: 8px !important; max-height: calc(100vh - 16px) !important; }
  @supports (height: 100dvh) { .mnav { max-height: calc(100dvh - 16px) !important; } }
}
.stamp-btn img { aspect-ratio: 1 / 1; } /* v4.8: ruang gambar prangko dipesan sebelum termuat (tanpa CLS) */

/* =====================================================================
   v4.9 · HP RINGKAS ALA APLIKASI (PDF "baru", 20 Nov: poin 1–8, 11)
   Masalah: tombol hero padat, kartu & maskot kebesaran, filter chip
   menumpuk, satu kartu = satu layar. Prinsip: ukuran komponen setara
   aplikasi (judul 20–24px, isi 15px, tombol 40–44px, kartu padding 12–16px),
   konten sejenis jadi carousel/strip geser, maskot hero kecil di pojok.
   Hanya ≤ 767px (kecuali tombol jeda marquee & "Kurangi animasi": ≤ 1023px).
   ===================================================================== */
.lead-more { display: none; }
@media (max-width: 1023px) {
  /* poin 2: tombol jeda marquee & "Kurangi animasi" disembunyikan (tap strip = jeda; setelan OS tetap dipatuhi) */
  #marquee [data-action="marquee"], footer [data-action="calm"] { display: none !important; }
  #marquee { cursor: pointer; }
}

@media (max-width: 767px) {
  /* ---------- Skala aplikasi ---------- */
  #konten section.px-20, section.px-20, footer.px-20 { padding-left: 16px; padding-right: 16px; }
  .py-16, .py-14 { padding-top: 32px; padding-bottom: 32px; }
  .py-20, .py-24 { padding-top: 32px; padding-bottom: 32px; }
  section.on-dark.py-16 { padding-top: 24px; padding-bottom: 24px; }
  .mb-10, .mb-12 { margin-bottom: 16px; }
  .mb-8, .mb-6 { margin-bottom: 12px; }
  .mt-10, .mt-12 { margin-top: 16px; }
  .mt-8, .mt-7, .mt-6 { margin-top: 12px; }
  .mt-5 { margin-top: 8px; }
  .gap-6, .gap-8, .gap-10, .gap-12 { gap: 12px; }
  .p-8, .p-7 { padding: 16px; }
  .p-6, .p-5 { padding: 12px; }
  .text-h1 { font-size: 24px; line-height: 1.15; }
  .text-h2 { font-size: 20px; line-height: 1.2; }
  .text-h3 { font-size: 16px; line-height: 1.25; }
  .text-body-lg, .text-body, .lead { font-size: 15px; line-height: 1.5; }
  .text-small { font-size: 13px; }
  .text-\[21px\], .text-\[22px\], .text-\[24px\], .text-\[26px\] { font-size: 16px; }
  .text-\[28px\] { font-size: 17px; }
  .text-\[40px\] { font-size: 22px; }
  .eyebrow { font-size: 11.5px; padding: 2px 8px; margin-bottom: 6px; gap: 4px; }
  .eyebrow svg, .eyebrow i { width: 12px; height: 12px; }
  .lead { margin-top: 6px; }
  #konten p, #konten li { line-height: 1.5; }
  .btn { height: 40px; padding-inline: 14px; font-size: 14px; gap: 6px; }
  .btn-l { height: 44px; padding-inline: 16px; font-size: 14.5px; }
  .btn svg, .btn i { width: 16px; height: 16px; }
  .chip { min-height: 36px; padding: 4px 12px; font-size: 13.5px; gap: 6px; }
  .chip img { width: 22px; height: 22px; }
  .tag { font-size: 10.5px; padding: 1px 6px; }
  #konten [class*="shadow-[6px_6px_0_#111]"] { --tw-shadow: 3px 3px 0 var(--tw-shadow-color, #111); }
  :root { --shadow-rest: 3px 3px 0 #111111; --shadow-hover: 4px 4px 0 #111111; }
  .press:hover { box-shadow: 3px 3px 0 #111; }
  /* tombol "lihat semua" di samping judul section: jadi tombol kecil */
  #konten div.flex.items-end.justify-between > .btn { height: 36px; font-size: 13px; padding-inline: 12px; align-self: flex-start; }

  /* ---------- Strip geser (chip filter) & carousel ---------- */
  #konten [aria-label="Filter keseruan"], #konten [aria-label="Filter sektor komunitas"], #konten [aria-label="Kategori galeri"] {
    flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px 6px; gap: 8px; scrollbar-width: none; scroll-padding-inline: 16px; scroll-snap-type: x proximity; }
  #konten [aria-label="Filter keseruan"]::-webkit-scrollbar, #konten [aria-label="Filter sektor komunitas"]::-webkit-scrollbar, #konten [aria-label="Kategori galeri"]::-webkit-scrollbar { display: none; }
  #konten [aria-label="Filter keseruan"] > *, #konten [aria-label="Filter sektor komunitas"] > *, #konten [aria-label="Kategori galeri"] > * { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
  #konten [aria-label="Filter keseruan"] .chip[aria-pressed="true"]::before { display: none; }
  .snap-hp { margin-inline: -16px; padding: 4px 16px 10px; scroll-padding-inline: 16px; }
  .snap-hp > * { flex: 0 0 80%; scroll-snap-align: start; }
  .snap-dots { margin-top: 2px; }
  /* prangko sektor: strip 1 baris */
  .snap-stamp { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px !important; scrollbar-width: none; }
  .snap-hp.snap-stamp > li { flex: 0 0 30%; }
  .snap-stamp .stamp-btn span { display: none; }
  /* 7 semangat: carousel kartu */
  .deal.snap-hp { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px !important; padding: 14px 16px 16px; scrollbar-width: none; }
  .deal.snap-hp > li { flex: 0 0 42%; grid-column: auto !important; width: auto !important; justify-self: auto; translate: 0 calc(var(--y, 0px) / 3); }
  .deal .flip { height: 150px; }
  .deal .text-\[56px\] { font-size: 30px; }
  /* pilihan avatar: strip */
  .snap-avatar { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px !important; padding-top: 12px; scrollbar-width: none; }
  .snap-hp.snap-avatar > * { flex: 0 0 96px; }
  .snap-avatar .avatar-card img { max-height: 64px; }
  .snap-avatar .avatar-card span { font-size: 12px; }

  /* ---------- poin 6: hero halaman ringkas, maskot kecil di pojok ---------- */
  section[aria-labelledby="page-title"] { display: block; padding: 20px 16px 20px; }
  section[aria-labelledby="page-title"] > .absolute.right-0 { position: absolute !important; inset: auto; top: 14px; right: 10px; width: 92px; height: 96px; margin: 0; z-index: 1; pointer-events: none; }
  section[aria-labelledby="page-title"] > .absolute.right-0 img { max-height: 96px !important; height: 96px; width: auto; }
  section[aria-labelledby="page-title"] > .absolute.right-0 > .absolute.inset-0.p-12 { padding: 0; }
  section[aria-labelledby="page-title"] > .absolute.right-0 > .absolute.inset-0.p-12 img { height: 84px !important; max-width: 100%; }
  section[aria-labelledby="page-title"] > .absolute.right-0 > .absolute.left-4.bottom-0,
  section[aria-labelledby="page-title"] > .absolute.right-0 > .absolute.inset-x-0.bottom-0.items-end { display: none; }  /* Mitra: logo saja · Main: peta saja */
  section[aria-labelledby="page-title"] > .absolute.right-0 > .absolute.inset-0.px-10 { padding: 0; }
  section[aria-labelledby="page-title"] > .absolute.right-0 > .absolute.inset-0.px-10 img { height: 84px !important; }
  section[aria-labelledby="page-title"] > img.deco { display: none; }
  section[aria-labelledby="page-title"] .max-w-\[720px\] > div:first-child { padding-right: 96px; }
  #page-title { padding-right: 96px; min-height: 56px; }
  section[aria-labelledby="page-title"] .flex.gap-4, section[aria-labelledby="page-title"] .flex.items-center.gap-4 { gap: 8px; margin-top: 14px; }
  section[aria-labelledby="page-title"] .btn-l { height: 40px; font-size: 13.5px; padding-inline: 10px; }
  section[aria-labelledby="page-title"] .btn-l.h-16 { height: 44px; padding-inline: 18px; font-size: 15px; }
  section[aria-labelledby="page-title"] p.mt-6 { margin-top: 10px; font-size: 12.5px; gap: 6px; }
  section[aria-labelledby="page-title"] .seg { margin-top: 14px; }
  section[aria-labelledby="page-title"] .seg button { min-height: 40px; }
  .clamp3:not(.open) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .lead-more { display: inline-flex; align-items: center; min-height: 32px; margin-top: 2px; font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
  /* Main: kartu "Udah di lokasi?" ringkas */
  [role="note"][aria-label="Masuk game lewat QR di lokasi"] { margin-top: 12px; }
  [role="note"][aria-label="Masuk game lewat QR di lokasi"] > span:first-child { width: 48px; }
  [role="note"][aria-label="Masuk game lewat QR di lokasi"] > span:first-child svg, [role="note"][aria-label="Masuk game lewat QR di lokasi"] > span:first-child i { width: 24px; height: 24px; }
  [role="note"][aria-label="Masuk game lewat QR di lokasi"] > span:last-child { padding: 10px 12px; }
  [role="note"][aria-label="Masuk game lewat QR di lokasi"] b { font-size: 15px; }
  [role="note"][aria-label="Masuk game lewat QR di lokasi"] .grid-cols-3 { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 12px; }
  [role="note"][aria-label="Masuk game lewat QR di lokasi"] .grid-cols-3 > span > span { width: 18px; height: 18px; font-size: 10.5px; }

  /* ---------- poin 1: hero Beranda ringkas ---------- */
  section[aria-labelledby="hero-title"] .grid-paper { padding: 16px 16px 20px; background-image: none !important; }
  #hero-title { font-size: 34px; }
  section[aria-labelledby="hero-title"] p.mt-5 { margin-top: 8px; padding: 3px 10px; font-size: 16px; box-shadow: 3px 3px 0 #111; }
  section[aria-labelledby="hero-title"] p.mt-7 { margin-top: 10px; font-size: 14.5px; }
  section[aria-labelledby="hero-title"] ul.mt-6 { margin-top: 10px; gap: 2px 14px; }
  section[aria-labelledby="hero-title"] ul.mt-6 button, section[aria-labelledby="hero-title"] ul.mt-6 a { min-height: 32px !important; padding: 0; border: 0 !important; background: none !important; box-shadow: none !important; font-size: 13.5px; gap: 6px; text-decoration: underline; text-decoration-color: rgba(17, 17, 17, .25); text-underline-offset: 3px; }
  section[aria-labelledby="hero-title"] ul.mt-6 button svg, section[aria-labelledby="hero-title"] ul.mt-6 button i, section[aria-labelledby="hero-title"] ul.mt-6 a svg, section[aria-labelledby="hero-title"] ul.mt-6 a i { width: 16px; height: 16px; }
  section[aria-labelledby="hero-title"] .flex.items-center.gap-4 { margin-top: 14px; gap: 8px; }
  section[aria-labelledby="hero-title"] .flex.items-center.gap-4 > .btn-l { height: 42px; font-size: 14px; }
  section[aria-labelledby="hero-title"] .flex.items-center.gap-4 > .btn-secondary { flex: 0 0 auto; }
  section[aria-labelledby="hero-title"] .bg-primary { padding: 16px 20px 14px; }
  section[aria-labelledby="hero-title"] .bg-primary > .relative > .absolute.bg-secondary { left: 6px; top: 6px; right: -6px; bottom: -6px; }
  section[aria-labelledby="hero-title"] .bg-primary .relative.mt-12 { margin-top: 14px; }
  section[aria-labelledby="hero-title"] img.deco.w-24 { width: 40px; top: -12px; left: -8px; }
  section[aria-labelledby="hero-title"] .bg-primary > img.deco { display: none; }
  .cd-box { min-width: 44px; padding: 2px 4px; }
  .cd-box .text-\[34px\] { font-size: 18px; }

  /* marquee lebih tipis */
  #marquee .marquee-track { padding-top: 6px; padding-bottom: 6px; }
  #marquee .marquee-track p { font-size: 15px; gap: 12px; padding-right: 12px; }
  #marquee .marquee-track img { height: 18px; }

  /* ---------- poin 3–5: kartu bento Beranda ---------- */
  section[aria-label="Sekilas Marandang"] article { box-shadow: 3px 3px 0 #111 !important; }
  /* kartu game: bumbu jadi strip prangko yang lebih besar (identitas terlihat) */
  article[aria-labelledby="game-title"] { padding: 16px; }
  article[aria-labelledby="game-title"] img.w-20 { width: 48px; }
  .bumbu-strip { display: flex !important; overflow-x: auto; gap: 10px !important; margin: 12px -16px 0 !important; padding: 4px 16px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .bumbu-strip::-webkit-scrollbar { display: none; }
  .bumbu-strip > li { flex: 0 0 64px; scroll-snap-align: start; }
  .bumbu-strip img { height: 76px !important; }
  article[aria-labelledby="game-title"] ol.grid-cols-3 { margin-top: 10px; gap: 6px; font-size: 12.5px; }
  article[aria-labelledby="game-title"] ol.grid-cols-3 > li > span { width: 24px; height: 24px; font-size: 12px; border-width: 2px; }
  article[aria-labelledby="game-title"] .mt-auto.pt-7 { padding-top: 14px; gap: 14px; }
  /* kartu "Marandang itu apa": statistik jadi baris kecil */
  section[aria-label="Sekilas Marandang"] article:first-child .p-8 { padding: 16px; }
  section[aria-label="Sekilas Marandang"] article:first-child p.mt-4 { margin-top: 8px; }
  section[aria-label="Sekilas Marandang"] article:first-child ul.mt-6 { margin-top: 12px; gap: 8px; }
  section[aria-label="Sekilas Marandang"] article:first-child ul.mt-6 button { display: flex; align-items: baseline; gap: 4px; padding: 6px 8px; }
  section[aria-label="Sekilas Marandang"] article:first-child ul.mt-6 button > span:first-child { font-size: 20px; }
  section[aria-label="Sekilas Marandang"] article:first-child ul.mt-6 button > span:last-child { font-size: 12px; }
  section[aria-label="Sekilas Marandang"] article:first-child .mt-auto.pt-6 { padding-top: 12px; }
  section[aria-label="Sekilas Marandang"] article:first-child .mt-auto.pt-6 > img { display: none; }
  section[aria-label="Sekilas Marandang"] article:first-child > span.w-4 { width: 8px; }
  /* Waktu & Lokasi: daftar ikon ringkas + 3 tombol sebaris */
  article[aria-labelledby="info-title"] { padding: 16px; }
  article[aria-labelledby="info-title"] > img.deco { display: none; }
  #info-title { font-size: 15px; padding: 5px 10px; }
  article[aria-labelledby="info-title"] dl { margin-top: 12px; gap: 10px; font-size: 14px; }
  article[aria-labelledby="info-title"] dl svg, article[aria-labelledby="info-title"] dl i { width: 18px; height: 18px; }
  article[aria-labelledby="info-title"] dd .text-small { font-size: 12px; }
  article[aria-labelledby="info-title"] div.mt-6.flex.flex-col { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 14px; }
  article[aria-labelledby="info-title"] div.mt-6.flex.flex-col > .grid { display: contents; }
  article[aria-labelledby="info-title"] div.mt-6.flex.flex-col .btn { min-width: 0; width: 100%; padding-inline: 6px; font-size: 12.5px; gap: 4px; white-space: nowrap; overflow: hidden; }

  /* kartu keseruan (carousel Beranda & daftar) ringkas */
  button[data-action="seg"] .w-32.shrink-0 { width: 64px; }
  button[data-action="seg"] .w-32.shrink-0 img { width: 44px; }
  button[data-action="seg"] > span.flex-1 { padding: 12px; }
  button[data-action="seg"] .text-\[14px\] { font-size: 12px; }
  button[data-action="seg"] .size-10 { width: 30px; height: 30px; }
  .snap-hp > li > a.bx-pending { padding: 12px; gap: 12px; }
  .snap-hp > li > a.bx-pending img { width: 56px; }

  /* jadwal sekilas & daftar jadwal: baris setinggi aplikasi */
  .grid-cols-\[110px_1fr_auto\], .grid-cols-\[132px_1fr_260px_44px\] { grid-template-columns: 50px 1fr 28px !important; gap: 4px 10px !important; padding: 10px 12px !important; }
  .grid-cols-\[110px_1fr_auto\] > :first-child, .grid-cols-\[132px_1fr_260px_44px\] > :nth-child(1) { font-size: 16px !important; }
  .grid-cols-\[132px_1fr_260px_44px\] > :nth-child(1) > span { font-size: 11px; margin-top: 2px; }
  .grid-cols-\[110px_1fr_auto\] .text-body-lg, .grid-cols-\[132px_1fr_260px_44px\] .text-body-lg { font-size: 14.5px; line-height: 1.3; }
  .grid-cols-\[110px_1fr_auto\] > :last-child, .grid-cols-\[132px_1fr_260px_44px\] > :nth-child(4) { width: 28px !important; height: 28px !important; border-width: 2px; }
  .grid-cols-\[110px_1fr_auto\] > :last-child svg, .grid-cols-\[132px_1fr_260px_44px\] > :nth-child(4) svg { width: 14px; height: 14px; }
  .grid-cols-\[110px_1fr_auto\] .mt-1 { margin-top: 3px; }
  #j-list > h2 { font-size: 18px; margin-bottom: 10px; }
  #j-list > ol > li:not(:has(button)) { padding: 6px 12px; font-size: 12px; }
  .w-\[132px\] { width: 50px; }
  [aria-label="Filter jadwal"] { padding: 10px; margin-bottom: 16px; box-shadow: 3px 3px 0 #111 !important; }
  [aria-label="Filter jadwal"] .seg button { min-height: 42px; font-size: 13.5px; }

  /* FAQ ringkas */
  [data-action="faq"] { min-height: 46px; padding: 10px 14px; font-size: 14.5px; gap: 10px; }
  [data-action="faq"] .faq-ic { width: 24px; height: 24px; }
  .faq-more-btn { height: 40px; margin-top: 12px; }

  /* band ajakan */
  section.on-dark h2.text-h2 { font-size: 19px; }
  section.on-dark .col-span-5.pl-8 { padding-left: 0; }
  section.on-dark .text-body-lg { font-size: 14.5px; }

  /* ---------- poin 7: Jelajahi ---------- */
  #prog-view .grid.grid-cols-3 > button[data-action="seg"] { flex-direction: row; min-height: 0; }
  #prog-view button[data-action="seg"] > div.relative.overflow-hidden { width: 96px; height: auto !important; min-height: 100%; flex: 0 0 96px; border-bottom: 0; border-right: 2px solid var(--color-ink); }
  #prog-view button[data-action="seg"] > img.deco { width: 34px !important; top: auto !important; bottom: 6px; right: auto !important; left: 58px; }
  #prog-view button[data-action="seg"] > div.p-6 { padding: 10px 12px; min-width: 0; }
  #prog-view button[data-action="seg"] .tag-hari { font-size: 10.5px; padding: 1px 6px; }
  #prog-view button[data-action="seg"] h3 { margin-top: 4px; font-size: 15.5px; }
  #prog-view button[data-action="seg"] p { margin-top: 2px; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  #prog-view button[data-action="seg"] .mt-4 { margin-top: 6px; }
  #prog-view button[data-action="seg"] .mt-4 > span.underline { font-size: 0; gap: 0; }
  #prog-view button[data-action="seg"] .mt-4 > span.underline svg { width: 18px; height: 18px; }
  #prog-view .grid.grid-cols-3 > button[data-action="ptab"] { padding: 12px; flex-direction: row; gap: 12px; }
  #prog-view .grid.grid-cols-3 > button[data-action="ptab"] img { width: 56px; }
  #prog-view button[data-action="kom"] { padding: 12px; gap: 12px; }
  #prog-view button[data-action="kom"] img { width: 44px; height: 44px; }
  #prog-view button[data-action="kom"] .text-\[21px\] { font-size: 15.5px; }
  #prog-view > div > .flex.items-center.justify-between { flex-direction: column; align-items: stretch; gap: 6px; }
  #prog-view aside { padding: 16px; }

  /* ---------- poin 8: Galeri ---------- */
  section[aria-label="Isi galeri"] p.mb-10 { margin-bottom: 12px; font-size: 12.5px; }
  #konten [aria-label="Kategori galeri"] { margin-bottom: 8px; }
  #g-grid > ul { gap: 10px !important; }
  #g-grid figcaption { padding: 6px 8px 8px; }
  #g-grid figcaption span.block { font-size: 13px; }
  #g-grid figcaption .text-small { font-size: 11.5px; }
  #g-grid .bx-pending { padding: 20px; }
  #g-grid .bx-pending img { width: 80px; }

  /* ---------- Kenalan ---------- */
  #filosofi .col-span-6.bg-secondary-soft { padding: 12px; }
  #filosofi ul.grid-cols-5 { gap: 8px; }
  #filosofi ul.grid-cols-5 img { height: 56px !important; }
  #filosofi ul.grid-cols-5 li:nth-child(3) img { height: 72px !important; }
  #filosofi .text-\[22px\] { font-size: 14.5px; margin-top: 8px; }
  /* kartu baris (Tujuan, Dampak) */
  #konten button.bx.press.overflow-hidden.flex > span.w-24.shrink-0, #konten button.bx.press.overflow-hidden.flex > span.w-20.shrink-0 { width: 44px; border-right-width: 2px; }
  #konten button.bx.press.overflow-hidden.flex > span.shrink-0 > svg, #konten button.bx.press.overflow-hidden.flex > span.shrink-0 > i { width: 20px; height: 20px; }
  #konten button.bx.press.overflow-hidden.flex > span.flex-1 { padding: 12px; }
  #konten button.bx.press.overflow-hidden.flex > span.flex-1 > .mt-2 { margin-top: 2px; font-size: 13.5px; }
  #konten button.bx.press.overflow-hidden.flex .pt-4 { padding-top: 6px; }
  #konten button.bx.press.overflow-hidden.flex .arrow { width: 28px; height: 28px; }
  section[aria-label="Target dan dampak"] article { padding: 16px; }
  section[aria-label="Target dan dampak"] article img.h-40 { height: 72px; margin-bottom: -16px; }
  section[aria-label="Target dan dampak"] article .mt-5 { margin-top: 8px; }
  #penyelenggara .h-36 { height: 84px; font-size: 22px; }

  /* ---------- Main Game ---------- */
  #cara-main ol.grid-cols-5 { gap: 0 !important; row-gap: 0 !important; background: #fff; border: 2px solid var(--color-ink); border-radius: 12px; overflow: hidden; box-shadow: 3px 3px 0 #111; }
  #cara-main ol.grid-cols-5 > li { border: 0; border-radius: 0; box-shadow: none; padding: 10px 12px; column-gap: 10px; grid-template-columns: 32px 1fr; }
  #cara-main ol.grid-cols-5 > li + li { border-top: 1.5px solid rgba(17, 17, 17, .14); }
  #cara-main ol.grid-cols-5 > li > span.absolute { display: none !important; }
  #cara-main ol.grid-cols-5 > li > span:first-child > span { width: 32px !important; height: 32px !important; font-size: 15px !important; border-width: 2px; }
  #cara-main ol.grid-cols-5 > li > h3 { font-size: 15px; }
  #cara-main ol.grid-cols-5 > li > p { font-size: 13.5px; }
  #avatar-show { padding: 12px; gap: 12px; }
  #avatar-show img { max-height: 88px !important; }
  #avatar-show .text-h2 { font-size: 18px; }
  #avatar-show .text-body-lg { font-size: 13.5px; margin-top: 4px; }
  section[aria-labelledby="sim-title"] .bg-cream.p-8 { padding: 12px; }
  #sim-kuali { width: 120px !important; }
  #sim-text { font-size: 14.5px; margin-top: 8px; }
  section[aria-label="Pertanyaan soal game"] .flex.items-end.gap-2 { display: none; }

  /* ---------- Jadi Mitra ---------- */
  #konten [role="radiogroup"].grid-cols-4 { gap: 8px; }
  #konten .role { padding: 12px !important; gap: 6px !important; }
  #konten .role > span:first-child { width: 36px; height: 36px; }
  #konten .role > span:first-child svg, #konten .role > span:first-child i { width: 18px; height: 18px; }
  #konten .role > span:nth-child(3) { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  #konten .role .role-check { font-size: 12.5px; }
  #manfaat.mt-12 { margin-top: 16px; }
  #manfaat .text-h3 { margin-bottom: 10px; }
  #manfaat .grid.grid-cols-3 { gap: 0; background: #fff; border: 2px solid var(--color-ink); border-radius: 12px; overflow: hidden; box-shadow: 3px 3px 0 #111; }
  #manfaat .grid.grid-cols-3 > .bx { border: 0; border-radius: 0; background: transparent; padding: 12px; gap: 12px; }
  #manfaat .grid.grid-cols-3 > * + * { border-top: 1.5px solid rgba(17, 17, 17, .14); }
  #manfaat .grid.grid-cols-3 > .bx > span:first-child { width: 32px; height: 32px; }
  #manfaat .grid.grid-cols-3 .text-\[24px\] { font-size: 15px; }
  #manfaat .grid.grid-cols-3 .text-body { font-size: 13.5px; margin-top: 2px; }
  section[aria-label="Alur pendaftaran"] ol.grid-cols-4 { gap: 0 !important; row-gap: 0 !important; background: var(--color-cream); border: 2px solid var(--color-ink); border-radius: 12px; overflow: hidden; box-shadow: 3px 3px 0 #111; }
  section[aria-label="Alur pendaftaran"] ol.grid-cols-4 > li > span.absolute { display: none !important; }
  section[aria-label="Alur pendaftaran"] ol.grid-cols-4 > li > button { border: 0; border-radius: 0; box-shadow: none; padding: 10px 12px; grid-template-columns: 32px 1fr; column-gap: 10px; }
  section[aria-label="Alur pendaftaran"] ol.grid-cols-4 > li + li { border-top: 1.5px solid rgba(17, 17, 17, .14); }
  section[aria-label="Alur pendaftaran"] ol.grid-cols-4 > li > button > span:first-child > span:first-child { width: 32px !important; height: 32px !important; font-size: 15px !important; border-width: 2px; }
  section[aria-label="Alur pendaftaran"] ol.grid-cols-4 > li > button > span.mt-5 { font-size: 15px; }
  #form-kol .col-span-4 > img { display: none; }
  #form-kol .col-span-4 p.mt-5 { margin-top: 6px; font-size: 14px; }
  #kol-form { padding: 16px; gap: 14px; }
  #kol-form .field-input { min-height: 44px; font-size: 15px; }

  /* ---------- Footer ringkas ---------- */
  footer { padding-top: 24px !important; }
  footer img.w-36 { width: 56px; }
  footer .text-body-lg { font-size: 14px; }
  footer .text-\[20px\] { font-size: 15px; }
  footer ul.flex-col a, footer nav ul a { min-height: 36px; font-size: 14px; }
  footer .grid-cols-12 { row-gap: 16px; padding-bottom: 20px; }
  footer .pt-8 { padding-top: 14px; flex-wrap: wrap; gap: 4px 12px; }
}
@media (max-width: 767px) {
  #prog-view > div > .flex.items-center.justify-between > .tag { align-self: flex-start; }
}
/* v4.9 · koreksi hasil uji matriks: label minimal 12px, tag tidak keluar kartu, 3 tombol info di layar 320 */
@media (max-width: 767px) {
  .eyebrow { font-size: 12px; }
  .tag { font-size: 12px; padding: 1px 6px; letter-spacing: .02em; }
  #konten .tag { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  #prog-view button[data-action="seg"] .tag-hari { font-size: 12px; }
  .grid-cols-\[132px_1fr_260px_44px\] > :nth-child(1) > span { font-size: 12px; }
  #g-grid figcaption .text-small { font-size: 12px; }
  #j-list > ol > li:not(:has(button)) { font-size: 12.5px; }
}
@media (max-width: 359px) {
  article[aria-labelledby="info-title"] div.mt-6.flex.flex-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  article[aria-labelledby="info-title"] div.mt-6.flex.flex-col > .btn:first-child { grid-column: 1 / -1; }
}
