html[data-river-layout], html[data-river-layout] body.river-simulator {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}
body.river-simulator > .sim-header,
body.river-simulator > .sim-hint,
body.river-simulator > .preview-hint { display: none !important; }
html[data-river-layout] .sim-stage {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  background: none;
  display: grid;
  place-items: center;
  container-type: size;
}
html[data-river-layout] .sim-stage .handset { width: min(43cqw, calc(72cqh * 76.6 / 108.49)); }
/* Match the closed CAD case at the end of the feature tour. */
@media (max-width: 740px), (max-aspect-ratio: 4/5) {
  html[data-river-layout] .sim-stage .handset { width: min(82cqw, calc(67cqh * 76.6 / 108.49)); }
}
