* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0e0f12; color: #e8e8ea; font: 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; overflow: hidden; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: default; touch-action: none; }

.bar { position: fixed; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: linear-gradient(rgba(0,0,0,.55), transparent); pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar.top { top: 0; }
.bar.bottom { bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.55)); font-size: 12px; color: #c9c9ce; justify-content: space-between; }
.brand { font-weight: 700; letter-spacing: .3px; color: #ffb347; }
.name { opacity: .85; }
.status { margin-left: auto; font-size: 12px; opacity: .7; }
select { background: rgba(255,255,255,.08); color: inherit; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; padding: 4px 8px; }

.panel.floors { position: fixed; right: 14px; top: 60px; display: flex; flex-direction: column; gap: 6px; }
.panel.floors button { background: rgba(20,20,26,.75); color: inherit; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 8px 12px; cursor: pointer; backdrop-filter: blur(6px); }
.panel.floors button.active { background: #ffb347; color: #111; border-color: #ffb347; font-weight: 600; }

.minimap { position: fixed; left: 14px; bottom: 52px; background: rgba(20,20,26,.75); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 6px; backdrop-filter: blur(6px); }
.minimap canvas { display: block; cursor: pointer; }

.overlay { position: fixed; inset: 0; display: grid; place-items: center; background: #0e0f12; font-size: 16px; transition: opacity .4s; z-index: 10; }
.overlay.hidden { opacity: 0; pointer-events: none; }
.overlay.error { color: #ff7a7a; padding: 24px; text-align: center; white-space: pre-wrap; }

@media (max-width: 640px) {
  .hint { display: none; }
  .minimap canvas { width: 150px; height: 150px; }
}
