/* Original pen lines, displayed through a paper-removing alpha mask. */
.companion-gallery-toggle{z-index:5}
.reference-ui .contact-companion{bottom:calc(100% - 1px)}
:root[data-theme=light] .reference-ui #contactMascot{filter:drop-shadow(0 0 1.3px #fff) drop-shadow(0 1px .8px #fff)}
:root[data-theme=dark] .reference-ui #contactMascot{filter:drop-shadow(0 1px 1px #0e1c2f) drop-shadow(0 0 1px #071221b3)}
.contact-companion{bottom:calc(100% - 1px)}.rig-drawing .rig-fine{stroke-width:1.35;opacity:.87}
.rig-drawing{display:block;height:100%;width:100%;overflow:visible;fill:none;stroke:currentColor;stroke-width:2.9;stroke-linecap:round;stroke-linejoin:round}
.contact-companion #contactMascot .rig-drawing{color:inherit!important;fill:none;stroke:currentColor!important;stroke-width:3}
.rig-drawing .rig-body,.rig-drawing .rig-ear{stroke-width:3.1}.rig-drawing .rig-belly-marks{stroke-width:3.4}.rig-drawing .rig-whiskers{stroke-width:2.05}.rig-drawing .rig-nose{stroke-width:1.7}.rig-drawing [data-rig^=pupil]{fill:currentColor;stroke-width:.5}.rig-drawing .rig-props{stroke-width:2.6}.rig-drawing .rig-tickle{stroke-width:1.7}
.mascot-pose-tile>.rig-drawing{width:100%;height:106px;color:#f2e5d2!important;stroke-width:2.8}
:root[data-theme=light] .mascot-pose-tile>.rig-drawing{color:#5b483c!important}
@media(max-width:580px){.mascot-pose-tile>.rig-drawing{height:94px}}
.mascot-gallery-heading h2{text-wrap:balance}
.mascot-pose-tile>span{font-size:12px}
@media(max-width:580px){.mascot-pose-tile>span{font-size:11px}}
.companion-source-defs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.contact-companion{position:absolute;bottom:calc(100% - 5px);right:3px;width:128px;height:153px;z-index:3;pointer-events:none;--companion-ink:#f2e5d2}
.contact-companion #contactMascot{position:relative;inset:auto;width:128px;height:153px;display:block;pointer-events:auto;padding:0;margin:0;border:0;border-radius:0;background:none!important;box-shadow:none;color:var(--companion-ink)!important;filter:drop-shadow(0 1px 1.4px #080d20b3);transform:none;transition:none;cursor:pointer;overflow:visible}
#contactMascot .ref-drawing,.ref-drawing{display:block;height:100%;width:100%;overflow:visible;fill:currentColor;stroke:none!important;color:inherit!important}
.ref-drawing .ref-eye-lids,.ref-drawing .ref-touch-lines{fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.ref-drawing .ref-touch-lines{stroke-width:1.6}.ref-arriving{animation:companionArrive .28s ease-out both}
.companion-gallery-toggle{pointer-events:auto;position:absolute;right:-4px;top:20px;width:30px;height:30px;border-radius:10px;border:1px solid #b2bed64d;background:color-mix(in srgb,var(--surface) 95%,transparent);color:var(--secondary);box-shadow:0 4px 12px #101a321c;display:grid;place-items:center;opacity:0;transform:translateX(-3px);transition:opacity .2s,transform .2s,background .2s}
.companion-gallery-toggle>svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.4}.contact-companion:hover .companion-gallery-toggle,.contact-companion:focus-within .companion-gallery-toggle{opacity:1;transform:none}.companion-gallery-toggle:hover{background:var(--lilac-soft)}
.companion-caption{position:absolute;right:5px;bottom:calc(100% + 1px);padding:5px 9px;border-radius:8px;background:color-mix(in srgb,var(--surface) 96%,transparent);border:1px solid var(--line);font-size:10px;line-height:1.5;white-space:nowrap;color:var(--secondary);opacity:0;transform:translateY(3px);transition:opacity .18s,transform .2s;pointer-events:none}
.contact-companion:hover .companion-caption,.contact-companion:focus-within .companion-caption{opacity:1;transform:none}.companion-resting *{animation-play-state:paused!important}
:root[data-theme=light] .contact-companion{--companion-ink:#5b483c}:root[data-theme=light] .contact-companion #contactMascot{filter:drop-shadow(0 1px .7px #ffffffbf)}
.mascot-gallery{width:min(680px,calc(100vw - 28px));height:min(790px,calc(100svh - 32px));max-height:calc(100svh - 32px);padding:26px 29px;border-radius:25px;overflow:hidden;scrollbar-width:thin}.mascot-gallery[open]{display:flex;flex-direction:column}.mascot-gallery-heading,.mascot-gallery-tabs,.mascot-gallery-note{flex-shrink:0}
.mascot-gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-right:21px}.mascot-gallery-heading h2{font-size:27px;line-height:1.5;color:var(--accent-heading);margin-top:6px;font-weight:550}.mascot-gallery-heading p{font-size:13px;line-height:1.85;color:var(--secondary);margin-top:9px}.mascot-gallery-heading #mascotPreviewName{display:inline-flex;align-items:center;font-size:12px;color:var(--accent-heading);background:var(--lilac-soft);border:1px solid var(--line);padding:5px 9px;border-radius:8px;margin-top:13px;line-height:1.5}
#mascotGalleryPreview{height:167px;width:144px;flex-shrink:0;color:#f2e5d2;padding-top:6px}:root[data-theme=light] #mascotGalleryPreview{color:#5b483c}
.mascot-gallery-tabs{display:flex;align-items:center;gap:7px;margin:18px 0;padding:5px;border:1px solid var(--line);border-radius:13px;background:var(--soft)}.mascot-gallery-tabs>button{flex:1;min-height:38px;padding:8px 10px;border-radius:9px;font-size:13px;color:var(--secondary)}.mascot-gallery-tabs>button[aria-pressed=true]{background:var(--lilac-soft);color:var(--accent-heading);box-shadow:inset 0 0 0 1px #9ab1df35}
.mascot-pose-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;flex:1;min-height:120px;overflow-y:auto;scrollbar-width:thin;padding:2px 5px 4px 0;align-content:start}
.mascot-pose-tile{border:1px solid var(--line);border-radius:13px;padding:7px 6px 11px;text-align:center;background:var(--soft);color:var(--secondary);transition:background .18s,border-color .18s,transform .18s;min-width:0}
.mascot-pose-tile>.ref-drawing{height:106px;width:100%;color:#f2e5d2!important}:root[data-theme=light] .mascot-pose-tile>.ref-drawing{color:#5b483c!important}.mascot-pose-tile>span{font-size:11px;line-height:1.6;white-space:nowrap}.mascot-pose-tile:hover{border-color:#9eb1d5;transform:translateY(-2px)}.mascot-pose-tile[aria-pressed=true]{background:var(--lilac-soft);border-color:#9eb1d5;color:var(--accent-heading)}.mascot-pose-tile *{animation:none!important;transition:none!important}
.mascot-gallery-note{font-size:11px;line-height:1.85;color:var(--muted);padding-top:15px;margin-top:14px;border-top:1px solid var(--line)}
@keyframes companionArrive{from{opacity:0;translate:0 2px}to{opacity:1;translate:0 0}}
@media(max-width:580px){.contact-companion{height:127px;width:106px;right:-12px}.contact-companion #contactMascot{height:127px;width:106px}.companion-gallery-toggle{height:32px;width:32px;right:0;top:9px;opacity:.8;transform:none}.companion-caption{right:2px}.mascot-gallery{padding:24px 20px}.mascot-gallery-heading{gap:4px;padding-right:7px}.mascot-gallery-heading h2{font-size:22px}.mascot-gallery-heading p{font-size:12px}.mascot-gallery-heading .dialog-kicker{font-size:10px}#mascotGalleryPreview{height:140px;width:110px}.mascot-gallery-tabs{gap:3px;margin-top:13px}.mascot-gallery-tabs>button{font-size:11px;min-height:37px;padding:7px 3px}.mascot-pose-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.mascot-pose-tile{padding:5px 3px 9px}.mascot-pose-tile>.ref-drawing{height:94px}.mascot-pose-tile>span{font-size:10px}.mascot-gallery-note{font-size:11px}}
@media(max-height:520px){.contact-companion{display:none}}
@media(prefers-reduced-motion:reduce){.contact-companion *,.mascot-gallery *{animation:none!important;transition:none!important}}

/* Keep one live drawing surface in place throughout each pose transition. */
.contact-companion{width:81.92px;height:97.92px;right:21px}
.contact-companion #contactMascot{width:81.92px;height:97.92px}
.companion-live-canvas{display:block;width:100%;height:100%;pointer-events:none;color:inherit}
.companion-live-canvas:not([data-ready=true]){visibility:hidden}
.companion-ink-fallback{display:block;position:absolute;inset:0;pointer-events:none;color:inherit}
.companion-ink-fallback[hidden]{display:none}
#mascotGalleryPreview{position:relative}
.mascot-gallery .mascot-pose-tile>span{font-size:12px}
@media(max-width:580px){.contact-companion{width:67.84px;height:81.28px;right:-6px}.contact-companion #contactMascot{width:67.84px;height:81.28px}.companion-gallery-toggle{top:0;right:-6px}.mascot-gallery .mascot-pose-tile>span{font-size:11px}}
