/* ==========================================================================
   TEMPLATE 17 — EMPUK · "tanah liat permen"
   Toko terasa seperti menu game kasual: semua elemen tebal, membulat, dan bisa
   ditekan (tombol berbibir 3D + squash & stretch), tab bawah dengan tombol
   tengah raksasa, dan permata SVG berlapis yang makin besar & banyak sesuai
   tingkat nominal. Wajah TERANG tetap (kanvas vanila #fff4e4).
   Kosakata kelas: e17-*.
   ========================================================================== */

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("font/fredoka-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 {
  --ff-teks: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Dua warna seller (layout menimpa). */
  --accent: #7c3aed;
  --on-accent: #ffffff;
  --brand: #2fd67a;
  /* Tinta di atas --brand: dihitung layout dari warnaKedua() (coklat atau putih). */
  --on-brand: #3d2314;

  /*
   * TINTA BERAKSEN = 55% aksen + HITAM (srgb). WAJIB sama dengan uji.tinta
   * t17 di config/fireflazz.php (['campur' => '#000000', 'porsi' => 0.55]).
   * Dipakai untuk harga, tautan, label aksen — aksen terang (kuning) pun tetap
   * >= 4,5:1 di atas kartu.
   */
  --accent-2: color-mix(in srgb, var(--accent) 55%, #000000);
  --tinta: var(--accent-2);

  /* Turunan aksen (oklab: campuran lebih "permen", tak keruh). */
  --a-deep: color-mix(in oklab, var(--accent) 62%, #1a0630);   /* bibir 3D */
  --a-soft: color-mix(in oklab, var(--accent) 16%, #ffffff);
  --a-mist: color-mix(in oklab, var(--accent) 8%, #fff8ee);
  --b-deep: color-mix(in oklab, var(--brand) 60%, #0b3a1c);
  --b-soft: color-mix(in oklab, var(--brand) 20%, #ffffff);

  /* Permen pelengkap: rotasi hue dari aksen (fallback statis). */
  --c-straw: #ff5d8f;
  --c-lemon: #ffc93c;
  --c-sky: #38bdf8;

  --bg: #fff4e4;        /* vanila */
  --card: #fffdf8;
  --card-2: #fbeedd;    /* lekuk isian */
  --bg-soft: #fbeedd;
  --ink: #3d2314;       /* 13,9:1 di --bg */
  --ink-2: #7a5440;     /* 6,1:1 di --bg, 5,8:1 di lekuk */
  --line: #f1dfc6;
  --ok: #15803d;
  --bad: #b42318;
  --danger: #b42318;
  --warn: #b45309;

  --r-xl: 32px; --r-l: 26px; --r-m: 20px; --r-s: 14px;

  --clay: 0 14px 28px -12px rgba(122,62,20,.32), 0 3px 0 rgba(122,62,20,.06), inset 0 -6px 0 rgba(122,62,20,.07), inset 0 3px 0 rgba(255,255,255,.9);
  --clay-sm: 0 8px 16px -8px rgba(122,62,20,.35), inset 0 -4px 0 rgba(122,62,20,.08), inset 0 2px 0 #fff;
  --pit: inset 0 4px 8px rgba(122,62,20,.16), inset 0 -2px 0 #fff;

  /* Bersama: WAJIB sama dengan .e17-wrap. */
  --ff-wrap: 1180px;
  --ff-gutter: 16px;
  /* Tab bawah mengambang: 70 + jarak 10 + nafas. Tetap ada di desktop (dock). */
  --tab-h: 90px;
}
@supports (color: oklch(from red l c h)) {
  :root {
    --c-straw: oklch(from var(--accent) .7 .2 calc(h + 75));
    --c-lemon: oklch(from var(--accent) .86 .16 calc(h + 150));
    --c-sky: oklch(from var(--accent) .74 .14 calc(h - 70));
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--ff-teks); font-size: 16px; line-height: 1.45;
  color: var(--ink); background-color: var(--bg);
  background-image:
    radial-gradient(color-mix(in oklab, var(--accent) 14%, transparent) 1.6px, transparent 2px),
    radial-gradient(color-mix(in oklab, var(--c-straw) 16%, transparent) 1.6px, transparent 2px);
  background-size: 34px 34px, 34px 34px;
  background-position: 0 0, 17px 17px;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
.e17-wrap { max-width: var(--ff-wrap); margin: 0 auto; padding: 0 var(--ff-gutter); }
.e17-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.e17-mono { font-family: var(--ff-teks); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.e17-center { text-align: center; }
.e17-mt-1 { margin-top: 8px; } .e17-mt-2 { margin-top: 14px; } .e17-mt-3 { margin-top: 22px; }
.e17-svgdef { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------------------------------------------------------------- tombol */
.e17-btn {
  --bc: var(--accent); --bd: var(--a-deep); --bt: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--bc); color: var(--bt); font-weight: 600; font-size: 17px; line-height: 1.1;
  letter-spacing: .01em; text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: 0 6px 0 var(--bd), 0 12px 18px -6px color-mix(in oklab, var(--bd) 60%, transparent),
    inset 0 3px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.08);
  transform-origin: 50% 100%; transition: transform .09s ease, box-shadow .09s ease;
  -webkit-tap-highlight-color: transparent; margin-bottom: 6px;
}
.e17-btn:active:not(:disabled), .e17-btn.is-press {
  transform: translateY(5px) scale(1.04, .92);
  box-shadow: 0 1px 0 var(--bd), 0 4px 8px -4px var(--bd), inset 0 3px 0 rgba(255,255,255,.3);
}
.e17-btn.is-boing { animation: e17-boing .42s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes e17-boing { 0% { transform: translateY(5px) scale(1.04, .92); } 45% { transform: translateY(-3px) scale(.96, 1.06); } 100% { transform: none; } }
.e17-btn:disabled, .e17-btn[aria-disabled="true"] {
  --bc: #ecdcc6; --bd: #d9c2a3; --bt: #6b4a38; cursor: not-allowed;
  box-shadow: 0 5px 0 var(--bd), inset 0 2px 0 rgba(255,255,255,.5);
}
.e17-btn--go { --bc: var(--brand); --bd: var(--b-deep); --bt: var(--on-brand); }
.e17-btn--soft, .e17-btn-ghost { --bc: #ffffff; --bd: #e9d3b6; --bt: var(--ink); }
.e17-btn--sm { min-height: 44px; font-size: 15px; padding: 0 16px; }
.e17-btn--blk, .e17-btn-full { display: flex; width: 100%; }
.e17-btn.e17-danger { --bt: var(--bad); }

/* ---------------------------------------------------------------- kepala */
.e17-top { position: relative; z-index: 5; }
.e17-top-in { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 10px; }
.e17-brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.e17-logo {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center; padding: 5px;
  border-radius: 16px; background: #fff; box-shadow: var(--clay-sm); transform: rotate(-6deg);
  font-weight: 700; font-size: 22px; color: var(--accent-2);
}
.e17-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; display: block; }
.e17-brand-tx { min-width: 0; }
.e17-brand-name { display: block; font-size: 20px; font-weight: 700; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e17-brand-tag { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e17-sp { flex: 1; }
.e17-nav { display: none; }
.e17-ibtn {
  width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: var(--clay-sm); border: 0; color: var(--ink); text-decoration: none;
}
.e17-ibtn svg { width: 24px; height: 24px; }
.e17-saldo {
  flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px;
  background: var(--b-soft); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none;
  box-shadow: inset 0 -3px 0 color-mix(in oklab, var(--brand) 40%, transparent);
}

/* ---------------------------------------------------------------- hero */
.e17-hero {
  position: relative; margin: 6px 0 18px; padding: 22px 18px 20px; border-radius: var(--r-xl);
  background: radial-gradient(120% 90% at 85% 0%, color-mix(in oklab, var(--accent) 70%, #fff) 0%, var(--accent) 55%, var(--a-deep) 130%);
  color: var(--on-accent); overflow: hidden; isolation: isolate;
  box-shadow: 0 22px 36px -18px var(--a-deep), inset 0 -10px 0 rgba(0,0,0,.12), inset 0 4px 0 rgba(255,255,255,.25);
}
.e17-hero::before { content: ""; position: absolute; inset: auto -40px -70px auto; width: 220px; height: 220px; border-radius: 50%; background: color-mix(in oklab, var(--c-straw) 70%, var(--accent)); opacity: .5; z-index: -1; }
.e17-hero::after { content: ""; position: absolute; left: -30px; top: -46px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.12); z-index: -1; }
.e17-hero-tx { position: relative; z-index: 1; }
.e17-hero h1 { font-size: 30px; line-height: 1.04; font-weight: 700; max-width: 11ch; letter-spacing: -.01em; padding-right: 4px; }
.e17-hero .e17-say { font-size: 16px; margin: 8px 0 16px; max-width: 21ch; opacity: .96; }
.e17-mascot { position: absolute; right: 2px; top: 10px; width: 140px; height: 140px; pointer-events: none; }
.e17-hero-gem { position: absolute; right: 14px; top: 108px; width: 62px; height: 56px; perspective: 400px; filter: drop-shadow(0 10px 6px rgba(30,0,60,.35)); pointer-events: none; }
.e17-hero-gem .e17-gem { width: 100%; height: 100%; }
.e17-search {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 7px 0 16px;
  border-radius: 999px; background: #fff; color: var(--ink);
  box-shadow: inset 0 4px 8px rgba(122,62,20,.15), 0 6px 0 rgba(30,0,60,.22);
}
.e17-search > svg { width: 22px; height: 22px; flex: none; color: var(--ink-2); }
.e17-search input { flex: 1; min-width: 0; border: 0; background: none; font-size: 16px; outline: none; height: 100%; }
.e17-search input::placeholder { color: #7f5f4c; opacity: 1; }
.e17-search .e17-btn { min-height: 42px; font-size: 15px; padding: 0 16px; margin: 0; }

/* ---------------------------------------------------------------- permata */
.e17-gem {
  --g: var(--c-sky); display: inline-block; overflow: visible;
  --gt: color-mix(in oklab, var(--g) 50%, #fff);
  --gl: color-mix(in oklab, var(--g) 80%, #fff);
  --gr: color-mix(in oklab, var(--g) 72%, #002);
  --gb: var(--g);
  --gd: color-mix(in oklab, var(--g) 55%, #001);
}
.e17-spin { animation: e17-spin 4.2s cubic-bezier(.45, 0, .55, 1) infinite; transform-origin: 50% 50%; }
@keyframes e17-spin { 0%, 100% { transform: rotateY(0) translateY(0); } 25% { transform: rotateY(70deg) translateY(-6px); } 50% { transform: rotateY(180deg); } 75% { transform: rotateY(250deg) translateY(-6px); } }

/* ---------------------------------------------------------------- blok bersama: pengumuman = pita permen */
.ff-ann {
  align-items: center !important; gap: 12px !important; padding: 12px 14px !important; border: 0 !important;
  border-radius: var(--r-m) !important; font-size: 15px !important; font-weight: 500; color: var(--ink);
  background: repeating-linear-gradient(-45deg, var(--c-lemon) 0 14px, color-mix(in oklab, var(--c-lemon) 70%, #fff) 14px 28px) !important;
  box-shadow: var(--clay-sm);
}
.ff-ann > svg { width: 40px !important; height: 40px !important; padding: 10px; margin: 0 !important; border-radius: 50%; background: #fff; color: var(--ink) !important; box-shadow: inset 0 -3px 0 rgba(0,0,0,.08); }
.ff-ann-in b { color: var(--ink) !important; font-size: 13px !important; }

/* spanduk dalam bingkai bantal */
.e17-wrap .ff-ban { margin: 0 0 22px; padding: 6px; border-radius: var(--r-l); background: #fff; box-shadow: var(--clay); }
.e17-wrap .ff-ban-slide { border-radius: 20px; }
.e17-wrap .ff-ban-dots { margin-top: 4px; }
.e17-wrap .ff-promo { border-radius: var(--r-l) !important; box-shadow: var(--clay-sm); }

/* lapak: kartu tanah liat */
.e17-wrap .ff-lp { margin-top: 26px; }
.e17-wrap .ff-lp-title { font-size: 23px; font-weight: 700; }
.e17-wrap .ff-lp-card { border: 0 !important; border-radius: var(--r-l) !important; background: var(--card) !important; box-shadow: var(--clay) !important; padding: 8px 8px 4px; overflow: hidden; }
.e17-wrap .ff-lp-art, .e17-wrap .ff-lp-art img { border-radius: 20px; }
.e17-wrap .ff-lp-harga { color: var(--accent-2) !important; font-size: 18px; font-weight: 700; }
.e17-wrap .ff-lp-all { color: var(--accent-2); font-weight: 600; }

/* fokus (beli cepat toko berfokus) */
.e17-wrap .ff-fk { border-radius: var(--r-l); box-shadow: var(--clay); }

/* ---------------------------------------------------------------- judul seksi */
.e17-sec { margin: 26px 0 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.e17-sec h2, .e17-sec h3 { font-size: 23px; font-weight: 700; line-height: 1.1; }
.e17-sec p { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.e17-sec a { flex: none; font-size: 15px; font-weight: 600; color: var(--accent-2); padding: 10px 0; text-decoration: none; }
.e17-sec a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- kategori */
.e17-cats { display: flex; gap: 10px; overflow-x: auto; padding: 4px var(--ff-gutter) 14px; margin: 0 calc(-1 * var(--ff-gutter)); scrollbar-width: none; }
.e17-cats::-webkit-scrollbar { display: none; }
.e17-cat {
  --cc: var(--accent); flex: none; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px 0 6px;
  border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 5px 0 color-mix(in oklab, var(--cc) 35%, #e8d2b4), 0 10px 14px -8px rgba(122,62,20,.3);
}
.e17-cat > span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--cc); color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15), inset 0 2px 0 rgba(255,255,255,.35); }
.e17-cat > span svg { width: 20px; height: 20px; }
.e17-cat:nth-child(5n+2) { --cc: var(--c-straw); }
.e17-cat:nth-child(5n+3) { --cc: color-mix(in oklab, var(--c-lemon) 80%, #b46a00); }
.e17-cat:nth-child(5n+4) { --cc: var(--c-sky); }
.e17-cat:nth-child(5n+5) { --cc: var(--b-deep); }
.e17-cat.is-active, .e17-cat[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); box-shadow: 0 5px 0 var(--a-deep), 0 10px 14px -8px var(--a-deep); }
.e17-cat.is-active > span, .e17-cat[aria-pressed="true"] > span { background: #fff; color: var(--accent-2); }
.e17-cat b { font-weight: 500; margin-left: -2px; }

/* ---------------------------------------------------------------- kisi judul (bantal) */
.e17-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.e17-game {
  --gc: var(--accent); position: relative; display: block; padding: 8px 8px 12px; border-radius: var(--r-l);
  background: var(--card); box-shadow: var(--clay); text-decoration: none; color: var(--ink); transition: transform .15s; min-width: 0;
}
.e17-game:active { transform: scale(.97); }
.e17-game-pic {
  display: grid; place-items: center; border-radius: 20px; overflow: hidden; aspect-ratio: 1; background: var(--a-soft);
  box-shadow: 0 0 0 4px #fff, 0 0 0 7px color-mix(in oklab, var(--gc) 30%, #fff);
  font-size: 28px; font-weight: 700; color: var(--accent-2);
}
.e17-game-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.e17-game-nama { display: block; font-size: 16px; font-weight: 600; line-height: 1.15; margin: 12px 4px 2px; overflow-wrap: anywhere; }
.e17-game-pub { display: block; font-size: 14px; color: var(--ink-2); margin: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e17-game-harga { display: block; margin: 6px 4px 0; font-size: 14px; color: var(--ink-2); }
.e17-game-harga b { color: var(--accent-2); font-size: 16px; font-weight: 700; }
.e17-game-tanda {
  position: absolute; top: 0; right: 12px; z-index: 2; padding: 3px 10px 5px; border-radius: 0 0 14px 14px;
  background: var(--c-lemon); color: #3d2314; font-size: 13px; font-weight: 700; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12);
}
.e17-game:nth-child(4n+2) { --gc: var(--c-straw); }
.e17-game:nth-child(4n+3) { --gc: var(--c-sky); }
.e17-game:nth-child(4n+4) { --gc: var(--c-lemon); }
.e17-blok { scroll-margin-top: 20px; }

/* ---------------------------------------------------------------- baris (pesanan / mutasi) */
.e17-rows { display: grid; gap: 10px; }
.e17-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 22px;
  background: var(--card); box-shadow: var(--clay-sm); text-decoration: none; color: var(--ink); min-width: 0;
}
.e17-row-ic {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: var(--a-soft); color: var(--accent-2); font-weight: 700; font-size: 18px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.06);
}
.e17-row-ic img { width: 100%; height: 100%; object-fit: cover; }
.e17-row-in { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.e17-row-in strong { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.e17-row-in span { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.e17-pil {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 700; white-space: nowrap; border: 0;
  background: #fff1d6; color: #7a4a05; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08);
}
.e17-pil-ok { background: #dcf7e6; color: #14532d; }
.e17-pil-bad { background: #ffe1e6; color: #8f1730; }
.e17-pil-run { background: var(--a-soft); color: var(--accent-2); }
.e17-pil-wait { background: #fff1c7; color: #6b4300; }
.e17-titik { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: e17-denyut 1.2s ease-in-out infinite; }
@keyframes e17-denyut { 50% { transform: scale(.5); opacity: .5; } }

/* ---------------------------------------------------------------- peti hadiah */
.e17-peti {
  position: relative; display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 16px; border-radius: var(--r-l); color: #3d2314;
  background: linear-gradient(160deg, color-mix(in oklab, var(--c-lemon) 55%, #fff), color-mix(in oklab, var(--c-lemon) 90%, #e98b00)); box-shadow: var(--clay);
}
.e17-peti > svg { width: 86px; height: 80px; flex: none; filter: drop-shadow(0 8px 6px rgba(120,60,0,.3)); }
.e17-peti h3 { font-size: 19px; line-height: 1.15; }
.e17-peti p { font-size: 14px; color: #4a2a12; margin: 2px 0 10px; }
.e17-peti .e17-btn { margin: 0; }

/* ---------------------------------------------------------------- langkah & jaminan */
.e17-steps { display: grid; gap: 10px; }
.e17-step { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 44px 26px 26px 44px; background: #fff; box-shadow: var(--clay-sm); }
.e17-step i {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 24px;
  color: var(--on-accent); background: var(--accent); box-shadow: inset 0 -5px 0 var(--a-deep), inset 0 3px 0 rgba(255,255,255,.35);
}
.e17-step:nth-child(2) i { background: var(--c-straw); color: #3d2314; box-shadow: inset 0 -5px 0 color-mix(in oklab, var(--c-straw) 60%, #400); }
.e17-step:nth-child(3) i { background: var(--brand); color: var(--on-brand); box-shadow: inset 0 -5px 0 var(--b-deep); }
.e17-step b { display: block; font-size: 17px; font-weight: 600; }
.e17-step span { font-size: 14px; color: var(--ink-2); }
.e17-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.e17-trust > div { padding: 14px 6px; border-radius: var(--r-m); background: #fff; box-shadow: var(--clay-sm); text-align: center; font-size: 14px; font-weight: 600; line-height: 1.2; }
.e17-trust svg { width: 44px; height: 44px; margin: 0 auto 8px; display: block; }

/* ---------------------------------------------------------------- panel / form / alert */
.e17-panel { position: relative; padding: 18px 16px; margin: 0 0 16px; border-radius: var(--r-xl); background: var(--card); box-shadow: var(--clay); }
.e17-panel > :first-child { margin-top: 0; }
.e17-label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 6px 6px; color: var(--ink); }
.e17-input {
  display: block; width: 100%; min-height: 56px; padding: 0 16px; border: 0; border-radius: 18px;
  background: var(--card-2); box-shadow: var(--pit); font-size: 18px; font-weight: 500; color: var(--ink); outline: none;
  -webkit-appearance: none; appearance: none;
}
select.e17-input { padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; font-size: 16px; }
textarea.e17-input { padding: 14px 16px; min-height: 110px; font-size: 16px; }
.e17-input::placeholder { color: #7f5f4c; opacity: 1; font-weight: 400; }
.e17-input:focus { box-shadow: var(--pit), 0 0 0 3px var(--accent); }
.e17-hint { font-size: 14px; color: var(--ink-2); margin: 10px 0 0; line-height: 1.45; }
.e17-hint a { color: inherit; font-weight: 600; text-decoration: underline; }
.e17-alert { margin: 0 0 14px; padding: 12px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; background: var(--a-mist); box-shadow: var(--clay-sm); color: var(--ink); }
.e17-alert-info { background: #fff6d8; }
.e17-alert-error { background: #ffe6e9; color: #7d1426; }
.e17-alert-ok { background: #ddf6e6; color: #14532d; }
.e17-alert a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ---------------------------------------------------------------- kaki */
.e17-foot { margin-top: 34px; padding: 26px 0 22px; border-radius: var(--r-xl) var(--r-xl) 0 0; background: color-mix(in oklab, var(--accent) 9%, #fff3e0); box-shadow: inset 0 4px 0 #fff; }
.e17-foot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.e17-foot-brand { grid-column: 1 / -1; }
.e17-foot-brand p { font-size: 15px; color: var(--ink-2); margin-top: 10px; max-width: 46ch; }
.e17-foot .ff-kaki-judul { opacity: 1; color: var(--ink-2); font-size: 13px; }
.e17-foot a { text-decoration: none; }
.e17-foot .ff-kaki-list a { opacity: 1; font-size: 15px; font-weight: 500; }
.e17-foot .ff-kaki-list a:hover { color: var(--accent-2); }
.e17-bayar { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.e17-bayar span { padding: 6px 12px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 3px 0 #ead4b6; }
.e17-foot-copy { font-size: 14px; color: var(--ink-2); margin-top: 18px; }
.ff-sosial.is-t17 { --ffs-r: 999px; --ffs-rp: 26px; border: 0; background: #fff; box-shadow: var(--clay-sm); }
.ff-sosial.is-t17 .ff-sosial-baris a.ff-sosial-btn { box-shadow: 0 4px 0 rgba(0,0,0,.25); }

/* ---------------------------------------------------------------- tab bawah + tombol tengah raksasa */
.e17-tab {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 0 10px max(10px, env(safe-area-inset-bottom, 0px));
}
.e17-tab-in {
  max-width: 560px; margin: 0 auto; height: 70px; display: grid; grid-template-columns: 1fr 1fr 92px 1fr 1fr; align-items: center;
  border-radius: 28px; background: #fff;
  box-shadow: 0 -2px 0 #fff inset, 0 -6px 0 rgba(122,62,20,.06) inset, 0 14px 30px -10px rgba(122,62,20,.45), 0 0 0 1px rgba(122,62,20,.06);
}
.e17-tab-in > a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.e17-tab-in > a svg { width: 26px; height: 26px; }
.e17-tab-in > a[aria-current="page"] { color: var(--accent-2); }
.e17-tab-in > a[aria-current="page"] svg { animation: e17-wig 2.6s ease-in-out infinite; }
@keyframes e17-wig { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-5deg); } }
.e17-tab-mid { position: relative; height: 70px; }
.e17-tab-mid .e17-btn {
  position: absolute; left: 50%; top: -26px; width: 82px; height: 82px; min-height: 0; padding: 0; margin: 0 0 0 -41px;
  border-radius: 50%; flex-direction: column; gap: 0; font-size: 12.5px; line-height: 1.05;
  border: 5px solid #fff; box-shadow: 0 6px 0 var(--b-deep), 0 14px 20px -6px rgba(0,60,20,.5), inset 0 4px 0 rgba(255,255,255,.4);
}
.e17-tab-mid .e17-btn svg { width: 28px; height: 28px; }
body.e17-ada-bar .e17-tab { display: none; }

/* ---------------------------------------------------------------- bukti sosial */
.e17-proof {
  position: fixed; left: 50%; top: 12px; z-index: 60; width: min(360px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 22px; background: #fff; color: var(--ink);
  box-shadow: 0 16px 30px -12px rgba(122,62,20,.5), inset 0 -4px 0 rgba(122,62,20,.07);
  transform: translate(-50%, -140%); transition: transform .45s cubic-bezier(.3, 1.5, .5, 1);
}
.e17-proof.is-in { transform: translate(-50%, 0); }
.e17-proof-gem { width: 38px; height: 35px; flex: none; }
.e17-proof-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.e17-proof-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e17-proof-meta { font-size: 13px; color: var(--ink-2); }
.e17-proof-x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--card-2); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }

/* ================================================================ HALAMAN BELI */
.e17-bartop { display: flex; align-items: center; gap: 12px; padding: 4px 0 12px; }
.e17-bartop h1 { font-size: 19px; font-weight: 600; }
.e17-ghead { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-xl); background: var(--card); box-shadow: var(--clay); margin-bottom: 16px; min-width: 0; }
.e17-ghead-pic { width: 96px; height: 96px; flex: none; border-radius: 24px; overflow: hidden; display: grid; place-items: center; background: var(--a-soft); font-weight: 700; font-size: 28px; color: var(--accent-2); box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--a-soft); }
.e17-ghead-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.e17-ghead-in { min-width: 0; }
.e17-ghead h1 { font-size: 22px; line-height: 1.1; overflow-wrap: anywhere; }
.e17-ghead p { font-size: 14px; color: var(--ink-2); margin: 2px 0 8px; }
.e17-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.e17-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--b-soft); color: color-mix(in oklab, var(--b-deep) 70%, #000); }
.e17-chip.is-v { background: var(--a-soft); color: var(--accent-2); }
.e17-chip svg { width: 15px; height: 15px; }
.e17-desk { font-size: 14px; color: var(--ink-2); margin: -4px 4px 16px; }

.e17-box { position: relative; padding: 18px 16px; margin-bottom: 16px; border-radius: var(--r-xl); background: var(--card); box-shadow: var(--clay); min-width: 0; }
.e17-box-h { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.e17-box-n {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 21px;
  color: var(--on-accent); background: var(--accent); box-shadow: inset 0 -4px 0 var(--a-deep), inset 0 2px 0 rgba(255,255,255,.4);
  transition: transform .3s cubic-bezier(.3, 1.7, .5, 1);
}
.e17-box-h h2 { font-size: 20px; line-height: 1.1; }
.e17-box-h p { font-size: 14px; color: var(--ink-2); }
.e17-box.is-done .e17-box-n { background: var(--brand); color: var(--on-brand); box-shadow: inset 0 -4px 0 var(--b-deep); transform: scale(1.06); }
.e17-fields { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 10px; align-items: start; }
.e17-fields > div { min-width: 0; }
.e17-saved { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 4px; scrollbar-width: none; }
.e17-saved-btn { flex: none; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 14px 4px 4px; border: 0; border-radius: 999px; background: #fff; cursor: pointer; text-align: left; box-shadow: 0 4px 0 #ead4b6; }
.e17-saved-btn.is-active { box-shadow: 0 0 0 3px var(--accent), 0 4px 0 var(--a-deep); }
.e17-saved-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700; flex: none; }
.e17-saved-in { display: flex; flex-direction: column; line-height: 1.2; }
.e17-saved-in strong { font-size: 14px; font-weight: 600; }
.e17-saved-in span { font-size: 13px; color: var(--ink-2); }
.e17-nick { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 10px 12px; border-radius: 18px; background: var(--card-2); font-size: 15px; color: var(--ink-2); }
.e17-nick::before { content: "?"; width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #fff; color: var(--ink-2); box-shadow: inset 0 -3px 0 rgba(0,0,0,.08); }
.e17-nick.is-ok { background: var(--b-soft); color: var(--ink); font-weight: 600; }
.e17-nick.is-ok::before { content: "\2713"; background: var(--brand); color: var(--on-brand); box-shadow: inset 0 -3px 0 var(--b-deep); }
.e17-nick.is-bad { background: #ffe6e9; color: #7d1426; }
.e17-nick.is-bad::before { content: "!"; background: #ff8fa3; color: #4a0a16; }

.e17-seg { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--card-2); box-shadow: var(--pit); margin: 6px 0 12px; overflow-x: auto; scrollbar-width: none; }
.e17-seg::-webkit-scrollbar { display: none; }
.e17-seg button { flex: 1 0 auto; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font-weight: 600; font-size: 15px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.e17-seg button.is-active { background: #fff; color: var(--accent-2); box-shadow: 0 4px 0 #ead4b6, inset 0 2px 0 #fff; }
.e17-nsearch { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-radius: 16px; background: var(--card-2); box-shadow: var(--pit); margin-bottom: 14px; }
.e17-nsearch input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; height: 100%; }
.e17-nsearch input::placeholder { color: #7f5f4c; opacity: 1; }
.e17-nsearch svg { width: 20px; height: 20px; color: var(--ink-2); flex: none; }
.e17-grp { font-size: 17px; font-weight: 600; margin: 6px 4px 12px; display: flex; align-items: center; gap: 8px; }
.e17-grp::after { content: ""; flex: 1; height: 4px; border-radius: 4px; background: var(--line); }

.e17-noms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin-bottom: 16px; }
.e17-nom {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0;
  padding: 14px 8px 12px; border-radius: 24px; background: #fff; cursor: pointer; min-height: 168px;
  box-shadow: 0 6px 0 #ecd7ba, 0 12px 18px -10px rgba(122,62,20,.4), inset 0 2px 0 #fff;
  transition: transform .12s, box-shadow .12s; -webkit-tap-highlight-color: transparent;
}
.e17-nom:active { transform: translateY(4px) scale(1.02, .96); box-shadow: 0 2px 0 #ecd7ba; }
.e17-nom > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.e17-nom:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.e17-gems { position: relative; width: 76px; height: 58px; margin-bottom: 6px; flex: none; }
.e17-gems::before { content: ""; position: absolute; left: 4px; right: 4px; bottom: -4px; height: 12px; border-radius: 50%; background: color-mix(in oklab, var(--c-sky) 22%, #f3e3cc); }
.e17-gems .e17-gem { position: absolute; width: 30px; height: 27px; filter: drop-shadow(0 3px 1px rgba(0,30,80,.25)); }
.e17-gems.t1 .e17-gem { width: 36px; height: 32px; left: 20px; top: 18px; }
.e17-gems.t2 .e17-gem:nth-of-type(1) { left: 8px; top: 24px; }
.e17-gems.t2 .e17-gem:nth-of-type(2) { left: 36px; top: 16px; width: 34px; height: 31px; }
.e17-gems.t3 .e17-gem { width: 28px; height: 25px; }
.e17-gems.t3 .e17-gem:nth-of-type(1) { left: 6px; top: 12px; }
.e17-gems.t3 .e17-gem:nth-of-type(2) { left: 42px; top: 12px; }
.e17-gems.t3 .e17-gem:nth-of-type(3) { left: 20px; top: 24px; width: 36px; height: 32px; z-index: 2; }
.e17-gems.t4 .e17-gem { width: 26px; height: 23px; }
.e17-gems.t4 .e17-gem:nth-of-type(1) { left: 0; top: 10px; }
.e17-gems.t4 .e17-gem:nth-of-type(2) { left: 25px; top: 4px; }
.e17-gems.t4 .e17-gem:nth-of-type(3) { left: 50px; top: 10px; }
.e17-gems.t4 .e17-gem:nth-of-type(4) { left: 10px; top: 30px; width: 28px; height: 25px; z-index: 2; }
.e17-gems.t4 .e17-gem:nth-of-type(5) { left: 38px; top: 30px; width: 28px; height: 25px; z-index: 2; }
.e17-gems.t5 { width: 90px; }
.e17-gems.t5 .e17-peti-kecil { position: absolute; left: 5px; top: 20px; width: 80px; height: 44px; z-index: 3; }
.e17-gems.t5 .e17-gem { width: 26px; height: 23px; }
.e17-gems.t5 .e17-gem:nth-of-type(2) { left: 14px; top: 8px; }
.e17-gems.t5 .e17-gem:nth-of-type(3) { left: 31px; top: -2px; width: 30px; height: 27px; }
.e17-gems.t5 .e17-gem:nth-of-type(4) { left: 52px; top: 8px; }
/* Aset 3D nominal (partials/ikon-nominal) menggantikan tumpukan permata. */
.e17-gems.is-aset { width: 64px; height: 58px; display: grid; place-items: center; }
.e17-gems .ff-nom-gbr { position: relative; z-index: 2; width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 5px 3px rgba(60,30,0,.25)); }
.e17-nom-in { display: flex; flex-direction: column; align-items: center; width: 100%; flex: 1; min-width: 0; }
.e17-nom-name { font-size: 16px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.e17-nom-in .ff-coret { margin-top: auto; padding-top: 6px; font-size: 14px; color: #7f5f4c; opacity: 1; }
.e17-nom-price { font-size: 19px; font-weight: 700; color: var(--accent-2); line-height: 1.15; }
.e17-nom-in .ff-coret + .e17-nom-price { padding-top: 0; }
.e17-nom-in > .e17-nom-price:nth-child(2) { margin-top: auto; padding-top: 8px; }
.e17-nom-lab {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%); z-index: 3; padding: 2px 11px 4px; border-radius: 999px;
  font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--brand); color: var(--on-brand); box-shadow: inset 0 -3px 0 var(--b-deep);
}
.e17-nom-lab .ff-hemat { all: unset; }
.e17-nom-ok {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-weight: 700; transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.7, .5, 1);
}
.e17-nom.is-active, .e17-nom:has(input:checked) { background: var(--a-mist); box-shadow: 0 0 0 3px var(--accent), 0 6px 0 var(--a-deep), 0 14px 22px -10px var(--a-deep); transform: translateY(-2px); }
.e17-nom.is-active .e17-nom-ok, .e17-nom:has(input:checked) .e17-nom-ok { transform: scale(1); }
.e17-nom.is-active .e17-gems { animation: e17-hop .5s cubic-bezier(.3, 1.6, .5, 1); }
.e17-nom.is-active .e17-gems .e17-gem:last-of-type, .e17-nom.is-active .ff-nom-gbr { animation: e17-spiny 3.6s ease-in-out infinite; }
@keyframes e17-hop { 0% { transform: none; } 30% { transform: translateY(4px) scale(1.15, .85); } 60% { transform: translateY(-10px) scale(.92, 1.1); } 100% { transform: none; } }
@keyframes e17-spiny { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }
.e17-nom .ff-sekali-badge { margin-top: 4px; }

/* ringkasan + tombol */
.e17-sum { margin-top: 6px; }
.e17-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 3px dotted var(--line); font-size: 15px; }
.e17-sum-row > span:first-child { color: var(--ink-2); flex: none; }
.e17-sum-row > span:last-child { text-align: right; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.e17-sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 2px 4px; }
.e17-sum-total span { color: var(--ink-2); font-weight: 600; }
.e17-sum-total b { font-size: 24px; font-weight: 700; color: var(--accent-2); }
.e17-box .ffkp { font-size: 15px; margin: 14px 0 8px; }
.e17-box .ffkp summary { min-height: 44px; display: flex; align-items: center; color: var(--accent-2); opacity: 1; }
.e17-box .ffkp input { border: 0; border-radius: 16px; background: var(--card-2); box-shadow: var(--pit); min-height: 48px; }
.e17-box .ffkp button { border: 0; border-radius: 999px; background: #fff; box-shadow: 0 4px 0 #e9d3b6; min-height: 48px; }

.e17-fold { border-radius: var(--r-l); background: #fff; box-shadow: var(--clay-sm); margin-bottom: 12px; overflow: hidden; }
.e17-fold summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 0 16px 0 18px; font-weight: 600; font-size: 17px; cursor: pointer; }
.e17-fold summary::-webkit-details-marker { display: none; }
.e17-fold summary::after { content: "+"; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--a-soft); color: var(--accent-2); display: grid; place-items: center; font-size: 22px; transition: transform .2s; }
.e17-fold[open] summary::after { transform: rotate(45deg); }
.e17-fold-in { padding: 0 18px 16px; font-size: 15px; color: var(--ink-2); }
.e17-fold-in ol { margin: 0; padding-left: 20px; }
.e17-fold-in li { margin: 4px 0; }

/* bilah bayar: pita hadiah, SELALU terlihat (ganti keadaan) */
.e17-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 0 10px max(10px, env(safe-area-inset-bottom, 0px));
}
.e17-bar-in {
  max-width: 620px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 30px; background: #fff;
  box-shadow: 0 18px 34px -10px rgba(122,62,20,.55), inset 0 -5px 0 rgba(122,62,20,.07), 0 0 0 1px rgba(122,62,20,.07);
}
.e17-bar .e17-gem { width: 42px; height: 38px; flex: none; }
.e17-bar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.e17-bar-info > span { display: block; max-width: 100%; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e17-bar-info strong {
  display: inline-block; margin-top: 3px; font-size: 20px; font-weight: 700; padding: 1px 14px 2px; border-radius: 10px; background: var(--c-lemon); color: #3d2314;
  clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%);
}
.e17-bar-info .ff-total-qris { color: var(--ink-2); opacity: 1 !important; font-size: 13px !important; margin-top: 2px; }
.e17-bar .e17-btn { min-height: 56px; padding: 0 24px; font-size: 19px; font-weight: 700; margin: 0 0 6px; flex: none; }
.e17-bar.is-kosong .e17-bar-info strong { background: var(--card-2); color: var(--ink-2); }
.e17-bar.is-pop .e17-bar-in { animation: e17-pop .45s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes e17-pop { 0% { transform: translateY(14px) scale(.98); } 60% { transform: translateY(-4px); } 100% { transform: none; } }

/* ================================================================ PESANAN */
.e17-nota { max-width: 620px; }
.e17-ordhead { text-align: center; padding: 4px 0 16px; }
.e17-ordhead small { font-size: 14px; color: var(--ink-2); display: block; }
.e17-ordcode { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 6px 6px 16px; border-radius: 999px; background: #fff; box-shadow: var(--clay-sm); font-weight: 700; font-size: 18px; letter-spacing: .04em; max-width: 100%; }
.e17-ordcode .e17-btn { margin: 0; }
.e17-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; margin: 6px 0 18px; }
.e17-track::before { content: ""; position: absolute; left: 16%; right: 16%; top: 22px; height: 10px; border-radius: 10px; background: #f0dcc2; box-shadow: inset 0 2px 3px rgba(122,62,20,.2); }
.e17-track-fill { position: absolute; left: 16%; top: 22px; height: 10px; border-radius: 10px; background: repeating-linear-gradient(-45deg, var(--accent) 0 8px, color-mix(in oklab, var(--accent) 70%, #fff) 8px 16px); }
.e17-tk { position: relative; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.e17-tk i { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 6px; border-radius: 50%; background: #fff; box-shadow: var(--clay-sm); font-style: normal; font-size: 22px; }
.e17-tk.is-on { color: var(--ink); }
.e17-tk.is-on i { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 -5px 0 var(--a-deep), 0 8px 14px -6px var(--a-deep); }
.e17-tk.is-ok i { background: var(--brand); color: var(--on-brand); box-shadow: inset 0 -5px 0 var(--b-deep); }
.e17-tk.is-bad i { background: #ff8fa3; color: #4a0a16; box-shadow: inset 0 -5px 0 #c94a62; }
.e17-stat { text-align: center; }
.e17-stat h2 { font-size: 22px; line-height: 1.15; margin-top: 8px; }
.e17-stat .e17-hint { margin-top: 4px; }
.e17-total-big { font-size: 34px; font-weight: 700; color: var(--accent-2); line-height: 1.05; margin-top: 4px; }
.e17-timer { display: inline-flex; gap: 6px; align-items: center; margin: 12px 0 14px; padding: 6px 14px; border-radius: 999px; background: #ffe6ec; color: #8f1730; font-weight: 600; font-size: 15px; }
.e17-timer b { font-variant-numeric: tabular-nums; }
.e17-stat-gem { width: 110px; height: 100px; perspective: 500px; margin: 4px auto 0; display: block; }
.e17-stat-gem .e17-gem { width: 100%; height: 100%; }
.e17-sad { width: 84px; height: 84px; margin: 4px auto 0; display: grid; place-items: center; border-radius: 50%; background: #ffe1e6; color: #8f1730; box-shadow: var(--clay-sm); }
.e17-sad svg { width: 40px; height: 40px; }
.e17-dots3 { padding-top: 6px; }
.e17-dots3 i { display: inline-block; width: 16px; height: 16px; margin: 0 4px; border-radius: 50%; background: var(--accent); animation: e17-bob 1s ease-in-out infinite; }
.e17-dots3 i:nth-child(2) { animation-delay: .15s; background: var(--c-straw); }
.e17-dots3 i:nth-child(3) { animation-delay: .3s; background: var(--c-sky); }
@keyframes e17-bob { 50% { transform: translateY(-10px) scale(1.1, .9); } }
.e17-serial { margin-top: 14px; padding: 12px; border-radius: 18px; background: var(--card-2); box-shadow: var(--pit); text-align: left; }
.e17-serial code { display: block; margin-top: 4px; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.e17-rinci h2 { font-size: 19px; margin-bottom: 4px; }
.e17-btns { display: grid; gap: 12px; margin-top: 4px; }

/* ================================================================ AKUN */
.e17-profil { display: flex; align-items: center; gap: 14px; }
.e17-avatar { width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 700; color: var(--on-accent); background: var(--accent); box-shadow: inset 0 -5px 0 var(--a-deep), inset 0 3px 0 rgba(255,255,255,.35); }
.e17-profil strong { display: block; font-size: 20px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.e17-profil span { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.e17-bantal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.e17-bantal a { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px; border-radius: 24px; background: #fff; box-shadow: var(--clay-sm); text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); }
.e17-bantal a > span { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--a-soft); color: var(--accent-2); }
.e17-bantal a:nth-child(2) > span { background: color-mix(in oklab, var(--c-straw) 22%, #fff); color: #8f1730; }
.e17-bantal a:nth-child(3) > span { background: var(--b-soft); color: color-mix(in oklab, var(--b-deep) 70%, #000); }
.e17-bantal a:nth-child(4) > span { background: color-mix(in oklab, var(--c-lemon) 35%, #fff); color: #6b4300; }
.e17-amt { font-size: 32px; font-weight: 700; color: var(--accent-2); line-height: 1.1; margin-top: 2px; }
.e17-kecil { font-size: 14px; color: var(--ink-2); }

/* kartu bersama (masuk-akun, akun-sandi, tarik-saldo) memakai e17-panel/label/input/btn lewat KelasForm. */

/* ================================================================ RESPONSIF */
/* Beranda HP: 4 judul per kategori (sisanya lewat "Semua N" / katalog). */
@media (max-width: 639px) {
  .e17-home .e17-blok .e17-games > .e17-game:nth-child(n+5) { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .e17-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .e17-home .e17-blok .e17-games > .e17-game:nth-child(n+7) { display: none; }
  .e17-noms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  body { font-size: 17px; }
  :root { --ff-gutter: 32px; }
  .e17-top-in { padding-top: 22px; padding-bottom: 14px; }
  .e17-brand-tx { max-width: 230px; }
  .e17-nav { display: flex; gap: 2px; margin-left: 10px; flex-wrap: nowrap; min-width: 0; overflow: hidden; }
  .e17-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; white-space: nowrap; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; }
  .e17-nav a svg { opacity: .7; }
  .e17-nav a:hover, .e17-nav a[aria-current="page"] { background: #fff; box-shadow: var(--clay-sm); }
  .e17-nav a[aria-current="page"] { color: var(--accent-2); }
  .e17-hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding: 48px 52px; min-height: 340px; }
  .e17-hero h1 { font-size: 58px; max-width: 11ch; }
  .e17-hero .e17-say { font-size: 20px; max-width: 30ch; }
  .e17-search { max-width: 520px; height: 64px; }
  .e17-mascot { position: relative; right: auto; top: auto; width: 300px; height: 300px; justify-self: center; }
  .e17-hero-gem { right: 12%; top: 34%; width: 96px; height: 86px; }
  .e17-home-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .e17-home-side { position: sticky; top: 16px; }
  .e17-games { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .e17-katalog .e17-games { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .e17-cats { margin: 0; padding: 4px 0 14px; flex-wrap: wrap; }
  .e17-foot-grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
  .e17-foot-brand { grid-column: auto; }
  .e17-tab-in { max-width: 520px; }
  .e17-tab { padding-bottom: 18px; }
  .e17-buy-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 28px; align-items: start; }
  .e17-buy-side { position: sticky; top: 16px; }
  .e17-noms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .e17-bar { display: none; }
  body.e17-ada-bar .e17-tab { display: block; }
  .e17-proof { left: 24px; top: auto; bottom: 24px; transform: translateY(160%); }
  .e17-proof.is-in { transform: none; }
  .e17-akun-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px; align-items: start; }
}

/* ================================================================ GERAK MATI */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .e17-btn:active, .e17-btn.is-press, .e17-nom:active, .e17-game:active { transform: none !important; }
}
/* HP lemah: .lite di <html> (deviceMemory <= 2) */
.lite .e17-spin, .lite .e17-nom.is-active .e17-gem, .lite .e17-nom.is-active .ff-nom-gbr, .lite .e17-tab-in > a[aria-current="page"] svg, .lite .e17-titik { animation: none; }
.lite .e17-game, .lite .e17-box, .lite .e17-panel, .lite .ff-lp-card { box-shadow: 0 6px 0 #ecd7ba !important; }
.e17-profil .e17-avatar { font-size: 28px; color: var(--on-accent); }

/* ═══ Review A (10 Nov) ═══ */
#e17BarTotal[hidden] { display: none !important; }
.e17-nom-group.is-lipat:not(.is-cari) .e17-lebih { display: none; }
.e17-lagi { margin-top: 18px; }
.e17-nom-sub { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.e17-fields > div > .e17-label, .e17-fields > div > .ff-tmp-row { min-height: 36px; margin-bottom: 6px; }
.e17-fields > div > .e17-label { display: flex; align-items: center; }
.e17-fields .ff-tmp-row > .e17-label { margin: 0 0 0 6px; }
.e17-fields .ff-tmp-row { flex-wrap: nowrap; }
.e17-fields { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.e17-nom-lab .ff-hemat { background: none !important; padding: 0 !important; }
.e17-fields > div > .e17-label, .e17-fields > div > .ff-tmp-row { min-height: 44px; }
.e17-fields > div > .e17-label { margin-top: 0; }
/* Keputusan koordinator (10 Nov): ≥1024px tab bawah disembunyikan, menu atas cukup. */
@media (min-width: 1024px) {
  .e17-tab, body.e17-ada-bar .e17-tab { display: none !important; }
  :root { --tab-h: 32px; }
}
