/* little quant, the live figure: the styles from the design page
   (concepts/littlequant-brand/artifact/brand-kit.html), with the keyframes renamed m-* so they do not meet the page's own.
   On the landing a stage keeps its CSS gradient; the backdrop canvas is only the image the glass bends. */
[data-lq] { position: relative; display: block; }
.stage > canvas.backdrop { display: none; }
.mascot { --mc-hi: color-mix(in srgb, var(--mc) 84%, white); --mc-lo: color-mix(in srgb, var(--mc) 62%, black); --c-ink: #0E0E10; --c-ivory: #F2EDE3; --c-amber: #E5A83F; --c-sweat: #8FB8D8; --sig: var(--st-accent); --floor: rgba(0, 0, 0, .5);
  position: relative; width: 100%; aspect-ratio: 1; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; border-radius: 24px; }
.mascot:focus-visible { outline: 2px solid var(--st-accent); outline-offset: 4px; }
.mascot[aria-hidden="true"] { cursor: default; }
.mascot > svg, .mascot > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.mascot svg text { font-family: var(--display); font-weight: 600; }
.mascot.gl .body, .mascot.gl .rim, .mascot.gl .floor { display: none; }
.mascot .g0 { stop-color: var(--mc-hi); } .mascot .g1 { stop-color: var(--mc); } .mascot .g2 { stop-color: var(--mc-lo); }
.mascot .r0 { stop-color: var(--c-ivory); stop-opacity: .62; } .mascot .r1 { stop-color: var(--c-ivory); stop-opacity: .1; } .mascot .r2 { stop-color: var(--c-ivory); stop-opacity: 0; }
.mascot .rim { fill: none; stroke-width: 1.5; }
.mascot .f-ink { fill: var(--c-ink); } .mascot .f-amber { fill: var(--c-amber); }
.mascot .floor { fill: var(--floor); transform-box: fill-box; transform-origin: center; }
.mascot.no-floor .floor { display: none; }
.mascot .st { transform-box: view-box; transform-origin: 100px 160px; }
.mascot .eye-fill { fill: var(--eye, var(--c-ink)); }
.mascot .eye-hi { fill: var(--c-ivory); opacity: var(--hi-op, 1); }
.mascot .stat { opacity: 0; transition: opacity .25s; pointer-events: none; }
.mascot .ring-track { fill: none; stroke: var(--sig); stroke-opacity: .2; stroke-width: 3; }
.mascot .ring-prog { fill: none; stroke: var(--sig); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 40 400; transform-box: fill-box; transform-origin: center; }
.mascot .ping { fill: none; stroke: var(--st-gain); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; }
.mascot .ring-alert { fill: none; stroke: var(--c-amber); stroke-width: 3; stroke-dasharray: 3 5; stroke-linecap: round; transform-box: fill-box; transform-origin: center; }
.mascot .badge { fill: var(--sig); } .mascot .badge-dot { fill: var(--c-ink); }
.mascot .halo { fill: var(--sig); transform-box: fill-box; transform-origin: center; }
.mascot :is(.bang, .sweat, .tdot, .steam, .spark, .z) { transform-box: fill-box; transform-origin: center; }
.mascot .sweat { fill: var(--c-sweat); }
.mascot .tdot { fill: var(--st-muted); }
.mascot .steam { fill: none; stroke: var(--st-muted); stroke-width: 2.4; stroke-linecap: round; }
.mascot .spark { fill: var(--sig); }
.mascot .z { fill: var(--st-muted); }
.mascot[data-state="work"] .s-work, .mascot[data-state="live"] .s-live, .mascot[data-state="wait"] .s-wait,
.mascot[data-state="alert"] .s-alert, .mascot[data-state="think"] .s-think, .mascot[data-state="skeptic"] .s-steam,
.mascot[data-state="happy"] .s-spark, .mascot[data-state="sleep"] .s-zzz { opacity: 1; }
.mascot[data-state="work"] .ring-prog { animation: m-spin 1.1s linear infinite, m-arc 2.2s ease-in-out infinite; }
.mascot[data-state="live"] .ping { animation: m-ping 2.2s ease-out infinite; }
.mascot[data-state="live"] .ping.p2 { animation-delay: 1.1s; }
.mascot[data-state="alert"] .ring-alert { animation: m-spin 8s linear infinite; }
.mascot[data-state="alert"] .bang { animation: m-pop .7s ease-in-out infinite; }
.mascot[data-state="alert"] .sweat { animation: m-drip 1.6s ease-in infinite; }
.mascot[data-state="wait"] .halo { animation: m-halo 1.4s ease-out infinite; }
.mascot[data-state="think"] .tdot { animation: m-tbob .9s ease-in-out infinite; animation-delay: calc(var(--d) * .15s); }
.mascot[data-state="skeptic"] .steam { animation: m-steam 1.6s ease-out infinite; animation-delay: calc(var(--d) * .4s); }
.mascot[data-state="happy"] .spark { animation: m-twinkle 1.3s ease-in-out infinite; animation-delay: calc(var(--d) * .4s); }
.mascot[data-state="sleep"] .z { animation: m-zfloat 2.7s ease-out infinite; animation-delay: calc(var(--d) * .9s); }
@keyframes m-spin { to { transform: rotate(360deg); } }
@keyframes m-arc { 0%, 100% { stroke-dasharray: 30 400; } 50% { stroke-dasharray: 150 400; } }
@keyframes m-ping { from { transform: scale(1); opacity: .6; } to { transform: scale(1.5); opacity: 0; } }
@keyframes m-halo { from { transform: scale(1); opacity: .5; } to { transform: scale(2.4); opacity: 0; } }
@keyframes m-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes m-drip { 0% { transform: translateY(-3px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(7px); opacity: 0; } }
@keyframes m-tbob { 0%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-6px); opacity: 1; } }
@keyframes m-steam { 0% { transform: translateY(5px); opacity: 0; } 35% { opacity: .85; } 100% { transform: translateY(-9px); opacity: 0; } }
@keyframes m-twinkle { 0%, 100% { transform: scale(.35) rotate(0deg); opacity: .25; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
@keyframes m-zfloat { 0% { transform: translate(0, 6px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translate(6px, -10px); opacity: 0; } }
.mascot { --q-hi: color-mix(in srgb, var(--mc) 40%, white); --q-mid: color-mix(in srgb, var(--mc) 82%, white); --q-lo: color-mix(in srgb, var(--mc) 55%, black); --q-glow: color-mix(in srgb, var(--mc) 50%, white); }
.mascot[data-q="alert"] { --q-hi: #FFE7BD; --q-mid: #E89A2C; --q-lo: #6E3F08; --q-glow: #E5A83F; }
.mascot[data-q="live"] { --q-glow: var(--st-gain); }
.mascot .q { pointer-events: none; }
.mascot.gl .q { display: none; }
.mascot .q0 { stop-color: var(--q-hi); } .mascot .q1 { stop-color: var(--q-mid); } .mascot .q2 { stop-color: var(--q-lo); }
.mascot .qh0 { stop-color: var(--q-glow); stop-opacity: .6; } .mascot .qh1 { stop-color: var(--q-glow); stop-opacity: 0; }
.mascot .q-shadow { fill: #000; }
.mascot :is(.s-work, .s-wait, .s-live) { display: none; }
.mascot.no-stat .stat { display: none !important; }
.mascot .tether { fill: none; stroke-linecap: round; display: none; }
.mascot[data-tether="stalk"] .tether { display: block; stroke: color-mix(in srgb, var(--mc) 62%, var(--c-ivory)); }
.mascot .tether-hi { fill: none; stroke-linecap: round; display: none; stroke: var(--c-ivory); stroke-opacity: .5; }
.mascot[data-tether="stalk"] .tether-hi { display: block; }
.mascot .stud { display: none; }
.mascot[data-tether="peg"] .stud { display: block; }
.mascot .stud-body { fill: color-mix(in srgb, var(--mc) 74%, var(--c-ivory)); }
.mascot .stud-hi { fill: var(--c-ivory); opacity: .4; }
.mascot .stud-glow { fill: var(--sig); }
.rm .mascot *, .rm .mascot { animation: none !important; }
