/* Corner helper (pet-helper.js): a 3D pet in the bottom-right corner with a speech bubble above it that links to
   Contact. On phones the pet sits on the right edge just above each full-screen card's bottom strip (Watch live, a
   post's ⋯), is a little smaller, opens its chat when tapped, and its bubble fades a few seconds after each page
   change. */
.pet-helper{position:fixed;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:35;display:grid;justify-items:end;pointer-events:none}
.pet-helper[hidden]{display:none}
.pet-helper-pet{display:block;width:120px;height:120px;border-radius:50%;pointer-events:auto;cursor:pointer;-webkit-tap-highlight-color:transparent}
.pet-helper-canvas{display:block;width:100%;height:100%}
/* The bubble's tail points down at the pet, as in the original. */
.pet-helper-bubble{position:relative;margin:0 34px -6px 0;padding:9px 16px;border-radius:20px;background:#fff;color:#111827;font-family:"Inter",-apple-system,system-ui,sans-serif;font-size:13px;font-weight:600;line-height:1.2;white-space:nowrap;text-decoration:none;box-shadow:0 14px 34px rgba(0,0,0,.12),0 4px 10px rgba(0,0,0,.06);pointer-events:auto;transition:opacity .3s ease,transform .3s ease}
.pet-helper-bubble::after{content:"";position:absolute;bottom:-7px;right:26px;border:8px solid transparent;border-bottom:0;border-top-color:#fff}
.pet-helper-bubble:hover{background:#f4f4f5}.pet-helper-bubble:hover::after{border-top-color:#f4f4f5}
.pet-helper-bubble:focus-visible{outline:2px solid #a1a1aa;outline-offset:2px}
.pet-helper[data-state="asleep"] .pet-helper-bubble{color:#6b7280}
/* Pip's snack (🥩 or 🥤) shows a little bigger. */
.pet-helper.is-snacking .pet-helper-text{font-size:20px;line-height:1}
.pet-helper-close{position:absolute;right:0;bottom:96px;display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:#18181bcc;color:#fff;cursor:pointer;pointer-events:auto;transition:opacity .2s ease}
.pet-helper-close svg{width:12px;height:12px}
.pet-helper-close:focus-visible{outline:2px solid #a1a1aa;outline-offset:2px}
/* With a mouse, × shows on hover or keyboard focus; on touch screens it's always there. */
@media (hover:hover) and (pointer:fine){.pet-helper-close{opacity:0}.pet-helper:hover .pet-helper-close,.pet-helper:focus-within .pet-helper-close{opacity:1}}
@media (max-width:760px){
 .pet-helper{right:6px;bottom:calc(212px + env(safe-area-inset-bottom,0px))}
 .pet-helper-pet{width:76px;height:76px}
 .pet-helper-close{bottom:54px}
 .pet-helper-bubble{margin:0 20px -4px 0;padding:8px 14px;font-size:12px}
 .pet-helper.is-quiet .pet-helper-bubble{opacity:0;transform:translateY(6px);pointer-events:none}
 .pet-helper.is-quiet .pet-helper-bubble:focus-visible{opacity:1;transform:none}
}
@media (prefers-reduced-motion:reduce){.pet-helper-bubble,.pet-helper-close{transition:none}}
