/* Eazy Math — Kampung Kira-Kira. DuniaMisi standard (PRINSIP-DESIGN-UI):
   Titan One headings + Fredoka body, ONE warm-orange accent, sticker-book
   cards (radius 20–32px), pill buttons, touch targets ≥56px, label in its
   own text zone below the illustration. Animation vocabulary adopted from
   the Claude builds: pop/shake/jump/wob/fbp/fly. Positive feedback only. */
:root {
  --ink: #3a2e25;
  --paper: #fff8ec;
  --accent: #f07f13;
  --accent-dark: #d96a06;
  --accent-soft: #ffe7c7;
  --good: #57b83e;
  --sun: #ffd93d;
  --berry: #ff7b9c;
  --sky: #6ec6f5;
  --card: #ffffff;
  --radius: 24px;
  --shadow: 0 4px 0 rgba(58, 46, 37, .18), 0 10px 24px rgba(58, 46, 37, .12);
  --font-head: "Titan One", "Fredoka", "Baloo 2", system-ui, sans-serif;
  --font-body: "Fredoka", "Baloo 2", "Chalkboard SE", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-weight: 500;
  background: linear-gradient(180deg, #bfe8ff 0%, #e8f9d8 55%, #fff3cf 100%);
  color: var(--ink);
  min-height: 100vh;
}
button { font-family: inherit; cursor: pointer; }
h1, h2, .game-title, .top-title, .game-place-title, .daily-title, .pc-name, .age-big {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: .4px;
}
.hidden { display: none !important; }
.screen { max-width: 880px; margin: 0 auto; padding: 14px 14px 40px; }

/* ---------- Keyframes (Claude vocabulary) ---------- */
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
@keyframes jump { 40% { transform: translateY(-22px) scale(1.15); } }
@keyframes wob { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(4deg) scale(1.04); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fbp {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  15% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  80% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(.9); opacity: 0; }
}
@keyframes fly {
  0% { transform: translate(0, 0) scale(.4) rotate(0deg); opacity: 1; }
  50% { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); opacity: 1; }
  100% { transform: translate(var(--x), calc(var(--y) + 35vh)) rotate(var(--r)); opacity: 0; }
}
@keyframes burst {
  0% { transform: translate(0, 0) scale(.3) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) scale(1.2) rotate(var(--r)); opacity: 0; }
}
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }

/* ---------- Kancil poses (2x2 sheet quadrants) ---------- */
.kancil {
  background-image: url("assets/kancil-poses.jpg");
  background-size: 200% 200%;
  background-repeat: no-repeat;
  border-radius: 50%;
  flex: none;
  animation: wob 3.4s ease-in-out infinite;
}
.kancil.jump-anim { animation: jump .45s ease; }
.pose-wave  { background-position: 0% 0%; }
.pose-think { background-position: 100% 0%; }
.pose-cheer { background-position: 0% 100%; }
.pose-sign  { background-position: 100% 100%; }
.kancil-lg { width: 168px; height: 168px; }
.kancil-md { width: 92px; height: 92px; }
.kancil-sm { width: 60px; height: 60px; }

/* ---------- Kuih sprites (3x3 sheet) ---------- */
.sprite {
  background-image: url("assets/kuih-items.jpg");
  background-size: 300% 300%;
  background-repeat: no-repeat;
  border-radius: 14px;
  display: inline-block;
  flex: none;
}
.sprite-lg { width: 104px; height: 104px; }
.sprite-md { width: 58px; height: 58px; }
.sprite-sm { width: 36px; height: 36px; }
.sprite-xs { width: 26px; height: 26px; }

/* ---------- Age / entry ---------- */
.age-wrap { text-align: center; padding-top: 4vh; }
.age-wrap .kancil { margin: 0 auto; }
.game-title {
  font-size: clamp(44px, 10vw, 68px);
  margin: 6px 0 2px;
  color: var(--accent-dark);
  text-shadow: 0 3px 0 #fff, 0 6px 0 rgba(58,46,37,.15);
}
.tagline { font-size: 19px; margin: 4px 0 18px; }
.age-q { font-size: 24px; font-weight: 700; margin: 10px 0; }
.age-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.age-btn {
  border: 4px solid #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  min-width: 240px; min-height: 96px;
  display: flex; flex-direction: column; gap: 4px; align-items: center;
  color: #fff;
  transition: transform .25s ease, background-color .25s ease;
}
.age-btn[data-tier="45"] { background: linear-gradient(180deg, #ffa53d, #f58a1d); }
.age-btn[data-tier="67"] { background: linear-gradient(180deg, #f07f13, #d96a06); }
.age-btn:active { transform: scale(.95); }
.age-big { font-size: 30px; }
.age-sub { font-size: 15px; font-weight: 600; opacity: .95; }
.age-note { margin-top: 20px; font-size: 14px; opacity: .75; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--card); border: 3px solid #fff; border-radius: 999px;
  box-shadow: var(--shadow); padding: 6px 10px; margin-bottom: 12px;
  position: sticky; top: 8px; z-index: 30;
}
.top-left, .top-right { display: flex; align-items: center; gap: 6px; }
.top-title { font-size: clamp(17px, 4.5vw, 22px); color: var(--accent-dark); white-space: nowrap; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--paper); border-radius: 999px; padding: 4px 10px 4px 6px;
  font-weight: 700; font-size: 16px; border: 2px solid var(--accent-soft);
  min-height: 40px;
}
.chip-ic { width: 20px; height: 20px; }
.icon-btn {
  border: 2px solid var(--accent-soft); background: var(--paper); border-radius: 999px;
  width: 48px; height: 48px; font-size: 20px; line-height: 1;
  transition: transform .2s ease;
}
.icon-btn:active { transform: scale(.95); }
.icon-btn.off { opacity: .38; filter: grayscale(1); }
.home-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
  border-radius: 999px; padding: 11px 16px; font-size: 16px; border: 2px solid #fff;
  box-shadow: 0 3px 0 rgba(58,46,37,.2); min-height: 48px;
  transition: transform .2s ease;
}
.home-btn:active { transform: scale(.95); }
.home-btn span { font-size: 14px; }

/* ---------- World map ---------- */
.world-wrap {
  position: relative; border-radius: 26px; overflow: hidden;
  border: 4px solid #fff; box-shadow: var(--shadow); background: #cfeeff;
}
.world-img { display: block; width: 100%; height: auto; }
.hotspot {
  position: absolute; border: none; background: transparent; padding: 0;
  display: flex; align-items: flex-end; justify-content: center;
}
.hs-label {
  background: rgba(255,255,255,.96); border: 3px solid #fff; border-radius: 999px;
  box-shadow: 0 3px 0 rgba(58,46,37,.25);
  padding: 5px 12px; font-weight: 700; font-size: clamp(12px, 3.4vw, 17px);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  animation: bob 3s ease-in-out infinite;
}
.hotspot:active .hs-label { transform: scale(.94); }
.hs-stars { color: #f5a623; font-size: .92em; letter-spacing: 1px; }
.hs-lock { font-size: .95em; }

/* ---------- Place cards: illustration + own text zone below ---------- */
.places-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 14px;
}
.place-card {
  background: var(--card); border: 3px solid #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 0; text-align: left; color: var(--ink);
  display: flex; flex-direction: column; overflow: hidden; min-height: 56px;
  transition: transform .25s ease;
  animation: pop .45s backwards; animation-delay: calc(var(--i, 0) * 60ms);
}
.place-card:active { transform: scale(.95); }
.pc-art {
  height: 104px; flex: none;
  background-image: url("assets/math-world.jpg");
  background-size: 300% 300%;
  background-repeat: no-repeat;
}
.pc-art.art-kuih    { background-position: 8% 42%; }
.pc-art.art-timbang { background-position: 44% 40%; }
.pc-art.art-katak   { background-image: url("assets/frog-pond.jpg"); background-size: cover; background-position: center; }
.pc-art.art-memori  { background-position: 92% 62%; }
.pc-art.art-bas     { background-position: 90% 12%; }
.pc-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pc-name { font-size: 20px; color: var(--accent-dark); }
.place-card.locked .pc-name { color: var(--ink); opacity: .8; }
.pc-desc { font-size: 13.5px; font-weight: 500; opacity: .8; line-height: 1.3; }
.pc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 6px; }
.pc-stars { color: #f5a623; letter-spacing: 2px; font-size: 16px; }
.pc-tag { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 5px 11px; color: #fff; background: var(--accent); }
.pc-tag.lock { background: #a08b74; }

/* ---------- Misi Harian ---------- */
.daily-panel {
  margin-top: 14px; background: var(--card); border: 3px solid #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px;
}
.daily-head { display: flex; justify-content: space-between; align-items: baseline; }
.daily-title { font-size: 20px; color: var(--accent-dark); }
.daily-date { font-size: 13px; opacity: .7; }
.daily-task { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.dt-check {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  border: 3px solid var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  background: #fff;
}
.daily-task.done .dt-check { background: var(--good); border-color: var(--good); }
.dt-body { flex: 1; }
.dt-text { font-size: 15.5px; font-weight: 600; }
.daily-task.done .dt-text { opacity: .6; text-decoration: line-through; }
.dt-bar { height: 9px; background: var(--accent-soft); border-radius: 99px; overflow: hidden; margin-top: 3px; }
.dt-fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s ease; }
.dt-num { font-size: 13px; font-weight: 700; opacity: .7; }
.daily-all-done { margin-top: 10px; font-weight: 700; color: var(--accent-dark); }

.tier-row { margin-top: 14px; display: flex; align-items: center; gap: 10px; justify-content: center; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--accent); color: #fff; border: 3px solid #fff; border-radius: 999px;
  box-shadow: 0 4px 0 rgba(58,46,37,.25); font-weight: 700; font-size: 19px;
  padding: 12px 26px; min-height: 58px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:active { transform: scale(.95); box-shadow: 0 2px 0 rgba(58,46,37,.25); }
.btn-ghost {
  background: #fff; color: var(--ink); border: 3px solid #e8dcc4; border-radius: 999px;
  font-weight: 700; font-size: 16px; padding: 10px 20px; min-height: 52px;
  transition: transform .2s ease;
}
.btn-ghost:active { transform: scale(.95); }
.btn-ghost.small { min-height: 44px; padding: 6px 14px; font-size: 14px; }

/* ---------- Game screen ---------- */
.game-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.back-btn {
  background: #fff; border: 3px solid #e8dcc4; border-radius: 999px;
  font-weight: 700; font-size: 15px; padding: 8px 14px; min-height: 52px;
  transition: transform .2s ease;
}
.back-btn:active { transform: scale(.95); }
.game-place-title { font-size: clamp(24px, 6vw, 30px); color: var(--accent-dark); }
.progress-pill {
  margin-left: auto; background: var(--accent-soft); color: var(--accent-dark);
  font-family: var(--font-head); font-size: 17px;
  border-radius: 999px; padding: 6px 14px; border: 2px solid #fff;
  box-shadow: 0 2px 0 rgba(58,46,37,.15); white-space: nowrap;
}
.progress-dots { display: flex; gap: 5px; }
.progress-dots .dot { width: 13px; height: 13px; border-radius: 50%; background: #e8dcc4; border: 2px solid #fff; transition: background-color .3s ease, transform .3s ease; }
.progress-dots .dot.on { background: var(--accent); }
.progress-dots .dot.now { background: var(--sun); transform: scale(1.25); }

.speech-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.bubble {
  background: #fff; border: 3px solid #fff; border-radius: 20px; box-shadow: var(--shadow);
  padding: 10px 14px; flex: 1; position: relative;
}
.bubble::before {
  content: ""; position: absolute; left: -11px; top: 30px;
  border: 6px solid transparent; border-right: 9px solid #fff;
}
.bubble p { margin: 0; font-size: clamp(17px, 4.6vw, 21px); font-weight: 600; line-height: 1.35; }
.replay-btn {
  margin-top: 7px; background: var(--paper); border: 2px solid var(--accent-soft); border-radius: 999px;
  font-weight: 700; font-size: 14px; padding: 6px 12px; min-height: 44px;
  transition: transform .2s ease;
}
.replay-btn:active { transform: scale(.95); }
#game-area {
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,248,236,.88));
  border: 3px solid #fff; border-radius: 26px;
  box-shadow: var(--shadow); padding: 16px; min-height: 300px;
}
.options-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.opt-btn {
  background: #fff; border: 4px solid var(--accent); border-radius: 20px;
  font-family: var(--font-head); font-size: 32px; color: var(--ink);
  min-width: 84px; min-height: 72px; padding: 8px 18px;
  box-shadow: 0 4px 0 rgba(58,46,37,.18);
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
  animation: pop .4s backwards; animation-delay: calc(var(--i, 0) * 60ms);
}
.opt-btn:active { transform: scale(.95); }
.opt-btn.good { background: var(--good); border-color: #fff; color: #fff; animation: pop .5s; }
.opt-btn.bad { animation: shake .45s; }
.opt-btn.tried { opacity: .6; }
.big-question {
  text-align: center; font-family: var(--font-head);
  font-size: clamp(40px, 9vw, 52px); margin: 6px 0; color: var(--accent-dark);
}
.encourage { text-align: center; font-size: 19px; font-weight: 700; color: var(--berry); min-height: 26px; margin-top: 8px; }

/* ---------- Kedai Kuih ---------- */
.order-banner {
  background: var(--paper); border: 3px dashed var(--accent); border-radius: 18px;
  padding: 8px 12px; font-weight: 700; font-size: 18px; text-align: center; margin-bottom: 12px;
}
.kuih-stage { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.shelf-item {
  border: 4px solid #fff; border-radius: 24px; background: #fff; box-shadow: var(--shadow);
  padding: 10px 16px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: transform .2s ease;
  animation: pop .4s backwards;
}
.shelf-item:active { transform: scale(.95); }
.shelf-item .tap-hint { font-size: 14px; font-weight: 700; color: var(--accent-dark); }
.basket-zone { width: 100%; }
.basket-label { font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
.count-badge {
  background: var(--accent); color: #fff; border-radius: 999px; padding: 3px 14px;
  font-family: var(--font-head); font-size: 22px;
}
.basket {
  min-height: 96px; background: #fff; border: 3px solid var(--accent-soft); border-radius: 18px;
  padding: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start;
}
.basket .sprite {
  cursor: pointer;
  animation: pop .35s backwards; animation-delay: calc(var(--i, 0) * 45ms);
}
.basket-empty { opacity: .55; font-weight: 600; padding: 8px; }
.give-mode .basket { border-color: var(--berry); background: #fff2f5; }

/* ---------- Timbang Ajaib ---------- */
.scale-wrap { display: flex; flex-direction: column; align-items: center; }
.scale-beam-zone { width: 100%; max-width: 520px; }
.scale-beam {
  display: flex; justify-content: space-between; align-items: flex-end;
  transition: transform .8s cubic-bezier(.34,1.4,.64,1);
  transform-origin: 50% 100%;
}
.pan-col { display: flex; flex-direction: column; align-items: center; width: 44%; }
.pan-items {
  min-height: 74px; display: flex; flex-wrap: wrap; gap: 3px; justify-content: center;
  align-content: flex-end; padding: 4px;
}
.pan-items .sprite {
  animation: pop .35s backwards; animation-delay: calc(var(--i, 0) * 45ms);
}
.pan-items .weight-chip {
  background: var(--accent); color: #fff; font-weight: 700; font-size: 26px;
  font-family: var(--font-head);
  border: 3px solid #fff; border-radius: 14px; padding: 4px 12px; box-shadow: var(--shadow);
  animation: pop .35s backwards;
}
.pan-items .weight-chip.mystery { background: var(--berry); }
.pan {
  width: 100%; height: 20px; background: linear-gradient(180deg, #c98d4b, #a06a2c);
  border-radius: 0 0 60px 60px; border: 3px solid #fff; border-top: none;
}
.scale-post { width: 16px; height: 64px; background: #a06a2c; border-radius: 8px; margin: -6px auto 0; border: 2px solid #fff; }
.scale-base { width: 150px; height: 16px; background: #a06a2c; border-radius: 10px; margin: 0 auto; border: 2px solid #fff; }
.scale-status { font-size: 21px; font-weight: 700; margin-top: 10px; min-height: 28px; text-align: center; }
.side-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.side-btn {
  background: #fff; border: 4px solid var(--accent); border-radius: 18px;
  font-weight: 700; font-size: 18px; padding: 12px 18px; min-height: 60px;
  box-shadow: 0 4px 0 rgba(58,46,37,.18);
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
  animation: pop .4s backwards; animation-delay: calc(var(--i, 0) * 60ms);
}
.side-btn:active { transform: scale(.95); }
.side-btn.good { background: var(--good); color: #fff; border-color: #fff; animation: pop .5s; }
.side-btn.bad { animation: shake .45s; }
.pan-tap { cursor: pointer; }

/* ---------- Lumba Katak ---------- */
.race-wrap {
  position: relative; border-radius: 20px; overflow: hidden;
  background: url("assets/frog-pond.jpg") center/cover no-repeat;
  border: 3px solid #fff; min-height: 240px;
}
.lane { position: absolute; left: 0; right: 0; height: 70px; }
.lane-rival { top: 24%; }
.lane-player { top: 68%; }
.lane-tag {
  position: absolute; left: 8px; top: -20px; background: rgba(255,255,255,.95);
  border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700;
}
.frog { position: absolute; width: 62px; height: 52px; transition: left .55s cubic-bezier(.34,1.5,.64,1); top: 6px; }
.frog.jump-anim { animation: jump .45s ease; }
.frog svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 2px rgba(0,0,0,.25)); }
.finish-flag { position: absolute; right: 6px; top: 8px; font-size: 30px; }

/* ---------- Kad Memori ---------- */
.memo-grid { display: grid; gap: 9px; justify-content: center; }
.memo-grid.g12 { grid-template-columns: repeat(4, minmax(64px, 96px)); }
.memo-grid.g16 { grid-template-columns: repeat(4, minmax(64px, 96px)); }
.memo-card {
  perspective: 600px; border: none; background: transparent; padding: 0; aspect-ratio: 3/3.6;
  min-height: 56px;
  animation: pop .4s backwards; animation-delay: calc(var(--i, 0) * 45ms);
}
.memo-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s; }
.memo-card.flipped .memo-inner { transform: rotateY(180deg); }
.memo-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 16px; border: 3px solid #fff; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 4px; overflow: hidden;
}
.memo-back { background: linear-gradient(160deg, #ffa53d, #f07f13); color: #fff; font-size: 30px; font-weight: 700; }
.memo-front { background: #fff; transform: rotateY(180deg); }
.memo-front .memo-num { font-family: var(--font-head); font-size: clamp(28px, 7vw, 40px); color: var(--accent-dark); }
.memo-front .memo-sum { font-size: clamp(19px, 5vw, 26px); font-weight: 700; color: var(--berry); }
.memo-qty { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; max-width: 84px; }
.memo-card.matched .memo-front { background: #f2ffe9; border-color: var(--good); }
.memo-card.matched { animation: wiggle .5s ease; }

/* ---------- Bas Nombor ---------- */
.road { display: flex; flex-direction: column; gap: 14px; }
.stop-card { background: #fff; border: 3px solid #f1e3c8; border-radius: 18px; padding: 12px; }
.stop-card.active { border-color: var(--sun); box-shadow: var(--shadow); }
.stop-card.done { border-color: var(--good); background: #f4ffe9; }
.stop-head { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }
.stop-bus { font-size: 22px; }
.seq-row { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.seq-chip {
  min-width: 56px; min-height: 56px; padding: 6px 8px; border-radius: 14px;
  background: var(--accent); color: #fff; font-family: var(--font-head); font-size: 26px;
  display: flex; align-items: center; justify-content: center; border: 3px solid #fff;
  box-shadow: 0 3px 0 rgba(58,46,37,.15);
  animation: pop .35s backwards;
}
.seq-chip.blank { background: #fff; color: var(--berry); border: 3px dashed var(--berry); box-shadow: none; }
.seq-chip.filled { background: var(--good); animation: pop .5s; }
.seq-arrow { font-weight: 700; opacity: .5; }
.word-card { font-size: 19px; font-weight: 600; line-height: 1.45; }

/* ---------- Overlays ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(58,46,37,.5);
  display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px;
}
.sheet {
  background: var(--paper); border: 4px solid #fff; border-radius: 28px; box-shadow: var(--shadow);
  padding: 24px 20px; text-align: center; max-width: 430px; width: 100%;
  max-height: 92vh; overflow-y: auto;
  animation: pop .45s backwards;
}
.sheet h2 { margin: 8px 0 4px; font-size: 32px; color: var(--accent-dark); }
.sheet p { font-size: 17px; margin: 6px 0; }
.sheet .kancil { margin: 0 auto; animation: wob 2.4s ease-in-out infinite 1s; }
.stars-row { display: flex; justify-content: center; gap: 8px; margin: 10px 0; }
.star-big { font-size: 52px; color: #e8dcc4; transition: transform .3s ease, color .3s ease; }
.star-big.lit { color: #f5a623; text-shadow: 0 2px 0 rgba(58,46,37,.2); animation: pop .5s; }
.sheet-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.new-sticker {
  background: #fff; border: 2px dashed var(--berry); color: var(--berry);
  border-radius: 14px; padding: 8px 12px; font-weight: 700; margin-top: 10px; font-size: 15px;
  animation: pop .5s backwards;
}

/* ---------- Feedback banner, bursts, confetti, toast ---------- */
#fb {
  position: fixed; left: 50%; top: 42%; z-index: 95;
  transform: translate(-50%, -50%) scale(0);
  background: #fff; border: 6px solid var(--sun); border-radius: 30px;
  padding: 12px 28px; font-family: var(--font-head);
  font-size: clamp(26px, 6vw, 34px); color: var(--ink);
  text-align: center; max-width: 92vw; pointer-events: none;
  box-shadow: var(--shadow);
}
#fb.soft { border-color: var(--sky); font-size: clamp(20px, 5vw, 26px); }
#fb.show { animation: fbp 1.6s forwards; }
.burst-star {
  position: fixed; z-index: 96; pointer-events: none;
  font-size: 24px; color: #f5a623; text-shadow: 0 2px 0 rgba(58,46,37,.25);
  animation: burst .7s ease-out forwards;
}
.confetti-piece { position: fixed; left: 50%; top: 55%; z-index: 80; border-radius: 3px; pointer-events: none; animation: fly 1.6s ease-out forwards; }
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-weight: 700; font-size: 16px;
  border-radius: 999px; padding: 11px 22px; z-index: 90; box-shadow: var(--shadow);
  max-width: 92vw; text-align: center;
}

@media (max-width: 520px) {
  .top-title { display: none; }
  .sprite-lg { width: 88px; height: 88px; }
  #game-area { padding: 12px; }
  .pc-art { height: 84px; }
  .pc-name { font-size: 18px; }
  .places-grid { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01s !important;
  }
}
