/* Layout, accessibility and polish pass (2026-10-12). Additive overrides only: keeps every existing design layer.
   v2-polish.js keeps this file last in <head> so it wins over the modules v2-ui.js loads later. */
/* ---- safe areas: one pair of tokens so the whole game can be tested with fake insets ---- */
:root{--sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px)}
html body.ui2[data-place=town] .app{padding-top:calc(8px + var(--sat))!important;padding-bottom:0!important}
/* Town menu sits in the page flow: grow it under the home bar so its colour reaches the edge */
html body.ui2[data-place=town] .bottom-nav{flex-basis:calc(74px + var(--sab))!important;height:calc(74px + var(--sab))!important;padding-bottom:calc(3px + var(--sab))!important}
@media(min-width:760px){html body.ui2[data-place=town] .bottom-nav{flex-basis:calc(80px + var(--sab))!important;height:calc(80px + var(--sab))!important}}
@media(max-height:650px){html body.ui2[data-place=town] .bottom-nav{flex-basis:calc(66px + var(--sab))!important;height:calc(66px + var(--sab))!important}}
@media(min-width:760px){html body.ui2[data-place=town] .app{padding-top:max(14px,calc(6px + var(--sat)))!important}}
html body.ui2:not([data-place=town]) .app{padding-top:var(--sat)!important}
@media(max-width:760px){html body.ui2:not([data-place=town]) .app{padding-bottom:calc(var(--nav-clearance,90px) + var(--sab))!important}
 html body.ui2[data-mode=hunt]:not([data-place=town]) .bottom-nav{bottom:calc(7px + var(--sab))!important}}
@media(min-width:761px){html body.ui2:not([data-place=town]) .app{border-bottom:var(--sab) solid transparent}
 html body.ui2[data-mode=hunt]:not([data-place=town]) .bottom-nav{bottom:calc(20px + var(--sab))!important}}
html .gm-screen{top:calc(58px + var(--sat))!important;bottom:calc(96px + var(--sab))!important}
@media(min-width:761px){html .gm-screen{bottom:calc(118px + var(--sab))!important}}
html .gm-screen .gm-grid{--size:min(calc((100vw - 24px - (var(--cols) - 1) * var(--gap)) / var(--cols)),calc((100svh - 58px - 96px - 20px - var(--sat) - var(--sab) - (var(--rows) - 1) * var(--gap)) / var(--rows) - var(--label)),132px)}
html #v2-dialog[open],html #modal[open]{max-height:calc(100dvh - var(--sat) - var(--sab) - 16px)!important;margin-block:auto!important}
html .v2-arcade{padding:var(--sat) 0 var(--sab)!important}
html .tr-card-wrap,html .gm-coin-sheet,html .v2l-me,html .v2l-wed,html .tr-reveal{padding-top:max(16px,var(--sat))!important;padding-bottom:max(16px,var(--sab))!important}
html .gm-coin-sheet>div{max-height:calc(100svh - max(16px,var(--sat)) - max(16px,var(--sab)))}
html .av-wrap{padding:max(12px,var(--sat)) 12px max(12px,var(--sab))!important}
html .av-card{max-height:calc(100svh - max(12px,var(--sat)) - max(12px,var(--sab)))}
html .sq-calm-x{top:calc(14px + var(--sat))!important}
html body.sq-calm .sq-bar{bottom:calc(20px + var(--sab))!important}
html .squish-fullscreen .feel-controls:has(.wax-recoat){bottom:calc(226px + var(--sab))}
html .squish-playground{padding-top:calc(16px + var(--sat));padding-bottom:calc(20px + var(--sab))}
/* phones: the squish view is full-bleed, so it pads itself instead of being pushed down */
@media(max-width:760px){html dialog#modal.squish-fullscreen[open]{margin:0!important;max-height:100dvh!important;height:100dvh}}
@media(min-width:761px){html .squish-playground{padding-top:20px;padding-bottom:26px}}
@media(max-height:650px){html .squish-playground{padding-top:calc(10px + var(--sat));padding-bottom:calc(14px + var(--sab))}}
html #toast{margin-bottom:var(--sab)}html .v2-coin-toast{margin-top:var(--sat)}
/* ---- coin chip: gold clay coin (svg from v2-polish.js) ---- */
.pz-coin{position:relative;display:inline-block;width:1.25em;height:1.25em;vertical-align:-.28em;font-style:normal;filter:drop-shadow(0 1px 0 #fff8)}
.pz-coin svg{width:100%;height:100%;display:block}
.pz-coin span{position:absolute;inset:0;opacity:0;font-size:1px;overflow:hidden;pointer-events:none}
.gm-badge .pz-coin{width:1.5em;height:1.5em}
.gm-big .pz-coin{width:1.1em;height:1.1em;vertical-align:-.18em}
/* ---- text floor: nothing a kid needs to read under 13px; big buttons 17px+ ---- */
html .v2l-goal,html .tr-waiting small,html .toy-name,html .price-tag,html .tr-label,html .shop-footer .btn,html .trade-speech,html .offer-label,html .tray-toy span,html .tray-toy small,html .page-heading .pill,html .room-tools .btn,html .display-label,html .play-toolbar,html .play-toolbar .text-button,html .board-sticker,html .photo-tools .btn,html .play-collection-heading small,html .v2l-stats b,html .gm-way i,html .gm-cap,html #toast{font-size:13px!important}
html .v2l-stats b{letter-spacing:.02em}
html .offer-label{letter-spacing:.06em}
html .display-label{padding:2px 8px;white-space:normal;text-wrap:balance;text-align:center;line-height:1.15;max-width:min(100%,7.5em)}
html .tray-toy span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
html .av-go,html #modal[open] .btn.wide,html #lift-dumpling,html #squeeze-dumpling,html .tr-reveal button,html #modal[open] form .btn.green,html #modal[open] .v2-first-go{font-size:17px!important}
html body.ui2[data-place] .shop-scene .toy-card .toy-name,html body.ui2[data-place=home] .room-tools .btn,html body.ui2[data-place=play] .play-toolbar .text-button{font-size:13px!important}
/* ---- tap targets: 44px hit areas, same look ---- */
html body.ui2[data-place=play] .play-tabs .btn{min-height:44px!important}
html body.ui2[data-place=play] .play-toolbar .text-button{min-height:44px!important;padding:0 4px!important}
html body.ui2[data-place] .photo-tools .btn{min-height:44px!important}
html .squish-picker .squish-prev,html .squish-picker .squish-next{min-width:44px;min-height:44px}
html body.ui2[data-place=town] .street-dots button{width:44px;position:relative}
html body.ui2[data-place=town] .street-dots button:after{inset:-11px 0}
html .street-arrow{min-width:44px!important;min-height:44px!important}
/* ---- squish view: the drag hint sits at the toy's right edge, not the far side of the card ---- */
html dialog.squish-fullscreen .squish-demo{right:auto;bottom:auto;left:calc(50% + var(--squeeze-size) * .43);top:calc(50% - var(--squeeze-size) * .08)}
/* ---- desktop squish view: big toy on the left, stats + picker + buttons on the right ---- */
@media(min-width:1000px){
 html dialog#modal.squish-fullscreen[open]{width:min(1060px,94vw);height:min(calc(100dvh - 32px),860px);max-height:calc(100dvh - 32px)!important;margin:auto!important}
 html .squish-fullscreen .squish-playground{grid-template-columns:minmax(0,1fr) minmax(300px,34%);grid-template-rows:60px minmax(0,1fr) auto auto auto minmax(0,1fr) 64px;column-gap:28px;row-gap:14px;padding:20px 28px 22px}
 html .squish-fullscreen .squish-toolbar{grid-column:1/-1;grid-row:1}
 html .squish-fullscreen .squish-stage{grid-column:1;grid-row:2/7;margin:0;--squeeze-size:min(102cqw,96cqh,48vh,420px)}
 html .squish-fullscreen .sq-bar{grid-column:1;grid-row:7;margin:0 auto}
 html .squish-fullscreen .v2l-stats{grid-column:2;grid-row:3;margin:0}
 html .squish-fullscreen .squish-picker{grid-column:2;grid-row:4}
 html .squish-fullscreen .squish-dock{grid-column:2;grid-row:5}
}


/* A single pastel trading tabletop: offer, choice shelf, then decision. */
html body.ui2[data-mode=hunt][data-place=trade] #main{min-width:0}
html body.ui2[data-mode=hunt][data-place=trade] .hunter-trade[data-refined]{display:grid;grid-template-rows:82px minmax(0,1fr)!important;gap:10px;min-height:0}
html body.ui2[data-mode=hunt][data-place=trade] .trade-friend-header{position:relative;min-width:0;gap:12px;padding:7px 10px;border:3px solid #fffaf4;border-radius:25px;background:linear-gradient(115deg,#fff4e9,#f7e6f4 58%,#e6f6ec);box-shadow:0 4px #d8bdcb}
html body.ui2[data-mode=hunt][data-place=trade] .trade-friend-header>div:not(.trade-speech){flex:0 0 auto;min-width:95px}
html body.ui2[data-mode=hunt][data-place=trade] .trade-friend-header h1{line-height:1.05}
html body.ui2[data-mode=hunt][data-place=trade] .trade-friend-header small{color:#806d83}
html body.ui2[data-mode=hunt][data-place=trade] .trade-friend-header .trade-speech{position:relative;order:1;display:flex;align-items:center;justify-content:center;flex:1;min-width:0;min-height:52px;margin:0 8px 0 4px;padding:8px 20px;border:2px solid #fff;border-radius:19px;background:#fffdf6;color:#71547a;box-shadow:0 3px #e9d3cb;text-align:left;line-height:1.25;overflow:visible}
html body.ui2[data-mode=hunt][data-place=trade] .trade-friend-header .trade-speech:before{content:'';position:absolute;left:-10px;top:50%;width:15px;height:15px;background:#fffdf6;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:translateY(-50%) rotate(45deg)}
html body.ui2[data-mode=hunt][data-place=trade] .trade-friend-header [data-action=nextfriend]{order:2}
html body.ui2[data-mode=hunt][data-place=trade] .trade-friend-header [data-action=repeat]{order:3}
html body.ui2[data-mode=hunt][data-place=trade] .trade-mat{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) 138px 64px!important;gap:0;min-width:0;min-height:0;overflow:hidden;padding:0!important;border:6px solid #fff9ef!important;border-radius:31px!important;background:linear-gradient(120deg,#f9e1ec 0%,#fbefe2 52%,#e7f6ec 100%)!important;box-shadow:0 7px #d6b8c7,0 17px 28px #704c6324!important}
html body.ui2[data-mode=hunt][data-place=trade] .trade-mat:before{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 25% 28%,#fffaf699,transparent 38%),radial-gradient(circle at 77% 28%,#fffdf29c,transparent 40%),repeating-linear-gradient(0deg,#fff9f11c 0 2px,transparent 2px 11px);z-index:0}
html body.ui2[data-mode=hunt][data-place=trade] .trade-mat .offer-zone{grid-row:1!important;position:relative;z-index:1;display:grid!important;grid-template-rows:auto minmax(0,1fr);align-items:center;justify-items:center;min-height:0!important;min-width:0;margin:0!important;padding:13px 20px 3px!important;background:transparent!important;border:0!important;box-shadow:none!important}
html body.ui2[data-mode=hunt][data-place=trade] .trade-mat .offer-zone:nth-of-type(2){grid-column:1!important}
html body.ui2[data-mode=hunt][data-place=trade] .trade-mat .offer-zone:nth-of-type(3){grid-column:2!important}
html body.ui2[data-mode=hunt][data-place=trade] .trade-mat .offer-zone+.offer-zone{border-left:0!important}
html body.ui2[data-mode=hunt][data-place=trade] .offer-label{z-index:1;align-self:start;min-width:95px;padding:6px 17px;border:2px solid #fff9f4;border-radius:999px;background:#fff9f0dc;color:#715374!important;box-shadow:0 3px #d9bec5;letter-spacing:0!important;text-transform:none!important;font-size:15px!important;font-weight:900}
html body.ui2[data-mode=hunt][data-place=trade] .offer-toys{align-self:center;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;min-height:0!important;max-height:100%;width:100%;overflow:visible}
html body.ui2[data-mode=hunt][data-place=trade] .offer-toys>button{display:grid;place-items:center;flex:0 0 clamp(125px,18vw,220px)!important;min-width:0;min-height:0;width:clamp(125px,18vw,220px)!important;height:clamp(125px,18vw,220px);padding:9px;border:3px solid #fffdf8;border-radius:32px;background:#fff9f0b8;box-shadow:0 7px #dcbcaf,0 13px 18px #7b577326;animation:trade-arrive .5s cubic-bezier(.2,1.4,.45,1) both;cursor:pointer}
html body.ui2[data-mode=hunt][data-place=trade] .offer-toys:has(>button:nth-child(2))>button{flex-basis:min(41%,160px)!important;width:min(41%,160px)!important}
html body.ui2[data-mode=hunt][data-place=trade] .offer-toys>button .toy{width:100%!important;height:100%!important;filter:drop-shadow(0 8px 5px #79586927)}
html body.ui2[data-mode=hunt][data-place=trade] .offer-toys>button:hover{transform:translateY(-5px)}
html body.ui2[data-mode=hunt][data-place=trade] .empty-offer{min-width:min(70%,240px);min-height:clamp(125px,18vw,220px);padding:13px;border:3px dashed #c79ac1;border-radius:30px;background:#fffdf58a;color:#795a83;box-shadow:inset 0 0 0 7px #fffdf374;gap:3px;text-align:center;justify-content:center}
html body.ui2[data-mode=hunt][data-place=trade] .empty-offer strong{font-size:clamp(14px,1.7vw,20px);line-height:1.05}
html body.ui2[data-mode=hunt][data-place=trade] .empty-offer small{font-size:12px}
html body.ui2[data-mode=hunt][data-place=trade] .trade-empty-plus{font-size:48px;line-height:1;color:#b88faf}
html body.ui2[data-mode=hunt][data-place=trade] .trade-exchange{position:absolute;z-index:2;left:50%;top:33%;width:66px;height:66px;display:grid;place-items:center;border:4px solid #fffdf7;border-radius:50%;background:linear-gradient(#fff3c7,#f9dd93);box-shadow:0 5px #cda96e,0 9px 13px #7a5b6040;color:#82669a;font-size:37px;font-weight:900;transform:translate(-50%,-50%);pointer-events:none}
html body.ui2[data-mode=hunt][data-place=trade] .trade-mat .opponent-actions{position:absolute!important;top:55px;left:24px;z-index:3;width:72px!important;grid-column:auto;grid-row:auto;align-self:auto;justify-self:auto;border:0;background:transparent;overflow:visible}
html body.ui2[data-mode=hunt][data-place=trade] .opponent-actions .mat-symbol:not(.lit){display:none}
html body.ui2[data-mode=hunt][data-place=trade] .opponent-actions .mat-symbol.lit{display:grid;width:58px;height:58px;min-height:0;border:3px solid #fffdf8;border-radius:50%;background:#e7f6e9;box-shadow:0 4px #9dbfa6;animation:trade-arrive .45s both}
html body.ui2[data-mode=hunt][data-place=trade] .trade-tray{grid-column:1/-1;grid-row:2;z-index:1;display:grid;grid-template-rows:20px minmax(0,1fr);min-height:0;height:auto!important;margin:0 10px 0;padding:5px 12px!important;border:3px solid #fffaf0!important;border-radius:24px 24px 8px 8px;background:linear-gradient(#fff1da,#efd2ae)!important;box-shadow:inset 0 3px 7px #ad80501d!important}
html body.ui2[data-mode=hunt][data-place=trade] .trade-shelf-title{font-size:13px;font-weight:900;color:#79567a;text-align:center;line-height:19px}
html body.ui2[data-mode=hunt][data-place=trade] .tray-grid{display:flex!important;flex-wrap:nowrap;justify-content:center;align-items:center;gap:10px!important;height:100%!important;max-height:none!important;min-height:0;padding:1px 8px 3px!important;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:thin}
html body.ui2[data-mode=hunt][data-place=trade] .tray-toy{flex:0 0 104px!important;width:104px!important;height:101px!important;min-height:0;padding:3px 3px 5px!important;border:2px solid #fffdf8;border-radius:17px;background:#fffaf0;box-shadow:0 3px #cda78c;scroll-snap-align:center}
html body.ui2[data-mode=hunt][data-place=trade] .tray-toy.selected{background:#e2f6e7;box-shadow:0 0 0 3px #65bd9d,0 4px #78a994}
html body.ui2[data-mode=hunt][data-place=trade] .tray-toy .toy{width:72px!important;height:72px!important;margin:auto}
html body.ui2[data-mode=hunt][data-place=trade] .tray-toy span:last-child{font-size:12px!important;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.ui2[data-mode=hunt][data-place=trade] .trade-actions{grid-column:1/-1;grid-row:3;z-index:1;display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:7px;min-height:0;height:64px;margin:0!important;padding:5px 10px 6px;border:0!important;background:#fff8eead}
html body.ui2[data-mode=hunt][data-place=trade] .trade-actions .mat-symbol{min-height:0!important;height:51px;padding:4px 10px;border:2px solid #fffdf8!important;border-radius:14px;background:#f6e5ed;box-shadow:0 3px #d3b5c4;color:#745778;font-size:14px}
html body.ui2[data-mode=hunt][data-place=trade] .trade-actions .more{background:#e8f5ed;box-shadow:0 3px #a9cdb7}
html body.ui2[data-mode=hunt][data-place=trade] .trade-actions .accept{background:#bbe6d6;box-shadow:0 3px #7bbaa5;color:#276f5c}
html body.ui2[data-mode=hunt][data-place=trade] .trade-actions .accept.suggested{background:linear-gradient(#79d9b8,#47bda5);box-shadow:0 4px #318f80;color:#173f3e}
html body.ui2[data-mode=hunt][data-place=trade] .trade-actions .mat-symbol:disabled{opacity:.45;animation:none}
html body.ui2[data-mode=hunt][data-place=trade] .trade-actions .mat-symbol small{font-size:15px!important;white-space:nowrap}
html body.ui2[data-mode=hunt][data-place=trade] .trade-footer{display:none!important}
html body.ui2[data-mode=hunt][data-place=trade] .portrait.thinking{animation:trade-think .65s ease-in-out infinite alternate}
html body.ui2[data-mode=hunt][data-place=trade] .hunter-trade.has-offer .friend-closeup{animation:trade-happy .65s ease-out both}
html body.ui2[data-mode=hunt][data-place=trade] .v2q-pk{display:none!important}
html body.ui2[data-mode=hunt][data-place=trade] .trade-tray.request-more{animation:request-more .55s 3}
@keyframes trade-arrive{from{opacity:.4;transform:translateY(24px) scale(.72,.82)}70%{transform:translateY(-7px) scale(1.08,.94)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes trade-think{to{transform:rotate(5deg) translateY(-5px)}}
@keyframes trade-happy{40%{transform:rotate(-6deg) scale(1.08)}75%{transform:rotate(5deg) scale(1.04)}to{transform:none}}
@media(max-width:760px){
 html body.ui2[data-mode=hunt][data-place=trade] .hunter-trade[data-refined]{grid-template-rows:84px minmax(0,1fr)!important;gap:6px}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-friend-header{gap:5px;padding:5px;border-radius:18px}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-friend-header .friend-closeup{width:54px;height:54px}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-friend-header>div:not(.trade-speech){min-width:53px}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-friend-header h1{font-size:17px}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-friend-header small{font-size:9px}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-friend-header .trade-speech{min-height:46px;margin:0 2px;padding:5px 8px;font-size:11px!important;line-height:1.15}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-friend-header .icon-button{width:32px;height:32px;min-width:32px}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-mat{grid-template-rows:minmax(0,1fr) 116px 55px!important;border-width:4px!important;border-radius:23px!important}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-mat .offer-zone{padding:8px 3px 0!important}
 html body.ui2[data-mode=hunt][data-place=trade] .offer-label{font-size:12px!important;min-width:0;padding:3px 10px}
 html body.ui2[data-mode=hunt][data-place=trade] .offer-toys>button{flex-basis:clamp(125px,39vw,175px)!important;width:clamp(125px,39vw,175px)!important;height:clamp(125px,39vw,175px);padding:4px;border-radius:20px}
 html body.ui2[data-mode=hunt][data-place=trade] .empty-offer{min-width:85%;min-height:clamp(90px,31vw,145px);padding:5px;border-radius:20px}
 html body.ui2[data-mode=hunt][data-place=trade] .empty-offer strong{font-size:12px}
 html body.ui2[data-mode=hunt][data-place=trade] .empty-offer small{font-size:10px}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-empty-plus{font-size:31px}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-exchange{width:43px;height:43px;top:39%;font-size:24px;border-width:3px}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-tray{margin:0 5px;padding:2px 5px!important;grid-template-rows:17px minmax(0,1fr);border-radius:15px 15px 6px 6px}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-shelf-title{font-size:11px;line-height:16px}
 html body.ui2[data-mode=hunt][data-place=trade] .tray-grid{justify-content:flex-start;gap:7px!important}
 html body.ui2[data-mode=hunt][data-place=trade] .tray-toy{flex-basis:79px!important;width:79px!important;height:86px!important}
 html body.ui2[data-mode=hunt][data-place=trade] .tray-toy .toy{width:61px!important;height:61px!important}
 html body.ui2[data-mode=hunt][data-place=trade] .tray-toy span:last-child{font-size:10px!important}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-actions{height:55px;padding:4px;gap:4px}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-actions .mat-symbol{height:46px;padding:3px 4px}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-actions .mat-symbol small{font-size:11px!important}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-actions .mat-symbol svg{width:18px!important;height:18px!important}
}
@media(prefers-reduced-motion:reduce){html body.ui2[data-mode=hunt][data-place=trade] .offer-toys>button,html body.ui2[data-mode=hunt][data-place=trade] .portrait.thinking,html body.ui2[data-mode=hunt][data-place=trade] .hunter-trade.has-offer .friend-closeup,html body.ui2[data-mode=hunt][data-place=trade] .opponent-actions .mat-symbol.lit{animation:none!important}}
/* ---- desktop Town: current shop centred, neighbours whole, soft fade at the edges ---- */
@media(min-width:760px){
 html body.ui2[data-place=town] .town-street-section{--shop:min(400px,34vw);--gap:clamp(24px,4vw,64px)}
 html body.ui2[data-place=town] .hunter-shops{padding-inline:calc((100% - var(--shop)) / 2)!important;gap:var(--gap)!important;scroll-padding-inline:calc((100% - var(--shop)) / 2)!important;-webkit-mask-image:linear-gradient(90deg,transparent,#000 3.5%,#000 96.5%,transparent);mask-image:linear-gradient(90deg,transparent,#000 3.5%,#000 96.5%,transparent)}
 html body.ui2[data-place=town] .hunter-shop,html body.ui2[data-place=town] .hunter-shop.locked{flex-basis:var(--shop)!important}
 html body.ui2[data-place=town] .street-arrow{right:calc(50% - var(--shop) / 2 - var(--gap) / 2 - 22px)!important}
 html body.ui2[data-place=town] .street-arrow.previous{left:calc(50% - var(--shop) / 2 - var(--gap) / 2 - 22px)!important;right:auto!important}
}
/* ---- desktop Games: bigger tiles that use the screen ---- */
@media(min-width:761px){html .gm-screen .gm-grid{--gap:18px;--size:min(calc((100vw - 48px - 4 * var(--gap)) / 5),calc((100svh - 58px - 118px - 28px - var(--sat) - var(--sab) - 2 * var(--gap)) / 3 - var(--label)),176px)}}
/* ---- desktop Squish table: wider table that fills the height ---- */
@media(min-width:1000px){html body.ui2[data-place=play] #main{max-width:1060px!important}
 html body.ui2[data-mode=hunt][data-place=play] #main{grid-template-rows:0px 48px 28px clamp(370px,calc(100svh - 345px - var(--sat) - var(--sab)),600px) 44px 0px!important;height:auto!important}
 html body.ui2[data-place=play] .play-board{height:100%!important;max-height:none!important;aspect-ratio:auto!important}}
html [data-sq=calm]::after{font-size:13px!important}
html body.sq-calm .squish-demo{display:none}
html .tr-case .tr-label{z-index:8}
html body.ui2 .shop-header>.icon-button{min-width:44px;min-height:44px}
html .compare-toy .feel-badge,html .compare-toy .feel-tip{font-size:13px!important}
html dialog[open] .icon-button[data-action=close]{min-width:44px;min-height:44px}
/* Shorter phones (SE, mini): the Calm button sits in the stage's top-left corner instead of taking its own row, so the toy gets the room. */
@media(max-width:760px) and (max-height:820px){
 html body:not(.sq-calm) .squish-fullscreen .sq-bar{position:absolute;top:calc(84px + var(--sat));left:12px;margin:0;z-index:3}
 html .squish-fullscreen .v2l-stats{margin:0}
}

/* Taps don't leave Safari's focus ring on buttons (the yellow lines around a shop after a sheet closes); keyboard focus still shows. */
:focus:not(:focus-visible){outline:none}

/* Town goal bar: the next shop sits in a round chip inside the bar, the lock is a small badge on it. */
html body.ui2 .town-goal{min-height:50px;padding:5px 16px 5px 6px;margin-top:6px;gap:10px}
html body.ui2 .town-goal>.shop-building{width:40px;height:40px;border-radius:50%;background-color:#fffaf2;background-size:82%;background-position:center 75%;box-shadow:0 0 0 2px #fff;flex:none;position:relative}
html body.ui2 .town-goal.goal-locked::after{content:"🔒";position:absolute;margin:0;left:34px;top:calc(50% + 4px);width:20px;height:20px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:11px;line-height:1;box-shadow:0 1px 3px #6a4b8a33}

/* Collection book pages (v2-polish.js): swipe sideways, no vertical scroll. */
html #modal[open]:has(.book-grid.paged){overflow:hidden}
html .book-grid.paged{display:flex!important;gap:0!important;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
html .book-grid.paged::-webkit-scrollbar{display:none}
html .book-page{flex:0 0 100%;display:grid;grid-template-columns:repeat(var(--book-cols,3),minmax(0,1fr));gap:10px;align-content:start;scroll-snap-align:start;box-sizing:border-box;padding:2px}
html .book-nav{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:8px}
html .book-nav .icon-button{width:44px;height:44px;min-width:44px;font-size:26px;line-height:1;padding:0}
html .book-dots{display:flex;gap:6px}
html .book-dots i{width:9px;height:9px;border-radius:50%;background:#e2d6ee}
html .book-dots i.on{background:#9b72d0}

/* Room, Play and the rest: the screen is exactly the phone's height (the menu's reserved space was 25px too tall). */
@media(max-width:760px){html body.ui2:not([data-place=town]) .app{height:100dvh;overflow:hidden}}
/* Collection header stays short: set chips and filters are one swipeable row each. */
html #modal[open] .set-chips,html #modal[open] .book-filters{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;scrollbar-width:none;margin-bottom:8px;padding-bottom:2px}
html #modal[open] .set-chips::-webkit-scrollbar,html #modal[open] .book-filters::-webkit-scrollbar{display:none}
html #modal[open] .set-chips>*,html #modal[open] .book-filters>*{flex:none}
@media(max-height:640px){html #modal[open]:has(.book-grid) .modal-subtitle{margin:2px 0 6px}html #modal[open]:has(.book-grid) .set-chips+p,html #modal[open]:has(.book-grid) .set-note{display:none}}
html #modal[open]:has(.book-grid){height:calc(100dvh - 24px - var(--sat) - var(--sab));max-height:820px;box-sizing:border-box;display:flex;flex-direction:column}
html #modal[open]:has(.book-grid) .book-grid{flex:1 1 auto;min-height:0}
html .book-grid.paged .book-page{height:100%;grid-template-rows:repeat(var(--book-rows,2),minmax(0,1fr))}
html .book-grid.paged .book-toy{min-height:0;overflow:hidden;justify-content:center}
html .book-grid.paged .book-toy .toy{width:auto!important;height:min(83px,48%)!important;aspect-ratio:1;flex:none}

/* Games: 12 tiles fill the space between the top bar and the menu. Portrait 3×4, square 4×3, wide 6×2.
   Each tile is a size container, so the icon is as big as its cell allows; the coin badge rides the icon's corner. */
html body .gm-screen{display:flex!important;align-items:stretch!important;justify-content:center!important;overflow:hidden!important;padding:14px 16px 10px!important;max-width:1320px!important}
html body .gm-screen .gm-grid{--cols:3;--rows:4;flex:1;width:100%;height:100%;display:grid!important;grid-template-columns:repeat(var(--cols),minmax(0,1fr))!important;grid-template-rows:repeat(var(--rows),minmax(0,1fr))!important;gap:12px 10px!important;align-items:stretch;justify-items:stretch}
/* Shape comes from the panel's own space: tall 3×4, squarish 4×3, wide 6×2. */
html body .gm-screen{container-type:size;container-name:games}
@container games (min-aspect-ratio:4/5){html body .gm-screen .gm-grid{--cols:4;--rows:3}}
@container games (min-aspect-ratio:8/5){html body .gm-screen .gm-grid{--cols:6;--rows:2;gap:22px 18px!important}}
/* The pale panel ends exactly where the menu bar starts (--nav-gap is measured in v2-polish.js), so no strip of town shows. */
html body .gm-screen{bottom:var(--nav-gap,calc(96px + var(--sab)))!important;padding-bottom:10px!important}
html body .gm-screen .gm-tile{container-type:size;width:auto!important;height:auto!important;min-width:0;min-height:0;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:6px;overflow:visible}
html body .gm-screen .gm-icon{--s:min(100cqw,calc(100cqh - 26px));width:var(--s)!important;height:var(--s)!important;flex:none;position:relative;overflow:visible!important;border-radius:24%}
html body .gm-screen .gm-icon img{border-radius:22%;width:100%;height:100%;object-fit:cover;display:block}
html body .gm-screen .gm-badge{width:calc(var(--s) * .3);height:calc(var(--s) * .3);min-width:24px;min-height:24px;top:-5px;right:-5px;font-size:calc(var(--s) * .14)}
html body .gm-screen .gm-name{position:static!important;font-size:clamp(13px,calc(100cqh * .085),17px);line-height:1.2;max-width:100%}

/* Spacious landscape layouts work on iPads and desktop browsers, regardless of input device. */
html body[data-mode=hunt][data-room-theme=classic] .bedroom-scene,
html #v2-dialog .v2-room-preview.theme-classic{background-image:url('./assets/collection-bedroom-neutral.webp')!important;background-position:center;background-size:cover}

/* Room Looks is a visual doorway to the rooms players can discover. */
html body.ui2[data-place=home] .room-tools [data-room-shop]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:linear-gradient(135deg,#eee0fb,#ffe9f3)!important;border-color:#fffaf5!important;box-shadow:0 4px #bba2d2,0 8px 14px #6f4b7922!important;min-height:66px!important;padding:5px 8px!important}
html body.ui2[data-place=home] .room-look-peeks{display:flex;justify-content:center;align-items:center;height:29px;width:100%;max-width:100px}
html body.ui2[data-place=home] .room-look-peeks img{width:34%;height:100%;object-fit:cover;border:2px solid #fffdf7;border-radius:7px;box-shadow:0 2px 4px #5b426444}
html body.ui2[data-place=home] .room-look-peeks img:first-child{transform:rotate(-9deg) translateX(4px)}
html body.ui2[data-place=home] .room-look-peeks img:nth-child(2){z-index:1;transform:translateY(-2px)}
html body.ui2[data-place=home] .room-look-peeks img:last-child{transform:rotate(9deg) translateX(-4px)}
html body.ui2[data-place=home] .room-look-copy{font-weight:900;line-height:1.05;white-space:nowrap}
html #v2-dialog[data-page=rooms]{width:min(860px,calc(100vw - 24px))}
html #v2-dialog[data-page=rooms] .v2-room-options{gap:14px}
html #v2-dialog[data-page=rooms] .v2-room-options article{padding:9px;background:#fffaf2;border:3px solid #fffdf8;border-radius:23px;box-shadow:0 5px #dcc1cd,0 9px 16px #795b6b1c}
html #v2-dialog[data-page=rooms] .v2-room-preview{height:clamp(124px,19vh,180px);border-radius:16px;cursor:pointer}
html #v2-dialog[data-page=rooms] .v2-room-preview:focus-visible{outline:4px solid #8e69a9;outline-offset:3px}
html #v2-dialog[data-page=rooms] .v2-room-preview.large{height:clamp(230px,48vh,430px)}
html #v2-dialog[data-page=rooms] .v2-room-options h3{font-size:clamp(16px,2.5vw,21px);margin:9px 0 7px}
html #v2-dialog[data-page=rooms] .v2-room-options button{width:100%}
@media(max-width:600px){html body.ui2[data-place=home] .room-look-peeks{height:22px}html body.ui2[data-place=home] .room-tools [data-room-shop]{min-height:59px!important}html #v2-dialog[data-page=rooms] .v2-room-options{gap:9px}html #v2-dialog[data-page=rooms] .v2-room-options article{padding:5px;border-radius:17px}html #v2-dialog[data-page=rooms] .v2-room-preview{height:clamp(105px,18vh,150px);border-width:2px}html #v2-dialog[data-page=rooms] .v2-room-preview.large{height:clamp(230px,39vh,340px)}}

/* Spacious landscape layouts work on iPads and desktop browsers, regardless of input device. */
@media (min-width:1000px) and (orientation:landscape){
 /* The bedroom is the Room screen; controls float over its edges instead of shrinking it. */
 html body.ui2[data-place=home] .app{max-width:none;width:100%;padding-inline:0}
 html body.ui2[data-place=home] #main{display:block!important;position:relative;flex:none;width:calc(100% - 40px)!important;max-width:none!important;height:calc(100dvh - 174px);min-height:520px;margin:0 auto!important;padding:0!important;overflow:visible}
 html body.ui2[data-place=home] .bedroom-scene{position:absolute;inset:0;width:100%!important;height:100%;margin:0!important;aspect-ratio:auto;background-size:cover;background-position:center;border-radius:32px}
 html body.ui2[data-place=home] .page-heading{position:absolute;top:18px;left:22px;z-index:2;display:flex;align-items:center;gap:10px;margin:0!important;padding:8px 12px;border:2px solid #fffaf0;border-radius:20px;background:#fff7e9e8;box-shadow:0 4px 12px #65414d24;backdrop-filter:blur(8px)}
 html body.ui2[data-place=home] .page-heading h1{font-size:24px!important}
 html body.ui2[data-place=home] .room-tools{position:absolute;top:18px;right:22px;z-index:2;width:min(690px,calc(100% - 360px));margin:0!important;padding:0!important;gap:8px!important}
 html body.ui2[data-place=home] .room-tools .btn{min-height:56px!important;border-radius:18px;font-size:14px!important;background:#fff7e9e8;backdrop-filter:blur(8px)}
 html body.ui2[data-place=home] .room-collection{position:absolute;right:22px;bottom:22px;z-index:2;width:min(560px,calc(100% - 44px));height:142px;max-height:142px;min-height:0;padding:10px!important;border-radius:28px;background:linear-gradient(135deg,#fff3d9ee,#f4d4b6eb);backdrop-filter:blur(8px)}
 html body.ui2[data-place=home] .room-collection>*{flex-basis:112px!important}
 html body.ui2[data-place=home] .room-lucy{left:8%;right:auto;animation:none;translate:0 0}
 html body.ui2[data-place=home] .room-instruction,html body.ui2[data-place=home] .milestones{display:none!important}
 /* The one-time choice should be large enough to make each face a real choice. */
 html #modal.v2-first-modal[open]{width:min(760px,calc(100vw - 64px));max-width:none;padding:26px 32px}
 html #modal.v2-first-modal .v2-first h2{font-size:34px;margin-bottom:14px}
 html #modal.v2-first-modal .v2-first-note{font-size:18px;margin-bottom:20px}
 html #modal.v2-first-modal .v2-first-picks{gap:18px}
 html #modal.v2-first-modal .v2-first-picks button{min-height:190px;padding:18px 10px 12px;border-radius:26px;gap:10px}
 html #modal.v2-first-modal .v2-first-picks .toy{width:126px;height:126px}
 html #modal.v2-first-modal .v2-first-picks b{font-size:17px}
 html #modal.v2-first-modal .v2-first-sound{width:68px;height:68px;margin-top:18px}
 /* Let the character, not the surrounding blur, occupy the iPad. */
 html .av-card{width:min(740px,calc(100vw - 64px));height:min(690px,calc(100dvh - 48px));grid-template-columns:minmax(0,1fr) minmax(290px,.88fr);grid-template-rows:auto auto minmax(0,1fr) auto auto;column-gap:20px;padding:22px 24px}
 html .av-card .av-top,html .av-card .av-kind{grid-column:1/-1}
 html .av-card .av-stage{grid-column:1;grid-row:3/6}
 html .av-card .av-doll{max-height:none;height:min(48dvh,390px)}
 html .av-card .av-tabs{grid-column:2;grid-row:3;align-self:end}
 html .av-card .av-opts{grid-column:2;grid-row:4;min-height:70px}
 html .av-card .av-go{grid-column:2;grid-row:5}
 /* The squishy gets the centre of the tablet and a bigger, uninterrupted touch area. */
 html dialog#modal.squish-fullscreen[open]{width:min(980px,calc(100vw - 48px));height:min(90dvh,740px);max-height:calc(100dvh - 32px)!important;margin:auto!important;border-radius:36px}
 html.ui-toy .squish-fullscreen .squish-playground{max-width:none;grid-template-rows:52px minmax(0,1fr) auto 76px;padding:18px 36px 22px;row-gap:3px}
 html.ui-toy .squish-fullscreen #squish{width:min(82cqh,60cqw,580px)!important;height:min(82cqh,60cqw,580px)!important}
 html.ui-toy .squish-fullscreen .squish-stage:before{width:min(46cqw,410px);top:calc(50% + min(27cqh,180px));left:50%;transform:translateX(-50%) scaleX(var(--squish-shadow,1))}
 html.ui-toy .squish-fullscreen .tf-name{font-size:22px}
 html.ui-toy .squish-fullscreen .squish-dock{padding-top:4px}
 html.ui-toy .squish-fullscreen .squish-dock .btn{width:68px;height:68px;flex-basis:68px}
 html.ui-toy .squish-picker .squish-preview:not(.selected){width:104px;height:104px;top:48%}
 html.ui-toy .squish-picker .squish-preview:not(.selected) .toy,html.ui-toy .squish-picker .squish-preview:not(.selected) img{width:104px;height:104px}
 /* A tabletop: both offers face each other, with the collection close enough to drag. */
 html body.ui2[data-place=trade] #main{max-width:1100px!important;width:calc(100% - 32px)!important;min-height:0;padding-bottom:12px!important}
 html body.ui2[data-place=trade] .hunter-trade{max-width:none;width:100%;height:100%;grid-template-rows:70px 26px minmax(0,1fr) 158px!important;gap:10px}
 html body.ui2[data-place=trade] .trade-friend-header h1{font-size:26px}
 html body.ui2[data-place=trade] .trade-friend-header .friend-closeup{width:74px;height:74px}
 html body.ui2[data-place=trade] .trade-speech{font-size:16px!important}
 html body.ui2[data-place=trade] .trade-mat{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) 70px!important;min-height:0;border-radius:28px!important;border-width:6px!important;background:linear-gradient(135deg,#f8dbe9,#f7e8dc 52%,#e4f5ea)!important;box-shadow:0 7px #d8b5c5,0 16px 30px #74506724!important}
 html body.ui2[data-place=trade] .trade-mat .opponent-actions{grid-column:1/-1;grid-row:1;z-index:2;align-self:start;justify-self:center;width:60%;border-radius:0 0 18px 18px;overflow:hidden}
 html body.ui2[data-place=trade] .trade-mat .offer-zone:nth-of-type(2){grid-column:1;grid-row:1}
 html body.ui2[data-place=trade] .trade-mat .offer-zone:nth-of-type(3){grid-column:2;grid-row:1}
 html body.ui2[data-place=trade] .trade-mat .offer-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:15px!important;border:0!important;box-shadow:none!important;background:radial-gradient(ellipse at center,#fffdf7a8,transparent 74%)!important}
 html body.ui2[data-place=trade] .trade-mat .offer-zone+.offer-zone{border-left:3px dashed #fffaf1!important}
 html body.ui2[data-place=trade] .offer-label{font-size:16px!important;letter-spacing:.02em;text-transform:none;color:#805a83}
 html body.ui2[data-place=trade] .offer-toys{flex:1;min-height:0!important;max-height:100%;gap:14px}
 html body.ui2[data-place=trade] .offer-toys>button{background:#fffaf07a;border:2px solid #fffdf7;border-radius:24px;min-width:148px;min-height:148px;display:grid;place-items:center}
 html body.ui2[data-place=trade] .offer-toys .toy{width:140px;height:140px}
 html body.ui2[data-place=trade] .trade-actions{grid-column:1/-1;grid-row:2;border-top:3px solid #fffaf1;min-height:70px}
 html body.ui2[data-place=trade] .trade-actions .mat-symbol{min-height:66px}
 html body.ui2[data-place=trade] .trade-tray{padding:10px 18px;border:3px solid #fff9eb;background:linear-gradient(#f8e9d3,#e8c49f);box-shadow:0 5px #c59b78}
 html body.ui2[data-place=trade] .tray-grid{height:100%!important;align-items:center;justify-content:center;gap:14px!important;padding:2px 8px}
 html body.ui2[data-place=trade] .tray-toy{width:128px!important;height:126px!important;border:2px solid #fffdf5;border-radius:19px}
 html body.ui2[data-place=trade] .tray-toy .toy{width:94px!important;height:94px!important}
 /* Shelves stay aligned to the art; only the toys and captions gain presence. */
 html body.ui2[data-place=shop] .shop-scene .toy-card .toy,html body.ui2[data-place=shop] .shop-scene .toy-card .world-art{width:min(95cqw,125px)!important;height:min(95cqw,125px)!important}
 html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name{font-size:16px!important;line-height:1.15;padding:4px 10px!important;min-height:25px;overflow:visible;white-space:normal;text-wrap:balance;max-width:96%}
 html body.ui2[data-place=shop] .shop-footer .btn{font-size:16px!important;min-height:52px}
 /* One clear dock throughout the game, with a comfortable hit area. */
 html body.ui2 .bottom-nav{width:min(680px,calc(100vw - 56px));min-height:82px;padding:6px!important;gap:5px}
 html body.ui2 .bottom-nav button{flex:1;min-width:0;min-height:68px!important;font-size:15px!important;gap:3px}
 html body.ui2 .bottom-nav img,html body.ui2 .bottom-nav .expansion-art,html body.ui2 .bottom-nav .world-art{width:43px!important;height:43px!important}
 html body.ui2[data-place=town] .bottom-nav{width:min(680px,94%);height:86px!important;flex-basis:86px!important}
 html body.ui2[data-place=town] .bottom-nav button{height:74px}
}

/* Illustrated Games screen: the original game buttons remain the hit targets. */
html body .gm-screen{top:calc(58px + var(--sat))!important;bottom:var(--nav-gap,calc(96px + var(--sab)))!important;max-width:none!important;width:100%!important;box-sizing:border-box;display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:8px;padding:8px max(12px,env(safe-area-inset-right)) 14px!important;background:transparent!important;}
html body .gm-screen .gm-art-heading{display:grid;justify-items:center;align-content:center;min-height:65px;gap:0;color:#865082;font-size:clamp(14px,2vw,20px);font-weight:900;text-shadow:0 2px #fffaf2}
html body .gm-screen .gm-art-heading picture{display:block}
html body .gm-screen .gm-art-heading img{display:block;width:clamp(155px,28vw,220px);height:clamp(86px,12vw,105px);object-fit:contain}
html body .gm-screen .gm-art-heading span{padding:2px 17px;border:2px solid #fffdf4;border-radius:999px;background:#fff2d9e8;box-shadow:0 2px #dfbeaf}
html body .gm-screen .gm-grid{--cols:3;--rows:4;width:min(100%,780px);height:100%;min-height:0;justify-self:center;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(4,minmax(0,1fr))!important;gap:7px!important;padding:10px;border:3px solid #fffdf7;border-radius:30px;background:#fff9edeb;box-shadow:0 7px #d4ac8f,0 15px 25px #6b3f5c30;box-sizing:border-box}
html body .gm-screen .gm-tile{width:100%!important;height:100%!important;min-width:0;min-height:0;display:flex!important;align-items:center;justify-content:center;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:hidden!important;container-type:normal!important;animation:none!important}
html body .gm-screen .gm-icon{display:block!important;width:100%!important;height:auto!important;aspect-ratio:1;max-width:100%!important;max-height:100%!important;min-width:0!important;min-height:0!important;overflow:hidden!important;border:0!important;border-radius:20%!important;background-image:url('./assets/reference-game-cards/games-wide.webp')!important;background-size:600% 200%!important;background-position:var(--wide-x) var(--wide-y)!important;background-repeat:no-repeat!important;box-shadow:none!important;position:relative}
html body .gm-screen .gm-card-picture,html body .gm-screen .gm-card-picture img{display:block;width:100%;height:100%;object-fit:contain}
html body .gm-screen .gm-name,html body .gm-screen .gm-badge{display:none!important}
html body .gm-screen .gm-tile:focus-visible{outline:4px solid #814caa;outline-offset:-4px;border-radius:22px}
html body .gm-screen .gm-tile:active{transform:translateY(2px) scale(.98)}
@media (min-width:700px){
 html body .gm-screen .gm-grid{--cols:4;--rows:3;width:min(100%,1160px);grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:8px 12px!important;padding:15px 18px}
}
@media (min-width:700px) and (orientation:landscape){
 html body .gm-screen{gap:10px;padding:6px 24px 13px!important;background:transparent!important;}
 html body .gm-screen .gm-art-heading{min-height:72px}
 html body .gm-screen .gm-art-heading img{width:clamp(280px,34vw,430px);height:72px}
 html body .gm-screen .gm-tile{display:flex!important;align-items:center;justify-content:center}
 html body .gm-screen .gm-icon{width:100%!important;height:auto!important;max-width:100%!important;max-height:100%!important;aspect-ratio:1;background-image:url('./assets/reference-game-cards/games-wide.webp')!important;background-size:600% 200%!important;background-position:var(--wide-x) var(--wide-y)!important;margin-inline:auto;flex:0 0 auto}
}
@media (max-width:420px){html body .gm-screen .gm-art-heading{min-height:84px}html body .gm-screen .gm-art-heading img{width:155px;height:86px}html body .gm-screen .gm-grid{padding:7px;gap:5px!important;border-radius:24px}}

/* Room cards use the four supplied illustrated controls while keeping the
   existing Decorate, Unpack, Scrapbook and Room Looks actions. */
html body.ui2[data-place=home] .room-tools{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px!important;overflow:visible!important;padding:0!important}
html body.ui2[data-place=home] .room-tools .btn,html body.ui2[data-place=home] .room-tools [data-room-shop]{display:block!important;min-width:0!important;min-height:0!important;height:auto!important;aspect-ratio:1.33;padding:0!important;border:0!important;border-radius:18px!important;background:transparent!important;box-shadow:none!important;overflow:hidden;white-space:normal}
html body.ui2[data-place=home] .room-tools .btn img{display:block;width:100%;height:100%;object-fit:contain}
html body.ui2[data-place=home] .room-tools .btn:focus-visible{outline:4px solid #8b57af;outline-offset:1px}

/* The game cards are individual images so mobile Safari never depends on a
   large sprite background to paint the entire Play screen. */
html body .gm-screen .gm-icon{background-image:none!important;background-color:#f7e8f7!important}
html body .gm-screen .gm-icon>.gm-card-picture{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
/* Keep the player centered in the top-bar portrait. The level is spelled out
   on Today's progress sheet, so its bare number does not cover the face. */
html body.ui2 .ui2-me .ui2-face{position:relative;display:block;overflow:hidden}
html body.ui2 .ui2-me .ui2-face>span{position:absolute;inset:0;display:grid;place-items:center;line-height:1;font-size:28px}
html body.ui2 .ui2-me .ui2-face img{position:absolute;width:200%;height:auto;max-width:none;left:50%;top:-11px;transform:translateX(-50%);margin:0}
html body.ui2 .ui2-me .v2q-lv{display:none!important}
/* Safari can reshape the face when Today adds a sixth top-bar control. */
html body.ui2 .topbar .ui2-me{
 display:flex!important;align-items:center!important;justify-content:center!important;
 box-sizing:border-box;flex:0 0 54px!important;width:54px!important;min-width:54px!important;
 height:54px!important;min-height:54px!important;padding:2px!important;
}
html body.ui2 .topbar .ui2-me .ui2-face{
 box-sizing:border-box;flex:0 0 44px!important;width:44px!important;min-width:44px!important;
 height:44px!important;min-height:44px!important;align-self:center!important;
}
html body.ui2 .topbar .ui2-face.v2x-jump{
 animation:none!important;translate:none!important;scale:1!important;
}
html body #v2-dialog #v2-title:has(.grown-up-check-logo){margin:0 0 12px;line-height:0}
html body #v2-dialog .grown-up-check-logo{display:block;width:clamp(170px,48vw,340px);max-height:110px;object-fit:contain;object-position:left center}
@media(max-width:760px){
 /* Make the shop itself the room rather than a framed poster in the middle. */
 html body.ui2[data-mode=hunt][data-place=shop] #main{width:100vw!important;max-width:none!important;margin-left:calc(50% - 50vw)!important;padding-inline:0!important;gap:0!important;grid-template-rows:48px minmax(0,1fr) 56px!important}
 html body.ui2[data-place=shop] .shop-header{padding-inline:16px;z-index:1}
 html body.ui2[data-place=shop] .shop-footer{padding-inline:12px;z-index:1}
 html body.ui2[data-place=shop] .shop-scene{width:100%!important;max-width:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;background-size:100% 100%!important}
 html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name{font-size:clamp(11px,3.5vw,15px)!important;line-height:1.05!important;max-width:100%;padding:3px 6px!important;white-space:normal!important;text-wrap:balance;overflow:visible!important}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-mat .offer-zone{min-width:0!important;overflow:hidden}
 html body.ui2[data-mode=hunt][data-place=trade] .offer-label{box-sizing:border-box;display:block;width:max-content;max-width:100%;min-width:0!important;padding:3px 8px!important;margin-inline:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:clamp(11px,3vw,13px)!important;line-height:1.1}
}
html body.ui2[data-place=home] .room-tools .btn:active{transform:translateY(3px) scale(.98)}
html body.ui2[data-place=home] .room-collection{position:relative;box-sizing:border-box;border:4px solid #fffdf3!important;background:linear-gradient(145deg,#fff8eb,#f8e6d3)!important;box-shadow:0 5px #d4ad8e!important}
html body.ui2[data-place=home] .room-collection:before{content:'Your Squishies';position:absolute;top:7px;left:18px;color:#6c4386;font-size:clamp(15px,1.5vw,23px);font-weight:900;pointer-events:none}
html body.ui2[data-place=home] .room-collection>*{margin-top:18px}
@media (max-width:760px){
 html body.ui2[data-place=home] .page-heading h1{font-size:clamp(22px,6vw,29px)!important;color:#724692;text-shadow:0 2px #fff}
 html body.ui2[data-place=home] .room-tools{margin:1px 0 8px!important}
 html body.ui2[data-place=home] .bedroom-scene{min-height:300px;max-height:48dvh;aspect-ratio:1.05!important;background-size:cover!important;background-position:center!important}
 html body.ui2[data-place=home] .room-collection{min-height:126px;padding:27px 10px 9px!important;gap:8px!important}
 html body.ui2[data-place=home] .room-collection>*{margin-top:0;flex-basis:90px!important}
}
@media (min-width:1000px) and (orientation:landscape){
 html body.ui2[data-place=home] .room-tools{width:min(710px,calc(100% - 370px));gap:5px!important}
 html body.ui2[data-place=home] .room-tools .btn{aspect-ratio:1.4;max-height:90px}
 html body.ui2[data-place=home] .room-collection{position:absolute;right:22px;bottom:22px;padding-top:28px!important}
 html body.ui2[data-place=home] .room-collection>*{margin-top:0}
}

/* Center compact dialogs on phones too. The keyboard state retains its top alignment. */
html body:not(.v2l-typing) dialog#modal[open]:not(.squish-fullscreen),html body:not(.v2l-typing) dialog#v2-dialog[open]{position:fixed!important;top:0!important;bottom:0!important;margin:auto!important;max-height:calc(100dvh - var(--sat) - var(--sab) - 16px)!important}

/* First visit: a single surprise, one squish, then clear next steps. */
html #modal[open]:has(.first-reveal){width:min(510px,calc(100vw - 28px));max-width:none;box-sizing:border-box;padding:24px 20px;overflow:visible}
.first-reveal{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;color:#694f80}
.first-reveal h2{margin:0;font-size:clamp(27px,7vw,38px);line-height:1.1;color:#79519c}
.first-reveal p{margin:0;font-size:18px;font-weight:750}
.first-box{position:relative;display:block;isolation:isolate;border:0;background:none;width:min(82vw,380px);height:min(77.4vw,359px);padding:0;cursor:pointer;outline:none!important;overflow:visible}
.first-box>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.first-box-base{z-index:1;filter:drop-shadow(0 15px 9px #8d6c6340)}
.first-box>img.first-box-toy{z-index:3;inset:14% auto auto 24%;width:52%;height:52%;opacity:0;transform:translateY(40%) scale(.6);filter:drop-shadow(0 8px 5px #8d6c6340)}
.first-box-lid{z-index:4;transform-origin:55% 38%;filter:drop-shadow(0 8px 4px #8d6c6340);will-change:transform,opacity}
.first-box:focus-visible .first-box-lid{filter:drop-shadow(0 0 10px #aa81bf99) drop-shadow(0 8px 4px #8d6c6340)}
.first-box-glow{position:absolute;z-index:2;left:15%;right:15%;top:14%;height:55%;border-radius:50%;background:radial-gradient(ellipse,#fff7b8 0%,#ffdf9566 40%,transparent 75%);opacity:0;transform:scale(.45);pointer-events:none}
.first-box-sparkles{position:absolute;z-index:3;inset:5% 4% 17%;opacity:0;pointer-events:none;background:radial-gradient(circle at 14% 36%,#fff 0 1.5%,transparent 2%),radial-gradient(circle at 83% 28%,#fff2a0 0 2%,transparent 2.6%),radial-gradient(circle at 67% 8%,#fff 0 1.3%,transparent 2%),radial-gradient(circle at 27% 70%,#fff9bd 0 1.5%,transparent 2%),radial-gradient(circle at 91% 66%,#fff 0 1.4%,transparent 2%)}
.first-box.opening .first-hand{display:none}
.first-box.opening .first-box-lid{animation:first-lid-lift 1.15s cubic-bezier(.2,.75,.22,1) forwards}
.first-box.opening .first-box-toy{animation:first-toy-emerge 1.15s cubic-bezier(.2,1.3,.3,1) forwards}
.first-box.opening .first-box-glow{animation:first-box-light 1.15s ease-out forwards}
.first-box.opening .first-box-sparkles{animation:first-box-twinkle 1.15s ease-out forwards}
@keyframes first-lid-lift{0%{transform:translate(0,0) rotate(0);opacity:1}18%{transform:translate(0,-3%) rotate(-3deg);opacity:1}55%{transform:translate(12%,-36%) rotate(13deg);opacity:1}85%{transform:translate(47%,-77%) rotate(27deg);opacity:1}100%{transform:translate(64%,-105%) rotate(36deg);opacity:0}}
@keyframes first-toy-emerge{0%,35%{opacity:0;transform:translateY(40%) scale(.6)}55%{opacity:1;transform:translateY(16%) scale(.78)}80%{opacity:1;transform:translateY(-17%) scale(1.06)}100%{opacity:1;transform:translateY(-13%) scale(1)}}
@keyframes first-box-light{15%{opacity:0;transform:scale(.45)}60%{opacity:.9;transform:scale(1)}100%{opacity:.7;transform:scale(1.45)}}
@keyframes first-box-twinkle{25%{opacity:0;transform:scale(.7)}65%{opacity:1;transform:scale(1.1)}100%{opacity:0;transform:scale(1.55)}}
@media(prefers-reduced-motion:reduce){.first-box.opening .first-box-lid{animation:none;opacity:0}.first-box.opening .first-box-toy{animation:none;opacity:1;transform:translateY(-13%)}.first-box.opening .first-box-glow{animation:none;opacity:.6}.first-box.opening .first-box-sparkles{animation:none}}
/* Store mystery boxes use the same aligned bamboo pieces as the first surprise.
   The slow first half lets the toy peek out before the lid leaves the frame. */
.dumpling-box-stage:has(.store-dumpling-box){height:min(74vw,295px);overflow:visible}
.store-dumpling-box{position:relative;display:block;isolation:isolate;width:min(78vw,300px);aspect-ratio:392/370;flex:none}
.store-dumpling-box>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.store-dumpling-box .store-box-base{z-index:1;filter:drop-shadow(0 12px 8px #8d6c6340)}
.store-dumpling-box .store-box-glow{position:absolute;z-index:2;inset:12% 15% 29%;border-radius:50%;background:radial-gradient(ellipse,#fff7b8 0%,#ffdf9566 42%,transparent 76%);opacity:0;transform:scale(.5);pointer-events:none}
.store-dumpling-box>.store-box-toy{position:absolute;z-index:3;left:25%;top:16%;width:50%;height:50%;border:0;border-radius:0;background-color:transparent!important;background-repeat:no-repeat!important;box-shadow:none;opacity:0;transform:translateY(36%) scale(.7);filter:drop-shadow(0 7px 5px #805d4b4d)}
.store-dumpling-box .store-box-sparkles{position:absolute;z-index:3;inset:4% 6% 24%;opacity:0;pointer-events:none;background:radial-gradient(circle at 14% 40%,#fff 0 1.5%,transparent 2%),radial-gradient(circle at 83% 27%,#fff2a0 0 2%,transparent 2.6%),radial-gradient(circle at 62% 11%,#fff 0 1.3%,transparent 2%),radial-gradient(circle at 29% 72%,#fff9bd 0 1.5%,transparent 2%)}
.store-dumpling-box .store-box-lid{z-index:4;transform-origin:55% 38%;filter:drop-shadow(0 8px 4px #8d6c6340);will-change:transform,opacity}
.open-dumpling.store-box-opening .store-box-lid{animation:store-lid-peek 2.3s cubic-bezier(.25,.62,.24,1) forwards}
.open-dumpling.store-box-opening .store-box-toy{animation:none!important;opacity:1;transform:translateY(-12%)}
.open-dumpling.store-box-opening .store-box-glow{animation:store-box-glow 2.3s ease-out forwards}
.open-dumpling.store-box-opening .store-box-sparkles{animation:first-box-twinkle 2.3s .15s ease-out forwards}
@keyframes store-lid-peek{0%{transform:translate(0,0) rotate(0) scale(1);opacity:1}22%{transform:translate(2%,-2%) rotate(-2deg) scale(1);opacity:1}48%{transform:translate(14%,-5%) rotate(8deg) scale(.96);opacity:1}74%{transform:translate(34%,-11%) rotate(23deg) scale(.83);opacity:.95}100%{transform:translate(52%,-17%) rotate(32deg) scale(.7);opacity:0}}
@keyframes store-toy-peek{0%,23%{opacity:0;transform:translateY(36%) scale(.7)}45%{opacity:.45;transform:translateY(23%) scale(.82)}68%{opacity:1;transform:translateY(5%) scale(.93)}100%{opacity:1;transform:translateY(-12%) scale(1)}}
@keyframes store-box-glow{0%,28%{opacity:0;transform:scale(.5)}70%{opacity:.75;transform:scale(1)}100%{opacity:.5;transform:scale(1.2)}}
.store-box-opened .store-box-lid{display:none}
.store-box-opened .store-box-toy{opacity:1;transform:translateY(-12%)}
.store-box-opened .store-box-glow{opacity:.5;transform:scale(1.2)}
@media(prefers-reduced-motion:reduce){.open-dumpling.store-box-opening .store-box-lid,.open-dumpling.store-box-opening .store-box-toy,.open-dumpling.store-box-opening .store-box-glow,.open-dumpling.store-box-opening .store-box-sparkles{animation:none}}
.first-hand{position:absolute;width:64px;height:auto;pointer-events:none;right:-18px;bottom:-29px;z-index:2;transform:rotate(-28deg);filter:drop-shadow(0 4px 4px #6b4b6440);animation:first-hand-cue 1.45s ease-in-out infinite}
.first-box>img.first-hand{inset:auto auto 0 calc(50% - 26px);width:80px;height:auto;object-fit:contain;z-index:6;transform:none}
@media(min-width:600px){.first-box>img.first-hand{bottom:-35px}}
.first-meet-stage{position:relative;width:min(68vw,290px);height:min(68vw,290px);display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle,#fffdf7 35%,#f5e9fe 72%,transparent 74%)}
.first-meet-stage #squish{width:100%;height:100%;display:grid;place-items:center;touch-action:none;cursor:grab}
.first-meet-stage #squish .toy{width:100%;height:100%}
.first-meet-stage .first-hand{right:10px;bottom:0;animation:first-hold-demo 2.2s ease-in-out infinite}
@keyframes first-hold-demo{0%,100%{translate:0 -14px}18%,55%{translate:0 16px}78%{translate:0 -14px}}
@media(prefers-reduced-motion:reduce){.first-meet-stage .first-hand{animation:none}}
.first-meet .first-next{position:relative;width:100%;min-height:58px;font-size:18px}
/* Reserve the action row before the first squeeze so the centered card never jumps. */
.first-meet .first-next{display:flex!important;align-items:center;justify-content:center;opacity:1;visibility:visible;transition:opacity .28s ease-out}
.first-meet .first-next[hidden]{display:flex!important;visibility:hidden;opacity:0;pointer-events:none}
@media(prefers-reduced-motion:reduce){.first-meet .first-next{transition:none}}
.first-meet .first-next:disabled{opacity:.45}
.first-meet .first-next .first-hand,.first-journey [data-action=toyfinished] .first-hand,.first-journey [data-action=firstshelfdone] .first-hand{top:36%;right:12px;bottom:auto;width:46px;transform:rotate(-18deg);transform-origin:50% 8%}
.first-journey .toy-workshop [data-action=toyfinished],.first-journey .first-shelf [data-action=firstshelfdone]{position:relative}
html #modal.first-shelf-modal .first-shelf-stage{position:relative;isolation:isolate;min-height:225px;justify-content:flex-end;overflow:hidden;padding:14px 12px 12px;border:0;border-radius:25px;background:linear-gradient(#fffaf0a8,#fff8ebd9),repeating-linear-gradient(90deg,#f8ead9 0 52px,#ead6bf 53px 55px);box-shadow:inset 0 5px 18px #b9927040,inset 0 -2px #fff9ed}
html #modal.first-shelf-modal .first-shelf-row{position:relative;z-index:1;align-items:end;min-height:165px;padding:0 10px 30px;gap:7px;border:0;background:none;box-shadow:none}
html #modal.first-shelf-modal .first-shelf-row:before{content:'';position:absolute;z-index:-1;left:1%;right:1%;bottom:11px;height:28px;border:2px solid #e0ad7e;border-radius:8px;background:linear-gradient(#fff0d1 0 20%,#e5b584 22% 67%,#bb835c 70%);box-shadow:inset 0 2px #fff8e9,0 7px 0 #a97552,0 12px 12px #80543845}
html #modal.first-shelf-modal .first-shelf-row .shelf-spot{position:relative;z-index:1;display:grid;place-items:end center;flex:1 1 53px;min-width:0;height:94px;padding:0 0 15px;border:0;border-radius:0;background:none;box-shadow:none}
html #modal.first-shelf-modal .first-shelf-row .shelf-spot .toy{display:block;width:100%;height:auto;aspect-ratio:1;background-color:transparent!important;background-repeat:no-repeat!important;border:0;border-radius:0;box-shadow:none;filter:drop-shadow(0 6px 4px #75513c4d)}
html #modal.first-shelf-modal .first-shelf-row .first-shelf-new{flex:1.55 1 90px;height:135px;animation:first-shelf-arrive .65s cubic-bezier(.2,1.5,.4,1) both}
html #modal.first-shelf-modal .first-shelf-row .first-shelf-new .toy{width:min(100%,108px);filter:drop-shadow(0 8px 6px #76543e50)}
@keyframes first-shelf-arrive{from{opacity:0;transform:translateY(-65px) scale(1.25)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){html #modal.first-shelf-modal .first-shelf-row .first-shelf-new{animation:none}}
/* The first shelf is a fixed-width card, not a sideways scrolling tray. */
html #modal.first-shelf-modal[open]{overflow-x:hidden!important;overscroll-behavior-x:contain}
html #modal.first-shelf-modal .first-shelf{width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow-x:clip}
html #modal.first-shelf-modal .first-shelf-stage{max-width:100%;min-width:0}
html #modal.first-shelf-modal .first-shelf-main b{max-width:100%;overflow-wrap:anywhere}
html #modal.first-shelf-modal .first-shelf>.btn{max-width:100%;overflow:hidden}
html .av-wrap.first-player .av-go{position:relative}
html .av-wrap.first-player .av-go:after{content:'';position:absolute;right:12px;top:36%;width:42px;height:118px;background:url('./assets/onboarding/guide-finger.webp') top center/contain no-repeat;pointer-events:none;z-index:3;transform:rotate(-18deg);transform-origin:50% 8%;filter:drop-shadow(0 3px 3px #6b4b6440);animation:first-hand-cue 1.45s ease-in-out infinite}
@keyframes first-hand-cue{50%{translate:0 -10px}}
@media(prefers-reduced-motion:reduce){.first-hand,html .av-wrap.first-player .av-go:after{animation:none}}
.first-meet .sq-bar{display:none!important}
html .first-meet-stage.squish-stage{margin:0;min-height:0;flex:none;overflow:visible}
html .first-meet-stage.squish-stage #squish{position:relative;inset:auto;transform:none}
html .first-meet-stage .feel-controls,html .first-meet-stage .feel-caption{display:none!important}

/* Trade table: a warm physical surface lets the characters and toys supply the colour. */
html body.ui2[data-mode=hunt][data-place=trade] .trade-mat{
 background:radial-gradient(ellipse at 50% 12%,#fff8e9 0%,transparent 60%),repeating-linear-gradient(0deg,#0000 0 72px,#b98d6120 73px 75px,#0000 76px 145px),linear-gradient(115deg,#f9e8cc,#eac9a7 51%,#f5ddbb)!important;
 border:7px solid #fff4df!important;
 box-shadow:inset 0 0 0 2px #d7ad85,inset 0 12px 18px #9c6b4130,0 8px 0 #be9878,0 16px 26px #704c6330!important;
}
html body.ui2[data-mode=hunt][data-place=trade] .trade-mat:before{background:radial-gradient(ellipse at 50% 10%,#fff9eeaa,transparent 72%);}
html body.ui2[data-mode=hunt][data-place=trade] .trade-mat .offer-zone{
 box-sizing:border-box;margin:14px 10px 10px!important;padding:15px 10px 7px!important;
 border:3px solid #fff5e4!important;border-radius:28px;
 background:radial-gradient(ellipse at 50% 45%,#fff7e8 0%,#f2d8b8 76%,#dbb48e 100%)!important;
 box-shadow:inset 0 5px 13px #9a6a444d,inset 0 -3px 4px #fff9eb,0 3px 0 #c69370!important;
}
html body.ui2[data-mode=hunt][data-place=trade] .trade-mat .offer-zone+.offer-zone{border:3px solid #fff5e4!important;}
html body.ui2[data-mode=hunt][data-place=trade] .offer-label{
 border:2px solid #fffaf0;background:linear-gradient(#fffdf4,#f8e8d2);box-shadow:0 3px 0 #cfaa8c,0 6px 9px #82625422;
 color:#674c72!important;text-shadow:0 1px #fff;
}
html body.ui2[data-mode=hunt][data-place=trade] .offer-toys>button{
 border:2px solid #fff9e9!important;background:radial-gradient(ellipse at 50% 33%,#fffdf4cc,#f4dbc0a8 72%,#dfb996b8)!important;
 box-shadow:inset 0 3px 9px #a67c5638,inset 0 -2px #fff8eb,0 4px 0 #c69e7d,0 9px 13px #775b4630!important;
}
html body.ui2[data-mode=hunt][data-place=trade] .empty-offer{
 box-sizing:border-box;border:3px solid #f9e5cc!important;background:radial-gradient(ellipse at 50% 35%,#fff8e9,#ecd0b0)!important;
 box-shadow:inset 0 6px 14px #9c704a52,inset 0 -3px 4px #fffaf0,0 2px 0 #bf9878!important;
 color:#7e6482;
}
html body.ui2[data-mode=hunt][data-place=trade] .trade-exchange{
 border-color:#fff9e9;background:linear-gradient(#fff7d8,#f6d98e);box-shadow:inset 0 2px #fff9e6,0 5px 0 #ba925a,0 10px 14px #6e4d4538;
}
html body.ui2[data-mode=hunt][data-place=trade] .trade-tray{
 border-color:#fff2db!important;background:linear-gradient(#f7e4c9,#e3bf98)!important;
 box-shadow:inset 0 4px 8px #9c704a35,0 5px 0 #bd9372,0 9px 15px #73524128!important;
}
html body.ui2[data-mode=hunt][data-place=trade] .tray-toy{
 border-color:#fff9ed;background:linear-gradient(#fffaf0,#f3dfc6);box-shadow:inset 0 2px #fffefa,0 4px 0 #c49a77,0 7px 10px #7d5b4c29;
}
html body.ui2[data-mode=hunt][data-place=trade] .trade-actions{background:linear-gradient(#fff1dd,#e8c8a6)!important;border-top:3px solid #fff8e8!important;}
html body.ui2[data-mode=hunt][data-place=trade] .trade-actions .mat-symbol{
 border:2px solid #fff9ef!important;border-radius:17px!important;background:linear-gradient(#fff4f6,#efd7df)!important;
 box-shadow:inset 0 2px #fffaf7,0 4px 0 #bb9aa5,0 8px 11px #7557632d!important;
}
html body.ui2[data-mode=hunt][data-place=trade] .trade-actions .more{background:linear-gradient(#f1fbf2,#d6ebdc)!important;box-shadow:inset 0 2px #fff,0 4px 0 #9dbca9,0 8px 11px #55706027!important;}
html body.ui2[data-mode=hunt][data-place=trade] .trade-actions .accept{background:linear-gradient(#c6f1df,#91d6bc)!important;box-shadow:inset 0 2px #edfff4,0 4px 0 #5caa90,0 8px 11px #47736330!important;}
html body.ui2[data-mode=hunt][data-place=trade] .trade-actions .accept.suggested{background:linear-gradient(#a9efd5,#58c4a8)!important;}
html body.ui2[data-mode=hunt][data-place=trade] .trade-actions .mat-symbol:active{translate:0 3px;box-shadow:inset 0 3px 7px #7b5b5944,0 1px 0 #9b8075!important;}
@media(max-width:760px){
 html body.ui2[data-mode=hunt][data-place=trade] .trade-mat{border-width:4px!important;}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-mat .offer-zone{margin:8px 3px 7px!important;padding:8px 3px 4px!important;border-width:2px!important;border-radius:21px;}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-mat .offer-zone+.offer-zone{border-width:2px!important;}
 html body.ui2[data-mode=hunt][data-place=trade] .empty-offer{border-width:2px!important;}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-actions .mat-symbol{border-radius:13px!important;}
}

/* Shared material language across Town, Shop, Room, Play, Games, and sheets. */
html body.ui2{--clay-cream:#fff8e9;--clay-edge:#fffdf5;--clay-shadow:#c8a184;--clay-ink:#674e76}
html body.ui2 .topbar .ui2-me,html body.ui2 .topbar .ui2-coin,html body.ui2 .topbar .ui2-gift,html body.ui2 .topbar .ui2-shop,html body.ui2 .topbar .ui2-settings,html body.ui2 .topbar .ui2-calendar{
 border-color:var(--clay-edge)!important;box-shadow:inset 0 2px #ffffffa8,0 4px 0 #c5a5c3,0 8px 14px #694e6330!important;
}
/* The Town portrait's declared size includes its rim and padding. Otherwise it
   spills under the fixed Games panel, which clips the bottom of the header. */
html body.ui2[data-place=town] .topbar .ui2-me{box-sizing:border-box}
html body.ui2.gm-open .gm-screen{top:calc(66px + var(--sat))!important}
html body.ui2.gm-open[data-daylight=evening] .gm-screen{background:transparent!important;}
html body.ui2.gm-open[data-daylight=night] .gm-screen{background:transparent!important;}
@media(min-width:761px){
 html body.ui2.gm-open[data-daylight=evening] .gm-screen{background:transparent!important;}
 html body.ui2.gm-open[data-daylight=night] .gm-screen{background:transparent!important;}
}
html body.ui2 .bottom-nav{
 border-color:#fffaf2!important;background:linear-gradient(#fff6ee,#f0dfe9)!important;
 box-shadow:inset 0 2px #fff,0 5px 0 #ba9dbb,0 10px 19px #62466c2b!important;
}
html body.ui2 .bottom-nav button.active{
 border:2px solid #fff8e9!important;background:linear-gradient(#fff5ca,#f6d98c)!important;
 box-shadow:inset 0 2px #fff9e9,0 4px 0 #caa669!important;
}
html body.ui2 .bottom-nav button:active,html body.ui2 .btn:active,html body.ui2 .icon-button:active{translate:0 2px}
html body.ui2 .btn:not(.room-tools .btn),html body.ui2 .icon-button,html body.ui2 .pill,html body.ui2 .text-button{
 border-color:#fffaf1!important;box-shadow:inset 0 2px #ffffffba,0 4px 0 #c5a9a7,0 8px 13px #74566024!important;
 text-shadow:0 1px #fff9;
}
html body.ui2 .btn.green:not(.room-tools .btn){box-shadow:inset 0 2px #e8fff2,0 4px 0 #69a994,0 8px 13px #456d612b!important}
html body.ui2 .btn.gold:not(.room-tools .btn){box-shadow:inset 0 2px #fff9db,0 4px 0 #c69f5d,0 8px 13px #7960392b!important}
html body.ui2[data-place=town] .town-goal{
 border-color:#fff8ed!important;background:linear-gradient(#fff9e9,#efd8e7)!important;
 box-shadow:inset 0 2px #fff,0 4px 0 #c8a9bd,0 8px 14px #77566c25!important;
}
html body.ui2[data-place=town] .town-collection{
 border-color:#fff5e4!important;background:repeating-linear-gradient(2deg,#0000 0 18px,#b98d6120 19px 20px),linear-gradient(#fae3bb,#e9bf8e)!important;
 box-shadow:inset 0 3px #fff7e6,0 6px 0 #b98c64,0 12px 18px #785b4028!important;
}
html body.ui2[data-place=town] .town-owned{
 border-color:#fff9ec!important;background:radial-gradient(ellipse at 50% 20%,#fffdf1,#f2d9bb)!important;
 box-shadow:inset 0 4px 8px #af81553a,inset 0 -2px #fff8e6,0 3px 0 #c49a72!important;
}
html body.ui2[data-place=shop] .shop-header,html body.ui2[data-place=shop] .shop-footer{
 background:linear-gradient(#fff8edee,#f2dfcbec)!important;border-color:#fff8e8!important;
 box-shadow:inset 0 2px #fff9,0 4px 0 #cda98c!important;
}
html body.ui2[data-place=shop] .shop-scene .toy-card{
 border-color:#fff7e9!important;background:radial-gradient(ellipse at 50% 22%,#fffdf0d9,#f4dfc5d6)!important;
 box-shadow:inset 0 3px 8px #9d744b35,0 4px 0 #cda381,0 8px 12px #75574429!important;
}
html body.ui2[data-place=shop] .shop-scene .toy-card .toy{filter:drop-shadow(0 8px 5px #77543a36)}
html body.ui2[data-place=home] .room-collection,html body.ui2[data-place=play] .play-collection{
 border:4px solid #fff8e9!important;background:linear-gradient(#fff8e9ed,#edd0adf2)!important;
 box-shadow:inset 0 3px #fffaf2,0 6px 0 #c59875,0 13px 22px #7351402d!important;
}
html body.ui2[data-place=home] .room-collection .tray-toy,html body.ui2[data-place=play] .play-collection .tray-toy{
 border:2px solid #fff9ed!important;background:radial-gradient(ellipse at 50% 20%,#fffdf4,#f0d7ba)!important;
 box-shadow:inset 0 3px 8px #a87c5433,0 3px 0 #c39975!important;
}
html body.ui2[data-place=play] .play-board{
 border:6px solid #fff6e6!important;border-radius:32px!important;
 box-shadow:inset 0 0 0 3px #d5ae86,inset 0 13px 22px #9167412e,0 7px 0 #c59b73,0 15px 25px #71554329!important;
}
html body.ui2[data-place=play] .play-toolbar,html body.ui2[data-place=play] .photo-tools,html body.ui2[data-place=play] .play-tabs{
 border-radius:20px;background:linear-gradient(#fff9efeb,#f4e0cced);box-shadow:inset 0 2px #fff9,0 4px 0 #d0ae92;
}
html body.ui2[data-place=play] .play-tabs button{border-radius:17px!important}
html body.ui2 .gm-screen .gm-grid{border-color:#fff8e9!important;background:linear-gradient(#fff9ec,#f2dfc9)!important;box-shadow:inset 0 3px #fff,0 7px 0 #c8a17e,0 14px 24px #7455462e!important}
html #modal[open]:not(.squish-fullscreen),html #v2-dialog[open]{
 border:5px solid #fffaf0!important;background:linear-gradient(#fff9ec,#f7e7d3)!important;
 box-shadow:inset 0 3px #fffdf6,0 8px 0 #c8a383,0 22px 45px #4d374040!important;
}
html #modal[open] .toy-workshop-colors button,html #modal[open] .book-toy,html #v2-dialog[open] .btn,html #v2-dialog[open] .pill{box-shadow:inset 0 2px #fff9,0 4px 0 #c8a587,0 8px 12px #74574426}
@media(max-width:760px){
 html body.ui2[data-place=shop] .shop-scene .toy-card{box-shadow:inset 0 2px 6px #9d744b35,0 3px 0 #cda381!important}
 html body.ui2[data-place=play] .play-board{border-width:4px!important;border-radius:23px!important}
 html body.ui2[data-place=home] .room-collection,html body.ui2[data-place=play] .play-collection{border-width:3px!important}
}

/* On the portrait shop shelves, let the squishies fill their display space.
   Compact captions and prices stay readable without covering the toy art. */
@media(max-width:760px){
 html body.ui2[data-place=shop] .shop-scene .toy-card{
  overflow:visible!important;background:transparent!important;box-shadow:none!important;
 }
 html body.ui2[data-place=shop] .shop-scene .toy-card .toy,
 html body.ui2[data-place=shop] .shop-scene .toy-card .world-art,
 html body.ui2[data-place=shop] .shop-scene .toy-card .dumpling-box-art{
  width:auto!important;height:82%!important;max-width:110%!important;max-height:none!important;
  margin:0!important;object-fit:contain;filter:drop-shadow(0 5px 4px #73503932);
 }
 html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name{
  display:block;box-sizing:border-box;max-width:96%!important;min-height:0!important;
  margin:0!important;padding:3px 7px!important;border:1px solid #fffaf0;
  border-radius:7px;background:#fff8eced;color:#63466a;
  box-shadow:0 2px 0 #c8a588b8;font-size:12px!important;font-weight:750;
  line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis;
 }
 html body.ui2[data-place=shop] .shop-scene .toy-card .price-tag{
  top:2px!important;right:1px!important;bottom:auto!important;z-index:2;
  gap:1px;padding:2px 4px;border:1px solid #fff8dd;border-radius:12px;
  background:#fff4ceeb;box-shadow:0 2px 0 #b89a66a8;
  color:#6e5342;font-size:11px!important;line-height:1;
 }
 html body.ui2[data-place=shop] .shop-scene .toy-card .price-tag .pz-coin,
 html body.ui2[data-place=shop] .shop-scene .toy-card .price-tag .game-coin{
  width:14px!important;height:14px!important;
 }
}

/* Phone Room: the bedroom fills the glass, while the toy rail remains above
   navigation with names visible. The rail owns horizontal touch gestures. */
@media(max-width:760px){
 html body.ui2[data-place=home] #main{
  display:grid!important;grid-template-rows:auto auto minmax(0,1fr) 160px!important;
  position:relative;left:calc(50% - 50vw)!important;
  box-sizing:border-box;width:100vw!important;max-width:none!important;margin:0!important;
  gap:6px!important;flex:none!important;
  height:calc(100dvh - var(--sat) - var(--sab) - 58px - var(--nav-clearance,90px) - 6px)!important;
  min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;
  padding:0 0 8px!important;
 }
 html body.ui2[data-place=home] .page-heading{grid-row:1;width:calc(100% - 20px);margin:0 10px!important}
 html body.ui2[data-place=home] .room-tools{grid-row:2;width:calc(100% - 20px);margin:0 10px!important}
 html body.ui2[data-place=home] .bedroom-scene{
  grid-row:3;box-sizing:border-box;width:100%!important;max-width:none!important;
  height:100%!important;min-height:190px!important;max-height:none!important;
  margin:0!important;
  aspect-ratio:auto!important;border-left:0;border-right:0;border-radius:0!important;
  background-size:cover!important;background-position:center!important;
 }
 html body.ui2[data-place=home] .room-collection{
  grid-row:4;box-sizing:border-box;width:calc(100% - 20px)!important;height:160px!important;
  min-height:0!important;max-height:none!important;margin:0 10px!important;
  padding:29px 9px 9px!important;overflow-x:auto!important;overflow-y:hidden!important;
  touch-action:pan-x;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
 }
 html body.ui2[data-place=home] .room-collection:before{top:5px;left:14px;font-size:17px}
 html body.ui2[data-place=home] .room-collection .tray-toy{
  flex:0 0 104px!important;width:104px!important;height:108px!important;
  min-width:104px!important;margin:0!important;padding:4px 4px 5px!important;
  display:flex;flex-direction:column;align-items:center;justify-content:space-between;
  touch-action:pan-x;
 }
 html body.ui2[data-place=home] .room-collection .tray-toy .toy{width:70px!important;height:70px!important;flex:none}
 html body.ui2[data-place=home] .room-collection .tray-toy span:last-child{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  width:100%;max-height:30px;overflow:hidden;text-align:center;
  white-space:normal;font-size:13px!important;line-height:1.15!important;
 }
 html body.ui2[data-place=home] .milestones{display:none!important}
}

/* One dock on every page. Town used a flow bar while the other pages used a
   fixed one, so navigation jumped whenever the page changed. */
html body.ui2[data-place=town] .app{padding-bottom:calc(100px + var(--sab))!important}
html body.ui2 .bottom-nav,html body.ui2[data-place=town] .bottom-nav{
 position:fixed!important;z-index:50!important;left:50%!important;
 bottom:calc(7px + var(--sab))!important;transform:translateX(-50%)!important;
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 box-sizing:border-box;width:min(680px,calc(100vw - 20px))!important;
 max-width:calc(100vw - 20px)!important;height:82px!important;min-height:82px!important;
 flex:none!important;margin:0!important;padding:4px!important;
 align-items:center;gap:3px!important;border-radius:24px!important;
}
@media(min-width:761px){
 html body.ui2[data-place=town] .app{padding-bottom:calc(116px + var(--sab))!important}
 html body.ui2 .bottom-nav,html body.ui2[data-place=town] .bottom-nav{bottom:calc(20px + var(--sab))!important}
}
html body.ui2 .bottom-nav button,html body.ui2[data-place=town] .bottom-nav button{
 box-sizing:border-box;display:grid!important;grid-template-rows:42px 20px;
 align-content:center;justify-items:center;gap:1px!important;
 width:100%!important;min-width:0!important;height:70px!important;min-height:70px!important;
 padding:3px 1px!important;margin:0!important;border-radius:18px!important;
 font-size:15px!important;line-height:20px!important;overflow:hidden;
}
html body.ui2 .bottom-nav .nav-toy,
html body.ui2[data-place=town] .bottom-nav .nav-toy,
html body.ui2 .bottom-nav button.active .nav-toy{
 box-sizing:border-box;display:grid;place-items:center;
 width:42px!important;height:42px!important;margin:0!important;
 transform:none!important;animation:none!important;
}
html body.ui2 .bottom-nav .nav-toy .world-art,
html body.ui2 .bottom-nav .nav-toy .expansion-art,
html body.ui2 .bottom-nav .nav-toy img{
 display:block;width:42px!important;height:42px!important;object-fit:contain;
}
html body.ui2 .bottom-nav button>span:last-child{
 display:block;max-width:100%;height:20px;line-height:20px!important;
 text-align:center;white-space:nowrap;overflow:hidden;
}

/* Floor friends sit in front of the bedroom furniture and remain tappable. */
html body.ui2[data-place=home] .room-floor-toy{
 position:absolute;z-index:5;bottom:3%;transform:translateX(-50%);
 display:grid;place-items:center;width:clamp(54px,8vw,84px);height:clamp(54px,8vw,84px);
 padding:0;border:0;background:none;filter:drop-shadow(0 6px 4px #65452b55);
}
html body.ui2[data-place=home] .room-floor-toy .toy{
 width:100%!important;height:100%!important;max-width:none!important;
}
html body.ui2[data-place=home] .room-floor-target{
 position:absolute;z-index:8;right:4%;bottom:18%;min-width:132px;min-height:48px;
 padding:8px 14px;border:3px solid #fffdf5;border-radius:18px;
 background:#a7e6d4;color:#573d70;font-size:17px;font-weight:900;
 box-shadow:0 5px 0 #68a99d,0 9px 15px #573d7030;
}
@media(max-width:760px){
 html body.ui2[data-place=home] .room-floor-toy{width:62px;height:62px;bottom:2%}
 html body.ui2[data-place=home] .room-floor-target{right:3%;bottom:14%;min-width:116px;font-size:15px}
}

/* Phone Room: keep the bedroom as the hero and open editing only on request. */
@media(min-width:761px){
 html body.ui2[data-place=home] .room-edit-button,
 html body.ui2[data-place=home] .room-book{display:none!important}
}
@media(max-width:760px){
 html body.ui2[data-place=home] .room-progress-pill{display:none!important}
 html body.ui2[data-place=home] #main{
  grid-template-rows:56px minmax(0,1fr) 190px!important;gap:5px!important;
 }
 html body.ui2[data-place=home] .page-heading{
  grid-row:1;box-sizing:border-box;width:calc(100% - 20px);height:56px;
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:0 2px!important;
 }
 html body.ui2[data-place=home] .page-heading h1{
  font-size:clamp(22px,6.3vw,30px)!important;line-height:1.1!important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 }
 html body.ui2[data-place=home] .page-heading>div{min-width:0}
 html body.ui2[data-place=home] .room-edit-button{
  flex:none;min-height:43px;padding:6px 11px!important;border-radius:24px!important;
  white-space:nowrap;font-size:14px!important;
 }
 html body.ui2[data-place=home] .room-tools{
  display:none!important;position:absolute;z-index:20;top:57px;left:10px;right:10px;
  grid-row:auto!important;box-sizing:border-box;width:auto!important;
  margin:0!important;padding:9px!important;border:3px solid #fff8ed;
  border-radius:22px;background:#fff4e9f5;box-shadow:0 9px 20px #73566a40;
 }
 html body.ui2.room-edit-open[data-place=home] .room-tools{display:grid!important}
 html body.ui2[data-place=home] .bedroom-scene{
  grid-row:2;height:100%!important;min-height:0!important;
 }
 html body.ui2[data-place=home] .room-display .display-label{display:none!important}
 html body.ui2[data-place=home] .room-display.awaiting-toy .display-label{display:block!important}
 html body.ui2[data-place=home] .room-collection{
  grid-row:3;height:190px!important;padding:37px 9px 10px!important;
  gap:5px!important;border-radius:25px!important;
 }
 html body.ui2[data-place=home] .room-collection:before{
  content:'Your squishies';top:9px;left:16px;font-size:18px;
 }
 html body.ui2[data-place=home] .room-collection:after{
  content:'♡ ' attr(data-count);position:absolute;top:7px;right:55px;
  padding:3px 7px;border:2px solid #fff9ed;border-radius:18px;
  background:#fff8e7;color:#775a48;font-weight:800;font-size:13px;
 }
 html body.ui2[data-place=home] .room-book{
  position:absolute;top:4px;right:9px;z-index:2;width:39px;height:36px;
  display:grid;place-items:center;margin:0!important;padding:0;border:0;
  border-radius:13px;background:#ffe8f1;font-size:22px;
 }
 html body.ui2[data-place=home] .room-collection .tray-toy{
  flex:0 0 calc((100% - 15px)/4)!important;width:calc((100% - 15px)/4)!important;
  min-width:0!important;height:136px!important;padding:4px 2px 7px!important;
 }
 html body.ui2[data-place=home] .room-collection .tray-toy .toy{
  width:min(80px,100%)!important;height:84px!important;
 }
 html body.ui2[data-place=home] .room-collection .tray-toy span:last-child{
  display:block;max-height:36px;font-size:clamp(10px,2.7vw,13px)!important;
  line-height:1.13!important;-webkit-line-clamp:unset;
 }
}

/* Four everyday popups share the soft, toy-like language of the supplied reference. */
/* Room storage should read as furniture on tablet and desktop, not tiny icons. */
@media (min-width:768px){
 html body.ui2[data-place=home] .room-display{width:clamp(235px,21vw,340px);height:clamp(190px,17vw,275px)}
 html body.ui2[data-place=home] .room-display .display-toys .toy{width:clamp(55px,4vw,72px);height:clamp(55px,4vw,72px)}
}

/* Four-screen toy-world refresh. Keep the art and real controls; quiet their frames. */
html body.ui2{
 --world-cream:#fff9ed;--world-mint:#eaf7f1;--world-ink:#56346e;
 --world-yellow:#ffe9a1;--world-line:#fffdf7;--world-shadow:0 5px 14px #513b6320;
 color:var(--world-ink);
}
html body.ui2 .topbar{background:var(--world-mint)!important}
html body.ui2 .topbar .ui2-me,html body.ui2 .topbar .ui2-coin,html body.ui2 .topbar .ui2-gift,html body.ui2 .topbar .ui2-settings,html body.ui2 .topbar .ui2-calendar{
 border:1px solid var(--world-line)!important;background:var(--world-cream)!important;
 box-shadow:var(--world-shadow)!important;
}
html body.ui2 .ui2-bar{gap:clamp(3px,1.5vw,10px)!important}
html body.ui2 .ui2-bar [data-ui2]{min-width:44px;min-height:44px}
html body.ui2 .ui2-bar [data-ui2=daily] img{display:block;width:30px;height:30px;object-fit:contain;margin:auto}
html body.ui2 .ui2-setting-art{display:block;width:29px;height:29px;margin:auto;background:url('./assets/lucy-world/icons.webp') 100% 100%/300% 300% no-repeat}
html body.ui2 .topbar .ui2-face .ui2-mint-avatar{width:100%!important;height:100%!important;max-width:100%!important;left:0!important;top:0!important;transform:none!important;object-fit:contain;padding:2px;box-sizing:border-box}
html body.ui2 .bottom-nav,html body.ui2[data-place=town] .bottom-nav{
 height:72px!important;min-height:72px!important;border:1px solid #fff!important;
 background:#fff9f4ed!important;border-radius:23px!important;box-shadow:var(--world-shadow)!important;
}
html body.ui2 .bottom-nav button,html body.ui2[data-place=town] .bottom-nav button{
 height:62px!important;min-height:62px!important;grid-template-rows:36px 18px!important;
 border:0!important;border-radius:17px!important;font-size:13px!important;
}
html body.ui2 .bottom-nav button.active{background:var(--world-yellow)!important;border:1px solid #fff9d9!important;box-shadow:0 2px 4px #aa85462b!important}
html body.ui2 .bottom-nav .nav-toy,html body.ui2 .bottom-nav .nav-toy .world-art,html body.ui2 .bottom-nav .nav-toy img{width:36px!important;height:36px!important}
html body.ui2 .btn:not(.room-tools .btn),html body.ui2 .icon-button,html body.ui2 .pill,html body.ui2 .text-button{
 border:1px solid #fffdf6!important;box-shadow:var(--world-shadow)!important;text-shadow:none!important;
}
html body.ui2 .btn.green:not(.room-tools .btn){background:#8ee0cc!important;box-shadow:0 4px 10px #398b7950!important;color:#204c49!important}
html body.ui2[data-place=town] #main{grid-template-rows:48px minmax(0,1fr) clamp(116px,17dvh,145px)!important}
html body.ui2[data-place=town] .town-goal{min-height:42px!important;margin:2px 12px 3px!important;border:1px solid #fff!important;background:#fff9edea!important;box-shadow:var(--world-shadow)!important}
html body.ui2[data-place=town] .town-goal progress{height:9px!important;border:1px solid #fff!important}
html body.ui2[data-place=town] .town-goal .goal-text{font-size:clamp(12px,3vw,15px)!important}
html body.ui2[data-place=town] .town-collection{margin:0 8px 2px!important;padding:4px 8px 8px!important;border:1px solid #fff!important;border-radius:23px!important;background:#fff9eae8!important;box-shadow:var(--world-shadow)!important}
html body.ui2[data-place=town] .town-collection-title{min-height:25px!important}
html body.ui2[data-place=town] .town-owned{min-height:0!important;height:clamp(68px,10dvh,96px)!important;aspect-ratio:auto!important;border:1px solid #fff!important;border-radius:16px!important;background:#fff7e7!important;box-shadow:0 2px 5px #8c6a5340!important}
html body.ui2[data-place=town] .town-owned .toy{width:100%!important;height:100%!important}
html body.ui2[data-mode=hunt][data-place=trade] .trade-mat{border:1px solid #fff!important;background:linear-gradient(90deg,#ffe4ed 0 50%,#e5f8ef 50%)!important;box-shadow:var(--world-shadow)!important}
html body.ui2[data-mode=hunt][data-place=trade] .trade-mat:before{display:none!important}
html body.ui2[data-mode=hunt][data-place=trade] .trade-mat .offer-zone{margin:8px 4px!important;padding:8px 5px!important;border:1px solid #fff!important;border-radius:20px!important;background:#ffffff40!important;box-shadow:none!important}
html body.ui2[data-mode=hunt][data-place=trade] .trade-mat .offer-zone+.offer-zone{border:1px solid #fff!important}
html body.ui2[data-mode=hunt][data-place=trade] .offer-label{border:1px solid #fff!important;box-shadow:none!important;background:#fff9ed!important}
html body.ui2[data-mode=hunt][data-place=trade] .offer-toys>button,html body.ui2[data-mode=hunt][data-place=trade] .empty-offer{border:0!important;background:transparent!important;box-shadow:none!important}
html body.ui2[data-mode=hunt][data-place=trade] .trade-tray{border:0!important;background:#fff9ecb8!important;box-shadow:none!important}
html body.ui2[data-mode=hunt][data-place=trade] .tray-toy{border:1px solid #fff!important;background:#fffaf0!important;box-shadow:0 2px 4px #6e547825!important}
html body.ui2[data-mode=hunt][data-place=trade] .tray-toy.selected{background:var(--world-yellow)!important;border-color:#e3bd57!important}
html body.ui2[data-mode=hunt][data-place=trade] .trade-actions{background:#fff9edb3!important;border-top:1px solid #fff!important}
html body.ui2[data-mode=hunt][data-place=trade] .trade-actions .mat-symbol{border:1px solid #fff!important;box-shadow:0 2px 5px #6c547426!important;background:#f8f0fa!important}
html body.ui2[data-mode=hunt][data-place=trade] .trade-actions .accept.suggested{background:#7cdbc4!important;color:#214e49!important;box-shadow:0 3px 8px #439b8454!important}
html body.ui2[data-place=home] .page-heading{background:var(--world-mint)!important}
html body.ui2[data-place=home] .room-collection{border:1px solid #fff!important;background:#fff9edea!important;box-shadow:var(--world-shadow)!important}
html body.ui2[data-place=home] .room-collection .tray-toy{border:1px solid #fff!important;background:#fff8e9!important;box-shadow:0 2px 4px #765c6624!important}
@media(max-width:760px){
 html body.ui2[data-place=home] #main{grid-template-rows:50px minmax(0,1fr) 154px!important}
 html body.ui2[data-place=home] .page-heading{height:50px!important}
 html body.ui2[data-place=home] .room-collection{height:154px!important;padding:31px 8px 7px!important}
 html body.ui2[data-place=home] .room-collection .tray-toy{height:112px!important}
 html body.ui2[data-place=home] .room-collection .tray-toy .toy{height:69px!important;width:min(69px,100%)!important}
 html body.ui2[data-place=home] .room-collection .tray-toy span:last-child{font-size:clamp(11px,2.9vw,14px)!important}
 html body.ui2[data-place=home] .room-display{width:clamp(145px,42vw,200px)!important;height:clamp(125px,35vw,170px)!important}
 html body.ui2[data-place=home] .room-display .display-toys .toy{width:clamp(32px,9vw,46px)!important;height:clamp(32px,9vw,46px)!important}
 html body.ui2[data-place=home] .room-instruction{display:block!important;position:absolute;right:12px;bottom:164px;z-index:8;margin:0!important;padding:6px 10px;border:1px solid #fff;border-radius:99px;background:#fff9eede;box-shadow:0 2px 7px #58446524;font-size:0!important;pointer-events:none}
 html body.ui2[data-place=home] .room-instruction:after{content:'Tap a squishy to move it';font-size:12px;font-weight:750;color:var(--world-ink)}
 html body.ui2.room-edit-open[data-place=home] .room-instruction{display:none!important}
}
html #modal.grownups-modal[open],html #v2-dialog[data-page=daily][open],html #v2-dialog:has(#v2-parent-gate)[open]{width:min(460px,calc(100vw - 28px))!important;padding:24px!important;border:4px solid #fffdf5!important;border-radius:38px!important;background:radial-gradient(circle at 50% 36%,#fffdf7,#fff0dc 85%)!important;box-shadow:0 10px #d1a88c,0 24px 48px #4c356044!important;color:#462177!important;box-sizing:border-box}
html #modal.grownups-modal::backdrop,html #v2-dialog[data-page=daily]::backdrop,html #v2-dialog:has(#v2-parent-gate)::backdrop{background:#4d3b7199;backdrop-filter:blur(9px)}
html #modal.grownups-modal .modal-top{align-items:center;margin:0 0 10px}
html #modal.grownups-modal #modal-title,html #v2-dialog[data-page=daily] #v2-title{font-size:clamp(27px,7vw,36px)!important;line-height:1.1;color:#6020a4!important;letter-spacing:-.04em;margin:0;font-weight:900}
html #modal.grownups-modal .modal-top .icon-button,html #v2-dialog:is([data-page=daily],:has(#v2-parent-gate)) header>button{width:46px;height:46px;min-width:46px;padding:0;border:2px solid #fff!important;border-radius:50%!important;background:linear-gradient(#fff,#f6eafa)!important;box-shadow:0 4px #d5b8c4,0 7px 12px #775c6d33!important;color:#462177!important}
html #modal.grownups-modal .btn.green.wide,html #v2-dialog:is([data-page=daily],:has(#v2-parent-gate)) :is([data-v2=claim],#v2-parent-gate button[type=submit]){min-height:60px!important;border:3px solid #fff!important;border-radius:24px!important;background:linear-gradient(#a9f1db,#64d4bc)!important;box-shadow:0 5px #419c8c!important;color:#432073!important;font-size:19px!important;font-weight:900!important}
html #modal.grownups-modal .settings-actions{display:grid;grid-template-columns:1fr;gap:7px;margin:16px 0 20px}
html #modal.grownups-modal .settings-actions .btn{width:100%;min-height:58px;display:flex;align-items:center;gap:16px;text-align:left;padding:8px 16px!important;background:linear-gradient(#fffdf8,#fff2de)!important;border:3px solid #fff!important;border-radius:20px!important;box-shadow:0 3px #ead6bd!important;color:#432073;font-size:17px!important}
html #modal.grownups-modal .settings-actions .btn>span:first-child{display:grid;place-items:center;width:30px;font-size:28px;line-height:1}
html #modal.grownups-modal .settings-actions .btn svg{width:29px;height:29px}
html #modal.grownups-modal .settings-actions .btn b{margin-left:auto;font-size:28px;line-height:1;font-weight:400}
html #modal.grownups-modal .small-print{font-size:15px!important;line-height:1.35;color:#684a89;margin:2px 5px 23px}
html #modal.grownups-modal .settings-switch{margin-left:auto;width:51px;height:29px;background:#d5c6d9;border-radius:99px;padding:3px;box-sizing:border-box}
html #modal.grownups-modal .settings-switch:after{content:"";display:block;width:23px;height:23px;background:white;border-radius:50%;box-shadow:0 1px 3px #59425d44}
html #modal.grownups-modal .settings-switch.on{background:#65d4be}
html #modal.grownups-modal .settings-switch.on:after{margin-left:auto}
html #v2-dialog[data-page=daily] header,html #v2-dialog:has(#v2-parent-gate) header{position:static!important;background:transparent!important;align-items:center;margin:0 0 6px}
html #v2-dialog[data-page=daily] :is(.v2-content,.v2-checkout),html #v2-dialog:has(#v2-parent-gate) :is(.v2-content,.v2-checkout){text-align:center}
html #v2-dialog:is([data-page=daily],:has(#v2-parent-gate)) footer{display:none}
html #v2-dialog[data-page=daily] .daily-intro{font-size:16px;margin:0 0 15px}
html #v2-dialog[data-page=daily] .v2-dumpling-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:0 auto 3px}
html #v2-dialog[data-page=daily] .v2-dumpling-week span{padding:0;border:0;background:transparent}
html #v2-dialog[data-page=daily] .v2-dumpling-week i{display:grid;place-items:center;width:min(11vw,42px);height:min(11vw,42px);border:3px solid #fff;border-radius:50%;background:#f1e1f8;color:#906bc2;font-size:20px;font-style:normal;box-shadow:0 2px #d6c4df}
html #v2-dialog[data-page=daily] .v2-dumpling-week .on i{background:#62d8bf;color:#fff}
html #v2-dialog[data-page=daily] .v2-dumpling-week small{font-size:12px;color:#5a2a91}
html #v2-dialog[data-page=daily] .v2l-cal-note{font-size:13px!important;margin:2px 0 6px}
html #v2-dialog[data-page=daily] .daily-gift-art{display:block;width:min(58vw,235px);height:215px;object-fit:contain;margin:4px auto 0;filter:drop-shadow(0 12px 12px #bd84ac55)}
html #v2-dialog[data-page=daily] .v2-daily-card h3{font-size:18px;margin:0;color:#4f267d}
html #v2-dialog[data-page=daily] .v2-daily-card p{font-size:15px;margin:1px 0 11px}
html #v2-dialog[data-page=daily] [data-v2=claim]{width:100%;margin-top:8px}
html #v2-dialog:has(#v2-parent-gate) #v2-title:has(.grown-up-check-logo){margin:0!important}
html #v2-dialog:has(#v2-parent-gate) .grown-up-check-logo{width:min(61vw,285px);height:auto;max-height:105px;margin:auto;object-position:center}
html #v2-dialog #v2-parent-gate{display:grid;gap:17px}
html #v2-dialog #v2-parent-gate .gate-reason{font-size:16px;margin:0 0 4px}
html #v2-dialog #v2-parent-gate label{display:grid;gap:6px;text-align:center;font-size:15px;color:#552983}
html #v2-dialog #v2-parent-gate label>b{font-size:24px;line-height:1.2;color:#51217e}
html #v2-dialog #v2-parent-gate input{width:100%;height:58px;box-sizing:border-box;background:#fffdf9;border:2px solid #94dcd8;border-radius:18px;text-align:center;font:inherit;font-size:20px;color:#452271}
html #v2-dialog #v2-parent-gate button[data-v2=close]{border:0;background:transparent;box-shadow:none;min-height:44px;font-size:17px;color:#552983}
@media(max-width:390px){html #modal.grownups-modal[open],html #v2-dialog[data-page=daily][open],html #v2-dialog:has(#v2-parent-gate)[open]{padding:18px!important}}

/* Give the toy a focused, tactile home while Town stays visible behind it. */
html dialog#modal.squish-fullscreen[open]{inset:0!important;width:min(760px,calc(100vw - 30px))!important;height:min(740px,calc(100dvh - var(--sat) - var(--sab) - 48px))!important;max-height:calc(100dvh - var(--sat) - var(--sab) - 48px)!important;margin:auto!important;border:5px solid #fffaf1!important;border-radius:34px!important;background:linear-gradient(155deg,#fffaf0,#fff0de 70%,#f5dfcf)!important;box-shadow:inset 0 3px #fffdf7,0 9px 0 #c8a387,0 24px 54px #4d374058!important;overflow:hidden}
html dialog#modal.squish-fullscreen::backdrop{background:#49365a88;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
html.ui-toy .squish-fullscreen .squish-playground{width:100%;max-width:none;grid-template-columns:minmax(0,1fr);grid-template-rows:48px minmax(0,1fr) auto auto 68px;gap:8px;padding:15px 18px 22px!important;overflow:hidden}
html.ui-toy .squish-fullscreen .squish-playground>*{grid-column:1}
html.ui-toy .squish-fullscreen .squish-toolbar{grid-row:1}
html.ui-toy .squish-fullscreen .squish-toolbar .icon-button,html.ui-toy .squish-fullscreen .squish-toolbar .sq-bar button{background:#fffaf0;border:2px solid #fff!important;box-shadow:0 3px 0 #c9b0bd,0 5px 9px #73544824!important}
html.ui-toy .squish-fullscreen .squish-stage{grid-row:2;margin:0;min-height:0;border:3px solid #fffaf0;border-radius:28px;background:radial-gradient(ellipse at 50% 75%,#f4d5ba 0%,#fff0d8 48%,#fffaf0 100%);box-shadow:inset 0 5px 19px #b0856340,inset 0 -2px #fffaf1,0 4px 0 #dfbea3;overflow:hidden}
html.ui-toy .squish-fullscreen #squish{width:min(80vw,53dvh,430px)!important;height:min(80vw,53dvh,430px)!important}
html.ui-toy .squish-fullscreen .tf-name{grid-row:3;margin:5px 0 0;font-size:clamp(23px,6vw,30px);line-height:1.1;color:#714c87}
html.ui-toy .squish-fullscreen .squish-feel-line{grid-row:4;display:grid;gap:2px;justify-items:center;margin:0;text-align:center;color:#725b81;line-height:1.25}
html.ui-toy .squish-fullscreen .squish-feel-line strong{font-size:16px;color:#6d4c81}
html.ui-toy .squish-fullscreen .squish-feel-line span{font-size:13px;max-width:32em}
html.ui-toy .squish-fullscreen .v2l-stats{display:none!important}
html.ui-toy .squish-fullscreen .squish-dock{grid-row:5;gap:14px;padding:3px 0 0}
html.ui-toy .squish-fullscreen .squish-dock .btn{width:62px;height:62px;flex-basis:62px;background:#fff9ef;border:3px solid #fffaf2;box-shadow:0 5px 0 #c8a4b6,0 8px 13px #73544826;color:#6b4c7d}
html.ui-toy .squish-fullscreen .squish-picker .squish-preview:not(.selected){top:46%;width:58px;height:58px;opacity:.6}
html.ui-toy .squish-fullscreen .squish-picker .squish-preview:not(.selected) .toy{width:58px;height:58px}
html.ui-toy .squish-fullscreen .squish-picker .tf-left{left:10px}
html.ui-toy .squish-fullscreen .squish-picker .tf-right{right:10px}
@media(max-width:390px){html.ui-toy .squish-fullscreen .squish-playground{padding:13px 13px 18px!important;gap:5px}html.ui-toy .squish-fullscreen .squish-feel-line span{font-size:12px}}
@media(max-width:760px){html dialog#modal.squish-fullscreen[open]{height:min(660px,calc(100dvh - var(--sat) - var(--sab) - 48px))!important}}
@media(max-height:650px){html.ui-toy .squish-fullscreen .squish-playground{grid-template-rows:44px minmax(0,1fr) auto auto 56px;padding:10px 12px 15px!important;gap:4px}html.ui-toy .squish-fullscreen #squish{width:min(68vw,44dvh,360px)!important;height:min(68vw,44dvh,360px)!important}html.ui-toy .squish-fullscreen .squish-dock .btn{width:54px;height:54px;flex-basis:54px}}

/* Shop furniture, physical shelf labels, and the matching toy detail sheet. */
html body.ui2[data-place=shop] #main{box-sizing:border-box;display:block!important;height:calc(100dvh - var(--sat) - var(--sab) - 58px - 86px)!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;padding-bottom:4px!important}
html body.ui2[data-place=shop] .shop-header,html body.ui2[data-place=shop] .shop-footer{border:1px solid #fff!important;background:#fff9eeea!important;box-shadow:var(--world-shadow)!important}
html body.ui2[data-place=shop] .shop-header{height:48px;min-height:48px;margin-bottom:5px;padding:2px 10px!important;border-radius:15px}
html body.ui2[data-place=shop] .shop-header h1{font-size:clamp(17px,4.9vw,23px)!important;color:var(--world-ink)}
html body.ui2[data-place=shop] .shop-header .wallet{display:none!important}
html body.ui2[data-place=shop] .shop-header .shop-sound{width:44px;min-width:44px;height:44px;min-height:44px;padding:8px!important}
html body.ui2[data-place=shop] .shop-scene{min-height:620px!important;height:620px!important;margin-bottom:5px!important;background-size:100% 100%!important}
html body.ui2[data-place=shop] .shop-try-sign{position:absolute;z-index:4;top:18%;left:50%;transform:translateX(-50%);margin:0;padding:5px 13px;border:1px solid #fff8e5;border-radius:99px;background:#fff9edeb;color:var(--world-ink);box-shadow:0 2px 5px #5e437425;font-size:13px;font-weight:850;white-space:nowrap;pointer-events:none}
html body.ui2[data-place=shop] .shop-scene .shelves{display:grid!important;inset:16% 10% 30%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:3% 7%!important}
html body.ui2[data-place=shop] .shop-scene .toy-card{position:relative!important;left:auto!important;top:auto!important;width:100%!important;height:100%!important;transform:none!important;margin:0!important;display:grid!important;place-items:center;min-width:0;min-height:0!important;overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
html body.ui2[data-place=shop] .shop-scene .toy-card:nth-child(n){left:auto!important;top:auto!important}
html body.ui2[data-place=shop] .shop-scene .toy-card>.toy,html body.ui2[data-place=shop] .shop-scene .toy-card>.world-art,html body.ui2[data-place=shop] .shop-scene .toy-card>.dumpling-box-art{position:absolute!important;left:50%;top:0;transform:translateX(-50%);width:min(88%,132px)!important;height:82px!important;max-width:132px!important;max-height:82px!important;object-fit:contain!important;margin:0!important;filter:drop-shadow(0 5px 4px #78544338)}
html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name{position:absolute!important;z-index:3;left:50%;right:auto!important;bottom:-20px!important;transform:translateX(-50%);box-sizing:border-box;display:grid;justify-items:center;align-content:center;gap:1px;width:min(126px,98%)!important;max-width:98%!important;min-height:42px!important;margin:0!important;padding:3px 6px!important;border:1px solid #fffdf6!important;border-radius:11px!important;background:#fff9ed!important;box-shadow:0 2px 5px #80624a35!important;color:var(--world-ink)!important;text-align:center;font-size:clamp(12px,3.2vw,15px)!important;line-height:1.06!important;white-space:normal!important;text-wrap:balance;overflow:hidden!important}
html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name .price-tag{position:static!important;display:flex!important;align-items:center;justify-content:center;gap:2px;min-height:15px;margin:0;padding:0;border:0!important;border-radius:0;background:none!important;box-shadow:none!important;color:#705340;font-size:12px!important;line-height:1!important}
html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name .price-tag .shop-price-unit{font-size:11px;margin-left:1px}
html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name .price-tag .pz-coin,html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name .price-tag .game-coin{width:14px!important;height:14px!important}
html body.ui2[data-place=shop] .shop-footer{height:58px;min-height:58px;gap:6px;padding:4px 7px!important;border-radius:17px}
html body.ui2[data-place=shop] .shop-footer .btn{min-height:48px!important;padding:4px 2px!important;border-radius:14px!important;background:#fff8ed!important;color:var(--world-ink);font-size:12px!important;box-shadow:none!important}
html body.ui2[data-place=shop] .shop-footer .shop-basket-primary{flex:1.35!important;background:#82dec6!important;color:#204c49!important;font-size:14px!important;font-weight:850}
html body.ui2[data-place=shop] .tr-case{box-sizing:border-box;bottom:1.2%!important;width:min(78%,350px)!important;height:17%!important;min-height:105px!important;padding:16px 9% 22px!important;gap:8%!important;border-radius:16px 16px 12px 12px;background:linear-gradient(#fff5d9 0 70%,#b4e1ce 71% 100%);border:2px solid #e8ca83;box-shadow:inset 0 0 0 1px #fff9e8,0 4px 8px #7b5f5433}
html body.ui2[data-place=shop] .tr-case:after{content:'';position:absolute;left:5%;right:5%;bottom:8px;height:9px;border-top:1px solid #f7e3a2;border-bottom:1px solid #87b6a3;border-radius:2px;background:linear-gradient(90deg,#87bfa9 0 31%,#f2d789 32% 34%,#87bfa9 35% 65%,#f2d789 66% 68%,#87bfa9 69%)}
html body.ui2[data-place=shop] .tr-glass{inset:0 0 22px;border:1px solid #fff9e8;border-radius:14px 14px 4px 4px;background:linear-gradient(125deg,#ffffff75,#ffffff16 42%,#ffffff55);box-shadow:inset 0 1px #fff9;animation:none}
html body.ui2[data-place=shop] .tr-glass:after{display:none}
html body.ui2[data-place=shop] .tr-label{top:-17px;border:1px solid #f5dea8;background:#fff5dd;box-shadow:0 2px 5px #77583738;font-size:13px!important}
html body.ui2[data-place=shop] .tr-toy{width:43%;height:100%;min-height:0;align-self:center}
html body.ui2[data-place=shop] .tr-toy .toy,html body.ui2[data-place=shop] .tr-toy img{width:100%;height:100%;object-fit:contain}
html body.ui2[data-place=shop] .shop-header .v2q-cheer{position:static;flex:none;translate:none;max-width:88px;padding:3px 6px;border:1px solid #fff;box-shadow:none;font-size:11px;white-space:nowrap;overflow:hidden}
html body.ui2[data-place=shop] .shop-header .v2q-cheer img{width:18px;height:18px}

html dialog#modal.store-detail[open]{width:min(650px,calc(100vw - 24px))!important;height:min(760px,calc(100dvh - var(--sat) - var(--sab) - 30px))!important;max-height:calc(100dvh - var(--sat) - var(--sab) - 30px)!important;border:1px solid #fffdf7!important;border-radius:32px!important;background:#fff9ec!important;box-shadow:0 12px 32px #382b4840!important;overflow:hidden}
html dialog#modal.store-detail::backdrop{background:#4c3b5c72;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
html.ui-toy .store-detail .squish-playground{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:48px minmax(190px,1fr) auto auto auto!important;gap:5px!important;box-sizing:border-box;width:100%;height:100%;padding:12px 18px 18px!important;overflow:hidden}
html.ui-toy .store-detail .squish-toolbar{grid-row:1!important;display:flex;justify-content:space-between;align-items:start}
html.ui-toy .store-detail .squish-toolbar .icon-button{width:44px;min-width:44px;height:44px;min-height:44px;border:1px solid #fff!important;background:#fffaf2!important;box-shadow:0 2px 6px #604c5926!important}
html.ui-toy .store-detail .squish-stage{grid-row:2!important;margin:0!important;min-height:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
html.ui-toy .store-detail #squish{width:min(78vw,42dvh,360px)!important;height:min(78vw,42dvh,360px)!important;max-width:100%!important;max-height:100%!important}
html.ui-toy .store-detail .squish-stage:before{width:min(50vw,210px)!important;top:calc(50% + min(21dvh,140px))!important;opacity:.42}
html.ui-toy .store-detail .store-toy-title{grid-row:3!important;margin:2px 0 0!important;text-align:center;color:var(--world-ink);font-size:clamp(23px,6vw,30px)!important;line-height:1.1}
html.ui-toy .store-detail .tf-name{display:none!important}
html.ui-toy .store-detail .squish-feel-line{grid-row:4!important;gap:2px;margin:0!important;text-align:center;color:#745e82}
html.ui-toy .store-detail .squish-feel-line strong{font-size:clamp(15px,4vw,18px)!important;color:var(--world-ink)}
html.ui-toy .store-detail .squish-feel-line span{font-size:clamp(12px,3.2vw,14px)!important}
html.ui-toy .store-detail .squish-picker{position:absolute!important;z-index:3;left:0;right:0;top:25%;height:34%;width:100%;margin:0!important;pointer-events:none}
html.ui-toy .store-detail .squish-picker>*{pointer-events:auto}
html.ui-toy .store-detail .squish-picker .selected{display:none!important}
html.ui-toy .store-detail .squish-picker .squish-preview:not(.selected){position:absolute!important;top:48%!important;width:58px!important;height:58px!important;opacity:.62;overflow:hidden}
html.ui-toy .store-detail .squish-picker .tf-left{left:-24px!important}
html.ui-toy .store-detail .squish-picker .tf-right{right:-24px!important}
html.ui-toy .store-detail .squish-picker .squish-prev,html.ui-toy .store-detail .squish-picker .squish-next{position:absolute!important;z-index:8!important;top:50%!important;transform:translateY(-50%);width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;background:#fffaf0e8!important;box-shadow:0 2px 5px #67506630!important}
html.ui-toy .store-detail .squish-picker .squish-prev:not(:disabled),html.ui-toy .store-detail .squish-picker .squish-next:not(:disabled){display:grid!important;place-items:center}
html.ui-toy .store-detail .squish-picker .squish-prev{left:5px!important}
html.ui-toy .store-detail .squish-picker .squish-next{right:5px!important}
html.ui-toy .store-detail .squish-dock{grid-row:5!important;display:grid!important;grid-template-columns:1fr 1fr;grid-template-rows:56px 44px;gap:6px!important;align-items:stretch;margin:5px 0 0!important;padding:0!important;min-height:0}
html.ui-toy .store-detail .squish-dock .store-buy,html.ui-toy .store-detail .squish-dock .store-owned{grid-column:1/-1;grid-row:1;width:100%!important;height:56px!important;min-height:56px!important;display:flex;align-items:center;justify-content:center;gap:9px;background:#8adfc9!important;border:1px solid #dffff0!important;border-radius:19px!important;box-shadow:0 4px 8px #338c7950!important;color:#204b47;font-size:clamp(17px,4.8vw,21px)!important;font-weight:850}
html.ui-toy .store-detail .squish-dock .store-buy:disabled{background:#eee9df!important;box-shadow:none!important;color:#766878;opacity:1}
html.ui-toy .store-detail .store-buy-coin{display:block;width:29px;height:29px}
html.ui-toy .store-detail .store-buy-coin svg{display:block;width:100%;height:100%}
html.ui-toy .store-detail .squish-dock .store-secondary{width:100%!important;height:44px!important;min-height:44px!important;margin:0!important;padding:4px!important;border:0!important;border-radius:12px!important;background:transparent!important;box-shadow:none!important;color:var(--world-ink);font-size:14px;font-weight:800}
html.ui-toy .store-detail .squish-dock .store-secondary{letter-spacing:normal!important}
html.ui-toy .store-detail .squish-dock .squish-more{grid-column:1/-1;grid-row:2}
html.ui-toy .store-detail .squish-toolbar .sq-bar{display:none!important}
html.ui-toy .store-detail .store-more-tools{position:static!important;display:block!important;margin:6px 0 0!important;padding:0!important;background:none!important;box-shadow:none!important}
html.ui-toy .store-detail .store-more-tools .sq-tools{display:flex;justify-content:center}
html.ui-toy .store-detail .store-more-tools button{min-width:44px;min-height:44px}
@media(max-width:400px){html body.ui2[data-place=shop] .shop-scene .shelves{inset-inline:8%!important}html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name{width:min(116px,99%)!important;font-size:12px!important}html.ui-toy .store-detail .squish-playground{padding:10px 12px 13px!important}}

/* Focused four-screen fit adjustments. */
html body.ui2 .topbar{background:transparent!important}
html body.ui2[data-place=town] .hunter-shop .v2l-pumpkin{right:0!important;bottom:94px!important;width:min(13%,44px)!important;max-height:44px!important;z-index:1}
html body.ui2[data-place=town] .hunter-shop strong,html body.ui2[data-place=town] .hunter-shop .town-enter-label{position:relative;z-index:5}
html.ui-toy .store-detail .squish-feel-line .store-owned{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:fit-content;max-width:100%;margin:5px auto 0;padding:5px 11px;border-radius:99px;background:#e8f3ec;color:#426b62;font-size:13px!important;font-weight:750;line-height:1.2;box-shadow:none}
html.ui-toy .store-detail .squish-feel-line .store-owned:before{content:'✓';font-weight:900}
html.ui-toy .store-detail-owned .squish-dock{grid-template-columns:56px minmax(0,1fr)!important;grid-template-rows:52px!important;justify-content:center;max-width:280px;margin:6px auto 0!important}
html.ui-toy .store-detail-owned .squish-dock .squish-heart{grid-column:1;grid-row:1;width:52px!important;height:52px!important;min-height:52px!important;min-width:52px!important;margin:0!important}
html.ui-toy .store-detail-owned .squish-dock .squish-more{grid-column:2;grid-row:1;width:100%!important;height:52px!important;min-height:52px!important;border-radius:17px!important;background:#fffaf0!important;border:1px solid #ebdfcf!important;box-shadow:none!important}
@media(max-width:760px){
 html body.ui2[data-mode=hunt][data-place=trade] .trade-mat{grid-template-rows:minmax(0,1fr) 155px 60px!important}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-tray{padding-block:7px!important}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-actions{height:60px!important;padding:5px!important}
 html body.ui2[data-place=home] .room-instruction{font-size:12px!important;font-weight:750;color:var(--world-ink)}
 html body.ui2[data-place=home] .room-instruction:after{display:none!important}
 html body.ui2.gm-open .gm-screen{bottom:var(--games-nav-clearance,100px)!important;overflow:hidden!important}
 html body.ui2.gm-open .gm-screen .gm-grid{min-height:0!important}
}
@media(max-width:760px) and (max-height:700px){
 html body.ui2.gm-open .gm-screen{grid-template-rows:52px minmax(0,1fr)!important;gap:4px!important;padding-top:2px!important;padding-bottom:6px!important}
 html body.ui2.gm-open .gm-screen .gm-art-heading{min-height:0!important;height:52px!important;margin:0!important}
 html body.ui2.gm-open .gm-screen .gm-art-heading img{width:112px!important;height:49px!important}
 html body.ui2.gm-open .gm-screen .gm-art-heading span{display:none!important}
 html body.ui2.gm-open .gm-screen .gm-grid{gap:4px!important;padding:5px!important}
}

/* A roomier stage for very large desktop windows. Smaller desktop, iPad, and
   phone layouts retain their existing sizes and no-scroll behavior. */
@media(min-width:1800px) and (min-height:1300px){
 html body.ui2 .topbar{height:78px!important;flex-basis:78px!important;box-sizing:border-box;width:min(1540px,calc(100vw - 100px))!important;max-width:none!important;margin-inline:auto!important;padding-inline:0!important}
 html body.ui2 .ui2-bar,html body.ui2[data-place=town] .ui2-bar{width:100%;max-width:1540px;margin-inline:auto;justify-content:space-between;gap:clamp(22px,3vw,58px)}
 html body.ui2 .ui2-bar>*{flex:none!important}
 html body.ui2 .topbar .ui2-me{width:68px;height:68px;flex-basis:68px}
 html body.ui2 .topbar .ui2-face{width:56px;height:56px}
 html body.ui2 .topbar .ui2-btn{width:60px;height:60px;font-size:28px}
 html body.ui2 .topbar .ui2-coins{font-size:24px;padding:10px 22px}
 html body.ui2 .ui2-bar [data-ui2=daily] img{width:40px;height:40px}
 html body.ui2 .ui2-setting-art{width:39px;height:39px}
 html body.ui2 .bottom-nav,html body.ui2[data-place=town] .bottom-nav{width:min(1000px,calc(100vw - 80px))!important;height:98px!important;min-height:98px!important;bottom:24px!important;padding:7px!important}
 html body.ui2 .bottom-nav button,html body.ui2[data-place=town] .bottom-nav button{height:82px!important;min-height:82px!important;grid-template-rows:49px 23px!important;font-size:18px!important;line-height:23px!important}
 html body.ui2 .bottom-nav .nav-toy,html body.ui2 .bottom-nav .nav-toy .world-art,html body.ui2 .bottom-nav .nav-toy img{width:47px!important;height:47px!important}
 html body.ui2[data-place=town] .app{width:100%!important;max-width:none!important;padding-top:8px!important;padding-bottom:142px!important}
 html body.ui2[data-place=town] .topbar{height:78px!important;flex:0 0 78px!important}
 html body.ui2[data-mode=hunt][data-place=town] #main{grid-template-rows:64px minmax(0,1fr) 230px!important}
 html body.ui2[data-place=town] .town-goal{width:680px;min-height:58px!important;padding-inline:16px!important}
 html body.ui2[data-place=town] .town-goal strong{font-size:18px}
 html body.ui2[data-place=town] .town-goal>.shop-building{width:52px;height:55px}
 html body.ui2[data-place=town] .town-street-section{--shop:clamp(500px,26vw,680px);--gap:clamp(70px,5vw,130px)}
 html body.ui2[data-place=town] .hunter-shop strong{height:36px;min-width:210px;font-size:23px}
 html body.ui2[data-place=town] .hunter-shop,html body.ui2[data-place=town] .hunter-shop.locked{grid-template-rows:minmax(0,1fr) 36px 49px}
 html body.ui2[data-place=town] .town-enter-label{min-height:46px;min-width:200px;font-size:20px}
 html body.ui2[data-place=town] .street-arrow{width:56px;height:56px;min-height:56px}
 html body.ui2[data-place=town] .town-collection{width:min(950px,80vw);max-width:none!important;height:210px!important;min-height:210px!important;box-sizing:border-box;padding:10px 16px 14px!important}
 html body.ui2[data-place=town] .town-collection h2{font-size:21px}
 html body.ui2[data-place=town] .town-collection-title{min-height:31px!important}
 html body.ui2[data-place=town] .town-toy-rail{min-height:126px!important;flex:none!important}
 html body.ui2[data-place=town] .town-owned,html body.ui2[data-place=town] .town-toy-rail>.tr-waiting{height:126px!important;overflow:hidden!important}
 html body.ui2[data-place=shop] #main{display:grid!important;grid-template-rows:64px minmax(0,1fr) 78px!important;gap:10px!important;flex:none!important;align-self:center;width:min(1580px,calc(100vw - 120px))!important;max-width:none!important;height:min(1200px,calc(100dvh - 350px))!important;margin:auto!important;padding:0!important;overflow:hidden!important}
 html body.ui2[data-place=shop] .shop-header{height:64px;min-height:64px;margin:0;padding-inline:20px!important}
 html body.ui2[data-place=shop] .shop-header h1{font-size:29px!important}
 html body.ui2[data-place=shop] .shop-scene{height:100%!important;min-height:0!important;margin:0!important}
 html body.ui2[data-place=shop] .shop-scene .toy-card>.toy,html body.ui2[data-place=shop] .shop-scene .toy-card>.world-art,html body.ui2[data-place=shop] .shop-scene .toy-card>.dumpling-box-art{width:min(90%,200px)!important;max-width:200px!important;height:135px!important;max-height:135px!important}
 html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name{bottom:-25px!important;width:min(190px,98%)!important;min-height:55px!important;border-radius:15px!important;font-size:19px!important}
 html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name .price-tag{font-size:16px!important}
 html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name .price-tag .shop-price-unit{font-size:14px}
 html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name .price-tag .pz-coin,html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name .price-tag .game-coin{width:18px!important;height:18px!important}
 html body.ui2[data-place=shop] .shop-try-sign{font-size:17px;top:17%;padding:7px 17px}
 html body.ui2[data-place=shop] .tr-case{width:min(80%,480px)!important;min-height:145px!important;padding-top:22px!important}
 html body.ui2[data-place=shop] .tr-label{font-size:17px!important}
 html body.ui2[data-place=shop] .shop-footer{height:78px;min-height:78px;margin:0;padding:7px 10px!important}
 html body.ui2[data-place=shop] .shop-footer .btn{min-height:62px!important;font-size:18px!important}
 html body.ui2[data-place=shop] .shop-footer .shop-basket-primary{font-size:21px!important}
 html dialog#modal.store-detail[open]{width:min(850px,calc(100vw - 120px))!important;height:min(1080px,calc(100dvh - 110px))!important;max-height:calc(100dvh - 110px)!important;border-radius:40px!important}
 html.ui-toy .store-detail .squish-playground{grid-template-rows:64px minmax(0,1fr) auto auto auto!important;gap:12px!important;padding:22px 42px 30px!important}
 html.ui-toy .store-detail .squish-toolbar .icon-button{width:58px;min-width:58px;height:58px;min-height:58px}
 html.ui-toy .store-detail #squish{width:min(42vw,48dvh,520px)!important;height:min(42vw,48dvh,520px)!important}
 html.ui-toy .store-detail .squish-stage:before{width:310px!important;top:calc(50% + min(24dvh,205px))!important}
 html.ui-toy .store-detail .store-toy-title{font-size:38px!important}
 html.ui-toy .store-detail .squish-feel-line strong{font-size:23px!important}
 html.ui-toy .store-detail .squish-feel-line span{font-size:18px!important}
 html.ui-toy .store-detail .squish-picker .squish-preview:not(.selected){width:90px!important;height:90px!important}
 html.ui-toy .store-detail .squish-picker .tf-left{left:-35px!important}
 html.ui-toy .store-detail .squish-picker .tf-right{right:-35px!important}
 html.ui-toy .store-detail .squish-picker .squish-prev,html.ui-toy .store-detail .squish-picker .squish-next{width:58px!important;height:58px!important;min-width:58px!important;min-height:58px!important}
 html.ui-toy .store-detail .squish-dock{grid-template-rows:72px 52px;gap:8px!important}
 html.ui-toy .store-detail .squish-dock .store-buy,html.ui-toy .store-detail .squish-dock .store-owned{height:72px!important;min-height:72px!important;font-size:26px!important}
 html.ui-toy .store-detail .squish-dock .store-secondary{height:52px!important;min-height:52px!important;font-size:18px}
}

/* The guide uses the same illustrated fingertip everywhere. Its tip is the
   anchor; the wrist stays clear of the control the child should touch. */
html .game-hand{display:inline-block;width:60px;height:60px;line-height:0;filter:drop-shadow(0 3px 3px #6b4b6440)}
html .game-hand img{display:block;width:100%;height:100%;object-fit:contain}
html .v2l-hand>span{display:block;line-height:0;filter:drop-shadow(0 4px 4px #6b4b6440)}
html .v2l-hand>span>img{display:block;width:100%;height:100%;object-fit:contain}
html .v2l-hand .fl-ripple{left:5%;top:5%;border-color:#fff9dd;box-shadow:0 0 0 2px #b783c266}
html .first-hand{width:88px;transform:none;z-index:7}
html .first-box>img.first-hand{inset:auto auto -40px calc(50% + 8px);width:104px}
html .first-meet-stage .first-hand{left:calc(50% + 20px);top:calc(50% - 28px);right:auto;bottom:auto;width:112px}
html .first-meet .first-next .first-hand,html .first-journey [data-action=toyfinished] .first-hand,html .first-journey [data-action=firstshelfdone] .first-hand{top:34%;right:0;width:66px;transform:none}
html .av-wrap.first-player .av-go:after{width:72px;height:72px;right:-6px;top:38%;transform:none;-webkit-mask-image:none;mask-image:none}

/* Squish instruction: the new finger visibly presses the live toy, pauses,
   then lifts. A short label names both halves of the gesture. */
html dialog.squish-fullscreen .squish-demo,html dialog.store-detail .squish-demo{left:calc(50% + var(--squeeze-size,300px) * .19)!important;top:calc(50% - var(--squeeze-size,300px) * .13)!important;right:auto!important;bottom:auto!important;width:132px;height:132px;opacity:1;animation:none;transform:none;filter:drop-shadow(0 5px 5px #6b4b6440)}
html dialog.squish-fullscreen .squish-demo>img,html dialog.store-detail .squish-demo>img{position:absolute;z-index:2;left:0;top:0;width:clamp(82px,12vw,116px);height:clamp(82px,12vw,116px);object-fit:contain;animation:guide-press-release 2.8s ease-in-out infinite}
html dialog.squish-fullscreen .squish-demo-touch,html dialog.store-detail .squish-demo-touch{position:absolute;z-index:1;left:5px;top:5px;width:27px;height:27px;border:3px solid #fff6d7;border-radius:50%;box-shadow:0 0 0 3px #9f78b788;opacity:0;animation:guide-touch-pulse 2.8s ease-out infinite}
html dialog.squish-fullscreen .squish-demo-copy,html dialog.store-detail .squish-demo-copy{position:absolute;z-index:3;left:-60px;top:-40px;min-width:132px;padding:6px 10px;border:1px solid #fff;border-radius:99px;background:#fff9ecee;box-shadow:0 3px 8px #604c5926;color:#5e4077;font-size:14px;line-height:1.15;font-weight:850;text-align:center;white-space:nowrap}
html dialog.squish-fullscreen .squish-demo-copy span,html dialog.store-detail .squish-demo-copy span{display:block}
html dialog.squish-fullscreen .squish-demo-copy span+span,html dialog.store-detail .squish-demo-copy span+span{display:none}
html dialog.squish-fullscreen .squish-demo-copy span:first-child,html dialog.store-detail .squish-demo-copy span:first-child{animation:guide-copy-hold 2.8s linear infinite}
html dialog.squish-fullscreen .squish-demo-copy span+span,html dialog.store-detail .squish-demo-copy span+span{display:block;position:absolute;inset:6px 10px;opacity:0;animation:guide-copy-release 2.8s linear infinite}
@keyframes guide-copy-hold{0%,64%,100%{opacity:1}72%,91%{opacity:0}}
@keyframes guide-copy-release{0%,64%,100%{opacity:0}72%,91%{opacity:1}}
@keyframes guide-press-release{0%,12%,100%{transform:translate(18px,19px)}34%,62%{transform:translate(0,0)}82%{transform:translate(18px,19px)}}
@keyframes guide-touch-pulse{0%,27%,77%,100%{opacity:0;scale:.55}37%{opacity:.95;scale:1}65%{opacity:.7;scale:1.25}}
@media(max-width:760px){html dialog.squish-fullscreen .squish-demo,html dialog.store-detail .squish-demo{width:102px;height:102px}html dialog.squish-fullscreen .squish-demo>img,html dialog.store-detail .squish-demo>img{width:84px;height:84px}html dialog.squish-fullscreen .squish-demo-copy,html dialog.store-detail .squish-demo-copy{left:-50px;top:-38px;font-size:12px;min-width:110px}}
@media(prefers-reduced-motion:reduce){html dialog.squish-fullscreen .squish-demo>img,html dialog.store-detail .squish-demo>img,html dialog.squish-fullscreen .squish-demo-touch,html dialog.store-detail .squish-demo-touch{animation:none;transform:none}html dialog.squish-fullscreen .squish-demo-touch,html dialog.store-detail .squish-demo-touch{opacity:.8}html dialog.squish-fullscreen .squish-demo-copy span,html dialog.store-detail .squish-demo-copy span{display:inline}html dialog.squish-fullscreen .squish-demo-copy span+span:before,html dialog.store-detail .squish-demo-copy span+span:before{content:' · '}}

/* Collection book: let the saved collection and the size of the world lead. */
html #modal[open]:has(.book-grid) .collection-overview{position:relative;display:flex;align-items:center;min-height:104px;flex:none;margin:4px 0 12px;padding:14px 18px;border:1px solid #ecdcc6;border-radius:23px;background:linear-gradient(120deg,#fff6e4 5%,#f3f8e8 66%,#f2e8fc);box-shadow:0 5px 12px #6d51621c;overflow:hidden}
html .collection-overview-copy{position:relative;z-index:2;min-width:0;width:65%;color:#60427d}
html .collection-overview-kicker{display:block;color:#8a6a95;font-size:12px;font-weight:800;letter-spacing:.02em}
html .collection-overview-copy>strong{display:block;margin:2px 0;color:#653c8b;font-size:36px;line-height:1;font-weight:900}
html .collection-overview-copy>strong small{font-size:16px;font-weight:800}
html .collection-overview-copy p{margin:4px 0 9px;color:#79667c;font-size:12px;font-weight:700}
html .collection-overview-track{height:8px;width:min(100%,300px);border-radius:99px;background:#e6d6ee;overflow:hidden}
html .collection-overview-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#91dfc7,#b48be2)}
html .collection-overview-toys{position:absolute;right:2%;bottom:0;width:36%;height:100%;display:flex;align-items:end;justify-content:center}
html .collection-overview-toys .toy{position:absolute;width:66px;height:66px;bottom:4px;filter:drop-shadow(0 6px 3px #7b647636)}
html .collection-overview-toys .toy:first-child{z-index:2;right:41%;width:80px;height:80px}
html .collection-overview-toys .toy:nth-child(2){right:18%;opacity:.45;filter:grayscale(1) brightness(.8) drop-shadow(0 5px 2px #685b7040)}
html .collection-overview-toys .toy:nth-child(3){right:-4%;opacity:.32;filter:grayscale(1) brightness(.8) drop-shadow(0 5px 2px #685b7040)}
html #modal[open]:has(.book-grid) .book-set-heading,html #modal[open]:has(.book-grid) .book-discover-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px;color:#634481}
html #modal[open]:has(.book-grid) .book-set-heading strong,html #modal[open]:has(.book-grid) .book-discover-heading strong{font-size:15px;font-weight:900}
html #modal[open]:has(.book-grid) .book-set-heading small,html #modal[open]:has(.book-grid) .book-discover-heading small{color:#8d7695;font-size:11px;font-weight:650;text-align:right}
html #modal[open]:has(.book-grid) .book-set-chips{display:flex;gap:7px;margin:6px 0 12px;padding-bottom:3px}
html #modal[open]:has(.book-grid) .book-set-chips .set-chip{display:flex;flex-direction:column;align-items:start;gap:1px;position:relative;min-width:116px;padding:8px 10px 12px;border:1px solid #eadcc4;border-radius:15px;background:#fff9ed;box-shadow:0 3px 6px #765c6b17;color:#654582;font-size:12px}
html #modal[open]:has(.book-grid) .book-set-chips .set-chip:nth-child(3n+2){background:#f0fff5}html #modal[open]:has(.book-grid) .book-set-chips .set-chip:nth-child(3n){background:#f4edff}
html #modal[open]:has(.book-grid) .book-set-chips .set-chip small{font-size:10px;color:#927c91}
html #modal[open]:has(.book-grid) .book-set-chips .set-chip i{position:absolute;left:10px;right:10px;bottom:6px;height:3px;border-radius:99px;background:linear-gradient(to right,#9adfc7 var(--set-progress),#e4d8e7 var(--set-progress))}
html #modal[open]:has(.book-grid) .book-discover-heading{margin-bottom:6px}
html #modal[open]:has(.book-grid) .book-filters{margin-bottom:9px}
html #modal[open]:has(.book-grid) .book-grid .book-toy{border:1px solid #ecdfcf!important;border-radius:17px;box-shadow:0 4px 8px #765c6b1b!important}
html #modal[open]:has(.book-grid) .book-grid .book-toy.undiscovered{background:linear-gradient(145deg,#f3edf5,#ece9e7)!important}
html #modal[open]:has(.book-grid) .book-grid .book-toy.undiscovered:nth-child(3n+2){background:linear-gradient(145deg,#eef8f3,#ebe9e7)!important}
html #modal[open]:has(.book-grid) .book-grid .book-toy.undiscovered:nth-child(3n){background:linear-gradient(145deg,#fff4e8,#ece9e7)!important}
html #modal[open]:has(.book-grid) .book-grid .book-toy small{font-weight:750}
html #modal[open]:has(.book-grid) .book-page-status{min-width:90px;text-align:center;color:#684b83;font-size:13px;font-weight:850}
@media(max-width:760px){html #modal[open]:has(.book-grid) .collection-overview{min-height:94px;padding:11px 13px;margin-bottom:9px}html .collection-overview-copy>strong{font-size:31px}html .collection-overview-copy>strong small{font-size:13px}html .collection-overview-toys .toy{width:54px;height:54px}html .collection-overview-toys .toy:first-child{width:67px;height:67px}html #modal[open]:has(.book-grid) .book-set-heading strong,html #modal[open]:has(.book-grid) .book-discover-heading strong{font-size:13px}html #modal[open]:has(.book-grid) .book-set-heading small,html #modal[open]:has(.book-grid) .book-discover-heading small{font-size:10px}html #modal[open]:has(.book-grid) .book-set-chips .set-chip{min-width:95px;padding:6px 8px 11px;font-size:10px}html #modal[open]:has(.book-grid) .book-set-chips .set-chip i{left:8px;right:8px;bottom:5px}}
@media(max-height:700px){html #modal[open]:has(.book-grid) .collection-overview{min-height:76px;margin-bottom:6px;padding:7px 12px}html #modal[open]:has(.book-grid) .book-set-chips{margin-bottom:6px}html #modal[open]:has(.book-grid) .book-set-heading small{display:none}}
@media(max-width:760px){html #modal[open]:has(.book-grid) .calm-book-sparkle{min-height:42px;margin:0 0 6px;padding:5px 9px;font-size:12px;border-width:2px;border-radius:14px}html #modal[open]:has(.book-grid) .calm-book-sparkle .rare-tease{transform:scale(.75);transform-origin:left center;margin-right:-15px}html #modal[open]:has(.book-grid) .book-grid:not(.paged) .book-toy{min-height:112px;height:112px}html #modal[open]:has(.book-grid) .book-set-chips{margin-bottom:5px}html #modal[open]:has(.book-grid) .book-discover-heading{margin-bottom:2px}html #modal[open]:has(.book-grid) .book-filters{margin-bottom:4px}html #modal[open]:has(.book-grid) .book-grid .book-toy strong{font-size:10px}html #modal[open]:has(.book-grid) .book-grid .book-toy small{font-size:9px}html #modal[open]:has(.book-grid) .book-grid .book-toy .rarity{font-size:8px}}

/* Coin bag: one clear balance and compact paths to play or shop. */
html .gm-coin-sheet{background:#49345675;backdrop-filter:blur(5px)}
html .gm-coin-sheet>div{width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - max(14px,var(--sat)) - max(14px,var(--sab)));box-sizing:border-box;gap:8px;padding:20px;border:1px solid #fff8ed;border-radius:29px;background:#fffaf0;box-shadow:0 12px 35px #46344935}
html .gm-coin-sheet .gm-x{top:15px;right:15px;z-index:2;border:1px solid #fff;background:#f3ebfa;box-shadow:0 3px 7px #6b4a6530}
html .gm-coin-sheet .gm-wallet{display:flex;align-items:center;gap:12px;min-height:96px;margin:0 35px 2px 0;padding:9px 12px;border:1px solid #f3dfb8;border-radius:22px;background:linear-gradient(120deg,#fff0c4,#fff9e9 67%,#eef9f2);text-align:left}
html .gm-coin-sheet .gm-wallet>img{width:70px;height:70px;object-fit:contain;filter:drop-shadow(0 5px 3px #b4905733)}
html .gm-coin-sheet .gm-wallet>div{min-width:0}
html .gm-coin-sheet .gm-wallet span{display:block;color:#815e39;font-size:12px;font-weight:850}
html .gm-coin-sheet .gm-wallet strong{display:block;color:#5d3978;font-size:36px;line-height:1;font-weight:950;white-space:nowrap}
html .gm-coin-sheet .gm-wallet strong small{font-size:17px;font-weight:850}
html .gm-coin-sheet .gm-wallet p{margin:4px 0 0;color:#806d77;font-size:11px;line-height:1.3;font-weight:650}
html .gm-coin-sheet h3{margin:7px 2px 0;color:#613d7d;text-align:left;font-size:15px;font-weight:900}
html .gm-coin-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}
html .gm-coin-way{display:flex;align-items:center;gap:7px;min-width:0;min-height:73px;padding:7px;border:1px solid #e8dfed;border-radius:17px;background:#f4eef8;color:#5a4070;font:inherit;text-align:left;cursor:pointer;box-shadow:0 3px 5px #70597a17}
html .gm-coin-way.spend{background:#fff3d8;border-color:#f0e0bd}
html .gm-coin-way:focus-visible{outline:3px solid #75529a;outline-offset:2px}
html .gm-coin-way .gm-coin-art{flex:none;width:47px;height:47px}
html .gm-coin-way .gm-coin-art img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 2px #745c6d29)}
html .gm-coin-way .gm-coin-copy{display:flex;flex-direction:column;min-width:0;flex:1;gap:2px}
html .gm-coin-way .gm-coin-copy b{font-size:13px;font-weight:900;line-height:1.1}
html .gm-coin-way .gm-coin-copy small{font-size:10px;line-height:1.15;color:#8b788c;font-weight:650}
html .gm-coin-way strong{align-self:flex-start;flex:none;padding:3px 6px;border-radius:99px;background:#fff1bd;color:#75521b;font-size:11px;line-height:1;white-space:nowrap}
html .gm-coin-way .gm-coin-chevron{display:none}
@media(max-width:430px){html .gm-coin-sheet>div{padding:14px;gap:5px}html .gm-coin-sheet .gm-wallet{min-height:82px;margin-right:32px;padding:7px 9px}html .gm-coin-sheet .gm-wallet>img{width:56px;height:56px}html .gm-coin-sheet .gm-wallet strong{font-size:30px}html .gm-coin-sheet .gm-wallet strong small{font-size:14px}html .gm-coin-sheet h3{margin-top:5px}html .gm-coin-way{min-height:69px;padding:5px;gap:4px}html .gm-coin-way .gm-coin-art{width:40px;height:40px}html .gm-coin-way .gm-coin-copy b{font-size:12px}html .gm-coin-way .gm-coin-copy small{font-size:9px}html .gm-coin-way strong{font-size:10px;padding:3px 4px}}
@media(max-height:640px){html .gm-coin-sheet>div{gap:4px;padding:12px}html .gm-coin-sheet .gm-wallet{min-height:67px}html .gm-coin-sheet .gm-wallet>img{width:52px;height:52px}html .gm-coin-sheet h3{margin-top:3px}html .gm-coin-way{min-height:56px}html .gm-coin-way .gm-coin-art{width:38px;height:38px}}
/* The iPad plaza's horizon was below the shop feet. Move the illustrated paving up to their baseline. */
@media(min-width:760px) and (max-width:1366px) and (orientation:landscape){html body.ui2[data-place=town]{background-size:auto 120%!important;background-position:center bottom!important}}
@media(min-width:601px){html .gm-coin-sheet>div{width:min(500px,calc(100vw - 40px))}}
@media(max-width:600px){html .gm-coin-list{grid-template-columns:1fr;gap:5px}html .gm-coin-way{min-height:56px;padding:5px 9px;gap:10px}html .gm-coin-way .gm-coin-art{width:43px;height:43px}html .gm-coin-way .gm-coin-copy b{font-size:14px}html .gm-coin-way .gm-coin-copy small{font-size:11px}html .gm-coin-way strong{align-self:center;font-size:12px;padding:4px 7px}html .gm-coin-sheet h3{font-size:14px;margin:5px 2px 1px}}
@media(max-width:600px) and (max-height:690px){html .gm-coin-sheet .gm-wallet{min-height:68px}html .gm-coin-sheet .gm-wallet p{display:none}html .gm-coin-way{min-height:49px}html .gm-coin-way .gm-coin-art{width:36px;height:36px}}
html .gm-coin-way strong span{font-size:.9em}

/* Keep the collection rail keyboard-visible without boxing in every toy. */
html body.ui2[data-place=town] .town-toy-rail:focus-visible{outline:none;box-shadow:inset 0 -3px #dcbf76}
/* The uncollected teaser uses the same footprint as an owned squishy. */
@media(min-width:760px){html body.ui2[data-place=town] .town-toy-rail>.tr-waiting{flex-basis:calc((100% - 40px)/6)}}
/* The preview card must use the owned cards' height, not its older square ratio. */
html body.ui2[data-place=town] .town-toy-rail>.tr-waiting{box-sizing:border-box;min-height:0!important;height:clamp(68px,10dvh,96px)!important;aspect-ratio:auto!important;align-self:start;overflow:hidden!important}
@media(min-width:1800px) and (min-height:1300px){html body.ui2[data-place=town] .town-toy-rail>.tr-waiting{height:126px!important}}
/* Keep the illustrated paving behind the shop feet on large landscape screens. */
@media(min-width:1367px) and (min-height:900px) and (orientation:landscape){html body.ui2[data-place=town]{background-size:auto 104%!important;background-position:center bottom!important}}

/* Nine actual stock slots use the full width of the three physical shelves on tablets. */
@media(min-width:760px){
 html body.ui2[data-place=shop] .shop-scene .shelves{grid-template-columns:repeat(3,minmax(0,1fr))!important;column-gap:2%!important}
 html body.ui2[data-place=shop] .shop-scene{background-size:cover!important;background-position:center center!important}
}
@media(max-width:759px){html body.ui2[data-place=shop] .shop-scene .toy-card:nth-child(n+7){display:none!important}}
@media(min-width:760px) and (max-width:1799px){
 html body.ui2[data-place=shop] #main{display:grid!important;grid-template-rows:48px minmax(0,1fr) 58px!important;gap:8px!important;flex:0 0 auto!important;align-self:center!important;width:min(840px,calc(100vw - 36px))!important;max-width:none!important;height:min(760px,calc(100dvh - 165px))!important;margin:0 auto!important;padding:0!important;overflow:hidden!important}
 html body.ui2[data-place=shop] .shop-scene{height:100%!important;min-height:0!important;margin:0!important}
 html body.ui2[data-place=shop] .shop-footer{height:58px!important;min-height:58px!important;margin:0!important}
 html body.ui2[data-place=shop] .shop-scene .toy-card>.toy,html body.ui2[data-place=shop] .shop-scene .toy-card>.world-art,html body.ui2[data-place=shop] .shop-scene .toy-card>.dumpling-box-art{width:min(78%,112px)!important;max-width:112px!important;height:58px!important;max-height:58px!important}
 html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name{bottom:-18px!important}
}

/* The first gift is a tactile, one-tap reveal: a gentle peek before the lid clears. */
html #modal[open]:has(.first-reveal:not(.first-meet)){background:radial-gradient(ellipse at 50% 75%,#fff0d9 0%,#fff9eb 62%,#fffdf5 100%)!important;box-shadow:0 9px 0 #c9a588,0 25px 48px #3d284555!important}
html .first-reveal:not(.first-meet){gap:12px}
html .first-reveal-instruction{min-height:26px;color:#715288;transition:color .3s}
html .first-reveal:has(.first-box.opening) .first-reveal-instruction{color:#9a63a2}
html .first-box::before{content:'';position:absolute;z-index:0;left:3%;right:3%;top:6%;bottom:10%;border-radius:50%;background:radial-gradient(ellipse,#fffdf9 18%,#ffe8c5b8 57%,transparent 75%);filter:blur(12px);pointer-events:none}
html .first-box::after{content:'';position:absolute;z-index:0;left:14%;right:14%;bottom:2%;height:13%;border-radius:50%;background:#9d694d55;filter:blur(13px);pointer-events:none}
html .first-box>img.first-box-lid{transform-origin:52% 59%}
html .first-box>img.first-box-toy{inset:20% auto auto 28%;width:44%;height:44%;transform:translateY(30%) scale(.76)}
@media(prefers-reduced-motion:no-preference){html .first-box:not(.opening) .first-box-lid{animation:first-box-breathe 2.8s ease-in-out infinite}html .first-box:not(.opening) .first-box-sparkles{animation:first-box-idle-stars 3.2s ease-in-out infinite}}
@keyframes first-box-breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes first-box-idle-stars{0%,100%{opacity:.08}50%{opacity:.35}}
html .first-box.opening .first-box-lid{animation:first-premium-lid 2.8s cubic-bezier(.2,.7,.23,1) forwards}
html .first-box.opening .first-box-toy{animation:first-premium-toy 2.8s cubic-bezier(.19,.8,.25,1) forwards}
html .first-box.opening .first-box-glow{animation:first-premium-light 2.8s ease-out forwards}
html .first-box.opening .first-box-sparkles{animation:first-premium-sparkle 2.8s ease-out forwards}
@keyframes first-premium-lid{0%,12%{transform:translate(0,0) rotate(0);opacity:1}24%{transform:translate(3%,2%) rotate(4deg);opacity:1}52%{transform:translate(36%,7%) rotate(14deg);opacity:1}68%{transform:translate(43%,9%) rotate(17deg);opacity:1}100%{transform:translate(65%,12%) rotate(25deg);opacity:0}}
@keyframes first-premium-toy{0%,30%{opacity:0;transform:translateY(30%) scale(.76)}50%{opacity:1;transform:translate(-28%,7%) scale(.9)}68%{opacity:1;transform:translate(-28%,3%) scale(.94)}100%{opacity:1;transform:translateY(-16%) scale(1.16)}}
@keyframes first-premium-light{0%,24%{opacity:0;transform:scale(.45)}55%{opacity:.6;transform:scale(.86)}75%{opacity:.9;transform:scale(1.05)}100%{opacity:.5;transform:scale(1.35)}}
@keyframes first-premium-sparkle{0%,42%{opacity:0;transform:scale(.65)}70%{opacity:.45;transform:scale(1)}88%{opacity:1;transform:scale(1.25)}100%{opacity:0;transform:scale(1.6)}}
@media(prefers-reduced-motion:reduce){html .first-box.opening .first-box-lid{animation:none;opacity:0}html .first-box.opening .first-box-toy{animation:none;opacity:1;transform:translateY(-10%) scale(1)}html .first-box.opening .first-box-glow{animation:none;opacity:.55}html .first-box.opening .first-box-sparkles{animation:none}}

/* 2026-10 visual upgrade: one palette and one tactile interaction language. */
html body.ui2{
 --upgrade-cream:#fff9ed;--upgrade-pink:#f8dce7;--upgrade-mint:#d8f5e9;
 --upgrade-lavender:#e8d9fa;--upgrade-butter:#ffe8a0;--upgrade-purple:#58366e;
 --upgrade-edge:#fffdf7;--upgrade-shadow:0 8px 24px #4c365a28;
}
html body.ui2 .bottom-nav,html body.ui2[data-place=town] .bottom-nav{
 border:1px solid var(--upgrade-edge)!important;
 background:#fff9edee!important;
 box-shadow:var(--upgrade-shadow)!important;
}
html body.ui2 .bottom-nav button.active{background:var(--upgrade-butter)!important}
html body.ui2 :is(.btn,.icon-button,.bottom-nav button,.gm-tile,.tray-toy){transition:translate .18s ease,scale .18s ease,box-shadow .18s ease}
html body.ui2 :is(.btn,.icon-button,.bottom-nav button,.gm-tile,.tray-toy):active:not(:disabled){translate:0 2px;scale:.98}
html body.ui2 :is(.btn,.icon-button,.bottom-nav button,.gm-tile,.tray-toy):focus-visible{outline:3px solid #7548a2!important;outline-offset:2px}
@media(prefers-reduced-motion:reduce){html body.ui2 :is(.btn,.icon-button,.bottom-nav button,.gm-tile,.tray-toy){transition:none!important}}

/* Trade: a separate environment, while every toy and control remains live DOM. */
html body.ui2[data-mode=hunt][data-place=trade]{
 background-image:linear-gradient(#fff7e82e,#fff7e82e),url('./assets/world/trade-bakery-v1.webp')!important;
 background-size:cover!important;background-position:center center!important;
}
html body.ui2[data-mode=hunt][data-place=trade] .topbar{background:transparent!important}
html body.ui2[data-mode=hunt][data-place=trade] #main{background:transparent!important}
html body.ui2[data-mode=hunt][data-place=trade] .trade-friend-header{
 border:1px solid var(--upgrade-edge)!important;background:#fff9edee!important;
 box-shadow:var(--upgrade-shadow)!important;backdrop-filter:blur(8px);
}
html body.ui2[data-mode=hunt][data-place=trade] .trade-friend-header .trade-speech{
 border:1px solid #f7e9ef!important;background:#fffdf8!important;
 box-shadow:0 3px 10px #704e7020!important;
}
html body.ui2[data-mode=hunt][data-place=trade] .trade-mat{
 border:2px solid var(--upgrade-edge)!important;
 background:linear-gradient(90deg,#f8dce7f2 0 49.8%,#fff9ed 49.8% 50.2%,#d8f5e9f2 50.2% 100%)!important;
 box-shadow:0 10px 28px #4a305a2b!important;backdrop-filter:blur(5px);
}
html body.ui2[data-mode=hunt][data-place=trade] .trade-mat .offer-zone{
 position:relative;isolation:isolate;margin:7px 5px!important;
 border:1px solid #fffdf8!important;border-radius:24px!important;
 background:radial-gradient(ellipse at 50% 35%,#ffffffae,transparent 72%)!important;
}
html body.ui2[data-mode=hunt][data-place=trade] .trade-mat .offer-zone::after{
 content:'';position:absolute;z-index:0;left:50%;bottom:5%;width:min(62%,270px);height:39px;
 transform:translateX(-50%);border:1px solid #f9e9ce;border-radius:50%;
 background:repeating-linear-gradient(0deg,#f5c8cf 0 7px,#fff4ea 7px 14px),repeating-linear-gradient(90deg,#f5c8cf 0 7px,#fff4ea 7px 14px);
 box-shadow:0 9px 0 #c99774,0 13px 13px #875b6333;
}
html body.ui2[data-mode=hunt][data-place=trade] .trade-mat .offer-zone:nth-of-type(3)::after{
 border-color:#b4decf;background:linear-gradient(135deg,#bbefe0,#89d7c6);
 box-shadow:0 9px 0 #bb9876,0 13px 13px #6a766333;
}
html body.ui2[data-mode=hunt][data-place=trade] .trade-mat .offer-toys{position:relative;z-index:1}
html body.ui2[data-mode=hunt][data-place=trade] .empty-offer{
 position:relative;display:grid;place-items:center;min-width:126px;min-height:126px;
 border:2px dashed #91d2bf;border-radius:48% 48% 42% 42%;background:#ecfff473;
}
html body.ui2[data-mode=hunt][data-place=trade] .empty-offer::before{
 content:'';position:absolute;top:-14px;left:43%;width:22px;height:19px;
 border:2px dashed #91d2bf;border-bottom:0;border-radius:85% 85% 0 0;transform:rotate(-18deg);
}
html body.ui2[data-mode=hunt][data-place=trade] .offer-toys>button .toy{
 filter:drop-shadow(0 9px 6px #6d47663b);
}
html body.ui2[data-mode=hunt][data-place=trade] .trade-exchange{
 border:2px solid #fffdf8!important;background:linear-gradient(#fff8da,#ffe8a0)!important;
 box-shadow:0 4px 10px #68465636!important;
}
html body.ui2[data-mode=hunt][data-place=trade] .trade-tray{
 border:1px solid #fffdf8!important;background:#fff9eded!important;
 box-shadow:0 -4px 13px #6e4a5b19!important;
}
html body.ui2[data-mode=hunt][data-place=trade] .tray-toy.selected{
 border:2px solid #e7bd51!important;background:#ffe8a0!important;
 box-shadow:0 0 0 2px #fffdf7,0 5px 12px #b5814770!important;
}
@media(prefers-reduced-motion:no-preference){
 html body.ui2[data-mode=hunt][data-place=trade] .tray-toy.selected{animation:upgrade-select .34s cubic-bezier(.16,1.4,.4,1) both}
 @keyframes upgrade-select{0%{transform:translateY(3px) scale(.97)}70%{transform:translateY(-5px) scale(1.035)}100%{transform:translateY(-3px) scale(1)}}
}
html body.ui2[data-mode=hunt][data-place=trade] .trade-actions{
 border-top:1px solid #fffdf8!important;background:#fff9ede8!important;
}
html body.ui2[data-mode=hunt][data-place=trade] .trade-actions .accept.suggested{
 background:linear-gradient(#a6efd9,#70d7bb)!important;
 box-shadow:0 4px 10px #349f8470!important;
}
html body.ui2[data-mode=hunt][data-place=trade] .trade-actions .mat-symbol:disabled{opacity:.55!important;box-shadow:none!important}

/* The completed-task cheer is a small temporary toast, clear of the play area. */
html body.ui2 .v2q-cheer{
 top:calc(60px + var(--sat))!important;padding:4px 10px 4px 5px!important;
 border:1px solid #fffdf7!important;background:#fff9edf2!important;
 box-shadow:0 4px 14px #51365829!important;font-size:13px!important;
}
html body.ui2 .v2q-cheer img{width:24px!important;height:24px!important}

/* Room: real saved placements stay in front of the architectural backdrop. */
html body.ui2[data-place=home] .bedroom-scene{
 border:1px solid #fffaf0!important;box-shadow:0 8px 20px #5d405529!important;
}
html body.ui2[data-place=home] .room-display .display-toys .toy,
html body.ui2[data-place=home] .room-floor-toy .toy{
 filter:drop-shadow(0 5px 3px #6e523b55);
}
html body.ui2[data-place=home] .room-collection{
 border:1px solid var(--upgrade-edge)!important;
 background:#fff9edea!important;box-shadow:var(--upgrade-shadow)!important;
}
html body.ui2[data-place=home] .room-collection .tray-toy.selected{
 border-color:#e7bd51!important;background:var(--upgrade-butter)!important;
}

/* Town: let the independent shops remain the center of the world. */
html body.ui2[data-place=town] .town-goal,
html body.ui2[data-place=town] .town-collection{
 border:1px solid var(--upgrade-edge)!important;background:#fff9ede7!important;
 box-shadow:var(--upgrade-shadow)!important;backdrop-filter:blur(5px);
}
html body.ui2[data-place=town] .town-building .shop-building{
 filter:drop-shadow(0 12px 8px #4b355552)!important;
}
html body.ui2[data-place=town] .town-enter-label{
 border:1px solid #d9fff0!important;background:linear-gradient(#b8f2dc,#83dbc2)!important;
 box-shadow:0 4px 9px #318c7652!important;
}

/* Play: keep all real game buttons, show their live names over baked art labels. */
html body.ui2.gm-open .gm-screen{background:transparent!important;}
html body.ui2.gm-open .gm-screen .gm-grid{
 border:1px solid #fffdf7!important;background:#fff9eded!important;
 box-shadow:0 11px 26px #50375835!important;
}
html body.ui2.gm-open .gm-screen .gm-tile{position:relative!important;border-radius:19px!important}
html body.ui2.gm-open .gm-screen .gm-tile.gm-studio{
 box-shadow:inset 0 0 0 3px #ffe18d,0 0 0 2px #fffdf4!important;
}
html body.ui2.gm-open .gm-screen .gm-tile.gm-studio::before{
 content:'★ Featured';position:absolute;top:4px;left:5px;z-index:2;
 padding:2px 7px;border-radius:99px;background:#f45ca0;color:#fff;
 font-size:11px;font-weight:850;line-height:1.35;box-shadow:0 2px 5px #9d416f54;
}
html body.ui2.gm-open .gm-screen .gm-name{
 display:grid!important;place-items:center;position:absolute!important;z-index:2;
 left:13%!important;right:13%!important;bottom:2px!important;
 width:auto!important;min-height:23px;padding:1px 5px;
 border:1px solid #fffdf6;border-radius:999px;background:#fff9eded;
 box-shadow:0 2px 5px #5237522c;color:var(--upgrade-purple);
 font-size:clamp(12px,1.5vw,16px)!important;line-height:1.1!important;
 font-weight:900;text-align:center;
}
@media(min-width:760px) and (orientation:landscape){
 html body.ui2.gm-open .gm-screen{background:transparent!important;}
 html body.ui2[data-mode=hunt][data-place=trade] .hunter-trade{width:min(930px,calc(100vw - 120px))!important;margin-inline:auto}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-mat .offer-zone::after{height:48px;bottom:4%}
 html body.ui2[data-mode=hunt][data-place=trade] .offer-toys>button{width:clamp(170px,20vw,230px)!important;height:clamp(170px,20vw,230px)!important;flex-basis:clamp(170px,20vw,230px)!important}
 html body.ui2[data-mode=hunt][data-place=trade] .offer-toys>button .toy{width:100%!important;height:100%!important}
 html body.ui2[data-mode=hunt][data-place=trade] .offer-toys.yours:has(>button:nth-child(2)){
  display:flex!important;flex-wrap:nowrap!important;align-items:center;justify-content:center;gap:8px;top:0!important;
 }
 html body.ui2[data-mode=hunt][data-place=trade] .offer-toys.yours:has(>button:nth-child(2))>button{
  position:static!important;transform:none!important;flex:0 0 clamp(100px,14vw,150px)!important;
  width:clamp(100px,14vw,150px)!important;height:clamp(100px,14vw,150px)!important;
  min-width:0!important;min-height:0!important;max-height:none!important;aspect-ratio:1;padding:0!important;
 }
 html body.ui2[data-mode=hunt][data-place=trade] .offer-toys.yours:has(>button:nth-child(3)){
  display:flex!important;flex-wrap:nowrap!important;align-items:center;justify-content:center;gap:5px;top:0!important;
 }
 html body.ui2[data-mode=hunt][data-place=trade] .offer-toys.yours:has(>button:nth-child(3))>button{
  position:static!important;transform:none!important;flex:0 0 clamp(80px,10vw,118px)!important;
  width:clamp(80px,10vw,118px)!important;height:clamp(80px,10vw,118px)!important;
  min-width:0!important;min-height:0!important;max-height:none!important;aspect-ratio:1;padding:0!important;
 }
 html body.ui2.gm-open .gm-screen .gm-tile.gm-studio{scale:1.025}
}
@media(max-width:759px){
 html body.ui2[data-mode=hunt][data-place=trade]{background-position:58% center!important}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-mat .offer-zone::after{width:73%;height:24px;bottom:10%}
 html body.ui2[data-mode=hunt][data-place=trade] .trade-mat .offer-toys{top:clamp(25px,6dvh,55px)}
 /* Trading allows three real inventory items. Keep every selected toy inside
    the mobile offer panel instead of letting a wrapped third toy be clipped. */
 html body.ui2[data-mode=hunt][data-place=trade] .offer-toys.yours:has(>button:nth-child(2))>button{
  flex:0 0 calc((100% - 8px)/2)!important;width:calc((100% - 8px)/2)!important;
  height:auto!important;min-width:0!important;min-height:0!important;aspect-ratio:1;
 }
 html body.ui2[data-mode=hunt][data-place=trade] .offer-toys.yours:has(>button:nth-child(3)){
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(2,clamp(65px,20vw,85px));align-content:end;
  justify-items:center;gap:5px;top:0!important;padding-bottom:clamp(66px,10dvh,90px);
  box-sizing:border-box;
 }
 html body.ui2[data-mode=hunt][data-place=trade] .offer-toys.yours:has(>button:nth-child(3))>button{
  position:static!important;transform:none!important;flex:none!important;
  width:clamp(65px,20vw,85px)!important;height:clamp(65px,20vw,85px)!important;
  min-width:0!important;min-height:0!important;max-height:none!important;
  aspect-ratio:1;padding:0!important;
 }
 html body.ui2[data-mode=hunt][data-place=trade] .offer-toys.yours>button:nth-child(3){grid-column:1/-1}
 html body.ui2.gm-open .gm-screen .gm-name{min-height:17px;bottom:1px!important;font-size:10px!important}
 html body.ui2.gm-open .gm-screen .gm-tile.gm-studio::before{font-size:7px;padding:1px 4px}
}
/* The shop fills the available desktop height, keeping the 3:2 art near its native proportions. */
@media(min-width:1800px) and (min-height:1000px){
 html body.ui2[data-place=shop] #main{height:min(1050px,calc(100dvh - 330px))!important}
}

/* The welcome dumpling sits behind the bamboo rim, fully visible as the lid lifts. */
html .first-box .first-toy-window .first-box-toy{
 position:absolute;object-fit:contain;pointer-events:none;z-index:3;inset:-7% auto auto 6%;width:88%;height:88%;opacity:0;
 transform:translateY(12%) scale(.82);
 filter:drop-shadow(0 7px 6px #76515a50);
}
html .first-box>img.first-box-front{
 z-index:4;clip-path:none;filter:none;
}
html .first-box>img.first-box-lid{z-index:5}
html .first-box.opening:disabled{opacity:1!important}
html .first-box.opening .first-box-lid{animation:first-lid-contained 1.35s linear forwards}
html .first-box .first-toy-window{position:absolute;inset:0;z-index:3;pointer-events:none;visibility:hidden}
html .first-box.opening .first-toy-window{visibility:visible;animation:first-toy-peek 1.35s linear forwards}
html .first-box .first-toy-window .first-box-toy{opacity:1;transform:translateY(0) scale(.96);animation:none}
html .first-box.opening .first-box-glow{animation:first-premium-light 1.35s ease-out forwards}
html .first-box.opening .first-box-sparkles{animation:first-premium-sparkle 1.35s ease-out forwards}
/* The solid toy is uncovered by the lifting lid, rather than faded in. */
html .first-box .first-lid-window{position:absolute;inset:0;z-index:5;overflow:hidden;pointer-events:none;mask-image:linear-gradient(to bottom,transparent,#000 12%)}
html .first-box .first-lid-window .first-box-lid{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 8px 4px #8d6c6340)}
@keyframes first-lid-contained{
 0%,8%{transform:translateY(0);opacity:1}
 32%{transform:translateY(-16%);opacity:1}
 68%{transform:translateY(-52%);opacity:1}
 100%{transform:translateY(-90%);opacity:1}
}
@keyframes first-toy-peek{
 0%,8%{clip-path:polygon(0% 47.0%,3% 52.8%,10% 62.0%,20% 68.9%,30% 72.6%,40% 74.7%,50% 75.4%,60% 74.8%,70% 72.8%,80% 68.7%,90% 61.7%,97% 52.1%,100% 47.0%,100% 100%,0 100%)}
 32%{clip-path:polygon(0% 31.0%,3% 36.8%,10% 46.0%,20% 52.9%,30% 56.6%,40% 58.7%,50% 59.4%,60% 58.8%,70% 56.8%,80% 52.7%,90% 45.7%,97% 36.1%,100% 31.0%,100% 100%,0 100%)}
 68%{clip-path:polygon(0% -5.0%,3% 0.8%,10% 10.0%,20% 16.9%,30% 20.6%,40% 22.7%,50% 23.4%,60% 22.8%,70% 20.8%,80% 16.7%,90% 9.7%,97% 0.1%,100% -5.0%,100% 100%,0 100%)}
 100%{clip-path:polygon(0% -43.0%,3% -37.2%,10% -28.0%,20% -21.1%,30% -17.4%,40% -15.3%,50% -14.6%,60% -15.2%,70% -17.2%,80% -21.3%,90% -28.3%,97% -37.9%,100% -43.0%,100% 100%,0 100%)}
}

html .first-box{perspective:800px}
html .first-box>img.first-box-lid{transform-origin:50% 37%}
html .first-reveal-action{width:min(100%,340px);min-height:48px;animation:first-action-in .35s ease-out both}
html .first-reveal-action[hidden]{display:none!important}
@keyframes first-action-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){html .first-box.opening .first-box-lid{animation:none;opacity:0}html .first-box.opening .first-toy-window{animation:none;clip-path:none}html .first-box.opening .first-box-toy{animation:none;opacity:1;transform:translateY(0) scale(.96)}html .first-reveal-action{animation:none}}

/* Phone shop: all three shelves, treasure cabinet and actions fit above the dock. */
@media(max-width:759px){
 html body.ui2[data-place=shop]{overflow:hidden!important}
 html body.ui2[data-place=shop] .app{height:100dvh!important;min-height:0!important;overflow:hidden!important}
 html body.ui2[data-place=shop] #main{
  display:grid!important;grid-template-rows:48px minmax(0,1fr) 58px!important;
  gap:5px!important;width:100vw!important;max-width:none!important;
  height:calc(100dvh - var(--sat) - var(--sab) - 58px - var(--nav-clearance,90px) - 6px)!important;
  min-height:0!important;margin:0 0 0 calc(50% - 50vw)!important;
  padding:0!important;overflow:hidden!important;
 }
 html body.ui2[data-place=shop] .shop-header,
 html body.ui2[data-place=shop] .shop-footer{margin:0!important}
 html body.ui2[data-place=shop] .shop-scene{
  min-height:0!important;height:100%!important;margin:0!important;
  background-size:100% 100%!important;
 }
 html body.ui2[data-place=shop] .shop-scene .shelves{inset:16% 9% 26%!important;gap:1% 6%!important}
 html body.ui2[data-place=shop] .shop-scene .toy-card>.toy,
 html body.ui2[data-place=shop] .shop-scene .toy-card>.world-art,
 html body.ui2[data-place=shop] .shop-scene .toy-card>.dumpling-box-art{
  width:min(78%,clamp(40px,10dvh,72px))!important;
  height:clamp(40px,10dvh,72px)!important;
  max-width:72px!important;max-height:72px!important;
 }
 html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name{
  bottom:-8px!important;min-height:30px!important;
  width:min(116px,98%)!important;padding:2px 4px!important;
  font-size:clamp(10px,2.8vw,13px)!important;
 }
 html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name .price-tag{font-size:11px!important;min-height:12px}
 html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name .price-tag .shop-price-unit{font-size:10px}
 html body.ui2[data-place=shop] .tr-case{
  height:16%!important;min-height:58px!important;bottom:1.5%!important;
  padding:11px 9% 14px!important;
 }
 html body.ui2[data-place=shop] .tr-glass{bottom:14px}
 html body.ui2[data-place=shop] .tr-label{top:-14px;font-size:11px!important}
 html body.ui2[data-place=shop] .tr-case:after{bottom:4px;height:6px}
}

/* Friend offers use square sprite cells when adding a second toy. */
html body.ui2[data-mode=hunt][data-place=trade] .offer-toys.theirs:has(>button:nth-child(2)){
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 align-items:center!important;justify-items:center;gap:6px!important;
}
html body.ui2[data-mode=hunt][data-place=trade] .offer-toys.theirs:has(>button:nth-child(2))>button{
 position:static!important;transform:none!important;width:100%!important;height:auto!important;
 min-width:0!important;min-height:0!important;max-height:none!important;
 aspect-ratio:1!important;padding:0!important;animation:none!important;
}
html body.ui2[data-mode=hunt][data-place=trade] .offer-toys.theirs:has(>button:nth-child(2))>button .toy{
 width:100%!important;height:auto!important;aspect-ratio:1!important;flex:none!important;
}

/* Every sealed dumpling, including the top gift, shares the aligned bamboo rim. */
.store-dumpling-box .store-box-front{z-index:4;filter:none;pointer-events:none}
.store-dumpling-box .store-box-lid{z-index:5}
.store-dumpling-box>.store-box-toy{
 left:16%;top:-1%;width:68%;height:68%;
}
.store-box-opened .store-box-toy,
.open-dumpling.store-box-opening .store-box-toy{
 opacity:1!important;transform:none!important;animation:none!important;
}
html dialog#modal[open]:has(.store-dumpling-box){
 width:min(460px,calc(100vw - 24px))!important;height:fit-content!important;min-height:0!important;margin:auto!important;box-sizing:border-box;
 max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 28px)!important;
 padding:16px!important;gap:8px!important;overflow:hidden!important;
}
html #modal:has(.store-dumpling-box) .modal-top{margin:0 0 6px!important;gap:8px}
html #modal:has(.store-dumpling-box) .modal-top h2{font-size:clamp(19px,5.3vw,27px)!important;line-height:1.15}
html #modal:has(.store-dumpling-box) .dumpling-box-stage{
 display:flex;justify-content:center;align-items:center;
 height:auto!important;min-height:0!important;margin:0!important;padding:0!important;
}
html #modal:has(.store-dumpling-box) .store-dumpling-box{
 width:min(100%,320px,calc((100dvh - 230px)*1.059))!important;
}
html #modal:has(.store-dumpling-box) .dumpling-result{margin:6px 0!important;line-height:1.15}
html #modal:has(.store-dumpling-box) h2.dumpling-result{font-size:25px!important}
html #modal:has(.store-dumpling-box) .wide{margin:8px 0 0!important;min-height:48px}

/* Soften the current town behind game selection without blurring the cards. */
html body.ui2.gm-open .gm-screen{
 -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);clip-path:inset(0);
 bottom:max(var(--games-nav-clearance,100px),calc(var(--nav-gap,100px) + 8px))!important;
}
html body.ui2.gm-open .bottom-nav{z-index:60!important}

/* One quiet prompt per area; never place copy on the display pedestal. */
body[data-place=trade] .v2l-hand{display:none!important}
html body.ui2[data-mode=hunt][data-place=trade] .offer-zone:has(.empty-offer)::after{display:none!important}
html body.ui2[data-mode=hunt][data-place=trade] .offer-toys.yours:has(.empty-offer){top:0!important;align-self:center!important}
html body.ui2[data-mode=hunt][data-place=trade] .empty-offer{
 display:flex!important;flex-direction:column;align-items:center;justify-content:center;
 width:100%;min-width:0!important;min-height:0!important;padding:12px!important;gap:10px!important;
 border:0!important;background:transparent!important;box-shadow:none!important;
}
html body.ui2[data-mode=hunt][data-place=trade] .empty-offer::before{content:none!important}
html body.ui2[data-mode=hunt][data-place=trade] .empty-offer strong{font-size:clamp(12px,2.8vw,16px)!important;line-height:1.3;max-width:15em;text-wrap:balance;color:#8c7498}
html body.ui2[data-mode=hunt][data-place=trade] .trade-empty-plus{font-size:36px!important;line-height:1;color:#a0c8b9}
html body.ui2[data-mode=hunt][data-place=trade] .trade-shelf-title{position:static!important;flex:none;min-height:22px;line-height:1.3!important;font-size:clamp(13px,3.1vw,16px)!important;margin:0 0 8px;padding:2px 8px;text-align:center;color:#674576}
html body.ui2[data-mode=hunt][data-place=trade] .trade-tray{grid-template-rows:26px minmax(0,1fr)!important;row-gap:6px!important}
html body.ui2[data-mode=hunt][data-place=trade] .trade-shelf-title{min-height:0;height:24px;margin:0;padding:2px 8px}

/* The gesture guide enters after the travelling toy, never underneath it. */
html .first-meet-stage{isolation:isolate}
html .first-meet-stage #squish{z-index:1;isolation:isolate}
html .first-meet-stage .first-hand{z-index:7;opacity:1;transition:opacity .16s ease-out}
html .first-meet.guide-waiting .first-hand{opacity:0;visibility:hidden;animation:none}
@media(prefers-reduced-motion:reduce){html .first-meet-stage .first-hand{transition:none}}

/* Tablet shelves size their contents together; labels never cover the toys. */
@media(min-width:700px) and (max-width:1799px){
 html body.ui2[data-place=shop] .shop-scene{background-size:100% 100%!important}
 html body.ui2[data-place=shop] .shop-scene .shelves{inset:12% 12% 28%!important;padding:0!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px 3%!important;grid-template-rows:repeat(3,minmax(0,1fr))!important}
 html body.ui2[data-place=shop] .shop-scene .toy-card:nth-child(n){display:grid!important}
 html body.ui2[data-place=shop] .shop-scene .toy-card{display:grid!important;grid-template-rows:minmax(0,1fr) 37px!important;grid-template-columns:minmax(0,1fr)!important;gap:2px!important;padding:0!important;align-items:center!important;justify-items:center!important}
 html body.ui2[data-place=shop] .shop-scene .toy-card>.toy,
 html body.ui2[data-place=shop] .shop-scene .toy-card>.world-art,
 html body.ui2[data-place=shop] .shop-scene .toy-card>.dumpling-box-art{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;height:100%!important;max-width:115px!important;max-height:130px!important;min-height:0!important;object-fit:contain!important}
 html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name{position:relative!important;inset:auto!important;transform:none!important;min-height:37px!important;height:37px!important;width:100%!important;max-width:150px!important;padding:2px 4px!important;font-size:13px!important;line-height:1.05!important;gap:0!important;white-space:normal!important}
 html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name .price-tag{font-size:11px!important;min-height:12px!important;line-height:1!important}
 html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name .price-tag .shop-price-unit{font-size:10px!important}
 html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name .price-tag .game-coin{width:12px!important;height:12px!important}
 html body.ui2[data-place=shop] .tr-case{height:22%!important;min-height:0!important;max-height:110px!important;bottom:1%!important;width:min(48%,350px)!important;box-sizing:border-box!important;padding:8px 5% 14px!important}
 html body.ui2[data-place=shop] .tr-label{font-size:12px!important;top:-12px!important}
 html body.ui2[data-place=shop] .shop-try-sign{top:2%!important;font-size:12px!important;padding:3px 10px!important}
}
@media(min-width:700px) and (max-width:1799px) and (max-height:780px){
 html body.ui2[data-place=shop] .shop-scene .toy-card{grid-template-rows:minmax(0,1fr)!important;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)!important;gap:3px!important}
 html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name{height:auto!important;min-height:38px!important;max-height:100%!important;font-size:12px!important}
 html body.ui2[data-place=shop] .shop-scene .toy-card>.toy,
 html body.ui2[data-place=shop] .shop-scene .toy-card>.world-art,
 html body.ui2[data-place=shop] .shop-scene .toy-card>.dumpling-box-art{max-width:78px!important;max-height:76px!important}
}
@media(min-width:700px) and (max-width:1799px){
 html body.ui2[data-place=shop] .tr-toy{position:relative!important;min-width:0!important;min-height:0!important;max-height:100%!important}
 html body.ui2[data-place=shop] .tr-toy .toy,
 html body.ui2[data-place=shop] .tr-toy img{position:absolute!important;inset:0!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;width:100%!important;height:100%!important;object-fit:contain!important}
}
/* Bring to my room: a soft glow on the spot the new squishy just landed. */
.room-display.just-placed,.room-floor-toy.just-placed,.tray-toy.just-placed{animation:just-placed 2.4s ease-out}
@keyframes just-placed{0%,60%{filter:drop-shadow(0 0 10px #ffd56a) drop-shadow(0 0 4px #fff)}100%{filter:none}}
@media (prefers-reduced-motion:reduce){.room-display.just-placed,.room-floor-toy.just-placed{animation:none}}
/* Matching game: mystery rare silhouette (never matchable, never named). */
.hunter-mystery{display:flex;align-items:center;justify-content:center;gap:10px;margin:8px auto 0;padding:6px 14px 6px 8px;width:max-content;max-width:100%;border-radius:18px;background:#f3eafa;border:2px dashed #c9b0e3;font-weight:900;font-size:14px;color:#6b4c8c}
.hunter-mystery-toy{position:relative;display:block;width:52px;height:52px;flex:none}
.hunter-mystery-toy .toy{width:100%;height:100%;filter:brightness(0) opacity(.55)!important;pointer-events:none}
.hunter-mystery-toy b{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:24px;text-shadow:0 2px 4px #0006}
/* Play again: just a circular-arrow icon. */
.btn-replay{display:inline-grid!important;place-items:center;min-width:64px;padding-left:18px!important;padding-right:18px!important}
.btn-replay .replay-icon{width:30px;height:30px;display:block}
.shuffle-next.btn-replay{width:auto!important;margin-left:auto;margin-right:auto}

/* Welcome uses the daily gift's intact lid tilt and slide, with the same resting prize. */
html .first-box .first-lid-window{overflow:visible;mask-image:none}
html .first-box .first-lid-window .first-box-lid{transform-origin:55% 38%}
html .first-box.opening .first-box-lid{animation:store-lid-peek 2.3s cubic-bezier(.25,.62,.24,1) forwards}
html .first-box.opened .first-box-lid{display:none}
html .first-box .first-toy-window .first-box-toy{inset:-1% auto auto 16%;width:68%;height:68%;transform:none;animation:none;opacity:1}
html .first-box.opening .first-toy-window{visibility:visible;animation:none;clip-path:none}
html .first-box.opening .first-box-glow{animation:store-box-glow 2.3s ease-out forwards}
html .first-box.opening .first-box-sparkles{animation:first-box-twinkle 2.3s .15s ease-out forwards}
@media(prefers-reduced-motion:reduce){html .first-box.opening .first-box-lid{animation:none;opacity:0}html .first-box.opening .first-box-glow{animation:none;opacity:.5}html .first-box.opening .first-box-sparkles{animation:none;opacity:0}}

/* Shop prices sit beside the toy rather than adding a second line to its name. */
html body.ui2[data-place=shop] .shop-scene .toy-card>.price-tag{
 position:absolute!important;z-index:5!important;top:18%!important;right:8%!important;bottom:auto!important;left:auto!important;transform:none!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;white-space:nowrap!important;
 min-height:24px!important;width:auto!important;min-width:32px!important;max-width:none!important;margin:0!important;padding:3px 6px!important;
 border:1px solid #fffdf6!important;border-radius:99px!important;background:#fff3cc!important;box-shadow:0 2px 4px #70534020!important;
 color:#705340!important;font-size:12px!important;line-height:1!important;pointer-events:none;
}
html body.ui2[data-place=shop] .shop-scene .toy-card>.price-tag .game-coin,
html body.ui2[data-place=shop] .shop-scene .toy-card>.price-tag .pz-coin{width:17px!important;height:17px!important;flex:none!important}
html body.ui2[data-place=shop] .shop-scene .toy-card>.price-tag .shop-price-unit{display:none!important}
html body.ui2[data-place=shop] .shop-scene .toy-card .toy-name{min-height:26px!important}

html body.ui2[data-place=shop] .shop-scene.shop-color-7{--shop-art:url('./assets/fidgets/shop-interior.webp');background-image:url('./assets/fidgets/shop-interior.webp')!important;background-position:center!important;background-size:100% 100%!important}
@media(min-width:761px){html body.ui2[data-place=shop] .shop-scene.shop-color-7 .toy-card>.price-tag{left:20%!important;right:auto!important;top:0!important}}
/* Fidget Shop fit (Mac, 10/18): each toy stands on its plank under the shelf above, its price tag stays readable on the plank's edge,
   the sign is big enough to read, and a pop-it rug sits under the basket. */
@media(min-width:761px) and (min-aspect-ratio:1/1){
 /* wide screens get the wide fidget shop, drawn on the Toy Shop's layout, so it uses the Toy Shop's shelf rows too
    (instead of the tall phone picture stretched sideways); upright iPads keep the tall picture and its tuned rows */
 html body.ui2[data-place=shop] .shop-scene.shop-color-7,html body.ui2[data-place=shop] .shop-scene.shop-color-7::before{--shop-art:url('./assets/fidgets/shop-interior-wide.webp');background-image:url('./assets/fidgets/shop-interior-wide.webp')!important;background-size:100% 100%!important;background-position:center!important}
 html body.ui2[data-place=shop] #main .shop-scene.shop-color-7.shop-color-7{--r1:32;--p1:34;--h1:12;--r2:48.5;--p2:50.5;--h2:12.5;--r3:62;--p3:64.5;--h3:10;--cA:28%;--cB:50%;--cC:72%}
 html body.ui2[data-place=shop] .shop-scene.shop-color-7.shop-color-7 .shelves{inset:12% 12% 28%!important;row-gap:5px!important}
}
@media(min-width:761px){
 html body.ui2[data-place=shop] .shop-scene.shop-color-7 .toy-card .toy-name,
 html body.ui2[data-place=shop] .shop-scene.shop-color-7 .toy-card .price-tag{z-index:6!important}
 html body.ui2[data-place=shop]:has(.shop-scene.shop-color-7) .shop-header h1.shop-logo-heading{height:58px!important;margin-top:0!important}
}
#sq-basket .sqb-basket:has(>.sqb-back[src*="baskets/fidget"]){position:relative}
#sq-basket .sqb-basket:has(>.sqb-back[src*="baskets/fidget"])::before{content:"";position:absolute;left:50%;bottom:-50%;width:175%;aspect-ratio:2.7;translate:-50% 0;z-index:-1;background:url('./assets/fidgets/popit-rug.webp') center/contain no-repeat;pointer-events:none}
