/* ================================
   RESPONSIVE - TABLET PORTRAIT (iPad specific)
   ================================ */
@media (orientation: portrait) and (min-width: 700px) and (max-width: 1199px) {
  body {
    overflow: hidden;
  }

  #fps-meter,
  #drawcall-meter,
  #res-meter,
  #vram-meter {
    right: var(--space-7);
  }
}

/* ================================
   SPLIT SCREEN
   ================================ */
.split-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  display: none;
}

body.split-screen .split-overlay {
  display: block;
}

.split-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: var(--space-1-5);
  transform: translateX(-50%);
  background: var(--ui-card);
  box-shadow: 0 0 0 1px rgba(15, 29, 48, 0.12);
}

.split-label {
  position: absolute;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  background: var(--hud-label-bg);
  color: var(--ui-ink);
  border: 1px solid var(--ui-line);
  box-shadow: var(--ui-shadow-float);
}

/* Read-only shared configuration: a stage pill like the toolbar's. */
.shared-config-readonly-banner {
  position: fixed;
  top: calc(108px + env(safe-area-inset-top, 0px));
  left: calc((100vw - var(--stage-right, 0px)) / 2);
  z-index: 1200;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - var(--stage-right, 0px) - 32px);
  padding: 8px 14px;
  border-radius: var(--radius-round);
  background: var(--ui-glass);
  color: var(--ui-accent-text);
  box-shadow: inset 0 0 0 1px rgba(15, 29, 48, 0.06), var(--ui-shadow-float);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}

/* Phones: below the environment bar's second row, where the toasts sit too. */
@media (orientation: portrait) and (max-width: 599px) {
  .shared-config-readonly-banner {
    top: calc(128px + env(safe-area-inset-top, 0px));
  }
}
