/* Six quiet, touch-first play spaces using the existing storybook atlas. */
.bonus-main{max-width:1040px;padding-top:4px}
.bonus-main h1{margin-top:15px;font-size:32px}
.bonus-main>p{max-width:650px;margin:9px auto 0;text-wrap:balance}
.bonus-main .game-top>span:last-child{font-weight:850;color:#526449;min-width:54px}
.bonus-scene{position:relative;max-width:760px;min-height:338px;margin:23px auto 0;border-radius:25px;isolation:isolate;overflow:hidden;background:#e5ecdb}
.bonus-scene button{position:relative;touch-action:manipulation}
.bonus-scene button:focus-visible{outline:3px solid #6c60a1;outline-offset:4px;z-index:5}
.bonus-scene .bonus-piece{padding:0;transition:transform .16s,background .16s;min-width:64px;min-height:64px}
.bonus-scene .bonus-piece:hover:not(:disabled){transform:translateY(-3px)}
.bonus-scene .bonus-piece:active:not(:disabled){transform:scale(.95)}
.bonus-main .bonus-message{font-size:13px;min-height:23px;margin-top:12px;color:#425a48}
.bonus-pips{display:flex;justify-content:center;gap:7px;margin:7px 0 8px}
.bonus-pips>span{display:grid;place-items:center;width:24px;height:24px;border:1px solid #cbd3be;border-radius:50%;color:#899880;background:#eff1e4}
.bonus-pips .icon{width:12px;height:12px}
.bonus-pips>span.filled{background:#507a5c;color:#fff;border-color:#507a5c}
.bonus-skip{font-size:12px;color:var(--muted);margin-top:0}
.bonus-main #mini-end:empty{min-height:0}
.bonus-main #mini-end{gap:18px;min-height:57px}
.bonus-invitation{display:flex;flex-direction:column;align-items:center;margin-top:21px;gap:4px}
.bonus-invitation>span{font-size:11px;color:#63715c}
.bonus-invitation>strong{font-size:19px}
.bonus-invitation>.button{margin-top:10px}
.bonus-collect{height:354px;background:#dce1cd url('assets/night.webp') center 52%/cover}
.bonus-collect.theme-moon{background-color:#aebaca;background-blend-mode:multiply}
.bonus-collect .star-jar{right:35px;bottom:28px;background:none;border:0;box-shadow:none}
.bonus-collect .star-jar:before{display:none}
.lantern-frame{position:absolute;left:-5px;right:-5px;bottom:-7px;width:calc(100% + 10px);height:156px;overflow:visible;filter:drop-shadow(0 2px 5px #7a704526)}
.bonus-collect .star-jar.complete .lantern-frame{filter:drop-shadow(0 0 15px #fff1a1)}
.light-tokens{position:absolute;inset:0}
.light-tokens .bonus-piece{position:absolute;left:var(--x);top:var(--y);width:78px;height:78px;translate:-50% -50%;border-radius:50%}
.light-tokens .bonus-piece>.art-sprite{width:100%;height:100%;filter:drop-shadow(0 4px 7px #5f694122)}
.light-tokens .bonus-piece:disabled{opacity:0;pointer-events:none}
.bonus-host{position:absolute;left:22px;bottom:3px;width:120px;pointer-events:none}
.bonus-host>.art-sprite{width:100%;height:100%}
.bonus-finished .bonus-host>.art-sprite{animation:bunny-cheer .55s cubic-bezier(.16,1,.3,1)}
.bonus-bubbles{background:linear-gradient(155deg,#f6dfd1,#e5dfef 57%,#dce9d8);padding:23px 40px 37px}
.bonus-bubbles.theme-dew{background:linear-gradient(160deg,#d4e8df,#e4eed8 65%,#f5ecc8)}
.bubble-grid{position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,1fr);gap:13px 32px;max-width:490px;margin:auto}
.bubble-grid .bonus-piece{width:118px;height:118px;justify-self:center;border-radius:50%}
.bubble-shell{position:absolute;inset:0;border:2px solid #fff9;border-radius:50%;background:radial-gradient(circle at 32% 25%,#fff9,transparent 33%),radial-gradient(circle at 67% 80%,#e6aec066,transparent 50%),#d8e5ef44;box-shadow:inset -5px -6px 12px #9ba8cb33,inset 4px 3px 9px #ffffffe6,0 5px 8px #8b8a9d0d;filter:hue-rotate(var(--bubble-tone))}
.bubble-shell>.art-sprite{position:absolute;inset:27%;width:46%;height:46%;opacity:.3;filter:saturate(.6)}
.bubble-shine{position:absolute;width:25%;height:15%;left:19%;top:13%;border-top:4px solid #fff9;border-radius:50%;transform:rotate(-40deg)}
.bubble-surprise{position:absolute;inset:12%;opacity:0;transform:scale(.55)}
.bubble-surprise>.art-sprite{width:100%;height:100%}
.bubble-grid .bonus-piece:disabled .bubble-shell{animation:bubble-pop .32s ease-out both}
.bubble-grid .bonus-piece:disabled .bubble-surprise{opacity:1;transform:scale(1);transition:opacity .2s,transform .32s cubic-bezier(.16,1,.3,1)}
.scene-flowers{position:absolute;display:flex;align-items:center;bottom:-12px;left:50%;translate:-50% 0;width:200px;height:68px;opacity:.8;z-index:1;pointer-events:none}
.scene-flowers>.art-sprite{width:68px;height:68px}
.bonus-pairs{background:#e3e9d9;padding:24px 32px}
.bonus-pairs.theme-night{background:#d4d8e6}
.pair-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;max-width:460px;margin:auto}
.pair-grid .bonus-piece{height:137px;border:2px solid #b8c8ae;background:#f7f2df;border-radius:18px;box-shadow:0 4px 0 #c6ceb9}
.pair-grid .bonus-piece[data-open="false"]{background:#b7ceb0;border-color:#a3bc9b;background-image:radial-gradient(#eef5e34d 1.5px,transparent 2px);background-size:15px 15px}
.theme-night .pair-grid .bonus-piece[data-open="false"]{background-color:#abb4cf;border-color:#949fbd}
.pair-back{position:absolute;inset:0;display:grid;place-items:center;color:#527457}
.pair-back>.icon{width:38px;height:38px;opacity:.8}
.theme-night .pair-back{color:#535f80}
.pair-front{position:absolute;inset:10px;display:grid;place-items:center;opacity:0;transform:scale(.7);transition:opacity .15s,transform .25s cubic-bezier(.16,1,.3,1)}
.pair-front>.art-sprite{width:100%;height:100%;max-width:112px}
.pair-grid .bonus-piece[data-open="true"] .pair-front{opacity:1;transform:none}
.pair-grid .bonus-piece[data-open="true"] .pair-back{opacity:0}
.pair-grid .bonus-piece[data-matched="true"]{background:#edf0d9;border-color:#78996d;box-shadow:none}
.pair-check{position:absolute;right:6px;bottom:6px;width:22px;height:22px;border-radius:50%;background:#638a59;color:white;display:grid;place-items:center}
.pair-check>.icon{width:13px;height:13px}
.bonus-feed{background:#e4ead9;padding:12px 25px 22px}
.bonus-feed.theme-basket{background:#f0e4d1}
.picnic-stage{position:relative;max-width:470px;height:206px;margin:auto}
.picnic-bunny{position:absolute;width:160px;left:18px;bottom:15px;z-index:3}
.picnic-bunny>.art-sprite{width:100%;height:100%}
.thought-bubble{position:absolute;left:196px;top:8px;width:133px;height:112px;background:#fffcf0;border:2px solid #d8d8bd;border-radius:47% 49% 44% 49%;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:8px;z-index:4;gap:0}
.thought-bubble:after{content:'';position:absolute;left:-9px;bottom:6px;width:17px;height:12px;background:#fffcf0;border-left:2px solid #d8d8bd;border-bottom:2px solid #d8d8bd;rotate:-23deg;border-radius:40%}
.thought-bubble>.art-sprite{width:73px;height:73px}
.thought-bubble>span:last-child{font-size:10px;font-weight:800;line-height:1.1}
.thought-bubble>.icon{width:35px;height:35px;color:#b77570;fill:#efc3ad}
.thought-bubble>strong{font-size:15px;margin-top:3px}
.picnic-cloth{position:absolute;bottom:0;right:6px;width:290px;height:89px;background-color:#f3d7bd;background-image:linear-gradient(90deg,#fffc 50%,transparent 50%),linear-gradient(#fff7 50%,transparent 50%);background-size:30px 30px;border-radius:50%;transform:rotate(-5deg)}
.picnic-plate{position:absolute;inset:14px 24px;display:flex;align-items:center;justify-content:center;border:3px double #d4c3aa;border-radius:50%;background:#fffaf0d9;gap:6px}
.plate-item{width:53px;height:53px;opacity:.16;filter:grayscale(1)}
.plate-item.on-plate{opacity:1;filter:none}
.plate-item>.art-sprite{width:100%;height:100%}
.picnic-choices{display:flex;justify-content:center;gap:16px;position:relative;z-index:5;margin-top:9px}
.picnic-choices .bonus-piece{width:109px;height:104px;border:2px solid #cecfb5;background:#fffaf0;border-radius:20px;box-shadow:0 4px 0 #cbd0b8;padding:6px}
.picnic-choices .bonus-piece>.art-sprite{width:100%;height:100%}
.picnic-choices .bonus-piece:disabled{opacity:.3;box-shadow:none;border-style:dashed}
.bonus-grow{background:linear-gradient(#dcebe5,#eaf0d6);padding:20px 28px 24px}
.bonus-grow.theme-butterflies{background:linear-gradient(#e5e2f0,#e3eccf)}
.garden-sun{position:absolute;width:69px;height:69px;right:22px;top:11px}
.garden-row{position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,1fr);gap:13px;max-width:590px;margin:26px auto 0}
.garden-row .bonus-piece{height:255px;display:flex;align-items:center;flex-direction:column;justify-content:flex-end;border-radius:20px}
.plant-space{position:relative;display:block;width:100%;height:143px}
.flower-pot{position:relative;display:grid;place-items:center;width:91px;height:67px;background:#cb9574;border:3px solid #b68162;border-radius:6px 6px 24px 24px;color:#65442e;font-weight:850}
.flower-pot:before{content:'';position:absolute;left:-7px;right:-7px;top:-6px;height:17px;border:2px solid #b68162;background:#d5a383;border-radius:5px}
.flower-pot>span{font-size:9px;position:relative;padding-top:8px}
.flower-pot .icon{width:20px;height:20px;color:#fff9e9}
.plant-stem{position:absolute;height:0;width:5px;background:#70935b;left:calc(50% - 2px);bottom:0;border-radius:4px;transition:height .3s}
.plant-leaf{position:absolute;left:50%;bottom:14px;width:0;height:0;background:#8ba866;border-radius:1px 85% 2px 85%;transform:rotate(-28deg);transition:width .3s,height .3s}
.plant-leaf.leaf-b{left:auto;right:50%;bottom:37px;transform:scaleX(-1) rotate(-28deg)}
[data-stage="1"] .plant-stem{height:57px}
[data-stage="1"] .plant-leaf{width:25px;height:14px}
[data-stage="2"] .plant-stem{height:90px}
[data-stage="2"] .plant-leaf{width:31px;height:19px}
.grown-flower{position:absolute;left:50%;bottom:43px;translate:-50% 0;width:95px;height:95px;animation:flower-bloom .5s cubic-bezier(.16,1,.3,1) both}
.grown-flower>.art-sprite{width:100%;height:100%}
.garden-butterfly{position:absolute;width:52px;height:52px;left:55%;top:-5px;rotate:15deg;animation:flower-bloom .6s cubic-bezier(.16,1,.3,1) both}
.garden-butterfly>.art-sprite{width:100%;height:100%}
.water-hint{display:flex;align-items:center;justify-content:center;gap:5px;min-height:39px;font-size:12px;font-weight:800;color:#35646b}
.water-hint>.icon{width:16px;height:16px}
.garden-ground{position:absolute;bottom:0;left:-10%;right:-10%;height:90px;border-radius:50% 50% 0 0;background:#cbdbb4;z-index:0}
.bonus-search{background:#e3e8d5;padding:15px 40px 21px}
.bonus-search.theme-meadow{background:#ece4cc}
.hide-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px 42px;max-width:440px;margin:auto;position:relative;z-index:2}
.hide-grid .bonus-piece{height:150px;border-radius:20px}
.hidden-friend{position:absolute;left:50%;top:1px;translate:-50% 0;width:115px;height:115px;transform:scale(.6);opacity:0;transition:transform .4s cubic-bezier(.16,1,.3,1),opacity .15s}
.hidden-friend>.art-sprite{width:100%;height:100%}
.hiding-bush{position:absolute;inset:18px 8px 24px;transition:opacity .2s,transform .3s;z-index:2}
.hiding-bush>span{position:absolute;width:64%;height:78%;background:#93b27c;border-radius:55% 55% 37% 44%;bottom:0;left:0;box-shadow:inset 0 -7px 0 #7c9e682e}
.hiding-bush>span:nth-child(2){left:auto;right:0;background:#a1bc83}
.hiding-bush>span:nth-child(3){left:23%;bottom:13px;width:57%;height:85%;background:#b1c88d}
.hiding-bush>b{position:absolute;inset:0;display:grid;place-items:center;font-size:28px;color:#567642;padding-top:10px}
.found-name{position:absolute;bottom:0;left:0;right:0;text-align:center;font-size:11px;font-weight:800;color:#4e6844}
.hide-grid [data-found="true"] .hidden-friend{opacity:1;transform:scale(1);animation:flower-bloom .4s cubic-bezier(.16,1,.3,1)}
.hide-grid [data-found="true"] .hiding-bush{opacity:0;transform:translateY(22px) scale(.8)}
@keyframes bubble-pop{0%{transform:scale(1);opacity:1}60%{transform:scale(1.17);opacity:.6}100%{transform:scale(1.25);opacity:0}}
@keyframes flower-bloom{from{transform:scale(.35) rotate(-15deg);opacity:.3}to{transform:scale(1) rotate(0);opacity:1}}
@media(max-width:540px){
 .bonus-main{padding-left:18px;padding-right:18px}
 .bonus-main h1{font-size:26px;margin-top:13px}
 .bonus-main>p{font-size:12px;line-height:1.5}
 .bonus-main .game-top{font-size:11px;gap:6px}
 .bonus-main .game-top .back-button{font-size:12px}
 .bonus-main .game-top>span:last-child{min-width:36px}
 .bonus-scene{min-height:325px;margin-top:17px;border-radius:21px}
 .bonus-collect{height:332px}
 .light-tokens .bonus-piece{width:65px;height:65px}
 .bonus-collect .star-jar{right:21px;bottom:25px}
 .lantern-frame{height:124px;bottom:-7px}
 .bonus-host{width:96px;left:8px;bottom:5px}
 .bonus-bubbles{padding:27px 12px 37px}
 .bubble-grid{gap:25px 6px}
 .bubble-grid .bonus-piece{width:90px;height:90px}
 .bonus-pairs{padding:22px 17px}
 .pair-grid{gap:13px 11px}
 .pair-grid .bonus-piece{height:125px;border-radius:14px}
 .pair-front{inset:6px}
 .bonus-feed{padding:9px 12px 18px}
 .picnic-stage{height:200px}
 .picnic-bunny{width:132px;left:0;bottom:14px}
 .thought-bubble{width:115px;height:104px;left:146px;top:4px}
 .thought-bubble>.art-sprite{width:65px;height:65px}
 .picnic-cloth{width:225px;right:0;height:79px}
 .picnic-plate{inset:12px 21px;gap:4px}
 .plate-item{width:45px;height:45px}
 .picnic-choices{gap:10px;margin-top:8px}
 .picnic-choices .bonus-piece{width:87px;height:87px;border-radius:17px}
 .bonus-grow{padding:18px 12px 15px}
 .garden-row{grid-template-columns:repeat(2,1fr);gap:0 25px;max-width:245px;margin:0 auto}
 .garden-row .bonus-piece{height:151px;min-width:85px}
 .plant-space{height:81px}
 .flower-pot{width:64px;height:42px;border-width:2px;border-radius:5px 5px 16px 16px}
 .flower-pot:before{height:12px;left:-5px;right:-5px;top:-4px}
 .flower-pot>span{font-size:7px;padding-top:4px}
 .flower-pot .icon{width:15px;height:15px}
 .water-hint{font-size:10px;min-height:28px;gap:3px}
 .water-hint>.icon{width:13px;height:13px}
 [data-stage="1"] .plant-stem{height:36px}
 [data-stage="2"] .plant-stem{height:56px}
 .plant-leaf{bottom:7px}
 .plant-leaf.leaf-b{bottom:20px}
 [data-stage="1"] .plant-leaf{width:19px;height:11px}
 [data-stage="2"] .plant-leaf{width:23px;height:13px}
 .grown-flower{width:67px;height:67px;bottom:21px}
 .garden-butterfly{width:36px;height:36px;top:-4px}
 .garden-sun{width:49px;height:49px;right:4px;top:2px}
 .garden-ground{height:48px}
 .bonus-search{padding:13px 12px 17px}
 .hide-grid{gap:16px 10px;max-width:290px}
 .hide-grid .bonus-piece{height:141px}
 .hidden-friend{width:108px;height:108px}
 .hiding-bush{inset:17px 1px 22px}
 .bonus-main .bonus-message{font-size:11px;min-height:32px;margin-top:10px;padding:0 8px}
 .bonus-pips{gap:6px;margin:4px 0 8px}
 .bonus-pips>span{width:22px;height:22px}
 .bonus-main #mini-end{gap:3px}
 .bonus-main #mini-end .button{font-size:15px;min-height:50px}
 .bonus-invitation{margin-top:16px}
 .bonus-invitation>strong{font-size:17px}
}
@media(max-width:365px){.bubble-grid .bonus-piece{width:81px;height:81px}.picnic-choices .bonus-piece{width:78px;height:80px}.thought-bubble{left:130px}.bonus-main h1{font-size:24px}}
@media(prefers-reduced-motion:reduce){.bubble-grid .bonus-piece:disabled .bubble-shell{opacity:0}.grown-flower,.garden-butterfly{opacity:1;transform:none}}
.calm-motion .bubble-grid .bonus-piece:disabled .bubble-shell{opacity:0}
.calm-motion .grown-flower,.calm-motion .garden-butterfly{opacity:1;transform:none}
