/* =====================================================================
   BIJAKU oleh Mawar Ikhlas — sistem reka bentuk 2.5D
   (logo huruf timbul, skrin utama rak premium, peta Dunia isometrik)
   ===================================================================== */
:root {
  --bj-night1: #1c1747; --bj-night2: #33267f; --bj-night3: #4b33b0;
  --bj-ink: #241d52; --bj-gold: #ffd43b;
}

/* ---------- logo ---------- */
.bj-logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; margin: 0; line-height: 1; }
.bj-word { display: inline-flex; gap: 3px; }
.bj-word i {
  font-style: normal; font-weight: 900; color: #fff; display: grid; place-items: center;
  width: 1.2em; height: 1.34em; border-radius: .34em; font-size: var(--bj-fs, 24px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 72%, #fff), var(--c) 55%);
  text-shadow: 0 .07em 0 rgba(0, 0, 0, .25);
  box-shadow: inset 0 .1em 0 rgba(255, 255, 255, .45), inset 0 -.16em 0 rgba(0, 0, 0, .16), 0 .17em 0 color-mix(in srgb, var(--c) 60%, #1c1747), 0 .3em .5em rgba(0, 0, 0, .18);
  transform: rotate(var(--r)); animation: bjPop .6s var(--d) cubic-bezier(.2, 1.4, .4, 1) both;
}
.bj-by { display: inline-flex; align-items: center; gap: 4px; font-size: calc(var(--bj-fs, 24px) * .44); font-weight: 800; letter-spacing: .3px; opacity: .85; white-space: nowrap; }
.bj-by svg { width: 1.3em; height: 1.3em; flex: none; }
.bj-logo-sm { --bj-fs: 16px; }
.bj-logo-md { --bj-fs: 23px; }
.bj-logo-lg { --bj-fs: clamp(34px, 9vw, 52px); align-items: center; }
.bj-logo-lg .bj-word { gap: 5px; }
.bj-h1 { margin: 6px 0 0; display: flex; justify-content: center; }
.logo .bj-h1 + p { margin-top: 12px; }
@keyframes bjPop { from { transform: translateY(-14px) scale(.6) rotate(var(--r)); opacity: 0; } }

/* ---------- skrin utama ---------- */
html:has(.bj-home) body { background: var(--bj-night2); }
html:has(.bj-world) body { background: #c8f0d4; }
.bj-home, .bj-world { overflow-x: clip; }
.bj-home { color: #fff; gap: 18px; padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important; max-width: 1180px !important; }
.bj-stage {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 85% 0%, rgba(124, 92, 255, .55), transparent 70%),
    radial-gradient(50% 35% at 0% 40%, rgba(255, 95, 162, .22), transparent 70%),
    radial-gradient(60% 40% at 100% 90%, rgba(61, 139, 255, .28), transparent 70%),
    linear-gradient(180deg, var(--bj-night1), var(--bj-night2) 60%, var(--bj-night3));
}
.bj-stage::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(circle, #fff 0 1px, transparent 1.6px), radial-gradient(circle, #ffe9a8 0 1.2px, transparent 2px);
  background-size: 90px 90px, 140px 140px; background-position: 10px 20px, 60px 80px;
}
.bj-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bj-top > .bj-logo { flex: none; }
.bj-top .bj-logo { color: #fff; }
.bj-top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bj-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px 6px 8px; border-radius: 99px;
  background: rgba(255, 255, 255, .14); border: 2px solid rgba(255, 255, 255, .18); color: #fff; font-weight: 900; font-size: 17px;
  backdrop-filter: blur(6px);
}
.bj-pill .ic { width: 22px; height: 22px; }
.bj-me.player-card {
  display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px !important; border-radius: 99px !important; cursor: pointer; flex: none; min-width: 0;
  background: #fff !important; color: var(--bj-ink); border: none !important; box-shadow: 0 5px 0 rgba(0, 0, 0, .25) !important;
}
.bj-me .avatar { width: 44px !important; height: 44px !important; font-size: 28px !important; box-shadow: none !important; }
.bj-me .avatar .hat, .bj-me .avatar .acc { display: none; }
.bj-me-txt { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; text-align: left; }
.bj-me-txt b { font-size: 15px; line-height: 1.05; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bj-me-txt small { font-size: 11px; font-weight: 800; opacity: .7; }
.bj-me .lvl-bar { width: 70px; height: 6px; margin: 2px 0 1px; }
.bj-demo { display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap; text-align: center; padding: 10px; border-radius: 20px; background: rgba(255, 255, 255, .12); }

/* banner */
.bj-hero { position: relative; }
.bj-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; border-radius: 32px; padding-bottom: 14px; margin-bottom: -14px; }
.bj-track::-webkit-scrollbar { display: none; }
.bj-slide {
  flex: 0 0 100%; scroll-snap-align: center; position: relative; overflow: hidden; border: none; cursor: pointer; text-align: left; color: #fff;
  min-height: clamp(190px, 46vw, 260px); border-radius: 32px; padding: 0;
  background: linear-gradient(135deg, var(--a), var(--b));
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, .35), inset 0 -10px 0 rgba(0, 0, 0, .1), 0 10px 0 var(--d);
  transition: transform .12s, box-shadow .12s;
}
.bj-slide:active { transform: translateY(6px); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .35), 0 4px 0 var(--d); }
.bj-slide::before { content: ""; position: absolute; right: -60px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.bj-slide::after { content: ""; position: absolute; left: -40px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.bj-slide-txt { position: absolute; left: clamp(18px, 5vw, 34px); top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; z-index: 2; max-width: 58%; }
.bj-slide-txt small { align-self: flex-start; font-size: 12px; font-weight: 900; letter-spacing: .8px; background: rgba(255, 255, 255, .25); padding: 2px 10px; border-radius: 99px; }
.bj-slide.rc-entry .bj-slide-txt small { background: var(--bj-gold); color: #6b4200; }
.bj-slide.locked .bj-slide-txt small { background: #8b8aa3; color: #fff; }
.bj-slide-txt b { font-size: clamp(28px, 7.4vw, 46px); line-height: 1; text-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.bj-sub { font-weight: 700; font-size: clamp(14px, 3.6vw, 18px); opacity: .95; line-height: 1.2; }
.bj-go { margin-top: 8px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--d); font-weight: 900; font-size: 18px; padding: 7px 18px 7px 14px; border-radius: 18px; box-shadow: 0 5px 0 rgba(0, 0, 0, .18); }
.bj-go .ic { width: 20px; height: 20px; }
.bj-slide-art { position: absolute !important; right: clamp(-6px, 1vw, 24px); bottom: 50%; transform: translateY(50%) rotate(-6deg); width: clamp(140px, 40vw, 220px) !important; height: clamp(140px, 40vw, 220px) !important; object-fit: contain; z-index: 1; filter: drop-shadow(0 14px 10px rgba(0, 0, 0, .28)); animation: bjFloat 4s ease-in-out infinite; }
.bj-slide.locked { filter: grayscale(.75); }
.bj-slide .lock-ic { position: absolute; right: 16px; top: 16px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #8b8aa3; color: #fff; box-shadow: 0 0 0 3px #fff; }
.bj-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.bj-dots i { width: 8px; height: 8px; border-radius: 9px; background: rgba(255, 255, 255, .35); transition: width .25s, background .25s; }
.bj-dots i.on { width: 24px; background: #fff; }
@keyframes bjFloat { 50% { transform: translateY(calc(50% - 8px)) rotate(-3deg); } }

/* butang pantas */
.bj-quicks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.bj-quick { border: none; background: none; color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; line-height: 1.1; text-align: center; padding: 0; }
.bj-q-ic {
  position: relative; width: clamp(54px, 15vw, 66px); height: clamp(54px, 15vw, 66px); border-radius: 22px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--a), var(--b)); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .4), 0 6px 0 var(--d); transition: transform .1s, box-shadow .1s;
}
.bj-quick:active .bj-q-ic { transform: translateY(5px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .4), 0 1px 0 var(--d); }
.bj-q-ic .ic { width: 58%; height: 58%; color: #fff; }
.bj-q-ic .badge { position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; border-radius: 12px; background: #ff4d6d; color: #fff; font-size: 13px; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bj-night2); }
.bj-q-ic .badge.ok { background: #2ec27e; }
.q-orange { --a: #ffb547; --b: #ff8a1f; --d: #b85d00; }
.q-blue { --a: #6ec3ff; --b: #3d8bff; --d: #2152b8; }
.q-yellow { --a: #ffe066; --b: #ffc531; --d: #c28a00; }
.q-pink { --a: #ff9cc6; --b: #ff5fa8; --d: #b8306f; }
.q-green { --a: #6ee7a8; --b: #22c36f; --d: #12804a; }

/* rak kategori */
.bj-shelf-t { margin: 6px 0 12px; font-size: clamp(20px, 5vw, 24px); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #fff; }
.bj-shelf-t small { font-size: 13px; font-weight: 800; opacity: .65; }
.bj-shelf-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 16px 16px; margin: -4px -16px -6px; scrollbar-width: none; }
.bj-shelf-row::-webkit-scrollbar { display: none; }
.bj-home .bj-tile {
  flex: 0 0 clamp(128px, 36vw, 168px); scroll-snap-align: start; position: relative; overflow: visible !important; cursor: pointer;
  min-height: clamp(150px, 42vw, 190px); border: none !important; border-radius: 28px !important; padding: 0 8px 12px !important; gap: 4px; color: #fff !important;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  background: linear-gradient(165deg, var(--a), var(--b)) !important;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .42), inset 0 -6px 0 rgba(0, 0, 0, .08), 0 9px 0 var(--d), 0 16px 20px rgba(0, 0, 0, .22) !important;
  transform: perspective(600px) rotateX(5deg); animation: bjTileIn .5s cubic-bezier(.2, 1.2, .4, 1) both;
  transition: transform .12s, box-shadow .12s;
}
.bj-home .bj-tile::before { content: "" !important; display: block !important; position: absolute; inset: 0 !important; height: auto !important; border-radius: 28px; background: radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, .28), transparent 60%) !important; -webkit-mask: none !important; mask: none !important; }
.bj-home .bj-tile::after { display: none !important; }
.bj-home .bj-tile:hover { transform: perspective(600px) rotateX(5deg) translateY(-3px); }
.bj-home .bj-tile:active { transform: perspective(600px) rotateX(5deg) translateY(7px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .42), 0 2px 0 var(--d) !important; }
.bj-tile-art { position: absolute; left: 50%; top: -10px; transform: translateX(-50%); width: 76%; aspect-ratio: 1; display: grid; place-items: center; filter: drop-shadow(0 10px 7px rgba(0, 0, 0, .3)); transition: transform .2s; }
.bj-tile:hover .bj-tile-art { transform: translateX(-50%) translateY(-4px) rotate(-4deg) scale(1.04); }
.bj-tile-art .bj-art, .bj-tile-art .mode-art { width: 100% !important; height: 100% !important; object-fit: contain; }
.bj-home .bj-tile .name { position: relative; z-index: 1; font-weight: 900; letter-spacing: .2px; font-size: clamp(15px, 4vw, 18px) !important; line-height: 1.05; min-height: 0 !important; text-align: center; text-shadow: 0 2px 0 rgba(0, 0, 0, .22); color: #fff; }
.bj-home .bj-tile .meta {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; border: none !important; box-shadow: none !important;
  background: rgba(0, 0, 0, .18) !important; color: #fff !important; font-size: 12px !important; padding: 2px 9px !important; border-radius: 99px;
}
.bj-prog { width: 40px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.bj-prog i { display: block; height: 100%; background: var(--bj-gold); border-radius: 6px; }
.bj-home .bj-tile .done-badge { top: 8px !important; right: 8px !important; font-size: 26px; z-index: 2; }
.bj-home .bj-tile .lock-ic { position: absolute; right: 8px; top: 8px; bottom: auto; z-index: 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #8b8aa3; box-shadow: 0 0 0 3px #fff; }
.bj-home .bj-tile.locked { filter: grayscale(.8); opacity: .7; }
.bj-new { position: absolute; left: 10px; top: 10px; z-index: 2; font-size: 11px; font-weight: 900; color: #6b4200; background: var(--bj-gold); padding: 2px 8px; border-radius: 99px; box-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.bj-shelf-row > :nth-child(2) { animation-delay: .05s; } .bj-shelf-row > :nth-child(3) { animation-delay: .1s; } .bj-shelf-row > :nth-child(4) { animation-delay: .15s; } .bj-shelf-row > :nth-child(n+5) { animation-delay: .2s; }
@keyframes bjTileIn { from { opacity: 0; transform: perspective(600px) rotateX(5deg) translateY(24px) scale(.9); } }

.bj-home .doa-card { margin-top: 4px; }
.bj-home .parent-row { justify-content: center; }
.bj-home .time-chip { background: rgba(255, 255, 255, .14); color: #fff; }
.bj-foot { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0 0; color: rgba(255, 255, 255, .72); font-size: 13px; font-weight: 700; }
.bj-foot p { margin: 0; }
.bj-foot .bj-logo { align-items: center; color: #fff; margin-bottom: 6px; }

/* tablet & desktop: rak dibalut, banner lebih tinggi */
@media (min-width: 900px) {
  .bj-shelf-row { flex-wrap: wrap; overflow: visible; margin: 0; padding: 18px 0 10px; gap: 30px 18px; }
  .bj-home .bj-tile { flex: 0 0 168px; }
  .bj-slide-txt { max-width: 52%; }
  .bj-quicks { max-width: 640px; margin: 0 auto; width: 100%; }
}
@media (max-width: 520px) { .bj-pill.hide-xs { display: none; } .bj-me-txt { display: none; } .bj-me.player-card { padding: 4px !important; } }
@media (max-width: 360px) { .bj-quick { font-size: 11px; } .bj-logo-md { --bj-fs: 19px; } }

/* ---------- bar tab bawah ---------- */
.bj-tabs {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30;
  width: min(600px, calc(100% - 24px)); display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px; gap: 4px;
  border-radius: 28px; background: rgba(255, 255, 255, .96); box-shadow: 0 6px 0 rgba(0, 0, 0, .15), 0 16px 34px rgba(20, 12, 60, .35);
}
.bj-tab { border: none; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 4px; border-radius: 20px; font-weight: 900; font-size: 12px; color: #9a93b5; transition: background .15s, color .15s; }
.bj-tab-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 12px; transition: transform .15s; }
.bj-tab-ic .ic { width: 24px; height: 24px; }
.bj-tab.on { color: #5b3dff; background: #efeaff; }
.bj-tab.on .bj-tab-ic { transform: translateY(-2px) scale(1.1); }
.bj-tab:active .bj-tab-ic { transform: scale(.9); }

/* ---------- DUNIA: peta pulau isometrik ---------- */
.bj-world { padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important; max-width: 720px !important; }
.bj-sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 40% at 80% 5%, #fff7d6 0, transparent 60%), linear-gradient(180deg, #7fd8ff 0%, #bdefff 35%, #dff9ec 75%, #c8f0d4 100%);
}
.bj-wtop { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 5; padding: 6px 0; }
.bj-wtitle { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--bj-ink); }
.bj-wtitle > b { font-size: 26px; }
.bj-world .bj-pill { background: #fff; color: var(--bj-ink); border-color: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .1); }
.bj-map { position: relative; width: 100%; }
.bj-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.bj-zone { position: absolute; left: 50%; transform: translateX(-50%); z-index: 2; font-weight: 900; font-size: 15px; color: #fff; background: var(--bj-ink); padding: 4px 14px; border-radius: 99px; box-shadow: 0 4px 0 rgba(0, 0, 0, .2); white-space: nowrap; }
.bj-cloud { position: absolute; width: 120px; height: 44px; border-radius: 30px; background: #fff; opacity: .85; animation: bjDrift 14s ease-in-out infinite alternate; }
.bj-cloud::before, .bj-cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.bj-cloud::before { width: 54px; height: 54px; left: 18px; top: -26px; }
.bj-cloud::after { width: 40px; height: 40px; left: 62px; top: -16px; }
@keyframes bjDrift { to { transform: translateX(40px); } }
.bj-isle { position: absolute; transform: translateX(-50%); width: clamp(150px, 40vw, 180px); border: none; background: none; padding: 0; cursor: pointer; animation: bjIsleIn .5s cubic-bezier(.2, 1.3, .4, 1) both; z-index: 3; }
.bj-isle-base { display: block; width: 100%; margin-top: 46px; }
.bj-isle-base svg { display: block; width: 100%; height: auto; }
.bj-isle-art { position: absolute; left: 50%; top: 0; width: 56%; aspect-ratio: 1; transform: translateX(-50%); display: grid; place-items: center; filter: drop-shadow(0 10px 6px rgba(0, 0, 0, .25)); animation: bjBob 3s ease-in-out infinite; }
.bj-isle-art .bj-art, .bj-isle-art .mode-art { width: 100% !important; height: 100% !important; object-fit: contain; }
.bj-isle-lbl { position: relative; display: inline-flex; flex-direction: column; align-items: center; margin-top: -6px; background: #fff; color: var(--bj-ink); font-weight: 900; font-size: 15px; line-height: 1.1; padding: 5px 14px; border-radius: 16px; box-shadow: 0 4px 0 rgba(0, 0, 0, .12); }
.bj-isle-lbl small { font-size: 12px; color: #f29b05; font-weight: 900; letter-spacing: .5px; }
.bj-isle-lbl .bj-new { position: static; margin-top: 2px; }
.bj-isle:active .bj-isle-base { transform: translateY(5px); }
.bj-isle.locked { filter: grayscale(.85); opacity: .75; }
.bj-isle .lock-ic { position: absolute; right: 18px; top: 40px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #8b8aa3; color: #fff; box-shadow: 0 0 0 3px #fff; z-index: 2; }
@keyframes bjBob { 50% { transform: translateX(-50%) translateY(-7px); } }
@keyframes bjIsleIn { from { opacity: 0; transform: translateX(-50%) translateY(30px) scale(.8); } }

/* skrin pembuka */
.boot .bj-logo { --bj-fs: 46px; align-items: center; color: #3a2d8f; }

@media (prefers-reduced-motion: reduce) {
  .bj-word i, .bj-slide-art, .bj-home .bj-tile, .bj-isle, .bj-isle-art, .bj-cloud { animation: none !important; }
}

/* banner: atasi gaya kad lama (rc-entry / ts-entry / ak-entry) */
.bj-home .bj-slide { display: block !important; width: auto !important; margin: 0 !important; padding: 0 !important; border: none !important; border-radius: 32px !important;
  min-height: clamp(190px, 46vw, 260px) !important;
  background: linear-gradient(135deg, var(--a), var(--b)) !important;
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, .35), inset 0 -10px 0 rgba(0, 0, 0, .1), 0 10px 0 var(--d) !important; }
.bj-home .bj-slide:active { box-shadow: inset 0 4px 0 rgba(255, 255, 255, .35), 0 4px 0 var(--d) !important; }
.bj-home .bj-slide::before { content: "" !important; position: absolute; left: auto !important; right: -60px !important; top: -80px !important; bottom: auto !important; width: 300px !important; height: 300px !important; border-radius: 50%; background: rgba(255, 255, 255, .13) !important; transform: none !important; opacity: 1 !important; }
.bj-home .bj-slide .bj-slide-txt b { font-style: normal; }
.bj-home .bj-slide .bj-slide-txt span { opacity: 1; }
.bj-home .bj-slide .bj-slide-txt small { background: var(--bj-gold); color: #6b4200; }
.bj-home .bj-slide.bj-newgame .bj-slide-txt small { background: #fff; color: var(--d); }
.bj-home .bj-slide.bj-cont .bj-slide-txt small { background: rgba(255, 255, 255, .25); color: #fff; }
.bj-home .bj-slide.locked .bj-slide-txt small { background: #8b8aa3; color: #fff; }
@media (min-width: 900px) {
  .bj-home .bj-slide { min-height: 240px !important; }
  .bj-slide-art { right: 6%; }
}
.bj-home .bj-tile .meta .ic { width: 12px; height: 12px; }

/* ---------- reben pujian bersayap (semua permainan) ---------- */
.bj-ribbon { position: relative; display: flex; flex-direction: column; align-items: center; margin: 0 auto; width: min(340px, 92%); padding-top: 4px; animation: bjRbIn .6s cubic-bezier(.2, 1.5, .4, 1) both; z-index: 1; }
.bj-rb-burst { position: absolute; left: 50%; top: 44%; width: 300px; height: 300px; transform: translate(-50%, -50%); z-index: -1; pointer-events: none; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 236, 150, .55) 0 10deg, transparent 10deg 22deg); -webkit-mask: radial-gradient(circle, #000 25%, transparent 68%); mask: radial-gradient(circle, #000 25%, transparent 68%); animation: bjSpin 14s linear infinite; }
.bj-rb-top { width: 170px; margin-bottom: -26px; position: relative; z-index: 2; filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .18)); }
.bj-rb-top svg { display: block; width: 100%; height: auto; }
.bj-rb-band { position: relative; display: flex; align-items: center; justify-content: center; }
.bj-rb-band b {
  position: relative; z-index: 1; display: block; padding: 6px 30px 8px; border-radius: 14px; min-width: 190px; text-align: center;
  font-size: clamp(32px, 9vw, 44px); line-height: 1.05; font-weight: 900; color: #fff; letter-spacing: .5px;
  background: linear-gradient(180deg, #ff6b5b, #e0312f); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .35), inset 0 -6px 0 rgba(0, 0, 0, .15), 0 6px 0 #9e1d22, 0 12px 18px rgba(0, 0, 0, .22);
  text-shadow: 0 3px 0 #9e1d22, 0 0 1px #9e1d22; transform: perspective(300px) rotateX(8deg);
}
.bj-rb-tail { position: absolute; top: 18px; width: 46px; height: 46px; background: #b8232a; z-index: 0; }
.bj-rb-tail.l { left: -26px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 32% 50%); }
.bj-rb-tail.r { right: -26px; clip-path: polygon(0 0, 100% 0, 68% 50%, 100% 100%, 0 100%); }
.bj-rb-sub { margin-top: 12px; font-weight: 900; font-size: 20px; color: var(--bj-ink); background: #fff; padding: 3px 16px; border-radius: 99px; box-shadow: 0 4px 0 rgba(0, 0, 0, .12); }
.bj-rb-stars { display: flex; gap: 6px; margin-top: 8px; align-items: flex-end; }
.bj-rb-stars i { width: 40px; height: 40px; filter: grayscale(1) brightness(1.4) opacity(.45); }
.bj-rb-stars i:nth-child(2) { width: 52px; height: 52px; }
.bj-rb-stars i.on { filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .2)); animation: bjStarPop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.bj-rb-stars svg { width: 100%; height: 100%; display: block; }
.bj-flash { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; pointer-events: none; }
.bj-flash .bj-ribbon { transform: scale(.9); }
.bj-flash.out { animation: bjFlashOut .4s ease forwards; }
.win-head .bj-ribbon { margin: 2px auto 0; }
.win-head .bj-rb-sub { color: var(--bj-ink); }
.ts-win .bj-ribbon, .rc-result .bj-ribbon { margin-bottom: 6px; }
.ak-lesson .bj-ribbon { margin-bottom: 8px; }
@keyframes bjRbIn { from { opacity: 0; transform: scale(.4) translateY(30px); } }
@keyframes bjStarPop { from { transform: scale(0) rotate(-40deg); } }
@keyframes bjSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes bjFlashOut { to { opacity: 0; transform: translateY(-30px) scale(.9); } }
@media (prefers-reduced-motion: reduce) { .bj-ribbon, .bj-rb-burst, .bj-rb-stars i.on { animation: none !important; } }

/* ---------- matlamat harian (skrin utama) ---------- */
.bj-goal { display: flex; align-items: center; gap: 10px; width: 100%; border: none; cursor: pointer; text-align: left; color: #fff; padding: 10px 14px; border-radius: 22px; background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .18); }
.bj-goal.done { background: linear-gradient(90deg, rgba(255, 212, 59, .35), rgba(255, 212, 59, .12)); border-color: rgba(255, 212, 59, .6); }
.bj-goal-ic { font-size: 28px; font-family: var(--emoji); }
.bj-goal-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.bj-goal-t b { font-size: 16px; line-height: 1.1; }
.bj-goal-t small { font-size: 12px; opacity: .8; font-weight: 700; }
.bj-goal-dots { display: flex; gap: 4px; }
.bj-goal-dots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.bj-goal-dots i.on { background: #ffd43b; box-shadow: 0 0 8px #ffd43b; }
.bj-goal-fire { font-family: var(--emoji); font-size: 18px; display: inline-flex; align-items: center; gap: 2px; }
.bj-goal-fire b { font-family: var(--font); font-size: 16px; }
.bj-home .bj-slide.bj-lpslide .bj-slide-txt small { background: #fff; color: var(--d); }
.bj-tab { font-size: 11px; }

/* ---------- LALUAN BIJAK ---------- */
.lp-screen { padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important; max-width: 640px !important; }
.lp-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70% 40% at 50% 0%, #fff7d6, transparent 70%), linear-gradient(180deg, #ffe9c7 0%, #e9f8ff 40%, #e6fbef 100%); }
html:has(.lp-screen) body { background: #e9f8ff; }
.lp-top { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 6; padding: 6px 0; }
.lp-title { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.05; color: #241d52; }
.lp-title b { font-size: 24px; }
.lp-title small { font-weight: 800; font-size: 13px; color: #6b628c; }
.lp-streak { display: inline-flex; align-items: center; gap: 3px; background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 18px; box-shadow: 0 4px 0 rgba(0, 0, 0, .08); font-family: var(--emoji); }
.lp-streak b { font-family: var(--font); color: #e8590c; }
.lp-goal { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 22px; padding: 10px 14px; box-shadow: 0 5px 0 rgba(0, 0, 0, .07); }
.lp-goal.done { background: linear-gradient(90deg, #fff3bf, #fff); box-shadow: 0 0 0 3px #ffd43b, 0 5px 0 rgba(0, 0, 0, .07); }
.lp-goal-ic { font-size: 30px; font-family: var(--emoji); }
.lp-goal-t { flex: 1; display: flex; flex-direction: column; }
.lp-goal-t small { color: #6b628c; font-weight: 700; }
.lp-goal-dots { display: flex; gap: 5px; }
.lp-goal-dots i { width: 18px; height: 18px; border-radius: 50%; background: #e9e4f6; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08); }
.lp-goal-dots i.on { background: #ffd43b; box-shadow: inset 0 -3px 0 #e0a800, 0 0 8px rgba(255, 212, 59, .8); }
.lp-road { position: relative; display: flex; flex-direction: column; padding: 6px 0 20px; }
.lp-road::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 0; }
.lp-unit { position: relative; margin: 22px 0 14px; padding: 12px 16px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #7c5cff, #4f7bff); box-shadow: 0 6px 0 #3b3fb5; display: flex; flex-direction: column; }
.lp-unit.lock { filter: grayscale(.85); opacity: .7; }
.lp-unit small { font-weight: 900; letter-spacing: 1px; font-size: 12px; opacity: .85; }
.lp-unit b { font-size: 22px; line-height: 1.1; }
.lp-unit-doms { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.lp-unit-doms i { font-style: normal; font-family: var(--emoji); font-size: 15px; background: rgba(255, 255, 255, .22); border-radius: 10px; padding: 2px 6px; }
.lp-unit-ok { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #2fbf71; box-shadow: 0 0 0 3px #fff; }
.lp-unit-ok .ic { width: 22px; height: 22px; }
.lp-node { position: relative; align-self: flex-start; margin-left: calc(var(--x) - 48px); width: 96px; border: none; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 10px; }
.lp-disc { position: relative; width: 84px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #fff, color-mix(in srgb, var(--c) 25%, #fff)); box-shadow: inset 0 -6px 0 color-mix(in srgb, var(--c) 35%, #fff), 0 8px 0 color-mix(in srgb, var(--c) 70%, #000), 0 12px 16px rgba(0, 0, 0, .12); transition: transform .12s; }
.lp-art { width: 54px !important; height: 54px !important; object-fit: contain; }
.lp-node.done .lp-disc { background: radial-gradient(circle at 50% 35%, #fff9db, #ffd43b); box-shadow: inset 0 -6px 0 #e0a800, 0 8px 0 #b07c00, 0 12px 16px rgba(0, 0, 0, .12); }
.lp-node.lock .lp-disc { background: #ece9f3; box-shadow: inset 0 -6px 0 #dcd7e8, 0 8px 0 #c6c0d6; filter: grayscale(1); opacity: .75; }
.lp-node.cur .lp-disc { width: 96px; height: 90px; animation: lpPulse 1.6s ease-in-out infinite; }
.lp-node:active .lp-disc { transform: translateY(6px); }
@keyframes lpPulse { 0%, 100% { box-shadow: inset 0 -6px 0 color-mix(in srgb, var(--c) 35%, #fff), 0 8px 0 color-mix(in srgb, var(--c) 70%, #000), 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); } 50% { box-shadow: inset 0 -6px 0 color-mix(in srgb, var(--c) 35%, #fff), 0 8px 0 color-mix(in srgb, var(--c) 70%, #000), 0 0 0 14px transparent; } }
.lp-ok { position: absolute; right: -2px; bottom: 4px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #2fbf71; box-shadow: 0 0 0 3px #fff; }
.lp-ok .ic { width: 18px; height: 18px; }
.lp-lock { position: absolute; right: 0; bottom: 4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #9a93b5; box-shadow: 0 0 0 3px #fff; }
.lp-lock .ic { width: 15px; height: 15px; }
.lp-lbl { font-weight: 900; font-size: 12px; line-height: 1.05; text-align: center; color: #241d52; background: rgba(255, 255, 255, .85); padding: 2px 8px; border-radius: 99px; max-width: 110px; }
.lp-node.lock .lp-lbl { color: #9a93b5; }
.lp-start { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); z-index: 2; background: #fff; color: var(--c); font-weight: 900; font-size: 15px; letter-spacing: 1px; padding: 3px 14px; border-radius: 12px; box-shadow: 0 4px 0 rgba(0, 0, 0, .12); animation: gmPulse 1.2s ease-in-out infinite; white-space: nowrap; }
.lp-start::after { content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #fff; }
.lp-node.cur { margin-top: 40px; }
.lp-avatar { position: absolute; left: -46px; top: 18px; width: 54px; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .2)); animation: lpBob 2.4s ease-in-out infinite; }
@keyframes lpBob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.lp-node.just .lp-disc { animation: lpJust .8s cubic-bezier(.2, 1.6, .4, 1) 2; }
@keyframes lpJust { 50% { transform: scale(1.22) rotate(8deg); } }
.lp-chest { align-self: flex-start; margin-left: calc(var(--x) - 36px); margin-top: 12px; width: 72px; height: 66px; border: none; background: none; cursor: pointer; padding: 0; filter: grayscale(.8); opacity: .65; }
.lp-chest.big { width: 92px; height: 84px; margin-left: calc(var(--x) - 46px); }
.lp-chest svg { width: 100%; height: 100%; }
.lp-chest.ready { filter: none; opacity: 1; animation: lpChest 1.4s ease-in-out infinite; }
.lp-chest.open { filter: none; opacity: .9; animation: none; }
@keyframes lpChest { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg) scale(1.05); } 75% { transform: rotate(6deg) scale(1.05); } }
.lp-foot { text-align: center; color: #6b628c; font-weight: 700; font-size: 14px; }
.lp-pop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(28, 23, 71, .55); animation: fadeIn .25s ease; }
.lp-pop-box { width: min(380px, 100%); background: linear-gradient(180deg, #fffdf3, #fff3bf); border-radius: 30px; border: 5px solid #fff; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: 0 12px 0 #c2410c; animation: bjRbIn .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.lp-pop-chest { width: 120px; }
.lp-pop-r { display: flex; gap: 12px; align-items: center; font-weight: 900; font-size: 22px; }
.lp-pop-r span { display: inline-flex; align-items: center; gap: 4px; background: #fff; padding: 4px 14px; border-radius: 99px; box-shadow: 0 3px 0 rgba(0, 0, 0, .1); }
.lp-pop-r .ic { width: 24px; height: 24px; }
.lp-pop-r .emo { font-size: 30px; }

/* panduan ibu bapa */
.guide-steps { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.4; }
.dom-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.dom-bar { display: grid; grid-template-columns: 170px 1fr 80px; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.dom-bar i { height: 12px; border-radius: 8px; background: #eee9f7; overflow: hidden; }
.dom-bar em { display: block; height: 100%; background: var(--c); border-radius: 8px; }
.dom-bar small { color: #6b628c; text-align: right; }
@media (max-width: 480px) { .dom-bar { grid-template-columns: 1fr 70px; } .dom-bar i { grid-column: 1 / -1; order: 3; } }
.lp-top { background: rgba(255, 247, 230, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin: 0 -16px; padding: 6px 16px; border-radius: 0 0 20px 20px; box-shadow: 0 4px 10px rgba(0, 0, 0, .06); }
.lp-node { margin-top: 20px; }
.lp-node.cur { margin-top: 46px; }

/* ---------- SELFIE JUARA ---------- */
.bj-selfie-btn { align-self: center; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 99px; font-weight: 900; font-size: 17px; color: #fff; background: linear-gradient(135deg, #ff7eb3, #9b5cff); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), 0 5px 0 #6a3bc4; animation: sfWiggle 2.6s ease-in-out infinite; }
.bj-selfie-btn .emo { font-size: 22px; }
.bj-selfie-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #6a3bc4; }
@keyframes sfWiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-4deg) scale(1.04); } 90% { transform: rotate(4deg) scale(1.04); } }
.sf-root { position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; z-index: 2000; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom)); background: radial-gradient(circle at 50% 0, #4b33b0, #1c1747 70%); color: #fff; animation: fadeIn .2s ease; }
.sf-top { width: min(100%, 480px); display: flex; align-items: center; justify-content: space-between; }
.sf-top b { font-size: 20px; }
.sf-x { width: 46px; height: 46px; border: none; border-radius: 16px; background: rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center; cursor: pointer; }
.sf-x .ic { width: 24px; height: 24px; }
.sf-stage { position: relative; flex: none; width: min(100%, 420px, calc((100dvh - 280px) * .75)); aspect-ratio: 3 / 4; cursor: pointer; border-radius: 28px; overflow: hidden; background: #2b2350; box-shadow: 0 0 0 5px #fff, 0 14px 30px rgba(0, 0, 0, .4); }
.sf-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.sf-over { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sf-guide { position: absolute; left: 20%; right: 20%; top: 19%; bottom: 27%; border: 4px dashed rgba(255, 255, 255, .7); border-radius: 50%; pointer-events: none; }
.sf-count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 140px; font-weight: 900; color: #fff; text-shadow: 0 6px 0 rgba(0, 0, 0, .3); pointer-events: none; }
.sf-count.pop { animation: bjRbIn .5s cubic-bezier(.2, 1.6, .4, 1); }
.sf-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.sf-flash.go { animation: sfFlash .5s ease-out; }
@keyframes sfFlash { from { opacity: 1; } to { opacity: 0; } }
.sf-msg { position: absolute; left: 12px; right: 12px; top: 40%; text-align: center; font-weight: 800; font-size: 18px; background: rgba(0, 0, 0, .45); padding: 12px; border-radius: 16px; }
.sf-photo { width: 100%; height: 100%; object-fit: cover; animation: bjRbIn .5s ease; }
.sf-filters { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 4px; }
.sf-f { flex: none; width: 70px; border: none; border-radius: 18px; padding: 6px 4px; cursor: pointer; background: rgba(255, 255, 255, .14); color: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 800; }
.sf-f .emo { font-size: 28px; }
.sf-f.on { background: #fff; color: #5b3dff; box-shadow: 0 0 0 3px #ffd43b; }
.sf-bar { display: flex; gap: 12px; align-items: center; justify-content: center; }
.sf-shot { width: 78px; height: 78px; border-radius: 50%; border: 6px solid #fff; background: radial-gradient(circle, #ff5fa2 55%, #fff 57%); cursor: pointer; box-shadow: 0 6px 0 rgba(0, 0, 0, .3); }
.sf-shot:active { transform: scale(.92); }
.sf-shot[disabled] { opacity: .4; }
.sf-btn { border: none; cursor: pointer; height: 58px; padding: 0 22px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: 18px; color: #2b2350; background: #fff; box-shadow: 0 5px 0 rgba(0, 0, 0, .3); }
.sf-btn.go { color: #fff; background: linear-gradient(180deg, #4ee398, #22c36f); box-shadow: 0 5px 0 #13985a; }
.sf-btn .ic { width: 22px; height: 22px; }
.bj-album-link { display: flex; align-items: center; gap: 12px; width: 100%; border: none; cursor: pointer; text-align: left; padding: 12px 16px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #ff7eb3, #9b5cff); box-shadow: 0 5px 0 #6a3bc4; }
.bj-album-link .emo { font-size: 32px; }
.bj-album-link span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.bj-album-link small { opacity: .85; font-weight: 700; }
.bj-album-link .ic { width: 24px; height: 24px; }
.sf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.sf-thumb { border: none; padding: 6px 6px 4px; border-radius: 18px; background: #fff; box-shadow: 0 5px 0 rgba(0, 0, 0, .1); cursor: pointer; display: flex; flex-direction: column; gap: 4px; transform: rotate(-1.5deg); }
.sf-thumb:nth-child(2n) { transform: rotate(1.5deg); }
.sf-thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.sf-thumb small { font-weight: 800; color: #6b628c; }
.sf-view { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(28, 23, 71, .7); }
.sf-view-box { width: min(420px, 100%); background: #fff; border-radius: 26px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.sf-view-box img { width: 100%; border-radius: 18px; }

/* ---------- PEMBURU WARNA ---------- */
.pw-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pw-card { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 24px; padding: 10px 18px 10px 12px; box-shadow: 0 0 0 4px var(--c, #fff), 0 6px 0 rgba(0, 0, 0, .1); }
.pw-card span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.pw-card small { font-weight: 800; color: #6b628c; font-size: 12px; }
.pw-card b { font-size: 30px; letter-spacing: 1px; }
.pw-card em { font-style: normal; font-weight: 800; color: #868e96; font-size: 14px; }
.pw-splat { width: 56px; height: 56px; background: var(--c); border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; box-shadow: inset -5px -6px 0 rgba(0, 0, 0, .12), inset 4px 4px 0 rgba(255, 255, 255, .45), 0 0 0 3px rgba(0, 0, 0, .08); }
.pw-view { position: relative; width: min(100%, 440px); aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; background: #2b2350; box-shadow: 0 0 0 5px #fff, 0 10px 0 rgba(0, 0, 0, .12); }
.pw-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pw-reticle { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; }
.pw-reticle i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#2fbf71 0deg, rgba(255, 255, 255, .35) 0); -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%); mask: radial-gradient(circle, transparent 62%, #000 64%); }
.pw-reticle::after { content: ""; width: 22%; aspect-ratio: 1; border-radius: 50%; border: 3px solid #fff; background: var(--seen, transparent); box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); }
.pw-reticle.lock { animation: gmPulse 0.6s ease-in-out infinite; }
.pw-seen { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(28, 23, 71, .75); color: #fff; font-weight: 800; padding: 4px 14px 4px 10px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pw-seen::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c, #888); box-shadow: 0 0 0 2px #fff; }
.pw-found { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; min-height: 20px; }
.pw-got { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 3px var(--c), 0 4px 0 rgba(0, 0, 0, .1); animation: bjRbIn .5s cubic-bezier(.2, 1.5, .4, 1); }
.pw-got small { font-weight: 800; font-size: 11px; }
.pw-thumb { width: 60px; height: 60px; border-radius: 12px; }
.pw-emo { font-size: 40px; width: 60px; height: 60px; display: grid; place-items: center; }
.pw-switch { border: none; background: rgba(255, 255, 255, .8); border-radius: 99px; padding: 8px 16px; font-weight: 800; cursor: pointer; }
.pw-pics { display: grid; grid-template-columns: repeat(2, minmax(120px, 160px)); gap: 12px; }
.pw-pic { aspect-ratio: 1; border: none; border-radius: 26px; background: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .1); cursor: pointer; display: grid; place-items: center; }
.pw-pic .emo { font-size: 64px; }
.pw-pic.ok { box-shadow: 0 0 0 5px #2fbf71, 0 6px 0 rgba(0, 0, 0, .1); }
.pw-pic.no { opacity: .4; animation: rbBump .4s ease; }
.pw-intro { display: flex; flex-direction: column; align-items: center; gap: 10px; background: #fff; border-radius: 28px; padding: 22px; box-shadow: 0 8px 0 rgba(0, 0, 0, .08); text-align: center; }
.pw-intro-art { font-size: 60px; font-family: var(--emoji); }
.pw-intro b { font-size: 26px; }
.pw-intro p { margin: 0; color: #6b628c; font-weight: 700; }

.sf-tapshot { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; width: 64px; height: 64px; border-radius: 50%; border: 4px solid #fff; background: rgba(255, 95, 162, .9); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); cursor: pointer; display: grid; place-items: center; }
.sf-tapshot .emo { font-size: 28px; }
.sf-tapshot:active { transform: translateX(-50%) scale(.9); }
.sf-filters, .sf-bar, .sf-top { flex: none; }
.sf-filters[hidden], .sf-msg[hidden], .sf-tapshot[hidden] { display: none !important; }

/* notis level berkunci */
.bj-lock-note { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 16px; background: rgba(28, 23, 71, .35); animation: fadeIn .2s ease; }
.bj-lock-card { width: min(360px, 100%); background: #fff; border-radius: 26px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; box-shadow: 0 10px 0 rgba(0, 0, 0, .15), 0 20px 40px rgba(0, 0, 0, .25); animation: bjRbIn .4s cubic-bezier(.2, 1.4, .4, 1); color: #241d52; }
.bj-lock-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #b197fc, #7048e8); box-shadow: 0 5px 0 #4527a0; }
.bj-lock-ic .ic { width: 30px; height: 30px; }
.bj-lock-card b { font-size: 21px; line-height: 1.15; }
.bj-lock-card small { color: #6b628c; font-weight: 700; font-size: 14px; line-height: 1.35; }
.bj-lock-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.gm-note { margin: 0; text-align: center; font-weight: 700; font-size: 13px; color: #6b628c; }
.dev-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dev-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.dev-list li small { flex-basis: 100%; padding-left: 28px; color: #b35c00; font-weight: 700; }
.dev-warn { background: #fff4e6; color: #a14a00; border-radius: 12px; padding: 8px 10px; font-weight: 700; font-size: 14px; }

/* ---------- BAR TINDAKAN SKRIN KEJAYAAN ---------- */
.bj-winbar { position: sticky; bottom: 0; z-index: 3; width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 2px 2px; margin-top: 4px; background: linear-gradient(180deg, rgba(255, 249, 236, 0), #fff9ec 14px); box-shadow: 0 -10px 14px -12px rgba(80, 45, 20, .25); border-radius: 0 0 22px 22px; }
.bj-next { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 66px; border: none; border-radius: 24px; cursor: pointer; font: inherit; font-weight: 900; font-size: clamp(22px, 6.4vw, 28px); color: #fff; background: linear-gradient(180deg, #5cea9f, #22c36f); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .45), 0 6px 0 #13985a, 0 12px 22px rgba(19, 152, 90, .35); animation: bjNext 1.6s ease-in-out infinite; text-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.bj-next .ic { width: 32px; height: 32px; }
.bj-next:active { transform: translateY(5px); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .45), 0 1px 0 #13985a; animation: none; }
@keyframes bjNext { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.bj-hand { position: absolute; right: 14px; bottom: -18px; width: 44px; height: 44px; opacity: 0; pointer-events: none; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .25)); }
.bj-hand svg { width: 100%; height: 100%; }
.bj-winbar.hint .bj-hand { opacity: 1; animation: bjHand 1.1s ease-in-out infinite; }
@keyframes bjHand { 0%, 100% { transform: translate(0, 0) rotate(-12deg); } 50% { transform: translate(-6px, -10px) rotate(-12deg); } }
.bj-winsub { display: flex; gap: 8px; justify-content: center; }
.bj-winsub:empty { display: none; }
.bj-mini { flex: 1; max-width: 170px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 12px; border: none; border-radius: 16px; cursor: pointer; font: inherit; font-weight: 800; font-size: 15px; color: #5a4f7c; background: #f1edfb; box-shadow: 0 4px 0 #d9d2f2; }
.bj-mini .ic { width: 20px; height: 20px; }
.bj-mini:active { transform: translateY(3px); box-shadow: none; }
/* kad kejayaan: tidak lebih tinggi daripada skrin; kandungan boleh tatal, bar kekal di bawah */
.modal, .gm-win, .rc-result, .ts-win { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto !important; overscroll-behavior: contain; }
.gm-win-back, .ts-win-back, .rc-result-back, .modal-back { padding: 12px !important; }
@media (max-height: 720px) {
  .gm-win-art { width: 72px !important; height: 72px !important; }
  .rc-res-car { transform: scale(.75); margin: -14px 0; }
  .win-head .emo.float { font-size: 44px !important; }
  .bj-next { min-height: 58px; }
}
@media (prefers-reduced-motion: reduce) { .bj-next, .bj-winbar.hint .bj-hand { animation: none; } }

/* ---------- MENU JEDA & KELUAR ---------- */
.bj-pause-back { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; padding: 16px; background: rgba(28, 23, 71, .55); backdrop-filter: blur(4px); animation: fadeIn .2s ease; }
.bj-pause { width: min(340px, 100%); background: linear-gradient(180deg, #fffdf8, #fff4df); border: 5px solid #fff; border-radius: 32px; padding: 18px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; text-align: center; color: #2b2350; box-shadow: 0 10px 0 rgba(0, 0, 0, .15), 0 30px 60px rgba(0, 0, 0, .3); animation: bjPz .4s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes bjPz { 0% { transform: translateY(30px) scale(.85); opacity: 0; } 100% { transform: none; opacity: 1; } }
.bj-pz { display: flex; align-items: center; justify-content: center; gap: 10px; }
.bj-pz b, .bj-exit-t { font-size: 24px; font-weight: 900; }
.bj-pz-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #8fb8ff, #3d8bff); box-shadow: 0 4px 0 #1f5fc0; }
.bj-pz-ic .ic { width: 24px; height: 24px; }
.bj-pb { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border: none; border-radius: 18px; cursor: pointer; font: inherit; font-weight: 900; font-size: 18px; color: #2b2350; background: #f1edfb; box-shadow: 0 4px 0 #d9d2f2; }
.bj-pb .ic { width: 24px; height: 24px; }
.bj-pb.go { min-height: 64px; font-size: 22px; color: #fff; background: linear-gradient(180deg, #5cea9f, #22c36f); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .45), 0 5px 0 #13985a; }
.bj-pb.home { color: #fff; background: linear-gradient(180deg, #ffb36b, #ff7a45); box-shadow: 0 4px 0 #c2410c; }
.bj-pb:active { transform: translateY(3px); box-shadow: none; }
.bj-pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.bj-pgrid .bj-pb { flex-direction: column; gap: 2px; font-size: 14px; min-height: 64px; }
.bj-wave { font-size: 56px; font-family: var(--emoji); animation: bjWave 1.2s ease-in-out infinite; transform-origin: 70% 80%; }
@keyframes bjWave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(18deg); } 75% { transform: rotate(-12deg); } }
.bj-pause small { color: #6b628c; font-weight: 700; }
.btn-round.rb-pause { background: linear-gradient(180deg, #8fb8ff, #3d8bff) !important; color: #fff; }
.bj-mini.home { color: #c2410c; background: #fff0e0; box-shadow: 0 4px 0 #f6c9a0; }
@media (max-width: 380px) { .bj-mini { padding: 0 8px; font-size: 13px; gap: 4px; } }

/* ---------- TANGAN PENUNJUK ---------- */
.bj-coach { position: fixed; left: 0; top: 0; z-index: 1500; pointer-events: none; opacity: 0; transition: opacity .25s; width: 52px; height: 52px; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .3)); }
.bj-coach svg { position: relative; }
.bj-coach svg { width: 100%; height: 100%; animation: bjTap 1.2s ease-in-out infinite; transform-origin: 30% 10%; }
@keyframes bjTap { 0%, 100% { transform: translate(6px, 10px) rotate(-14deg); } 45% { transform: translate(0, 0) rotate(-14deg) scale(.92); } }
.bj-coach-ring { position: absolute; left: -20px; top: -32px; width: 56px; height: 56px; border-radius: 50%; border: 4px solid #ffd43b; box-shadow: 0 0 14px #ffd43b; animation: bjRing 1.2s ease-out infinite; }
@keyframes bjRing { 0%, 40% { scale: .5; opacity: .9; } 100% { scale: 1.4; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bj-coach svg, .bj-coach-ring { animation: none; } }

/* ---------- CADANGAN BERCAHAYA ---------- */
.bj-recs { position: relative; margin: 4px 0 2px; padding: 12px; border-radius: 28px; background: linear-gradient(135deg, #fff7d6, #ffe7f3 55%, #e3f0ff); border: 3px solid #fff; box-shadow: 0 6px 0 rgba(255, 196, 64, .35), 0 0 0 3px rgba(255, 212, 59, .35), 0 12px 28px rgba(255, 170, 50, .25); }
.bj-recs-t { display: flex; align-items: center; gap: 6px; margin: 0 0 10px 4px; font-size: clamp(18px, 5vw, 22px); font-weight: 900; color: #2b2350; }
.bj-recs-spark { font-family: var(--emoji); display: inline-block; animation: bjSpark 1.6s ease-in-out infinite; }
@keyframes bjSpark { 50% { transform: rotate(20deg) scale(1.25); } }
.bj-recs-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bj-rec { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 6px 10px; border: none; border-radius: 22px; cursor: pointer; font: inherit; color: #fff; background: linear-gradient(180deg, var(--a), var(--b)); box-shadow: 0 5px 0 var(--d), 0 0 0 0 rgba(255, 212, 59, .7); animation: bjGlow 2s ease-in-out infinite; animation-delay: calc(var(--i) * .35s); }
.bj-rec .bj-tile-art { width: 64px; height: 64px; display: grid; place-items: center; }
.bj-rec .bj-tile-art > * { width: 100%; height: 100%; object-fit: contain; }
.bj-rec .name { font-weight: 900; font-size: 13px; line-height: 1.1; text-align: center; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.bj-rec-why { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 900; color: #2b2350; background: #fff; border-radius: 99px; padding: 3px 9px; box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.bj-rec.why-latih .bj-rec-why { background: #ffe3e3; } .bj-rec.why-baru .bj-rec-why { background: #fff3bf; } .bj-rec.why-teruskan .bj-rec-why { background: #d3f9d8; }
.bj-rec:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--d); }
@keyframes bjGlow { 0%, 100% { box-shadow: 0 5px 0 var(--d), 0 0 0 0 rgba(255, 212, 59, 0); } 50% { box-shadow: 0 5px 0 var(--d), 0 0 18px 6px rgba(255, 212, 59, .75); } }
.bj-tile.bj-glow { box-shadow: 0 0 0 3px #ffd43b, 0 0 16px 4px rgba(255, 212, 59, .6) !important; animation: bjGlowT 2.2s ease-in-out infinite; }
@keyframes bjGlowT { 50% { box-shadow: 0 0 0 3px #ffd43b, 0 0 26px 10px rgba(255, 212, 59, .8); } }
@media (prefers-reduced-motion: reduce) { .bj-rec, .bj-tile.bj-glow, .bj-recs-spark { animation: none; } }

.bj-rec { min-height: 138px; justify-content: flex-end; }
.bj-rec .bj-tile-art { position: static; transform: none; width: 66px; height: 66px; aspect-ratio: auto; margin-bottom: 2px; }
.bj-rec:hover .bj-tile-art { transform: none; }
.bj-rec-why { z-index: 2; }
@media (max-width: 370px) { .bj-rec-why { font-size: 10px; padding: 2px 6px; } .bj-rec .name { font-size: 12px; } }
.bj-exit-toast { position: fixed; left: 50%; bottom: max(90px, calc(env(safe-area-inset-bottom) + 80px)); z-index: 2600; transform: translateX(-50%); white-space: nowrap; display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 99px; background: rgba(28, 23, 71, .9); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); animation: bjToastIn .25s ease, bjToastOut .4s ease 2.1s forwards; pointer-events: none; }
@keyframes bjToastIn { from { opacity: 0; transform: translate(-50%, 16px); } }
@keyframes bjToastOut { to { opacity: 0; transform: translate(-50%, 10px); } }

/* ---- Skrin sambutan demo SOLO (halaman jualan) ---- */
.ds-screen { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px 18px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #fff 0, color-mix(in srgb, var(--c) 22%, #fff) 45%, color-mix(in srgb, var(--c) 45%, #fff) 100%); }
.ds-title { font-family: "Baloo 2", var(--font, sans-serif); font-weight: 800; font-size: 26px; color: #fff; background: var(--c); padding: 4px 18px; border-radius: 99px; box-shadow: 0 4px 0 rgba(0,0,0,.12); animation: pop .5s ease-out both; }
.ds-char { font-family: var(--emoji); font-size: 118px; line-height: 1; background: #fff; width: 168px; height: 168px; border-radius: 50%; border: 6px solid var(--c); box-shadow: 0 10px 0 rgba(0,0,0,.08), 0 16px 34px rgba(61,50,86,.18); display: grid; place-items: center; cursor: pointer; padding: 0; animation: ds-hop 1.6s ease-in-out infinite; }
.ds-bubble { position: relative; background: #fff; border-radius: 26px; padding: 14px 18px; max-width: 290px; font-weight: 700; font-size: 18px; line-height: 1.35; color: var(--ink, #3d3256); box-shadow: 0 5px 0 rgba(0,0,0,.06), 0 10px 24px rgba(61,50,86,.12); animation: pop .5s .15s ease-out both; }
.ds-bubble::before { content: ""; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); border: 14px solid transparent; border-bottom-color: #fff; border-top: 0; }
.ds-bubble b { display: block; font-size: 21px; color: var(--c); filter: brightness(.8); margin-bottom: 2px; }
.ds-go { font-size: 26px !important; padding: 16px 38px !important; animation: pulse 1.3s ease-in-out infinite; }
.ds-hint { font-size: 14px; font-weight: 700; color: #6b628c; }
.ds-sparkles { position: absolute; inset: 0; pointer-events: none; }
.ds-sparkles > * { position: absolute; font-size: 26px; animation: float 3s ease-in-out infinite; opacity: .85; }
.ds-sparkles > :nth-child(1) { left: 8%; top: 10%; } .ds-sparkles > :nth-child(2) { right: 10%; top: 16%; animation-delay: -1s; }
.ds-sparkles > :nth-child(3) { left: 10%; bottom: 18%; animation-delay: -2s; } .ds-sparkles > :nth-child(4) { right: 12%; bottom: 26%; animation-delay: -.5s; }
.ds-sparkles > :nth-child(5) { left: 50%; top: 4%; animation-delay: -1.5s; }
@keyframes ds-hop { 0%,100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-14px) rotate(-5deg); } 60% { transform: translateY(0) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .ds-char, .ds-go, .ds-sparkles > * { animation: none; } }
