* {box-sizing:border-box}
html {background:transparent;color-scheme:dark}
body {margin:0;font:15px "Malgun Gothic",system-ui,sans-serif;color:#412e59}
main {display:inline-flex;align-items:center;gap:14px;padding:12px 20px;border:1px solid #a48bbb;border-radius:2px;background:#edddf8}
p {margin:0;color:#68537f}
.pal {font-size:2.5rem}
output {font:2.2rem Consolas,monospace;font-variant-numeric:tabular-nums;letter-spacing:-.03em}
a {display:inline-flex;align-items:center;min-height:32px;width:fit-content;color:#46355e;background:#edddf8;padding:3px 12px;border:1px solid #a48bbb;border-radius:2px}
body:not(:hover):not(:focus-within) a {opacity:0}
a:focus-visible {outline:2px solid #694b91;outline-offset:-3px}
@media(pointer:coarse){body:not(:hover):not(:focus-within) a {opacity:1}a {min-height:44px}}
@media(prefers-reduced-motion:no-preference) {
  body.working .pal {animation:sway 3s ease-in-out infinite}
  @keyframes sway {50%{transform:translateY(-3px)}}
}

.pal{display:block;width:52px;height:39px;font-size:0;background:url("desk-pals.png") var(--pet-x,0%) var(--pet-y,0%) / 300% 200%;image-rendering:pixelated}body[data-pal=cat]{--pet-x:50%}body[data-pal=fox]{--pet-x:100%}body.working{--pet-y:100%}
