/* A toy's personality should read as a small moment, not another task to complete. */
.sb-intro{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;color:#6b5082;font-size:clamp(11px,1.55vw,15px);line-height:1.2;text-align:center;margin:2px auto 0}
.sb-intro button{border:1px solid #e0cbed;border-radius:999px;background:#fff7ed;color:#61437a;font:inherit;font-weight:800;padding:5px 10px;cursor:pointer}
.sb-intro button:focus-visible{outline:3px solid #8254bd;outline-offset:2px}
.sb-note{position:absolute;z-index:9;left:50%;top:7%;transform:translateX(-50%);max-width:86%;padding:7px 13px;border:2px solid #fff;border-radius:999px;background:#fff8ebf2;color:#64457c;font-size:clamp(13px,1.7vw,17px);font-weight:800;text-align:center;white-space:nowrap;box-shadow:0 5px 13px #5f477322;pointer-events:none;animation:sb-note-in .25s ease-out both}
.sb-note.sb-sleep{background:#eee4ff}.sb-note.sb-stretch{background:#e4fbff}
.sb-personality.sb-peeking .toy,.sb-personality.sb-peeking canvas{animation:sb-peek .55s ease-out}
.sb-personality.sb-drowsy .toy,.sb-personality.sb-drowsy canvas{animation:sb-doze 1.7s ease-in-out}
.sb-personality.sb-jelly-wide .toy,.sb-personality.sb-jelly-wide canvas{animation:sb-wiggle .7s ease-out}
.sb-friend-memory{display:flex;align-items:center;gap:11px;margin:8px auto 5px;padding:7px 12px;width:min(94%,380px);border:2px solid #fff;border-radius:17px;background:#fff8edec;color:#62447b;box-shadow:0 5px 12px #6c4c7920}
.sb-friend-memory>span:last-child{display:grid;gap:2px;min-width:0;font-size:clamp(11px,1.5vw,15px);line-height:1.15}.sb-friend-memory strong{font-size:.86em;color:#8357a3}.sb-friend-memory .sb-friend-art{display:grid;place-items:center;flex:none;width:45px;height:45px}.sb-friend-art .toy{width:45px!important;height:45px!important}
.trade-friend-header .sb-gift-toy{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:2px solid #fff;border-radius:50%;background:#fff8eb;box-shadow:0 3px 8px #6c4c7922;pointer-events:none}.sb-gift-toy .toy{width:38px!important;height:38px!important}
.hunter-trade.trade-rest-screen.sb-has-memory{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px 16px!important}
.trade-rest-screen.sb-has-memory .sb-friend-memory{flex:0 0 auto;width:min(90%,350px);min-height:0;margin:0 auto;padding:6px 10px}
.trade-rest-screen.sb-has-memory .trade-rest-visual{margin:3px auto!important}
.sb-room-bubble{position:absolute;z-index:15;transform:translate(-50%,-100%);max-width:min(55%,260px);padding:8px 11px;border:2px solid #fff;border-radius:18px;background:#fff9edef;color:#64457c;font-size:clamp(11px,1.4vw,15px);font-weight:800;text-align:center;line-height:1.15;box-shadow:0 5px 12px #6c4c7922;pointer-events:none;animation:sb-note-in .3s ease-out both}
/* Room toys should read as characters even before their close-up. */
html body.ui2[data-place=home] .room-display .display-toys{gap:0!important;align-items:end;justify-content:center}
html body.ui2[data-place=home] .room-display[data-sb-count="1"] .display-toys,
html body.ui2[data-place=home] .room-display[data-sb-count="2"] .display-toys{max-height:none!important}
html body.ui2[data-place=home] .room-display[data-sb-count="1"] .display-toys .toy,
html body.ui2[data-place=home] .room-display[data-sb-count="2"] .display-toys .toy{width:clamp(72px,10vw,106px)!important;height:clamp(72px,10vw,106px)!important;flex:0 0 auto}
html body.ui2[data-place=home] .room-display[data-sb-count="2"] .display-toys .toy{margin-inline:-5px}
html body.ui2[data-place=home] .room-display[data-sb-count="3"] .display-toys .toy,
html body.ui2[data-place=home] .room-display[data-sb-count="4"] .display-toys .toy{width:clamp(51px,6vw,77px)!important;height:clamp(51px,6vw,77px)!important}
html body.ui2[data-place=home] .room-display .display-toys{pointer-events:auto}
html body.ui2[data-place=home] .room-display .display-toys .toy{pointer-events:auto!important;cursor:pointer}
html body.ui2[data-place=home] .room-display.theme-gingham>.sb-basket-front{position:absolute;inset:0;z-index:2;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none}
html body.ui2[data-place=home] .room-display.theme-gingham .display-label{z-index:3}
html body.ui2[data-place=home] .room-display[data-sb-count="2"],html body.ui2[data-place=home] .room-display[data-sb-count="3"],html body.ui2[data-place=home] .room-display[data-sb-count="4"],html body.ui2[data-place=home] .room-display[data-sb-count="5"],html body.ui2[data-place=home] .room-display[data-sb-count="6"]{z-index:5}
html body.ui2[data-place=home] .room-display .display-toys .toy.sb-friend-selected{position:relative;z-index:2;filter:drop-shadow(0 0 9px #fa76b9) drop-shadow(0 3px 2px #fff)}
.sb-friend-picker{position:absolute;z-index:25;left:50%;bottom:3%;translate:-50% 0;display:flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;width:max-content;max-width:calc(100% - 16px);min-height:44px;padding:5px 7px 5px 11px;border:2px solid #fff;border-radius:18px;background:#fff9eff5;color:#65407c;box-shadow:0 5px 16px #5d41634d;font-size:clamp(12px,1.6vw,15px);font-weight:800;line-height:1.12;text-align:center}.sb-friend-picker span{min-width:0}.sb-friend-picker button{flex:none;min-height:32px;padding:4px 8px;border:1px solid #fff;border-radius:12px;background:#e7d7f3;color:#65407c;font:inherit;cursor:pointer}.sb-friend-picker button:last-child{width:31px;padding:0;border-radius:50%;font-size:21px;line-height:1}.sb-friend-picker button:focus-visible{outline:3px solid #67458e;outline-offset:2px}
@media(max-width:760px){.sb-friend-picker{top:2%;bottom:auto}}
.sb-pair-play{position:absolute;z-index:17;translate:-50% 0;min-width:69px;min-height:37px;padding:5px 10px;border:2px solid #fffdf8;border-radius:999px;background:linear-gradient(#ffe8f1,#ffd0e6);color:#68417c;font-family:inherit;font-size:clamp(12px,1.5vw,16px);font-weight:800;line-height:1.1;box-shadow:0 3px 0 #d9a8c7,0 6px 10px #64466340;cursor:pointer;white-space:nowrap}
.sb-pair-play span{color:#e56da9;font-size:1.25em}.sb-pair-play:active{translate:-50% 2px;box-shadow:0 1px 0 #d9a8c7}
.sb-pair-play.sb-first-pair{background:linear-gradient(#ffeff7,#ffcde5);box-shadow:0 3px 0 #d9a8c7,0 0 0 5px #fff9edbd,0 7px 17px #744e7840}
.sb-room-guide{position:absolute;z-index:17;translate:-50% 0;box-sizing:border-box;max-width:min(58%,250px);padding:7px 12px;border:2px solid #fff;border-radius:18px;background:#fff9edf2;color:#65427c;font-size:clamp(12px,1.5vw,16px);font-weight:800;line-height:1.15;text-align:center;text-wrap:balance;box-shadow:0 4px 12px #51396738;pointer-events:none}
.sb-room-guide::after{content:'';position:absolute;left:calc(50% - 7px);bottom:-9px;width:12px;height:12px;rotate:45deg;border-right:2px solid #fff;border-bottom:2px solid #fff;background:#fff9ed}
/* The latest discovered picture hangs in the room; the album keeps every special pair. */
.sb-keepsake-frame{position:absolute;z-index:16;right:6%;top:23%;display:grid;place-items:center;width:clamp(77px,9vw,112px);height:clamp(78px,9vw,112px);padding:5px;border:3px solid #d8ab78;border-radius:9px;background:linear-gradient(130deg,#ffe4ad,#d7aa7d);box-shadow:inset 0 1px 2px #fff8,0 5px 0 #b98a69,0 8px 14px #76564455;transform:rotate(4deg);cursor:pointer;touch-action:manipulation}
.sb-keepsake-paper{display:grid;grid-template-rows:1fr auto;align-items:center;justify-items:center;width:100%;height:100%;padding:3px 2px 2px;border:2px solid #fff;border-radius:3px;background:linear-gradient(#f6e6ff,#fff6e2);box-shadow:0 1px 3px #704d6055}
.sb-keepsake-friends{display:flex;align-items:center;justify-content:center;width:100%;min-width:0}.sb-keepsake-friends>.toy{width:41%!important;height:auto!important;aspect-ratio:1;flex:none;filter:drop-shadow(0 2px 2px #61477755)}.sb-keepsake-friends>span:not(.toy){font-size:18px;color:#e475ab;margin-inline:-2px;align-self:start}
.sb-keepsake-caption{font-size:clamp(10px,1.2vw,13px);font-weight:800;line-height:1;color:#734f83}.sb-keepsake-count{position:absolute;top:-11px;right:-10px;display:grid;place-items:center;min-width:25px;height:25px;padding:0 3px;border:2px solid #fff;border-radius:50%;background:#f78dc4;color:#fff;font-size:13px;font-weight:900;box-shadow:0 2px 5px #674c6044}
.sb-keepsake-frame:focus-visible,.sb-album-dialog button:focus-visible{outline:3px solid #67458e;outline-offset:3px}
.sb-album-dialog{box-sizing:border-box;width:min(630px,calc(100vw - 22px));max-height:calc(100dvh - 20px);margin:auto;padding:0;border:4px solid #fff;border-radius:30px;background:#fff9ef;color:#593c73;box-shadow:0 8px 0 #d4b0c5,0 24px 65px #39234a88;overflow:hidden}
.sb-album-dialog::backdrop{background:#402d5b9c;backdrop-filter:blur(6px)}
.sb-album-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;box-sizing:border-box;min-height:min(590px,calc(100dvh - 25px));padding:25px 18px;text-align:center;background:radial-gradient(circle at 50% 48%,#f2e5ff,#fff9ed 72%)}
.sb-album-card>small{font-size:clamp(12px,1.6vw,16px);font-weight:850;letter-spacing:.06em;text-transform:uppercase;color:#a16ba2}.sb-album-card h2{margin:0;font-size:clamp(25px,4vw,38px);line-height:1.05}.sb-album-close{position:absolute;top:14px;right:16px;z-index:2;display:grid;place-items:center;width:43px;height:43px;border:2px solid #fff;border-radius:50%;background:#f1e6fb;color:#654079;font-size:31px;line-height:1;cursor:pointer}
.sb-album-gallery{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:8px;width:100%;max-width:540px}.sb-album-arrow{display:grid;place-items:center;width:42px;height:42px;padding:0;border:2px solid #fff;border-radius:50%;background:#f8e8f7;color:#63467c;font-size:35px;line-height:1;cursor:pointer}.sb-album-arrow:disabled{opacity:.35;cursor:default}
.sb-album-photo{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:260px;padding:20px 15px 13px;border:3px solid #fff;border-radius:7px;background:linear-gradient(#ebdcff,#fff0dc 76%);box-shadow:0 6px 0 #dec0d2,0 12px 18px #704f7140;transform:rotate(-2deg);cursor:pointer}
.sb-album-art{display:flex;align-items:center;justify-content:center;width:100%;gap:3px}.sb-album-art>.toy{width:min(42%,185px)!important;height:auto!important;aspect-ratio:1;flex:none;filter:drop-shadow(0 9px 5px #654f6340)}.sb-album-art>span:not(.toy){font-size:clamp(24px,5vw,42px);color:#ea79ae;align-self:start}.sb-album-caption{font-size:clamp(15px,2vw,21px);font-weight:850;line-height:1.1;text-wrap:balance}.sb-album-position{margin:8px 0 0;font-size:13px;font-weight:800;color:#91759b}.sb-album-replay{min-height:48px;padding:10px 22px;border:2px solid #fff;border-radius:22px;background:#85ddca;color:#285e5b;font:inherit;font-size:clamp(15px,2vw,19px);font-weight:850;box-shadow:0 4px 0 #65b8a4;cursor:pointer}
@media(min-width:901px){.sb-keepsake-frame{left:42%;right:auto;top:21%}}
@media(min-width:761px) and (max-width:900px){.sb-keepsake-frame{top:10%}}
@media(max-width:760px){.sb-keepsake-frame{right:3%;top:16%;width:77px;height:77px}.sb-album-card{min-height:min(490px,calc(100dvh - 25px));padding:55px 8px 18px;gap:7px}.sb-album-gallery{grid-template-columns:32px minmax(0,1fr) 32px;gap:2px}.sb-album-arrow{width:32px;height:32px;font-size:29px}.sb-album-photo{min-height:210px;padding:11px 6px 8px}.sb-album-art>.toy{width:43%!important}}
@media(max-height:620px){.sb-album-card{min-height:0;gap:5px;padding:46px 8px 13px}.sb-album-card h2{font-size:clamp(21px,6vw,27px)}.sb-album-close{top:8px;right:10px;width:37px;height:37px;font-size:27px}.sb-album-photo{min-height:145px;padding-block:6px}.sb-album-art>.toy{width:min(40%,100px)!important}.sb-album-card>small{display:none}}
@keyframes sb-first-pair{50%{scale:1.06;filter:brightness(1.04)}}
.sb-pair-play:focus-visible,.sb-pair-dialog button:focus-visible{outline:3px solid #67458e;outline-offset:3px}
.sb-pair-dialog{box-sizing:border-box;width:min(690px,calc(100vw - 20px));max-height:calc(100dvh - 24px);margin:auto;padding:0;border:4px solid #fff;border-radius:32px;background:#fff8ed;color:#5a3674;box-shadow:0 9px 0 #d3a8c5,0 25px 65px #38224a91;overflow:hidden}
.sb-pair-dialog::backdrop{background:#402d5b9c;backdrop-filter:blur(6px)}
.sb-pair-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;box-sizing:border-box;min-height:min(620px,calc(100dvh - 30px));padding:24px 26px 26px;text-align:center;background:radial-gradient(circle at 50% 55%,#f0eaff 0,#fff8ed 65%)}
.sb-pair-card>small{font-size:clamp(12px,1.5vw,16px);font-weight:800;color:#a46a9e;text-transform:uppercase;letter-spacing:.07em}
.sb-pair-card h2{margin:0;font-size:clamp(25px,4vw,39px);line-height:1.05;text-wrap:balance}
.sb-pair-line{margin:0;min-height:2.3em;font-size:clamp(15px,2vw,21px);font-weight:800;line-height:1.15;text-wrap:balance}
.sb-pair-close{position:absolute;top:14px;right:16px;z-index:2;display:grid;place-items:center;width:43px;height:43px;border:2px solid #fff;border-radius:50%;background:#f1e6fb;color:#654079;font-size:31px;line-height:1;cursor:pointer}
.sb-pair-stage{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;min-height:250px;padding:14px 2px;border-radius:30px;background:radial-gradient(ellipse at 50% 80%,#ffeac9 0,#ffeac900 60%)}
.sb-pair-toy{display:grid;place-items:center;flex:0 1 230px;width:clamp(110px,30vw,230px);height:clamp(110px,30vw,230px);padding:0;border:0;background:transparent;cursor:pointer;touch-action:manipulation;filter:drop-shadow(0 13px 10px #71587945)}
.sb-pair-target{border-radius:50%;background:radial-gradient(circle,#fff2bb99,#fff2bb00 70%)}.sb-pair-dialog:not(.sb-pair-acting) .sb-pair-target{animation:sb-target-breathe 2s ease-in-out infinite}.sb-pair-target.sb-pair-pressing{background:radial-gradient(circle,#ffe59fcc,#fff2bb00 72%)}.sb-pair-target.sb-pair-pressing .toy{scale:.94}.sb-pair-target .toy{rotate:var(--sb-bend,0deg);transition:rotate .12s ease,scale .12s ease}.sb-pair-target.sb-pair-nudge{animation:sb-target-nudge .4s ease-out}@keyframes sb-target-breathe{50%{filter:drop-shadow(0 13px 10px #71587945) drop-shadow(0 0 13px #ffe1a4)}}@keyframes sb-target-nudge{25%{translate:-6px 0}60%{translate:6px 0}}
.sb-pair-toy .toy{width:100%!important;height:100%!important;pointer-events:none}.sb-pair-heart{font-size:clamp(26px,5vw,46px);color:#ec7db2;align-self:start;margin-top:10px}
.sb-pair-accent{position:absolute;top:8%;left:50%;z-index:1;color:#ee8bb8;font-size:clamp(28px,5vw,44px);font-weight:900;letter-spacing:.04em;opacity:0;pointer-events:none}.sb-pair-dialog.sb-pair-acting .sb-pair-accent{animation:sb-pair-accent 1.35s ease-out both}@keyframes sb-pair-accent{0%,25%{opacity:0;transform:translate(-50%,18px) scale(.5)}50%{opacity:1;transform:translate(-50%,-6px) scale(1.1)}80%{opacity:1;transform:translate(-50%,-14px) scale(1)}100%{opacity:0;transform:translate(-50%,-24px) scale(.9)}}
.sb-pair-dialog[data-scene="bread-butter"] .sb-pair-accent{left:73%;top:0;color:#af8bd0}
.sb-pair-again{min-height:51px;padding:10px 24px;border:2px solid #fff;border-radius:22px;background:#85ddca;color:#285e5b;font-family:inherit;font-size:clamp(16px,2vw,20px);font-weight:800;line-height:1.1;box-shadow:0 4px 0 #65b8a4;cursor:pointer}
.sb-pair-hint{margin:0;font-size:12px;font-weight:700;color:#896f99}
.sb-pair-stage{position:relative}.sb-capture-photo{position:absolute;z-index:4;left:50%;top:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;box-sizing:border-box;width:clamp(150px,32vw,245px);height:clamp(145px,29vw,220px);padding:13px 10px 9px;border:5px solid #fff;border-radius:8px;background:linear-gradient(#eee1ff,#fff0df);box-shadow:0 8px 0 #dbbed2,0 18px 24px #60456855;transform:translate(-50%,-50%) rotate(-5deg);pointer-events:none;animation:sb-photo-appear .48s cubic-bezier(.2,1.5,.4,1) both}.sb-capture-art{display:flex;align-items:center;justify-content:center;width:100%;height:75%}.sb-capture-art>.toy{width:44%!important;height:auto!important;aspect-ratio:1;flex:none}.sb-capture-art>span:not(.toy){font-size:28px;color:#e875ab}.sb-capture-caption{font-size:clamp(12px,1.5vw,17px);font-weight:850;white-space:nowrap;color:#704a86}.sb-pair-dialog.sb-capturing .sb-pair-card::after{content:'';position:absolute;z-index:5;inset:0;background:#fff;pointer-events:none;animation:sb-shutter .45s ease-out both}.sb-photo-flight{position:fixed;z-index:10000;margin:0;transform:none;animation:none;transform-origin:center;pointer-events:none}.sb-keepsake-frame.sb-frame-waiting{visibility:hidden}.sb-keepsake-frame.sb-frame-arriving{animation:sb-frame-pop .6s ease-out}.sb-keepsake-frame.sb-frame-arriving:focus-visible{outline:3px solid #67458e}
@keyframes sb-photo-appear{from{opacity:0;transform:translate(-50%,-50%) scale(.65) rotate(8deg)}to{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(-5deg)}}@keyframes sb-shutter{0%{opacity:.85}100%{opacity:0}}@keyframes sb-frame-pop{0%{scale:.7}55%{scale:1.13}100%{scale:1}}
@media(max-width:760px){
 html body.ui2[data-place=home] .room-display[data-sb-count="1"] .display-toys .toy,
 html body.ui2[data-place=home] .room-display[data-sb-count="2"] .display-toys .toy{width:clamp(62px,18vw,78px)!important;height:clamp(62px,18vw,78px)!important}
 html body.ui2[data-place=home] .room-display[data-sb-count="2"] .display-toys .toy{margin-inline:-7px}
 .sb-pair-play{min-height:34px;min-width:65px;padding:4px 8px;font-size:12px}
 .sb-pair-card{min-height:min(480px,calc(100dvh - 30px));gap:6px;padding:56px 12px 18px}
 .sb-pair-stage{min-height:190px;padding:3px 0}
 .sb-pair-toy{flex-basis:44%;width:min(42vw,170px);height:min(42vw,170px)}
}
@media(max-height:620px){.sb-pair-card{min-height:0;padding-block:10px;gap:3px}.sb-pair-stage{min-height:0;padding:0}.sb-pair-toy{width:min(31vh,160px);height:min(31vh,160px)}.sb-pair-hint{display:none}}
@keyframes sb-note-in{from{opacity:0;translate:0 7px}to{opacity:1;translate:0 0}}
@keyframes sb-peek{0%{transform:translateY(8px) scale(.94)}45%{transform:translateY(3px) scale(.97)}100%{transform:none}}
@keyframes sb-doze{0%,100%{transform:none}45%{transform:translateY(8px) rotate(-4deg) scale(.96)}}
@keyframes sb-wiggle{0%,100%{transform:none}35%{transform:scale(1.09,.94)}65%{transform:scale(.96,1.04)}}
@media (max-width:600px){.sb-intro{max-width:90%;font-size:12px}.sb-intro button{padding:4px 8px}.sb-friend-memory{width:90%;margin-top:6px}.sb-room-bubble{max-width:60%;font-size:11px}}
@media (prefers-reduced-motion:reduce){.sb-note,.sb-room-bubble,.sb-pair-play.sb-first-pair,.sb-personality.sb-peeking .toy,.sb-personality.sb-peeking canvas,.sb-personality.sb-drowsy .toy,.sb-personality.sb-drowsy canvas,.sb-personality.sb-jelly-wide .toy,.sb-personality.sb-jelly-wide canvas,.sb-capture-photo,.sb-pair-dialog.sb-capturing .sb-pair-card::after,.sb-keepsake-frame.sb-frame-arriving,.sb-pair-dialog.sb-pair-acting .sb-pair-accent,.sb-pair-target{animation:none!important}}
/* room scene popup in pictures (Mac, 10/23) */
.sb-pair-dialog .sb-pair-line{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;min-height:0}
.sb-pair-dialog .sb-pair-again{min-width:120px;font-size:34px;line-height:1}
.sb-pair-dialog .sb-pair-pic{display:flex;justify-content:center;margin:0}
.sb-pair-dialog .sb-pair-pic img{width:44px;height:44px;object-fit:contain}
