/* Prevent pull-to-refresh on iOS */
html, body {
  overscroll-behavior-y: contain;
  overscroll-behavior-x: none;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}
#root {
  width: 100%;
  height: 100%;
}
/* Prevent iOS bounce/rubber-band scrolling at document level */
html {
  position: fixed;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
body {
  position: fixed;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
#root {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Instant boot splash — shown before React/Babel loads app.js */
.app-boot-splash {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  background: linear-gradient(to bottom right, rgb(240 253 244), rgb(220 252 231));
}

.app-boot-splash__inner {
  text-align: center;
  max-width: 20rem;
  width: 100%;
}

/* Tour / buyer logo — fixed display box on passcode, main menu, loading (not source pixel size) */
.tour-logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: min(16rem, 100%);
  max-height: 6.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.app-boot-splash__logo {
  margin: 0 auto 1.25rem;
}

.app-boot-splash__title {
  margin: 0 0 0.5rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(31 41 55);
}

.app-boot-splash__status {
  margin: 0 0 1.25rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9375rem;
  color: rgb(75 85 99);
  min-height: 1.25rem;
}

.app-boot-splash__spinner {
  width: 2rem;
  height: 2rem;
  margin: 0 auto;
  border: 3px solid rgb(187 247 208);
  border-top-color: rgb(22 163 74);
  border-radius: 50%;
  animation: app-boot-spin 0.85s linear infinite;
}

@keyframes app-boot-spin {
  to {
    transform: rotate(360deg);
  }
}
