/* Minimal, clean UI */
:root{
  --bg: #0b0f17;
  --panel: rgba(255,255,255,.92);
  --panelText: #0b0f17;
  --border: rgba(10,15,23,.12);
  --shadow: 0 10px 30px rgba(0,0,0,.25);
}

*{ box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: white;
  background: var(--bg);
}

.topbar{
  position: fixed;
  inset: 0 0 auto 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(10, 15, 23, .72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  z-index: 10;
}

.brand{
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 220px;
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #7aa6ff 45%, #1b4dff);
  box-shadow: 0 0 0 4px rgba(122,166,255,.15);
}

.title{ font-weight: 650; letter-spacing: .2px; line-height: 1; }
.subtitle{ opacity: .75; font-size: 12px; margin-top: 2px; }

.actions{ display:flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.sep{ width: 1px; height: 20px; background: rgba(255,255,255,.16); display:inline-block; margin: 0 4px; }

.btn{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: white;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .06s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
}
.btn:active{ transform: translateY(1px); }
.btn-ghost{ background: transparent; }

.btn[disabled]{ opacity: .5; cursor: not-allowed; }

.btn-active{
  background: rgba(122,166,255,.20);
  border-color: rgba(122,166,255,.45);
}

main{
  position: relative;
  height: 100%;
}

#map{
  position: absolute;
  top: 56px;
  bottom: 0;
  width: 100%;
}

/* HUD */
.hud{
  position: fixed;
  bottom: 14px;
  left: 14px;
  min-width: 240px;
  max-width: min(560px, calc(100vw - 28px));
  background: var(--panel);
  color: var(--panelText);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px 12px;
  z-index: 10;
}

.hud-row{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0;
}
.hud-label{ font-size: 12px; opacity: .7; }
.hud-value{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 12px; }

/* Notices */
.notice{
  position: fixed;
  top: 70px;
  left: 14px;
  right: 14px;
  background: rgba(255, 219, 128, .96);
  color: #1a1200;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px 12px;
  z-index: 20;
  font-size: 14px;
}
.notice code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

/* User location marker (pulsing dot) */
.user-dot{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 0 0 4px rgba(255,255,255,.35), 0 0 0 9px rgba(122,166,255,.25);
  position: relative;
}

.user-dot::after{
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  border: 2px solid rgba(122,166,255,.45);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse{
  0%   { transform: scale(.35); opacity: .9; }
  70%  { transform: scale(1); opacity: .0; }
  100% { transform: scale(1); opacity: 0; }
}
