/* Mobile app-like chrome — desktop unchanged */
@media (max-width: 900px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: clip;
    min-height: 100dvh;
    overscroll-behavior-y: contain;
  }

  body {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    -webkit-tap-highlight-color: transparent;
  }

  /* Prefer app-like fixed backgrounds on phones */
  body[data-zodiac-home="1"],
  body.kds-app {
    min-height: 100dvh;
  }
}

/* Standalone PWA (Add to Home Screen) */
@media (display-mode: standalone), (display-mode: fullscreen) {
  body {
    user-select: none;
    -webkit-user-select: none;
  }

  input,
  textarea,
  [contenteditable="true"] {
    user-select: text;
    -webkit-user-select: text;
  }
}
