.stage { position: relative; height: 100vh; min-height: 640px; overflow: hidden; background: radial-gradient(ellipse at 50% 60%, #14244a 0%, var(--night) 55%, var(--deep) 100%); }
#globe { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#globe.dragging { cursor: grabbing; }
.side { position: absolute; top: 4.2rem; width: min(330px, 42vw); padding: 0 1.4rem; z-index: 3; }
.side.left { left: 0; pointer-events: none; }
.side.left .chips, .side.left button { pointer-events: auto; }
.side.left h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: .3rem; }
.side .lede { color: var(--mist); font-size: .95rem; max-width: 24em; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0 1rem; }
.chips button { background: transparent; color: var(--fog); border: 1px solid rgba(199,208,224,.35); border-radius: 999px; padding: .3rem .75rem; font-size: .82rem; cursor: pointer; }
.chips button[aria-selected="true"] { background: var(--lamp); color: var(--night); border-color: var(--lamp); font-weight: 600; }
.level h2 { font-size: 1.15rem; font-family: var(--body); font-weight: 600; margin-bottom: .2rem; }
.level .stat { display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; align-items: baseline; font-size: .9rem; color: var(--mist); }
.level .stat b { font-family: var(--display); font-size: 1.6rem; color: var(--fog); font-weight: 500; }
.level svg { display: block; width: 100%; height: 56px; margin-top: .4rem; overflow: visible; }
.level .sparknote { font-size: .78rem; color: var(--mist); margin: .2rem 0 0; }
.legend { margin-top: 1.4rem; font-size: .78rem; color: var(--mist); }
.ramp { position: relative; height: 26px; }
.ramp span { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #101b31, #3a3a4d 40%, #9a7b46 75%, var(--lamp)); }
.ramp i { position: absolute; top: 12px; font-style: normal; }
.ramp i:last-child { right: 0; }
.dotkey b { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 6px var(--ember); margin-right: .4rem; vertical-align: middle; }

.side.right { right: 0; background: rgba(23,40,70,.92); backdrop-filter: blur(6px); border-radius: 6px; padding: 1.1rem 1.3rem 1.3rem; margin-right: 1rem; max-height: calc(100vh - 12rem); overflow: auto; }
.side.right .close { position: absolute; top: .6rem; right: .8rem; background: none; border: 0; color: var(--mist); font-size: 1.2rem; cursor: pointer; }
.side.right h2 { font-size: 1.6rem; margin: 0 0 .1rem; }
.side.right .meta { color: var(--mist); font-size: .82rem; margin-bottom: .8rem; }
.side.right .kpi { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: .8rem; margin-bottom: .6rem; }
.side.right .kpi div { font-size: .78rem; color: var(--mist); }
.side.right .kpi b { display: block; font-family: var(--display); font-size: 1.45rem; color: var(--fog); font-weight: 500; white-space: nowrap; }
.side.right .kpi b.ember { color: var(--ember); }
.side.right h3 { font-size: .8rem; color: var(--mist); font-weight: 600; margin: .9rem 0 .3rem; }
.side.right svg { display: block; width: 100%; overflow: visible; }
.side.right .ur { font-size: .82rem; }
.side.right .ur .row { display: grid; grid-template-columns: 3.6rem 1fr 3rem; gap: .5rem; align-items: center; margin-bottom: .3rem; }
.side.right .ur .track { height: 8px; background: rgba(199,208,224,.15); border-radius: 4px; position: relative; overflow: hidden; }
.side.right .ur .track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--lamp); border-radius: 4px; }
.side.right .ur .track em { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--fog); opacity: .8; }
.side.right .ur .val { text-align: right; color: var(--fog); }
.side.right .more { display: inline-block; margin-top: .9rem; font-size: .85rem; }
.side.right .nodata { color: var(--mist); font-size: .8rem; }

.bar { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); width: min(560px, 92vw); display: grid; grid-template-columns: auto auto 1fr auto; gap: .6rem .9rem; align-items: center; z-index: 3; background: rgba(8,16,31,.75); padding: .7rem 1rem; border-radius: 8px; }
.bar .play { background: var(--lamp); color: var(--night); border: 0; border-radius: 4px; padding: .45rem .8rem; font-weight: 600; cursor: pointer; }
.bar .year { font-family: var(--display); font-size: 1.9rem; line-height: 1; min-width: 3.2ch; }
.bar input[type=range] { width: 100%; accent-color: var(--lamp); }
.bar .ticks { grid-column: 3; display: flex; justify-content: space-between; font-size: .72rem; color: var(--mist); margin-top: -.5rem; }
.bar .proj { background: transparent; color: var(--fog); border: 1px solid rgba(199,208,224,.35); border-radius: 4px; padding: .4rem .7rem; font-size: .8rem; cursor: pointer; }
.bar .proj[aria-pressed="true"] { background: rgba(199,208,224,.15); }
.tip { position: absolute; z-index: 4; pointer-events: none; background: rgba(8,16,31,.92); color: var(--fog); font-size: .8rem; padding: .4rem .6rem; border-radius: 4px; max-width: 220px; }
.tip b { color: var(--lamp); }
.mapfoot { padding: 1.2rem 1.4rem 1.6rem; color: var(--mist); }

@media (max-width: 800px) {
  .stage { min-height: 100vh; }
  .side.left { top: 3.4rem; width: 100%; padding: 0 1rem; }
  .side.left h1 { font-size: 1.6rem; }
  .side.left .lede { display: none; }
  .side.left .level { display: none; }
  .side.left .legend { display: none; }
  .chips { pointer-events: auto; }
  .side.right { top: auto; bottom: 7.6rem; left: .6rem; right: .6rem; width: auto; margin: 0; max-height: 46vh; padding: .9rem 1rem; }
  .side.right h2 { font-size: 1.25rem; }
  .side.right .kpi b { font-size: 1.3rem; }
  .bar { bottom: .7rem; grid-template-columns: auto auto 1fr; padding: .5rem .7rem; }
  .bar .proj { display: none; }
  .bar .year { font-size: 1.4rem; }
}
