/* Scene-first vehicle workshop: same room for building and testing. */
.play-area:has(.v2-workshop){background:transparent;border:0;padding:0;overflow:visible}
#play:has(.v2-workshop) .play-heading,#play:has(.v2-workshop) .instruction{display:none}
#app:has(#play:not(.hidden) .v2-workshop) .site-header{display:none}
.v2-workshop{max-width:920px;margin:0 auto;border-radius:26px;background:#f7f3e7;padding:15px;box-shadow:0 6px 0 #e2daca;border:2px solid #dfd4c0;color:#5d635b}
.v2-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 11px}
.v2-request{font-size:clamp(17px,2.7vw,26px);font-weight:900;line-height:1.45;margin:0;color:#617e6e}
.v2-mode{white-space:nowrap;border-radius:25px;border:2px solid #cedcd1;background:#fffdf3;color:#5b8370;padding:10px 15px;min-height:49px;font-weight:900}
.v2-scene{position:relative;overflow:hidden;border-radius:24px;min-height:330px;height:clamp(330px,52vw,500px);background:linear-gradient(#d4ebed,#f7f1df);border:3px solid #d0dfd0;box-shadow:0 4px 0 #d5dfd3}
.v2-three-canvas,.v2-fallback{display:block;width:100%;height:100%;touch-action:manipulation}
.v2-fallback [role=button]{cursor:pointer}
.v2-fallback [role=button]:focus-visible{filter:drop-shadow(0 0 12px #ffe4a4)}
.v2-note{font-weight:900;text-align:center;color:#527966;font-size:clamp(15px,2.5vw,19px);line-height:1.5;margin:13px 4px 4px;min-height:25px}
.v2-note[data-result="bump"],.v2-note[data-result="wobble"],.v2-note[data-result="wheel"]{color:#ad755f}
.v2-ending{text-align:center;color:#4f8866;font-weight:900;font-size:19px;margin:5px auto}
.v2-ending:empty{display:none}
.v2-palette{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:15px 0 8px}
.v2-piece{min-height:95px;border:2px solid #e6d8c1;border-radius:18px;background:#fffcf4;box-shadow:0 4px 0 #e6dece;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;color:#6e685e;font-weight:900;font-size:14px;line-height:1.25;padding:8px 5px}
.v2-piece-icon{font-size:37px;line-height:1.1}
.v2-piece[aria-pressed="true"]{border-color:#7fab86;background:#e4efdf;box-shadow:0 3px 0 #bad6bd}
.v2-piece:disabled{opacity:.4}
.v2-help{text-align:center;color:#9a8b77;font-size:13px;font-weight:800;line-height:1.5;margin:8px 0}
.v2-commands{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin:12px 0 2px}
.v2-commands button{border:2px solid #d5dfcc;background:#fffdf1;color:#67816b;border-radius:20px;min-height:57px;padding:10px 22px;font-weight:900;font-size:18px}
.v2-commands .v2-drive{background:#538e71;color:white;border-color:#538e71;box-shadow:0 5px 0 #386f56;min-width:215px;font-size:22px}
.v2-commands button:disabled{opacity:.45;box-shadow:none}
.v2-workshop button:focus-visible{outline:4px solid #3c8793;outline-offset:3px}
@media(max-width:640px){
 .v2-workshop{padding:7px;border-radius:18px}
 .v2-header{gap:6px;margin-bottom:7px}
 .v2-request{font-size:14px}
 .v2-mode{font-size:11px;padding:6px 9px;min-height:43px}
 .v2-scene{height:340px;min-height:340px;border-radius:14px;border-width:2px}
 .v2-note{font-size:13px;margin:9px 2px 2px}
 .v2-palette{gap:5px;margin:10px 0 5px}
 .v2-piece{font-size:10px;min-height:70px;padding:5px 2px;border-radius:12px}
 .v2-piece-icon{font-size:27px}
 .v2-help{font-size:11px;margin:5px 0}
 .v2-commands{gap:8px;margin-top:7px}
 .v2-commands button{min-height:48px;font-size:13px;padding:8px 12px}
 .v2-commands .v2-drive{font-size:19px;flex:1;min-width:0}
}
