html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #bfe6ff;
  font-family: "Comic Sans MS", "Segoe UI", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
}

#app {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
}

canvas {
  display: block;
}

#trip-progress {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  flex-shrink: 0;
}

#trip-progress-track {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: #d8d8d8;
  overflow: hidden;
}

#trip-progress-fill {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 0%;
  background: #7fb37f;
}

#trip-progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  height: 100%;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: trip-progress-glow 2.8s ease-in-out infinite;
}

@keyframes trip-progress-glow {
  0% { left: -60%; }
  60% { left: 100%; }
  100% { left: 100%; }
}

#loading-spinner {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #bfe6ff;
  z-index: 100;
  transition: opacity 0.4s ease;
}

#loading-spinner.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner-ring {
  width: 48px;
  height: 48px;
  border: 5px solid rgba(0, 0, 0, 0.15);
  border-top-color: #7fb37f;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.label {
  position: absolute;
  display: none;
  transform: translate(-50%, -100%);
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #0003;
  font-size: 13px;
  white-space: nowrap;
  pointer-events: none;
}
