.coop-day{position:absolute;inset:var(--mini-safe-top,78px) 0 env(safe-area-inset-bottom);display:flex;flex-direction:column;align-items:center;gap:5px;overflow:hidden;color:#3f5738}
.coop-guide{display:flex;align-items:center;gap:10px;flex:none;z-index:3;width:fit-content;max-width:calc(100% - 24px);box-sizing:border-box;background:#fff8eaf5;border:2px solid #dec38e;border-radius:22px;padding:5px 10px;box-shadow:0 3px 0 #6b74352b}.coop-guide img{width:clamp(42px,7vh,70px);height:clamp(42px,7vh,70px);object-fit:contain}.coop-guide>div{display:flex;flex-direction:column;gap:3px}.coop-title{font-size:clamp(17px,2.5vw,25px);line-height:1.15}.coop-detail{font-weight:750;font-size:clamp(12px,1.6vw,16px);color:#796146}.coop-listen{border:0;border-radius:50%;background:#e2ebcc;flex:none;width:42px;height:42px;font-size:22px;color:#3b5e3a}
.coop-playground{position:relative;width:100%;min-height:0;flex:1;display:flex;align-items:center;justify-content:center}.coop-world{width:100%;height:100%;display:block;overflow:visible;touch-action:none;user-select:none;-webkit-user-select:none;outline:none}.coop-world:focus-visible{outline:3px dashed #f6d99b;outline-offset:-10px}
.coop-ghost{cursor:pointer;outline:none}.coop-ghost .part-body,.coop-ghost>ellipse{fill:#fff7dc99;stroke:#c9a468;stroke-width:6;stroke-dasharray:13 9}.coop-ghost .part-detail{opacity:.3}.coop-ghost.matching .part-body,.coop-ghost.matching>ellipse{fill:#ffec9a99;stroke:#fff1ac;stroke-width:8}.coop-ghost:focus-visible{filter:drop-shadow(0 0 8px #fff0aa)}.coop-tool{cursor:grab;outline:none;touch-action:none}.coop-tool>circle{fill:#fff9e6ed;stroke:#c5a06a;stroke-width:4;filter:drop-shadow(0 4px 1px #4e4c2f25)}.coop-tool>text{fill:#fff5db;stroke:#77583a;stroke-width:2;font:900 28px system-ui;paint-order:stroke;pointer-events:none}.coop-tool.selected>circle,.coop-tool:focus-visible>circle{stroke:#527b45;stroke-width:8;fill:#eff4d6}.coop-tool.dragging>circle,.coop-tool.dragging>text{opacity:0}.coop-tool.dragging{cursor:grabbing}.coop-fixed{animation:coop-fit .4s ease-out}.coop-base{filter:drop-shadow(0 7px 2px #58402f33)}.coop-nests{pointer-events:none;transition:opacity .4s}.coop-cutaway .wall-piece{opacity:.13;transition:opacity .7s}.coop-cutaway .coop-backing{fill:#ad7a49}.coop-eggs{pointer-events:none}.coop-eggs ellipse{transition:opacity .3s}
.coop-nail{cursor:pointer;outline:none;touch-action:manipulation}.nail-touch{fill:transparent;stroke:none}.nail-glow{fill:#ffecaa9c;stroke:#fff3cd;stroke-width:4;animation:coop-nail-glow 1.3s ease-in-out infinite alternate}.nail-head{fill:#bdc7bd;stroke:#6c8275;stroke-width:4}.coop-nail path{stroke:#708777;stroke-width:3;pointer-events:none}.coop-nail text{fill:#614d38;font:900 15px system-ui;paint-order:stroke;stroke:#fff3d6;stroke-width:3;pointer-events:none}.coop-nail.driven .nail-head{fill:#849d8b}.coop-nail.driven .nail-glow{fill:#afd19044;stroke:#85aa6d;animation:none}.coop-nail:focus-visible .nail-glow{stroke:#547846;stroke-width:7}.coop-hammer{pointer-events:none}.hammer-swing{transform-origin:0 50px}.striking .hammer-swing{animation:coop-strike .22s ease-out}.coop-effects{pointer-events:none}.coop-sparkle{fill:#edbb55;stroke:#fff5d9;stroke-width:2;font:900 43px system-ui;text-anchor:middle;animation:coop-star 1.2s ease-out forwards}
.coop-palette{display:flex;justify-content:center;gap:10px;flex:none;z-index:3;padding:3px 10px}.coop-palette[hidden]{display:none}.coop-palette button{border:2px solid #c4a672;border-radius:16px;background:#fff7e8;color:#4f6142;min-width:85px;min-height:64px;padding:5px 9px;font-size:12px;font-weight:850;display:flex;flex-direction:column;align-items:center;gap:3px;touch-action:manipulation}.coop-palette i{display:block;background:var(--pot);width:36px;height:29px;border:3px solid #75563a;border-radius:6px 6px 12px 12px;position:relative}.coop-palette i::before{content:"";position:absolute;width:27px;height:17px;top:-10px;left:1px;border:3px solid #75563a;border-bottom:0;border-radius:17px 17px 0 0}.coop-palette button.selected{border:4px solid #4a7549;background:#edf3d4}.coop-palette.paint-locked button:disabled:not(.selected){opacity:.5}.coop-palette button.selected:disabled{opacity:1}
.coop-bottom{display:flex;flex-direction:column;align-items:center;gap:7px;min-height:35px;padding:3px 10px 9px;flex:none;z-index:3}.coop-progress{display:flex;justify-content:center;gap:5px;flex-wrap:wrap;font-size:clamp(10px,1.5vw,15px);font-weight:850}.coop-progress span{padding:5px 8px;border-radius:20px;background:#fff7e4ef;border:2px solid transparent;color:#7b6646}.coop-progress .current{border-color:#af8147;color:#3d5c35}.coop-progress .complete{background:#e6f0cc;color:#3d6636}.coop-next{padding:9px 24px;min-height:48px;background:#3c7749;color:#fff9e8;border:3px solid #fff0bd;border-radius:23px;font-size:clamp(16px,2vw,21px);font-weight:900;box-shadow:0 4px 0 #284e33;animation:coop-next-glow 1.1s ease-in-out infinite alternate}.coop-next[hidden]{display:none}
.coop-hens{pointer-events:none}.coop-hen.settled{pointer-events:auto;cursor:pointer;outline:none}.coop-hen.settled:focus-visible{filter:drop-shadow(0 0 8px #ffe6a3)}.coop-hen-art{overflow:visible}.hen-head{transform-origin:89px 50px;animation:coop-hen-look 4s ease-in-out infinite}.hen-wing{transform-origin:45px 55px;animation:coop-wing 3s ease-in-out infinite}.hens-walking .coop-hen:not(.settled) .hen-foot{transform-box:fill-box;transform-origin:center top;animation:coop-hen-walk .25s ease-in-out infinite alternate}.hens-walking .coop-hen:not(.settled) .hen-foot.front{animation-delay:-.25s}.coop-paused *{animation-play-state:paused!important}
#minigames-dialog[data-game="coopmath"] .mini-caption{display:none}
#minigames-dialog[data-game="coopmath"] .mini-header{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;background:#fff8e8f0!important;color:#31543a!important;text-shadow:none!important;border-radius:22px;padding:7px 11px!important}
#minigames-dialog[data-game="coopmath"] .mini-header h2{font-size:clamp(17px,2.4vw,26px);color:#31543a!important;text-shadow:none!important}
#minigames-dialog[data-game="coopmath"] .mini-header .eyebrow{font-size:9px;color:#496341!important}
#minigames-dialog[data-game="coopmath"] .mini-header>div:first-child{flex:1;min-width:0}
#minigames-dialog[data-game="coopmath"] .mini-score{position:static!important;grid-area:auto!important;display:flex!important;flex:0 0 auto!important;flex-wrap:nowrap!important;width:auto!important;background:none!important;color:#31543a!important;text-shadow:none!important;padding:0;gap:8px}
#minigames-dialog[data-game="coopmath"] :is(#mini-timer,#mini-status,#mini-count){display:none!important}
#minigames-dialog[data-game="coopmath"] #mini-pause{width:auto!important;min-width:0!important;flex:0 0 auto!important;min-height:40px;padding:7px 10px;font-size:13px}
.coop-result-stars{font-size:32px;color:#aa7928;padding:10px;clear:both}.coop-result #mini-retry{animation:coop-next-glow 1.1s ease-in-out infinite alternate}
@keyframes coop-fit{from{translate:0 -12px;opacity:.3}}@keyframes coop-strike{0%{rotate:-45deg}65%{rotate:12deg}100%{rotate:0}}@keyframes coop-nail-glow{to{opacity:.45}}@keyframes coop-star{to{translate:0 -65px;opacity:0;scale:1.25}}@keyframes coop-next-glow{to{box-shadow:0 4px 0 #284e33,0 0 14px #ffe7a1}}@keyframes coop-hen-look{50%{transform:rotate(8deg)}}@keyframes coop-wing{50%{transform:rotate(-7deg)}}@keyframes coop-hen-walk{to{transform:rotate(24deg)}}
@media(max-width:600px){#minigames-dialog[data-game="coopmath"] .mini-header .eyebrow{display:none}#minigames-dialog[data-game="coopmath"] .mini-header h2{font-size:16px}.coop-guide{gap:6px;padding:5px 8px}.coop-guide img{width:42px;height:42px}.coop-title{font-size:16px}.coop-detail{font-size:12px}.coop-listen{width:36px;height:36px;font-size:20px}.coop-progress{gap:3px;font-size:10px}.coop-progress span{padding:4px 5px}.coop-palette{gap:6px}.coop-palette button{min-width:80px;font-size:11px;min-height:61px}.coop-bottom{padding-bottom:7px}}
@media(max-height:500px) and (orientation:landscape){#minigames-dialog[data-game="coopmath"] .mini-header{padding:3px 9px!important}#minigames-dialog[data-game="coopmath"] .mini-header .eyebrow{display:none}#minigames-dialog[data-game="coopmath"] .mini-header h2{font-size:17px}.coop-guide{padding:3px 8px;gap:6px}.coop-guide img{height:30px;width:30px}.coop-title{font-size:14px}.coop-detail{font-size:11px}.coop-listen{height:30px;width:30px;font-size:17px}.coop-bottom{padding:0 10px 3px;min-height:25px;gap:3px}.coop-progress{font-size:10px}.coop-progress span{padding:3px 7px}.coop-next{position:absolute;right:12px;top:0;max-width:190px;font-size:14px;min-height:40px;padding:6px 15px}.coop-palette{position:absolute;left:10px;bottom:42px;flex-direction:column;gap:4px}.coop-palette button{min-width:75px;min-height:40px;padding:3px 6px;font-size:10px;flex-direction:row}.coop-palette button i{height:22px;width:25px}.coop-palette button span{max-width:55px}.coop-palette i::before{width:18px;height:10px;top:-7px}.coop-day{gap:3px}}
.coop-day:not([data-step="3"]) .coop-nails{pointer-events:none}
/* Keep live paint feedback from resizing the SVG and cancelling a stroke. */
@media(max-width:600px){.coop-day[data-step="4"] .coop-guide{width:calc(100% - 24px)}.coop-day[data-step="4"] .coop-title{min-height:2.3em}.coop-day[data-step="4"] .coop-detail{height:3.75em;min-height:3.75em;line-height:1.25}}
@media(prefers-reduced-motion:reduce){.coop-day *{animation:none!important;transition:none!important}.coop-sparkle{display:none}}
