/* =====================================================================
   TEMPLATE 21 — BATIK · Nusantara modern di atas kain mori
   Kosakata kelas: b21-*. Satu wajah TERANG (mori), tanpa mode gelap.
   Rujukan desain: /root/fftpl/desain/t21-batik (DESAIN.md).
   ===================================================================== */

@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("font/young-serif-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("font/jakarta-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Warna toko — layout menimpa ketiganya + --nila (indigo yang dijamin gelap). */
  --accent: #6b3e1e;           /* sogan */
  --on-accent: #ffffff;
  --brand: #1f3a5f;            /* indigo */
  --nila: #1f3a5f;             /* = brand, digelapkan di layout bila brand terlalu terang (krem di atasnya >= 7:1) */

  /*
   * Tinta beraksen: 40% aksen + HITAM (srgb). WAJIB sama dengan `uji.tinta`
   * t21 di config/fireflazz.php (['campur' => '#000000', 'porsi' => 0.4]).
   * Dipakai untuk harga, judul serif, tautan — aksen terang (#FBBF24) pun
   * tetap >= 4,5:1 di atas mori.
   */
  --accent-2: color-mix(in srgb, var(--accent) 40%, #000000);
  --acc-tint: color-mix(in srgb, var(--accent) 9%, #fbf6ec);

  --emas: color-mix(in srgb, #c9a227 88%, var(--accent));
  /* Teks emas di atas krem: dicampur ke cokelat tua supaya aksen apa pun tetap >= 4,5. */
  --emas-tua: color-mix(in srgb, #6f530c 88%, var(--accent));
  --emas-muda: color-mix(in srgb, #c9a227 55%, #ffffff);
  --garis: color-mix(in srgb, var(--emas) 42%, #efe3cc);
  --nila-tint: color-mix(in srgb, var(--nila) 9%, #fbf6ec);

  --mori: #f6efe2;
  --kertas: #fbf6ec;
  --krem: #fbf6ec;

  /* Variabel bersama (KONTRAK §8) */
  --bg: #f6efe2;
  --card: #fbf6ec;
  --card-2: #f1e7d4;
  --ink: #2b1a10;              /* 14:1 di mori */
  --ink-2: #6a5444;            /* 6,2:1 di mori */
  --ink-3: #7d6553;            /* placeholder, 4,6:1 di kertas */
  --line: #e2d3b6;
  --ok: #2f6b34;
  --bad: #a2381c;
  --danger: #a2381c;
  --warn: #8a5a00;

  /* Bingkai bersama — WAJIB sama dengan .b21-wrap */
  --ff-wrap: 1160px;
  --ff-gutter: 18px;
  /* Tinggi pil Menu bawah (HP). Dinolkan di desktop. */
  --tab-h: 78px;

  --r: 16px;
  --r-s: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 10px 24px -14px rgba(107, 62, 30, .45);
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ff-teks: var(--sans);

  /* Pola sebagai mask hitam — warnanya ikut `background` elemen. */
  --kawung: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none' stroke='%23000' stroke-width='1.2'%3E%3Cellipse cx='20' cy='9.5' rx='5.5' ry='8.5'/%3E%3Cellipse cx='20' cy='30.5' rx='5.5' ry='8.5'/%3E%3Cellipse cx='9.5' cy='20' rx='8.5' ry='5.5'/%3E%3Cellipse cx='30.5' cy='20' rx='8.5' ry='5.5'/%3E%3Ccircle cx='20' cy='20' r='1.6' fill='%23000'/%3E%3Ccircle cx='0' cy='0' r='2.2' fill='%23000'/%3E%3Ccircle cx='40' cy='0' r='2.2' fill='%23000'/%3E%3Ccircle cx='0' cy='40' r='2.2' fill='%23000'/%3E%3Ccircle cx='40' cy='40' r='2.2' fill='%23000'/%3E%3C/svg%3E");
  --parang: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M-4 20 C4 18 8 10 12 4 C14 1 18 -2 22 -4 L36 -4 C28 0 24 6 20 12 C16 18 10 24 -4 28Z' fill='%23000'/%3E%3Cpath d='M-4 52 C4 50 8 42 12 36 C14 33 18 30 22 28 L36 28 C28 32 24 38 20 44 C16 50 10 56 -4 60Z' fill='%23000'/%3E%3Cpath d='M28 52 C36 50 40 42 44 36 L44 28 C40 30 34 34 30 40 C27 45 26 48 28 52Z' fill='%23000'/%3E%3Ccircle cx='27' cy='19' r='2' fill='%23000'/%3E%3Ccircle cx='5' cy='-3' r='2' fill='%23000'/%3E%3Ccircle cx='5' cy='29' r='2' fill='%23000'/%3E%3C/svg%3E");
  --tumpal-isi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14'%3E%3Cpath d='M0 14 L12 0 L24 14Z'/%3E%3C/svg%3E");
  --tumpal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14' fill='none' stroke='%23000' stroke-width='1.2'%3E%3Cpath d='M0 14 L12 1 L24 14'/%3E%3Cpath d='M5 14 L12 6.5 L19 14'/%3E%3Ccircle cx='12' cy='11' r='1.3' fill='%23000' stroke='none'/%3E%3C/svg%3E");
}

/* ---------- dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body {
  margin: 0;
  font-family: var(--ff-teks);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--mori);
  padding-bottom: var(--tab-h);
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--nila); outline-offset: 3px; }
.b21-wrap { max-width: var(--ff-wrap); margin: 0 auto; padding: 0 var(--ff-gutter); }
.b21-serif { font-family: var(--serif); font-weight: 400; }
.b21-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.b21-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.b21-hint { font-size: 14px; color: var(--ink-2); margin: 8px 0 0; }
.b21-hint a, .b21-link { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--emas); text-underline-offset: 3px; }
.b21-center { text-align: center; }
.b21-mt { margin-top: 14px; }

/* lapisan pola (mask) */
.b21-pola { position: relative; isolation: isolate; }
.b21-pola::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: var(--pc, var(--emas)); opacity: var(--po, .14);
  -webkit-mask: var(--pm, var(--kawung)) 0 0 / var(--ps, 40px) repeat;
          mask: var(--pm, var(--kawung)) 0 0 / var(--ps, 40px) repeat;
}
.b21-tumpal {
  height: 14px; background: var(--emas);
  -webkit-mask: var(--tumpal) 0 0 / 24px 14px repeat-x; mask: var(--tumpal) 0 0 / 24px 14px repeat-x;
}
.b21-tumpal.is-isi { -webkit-mask-image: var(--tumpal-isi); mask-image: var(--tumpal-isi); }

/* ---------- tombol ---------- */
.b21-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border: 0; border-radius: var(--r-s); cursor: pointer;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 16px; letter-spacing: .01em;
  text-decoration: none; text-align: center; line-height: 1.2;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--emas) 70%, transparent), inset 0 0 0 4px var(--accent), inset 0 0 0 5px color-mix(in srgb, var(--emas) 45%, transparent);
  transition: transform .12s, filter .2s;
}
.b21-btn:hover { filter: brightness(1.06); }
.b21-btn:active { transform: scale(.98); }
.b21-btn:disabled, .b21-btn[aria-disabled="true"] { cursor: not-allowed; filter: saturate(.3); }
.b21-btn-emas { background: var(--emas); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(43, 26, 16, .35), inset 0 -3px 0 rgba(43, 26, 16, .15); }
.b21-btn-ghost { background: transparent; color: var(--accent-2); box-shadow: inset 0 0 0 1.5px var(--accent-2); }
.b21-btn-sm { min-height: 44px; font-size: 15px; padding: 0 16px; }
.b21-btn-full { width: 100%; }
.b21-btn-danger { color: var(--bad); box-shadow: inset 0 0 0 1.5px var(--bad); }

/* ---------- formulir (dipakai KelasForm & halaman tema) ---------- */
.b21-panel {
  position: relative; padding: 20px 16px; margin: 14px 0 0; background: var(--kertas);
  border-radius: var(--r); box-shadow: var(--shadow), inset 0 0 0 1px var(--garis);
}
.b21-label { display: block; font-size: 14px; font-weight: 700; margin: 12px 0 6px; color: var(--ink); }
.b21-input {
  display: block; width: 100%; min-height: 52px; padding: 0 14px; border: 0;
  border-bottom: 2px solid var(--accent-2); border-radius: 8px 8px 0 0;
  background: color-mix(in srgb, var(--accent) 6%, #ffffff); color: var(--ink);
  font-size: 17px; font-weight: 600; outline: none; -webkit-appearance: none; appearance: none;
}
select.b21-input { padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea.b21-input { padding: 12px 14px; min-height: 96px; }
.b21-input::placeholder { color: var(--ink-3); font-weight: 500; }
.b21-input:focus { border-color: var(--nila); background-color: #ffffff; }
.b21-row-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; }
.b21-row-2 > div > .b21-label:first-child { margin-top: 0; }
.b21-alert { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; line-height: 1.5; background: var(--nila-tint); box-shadow: inset 3px 0 0 var(--nila); color: var(--ink); }
.b21-alert-error { background: #f8e5dd; box-shadow: inset 3px 0 0 var(--bad); }
.b21-alert-ok { background: #e3eedc; box-shadow: inset 3px 0 0 var(--ok); }
.b21-alert a { color: inherit; font-weight: 700; }

/* ---------- kepala ---------- */
.b21-top { position: relative; z-index: 5; }
.b21-top-in { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; min-height: 72px; }
.b21-brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: inherit; }
.b21-logo {
  width: 44px; height: 44px; flex: none; padding: 3px; border-radius: 50%; background: var(--kertas);
  box-shadow: 0 0 0 1px var(--emas), 0 0 0 4px var(--mori), 0 0 0 5px var(--garis);
  display: grid; place-items: center; overflow: hidden;
}
.b21-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.b21-logo-huruf { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: var(--serif); font-size: 19px; }
.b21-brand-tx { min-width: 0; }
.b21-brand-tx b { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--accent-2); }
.b21-brand-tx small { display: block; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.b21-sp { flex: 1; }
.b21-ibtn {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
  color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--garis); border: 0; text-decoration: none; cursor: pointer;
}
.b21-ibtn:hover { box-shadow: inset 0 0 0 1px var(--emas); }
.b21-saldo { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; background: var(--nila-tint); color: var(--nila); font-weight: 800; font-size: 13.5px; text-decoration: none; white-space: nowrap; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nila) 22%, transparent); }
.b21-toplinks { display: none; }

/* ---------- hero mega mendung ---------- */
.b21-hero { position: relative; padding-bottom: 22px; }
@media (max-width: 1023px) { .b21-hero { overflow: hidden; padding-top: 4px; } .b21-hero .b21-cari { margin-left: 5px; margin-right: 5px; } }
.b21-mega { display: block; width: calc(100% + 2 * var(--ff-gutter)); height: auto; aspect-ratio: 390 / 170; margin: -6px calc(-1 * var(--ff-gutter)) 4px; overflow: visible; }
.b21-mega .fl { stroke: none; opacity: 1; }
.b21-mega .f0 { fill: var(--nila); }
.b21-mega .f1 { fill: color-mix(in srgb, var(--nila) 72%, #f6efe2); }
.b21-mega .f2 { fill: color-mix(in srgb, var(--nila) 46%, #f6efe2); }
.b21-mega .f3 { fill: color-mix(in srgb, var(--nila) 22%, #f6efe2); }
.b21-mega .f4 { fill: #fbf6ec; }
.b21-mega .ln { fill: none; stroke: var(--emas); stroke-width: 1.3; stroke-linecap: round; opacity: .9; }
.b21-mega .ln.cu { stroke: var(--nila); stroke-width: 1.8; opacity: 1; }
.b21-mega .cc { fill: var(--emas); }
.b21-canting .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: b21-canting 1.4s cubic-bezier(.6, .1, .3, 1) forwards; }
.b21-canting .fl, .b21-canting .cc { opacity: 0; animation: b21-munc .7s ease-out forwards; }
@keyframes b21-canting { to { stroke-dashoffset: 0; } }
@keyframes b21-munc { to { opacity: 1; } }
.b21-salam { font-size: 15px; color: var(--emas-tua); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.b21-salam::before { content: ""; width: 28px; height: 1px; background: var(--emas); flex: none; }
.b21-hero h1 { font-family: var(--serif); font-weight: 400; font-size: 35px; line-height: 1.08; letter-spacing: -.01em; margin: 8px 0 10px; max-width: 14ch; color: var(--accent-2); overflow-wrap: anywhere; }
.b21-lead { font-size: 16px; color: var(--ink-2); max-width: 34ch; }
.b21-cari {
  position: relative; margin-top: 18px; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 6px 0 16px;
  background: var(--kertas); border-radius: var(--r-s);
  box-shadow: inset 0 0 0 1px var(--emas), 0 0 0 4px var(--mori), 0 0 0 5px var(--garis), 0 14px 24px -16px rgba(31, 58, 95, .5);
}
.b21-cari svg { color: var(--ink-2); flex: none; }
.b21-cari input { flex: 1; min-width: 0; height: 52px; border: 0; background: none; outline: none; font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.b21-cari input::placeholder { color: var(--ink-3); }

/* ---------- judul seksi ---------- */
.b21-sec { margin-top: 30px; }
.b21-sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.b21-sec-h h2 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.12; color: var(--accent-2); }
.b21-sec-h p { font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.b21-sec-a { flex: none; font-size: 14px; font-weight: 700; color: var(--nila); padding: 10px 0; border-bottom: 1px solid var(--emas); text-decoration: none; white-space: nowrap; }
main.b21-wrap { display: block; }

/* ---------- kategori gunungan ---------- */
.b21-gunungan { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--ff-gutter)); padding: 2px var(--ff-gutter) 4px; }
.b21-gunungan::-webkit-scrollbar { display: none; }
.b21-gun { flex: 0 0 80px; text-align: center; font-size: 13.5px; font-weight: 700; line-height: 1.25; color: var(--ink); text-decoration: none; background: none; border: 0; padding: 0 0 6px; cursor: pointer; }
.b21-gun-g { position: relative; width: 66px; height: 80px; margin: 0 auto 6px; display: grid; place-items: center; padding-top: 16px; }
.b21-gun-g svg.sh { position: absolute; inset: 0; width: 100%; height: 100%; }
.b21-gun-g svg.ic { position: relative; width: 24px; height: 24px; color: #fbf6ec; }
.b21-gun.is-genap .b21-gun-g svg.ic { color: #fbf6ec; }
.b21-gun.is-active, .b21-gun[aria-current] { color: var(--nila); }
.b21-gun.is-active .b21-gun-tx, .b21-gun[aria-current] .b21-gun-tx { border-bottom: 2px solid var(--emas); }
.b21-gun-tx { display: inline-block; max-width: 80px; overflow-wrap: anywhere; }

/* ---------- kartu judul: gapura ---------- */
.b21-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.b21-game {
  position: relative; display: block; padding: 8px 8px 14px; background: var(--kertas); border-radius: var(--r);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--garis); text-decoration: none; color: inherit; min-width: 0;
  transition: transform .2s;
}
.b21-game:hover { transform: translateY(-2px); }
.b21-game-pic { position: relative; display: block; border-radius: 999px 999px 8px 8px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 0 0 1px var(--emas); background: var(--nila-tint); }
.b21-game-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.b21-game-huruf { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 34px; color: var(--nila); }
.b21-game-nama { display: block; font-family: var(--serif); font-weight: 400; font-size: 16.5px; line-height: 1.2; margin: 10px 4px 2px; overflow-wrap: anywhere; color: var(--ink); }
.b21-game-pub { display: block; font-size: 13.5px; color: var(--ink-2); margin: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b21-game-harga { display: block; margin: 4px 4px 0; font-size: 13.5px; color: var(--ink-2); }
.b21-game-harga b { font-family: var(--serif); font-weight: 400; font-size: 15.5px; color: var(--accent-2); }
.b21-ku { position: absolute; width: 16px; height: 16px; color: var(--emas); pointer-events: none; }
.b21-ku.k1 { left: 5px; bottom: 5px; }
.b21-ku.k2 { right: 5px; bottom: 5px; transform: scaleX(-1); }
.b21-game-lb { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 999px; background: var(--nila); color: #fbf6ec; font-size: 12.5px; font-weight: 800; white-space: nowrap; box-shadow: 0 0 0 2px var(--kertas); }

/* rel kategori di HP: kisi gapura jadi rel geser (beranda tetap pendek) */
@media (max-width: 1023px) {
  .b21-games.is-rel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--ff-gutter)); padding: 2px var(--ff-gutter) 10px; }
  .b21-games.is-rel::-webkit-scrollbar { display: none; }
  .b21-games.is-rel > .b21-game { flex: 0 0 42%; max-width: 200px; scroll-snap-align: start; }
}
@media (min-width: 640px) and (max-width: 1023px) { .b21-games.is-rel > .b21-game { flex-basis: 28%; } }

/* ---------- baris nota mini (pesanan, artikel) ---------- */
.b21-rows { display: grid; gap: 10px; }
.b21-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px; border-radius: 12px;
  background: var(--kertas); box-shadow: inset 0 0 0 1px var(--garis); text-decoration: none; color: inherit;
}
.b21-row-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; transform: rotate(45deg); border-radius: 6px; background: var(--nila); color: #fbf6ec; overflow: hidden; }
.b21-row-ic > * { transform: rotate(-45deg); }
.b21-row-ic span { font-family: var(--serif); font-size: 17px; }
.b21-row-ic img { width: 140%; height: 140%; object-fit: cover; max-width: none; }
.b21-row-in { flex: 1; min-width: 0; display: block; }
.b21-row-in strong { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.b21-row-in > span { display: block; font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.b21-row-go { color: var(--emas-tua); font-size: 22px; flex: none; }
.b21-badge { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; line-height: 1.3; white-space: nowrap; background: var(--card-2); color: var(--ink); }
.b21-badge::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: currentColor; flex: none; }
.b21-badge-ok { background: #e3eedc; color: var(--ok); }
.b21-badge-bad { background: #f8e5dd; color: var(--bad); }
.b21-badge-wait { background: #f6ead0; color: var(--warn); }
.b21-badge-run { background: var(--nila-tint); color: var(--nila); }
.b21-badge-run::before { animation: b21-denyut 1.2s ease-in-out infinite; }
@keyframes b21-denyut { 50% { opacity: .25; } }

/* ---------- janji / kenapa ---------- */
.b21-janji { display: grid; gap: 10px; }
.b21-janji > div { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--kertas); box-shadow: inset 0 0 0 1px var(--garis); }
.b21-janji svg { width: 48px; height: 48px; flex: none; }
.b21-janji b { display: block; font-weight: 700; font-size: 15px; }
.b21-janji span { display: block; font-size: 14px; color: var(--ink-2); }
.b21-cara { counter-reset: cara; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.b21-cara li { counter-increment: cara; position: relative; padding: 4px 0 4px 46px; font-size: 14.5px; color: var(--ink); min-height: 34px; }
.b21-cara li::before { content: ""; position: absolute; left: 4px; top: 2px; width: 28px; height: 28px; display: grid; place-items: center; transform: rotate(45deg); background: var(--accent); color: var(--on-accent); font-family: var(--serif); font-size: 14px; }
.b21-cara li::after { content: counter(cara); position: absolute; left: 4px; top: 2px; width: 28px; height: 28px; display: grid; place-items: center; color: var(--on-accent); font-family: var(--serif); font-size: 14px; }

/* ---------- kaki: indigo + kawung ---------- */
.b21-kaki { margin-top: 48px; background: var(--nila); color: #efe6d4; --pc: var(--emas); --po: .2; }
.b21-kaki > .b21-tumpal { background: var(--nila); position: absolute; left: 0; right: 0; top: -13px; margin: 0; }
.b21-kaki-in { padding-top: 26px; padding-bottom: 26px; }
.b21-kaki-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.b21-kaki-grid > .b21-kaki-toko { grid-column: 1 / -1; }
.b21-kaki .ff-kaki-kol:has(> .ff-sosial) { grid-column: 1 / -1; }
.b21-kaki-nm { font-family: var(--serif); font-size: 24px; color: #fbf6ec; text-decoration: none; display: inline-block; }
.b21-kaki-toko p { font-size: 14px; color: #dfe4ea; margin: 6px 0 0; max-width: 40ch; }
.b21-kaki-kontak { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.b21-kaki-kontak a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--emas) 70%, transparent); color: #fbf6ec; text-decoration: none; font-weight: 700; font-size: 14px; background: color-mix(in srgb, var(--nila) 80%, #000); }
.b21-kaki .ff-kaki-judul { opacity: 1; color: var(--emas-muda); }
.b21-kaki .ff-kaki-list a { opacity: 1; color: #f3ede2; text-decoration: none; }
.b21-kaki .ff-kaki-list a:hover { color: #ffffff; text-decoration: underline; text-decoration-color: var(--emas); }
.b21-kaki .ff-sosial { color: #fbf6ec; }
.b21-bayar { margin-top: 22px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--emas) 35%, transparent); }
.b21-bayar p { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--emas-muda); margin: 0 0 10px; }
.b21-bayar-list { display: flex; flex-wrap: wrap; gap: 8px; }
.b21-bayar-list span { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--nila) 75%, #000); color: #f3ede2; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--emas) 40%, transparent); }
.b21-kaki-c { margin-top: 18px; font-size: 13px; color: #d5dbe3; }

/* ---------- tombol Menu + lembar bawah ---------- */
.b21-menubtn {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40;
  display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px 0 8px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--nila); color: #fbf6ec; font-weight: 700; font-size: 16px; text-decoration: none;
  box-shadow: 0 0 0 1px var(--emas), 0 0 0 4px var(--mori), 0 0 0 5px var(--emas), 0 14px 28px -10px rgba(31, 58, 95, .6);
}
.b21-menubtn-kw { width: 40px; height: 40px; border-radius: 50%; background: var(--emas); display: grid; place-items: center; }
.b21-sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(30, 20, 10, .45); opacity: 0; pointer-events: none; transition: opacity .3s; display: block; }
.b21-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-width: 640px; margin: 0 auto; max-height: 86vh; overflow: auto; overscroll-behavior: contain;
  background: var(--kertas); color: var(--ink); border-radius: 22px 22px 0 0;
  transform: translateY(105%); visibility: hidden; transition: transform .42s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .42s;
  padding: 0 18px calc(22px + env(safe-area-inset-bottom, 0px));
}
.b21-sheet-tp { position: sticky; top: 0; z-index: 2; height: 30px; margin: 0 -18px 6px; background: var(--accent); --pc: var(--emas); --po: .45; --pm: var(--parang); --ps: 24px; border-radius: 22px 22px 0 0; }
.b21-sheet-grab { position: absolute; left: 50%; top: 10px; width: 44px; height: 5px; border-radius: 5px; margin-left: -22px; background: var(--on-accent); }
.b21-sheet:target, body.b21-menu-open .b21-sheet { transform: none; visibility: visible; transition: transform .42s cubic-bezier(.2, .8, .2, 1); }
.b21-sheet:target ~ .b21-sheet-bg, body.b21-menu-open .b21-sheet-bg { opacity: 1; pointer-events: auto; }
.b21-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.b21-sheet h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 12px 0 8px; color: var(--accent-2); }
.b21-sheet-x { min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); text-decoration: none; font-size: 26px; line-height: 1; }
.b21-sheet-lk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.b21-sheet-lk a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px; border-radius: var(--r-s); box-shadow: inset 0 0 0 1px var(--garis); font-weight: 600; font-size: 15px; line-height: 1.25; text-decoration: none; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.b21-sheet-lk a svg { color: var(--emas-tua); flex: none; }
.b21-sheet-lk a[aria-current] { background: var(--nila-tint); box-shadow: inset 0 0 0 1.5px var(--nila); color: var(--nila); }
.b21-sheet-kat { display: flex; flex-wrap: wrap; gap: 8px; }
.b21-sheet-kat a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--nila-tint); font-weight: 700; font-size: 14px; color: var(--nila); text-decoration: none; }
html.b21-kunci, html.b21-kunci body { overflow: hidden; }

/* ---------- bukti sosial ---------- */
.b21-proof {
  position: fixed; left: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 35; max-width: min(330px, calc(100vw - 92px));
  display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 10px; border-radius: 12px;
  background: var(--kertas); color: var(--ink); box-shadow: inset 0 0 0 1px var(--emas), 0 12px 26px -12px rgba(43, 26, 16, .5);
  opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s;
}
.b21-proof.is-in { opacity: 1; transform: none; }
.b21-proof-dot { width: 10px; height: 10px; transform: rotate(45deg); background: var(--ok); flex: none; margin: 0 2px; }
.b21-proof-body { min-width: 0; display: block; }
.b21-proof-title { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b21-proof-meta { display: block; font-size: 12.5px; color: var(--ink-2); }
.b21-proof-x { flex: none; border: 0; background: none; color: var(--ink-2); font-size: 20px; line-height: 1; cursor: pointer; border-radius: 50%; }

/* ================= BELI ================= */
.b21-bhead { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: end; padding: 10px 12px 18px; margin: 0 -12px; border-radius: var(--r); --pc: var(--nila); --po: .07; }
.b21-bhead-pic { border-radius: 999px 999px 10px 10px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 0 0 1px var(--emas), 0 0 0 5px var(--mori), 0 0 0 6px var(--garis); background: var(--nila-tint); position: relative; }
.b21-bhead-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.b21-bhead h1 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.08; color: var(--accent-2); overflow-wrap: anywhere; }
.b21-bhead-sub { color: var(--ink-2); font-size: 14px; margin: 4px 0 8px; }
.b21-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.b21-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--nila-tint); color: var(--nila); }
.b21-desk { font-size: 14.5px; color: var(--ink-2); margin: 0 0 4px; max-width: 70ch; }
@media (max-width: 720px) {
  .b21-desk { display: none; }
  .b21-bhead { grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 14px; padding: 6px 12px 10px; }
  .b21-bhead h1 { font-size: 23px; }
  .b21-bhead .b21-salam { font-size: 13.5px; }
  .b21-bhead-sub { margin: 2px 0 6px; font-size: 13.5px; }
  .b21-tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .b21-tags::-webkit-scrollbar { display: none; }
  .b21-tag { flex: none; padding: 4px 9px; }
  .b21-step { margin-top: 12px; }
}

.b21-step { position: relative; padding: 22px 16px 20px; margin-top: 18px; background: var(--kertas); border-radius: var(--r); box-shadow: var(--shadow), inset 0 0 0 1px var(--garis); }
.b21-step::after { content: ""; position: absolute; inset: 6px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--emas) 45%, transparent); pointer-events: none; }
.b21-step > * { position: relative; z-index: 1; }
.b21-step-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.b21-kn { position: relative; width: 52px; height: 52px; flex: none; display: grid; place-items: center; }
.b21-kn svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.b21-kn svg .pt { fill: var(--accent); transition: fill .3s; }
.b21-kn svg .ct { fill: color-mix(in srgb, var(--accent) 50%, #000); }
.b21-kn b { position: relative; font-family: var(--serif); font-weight: 400; font-size: 20px; color: #fbf6ec; line-height: 1; }
.b21-step.is-done .b21-kn svg .pt { fill: var(--nila); }
.b21-step-h h2 { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.12; color: var(--accent-2); }
.b21-step-h p { font-size: 14px; color: var(--ink-2); }

.b21-saved { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 12px; padding: 2px; }
.b21-saved-btn { flex: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 14px 6px 8px; border: 0; border-radius: 12px; background: var(--nila-tint); color: var(--ink); cursor: pointer; text-align: left; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nila) 20%, transparent); }
.b21-saved-btn.is-active { box-shadow: inset 0 0 0 2px var(--nila); }
.b21-saved-av { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--nila); color: #fbf6ec; font-family: var(--serif); }
.b21-saved-in strong { display: block; font-size: 14px; }
.b21-saved-in span { display: block; font-size: 12.5px; color: var(--ink-2); }

.b21-nick { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--card-2); font-size: 14px; color: var(--ink-2); box-shadow: inset 3px 0 0 var(--garis); }
.b21-nick.is-ok { background: var(--nila-tint); color: var(--ink); box-shadow: inset 3px 0 0 var(--nila); font-family: var(--serif); font-size: 17px; }
.b21-nick.is-bad { background: #f8e5dd; color: #7a2a14; box-shadow: inset 3px 0 0 var(--bad); }

.b21-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--garis); margin: 0 0 12px; }
.b21-tabs::-webkit-scrollbar { display: none; }
.b21-tab { flex: none; min-height: 46px; padding: 0 12px; border: 0; background: none; font-weight: 700; font-size: 14.5px; color: var(--ink-2); cursor: pointer; position: relative; white-space: nowrap; }
.b21-tab.is-active { color: var(--accent-2); }
.b21-tab.is-active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; background: var(--accent); border-radius: 3px 3px 0 0; }
.b21-ncari { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--garis); margin-bottom: 14px; background: #ffffff; color: var(--ink-2); }
.b21-ncari input { flex: 1; height: 44px; border: 0; background: none; outline: none; font-size: 16px; min-width: 0; color: var(--ink); -webkit-appearance: none; appearance: none; }
.b21-ncari input::placeholder { color: var(--ink-3); }
.b21-grp { font-family: var(--serif); font-size: 18px; margin: 6px 0 10px; display: flex; align-items: center; gap: 10px; color: var(--accent-2); }
.b21-grp::after { content: ""; flex: 1; height: 8px; background: var(--emas); opacity: .6; -webkit-mask: var(--tumpal) 0 0 / 14px 8px repeat-x; mask: var(--tumpal) 0 0 / 14px 8px repeat-x; }

.b21-noms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.b21-nom {
  position: relative; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px 12px 12px 24px; border-radius: 12px; cursor: pointer;
  background: #ffffff; min-height: 128px; min-width: 0; color: var(--ink); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--garis); transition: background .2s, box-shadow .2s, color .2s;
}
.b21-nom > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.b21-nom:hover { box-shadow: inset 0 0 0 1.5px var(--emas); }
.b21-nom:focus-within { outline: 2px solid var(--nila); outline-offset: 2px; }
.b21-nom .ff-nom-gbr { width: 40px; height: 40px; margin: 0 0 4px; }
.b21-nom-name { font-weight: 800; font-size: 15.5px; line-height: 1.22; overflow-wrap: anywhere; }
.b21-nom .ff-coret { display: block; font-size: 13px; color: var(--ink-3); margin-top: auto; padding-top: 6px; }
.b21-nom-price { display: block; font-family: var(--serif); font-size: 18.5px; color: var(--accent-2); line-height: 1.12; }
.b21-nom-name + .b21-nom-price { margin-top: auto; padding-top: 6px; }
.b21-nom-kaki { display: block; min-height: 0; }
.b21-nom-kaki .ff-hemat { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; }
.b21-tk { position: absolute; left: 8px; top: 16px; display: flex; flex-direction: column; gap: 5px; }
.b21-tk i { width: 6px; height: 6px; transform: rotate(45deg); background: var(--emas); }
.b21-nom.is-active, .b21-nom:has(> input:checked) {
  background: var(--nila); color: #fbf6ec;
  box-shadow: inset 0 0 0 1px var(--emas), inset 0 0 0 4px var(--nila), inset 0 0 0 5px var(--emas);
}
.b21-nom.is-active .ff-coret, .b21-nom:has(> input:checked) .ff-coret { color: #c9d3e2; }
.b21-nom.is-active .b21-nom-price, .b21-nom:has(> input:checked) .b21-nom-price { color: var(--emas-muda); }
.b21-nom.is-active::before, .b21-nom:has(> input:checked)::before {
  content: ""; position: absolute; inset: 0; border-radius: 12px; background: var(--emas); opacity: .16; pointer-events: none;
  -webkit-mask: var(--kawung) 0 0 / 28px repeat; mask: var(--kawung) 0 0 / 28px repeat;
}
.b21-nom > span, .b21-nom > img { position: relative; }
.b21-nom > .b21-tk { position: absolute; }

.b21-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--garis); font-size: 14.5px; }
.b21-sum-row > span:first-child { color: var(--ink-2); flex: none; }
.b21-sum-row > span:last-child { font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.b21-sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0 4px; flex-wrap: wrap; }
.b21-sum-total > span { font-weight: 700; }
.b21-sum-total b { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--accent-2); }
.b21-side-h { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--accent-2); margin: 0 0 4px; }
.b21-side .ffkp { margin-top: 12px; }

.b21-fold { border-top: 1px solid var(--garis); }
.b21-fold:last-of-type { border-bottom: 1px solid var(--garis); }
.b21-fold summary { list-style: none; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--serif); font-size: 18px; cursor: pointer; color: var(--accent-2); }
.b21-fold summary::-webkit-details-marker { display: none; }
.b21-fold summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--emas); border-bottom: 2px solid var(--emas); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.b21-fold[open] summary::after { transform: rotate(225deg); }
.b21-fold-in { padding: 0 0 16px; color: var(--ink-2); font-size: 14.5px; }
.b21-fold-in ol { padding-left: 20px; margin: 0; }
.b21-folds { margin-top: 18px; }

/* bilah bayar (SELALU terlihat di halaman beli) */
.b21-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--accent); color: var(--on-accent); }
.b21-bar > .b21-tumpal { position: absolute; left: 0; right: 0; top: -13px; background: var(--accent); }
.b21-bar-in { max-width: var(--ff-wrap); margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px var(--ff-gutter) max(10px, env(safe-area-inset-bottom)); }
.b21-bar-art { width: 44px; height: 44px; flex: none; border-radius: 22px 22px 6px 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--emas); }
.b21-bar-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b21-bar-info { flex: 1; min-width: 0; display: block; }
.b21-bar-info > span { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b21-bar-info strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.1; }
.b21-bar .b21-btn { min-height: 50px; padding: 0 16px; flex: none; max-width: 52%; }

body.b21-has-bar { padding-bottom: 96px; }
body.b21-has-bar .b21-menubtn { display: none; }
body.b21-has-bar .b21-proof { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* ================= PESANAN (nota) ================= */
.b21-nota-wrap { max-width: 600px; }
.b21-nota { position: relative; margin-top: 18px; background: var(--kertas); padding: 26px 20px 22px; border-radius: 4px; box-shadow: 0 18px 30px -18px rgba(107, 62, 30, .5), inset 0 0 0 1px var(--garis); }
.b21-nota::before, .b21-nota::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: radial-gradient(circle at 7px 0, transparent 6px, var(--kertas) 6.5px) 0 0 / 14px 10px repeat-x; }
.b21-nota::before { top: -9px; transform: scaleY(-1); }
.b21-nota::after { bottom: -9px; }
.b21-nota-hd { text-align: center; padding-bottom: 16px; border-bottom: 1px dashed var(--garis); }
.b21-nota-nm { font-family: var(--serif); font-size: 21px; color: var(--accent-2); }
.b21-nota-hd h1 { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.2; margin-top: 10px; color: var(--ink); overflow-wrap: anywhere; }
.b21-nota-hd p { font-size: 14px; color: var(--ink-2); }
.b21-kode { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 800; letter-spacing: .06em; font-size: 16.5px; flex-wrap: wrap; justify-content: center; }
.b21-kode button { min-height: 44px; padding: 0 12px; border-radius: 8px; border: 0; box-shadow: inset 0 0 0 1px var(--accent-2); background: none; color: var(--accent-2); font-weight: 700; font-size: 14px; cursor: pointer; letter-spacing: 0; }
.b21-alur { display: flex; justify-content: space-between; position: relative; margin: 20px 0; }
.b21-alur::before { content: ""; position: absolute; left: 41px; right: 41px; top: 15px; height: 2px; background: var(--garis); }
.b21-alur-bar { position: absolute; left: 41px; top: 15px; height: 2px; background: var(--nila); width: 0; }
.b21-alur[data-k="1"] .b21-alur-bar { width: calc(50% - 41px); }
.b21-alur[data-k="2"] .b21-alur-bar { width: calc(100% - 82px); }
.b21-alur > div { position: relative; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-2); width: 82px; line-height: 1.3; }
.b21-alur i { display: block; width: 30px; height: 30px; margin: 1px auto 8px; transform: rotate(45deg); background: var(--kertas); box-shadow: inset 0 0 0 1.5px var(--garis); }
.b21-alur .is-on { color: var(--nila); }
.b21-alur .is-on i { background: var(--nila); box-shadow: 0 0 0 3px var(--kertas), 0 0 0 4px var(--emas); }
.b21-alur .is-bad { color: var(--bad); }
.b21-alur .is-bad i { background: var(--bad); box-shadow: 0 0 0 3px var(--kertas), 0 0 0 4px var(--bad); }
.b21-nota-msg { text-align: center; padding: 6px 0 12px; }
.b21-nota-msg .b21-serif { font-size: 21px; color: var(--accent-2); line-height: 1.25; }
.b21-nota-msg p + p { margin-top: 4px; }
.b21-serial { margin: 12px 0 4px; padding: 12px; border-radius: 10px; background: var(--nila-tint); text-align: left; }
.b21-serial code { display: block; margin-top: 4px; font-size: 15.5px; font-weight: 700; word-break: break-all; color: var(--ink); }
.b21-total { font-family: var(--serif); font-size: 32px; color: var(--accent-2); line-height: 1; }
.b21-rinci > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--garis); font-size: 14.5px; }
.b21-rinci > div > span:first-child { color: var(--ink-2); flex: none; }
.b21-rinci > div > :last-child { font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.b21-rinci .b21-rinci-total { border: 0; padding-top: 14px; align-items: baseline; }
.b21-rinci .b21-rinci-total > span:first-child { color: var(--ink); font-weight: 700; }
.b21-rinci .b21-rinci-total b { font-family: var(--serif); font-weight: 400; font-size: 23px; color: var(--accent-2); }
.b21-cap { position: absolute; right: 26%; bottom: 14px; width: 128px; height: 128px; pointer-events: none; color: #a2381c; mix-blend-mode: multiply; opacity: .88; transform: rotate(-12deg); animation: b21-cap .5s cubic-bezier(.3, 1.4, .5, 1) .3s both; }
.b21-cap svg { width: 100%; height: 100%; display: block; }
@keyframes b21-cap { 0% { opacity: 0; transform: scale(2.4) rotate(-4deg); } 70% { opacity: .95; transform: scale(.94) rotate(-14deg); } 100% { opacity: .88; transform: scale(1) rotate(-12deg); } }

/* ================= AKUN ================= */
.b21-id { display: flex; align-items: center; gap: 14px; }
.b21-id .b21-logo { width: 54px; height: 54px; }
.b21-id strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.2; color: var(--accent-2); overflow-wrap: anywhere; }
.b21-id > span:last-child > span { font-size: 14px; color: var(--ink-2); }
.b21-id .b21-logo-huruf { font-size: 22px; }
.b21-amt { font-family: var(--serif); font-size: 32px; color: var(--accent-2); line-height: 1.1; margin-top: 4px; }
.b21-small { font-size: 13.5px; color: var(--ink-2); }
.b21-lupa { border: 0; cursor: pointer; min-height: 40px; }

/* halaman kecil berjudul (cek pesanan, akun, katalog) */
.b21-judul { padding: 10px 0 4px; }
.b21-judul h1 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; color: var(--accent-2); }
.b21-judul p { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.b21-sempit { max-width: 620px; }

/* ================= TABLET ================= */
@media (min-width: 640px) {
  .b21-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .b21-noms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .b21-hero h1 { font-size: 44px; }
}

/* ================= DESKTOP ================= */
@media (min-width: 1024px) {
  :root { --tab-h: 0px; --ff-gutter: 36px; }
  body { font-size: 16px; }
  .b21-toplinks { display: flex; gap: 22px; margin-left: 24px; flex-wrap: wrap; }
  .b21-toplinks a { font-weight: 600; padding: 8px 0; border-bottom: 1px solid transparent; text-decoration: none; white-space: nowrap; }
  .b21-toplinks a:hover, .b21-toplinks a[aria-current] { border-color: var(--emas); }
  .b21-toplinks a[aria-current] { color: var(--accent-2); }
  .b21-brand-tx small { max-width: 260px; }
  .b21-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
  .b21-hero h1 { font-size: 60px; max-width: 13ch; }
  .b21-hero .b21-lead { font-size: 18px; }
  .b21-mega { order: 2; width: 100%; margin: 0; transform: scale(1.05); transform-origin: 30% 60%; }
  .b21-hero-tx { order: 1; }
  .b21-cari { max-width: 520px; }
  .b21-home { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
  .b21-home-side { position: sticky; top: 16px; }
  .b21-games { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .b21-games.is-sorot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .b21-katalog .b21-games { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .b21-gunungan { margin: 0; padding: 2px 0 4px; flex-wrap: wrap; }
  .b21-menubtn { display: none; }
  .b21-proof { bottom: 20px; }
  body.b21-has-bar { padding-bottom: 0; }
  body.b21-has-bar .b21-proof { bottom: 20px; }
  .b21-bwrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
  .b21-side { position: sticky; top: 16px; }
  .b21-side > .b21-step:first-child { margin-top: 18px; }
  .b21-bar { display: none; }
  .b21-kaki-grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 24px 30px; }
  .b21-kaki-grid > .b21-kaki-toko { grid-column: auto; }
  .b21-kaki .ff-kaki-kol:has(> .ff-sosial) { grid-column: auto; }
  .b21-bhead { grid-template-columns: 150px minmax(0, 1fr); padding: 20px; margin: 0; }
  .b21-bhead h1 { font-size: 40px; }
  .b21-judul h1 { font-size: 44px; }
}

/* ---------- gerak dimatikan ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .b21-canting .ln { stroke-dashoffset: 0; }
  .b21-canting .fl, .b21-canting .cc { opacity: 1; }
  .b21-cap { opacity: .88; transform: rotate(-12deg); }
}
.b21-lite .b21-canting .ln { animation: none; stroke-dashoffset: 0; }
.b21-lite .b21-canting .fl, .b21-lite .b21-canting .cc { animation: none; opacity: 1; }

/* ---------- penyesuaian kontras blok bersama di atas kertas/mori ---------- */
.b21-nom .ff-coret { opacity: 1; color: var(--ink-2); }
.b21-nom.is-active .ff-coret, .b21-nom:has(> input:checked) .ff-coret { color: #d3dbe6; }
.ff-lp-est, .ff-lp-kcontoh { opacity: .8 !important; }
/* Blok bersama yang memakai --accent sebagai TEKS: di kanvas terang aksen
   muda (#FBBF24) tak terbaca, jadi diarahkan ke tinta beraksen. */
.ff-lp-all, .ff-lp-harga, .ff-lp-harga small, .ff-tmp-btn, .ff-tmp-btn span { color: var(--accent-2) !important; }

/* ═══ REVIEW B (10 Nov 2026) — perbaikan QA ═══ */
/* Rak per kategori (gulir menyamping): kartu pertama menempel tepi layar karena snap tanpa scroll-padding. */
.b21-games.is-rel { scroll-padding-inline: var(--ff-gutter); }
/* Lencana kepala halaman beli ("Tanpa kata sandi") terpotong di tepi HP → dibiarkan turun baris. */
@media (max-width: 1023px) { .b21-tags { flex-wrap: wrap; overflow: visible; } }
/* Kolom User ID & Server sejajar walau label User ID memikul tombol "Tempel ID". */
.b21-row-2 > div > .ff-tmp-row, .b21-row-2 > div > .b21-label:first-child { min-height: 44px; display: flex; align-items: center; margin-top: 0; margin-bottom: 6px; }
.b21-row-2 > div > .ff-tmp-row > .b21-label { margin: 0; }
body .ff-tmp-btn { min-height: 44px; font-size: 13px; }
/* Teks kecil ≥13px. */
.b21-bayar p, .b21-tag, .b21-proof-meta, .b21-step > p, .b21-game-lb, body .ff-total-qris, body .ffkp-msg { font-size: 13px !important; }
.b21-nom-kaki .ff-hemat, .b21-nom .ff-sekali-badge, body .ff-kaki-judul { font-size: 13px !important; line-height: 1.25 !important; }
/* Pesan kode promo: hijau/merah bawaan partial ±3,2:1 di kain mori. */
body .ffkp-msg.ok { color: #1f5f2a; font-weight: 700; }
body .ffkp-msg.no { color: #9b1c1c; font-weight: 700; }
/* Lapak bersama: label "(opsional)" & spesifikasi pudar di bawah 4,5:1 di mori. */
body .ff-lp-panel label span[style*="opacity"] { opacity: .85 !important; }
body .ff-lp-spek dt { opacity: .85; font-size: 13px; }
/* Sasaran sentuh ≥44px. */
.b21-kaki-nm { min-height: 44px; display: inline-flex; align-items: center; }
body .ffkp summary { min-height: 44px; display: flex; align-items: center; }
.b21-proof-x { min-width: 44px; min-height: 44px; }
.b21-cara .b21-link, .b21-fold-in .b21-link { display: inline-block; padding: 12px 0; margin: -12px 0; }
body .b21-proof .b21-proof-x { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
body .ff-ann-in > b { font-size: 13px; }
.b21-toplinks a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-block: 0; }
