:root {
  --bg: #04060b; --ink: #eef1f6; --dim: #8a93a6; --line: rgba(255,255,255,.09); --glass: rgba(8,11,19,.78);
  --photo: #7cf2c8; --likely: #6aa8ff; --could: #c9a6ff; --over: #8a93a6;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: radial-gradient(1px 1px at 12% 22%, #fff9, transparent), radial-gradient(1px 1px at 68% 14%, #fff7, transparent), radial-gradient(1px 1px at 38% 78%, #fff8, transparent), radial-gradient(1.5px 1.5px at 84% 62%, #fffa, transparent), radial-gradient(1px 1px at 22% 58%, #fff6, transparent), radial-gradient(1px 1px at 92% 88%, #fff7, transparent), var(--bg); background-size: 340px 340px; color: var(--ink); font: 15px/1.55 "Space Grotesk", system-ui, sans-serif; overflow: hidden; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
#globe { position: fixed; inset: 0; transform: translateX(18vw); transition: transform 1.2s ease; }
body.results #globe { transform: translateX(-230px); }
button { font: inherit; color: inherit; cursor: pointer; }

.hud { position: fixed; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; pointer-events: none; z-index: 2; }
.hud.top { top: 0; } .hud.bottom { bottom: 0; }
.logo { font-size: 18px; font-weight: 600; } .logo i { color: var(--photo); font-style: normal; }

#intro { position: fixed; left: 6vw; top: 50%; transform: translateY(-50%); width: min(470px, 88vw); z-index: 2; transition: opacity .5s, transform .5s; }
#intro { pointer-events: none; } /* drags and scrolls on the text reach the globe; only the controls take clicks */
#intro form, #intro .chips, #intro #sugg { pointer-events: auto; }
#intro.gone { opacity: 0; transform: translate(-30px, -50%); pointer-events: none; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; margin: 10px 0 18px; font-weight: 600; letter-spacing: -.02em; }
h1 em { color: var(--photo); font-style: normal; }
.lede { color: var(--dim); font-size: 16px; margin: 0 0 22px; }
#search { display: flex; border-bottom: 1px solid var(--ink); }
#search input { flex: 1; background: none; border: 0; color: var(--ink); font: inherit; font-size: 20px; padding: 10px 0; outline: none; }
#search button { background: none; border: 0; font-size: 22px; padding: 0 4px; }
#sugg { list-style: none; margin: 0; padding: 4px 0; background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; }
#sugg li { padding: 8px 12px; cursor: pointer; display: flex; flex-direction: column; }
#sugg li span { color: var(--dim); font-size: 13px; }
#sugg li:hover, #sugg li.on { background: rgba(124,242,200,.1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; }
.chips button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 13px; transition: border-color .2s, color .2s; }
.chips button:hover { border-color: var(--photo); color: var(--photo); }

#panel { position: fixed; top: 64px; right: 16px; bottom: 48px; width: min(440px, calc(100vw - 32px)); background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 16px; overflow-y: auto; padding: 18px 22px 28px; z-index: 3; animation: slide .5s ease; }
@keyframes slide { from { opacity: 0; transform: translateX(30px); } }
#back { background: none; border: 0; padding: 0; margin-bottom: 14px; }
#back:hover { color: var(--ink); }
.place { font-size: 26px; font-weight: 600; margin: 4px 0 2px; line-height: 1.15; }
.big { font-size: 19px; margin: 14px 0 4px; }
.big b { color: var(--photo); }
h3 { margin: 26px 0 10px; } h3.mono { display: flex; justify-content: space-between; }

.hero { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.hero img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; transition: transform 8s ease; }
.hero:hover img { transform: scale(1.35); }
.hero figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.hero figcaption b { display: block; font-size: 16px; }
.strip { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.strip img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; opacity: .55; cursor: pointer; border: 1px solid transparent; }
.strip img.on, .strip img:hover { opacity: 1; border-color: var(--photo); }

.cats { display: grid; gap: 6px; }
.cat { display: grid; grid-template-columns: 64px 1fr; gap: 2px 12px; align-items: baseline; text-align: left; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; transition: background .2s; }
.cat:hover, .cat.on { background: rgba(255,255,255,.05); }
.cat .n { font-size: 24px; font-weight: 600; grid-row: span 2; }
.cat .t { font-weight: 500; } .cat .d { color: var(--dim); font-size: 13px; }

canvas#tl { width: 100%; height: 132px; display: block; cursor: crosshair; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }

.sats { list-style: none; margin: 0; padding: 0; }
.sats li { display: grid; grid-template-columns: 10px 1fr auto; gap: 0 10px; padding: 10px 4px; border-top: 1px solid var(--line); cursor: pointer; align-items: center; }
.sats li:hover, .sats li.on { background: rgba(255,255,255,.04); }
.sats .dot { width: 8px; height: 8px; border-radius: 50%; }
.sats .nm { font-weight: 500; } .sats .meta { color: var(--dim); font-size: 12px; }
.sats .cnt { text-align: right; font-size: 18px; font-weight: 600; } .sats .cnt small { display: block; font-size: 10px; color: var(--dim); }
.more { background: none; border: 0; color: var(--photo); padding: 10px 4px; }
.d { color: var(--dim); font-size: 13px; }
.run { background: none; border: 1px solid var(--photo); color: var(--photo); border-radius: 999px; padding: 8px 14px; margin: 4px 0 12px; }
.duel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duel > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--dim); }
.duel > div:last-child { border-color: var(--photo); }
.duel p { margin: 4px 0 0; } .duel b { color: var(--ink); }
.num { display: block; font-size: 24px; } .duel > div:last-child .num { color: var(--photo); }
#aimap { width: 100%; border-radius: 10px; display: block; margin: 6px 0; }
.edge { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; margin: 10px 0; }
.edge span { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.edge b { display: block; color: var(--ink); font-size: 12px; text-transform: none; letter-spacing: 0; margin-top: 2px; }
pre { background: rgba(0,0,0,.4); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: 11px/1.45 "IBM Plex Mono", monospace; white-space: pre-wrap; color: var(--photo); }
.note { color: var(--dim); font-size: 12.5px; margin-top: 22px; }
#tip { position: fixed; z-index: 5; background: #000; border: 1px solid var(--line); padding: 6px 9px; border-radius: 6px; pointer-events: none; color: var(--ink); }

@media (max-width: 760px) {
  html, body { overflow: auto; }
  #globe { transform: translateY(-18vh); } /* globe above the headline */
  body.results #globe { transform: translateY(-29vh); } /* the chosen place sits in the open area above the panel */
  #intro { top: auto; bottom: 64px; transform: none; left: 5vw; } #intro.gone { transform: translateY(20px); }
  h1 { font-size: 40px; }
  #panel { top: 42vh; left: 8px; right: 8px; width: auto; bottom: 8px; }
  .hud.bottom span:last-child { display: none; }
}
