/* orbiteer.space/launches (#117): a full-bleed globe, the intro top left, the timeline panel at the bottom. */
html, body { height: 100%; }
body.lg { margin: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #12161d 0%, var(--night) 65%); }
.lg .sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#lg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; opacity: 0; transition: opacity 1.2s var(--ease); }
#lg-canvas:active { cursor: grabbing; }
.lg-ready #lg-canvas { opacity: 1; }
.lg-reduce #lg-canvas { transition: none; }
/* #125: points to the readout's launch when its pad is round the back of the globe. */
.lg-edge { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); }
.lg-edge.is-on { opacity: 1; }
.lg-reduce .lg-edge { transition: none; }
.lg-edge path { fill: none; stroke: var(--accent-soft); stroke-width: 2; stroke-linecap: round; }
.lg-edge circle { fill: var(--accent-soft); }

.lg-top { position: fixed; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 16px var(--pad); pointer-events: none; }
.lg-top > * { pointer-events: auto; }
.lg-wordmark { height: 22px; width: auto; }
.lg-top .btn.small { height: 42px; font-size: 14px; gap: 8px; padding: 0 5px 0 16px; }
.lg-top .btn.small .chip { width: 32px; height: 32px; }

.lg-intro { position: fixed; z-index: 2; top: 76px; left: var(--pad); max-width: 420px; pointer-events: none; }
.lg-intro h1 { margin: 0 0 8px; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; }
.lg-intro p { margin: 0; color: var(--ash); font-size: 15px; line-height: 1.5; }
.lg-intro .lg-state:empty, .lg-nogl-note { display: none; }
.lg-nogl .lg-nogl-note, .lg-failed .lg-state { display: block; margin-top: 10px; color: var(--bone); }

.lg-panel { position: fixed; z-index: 2; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(1120px, calc(100% - 2 * var(--pad)));
  padding: 16px 20px 12px; border: 1px solid var(--line); border-radius: 20px; background: rgba(14, 15, 18, .74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lg-row { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; min-height: 92px; }
.lg-readout { display: flex; gap: 14px; align-items: center; min-width: 0; }
.lg-shape { width: 64px; height: 64px; flex: none; }
.lg-text { min-width: 0; }
.lg-text p { margin: 0; }
.lg-meta { font-size: 13px; color: var(--ash); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lg-name { font-size: 20px; font-weight: 600; line-height: 1.25; margin: 2px 0 4px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 62ch; }
.lg-detail { font-size: 14px; color: var(--ash); display: flex; flex-wrap: wrap; gap: 0 14px; }
.lg-detail span:empty { display: none; }
.lg-orbit { color: var(--mist); font-size: 13px; }
.lg-status { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--bone); }
.lg-status:empty { display: none; }
.lg-status.is-flown { border-color: rgba(93, 204, 255, .45); color: var(--accent-soft); }
.lg-status.is-failed { border-color: rgba(255, 122, 102, .5); color: #FF9A8A; }
.lg-status.is-upcoming { border-style: dashed; }
.lg-counts { text-align: right; flex: none; }
.lg-counts p { margin: 0; font-size: 14px; color: var(--ash); font-variant-numeric: tabular-nums; }
.lg-counts p:first-child { font-size: 18px; color: var(--bone); font-weight: 600; }

.lg-controls { display: flex; gap: 16px; align-items: flex-end; margin-top: 10px; }
.lg-play { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--bone); color: var(--night); display: grid; place-items: center; cursor: pointer; margin-bottom: 14px; }
.lg-play svg { width: 22px; height: 22px; fill: currentColor; }
.lg-play .i-pause, .lg-play[aria-pressed="true"] .i-play { display: none; }
.lg-play[aria-pressed="true"] .i-pause { display: block; }
.lg-track { position: relative; flex: 1; min-width: 0; }
.lg-bars { display: block; width: 100%; height: 44px; }
.lg-bars rect { fill: rgba(166, 168, 174, .32); }
.lg-bars rect.is-ahead { fill: rgba(166, 168, 174, .14); }
.lg-bars rect.is-now { fill: var(--accent); }
.lg-nowmark { position: absolute; top: 0; height: 44px; width: 0; border-left: 1px dashed var(--line-strong); }
.lg-nowmark span { position: absolute; top: -2px; left: 5px; font-size: 11px; color: var(--mist); }
.lg-time { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 22px; margin: 2px 0 0; background: transparent; cursor: pointer; }
.lg-time::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line-strong); }
.lg-time::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-strong); }
.lg-time::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--accent); border: 3px solid var(--night); box-shadow: 0 0 0 1px var(--accent); }
.lg-time::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--night); }
.lg-time:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.lg-years { position: relative; height: 16px; font-size: 11px; color: var(--steel); margin-top: 2px; }
.lg-years span { position: absolute; top: 0; transform: translateX(-50%); }
.lg-opts { flex: none; display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.lg-speed { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ash); }
.lg-speed select, .lg-now { height: 36px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--bone); font: inherit; font-size: 13px; padding: 0 12px; cursor: pointer; }
.lg-busy { margin: 4px 0 0; font-size: 12px; color: var(--mist); min-height: 1.4em; }
.lg-credit { margin: 2px 0 0; font-size: 11px; line-height: 1.45; color: var(--steel); }
.lg-credit a { color: var(--mist); text-decoration: underline; text-underline-offset: 2px; }
.lg-credit-short, .lg-lede-short { display: none; }
@media (max-width: 1366px) and (min-width: 761px) { .lg-intro { max-width: 340px; } .lg-intro h1 { font-size: 32px; } }
.lg-fps { position: fixed; right: 12px; top: 70px; margin: 0; font-size: 12px; color: var(--mist); font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .lg-top { padding: 12px 16px; }
  .lg-top .btn.small { height: 36px; font-size: 13px; padding: 0 4px 0 12px; }
  .lg-top .btn.small .chip { width: 28px; height: 28px; }
  .lg-intro { top: 60px; left: 16px; right: 16px; }
  .lg-intro h1 { font-size: 26px; margin-bottom: 4px; }
  .lg-intro p { font-size: 13px; }
  .lg-panel { width: calc(100% - 16px); bottom: max(8px, env(safe-area-inset-bottom)); padding: 12px 14px 10px; border-radius: 18px; }
  .lg-row { min-height: 0; flex-direction: column; gap: 6px; }
  .lg-shape { width: 48px; height: 48px; }
  .lg-name { font-size: 17px; max-width: 100%; }
  .lg-detail { font-size: 13px; }
  .lg-counts { text-align: left; display: flex; flex-wrap: wrap; gap: 0 12px; align-items: baseline; }
  .lg-counts p { white-space: nowrap; }
  .lg-counts p, .lg-counts p:first-child { font-size: 13px; }
  .lg-controls { flex-wrap: wrap; gap: 8px 12px; margin-top: 6px; }
  .lg-play { width: 44px; height: 44px; margin-bottom: 12px; }
  .lg-track { flex-basis: calc(100% - 60px); }
  .lg-bars { height: 32px; }
  .lg-nowmark { height: 32px; }
  .lg-opts { width: 100%; margin: 0; justify-content: space-between; }
  .lg-busy { display: none; }
  .lg-credit-long { display: none; }
  .lg-credit-short { display: block; font-size: 10px; }
  .lg-years .is-minor { display: none; }
  .lg-readout { gap: 10px; }
  .lg-shape { width: 40px; height: 40px; }
  .lg-lede { display: none; }
  .lg-lede-short { display: block !important; }
}
