/* Full-screen desktop-only gate — blocks mobile/tablet before and after JS */

/* CSS-only lockdown: hide app chrome on narrow or touch-primary viewports */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  #desktop,
  .monitor-bezel,
  #iosShell,
  .ios-sheet-layer,
  #bootSplash {
    display: none !important;
  }

  html:not([data-gate="active"]) body {
    overflow: hidden;
    background: #f5f5f7;
  }

  html:not([data-gate="active"]) body.dark-theme {
    background: #0b0c0f;
  }

  .desktop-gate--preload {
    display: flex;
  }
}

html[data-gate="active"] #desktop,
html[data-gate="active"] .monitor-bezel,
html[data-gate="active"] #iosShell,
html[data-gate="active"] .ios-sheet-layer,
html[data-gate="active"] #bootSplash {
  display: none !important;
}

html[data-gate="active"] body {
  overflow: hidden;
  cursor: default !important;
}

html[data-gate="active"] .desktop-gate {
  display: flex;
}

.desktop-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #f5f5f7;
  color: #1d1d1f;
  font-family:
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;
  text-align: center;
  user-select: none;
  pointer-events: auto;
}

body.dark-theme .desktop-gate {
  background: radial-gradient(
    ellipse 120% 80% at 50% 15%,
    #1a1d24 0%,
    #0b0c0f 45%,
    #050506 100%
  );
  color: #f5f5f7;
}

.desktop-gate__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 22rem;
}

.desktop-gate__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.125rem;
  background: rgba(0, 122, 255, 0.12);
  color: #007aff;
}

body.dark-theme .desktop-gate__mark {
  background: rgba(0, 122, 255, 0.18);
  color: #5ac8fa;
}

.desktop-gate__title {
  margin: 0;
  font-size: clamp(1.05rem, 4.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
