/* EazyLife (full standard) — DuniaMisi design standard (PRINSIP-DESIGN-UI):
   Titan One headings + Fredoka body, ONE accent (fresh teal-green), sticker
   cards radius 20–32px, pill buttons, touch targets >= 56px, screen titles
   28–34px, money numbers >= 40px, label always in its own text zone below
   the illustration. Animation vocabulary from the Claude builds: pop-in
   with overshoot, gentle shake, hop, slow wobble, feedback pop, confetti
   bursting out from centre. */
:root {
  --accent: #0E9594;
  --accent-dark: #0A6B69;
  --accent-soft: #E0F4F2;
  --ink: #26413E;
  --muted: #6E857F;
  --line: #BFE3DE;
  --reward: #FFB703;
  --good: #43C465;
  --card-shadow: 0 5px 0 rgba(10, 107, 105, 0.14);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Fredoka', 'Segoe UI', Arial, sans-serif;
  font-weight: 500;
  background:
    radial-gradient(1100px 480px at 50% -10%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #CDEEE7 0%, #EFF9EC 52%, #FFF6DC 100%);
  background-attachment: fixed;
  color: var(--ink);
  min-height: 100vh;
}
button {
  font-family: inherit; cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.25s ease, border-color 0.25s ease;
}
h1, h2, h3 { margin: 0; line-height: 1.15; font-family: 'Titan One', 'Fredoka', sans-serif; font-weight: 400; letter-spacing: 0.2px; }
p { margin: 0; }

/* ---------- top bar ---------- */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: rgba(240, 251, 248, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--accent);
}
.top-left { display: flex; gap: 8px; }
.top-title { font-family: 'Titan One', 'Fredoka', sans-serif; font-size: 24px; color: var(--accent-dark); letter-spacing: 0.5px; }
.icon-btn {
  width: 56px; height: 56px; border-radius: 50%;
  border: 3px solid #fff; background: #FFC93C; color: #7A5B00;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 0 rgba(0,0,0,0.12); text-decoration: none;
}
.icon-btn:active { transform: scale(0.95); }
.icon-btn.active { background: var(--accent); color: #fff; }
.icon-btn.off { background: #D8D8D8; color: #777; }
.home-btn { background: #E63946; color: #fff; }

#screen { max-width: 560px; margin: 0 auto; padding: 86px 14px 42px; }

.card {
  background: #fff; border-radius: 26px; padding: 16px;
  border: 3px solid var(--line); box-shadow: var(--card-shadow);
}
.badge {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
  font-size: 12px; padding: 3px 10px; border-radius: 999px; letter-spacing: 0.8px;
  text-transform: uppercase;
}
.big-btn {
  display: block; width: 100%; min-height: 64px; margin-top: 14px;
  background: var(--accent); color: #fff; font-size: 22px; font-weight: 700;
  font-family: 'Fredoka', sans-serif;
  border: none; border-radius: 999px; box-shadow: 0 5px 0 var(--accent-dark);
}
.big-btn:active { transform: scale(0.96); box-shadow: 0 2px 0 var(--accent-dark); }
.big-btn.alt { background: #fff; color: var(--accent-dark); border: 3px solid var(--accent); box-shadow: 0 5px 0 rgba(10, 107, 105, 0.25); }
.mini-toggle {
  display: block; margin: 12px auto 0; background: #fff; border: 2px solid var(--line);
  border-radius: 999px; padding: 10px 18px; font-size: 15px; font-weight: 600; color: var(--accent-dark);
  min-height: 48px;
}
.mini-toggle:active { transform: scale(0.95); }

/* ---------- art sprites ---------- */
.kancil-pose {
  background-image: url('assets/kancil-poses.jpg');
  background-size: 200% 200%; background-repeat: no-repeat;
  border-radius: 22px; flex: none;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}
.money-sprite {
  background-image: url('assets/money-sheet.jpg');
  background-size: 300% 200%; background-repeat: no-repeat;
  aspect-ratio: 1 / 1; flex: none;
}
.routine-sprite {
  background-image: url('assets/routine-items.jpg');
  background-size: 300% 200%; background-repeat: no-repeat;
  aspect-ratio: 1 / 1; flex: none;
}
.card-money { width: 84px; }
.slot-money { width: 54px; }
.piece-money { width: 80px; }
.wallet-money { width: 62px; }
.tray-money { width: 46px; }
.pay-note { width: 150px; margin: 0 auto; }
.step-art { width: 62px; }
.item-sprite { width: 82px; }

/* ---------- entry ---------- */
.entry-hero { border-radius: 26px; overflow: hidden; box-shadow: var(--card-shadow); border: 3px solid var(--line); }
.entry-hero img { width: 100%; height: 210px; object-fit: cover; display: block; }
.entry-title { padding: 14px 4px 0; }
.entry-title h1 { font-size: 40px; color: var(--accent-dark); margin-top: 6px; }
.entry-title p { font-size: 18px; font-weight: 600; color: var(--muted); }
.entry-body { padding-top: 14px; }
.entry-host { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tier-btn {
  background: #fff; border: 4px solid var(--accent); border-radius: 26px; padding: 16px 12px;
  display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center;
  box-shadow: var(--card-shadow); min-height: 156px;
}
.tier-btn:active { transform: scale(0.96); background: var(--accent); }
.tier-btn:active .tier-age { color: #fff; }
.tier-btn:active .tier-desc { color: #EAF9F8; }
.tier-age { font-family: 'Titan One', 'Fredoka', sans-serif; font-size: 27px; color: var(--accent-dark); }
.tier-desc { font-size: 15px; font-weight: 600; color: var(--muted); line-height: 1.45; }
.entry-note { text-align: center; margin-top: 14px; font-weight: 600; color: var(--muted); font-size: 14px; }

/* ---------- speech bubble / host ---------- */
.bubble {
  position: relative; flex: 1; background: #fff; border: 3px solid var(--line);
  border-radius: 20px; padding: 12px 52px 12px 14px; min-height: 64px;
  box-shadow: var(--card-shadow);
}
.bubble::before {
  content: ''; position: absolute; left: -12px; bottom: 24px; width: 18px; height: 18px;
  background: #fff; border-left: 3px solid var(--line); border-bottom: 3px solid var(--line);
  transform: rotate(45deg); border-bottom-left-radius: 5px;
}
.bubble p { font-size: 18px; font-weight: 600; line-height: 1.35; }
.speaker-btn {
  position: absolute; right: 7px; bottom: 7px; width: 46px; height: 46px;
  border-radius: 50%; border: none; background: #FFC93C; color: #7A5B00;
  display: inline-flex; align-items: center; justify-content: center;
}
.speaker-btn:active { transform: scale(0.92); }
.host-strip { display: flex; gap: 12px; align-items: flex-end; margin: 12px 0 14px; }
.host-jump { animation: jump 0.5s ease; }

/* ---------- home ---------- */
.hero { border-radius: 26px; overflow: hidden; box-shadow: var(--card-shadow); border: 3px solid var(--line); }
.hero-img { width: 100%; height: 148px; object-fit: cover; display: block; }
.home-title-row { display: flex; gap: 12px; align-items: center; margin: 12px 2px 0; }
.home-title-text { flex: 1; }
.home-title-text h1 { font-size: 34px; color: var(--accent-dark); margin: 4px 0 2px; }
.home-title-text p { font-size: 15px; font-weight: 600; color: var(--muted); line-height: 1.35; }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; background: #fff;
  border: 3px solid var(--line); border-radius: 999px; padding: 6px 13px;
  font-size: 15px; font-weight: 600; color: var(--accent-dark); min-height: 44px;
}
.chip b { font-size: 17px; }
.tier-chip { font-family: inherit; cursor: pointer; background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
.tier-chip:active { transform: scale(0.95); }
.missions-card { padding: 13px 16px; }
.missions-card h2 { font-size: 22px; margin-bottom: 8px; color: var(--accent-dark); }
.mission { margin-bottom: 9px; }
.mission-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mission-text { font-weight: 600; font-size: 16px; }
.mission-count { font-weight: 700; color: var(--accent-dark); }
.mission-check { color: var(--good); display: inline-flex; }
.mission-bar { height: 12px; background: #E4F0EC; border-radius: 999px; overflow: hidden; margin-top: 5px; }
.mission-bar span { display: block; height: 100%; background: linear-gradient(90deg, #37B8B2, var(--accent)); border-radius: 999px; transition: width 0.4s; }
.mission.done .mission-bar span { background: var(--good); }
.claim-btn {
  width: 100%; min-height: 56px; border: none; border-radius: 999px; margin-top: 4px;
  background: var(--accent); color: #fff; font-size: 19px; font-weight: 700; box-shadow: 0 4px 0 var(--accent-dark);
}
.claim-btn:active { transform: scale(0.96); }
.claim-done { text-align: center; font-weight: 600; color: var(--good); margin-top: 6px; }
.pick-label { font-size: 20px; font-weight: 700; font-family: 'Titan One', 'Fredoka', sans-serif; color: var(--accent-dark); margin: 14px 2px 10px; }
/* Activity choices: 2-column grid; illustration on top, label in its own
   text zone below — text never overlaps art. */
.act-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.act-card {
  display: flex; flex-direction: column; align-items: stretch; text-align: left; width: 100%;
  background: #fff; border: 3px solid var(--line);
  border-radius: 24px; padding: 0; overflow: hidden; box-shadow: var(--card-shadow);
}
.act-card:active { transform: scale(0.97); }
.act-card:last-child { grid-column: span 2; }
.act-art {
  width: 100%; height: 102px; flex: none; display: flex; align-items: center; justify-content: center;
  background: #FFF7E0; background: color-mix(in srgb, var(--mc) 15%, #ffffff); overflow: hidden;
}
.act-card:last-child .act-art { height: 110px; }
.card-art-img { width: 100%; height: 100%; object-fit: cover; }
.act-info { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 9px 12px 11px; }
.act-name { font-family: 'Titan One', 'Fredoka', sans-serif; font-size: 20px; color: var(--ink); }
.act-sub { font-size: 13.5px; font-weight: 600; color: var(--muted); line-height: 1.3; }
.act-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.act-go { background: var(--accent); color: #fff; font-weight: 700; padding: 9px 18px; border-radius: 999px; font-size: 15px; }
.act-lock { color: #B9B9B9; display: inline-flex; }
.star-row { display: inline-flex; gap: 2px; align-items: center; }
.star { color: #DDD3B8; display: inline-flex; }
.star.on { color: var(--reward); }
.demo-note { text-align: center; margin-top: 14px; font-weight: 600; color: var(--muted); font-size: 14px; }

/* ---------- locked / complete ---------- */
.locked-card, .complete-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.locked-icon { color: #E63946; display: inline-flex; }
.locked-card h2 { font-size: 28px; }
.complete-card h1 { font-size: 30px; color: var(--accent-dark); }
.locked-card p, .complete-card p { font-weight: 600; color: var(--muted); font-size: 17px; line-height: 1.4; }
.complete-img { width: 100%; border-radius: 16px; }
.complete-btns { width: 100%; }

/* ---------- play scaffold ---------- */
.play-head { display: flex; align-items: center; gap: 10px; }
.play-head h2 { font-size: 30px; font-weight: 400; color: var(--accent-dark); }
.back-btn {
  display: inline-flex; align-items: center; gap: 3px; background: #fff;
  border: 3px solid var(--line); color: var(--accent-dark); border-radius: 999px;
  padding: 7px 16px 7px 10px; font-size: 16px; font-weight: 700; min-height: 56px;
}
.back-btn:active { transform: scale(0.95); }
.prog-pill {
  background: var(--accent); color: #fff; font-weight: 700; font-size: 16px;
  border-radius: 999px; padding: 5px 13px; white-space: nowrap;
}
.prog-row { display: flex; justify-content: flex-end; margin: -4px 0 8px; }
.q-progress { margin-left: auto; display: flex; gap: 5px; }
.q-dot { width: 13px; height: 13px; border-radius: 50%; background: #D8E8E2; }
.q-dot.now { background: var(--accent); transform: scale(1.25); }
.q-dot.done { background: var(--good); }
.scene-card { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.scene-art { flex: none; width: 86px; height: 86px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); border-radius: 18px; overflow: hidden; }
.scene-card h3 { font-size: 21px; }
.scene-time { font-size: 26px; font-weight: 700; color: #E63946; }

/* ---------- susun pagi ---------- */
.susun-stage { position: relative; border-radius: 22px; overflow: hidden; margin-bottom: 12px; box-shadow: var(--card-shadow); border: 3px solid var(--line); }
.susun-stage img { width: 100%; height: 168px; object-fit: cover; display: block; }
.stage-clock {
  position: absolute; right: 10px; bottom: 10px; background: rgba(255,255,255,0.94);
  border-radius: 16px; padding: 6px 10px; display: flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--accent-dark); font-size: 15px;
}
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 12px; }
.slot {
  background: #FFFDF6; border: 3px dashed #BFD8CF; border-radius: 18px; min-height: 108px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 6px 4px; position: relative;
}
.slot.filled { border-style: solid; border-color: var(--good); background: #EAF9EE; }
.slot-num {
  position: absolute; top: 5px; left: 8px; font-weight: 700; color: #9DB8AF; font-size: 14px;
}
.slot-label { font-weight: 700; font-size: 14px; text-align: center; color: var(--muted); }
.slot.filled .slot-label { color: #2E7D46; }
.tray-label { font-weight: 600; color: var(--muted); font-size: 14px; margin: 4px 2px 8px; }
.card-tray { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.step-card {
  width: 104px; min-height: 112px; background: #fff; border: 3px solid var(--line); border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 15px; font-weight: 700; color: var(--ink); box-shadow: var(--card-shadow);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
/* Selected = full colour fill (design standard). */
.step-card.selected { background: var(--accent); border-color: var(--accent-dark); color: #fff; transform: translateY(-5px); box-shadow: 0 8px 0 rgba(10, 107, 105, 0.3); }
.step-card.dragging, .coin-piece.dragging { box-shadow: 0 14px 24px rgba(0,0,0,0.3); }

/* ---------- jam ajaib / pukul berapa ---------- */
.bigclock-wrap { display: flex; justify-content: center; margin: 6px 0 4px; }
#bigclock { cursor: grab; border-radius: 50%; }
#bigclock.clock-good svg { filter: drop-shadow(0 0 16px rgba(67, 196, 101, 0.9)); }
.clock-svg { display: block; }
.clock-svg.interactive { pointer-events: none; }
/* Hands rotate as groups around the view-box centre with a spring feel. */
.hand-g { transform-box: view-box; transform-origin: center; transition: transform 0.38s cubic-bezier(0.34, 1.45, 0.64, 1); }
.setcontrols { display: flex; gap: 12px; justify-content: center; align-items: flex-start; flex-wrap: wrap; margin-top: 8px; }
.ctl-group { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ctl-group > span { font-weight: 700; color: var(--muted); font-size: 14px; }
.ctl-group > div { display: flex; gap: 8px; }
.ctl-btn {
  width: 58px; height: 58px; border-radius: 50%; border: none; background: var(--accent); color: #fff;
  font-size: 30px; font-weight: 700; box-shadow: 0 4px 0 var(--accent-dark);
}
.ctl-btn:active { transform: scale(0.92); box-shadow: 0 1px 0 var(--accent-dark); }
.ctl-btn.wide { width: auto; border-radius: 999px; padding: 0 22px; font-size: 18px; }
.ctl-note { font-weight: 600; color: var(--muted); align-self: center; font-size: 15px; }
.clock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.clock-opt {
  background: #fff; border: 3px solid var(--line); border-radius: 20px; padding: 10px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 15px; font-weight: 700; color: var(--ink); box-shadow: var(--card-shadow);
}
.clock-opt:active { transform: scale(0.95); }
/* Correct = full green fill + pop. */
.clock-opt.good { background: var(--good); border-color: #2E9E4F; color: #fff; animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* ---------- tabung ---------- */
.goal-card { display: flex; gap: 13px; align-items: center; margin-bottom: 12px; }
.goal-art { flex: none; width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); border-radius: 16px; overflow: hidden; }
.goal-info { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.goal-name { font-weight: 700; font-size: 17px; }
.goal-bar { height: 14px; background: #E4F0EC; border-radius: 999px; overflow: hidden; }
.goal-bar span { display: block; height: 100%; background: linear-gradient(90deg, #F2C94C, var(--reward)); transition: width 0.4s; }
.goal-saved { font-weight: 600; color: var(--accent-dark); font-size: 16px; }
.goal-saved b { font-size: 24px; }
.coin-field {
  position: relative; height: 288px; background: #FFFDF6; border: 3px solid var(--line);
  border-radius: 22px; margin-bottom: 12px; overflow: hidden;
}
.coin-piece {
  position: absolute; width: 84px; height: 84px; padding: 0; background: none; border: none;
  touch-action: none; user-select: none; -webkit-user-select: none; border-radius: 50%;
}
.coin-piece.selected { filter: drop-shadow(0 0 0.45rem var(--accent)); transform: scale(1.1); }
.piggy-slots { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; }
.piggy-slot {
  flex: 1; min-width: 76px; max-width: 118px; min-height: 108px; background: #FFE9F1; border: 3px dashed #F2A7C3;
  border-radius: 20px; padding: 9px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  position: relative;
}
.piggy-ic { color: #E86A92; display: inline-flex; }
.slot-denom { font-weight: 700; font-size: 15px; color: #B04A72; }
.slot-count {
  position: absolute; top: -9px; right: -6px; background: #E63946; color: #fff; font-weight: 700;
  font-size: 14px; min-width: 26px; height: 26px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 6px;
  border: 2px solid #fff;
}
.piggy-slot.pulse { animation: pulse 0.45s ease; }

/* ---------- kedai kecil ---------- */
.kedai-banner { border-radius: 22px; overflow: hidden; margin-bottom: 12px; box-shadow: var(--card-shadow); border: 3px solid var(--line); }
.kedai-banner img { width: 100%; height: 150px; object-fit: cover; object-position: 50% 30%; display: block; }
.list-card { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.list-title { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; color: var(--accent-dark); }
.list-chip { background: #FFF3D6; border: 2px solid var(--reward); border-radius: 999px; padding: 5px 13px; font-weight: 700; font-size: 15px; }
.list-chip.got { background: var(--good); border-color: var(--good); color: #fff; text-decoration: line-through; }
.basket-count { margin-left: auto; font-weight: 700; color: var(--accent-dark); }
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shelf-item {
  background: #fff; border: 3px solid var(--line); border-radius: 20px; padding: 9px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  box-shadow: var(--card-shadow); min-height: 118px;
}
.shelf-item:active { transform: scale(0.95); }
.shelf-item.in-basket { border-color: var(--good); background: #EAF9EE; opacity: 0.75; }
.shelf-art { height: 66px; display: flex; align-items: center; }
.shelf-name { font-weight: 700; font-size: 16px; }
.price-tag { background: var(--reward); color: #7A5B00; font-weight: 700; font-size: 14px; border-radius: 999px; padding: 2px 10px; }
.counter-card h3 { font-size: 22px; margin-bottom: 6px; }
.total-line { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.total-line b { color: #E63946; font-size: 40px; font-weight: 700; }
.pay-note-btn {
  width: 100%; background: var(--accent-soft); border: 3px dashed var(--accent); border-radius: 20px;
  padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-weight: 700; font-size: 16px; color: var(--accent-dark); min-height: 64px;
}
.pay-note-btn:active { transform: scale(0.97); }
.tray {
  min-height: 78px; background: #FFFDF6; border: 3px dashed #BFD8CF; border-radius: 18px;
  display: flex; flex-wrap: wrap; gap: 7px; align-items: center; padding: 9px;
}
.tray-item { background: none; border: none; padding: 0; }
.tray-item:active { transform: scale(0.92); }
.tray-empty { font-weight: 600; color: #9DB8AF; }
.tray-total { font-size: 19px; font-weight: 600; margin: 9px 0; }
.tray-total b { color: var(--accent-dark); font-size: 34px; }
.wallet { display: flex; flex-wrap: wrap; gap: 9px; }
.wallet-btn {
  background: #fff; border: 3px solid var(--line); border-radius: 18px; padding: 6px 9px;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-weight: 700; font-size: 13px; color: var(--muted); box-shadow: var(--card-shadow);
  min-height: 64px; min-width: 76px;
}
.wallet-btn:active { transform: scale(0.93); }

/* ---------- fx ---------- */
#confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
/* Confetti bursts OUT from centre with random x/y/rotation, then falls. */
.confetti {
  position: absolute; left: 50%; top: 56%; width: 10px; height: 16px; margin: -8px 0 0 -5px;
  animation: confetti-fly 1.7s cubic-bezier(0.17, 0.67, 0.35, 1) forwards;
}
@keyframes confetti-fly {
  0% { transform: translate(0, 0) scale(0.4) rotate(0deg); opacity: 1; }
  55% { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); opacity: 1; }
  100% { transform: translate(var(--x), calc(var(--y) + 38vh)) rotate(var(--r)) scale(0.9); opacity: 0; }
}
.burst-star { position: fixed; z-index: 95; pointer-events: none; display: inline-flex; transform: translate(-50%, -50%); }
.fly-ghost { position: fixed; z-index: 96; pointer-events: none; transform: translate(-50%, -50%); filter: drop-shadow(0 8px 12px rgba(0,0,0,0.25)); }
#praise-pop {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 0) scale(0); z-index: 80;
  display: flex; align-items: center; gap: 10px; background: #fff; border: 3px solid var(--good);
  border-radius: 999px; padding: 6px 22px 6px 8px; font-size: 21px; font-weight: 700; color: #2E7D46;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  pointer-events: none; max-width: 92vw; opacity: 0;
}
#praise-pop.show { animation: fbp 1.25s forwards; }
@keyframes fbp {
  0% { transform: translate(-50%, 0) scale(0); opacity: 1; }
  15% { transform: translate(-50%, 0) scale(1.1); opacity: 1; }
  30% { transform: translate(-50%, 0) scale(1); opacity: 1; }
  80% { transform: translate(-50%, 0) scale(1); opacity: 1; }
  100% { transform: translate(-50%, 0) scale(0.9); opacity: 0; }
}
/* Pop entrance with overshoot (Claude vocabulary). */
.pop-in { animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; }
@keyframes pop-in {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.shake { animation: shake 0.45s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
@keyframes jump { 40% { transform: translateY(-22px) scale(1.06); } }
@keyframes wob {
  0%, 100% { transform: rotate(-2.5deg); }
  50% { transform: rotate(2.5deg) scale(1.03); }
}
@keyframes pulse {
  0% { transform: scale(1); } 40% { transform: scale(1.09); } 100% { transform: scale(1); }
}
/* Slow wobble idle on mascot/sticker moments. */
.entry-host .kancil-pose, .complete-card .kancil-pose, #praise-pop .kancil-pose, .locked-card .kancil-pose {
  animation: wob 3.2s ease-in-out infinite;
}
@media (max-width: 380px) {
  .clock-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .home-title-text h1 { font-size: 29px; }
  .tier-grid { grid-template-columns: 1fr; }
  .play-head h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01s !important;
  }
}
