.coop-play{background:#fff6dfd4!important;backdrop-filter:none!important}.coop-prompt{min-width:0}.coop-prompt h2{font-size:clamp(18px,3vw,28px)}.ts-scene{position:relative;isolation:isolate;width:100%;height:clamp(165px,30vh,350px);min-height:130px;margin:8px auto;border:4px solid #d6b37d;border-radius:22px;overflow:hidden;background:var(--ts-scene) center/cover;box-shadow:0 5px #89613b55;touch-action:none}.ts-scene img{width:100%;height:100%;object-fit:contain;pointer-events:none}.ts-scene.ts-ready{outline:4px solid #ffe589;outline-offset:2px}.ts-stream{position:absolute;left:32%;top:30%;width:42%;height:80%;rotate:75deg}.ts-stream img{object-fit:fill}.ts-friend{position:absolute;left:2%;top:20%;width:35%;height:65%;filter:drop-shadow(0 5px 2px #3f392b55)}.ts-friend.ts-ready-cross{animation:ts-ready-walk 1.6s ease-in-out infinite alternate}.ts-home{position:absolute;right:1%;top:10%;width:28%;height:50%;background:#fff4d3a6;border:3px solid #d3b67e;border-radius:50%;padding:5px}.ts-path-outline{position:absolute;left:29%;right:18%;top:60%;height:18%;border:3px dashed #fff0ba;border-radius:12px;background:#fff1ba22}.ts-basket{position:absolute;left:35%;bottom:4%;width:60%;height:68%;z-index:4}.ts-basket:after{content:'';position:absolute;inset:0;background:url(assets/generated/play-pieces/harvest-basket.webp) center/contain no-repeat;clip-path:inset(60% 0 0)}.ts-packed{position:absolute;left:calc(44% + var(--i)*12%);top:38%;width:21%;height:37%;z-index:5;animation:ts-food-arrive .8s ease-out}.ts-wanted{position:absolute;left:4%;top:12%;width:29%;height:43%;filter:drop-shadow(0 4px 2px #62512655)}.ts-soil{position:absolute;left:6%;right:6%;top:45%;bottom:5%;border:7px solid #bc8d4b;border-radius:14px;background:repeating-linear-gradient(#795630 0 12px,#88653e 13px 16px);box-shadow:0 6px #624522}.ts-crop{position:absolute;left:calc(7% + var(--i)*29%);width:28%;height:72%;top:12%;transform-origin:50% 85%;filter:drop-shadow(0 5px 2px #4f402f44)}.ts-crop.empty{opacity:0}.ts-crop.planted{scale:.25;translate:0 20%}.ts-crop.grown:last-of-type{animation:ts-crop-grow 1.2s ease-out}.ts-water-drops{position:absolute;left:50%;top:25%;width:20%;height:40%}.ts-water-drops i{position:absolute;width:7px;height:15px;border-radius:50% 50% 60% 60%;background:#b6eff1;animation:fa-rain 1.2s infinite}.ts-water-drops i:nth-child(2){left:25%;animation-delay:.3s}.ts-water-drops i:nth-child(3){left:50%;animation-delay:.6s}.ts-cosy-nest{position:absolute;left:13%;right:13%;bottom:0;height:65%}.ts-cosy-friend{position:absolute;left:25%;right:25%;top:4%;height:77%;animation:ts-cosy-breathe 3s ease-in-out infinite}.ts-comfort{position:absolute;right:1%;bottom:3%;width:30%;height:35%;animation:ts-food-arrive .7s ease-out}.ts-band{position:absolute;inset:0 0 20%;display:flex;align-items:end;justify-content:space-around}.ts-band>div{width:24%;height:90%;transform-origin:50% 90%}.ts-performing{animation:ts-friend-perform 1s ease-in-out 2}.ts-notes{position:absolute;left:2%;right:2%;bottom:0;height:24%;display:flex;align-items:center;justify-content:center;border:2px solid #d9be80;border-radius:10px;background:#fff4d2de;padding:4px}.ts-notes img{width:15%;height:100%}.ts-story-friend{position:absolute;left:30%;top:12%;height:80%;width:40%;filter:drop-shadow(0 5px 3px #4f432d55);z-index:4}.ts-story-prop{position:absolute;left:3%;bottom:1%;height:55%;width:35%;z-index:6}.ts-story-prop img+img{position:absolute;left:35%;bottom:30%;width:35%;height:40%}.ts-story-puddle{position:absolute;left:20%;right:20%;height:35%;bottom:0;z-index:2}.ts-dancing{animation:ts-friend-perform 1.2s infinite}.ts-splashing{animation:ts-ready-walk 1s infinite}.ts-drag-ghost{position:fixed;width:95px;height:100px;object-fit:contain;transform:translate(-50%,-50%);z-index:100;pointer-events:none;filter:drop-shadow(0 5px 3px #3d2d1f55)}.coop-choices button{touch-action:none}.coop-choices button>img{width:clamp(45px,8vw,80px);height:clamp(45px,8vw,80px);object-fit:contain}.together-world .board-hole.filled>*,.duel-tic button>img{animation:ts-token-arrive .35s ease-out}.rps-reveal section{animation:ts-food-arrive .5s ease-out}.together-end-overlay>section>img{display:none}
@keyframes ts-ready-walk{50%{translate:8% -5px;rotate:2deg}}@keyframes ts-food-arrive{from{opacity:0;translate:0 -30px;scale:.7}to{opacity:1;translate:0 0;scale:1}}@keyframes ts-crop-grow{from{scale:.25}to{scale:1}}@keyframes ts-cosy-breathe{50%{scale:1.035;rotate:1deg}}@keyframes ts-friend-perform{25%,75%{translate:0 -10px;rotate:-7deg}50%{rotate:7deg}}@keyframes ts-token-arrive{from{translate:0 -40px;opacity:.3}to{translate:0 0;opacity:1}}
@media(orientation:landscape) and (max-height:550px){.ts-scene{height:clamp(105px,34vh,175px);min-height:100px;margin:3px auto}.coop-prompt h2{font-size:17px}.coop-choices button>img{width:42px;height:42px}}
.ts-water-drops{opacity:0}.ts-outcome .ts-water-drops{opacity:1}.ts-built-bridge{position:absolute;left:25%;top:56%;width:51%;height:26%;z-index:3;animation:ts-food-arrive .35s ease-out}.ts-outcome .ts-friend{z-index:5;animation:ts-cross-home 1.6s ease-in-out forwards}.ts-outcome .ts-wanted{z-index:6;animation:ts-pack-food 1.4s ease-in-out forwards}.ts-outcome .ts-crop.planted{animation:ts-water-grow 1.5s ease-out forwards}.ts-outcome .ts-comfort{z-index:6;animation:ts-place-comfort 1.3s ease-in-out forwards}.ts-outcome .ts-cosy-friend{animation:ts-friend-perform 1.5s ease-in-out}.ts-outcome .ts-dancing,.ts-outcome .ts-splashing{animation-duration:.7s}
@keyframes ts-cross-home{0%{left:2%;top:20%}25%{top:14%}50%{top:20%}75%{top:14%}100%{left:65%;top:16%;scale:.75}}@keyframes ts-pack-food{to{left:49%;top:38%;scale:.8}}@keyframes ts-water-grow{from{scale:.25;translate:0 20%}to{scale:1;translate:0 0}}@keyframes ts-place-comfort{to{right:36%;bottom:24%;rotate:-10deg}}
@media(prefers-reduced-motion:reduce){.ts-scene *,.together-world .board-hole.filled>*,.duel-tic button>img,.rps-reveal section{animation:none!important;transition:none!important}.ts-outcome .ts-friend{left:65%;scale:.75}.ts-outcome .ts-wanted{left:49%;top:38%}.ts-outcome .ts-crop.planted{scale:1;translate:0 0}.ts-outcome .ts-comfort{right:36%;bottom:24%}}

/* Keep cooperative play within one screen, with the illustrated stage as the main area. */
.together-dialog:has(.coop-play){overflow:hidden}.together-world:has(.coop-play){display:grid;grid-template-rows:auto minmax(0,1fr);height:calc(100dvh - 74px);min-height:0;max-width:none;padding:6px 12px;gap:6px;overflow:hidden}.together-world:has(.coop-play) .together-game-name{display:none}.together-world:has(.coop-play) .together-score{position:static;grid-row:1;margin:0 auto;padding:5px 12px;width:min(100%,1000px);font-size:clamp(11px,1.7vh,16px)}.coop-play{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,27%);grid-template-rows:auto minmax(0,1fr) auto;gap:6px 12px;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;width:min(100%,1100px);height:100%;min-height:0;margin:auto}#together-dialog .coop-progress{grid-column:1/-1;grid-row:1;font-size:24px}.coop-prompt{grid-column:1;grid-row:2;display:flex;flex-direction:column;min-height:0;gap:4px;padding:7px;border:3px solid #fff3d0;border-radius:23px;background:#fff4d9e8}.coop-prompt>small{align-self:center;font-size:11px;padding:4px 10px}.coop-prompt h2{font-size:clamp(18px,2.8vh,27px);line-height:1.1;margin:2px}.coop-prompt .ts-scene{flex:1;min-height:90px;height:auto;width:100%;margin:0;border-width:3px}.coop-prompt .coop-feedback{font-size:clamp(12px,1.8vh,17px);line-height:1.15;margin:2px}.coop-choices{grid-column:2;grid-row:2;display:flex;flex-direction:column;align-self:center;gap:9px;max-height:100%;min-height:0}.coop-choices button{display:flex;flex:1;min-height:50px;flex-direction:row;align-items:center;justify-content:center;gap:8px;padding:8px;font-size:clamp(14px,2vh,20px)}.coop-choices button>img{width:clamp(44px,9vh,90px);height:clamp(44px,9vh,90px)}.coop-turn-note{grid-column:1/-1;grid-row:3;font-size:12px;margin:0;background:#fff7e5df;border-radius:12px;padding:3px 8px;width:max-content;max-width:100%;justify-self:center}.ts-home{overflow:hidden}.ts-home img{object-fit:cover}.ts-scene .ts-stream{rotate:0;width:40%;left:33%;height:90%;top:17%}.ts-stream img{object-fit:fill}
@media(orientation:portrait){.together-world:has(.coop-play){height:calc(100dvh - 70px);padding:5px 8px;gap:4px}.together-world:has(.coop-play) .together-score{font-size:11px;padding:5px 6px;gap:4px}.coop-play{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto auto;gap:5px}.coop-prompt{grid-column:1;grid-row:2}.coop-choices{grid-column:1;grid-row:3;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.coop-choices button{min-height:66px;flex-direction:column;gap:1px;padding:4px;font-size:12px}.coop-choices button>img{width:45px;height:45px}.coop-turn-note{grid-row:4;font-size:11px}#together-dialog .coop-progress{font-size:21px}.coop-prompt h2{font-size:20px}.coop-prompt>small{font-size:9px}.coop-prompt .coop-feedback{font-size:12px}.coop-choices:has(button:nth-child(4)){grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(orientation:landscape) and (max-height:450px){.together-world:has(.coop-play){height:calc(100dvh - 57px);padding:3px 8px;gap:3px}#together-dialog .coop-progress{font-size:19px}.coop-play{gap:3px 8px}.coop-prompt{padding:4px;gap:2px}.coop-prompt h2{font-size:17px}.coop-prompt>small{font-size:9px;padding:2px 7px}.coop-prompt .coop-feedback{font-size:11px}.coop-choices{gap:5px}.coop-choices button{min-height:44px;padding:3px;font-size:12px}.coop-choices button>img{width:36px;height:36px}.coop-turn-note{font-size:10px;padding:2px 6px}}
