/* Keep the approved artwork intact. Controls use exact crops of the same image. */
.bob-stage{position:relative;width:100%;aspect-ratio:2/3;isolation:isolate}
.bob-stage .bob-canonical{width:100%;height:100%;mask:url('/assets/bob-controls-mask.svg') center/100% 100% no-repeat;-webkit-mask:url('/assets/bob-controls-mask.svg') center/100% 100% no-repeat}
.bob-energy{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.bob-wave-lines path{transform-origin:355px 169px;animation:bob-wave 2.8s ease-in-out infinite;filter:drop-shadow(0 0 7px #d55cff)}
.bob-wave-lines path:nth-child(2){animation-delay:.14s}.bob-wave-lines path:nth-child(3){animation-delay:.28s}
.bob-globe-energy ellipse{animation:bob-orbit 7s linear infinite;filter:drop-shadow(0 0 8px currentColor);opacity:.8}.bob-globe-energy ellipse:nth-child(2){animation-direction:reverse;animation-duration:9s}
.bob-globe-sparkles{animation:bob-sparkle 3.5s ease-in-out infinite}
@keyframes bob-wave{0%,15%,82%,100%{opacity:0;transform:rotate(-7deg) scale(.95)}30%,45%{opacity:1;transform:rotate(5deg) scale(1.03)}60%{opacity:.4;transform:rotate(-4deg)}}
@keyframes bob-orbit{to{stroke-dashoffset:-2515}}
@keyframes bob-sparkle{0%,100%{opacity:.2}50%{opacity:1}}
.bob-control{position:absolute;display:block;margin:0;padding:0;border:0;background:none;color:white;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;z-index:2;transition:transform 100ms ease,filter 100ms ease,box-shadow 100ms ease;filter:drop-shadow(0 2px 2px #30135b80)}
.bob-control svg{display:block;width:100%;height:100%;border-radius:inherit;overflow:hidden;pointer-events:none}
.bob-control::before{content:"";position:absolute;left:50%;top:50%;width:100%;height:100%;min-width:28px;min-height:28px;transform:translate(-50%,-50%)}
.bob-control:hover{filter:brightness(1.17) drop-shadow(0 0 3px #12f5ef)}
.bob-control:active,.bob-control.is-pressed{transform:translateY(2px) scale(.94);filter:brightness(.83);box-shadow:inset 0 3px 7px #0009}
.bob-control:focus-visible{outline:2px solid #fff;outline-offset:3px;box-shadow:0 0 0 5px #7528fa}
.bob-mic{left:39.0625%;top:63.28125%;width:20.5078125%;height:13.671875%;border-radius:50%}
.bob-answers{left:26.5625%;top:83.59375%;width:45.5078125%;height:5.9895833%;border-radius:999px}
.bob-artwork figcaption{font-size:clamp(9px,.72vw,12px);line-height:1.35;padding:4px 3px;margin-top:5px}
.bob-settings{display:flex;justify-content:center;gap:3px;flex-wrap:wrap;margin-top:3px}
.bob-settings button{border:0;background:#f8f7fc;color:#5d4779;font:inherit;font-size:clamp(9px,.66vw,11px);line-height:1.4;border-radius:4px;padding:4px;cursor:pointer;min-height:24px}
.bob-settings button:hover{background:#eee7fa}.bob-settings button:focus-visible{outline:2px solid #7528fa;outline-offset:2px}
.bob-motion-paused .bob-energy *{animation-play-state:paused!important}.bob-motion-paused .bob-wave-lines{opacity:0}
.bob-panel{width:min(480px,calc(100% - 32px));max-width:480px;max-height:calc(100dvh - 32px);overflow:auto;padding:26px;border:1px solid #c5b3ec;border-radius:20px;box-shadow:0 24px 90px #160c3d70;background:linear-gradient(140deg,#fff,#f8f5ff);color:#19132a;font-family:Arial,Helvetica,sans-serif}
.bob-panel::backdrop{background:#130b2e99;backdrop-filter:blur(3px)}
.bob-panel-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.bob-panel h2{font-size:28px;margin:5px 0 0;line-height:1.2}.bob-preview-label{color:#7130bf;font-size:10px;font-weight:700;letter-spacing:.15em;margin:0}
.bob-panel-header button{border:1px solid #d6c8eb;border-radius:50%;width:40px;height:40px;flex-shrink:0;background:white;color:#4f277d;font-size:26px;cursor:pointer}
.bob-panel>p{font-size:15px;line-height:1.65;color:#5d536b;margin:20px 0}.bob-voice-status{padding:13px;border:1px solid #ddd5eb;border-radius:10px;background:#f1edf8;color:#5a4d6d;font-size:13px;line-height:1.5}.bob-voice-status span{color:#8d809f;margin-right:5px}
.bob-panel .bob-panel-note{font-size:13px;margin-bottom:12px}.bob-topic-links{display:grid;grid-template-columns:1fr 1fr;gap:10px}.bob-topic-links a{display:flex;justify-content:space-between;gap:10px;color:#642db1;text-decoration:none;padding:14px;border:1px solid #d5c4ee;border-radius:10px;font-size:14px;background:white}.bob-topic-links a:hover{background:#f2e9ff}.bob-back{display:block;width:100%;padding:13px;margin-top:22px;border:0;border-radius:10px;background:linear-gradient(120deg,#6124e4,#8435c9);color:#fff;font-size:14px;cursor:pointer}
.bob-panel a:focus-visible,.bob-panel button:focus-visible{outline:3px solid #7735cb;outline-offset:3px}
@media(max-width:600px){.bob-presence{width:220px;max-width:calc(100% - 36px)}.bob-artwork figcaption{font-size:11px}.bob-settings button{font-size:11px;padding:6px;min-height:32px}.bob-control::before{min-width:40px;min-height:32px}}
@media(prefers-reduced-motion:reduce){.bob-energy *{animation:none!important}.bob-wave-lines{opacity:0}.bob-control{transition:none}}
