/* Globe: a stylized real Earth in a starfield. Drag to spin it; click anywhere to fire a missile. */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; overflow: clip; isolation: isolate;
  background: #05060d; cursor: crosshair;
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.labels { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.place {
  position: absolute; left: 0; top: 0; will-change: transform;
  display: flex; align-items: center; gap: .3rem;
  font: 600 .72rem/1 Archivo, system-ui, sans-serif; letter-spacing: .02em; color: #f3f6fa;
  text-shadow: 0 1px 2px #000, 0 0 6px #000c; white-space: nowrap;
  margin: -.22rem 0 0 -.22rem;
}
.place::before { content: ""; width: .44rem; height: .44rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #0009, 0 0 6px #fff8; flex: none; }
.place.home { color: var(--gold); font-weight: 800; font-size: .8rem; }
/* Philadelphia, New York and Washington sit within a few pixels of each other: the dots stay put,
   Philadelphia's text goes left of its dot, New York's lifts up and Washington's drops down */
.place.home { flex-direction: row-reverse; translate: calc(-100% + .44rem) 0; }
.place.home > span { translate: 0 -.3rem; }
.place[data-place="New York"] > span { translate: 0 -.55rem; }
.place[data-place="Washington, D.C."] > span { translate: 0 .55rem; }
.place.home::before { background: var(--gold); box-shadow: 0 0 0 1.5px #0009, 0 0 10px var(--gold); }
/* a city caught in a blast: its light goes out and its name dims */
.place.hit { color: #aab2bccc; }
.place.hit::before { background: #2a2a2e; box-shadow: 0 0 0 1.5px #ff6a2acc, 0 0 8px #ff4a1a; }

.content {
  width: min(1240px, 100% - 2.5rem); display: grid; align-items: center; gap: 1.5rem;
  grid-template-columns: 1fr; justify-items: center; padding: 3rem 0 4rem;
  pointer-events: none;
}
.content a, .content button, .content .address, .content h1 { pointer-events: auto; }
.side { display: grid; justify-items: center; gap: clamp(1.25rem, 3.5vh, 2.25rem); }
.side .logo { --w: min(88vw, 620px); }
.globe-slot {
  width: clamp(240px, min(84vw, 46vh), 620px); aspect-ratio: 1; border-radius: 50%;
  cursor: grab; touch-action: none; pointer-events: auto;
}
.globe-slot:active { cursor: grabbing; }
.globe-slot:focus-visible { outline: 3px dashed var(--gold); outline-offset: 6px; }
.fps { position: absolute; right: .75rem; bottom: .75rem; font: 700 .85rem ui-monospace, monospace; color: #9f9; background: #000a; padding: .2rem .45rem; border-radius: 4px; }
.no-webgl .globe-slot { display: none; }

@media (width >= 960px) {
  .content { width: min(1320px, 100% - 8rem); grid-template-columns: auto 1fr; justify-items: start; }
  .side { justify-items: start; }
  .side .downloads { justify-content: start; }
  .globe-slot { justify-self: center; width: clamp(380px, min(50vw, 86vh), 820px); }
}
@media (width < 960px) {
  .content { gap: clamp(1rem, 3vh, 1.75rem); }
  .side { display: contents; }
  .logo { order: 0; }
  .globe-slot { order: 1; }
  .address { order: 2; }
  .downloads { order: 3; }
}
@media (width < 600px) {
  .place { font-size: .6rem; gap: .2rem; }
  .place::before { width: .34rem; height: .34rem; }
}
