:root {
  --ink: #3A2E5C;
  --ink-soft: #6E6491;
  --sky-1: #8FDBFF;
  --sky-2: #E6F7FF;
  --sea: #5EC4EE;
  --card: #FFFFFF;
  --orange: #FF8A3D;
  --orange-d: #E2661C;
  --blue: #3D8BFF;
  --blue-d: #2364D2;
  --yellow: #FFB020;
  --yellow-d: #D98A00;
  --pink: #FF6F91;
  --pink-d: #DB4B6E;
  --green: #3FBF6B;
  --green-d: #23964C;
  --purple: #9B6BFF;
  --purple-d: #7445DB;
  --red: #FF6F61;
  --red-d: #D9483B;
  --teal: #22B8A8;
  --teal-d: #138C80;
  --radius: 26px;
  --shadow: 0 10px 30px rgba(58, 46, 92, .14);
  /* Edge of one block in px; every block image is scaled from it so rods and cubes match. */
  --u: clamp(18px, 3.1vmin, 32px);
  --font: 'Baloo 2', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 70%);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: none;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
img { -webkit-user-drag: none; }

.screen { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow: clip; }

/* ---------- scenery ---------- */
.scenery { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.sun { position: absolute; top: 4vh; right: 7vw; width: 14vmin; height: 14vmin; border-radius: 50%;
  background: radial-gradient(circle, #FFF6B8 0 45%, #FFE066 46% 100%); box-shadow: 0 0 60px 20px rgba(255, 230, 120, .55); }
.cloud { position: absolute; width: 22vmin; height: 7vmin; background: #fff; border-radius: 99px; opacity: .9;
  animation: drift 40s linear infinite; }
.cloud::before, .cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 9vmin; height: 9vmin; left: 3vmin; top: -4.5vmin; }
.cloud::after { width: 11vmin; height: 11vmin; left: 9vmin; top: -6vmin; }
.cloud.c1 { top: 12vh; left: -25vmin; }
.cloud.c2 { top: 26vh; left: -25vmin; animation-duration: 55s; animation-delay: -20s; transform: scale(.7); }
.cloud.c3 { top: 6vh; left: -25vmin; animation-duration: 70s; animation-delay: -45s; transform: scale(.55); }
@keyframes drift { to { left: 110vw; } }
.sea { position: absolute; left: 0; right: 0; bottom: 0; height: 18vh; background: linear-gradient(var(--sea), #3FA6D8); }
.sea-wave { position: absolute; left: -80px; right: -80px; top: -18px; height: 30px;
  background: radial-gradient(circle at 20px 30px, var(--sea) 20px, transparent 21px) 0 0 / 40px 30px repeat-x; animation: wave 6s linear infinite; }
.sea-wave.w2 { top: 10px; opacity: .5; animation-duration: 9s; animation-direction: reverse;
  background-image: radial-gradient(circle at 20px 30px, #fff 4px, transparent 5px); background-size: 120px 30px; }
@keyframes wave { to { transform: translateX(40px); } }
.gull { position: absolute; width: 34px; height: 12px; animation: gull 26s linear infinite; }
.gull::before, .gull::after { content: ''; position: absolute; top: 0; width: 18px; height: 12px; border-top: 3px solid #4A4370; border-radius: 50% 50% 0 0; animation: flap .6s ease-in-out infinite alternate; }
.gull::before { left: 0; transform-origin: right bottom; }
.gull::after { right: 0; transform-origin: left bottom; }
.gull.g1 { top: 16vh; left: -40px; }
.gull.g2 { top: 22vh; left: -40px; animation-duration: 34s; animation-delay: -12s; transform: scale(.7); }
@keyframes gull { to { left: 105vw; } }
@keyframes flap { to { transform: scaleY(.4); } }
.screen-in { animation: screen-in .35s ease both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(12px) scale(.99); } }

/* ---------- buttons ---------- */
.btn {
  border: 0; border-radius: 20px; padding: 12px 22px; min-height: 56px; font-weight: 700; font-size: 1.15rem;
  background: #fff; color: var(--ink); box-shadow: 0 5px 0 #D6D0EA, var(--shadow);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #D6D0EA; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-go { background: var(--green); color: #fff; box-shadow: 0 5px 0 var(--green-d), var(--shadow); }
.btn-go:active:not(:disabled) { box-shadow: 0 1px 0 var(--green-d); }
.btn-big { min-height: 68px; font-size: 1.35rem; padding: 12px 34px; border-radius: 24px; }
.btn-danger { background: #FFE4E1; color: #B3261E; box-shadow: 0 4px 0 #F2B8B5; }
.btn-play {
  font-size: clamp(1.6rem, 4vmin, 2.2rem); font-weight: 800; padding: 14px 54px; min-height: 84px; border-radius: 999px;
  background: var(--orange); color: #fff; box-shadow: 0 8px 0 var(--orange-d), 0 18px 40px rgba(226, 102, 28, .35);
  animation: breathe 2.4s ease-in-out infinite;
}
.btn-play:active { transform: translateY(6px); box-shadow: 0 2px 0 var(--orange-d); }
@keyframes breathe { 50% { transform: scale(1.05); } }
.icon-btn {
  width: 56px; height: 56px; border-radius: 18px; border: 0; background: #fff; font-size: 1.6rem;
  box-shadow: 0 4px 0 #D6D0EA; display: grid; place-items: center; flex: none;
}
.icon-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #D6D0EA; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 16px; min-height: 48px;
  background: #fff; font-weight: 700; font-size: 1.05rem; box-shadow: 0 4px 0 #D6D0EA;
}
.chip img { width: 26px; height: 26px; }
.chip-static { box-shadow: none; background: rgba(255, 255, 255, .7); }

/* ---------- home ---------- */
.home-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; gap: 8px; }
.home-top-right { display: flex; gap: 8px; align-items: center; }
.chip-soft { font-size: .95rem; min-height: 44px; opacity: .9; }
.home-center { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 16px 6vh; text-align: center; }
.logo { margin: 0; font-size: clamp(3.4rem, 11vmin, 6.2rem); line-height: .9; font-weight: 800; letter-spacing: 1px; animation: logo-in .7s cubic-bezier(.3, 1.6, .5, 1) both; }
.logo .l1 { color: var(--orange); text-shadow: 0 6px 0 var(--orange-d), 0 12px 24px rgba(226, 102, 28, .3); }
.logo .l2 { color: var(--blue); text-shadow: 0 6px 0 var(--blue-d), 0 12px 24px rgba(35, 100, 210, .3); }
@keyframes logo-in { from { transform: scale(.4) rotate(-6deg); opacity: 0; } }
.tagline { margin: 6px 0 0; font-size: clamp(1.1rem, 3vmin, 1.5rem); font-weight: 700; color: var(--ink-soft); }
.hero { position: relative; width: clamp(300px, 58vmin, 560px); margin: 0 0 6px; }
.hero-island { width: 100%; display: block; filter: drop-shadow(0 22px 18px rgba(30, 90, 130, .25)); }
.hero-owl { position: absolute; left: 50%; bottom: 22%; width: 42%; transform: translateX(-50%); animation: hop 2.6s ease-in-out infinite; filter: drop-shadow(0 12px 8px rgba(58, 46, 92, .25)); }
@keyframes hop { 0%, 100% { transform: translateX(-50%); } 45% { transform: translateX(-50%) translateY(-16px) rotate(-3deg); } 55% { transform: translateX(-50%) translateY(-16px) rotate(3deg); } }
@keyframes float { 50% { transform: translateY(-12px) rotate(-2deg); } }
.home-links { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 8px 20px 8px 10px; min-height: 56px;
  background: #fff; font-weight: 800; font-size: 1.15rem; box-shadow: 0 5px 0 #D6D0EA, var(--shadow); }
.pill span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #FFF4D6; font-size: 1.3rem; }
.pill:active { transform: translateY(4px); box-shadow: 0 1px 0 #D6D0EA; }

/* ---------- top bar ---------- */
.topbar { position: relative; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.topbar-title { font-weight: 800; font-size: 1.45rem; white-space: nowrap; }
.topbar-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.dots { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.dot { width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 3px rgba(58, 46, 92, .12); transition: background .3s; }
.dot.ok { background: var(--yellow); box-shadow: 0 0 0 3px #fff; }
.dot.done { background: #B9B2D6; }

/* ---------- map ---------- */
.map-wrap { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; padding: 0 16px; }
.map { position: relative; width: min(100%, calc((100dvh - 210px) * 1.6), 1200px); aspect-ratio: 16 / 10; min-width: 320px; }
.map-sea { position: absolute; inset: 0; border-radius: 44px; overflow: hidden; box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .55), 0 18px 40px rgba(30, 90, 130, .25);
  background:
    radial-gradient(circle at 30px 18px, rgba(255, 255, 255, .5) 0 4px, transparent 5px) 0 0 / 120px 70px,
    radial-gradient(ellipse at 50% 50%, #7FD8F7 0%, #4DB8E8 70%, #3BA3D6 100%); animation: sea-shimmer 10s linear infinite; }
@keyframes sea-shimmer { to { background-position: 120px 70px, 0 0; } }
.map-path, .map-path svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 44px; }
.deco { position: absolute; }
.palm { width: 9%; }
.palm.p1 { left: 1%; top: 40%; }
.palm.p2 { right: 2%; top: 38%; transform: scaleX(-1); }
.rock { width: 5%; }
.rock.r1 { left: 47.5%; top: 53%; }
.rock.r2 { left: 24%; top: 4%; width: 4%; }
.chest-deco { width: 5%; right: 23.5%; top: 52%; transform: rotate(-6deg); }
.sailing { width: 8%; top: 47%; left: -12%; animation: sail-by 38s linear infinite; }
@keyframes sail-by { 0% { left: -12%; transform: rotate(0); } 50% { transform: rotate(-3deg) translateY(-4px); } 100% { left: 105%; transform: rotate(0); } }
.fishes { width: 5%; left: 72%; top: 88%; animation: jump 5s ease-in-out infinite; }
.fishes img { width: 100%; }
@keyframes jump { 0%, 70%, 100% { transform: translateY(40px) rotate(20deg); opacity: 0; } 78% { opacity: 1; } 85% { transform: translateY(-30px) rotate(-30deg); opacity: 1; } 95% { transform: translateY(30px) rotate(-70deg); opacity: 0; } }
.map-deco, .map-path { z-index: 1; }
/* Anchored at the island's base: pictures of different heights grow upwards from one line. */
.island {
  position: absolute; z-index: 2; transform: translate(-50%, -100%); width: 18%; border: 0; background: none; padding: 0;
  display: block; animation: island-in .5s cubic-bezier(.3, 1.5, .5, 1) both;
}
@keyframes island-in { from { transform: translate(-50%, -80%) scale(.6); opacity: 0; } }
.island-img { width: 100%; display: block; filter: drop-shadow(0 10px 10px rgba(20, 80, 120, .3)); transition: transform .2s; animation: bob 4s ease-in-out infinite; transform-origin: 50% 100%; }
.island:nth-child(odd) .island-img { animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.island:hover .island-img { transform: scale(1.05); }
.island:active .island-img { transform: scale(.96); }
.island-owl { position: absolute; width: 34%; left: 6%; bottom: 14%; animation: hop-owl 1.6s ease-in-out infinite; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .2)); pointer-events: none; }
@keyframes hop-owl { 50% { transform: translateY(-10px); } }
.island.next .island-img { filter: drop-shadow(0 0 14px rgba(255, 255, 255, .95)) drop-shadow(0 10px 10px rgba(20, 80, 120, .3)); }
.island-tag {
  position: absolute; z-index: 3; transform: translate(-50%, 2px); border: 0; background: none; padding: 0;
  display: flex; flex-direction: column; align-items: center; animation: fade .5s ease both;
}
.island-tag.next .island-label { animation: tag-pulse 1.6s ease-in-out infinite; }
@keyframes tag-pulse { 50% { transform: scale(1.06); } }
.island-label { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 16px; padding: 3px 12px 4px 4px; line-height: 1.05; text-align: left; box-shadow: 0 4px 0 var(--cd, #D6D0EA), 0 6px 14px rgba(20, 80, 120, .2); }
.island-num { display: grid; place-items: center; width: clamp(24px, 3.4vmin, 32px); height: clamp(24px, 3.4vmin, 32px); border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; flex: none; }
.island-label b { display: block; white-space: nowrap; font-size: clamp(.85rem, 2.1vmin, 1.1rem); }
.island-label small { display: block; white-space: nowrap; color: var(--ink-soft); font-size: clamp(.7rem, 1.6vmin, .85rem); font-weight: 600; }
.island-tag .mini-stars { margin-top: 3px; background: rgba(255, 255, 255, .75); border-radius: 99px; padding: 1px 6px; }
.island.locked .island-img { filter: grayscale(.85) brightness(1.05) drop-shadow(0 10px 10px rgba(20, 80, 120, .2)); opacity: .8; animation: none; }
.island-tag.locked .island-label { opacity: .8; box-shadow: 0 4px 0 #D6D0EA; }
.island-tag.locked .island-num { background: #B9B2D6; }
.island-lock { position: absolute; bottom: 22%; left: 50%; transform: translateX(-50%); font-size: clamp(1.2rem, 3.4vmin, 1.9rem); background: #fff; border-radius: 50%; width: 1.8em; height: 1.8em; display: grid; place-items: center; box-shadow: var(--shadow); }
.mini-stars { display: flex; gap: 1px; }
.mini-stars img { width: clamp(16px, 2.8vmin, 24px); }
img.off { filter: grayscale(1) opacity(.35); }
.tint-yellow { --c: var(--yellow); --cd: var(--yellow-d); }
.tint-blue { --c: var(--blue); --cd: var(--blue-d); }
.tint-pink { --c: var(--pink); --cd: var(--pink-d); }
.tint-green { --c: var(--green); --cd: var(--green-d); }
.tint-purple { --c: var(--purple); --cd: var(--purple-d); }
.tint-orange { --c: var(--orange); --cd: var(--orange-d); }
.tint-teal { --c: var(--teal); --cd: var(--teal-d); }
.tint-red { --c: var(--red); --cd: var(--red-d); }

/* ---------- mascot ---------- */
.dock { position: relative; z-index: 4; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 20px 10px 8px; min-height: 120px; }
.mascot { display: flex; align-items: flex-end; min-width: 0; }
.mascot-img { width: clamp(96px, 15vmin, 150px); pointer-events: auto; cursor: pointer; filter: drop-shadow(0 8px 8px rgba(58, 46, 92, .2)); }
.mascot-img.bounce { animation: bounce .5s ease; }
.mascot-pet { order: 1; width: clamp(44px, 6.5vmin, 66px); margin-left: -14px; align-self: flex-end; filter: drop-shadow(0 4px 4px rgba(58, 46, 92, .2)); animation: pet-hop 1.4s ease-in-out infinite; }
@keyframes pet-hop { 50% { transform: translateY(-6px) rotate(-4deg); } }
.hero-pet { position: absolute; left: 66%; bottom: 20%; width: 15%; animation: pet-hop 1.4s ease-in-out infinite; filter: drop-shadow(0 6px 6px rgba(58, 46, 92, .2)); }
@keyframes bounce { 30% { transform: translateY(-14px) scale(1.04, .97); } 60% { transform: translateY(0) scale(.97, 1.03); } }
.bubble {
  order: 2; position: relative; margin: 0 0 clamp(60px, 9vmin, 92px) 6px; max-width: min(440px, 46vw);
  background: #fff; border-radius: 22px; padding: 10px 16px 12px; font-size: clamp(1.05rem, 2.5vmin, 1.3rem); font-weight: 600; line-height: 1.3;
  box-shadow: var(--shadow); opacity: 0; transform: scale(.8); transform-origin: left bottom; pointer-events: auto;
}
.bubble::before { content: ''; position: absolute; left: -10px; bottom: 14px; border: 10px solid transparent; border-right-color: #fff; border-left: 0; }
.bubble.show { animation: bubble-in .3s ease forwards; }
@keyframes bubble-in { to { opacity: 1; transform: scale(1); } }

/* ---------- game layout ---------- */
.game { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, #DFF4FF), #FFFDF7 62%); }
.game-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-sand { position: absolute; left: -5%; right: -5%; bottom: -40px; height: 150px; border-radius: 50% 50% 0 0; background: linear-gradient(#FFE8B0, #FFD98A); }
.bg-palm { position: absolute; right: -2%; bottom: 40px; height: min(46vh, 380px); opacity: .9; }
.title-island { width: 44px; height: auto; vertical-align: middle; margin-right: 6px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .15)); }
.topbar .hud-shells { margin-left: 4px; }
.game-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 16px 8px; }
.stage { width: 100%; max-width: 1000px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; }
.q-card { background: var(--card); border-radius: var(--radius); padding: 10px 30px 14px; box-shadow: var(--shadow); text-align: center; }
.q-label { font-size: 1.15rem; font-weight: 700; color: var(--ink-soft); }
.q-big { font-size: clamp(3rem, 9vmin, 4.6rem); font-weight: 800; line-height: 1; color: var(--c, var(--orange)); }
.q-eq { font-size: clamp(2.2rem, 7vmin, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: 1px; }
.q-eq.small { font-size: clamp(1.6rem, 4.5vmin, 2.2rem); }
.q-slot { display: inline-block; min-width: 1.6em; padding: 0 .2em; border-radius: 14px; background: #FFF4D6; color: var(--orange-d); }

.choices { display: flex; gap: clamp(12px, 3vw, 28px); justify-content: center; flex-wrap: wrap; }
.choice {
  min-width: clamp(96px, 16vmin, 140px); min-height: clamp(80px, 13vmin, 110px); border: 0; border-radius: 28px;
  font-size: clamp(2rem, 6vmin, 3rem); font-weight: 800; background: #fff; color: var(--ink);
  box-shadow: 0 7px 0 #D6D0EA, var(--shadow); transition: transform .08s;
}
.choice:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 2px 0 #D6D0EA; }
.choice.right { background: var(--green); color: #fff; box-shadow: 0 7px 0 var(--green-d); animation: pop .4s ease; }
.choice.wrong { background: #EDEAF5; color: #A9A2C4; box-shadow: 0 3px 0 #D6D0EA; }
.choice.reveal { animation: glow 1s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 7px 0 var(--green-d), 0 0 0 10px rgba(63, 191, 107, .35); transform: scale(1.06); } }

/* ---------- place-value tray ---------- */
.tray { background: #FFF8E6; border-radius: var(--radius); padding: 8px 14px 10px; box-shadow: inset 0 0 0 4px #FFE6B0, var(--shadow); }
.tray-caption { text-align: center; font-weight: 800; font-size: 1.6rem; line-height: 1.1; }
.tray-body { display: flex; gap: 14px; }
.col { display: flex; flex-direction: column; align-items: center; border-radius: 18px; padding: 4px 8px; transition: background .2s, box-shadow .2s; }
.col-tens { background: rgba(61, 139, 255, .09); min-width: calc(var(--u) * 3); }
.col-units { background: rgba(255, 176, 32, .12); min-width: calc(var(--u) * 5.6); }
.col.active { box-shadow: 0 0 0 4px var(--orange); animation: col-glow 1.1s ease-in-out infinite; }
@keyframes col-glow { 50% { box-shadow: 0 0 0 8px rgba(255, 138, 61, .35); } }
.col-label { font-weight: 700; font-size: .95rem; color: var(--ink-soft); }
.count { font-weight: 800; font-size: 1.05rem; }
.count-tens { color: var(--blue-d); }
.count-units { color: var(--yellow-d); }
.rods { display: flex; align-items: flex-end; min-height: calc(var(--u) * 8.9); gap: 2px; }
.cubes { display: grid; grid-template-columns: repeat(5, var(--u)); grid-auto-rows: calc(var(--u) * 1.04); align-content: end; justify-content: center; min-height: calc(var(--u) * 8.9); gap: 2px; }
.blk { border: 0; padding: 0; background: none; display: block; line-height: 0; }
.blk img { width: var(--u); display: block; }
.blk-ten img { height: calc(var(--u) * 8.84); }
.readonly .blk { pointer-events: none; cursor: default; }
.tray:not(.readonly) .blk:hover { filter: brightness(1.08); }
.pop-in { animation: pop .35s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.pop-out { animation: pop-out .26s ease forwards; pointer-events: none; }
@keyframes pop-out { to { transform: scale(.2) translateY(-20px); opacity: 0; } }
.gather { animation: gather .65s ease-in forwards; animation-delay: calc(var(--i) * 25ms); }
@keyframes gather { 60% { transform: translateY(-14px) scale(1.1); filter: brightness(1.4); } to { transform: translateY(-30px) scale(.2); opacity: 0; } }
.break { animation: break .45s ease forwards; }
@keyframes break { 40% { transform: scaleX(1.25); filter: brightness(1.5); } to { transform: scaleX(.2); opacity: 0; } }
.glow { box-shadow: inset 0 0 0 4px var(--green), 0 0 0 8px rgba(63, 191, 107, .3); }
.shake { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.fade-away { animation: pop-out .4s ease forwards; }

.build-area { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; }
.sources { display: flex; flex-direction: column; gap: 14px; }
.source {
  border: 0; border-radius: 22px; background: #fff; padding: 10px 14px; display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.2rem; min-height: 72px; box-shadow: 0 6px 0 #D6D0EA, var(--shadow);
}
.source:active { transform: translateY(4px); box-shadow: 0 2px 0 #D6D0EA; }
.source-ten img { height: 84px; width: auto; }
.source-unit img { height: 40px; width: auto; }
.source-ten span { color: var(--blue-d); }
.source-unit span { color: var(--yellow-d); }

.board { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.op-sign { font-size: 3.4rem; font-weight: 800; color: var(--c); }
.answers { min-height: 110px; display: grid; place-items: center; }
.need { background: #fff; border-radius: var(--radius); padding: 14px 20px; box-shadow: var(--shadow); min-width: 220px; }
.need-title { font-weight: 800; font-size: 1.5rem; color: var(--pink-d); }
.need-row { font-size: 1.15rem; font-weight: 600; padding: 4px 0; }
.need-row b { font-size: 1.6rem; color: var(--pink-d); }
.need-row.done { text-decoration: line-through; opacity: .5; }

/* ---------- column method ---------- */
.column-area { display: flex; gap: 24px; align-items: center; justify-content: center; flex-wrap: wrap; }
.cc { background: #fff; border-radius: var(--radius); padding: 10px 26px 16px; box-shadow: var(--shadow);
  background-image: linear-gradient(#E9F2FF 1px, transparent 1px), linear-gradient(90deg, #E9F2FF 1px, transparent 1px);
  background-size: 22px 22px; }
.cc-row { display: grid; grid-template-columns: 52px 72px 72px; }
.cc-cell { position: relative; height: 72px; display: grid; place-items: center; font-size: 3rem; font-weight: 800; }
.cc-cell.op { color: var(--c); }
.cc-cell.carry { height: 34px; font-size: 1.4rem; }
.cc-row:first-child .cc-cell { height: 34px; }
.cc-line { height: 5px; border-radius: 3px; background: var(--ink); margin: 2px 0 8px 40px; }
.cc-cell.ans { margin: 4px; height: 64px; border-radius: 16px; border: 4px dashed #CFC8E6; background: #FBFAFF; }
.cc-cell.ans.active { border-color: var(--orange); border-style: solid; animation: col-glow 1.1s ease-in-out infinite; }
.cc-cell.ans.filled { border-color: transparent; background: #E9FBEF; color: var(--green-d); }
.cc-cell.ans.bad { color: var(--red); }
.carry-mark { position: absolute; font-size: 1.3rem; font-weight: 800; color: #fff; background: var(--red); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.cc-row:first-child .carry-mark { top: 2px; }
.cc-row:nth-child(3) .carry-mark { left: -6px; bottom: -4px; width: 26px; height: 26px; font-size: 1.1rem; }
.explain { display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.explain-line { background: #FFF4D6; border-radius: 16px; padding: 8px 14px; font-weight: 600; font-size: 1.1rem; }
.numpad { display: grid; grid-template-columns: repeat(5, clamp(56px, 10vmin, 76px)); gap: 10px; }
.key { height: clamp(56px, 10vmin, 72px); border: 0; border-radius: 18px; background: #fff; font-size: 2rem; font-weight: 800; box-shadow: 0 5px 0 #D6D0EA; }
.key:active { transform: translateY(4px); box-shadow: 0 1px 0 #D6D0EA; }

/* ---------- race ---------- */
.race-track { position: relative; width: 100%; height: clamp(120px, 20vmin, 170px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(#BFEAFF, #BFEAFF 40%, transparent 40%); }
.race-water { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: repeating-linear-gradient(90deg, #5EC4EE 0 40px, #6ACBF2 40px 80px); animation: water 3s linear infinite; }
@keyframes water { to { background-position: 80px 0; } }
.race-marks { position: absolute; left: 13%; right: 9%; bottom: 10%; display: flex; justify-content: space-between; }
.race-mark { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.race-mark.hit { background: var(--yellow); box-shadow: 0 0 0 3px #fff; }
.race-goal { position: absolute; right: 1%; bottom: 18%; font-size: clamp(2.6rem, 8vmin, 4rem); }
.race-boat { --pos: 0; position: absolute; bottom: 14%; height: 72%; left: calc(1% + var(--pos) * 76%); transition: left .8s cubic-bezier(.3, 1.3, .5, 1); animation: rock 2s ease-in-out infinite; transform-origin: 50% 90%; }
.race-boat.sail { animation: rock 2s ease-in-out infinite, zoom .8s ease; }
@keyframes rock { 50% { transform: rotate(-3deg) translateY(-3px); } }
@keyframes zoom { 40% { filter: drop-shadow(-18px 0 0 rgba(255, 255, 255, .8)); } }
.race-eq { min-width: 6em; }

/* ---------- modal / results ---------- */
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(58, 46, 92, .45); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-card { background: #fff; border-radius: 32px; padding: 20px 28px 24px; text-align: center; width: min(460px, 100%); box-shadow: 0 30px 60px rgba(0, 0, 0, .25); animation: pop .4s cubic-bezier(.3, 1.5, .5, 1); }
.modal-card h2 { margin: 0; font-size: 2rem; }
.modal-actions { display: flex; gap: 12px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.result-owl { width: 150px; margin-top: -96px; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .15)); }
.result-stars { display: flex; justify-content: center; gap: 4px; margin: 6px 0; }
.result-stars img { width: 84px; animation: star-in .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.result-stars img:nth-child(2) { width: 100px; margin-top: -14px; }
@keyframes star-in { from { transform: scale(0) rotate(-90deg); } }
.result-line { font-weight: 600; font-size: 1.1rem; margin: 4px 0; }
.result-sticker { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; background: #FFF4D6; border-radius: 18px; padding: 6px 12px; margin-top: 8px; }
.result-sticker .sticker { width: 60px; height: 60px; min-height: 0; font-size: 2.2rem; }
.result-unlock { font-weight: 700; color: var(--green-d); margin: 8px 0 0; }
.gate-q { font-size: 1.8rem; font-weight: 800; margin: 10px 0; }
.gate-input { width: 110px; font-size: 1.8rem; font-weight: 800; text-align: center; border: 3px solid #D6D0EA; border-radius: 14px; padding: 4px; }
.gate-err { color: #B3261E; min-height: 1.4em; margin: 0; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 12px; height: 18px; border-radius: 3px; transform: rotate(var(--r)); animation: fall linear forwards; }
.confetti i.emo { width: auto; height: auto; font-style: normal; line-height: 1; }
@keyframes fall { to { transform: translateY(110vh) rotate(calc(var(--r) + 540deg)); } }

/* ---------- album & parents ---------- */
.panel { position: relative; z-index: 1; background: #fff; border-radius: 32px; box-shadow: var(--shadow); margin: 8px auto 24px; padding: 20px 24px 28px; width: min(720px, calc(100% - 32px)); }
.panel.wide { width: min(820px, calc(100% - 32px)); }
.panel h2 { margin: 0 0 4px; }
.panel h3 { margin: 22px 0 8px; font-size: 1.3rem; }
.muted { color: var(--ink-soft); font-weight: 500; }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px; margin-top: 14px; }
.sticker { display: grid; place-items: center; aspect-ratio: 1; min-height: 96px; border-radius: 24px; font-size: 3rem; background: #FFF4D6; box-shadow: inset 0 0 0 4px #fff, 0 4px 0 #F3DFA6; }
.sticker.empty { background: #F1EEFB; color: #C9C3DE; font-weight: 800; font-size: 2.2rem; box-shadow: inset 0 0 0 4px #fff; }
.parent-screen { background: #F6F4FC; }
.topbar.plain .icon-btn { font-size: 1.4rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.tile { background: #F6F4FC; border-radius: 20px; padding: 12px 16px; display: flex; flex-direction: column; }
.tile b { font-size: 2rem; line-height: 1.1; }
.tile span { color: var(--ink-soft); font-weight: 600; }
.skill { margin: 10px 0; }
.skill-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 700; }
.bar { height: 14px; border-radius: 99px; background: #EDEAF5; overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; border-radius: 99px; }
.mistakes { list-style: none; padding: 0; margin: 0; }
.mistakes li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #EDEAF5; font-weight: 600; }
.advice { background: #FFF4D6; border-radius: 18px; padding: 12px 16px; margin-top: 12px; font-weight: 600; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid #EDEAF5; font-weight: 700; }
.setting small { display: block; font-weight: 500; color: var(--ink-soft); }
.setting input[type=checkbox] { width: 28px; height: 28px; accent-color: var(--green); flex: none; }
.setting select { border: 2px solid #D6D0EA; border-radius: 12px; padding: 6px 10px; background: #fff; }
.panel > .btn-danger { margin-top: 18px; }

/* ---------- rewards ---------- */
.hud-shells img { width: 30px; height: 30px; }
.hud-shells b { min-width: 1.6em; text-align: left; }
.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.25); } }
.fly-shell { position: fixed; z-index: 50; width: 36px; pointer-events: none; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .2)); }
.fly-shell img { width: 100%; display: block; }
.fly-shell .emoji-fb { font-size: 1.8rem; }
.spark { position: fixed; z-index: 45; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; }
.banner { position: fixed; left: 50%; top: 18%; z-index: 40; transform: translateX(-50%); padding: 10px 28px; border-radius: 999px;
  background: linear-gradient(90deg, #FF8A3D, #FF6F91); color: #fff; font-weight: 800; font-size: clamp(1.3rem, 4vmin, 2rem); white-space: nowrap;
  box-shadow: 0 8px 0 #D9483B, 0 18px 40px rgba(217, 72, 59, .35); animation: banner 1.8s ease both; pointer-events: none; }
@keyframes banner { 0% { transform: translateX(-50%) translateY(-40px) scale(.5); opacity: 0; } 15% { transform: translateX(-50%) scale(1.1); opacity: 1; } 25%, 80% { transform: translateX(-50%) scale(1); opacity: 1; } 100% { transform: translateX(-50%) translateY(-20px); opacity: 0; } }
.modal.result .modal-card { width: min(480px, 100%); }
.modal-hud { position: absolute; top: 14px; right: 14px; }
.modal-card { position: relative; }
.chest { border: 0; background: none; padding: 0; margin: 4px auto 0; display: block; width: 150px; cursor: pointer; }
.chest img { width: 100%; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .18)); }
.chest.wiggle { animation: wiggle 1.2s ease-in-out infinite; }
@keyframes wiggle { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-7deg) scale(1.04); } 80% { transform: rotate(7deg) scale(1.04); } 90% { transform: rotate(-4deg); } }
.chest-open { animation: chest-open .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes chest-open { 40% { transform: scale(1.25) translateY(-10px); } }
.chest-cap { font-weight: 800; font-size: 1.25rem; color: var(--orange-d); }
.prizes { display: flex; flex-direction: column; gap: 6px; }
.hidden { display: none !important; }

/* ---------- wardrobe ---------- */
.wardrobe { position: relative; z-index: 1; flex: 1; display: flex; gap: 20px; align-items: center; justify-content: center; padding: 0 16px 24px; flex-wrap: wrap; }
.wardrobe-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.spotlight { position: absolute; top: 4%; width: 120%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 65%); z-index: -1; }
.wardrobe-owl { width: clamp(220px, 40vmin, 360px); filter: drop-shadow(0 16px 12px rgba(58, 46, 92, .25)); }
.wardrobe-owl.bounce { animation: bounce .5s ease; }
.shop-action .btn { display: inline-flex; align-items: center; gap: 6px; min-width: 220px; justify-content: center; font-size: 1.25rem; }
.shop-action .btn img { width: 28px; }
.shop-panel { margin: 0; width: min(560px, 100%); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 10px; max-height: min(52vh, 460px); overflow-y: auto; padding: 6px 4px 8px; }
.tabs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 6px 16px 6px 8px; min-height: 48px; background: #F1EEFB; font-weight: 800; font-size: 1rem; color: var(--ink-soft); }
.tab span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; font-size: 1.15rem; }
.tab.on { background: var(--orange); color: #fff; box-shadow: 0 4px 0 var(--orange-d); }
.shop-hint { margin: 8px 0 0; }
.emoji-thumb { display: grid; place-items: center; aspect-ratio: 1; font-size: 3.4rem; }
.pet-thumb.emoji-fb { font-size: 3.4rem; }
.pet-thumb { width: 70%; aspect-ratio: 1; object-fit: contain; margin: 8% 0; }
.wardrobe-pair { position: relative; display: flex; align-items: flex-end; }
.wardrobe-pet { position: absolute; right: -14%; bottom: 4%; width: 34%; }
.wardrobe-pet-img { width: 100%; filter: drop-shadow(0 8px 6px rgba(58, 46, 92, .2)); animation: pet-hop 1.4s ease-in-out infinite; }
.shop-item { border: 0; border-radius: 22px; background: #F6F4FC; padding: 8px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  box-shadow: 0 4px 0 #E2DDF2; transition: transform .1s; }
.shop-item.selected { background: #FFF4D6; box-shadow: 0 0 0 4px var(--orange), 0 4px 0 #F3DFA6; transform: translateY(-2px); }
.shop-item { position: relative; }
.shop-badge { position: absolute; top: 8px; left: 8px; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 3px 0 #E2DDF2; }
.shop-thumb { width: 86%; }
.shop-item b { font-size: 1rem; }
.shop-tag { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: .95rem; color: var(--green-d); }
.shop-item.for-sale .shop-tag { color: var(--orange-d); }
.shop-tag img { width: 22px; }

/* ---------- compare (cá sấu) ---------- */
.cmp-row { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 24px); }
.cmp-num { min-width: clamp(110px, 18vmin, 170px); padding: 14px 18px; border-radius: 28px; background: #fff; box-shadow: 0 7px 0 #D6D0EA, var(--shadow);
  font-size: clamp(2.6rem, 9vmin, 4.4rem); font-weight: 800; text-align: center; line-height: 1; }
.cmp-num.expr { font-size: clamp(1.8rem, 6vmin, 3rem); }
.cmp-num.gulp { animation: gulp .6s ease; }
@keyframes gulp { 40% { transform: scale(.85) rotate(-4deg); } 70% { transform: scale(1.08); } }
.cmp-mid { position: relative; display: flex; flex-direction: column; align-items: center; }
.croc { width: clamp(130px, 22vmin, 210px); transition: transform .25s; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .15)); }
.croc.face-left { transform: scaleX(-1); }
.croc.closed { transform: scaleY(.8); }
.croc.chomp { animation: chomp .5s ease; }
.croc.face-left.chomp { animation: chomp-left .5s ease; }
@keyframes chomp { 30% { transform: scale(1.15, .85); } 60% { transform: scale(.95, 1.05); } }
@keyframes chomp-left { 30% { transform: scaleX(-1.15) scaleY(.85); } 60% { transform: scaleX(-.95) scaleY(1.05); } }
.cmp-slot { margin-top: -6px; width: 72px; height: 72px; border-radius: 22px; border: 4px dashed #CFC8E6; background: #FBFAFF; display: grid; place-items: center; font-size: 3rem; font-weight: 800; color: #B9B2D6; }
.cmp-slot.filled { border: 0; background: var(--green); color: #fff; box-shadow: 0 5px 0 var(--green-d); animation: pop .4s ease; }
.sign-row { display: flex; gap: clamp(12px, 3vw, 26px); justify-content: center; margin-top: 6px; }
.sign-btn { border: 0; border-radius: 26px; min-width: clamp(96px, 15vmin, 128px); padding: 6px 10px 10px; background: #fff; box-shadow: 0 7px 0 #D6D0EA, var(--shadow); display: flex; flex-direction: column; align-items: center; }
.sign-btn b { font-size: clamp(2.6rem, 8vmin, 3.6rem); line-height: 1; }
.sign-btn small { font-weight: 700; color: var(--ink-soft); }
.sign-btn:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 2px 0 #D6D0EA; }
.sign-btn.right { background: var(--green); color: #fff; box-shadow: 0 7px 0 var(--green-d); }
.sign-btn.right small { color: #fff; }
.sign-btn.wrong { background: #EDEAF5; color: #A9A2C4; box-shadow: 0 3px 0 #D6D0EA; }
.sign-btn.reveal { animation: glow 1s ease-in-out infinite; }

/* ---------- market (bài toán có lời văn) ---------- */
.story { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: var(--radius); padding: 12px 20px; box-shadow: var(--shadow); max-width: 820px; }
.story-icon { width: 64px; flex: none; }
.story-text { margin: 0; font-size: clamp(1.15rem, 2.8vmin, 1.45rem); font-weight: 600; line-height: 1.4; }
.story-text mark { background: #FFE066; border-radius: 6px; padding: 0 4px; font-weight: 800; }
.fruit-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.fruit-group { background: rgba(255, 255, 255, .8); border-radius: 22px; padding: 8px 12px; box-shadow: inset 0 0 0 3px #fff; max-width: 420px; }
.fruit-group.g2 { background: rgba(255, 244, 214, .9); }
.fruit-label { font-weight: 700; color: var(--ink-soft); }
.fruit-label b { color: var(--ink); font-size: 1.3rem; margin-left: 4px; }
.fruit-items { display: flex; flex-wrap: wrap; gap: 4px; align-items: flex-end; margin-top: 4px; }
.crate { position: relative; width: 52px; height: 46px; border-radius: 10px; background: linear-gradient(#D9A066, #B87B43); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .12); display: grid; place-items: center; }
.crate img { width: 30px; margin-top: -18px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2)); }
.crate i { position: absolute; bottom: 2px; font-style: normal; font-weight: 800; color: #fff; font-size: .95rem; }
.fruit { width: 32px; }
.solution { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 10px; }
.sol-line { font-size: clamp(1.3rem, 3.4vmin, 1.8rem); font-weight: 700; background: #fff; border-radius: 18px; padding: 4px 18px; box-shadow: var(--shadow); }
.sol-line.answer { background: var(--green); color: #fff; box-shadow: 0 5px 0 var(--green-d); }
.game-market .choice { font-size: clamp(1.6rem, 4.8vmin, 2.4rem); padding: 0 20px; }

/* ---------- balloons ---------- */
.sky { position: relative; width: 100%; height: clamp(300px, 52vh, 520px); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(#9FE0FF, #D9F3FF); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .6), var(--shadow); }
.sky-cloud { display: none; }
.balloon { position: absolute; bottom: 0; width: clamp(80px, 13vmin, 120px); border: 0; padding: 0; background: none;
  transform: translate(-50%, 100%); animation: rise linear infinite; }
@keyframes rise { from { transform: translate(-50%, 100%) rotate(-3deg); } 50% { transform: translate(-40%, calc(var(--rise) * -0.5)) rotate(3deg); } to { transform: translate(-50%, calc(var(--rise) * -1)) rotate(-3deg); } }
.balloon img { width: 100%; display: block; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .15)); }
.balloon b { position: absolute; left: 0; right: 0; top: 24%; text-align: center; font-size: clamp(1.6rem, 4.6vmin, 2.4rem); font-weight: 800; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.balloon.wrong { opacity: .35; filter: grayscale(1); }
.balloon.reveal img { filter: drop-shadow(0 0 14px #fff) drop-shadow(0 0 8px #FFD43B); }
.balloon.popped { animation: none; pointer-events: none; }
.balloon.popped img, .balloon.popped b { animation: burst .3s ease forwards; }
@keyframes burst { to { transform: scale(1.6); opacity: 0; } }
.balloon.fly-away { opacity: 0; transition: opacity .35s; }

/* ---------- emoji stand-ins for assets that failed to load ---------- */
.emoji-fb { display: inline-grid; place-items: center; line-height: 1; font-size: 1.5em; }
.chip .emoji-fb, .shop-tag .emoji-fb, .btn .emoji-fb { font-size: 1.3rem; width: auto; height: auto; }
.island-img.emoji-fb { font-size: clamp(3rem, 9vmin, 6rem); width: 100%; aspect-ratio: 4 / 3; }
.hero-island.emoji-fb { font-size: clamp(6rem, 22vmin, 12rem); }
.croc.emoji-fb { font-size: clamp(4rem, 12vmin, 7rem); }
.balloon .emoji-fb { font-size: clamp(4rem, 12vmin, 6rem); width: 100%; }
.chest .emoji-fb { font-size: 5rem; width: 100%; }
.fruit.emoji-fb { font-size: 1.8rem; width: 32px; }
.crate .emoji-fb { font-size: 1.4rem; margin-top: -18px; }
.story-icon.emoji-fb { font-size: 3rem; }
.deco.emoji-fb, .bg-palm.emoji-fb, .title-island.emoji-fb { font-size: 2rem; }
.bg-palm.emoji-fb { font-size: 9rem; }

/* ---------- small screens ---------- */
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .topbar-title { font-size: 1.15rem; }
  .icon-btn { width: 48px; height: 48px; font-size: 1.3rem; }
  .dock { position: sticky; bottom: 0; flex-direction: column-reverse; align-items: stretch; padding: 16px 12px 8px; min-height: 0;
    background: linear-gradient(rgba(255, 253, 247, 0), rgba(255, 253, 247, .95) 30%); }
  .mascot-img { width: 76px; }
  .op-sign { font-size: 2.4rem; }
  .actions { justify-content: center; padding-bottom: 0; }
  .bubble { max-width: none; flex: 1; margin-bottom: 40px; }
  .map-wrap { padding: 0 8px; overflow-x: auto; place-items: center start; }
  .map { min-width: 680px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .cmp-num { min-width: 90px; padding: 10px; }
  .croc { width: 100px; }
  .bg-palm { display: none; }
  .q-card { padding: 8px 18px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
