/* Zoey 的游乐园 — shell, home screen, and the shared look of every game.
   Flat and bold: solid colours, no outlines, soft flat shadows, everything gently alive. */

:root { --ink: #38334d; --sky: #62d4ff; --sun: #ffe45c; --pink: #ff7fb0; --card: #ffffff; --shadow: rgba(31, 26, 58, .14); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink); background: var(--sky);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

#app { position: fixed; inset: 0; overflow: hidden; }
.view { position: absolute; inset: 0; }
svg.art { display: block; width: 100%; height: 100%; overflow: visible; }
.icon { width: 58%; height: 58%; display: block; }

/* ---------- living pictures ---------- */
.eye { transform-box: fill-box; transform-origin: center; animation: blink 4.6s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.a-head { transform-box: fill-box; transform-origin: 50% 88%; animation: tilt 3.4s ease-in-out infinite alternate; }
@keyframes tilt { from { transform: rotate(-2.6deg); } to { transform: rotate(2.6deg); } }
.a-tail { transform-box: fill-box; transform-origin: 0% 100%; animation: wag .8s ease-in-out infinite alternate; }
.a-fin { transform-box: fill-box; transform-origin: 0% 50%; animation: wag 1.1s ease-in-out infinite alternate; }
@keyframes wag { from { transform: rotate(-7deg); } to { transform: rotate(9deg); } }
.a-bob { animation: bob-art 2.2s ease-in-out infinite alternate; }
@keyframes bob-art { from { transform: translateY(2px); } to { transform: translateY(-3px); } }
.a-spout { transform-box: fill-box; transform-origin: 50% 100%; animation: spout 1.2s ease-in-out infinite alternate; }
@keyframes spout { from { transform: scaleY(.55); } to { transform: scaleY(1.1); } }
.a-tentacles { transform-box: fill-box; transform-origin: 50% 0%; animation: sway-x 2s ease-in-out infinite alternate; }
@keyframes sway-x { from { transform: skewX(-6deg); } to { transform: skewX(6deg); } }
.a-wings { transform-box: fill-box; transform-origin: 50% 50%; animation: flap 1s ease-in-out infinite alternate; }
@keyframes flap { from { transform: scaleX(.9); } to { transform: scaleX(1.05); } }
.a-arm { transform-box: fill-box; }
.a-arm-l { transform-origin: 70% 10%; }
.a-arm-r { transform-origin: 30% 10%; }
.happy .a-arm-l { animation: cheer-l .32s ease-in-out infinite alternate; }
.happy .a-arm-r { animation: cheer-r .32s ease-in-out infinite alternate; }
@keyframes cheer-l { from { transform: rotate(105deg); } to { transform: rotate(140deg); } }
@keyframes cheer-r { from { transform: rotate(-105deg); } to { transform: rotate(-140deg); } }
.happy > svg { animation: hop .32s ease-in-out infinite alternate; }
@keyframes hop { from { transform: translateY(0); } to { transform: translateY(-7%); } }
/* a crowd of small pictures stays calm */
.sticker *, .mcard *, .chip *, .card-art *, .want *, .calm * { animation: none !important; }

.spin-slow { animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 3s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.drift { animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-26px); } to { transform: translateX(26px); } }
.twinkle { animation: twinkle 1.8s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }
.pulse-soft { transform-box: fill-box; transform-origin: center; animation: pulse-soft 3s ease-in-out infinite alternate; }
@keyframes pulse-soft { from { transform: scale(.92); } to { transform: scale(1.08); } }
.bubble-rise { animation: rise 9s linear infinite; }
@keyframes rise { to { transform: translateY(-1000px); } }
.bob { animation: bob 1.6s ease-in-out infinite alternate; }
@keyframes bob { from { translate: 0 4px; } to { translate: 0 -4px; } }
.float { animation: float 3s ease-in-out infinite alternate; }
@keyframes float { from { translate: 0 8px; } to { translate: 0 -8px; } }
.pulse { animation: pulse .8s ease-in-out infinite alternate; }
@keyframes pulse { from { scale: 1; } to { scale: 1.13; } }
.glow { filter: drop-shadow(0 0 14px #fff36b); }

/* ---------- Zoey ---------- */
.zoey { pointer-events: none; }
.zoey > svg { width: 100%; height: 100%; display: block; overflow: visible; }
.girl .a-arm-l { transform-origin: 100% 0%; }
.girl .a-arm-r { transform-origin: 0% 0%; }
.girl .a-head { transform-origin: 50% 96%; animation-duration: 2.8s; }
.eyes-joy { display: none; }
.girl-body { animation: bob-art 1.6s ease-in-out infinite alternate; }
[data-pose="wave"] .a-arm-l { animation: wave-l .42s ease-in-out infinite alternate; }
@keyframes wave-l { from { transform: rotate(74deg); } to { transform: rotate(110deg); } }
[data-pose="cheer"] .a-arm-l { animation: wave-l .3s ease-in-out infinite alternate; }
[data-pose="cheer"] .a-arm-r { animation: wave-r .3s ease-in-out infinite alternate; }
@keyframes wave-r { from { transform: rotate(-74deg); } to { transform: rotate(-110deg); } }
[data-pose="cheer"] .eyes-joy { display: inline; }
[data-pose="cheer"] .eyes-open { display: none; }
[data-pose="cheer"] .girl-body { animation: hop-girl .3s ease-in-out infinite alternate; }
@keyframes hop-girl { from { transform: translateY(0); } to { transform: translateY(-34px); } }

/* ---------- round buttons ---------- */
.round {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink); background: #fff;
  box-shadow: 0 5px 0 var(--shadow);
  transition: transform .08s;
}
.round:active { transform: translateY(3px) scale(.95); }
.round.orange { background: #ff9d2e; color: #fff; box-shadow: 0 5px 0 #e07d10; }
.round.blue { background: #3fb4ff; color: #fff; box-shadow: 0 5px 0 #1f94e0; }
.round.green { background: #4fc56a; color: #fff; box-shadow: 0 5px 0 #33a650; }
.round.pink { background: #ff6fa8; color: #fff; box-shadow: 0 5px 0 #e64f8b; }
.round.purple { background: #9a7bf5; color: #fff; box-shadow: 0 5px 0 #7a5bdb; }
.round.yellow { background: var(--sun); box-shadow: 0 5px 0 #e6c62e; }
.round.big { width: 92px; height: 92px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px;
  background: #fff; font-weight: 800; font-size: 16px;
  box-shadow: 0 4px 0 var(--shadow);
}
.pill:active { transform: translateY(2px); }
.pill .icon { width: 22px; height: 22px; }

/* ---------- home ---------- */
.hub { display: flex; background: var(--sky); padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.hub-bg { position: absolute; inset: 0; pointer-events: none; }
.hub-bg svg { width: 100%; height: 100%; display: block; }
.hub-side {
  position: relative; flex: 0 0 26%; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 8px 16px;
}
.hub-side h1 { margin: 0; font-size: clamp(22px, 2.9vw, 38px); font-weight: 900; text-align: center; color: #fff; text-shadow: 0 3px 0 rgba(31, 26, 58, .18); letter-spacing: 1px; }
.tagline { margin: 0; font-size: 15px; font-weight: 800; color: #fff; opacity: .95; }
.hub-side .zoey { flex: 1; min-height: 0; width: 100%; pointer-events: auto; cursor: pointer; }
.hub-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hub-grid {
  position: relative; flex: 1; min-width: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 18px;
  padding: 22px 22px 30px 8px; align-content: start;
}
.card {
  position: relative; display: flex; flex-direction: column; align-items: stretch;
  border-radius: 30px; padding: 8px 8px 12px; background: #fff;
  box-shadow: 0 8px 0 var(--shadow);
  transition: transform .12s; animation: card-in .5s cubic-bezier(.3, 1.4, .5, 1) both;
}
.card:nth-child(2n) { animation-delay: .06s; } .card:nth-child(3n) { animation-delay: .12s; } .card:nth-child(5n) { animation-delay: .18s; }
.card:active { transform: scale(.95) translateY(4px); }
.card-art { position: relative; width: 100%; aspect-ratio: 1.12; display: grid; place-items: center; border-radius: 24px; background: linear-gradient(160deg, var(--c1), var(--c2)); overflow: hidden; }
.card-art > svg { position: absolute; inset: 4%; width: 92%; height: 92%; display: block; overflow: visible; }
.card-art img { width: 66%; height: auto; border-radius: 24%; }
.card-name { font-size: 20px; font-weight: 900; letter-spacing: 1px; margin-top: 8px; text-align: center; }
.card-wins { position: absolute; top: 14px; right: 14px; padding: 2px 10px; border-radius: 999px; background: #fff; color: #ff9d2e; font-size: 14px; font-weight: 900; }

/* ---------- sticker album ---------- */
.album { display: flex; flex-direction: column; background: #ffd6e8; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.album-bar { display: flex; align-items: center; gap: 16px; padding: 14px 20px; }
.album-bar h2 { margin: 0; flex: 1; font-size: 28px; font-weight: 900; }
.album-count { padding: 7px 18px; border-radius: 999px; background: #fff; font-weight: 900; font-size: 18px; color: var(--pink); }
.album-grid {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 12px; padding: 6px 20px 26px; align-content: start;
}
.sticker { aspect-ratio: 1; border-radius: 24px; background: #fff; padding: 6px; box-shadow: 0 5px 0 rgba(31, 26, 58, .08); }
.sticker:nth-child(4n+1).got { background: #dff4ff; } .sticker:nth-child(4n+2).got { background: #fff3c9; } .sticker:nth-child(4n+3).got { background: #e6f9d9; } .sticker:nth-child(4n).got { background: #efe6ff; }
.sticker:not(.got) svg { filter: brightness(0) opacity(.1); }

/* ---------- a game ---------- */
.play { background: var(--sky); overflow: hidden; touch-action: none; }
.stage { position: absolute; left: 50%; top: 50%; height: 800px; transform-origin: center; touch-action: none; }
.scene-holder { position: absolute; inset: 0; pointer-events: none; }
svg.scene { position: absolute; left: 0; top: 0; overflow: visible; display: block; }
.sprite { position: absolute; }
.sprite > svg { display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tappable { cursor: pointer; }
.draggable { cursor: grab; touch-action: none; }
.dragging { z-index: 900 !important; filter: drop-shadow(0 16px 0 rgba(31, 26, 58, .16)); scale: 1.1; cursor: grabbing; }
.locked { pointer-events: none; }
.bit { position: absolute; pointer-events: none; z-index: 950; }
.bit svg { width: 100%; height: 100%; display: block; overflow: visible; }
.shadowed { filter: drop-shadow(0 8px 0 rgba(31, 26, 58, .14)); }
.stage-button { position: absolute; width: 92px; height: 92px; z-index: 800; }
.layer { position: absolute; inset: 0; pointer-events: none; }
.layer > * { pointer-events: auto; }
.host { pointer-events: none; }

.play-bar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 20; pointer-events: none;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) 0 calc(14px + env(safe-area-inset-left));
}
.play-bar > * { pointer-events: auto; }
.progress { display: flex; gap: 4px; padding: 6px 16px; border-radius: 999px; background: #fff; box-shadow: 0 4px 0 var(--shadow); font-size: 30px; line-height: 1; pointer-events: none; }
.progress:empty { display: none; }
.progress span { color: #e3e1ec; }
.progress span.on { color: #ffc21f; }

/* speech / thought bubbles */
.bubble-box {
  position: absolute; background: #fff; border-radius: 36px;
  display: flex; align-items: center; justify-content: center; gap: 4px; padding: 10px 14px;
  box-shadow: 0 7px 0 var(--shadow);
}
.bubble-box::after { content: ""; position: absolute; left: var(--tail, 30%); bottom: -16px; width: 34px; height: 34px; background: #fff; transform: rotate(45deg); border-radius: 6px; box-shadow: 5px 5px 0 var(--shadow); }
.bubble-box > * { position: relative; z-index: 1; }
.bubble-box svg { display: block; overflow: visible; }

/* panels of choices (colours, tools, clothes) */
.tray {
  position: absolute; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: 36px; background: #fff; box-shadow: 0 8px 0 var(--shadow);
}
.chip {
  position: relative; width: 84px; height: 84px; border-radius: 26px; background: #eef7ff; flex: none;
  display: grid; place-items: center; transition: transform .1s;
}
.chip > svg { position: absolute; left: 8%; top: 8%; width: 84%; height: 84%; display: block; overflow: visible; pointer-events: none; }
.chip:active { transform: scale(.92); }
.chip.on { background: #fff3a8; box-shadow: 0 0 0 5px var(--sun); transform: translateY(-4px); }
.swatch { width: 66px; height: 66px; border-radius: 50%; box-shadow: 0 5px 0 rgba(31, 26, 58, .16); flex: none; transition: transform .1s; }
.swatch.on { transform: scale(1.18); box-shadow: 0 0 0 5px #fff, 0 0 0 10px var(--ink); }

/* ---------- win ---------- */
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; display: none; }
.win { position: absolute; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 2vw; background: rgba(98, 212, 255, .88); animation: fade-in .35s both; }
@keyframes fade-in { from { opacity: 0; } }
.win > .zoey { height: 70%; aspect-ratio: .75; max-width: 36%; }
.win-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 44px; border-radius: 44px; background: #fff; box-shadow: 0 12px 0 var(--shadow); animation: card-in .5s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes card-in { from { transform: scale(.5); opacity: 0; } }
.win-title { font-size: 46px; font-weight: 900; }
.win-stars { font-size: 56px; line-height: 1; color: #ffc21f; display: flex; gap: 8px; }
.win-stars span { animation: card-in .5s cubic-bezier(.3, 1.8, .5, 1) both; }
.win-stars span:nth-child(2) { animation-delay: .18s; translate: 0 -8px; }
.win-stars span:nth-child(3) { animation-delay: .36s; }
.win-sticker { display: flex; align-items: center; gap: 12px; }
.win-sticker:empty { display: none; }
.sticker-new { width: 120px; height: 120px; padding: 6px; border-radius: 28px; background: #fff3a8; animation: card-in .6s .5s cubic-bezier(.3, 1.8, .5, 1) both; }
.sticker-label { font-size: 22px; font-weight: 900; color: var(--pink); }
.win-actions { display: flex; gap: 22px; }

/* ---------- turn the phone ---------- */
.rotate { position: absolute; inset: 0; z-index: 99; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--sky); color: #fff; font-size: 22px; font-weight: 900; }
.rotate .zoey { height: 46%; aspect-ratio: .75; }
@media (orientation: portrait) and (max-width: 620px) {
  body[data-view="play"] .rotate { display: flex; }
  .hub { flex-direction: column; }
  .hub-side { flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; justify-content: center; padding: 12px 12px 4px; gap: 4px 12px; }
  .hub-side h1 { width: 100%; }
  .tagline { display: none; }
  .hub-side .zoey { flex: 0 0 auto; height: 130px; width: 100px; order: -1; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); padding: 12px 14px 24px; gap: 12px; }
  .card-name { font-size: 18px; }
}
@media (max-height: 520px) {
  .round:not(.stage-button) { width: 48px; height: 48px; }
  .round.big { width: 70px; height: 70px; }
  .hub-side { padding: 8px 6px; }
  .tagline { display: none; }
  .hub-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; padding: 12px 12px 16px 4px; }
  .card { border-radius: 22px; padding: 6px 6px 8px; }
  .card-art { border-radius: 17px; }
  .card-name { font-size: 15px; margin-top: 4px; }
  .pill { font-size: 13px; padding: 6px 10px; }
  .progress { font-size: 20px; }
  .win-card { padding: 14px 26px; gap: 8px; }
  .win-title { font-size: 30px; }
  .win-stars { font-size: 36px; }
  .sticker-new { width: 76px; height: 76px; }
  .win > .zoey { height: 84%; }
}

/* ---------- 翻翻乐 ---------- */
.mcard { perspective: 900px; }
.mcard .flip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .38s cubic-bezier(.4, 1.4, .5, 1); }
.mcard.open .flip { transform: rotateY(180deg); }
.mcard .side { position: absolute; inset: 0; border-radius: 13%/11%; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: 0 8px 0 var(--shadow); }
.mcard .back > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; }
.mcard .back-star { position: absolute; left: 25%; top: 29%; width: 50%; }
.mcard .front { transform: rotateY(180deg); background: #eef7ff; padding: 6%; display: grid; place-items: center; }
.mcard.matched .front { background: #fff3a8; }

/* ---------- 冰淇淋店 ---------- */
.ic-tray { gap: 8px; padding: 10px 14px; flex-wrap: nowrap; }
.ic-tray .chip { width: 78px; height: 78px; }
.bubble-box.order svg { height: 100%; }

/* ---------- 喂小动物 ---------- */
.bubble-box.think { flex-wrap: wrap; align-content: center; gap: 4px; padding: 10px 16px; border-radius: 44px; }
.want { width: 72px; height: 72px; transition: opacity .3s; position: relative; }
.want.fed svg { opacity: .25; }
.want.fed::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 54px; font-weight: 900; color: #33a650; }

/* ---------- 化妆间 ---------- */
.mk-cats { flex-direction: column; flex-wrap: nowrap; gap: 7px; padding: 8px; border-radius: 30px; }
.mk-cats .chip { width: 72px; height: 72px; border-radius: 22px; }
.mk-options { gap: 12px; padding: 14px 10px; }
.mk-options .chip { width: 86px; height: 86px; }
.paint { pointer-events: none; transition: opacity .12s; }
.guide { animation: twinkle .7s ease-in-out infinite alternate; pointer-events: none; }
.brush-cursor { pointer-events: none; z-index: 700; transform: rotate(-20deg); }
.flash { position: absolute; inset: -2000px; background: #fff; z-index: 990; animation: flash .45s both; pointer-events: none; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }

/* ---------- 换装派对 ---------- */
.du-cats { gap: 8px; padding: 9px 12px; flex-wrap: nowrap; }
.du-cats .chip { width: 68px; height: 68px; border-radius: 20px; }
.du-options { gap: 12px; padding: 14px; }
.du-options .chip { width: 104px; height: 104px; }
.chip.scene-chip { overflow: hidden; }
.chip.scene-chip > svg { left: 0; top: 0; width: 100%; height: 100%; border-radius: inherit; }

/* ---------- 动脑筋 ---------- */
.q-board { position: absolute; inset: 0; transition: opacity .25s, transform .25s; }
.q-board.leaving { opacity: 0; transform: translateX(-60px); }
.q-prompt {
  position: absolute; left: 50%; transform: translateX(calc(-50% + 40px)); display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 40px; background: rgba(255, 255, 255, .92); box-shadow: 0 8px 0 var(--shadow); animation: card-in .45s cubic-bezier(.3, 1.4, .5, 1) both;
}
.q-item { width: 118px; height: 118px; flex: none; }
.q-what { display: grid; place-items: center; border-radius: 28px; background: #fff3a8; font-size: 78px; font-weight: 900; color: #ff9d2e; animation: pulse .8s ease-in-out infinite alternate; }
.q-shadow, .q-who { width: 220px; height: 220px; }
.q-shadow svg { filter: brightness(0) opacity(.75); }
.q-shadow * { animation: none !important; }
.q-card {
  position: absolute; border-radius: 34px; background: #fff; box-shadow: 0 9px 0 var(--shadow); padding: 14px;
  display: grid; place-items: center; transition: transform .1s, background .2s; animation: card-in .45s cubic-bezier(.3, 1.4, .5, 1) both;
}
.q-card:active { transform: translateY(5px); }
.q-card.yes { background: #b9f0a8; box-shadow: 0 9px 0 #7fd067; }
.q-card.no { background: #e9e7f0; box-shadow: 0 4px 0 var(--shadow); }
.q-card.no > * { opacity: .35; }
.q-card svg { pointer-events: none; }
.q-plate { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 2px; padding: 12px; }
.q-bit { width: 30%; aspect-ratio: 1; }
.q-seesaw { position: relative; width: 560px; height: 270px; }
.q-plank { position: absolute; left: 20px; right: 20px; top: 176px; height: 22px; border-radius: 11px; background: #a8693a; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.q-rider { position: absolute; bottom: 14px; width: 170px; height: 170px; }
.q-rider:first-child { left: 0; } .q-rider:last-child { right: 0; }
.q-pivot { position: absolute; left: 50%; top: 190px; width: 120px; margin-left: -60px; }

/* ---------- 蛋糕店 ---------- */
.cake-side { flex-direction: column; flex-wrap: nowrap; gap: 8px; padding: 10px; }
.cake-side .chip { width: 104px; height: 84px; }
.cake-toppings { display: block; }
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker .28s ease-in-out infinite alternate; }
@keyframes flicker { from { transform: scale(.9, 1.06) rotate(-4deg); } to { transform: scale(1.08, .92) rotate(4deg); } }
.smoke { animation: smoke 1.2s ease-out forwards; }
@keyframes smoke { to { transform: translateY(-30px); opacity: 0; } }

/* ---------- 宠物澡堂 ---------- */
.tool.off { opacity: .35; filter: grayscale(.6); }

/* ---------- 涂色本 ---------- */
.cl-chooser { position: absolute; left: 50%; top: 440px; transform: translate(-50%, -50%); width: min(1040px, 92%); display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cl-thumb { aspect-ratio: 1.12; border-radius: 30px; background: #fff; box-shadow: 0 8px 0 var(--shadow); padding: 10px; animation: card-in .45s cubic-bezier(.3, 1.4, .5, 1) both; }
.cl-thumb:active { transform: translateY(5px); }
.cl-thumb svg { pointer-events: none; }
.cl-paper { position: absolute; border-radius: 40px; background: #fff; box-shadow: 0 10px 0 var(--shadow); padding: 26px; }
svg.page .zone { stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; cursor: pointer; paint-order: fill; }
svg.page .zone-line { cursor: pointer; }
svg.page.done .zone { stroke-width: 0; }
svg.page.done .edge { display: none; }
.cl-thumb svg.page .zone { stroke-width: 5; }
.cl-palette { gap: 10px; padding: 14px 10px; }
.cl-palette .swatch { width: 58px; height: 58px; }
.cl-palette .swatch[style*="rgb(255, 255, 255)"], .cl-palette .swatch[style*="#ffffff"] { box-shadow: 0 5px 0 rgba(31, 26, 58, .16), inset 0 0 0 3px #e3e1ec; }
.chip.cl-pattern { width: 58px; height: 58px; border-radius: 50%; background: none; overflow: hidden; }
.chip.cl-pattern > svg { left: 0; top: 0; width: 100%; height: 100%; }
.chip.cl-pattern.on { box-shadow: 0 0 0 5px #fff, 0 0 0 10px var(--ink); transform: scale(1.12); }
.stage-button.on { box-shadow: 0 0 0 6px #fff, 0 0 0 11px var(--ink); }

/* ---------- 拼图 ---------- */
.pz-board { position: absolute; border-radius: 30px; background: #fff; box-shadow: 0 10px 0 var(--shadow); padding: 14px; }
.pz-board svg { width: 100%; height: 100%; display: block; border-radius: 16px; background: #eef3f8; }
.pz-board.solved svg g { opacity: 1; transition: opacity .5s; }
.piece { pointer-events: none; filter: drop-shadow(0 6px 0 rgba(31, 26, 58, .2)); scale: .6; transition: scale .15s; }
.piece.dragging, .piece.placed { scale: 1; }
.piece .hit { pointer-events: auto; cursor: grab; }
.piece.placed { filter: none; }
.piece.placed .hit { stroke: rgba(255, 255, 255, .5); stroke-width: 2; pointer-events: none; }

/* ---------- 捉迷藏 ---------- */
.seek-bar { gap: 8px; padding: 8px 14px; z-index: 15; }
.seek-bar .chip { width: 72px; height: 72px; border-radius: 22px; }
.seek-bar .chip:not(.on) svg { filter: brightness(0) opacity(.22); }
.seek-bar .chip.on { transform: none; }
