:root {
  --fundo: #000;
  --barra: #14181f;
  --texto: #e8ecf2;
  --suave: #8a94a6;
  --destaque: #f2c53d;
  --borda: #2a313d;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--fundo); color: var(--texto);
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { display: flex; flex-direction: column; }

.topo { display: flex; align-items: center; gap: 12px; padding: 8px 16px;
  background: var(--barra); border-bottom: 1px solid var(--borda); flex-wrap: wrap; }
.marca { font-weight: 700; color: var(--destaque); letter-spacing: .02em; }
.titulo { color: var(--suave); }
#busca { margin-left: auto; min-width: 0; width: 220px; max-width: 100%; padding: 6px 10px;
  border-radius: 6px; border: 1px solid var(--borda); background: #0c0f14; color: var(--texto); font: inherit; }

#mapa { flex: 1; min-height: 0; background: var(--fundo); }
.leaflet-container { background: var(--fundo); font: inherit; }
.mapa-tiles img { image-rendering: pixelated; }
.aviso { padding: 16px; color: var(--suave); }
.mapa-vazio { position: absolute; inset: 0; display: grid; place-items: center; z-index: 500;
  color: var(--suave); pointer-events: none; margin: 0; }

/* nomes dos lugares */
.rotulo { white-space: nowrap; pointer-events: none; }
.rotulo span { display: inline-block; transform: translate(-50%, -50%); color: #fff;
  text-shadow: 0 0 3px #000, 0 0 3px #000, 1px 1px 2px #000; }
.rotulo.regiao span { font-size: 26px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.rotulo.cidade span { font-size: 15px; font-weight: 700; }
.rotulo.rota span { font-size: 12px; color: #dfe6ef; }
.rotulo.local span { font-size: 12px; font-style: italic; color: var(--destaque); }

.mapa-coords { background: rgba(20, 24, 31, .85); color: var(--texto); padding: 2px 8px;
  border-radius: 4px; font: 12px ui-monospace, Consolas, monospace; min-height: 18px; }
.leaflet-bar a.mapa-botao { font-weight: 700; font-size: 13px; }
.leaflet-bar a.mapa-botao.desligado { color: #999; text-decoration: line-through; }
.leaflet-bar a.mapa-botao.ativo { background: var(--destaque); color: #000; }
.mapa-andares { max-height: 60vh; overflow-y: auto; }

/* jogadores ao vivo: ponto, e o nome a partir de certo zoom */
.jogador { white-space: nowrap; }
.jogador i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: #3dd6f2; border: 2px solid #fff; box-shadow: 0 0 4px #000; }
.jogador span { display: none; position: absolute; left: 0; top: -22px; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; color: #3dd6f2; text-shadow: 0 0 3px #000, 0 0 3px #000; pointer-events: none; }
.nomes-jogadores .jogador span { display: block; }
.mapa-status { background: rgba(20, 24, 31, .85); color: var(--texto); padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.mapa-status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px;
  border-radius: 50%; background: #3ddc84; }
.mapa-status.fora::before { background: #e5534b; }

@media (max-width: 520px) {
  .titulo { display: none; }
  #busca { width: 100%; margin-left: 0; }
}
