.cst { position: relative; overflow: hidden; color: #fff; --cst-line: rgba(199,165,247,.28); --cst-glass: rgba(13,12,20,.78); }
.cst-sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; pointer-events: none; transition: opacity 1.4s ease; }
.cst.live .cst-sky { opacity: 1; pointer-events: auto; cursor: grab; touch-action: pan-y; }
.cst.live .cst-sky.drag { cursor: grabbing; }
.cst.backdrop .cst-sky { opacity: .45; }
.cst-layer { position: absolute; inset: 0; pointer-events: none; display: none; }
.cst.live .cst-layer { display: block; }
.cst-label { position: absolute; left: 0; top: 0; padding: 2px 5px; border-radius: 6px; font: 400 10px "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(214,210,224,.74); white-space: nowrap; text-decoration: none; text-shadow: 0 1px 8px #000; pointer-events: auto; transition: color .2s, opacity .2s; will-change: transform; }
.cst-label:hover, .cst-label.hot { color: #fff; }
.cst-label.dim { opacity: .25; }
.cst.tight .cst-label { font-size: 9px; letter-spacing: .08em; }
.cst-label.hide { opacity: 0; }
.cst-label.hide.hot, .cst-label.hide:focus-visible { opacity: 1; z-index: 1; background: rgba(13,12,20,.85); }
.cst-glabel { position: absolute; left: 0; top: 0; font: 700 clamp(14px, 1.4vw, 20px) / 1.2 "Unbounded", sans-serif; letter-spacing: .04em; color: var(--c); opacity: .62;
  white-space: nowrap; text-shadow: 0 0 24px var(--c); transition: opacity .2s; will-change: transform; }
.cst-glabel.dim { opacity: .16; }
.cst-legend { position: absolute; z-index: 2; left: max(20px, 5%); bottom: 22px; display: none; flex-wrap: wrap; gap: 8px; max-width: calc(100% - 40px); }
.cst.live .cst-legend { display: flex; }
.cst-legend button { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--cst-line); background: var(--cst-glass); color: #d6d2e0;
  font: 400 11px "JetBrains Mono", monospace; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(10px); transition: border-color .2s, color .2s; }
.cst-legend button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.cst-legend button small { color: #8c899e; font-size: 10px; letter-spacing: .1em; }
.cst-legend button:hover, .cst-legend button[aria-pressed="true"] { border-color: var(--c); color: #fff; }
.cst-hint { position: absolute; z-index: 2; right: max(20px, 5%); bottom: 34px; display: none; font: 400 10.5px "JetBrains Mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: #8c899e; pointer-events: none; }
.cst.live .cst-hint { display: block; }
.cst-tip { position: absolute; z-index: 3; left: 0; top: 0; width: 280px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--cst-line); background: rgba(13,12,20,.92); backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,.6); pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s; }
.cst-tip.on { opacity: 1; transform: none; }
.cst-tip .g { font: 400 10px "JetBrains Mono", monospace; letter-spacing: .26em; text-transform: uppercase; color: var(--c, #c7a5f7); }
.cst-tip b { display: block; margin: 6px 0 4px; font: 700 18px "Unbounded", sans-serif; }
.cst-tip p { margin: 0 0 10px; color: #d6d2e0; font-size: 13.5px; line-height: 1.5; }
.cst-tip .go { font: 400 10.5px "JetBrains Mono", monospace; letter-spacing: .18em; text-transform: uppercase; color: #c7a5f7; }
.cst.live .cst-list { display: none; }
.cst-list ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.cst-list a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--cst-line); background: var(--cst-glass); color: #fff; text-decoration: none; transition: border-color .2s; }
.cst-list a:hover { border-color: #c7a5f7; }
.cst-list img { width: 40px; height: 40px; flex: none; }
.cst-list span { display: grid; gap: 2px; min-width: 0; }
.cst-list b { font: 600 14px "Space Grotesk", sans-serif; }
.cst-list small { font: 400 10px "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: #8c899e; }
@media (prefers-reduced-motion: reduce) { .cst-sky, .cst-tip, .cst-label { transition: none; } }
