:root {
  --pink: #ff7eb0;
  --pink-deep: #e8558f;
  --pink-soft: #ffd6e7;
  --cream: #fff8fb;
  --lav: #c8b6ff;
  --mint: #8fe3c8;
  --sun: #ffd166;
  --ink: #6a2c52;
  --ink-soft: #a0678a;
  --shadow: 0 8px 24px rgba(214, 80, 140, .18);
  --radius: 22px;
  --accent-light: #ff9cc4;
  --accent-shadow: #f3c3d8;
  --accent2: #9a6bff;
  --bg1: #ffe4ef;
  --bg2: #ffeef6;
  --bg3: #efe6ff;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Fredoka', system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg1) 0%, var(--bg2) 40%, var(--bg3) 100%);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: none;
}
button { font-family: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }

/* ---------- Hati melayang ---------- */
#bg-hearts { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
#bg-hearts span {
  position: absolute; bottom: -40px; opacity: .45;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0) translateX(0) rotate(0); }
  50% { transform: translateY(-55vh) translateX(20px) rotate(15deg); }
  100% { transform: translateY(-115vh) translateX(-10px) rotate(-10deg); }
}

#app { position: relative; z-index: 1; }
.screen { display: none; min-height: 100vh; min-height: 100dvh; }
.screen.active { display: flex; flex-direction: column; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Tombol ---------- */
.btn {
  border: none; border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-light), var(--pink));
  color: #fff; font-weight: 600; font-size: 17px;
  padding: 12px 22px;
  box-shadow: 0 5px 0 var(--pink-deep), 0 10px 20px rgba(232, 85, 143, .3);
  transition: transform .1s, box-shadow .1s;
  text-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--pink-deep), 0 4px 10px rgba(232, 85, 143, .3); }
.btn.big { font-size: 24px; padding: 16px 44px; }
.btn.ghost {
  background: #fff; color: var(--pink-deep);
  box-shadow: 0 5px 0 var(--accent-shadow), 0 10px 20px rgba(232, 85, 143, .12);
}
.btn.ghost:active { box-shadow: 0 1px 0 var(--accent-shadow); }

.icon-btn {
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: #fff; color: var(--ink); font-size: 20px;
  box-shadow: 0 4px 0 var(--accent-shadow);
  display: grid; place-items: center; flex-shrink: 0;
}
.icon-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-shadow); }
.icon-btn.small { width: 40px; height: 40px; font-size: 16px; }
.link-btn { background: none; border: none; color: var(--ink-soft); font-size: 14px; text-decoration: underline; opacity: .7; }

/* ---------- Home ---------- */
#screen-home { align-items: center; justify-content: center; padding: 24px 16px; text-align: center; }
.home-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: auto 0; width: min(100%, 420px); }
.mascots { font-size: 56px; display: flex; gap: 10px; }
.mascots span { display: inline-block; animation: hop 1.6s ease-in-out infinite; }
.mascots span:nth-child(2) { animation-delay: .2s; font-size: 44px; align-self: center; }
.mascots span:nth-child(3) { animation-delay: .4s; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px) rotate(-6deg); } }
.title {
  margin: 0; line-height: .95; font-size: clamp(44px, 13vw, 76px); font-weight: 700;
  color: var(--pink-deep);
  text-shadow: 0 4px 0 #fff, 0 8px 0 rgba(232, 85, 143, .2);
}
.title-2 { color: var(--accent2); font-size: .82em; }

/* ---------- Peta ---------- */
#screen-map { padding: 0 16px 40px; max-width: 540px; margin: 0 auto; width: 100%; }
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; padding-top: max(14px, env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(255, 234, 243, .95) 70%, rgba(255, 234, 243, 0));
}
.star-total {
  background: #fff; border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: 18px;
  box-shadow: 0 4px 0 var(--accent-shadow);
}
.world {
  border-radius: var(--radius); padding: 16px; margin-bottom: 18px;
  box-shadow: var(--shadow); border: 3px solid #fff;
}
.world.locked { filter: grayscale(.7); opacity: .6; }
.world-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.world-head h2 { margin: 0; font-size: 21px; }
.world-head small { font-size: 13px; opacity: .75; font-weight: 500; }
.world-icon {
  font-size: 30px; width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(255,255,255,.7); border-radius: 16px;
}
.world-stars { margin-left: auto; font-weight: 600; font-size: 14px; background: rgba(255,255,255,.7); padding: 4px 10px; border-radius: 999px; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lvl {
  border: none; border-radius: 20px; background: #fff; padding: 10px 4px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  box-shadow: 0 5px 0 rgba(0,0,0,.08);
  transition: transform .12s;
}
.lvl:not(:disabled):active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.lvl-type { font-size: 26px; }
.lvl-num { font-weight: 700; font-size: 18px; color: var(--pink-deep); }
.lvl-stars { color: #ffb400; font-size: 15px; letter-spacing: 1px; }
.lvl-stars i { font-style: normal; color: #eadbe3; }
.lvl.locked { background: rgba(255,255,255,.55); }
.lvl.locked .lvl-num { color: #b9a4b0; }
.lvl.done { background: #fffdf2; }
.lvl.current { animation: pulse 1.4s ease-in-out infinite; outline: 3px solid var(--pink); }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

.letter-btn {
  width: 100%; border: 3px dashed var(--pink); background: #fff; border-radius: var(--radius);
  padding: 16px; display: flex; align-items: center; gap: 14px; text-align: left;
  box-shadow: var(--shadow);
}
.letter-btn > span { font-size: 40px; }
.letter-btn:not(.locked) > span { animation: hop 1.2s infinite; }
.letter-btn b { display: block; font-size: 18px; }
.letter-btn small { color: var(--ink-soft); font-size: 14px; }
.letter-btn.locked { opacity: .6; border-color: #dcc; }

/* ---------- Tema dunia ---------- */
.w-flower { background: linear-gradient(160deg, #ffe1ee, #ffd0e4); }
.w-candy  { background: linear-gradient(160deg, #fff0d4, #ffd3ef); }
.w-beach  { background: linear-gradient(170deg, #cdf1ff, #fff1c4); }
.w-night  { background: linear-gradient(160deg, #4a3683, #8466d6); color: #fff; }
.w-night .world-icon, .w-night .world-stars { background: rgba(255,255,255,.2); }

/* ---------- Game ---------- */
#screen-game { height: 100vh; height: 100dvh; overflow: hidden; }
#screen-game.active { display: flex; }
#screen-game[data-theme="w-flower"] { background: linear-gradient(180deg, #fff2f8 0%, #ffd6e8 100%); }
#screen-game[data-theme="w-candy"]  { background: linear-gradient(180deg, #fff6e3 0%, #ffd9f1 100%); }
#screen-game[data-theme="w-beach"]  { background: linear-gradient(180deg, #c9efff 0%, #e8f8ff 55%, #ffeab3 100%); }
#screen-game[data-theme="w-night"]  { background: radial-gradient(ellipse at top, #6a4fc0, #2c1f57 75%); color: #fff; }

.hud {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 4px; padding-top: max(12px, env(safe-area-inset-top));
}
.hud-main {
  flex: 1; background: #fff; color: var(--ink); border-radius: 18px; padding: 8px 14px;
  box-shadow: 0 4px 0 var(--accent-shadow); min-width: 0;
}
.hud-title { font-weight: 700; font-size: 15px; color: var(--pink-deep); }
.hud-stats { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.2em; }

#stage {
  flex: 1; position: relative; overflow: hidden; min-height: 0;
  display: flex; align-items: center; justify-content: center; padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.shake { animation: shake .35s; }
@keyframes shake {
  20% { transform: translateX(-8px); } 40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); } 80% { transform: translateX(3px); }
}

.countdown {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 5;
  font-size: 88px; font-weight: 700; color: #fff; text-align: center;
  text-shadow: 0 5px 0 var(--pink-deep), 0 12px 24px rgba(232, 85, 143, .4);
}
.countdown.tick { animation: tick .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tick { from { transform: scale(.3); opacity: 0; } }

.float-text {
  position: absolute; left: 50%; top: 20%; transform: translateX(-50%);
  font-weight: 700; font-size: 24px; color: var(--pink-deep); pointer-events: none; z-index: 3;
  text-shadow: 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff;
  animation: floatText .8s ease-out forwards;
}
.float-text.bad { color: #ff3355; }
.float-text.gold { color: #e0a000; }
@keyframes floatText { to { transform: translate(-50%, -40px); opacity: 0; } }

/* Kartu kembar */
.memory-grid {
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 10px;
  width: min(100%, 440px, calc((100dvh - 225px) / var(--ratio)));
}
.card {
  aspect-ratio: 5 / 6; border: none; background: none; padding: 0; perspective: 700px;
  animation: dealIn .4s backwards cubic-bezier(.3, 1.5, .5, 1);
}
@keyframes dealIn { from { transform: scale(.3) rotate(-10deg); opacity: 0; } }
.card-inner {
  position: relative; display: block; width: 100%; height: 100%;
  transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); transform-style: preserve-3d;
}
.card.flipped .card-inner { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 16px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  font-size: clamp(24px, 8vw, 44px);
  box-shadow: 0 4px 0 rgba(0,0,0,.08);
}
.back {
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,.35) 0 8%, transparent 9%),
    radial-gradient(circle at 75% 70%, rgba(255,255,255,.35) 0 8%, transparent 9%),
    linear-gradient(145deg, #ffa3c8, #ff7eb0);
  border: 3px solid #fff; font-size: clamp(18px, 5vw, 28px);
}
[data-theme="w-candy"] .back { background: repeating-linear-gradient(45deg, #ffb3d4 0 10px, #ffd9ea 10px 20px); }
[data-theme="w-beach"] .back { background: linear-gradient(145deg, #7fd3f7, #4fb3e8); }
[data-theme="w-night"] .back { background: radial-gradient(circle at 30% 30%, #9f86ff, #5b3fb8); }
.front { background: #fff; transform: rotateY(180deg); border: 3px solid var(--pink-soft); }
.card.matched .front { background: #eafff6; border-color: var(--mint); animation: matchPop .45s; }
@keyframes matchPop { 50% { transform: rotateY(180deg) scale(1.12); } }

/* Tangkap cinta */
.catch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }

/* Tap si imut */
.pop-grid {
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 12px;
  width: min(100%, 440px, calc((100dvh - 225px) / var(--ratio)));
}
.hole { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 0 0 50% 50% / 0 0 30% 30%; }
.hole::before {
  content: ''; position: absolute; left: 8%; right: 8%; bottom: 6%; height: 28%;
  background: radial-gradient(ellipse at center, #6b3b2a 0 55%, #8c5440 70%, transparent 72%);
  border-radius: 50%;
}
.hole::after {
  content: ''; position: absolute; left: 2%; right: 2%; bottom: 0; height: 22%; z-index: 2;
  background: #a8e27b; border-radius: 50% 50% 40% 40%;
  box-shadow: inset 0 5px 0 #c6f59c, 0 3px 0 #7bbf55;
  pointer-events: none;
}
[data-theme="w-candy"] .hole::after { background: #ffc4e0; box-shadow: inset 0 5px 0 #ffe0ef, 0 3px 0 #f09cc4; }
[data-theme="w-beach"] .hole::after { background: #ffe29a; box-shadow: inset 0 5px 0 #fff1c9, 0 3px 0 #e6c26a; }
[data-theme="w-night"] .hole::after { background: #d9ceff; box-shadow: inset 0 5px 0 #f0ebff, 0 3px 0 #a894ef; }
.critter {
  position: absolute; left: 10%; right: 10%; height: 72%; bottom: -80%; z-index: 1;
  border: none; background: none; padding: 0; line-height: 1;
  font-size: clamp(42px, 15vw, 72px);
  transition: bottom .16s cubic-bezier(.3, 1.5, .5, 1);
  touch-action: manipulation;
}
.hole.up .critter { bottom: 16%; }
.hole.hit .critter { transition: bottom .25s; transform: scale(.85); }
.hole.ouch { animation: shake .3s; }

/* Kuis */
.quiz { width: min(100%, 460px); }
.quiz-card {
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: 22px 18px;
  box-shadow: var(--shadow); border: 3px solid var(--pink-soft); animation: popIn .4s cubic-bezier(.3, 1.5, .5, 1);
}
@keyframes popIn { from { transform: scale(.8); opacity: 0; } }
.quiz-num { font-size: 13px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 1px; }
.quiz-q { font-size: 22px; font-weight: 600; margin: 6px 0 16px; line-height: 1.3; }
.quiz-opts { display: grid; gap: 10px; }
.opt {
  border: 3px solid var(--pink-soft); background: #fff8fb; border-radius: 16px; padding: 12px 14px;
  font-size: 17px; font-weight: 500; text-align: left; transition: transform .1s, background .2s;
}
.opt:not(:disabled):active { transform: scale(.97); }
.opt.right { background: #e3fbef; border-color: var(--mint); animation: matchPop2 .4s; }
.opt.wrong { background: #ffe3e8; border-color: #ff8fa3; animation: shake .35s; }
@keyframes matchPop2 { 50% { transform: scale(1.04); } }
.quiz-fb { min-height: 1.4em; margin-top: 14px; font-size: 17px; font-weight: 600; text-align: center; }
.quiz-fb.ok { color: #1f9e72; }
.quiz-fb.nope { color: #e0466b; }

/* ---------- Modal hasil ---------- */
.modal {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px;
  background: rgba(106, 44, 82, .35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal.hidden { display: none; }
.modal-card {
  width: min(100%, 400px); background: var(--cream); border-radius: 28px; padding: 24px 20px 22px;
  text-align: center; border: 4px solid #fff; box-shadow: 0 20px 50px rgba(106, 44, 82, .3);
  animation: popIn .45s cubic-bezier(.3, 1.5, .5, 1);
}
.modal-card h2 { margin: 4px 0 8px; font-size: 26px; color: var(--pink-deep); }
.modal-emoji { font-size: 58px; line-height: 1; }
.bounce { animation: hop 1s ease-in-out infinite; }
.wobble { animation: wobble 1.2s ease-in-out infinite; display: inline-block; }
@keyframes wobble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.stars { display: flex; justify-content: center; gap: 6px; font-size: 46px; }
.star { color: #eadbe3; }
.star.on { color: #ffc21a; text-shadow: 0 3px 0 #e59d00; animation: starIn .5s backwards cubic-bezier(.3, 1.8, .5, 1); }
@keyframes starIn { from { transform: scale(0) rotate(-90deg); } }
.detail { margin: 4px 0 12px; color: var(--ink-soft); font-size: 15px; }
.love-note {
  background: #fff; border: 2px dashed var(--pink); border-radius: 18px; padding: 14px 16px;
  font-size: 17px; line-height: 1.45; text-align: left; margin-bottom: 18px;
}
.love-note .from { display: block; font-size: 13px; font-weight: 600; color: var(--pink-deep); margin-bottom: 4px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; font-size: 15px; padding: 11px 8px; white-space: nowrap; }

/* ---------- Surat ---------- */
#screen-letter { align-items: center; padding: 28px 16px 40px; gap: 22px; }
.letter {
  position: relative; width: min(100%, 520px); background: #fffdf7; border-radius: 12px;
  padding: 40px 24px 28px; margin-top: 20px;
  box-shadow: 0 16px 40px rgba(106, 44, 82, .2);
  background-image: repeating-linear-gradient(180deg, transparent 0 33px, #f7dce8 33px 34px);
  background-position: 0 14px;
}
.letter-seal {
  position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  font-size: 50px; animation: hop 1.5s infinite;
}
.letter h2 { font-family: 'Caveat', cursive; font-size: 40px; margin: 0 0 8px; color: var(--pink-deep); text-align: center; }
.polaroids {
  position: relative; display: flex; justify-content: center; align-items: flex-start;
  gap: 4px; margin: 10px 0 30px;
}
.polaroid {
  margin: 0; width: min(42%, 170px); background: #fff; padding: 8px 8px 0;
  border-radius: 4px; box-shadow: 0 8px 18px rgba(106, 44, 82, .22);
  animation: dropIn .7s backwards cubic-bezier(.3, 1.5, .5, 1);
}
.polaroid img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.polaroid figcaption {
  font-family: 'Caveat', cursive; font-size: 22px; text-align: center; padding: 4px 0 6px; color: var(--ink);
}
.polaroid.left { --tilt: -7deg; transform: rotate(var(--tilt)); }
.polaroid.right { --tilt: 6deg; transform: rotate(var(--tilt)) translateY(14px); animation-delay: .25s; }
.polaroid::before {
  content: ''; position: absolute; top: -10px; left: 50%; width: 56px; height: 20px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 182, 213, .75); border-radius: 2px;
}
.polaroid { position: relative; }
.polaroid-heart {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  font-size: 40px; z-index: 2; animation: hop 1.4s ease-in-out infinite;
  filter: drop-shadow(0 3px 4px rgba(106, 44, 82, .25));
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-40px) rotate(0); } }
.letter-body p {
  font-family: 'Caveat', cursive; font-size: 24px; line-height: 34px; margin: 0 0 34px;
  animation: fadeIn .8s backwards;
}
.letter-sign { font-family: 'Caveat', cursive; font-size: 28px; text-align: right; margin: 0; color: var(--pink-deep); }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }

@media (prefers-reduced-motion: reduce) {
  #bg-hearts, .mascots span, .lvl.current { animation: none !important; }
}

/* ---------- Owl pemandu ---------- */
.guide { display: flex; align-items: center; gap: 8px; margin: 8px 16px 0; min-height: 52px; }
.guide-owl { font-size: 40px; line-height: 1; flex-shrink: 0; transform-origin: bottom center; }
.guide-owl.bump { animation: owlBump .5s cubic-bezier(.3, 1.8, .5, 1); }
.guide-owl.happy { animation: owlBump .5s cubic-bezier(.3, 1.8, .5, 1), hop 1s .5s ease-in-out infinite; }
.guide-owl.sad { animation: wobble .5s ease-in-out 2; filter: saturate(.6); }
@keyframes owlBump { 0% { transform: scale(.8); } 60% { transform: scale(1.2) rotate(-8deg); } }
.bubble {
  position: relative; margin: 0; flex: 1; min-width: 0;
  background: #fff; color: var(--ink); border-radius: 16px; padding: 8px 12px;
  font-size: 14px; line-height: 1.35; box-shadow: 0 3px 0 var(--accent-shadow);
}
.bubble::before {
  content: ''; position: absolute; left: -7px; top: 50%; transform: translateY(-50%);
  border: 7px solid transparent; border-right-color: #fff; border-left: 0;
}
.bubble.talk { font-weight: 600; color: var(--pink-deep); animation: popIn .3s cubic-bezier(.3, 1.5, .5, 1); }

/* ---------- Combo ---------- */
.combo-pop {
  position: absolute; left: 50%; top: 14%; transform: translateX(-50%); z-index: 6; pointer-events: none;
  font-size: 26px; font-weight: 700; color: #ff8a00; white-space: nowrap;
  text-shadow: 0 3px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff, 0 6px 14px rgba(255, 138, 0, .35);
  animation: comboPop .9s ease-out forwards;
}
.combo-pop.big { font-size: 38px; color: #ff4d6d; }
@keyframes comboPop {
  0% { transform: translateX(-50%) scale(.3); opacity: 0; }
  25% { transform: translateX(-50%) scale(1.15); opacity: 1; }
  70% { transform: translateX(-50%) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) translateY(-24px); opacity: 0; }
}

/* ---------- Reaksi owl di hasil ---------- */
.owl-react { position: relative; display: inline-block; font-size: 64px; line-height: 1; }
.owl-react .owl-extra { position: absolute; right: -26px; top: -6px; font-size: 32px; }
.owl-react.happy .owl { display: inline-block; animation: hop 1s ease-in-out infinite; }
.owl-react.sad .owl { display: inline-block; animation: wobble 1.4s ease-in-out infinite; filter: saturate(.7); }
.owl-react.sad .owl-extra { right: -14px; top: 18px; font-size: 22px; animation: tear 1.4s ease-in infinite; }
@keyframes tear { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
.owl-line { margin: 6px 0 0; font-weight: 600; color: var(--accent2); font-size: 15px; }

/* ---------- Puzzle foto ---------- */
.puzzle-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.puzzle-board {
  display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px;
  width: min(92vw, 420px, calc((100dvh - 290px) * (var(--ar))));
  aspect-ratio: var(--ar);
  background: #fff; padding: 6px; border-radius: 14px; box-shadow: var(--shadow);
  transition: gap .5s, padding .5s;
}
.tile {
  border: none; padding: 0; border-radius: 6px; background-repeat: no-repeat;
  transition: transform .15s, box-shadow .15s, border-radius .5s; touch-action: manipulation;
}
.tile.sel { transform: scale(.9); box-shadow: 0 0 0 4px var(--pink), 0 6px 14px rgba(232, 85, 143, .4); z-index: 1; }
.tile.ok { box-shadow: inset 0 0 0 2px rgba(143, 227, 200, .9); }
.puzzle-board.solved { gap: 0; padding: 10px 10px 36px; }
.puzzle-board.solved .tile { border-radius: 0; box-shadow: none; }
.puzzle-peek {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%) scale(.9);
  width: min(92vw, 420px, calc((100dvh - 290px) * (var(--ar))));
  aspect-ratio: var(--ar); object-fit: cover; border-radius: 14px; border: 6px solid #fff;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 3;
}
.puzzle-peek.show { opacity: 1; transform: translateX(-50%) scale(1); }
.puzzle-peek-btn { font-size: 15px; padding: 10px 18px; touch-action: none; }

/* ---------- Level bonus ---------- */
.lvl.bonus { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 10px; background: linear-gradient(90deg, #fff7d6, #ffe3f1); }
.lvl.bonus .lvl-num { font-size: 16px; }
.letter-btn { margin-bottom: 18px; }

.puzzle-board { position: relative; }
.puzzle-caption {
  position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; opacity: 0;
  font-family: 'Caveat', cursive; font-size: 24px; color: var(--ink); transition: opacity .5s .3s;
}
.puzzle-board.solved .puzzle-caption { opacity: 1; }

/* ---------- Cari yang Beda ---------- */
.odd-wrap { width: min(100%, 420px); }
.odd-grid {
  display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px;
  width: min(100%, calc(100dvh - 240px)); margin: 0 auto;
  background: #fff; padding: 10px; border-radius: 20px; box-shadow: var(--shadow);
  animation: popIn .3s cubic-bezier(.3, 1.5, .5, 1);
}
.odd-cell {
  aspect-ratio: 1; border: none; border-radius: 12px; background: #fff5fa; padding: 0; line-height: 1;
  font-size: calc(min(88vw, 400px, 100dvh - 260px) / var(--n) * .55);
  touch-action: manipulation; transition: transform .1s;
}
.odd-cell:active { transform: scale(.92); }
.odd-cell { position: relative; }
.odd-cell.found { background: #e3fbef; animation: matchPop2 .35s; }
.odd-cell.nope { background: #ffe3e8; }

/* ---------- Ingat Urutan ---------- */
.simon-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; width: min(100%, 380px); }
.simon-status {
  background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 20px; font-weight: 600; font-size: 18px;
  box-shadow: 0 4px 0 var(--accent-shadow);
}
.simon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: min(100%, calc(100dvh - 320px)); }
.simon-pad {
  aspect-ratio: 1; border: 4px solid #fff; border-radius: 28px; font-size: clamp(40px, 13vw, 64px);
  box-shadow: 0 6px 0 rgba(0,0,0,.12); opacity: .7; filter: saturate(.7);
  transition: transform .1s, opacity .15s, filter .15s, box-shadow .15s; touch-action: manipulation;
}
.simon-pad.owl { background: #c9b2ff; }
.simon-pad.cat { background: #ffc98f; }
.simon-pad.heart { background: var(--accent-light); }
.simon-pad.star { background: #ffe07a; }
.simon-pad:not(:disabled) { opacity: 1; filter: none; }
.simon-pad.lit { opacity: 1; filter: brightness(1.12) saturate(1.3); transform: scale(1.07); box-shadow: 0 0 0 6px #fff, 0 0 28px 8px rgba(255, 255, 255, .9); }
.simon-pad.wrong { animation: shake .35s; background: #ff8fa3; }

.topbar-right { display: flex; gap: 8px; }
#btn-music.off { position: relative; opacity: .55; }
#btn-music.off::after {
  content: ''; position: absolute; width: 28px; height: 3px; border-radius: 2px;
  background: #e8558f; transform: rotate(-45deg);
}

/* ---------- Streak couple ---------- */
.streak-slot { width: 100%; }
.streak-slot[hidden] { display: none; }
#screen-map .streak-slot { margin-bottom: 18px; }
.streak-card {
  width: min(100%, 420px); margin: 0 auto; background: #fff; border-radius: var(--radius);
  padding: 14px 16px 10px; box-shadow: var(--shadow); border: 3px solid var(--pink-soft); text-align: center;
}
.streak-card.lit { border-color: #ffc27a; background: linear-gradient(180deg, #fff8ec, #fff); }
.streak-top { display: flex; align-items: center; gap: 10px; text-align: left; }
.streak-flame { font-size: 44px; line-height: 1; filter: grayscale(1); opacity: .45; }
.streak-card.lit .streak-flame { filter: none; opacity: 1; animation: flame 1.2s ease-in-out infinite; }
@keyframes flame { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.12) rotate(3deg); } }
.streak-count b { display: block; font-size: 30px; line-height: 1; color: #ff8a00; }
.streak-count small { font-size: 13px; color: var(--ink-soft); }
.streak-who { margin-left: auto; display: flex; flex-direction: column; gap: 4px; }
.who { font-size: 13px; font-weight: 600; background: #f6eef2; color: var(--ink-soft); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.who.ok { background: #e3fbef; color: #1f9e72; }
.streak-msg { margin: 10px 0 8px; font-size: 15px; line-height: 1.35; }
.streak-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.wk { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.wk span {
  width: 32px; height: 32px; border-radius: 50%; background: #f6eef2; display: grid; place-items: center; font-size: 17px;
}
.wk.both span { background: #fff0d6; box-shadow: 0 0 0 2px #ffc27a; }
.wk.today span { outline: 2px dashed var(--pink); outline-offset: 2px; }
.wk small { font-size: 10px; color: var(--ink-soft); white-space: nowrap; }
.who-pick { display: flex; gap: 10px; justify-content: center; padding: 2px 0 6px; }
.who-pick .btn { flex: 1; max-width: 170px; white-space: nowrap; font-size: 18px; }
.who-pick .btn { font-size: 16px; padding: 10px 16px; }
.streak-card .link-btn { font-size: 12px; }

.toast {
  position: fixed; left: 50%; top: 16px; z-index: 40; transform: translate(-50%, -140%);
  background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; padding: 12px 18px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(106, 44, 82, .25); border: 3px solid #ffc27a; max-width: calc(100vw - 32px); text-align: center;
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), opacity .2s; opacity: 0; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.push-btn { font-size: 15px; padding: 9px 16px; margin: 6px 0 2px; }
.push-note { margin: 6px 0 2px; font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.install-btn { font-size: 15px; padding: 10px 18px; }
.install-btn[hidden] { display: none; }

/* ---------- Demo: coba versi kalian ---------- */
.try-card {
  width: 100%; background: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
  border: 3px solid #e7dcff; text-align: left;
}
.try-title { margin: 0 0 10px; font-weight: 700; color: var(--accent2); font-size: 17px; text-align: center; }
.try-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.try-card label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.try-card input[type="text"], .try-card input:not([type]) {
  font: inherit; font-size: 16px; color: var(--ink); padding: 9px 12px; border-radius: 12px;
  border: 2px solid var(--pink-soft); background: #fff8fb; outline: none; width: 100%; min-width: 0;
  -webkit-user-select: text; user-select: text;
}
.try-card input:focus { border-color: var(--pink); }
.try-note { display: block; margin-top: 8px; font-size: 12px; color: var(--ink-soft); text-align: center; }

.demo-lock {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  background: #fff; border: 3px dashed #d8c6ff; border-radius: var(--radius); padding: 16px; margin-bottom: 18px;
}
.demo-lock b { font-size: 17px; color: var(--accent2); }
.demo-lock span { font-size: 14px; color: var(--ink-soft); }
.demo-lock .btn { margin-top: 6px; font-size: 16px; }

.packages { display: grid; gap: 12px; margin: 6px 0 16px; text-align: left; }
.package { background: #fff; border: 2px solid var(--pink-soft); border-radius: 18px; padding: 12px 14px; }
.package:first-child { border-color: var(--pink); }
.pk-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--accent2); }
.pk-name { font-weight: 700; font-size: 18px; color: var(--pink-deep); }
.pk-price { font-weight: 700; font-size: 20px; color: var(--ink); }
.pk-price small { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.package ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.45; }
a.btn { text-decoration: none; display: inline-block; }
.modal-card { max-height: calc(100dvh - 32px); overflow-y: auto; }

.polaroid.single { --tilt: -3deg; transform: rotate(var(--tilt)); width: min(62%, 240px); }
.letter-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

[hidden] { display: none !important; }
.pk-note { font-size: 13px; color: var(--ink-soft); margin-top: 2px; line-height: 1.35; }

.look-pick { margin-top: 12px; }
.look-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.look-label small { font-size: 11px; background: var(--accent2); color: #fff; padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
.theme-chips { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.theme-chip { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 2px 6px rgba(0,0,0,.15); padding: 0; }
.theme-chip.on { outline: 3px solid var(--c); outline-offset: 2px; }
.try-card select {
  font: inherit; font-size: 15px; color: var(--ink); padding: 8px 10px; border-radius: 12px;
  border: 2px solid var(--pink-soft); background: #fff; width: 100%; min-width: 0;
}

/* Foto muka (demo) */
.face-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.face-pick {
  position: relative; flex-direction: row !important; align-items: center; gap: 8px !important;
  border: 2px dashed #d8c6ff; border-radius: 14px; padding: 8px; cursor: pointer; font-size: 12px !important; line-height: 1.25;
}
.face-pick small { font-weight: 500; font-size: 10.5px; color: var(--ink-soft); }
.face-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.face-thumb {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: #f6eef2 center / cover no-repeat;
  display: grid; place-items: center; font-size: 22px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

/* Hemat tenaga HP saat main */
body.playing #bg-hearts { display: none; }
.guide-owl.happy { animation: owlBump .5s cubic-bezier(.3, 1.8, .5, 1), hop 1s .5s ease-in-out 2; }


/* ---------- Panah Cinta ---------- */
.timing-wrap { width: min(100%, 420px); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.timing-scene { width: 100%; height: min(46vh, 300px); border-radius: 24px; box-shadow: var(--shadow); display: block; }
.timing-target { font-size: 72px; line-height: 1; }
.timing-target.pop { animation: comboPop .6s ease-out; }
.timing-bar { position: relative; width: 100%; height: 56px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); overflow: hidden; border: 4px solid #fff; }
.timing-zone { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, #ffc2d9, #ff7eb0, #ffc2d9); border-radius: 999px; display: grid; place-items: center; transition: left .25s, width .25s; }
.timing-zone span { font-size: 22px; }
.timing-needle { position: absolute; top: -4px; bottom: -4px; width: 6px; margin-left: -3px; background: var(--ink); border-radius: 3px; box-shadow: 0 0 0 2px #fff; }
.timing-btn { touch-action: manipulation; }

/* ---------- Dunia 5: Rumah Kita ---------- */
.w-home { background: linear-gradient(160deg, #ffe7d1, #eadcff); }
#screen-game[data-theme="w-home"] { background: linear-gradient(180deg, #fff1e3 0%, #efe3ff 100%); }
[data-theme="w-home"] .back { background: repeating-linear-gradient(135deg, #c9a8ff 0 10px, #e3d3ff 10px 20px); }
[data-theme="w-home"] .hole::after { background: #ffd1a8; box-shadow: inset 0 5px 0 #ffe6cf, 0 3px 0 #e6a676; }

/* ---------- Contoh versi jadi ---------- */
.showcase { width: 100%; text-align: left; margin-top: 4px; }
.showcase h2 { margin: 0 0 4px; font-size: 19px; color: var(--pink-deep); text-align: center; }
.showcase > p { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-soft); text-align: center; line-height: 1.4; }
#showcase-list { display: flex; flex-direction: column; gap: 10px; }
.showcase-card {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; text-decoration: none;
  background: linear-gradient(135deg, var(--c1), var(--c2)); border: 3px solid #fff; box-shadow: var(--shadow); color: var(--ink);
}
.showcase-card:active { transform: scale(.98); }
.sc-faces { display: flex; flex-shrink: 0; }
.sc-faces img { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; }
.sc-faces img + img { margin-left: -14px; }
.sc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-text b { font-size: 16px; }
.sc-text small { font-size: 12px; opacity: .8; }
.sc-go { font-weight: 700; font-size: 14px; color: var(--accent); white-space: nowrap; }

.showcase-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 12px; padding-top: max(6px, env(safe-area-inset-top)); background: var(--ink); color: #fff; font-size: 13px;
}
.showcase-bar .sb-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.showcase-bar .sb-back { color: #fff; opacity: .85; font-size: 13px; }
.showcase-bar .btn.small { font-size: 12.5px; padding: 6px 12px; box-shadow: 0 3px 0 var(--pink-deep); }
body.has-showcase-bar #app { padding-top: 44px; }
body.has-showcase-bar #screen-game { height: calc(100dvh - 44px); }

/* Penjelasan produk (demo) */
.pitch {
  width: 100%; background: #fff; border-radius: var(--radius); padding: 18px 18px 20px; box-shadow: var(--shadow);
  border: 3px solid var(--pink-soft); text-align: center;
}
.pitch-tag {
  display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px;
  background: var(--pink-soft); color: var(--pink-deep); font-size: 13px; font-weight: 600;
}
.pitch h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; color: var(--ink); }
.pitch > p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.pitch-points { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; text-align: left; }
.pitch-points li { display: flex; gap: 10px; align-items: center; background: #fff8fb; border-radius: 14px; padding: 8px 12px; font-size: 14px; }
.pitch-points b { font-size: 20px; }
.pitch .pitch-price { margin: 0 0 10px; font-size: 15px; color: var(--ink); }
.pitch-price b { color: var(--pink-deep); font-size: 19px; }
.try-sub { margin: -6px 0 12px; font-size: 13px; color: var(--ink-soft); text-align: center; }
.try-upsell { margin-top: 12px; padding: 12px; border-radius: 14px; background: #fff3f8; border: 2px dashed var(--pink-soft); text-align: center; }
.try-upsell p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.try-upsell .btn { font-size: 15px; padding: 9px 18px; }
.play-hint { margin: -8px 0 0; font-size: 13px; color: var(--ink-soft); text-align: center; line-height: 1.4; max-width: 320px; }

/* ---------- Desktop ---------- */
.desk-nav, .hero-art { display: none; }
html { scroll-behavior: smooth; }
@media (min-width: 700px) {
  /* Game dibuat buat layar HP (potret): di layar lebar tampil di bingkai selebar HP */
  #screen-game { width: 100%; max-width: 480px; margin: 0 auto; box-shadow: 0 0 0 1px rgba(232, 85, 143, .08), 0 20px 60px rgba(120, 40, 100, .18); }
}
@media (min-width: 960px) {
  body.is-demo #screen-home { justify-content: flex-start; padding: 0 40px 72px; }
  body.is-demo .desk-nav {
    display: flex; align-items: center; justify-content: space-between; width: min(100%, 1120px); margin: 0 auto;
    padding: 14px 0; position: sticky; top: 0; z-index: 5;
    background: rgba(255, 240, 247, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(232, 85, 143, .12), -40px 0 0 rgba(255, 240, 247, .82), 40px 0 0 rgba(255, 240, 247, .82);
  }
  .desk-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; color: var(--pink-deep); text-decoration: none; }
  .desk-brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 4px 12px rgba(232, 85, 143, .25); }
  .desk-nav nav { display: flex; align-items: center; gap: 26px; }
  .desk-nav nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
  .desk-nav nav a:hover { color: var(--pink-deep); }

  body.is-demo .home-wrap {
    width: min(100%, 1120px); margin: 28px auto 0; display: grid; grid-template-columns: 1.05fr .95fr;
    column-gap: 64px; row-gap: 26px; align-items: center; text-align: left;
    grid-template-areas: "title art" "pitch art" "show show" "tut tut" "play play" "talk talk" "inst inst" "reset reset";
  }
  body.is-demo .mascots { display: none; }
  body.is-demo .title { grid-area: title; font-size: 76px; }
  body.is-demo .pitch { grid-area: pitch; background: none; box-shadow: none; border: 0; padding: 0; text-align: left; }
  body.is-demo .pitch h2 { font-size: 40px; }
  body.is-demo .pitch > p { font-size: 17px; }
  body.is-demo .pitch-points { grid-template-columns: 1fr 1fr; }
  body.is-demo .pitch-points li { background: #fff; box-shadow: var(--shadow); font-size: 14.5px; }
  body.is-demo .pitch .btn { font-size: 20px; padding: 14px 34px; }

  body.is-demo .hero-art { grid-area: art; display: grid; place-items: center; position: relative; min-height: 520px; }
  .hero-art img { width: min(100%, 440px); border-radius: 22%; box-shadow: 0 30px 70px rgba(150, 60, 160, .3); animation: heroFloat 4s ease-in-out infinite; }
  .hero-chip {
    position: absolute; background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; padding: 10px 16px;
    border-radius: 999px; box-shadow: 0 10px 24px rgba(150, 60, 160, .18); animation: heroFloat 4s ease-in-out infinite;
  }
  .hero-chip.c1 { top: 6%; left: 2%; animation-delay: -1s; }
  .hero-chip.c2 { top: 16%; right: 0; animation-delay: -2s; }
  .hero-chip.c3 { bottom: 18%; left: 0; animation-delay: -3s; }
  .hero-chip.c4 { bottom: 6%; right: 6%; animation-delay: -.5s; }
  @keyframes heroFloat { 50% { transform: translateY(-12px); } }

  body.is-demo .showcase { grid-area: show; margin-top: 30px; scroll-margin-top: 90px; }
  body.is-demo .showcase h2 { font-size: 30px; }
  body.is-demo .showcase > p { font-size: 16px; }
  body.is-demo #showcase-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  body.is-demo .showcase-card { padding: 16px; }

  body.is-demo .try-card {
    grid-area: try; width: min(100%, 920px); justify-self: center; padding: 26px 30px; margin-top: 20px; scroll-margin-top: 90px;
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-items: start;
  }
  body.is-demo .try-title { grid-column: 1 / -1; font-size: 26px; }
  body.is-demo .try-sub { grid-column: 1 / -1; font-size: 15px; }
  body.is-demo .try-upsell { grid-column: 1 / -1; }
  body.is-demo #showcase-list { grid-template-columns: minmax(0, 420px); justify-content: center; }
  body.is-demo .showcase { text-align: center; }
  body.is-demo .tutorial { grid-area: tut; width: min(100%, 560px); justify-self: center; padding: 24px; scroll-margin-top: 90px; }
  body.is-demo .tutorial h2 { font-size: 28px; }
  body.is-demo #btn-talk { grid-area: talk; justify-self: center; }
  body.is-demo #btn-play { grid-area: play; justify-self: center; }
  body.is-demo .play-hint { grid-area: hint; justify-self: center; }
  body.is-demo #btn-install { grid-area: inst; justify-self: center; }
  body.is-demo #btn-reset { grid-area: reset; justify-self: center; }
}

/* Halaman demo: logo Love Quest (bukan karakter hewan), judul tanpa nama pasangan */
.home-logo { display: none; }
body.is-demo .mascots, body.is-demo .title-owner { display: none; }
body.is-demo .home-logo { display: block; width: 150px; height: 150px; border-radius: 34px; box-shadow: 0 14px 30px rgba(150, 60, 160, .28); animation: heroFloat 4s ease-in-out infinite; }
body.is-demo .title-2 { font-size: 1em; }
@keyframes heroFloat { 50% { transform: translateY(-10px); } }
@media (min-width: 960px) { body.is-demo .home-logo { display: none; } }

/* Game pasangan: bagian khusus demo langsung disembunyiin dari awal (sebelum JS jalan) */
body.is-couple [data-demo-only] { display: none !important; }

/* Foto muka / foto kalian di game */
.critter-face { width: 100%; height: 100%; max-width: 88px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.18); display: block; margin: 0 auto; pointer-events: none; }
.card-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; pointer-events: none; }
.front:has(.card-photo) { padding: 0; overflow: hidden; }

/* ---------- Kartu Deep Talk ---------- */
.talk-btn { font-size: 16px; padding: 11px 20px; }
#screen-talk { padding: 0 16px 40px; max-width: 540px; margin: 0 auto; width: 100%; }
.topbar-gap { width: 46px; }
.talk-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.talk-title { margin: 4px 0 0; font-size: 30px; color: var(--pink-deep); }
.talk-sub { margin: -6px 0 0; color: var(--ink-soft); font-size: 15px; }
.talk-cats { display: flex; gap: 8px; overflow-x: auto; width: calc(100% + 32px); margin: 0 -16px; padding: 4px 16px 8px; scrollbar-width: none; }
.talk-cats::-webkit-scrollbar { display: none; }
.talk-cat { flex-shrink: 0; border: 0; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; box-shadow: 0 3px 0 var(--accent-shadow, #f3c3d8); white-space: nowrap; }
.talk-cat.on { background: var(--pink); color: #fff; box-shadow: 0 3px 0 var(--pink-deep); }
.talk-card { --talk: var(--pink); width: min(100%, 360px); aspect-ratio: 3 / 4; border: 0; padding: 0; background: none; perspective: 1200px; cursor: pointer; }
.talk-inner { position: relative; display: block; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.3, 1.2, .5, 1); transform-style: preserve-3d; }
.talk-card.flipped .talk-inner { transform: rotateY(180deg); }
.talk-back, .talk-front { position: absolute; inset: 0; border-radius: 28px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 24px; box-shadow: 0 14px 30px rgba(106, 44, 82, .18); }
.talk-back { background: repeating-linear-gradient(45deg, rgba(255,255,255,.14) 0 14px, transparent 14px 28px), linear-gradient(150deg, var(--accent-light, #ff9cc4), var(--pink-deep)); color: #fff; gap: 14px; border: 6px solid #fff; }
.talk-logo { font-size: 64px; animation: hop 1.6s ease-in-out infinite; }
.talk-back b { font-size: 20px; }
.talk-front { background: #fff; transform: rotateY(180deg); border: 6px solid var(--talk); gap: 18px; }
.talk-front small { font-size: 14px; font-weight: 700; color: #fff; background: var(--talk); padding: 6px 14px; border-radius: 999px; }
.talk-front p { margin: 0; font-size: clamp(22px, 6.4vw, 28px); line-height: 1.3; font-weight: 600; color: var(--ink); }
.talk-wrap > .btn { min-width: 220px; }

/* ---------- Main Bareng (online) ---------- */
.home-extra { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
#screen-online { padding: 0 16px 40px; max-width: 540px; margin: 0 auto; width: 100%; }
.ol-card { width: 100%; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.ol-label { margin: 0 0 10px; font-weight: 600; color: var(--ink-soft); font-size: 14px; }
.ol-who-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ol-who-btn { border: 2px solid var(--pink-soft); background: #fff; border-radius: 14px; padding: 10px; font-size: 16px; font-weight: 600; color: var(--ink); }
.ol-who-btn.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.ol-players { display: flex; align-items: center; justify-content: center; gap: 14px; }
.ol-player { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 96px; opacity: .55; transition: opacity .3s; }
.ol-player.on { opacity: 1; }
.ol-ava { width: 64px; height: 64px; border-radius: 50%; background: var(--pink-soft); display: grid; place-items: center; font-size: 34px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(214, 80, 140, .2); }
.ol-ava img { width: 100%; height: 100%; object-fit: cover; }
.ol-player.on .ol-ava { box-shadow: 0 0 0 3px #3cc4a0, 0 4px 10px rgba(60, 196, 160, .3); }
.ol-player b { font-size: 16px; }
.ol-player small { font-size: 12px; color: var(--ink-soft); }
.ol-player.on small { color: #25a384; font-weight: 600; }
.ol-vs { font-size: 26px; animation: hop 1.4s ease-in-out infinite; }
.ol-status { margin: 12px 0 0; font-size: 15px; color: var(--ink-soft); }
.ol-status.ok { color: #25a384; font-weight: 600; }
.ol-code { margin: 8px 0 0; font-size: 15px; }
.ol-code b { font-size: 26px; letter-spacing: 4px; color: var(--pink-deep); }
.ol-code-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.ol-join { display: flex; gap: 6px; }
.ol-join input { width: 86px; font: inherit; font-size: 16px; text-align: center; letter-spacing: 3px; border: 2px solid var(--pink-soft); border-radius: 12px; padding: 6px 8px; }
.ol-games { width: 100%; display: grid; gap: 10px; }
.ol-game { display: flex; align-items: center; gap: 14px; text-align: left; border: 0; background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: 0 4px 0 var(--accent-shadow, #f3c3d8); color: var(--ink); }
.ol-game:disabled { opacity: .5; }
.ol-game:not(:disabled):active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-shadow, #f3c3d8); }
.ol-game-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--pink-soft); display: grid; place-items: center; font-size: 26px; }
.ol-game b { display: block; font-size: 17px; }
.ol-game small { font-size: 13px; color: var(--ink-soft); }
.ol-tebak-who { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; color: var(--pink-deep); margin-bottom: 6px; }
.ol-mini { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--pink-soft); font-size: 18px; }
.ol-mini img { width: 100%; height: 100%; object-fit: cover; }
.opt.picked { outline: 3px solid var(--pink); }
.tile.peer-sel { box-shadow: 0 0 0 4px #9a6bff, 0 6px 14px rgba(154, 107, 255, .4); }
.memory-grid.not-my-turn { opacity: .75; }

/* ---------- Profil (masuk pakai tanggal lahir) ---------- */
.profile-gate { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(106, 44, 82, .4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .25s ease; }
.profile-gate.out { opacity: 0; transition: opacity .3s; }
.pg-card { width: min(100%, 380px); background: var(--cream); border: 4px solid #fff; border-radius: 28px; padding: 24px 20px 18px; text-align: center; box-shadow: 0 20px 50px rgba(106, 44, 82, .3); }
.pg-card h2 { margin: 10px 0 6px; font-size: 25px; color: var(--pink-deep); }
.pg-card p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
.pg-avas { display: flex; justify-content: center; align-items: center; gap: 8px; }
.pg-ava { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; background: var(--pink-soft); display: grid; place-items: center; font-size: 32px; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(214, 80, 140, .2); }
.pg-ava img { width: 100%; height: 100%; object-fit: cover; }
.pg-heart { font-size: 24px; }
.pg-form { display: flex; flex-direction: column; gap: 10px; }
.pg-form input { font: inherit; font-size: 17px; padding: 11px 14px; border: 2px solid var(--pink-soft); border-radius: 14px; text-align: center; background: #fff; color: var(--ink); }
.pg-wrong { color: #d9304f !important; font-weight: 600; margin: 10px 0 0 !important; }
.pg-hint { margin: 12px 0 0 !important; font-size: 13px !important; background: #fff; border-radius: 12px; padding: 8px 10px; }
.pg-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.pg-card .link-btn { margin-top: 12px; }

/* ---------- Pilih mode main ---------- */
.mode-pick { display: grid; gap: 12px; margin: 14px 0 10px; }
.mode-card { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; border: 3px solid var(--pink-soft); background: #fff; border-radius: 20px; padding: 14px; color: var(--ink); box-shadow: 0 5px 0 var(--accent-shadow, #f3c3d8); }
.mode-card:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--accent-shadow, #f3c3d8); }
.mode-card span { grid-row: span 2; font-size: 40px; text-align: center; }
.mode-card b { font-size: 19px; }
.mode-card small { font-size: 13px; color: var(--ink-soft); line-height: 1.35; }
.mode-card.duo { border-color: #d8c6ff; }

/* ---------- Main Berdua: peta & kartu room ---------- */
.ol-me { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.ol-me .link-btn { font-size: 13px; }
.ol-friends { margin-top: 12px; border-top: 2px dashed var(--pink-soft); padding-top: 10px; }
.ol-friends summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-soft); list-style: none; }
.ol-friends summary::-webkit-details-marker { display: none; }
.ol-map { width: 100%; }
.ol-section { display: flex; justify-content: space-between; align-items: center; margin: 8px 2px 10px; font-weight: 700; font-size: 17px; color: var(--ink); text-align: left; }
.ol-section span { font-size: 14px; background: #fff; padding: 4px 10px; border-radius: 999px; box-shadow: 0 3px 0 var(--accent-shadow, #f3c3d8); }
.ol-map .world { text-align: left; }

.showcase-credit { margin: 8px 0 0; font-size: 11px; opacity: .6; }

/* Banner giliran (Kartu Kembar online) */
.ol-turn { width: min(100%, 440px); margin: 0 auto 10px; border-radius: 16px; padding: 10px 14px; text-align: center; background: #f3eef8; color: var(--ink-soft); border: 2px dashed #d8c6ff; transition: background .25s, color .25s; }
.ol-turn b { display: block; font-size: 18px; }
.ol-turn span { font-size: 13px; }
.ol-turn.mine { background: #e3fbef; color: #1f8a63; border: 2px solid #8fe3c8; animation: turnPop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes turnPop { from { transform: scale(.9); } }
.ol-cardwrap { width: 100%; display: flex; flex-direction: column; align-items: center; }
.ol-cardwrap .memory-grid { width: min(100%, 440px, calc((100dvh - 300px) / var(--ratio))); }

/* Video tutorial di halaman depan */
.tutorial { width: 100%; background: #fff; border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); text-align: center; }
.tutorial h2 { margin: 0 0 6px; font-size: 22px; color: var(--pink-deep); }
.tutorial p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15px; }
.tutorial video { width: min(100%, 320px); aspect-ratio: 9 / 16; border-radius: 18px; background: #1c1226; box-shadow: 0 10px 24px rgba(106, 44, 82, .2); }

/* Game pasangan lagi dimuat: tampilan bawaan disembunyiin biar nggak kedip "Ayang's Love Quest" */
body.booting #app, body.booting #bg-hearts { visibility: hidden; }
body.booting::after {
  content: '💖'; position: fixed; inset: 0; display: grid; place-items: center; font-size: 64px;
  animation: bootPulse 1s ease-in-out infinite;
}
body.booting::before {
  content: 'Lagi nyiapin game kalian…'; position: fixed; left: 0; right: 0; top: calc(50% + 52px); text-align: center;
  font-weight: 600; font-size: 16px; color: var(--ink-soft);
}
@keyframes bootPulse { 50% { transform: scale(1.18); } }

/* Tab Petualangan / Per game (Main Sendiri & Main Berdua) */
.mode-tabs { display: flex; gap: 6px; padding: 5px; margin: 4px 0 14px; background: rgba(255,255,255,.7); border-radius: 16px; box-shadow: 0 3px 0 var(--accent-shadow, #f3c3d8); width: 100%; }
.mode-tabs button { flex: 1; border: 0; background: none; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink-soft); padding: 9px 6px; border-radius: 12px; white-space: nowrap; }
.mode-tabs button[aria-selected=true] { background: var(--pink); color: #fff; box-shadow: 0 3px 0 var(--pink-deep); }
.track-list { display: grid; gap: 10px; width: 100%; }
.track-prog { margin-left: auto; text-align: right; font-weight: 700; color: var(--pink-deep); font-size: 15px; white-space: nowrap; }
.track-prog small { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.ol-back { display: block; margin: 0 0 8px; text-align: left; }
.track-card { text-align: left; }

/* Hasil mode skor */
.score-big { font-size: 64px; font-weight: 700; color: var(--pink-deep); line-height: 1; margin: 6px 0 2px; }
.score-big small { display: block; font-size: 16px; color: var(--ink-soft); font-weight: 600; margin-top: 4px; }

/* ---------- Gambar Udara ---------- */
#screen-draw { padding: 0 12px 24px; max-width: 540px; margin: 0 auto; width: 100%; }
.draw-status { text-align: center; font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; min-height: 20px; }
.draw-stage { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; background: linear-gradient(160deg, #fff4f9, #f1ebff); box-shadow: var(--shadow); border: 4px solid #fff; }
.draw-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
#screen-draw.cam-off .draw-stage video { visibility: hidden; }
.draw-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.draw-cursor { --c: #ff4f8b; position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff; background: transparent; box-shadow: 0 0 0 3px var(--c); pointer-events: none; transition: background .1s; }
.draw-cursor.on { background: var(--c); }
#screen-draw .draw-stage video, #screen-draw .draw-cursor { display: none; }
.pg-opts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.pg-opts .btn { margin-top: 0; }
.draw-cursor[hidden] { display: none; }
.draw-secret { position: absolute; left: 12px; right: 12px; top: 12px; margin: 0; background: rgba(43,27,51,.82); color: #fff; border-radius: 16px; padding: 10px 14px; font-size: 15px; text-align: center; }
.draw-secret b { color: #ffd166; font-size: 22px; display: block; margin: 4px 0 2px; letter-spacing: 1px; }
.draw-secret small { display: block; font-size: 13px; opacity: .85; }
.draw-secret .link-btn { color: #ffd1e3; font-size: 13px; margin-top: 4px; }
.draw-secret .btn { margin-top: 8px; }
.draw-guess { display: flex; gap: 8px; margin-top: 10px; }
.draw-guess input { flex: 1; font: inherit; font-size: 16px; border: 2px solid var(--pink-soft); border-radius: 14px; padding: 9px 12px; }
.draw-guess[hidden] { display: none; }
.draw-tools { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.draw-colors { display: flex; gap: 10px; justify-content: center; }
.draw-color { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 2px 6px rgba(0,0,0,.18); padding: 0; }
.draw-color.on { outline: 3px solid var(--c); outline-offset: 2px; }
.draw-size { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 18px; }
.draw-size input { width: 60%; }
.draw-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.draw-btns .btn.on { background: #ff4f8b; color: #fff; border-color: #ff4f8b; }

/* Gelut Sayang */
.fight-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; }
.fight-view { position: relative; flex: 1; min-height: 0; }
.fight-pad { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px max(10px, env(safe-area-inset-bottom)); user-select: none; -webkit-user-select: none; touch-action: none; }
.fight-pad > div { display: flex; gap: 8px; }
.fight-pad button { width: 60px; height: 60px; border-radius: 50%; border: 3px solid #fff; background: rgba(255,255,255,.9); font-size: 26px; box-shadow: 0 4px 0 rgba(160,60,120,.25); touch-action: none; -webkit-tap-highlight-color: transparent; padding: 0; }
.fight-pad .fp-act button { width: 54px; height: 54px; font-size: 24px; }
.fight-pad button.on { transform: translateY(3px) scale(.94); box-shadow: 0 1px 0 rgba(160,60,120,.25); background: #ffe1ee; }
.fight-pad .sp { opacity: .45; }
.fight-pad .sp.ready { opacity: 1; background: #ffe58a; animation: spReady .8s ease-in-out infinite alternate; }
@keyframes spReady { to { box-shadow: 0 0 0 6px rgba(255,176,32,.35), 0 4px 0 rgba(160,60,120,.25); } }
@media (max-width: 360px) { .fight-pad button { width: 52px; height: 52px; font-size: 22px; } .fight-pad .fp-act button { width: 46px; height: 46px; font-size: 20px; } .fight-pad > div { gap: 5px; } }

/* Perang Bantal */
.pw-pad { padding-left: 14px; }
.pw-stick { position: relative; width: 104px; height: 104px; border-radius: 50%; background: rgba(255,255,255,.65); border: 3px solid #fff; box-shadow: inset 0 0 0 2px rgba(232,85,143,.15); touch-action: none; }
.pw-stick span { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #ff8fb7; box-shadow: 0 3px 0 rgba(160,60,120,.3); pointer-events: none; }
.pw-pad .fp-act button { width: 64px; height: 64px; font-size: 28px; }


/* Ikon 3D pengganti emoji (js/fx.js) */
img.fx { display: inline-block; width: 1.18em; height: 1.18em; vertical-align: -0.22em; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }

/* Kartu game di menu (js/game-look.js) */
.gt-head { display: flex; flex-direction: column; align-items: flex-start; margin: 14px 4px 10px; text-align: left; }
.gt-head b { font-size: 19px; color: var(--ink); }
.gt-head small { font-size: 13px; color: var(--ink-soft); }
.gt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.gt { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 138px; padding: 14px 13px 13px; border: 0; border-radius: 22px; text-align: left; font: inherit; color: #3d1f3a;
  background: #fff; background: radial-gradient(110% 80% at 100% 0%, color-mix(in srgb, var(--g) 30%, transparent), transparent 62%), linear-gradient(165deg, color-mix(in srgb, var(--g) 13%, #fff), #fff 75%);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--g) 38%, #f3c3d8), 0 12px 22px -14px color-mix(in srgb, var(--g) 80%, transparent);
  transition: transform .12s ease; -webkit-tap-highlight-color: transparent; }
.gt::after { content: ''; position: absolute; right: -22px; bottom: -22px; width: 78px; height: 78px; border-radius: 50%; background: color-mix(in srgb, var(--g) 14%, transparent); pointer-events: none; }
.gt:not(:disabled):active { transform: translateY(3px) scale(.98); box-shadow: 0 2px 0 color-mix(in srgb, var(--g) 38%, #f3c3d8); }
.gt:disabled { opacity: .5; }
.gt-icon { width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 19px; font-size: 38px; background: color-mix(in srgb, var(--g) 20%, #fff); box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--g) 25%, transparent); }
.gt-name { font-size: 16px; line-height: 1.15; font-weight: 700; }
.gt-sub { font-size: 12px; line-height: 1.25; color: #8a6b80; }
.gt-tag { position: absolute; top: 11px; right: 11px; padding: 4px 9px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; color: color-mix(in srgb, var(--g) 75%, #3d1f3a); box-shadow: 0 2px 0 color-mix(in srgb, var(--g) 28%, #fff); }
@media (max-width: 350px) { .gt { min-height: 124px; padding: 12px 10px; } .gt-icon { width: 50px; height: 50px; font-size: 32px; } .gt-name { font-size: 15px; } }

/* Peliharaan Kita */
.pet-root { width: 100%; max-width: 460px; margin: 0 auto; padding: 4px 14px 24px; display: flex; flex-direction: column; gap: 12px; }
.pet-load { text-align: center; color: var(--ink-soft); margin-top: 40px; }
.pet-head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; }
.pet-name { border: 0; background: none; font: inherit; font-size: 24px; font-weight: 700; color: var(--ink); text-align: left; padding: 0; }
.pet-lvl { background: linear-gradient(135deg, #ffb020, #ff6f9f); color: #fff; font-weight: 700; border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.pet-xp { grid-column: span 2; height: 9px; border-radius: 6px; background: #ffe1ee; overflow: hidden; }
.pet-xp b { display: block; height: 100%; background: linear-gradient(90deg, #ff6f9f, #ffb020); border-radius: 6px; transition: width .4s; }
.pet-room { position: relative; height: 300px; border-radius: 26px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
  background: radial-gradient(120% 70% at 50% 0%, #fff6d8, transparent 60%), linear-gradient(180deg, #ffe6f2 0%, #ffd9ea 62%, #f6c9de 62%, #efb8d1 100%); box-shadow: inset 0 -6px 0 rgba(160,60,120,.12), 0 6px 0 #f3c3d8; transition: filter .4s; }
.pet-room.night { filter: brightness(.55) saturate(.8); }
.pet-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 34px, transparent 34px 68px); }
.pet-body { position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%) scale(var(--sz, 1)); transform-origin: 50% 100%; font-size: 120px; line-height: 1; animation: petBob 1.8s ease-in-out infinite; z-index: 2; }
.pet-body.sleep { animation: petSleep 3s ease-in-out infinite; }
.pet-body img.fx { width: 1em; height: 1em; vertical-align: 0; }
.pet-outfit { position: absolute; left: 50%; top: -18%; transform: translateX(-50%); font-size: 50px; }
@keyframes petBob { 0%, 100% { transform: translateX(-50%) scale(var(--sz, 1)) translateY(0); } 50% { transform: translateX(-50%) scale(calc(var(--sz, 1) * 1.04), calc(var(--sz, 1) * .96)) translateY(-6px); } }
@keyframes petSleep { 0%, 100% { transform: translateX(-50%) scale(var(--sz, 1)) rotate(-4deg); } 50% { transform: translateX(-50%) scale(var(--sz, 1)) rotate(4deg); } }
.pet-bubble { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: #fff; border-radius: 18px; padding: 7px 14px; font-weight: 600; color: #5a2a52; box-shadow: 0 3px 0 rgba(160,60,120,.15); white-space: nowrap; z-index: 3; }
.pet-layer { position: absolute; inset: 0; z-index: 4; }
.pet-picker { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 8px; justify-content: center; background: rgba(255,255,255,.92); border-radius: 18px; padding: 8px; }
.pet-picker button { flex: 1; border: 0; background: #fff3f8; border-radius: 14px; font-size: 30px; padding: 6px 0 4px; display: flex; flex-direction: column; align-items: center; }
.pet-picker button small { font-size: 11px; color: #8a6b80; }
.pet-picker .x { flex: 0 0 44px; font-size: 18px; }
.pet-hint { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.92); border-radius: 14px; padding: 5px 12px; font-size: 14px; font-weight: 600; color: #c2306f; white-space: nowrap; }
.pet-soap { position: absolute; left: 0; top: 0; font-size: 40px; pointer-events: none; transform: translate(-100px, -100px); }
.pet-bub { position: absolute; font-size: 24px; pointer-events: none; animation: petBub 1.2s ease-out forwards; }
@keyframes petBub { to { transform: translateY(-50px) scale(1.4); opacity: 0; } }
.pet-prog { position: absolute; left: 30px; right: 30px; bottom: 14px; height: 10px; border-radius: 6px; background: rgba(255,255,255,.8); overflow: hidden; }
.pet-prog b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8fd3ff, #3b9cff); }
.pet-ball { position: absolute; left: 0; top: 0; width: 52px; height: 52px; border: 0; background: none; font-size: 44px; padding: 0; touch-action: none; }
.pet-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; background: #fff; border-radius: 20px; padding: 12px 14px; box-shadow: 0 4px 0 #f3c3d8; }
.pet-stat { display: flex; align-items: center; gap: 8px; }
.pet-stat > span { font-size: 24px; }
.pet-stat div { flex: 1; }
.pet-stat small { display: block; font-size: 12px; color: #8a6b80; font-weight: 600; }
.pet-stat i { display: block; height: 8px; border-radius: 5px; background: #f6e3ec; overflow: hidden; }
.pet-stat i b { display: block; height: 100%; background: var(--c); border-radius: 5px; transition: width .4s; }
.pet-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pet-actions button { border: 0; background: #fff; border-radius: 18px; padding: 10px 0 8px; font: inherit; font-size: 13px; font-weight: 700; color: #5a2a52; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 4px 0 #f3c3d8; }
.pet-actions button span { font-size: 30px; }
.pet-actions button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #f3c3d8; }
.pet-actions button:disabled { opacity: .45; }
.pet-outfits { display: flex; gap: 8px; justify-content: center; }
.pet-outfits button { width: 54px; border: 2px solid #ffe1ee; background: #fff; border-radius: 14px; font-size: 24px; padding: 4px 0 2px; display: flex; flex-direction: column; align-items: center; }
.pet-outfits button small { font-size: 10px; color: #8a6b80; }
.pet-outfits button.on { border-color: #ff6f9f; background: #fff0f6; }
.pet-outfits button:disabled { opacity: .5; }
.pet-couple { background: rgba(255,255,255,.75); border-radius: 18px; padding: 10px 14px; text-align: center; }
.pet-couple p { margin: 0 0 4px; font-size: 14px; color: #5a2a52; }
.pet-couple p span { color: #c2306f; font-weight: 700; }
.pet-couple small { display: block; font-size: 12px; color: #8a6b80; }
.pet-local { margin-top: 4px; opacity: .8; }
.pet-btn { margin-top: 2px; }

/* Tombol jeda & menu jeda */
.pause-btn { position: relative; width: 46px; height: 46px; flex-shrink: 0; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 4px 0 #f3c3d8; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0; -webkit-tap-highlight-color: transparent; }
.pause-btn i, .pause-ico i { display: block; width: 6px; height: 18px; border-radius: 3px; background: var(--pink-deep, #e8558f); }
.pause-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #f3c3d8; }
.pause-ov { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; background: rgba(70, 25, 60, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: pauseIn .18s ease-out; }
.pause-ov[hidden] { display: none; }
@keyframes pauseIn { from { opacity: 0; } }
.pause-card { width: min(320px, 100%); background: #fff; border-radius: 28px; padding: 24px 22px 20px; text-align: center; box-shadow: 0 8px 0 #f3c3d8, 0 20px 40px -12px rgba(90, 20, 80, .45); display: flex; flex-direction: column; gap: 10px; animation: pauseCard .25s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pauseCard { from { transform: scale(.85); opacity: 0; } }
.pause-ico { margin: 0 auto 2px; width: 64px; height: 64px; border-radius: 22px; background: #ffe6f0; display: flex; align-items: center; justify-content: center; gap: 9px; }
.pause-ico i { width: 9px; height: 26px; border-radius: 4px; }
.pause-card h2 { margin: 0; font-size: 24px; color: var(--ink); }
.pause-card p { margin: 0 0 6px; font-size: 14px; color: var(--ink-soft); }
.pause-card .btn { width: 100%; }
#screen-game { position: relative; }

/* Label kecil di bawah tombol aksi game */
.fight-pad button[data-label] { position: relative; }
.fight-pad button[data-label]::after { content: attr(data-label); position: absolute; left: 50%; bottom: -17px; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: #8a3f6e; white-space: nowrap; pointer-events: none; }
.fight-pad:has(button[data-label]) { padding-bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px)); }
/* Ganti karakter (Jalan Pulang) */
.fight-pad .fp-act .cp-swap { width: auto; min-width: 64px; height: 54px; border-radius: 18px; display: flex; align-items: center; gap: 6px; padding: 0 12px 0 6px; font-size: 13px; line-height: 1.1; font-weight: 700; color: #5a2a52; white-space: nowrap; }
.fight-pad .fp-act .cp-swap img:not(.fx) { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sw, #ff7a2f); flex-shrink: 0; }
.fight-pad .fp-act .cp-swap img.fx { width: 1.2em; height: 1.2em; }

/* Pilih hewan peliharaan */
.pet-head { grid-template-columns: 1fr auto auto; }
.pet-head .pet-xp { grid-column: span 3; }
.pet-swap { border: 0; background: #fff; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 12px; font-weight: 700; color: #8a3f6e; box-shadow: 0 2px 0 #f3c3d8; white-space: nowrap; }
.pet-choose { text-align: center; padding-top: 6px; }
.pet-choose h2 { margin: 0 0 4px; font-size: 22px; color: var(--ink); }
.pet-choose p { margin: 0 0 14px; font-size: 14px; color: var(--ink-soft); }
.pet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.pet-grid button { border: 2px solid #ffe1ee; background: #fff; border-radius: 20px; padding: 12px 8px 10px; font: inherit; color: #5a2a52; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: 0 4px 0 #f3c3d8; }
.pet-grid button span { font-size: 54px; line-height: 1; }
.pet-grid button b { font-size: 15px; }
.pet-grid button.on { border-color: #ff6f9f; background: #fff0f6; }
.pet-grid button:active { transform: translateY(3px); box-shadow: 0 1px 0 #f3c3d8; }

/* Peliharaan 3D */
.pet-3d-slot { position: absolute; inset: 0; z-index: 2; }
.pet-3d-slot .pet3d { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.pet-3d-slot.on .pet3d { opacity: 1; }
.pet-3d-slot .pet3d canvas { display: block; width: 100%; height: 100%; }
.pet-3d-slot.on .pet-fallback { display: none; }
.pet-outfit3d, .pet-zzz { position: absolute; left: 0; top: 0; z-index: 3; font-size: 46px; line-height: 1; pointer-events: none; will-change: transform; }
.pet-zzz { font-size: 34px; animation: petZzz 2s ease-in-out infinite; }
@keyframes petZzz { 50% { opacity: .5; } }
.pet-grid .pet-thumb { width: 74px; height: 74px; object-fit: contain; }
.pet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pet-grid button { padding: 8px 4px 8px; }
.pet-grid button b { font-size: 13px; }

/* Masak: tombol & buku resep */
.fight-pad .ck-book { width: 46px; height: 46px; font-size: 20px; align-self: center; }
.ck-bookview { position: absolute; inset: 0; z-index: 5; display: none; align-items: center; justify-content: center; padding: 12px; background: rgba(90,42,82,.35); backdrop-filter: blur(2px); }
.ck-bookview.show { display: flex; }
.ck-bookcard { width: min(100%, 420px); max-height: 100%; overflow: auto; background: #fff; border-radius: 22px; padding: 16px 16px 14px; box-shadow: 0 10px 30px rgba(120,40,90,.25); color: #5a2a52; font-size: 14px; line-height: 1.35; }
.ck-bookcard h3 { margin: 0 0 8px; text-align: center; font-size: 20px; color: #c2306f; }
.ck-how { margin: 0 0 10px; padding-left: 20px; }
.ck-how li { margin-bottom: 5px; }
.ck-recipes { display: grid; gap: 6px; margin-bottom: 8px; }
.ck-rec { display: flex; gap: 10px; align-items: center; background: #fff3f8; border-radius: 14px; padding: 6px 10px; }
.ck-dish { font-size: 30px; line-height: 1; }
.ck-dish img.fx { width: 34px; height: 34px; }
.ck-ing { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; }
.ck-ing i { font-style: normal; font-weight: 700; font-size: 11px; padding: 1px 6px; border-radius: 8px; background: #e8f8ef; color: #25734a; }
.ck-ing i.st-masak { background: #fff0e3; color: #c75a12; }
.ck-ing i.st-raw { background: #f1ecf7; color: #7a5a9a; }
.ck-tipline { margin: 0 0 10px; font-size: 13px; text-align: center; color: #8a3f6e; }
.ck-go { width: 100%; position: sticky; bottom: 0; box-shadow: 0 -8px 12px #fff; }
.ck-bookcard { font-size: 13px; padding: 14px 14px 12px; } .ck-how li { margin-bottom: 3px; } .ck-rec { padding: 4px 10px; }

/* Gelut: tombol gaya stik game */
.fight-pad.fp2 { align-items: flex-end; padding: 6px 12px max(24px, calc(env(safe-area-inset-bottom) + 16px)); }
.fp2 .fp-move { gap: 10px; align-self: center; }
.fp2 button { position: relative; border: none; color: #fff; display: grid; place-items: center; transition: transform .06s; }
.fp2 button .b-ic { font-size: 26px; line-height: 1; filter: drop-shadow(0 2px 0 rgba(0,0,0,.15)); }
.fp2 button .b-ic img.fx { width: 30px; height: 30px; }
.fp2 .b-dir { width: 64px; height: 64px; border-radius: 22px; background: linear-gradient(180deg, #ffffff, #ffe3ef); color: #e8558f; box-shadow: 0 5px 0 #f2a6c6, 0 8px 14px rgba(160,60,120,.18); }
.fp2 .fp-act { display: grid; grid-template-columns: repeat(3, auto); grid-template-areas: ". sp jump" "block kick punch"; gap: 20px 9px; align-items: end; }
.fp2 .fp-act button { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 5px 0 var(--sh), 0 8px 14px rgba(120,40,90,.2), inset 0 3px 0 rgba(255,255,255,.35); background: radial-gradient(circle at 35% 30%, var(--c1), var(--c2)); }
.fp2 .b-punch { grid-area: punch; width: 68px !important; height: 68px !important; --c1: #ff8db0; --c2: #ec3d78; --sh: #b8245a; }
.fp2 .b-punch .b-ic { font-size: 32px; } .fp2 .b-punch .b-ic img.fx { width: 36px; height: 36px; }
.fp2 .b-kick { grid-area: kick; --c1: #ffd27a; --c2: #ff8f2e; --sh: #c8641a; }
.fp2 .b-block { grid-area: block; --c1: #c7b3ff; --c2: #7f63f0; --sh: #5a42b8; }
.fp2 .b-jump { grid-area: jump; --c1: #8fe0ff; --c2: #3a95ff; --sh: #2266c4; justify-self: center; }
.fp2 .b-sp { grid-area: sp; --c1: #fff4c7; --c2: #ffc93d; --sh: #c99412; justify-self: center; }
.fp2 .b-sp .b-ring { position: absolute; inset: -5px; border-radius: 50%; background: conic-gradient(#ff5c93 var(--m, 0%), rgba(255,255,255,.7) 0); -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%); mask: radial-gradient(circle, transparent 60%, #000 61%); }
.fp2 .b-sp:not(.ready) { filter: grayscale(.55); opacity: .8; }
.fp2 .b-sp.ready { opacity: 1; animation: spReady .8s ease-in-out infinite alternate; }
.fp2 button.on { transform: translateY(4px) scale(.95); box-shadow: 0 1px 0 var(--sh, #f2a6c6), 0 3px 6px rgba(120,40,90,.2); }
.fp2 .b-dir.on { background: #ffd3e4; }
.fp2 button[data-label]::after { bottom: -18px; font-size: 11px; color: #8a3f6e; }
@media (max-width: 360px) { .fp2 .b-dir { width: 54px; height: 54px; } .fp2 .fp-act button { width: 48px; height: 48px; } .fp2 .b-punch { width: 58px !important; height: 58px !important; } .fp2 .fp-act { gap: 18px 6px; } }
.fight-pad.fp2 .fp-act button.on, .fight-pad.fp2 .fp-act .b-sp.ready { background: radial-gradient(circle at 35% 30%, var(--c1), var(--c2)); }

/* ---- Poles tampilan game papan (taman, kartu, tombol mengkilap) ---- */
.pop-grid { padding: 26px 14px 16px; border-radius: 28px; gap: 10px 12px; box-sizing: border-box;
  background:
    radial-gradient(circle at 82% 9%, #fff6b8 0 22px, rgba(255,246,184,.35) 23px 40px, transparent 41px),
    radial-gradient(ellipse 60px 16px at 22% 8%, #fff 98%, transparent), radial-gradient(ellipse 38px 12px at 34% 11%, #fff 98%, transparent),
    linear-gradient(#aee0ff 0, #dff3ff 15%, #a9e486 15.2%, #8ed36c 100%);
  box-shadow: 0 10px 0 #6bb352, 0 18px 30px rgba(60,110,50,.25), inset 0 0 0 4px rgba(255,255,255,.55); }
[data-theme="w-candy"] .pop-grid { background: linear-gradient(#ffd6ea 0, #fff0f7 15%, #ffb8d8 15.2%, #ff9cc8 100%); box-shadow: 0 10px 0 #e279ab, 0 18px 30px rgba(160,60,120,.25), inset 0 0 0 4px rgba(255,255,255,.55); }
[data-theme="w-beach"] .pop-grid { background: linear-gradient(#9fe3ff 0, #d6f6ff 15%, #ffe9a8 15.2%, #ffd97a 100%); box-shadow: 0 10px 0 #dcb354, 0 18px 30px rgba(150,110,40,.25), inset 0 0 0 4px rgba(255,255,255,.55); }
[data-theme="w-night"] .pop-grid { background: linear-gradient(#3a2f6e 0, #6a559f 15%, #b9a8f5 15.2%, #9d8bea 100%); box-shadow: 0 10px 0 #7563c9, 0 18px 30px rgba(50,30,110,.3), inset 0 0 0 4px rgba(255,255,255,.35); }
.hole::before { box-shadow: inset 0 6px 8px rgba(0,0,0,.35); }
.critter { filter: drop-shadow(0 4px 0 rgba(0,0,0,.12)); }
.hole.hit .critter { filter: brightness(1.15) drop-shadow(0 0 10px #fff); }

.simon-grid { padding: 14px; border-radius: 30px; background: #fff; box-shadow: 0 8px 0 #f3bcd4, 0 16px 28px rgba(160,60,120,.2); box-sizing: border-box; }
.simon-pad { position: relative; overflow: hidden; border: none !important; box-shadow: inset 0 -8px 0 rgba(0,0,0,.12), inset 0 6px 0 rgba(255,255,255,.4), 0 4px 0 rgba(120,40,90,.12); }
.simon-pad::before { content: ''; position: absolute; left: 10%; right: 10%; top: 7%; height: 26%; border-radius: 50%; background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,0)); pointer-events: none; }
.simon-pad.owl { background: linear-gradient(160deg, #d9c8ff, #a98bf5); }
.simon-pad.cat { background: linear-gradient(160deg, #ffd9ae, #ffa45c); }
.simon-pad.heart { background: linear-gradient(160deg, #ffb6d3, #ff6fa8); }
.simon-pad.star { background: linear-gradient(160deg, #fff0a6, #ffc93d); }
.simon-pad.lit { box-shadow: 0 0 0 6px #fff, 0 0 32px 10px rgba(255,255,255,.95), inset 0 0 30px rgba(255,255,255,.7); }

.memory-grid .card-inner { filter: drop-shadow(0 5px 0 rgba(160,60,120,.16)); }
.memory-grid .card:active .card-inner { filter: drop-shadow(0 2px 0 rgba(160,60,120,.16)); }
.odd-grid { padding: 12px; border-radius: 26px; background: #fff; box-shadow: 0 8px 0 #f3bcd4, 0 16px 28px rgba(160,60,120,.18); }
.odd-cell { box-shadow: inset 0 -5px 0 rgba(160,60,120,.09); }

/* ---- Kuis: titik progres, lencana, pilihan berhuruf ---- */
.quiz-dots { display: flex; justify-content: center; gap: 7px; margin-bottom: 12px; }
.quiz-dots i { width: 26px; height: 8px; border-radius: 6px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1.5px #ffd0e2; transition: background .3s, transform .3s; }
.quiz-dots i.now { background: #ff8fb7; transform: scaleY(1.35); }
.quiz-dots i.ok { background: #5fd39a; box-shadow: none; }
.quiz-dots i.no { background: #ff9fb0; box-shadow: none; }
.quiz-card { position: relative; padding-top: 40px; margin-top: 30px; border: none; box-shadow: 0 8px 0 #f3bcd4, 0 18px 30px rgba(160,60,120,.2); background: linear-gradient(#fff, #fff8fb); }
.quiz-badge { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(160deg, #ffb6d3, #ff6fa8); display: grid; place-items: center; font-size: 30px; border: 5px solid #fff; box-shadow: 0 5px 0 #f3bcd4; }
.quiz-badge img.fx { width: 34px; height: 34px; }
.quiz-num, .quiz-q { text-align: center; }
.quiz .opt { display: flex; align-items: center; gap: 12px; border: none; background: #fff; padding: 10px 12px; box-shadow: 0 4px 0 #f6cfe0, inset 0 0 0 2.5px #ffe0ec; animation: optIn .35s both cubic-bezier(.3, 1.4, .5, 1); animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes optIn { from { transform: translateY(14px); opacity: 0; } }
.opt-l { flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: #fff; background: #ff8fb7; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.opt:nth-child(2) .opt-l { background: #9f8bf5; } .opt:nth-child(3) .opt-l { background: #ffb347; } .opt:nth-child(4) .opt-l { background: #5ec8a8; }
.opt-t { flex: 1; }
.opt-m { flex: none; width: 22px; text-align: center; font-weight: 700; }
.quiz .opt.right { background: #e3fbef; box-shadow: 0 4px 0 #a8e6c7, inset 0 0 0 2.5px #5fd39a; } .quiz .opt.right .opt-m::before { content: '✓'; color: #1f9e72; }
.quiz .opt.wrong { background: #ffe9ed; box-shadow: 0 4px 0 #ffc1cb, inset 0 0 0 2.5px #ff8fa3; } .quiz .opt.wrong .opt-m::before { content: '✕'; color: #e0466b; }
.quiz .opt:disabled:not(.right):not(.wrong) { opacity: .55; }

/* ---- Puzzle: bingkai kayu, progres, geser kepingan ---- */
.puzzle-frame { padding: 10px 10px 8px; border-radius: 22px; background: linear-gradient(160deg, #e7b98a, #c98f5e); box-shadow: 0 8px 0 #a8703f, 0 18px 30px rgba(120,70,30,.25), inset 0 2px 0 rgba(255,255,255,.4); }
.puzzle-frame .puzzle-board { box-shadow: inset 0 0 0 2px rgba(120,70,30,.25); border-radius: 12px; gap: 4px; background: #fff7ee; }
.puzzle-prog { height: 8px; margin-top: 8px; border-radius: 6px; background: rgba(255,255,255,.45); overflow: hidden; }
.puzzle-prog i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #5fd39a, #b9f0d2); transition: width .35s; }
.puzzle-tip { font-size: 13px; color: var(--ink-soft); text-align: center; margin-top: -4px; }
.tile { touch-action: none; box-shadow: 0 2px 0 rgba(120,70,30,.18); }
.tile.ok { box-shadow: inset 0 0 0 2.5px #5fd39a, 0 2px 0 rgba(120,70,30,.18); }
.tile.lifted { opacity: .3; }
.tile.drop { box-shadow: 0 0 0 4px #ffd166, 0 0 16px 4px rgba(255,209,102,.8); transform: scale(.94); z-index: 1; }
.tile.pop { animation: matchPop2 .3s; }
.puzzle-ghost { position: fixed; left: 0; top: 0; z-index: 99; pointer-events: none; border-radius: 10px; box-shadow: 0 14px 26px rgba(80,40,20,.4), 0 0 0 3px #fff; transition: none; }
.puzzle-board.solved { box-shadow: none; }
.puzzle-frame .puzzle-board, .puzzle-frame ~ .puzzle-peek { width: min(86vw, 400px, calc((100dvh - 350px) * (var(--ar)))); }
.puzzle-frame ~ .puzzle-peek { top: 10px; }

/* ================= Beranda baru + bar menu bawah ================= */
.home-wrap { gap: 14px; }
.home-hero { position: relative; overflow: hidden; width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: none; border-radius: 28px; padding: 18px 16px 18px 20px; color: #fff; font-family: inherit; cursor: pointer;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 70%); box-shadow: 0 8px 0 rgba(0,0,0,.14), 0 8px 0 var(--pink-deep), 0 20px 34px rgba(160,60,120,.28); transition: transform .1s, box-shadow .1s; }
.home-hero:active { transform: translateY(5px); box-shadow: 0 3px 0 rgba(0,0,0,.14), 0 3px 0 var(--pink-deep), 0 10px 18px rgba(160,60,120,.25); }
.home-hero::before { content: ''; position: absolute; right: -40px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255,255,255,.16); }
.home-hero::after { content: ''; position: absolute; right: 40px; bottom: -70px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.1); }
.hero-txt { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hero-txt small { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: .9; }
.hero-txt b { font-size: 23px; line-height: 1.15; font-weight: 700; text-shadow: 0 2px 0 rgba(0,0,0,.12); }
.hero-txt em { font-style: normal; font-size: 13px; font-weight: 600; opacity: .95; }
.hero-prog { height: 8px; border-radius: 6px; background: rgba(255,255,255,.3); overflow: hidden; margin: 5px 0 2px; }
.hero-prog i { display: block; height: 100%; width: 4%; border-radius: 6px; background: #fff; transition: width .5s; }
.hero-go { position: relative; z-index: 1; flex: none; width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--pink-deep); display: grid; place-items: center; font-size: 24px; padding-left: 4px; box-shadow: 0 5px 0 rgba(0,0,0,.14); animation: heroPulse 1.6s ease-in-out infinite; }
.hero-go img.fx { width: 30px; height: 30px; }
@keyframes heroPulse { 50% { transform: scale(1.08); box-shadow: 0 5px 0 rgba(0,0,0,.14), 0 0 0 8px rgba(255,255,255,.22); } }
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.hero-deco span { position: absolute; font-size: 20px; opacity: .55; animation: hop 2.4s ease-in-out infinite; }
.hero-deco img.fx { width: 22px; height: 22px; }
.hero-deco span:nth-child(1) { right: 84px; top: 8px; } .hero-deco span:nth-child(2) { right: 14px; bottom: 6px; animation-delay: .5s; } .hero-deco span:nth-child(3) { right: 112px; bottom: 8px; animation-delay: 1s; }

.home-grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.home-tile { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; border: none; border-radius: 22px; padding: 14px 12px; background: #fff; color: var(--ink); font-family: inherit; cursor: pointer; box-shadow: 0 6px 0 var(--sh, #f3c3d8), 0 14px 22px rgba(160,60,120,.14); transition: transform .1s, box-shadow .1s; }
.home-tile:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--sh, #f3c3d8), 0 6px 12px rgba(160,60,120,.14); }
.home-tile .ht-ic { grid-row: 1 / 3; width: 50px; height: 50px; border-radius: 17px; display: grid; place-items: center; font-size: 26px; background: var(--bg, #ffe3ef); box-shadow: inset 0 -4px 0 rgba(0,0,0,.07); }
.home-tile .ht-ic img.fx { width: 32px; height: 32px; }
.home-tile b { font-size: 16px; font-weight: 700; line-height: 1.15; align-self: end; }
.home-tile small { font-size: 11.5px; color: var(--ink-soft); line-height: 1.2; align-self: start; }
.home-tile.t-talk { --bg: #e7e0ff; --sh: #d5c9fb; } .home-tile.t-pet { --bg: #fff0c4; --sh: #f6dc9a; } .home-tile.t-kita { --bg: #ffdbe8; --sh: #f6bcd2; }
.home-tile.wide { grid-column: 1 / -1; }
.home-tile .kita-badge { position: absolute; top: 10px; right: 12px; }
#screen-home .install-btn { font-size: 14px; }

.tabbar { position: fixed; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 15; transform: translate(-50%, 140%); width: min(calc(100% - 20px), 440px); display: flex; align-items: flex-end; justify-content: space-around; gap: 2px; padding: 8px 8px 7px; border-radius: 28px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(120,40,90,.22), 0 0 0 1.5px rgba(255,255,255,.9), inset 0 -3px 0 rgba(160,60,120,.06); transition: transform .35s cubic-bezier(.3, 1.3, .5, 1); }
.tabbar.show { transform: translate(-50%, 0); }
body.playing .tabbar { display: none; }
.tab { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; border: none; background: none; padding: 4px 2px 2px; border-radius: 18px; font-family: inherit; color: var(--ink-soft); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s; }
.tab:active { transform: scale(.92); }
.tab-ic { font-size: 22px; line-height: 1; height: 28px; display: grid; place-items: center; filter: drop-shadow(0 1px 1px rgba(120,40,90,.35)) saturate(.55) opacity(.8); transition: filter .2s, transform .2s; }
.tab-ic img.fx { width: 26px; height: 26px; }
.tab-lb { font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.tab.on { color: var(--pink-deep); }
.tab.on .tab-ic { filter: drop-shadow(0 2px 2px rgba(120,40,90,.3)); transform: translateY(-2px) scale(1.12); }
.tab.on::after { content: ''; position: absolute; bottom: -3px; width: 18px; height: 4px; border-radius: 3px; background: var(--pink); }
.tab-main { flex: none; width: 66px; margin: -26px 4px 0; padding: 0; color: var(--pink-deep); }
.tab-main .tab-ic { width: 60px; height: 60px; border-radius: 50%; font-size: 28px; filter: none; background: linear-gradient(145deg, var(--pink), var(--pink-deep)); box-shadow: 0 5px 0 rgba(0,0,0,.14), 0 10px 18px rgba(214,69,127,.35), 0 0 0 5px #fff; }
.tab-main .tab-ic img.fx { width: 34px; height: 34px; }
.tab-main.on .tab-ic { transform: translateY(-2px); }
.tab-main.on::after { display: none; }
.tab.dot::before { content: ''; position: absolute; top: 2px; right: calc(50% - 18px); width: 10px; height: 10px; border-radius: 50%; background: #ff3b6b; box-shadow: 0 0 0 2px #fff; z-index: 1; }
body.has-tabbar .screen.active { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }

/* ---- Peta petualangan: level jadi "koin" bulat, kepala dunia jadi spanduk ---- */
.world { overflow: hidden; }
.world-head { margin: -16px -16px 16px; padding: 14px 16px; background: linear-gradient(120deg, rgba(255,255,255,.75), rgba(255,255,255,.25)); border-bottom: 2px dashed rgba(255,255,255,.9); }
.world-icon { box-shadow: 0 4px 0 rgba(0,0,0,.08); }
.levels { gap: 16px 10px; justify-items: center; }
.lvl { width: 100%; max-width: 104px; aspect-ratio: 1 / 1.02; border-radius: 30px; gap: 1px; box-shadow: 0 7px 0 rgba(0,0,0,.1), inset 0 -6px 0 rgba(0,0,0,.04), inset 0 3px 0 rgba(255,255,255,.9); }
.lvl:not(:disabled):active { transform: translateY(5px); box-shadow: 0 2px 0 rgba(0,0,0,.1), inset 0 -6px 0 rgba(0,0,0,.04); }
.lvl-type { font-size: 30px; }
.lvl-type img.fx { width: 36px; height: 36px; }
.lvl-num { font-size: 14px; background: rgba(255,255,255,.9); border-radius: 10px; padding: 0 8px; line-height: 1.35; box-shadow: 0 2px 0 rgba(0,0,0,.06); }
.lvl.done { background: linear-gradient(#fffef4, #fff4c9); }
.lvl.current { outline: none; background: linear-gradient(#fff, #ffe9f2); box-shadow: 0 7px 0 var(--pink-deep), 0 0 0 4px var(--pink), 0 0 22px 4px rgba(255,111,159,.45); }
.lvl.locked { box-shadow: 0 5px 0 rgba(0,0,0,.06); }
.lvl.locked .lvl-type { filter: grayscale(1) opacity(.5); }
.lvl.bonus { max-width: none; aspect-ratio: auto; border-radius: 22px; padding: 12px; }

#screen-home .mascots { font-size: 44px; } #screen-home .mascot-face { width: 54px; height: 54px; } #screen-home .title { margin: -4px 0 0; }
.home-tile.t-talk { --bg: linear-gradient(145deg, #b9a4ff, #8f77f0); }
.tabbar:not(.show) { visibility: hidden; transition: transform .35s, visibility 0s .35s; }
.tab[data-tab="talk"] .tab-ic { filter: drop-shadow(0 1px 1.5px rgba(90,60,160,.7)) opacity(.85); }
.tab[data-tab="talk"].on .tab-ic { filter: drop-shadow(0 1px 2px rgba(90,60,160,.8)); }
/* Halaman depan (landing): tombolnya tetap sederhana, bukan tampilan beranda game */
body.is-demo .home-hero { width: auto; justify-content: center; font-size: 22px; font-weight: 700; padding: 16px 44px; border-radius: 999px; }
body.is-demo .home-hero::before, body.is-demo .home-hero::after { display: none; }
body.is-demo .home-grid { width: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; grid-area: talk; justify-self: center; }
body.is-demo .home-tile { padding: 10px 16px 10px 10px; }

/* ================= Peliharaan: kamar beneran, meteran bulat, tombol warna ================= */
.pet-root { gap: 14px; }
.pet-head { background: #fff; border-radius: 22px; padding: 10px 14px 12px; box-shadow: 0 5px 0 #f3c3d8, 0 12px 22px rgba(160,60,120,.12); }
.pet-name { font-size: 22px; }
.pet-xp { height: 10px; background: #ffe9f1; box-shadow: inset 0 1px 2px rgba(160,60,120,.15); }
.pet-room { height: min(46vh, 360px); border-radius: 30px; border: 5px solid #fff; box-shadow: 0 8px 0 #f3c3d8, 0 18px 30px rgba(160,60,120,.2);
  background:
    linear-gradient(#e9c79f, #e9c79f) 0 calc(62% - 9px) / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, rgba(120,70,30,.13) 0 2px, transparent 2px 58px) 0 100% / 100% 38% no-repeat,
    linear-gradient(#e2b488, #cf9c6c) 0 100% / 100% 38% no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.4) 0 22px, transparent 22px 44px),
    linear-gradient(#ffe0ee, #ffd3e6); }
.pet-floor { display: none; }
.pet-decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pet-decor i { position: absolute; font-style: normal; line-height: 1; }
.pd-window { left: 7%; top: 9%; width: 27%; aspect-ratio: 1 / 1.05; border-radius: 16px 16px 8px 8px; border: 6px solid #fff; box-shadow: 0 4px 0 rgba(160,60,120,.15), inset 0 0 0 2px rgba(160,60,120,.12); overflow: hidden;
  background: radial-gradient(circle at 72% 28%, #fff6b8 0 14%, rgba(255,246,184,.4) 15% 24%, transparent 25%), radial-gradient(ellipse 34% 14% at 30% 62%, #fff 98%, transparent), linear-gradient(#9fdcff, #dff3ff 70%, #b9e88f 70%); }
.pd-window u { position: absolute; inset: 0; background: linear-gradient(#fff, #fff) 50% 0 / 5px 100% no-repeat, linear-gradient(#fff, #fff) 0 50% / 100% 5px no-repeat; }
.pet-room.night .pd-window { background: radial-gradient(circle at 70% 30%, #fff8dc 0 13%, transparent 14%), radial-gradient(circle at 25% 25%, #fff 0 2%, transparent 3%), radial-gradient(circle at 45% 55%, #fff 0 1.5%, transparent 2.5%), linear-gradient(#2a2456, #51407f 70%, #2f4a3a 70%); }
.pd-frame { right: 10%; top: 12%; width: 17%; aspect-ratio: 1; display: grid; place-items: center; font-size: clamp(18px, 6vw, 28px); background: #fff7fb; border: 5px solid #ffb9d5; border-radius: 10px; box-shadow: 0 4px 0 rgba(160,60,120,.15); transform: rotate(4deg); }
.pd-shelf { right: 6%; top: 40%; width: 26%; height: 8px; border-radius: 4px; background: #c48f5f; box-shadow: 0 3px 0 #a8703f; }
.pd-shelf span { position: absolute; bottom: 6px; font-size: clamp(18px, 6vw, 28px); } .pd-shelf span:first-child { left: 6%; } .pd-shelf span:last-child { right: 6%; }
.pd-bed { left: 4%; bottom: 8%; font-size: clamp(40px, 14vw, 62px); filter: drop-shadow(0 5px 0 rgba(80,40,20,.15)); }
.pd-bowl { right: 8%; bottom: 7%; font-size: clamp(26px, 9vw, 40px); filter: drop-shadow(0 4px 0 rgba(80,40,20,.15)); }
.pd-toy { right: 26%; bottom: 20%; font-size: clamp(20px, 7vw, 30px); opacity: .95; }
.pet-decor img.fx { width: 1em; height: 1em; }
.pet-room.night { filter: brightness(.6) saturate(.85); }
.pet-bubble { top: 12px; border-radius: 20px; padding: 8px 16px; font-size: 14px; box-shadow: 0 4px 0 rgba(160,60,120,.18); z-index: 5; max-width: 86%; }
.pet-bubble::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 3px; }

.pet-stats { grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px 8px 10px; border-radius: 24px; box-shadow: 0 5px 0 #f3c3d8, 0 12px 22px rgba(160,60,120,.12); }
.pet-ring { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pet-ring .pr-ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 26px;
  background: radial-gradient(circle, #fff 0 58%, transparent 59%), conic-gradient(var(--c) calc(var(--v) * 1%), #f4e4ec 0); box-shadow: 0 3px 0 rgba(160,60,120,.1); transition: background .4s; }
.pet-ring .pr-ic img.fx { width: 30px; height: 30px; }
.pet-ring small { font-size: 11.5px; font-weight: 700; color: #8a6b80; }
.pet-ring b { position: absolute; top: -4px; right: calc(50% - 36px); min-width: 24px; padding: 0 5px; font-size: 11px; line-height: 17px; border-radius: 9px; background: var(--c); color: #fff; text-align: center; box-shadow: 0 0 0 2px #fff; }
.pet-ring.low .pr-ic { animation: ringLow .9s ease-in-out infinite; }
@keyframes ringLow { 50% { transform: scale(1.08); box-shadow: 0 0 0 5px rgba(255,77,109,.2); } }

.pet-actions { gap: 10px; padding: 0 2px; }
.pet-actions button { background: none; box-shadow: none; padding: 0; gap: 5px; font-size: 13px; }
.pet-actions button span { width: 100%; max-width: 76px; aspect-ratio: 1; border-radius: 26px; display: grid; place-items: center; font-size: 34px; background: radial-gradient(circle at 32% 26%, var(--a1), var(--a2)); box-shadow: 0 6px 0 var(--as), 0 12px 18px rgba(120,40,90,.18), inset 0 3px 0 rgba(255,255,255,.4); transition: transform .08s, box-shadow .08s; }
.pet-actions button span img.fx { width: 40px; height: 40px; }
.pet-actions button:active:not(:disabled) { transform: none; box-shadow: none; }
.pet-actions button:active:not(:disabled) span { transform: translateY(5px); box-shadow: 0 1px 0 var(--as), 0 4px 8px rgba(120,40,90,.18); }
.pet-actions [data-pet="makan"] { --a1: #ffd98a; --a2: #ff9f3d; --as: #d2761c; }
.pet-actions [data-pet="mandi"] { --a1: #a8e6ff; --a2: #4aa8ff; --as: #2b79c9; }
.pet-actions [data-pet="main"] { --a1: #b9f2a8; --a2: #4fc46a; --as: #2f9448; }
.pet-actions [data-pet="tidur"] { --a1: #d6c8ff; --a2: #8c72f2; --as: #6049c2; }
.pet-sec { display: flex; align-items: baseline; gap: 8px; margin: 2px 4px -6px; }
.pet-sec b { font-size: 15px; color: var(--ink); } .pet-sec small { font-size: 12px; color: var(--ink-soft); }
.pet-outfits { background: #fff; border-radius: 22px; padding: 10px; box-shadow: 0 5px 0 #f3c3d8; justify-content: space-around; }
.pet-outfits button { width: 56px; border: none; background: #fff5fa; border-radius: 16px; padding: 7px 0 4px; box-shadow: inset 0 -3px 0 rgba(160,60,120,.08); }
.pet-outfits button.on { background: linear-gradient(#fff, #ffe3ef); box-shadow: 0 0 0 3px var(--pink), 0 4px 10px rgba(255,111,159,.35); }
.pet-couple { background: linear-gradient(120deg, #fff, #fff3f8); border-radius: 22px; box-shadow: 0 5px 0 #f3c3d8; padding: 12px 14px; }

/* ================= Deep Talk: topik berwarna, tumpukan kartu, progres ================= */
.talk-title { font-size: 28px; }
.talk-cats { gap: 9px; padding-bottom: 10px; }
.talk-cat { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 78px; padding: 9px 10px 7px; border-radius: 20px; background: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--tc) 35%, #fff); border: 2.5px solid transparent; font-size: 12px; }
.talk-cat .tc-ic { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: color-mix(in srgb, var(--tc) 22%, #fff); }
.talk-cat .tc-ic img.fx { width: 24px; height: 24px; }
.talk-cat b { font-size: 12.5px; white-space: nowrap; }
.talk-cat small { font-size: 10.5px; color: var(--ink-soft); font-weight: 600; }
.talk-cat.on { background: #fff; color: var(--ink); border-color: var(--tc); box-shadow: 0 4px 0 var(--tc), 0 8px 16px color-mix(in srgb, var(--tc) 35%, transparent); transform: translateY(-2px); }
.talk-cat.on .tc-ic { background: var(--tc); }
.talk-card { position: relative; width: min(100%, 340px); aspect-ratio: 3 / 3.75; margin: 6px 0 10px; }
.talk-card::before, .talk-card::after { content: ''; position: absolute; inset: 0; border-radius: 28px; background: #fff; box-shadow: 0 4px 0 rgba(160,60,120,.12); z-index: 0; }
.talk-card::before { transform: rotate(-5deg) translate(-8px, 8px); background: color-mix(in srgb, var(--talk) 30%, #fff); }
.talk-card::after { transform: rotate(4deg) translate(8px, 6px); background: color-mix(in srgb, var(--talk) 15%, #fff); }
.talk-inner { z-index: 1; }
.talk-back, .talk-front { box-shadow: 0 8px 0 rgba(160,60,120,.14), 0 20px 34px rgba(160,60,120,.22); }
.talk-back { border: 6px solid #fff; }
.talk-back::before { content: ''; position: absolute; inset: 14px; border-radius: 18px; border: 2px dashed rgba(255,255,255,.65); }
.talk-front { border: none; padding: 62px 22px 54px; gap: 6px; overflow: hidden; background: linear-gradient(#fff, color-mix(in srgb, var(--talk) 8%, #fff)); }
.talk-front::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 46px; background: var(--talk); border-radius: 0 0 50% 50% / 0 0 22px 22px; }
.talk-front small { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); background: #fff; color: var(--ink); white-space: nowrap; box-shadow: 0 3px 0 rgba(0,0,0,.08); }
.talk-quote { font-style: normal; font-family: Georgia, serif; font-size: 70px; line-height: .6; height: 30px; color: var(--talk); opacity: .45; align-self: flex-start; }
.talk-front p { text-align: left; align-self: stretch; }
.talk-turn { position: absolute; left: 14px; right: 14px; bottom: 14px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); background: color-mix(in srgb, var(--talk) 14%, #fff); border-radius: 14px; padding: 7px 10px; }
.talk-card.deal .talk-inner { animation: talkDeal .45s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes talkDeal { from { translate: 0 -26px; scale: .94; } }
.talk-bar { width: min(100%, 340px); display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.talk-prog { flex: 1; height: 8px; border-radius: 6px; background: rgba(255,255,255,.8); overflow: hidden; box-shadow: inset 0 1px 2px rgba(160,60,120,.15); }
.talk-prog i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--pink), var(--pink-deep)); transition: width .4s; }
.talk-card { width: min(100%, 340px, calc((100dvh - 452px) * .8)); }
body.has-tabbar #screen-talk .talk-title { font-size: 24px; margin-top: 0; } body.has-tabbar #screen-talk .talk-sub { font-size: 13px; }

/* ================= Landing page lovequest.id (halaman depan, mode demo) ================= */
body.is-demo #screen-home { padding: 0 0 40px !important; justify-content: flex-start; }
body.is-demo .home-wrap { display: block !important; width: 100% !important; max-width: none; margin: 0 !important; text-align: left; }
body.is-demo .home-wrap > :not(.lp) { display: none !important; }
.lp { --lpw: 1080px; color: var(--ink); }
.lp h2 { font-size: clamp(24px, 6.4vw, 34px); line-height: 1.15; margin: 0 0 8px; text-align: center; color: var(--ink); }
.lp-lead { text-align: center; color: var(--ink-soft); margin: 0 auto 22px; max-width: 560px; font-size: 15px; line-height: 1.5; }
.lp-sec { width: min(100% - 32px, var(--lpw)); margin: 0 auto; padding: 46px 0 8px; scroll-margin-top: 70px; }

/* nav atas: tampil juga di HP (versi ringkas) */
body.is-demo .desk-nav { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 6; padding: 10px 16px; background: rgba(255, 244, 249, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(232, 85, 143, .12); width: 100%; margin: 0; }
body.is-demo .desk-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; color: var(--pink-deep); text-decoration: none; }
body.is-demo .desk-brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 3px 10px rgba(232, 85, 143, .25); }
body.is-demo .desk-nav nav { display: flex; align-items: center; gap: 20px; }
body.is-demo .desk-nav nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
body.is-demo .desk-nav nav a:hover { color: var(--pink-deep); }
body.is-demo .desk-nav .small-btn { font-size: 14px; padding: 8px 16px; }
@media (max-width: 759px) { body.is-demo .desk-nav nav a { display: none; } }
@media (min-width: 960px) { body.is-demo .desk-nav { padding: 12px max(24px, calc((100% - 1080px) / 2)); box-shadow: 0 1px 0 rgba(232, 85, 143, .12); } }

/* hero */
.lp-hero { width: min(100% - 32px, var(--lpw)); margin: 0 auto; padding: 28px 0 10px; display: grid; gap: 26px; align-items: center; }
.lp-kicker { display: inline-block; font-size: 13px; font-weight: 700; color: var(--pink-deep); background: #fff; padding: 6px 12px; border-radius: 999px; box-shadow: 0 3px 0 #f6cfe0; }
.lp-hero h1 { font-size: clamp(32px, 9vw, 58px); line-height: 1.06; margin: 14px 0 12px; color: var(--ink); letter-spacing: -.5px; }
.lp-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--pink-deep), #9a6bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero-txt > p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 20px; max-width: 520px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lp-cta .btn.big { font-size: 19px; padding: 14px 28px; }
.lp-cta .btn.ghost { font-size: 16px; padding: 12px 20px; }
.lp-trust { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.lp-phone { position: relative; justify-self: center; width: min(68vw, 280px); }
.lp-screen { border-radius: 38px; padding: 10px; background: #2b2233; box-shadow: 0 30px 60px rgba(120, 40, 100, .28), inset 0 0 0 2px rgba(255,255,255,.12); transform: rotate(2deg); }
.lp-screen video { display: block; width: 100%; aspect-ratio: 360 / 780; object-fit: cover; border-radius: 30px; background: #ffe3ef; }
.lp-float { position: absolute; white-space: nowrap; font-size: 13px; font-weight: 700; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 999px; box-shadow: 0 8px 20px rgba(150, 60, 160, .2); animation: heroFloat 4s ease-in-out infinite; }
.lp-float.f1 { left: -30%; top: 16%; } .lp-float.f2 { right: -26%; top: 44%; animation-delay: -1.5s; } .lp-float.f3 { left: -22%; bottom: 14%; animation-delay: -3s; }
@media (max-width: 480px) { .lp-float.f1 { left: -14%; } .lp-float.f2 { right: -12%; } .lp-float.f3 { left: -10%; } }

/* angka */
.lp-stats { width: min(100% - 32px, 820px); margin: 26px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.lp-stats div { background: #fff; border-radius: 20px; padding: 14px 10px; text-align: center; box-shadow: 0 5px 0 #f6cfe0; }
.lp-stats b { display: block; font-size: 30px; line-height: 1; color: var(--pink-deep); }
.lp-stats small { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }

/* fitur */
.lp-feat { display: grid; gap: 12px; }
.lp-feat article { background: #fff; border-radius: 22px; padding: 18px; box-shadow: 0 6px 0 #f6cfe0, 0 14px 26px rgba(160, 60, 120, .08); display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; }
.lp-feat article > span { grid-row: span 2; width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; font-size: 28px; background: linear-gradient(145deg, #ffe3ef, #f0e4ff); }
.lp-feat article > span img.fx { width: 32px; height: 32px; }
.lp-feat h3 { margin: 2px 0 4px; font-size: 17px; }
.lp-feat p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }

/* game */
.lp-duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.lp-duo figure { margin: 0; background: #fff; border-radius: 22px; padding: 8px 8px 12px; box-shadow: 0 6px 0 #f6cfe0; }
.lp-duo img { display: block; width: 100%; aspect-ratio: 360 / 560; object-fit: cover; object-position: 50% 30%; border-radius: 16px; }
.lp-duo figcaption { padding: 8px 4px 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.3; }
.lp-duo figcaption b { display: block; font-size: 14.5px; color: var(--ink); }
.lp-games { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lp-games li { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 6px 13px 6px 7px; font-size: 13.5px; font-weight: 600; box-shadow: 0 3px 0 #f6cfe0; }
.lp-games li span { width: 26px; height: 26px; display: grid; place-items: center; font-size: 17px; }
.lp-games li span img.fx { width: 22px; height: 22px; }
.lp-games li.duo { background: linear-gradient(90deg, #fff, #ffe9f2); }
.lp-games li.duo::after { content: '💞'; font-size: 12px; }

/* contoh + cara */
.lp .showcase h2 { font-size: clamp(24px, 6.4vw, 34px); color: var(--ink); }
.lp #showcase-list { max-width: 460px; margin: 0 auto; }
.lp .showcase-credit { text-align: center; }
.lp-steps { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.lp-steps li { position: relative; background: #fff; border-radius: 20px; padding: 14px 16px 14px 62px; box-shadow: 0 5px 0 #f6cfe0; }
.lp-steps li span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: #fff; background: linear-gradient(145deg, var(--pink), var(--pink-deep)); }
.lp-steps b { display: block; font-size: 15.5px; } .lp-steps small { font-size: 13px; color: var(--ink-soft); }
.lp .tutorial { background: none; box-shadow: none; padding: 0; text-align: center; }
.lp .tutorial video { width: min(100%, 320px); border-radius: 24px; box-shadow: 0 18px 40px rgba(120, 40, 100, .22); }

/* harga */
.lp-prices { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.lp-price { position: relative; background: #fff; border-radius: 26px; padding: 22px 20px 20px; box-shadow: 0 6px 0 #f6cfe0, 0 16px 30px rgba(160, 60, 120, .1); display: flex; flex-direction: column; }
.lp-price.hot { background: linear-gradient(160deg, #fff, #fff0f7); box-shadow: 0 0 0 3px var(--pink), 0 6px 0 var(--pink-deep), 0 18px 34px rgba(232, 85, 143, .22); }
.lp-badge { position: absolute; top: -13px; right: 18px; background: linear-gradient(90deg, var(--pink), #9a6bff); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.lp-price > small { font-size: 12.5px; font-weight: 700; color: var(--pink-deep); text-transform: uppercase; letter-spacing: .5px; }
.lp-price h3 { margin: 4px 0 6px; font-size: 21px; }
.lp-amt { font-size: 34px; font-weight: 700; color: var(--ink); line-height: 1; margin-bottom: 14px; }
.lp-amt span { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.lp-price ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; flex: 1; }
.lp-price li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.4; }
.lp-price li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: #5fd39a; }

/* faq + penutup */
.lp-faq { max-width: 720px; margin: 0 auto; display: grid; gap: 10px; }
.lp-faq details { background: #fff; border-radius: 18px; padding: 0 16px; box-shadow: 0 4px 0 #f6cfe0; }
.lp-faq summary { cursor: pointer; list-style: none; padding: 15px 28px 15px 0; font-weight: 700; font-size: 15.5px; position: relative; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--pink-deep); transition: transform .2s; }
.lp-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.lp-faq p { margin: 0 0 15px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.lp-final { width: min(100% - 32px, 820px); margin: 50px auto 0; text-align: center; padding: 34px 20px; border-radius: 30px; color: #fff; background: linear-gradient(135deg, var(--pink), var(--pink-deep) 60%, #9a6bff); box-shadow: 0 20px 40px rgba(232, 85, 143, .3); }
.lp-final h2 { color: #fff; } .lp-final p { margin: 0 0 18px; opacity: .92; }
.lp-final .lp-cta { justify-content: center; }
.lp-final .btn.big { background: #fff; color: var(--pink-deep); box-shadow: 0 5px 0 rgba(0,0,0,.15); }
.lp-final .btn.ghost { background: rgba(255,255,255,.18); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.lp-foot { text-align: center; font-size: 12.5px; color: var(--ink-soft); padding: 26px 0 0; }

@media (min-width: 760px) {
  .lp-hero { grid-template-columns: 1.15fr .85fr; padding-top: 50px; }
  .lp-stats { grid-template-columns: repeat(4, 1fr); }
  .lp-feat { grid-template-columns: repeat(3, 1fr); }
  .lp-feat article { grid-template-columns: 1fr; }
  .lp-feat article > span { grid-row: auto; margin-bottom: 10px; }
  .lp-duo { grid-template-columns: repeat(4, 1fr); }
  .lp-steps { grid-template-columns: repeat(3, 1fr); }
  .lp-prices { grid-template-columns: 1fr 1fr; }
  .lp-sec { padding-top: 70px; }
}
html:has(body.is-demo), body.is-demo { background: linear-gradient(180deg, #ffeef6 0, #fbf1ff 900px, #fff5fa 2200px, #fdf0fb 100%) !important; }
body.is-demo #screen-home, body.is-demo #app { background: transparent !important; }
.lp .showcase > p.lp-lead { text-align: center; margin: 0 auto 18px; max-width: 560px; font-size: 15px; }
.lp-feat article:nth-child(1) > span { background: linear-gradient(145deg, #fff0c4, #ffd98a); }
.lp-feat article:nth-child(2) > span { background: linear-gradient(145deg, #ffd3e4, #ff9cc4); }
.lp-feat article:nth-child(3) > span { background: linear-gradient(145deg, #e3f7ff, #9fdcff); }
.lp-feat article:nth-child(4) > span { background: linear-gradient(145deg, #b9a4ff, #8f77f0); }
.lp-feat article:nth-child(5) > span { background: linear-gradient(145deg, #dff8d8, #a6e28a); }
.lp-feat article:nth-child(6) > span { background: linear-gradient(145deg, #ffe0ee, #ffb3cf); }

/* ================= Sambutan pertama kali buka game ================= */
.welcome { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 18px; background: rgba(90, 30, 70, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.welcome.show { opacity: 1; }
.wl-card { position: relative; width: min(100%, 380px); min-height: 440px; display: flex; flex-direction: column; border-radius: 30px; padding: 26px 22px 20px; text-align: center; overflow: hidden;
  background: radial-gradient(120% 60% at 50% 0%, #fff6d8, transparent 60%), linear-gradient(170deg, #fff, #fff0f7); box-shadow: 0 30px 60px rgba(90, 30, 70, .35); transform: translateY(20px) scale(.96); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.welcome.show .wl-card { transform: none; }
.wl-skip { position: absolute; top: 12px; right: 14px; z-index: 2; border: 0; background: rgba(255,255,255,.8); color: var(--ink-soft); font: inherit; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.wl-page { display: none; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 8px; animation: wlIn .45s cubic-bezier(.3, 1.3, .5, 1); }
.wl-page.on { display: flex; }
@keyframes wlIn { from { opacity: 0; transform: translateX(24px); } }
.wl-page h2 { margin: 2px 0; font-size: 26px; color: var(--ink); }
.wl-page p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); max-width: 300px; }
.wl-page p b { color: var(--pink-deep); }
.wl-kicker { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--pink-deep); }
.wl-faces { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.wl-faces img, .wl-faces span { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 6px 16px rgba(214, 80, 140, .25); display: grid; place-items: center; font-size: 34px; background: #ffe3ef; }
.wl-faces b { font-size: 26px; animation: hop 1.4s ease-in-out infinite; }
.wl-faces img.fx { width: 40px; height: 40px; border: 0; box-shadow: none; background: none; }
.wl-box { position: relative; margin-top: 14px; width: 120px; height: 120px; border: 0; background: none; padding: 0; cursor: pointer; animation: wlWiggle 1.6s ease-in-out infinite; }
.wl-gbox { font-size: 96px; line-height: 1; display: block; }
.wl-lid { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); font-size: 46px; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1), opacity .6s; }
.wl-box img.fx { width: 1em; height: 1em; }
@keyframes wlWiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-7deg); } 84% { transform: rotate(6deg); } 92% { transform: rotate(-3deg); } }
.wl-gift.opened .wl-box { animation: none; }
.wl-gift.opened .wl-lid { transform: translate(-50%, -90px) rotate(-30deg); opacity: 0; }
.wl-gift.opened .wl-gbox { animation: wlPop .5s ease-out; }
@keyframes wlPop { 40% { transform: scale(1.18); } }
.wl-conf { position: absolute; left: 50%; top: 40%; width: 9px; height: 13px; border-radius: 2px; pointer-events: none; animation: wlConf 1.1s cubic-bezier(.2, .7, .4, 1) forwards; }
@keyframes wlConf { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
.wl-tap { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.wl-ic { width: 96px; height: 96px; border-radius: 30px; display: grid; place-items: center; font-size: 52px; margin-bottom: 8px; background: linear-gradient(145deg, var(--pink-soft), #f0e4ff); box-shadow: 0 8px 0 rgba(160, 60, 120, .12); }
.wl-ic img.fx { width: 60px; height: 60px; }
.wl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.wl-foot[hidden] { display: none; }
.wl-dots { display: flex; gap: 6px; }
.wl-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--pink-soft); transition: width .3s, background .3s; }
.wl-dots i.on { width: 22px; background: var(--pink); }

.lp-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 8px; }
.lp-legal a { color: var(--ink-soft); font-weight: 600; text-decoration: none; }
.lp-legal a:hover { color: var(--pink-deep); }

.promo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; margin: 14px auto 0; width: min(100% - 32px, 1080px); padding: 12px 18px; border-radius: 18px; text-decoration: none; color: #fff; font-size: 15px; font-weight: 600;
  background: linear-gradient(110deg, var(--pink-deep), #9a6bff); box-shadow: 0 8px 20px rgba(232, 85, 143, .3); animation: promoGlow 2.4s ease-in-out infinite; }
.promo-strip b { background: #fff; color: var(--pink-deep); padding: 2px 10px; border-radius: 999px; letter-spacing: .05em; }
.promo-strip small { opacity: .9; font-size: 13px; }
@keyframes promoGlow { 50% { box-shadow: 0 8px 28px rgba(154, 107, 255, .45); } }
@media (prefers-reduced-motion: reduce) { .promo-strip { animation: none; } }

/* Landing: tombol coba main yang menonjol */
.lp-cta-hero { flex-direction: column; align-items: stretch; gap: 12px; max-width: 420px; }
.lp-try { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; border: 0; cursor: pointer; text-align: left; font-family: inherit; color: #fff; padding: 14px 22px 14px 14px; border-radius: 24px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 60%, #9a6bff 130%); box-shadow: 0 6px 0 #b8336b, 0 16px 30px rgba(232, 85, 143, .35); transition: transform .12s, box-shadow .12s; }
.lp-try:hover { transform: translateY(-2px); }
.lp-try:active { transform: translateY(4px); box-shadow: 0 2px 0 #b8336b, 0 8px 16px rgba(232, 85, 143, .3); }
.lp-try-ic { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; padding-left: 4px; background: #fff; color: var(--pink-deep); box-shadow: 0 0 0 6px rgba(255,255,255,.22); animation: tryPulse 1.8s ease-in-out infinite; }
@keyframes tryPulse { 50% { box-shadow: 0 0 0 12px rgba(255,255,255,.08); } }
.lp-try-txt { display: flex; flex-direction: column; line-height: 1.2; }
.lp-try-txt b { font-size: 22px; font-weight: 700; }
.lp-try-txt small { font-size: 14px; opacity: .92; font-weight: 600; }
.lp-link { align-self: flex-start; border: 0; background: none; padding: 4px 6px; font: inherit; font-size: 16px; font-weight: 700; color: var(--pink-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
@media (prefers-reduced-motion: reduce) { .lp-try-ic { animation: none; } }

/* Landing: kartu 20 game bergambar */
.lp-games { list-style: none; padding: 0; margin: 0; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lp-games li { position: relative; display: block !important; padding: 0 !important; border-radius: 18px !important; overflow: hidden; background: #fff; box-shadow: 0 5px 0 #f6cfe0, 0 10px 20px rgba(160,60,120,.08) !important; }
.lp-games li::after { content: none !important; }
.lp-games li img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #ffe9f2; }
.lp-games li span { display: block !important; width: auto !important; height: auto !important; padding: 9px 10px 11px; font-size: 14.5px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.lp-games li em { position: absolute; top: 8px; left: 8px; font-style: normal; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(154, 107, 255, .92); padding: 3px 9px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.lp-games li em::before { content: '♥ '; }
.lp-games-cta { display: flex; justify-content: center; margin-top: 22px; }
.lp-games-cta .lp-try { width: auto; }
@media (min-width: 600px) { .lp-games { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 960px) { .lp-games { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ================= Kenangan ================= */
.home-tile.t-memo { --bg: linear-gradient(145deg, #ffe08a, #f6b42a); --sh: #f1d38f; }
.memo-root { width: 100%; max-width: 520px; margin: 0 auto; padding: 4px 16px 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; }
.mem-hero { position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 30px; padding: 22px 16px 16px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.28), transparent 60%), linear-gradient(150deg, var(--pink) 0%, var(--pink-deep) 55%, #9a6bff 120%); box-shadow: 0 16px 34px rgba(214,80,140,.3); }
.mem-hero::before, .mem-hero::after { content: '✦'; position: absolute; font-size: 22px; opacity: .5; }
.mem-hero::before { left: 22px; top: 24px; } .mem-hero::after { right: 26px; top: 60px; font-size: 16px; }
.mem-faces { display: flex; justify-content: center; align-items: center; gap: 8px; }
.mem-faces img, .mem-faces span { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; display: grid; place-items: center; font-size: 30px; background: rgba(255,255,255,.25); box-shadow: 0 6px 14px rgba(0,0,0,.15); }
.mem-faces img.fx { width: 36px; height: 36px; border: 0; box-shadow: none; background: none; }
.mem-faces b { font-size: 24px; animation: hop 1.4s ease-in-out infinite; }
.mem-hero > small { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; opacity: .9; }
.mem-day { font-family: 'Fredoka', sans-serif; font-size: 22px; font-weight: 600; margin-top: 2px; }
.mem-day b { font-size: 56px; line-height: 1; display: inline-block; margin-left: 4px; text-shadow: 0 4px 0 rgba(0,0,0,.12); }
.mem-hero > p { margin: 0 0 14px; font-size: 14px; opacity: .92; }
.mem-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mem-strip div { background: rgba(255,255,255,.2); border-radius: 16px; padding: 8px 4px; }
.mem-strip b { display: block; font-family: 'Fredoka', sans-serif; font-size: 24px; line-height: 1.1; }
.mem-strip small { font-size: 11.5px; font-weight: 600; opacity: .9; }
.mem-prog { height: 10px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--pink-soft); overflow: hidden; }
.mem-prog i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #ffd166, var(--pink), #9a6bff); }
.mem-h { margin: 12px 2px 0; font-size: 18px; color: var(--ink); }
.mem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 480px) { .mem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.badge { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 14px 10px 12px; border-radius: 22px; background: #fff; box-shadow: 0 5px 0 #f1dbe6; min-width: 0; }
.badge .bd-ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; margin-bottom: 4px; background: #f3eef3; filter: grayscale(1) opacity(.45); }
.badge .bd-ic img.fx { width: 36px; height: 36px; }
.badge b { font-size: 14px; line-height: 1.2; color: var(--ink); }
.badge small { font-size: 11.5px; line-height: 1.3; color: var(--ink-soft); }
.badge em { font-style: normal; font-size: 11.5px; font-weight: 700; margin-top: 4px; }
.badge em.lk { color: var(--ink-soft); }
.bd-bar { width: 80%; height: 6px; border-radius: 4px; background: #f3e6ed; overflow: hidden; margin-top: 6px; }
.bd-bar i { display: block; height: 100%; background: var(--pink); border-radius: 4px; }
.badge.ok { background: linear-gradient(170deg, #fffdf3, #fff3d1); box-shadow: 0 5px 0 #f3d98a, 0 10px 20px rgba(240,180,40,.18); }
.badge.ok .bd-ic { filter: none; background: radial-gradient(circle, #fff 30%, #ffe8a3 31%, #ffd166); box-shadow: 0 0 0 4px #fff, 0 4px 12px rgba(240,180,40,.4); }
.badge.ok em { color: #b8860b; }
.mem-tl { list-style: none; margin: 0; padding: 0 0 0 4px; display: flex; flex-direction: column; gap: 10px; border-left: 3px dotted var(--pink-soft); margin-left: 22px; }
.mem-tl li { display: flex; align-items: center; gap: 12px; margin-left: -24px; }
.mem-tl li > span { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; background: #fff; box-shadow: 0 3px 0 #f1dbe6, 0 0 0 3px var(--bg1, #fff0f6); }
.mem-tl li > span img.fx { width: 26px; height: 26px; }
.mem-tl li div { background: #fff; border-radius: 16px; padding: 9px 14px; flex: 1; min-width: 0; box-shadow: 0 3px 0 #f1dbe6; }
.mem-tl b { display: block; font-size: 14.5px; color: var(--ink); } .mem-tl small { font-size: 12.5px; color: var(--ink-soft); }
.mem-empty, .mem-tip { text-align: center; color: var(--ink-soft); font-size: 13.5px; margin: 4px 0 0; }

/* alur Main: pil streak di peta, tab Berdua, pita contoh */
.streak-pill { margin-left: 8px; border: 0; font: inherit; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #fff3e2; color: #c8641a; box-shadow: 0 2px 0 rgba(200,100,26,.2); cursor: pointer; vertical-align: 1px; }
.streak-pill.lit { background: linear-gradient(135deg, #ffb347, #ff6f3c); color: #fff; }
.mode-tabs button { white-space: nowrap; }
#solo-tabs, .play-tabs { overflow-x: auto; scrollbar-width: none; }
.play-tabs { margin: 4px 16px 10px; }
.showcase-bar { display: flex; align-items: center; gap: 10px; }
.showcase-bar .sb-back { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); color: #fff; text-decoration: none; font-weight: 700; opacity: 1; }
.showcase-bar .sb-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.showcase-bar .btn.small { flex: none; }
.play-tabs { width: auto; }
.mode-tabs button { font-size: 13.5px; padding: 9px 4px; }

/* jendela paket ringkas */
.modal-card .pk-head { text-align: center; }
.modal-card .pk-head h2 { margin-bottom: 4px; }
.pk-cards { display: grid; gap: 12px; margin: 14px 0 10px; text-align: left; }
.pk-card { position: relative; border-radius: 20px; padding: 14px 16px; background: #fff; box-shadow: inset 0 0 0 2px var(--pink-soft); }
.pk-card.hot { background: linear-gradient(160deg, #fff, #fff0f7); box-shadow: inset 0 0 0 3px var(--pink); }
.pk-badge { position: absolute; top: -11px; right: 14px; font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(90deg, var(--pink), #9a6bff); padding: 3px 10px; border-radius: 999px; }
.pk-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pk-top b { font-size: 17px; color: var(--ink); } .pk-top span { font-size: 21px; font-weight: 700; color: var(--pink-deep); }
.pk-card ul { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 5px; }
.pk-card li { position: relative; padding-left: 22px; font-size: 13.5px; line-height: 1.35; color: var(--ink); }
.pk-card li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; background: #5fd39a; }
.pk-go { width: 100%; text-align: center; }
.pk-more { text-align: left; margin-bottom: 8px; }
.pk-more summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--pink-deep); padding: 4px 0; }
.pk-more h4 { margin: 10px 0 4px; font-size: 15px; } .pk-more ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-soft); }
.pk-more .pk-note { font-size: 12.5px; color: var(--ink-soft); margin: 6px 0 0; }
/* tab di dalam layar Berdua: lebih kecil, beda dari tab utama di atas */
#screen-online .ol-tabs button, #screen-online [data-ol-tab] { font-size: 13px; }
/* peliharaan terkunci (paket biasa) */
.pet-lock-note { margin: -6px 0 12px; font-size: 13px; color: var(--ink-soft); background: #fff7e0; border-radius: 14px; padding: 8px 12px; }
.pet-grid button.locked { position: relative; opacity: .75; }
.pet-grid button.locked .pet-thumb { filter: grayscale(.9) opacity(.55); }
.pet-lock { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(122, 82, 214, .9); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.pet-grid button span.pet-lock { font-size: 10.5px; line-height: 1.3; width: auto; height: auto; }
.pet-grid button span.pet-lock img.fx { width: 12px; height: 12px; vertical-align: -1px; }

/* pengumuman & testimoni (diatur dari halaman owner) */
.site-ann { display: flex; align-items: center; gap: 10px; width: min(100% - 32px, 1080px); margin: 12px auto 0; padding: 10px 12px 10px 14px; border-radius: 16px; background: #fff7dc; color: #7a5b00; box-shadow: 0 3px 0 #f3dfa0; box-sizing: border-box; }
#screen-home .site-ann { width: 100%; margin: 0 0 4px; }
.site-ann > span { font-size: 20px; flex: none; } .site-ann p { flex: 1; margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; }
.site-ann button { flex: none; border: 0; background: none; font-size: 16px; color: #b08a1a; cursor: pointer; padding: 4px; }
.lp-quotes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lp-quote { margin: 0; background: #fff; border-radius: 22px; padding: 18px; box-shadow: 0 6px 0 #f6cfe0; display: flex; flex-direction: column; gap: 10px; }
.lp-quote img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.lp-quote blockquote { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.lp-quote figcaption b { display: block; font-size: 14px; } .lp-quote figcaption small { font-size: 12.5px; color: var(--ink-soft); }

/* Laptop/PC: tombol layar disembunyiin, ganti petunjuk keyboard */
.kb-hint { display: none; }
body.is-desktop .fight-pad { display: none !important; }
body.is-desktop .kb-hint { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 10px 14px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.kb-hint span { white-space: nowrap; }
.kb-hint kbd { display: inline-block; min-width: 22px; padding: 2px 7px; margin: 0 1px; border-radius: 7px; font: inherit; font-size: 12px; font-weight: 700; text-align: center; color: var(--ink); background: #fff; box-shadow: 0 2px 0 var(--pink-soft), inset 0 0 0 1.5px var(--pink-soft); }
