html.ea-scene-open {overflow:hidden; overscroll-behavior:none;}
body.seated {overflow:visible;}
.seated .masthead {display:flex;}
.seated #scene-home > .stage {
  position:relative;
  inset:auto;
  z-index:auto;
  height:clamp(35rem,75svh,52rem);
  border-radius:1rem;
}
.scene-screen {
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  height:100dvh;
  max-width:none;
  max-height:none;
  margin:0;
  padding:0;
  overflow:hidden;
  border:0;
  border-radius:0;
  background:#101c19;
  color:#fffdf1;
  overscroll-behavior:none;
}
.scene-screen::backdrop {background:#101c19;}
.scene-screen:not([open]) {display:none;}
.scene-screen[open] > .stage {
  position:relative;
  inset:auto;
  width:100%;
  height:100%;
  max-height:none;
  border-radius:0;
}
.scene-exit {
  position:absolute;
  z-index:10;
  top:max(.75rem,env(safe-area-inset-top));
  right:max(.75rem,env(safe-area-inset-right));
  min-width:3.75rem;
  min-height:44px;
  padding:.45rem .85rem;
  border:1px solid #e2eadd94;
  border-radius:2rem;
  background:#14221ee6;
  color:#fffdf2;
  font:600 .875rem/1.25 var(--ui);
}
.scene-actions {display:flex; align-items:center; gap:.4rem;}
.scene-actions button {min-height:44px; pointer-events:auto;}
.scene-screen[open] .sitting-top {
  top:max(.75rem,env(safe-area-inset-top));
  left:max(.75rem,env(safe-area-inset-left));
  right:calc(max(.75rem,env(safe-area-inset-right)) + 4.25rem);
}
.scene-screen .restore {
  right:max(.75rem,env(safe-area-inset-right));
  bottom:max(.75rem,env(safe-area-inset-bottom));
  min-height:44px;
}
.scene-screen .sitbar {bottom:max(.75rem,env(safe-area-inset-bottom));}
@media (max-width:650px) {
  .seated #scene-home > .stage {height:clamp(33rem,82svh,47rem);}
  .scene-screen .view-name {min-width:0; font-size:.9rem; line-height:1.15;}
  .scene-screen .scene-actions {flex:none;}
}
@media (max-height:520px) and (orientation:landscape) {
  .scene-screen .practice-panel, .scene-screen .reflection {
    top:.65rem;
    left:max(.65rem,env(safe-area-inset-left));
    width:min(48%,32rem);
    max-height:calc(100% - 5rem);
    overflow:auto;
  }
}
