:root { --bg:#0b1220; --bar:#111a2e; --fg:#e6ecf5; --muted:#9aa8bf; --btn:#1c2944; --btn-h:#27375a; --line:#22304f; --c:#2563eb; }
  * { box-sizing:border-box; }
  html,body { height:100%; margin:0; background:var(--bg); color:var(--fg); font:14px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
  body { display:flex; flex-direction:column; }
  header { display:flex; flex-wrap:wrap; gap:.45rem .6rem; align-items:center; padding:.5rem .8rem; background:var(--bar); border-bottom:1px solid var(--line); }
  header h1 { font-size:15px; margin:0 .3rem 0 0; font-weight:700; }
  .spacer { flex:1; }
  button,a.btn { background:var(--btn); color:var(--fg); border:1px solid #2c3d63; border-radius:8px; padding:.35rem .7rem; font:inherit; cursor:pointer; text-decoration:none; white-space:nowrap; }
  button:hover,a.btn:hover { background:var(--btn-h); }
  .chips { display:flex; gap:.35rem; overflow-x:auto; scrollbar-width:none; max-width:100%; }
  .chips::-webkit-scrollbar { display:none; }
  .chip { border-radius:999px; padding:.3rem .75rem; font-size:13px; }
  .chip i { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:.4rem; background:var(--c); vertical-align:1px; }
  .chip[aria-pressed="true"] { background:#e6ecf5; color:#0b1220; border-color:#e6ecf5; }
  #follow[aria-pressed="true"] { background:#e6ecf5; color:#0b1220; }
  #zoom { min-width:3rem; text-align:center; color:var(--muted); font-size:13px; }
  #stage { position:relative; flex:1; min-height:0; overflow:hidden; touch-action:none; cursor:grab; }
  #stage.drag { cursor:grabbing; }
  #world { position:absolute; left:0; top:0; width:2400px; height:1680px; transform-origin:0 0; }
  #world.glide { transition:transform .9s cubic-bezier(.4,0,.2,1); }
  #world > svg { display:block; border-radius:6px; box-shadow:0 8px 40px rgba(0,0,0,.5); }
  #dim { transition:opacity .5s; }
  .edge { fill:none; stroke-width:6; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:16 12; animation:flow .9s linear infinite; }
  .trail { fill:none; stroke-width:5; stroke-linecap:round; stroke-linejoin:round; opacity:.38; }
  .ring { fill:none; stroke-width:5; animation:pulse 1.6s ease-in-out infinite; }
  @keyframes flow { to { stroke-dashoffset:-28; } }
  @keyframes pulse { 0%,100% { stroke-opacity:1; } 50% { stroke-opacity:.35; } }
  footer { display:flex; gap:.75rem; align-items:center; padding:.55rem .8rem; background:var(--bar); border-top:1px solid var(--line); min-height:70px; }
  #badge { flex:none; min-width:40px; height:40px; padding:0 .4rem; border-radius:20px; display:grid; place-items:center; font-weight:800; font-size:15px; background:var(--c); color:#fff; transition:background .4s; }
  #ctext { flex:1; min-width:0; }
  #cflow { font-size:11.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); font-weight:700; }
  #ctitle { font-weight:700; font-size:15px; }
  #cbody { color:#c4cede; font-size:13.5px; }
  #dots { display:flex; gap:5px; margin-top:.35rem; flex-wrap:wrap; }
  #dots button { width:22px; height:6px; padding:0; border-radius:3px; border:0; background:#2c3d63; }
  #dots button.on { background:var(--c); }
  .ctrl { display:flex; gap:.3rem; flex:none; }
  .ctrl button { min-width:2.4rem; }
  .embed-only { display:none; }
  body.embed .full-only { display:none; }
  body.embed .embed-only { display:inline-block; }
  @media (max-width:1500px) { header h1 { display:none; } }
  @media (max-width:720px) {
    header h1, .hint, #zoomgrp { display:none; }
    footer { flex-wrap:wrap; }
    #cbody { font-size:12.5px; }
    .ctrl { width:100%; justify-content:flex-end; }
  }
