/* ElektroBubbles 6.9.14 — Separate the interactive WebGL scene from its controls.
   Controls can no longer sit behind, cover, or be clipped by the model. */
.hero.eb5-hero{height:auto;min-height:760px;overflow:hidden;align-items:stretch}
.hero.eb5-hero .hero-visual{display:flex;flex-direction:column;height:auto;min-height:760px;padding:0 16px 15px;overflow:visible;gap:0}
.hero.eb5-hero .eb-scene-stage{position:relative;display:block;flex:1 1 auto;min-height:410px;width:100%;isolation:isolate;overflow:hidden;border-bottom:1px solid #284f40}
.hero.eb5-hero .eb-scene-stage #factory3d{display:block;position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:none}
.hero.eb5-hero .eb-scene-stage .eb5-gridmask{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.hero.eb5-hero .eb-scene-stage .eb5-scene-label{left:15px;top:14px}
.hero.eb5-hero .eb-scene-stage .eb68-camera{left:15px;top:52px}
.hero.eb5-hero .eb5-toolrow{position:relative;inset:auto;left:auto;right:auto;bottom:auto;display:flex;order:2;justify-content:flex-end;flex-wrap:wrap;gap:8px;width:100%;padding:11px 0;z-index:6}
.hero.eb5-hero .eb5-toolrow .eb5-tool{min-height:40px;touch-action:manipulation}
.hero.eb5-hero .eb5-controls{position:relative;inset:auto;left:auto;right:auto;bottom:auto;order:3;width:100%;margin:0;padding:13px 14px;box-shadow:none;z-index:4}
/* On desktops keep the telemetry on the scene's right side, without crossing the buttons. */
.hero.eb5-hero .hero-visual>.eb6-hmi{position:absolute;top:96px;right:26px;z-index:5}
@media(min-width:1181px){
 .hero.eb5-hero{min-height:810px}
 .hero.eb5-hero .hero-visual{min-height:810px}
 .hero.eb5-hero .eb-scene-stage{min-height:460px}
}
@media(max-width:1180px){
 .hero.eb5-hero{min-height:0}
 .hero.eb5-hero .hero-visual{min-height:0!important;height:auto!important;padding:0 20px 18px;overflow:visible}
 .hero.eb5-hero .eb-scene-stage{flex:none;height:clamp(340px,43vw,510px);min-height:0}
 .hero.eb5-hero .hero-visual>.eb6-hmi{top:37px;right:35px}
}
@media(max-width:830px){
 .hero.eb5-hero .hero-visual>.eb6-hmi{position:relative;inset:auto;order:1;margin:12px 0 4px;width:100%;max-width:none}
 .hero.eb5-hero .eb-scene-stage{height:clamp(320px,53vw,460px);order:0}
 .hero.eb5-hero .eb5-toolrow{justify-content:center;order:2}
 .hero.eb5-hero .eb5-controls{order:3}
}
@media(max-width:620px){
 .hero.eb5-hero .hero-visual{padding:0 12px 14px}
 .hero.eb5-hero .eb-scene-stage{height:310px}
 .hero.eb5-hero .eb-scene-stage .eb68-camera{top:48px;left:10px;max-width:calc(100% - 20px)}
 .hero.eb5-hero .eb-scene-stage .eb5-scene-label{top:10px;left:10px}
 .hero.eb5-hero .eb5-toolrow{display:grid;grid-template-columns:minmax(42px,48px) minmax(42px,48px) minmax(0,1fr) minmax(0,1fr);gap:7px;width:100%;padding:10px 0}
 .hero.eb5-hero .eb5-toolrow .eb5-tool{min-width:0;min-height:44px;padding:8px 5px;white-space:normal;overflow-wrap:anywhere;font-size:.70rem}
 .hero.eb5-hero .eb5-toolrow .eb-zoom-tool{font-size:1.28rem}
}
@media(max-width:360px){
 .hero.eb5-hero .eb-scene-stage{height:285px}
 .hero.eb5-hero .eb5-toolrow{grid-template-columns:38px 38px minmax(0,1fr) minmax(0,1fr);gap:5px}
 .hero.eb5-hero .eb5-toolrow .eb5-tool{font-size:.63rem;padding:7px 3px}
}
