.lab-scene{display:flex;flex-direction:column;align-items:center;width:100%;gap:12px}.lab-stage{position:relative;width:100%;max-width:840px}.lab-stage .game-canvas{display:block;width:100%;border-radius:18px;touch-action:none;box-shadow:0 15px 30px #0e173133}.lab-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;width:100%}.lab-scene .game-button{min-height:46px;min-width:44px;padding:11px 17px;font-size:14px;touch-action:manipulation}.lab-scene .lab-secondary{--button-art:url('../art/ui/button-secondary.webp');color:#f8fbff!important}.lab-scene .game-button[aria-pressed=true]{outline:3px solid #ffb73f;outline-offset:2px}.lab-scene .game-button:disabled{opacity:.48;cursor:default}.lab-status{font-size:15px;line-height:1.7;color:#fff5d2;margin:0;min-height:26px;max-width:750px;text-align:center}.lab-note{max-width:760px;margin:0;text-align:center}.lab-joints{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;width:100%}.lab-scene .lab-joint{padding:8px;min-width:46px}.lab-selection{display:flex;flex-wrap:wrap;gap:7px;justify-content:center;width:100%}.lab-peg-row{display:flex;justify-content:center;gap:6px;width:100%}.lab-peg-row .game-button{flex:1;max-width:93px;padding:9px 5px}.lab-readout{width:100%;text-align:center;font-size:14px;line-height:1.6;color:#fff5d2}.lab-pad{display:flex;gap:6px}.lab-pad .game-button{width:48px;padding:8px}.lab-scan-log{max-height:135px;overflow:auto;margin:0;padding:9px 15px 9px 35px;background:#1b2c50;border-radius:12px;color:#e5fff4;width:min(100%,600px);font-size:14px;line-height:1.7}.lab-match-stage{max-width:620px}.lab-match-overlay{position:absolute;left:8.333333%;top:10.833333%;width:83%;height:83%;display:grid;grid-template-columns:repeat(6,1fr);grid-template-rows:repeat(6,1fr)}.lab-match-cell{appearance:none;border:0;padding:0;background:none!important;box-shadow:none!important;min-width:44px;min-height:44px;cursor:pointer;border-radius:15px;touch-action:manipulation}.lab-match-cell:focus-visible{outline:3px solid #f8fbff;outline-offset:-5px}.lab-match-cell[aria-pressed=true]{outline:3px solid #ffe477;outline-offset:-5px}.lab-goals{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;font-size:15px;color:#fff5d2}.lab-goals span{padding:9px 12px;background:#1b2c50;border-radius:12px}.lab-signals{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.lab-key{font-size:12px;color:#8df0bf}.lab-scene button{user-select:none;-webkit-user-select:none}.lab-scene .game-button:focus-visible{outline:3px solid #f8fbff;outline-offset:3px}@media(max-width:600px){.lab-scene{gap:10px}.lab-scene .game-button{font-size:13px;padding:11px 12px;min-height:46px}.lab-status,.lab-note{font-size:14px}.lab-controls{gap:7px}.lab-scene .lab-joint{min-width:44px;padding:7px}.lab-match-cell{border-radius:10px}.lab-goals{gap:6px;font-size:13px}.lab-goals span{padding:7px 9px}.lab-peg-row{gap:4px}.lab-peg-row .game-button{padding:10px 3px}.lab-stage .game-canvas{border-radius:12px}}

.lab-launch-setting{display:flex;align-items:center;justify-content:center;gap:10px;min-height:46px;flex:1 0 100%;font-size:14px;color:#fff5d2}.lab-launch-setting input{width:min(210px,50%);height:44px;accent-color:#ffb73f}
/* Hit targets are transparent; the gems are drawn on the shared canvas. */
#game-host .lab-scene .lab-stage .lab-match-overlay .lab-match-cell{--button-art:none;background-image:none!important;background-color:transparent!important;box-shadow:none!important;border:0!important;text-shadow:none!important;transform:none!important}
.lab-match-stage .game-canvas{border:0!important}
@media(max-width:360px){.lab-stage.lab-match-stage{width:calc(100% + 24px);max-width:calc(100% + 24px);margin-inline:-12px;align-self:center}}

.lab-match-overlay{left:6%;top:9.666667%;width:88%;height:88%}
