/* The map overlay (/overlay, 2026-11-11): one canvas filling a small window, for a pinned Steam overlay browser. */
:root {
  --ov-bg: #0b0f0d;
  --ov-panel: rgba(16, 22, 19, 0.82);
  --ov-text: #e9efe9;
  --ov-muted: #a3b0a6;
  --ov-line: rgba(255, 255, 255, 0.16);
  --ov-accent: #ff9f0a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* the popup and counts panel are flex boxes */
html, body { margin: 0; height: 100%; }
body {
  background: var(--ov-bg);
  color: var(--ov-text);
  font: 13px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}
.ov { position: fixed; inset: 0; }
#ov-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.ov-bar {
  position: absolute; top: 6px; left: 6px; right: 6px;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.ov-bar button {
  font: inherit; color: var(--ov-text); background: var(--ov-panel);
  border: 1px solid var(--ov-line); border-radius: 6px; padding: 3px 8px; cursor: pointer;
}
.ov-bar button[aria-pressed="false"] { color: var(--ov-muted); text-decoration: line-through; }
.ov-bar button:focus-visible { outline: 2px solid var(--ov-accent); outline-offset: 1px; }
.ov-info {
  position: absolute; left: 6px; right: 6px; bottom: 6px;
  background: var(--ov-panel); border: 1px solid var(--ov-line); border-radius: 6px; padding: 3px 8px;
  color: var(--ov-muted);
}
.ov-info div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-info div:empty { display: none; }
#ov-state { color: var(--ov-text); font-weight: 600; }
#ov-region { color: var(--ov-text); }
#ov-vitals { color: var(--ov-text); }
#ov-water { color: #64d2ff; }
#ov-bounty { color: #ff6961; font-weight: 600; }
#ov-bleed { color: #ff453a; font-weight: 600; }
/* the prime tracker's list: its own box over the map's top-left corner, never more than the map's height allows */
.ov-prime {
  position: absolute; top: 40px; left: 6px; max-width: 75%; max-height: calc(100% - 150px); overflow: hidden;
  background: var(--ov-panel); border: 1px solid var(--ov-line); border-radius: 6px; padding: 3px 8px;
  font-size: 12px; line-height: 1.35; color: #ffd60a; white-space: pre-line;
}
.ov-counts {
  position: absolute; top: 40px; right: 6px; max-width: 45%;
  background: var(--ov-panel); border: 1px solid var(--ov-line); border-radius: 6px; padding: 3px 8px;
  font-size: 12px; color: var(--ov-text);
}
.ov-pop {
  position: absolute; z-index: 2; min-width: 150px;
  background: var(--ov-panel); border: 1px solid var(--ov-line); border-radius: 6px; padding: 6px;
  display: flex; flex-direction: column; gap: 4px;
}
.ov-pop input, .ov-pop button {
  font: inherit; color: var(--ov-text); background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ov-line); border-radius: 5px; padding: 3px 6px;
}
.ov-pop button { cursor: pointer; text-align: left; }
.ov-pop .muted { color: var(--ov-muted); font-size: 12px; }
#ov-guide { color: var(--ov-accent); }
.ov-signin { padding: 16px; }
.ov-signin a { color: var(--ov-accent); }
@media (max-width: 260px) { .ov-bar button { padding: 2px 5px; } }
