html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #0F172A;
  overscroll-behavior: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#bootstrap-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  color: #fff;
  background:
    radial-gradient(circle at 50% 35%, rgba(229, 57, 53, 0.22), transparent 34%),
    #0F172A;
  transition: opacity 180ms ease;
}

#bootstrap-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-card {
  width: min(360px, 100%);
  text-align: center;
}

.loader-pin {
  font-size: 54px;
  line-height: 1;
  margin-bottom: 14px;
}

.loader-title {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 2px;
}

.loader-subtitle {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.64);
}

.loader-bar {
  height: 4px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.loader-bar::after {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: #E53935;
  animation: loader-slide 1.15s ease-in-out infinite;
}

.loader-card.loader-error .loader-title {
  color: #ff8a80;
}

.loader-card.loader-error .loader-subtitle {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.45;
}

.loader-card.loader-error .loader-bar::after {
  width: 100%;
  transform: none;
  animation: none;
  opacity: 0.72;
}

@keyframes loader-slide {
  from { transform: translateX(-110%); }
  to { transform: translateX(340%); }
}


/* Flutter verarbeitet Scroll-, Drag- und Tap-Gesten selbst. Der Browser
   darf die Gesten auf der Zeichenfläche daher nicht vorzeitig übernehmen. */
flt-glass-pane,
flutter-view {
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

/* The app renders its own compact map attribution near the timeline. */
.maplibregl-ctrl-attrib,
.maplibregl-ctrl-logo {
  display: none !important;
}

.maplibregl-ctrl-bottom-left,
.maplibregl-ctrl-bottom-right {
  pointer-events: none !important;
}

/* Native Texteingabeelemente bleiben für Tastatur, Cursor und Auswahl frei. */
input,
textarea,
[contenteditable="true"] {
  touch-action: auto;
  -webkit-user-select: text;
  user-select: text;
  font-size: 16px !important;
}
