:root {
  --bg: #0d0f14;
  --panel: rgba(18, 21, 28, 0.88);
  --line: #2a2f3a;
  --text: #e6e8ee;
  --muted: #8b93a3;
  --accent: #ffd34d;
  font: 14px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}

#map {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

#map.dragging { cursor: grabbing; }

#card {
  position: fixed;
  top: 16px;
  left: 16px;
  width: min(340px, calc(100vw - 32px));
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}

h1 { margin: 0 0 4px; font-size: 18px; }
.lede { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }

#you { margin-bottom: 10px; }
#you .ip { font: 600 20px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); }
#you .org { font-weight: 600; }
#you .detail { color: var(--muted); font-size: 13px; }
#you a { color: var(--text); }

#go { display: flex; gap: 6px; }
#go input {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0b0d12;
  color: var(--text);
  font: 13px ui-monospace, SFMono-Regular, Menlo, monospace;
}
#go button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #1c212b;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
#go button:hover { background: #262c38; }

#where { margin: 10px 0 0; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

#mini {
  position: fixed;
  right: 16px;
  bottom: 36px;
  width: 200px;
  height: 112px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: crosshair;
  touch-action: none;
}

#help, #credit {
  position: fixed;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
#help { left: 16px; bottom: 10px; }
#credit { right: 16px; bottom: 10px; }
#credit a { color: var(--muted); }
.link { padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-decoration: underline; cursor: pointer; }

#fb {
  position: fixed;
  right: 16px;
  bottom: 36px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(320px, calc(100vw - 32px));
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}
#fb[hidden] { display: none; }
#fb label { font-weight: 600; }
#fb textarea, #fb input {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0b0d12;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  resize: vertical;
}
#fb .trap { position: absolute; left: -9999px; width: 1px; height: 1px; }
.fb-row { display: flex; align-items: center; gap: 6px; }
.fb-row span { flex: 1; font-size: 12px; }
.fb-row button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #1c212b;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

@media (max-width: 600px) {
  .lede, #help { display: none; }
  #mini { width: 140px; height: 80px; }
}
