/* Chunky picture controls, shared in spirit with the Plank Pals woodshop. */
[hidden]{display:none!important}
#app{grid-template-rows:104px minmax(0,1fr) 170px}
.topbar{gap:18px;padding:13px 22px;align-items:center}
.wood-sign{padding:12px 23px;transform:rotate(-2deg);flex:none}
.wood-sign h1{font-size:32px}
#worldButton{display:flex;align-items:center;gap:12px;min-height:76px;margin:0;padding:7px 9px 7px 7px;max-width:360px;min-width:260px;border:3px solid #fff4d8;border-radius:25px;background:linear-gradient(145deg,#fff7df,#efd5a3);box-shadow:0 5px 0 #b69a68,0 9px 18px #58391f28;text-align:left;color:#624725;transition:transform .15s,box-shadow .15s}
.world-thumb{width:54px;height:54px;flex:0 0 54px;border:3px solid #fff9e9;border-radius:17px;overflow:hidden;box-shadow:0 2px 0 #b79a65}
.world-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.world-button-copy{display:flex;flex:1;flex-direction:column;gap:3px}
.world-button-copy small{font-size:12px;color:#8c6a40}
#worldName{font-size:17px;line-height:1.13;white-space:normal;overflow:visible;text-overflow:clip}
.world-chevron{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border:2px solid #e9f1c8;border-radius:15px;background:linear-gradient(#b1ce8d,#86a95f);color:#fffce5;box-shadow:0 3px 0 #607e47}
.world-chevron svg{width:29px;height:29px;stroke-width:3.5;transition:transform .18s}
#worldButton[aria-expanded=true] .world-chevron svg{transform:rotate(180deg)}
.top-actions{gap:12px}
.round{width:56px;height:56px;border:3px solid #fff4db;border-radius:19px;background:linear-gradient(var(--face-light,#fff1c9),var(--face,#eec689));color:var(--ink,#76502a);box-shadow:0 5px 0 var(--edge,#b48a52),0 8px 14px #55331c22;transition:transform .15s,box-shadow .15s}
.round svg{width:31px;height:31px;stroke-width:2.4}
.home{--face-light:#fbd4b3;--face:#efb586;--edge:#bc8156;--ink:#805029}
#soundButton{--face-light:#d3ebf1;--face:#a9d3df;--edge:#739fac;--ink:#3c6b7b}
#helpButton{--face-light:#fff0ad;--face:#f7d479;--edge:#c3a14f;--ink:#805b28}
#fullButton{--face-light:#e9d9f7;--face:#cfb5e7;--edge:#a087bc;--ink:#6e528a}
#soundButton[aria-pressed=false]{opacity:1;background:linear-gradient(#f1eee5,#d8d2c3);color:#837966;--edge:#ada18c}
#soundButton[aria-pressed=false] svg{opacity:.55}
.round:hover:not(:disabled),.tool:hover:not(:disabled),#worldButton:hover{transform:translateY(-2px);filter:brightness(1.04)}
.round:active:not(:disabled),.tool:active:not(:disabled),#worldButton:active{transform:translateY(3px);box-shadow:0 2px 0 var(--edge,#b48a52)}
.toolbox{right:22px;top:58px;gap:13px}
.tool{width:76px;height:82px;gap:4px;padding:8px 6px;border:3px solid #fff5dd;border-radius:23px;box-shadow:0 5px 0 var(--edge),0 8px 14px #50341b20;background:linear-gradient(var(--face-light),var(--face));color:var(--ink);transition:transform .15s,box-shadow .15s}
.tool .tool-picture{height:38px;display:grid;place-items:center;line-height:1}
.tool svg{width:37px;height:37px;stroke-width:2.4}
.tool small{font-size:16px;line-height:20px}
#rotateButton{--face-light:#ffe8a2;--face:#f1d07b;--edge:#c3a04e;--ink:#795323}
#undoButton{--face-light:#e8dbf8;--face:#cbb5e4;--edge:#9c82b9;--ink:#6c4d8b}
/* Larger illustrated actions, within the same pastel toy-button footprint. */
#rotateButton .tool-picture,#undoButton .tool-picture{width:100%;height:40px;flex-shrink:0}
#rotateButton svg,#undoButton svg{width:44px;height:44px;overflow:visible;filter:drop-shadow(0 1px 0 #fff7df)}
.turn-block,.undo-block{transform-box:fill-box;transform-origin:center;transition:transform .18s ease-out}
#rotateButton:enabled:active .turn-block{transform:rotate(30deg)}
#undoButton:enabled:active .undo-block{transform:translateX(-4px)}
#rotateButton:focus-visible,#undoButton:focus-visible{outline:3px solid var(--ink);outline-offset:5px}
@media(max-width:700px){#rotateButton .tool-picture,#undoButton .tool-picture{height:32px}#rotateButton svg,#undoButton svg{width:35px;height:35px}}
@media(max-height:560px) and (min-width:560px){#rotateButton .tool-picture,#undoButton .tool-picture{height:29px}#rotateButton svg,#undoButton svg{width:32px;height:32px}}
@media(prefers-reduced-motion:reduce){.turn-block,.undo-block{transition:none!important}#rotateButton:enabled:active .turn-block,#undoButton:enabled:active .undo-block{transform:none}}
#clearButton{--face-light:#ffd6b9;--face:#f0ae8b;--edge:#bb7e5e;--ink:#80492f}
#resetButton{--face-light:#cbe9e5;--face:#a1d0c9;--edge:#6a9e96;--ink:#396863}
.tool:disabled{opacity:.58;filter:saturate(.55);box-shadow:0 3px 0 var(--edge)}
.rebuild{display:flex;align-items:center;gap:9px;min-height:50px;border:3px solid #fff7dc;background:linear-gradient(#c4e3ac,#9ec887);box-shadow:0 4px 0 #749754;color:#365b2a;border-radius:18px}
.rebuild svg{width:25px;height:25px}
.workbench{padding-bottom:max(13px,env(safe-area-inset-bottom));gap:22px}
.wind-controls{width:142px;gap:8px}
.wind-button{width:132px}
.wind-button span{font-size:15px;padding:8px 13px;border-radius:14px}
.strength{min-height:44px;display:flex;align-items:center;justify-content:center;gap:6px;border:2px solid #fff5d6;border-radius:14px;box-shadow:0 3px 0 #b58c56;background:linear-gradient(#fff3d5,#ebd29e);font-size:12px;padding:7px 10px;margin:0;color:#72502a}
.strength span{display:grid;place-items:center}.strength svg{width:18px;height:18px;stroke-width:3}
#worldDialog{width:min(980px,94vw);padding:30px;border:4px solid #fff2cf;border-radius:32px;background:linear-gradient(145deg,#fff9e8,#f2e1bd);box-shadow:0 7px 0 #ba945d,0 25px 90px #30221166}
#worldDialog .dialog-heading h2{font-size:34px;color:#78552e}
.close{min-width:48px;width:48px;height:48px;border-radius:17px;--face-light:#f7c7ad;--face:#eaaa87;--edge:#b57d59;--ink:#774829}
.close svg{width:28px;height:28px;stroke-width:3}
.world-grid{gap:19px}
.world-card{position:relative;border:3px solid #fff8e5;border-radius:23px;background:#fff7e6;box-shadow:0 5px 0 #c9ae83;transition:transform .16s,box-shadow .16s}
.world-card:hover{transform:translateY(-3px);box-shadow:0 8px 0 #c9ae83}
.world-card:active{transform:translateY(2px);box-shadow:0 2px 0 #c9ae83}
.world-card img{aspect-ratio:1.75;border-bottom:3px solid #fff8e5}
.world-card strong{font-size:20px;padding:12px 14px 5px}
.world-card small{font-size:12px;min-height:33px;padding:0 14px 8px;color:#89704e}
.world-card-action{display:inline-flex;align-items:center;margin:0 14px 13px;padding:7px 13px;border-radius:12px;background:#f6df95;box-shadow:0 3px 0 #c8aa5b;color:#745526;font-size:14px}
.world-card-check{display:none;position:absolute;top:10px;right:10px;align-items:center;justify-content:center;width:34px;height:34px;border:2px solid #fff6d9;border-radius:50%;background:#709b56;color:#fffbdc;box-shadow:0 3px 0 #476e32}
.world-card-check svg{width:23px;height:23px;stroke-width:3}
.world-card[aria-pressed=true]{border-color:#84aa65;background:#eaf3d8;box-shadow:0 5px 0 #688c4e}
.world-card[aria-pressed=true] .world-card-check{display:flex}
.world-card[aria-pressed=true] .world-card-action{background:#9dc681;color:#315523;box-shadow:0 3px 0 #719952}
@media(max-width:1000px){.topbar{gap:12px;padding:12px 16px}.wood-sign{padding:12px 15px}.wood-sign h1{font-size:27px}#worldButton{min-width:230px;max-width:310px;gap:9px}.top-actions{gap:8px}.round{width:50px;height:52px}.toolbox{right:15px}.tool{width:68px;height:75px}}
@media(max-width:700px){
 #app{grid-template-rows:149px minmax(0,1fr) 150px}
 .topbar{display:grid;grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:51px 69px;gap:9px 10px;padding:9px 12px 11px;align-items:center}
 .wood-sign{justify-self:start;max-width:100%;padding:8px 15px;min-width:0}.wood-sign h1{font-size:26px}
 .round{width:44px;height:46px;border-radius:16px;box-shadow:0 4px 0 var(--edge,#b48a52)}.round svg{width:27px;height:27px}.top-actions{gap:8px}
 #worldButton{grid-row:2;grid-column:1/-1;width:100%;max-width:none;min-width:0;min-height:65px;height:65px;padding:6px 9px;gap:10px;border-radius:22px;justify-self:stretch}
 .world-thumb{width:43px;height:43px;flex-basis:43px;border-radius:13px}.world-button-copy small{font-size:11px}#worldName{font-size:17px}.world-chevron{width:43px;height:43px;flex-basis:43px;border-radius:14px}
 .top-notes{top:9px}.toolbox{top:49px;right:11px;gap:10px}.tool{width:57px;height:65px;padding:5px;gap:2px;border-radius:18px;border-width:2px}.tool .tool-picture{height:32px}.tool svg{width:31px;height:31px}.tool small{font-size:13px;line-height:18px}
 .workbench{gap:8px;padding:3px 10px max(12px,env(safe-area-inset-bottom))}.wind-controls{width:84px;gap:6px}.wind-button{width:83px}.wind-button img{width:82px;height:82px}.wind-button span{font-size:10px;padding:6px 7px}.strength{font-size:10px;min-height:40px;max-width:84px;gap:2px;padding:4px;border-radius:12px;line-height:1.15}.strength svg{width:15px;height:15px;flex-shrink:0}
 .rebuild{min-height:44px;gap:6px;font-size:12px;padding:6px 10px;bottom:44px}.rebuild svg{width:21px;height:21px}
 #worldDialog{padding:20px 15px;border-radius:25px}#worldDialog .dialog-heading h2{font-size:26px}.dialog-heading{gap:10px}.dialog-heading p{font-size:9px;letter-spacing:1.4px}.dialog-note{font-size:12px;line-height:1.5;margin:15px 0 18px}.close{width:44px;height:46px;min-width:44px}.world-grid{gap:14px 11px}.world-card{border-radius:17px}.world-card strong{font-size:16px;padding:10px 10px 5px}.world-card small{font-size:11px;padding:0 10px 8px;min-height:36px}.world-card-action{font-size:12px;padding:6px 9px;margin:0 10px 12px}.world-card-check{width:29px;height:29px;top:6px;right:6px}.world-card-check svg{width:20px;height:20px}
}
@media(max-width:360px){.topbar{padding-left:9px;padding-right:9px;gap:9px 7px}.wood-sign{padding:9px 10px}.wood-sign h1{font-size:23px}.top-actions{gap:6px}.top-actions .round{width:40px}.toolbox{right:8px}.tool{width:53px}.wind-controls{width:78px}.workbench{padding-left:7px;padding-right:7px;gap:5px}}
@media(max-height:560px) and (min-width:560px){
 #app{grid-template-rows:76px minmax(0,1fr) 113px}.topbar{display:flex;padding:8px 13px;gap:10px}.wood-sign{padding:9px 12px}.wood-sign h1{font-size:23px}.round{width:43px;height:46px;border-radius:16px}.round svg{width:27px;height:27px}.top-actions{gap:7px}#worldButton{width:auto;min-width:225px;max-width:270px;min-height:58px;height:58px;padding:4px 7px;gap:8px;border-radius:19px}.world-thumb{width:38px;height:38px;flex-basis:38px;border-radius:12px}#worldName{font-size:14px}.world-button-copy small{font-size:10px}.world-chevron{width:39px;height:39px;flex-basis:39px}.toolbox{grid-template-columns:repeat(2,1fr);top:17px;right:13px;gap:8px}.tool{width:57px;height:58px;padding:4px;gap:0;border-radius:16px}.tool .tool-picture{height:29px}.tool svg{width:28px;height:28px}.tool small{font-size:12px;line-height:17px}.top-notes{top:0}.workbench{padding:0 15px 8px;gap:17px}.tray{height:95px;max-width:650px}.wind-controls{width:100px;gap:3px;position:relative;padding-right:0}.wind-button{width:90px}.wind-button img{width:67px;height:67px}.wind-button span{font-size:10px;padding:4px 7px}.strength{min-height:31px;font-size:10px;padding:3px 7px;max-width:none}.hint{font-size:11px;bottom:2px}.rebuild{bottom:33px;min-height:40px;font-size:12px;padding:5px 9px}
}
@media(max-height:560px) and (min-width:560px) and (max-width:700px){.wood-sign h1{font-size:19px}.wood-sign{padding:9px}.topbar{gap:7px;padding-left:9px;padding-right:9px}#worldButton{min-width:190px;max-width:220px}#worldName{font-size:12px}.top-actions{gap:5px}.top-actions .round{width:39px}.world-thumb{display:none}}
@media(prefers-reduced-motion:reduce){#worldButton,.world-chevron svg,.world-card,.tool,.round{transition:none!important}}

