
.sgt-white-stage {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
}
.sgt-white-stage .sgt-fullscreen-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}
.sgt-white-stage .sgt-fullscreen-btn:hover {
  background: rgba(0,0,0,0.8);
}

/* Fallback "fake fullscreen" for browsers/devices where the native
   Fullscreen API is unavailable or rejected (mainly iOS Safari on iPhone). */
html.sgt-fake-fullscreen-lock,
body.sgt-fake-fullscreen-lock{ overflow:hidden !important; height:100% !important; }

.sgt-white-stage.sgt-fake-fullscreen{
  position:fixed !important;
  top:0; left:0; right:0; bottom:0;
  width:100vw !important;
  height:100vh !important;
  height:100dvh !important;
  border-radius:0 !important;
  z-index:2147483647;
}

/* When actually fullscreen (native), fill the screen edge-to-edge instead of
   keeping the in-page rounded "card" look. Separate rules per prefix on
   purpose — an unsupported pseudo-class in a comma list can drop the whole
   rule in some browsers. */
.sgt-white-stage:fullscreen{ border-radius:0 !important; box-shadow:none !important; }
.sgt-white-stage:-webkit-full-screen{ border-radius:0 !important; box-shadow:none !important; }
.sgt-white-stage:-moz-full-screen{ border-radius:0 !important; box-shadow:none !important; }
.sgt-white-stage:-ms-fullscreen{ border-radius:0 !important; box-shadow:none !important; }

/* Once fullscreen is active, the on-screen control is unnecessary clutter —
   desktop users exit with Escape/F, mobile users with the device Back
   button/gesture (see the history-guard logic in white.js). */
.sgt-white-stage.sgt-fake-fullscreen .sgt-fullscreen-btn{ display:none !important; }
.sgt-white-stage:fullscreen .sgt-fullscreen-btn{ display:none !important; }
.sgt-white-stage:-webkit-full-screen .sgt-fullscreen-btn{ display:none !important; }
.sgt-white-stage:-moz-full-screen .sgt-fullscreen-btn{ display:none !important; }
.sgt-white-stage:-ms-fullscreen .sgt-fullscreen-btn{ display:none !important; }
