/* Warna dari render Wann: latar pasir, badan hijau, mata cokelat tua.
   Gaya: pixel-art / menu game. Wann sendiri tetap foto render 3D. */

/* Angka di teks pixel memakai Jersey 10. Di Pixelify Sans, angka 2/3/5 mirip Z/9/S.
   unicode-range membatasi font ini ke angka dan % saja; huruf tetap Pixelify Sans. */
@font-face {
  font-family: "Wann Digits";
  src: url("https://fonts.gstatic.com/s/jersey10/v4/GftH7vZKsggXMf9n_J5n_5jh.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0030-0039, U+0025;
  size-adjust: 112%;
}

:root {
  --sand-light: #f8dcb4;
  --sand-dark: #d2aa82;
  --paper: #fff7ec;
  --ink: #231b13;
  --ink-soft: #5b4a3a;
  --wann: #6cbb47;
  --wann-light: #a5df78;
  --wann-shade: #4f9a30;
  --wann-edge: #2e6a1e;
  --handle-green: #145a2e;
  --px: 4px; /* ukuran satu "pixel" untuk bingkai */
  --pixel-font: "Wann Digits", "Pixelify Sans", "Montserrat", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(120% 70% at 10% 0%, var(--sand-light) 0%, transparent 60%),
    linear-gradient(160deg, #f1cfa3 0%, var(--sand-dark) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Grid pixel samar di latar */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(35, 27, 19, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 27, 19, .035) 1px, transparent 1px);
  background-size: 8px 8px;
  z-index: 0;
}

/* ---------- Debu cahaya pixel (meniru partikel di render Wann) ---------- */
.sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.sparkle {
  position: absolute;
  width: var(--s, 4px);
  height: var(--s, 4px);
  background: #fffbe8;
  box-shadow: 0 0 6px rgba(255, 245, 200, .8);
  opacity: 0;
  animation:
    drift var(--d, 14s) steps(56) infinite,
    twinkle 1.6s steps(3) infinite;
  animation-delay: var(--delay, 0s), var(--delay, 0s);
}
@keyframes drift {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: .9; }
  85%  { opacity: .9; }
  100% { transform: translateY(-220px); opacity: 0; }
}
@keyframes twinkle {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(.55); }
}

main {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin: 0 auto;
  padding: 36px 22px 36px;
}

/* ---------- Bingkai pixel (sudut bertangga) ---------- */
.px-frame {
  background: var(--paper);
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--ink),
    0 var(--px) 0 0 var(--ink),
    calc(var(--px) * -1) 0 0 0 var(--ink),
    var(--px) 0 0 0 var(--ink),
    0 calc(var(--px) * 3) 0 0 rgba(35, 27, 19, .22),
    inset 0 calc(var(--px) * -1) 0 0 rgba(35, 27, 19, .08);
}

/* ---------- Perkenalan ---------- */
.intro { text-align: center; }

.avatar-frame {
  display: inline-block;
  padding: 6px;
  margin-bottom: 18px;
  animation: pop-in .5s steps(5) both;
}
.avatar {
  display: block;
  width: 112px;
  height: 112px;
}
@keyframes pop-in {
  0%   { transform: scale(.4); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

.name {
  margin: 0;
  font-family: var(--pixel-font);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  text-shadow: var(--px) var(--px) 0 rgba(35, 27, 19, .18);
}

.handle {
  margin: 8px 0 0;
  font-size: 17px;
  font-weight: 800;
  color: #555;
}
.handle span { color: var(--handle-green); }

/* ---------- Label layanan, judul, lencana ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.chip {
  padding: 4px 10px;
  background: var(--ink);
  color: var(--wann-light);
  font-family: var(--pixel-font);
  font-size: 14px;
  font-weight: 600;
  box-shadow:
    0 -3px 0 0 var(--ink), 0 3px 0 0 var(--ink),
    -3px 0 0 0 var(--ink), 3px 0 0 0 var(--ink);
}

.headline {
  max-width: 18ch;
  margin: 22px auto 0;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 12px;
  border: 2px dashed var(--wann-edge);
  color: var(--handle-green);
  font-size: 14px;
  font-weight: 700;
}
.badge svg { width: 16px; height: 16px; shape-rendering: crispEdges; }

/* ---------- Kotak dialog ala game ---------- */
.dialog {
  position: relative;
  margin: 26px 0 0;
  padding: 16px 18px 26px;
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.dialog:focus-visible { outline: 3px solid var(--handle-green); outline-offset: 8px; }
.dialog-text {
  margin: 0;
  min-height: 3.2em;
  font-size: 16px;
  line-height: 1.6;
}
.dialog-next {
  position: absolute;
  right: 14px;
  bottom: 6px;
  font-family: var(--pixel-font);
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}
.dialog-next .arrow { animation: bob .8s steps(2) infinite; display: inline-block; }
.dialog-dots {
  position: absolute;
  left: 18px;
  bottom: 10px;
  display: flex;
  gap: 4px;
}
.dialog-dots i {
  width: 6px;
  height: 6px;
  background: rgba(35, 27, 19, .2);
}
.dialog-dots i.on { background: var(--wann-edge); }
@keyframes bob {
  0% { transform: translateY(0); }
  100% { transform: translateY(3px); }
}

/* ---------- Tombol balok pixel ---------- */
.block-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 14px 20px;
  border: 0;
  background: var(--wann);
  box-shadow:
    inset 0 var(--px) 0 0 var(--wann-light),
    inset 0 calc(var(--px) * -1.5) 0 0 var(--wann-shade),
    0 calc(var(--px) * -1) 0 0 var(--wann-edge),
    0 var(--px) 0 0 var(--wann-edge),
    calc(var(--px) * -1) 0 0 0 var(--wann-edge),
    var(--px) 0 0 0 var(--wann-edge),
    0 calc(var(--px) * 2.5) 0 0 var(--wann-edge);
  color: #0f2a07;
  font-family: var(--pixel-font);
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .06s steps(2);
}
.block-btn:hover { background: #77c652; }
.block-btn:active, .block-btn.pressed {
  transform: translateY(6px);
  box-shadow:
    inset 0 var(--px) 0 0 var(--wann-shade),
    0 calc(var(--px) * -1) 0 0 var(--wann-edge),
    0 var(--px) 0 0 var(--wann-edge),
    calc(var(--px) * -1) 0 0 0 var(--wann-edge),
    var(--px) 0 0 0 var(--wann-edge);
}
.block-btn svg { width: 26px; height: 26px; flex: none; }

.cta { margin-top: 26px; }
.cta-note {
  margin: 18px 0 0;
  font-size: 14px;
  text-align: center;
  color: var(--ink-soft);
}

/* Ledakan pixel saat tombol ditekan */
.burst {
  position: fixed;
  width: 8px;
  height: 8px;
  pointer-events: none;
  z-index: 10;
  animation: burst .55s steps(7) forwards;
}
@keyframes burst {
  0%   { transform: translate(0, 0); opacity: 1; }
  100% { transform: translate(var(--bx), var(--by)); opacity: 0; }
}

/* ---------- Bagian ---------- */
section { margin-top: 44px; }

h2 {
  margin: 0 0 16px;
  font-family: var(--pixel-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0 var(--px);
  list-style: none;
}

/* Item menu: kursor ▶ muncul saat dipilih, seperti menu game */
.item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 16px 34px;
  color: inherit;
  text-decoration: none;
  transition: transform .08s steps(2);
}
.item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 12px;
  height: 14px;
  margin-top: -7px;
  background: var(--wann-edge);
  clip-path: polygon(0 0, 33% 0, 33% 14%, 66% 14%, 66% 29%, 100% 29%, 100% 71%, 66% 71%, 66% 86%, 33% 86%, 33% 100%, 0 100%);
  opacity: .18;
}
.item:hover, .item:focus-visible, .item.selected {
  transform: translate(-2px, -2px);
}
.item:hover::before, .item:focus-visible::before, .item.selected::before {
  opacity: 1;
  animation: cursor-blink .7s steps(2) infinite;
}
.item:focus-visible { outline: 3px solid var(--handle-green); outline-offset: 8px; }
@keyframes cursor-blink {
  0% { transform: translateX(0); }
  100% { transform: translateX(3px); }
}

.item-text { flex: 1; min-width: 0; }
.item-title { display: block; font-weight: 700; line-height: 1.3; }
.item-sub { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-soft); }

.item-action {
  flex: none;
  padding: 7px 11px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--pixel-font);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 3px 0 0 rgba(35, 27, 19, .35);
}
.item-action.soon {
  background: transparent;
  color: var(--ink-soft);
  box-shadow: none;
  outline: 2px dashed rgba(35, 27, 19, .35);
  outline-offset: -2px;
}

/* ---------- Cara pesan: jalur langkah ---------- */
.steps-title {
  margin: 30px 0 14px;
  font-family: var(--pixel-font);
  font-size: 18px;
  font-weight: 600;
}
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
  margin: 0;
  padding: 0 3px;
  list-style: none;
  counter-reset: step;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  counter-increment: step;
  --px: 3px;
}
.step::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--wann);
  box-shadow: inset 0 3px 0 var(--wann-light), inset 0 -3px 0 var(--wann-shade);
  color: #0f2a07;
  font-family: var(--pixel-font);
  font-size: 16px;
  font-weight: 700;
}
.step-link {
  color: var(--handle-green);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.steps-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Kamu yang mana? (menu pilihan ala game) ---------- */
.section-lead {
  margin: -6px 0 16px;
  font-size: 14px;
  color: var(--ink-soft);
}
.choices {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 var(--px);
  list-style: none;
}
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px 12px 32px;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  --px: 3px;
}
.choice svg { flex: none; width: 24px; height: 24px; shape-rendering: crispEdges; }
.choice::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 10px;
  height: 12px;
  margin-top: -6px;
  background: var(--wann-edge);
  clip-path: polygon(0 0, 33% 0, 33% 14%, 66% 14%, 66% 29%, 100% 29%, 100% 71%, 66% 71%, 66% 86%, 33% 86%, 33% 100%, 0 100%);
  opacity: 0;
}
.choice:hover::before { opacity: .35; }
.choice[aria-pressed="true"] { background: #e6f6d6; }
.choice[aria-pressed="true"]::before {
  opacity: 1;
  animation: cursor-blink .7s steps(2) infinite;
}
.choice:focus-visible { outline: 3px solid var(--handle-green); outline-offset: 6px; }

.answer {
  position: relative;
  margin: 30px var(--px) 0;
  padding: 22px 16px 16px;
}
.answer-tag {
  position: absolute;
  top: -14px;
  left: 12px;
  padding: 2px 10px;
  background: var(--wann);
  color: #0f2a07;
  font-family: var(--pixel-font);
  font-size: 14px;
  font-weight: 700;
  box-shadow:
    0 -3px 0 0 var(--wann-edge), 0 3px 0 0 var(--wann-edge),
    -3px 0 0 0 var(--wann-edge), 3px 0 0 0 var(--wann-edge);
}
.answer-text { margin: 0; line-height: 1.6; }
.answer-text.flash { animation: answer-in .3s steps(3); }
@keyframes answer-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.answer-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--handle-green);
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 3px;
}

/* ---------- Cerita + level video ---------- */
.story > p { margin: 0; color: var(--ink-soft); }

/* Penghitung video: ukurannya tetap, berapa pun jumlah videonya */
.counter-box { margin-top: 22px; padding: 16px; }
.counter-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.counter-num {
  flex: none;
  min-width: 74px;
  padding: 6px 10px;
  background: var(--wann);
  box-shadow: inset 0 4px 0 var(--wann-light), inset 0 -4px 0 var(--wann-shade);
  color: #0f2a07;
  font-family: var(--pixel-font);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
.counter-label { margin: 0; font-family: var(--pixel-font); font-size: 18px; font-weight: 600; line-height: 1.2; }
.counter-next { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); }
.milestone {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  margin-top: 14px;
  padding: 4px;
  background: var(--ink);
}
.milestone i { height: 12px; background: #4a3c2e; }
.milestone i.fill { background: var(--wann); box-shadow: inset 0 3px 0 var(--wann-light); }
.milestone i.now { animation: now-blink 1s steps(2) infinite; }
@keyframes now-blink {
  0% { background: #4a3c2e; }
  100% { background: var(--wann); }
}
.milestone-foot {
  display: flex;
  justify-content: space-between;
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

/* ---------- Sosmed dengan ikon pixel ---------- */
.socials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 var(--px);
}
.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 6px 14px;
  color: var(--ink);
  font-family: var(--pixel-font);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.social svg { width: 36px; height: 36px; shape-rendering: crispEdges; }
.social:hover svg, .social:focus-visible svg { animation: hop .4s steps(4); }
.social-soon { opacity: .55; cursor: default; }
.social-soon:hover svg { animation: none; }
.social-soon small { margin-top: -4px; font-size: 11px; font-weight: 500; }
.social:focus-visible { outline: 3px solid var(--handle-green); outline-offset: 8px; }
@keyframes hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

footer {
  margin-top: 48px;
  font-family: var(--pixel-font);
  font-size: 14px;
  text-align: center;
  color: var(--ink-soft);
}

a:focus-visible { outline: 3px solid var(--handle-green); outline-offset: 6px; }

/* ---------- Paragraf pendukung judul ---------- */
.lead {
  max-width: 34ch;
  margin: 12px auto 0;
  color: var(--ink-soft);
}

/* ---------- Video animasi: pilih durasi ---------- */
.duration-card { padding: 16px; }
.duration-card p { margin: 0; }
.duration-card .item-sub { margin-top: 2px; }
.durations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.dur {
  padding: 9px 4px;
  border: 0;
  background: #efe2cf;
  color: var(--ink);
  font-family: var(--pixel-font);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(35, 27, 19, .15);
  transition: transform .06s steps(2);
}
.dur:hover { background: #e6d5bd; }
.dur[aria-pressed="true"] {
  background: var(--wann);
  color: #0f2a07;
  box-shadow: inset 0 3px 0 var(--wann-light), inset 0 -3px 0 var(--wann-shade);
  transform: translateY(-2px);
}
.dur:focus-visible { outline: 3px solid var(--handle-green); outline-offset: 3px; }
.dur-info {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f6ead8;
  border-left: 4px solid var(--wann);
}
.dur-use { font-size: 15px; line-height: 1.5; }
.deal { margin-top: 12px; padding-top: 10px; border-top: 2px dashed rgba(35, 27, 19, .18); }
.deal-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--ink);
  color: var(--wann-light);
  font-family: var(--pixel-font);
  font-size: 13px;
  font-weight: 600;
}
.deal-tag.over { background: #d9cbb6; color: var(--ink-soft); }
.dur-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 8px !important;
  font-family: var(--pixel-font);
  font-size: 16px;
  font-weight: 600;
  color: var(--handle-green);
}
.dur-price s { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.dur-price strong { font-size: 24px; font-weight: 700; color: var(--ink); }
.dur-price .pct {
  align-self: center;
  padding: 1px 6px;
  background: var(--wann);
  box-shadow: inset 0 2px 0 var(--wann-light), inset 0 -2px 0 var(--wann-shade);
  color: #0f2a07;
  font-size: 14px;
  font-weight: 700;
}
.quota { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.quota-slots { display: flex; gap: 4px; }
.quota-slots i {
  width: 16px;
  height: 16px;
  background: var(--wann);
  box-shadow: inset 0 3px 0 var(--wann-light), inset 0 -3px 0 var(--wann-shade);
}
.quota-slots i.taken { background: #cdbca4; box-shadow: inset 0 -3px 0 rgba(35, 27, 19, .15); }
.quota-text { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.dur-ask {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 11px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--pixel-font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 0 0 rgba(35, 27, 19, .35);
}
.dur-ask:active { transform: translateY(3px); box-shadow: none; }
.dur-more {
  margin-top: 12px !important;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Kartu produk + daftar "yang kamu dapat" ---------- */
.product-card { position: relative; padding: 16px; }
.product-card p { margin: 0; }
.product-card .item-sub { margin-top: 2px; }
.perks-title {
  margin: 16px 0 8px !important;
  font-family: var(--pixel-font);
  font-size: 16px;
  font-weight: 600;
}
.perks {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.perks li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.45;
}
/* Centang pixel */
.perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' shape-rendering='crispEdges' fill='%232e6a1e'%3E%3Crect x='6' y='0' width='1' height='1'/%3E%3Crect x='5' y='1' width='2' height='1'/%3E%3Crect x='0' y='2' width='1' height='1'/%3E%3Crect x='4' y='2' width='2' height='1'/%3E%3Crect x='0' y='3' width='2' height='1'/%3E%3Crect x='3' y='3' width='2' height='1'/%3E%3Crect x='1' y='4' width='3' height='1'/%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3C/svg%3E") no-repeat center / contain;
}
.card-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 11px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--pixel-font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 0 0 rgba(35, 27, 19, .35);
}
.card-btn:active { transform: translateY(3px); box-shadow: none; }
.card-btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  outline: 2px dashed rgba(35, 27, 19, .4);
  outline-offset: -2px;
}
.soon-tag {
  position: absolute;
  top: -12px;
  right: 12px;
  padding: 2px 8px;
  background: #fff3b0;
  color: #4a3d00;
  font-family: var(--pixel-font);
  font-size: 13px;
  font-weight: 600;
  box-shadow:
    0 -2px 0 0 var(--ink), 0 2px 0 0 var(--ink),
    -2px 0 0 0 var(--ink), 2px 0 0 0 var(--ink);
}
.badge { max-width: 100%; text-align: left; line-height: 1.35; }

/* ---------- Karya Wann: rak kaset pixel ---------- */
.shelf {
  display: flex;
  gap: 16px;
  margin: 0 -22px;
  padding: 6px 26px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 26px;
  scrollbar-width: none;
  /* Tepi memudar (bukan terpotong) di sisi yang masih ada kartunya. Diatur JS: .fade-l / .fade-r */
  --fl: 0px;
  --fr: 0px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  -webkit-user-select: none;
  user-select: none;
}
.shelf.fade-l { --fl: 34px; }
.shelf.fade-r { --fr: 56px; }
.shelf::-webkit-scrollbar { display: none; }
.shelf img { -webkit-user-drag: none; }
/* Mouse: bisa diklik-tarik untuk menggeser */
@media (hover: hover) and (pointer: fine) {
  .shelf { cursor: grab; }
  .shelf.dragging { cursor: grabbing; scroll-snap-type: none; }
  .shelf.dragging .tape { cursor: grabbing; }
}
.tape {
  flex: none;
  width: 138px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
}
.tape-screen {
  position: relative;
  display: block;
  padding: 5px;
  --px: 3px;
  transition: transform .08s steps(2);
}
.tape-screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #e9d7bd;
}
.tape-play {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--wann);
  box-shadow:
    inset 0 3px 0 var(--wann-light), inset 0 -3px 0 var(--wann-shade),
    0 -3px 0 0 var(--wann-edge), 0 3px 0 0 var(--wann-edge),
    -3px 0 0 0 var(--wann-edge), 3px 0 0 0 var(--wann-edge);
}
.tape-play::after {
  content: "";
  width: 10px;
  height: 12px;
  margin-left: 2px;
  background: #0f2a07;
  clip-path: polygon(0 0, 33% 0, 33% 14%, 66% 14%, 66% 29%, 100% 29%, 100% 71%, 66% 71%, 66% 86%, 33% 86%, 33% 100%, 0 100%);
}
.tape-dur {
  position: absolute;
  right: 10px;
  bottom: 12px;
  padding: 1px 5px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--pixel-font);
  font-size: 12px;
}
.tape:hover .tape-screen, .tape:focus-visible .tape-screen { transform: translate(-2px, -3px); }
.tape:focus-visible { outline: none; }
.tape:focus-visible .tape-screen { outline: 3px solid var(--handle-green); outline-offset: 6px; }
.tape-title {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.shelf-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 34px;
}
.shelf-hint {
  margin: 0;
  font-family: var(--pixel-font);
  font-size: 13px;
  color: var(--ink-soft);
  text-align: right;
  -webkit-user-select: none;
  user-select: none;
}
.shelf-btn {
  display: none;
  width: 34px;
  height: 30px;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--pixel-font);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  --px: 3px;
}
.shelf-btn:hover:not(:disabled) { background: var(--wann-light); }
.shelf-btn:active:not(:disabled) { transform: translateY(2px); }
.shelf-btn:disabled { opacity: .35; cursor: default; }
.shelf-btn:focus-visible { outline: 3px solid var(--handle-green); outline-offset: 4px; }
/* Mouse/laptop: tampilkan tombol ◂ ▸, teks "Geser" untuk layar sentuh saja */
@media (hover: hover) and (pointer: fine) {
  .shelf-btn { display: inline-grid; place-items: center; }
  .shelf-hint .touch-only { display: none; }
}
@media not all and (hover: hover) and (pointer: fine) {
  .shelf-hint .mouse-only { display: none; }
}

/* Pemutar video bergaya layar game */
.player {
  width: min(400px, 92vw);
  max-height: 96vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.player::backdrop { background: rgba(35, 27, 19, .78); }
.player-screen { padding: 10px; }
.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.player-title { font-family: var(--pixel-font); font-size: 16px; font-weight: 700; }
.player-close, .player-prev, .player-next {
  flex: none;
  padding: 5px 9px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--pixel-font);
  font-size: 14px;
  cursor: pointer;
}
.player-video {
  display: block;
  width: 100%;
  max-height: calc(96vh - 120px);
  aspect-ratio: 9 / 16;
  background: #000;
}
.player-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
.player button:focus-visible { outline: 3px solid var(--wann); outline-offset: 2px; }

/* ---------- Wann pixel di latar ---------- */
.pixel-wanns {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.pw {
  position: absolute;
  width: var(--w, 80px);
  animation: pw-bob 1.6s steps(2) infinite;
  animation-delay: var(--delay, 0s);
}
.pw svg { display: block; width: 100%; height: auto; shape-rendering: crispEdges; }
.pw.flip svg { transform: scaleX(-1); }
.pw .lids { visibility: hidden; animation: pw-blink var(--blink, 4.2s) steps(1) infinite; }
.pw.jump { animation: pw-jump .45s steps(4); }
@keyframes pw-bob {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}
@keyframes pw-blink {
  0%, 93% { visibility: hidden; }
  94%, 100% { visibility: visible; }
}
@keyframes pw-jump {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px); }
}
/* Di HP: dua Wann kecil mengintip dari tepi layar */
.pw.side { display: none; }
.pw.peek { opacity: .55; }
/* Di layar lebar: Wann mengisi ruang kosong kiri-kanan, bisa diklik */
@media (min-width: 900px) {
  .pw.peek { display: none; }
  .pw.side { display: block; pointer-events: auto; cursor: pointer; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  .sparkle { opacity: .6; }
}

/* Harga maskot: blok diskon yang sama dengan video, tanpa garis putus di atas */
.deal-maskot { margin-top: 12px; padding: 10px 12px; border-top: 0; background: #f6ead8; border-left: 4px solid var(--wann); }
