/* The globe fills the page under the top bar. Panels are small and square;
   the questions that drift in are near-black cards with a thin arrow. */

.is-globe, .is-globe body { height: 100%; overflow: hidden; }
.globe-stage { position: relative; height: calc(100vh - var(--rail)); height: calc(100svh - var(--rail)); overflow: hidden; }
#globe { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#globe.dragging { cursor: grabbing; }
#globe.over { cursor: pointer; }

/* ---- the questions that drift in -------------------------------------- */
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; overflow: visible; }
.leaders path {
  fill: none; stroke: rgba(255, 229, 0, .85); stroke-width: 1.2;
  marker-end: none; opacity: 1; transition: opacity .5s linear;
}
.leaders path.out { opacity: 0; }
.ghosts { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.ghost {
  position: absolute; left: 0; top: 0; pointer-events: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; align-items: end;
  width: max-content; max-width: min(300px, 70vw);
  background: rgba(7, 7, 7, .92); border: 1px solid var(--line-2); padding: 10px 12px 11px;
  opacity: 0; transition: opacity .45s linear, border-color .12s linear;
}
.ghost.in { opacity: 1; }
.ghost .label { grid-column: 1 / -1; color: var(--mid); }
.ghost .gq { font-size: 16px; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); font-weight: 600; }
.ghost .go { font-family: var(--mono); color: var(--yellow); font-size: 16px; }
@media (hover: hover) { .ghost:hover { border-color: var(--yellow); } }

/* ---- panels ------------------------------------------------------------ */
.gpanel {
  position: absolute; z-index: 10; top: 12px; left: 12px; width: 260px; max-width: calc(100vw - 80px);
  background: rgba(7, 7, 7, .9); border: 1px solid var(--line-2); padding: 8px;
}
.gpanel-head { display: flex; align-items: center; gap: 8px; }
.gpanel-head .label { flex: 1; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.mini { padding: 4px 8px; font-size: 9.5px; }
.places { display: flex; flex-direction: column; gap: 1px; margin-top: 8px; max-height: 46vh; overflow-y: auto; }
.places button {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  background: var(--raise); border: 1px solid var(--line); color: var(--mid);
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  padding: 6px 8px; cursor: pointer; text-align: left;
}
@media (hover: hover) { .places button:not([disabled]):hover { color: var(--ink); border-color: var(--line-2); } }
.places button b { font-weight: 400; opacity: .65; }
.places .muted-row { color: var(--dim); cursor: default; }

.gzoom { position: absolute; z-index: 10; top: 12px; right: 12px; display: flex; flex-direction: column; }
.gzoom .btn { width: 40px; height: 38px; padding: 0; justify-content: center; font-size: 15px; border-top-width: 0; }
.gzoom .btn:first-child { border-top-width: 1px; }

.ghint {
  position: absolute; z-index: 10; left: 50%; bottom: 18px; transform: translateX(-50%);
  margin: 0; background: rgba(7, 7, 7, .85); border: 1px solid var(--line-2); padding: 7px 10px;
  color: var(--mid); white-space: nowrap; transition: opacity .6s linear;
}
.ghint.gone { opacity: 0; pointer-events: none; }

.gtip {
  position: absolute; z-index: 20; max-width: 280px; pointer-events: none;
  background: #000; border: 1px solid var(--line-2); padding: 8px 10px 9px;
  font-size: 13.5px; line-height: 1.3; color: var(--ink);
}
.gtip .label { display: block; color: var(--yellow); margin-bottom: 4px; }
.gtip .label:last-child { color: var(--dim); margin: 5px 0 0; }
.gloading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); }

@media (max-width: 700px) {
  .gpanel { width: auto; right: 64px; }
  .ghost { max-width: 72vw; padding: 8px 10px 9px; }
  .ghost .gq { font-size: 14.5px; }
  .ghint { white-space: normal; width: calc(100% - 32px); text-align: center; bottom: 12px; }
}
