/* One playing area keeps real laser returns beside their controls. */
lidar-playground{display:block;min-width:0;container-type:inline-size;width:100%}
.lp-game{--lp-green:#c9e3a9;--lp-orange:#ffad70;color:var(--ink,#202830);font:14px/1.55 var(--sans,'Segoe UI',sans-serif);text-align:left}
.lp-game *,.lp-game *::before,.lp-game *::after{box-sizing:border-box}.lp-game [hidden]{display:none!important}.lp-game :is(p,h3,h4,ol,dl,dd){margin:0}
.lp-intro{margin-bottom:14px!important;max-width:70ch;color:var(--muted,#605750);font-size:13px}
.lp-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(250px,1fr);gap:24px;align-items:start}
.lp-stage{min-width:0}.lp-hud{font:11px/1.5 var(--mono,Consolas,monospace);padding-bottom:8px;color:var(--accent,#7d141d)}
.lp-canvas-wrap{position:relative;min-width:0;background:#1d1b1b;border-radius:6px;overflow:hidden;text-align:center}.lp-canvas-wrap canvas{display:block;width:100%;height:auto;aspect-ratio:1.5;margin:auto;outline-offset:-4px}.lp-canvas-wrap canvas:focus-visible{outline:2px solid #79baff}
.lp-first{position:absolute;top:30%;inset-inline:12px;text-align:center;pointer-events:none}.lp-first p{font:13px/1.5 var(--sans,'Segoe UI',sans-serif);color:#e6edf3}
.lp-legend{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;color:var(--muted,#605750);font:10px/1.5 var(--mono,Consolas,monospace);padding-top:8px}.lp-legend>span{display:inline-flex;align-items:center;gap:6px}.lp-dot{width:5px;height:5px;display:inline-block}.lp-green{background:#637345}.lp-orange{background:#b76328}.lp-signal{width:9px;height:9px;border:1px solid #b76328;border-radius:50%;display:inline-block}.lp-point-count{margin-left:auto}
.lp-panel{min-width:0;padding-top:24px}.lp-game button{min-height:44px;min-width:44px;border:1px solid var(--control-border,#897b72);border-radius:5px;padding:9px 12px;font:500 12px/1.4 var(--sans,'Segoe UI',sans-serif);color:var(--ink,#202830);background:var(--panel,#fffcf9);cursor:pointer;touch-action:manipulation}.lp-game button:hover{background:var(--hover,#e5dbd2)}.lp-game button:active{filter:brightness(.9)}.lp-game :is(button,summary):focus-visible{outline:3px solid var(--focus,#215ca2);outline-offset:3px}
.lp-driving{display:flex;align-items:center;gap:18px}.lp-actions{display:grid;gap:8px;flex:1;min-width:0}.lp-game .lp-scan{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;font-size:14px;font-weight:650;background:var(--action,#7d141d);border-color:var(--action,#7d141d);color:var(--on-action,#f4efea)}.lp-game .lp-scan:hover{background:var(--action-hover,#651019)}.lp-game kbd{font:10px var(--mono,Consolas,monospace);border:1px solid currentColor;border-radius:3px;padding:2px 4px;opacity:.8}
.lp-pad{display:grid;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,44px);gap:5px;flex-shrink:0}.lp-pad button{padding:0;font-size:21px;touch-action:none;user-select:none;-webkit-user-select:none}.lp-pad [data-drive=north]{grid-column:2}.lp-pad [data-drive=west]{grid-row:2;grid-column:1}.lp-pad [data-drive=east]{grid-row:2;grid-column:3}.lp-pad [data-drive=south]{grid-row:3;grid-column:2}.lp-pad>span{grid-row:2;grid-column:2;align-self:center;text-align:center;font:8px var(--mono,Consolas,monospace);color:var(--muted,#605750)}
.lp-secondary{display:flex;flex-wrap:wrap;gap:6px}.lp-secondary button{flex:1;font-size:11px;padding-inline:7px}.lp-help{font-size:11px;color:var(--muted,#605750);margin-top:10px!important}.lp-status{font-size:12px;line-height:1.6;color:var(--muted,#605750);min-height:3.2em;margin-top:8px!important;overflow-wrap:anywhere}
.lp-objectives{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px!important}.lp-objectives li{display:grid;grid-template-columns:22px minmax(0,1fr) 8px;gap:7px;align-items:center;font-size:12px}.lp-objectives li>span{font:11px var(--mono,Consolas,monospace);color:var(--muted,#605750)}.lp-objectives strong{font-weight:500}.lp-objectives i{width:8px;height:8px;border:1px solid var(--control-border,#897b72);border-radius:50%;display:block}.lp-objectives [data-state=spotted] i{border-color:var(--accent,#7d141d)}.lp-objectives [data-state=secured] i{background:var(--accent,#7d141d);border-color:var(--accent,#7d141d)}
.lp-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-bottom:16px}.lp-stats dt{font-size:10px;color:var(--muted,#605750)}.lp-stats dd{font:15px/1.5 var(--mono,Consolas,monospace)}
.lp-how,.lp-advanced,.lp-progress{margin-top:8px}.lp-game summary{font-weight:550;font-size:12px;min-height:44px;padding:12px 0;cursor:pointer}.lp-how p,.lp-advanced>p{font-size:12px;line-height:1.8;max-width:90ch;color:var(--muted,#605750);margin:0 0 16px}.lp-advanced [data-robot-mount]{padding-bottom:20px}.lp-advanced:not([open]) [data-robot-mount]{display:none}
@container(max-width:850px){.lp-layout{display:block}.lp-panel{padding-top:12px}.lp-driving{max-width:440px;gap:16px}.lp-hud{padding-bottom:6px}.lp-legend{font-size:9px}.lp-point-count{margin-left:0}.lp-status{max-width:65ch}}
@container(max-width:440px){.lp-objectives{grid-template-columns:1fr;gap:8px}.lp-intro{font-size:12px}.lp-driving{gap:12px}.lp-pad{gap:4px}.lp-game button{padding-inline:8px}.lp-pad button{padding:0}.lp-status{font-size:11px}}
@media(max-width:720px),(pointer:coarse){.lp-keyboard{display:none!important}}
@media(max-height:500px) and (max-width:1000px){.lp-layout{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:14px;max-width:calc((100svh - 160px)*1.5 + 224px);margin-inline:auto}.lp-panel{padding-top:22px}.lp-canvas-wrap canvas{width:min(100%,calc((100svh - 160px)*1.5))}.lp-driving{gap:10px;align-items:start}.lp-pad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,44px);gap:3px}.lp-pad button{min-width:44px;min-height:44px}.lp-secondary{display:grid}.lp-actions{gap:6px}.lp-actions button{font-size:10px;padding:6px}.lp-help{font-size:10px}.lp-status{font-size:10px;line-height:1.5;min-height:0}.lp-legend{font-size:8px;gap:3px 10px}.lp-intro{font-size:11px}}
@media(prefers-reduced-motion:reduce){.lp-game *{scroll-behavior:auto!important}}@media(forced-colors:active){.lp-game button{border-color:ButtonText}.lp-objectives i{border-color:CanvasText}.lp-canvas-wrap canvas{border:1px solid CanvasText}}@media print{.lp-driving,.lp-advanced{display:none!important}}
