/* Full-frame animation shared by checkout and guided tours. */
.damian-character{position:relative;display:block;width:100%;height:100%;isolation:isolate}
.damian-character__root,.damian-character__frame{position:absolute;inset:0;display:block}
.damian-character__frame{background-size:400% 400%;background-repeat:no-repeat;opacity:0;filter:drop-shadow(0 5px 5px rgb(35 22 12 / 12%))}
.damian-character.is-ready .damian-character__frame{opacity:1}
.damian-character.is-ready>.damian-character__fallback{visibility:hidden}
.damian-character__fallback{width:100%;height:100%;object-fit:contain;object-position:center bottom;display:block}
.co-pet{--pet-accent:var(--brand-blue,#438dff);--pet-panel-bg:#0f172a;--pet-text-strong:#f8fafc;--pet-text-muted:#cbd5e1;--pet-border:#355075;--pet-hover-bg:#1e293b;position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(106px,calc(env(safe-area-inset-bottom) + 96px));z-index:90;width:156px;height:172px;pointer-events:none;isolation:isolate}
body[data-theme=light] .co-pet{--pet-panel-bg:#fff;--pet-text-strong:#182336;--pet-text-muted:#556277;--pet-border:#dbe2ed;--pet-hover-bg:#f0f3f8}
.co-pet__actor{position:absolute;right:0;bottom:0;width:156px;height:164px;padding:0;border:0;background:transparent;cursor:pointer;pointer-events:auto}
.co-pet__actor:focus-visible{outline:3px solid var(--pet-accent);outline-offset:4px;border-radius:20px}
.co-pet__visual{display:block;position:absolute;inset:0}
.co-pet__label{position:absolute;left:50%;bottom:-8px;transform:translateX(-50%);white-space:nowrap;padding:5px 11px;border:1px solid var(--pet-border);border-radius:999px;background:var(--pet-panel-bg);color:var(--pet-text-strong);font-size:10px;font-weight:700;box-shadow:0 3px 12px rgb(20 30 45 / 10%);transition:background-color .18s ease,color .18s ease,border-color .18s ease}
.co-pet__bubble{position:absolute;right:143px;bottom:76px;width:min(270px,calc(100vw - 184px));padding:16px 33px 15px 16px;border:1px solid var(--pet-border);border-radius:18px 18px 5px 18px;background:var(--pet-panel-bg);color:var(--pet-text-strong);box-shadow:0 8px 30px rgb(20 30 45 / 12%);pointer-events:auto;transition:opacity .18s ease,transform .18s ease,background-color .18s ease,color .18s ease,border-color .18s ease}
.co-pet__bubble-close{position:absolute;right:7px;top:7px;width:26px;height:26px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:var(--pet-text-muted);cursor:pointer;transition:background-color .18s ease,color .18s ease}
.co-pet__bubble-close:hover{background:var(--pet-hover-bg)}
.co-pet__name{display:block;color:var(--pet-text-strong);font-size:13px;font-weight:750;line-height:1.3;transition:color .18s ease}
.co-pet__role{display:block;margin-top:4px;color:var(--pet-accent);font-size:9px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;transition:color .18s ease}
.co-pet__message{margin:9px 0 0;color:var(--pet-text-muted);font-size:12px;line-height:1.55;transition:color .18s ease}
.co-pet__phase{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;width:100%;margin-top:12px}
.co-pet__phase i{display:block;width:auto;height:4px;border-radius:9px;background:var(--border-default,#dbe2ed);transition:background-color .18s ease,transform .18s ease}
.co-pet__phase i.active{background:var(--pet-accent)}
.co-pet__phase i.current{background:color-mix(in srgb,var(--pet-accent) 35%,var(--border-default,#dbe2ed));transform:scaleY(1.35)}
.co-pet.is-collapsed .co-pet__bubble{visibility:hidden;opacity:0;transform:translateY(6px);pointer-events:none}
.co-pet[data-state=retry]{--pet-accent:#bf861e}
.co-pet[data-state=success]{--pet-accent:#239567}
@media(max-width:720px){.co-pet{right:8px;bottom:max(98px,calc(env(safe-area-inset-bottom) + 86px));width:120px;height:134px}.co-pet__actor{width:120px;height:126px}.co-pet__bubble{right:110px;bottom:62px;width:min(242px,calc(100vw - 140px));padding:13px 29px 13px 13px}.co-pet__message{font-size:11px}.co-pet__label{font-size:9px}}
@media(prefers-reduced-motion:reduce){.co-pet__bubble,.co-pet__label,.co-pet__bubble-close,.co-pet__name,.co-pet__role,.co-pet__message,.co-pet__phase i{transition:none}}
