/* Levels: animated drawings of the menu bar window (assets/demos.js). Fixed 440 px wide canvas, scaled to fit. */
.td-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.td-fig { margin: 0; width: 100%; max-width: 460px; justify-self: center; }
.td { position: relative; width: 100%; aspect-ratio: var(--w) / var(--h); overflow: hidden; border-radius: 22px; contain: layout paint; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.td-canvas { position: absolute; left: 0; top: 0; width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); transform-origin: 0 0; transform: scale(var(--k, 1)); font: 13px/1.25 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: #f4f3f8; -webkit-font-smoothing: antialiased; user-select: none; }
.td-still * { transition: none !important; }
.td-cursor { position: absolute; left: 0; top: 0; z-index: 9; opacity: 0; pointer-events: none; will-change: transform; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.4)); }
.td-cursor svg { display: block; transform-origin: 3px 2px; transition: transform .12s ease; }
.td-cursor.down svg { transform: scale(.86); }

.lv-wall { position: absolute; inset: 0; background:
  radial-gradient(120% 70% at 85% 0%, #3b3f9e 0%, transparent 60%),
  radial-gradient(90% 80% at 0% 100%, #6a2f7d 0%, transparent 62%),
  radial-gradient(70% 60% at 100% 100%, #154a7a 0%, transparent 70%), #141526; }
.lv-bar { position: absolute; left: 0; right: 0; top: 0; height: 26px; display: flex; justify-content: space-between; align-items: center; padding: 0 12px; background: rgba(12,12,22,.38); font-size: 12.5px; color: rgba(255,255,255,.94); }
.lv-bar-l { display: flex; gap: 14px; white-space: nowrap; }
.lv-bar-l span { opacity: .9; }
.lv-bar-r { display: flex; gap: 11px; align-items: center; white-space: nowrap; }
.lv-bar-r svg { display: block; }
.lv-mi { display: grid; place-items: center; width: 28px; height: 20px; margin: 0 -4px; border-radius: 6px; }
.lv-mi.on { background: rgba(255,255,255,.2); }
.lv-dot { width: 7px; height: 7px; border-radius: 50%; margin-right: -5px; }
.lv-purple { background: #b26bff; }
.lv-orange { background: #ff9f0a; }

.lv-pop { position: absolute; left: 66px; top: 32px; width: 360px; padding: 14px; border-radius: 22px; transform-origin: 82% 0;
  background: linear-gradient(180deg, rgba(58,58,72,.86), rgba(36,36,46,.9)); border: 1px solid rgba(255,255,255,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 50px rgba(0,0,0,.5); }
.lv-pop-s { top: 32px; left: 66px; }
.lv-glass { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.lv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.lv-head b { font-size: 15px; font-weight: 600; }
.lv-dev { display: flex; gap: 5px; align-items: center; font-size: 12px; padding: 3px 9px; border-radius: 99px; }
.lv-master { display: flex; align-items: center; gap: 10px; padding: 0 10px; margin-bottom: 12px; color: rgba(255,255,255,.55); }
.lv-master svg { flex: none; }
.lv-rows { display: grid; gap: 8px; }
.lv-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.lv-ico { flex: none; display: block; }
.lv-body { width: 234px; flex: none; }
.lv-line { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.lv-line b { font-weight: 500; font-size: 13px; }
.lv-line b svg { color: rgba(255,255,255,.55); margin-left: 3px; }
.lv-pct { font-size: 11px; font-weight: 500; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; transition: color .2s; }
.lv-boost .lv-pct { color: #ff9f0a; }
.lv-sl { position: relative; display: block; width: 234px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.16); }
.lv-sl-m { width: 250px; }
.lv-fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 2px; background: #8886ff; transform-origin: 0 50%; transition: background-color .2s; }
.lv-boost .lv-fill { background: #ff9f0a; }
.lv-knob { position: absolute; left: -10px; top: -5px; width: 20px; height: 14px; border-radius: 7px; background: #f4f4f7; box-shadow: 0 1px 3px rgba(0,0,0,.45), inset 0 -1px 0 rgba(0,0,0,.08); }
.lv-meter { display: block; position: relative; height: 3px; margin-top: 8px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.lv-meter i { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(90deg, #6d6bff, #9c9bff); transform-origin: 0 50%; transform: scaleX(0); }
.lv-mute { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #f4f3f8; }
.lv-mute svg { position: absolute; left: 7px; top: 9px; transition: opacity .18s, transform .18s; }
.lv-mute .b { opacity: 0; transform: scale(.7); }
.lv-muted .lv-mute .a { opacity: 0; transform: scale(.7); }
.lv-muted .lv-mute .b { opacity: 1; transform: none; }
.lv-mute.lv-off { opacity: .35; }
.lv-note { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 10.5px; color: rgba(255,255,255,.55); }
.lv-adj { font-size: 10px; color: #f4f3f8; padding: 1px 8px; border-radius: 99px; flex: none; }
.lv-foot { display: flex; gap: 8px; margin-top: 12px; }
.lv-btn { display: flex; gap: 5px; align-items: center; font-size: 12px; padding: 4px 10px; border-radius: 99px; }
.lv-sq { padding: 4px 7px; }
.lv-foot .lv-btn:nth-child(2) { margin-left: auto; }
.lv-cap { position: absolute; left: 16px; right: 16px; bottom: 14px; height: 20px; font-size: 13px; color: rgba(255,255,255,.88); text-align: center; }
.lv-cap span { position: absolute; left: 0; right: 0; top: 0; }
.lv-cap-b { opacity: 0; }
.td-call { max-width: 560px; margin: 18px 0 6px; justify-self: start; }
