/* Desk companion (desk-pet.mjs). Two homes: the small Document Picture-in-Picture window (body.desk-pet, which
   gets only the monster sheets and this one, never styles.css) and the buttons and hint that open it in the app. */
body.desk-pet{position:relative;margin:0;height:100vh;display:flex;flex-direction:column;overflow:hidden;color:#3a2a4a;background:radial-gradient(ellipse at 20% 10%,#ffe2bc80,transparent 45%),linear-gradient(170deg,#fdf5f0,#f2e4ee 60%,#e2d6ee);font:14px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased;user-select:none}
.desk-pet-stage{flex:1;display:flex;align-items:center;gap:10px;padding:10px 12px 0;min-height:0}
.desk-pet-figure{flex:none;margin:0;width:112px;height:112px;display:flex;align-items:flex-end;justify-content:center}
.desk-pet-art{width:112px;height:112px;overflow:visible}
.desk-pet-lane{position:relative;display:block;width:112px;height:104px;overflow:hidden;border-radius:14px;background:linear-gradient(180deg,#fff6e6,#f3ead6)}
.desk-pet-lane .desk-pet-art{position:absolute;left:0;bottom:4px;width:112px;height:112px;transform-origin:50% 95%;animation:desk-trot .7s ease-in-out infinite}
.desk-pet-lane[data-courier=slime] .desk-pet-art{animation:desk-squish 1.1s ease-in-out infinite}
.desk-pet-lane[data-courier=fire] .desk-pet-art{animation:desk-bounce .8s cubic-bezier(.3,0,.6,1) infinite}
.desk-pet-path{position:absolute;left:0;right:0;bottom:8px;height:3px;background:repeating-linear-gradient(90deg,#cdb99a 0 10px,transparent 10px 20px);background-size:20px 3px;animation:desk-path .7s linear infinite}
.desk-pet-lane[data-courier=slime] .desk-pet-path{animation-duration:1.1s}
.desk-pet-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.desk-pet-title{font:18px/1.2 Georgia,serif;overflow:hidden;text-overflow:ellipsis}
.desk-pet-line{color:#76637f;font-variant-numeric:tabular-nums}
.desk-pet-carrier{color:#76637f;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.desk-pet-track{display:block;height:3px;margin-top:6px;border-radius:3px;background:#e4d6ea;overflow:hidden}
.desk-pet-track i{display:block;height:100%;width:0;border-radius:3px;background:linear-gradient(90deg,#cfb5e6,#9466bc);transition:width 1s linear}
.desk-pet-actions{flex:none;display:flex;gap:8px;padding:8px 12px 10px}
.desk-pet-toggle{position:absolute;top:4px;right:4px;width:22px;height:22px;padding:0;border:1px solid #d7c6e5;border-radius:50%;background:#fffaf5cc;color:#715786;font:14px/1 inherit;cursor:pointer;z-index:1}
.desk-pet-toggle:hover{background:#efe5f8;border-color:#9d7cc1}
.desk-pet-toggle:focus-visible{outline:3px solid #9466bc;outline-offset:1px}
/* Minimized: the monster beside one title and one line, sized for a window about a quarter of the full one. */
body.desk-pet[data-compact]{font-size:12px}
body.desk-pet[data-compact] .desk-pet-stage{padding:6px 28px 6px 8px;gap:6px}
body.desk-pet[data-compact] .desk-pet-figure{width:72px;height:72px}
body.desk-pet[data-compact] .desk-pet-art,body.desk-pet[data-compact] .desk-pet-lane{width:72px;height:72px}
body.desk-pet[data-compact] .desk-pet-lane{height:66px;border-radius:10px}
body.desk-pet[data-compact] .desk-pet-lane .desk-pet-art{bottom:2px}
body.desk-pet[data-compact] .desk-pet-path{bottom:5px}
body.desk-pet[data-compact] .desk-pet-text{gap:1px}
body.desk-pet[data-compact] .desk-pet-title{font-size:13px;line-height:1.15;white-space:normal;overflow:visible}
body.desk-pet[data-compact] .desk-pet-line{font-size:11px;line-height:1.25}
.desk-pet-button{flex:1;min-height:36px;padding:6px 10px;border:1px solid #cab1df;border-radius:12px;background:#fffaf5bc;color:#4a3a6a;font:inherit;cursor:pointer}
.desk-pet-button:first-child{background:linear-gradient(135deg,#dfcdf1,#cfb5e6)}
.desk-pet-button:hover{background:#cfb6e3}
.desk-pet-button:focus-visible{outline:3px solid #9466bc;outline-offset:2px}
@keyframes desk-trot{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-5px) rotate(3deg)}}
@keyframes desk-squish{0%,100%{transform:scale(1.04,.94)}50%{transform:scale(.96,1.06) translateY(-3px)}}
@keyframes desk-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@keyframes desk-path{to{background-position:-20px 0}}
@media(prefers-reduced-motion:reduce){.desk-pet-lane .desk-pet-art,.desk-pet-path{animation:none!important}.desk-pet-track i{transition:none}}
[data-still] :is(.desk-pet-lane .desk-pet-art,.desk-pet-path,.monster-idle,.monster-fidget,.idle-fx *,.slime-squish,.diplope-rig *){animation:none!important}
[data-still] .desk-pet-track i{transition:none}

/* In the app: the offer on the Monsters screen, the small button beside a monster headed your way, and the Home hint. */
.desk-pet-offer{margin:10px 0 0}
.desk-pet-icon{flex:none;width:32px;height:32px;padding:0;border:1px solid #d7c6e5;border-radius:50%;background:#fffaf5;color:#715786;font-size:15px;line-height:1}
.desk-pet-icon:hover{background:#efe5f8;border-color:#9d7cc1}
.desk-pet-hint{margin:6px 0 0;text-align:center}
.desk-pet-hint .quiet{font-size:13px}
