#cfd-pet{--pet-paper:#fffaf0;--pet-ink:#503d32;position:relative;z-index:900;color:var(--pet-ink);font:16px/1.4 'Gaegu',sans-serif}
#cfd-pet [hidden]{display:none!important}
#cfd-pet button{font:inherit;color:inherit;cursor:pointer}
#cfd-pet button:focus-visible,#cfd-pet input:focus-visible{outline:3px solid #648672;outline-offset:3px}
#cfd-pet .pet-stage{position:fixed;left:0;bottom:18px;width:168px;pointer-events:none}
#cfd-pet .pet-cat{pointer-events:auto;background:none;border:0;padding:0;display:block;width:100%;height:151px;touch-action:manipulation}
#cfd-pet canvas{width:100%!important;height:auto!important;display:block}
#cfd-pet .pet-name{pointer-events:auto;display:block;margin:-3px auto 0;border:1px solid #d8c8b4;border-radius:20px;background:var(--pet-paper);padding:3px 13px;font-size:14px;box-shadow:0 3px 12px #503d3210}
#cfd-pet .pet-thought{position:absolute;bottom:100%;right:0;max-width:210px;width:max-content;box-sizing:border-box;border:1px solid #bba88e;border-radius:18px 18px 5px 18px;background:var(--pet-paper);padding:10px 14px;box-shadow:0 4px 15px #503d3215;font-size:17px;pointer-events:none}
#cfd-pet .pet-stage .pet-thought{max-width:168px}
#pet-panel{position:fixed;right:20px;bottom:210px;width:280px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 250px);overflow:auto;box-sizing:border-box;background:var(--pet-paper);border:1px solid #cbbba4;border-radius:22px;padding:16px;box-shadow:0 12px 40px #503d3226}
#pet-panel .pet-panel-title{display:flex;align-items:center;justify-content:space-between;font-size:23px}
#pet-panel .pet-close{border:0;background:none;font:24px sans-serif;width:32px;height:32px}
#pet-panel p{margin:4px 0 14px;font-size:16px}
#pet-panel .pet-moods{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-bottom:14px}
#pet-panel .pet-moods button{border:1px solid #d8c8b4;background:#fffdf8;border-radius:11px;padding:8px}
#pet-panel .pet-moods button[aria-pressed=true]{background:#e2ebdd;border-color:#7b9571}
#pet-panel label{display:flex;align-items:center;gap:8px;margin:10px 0;font-size:15px}
#pet-panel input{accent-color:#648672;width:17px;height:17px}
#pet-panel .pet-hide{width:100%;border:1px solid #d8c8b4;border-radius:12px;background:#f3e6d9;padding:8px;margin:6px 0}
#pet-panel small{display:block;font:11px/1.5 sans-serif;opacity:.7;text-align:center}
#cfd-pet .pet-restore{position:fixed;right:16px;bottom:18px;border:1px solid #cbbba4;border-radius:20px;background:var(--pet-paper);padding:8px 14px;box-shadow:0 3px 12px #503d3215}
@media(max-width:599px){#cfd-pet .pet-stage{width:126px;bottom:85px}#cfd-pet .pet-cat{height:113px}#cfd-pet .pet-name{font-size:12px}#cfd-pet .pet-stage .pet-thought{max-width:126px;font-size:14px;padding:8px}#pet-panel{bottom:240px;right:16px;max-height:calc(100dvh - 260px)}#cfd-pet .pet-restore{bottom:85px}}

#cfd-pet .pet-butterfly{position:fixed;left:0;bottom:0;width:44px;height:44px;pointer-events:none;background-image:url(/images/pets/miso-expressions-v2.png);background-size:400% 400%;background-position:66.6667% 100%;will-change:transform}#pet-panel [data-mood="chase"]{grid-column:1/-1;background:#eaf0df}

#pet-panel{width:320px;bottom:205px;max-height:calc(100dvh - 225px)}
#pet-panel .pet-picker{border:0;padding:0;margin:0 0 14px;min-width:0}
#pet-panel .pet-picker legend{font-size:17px;margin:0 0 7px}
#pet-panel .pet-picker>div{display:grid;grid-template-columns:1fr 1fr;gap:9px}
#pet-panel .pet-picker button{display:flex;flex-direction:column;align-items:center;border:1px solid #d8c8b4;background:#fffdf8;border-radius:16px;padding:5px 4px 9px}
#pet-panel .pet-picker button[aria-pressed=true]{background:#e8efdf;border:2px solid #799469;padding:4px 3px 8px;box-shadow:0 2px 0 #79946925}
#pet-panel .pet-picker button>span:last-child{font-size:12px}
#pet-panel .pet-portrait{display:block;width:82px;height:78px;background-repeat:no-repeat}
#pet-panel .pet-portrait-cat{background-image:url(/images/pets/miso-v1.png);background-size:400% 300%;background-position:0 50%}
#pet-panel .pet-portrait-dog{background-image:url(/images/pets/biscuit-v1.png);background-size:400% 400%;background-position:0 33.3333%}
#cfd-pet[data-character=dog] .pet-butterfly{width:24px;height:24px;border:1.5px solid #925947;border-radius:50%;background:radial-gradient(circle at 30% 25%,#ffe3b9 0 13%,transparent 15%),linear-gradient(45deg,#d98573 45%,#fff0cf 46% 54%,#e69a83 55%);box-shadow:inset -3px -3px 0 #9b4c3020}
@media(max-width:599px){#pet-panel{bottom:230px;max-height:calc(100dvh - 250px)}}

.pet-meal-trigger{font:inherit;color:inherit;letter-spacing:inherit;text-align:inherit;line-height:inherit;background:none;border:0;padding:0;cursor:pointer}.pet-meal-trigger:focus-visible{outline:2px solid #799469;outline-offset:5px;border-radius:5px}

.landing-body .diary-paper h2 > .pet-meal-trigger,.food-page-header h1 > .pet-meal-trigger{font:inherit;letter-spacing:inherit;line-height:inherit;color:inherit}

#pet-panel .pet-picker>div{grid-template-columns:repeat(3,minmax(0,1fr))}
#pet-panel .pet-picker button{min-width:0}
#pet-panel .pet-picker button>span:last-child{text-align:center;line-height:1.35}
#pet-panel .pet-portrait-owl{background-image:url(/images/pets/pippin-owl-v1.png);background-size:400% 400%;background-position:0 0}
#cfd-pet[data-character=owl] .pet-butterfly{display:none}
@media(prefers-reduced-motion:reduce){#cfd-pet .pet-stage{transition:none!important}}

#cfd-pet[data-character=owl] #pet-panel{left:16px;right:auto}
#cfd-pet[data-character=owl] .pet-stage .pet-thought{left:0;right:auto}
#cfd-pet[data-character=owl] .pet-restore{left:16px;right:auto}
