/* The workshop keeps its established layout. Only play becomes a full-screen field. */
#app[data-mode=play]{position:fixed;inset:0;max-width:none;padding:0;overflow:hidden;background:#b9dfe8}
#app[data-mode=play] .workshop{position:absolute;inset:0;height:100%;min-height:0;max-height:none;padding:0;display:block}
#app[data-mode=play] .stage-shell{position:absolute;inset:0;height:100%;min-height:0;margin:0;overflow:hidden}
#app[data-mode=play] .bench,#app[data-mode=play] footer,#app[data-mode=play] .stage-bottom{display:none}
#app[data-mode=play] .modes{position:absolute;z-index:12;top:max(15px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);height:48px;padding:4px;margin:0;gap:3px;border-radius:18px;background:#faf9efed;box-shadow:0 3px 14px #364e4110}
#app[data-mode=play] .modes button{min-width:112px;height:40px;border-radius:14px;font-size:13px}
#app[data-mode=play] .header{z-index:14}
#app[data-mode=play] .header #sound{position:fixed;top:max(17px,env(safe-area-inset-top));right:18px;background:#faf9efeb;opacity:1}
#app[data-mode=play] .garage{position:absolute;z-index:12;top:90px;left:16px;width:62px;gap:8px}
#app[data-mode=play] .garage button{width:62px;min-width:62px;height:64px;border-radius:17px;background:#faf9efc9;box-shadow:0 2px 10px #354c3b09}
#app[data-mode=play] .garage button[aria-pressed=true]{background:#fff5ca}
#app[data-mode=play] .garage button::before{display:none}
#app[data-mode=play] .stage-top{position:absolute;inset:82px 18px auto auto;pointer-events:none}
#app[data-mode=play] #home{width:46px;height:46px;min-height:46px;padding:0;border:0;background:#faf9efdd;box-shadow:none}
#app[data-mode=play] #home span{display:none}
#app[data-mode=play] #toast{bottom:240px}
#play-hud{position:fixed;inset:0;z-index:10;pointer-events:none;user-select:none;-webkit-user-select:none}
#play-hud button{pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;transition:background .12s,transform .12s,box-shadow .12s}
.drive-pad{position:absolute;left:max(24px,env(safe-area-inset-left));bottom:max(24px,env(safe-area-inset-bottom));width:188px;height:188px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:3px;padding:5px;border-radius:50%;background:#faf9ef87;box-shadow:0 4px 24px #30473410;backdrop-filter:blur(8px)}
.drive-pad button{border-radius:19px;background:#fffef4eb;display:grid;place-items:center;box-shadow:0 3px 0 #d2d9c9;color:#426b61}
.drive-pad button svg{width:30px;height:30px;fill:currentColor;stroke:none}
.drive-pad [data-drive=up]{grid-column:2;grid-row:1}.drive-pad [data-drive=left]{grid-column:1;grid-row:2}.drive-pad [data-drive=right]{grid-column:3;grid-row:2}.drive-pad [data-drive=down]{grid-column:2;grid-row:3}
.drive-hub{grid-column:2;grid-row:2;display:grid;place-items:center;color:#7c9583}
.drive-hub svg{width:30px;height:30px}
.drive-pad button.held{background:#ffbc2d;box-shadow:0 1px 0 #bc8523;transform:translateY(2px)}
.drive-pad.stowing{background:#f4ddbca8}
.drive-pad.stowing .drive-hub{color:#b88242;animation:waiting-pulse 1s ease-in-out infinite}
.work-actions{position:absolute;right:max(26px,env(safe-area-inset-right));bottom:max(28px,env(safe-area-inset-bottom));display:flex;gap:12px;align-items:flex-end}
.tool-column{display:flex;flex-direction:column;gap:8px;align-items:center}
.tool-pair{display:flex;flex-direction:column;gap:7px;padding:9px;border-radius:25px;background:#faf9efb8;box-shadow:0 4px 20px #30473412;backdrop-filter:blur(8px)}
.tool-key{width:78px;height:70px;border-radius:18px;background:#fffcf0;display:flex;align-items:center;justify-content:center;gap:3px;box-shadow:0 3px 0 #d4daca;color:#416d68}
.tool-key .tool-art{width:38px;height:38px;stroke:none}
.tool-key .motion{width:18px;height:18px;stroke-width:2.5}
.tool-key.held{transform:translateY(2px);box-shadow:0 1px 0 #668e85;background:#cee0cf}
.tool-caption{font-size:12px;font-weight:700;letter-spacing:.06em;color:#527368;line-height:1;padding:2px 0}
.main-tool{width:96px;height:96px;border-radius:30px;background:#ffc235;box-shadow:0 5px 0 #c98a1e;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-weight:700;font-size:13px;color:#244750}
.main-tool .tool-art{width:43px;height:43px;stroke:none}
#sandy-pad .main-tool{background:#138ade;color:white;box-shadow:0 5px 0 #12629e}#sandy-pad .main-tool svg{width:34px;height:34px;fill:currentColor;stroke:none}#sandy-pad .tool-key{width:96px;gap:7px;font-size:12px}#sandy-pad .tool-key svg{width:23px;height:23px}#sandy-pad .main-tool.held{background:#ff9927;box-shadow:0 2px 0 #c47920}
.main-tool.held,.main-tool[aria-pressed=true]{background:#88b9b0;box-shadow:0 2px 0 #5c8e85;transform:translateY(2px)}
.main-tool:disabled{opacity:.55;filter:saturate(.4)}
.work-actions .progress-tool{position:relative}
.depth-meter{width:7px;height:154px;border-radius:8px;align-self:center;background:#c6d2bd;overflow:hidden;margin-right:3px}
.depth-meter i{display:block;background:#b17a4e;width:100%;height:var(--depth,0%);transition:height .08s linear}
.field-tools{position:absolute;right:18px;top:139px;display:flex;flex-direction:column;gap:10px}
.field-tools button{width:46px;height:46px;border-radius:14px;background:#faf9efda;display:grid;place-items:center;color:#59756b}
.field-tools svg{width:22px;height:22px}
.discovery-dock{position:absolute;left:50%;top:78px;transform:translateX(-50%);display:flex;gap:8px;align-items:center}
.discovery-token{width:42px;height:35px;display:flex;align-items:center;justify-content:center;gap:3px;background:#faf9efb3;border-radius:13px;color:#4f7067;font-size:11px;font-weight:700}
.discovery-token svg{width:23px;height:23px;stroke:none}
.discovery-token:has(b:empty){opacity:.6}
@keyframes waiting-pulse{50%{opacity:.4}}
@media(max-width:760px){
 #app[data-mode=play] .modes{top:max(10px,env(safe-area-inset-top));height:43px;max-width:240px;width:52%;padding:3px}
 #app[data-mode=play] .modes button{min-width:0;height:37px;font-size:12px;gap:5px;padding:0 8px}
 #app[data-mode=play] .header #sound{top:max(10px,env(safe-area-inset-top));right:10px;width:40px;height:40px}
 #app[data-mode=play] .garage{top:73px;left:10px;width:50px;gap:7px}
 #app[data-mode=play] .garage button{width:50px;min-width:50px;height:53px;padding:3px;border-radius:14px}
 #app[data-mode=play] .stage-top{top:69px;right:10px;left:auto}
 #app[data-mode=play] #home{width:40px;height:40px;min-height:40px;border-radius:12px}
 .field-tools{top:118px;right:10px;gap:8px}.field-tools button{width:40px;height:40px;border-radius:12px}
 .drive-pad{left:max(12px,env(safe-area-inset-left));bottom:max(20px,env(safe-area-inset-bottom));width:157px;height:157px;gap:3px;padding:4px}.drive-pad button{border-radius:15px}.drive-pad button svg{width:24px;height:24px}
 .work-actions{right:max(12px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));gap:8px}.tool-pair{padding:7px;border-radius:20px;gap:6px}.tool-key{width:64px;height:61px;border-radius:15px}.tool-key .tool-art{width:31px;height:31px}.tool-caption{font-size:11px}.main-tool{width:77px;height:77px;border-radius:24px}.main-tool .tool-art{width:36px;height:36px}.depth-meter{height:140px}
 .discovery-dock{top:64px}.discovery-token{width:34px;height:31px;font-size:10px;border-radius:10px}.discovery-token svg{width:18px;height:18px}
 #app[data-vehicle=crane] .work-actions{display:grid;grid-template-columns:repeat(2,70px);gap:8px;align-items:end}.crane-turn{grid-column:1;grid-row:1}.crane-boom{grid-column:2;grid-row:1}.crane-hook{grid-column:1;grid-row:2}.cargo-column{grid-column:2;grid-row:2}.crane-turn .tool-key,.crane-boom .tool-key,.crane-hook .tool-key{width:56px;height:49px}.cargo-column .main-tool{width:70px;height:81px}
}
@media(max-height:560px) and (min-width:600px){
 .drive-pad{width:142px;height:142px;bottom:14px}.work-actions{bottom:16px;gap:8px}.tool-key{width:61px;height:53px}.tool-pair{padding:6px;gap:5px}.tool-key .tool-art{width:29px;height:29px}.main-tool{width:77px;height:83px}.depth-meter{height:120px}.tool-caption{font-size:11px}
 #app[data-vehicle=crane] .work-actions{display:flex;gap:8px}.field-tools{top:123px;gap:6px}.field-tools button{width:40px;height:40px}.discovery-dock{top:68px}
}
