/* Regal Design Studio — responsive controls for the progressive 3D scene. */
.canvas-wrap{isolation:isolate;overflow:hidden;position:relative}
#scene-3d{
  position:absolute;inset:0;z-index:0;
  display:block;width:100%;height:100%;
  min-height:0;max-height:100%;
  pointer-events:none;touch-action:none;
}
#scene{position:relative;z-index:1;background:transparent!important}
.scene-instructions,.scene-zoom,.scene-indicator{z-index:3}
.marquee-box{z-index:4}
.scene-instructions{
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  max-width:calc(100% - 30px);
  box-shadow:0 4px 18px #35273e26;
}
.scene-zoom{border:1px solid #dbc7a7;border-radius:10px;padding:4px;background:#fff9efe9;box-shadow:0 7px 21px #26352b32}
.scene-zoom button{display:grid;place-items:center;border-radius:7px;min-height:37px;width:39px}
#fit-view{font-size:20px}
.scene-toolbar-right{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.scene-toolbar .tool{
  min-height:37px;transition:background .18s ease,border-color .18s ease,color .18s ease;
}
.scene-toolbar .tool:focus-visible,
.scene-zoom button:focus-visible{
  outline:3px solid #e6c48f;outline-offset:2px;
}
@media(max-width:700px){
  .scene-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:11px}
  .scene-toolbar-left{display:flex;justify-content:space-between;align-items:center;gap:8px}
  .scene-toolbar-left strong,.scene-toolbar-left span{display:inline}
  .scene-toolbar-right{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:6px}
  .scene-toolbar-right .tool{
    min-width:0;min-height:42px;padding:7px 4px;
    font-size:11px;white-space:normal;line-height:1.2;
  }
  .scene-instructions{
    top:9px;width:auto;max-width:calc(100% - 16px);
    white-space:normal;overflow:visible;text-overflow:clip;
    font-size:10px;line-height:1.4;text-align:center;
    padding:6px 10px;letter-spacing:.005em
  }
  .scene-zoom{right:9px;bottom:10px;padding:3px}
  .scene-zoom button{width:36px;min-height:37px}
  .scene-indicator{left:9px;bottom:10px;font-size:9px}
}
@media(max-width:370px){
  .scene-toolbar-right{width:100%}
  .scene-toolbar-right .tool{font-size:10px}
  .scene-toolbar-left strong{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
  .scene-toolbar .tool{transition:none}
}
