:root{color-scheme:light;font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif;color:#302342;background:#fcf6ec}*{box-sizing:border-box}body{margin:0;padding:30px}button,a,input{touch-action:manipulation}button{font:inherit;font-weight:700;border:1.5px solid #b69bc9;border-radius:13px;padding:11px 16px;background:#fffaf1;color:#302342;cursor:pointer}button:hover{background:#fff0b0}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #8552bf;outline-offset:4px}button[aria-pressed=true]{background:#ffda6a;border-color:#302342;box-shadow:0 3px #302342}button:disabled{opacity:.45;cursor:default}.playground{max-width:1120px;margin:auto}header{display:flex;align-items:center;justify-content:space-between;gap:30px;margin:15px 0 28px}h1{font-size:clamp(28px,4vw,46px);line-height:1.1;margin:8px 0}header p{margin:10px 0;font-size:18px}.eyebrow{font-size:12px;font-weight:900;letter-spacing:.15em}.sticker{background:#ffda6a;border:2px solid #302342;border-radius:12px;padding:18px;transform:rotate(5deg);box-shadow:4px 5px #302342;font-weight:bold;white-space:nowrap}.toolbar{display:flex;justify-content:space-between;gap:12px;margin-bottom:16px}.packs{display:flex;gap:10px}.desktop{position:relative;height:clamp(580px,72vh,680px);overflow:clip;border:2px solid #c6acd7;border-radius:24px;background:radial-gradient(ellipse at 75% 90%,#efd5f0,transparent 65%),linear-gradient(140deg,#d8efed,#fcf2d9);box-shadow:0 6px #d9c8e3;isolation:isolate}.desktop-bar{height:40px;background:#ffffff80;display:flex;justify-content:space-between;padding:10px 18px;font-size:12px;color:#64556d}.desktop-bar i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#c3a2cc;margin-right:5px}.desktop-bar i:last-child{margin-right:12px}.sample-window{position:absolute;top:80px;left:5%;padding:26px;background:#fffdf4c9;border:1px solid #fff;border-radius:18px;box-shadow:0 9px 30px #51415b0a;transform:rotate(-3deg);color:#847289;font-size:13px}.sample-window>span{font-size:10px;font-weight:bold;letter-spacing:.12em}.desktop-note{position:absolute;right:6%;top:83px;font-size:16px;line-height:1.5;transform:rotate(3deg);color:#76607f;text-align:center}.dock{position:absolute;width:480px;aspect-ratio:720/479;left:0;top:0;user-select:none;transition:transform .35s cubic-bezier(.2,.8,.2,1);will-change:transform}.dock.dragging{transition:none}.dock-art{width:100%;height:100%;pointer-events:none;filter:drop-shadow(0 12px 9px #40204925)}.resident{position:absolute;top:9%;width:29%;padding:0;border:0;background:none!important;z-index:2}.resident img{display:block;width:100%;pointer-events:none}.first{left:24%}.second{left:48%;width:27%;top:7%}.hotspot{position:absolute;border:0;background:transparent!important;border-radius:35%;padding:0;z-index:3}.hotspot{cursor:pointer;-webkit-tap-highlight-color:transparent}.hotspot:hover{background:radial-gradient(closest-side,#fff6b070,#fff6b026 62%,transparent)!important}.hotspot:active{background:radial-gradient(closest-side,#fffbd0a0,#fff6b030 62%,transparent)!important}.hotspot:focus-visible{outline:2px solid #fff3a0;outline-offset:2px;background:radial-gradient(closest-side,#fff6b055,transparent)!important}@media(hover:none){.hotspot:hover{background:transparent!important}}.mail{left:21%;top:3%;width:17%;height:30%}.folders{left:65%;top:6%;width:20%;height:27%}.music{left:4%;top:28%;width:20%;height:25%}.voice{left:82%;top:30%;width:15%;height:24%}.games{left:14%;top:51%;width:20%;height:27%}.reminders{left:45%;top:67%;width:16%;height:20%}.striking{left:76%;top:47%;width:15%;height:29%}.restore{position:absolute;z-index:6;box-shadow:0 4px #302342;background:#ffda6a;border:2px solid #302342}.restore[hidden]{display:none}.controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px;margin:24px 0}.controls>div{display:flex;align-items:center;gap:7px}.controls span,.controls label{font-size:13px;font-weight:bold}.controls button{font-size:12px;padding:9px 12px}.controls label{display:flex;align-items:center;gap:10px}input{accent-color:#8453ad;width:110px}.explanation{display:flex;gap:16px;background:#302342;color:#fff8e8;border-radius:20px;padding:22px 26px;min-height:116px}.note-icon{color:#ffda6a;font-size:30px}h2{margin:0 0 6px;font-size:19px}.explanation p{margin:0;line-height:1.6;font-size:15px}footer{display:flex;justify-content:space-between;align-items:center;gap:25px;padding:22px 0;font-size:13px;color:#6f5d7c}footer p{max-width:550px}a{color:#604083;font-weight:bold;white-space:nowrap}.impact{display:none;position:absolute;left:78%;top:48%;font-size:50px;color:#fff5a7;z-index:4;pointer-events:none}.dock.attacking .impact{display:block;animation:pop .6s both}.dock.attacking .attacker{animation:lunge .65s both}.dock.special .impact{color:#fca8ff;font-size:80px}@keyframes pop{0%{transform:scale(.2);opacity:0}40%{transform:scale(1.3);opacity:1}100%{transform:scale(.8);opacity:0}}@keyframes lunge{40%{transform:translate(18%,-5%) rotate(5deg)}80%{transform:translate(0)}}@media(max-width:600px){body{padding:16px}header{margin-top:0}.sticker{display:none}.toolbar{align-items:flex-start}.packs{gap:6px}.toolbar button{font-size:12px;padding:10px}.desktop{height:520px}.sample-window{top:65px;padding:17px;font-size:11px}.desktop-note{top:190px;font-size:12px;right:8%}.desktop-bar{font-size:10px;padding-inline:12px}.controls{gap:14px}.controls>div:first-child{width:100%}.controls label{font-size:12px}footer{display:block}footer a{display:inline-block;margin-top:8px}.explanation{padding:18px}h2{font-size:17px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

@media(max-width:600px){.desktop-note{display:none}}
[hidden]{display:none!important}.collapse{position:absolute;bottom:12px;z-index:6;background:#302342;color:#ffda6a;border:0;min-width:42px}.restore{font-size:13px}.shortcut-menu{position:absolute;z-index:10;top:53px;left:50%;transform:translateX(-50%);width:min(410px,calc(100% - 24px));max-height:calc(100% - 70px);overflow:auto;padding:15px;border:2px solid #b5a0d0;border-radius:19px;background:linear-gradient(135deg,#342348,#19192b);box-shadow:0 12px 35px #26133755;color:#fff9ef}.shortcut-head{display:flex;gap:7px;align-items:center}.shortcut-head strong{flex:1;font-size:18px}.shortcut-head button{padding:5px 10px;background:#554266;color:#ffe388;border-color:#837095}.shortcut-caption{font-size:11px;color:#d1c0df}.shortcut-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.shortcut-grid a,.shortcut-grid button{display:flex;align-items:center;gap:9px;justify-content:center;min-height:58px;background:#242337;border:2px solid #71d7d7;box-shadow:inset 0 0 0 2px #53466c;border-radius:10px;color:white;text-decoration:none;font-size:13px;padding:9px;white-space:normal}.shortcut-grid span{font-size:23px;color:#ffe080}.shortcut-grid a:hover,.shortcut-grid button:hover{background:#514064}.shortcut-menu.compact{width:min(320px,calc(100% - 24px))}.compact .shortcut-head strong,.compact .shortcut-caption,.compact .shortcut-grid>:nth-child(n+5){display:none}.compact .shortcut-head{justify-content:flex-end;margin-bottom:10px}.compact .shortcut-grid>:nth-child(3),.compact .shortcut-grid>:nth-child(4){grid-column:1/-1;min-height:38px}.shortcut-menu #shortcut-feedback{font-size:12px;line-height:1.5;margin-bottom:0}.controls>div:first-child{flex-wrap:wrap}.resident{touch-action:manipulation}

footer{flex-wrap:wrap}.packs{flex-wrap:wrap}
/* App-sized dock arrows: DockDirectionPad 26px; bottom DockEdgeHandle 28px. */
.dock-arrows button,.restore,.collapse{width:28px;height:28px;min-width:0;padding:0;border:0;border-radius:8px;background:rgba(18,18,18,.82);color:#ffe028;font-size:17px;line-height:28px;box-shadow:none;z-index:6}.dock-arrows button{position:absolute;width:26px;height:26px;line-height:26px}.dock-arrows [data-edge=left]{left:-24px;top:54%}.dock-arrows [data-edge=right]{right:-24px;top:54%}.dock-arrows [data-edge=top]{bottom:0;left:calc(50% - 43px)}.dock-arrows [data-edge=bottom]{bottom:0;left:calc(50% - 13px)}.tucked .dock-arrows{display:none}.restore:hover,.collapse:hover,.dock-arrows button:hover{background:#292526;color:#fff477}.controls>div:first-child{display:none}.shortcut-menu{width:min(504px,calc(100% - 24px));padding:18px;border:0;border-radius:0;clip-path:polygon(24px 0,calc(100% - 24px) 0,100% 24px,100% calc(100% - 24px),calc(100% - 24px) 100%,24px 100%,0 calc(100% - 24px),0 24px);background:linear-gradient(90deg,#39ddff0b 1px,transparent 1px),linear-gradient(#39ddff0b 1px,transparent 1px),linear-gradient(135deg,#29113d,#0d1830);background-size:10px 10px,10px 10px,auto;box-shadow:inset 0 0 0 3px #c5ccd3,inset 0 0 0 7px #535764,inset 0 0 0 9px #b4c2cb,inset 0 0 0 10px #46e3ff;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}.shortcut-head{height:42px;gap:5px;margin-bottom:7px}.shortcut-head strong{font-size:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shortcut-head button{height:32px;width:32px;padding:0;border:1px solid #7c7692;border-radius:6px;background:linear-gradient(#5b466b,#2a243b);font-size:24px;color:#f5d686}.shortcut-head #compact-menu{color:#52e5ff;font-size:20px}.shortcut-head #settings-menu{color:#dde4eb}.shortcut-head #close-menu{font-size:15px;width:20px;background:none;border:0}.shortcut-caption{display:none}.shortcut-grid{grid-template-columns:repeat(4,1fr);gap:10px 8px}.shortcut-grid a,.shortcut-grid button{position:relative;min-height:78px;flex-direction:column;gap:5px;padding:8px 5px;font-size:12px;border:0;border-radius:0;clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px);background:linear-gradient(90deg,#00ffff0b 1px,transparent 1px),linear-gradient(#00ffff0b 1px,transparent 1px),#111b23;background-size:10px 10px;box-shadow:inset 0 0 0 2px #32e9ff,inset 0 0 0 4px #345183,inset 0 0 0 6px #00a7d1,inset 0 0 0 7px #9ac6da}.shortcut-grid span{font-size:29px;line-height:30px;color:white}.shortcut-grid .youtube{color:#ff1520}.shortcut-grid .wide{grid-column:span 2;flex-direction:row;justify-content:flex-start;min-height:50px;padding-left:13px}.shortcut-pages{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:12px;font-size:12px;color:#c5b4d5}.shortcut-pages button{font-size:11px;padding:3px 12px;border-radius:4px;border-color:#685777;background:#2e203a;color:#c5b4d5}.shortcut-menu.compact{width:264px}.compact .shortcut-head{justify-content:center}.compact .shortcut-grid{grid-template-columns:1fr 1fr}.compact .shortcut-grid>:nth-child(n){display:none;grid-column:auto}.compact .shortcut-grid>:nth-child(1),.compact .shortcut-grid>:nth-child(2){display:flex;min-height:78px}.compact .shortcut-grid>:nth-child(9),.compact .shortcut-grid>:nth-child(10){display:flex;grid-column:1/-1;min-height:50px}.compact .shortcut-head strong{display:none}@media(max-width:520px){.shortcut-head strong{font-size:15px}.shortcut-head button{width:27px;height:28px;font-size:20px}.shortcut-grid a,.shortcut-grid button{font-size:10px;min-height:62px}.shortcut-grid span{font-size:24px}.shortcut-menu{padding:14px}.shortcut-grid{gap:7px}}
.shortcut-grid .app-icon{display:block;width:30px;height:30px;object-fit:contain;flex-shrink:0}.shortcut-grid .wide .app-icon{width:26px;height:26px}.size-note{font-size:12px;color:#766480;line-height:1.6;margin:-8px 0 20px}

.dock-move-surface{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:45%;background:none!important;box-shadow:none;cursor:grab;touch-action:none;z-index:1}.dragging .dock-move-surface{cursor:grabbing}.dock-arrows #resize-dock{bottom:0;left:calc(50% + 17px);color:#32e9ed;font-size:21px;cursor:nwse-resize;touch-action:none}

/* Compact launcher mirrors the app: four header tools, two tiles, two wide rows. */
.shortcut-menu{box-shadow:none;padding:18px 18px 15px;isolation:isolate}
.shortcut-menu::before{content:"";position:absolute;inset:0;pointer-events:none;background:url('playground/shortcut-frame.svg') center/100% 100% no-repeat;z-index:2}
.shortcut-menu.compact{width:264px;max-width:calc(100% - 24px)}
.compact .shortcut-head{height:40px;gap:8px;margin:0 0 8px;justify-content:center}
.compact .shortcut-head button{width:38px;height:36px;font-size:28px;text-shadow:0 0 7px #fff6}
.compact .shortcut-head #compact-menu{font-size:31px;color:#9cfaff}
.compact .shortcut-head #close-menu{display:none}
.compact .shortcut-grid{grid-template-columns:1fr 1fr;gap:10px 8px}
.compact .shortcut-grid>:nth-child(n){display:flex;grid-column:auto;min-height:78px}
.compact .shortcut-grid>.wide:nth-child(n){grid-column:1/-1;min-height:50px;flex-direction:row;justify-content:flex-start}
.compact .shortcut-grid>[hidden]{display:none!important}
.compact .shortcut-grid span{font-size:34px}.compact .shortcut-grid .wide span{font-size:23px}
.compact .shortcut-pages{gap:12px;margin-top:12px;height:20px}
#shortcut-feedback:empty{display:none}

.shortcut-menu:not(.compact) .shortcut-grid>:not(.wide){min-height:70px}.shortcut-menu:not(.compact) .shortcut-grid>.wide{min-height:44px}.compact .shortcut-grid .app-icon{width:34px;height:34px}.compact .shortcut-grid .wide .app-icon{width:24px;height:24px}

/* Toy artwork is reconstructed from native contours while a mechanism moves. */
.toy-motion{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0;filter:drop-shadow(0 12px 9px #40204925)}
.resident{touch-action:none;cursor:grab}.resident:active{cursor:grabbing}.resident.carried{z-index:8;filter:drop-shadow(0 12px 5px #35244040)}
/* Carried companions swing from where they're held (--tilt follows the drag); they breathe slowly with their feet
   planted, and ride the floor's landing dip (--dip). */
.resident.carried img{transform:translateY(-6px) rotate(var(--tilt,0deg));transform-origin:50% 14%}.resident.landing img{transform:none}
@keyframes breathe{50%{scale:1.003 1.008}}
.resident img{transform-origin:50% 100%;animation:breathe 3.6s ease-in-out infinite}.resident.second img{animation-duration:4.2s;animation-delay:-1.4s}
.resident.carried img,.resident.landing img{animation:none}
.dock-art,.toy-motion,.toy-foreground,.dock>.resident{translate:0 var(--dip,0px)}.dock.instant{transition:none}
/* A short caption pops up beside whatever was just touched, its tail pointing at it. */
.bubble{position:absolute;z-index:7;max-width:min(240px,calc(100% - 16px));padding:7px 12px;border-radius:12px;background:#302342;color:#fff8e8;font-size:13px;font-weight:800;line-height:1.3;text-align:center;box-shadow:0 3px 0 #1d142a33;pointer-events:none;transform-origin:var(--tail,50%) 100%}
.bubble::after{content:'';position:absolute;left:calc(var(--tail,50%) - 7px);top:100%;border:7px solid transparent;border-top-color:#302342}
.bubble.below{transform-origin:var(--tail,50%) 0}.bubble.below::after{top:auto;bottom:100%;border-top-color:transparent;border-bottom-color:#302342}
.bubble.pop{animation:bubble-pop .22s cubic-bezier(.2,1.5,.4,1)}@keyframes bubble-pop{from{transform:scale(.8);opacity:0}}
/* Short landscape screens keep the whole desktop in view. */
@media(max-height:560px) and (orientation:landscape){body{padding:12px 16px}header{margin:0 0 10px}header p{display:none}h1{font-size:24px}.sticker,.desktop-note{display:none}.desktop{height:calc(100vh - 24px);min-height:330px}}
/* The companion whose shortcuts are open stands in a soft cyan glow, the launcher's own color. */
.resident.menu-owner::after{content:'';position:absolute;left:10%;right:10%;bottom:1%;height:14%;border-radius:50%;background:radial-gradient(closest-side,#52e5ffb0,#52e5ff40 60%,transparent);z-index:-1;pointer-events:none}
.desktop>.resident{z-index:4}.desktop>.resident.carried{z-index:8}

.toy-foreground{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none}.hotspot{z-index:4}

.dock-art{display:block}


/* Side-tucked docks restore by clicking their exposed artwork, with no arrow. */
.restore.side-peek,.restore.side-peek:hover{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;color:transparent;min-width:0}
.restore.side-peek:focus-visible{outline:2px solid #ffe028;outline-offset:-3px}

.companion-context,.companion-picker{position:absolute;z-index:30;background:#fffaf1;color:#302342;border:2px solid #b69bc9;border-radius:14px;box-shadow:0 6px 0 #30234230,0 12px 28px #30234225;padding:10px}
.companion-context{width:220px}.companion-context strong{display:block;font-size:13px;padding:6px 10px}.companion-context button{display:block;width:100%;text-align:left;border:0;padding:10px;border-radius:8px}
.companion-picker{top:54px;left:50%;transform:translateX(-50%);width:min(540px,calc(100% - 20px));max-height:calc(100% - 66px);overflow:auto;padding:16px}.companion-picker>div:first-child{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.companion-picker h2{margin:0}.companion-picker #close-picker{padding:4px 10px}#companion-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#companion-choices button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px;font-size:13px}#companion-choices img{width:90px;height:100px;object-fit:contain}#companion-choices small{font-size:10px;font-weight:normal}.toolbar{flex-wrap:wrap}.toolbar .packs{flex:1}

#resident-three,#resident-four{width:27%}

.playground-nav{max-width:1120px;margin:18px auto;display:flex;justify-content:space-between;gap:18px;padding:0 20px;font:600 14px system-ui}.playground-nav a{color:#392749;text-decoration:none}.playground-nav a:hover{text-decoration:underline}

.resident.walking img{animation:none;transform:none}

.strike-fx{position:absolute;width:38%;height:auto;transform:translate(-50%,-50%);z-index:7;pointer-events:none}.strike-fx[hidden]{display:none}
/* Authored companion effects replace the placeholder impact star. */
.dock.attacking .impact{display:none}
#idle-movement{font:inherit;color:inherit;background:#fffaf1;border:1.5px solid #b69bc9;border-radius:9px;padding:7px}

#context-size{border-top:1px solid #d9c8e3;border-bottom:1px solid #d9c8e3;padding:5px 0;margin:4px 0}#context-size strong{font-size:11px;opacity:.7}#context-size button[aria-checked=true]::before{content:"✓ ";color:#7851a9}

/* Back toys sit below sprite silhouettes; traced front-toy regions are raised by the renderer. */
.hotspot{z-index:1}.dock>.resident{z-index:2}

/* Residents occupy depth ranks 20–23; toys and controls remain above them. */
.dock>.toy-foreground{z-index:30}
.dock .dock-arrows button{z-index:60}
.dock>.strike-fx,.dock>.impact{z-index:70}
.dock>.resident.carried{z-index:80!important}
