.spatial-host{min-width:0}.spatial-shell{background:#153a32;color:#f7f5e9;border:1px solid #49675b;border-radius:16px;overflow:hidden;box-shadow:0 20px 40px #173a3220}.spatial-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 16px;font-size:11px;letter-spacing:.1em}.spatial-badge{color:#bfe5c8}.spatial-world{position:relative;height:430px;min-height:300px;overflow:hidden;background:#cad3c1}.spatial-canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab;outline-offset:-5px}.spatial-canvas:active{cursor:grabbing}.spatial-canvas:focus-visible{outline:3px solid #e5ac68}.spatial-reticle{position:absolute;top:50%;left:50%;width:8px;height:8px;border:1px solid #ffffffa0;border-radius:50%;pointer-events:none}.spatial-marker{position:absolute;z-index:3;min-width:44px;min-height:44px;padding:8px 12px;background:#ffefc4;color:#244236;border:2px solid #fff8e4;border-radius:24px;font-weight:800;box-shadow:0 3px 20px #17392b40;transform:translate(-50%,-50%);cursor:pointer}.spatial-marker.recorded{background:#d1ebd8;border-color:#70b68c}.spatial-marker[aria-pressed=true]{outline:3px solid #d6814b;outline-offset:3px}.spatial-marker[hidden]{display:none}.spatial-look-hint{position:absolute;left:12px;top:12px;padding:6px 9px;max-width:85%;font-size:11px;background:#173a32d9;border-radius:5px;pointer-events:none}.spatial-pad{position:absolute;z-index:4;bottom:14px;left:14px;display:grid;grid-template-columns:48px 48px 48px;grid-template-rows:48px 48px;gap:5px}.spatial-pad button{border:1px solid #d7e6d0aa;border-radius:10px;color:#fff8e6;background:#183f34e6;touch-action:none;user-select:none;font-size:21px;padding:0;cursor:pointer}.spatial-pad button:active{background:#e0aa66;color:#163b30}.spatial-pad [data-step=forward]{grid-column:2;grid-row:1}.spatial-pad [data-step=left]{grid-column:1;grid-row:2}.spatial-pad [data-step=back]{grid-column:2;grid-row:2}.spatial-pad [data-step=right]{grid-column:3;grid-row:2}.spatial-pad img{display:block;margin:auto;width:23px;filter:brightness(0) invert(1)}.spatial-pad [data-step=back] img{transform:rotate(180deg)}.spatial-pad [data-step=left] img{transform:rotate(-90deg)}.spatial-pad [data-step=right] img{transform:rotate(90deg)}.spatial-compass{position:absolute;right:12px;bottom:14px;max-width:160px;padding:7px 10px;background:#173a32e6;border-radius:7px;font-size:10px;pointer-events:none}.spatial-controls{padding:12px 15px;border-top:1px solid #ffffff22;display:flex;flex-wrap:wrap;gap:8px;align-items:center}.spatial-controls button{font-size:11px;border:1px solid #93ac9f;border-radius:7px;padding:8px 9px;color:#e5eedf;background:#244b3e;cursor:pointer;min-height:36px}.spatial-controls .spatial-progress{font-size:11px;flex:1;min-width:100px}.spatial-evidence-list{padding:0 15px 13px;display:flex;gap:7px;flex-wrap:wrap}.spatial-evidence-list button{background:#f3eedc;color:#1d4134;border:0;border-radius:8px;padding:10px 11px;font-size:11px;cursor:pointer;min-height:42px}.spatial-footnote{margin:0!important;padding:0 15px 13px;color:#c1d5c6;font-size:10px!important;line-height:1.5}.spatial-shell[data-chapter=intro] .spatial-evidence-list{display:none}.spatial-shell[data-chapter=intro] .spatial-marker{pointer-events:none}.spatial-shell[data-chapter=intro] .spatial-marker{display:none}.spatial-shell[data-chapter=intro] .spatial-world{height:385px}.spatial-shell[data-chapter=intro] .spatial-pad{display:none}.spatial-shell[data-chapter=intro] .spatial-controls{display:none}.spatial-fallback-toggle{display:block;margin:7px 0 0 auto;border:0;background:none;font-size:11px;color:#385a48;cursor:pointer;text-decoration:underline;padding:8px}.spatial-fallback[hidden]{display:none}.intro-art .case-label{position:relative;bottom:auto;right:auto;transform:none;margin:10px 0 0 auto;max-width:260px}.investigation-grid{grid-template-columns:minmax(0,1.25fr) minmax(280px,.8fr)}
@media(max-width:900px){.investigation-grid{grid-template-columns:1fr}.spatial-world{height:400px}}@media(max-width:500px){.spatial-world{height:360px}.spatial-shell[data-chapter=intro] .spatial-world{height:300px}.spatial-bar{padding:11px 12px;font-size:9px}.spatial-compass{max-width:118px}.spatial-controls{padding:10px}.spatial-controls button{font-size:10px}.spatial-evidence-list{padding:0 10px 12px;gap:5px}.spatial-evidence-list button{flex:1;padding:10px 5px}.spatial-footnote{padding:0 10px 10px}.spatial-pad{left:10px;bottom:12px;grid-template-columns:44px 44px 44px;grid-template-rows:44px 44px;gap:4px}.spatial-marker{padding:8px;min-width:42px;min-height:42px}.intro-art .case-label{display:none}}

/* v0.3.2: flex-column children must use the available width, not the illustration's intrinsic width. */
.spatial-host,.spatial-fallback{width:100%;max-width:100%;min-width:0}
.spatial-fallback .scene-panel,.spatial-fallback .scene{width:100%;max-width:100%;min-width:0}
@media(max-width:740px){.spatial-fallback .scene-top,.spatial-fallback .scene-bottom{flex-wrap:wrap}.intro-art .scene-panel{transform:none}.scene-caption{max-width:calc(100% - 10px);white-space:normal;overflow-wrap:anywhere}}
