/* QSO Globe · Copyright 2026 Paul Friend · Apache License 2.0 */
:root { color-scheme: dark; --ink: #e8f0ff; --dim: #8fa6c4; --panel: rgba(10, 22, 44, 0.62); --line: rgba(120, 170, 255, 0.18); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #02050d; color: var(--ink);
  font: 13px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
#stage { position: relative; width: 100%; height: 100%; min-height: 320px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #0c1b38 0%, #050b1a 55%, #02050d 100%); }
canvas { position: absolute; inset: 0; display: block; cursor: grab; touch-action: none; }
canvas:active { cursor: grabbing; }
.top, .bottom { position: absolute; left: 0; right: 0; padding: 12px 14px; pointer-events: none; }
.top { top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bottom { bottom: 0; }
.id { display: flex; flex-direction: column; }
#call { font-size: 22px; font-weight: 700; letter-spacing: 0.06em;
  background: linear-gradient(90deg, #fff, #9fd0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
#sub { color: var(--dim); font-size: 12px; letter-spacing: 0.04em; }
.legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; max-width: 58%; font-size: 11px; color: var(--dim); }
.legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; backdrop-filter: blur(6px); }
.stats div { background: var(--panel); padding: 7px 4px; text-align: center; }
.stats b { display: block; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stats span { color: var(--dim); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.foot { display: flex; justify-content: space-between; margin-top: 6px; color: var(--dim); font-size: 10.5px; opacity: 0.8; }
.tip { position: absolute; left: 0; top: 0; min-width: 190px; max-width: 280px; padding: 8px 10px; border-radius: 10px;
  background: rgba(8, 18, 38, 0.92); border: 1px solid rgba(140, 190, 255, 0.3); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  pointer-events: none; font-size: 12px; z-index: 2; }
.tip .head { color: var(--dim); font-size: 11px; margin-bottom: 4px; letter-spacing: 0.03em; }
.tip .row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; padding: 1px 0; }
.tip .row b { font-weight: 650; letter-spacing: 0.03em; }
.tip .chip { color: var(--c); border: 1px solid var(--c); border-radius: 6px; padding: 0 5px; font-size: 10.5px; }
.tip .date { color: var(--dim); font-size: 11px; }
.tip .more { color: var(--dim); font-size: 11px; margin-top: 3px; }
@media (max-width: 420px) {
  #call { font-size: 18px; }
  .stats b { font-size: 15px; }
  .stats span { font-size: 9px; letter-spacing: 0.03em; }
  .legend { max-width: 62%; font-size: 10px; gap: 3px 7px; }
}
.render .hint { display: none; }
.render canvas { cursor: default; }
#sub, .stats b, .foot span { white-space: nowrap; }
@media (max-width: 420px) { .stats b { font-size: 14px; } .foot .hint { display: none; } }
