/* Worksites: self-contained controls and illustration plates. */
.wc-work[hidden]{display:none!important}
.wc-work:not([hidden]){position:fixed;inset:0;z-index:22;display:grid;grid-template-rows:auto minmax(0,1fr) auto;align-items:center;gap:clamp(6px,1.3vh,12px);padding:max(8px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(9px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));background:radial-gradient(ellipse at 45% 2%,#edf8ed 0,#cce4da 60%,#96beb9 100%);color:#254f58;font-family:inherit;overflow:hidden;overscroll-behavior:none;touch-action:manipulation;text-align:center;box-sizing:border-box}
.wc-work :is(button,svg){-webkit-tap-highlight-color:transparent}
.wc-work button{font:inherit;cursor:pointer;touch-action:manipulation}
.wc-work button:focus-visible{outline:3px solid #fcf3ae;outline-offset:2px}
.wc-head{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:8px;width:min(820px,100%);margin:auto}
.wc-round{display:grid;place-items:center;width:46px;height:46px;border:1px solid #a4cbbc;border-radius:15px;color:#326965;background:linear-gradient(165deg,#fffcf0,#daede1);box-shadow:0 3px 0 #80aeaa}
.wc-round svg{width:26px;height:26px}
.wc-caption{min-width:0;display:grid;align-content:center;gap:2px;line-height:1.2;padding:3px;border-radius:15px}
.wc-caption b{font-size:clamp(1rem,3.8vw,1.35rem);font-weight:950;color:#244f53}
.wc-caption small{font-size:clamp(.69rem,2.37vw,.91rem);font-weight:800;color:#3d6870;min-height:1.1em}
.wc-view{display:grid;place-items:center;align-self:stretch;min-height:0}
.wc-board{position:relative;isolation:isolate;width:min(950px,100%,calc((100dvh - 157px) * 1.882));aspect-ratio:960/510;box-shadow:0 13px 31px #285b5f34;border:2px solid #f6fae2;border-radius:clamp(10px,2.3vw,24px);overflow:hidden;background:#edf8ed}
.wc-art{position:absolute;inset:0;display:block;width:100%;height:100%}
.wc-meter{position:absolute;z-index:2;top:6px;left:7px;display:flex;align-items:center;gap:7px;border-radius:13px;background:#244553e5;padding:5px 8px;color:#fff8d6;font-size:clamp(.65rem,2.05vw,.84rem);font-weight:850;pointer-events:none;box-shadow:0 2px 8px #27475055}
.wc-meter i{display:flex;align-items:center;gap:3px}
.wc-meter i>b{display:block;width:9px;height:9px;border:1px solid #dce7da;border-radius:4px;background:#567694}
.wc-meter i>b.done{background:#ffd885;border-color:#fff0a7;box-shadow:0 0 6px #ffe69a}
.wc-desk{display:flex;justify-content:center;align-items:stretch;gap:clamp(7px,2vw,16px);width:min(760px,100%);margin:0 auto}
.wc-control{display:inline-flex;align-items:center;justify-content:center;gap:clamp(4px,1vw,8px);flex:1 1 0;max-width:185px;min-height:53px;padding:7px 5px;border:1px solid #7eb3ac;border-radius:15px;color:#28636b;background:linear-gradient(150deg,#f6fcf0,#b7dfd5);box-shadow:0 4px 0 #529c99;font-size:clamp(.76rem,2.6vw,1.08rem);font-weight:950}
.wc-control svg{width:23px;height:23px;flex:none}
.wc-control[data-wc-act=hook]{background:linear-gradient(155deg,#fff6c8,#f5bc6c);border-color:#e0a95e;color:#74532c;box-shadow:0 4px 0 #c48e52}
.wc-control:active,.wc-round:active,.wc-bin:active{transform:translateY(2px);box-shadow:none}
.wc-slot{animation:wc-slot 1.35s ease-in-out infinite}
.wc-lit{fill:#eaffb2;stroke:#ffffff;stroke-width:3;filter:drop-shadow(0 0 5px #ffd880)}
.wc-objects{position:absolute;inset:0;pointer-events:none}
.wc-pick{position:absolute;left:var(--px);top:var(--py);transform:translate(-50%,-50%);width:clamp(44px,8%,74px);height:clamp(44px,16%,77px);display:grid;place-items:center;pointer-events:auto;border:2px solid #fffcea;border-radius:20px;background:radial-gradient(circle,#fffdefeb,#c6e7d3ce);box-shadow:0 4px 10px #243e595e;padding:5px}
.wc-pick svg{width:56%;height:91%;filter:drop-shadow(0 3px 3px #233b5546)}
.wc-pick:active{transform:translate(-50%,-50%) scale(.90)}
.wc-pick:disabled{opacity:.68;pointer-events:none}
.wc-held{position:absolute;right:8px;top:6px;display:grid;place-items:center;width:clamp(38px,9%,70px);height:clamp(40px,16%,78px);background:#fdf6d9;border:2px solid #ffe79c;border-radius:13px;box-shadow:0 3px 11px #264c5238}
.wc-held svg{width:60%;height:85%}
.wc-bin{flex:1 1 0;max-width:147px;display:grid;align-content:center;justify-items:center;padding:2px 4px 4px;border:1px solid #85afa5;border-radius:14px;min-height:74px;background:linear-gradient(145deg,#e6f7e8,#b7d4ca);color:#2d5864;font-weight:900;box-shadow:0 4px 0 #79a79f}
.wc-bin svg{width:42px;height:44px;filter:drop-shadow(0 3px 2px #32535340)}
.wc-bin span{font-size:clamp(.75rem,2.2vw,.95rem);line-height:1.11;padding:2px}
.has-wc-item .wc-bin{background:linear-gradient(145deg,#fffff1,#d5f0df);border-color:#a2c9aa}
.wc-won .wc-caption{background:#fff0a7}
.wc-work [hidden]{display:none!important}
.wc-bump{animation:wc-bump .26s}
@keyframes wc-bump{35%{opacity:.57}70%{opacity:1}}
@keyframes wc-slot{50%{opacity:.51}}
@media(max-height:440px) and (orientation:landscape){.wc-board{width:min(820px,100%,calc((100dvh - 125px) * 1.882))}.wc-caption b{font-size:1.02rem}.wc-caption small{font-size:.71rem}.wc-bin{min-height:57px}.wc-bin svg{width:31px;height:32px}.wc-control{min-height:48px}.wc-view{align-items:center}.wc-work{gap:5px}}
@media(max-height:345px) and (orientation:landscape){.wc-head{grid-template-columns:42px minmax(0,1fr) 42px}.wc-round{width:40px;height:40px}.wc-board{width:min(100%,calc((100dvh - 113px) * 1.882))}.wc-bin svg{width:29px;height:28px}}
@media(prefers-reduced-motion:reduce){.wc-slot,.wc-bump{animation:none!important}}
