/* Bobo, the helper. Driven by assets/js/bobo.js */
#bobo-canvas{position:fixed;left:0;top:0;width:640px;height:520px;max-width:none!important;max-height:none!important;pointer-events:none;z-index:45;transition:opacity .35s;will-change:transform}
#bobo-hit{position:fixed;left:0;top:0;width:72px;height:54px;max-width:none;padding:0;margin:0;border:0;background:transparent;border-radius:14px;z-index:46;cursor:grab;display:none;pointer-events:none;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
#bobo-hit.dragging{cursor:grabbing}

#bobo-bubble{position:fixed;left:0;top:0;z-index:55;width:min(340px,calc(100vw - 16px));max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;background:var(--gn,#214C31);color:var(--cr,var(--cr));border:1px solid var(--sd);border-radius:6px;padding:.85rem 2.2rem .6rem 1rem;box-shadow:0 12px 34px rgba(var(--bk-rgb),.55);font:400 .98rem/1.5 var(--sans,system-ui,sans-serif);will-change:transform}
#bobo-bubble[hidden]{display:none}
#bobo-bubble.show{animation:bbIn .28s cubic-bezier(.2,.8,.2,1)}
@keyframes bbIn{from{opacity:0}to{opacity:1}}
#bobo-bubble::after{content:"";position:absolute;left:var(--tx,50%);bottom:-8px;width:14px;height:14px;margin-left:-7px;background:var(--gn,#214C31);border-right:1px solid var(--sd);border-bottom:1px solid var(--sd);transform:rotate(45deg)}
#bobo-bubble.side::after{display:none}
#bobo-bubble.below::after{bottom:auto;top:-8px;transform:rotate(225deg)}
#bobo-bubble .bb-h{font:600 1.05rem/1.25 var(--serif,Georgia,serif);margin:0 0 .35rem}
#bobo-bubble .bb-t{white-space:pre-wrap;min-height:1.5em}
#bobo-bubble .bb-t.typing::after{content:"";display:inline-block;width:.5ch;height:1em;margin-left:2px;vertical-align:-.15em;background:var(--sd);animation:bbCaret .8s steps(1) infinite}
@keyframes bbCaret{50%{opacity:0}}
#bobo-bubble .bb-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0}
#bobo-bubble .bb-x{position:absolute;right:.35rem;top:.25rem;width:2rem;height:2rem;display:grid;place-items:center;border:0;background:transparent;color:inherit;font:400 1.5rem/1 var(--sans,system-ui,sans-serif);cursor:pointer;border-radius:4px}
#bobo-bubble .bb-x:hover{background:rgba(var(--sd-rgb),.15)}
#bobo-bubble .bb-f{display:flex;justify-content:space-between;align-items:center;gap:.6rem;margin-top:.55rem;padding-top:.45rem;border-top:1px solid rgba(var(--cr-rgb),.28);font-size:.74rem;color:rgba(var(--cr-rgb),.75)}
#bobo-bubble .bb-hide{position:relative;display:inline-block;margin:.4rem 0 .1rem;padding:.14rem .5rem;border:1px solid rgba(var(--sd-rgb),.7);border-radius:3px;background:transparent;color:inherit;font:600 clamp(.6rem,.5rem + .25vw,.7rem)/1.3 var(--sans,system-ui,sans-serif);letter-spacing:.01em;cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent}
#bobo-bubble .bb-hide::after{content:"";position:absolute;inset:-9px -8px}
#bobo-bubble .bb-hide:hover,#bobo-bubble .bb-hide:focus-visible{background:var(--sd);color:var(--on-sd,#0A0A0A)}
#bobo-bubble .bb-hide:focus-visible{outline:2px solid var(--sd);outline-offset:2px}
@media print{#bobo-canvas,#bobo-hit,#bobo-bubble{display:none!important}}
#bobo-bubble .bb-ring{grid-area:1/1;width:1.55rem;height:1.55rem;overflow:visible;pointer-events:none}
#bobo-bubble .bb-ring circle{fill:none}
#bobo-bubble .bb-track{stroke:rgba(var(--sd-rgb),.25);stroke-width:1.6}
#bobo-bubble .bb-prog{stroke:rgba(var(--sd-rgb),.75);stroke-width:1.9;stroke-dasharray:1 1;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:16px 16px;stroke-linecap:round}
#bobo-bubble .bb-ring .bb-dot{fill:var(--sd);stroke:none}
#bobo-bubble .bb-ring .bb-cross{stroke:var(--sd);stroke-width:2;stroke-linecap:round;fill:none}

/* phones: a small, tidy bubble that stays readable but never fills the screen */
@media(max-width:600px){
  #bobo-bubble{width:min(262px,calc(100vw - 20px));padding:.5rem 1.9rem .35rem .65rem;font-size:.8rem;line-height:1.38;max-height:min(34vh,230px);border-radius:5px}
  #bobo-bubble .bb-h{font-size:.86rem;margin-bottom:.2rem}
  #bobo-bubble .bb-f{display:none}
  #bobo-bubble .bb-hide{margin-top:.3rem;padding:.1rem .4rem;font-size:.6rem;border-radius:2px}
  #bobo-bubble .bb-x{width:2.1rem;height:2.1rem;right:.1rem;top:.05rem}
  #bobo-bubble .bb-ring{width:1.3rem;height:1.3rem}
  #bobo-bubble::after{width:10px;height:10px;margin-left:-5px;bottom:-6px}
  #bobo-bubble.below::after{top:-6px;bottom:auto}
}
@media(max-height:520px) and (orientation:landscape){#bobo-bubble{max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);font-size:.85rem}}
@media(max-width:380px){#bobo-bubble .bb-hide{padding:.08rem .34rem;font-size:.56rem}}
@media(max-height:520px) and (orientation:landscape){#bobo-bubble .bb-hide{margin-top:.25rem;padding:.08rem .36rem;font-size:.58rem}}
