.together-dialog{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border:0;padding:0;overflow:auto;color:#513c29;background:#c99a59 url(assets/generated/minigames/sorting.webp) center/cover}.together-dialog::backdrop{background:#38271b}.together-header{display:flex;align-items:center;gap:12px;padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));position:relative;z-index:3;background:#fff5dfdf}.together-header h2{margin:0;font:700 clamp(18px,3vw,28px) Georgia,serif}.together-header small{font-size:9px;letter-spacing:.14em}.together-header #together-help{margin-left:auto}.picture-home{border:0;background:none;width:55px;height:55px;padding:0}.picture-home img{width:100%;height:100%;object-fit:contain}.together-lobby,.together-pair{max-width:900px;margin:20px auto;padding:20px;background:#fff8e9ed;border:1px solid #ead1a5;border-radius:28px;text-align:center}.together-lobby>h2,.together-pair>h2{font:700 clamp(23px,4vw,34px) Georgia,serif;margin:0 0 16px}.together-games{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.together-games button{border:2px solid #d8bc8f;background:#fffdf4;border-radius:20px;min-height:155px;padding:12px;color:#513c29}.together-games button[aria-pressed=true]{border-color:#a34c27;box-shadow:0 0 0 3px #e0aa60}.together-games img{display:block;margin:auto auto 8px;width:100px;height:100px;object-fit:contain}.together-games strong{font-size:15px}.together-instructions{max-width:650px;margin:20px auto;line-height:1.5}.together-modes,.pair-buttons{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.together-lobby details{font-size:12px;max-width:620px;margin:10px auto;line-height:1.6}.together-colours{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px auto;max-width:600px}.together-colours button{background:#fffaf0;border:3px solid #d7c4a6;border-radius:18px;padding:12px;font-weight:750}.together-colours button[aria-pressed=true]{border-color:#62422c;box-shadow:0 0 0 3px white}.together-colours b{display:block;font-size:40px;color:var(--room-colour);text-shadow:0 1px 2px #42251266}.together-colours span{display:block;font-size:13px}.pair-code-label{display:block;text-align:left;max-width:650px;margin:15px auto}.pair-code-label textarea,#pair-code-output{display:block;width:100%;font-size:12px;word-break:break-all;padding:12px;border:1px solid #d1b17f;border-radius:14px;resize:vertical;background:white}.together-pair #pair-qr{display:block;margin:10px auto;width:min(60dvh,80vw,360px)!important;height:auto!important;background:white;border-radius:12px}.together-pair video{display:block;margin:16px auto;max-width:90%;max-height:45dvh;border-radius:18px}.together-pair video[hidden]{display:none}.together-pair details{margin:12px auto;max-width:650px}.together-world{--board-size:min(62dvh,72vw,520px);text-align:center;padding:8px 12px 18px}.together-score{display:flex;justify-content:center;align-items:center;gap:18px;flex-wrap:wrap;color:#513c29;background:#fff8e9e8;border-radius:20px;padding:10px 15px;max-width:860px;margin:auto;font-size:clamp(12px,2vw,17px)}.together-score strong{font-size:clamp(17px,2.5vw,24px)}.together-game-name{font-family:Georgia,serif;margin:8px;color:#fff9e4;text-shadow:0 2px 4px #422713}.four-drops{display:grid;grid-template-columns:repeat(7,1fr);width:calc(var(--board-size)*1.16);max-width:94vw;margin:0 auto 5px;gap:6px}.four-drops button{border:1px solid #9e6337;background:#fff0bc;border-radius:10px;min-height:40px;font-size:26px;font-weight:800}.four-board{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;padding:12px;background:linear-gradient(130deg,#b77c43,#8a542b);border:5px solid #e7ba71;border-radius:18px;box-shadow:0 8px 16px #39231477,inset 0 2px 5px #fff3b677;width:calc(var(--board-size)*1.16);max-width:94vw;margin:auto;aspect-ratio:7/6}.board-hole{border:2px solid #714724;border-radius:50%;padding:3px;aspect-ratio:1;background:#473224b3;box-shadow:inset 0 3px 6px #27170980;display:grid;place-items:center}.board-hole img,.three-board img{width:90%;height:90%;object-fit:contain;filter:drop-shadow(0 2px 2px #2b180b55)}.board-hole.filled img{animation:together-drop .28s ease-out}.three-board{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;width:var(--board-size);margin:12px auto}.three-board button{border:3px solid #98643c;background:#fff3d9e8;border-radius:22px;aspect-ratio:1;display:grid;place-items:center;min-height:50px}.duel-memory{display:grid;grid-template-columns:repeat(4,1fr);width:min(74dvh,90vw,680px);gap:8px;margin:10px auto}.duel-memory button{position:relative;overflow:hidden;display:block;background:#fff4d7;border:3px solid #a87342;border-radius:16px;padding:0;aspect-ratio:1;min-height:44px}.duel-memory img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.duel-memory .memory-face{object-fit:contain;padding:2px;background:#fffdf6;opacity:0;transform:scaleX(0);transition:opacity .12s,transform .18s}.duel-memory .revealed .memory-face,.duel-memory .matched .memory-face{opacity:1;transform:none}.duel-memory .revealed .memory-back,.duel-memory .matched .memory-back{opacity:0}.duel-memory .matched{opacity:.72}.rps-choices,.rps-reveal{display:flex;justify-content:center;gap:18px;align-items:center;margin:20px auto}.rps-choices button,.rps-reveal section{background:#fff7e9ed;border:3px solid #bc8d50;border-radius:26px;padding:16px;width:min(26vw,190px);color:#513c29}.rps-choices img,.rps-reveal img{width:100%;height:min(22dvh,150px);object-fit:contain}.rps-choices strong,.rps-reveal strong{display:block;font-size:clamp(14px,2vw,22px);text-transform:capitalize}.rps-secret,#together-note{color:#513c29;background:#fff8e9eb;width:fit-content;max-width:90%;margin:12px auto;padding:8px 15px;border-radius:16px;font-size:13px}.rps-pass{background:#fff9e9eb;border-radius:24px;padding:18px;max-width:450px;margin:10px auto}.rps-pass img{max-height:24dvh;object-fit:contain}.rps-pass h3{font-size:26px;margin:8px}.together-result{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.together-dialog button:disabled{cursor:default}.together-dialog button:focus-visible{outline:3px solid #ffdf5e;outline-offset:3px}@keyframes together-drop{from{transform:translateY(-25%);opacity:.6}to{transform:none;opacity:1}}@media(max-width:600px){.together-lobby,.together-pair{margin:12px;padding:16px}.together-games{grid-template-columns:repeat(2,1fr);gap:8px}.together-games button{min-height:135px}.together-games img{height:80px;width:80px}.together-score{gap:8px}.together-score strong{order:-1;width:100%}.together-colours{grid-template-columns:repeat(2,1fr)}.together-world{--board-size:min(56dvh,80vw)}.together-header{gap:7px}.together-header .picture-home{width:40px;height:40px}.together-header .small-button{padding:8px}.board-hole{padding:1px}.four-board{gap:4px;padding:7px}.rps-choices{gap:7px}.rps-choices button{padding:10px;width:29vw}.duel-memory{gap:5px}.together-colours b{font-size:32px}}@media(max-height:500px) and (min-width:600px){.together-header{padding-top:3px;padding-bottom:3px}.together-header h2{font-size:19px}.picture-home{width:38px;height:38px}.together-world{--board-size:min(63dvh,64vw);padding:3px}.together-score{position:fixed;left:8px;top:70px;width:20vw;display:grid;gap:8px;font-size:12px;padding:10px}.together-score strong{font-size:18px}.together-game-name{position:fixed;right:12px;top:70px;width:18vw;font-size:17px}.four-drops{gap:4px;margin-bottom:2px}.four-drops button{min-height:26px;font-size:19px;line-height:1}.four-board{padding:7px;gap:4px;border-width:3px}.three-board{width:55dvh;margin:5px auto}.duel-memory{width:72dvh;margin:5px auto}.together-world>#together-note{position:fixed;right:8px;bottom:8px;max-width:19vw;font-size:11px;padding:7px}.together-result{position:fixed;left:8px;bottom:10px;width:20vw;display:grid}.together-result button{padding:8px;font-size:12px}.rps-choices,.rps-reveal{margin:15px auto;width:58vw}.rps-choices button,.rps-reveal section{width:17vw;padding:10px}.together-lobby{margin:10px auto;padding:16px;max-width:850px}.together-lobby>h2{font-size:24px;margin-bottom:10px}.together-games button{min-height:100px;padding:5px}.together-games img{width:60px;height:60px}.together-games strong{font-size:13px}.together-instructions{margin:10px auto;font-size:13px}.rps-pass{max-width:400px;padding:10px}.rps-pass img{max-height:15dvh}}@media(prefers-reduced-motion:reduce){.board-hole.filled img{animation:none}}

#pair-qr{image-rendering:pixelated}
.together-end-overlay{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:#38271988}
.together-end-overlay>section{width:min(430px,100%);max-height:calc(100dvh - 32px);overflow:auto;background:#fff8e8;border:2px solid #e7c58e;border-radius:25px;padding:22px;text-align:center;box-shadow:0 12px 40px #35211366;color:#513c29}
.together-end-overlay img{width:85px;height:85px;object-fit:contain}.together-end-overlay h2{font:700 28px Georgia,serif;margin:8px 0}.together-end-overlay p{font-size:14px;margin:8px 0 14px}.together-end-overlay section>div{display:grid;gap:9px}.together-end-overlay button{min-height:48px;font-size:16px}.together-end-overlay #together-result-note:empty{display:none}
@media(orientation:landscape) and (max-height:550px){.together-end-overlay>section{padding:14px 22px}.together-end-overlay img{width:55px;height:55px}.together-end-overlay h2{font-size:24px}.together-end-overlay section>div{grid-template-columns:1fr 1fr}.together-pair{margin:10px auto;padding:14px;max-width:850px}.together-pair h2{font-size:22px;margin:3px 0 8px}.together-colours{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:12px 0}.together-colours button{padding:8px 4px;min-height:83px}.together-colours b{font-size:30px}.together-colours span{font-size:12px}#pair-qr{width:170px!important;height:170px!important}.together-world:has(.coop-play){min-height:calc(100dvh - 58px);gap:2px;justify-content:center;padding:3px 8px}.together-world:has(.coop-play) .together-score{position:static;display:flex;width:min(100%,700px);margin:0 auto;padding:3px 7px;font-size:11px}.together-world:has(.coop-play) .together-game-name{position:static;width:auto;margin:0;font-size:16px}.coop-play{grid-template-columns:1fr 1.35fr;grid-template-rows:auto 1fr auto;gap:4px;padding:4px 10px;max-width:900px}.coop-progress{grid-column:1/-1;font-size:22px}.coop-prompt{grid-column:1;grid-row:2}.coop-prompt h2{font-size:20px;line-height:1.1;margin:4px 0}.coop-prompt>small{font-size:9px;padding:4px 8px}.coop-prompt p{font-size:12px;margin:4px 0}.coop-story-pieces{min-height:36px;padding:2px 6px;gap:4px;margin:2px auto}.coop-story-pieces>span{width:34px;height:34px}.coop-story-pieces small{font-size:9px}.coop-choices{grid-column:2;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;align-self:center}.coop-choices button{box-sizing:border-box;min-height:55px;flex-direction:row;gap:4px;padding:4px 6px;font-size:12px}.coop-choices button>img{width:36px;height:36px}.coop-choices button>span{font-size:25px}.coop-turn-note{grid-column:1/-1;font-size:11px}}

.race-game{display:grid;place-items:center;gap:12px;padding:8px}.meadow-track{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;width:min(92vw,700px)}.race-step{position:relative;display:grid;place-items:center;aspect-ratio:1;border:3px solid #8fbe68;border-radius:18px;background:#f8f2d9eF;box-shadow:0 3px 0 #719c54}.race-step small{position:absolute;top:2px;font-size:clamp(8px,1.2vw,12px);font-weight:900;color:#496a34}.race-step>span{display:flex;align-items:center;justify-content:center;gap:0;width:100%;height:70%;margin-top:12px}.race-step>span img{width:47%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 2px #39251555)}.race-step.race-barn{border-color:#c77b45;background:#fff0c5}.race-controls{text-align:center;background:#fff9e9ef;border:2px solid #ecd09e;border-radius:20px;padding:9px 16px}.race-controls p{margin:0 0 8px;font-weight:800;color:#56422d}.race-controls>div{display:flex;justify-content:center;gap:10px}.race-controls button{min-width:78px;min-height:50px;border:3px solid #fff;border-radius:16px;background:#60954d;color:white;font-size:20px;font-weight:950;box-shadow:0 3px 0 #3f6e37}.race-controls button:disabled{opacity:.48}.basket-hint{width:fit-content;max-width:94%;margin:5px auto 9px;padding:8px 14px;border-radius:15px;background:#fff8e9ef;color:#513c29;font-weight:850}.harvest-market{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:min(72dvh,90vw,600px);margin:0 auto}.market-fruit{position:relative;display:grid;place-items:center;aspect-ratio:1;min-width:0;border:3px solid #d5ad6a;border-radius:18px;background:#fff9e8;box-shadow:0 3px 0 #ad8349;touch-action:manipulation}.market-fruit img{width:76%;height:76%;object-fit:contain}.market-fruit.picked{opacity:.52;filter:saturate(.65)}.market-fruit span{position:absolute;inset:auto 3px 3px;border-radius:10px;background:#fff9e9eF;color:#503924;font-size:clamp(8px,1.5vw,12px);font-weight:950}.garden-memory{grid-template-columns:repeat(4,1fr);width:min(80dvh,92vw,720px);gap:7px}.garden-memory button{min-height:38px;padding:5px;border-radius:14px}
@media(max-width:600px){.race-game{gap:8px;padding:4px}.meadow-track{gap:3px;width:min(94vw,540px)}.race-step{border-width:2px;border-radius:12px}.race-step>span{margin-top:13px}.race-controls{padding:7px 10px}.race-controls button{min-width:69px;min-height:45px;font-size:18px}.harvest-market{width:min(63dvh,92vw);gap:5px}.market-fruit{border-width:2px;border-radius:13px}.garden-memory{width:min(76dvh,94vw);gap:5px}.garden-memory button{padding:4px}}
.together-dialog:has(.together-world){background-image:linear-gradient(180deg,#fff4df45,#fff4df18 54%,#3c743b4d),var(--together-scene,url(assets/generated/minigames/sorting.webp));background-position:center;background-size:cover}
.together-world{min-height:calc(100dvh - 86px);box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;gap:clamp(6px,1.4dvh,14px);padding:clamp(6px,1.8dvh,18px) max(10px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}
.coop-play{width:min(920px,100%);margin:0 auto;display:grid;grid-template-rows:auto auto 1fr auto;gap:clamp(8px,2dvh,18px);align-items:center;justify-items:center;padding:clamp(12px,2.5vw,24px);box-sizing:border-box;border:3px solid #f3d89b;border-radius:30px;background:#fff8e9eb;box-shadow:0 10px 30px #26452455}
.coop-progress{display:flex;justify-content:center;gap:clamp(9px,3vw,24px);font-size:clamp(27px,5vw,45px);line-height:1;color:#e3b649;text-shadow:0 2px #6d4c2c}
.coop-progress .done{color:#e8a735;animation:coop-pop .3s ease-out}
.coop-prompt{text-align:center;max-width:700px}
.coop-prompt>small{display:inline-block;padding:6px 13px;border-radius:999px;background:#e7f0d7;color:#41663c;font-weight:900;letter-spacing:.06em}
.coop-prompt h2{font:800 clamp(22px,4.5vw,38px)/1.15 Georgia,serif;color:#4b3828;margin:10px 0 6px}
.coop-prompt p{font-size:clamp(14px,2vw,18px);color:#52654a;margin:8px 0}
.coop-target{display:flex;align-items:center;justify-content:center;gap:10px;margin:6px auto;padding:6px 14px;width:fit-content;min-height:64px;background:#eff5df;border:2px solid #bad28a;border-radius:20px;font-size:clamp(15px,2vw,20px);font-weight:850;color:#3d5938}
.coop-target img{width:clamp(54px,10vw,84px);height:clamp(54px,10vw,84px);object-fit:contain}
.coop-song{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;min-height:66px;color:#5c4933;font-weight:800}
.coop-song img{width:48px;height:48px;object-fit:contain}
.coop-choices{width:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,42vw),1fr));gap:clamp(8px,2vw,16px);align-self:end}
.coop-choices button{min-height:clamp(78px,14dvh,124px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px;border:3px solid #dfc28a;border-radius:22px;background:#fffdf5;color:#4c3a29;box-shadow:0 4px 0 #b99155;font-size:clamp(13px,2vw,18px);font-weight:800;touch-action:manipulation}
.coop-choices button:active{transform:translateY(2px);box-shadow:0 2px 0 #b99155}
.coop-choices button>span{font-size:clamp(31px,6vw,50px);line-height:1}
.coop-choices button>img{width:clamp(42px,8vw,68px);height:clamp(42px,8vw,68px);object-fit:contain}
.coop-turn-note{margin:0;color:#516144;font-size:13px;font-weight:750;text-align:center}
.coop-finished{min-height:50dvh}
.coop-star{font-size:clamp(52px,10vw,90px);color:#edbf4d;text-shadow:0 3px #a9782d}
.together-score:has(+.together-game-name){width:min(960px,100%);box-sizing:border-box}
@keyframes coop-pop{50%{transform:scale(1.28)}}
@media(max-width:600px){.together-world{min-height:calc(100dvh - 72px);gap:8px}.coop-play{border-radius:22px;gap:8px;padding:10px}.coop-choices{gap:8px}.coop-choices button{border-radius:16px;min-height:clamp(74px,13dvh,105px);box-shadow:0 3px 0 #b99155}.coop-prompt h2{margin:7px 0 4px}.coop-target{min-height:52px;margin:4px auto}.coop-progress{gap:7px}.coop-turn-note{font-size:12px}}
@media(orientation:landscape) and (max-height:550px){.together-world{min-height:calc(100dvh - 58px);padding:4px 12px}.coop-play{grid-template-columns:1fr 1.5fr;grid-template-rows:auto 1fr;gap:8px;padding:8px 14px;max-width:1050px}.coop-progress{grid-column:1/-1;font-size:26px}.coop-prompt{grid-column:1;grid-row:2}.coop-choices{grid-column:2;grid-row:2;grid-template-columns:repeat(2,minmax(130px,1fr));align-self:center}.coop-choices button{min-height:70px;flex-direction:row}.coop-choices button>span{font-size:32px}.coop-choices button>img{width:42px;height:42px}.coop-turn-note{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.coop-progress .done{animation:none}}
.coop-story-pieces{display:flex;align-items:center;justify-content:center;gap:clamp(7px,2vw,16px);flex-wrap:wrap;min-height:72px;margin:7px auto;padding:5px 12px;border-radius:20px;background:#eff5df;border:2px solid #bad28a;color:#3d5938;font-weight:850}
.coop-story-pieces>span{width:clamp(45px,8vw,64px);height:clamp(45px,8vw,64px);display:grid;place-items:center;border-radius:16px;background:#fffdf2;box-shadow:0 2px 0 #b9d28f}
.coop-story-pieces img{width:90%;height:90%;object-fit:contain}
.coop-story-pieces .coop-story-icon{font-size:clamp(28px,5vw,42px)}
.coop-story-pieces small{flex-basis:100%;font-size:12px;line-height:1.2}
@media(prefers-reduced-motion:reduce){.coop-story-pieces *{animation:none!important;transition:none!important}}
@media(min-width:601px) and (min-height:600px){.together-world:has(.coop-play){gap:6px;padding-top:6px;padding-bottom:6px}.together-world:has(.coop-play) .together-score{padding:6px 12px;margin:0 auto}.together-world:has(.coop-play) .together-game-name{font-size:20px;line-height:1.1;margin:2px}.coop-play{padding:10px 16px;gap:8px}.coop-prompt h2{font-size:clamp(22px,3.5vw,32px)}.coop-story-pieces{min-height:56px;padding:4px 10px}.coop-story-pieces>span{width:52px;height:52px}.coop-story-pieces .coop-story-icon{font-size:32px}.coop-choices button{box-sizing:border-box;min-height:min(12dvh,96px)}}
@media(orientation:landscape) and (max-height:550px){.together-world:has(.coop-play){min-height:calc(100dvh - 58px);gap:2px;justify-content:center;padding:3px 8px}.together-world:has(.coop-play) .together-score{position:static;display:flex;width:min(100%,700px);margin:0 auto;padding:3px 7px;font-size:11px}.together-world:has(.coop-play) .together-game-name{position:static;width:auto;margin:0;font-size:16px}.coop-play{grid-template-columns:1fr 1.35fr;grid-template-rows:auto 1fr auto;gap:4px;padding:4px 10px;max-width:900px}.coop-progress{grid-column:1/-1;font-size:22px}.coop-prompt{grid-column:1;grid-row:2}.coop-prompt h2{font-size:20px;line-height:1.1;margin:4px 0}.coop-prompt>small{font-size:9px;padding:4px 8px}.coop-prompt p{font-size:12px;margin:4px 0}.coop-story-pieces{min-height:36px;padding:2px 6px;gap:4px;margin:2px auto}.coop-story-pieces>span{width:34px;height:34px}.coop-story-pieces small{font-size:9px}.coop-choices{grid-column:2;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;align-self:center}.coop-choices button{box-sizing:border-box;min-height:55px;flex-direction:row;gap:4px;padding:4px 6px;font-size:12px}.coop-choices button>img{width:36px;height:36px}.coop-choices button>span{font-size:25px}.coop-turn-note{grid-column:1/-1;font-size:11px}}
