:root{color-scheme:light;--ink:#2a2328;--muted:#6e626a;--rose:#aa5872}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font:13px -apple-system,BlinkMacSystemFont,'Hiragino Sans',sans-serif}button{min-height:44px;border:0;border-radius:8px;background:#f3f4f6;color:inherit;font:inherit;padding:8px;touch-action:manipulation}button:disabled{opacity:.65}button:active{filter:brightness(.94)}button:focus-visible,a:focus-visible{outline:2px solid var(--rose);outline-offset:2px}[hidden]{display:none!important}p,h2{margin:0}main{max-width:450px;margin:auto;padding:4px 12px calc(8px + env(safe-area-inset-bottom))}.stats{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-variant-numeric:tabular-nums}.partner{display:flex;align-items:center;gap:12px;margin:4px 0}.partner img{width:64px;height:70px;object-fit:cover;border-radius:12px;background:#f3f4f6}.partner b{font-size:11px;color:var(--muted)}.partner p{line-height:1.5;margin-top:4px}.instruction{font-size:11px;margin:6px 0;color:var(--muted)}.roles{display:flex;align-items:center;gap:8px}.roles>span{font-size:11px;white-space:nowrap}.roles>div{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;flex:1}.roles button{display:flex;align-items:center;justify-content:center;gap:4px;padding:2px 4px;font-size:11px}.roles svg{width:34px;height:32px}[aria-pressed=true]{outline:2px solid var(--rose);outline-offset:-2px;background:#eef0f3;font-weight:700}.hint{font-size:11px;color:var(--rose);margin:6px 0}#pets{display:grid;gap:6px;background:linear-gradient(#f5eee3,#ede0cd);padding:7px;border-radius:12px}.pet{position:relative;display:grid;grid-template-columns:48% 1fr;gap:4px;min-height:121px;background:linear-gradient(170deg,#fffaf3,#f9eddc);border-radius:9px;overflow:hidden}.pet:after{content:'';position:absolute;left:0;right:0;bottom:0;height:12px;background:repeating-linear-gradient(90deg,transparent 0 63px,#dacbb8 64px 65px);border-top:1px solid #e4d6c3;pointer-events:none}.pet-touch{position:relative;background:transparent;padding:0;min-width:0;align-self:stretch;z-index:1}.pet-touch:disabled{opacity:1}.pet-art{display:block;width:100%;height:117px}.pet-art svg{width:100%;height:100%;overflow:visible}.pet-info{padding:9px 8px 14px 0;position:relative;z-index:1}.pet header{display:flex;align-items:baseline;justify-content:space-between;gap:3px;margin-bottom:6px}.pet header b{font-size:12px}.request{font-size:10px;color:var(--rose);white-space:nowrap}.needs{display:grid;gap:1px}.need{display:flex;align-items:center;gap:6px}.need>span{width:25px;height:20px}.need svg{width:100%;height:100%}.meter{position:relative;flex:1;height:7px;display:flex;align-items:center}.need progress{appearance:none;width:100%;height:5px;accent-color:#8ba58b;border:0;border-radius:9px;overflow:hidden}.need progress::-webkit-progress-bar{background:#e4ddd5}.need progress::-webkit-progress-value{background:#8ba58b;transition:width .35s}.need[data-low=true] progress::-webkit-progress-value{background:#bc7a87}.need progress::-moz-progress-bar{background:#8ba58b}.meter i{position:absolute;left:60%;height:9px;width:2px;background:#68574c;top:-1px}.partner-target{display:block;min-height:13px;font-size:9px;color:#766175;margin-top:3px}.care-prop{display:none;position:absolute;width:66px;height:56px;bottom:1px;left:28%;z-index:3}.care-prop svg{width:100%;height:100%}.reaction{display:none;position:absolute;left:5px;right:0;top:2px;font-size:10px;color:#88506a;font-weight:700}.reacting .reaction,.reacting .care-prop{display:block}.sleep-eyes{display:none}.tail{transform-origin:112px 94px}.pet[data-need="2"] .tail{animation:wag 1s ease-in-out infinite}.pet[data-need="1"] .eyes,.reacting[data-action="1"] .eyes{display:none}.pet[data-need="1"] .sleep-eyes,.reacting[data-action="1"] .sleep-eyes{display:block}.reacting .body{transform-origin:80px 100px;animation:bob .3s ease-in-out infinite alternate}.reacting[data-action="1"] .body{animation:breathe 1s ease-in-out infinite alternate}.reacting[data-action="2"] .care-prop{animation:roll .45s ease-in-out infinite alternate}.reacting[data-action="1"] .care-prop{width:100px;height:66px;bottom:3px;left:20%}.reacting[data-action="2"] .paws{transform-origin:80px 100px;animation:reach .28s ease-in-out infinite alternate}.reacting[data-action="2"] .tail{animation:wag .2s ease-in-out infinite}.drop-target{box-shadow:inset 0 0 0 2px var(--rose);background:#fff1f0}#tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:7px}#tools button{touch-action:none;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:1px 4px 5px;user-select:none;-webkit-user-select:none}#tools svg{width:68px;height:47px}#tools span{font-size:11px}#dragTool{position:fixed;left:0;top:0;width:64px;height:64px;pointer-events:none;z-index:20}#dragTool svg{width:100%;height:100%}#feedback{min-height:33px;line-height:1.5;font-size:11px;padding-top:5px;color:var(--muted)}#warning,#saveStatus{font-size:12px;color:#a33b42}dialog{width:calc(100% - 32px);max-width:410px;max-height:calc(100svh - 32px);overflow-y:auto;border:0;border-radius:12px;padding:20px;color:var(--ink)}dialog::backdrop{background:#2a23286b}dialog h2{font-size:19px;margin-bottom:12px}dialog p{line-height:1.7;margin-bottom:12px}dialog button{width:100%;font-weight:700}#best{font-size:12px;color:var(--muted)}.paused *{animation-play-state:paused!important}@keyframes wag{50%{transform:rotate(14deg)}}@keyframes bob{to{transform:translateY(3px) rotate(2deg)}}@keyframes breathe{to{transform:scale(1.02,.96)}}@keyframes reach{to{transform:translate(8px,-3px) rotate(-5deg)}}@keyframes roll{to{transform:translateX(26px) rotate(35deg)}}@media(max-height:740px){.partner img{width:50px;height:54px}.partner p{font-size:11px}.pet{min-height:104px}.pet-art{height:104px}.pet-info{padding-top:5px}.pet header{margin-bottom:3px}.roles button{min-height:44px}.instruction{margin:3px 0}.hint{margin:4px 0}#tools svg{height:38px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
