html, body {
  margin: 0;
  padding: 0;
  background: #0b0e13;
  color: #e8ecf1;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  height: 100%;
  overflow: hidden;
}

#canvas-container {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  bottom: 0;
}

#ui-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  background: linear-gradient(90deg, rgba(10,14,20,0.9), rgba(12,22,30,0.75));
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
  z-index: 10;
}

.buttons {
  margin-left: auto;
}

.branding .title {
  font-weight: 700; letter-spacing: 0.5px; margin-right: 12px;
}
.branding .subtitle {
  font-size: 12px; color: #93a2b8;
}

.buttons button {
  background: #1b2332; color: #dbe3ee; border: 1px solid #2b3950;
  padding: 6px 10px; border-radius: 6px; cursor: pointer; margin-right: 6px;
}
.buttons button:hover { background: #22304a; }

.play-pause-btn {
  background: #1b2332 !important;
  border: 1px solid #2b3950 !important;
  color: #dbe3ee !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  margin-right: 6px !important;
  font-size: 16px !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  box-shadow: none !important;
}

.play-pause-btn:hover {
  background: #22304a !important;
}

.play-pause-btn:active {
  transform: scale(0.95) !important;
}

.play-pause-btn:focus {
  outline: none !important;
  box-shadow: none !important;
}

.timebar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: auto;
}
.timebar input[type="range"] { width: 220px; }
.timebar input[type="checkbox"] {
  margin-left: 10px;
  cursor: pointer;
}
.timebar label {
  cursor: pointer;
  color: #93a2b8;
  font-size: 14px;
}

#legend {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(12, 20, 30, 0.75);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 8px 10px; border-radius: 10px; font-size: 12px; line-height: 20px;
  z-index: 9;
}
#legend .dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px;
}
#legend .taxi { background: #ffd54d; }
#legend .police { background: #6aa9ff; }
#legend .ambulance { background: #ff6a6a; }
#legend .delivery { background: #a88cff; }
#legend .car { background: #9bd1ff; }
#legend .person { background: #6adea8; }
#legend .pet { background: #e0aaff; }
#legend .shop { background: #c5ff6a; }
#legend .park { background: #8be08b; }

.lil-gui.root { --background-color: rgba(12, 20, 30, 0.9); --widget-color: #1b2332; --text-color: #e8ecf1; --title-background-color: #101822; }