:root{--bg:#f2efe8;--ink:#48453f;--muted:#8c867d;--accent:#ba704b;--accent-soft:#ead9c9;--line:#ded8ce;--card:#faf8f2}
body{background:var(--bg)}.app{background:var(--bg)}button{font-family:inherit}.compact-header{padding:22px 22px 12px;text-align:left;grid-template-columns:30px 1fr 30px}.compact-header .app-title{font-family:serif;font-size:27px;letter-spacing:7px;font-weight:500}.compact-header .app-sub{display:none}.screen-arrow{font-size:22px;color:var(--muted)}.screen-kicker{color:var(--muted);font-size:11px;letter-spacing:1px}.home-topline h2{display:none}.home-topline{align-items:center}.filter-toggle{background:transparent;border-color:var(--line);font-size:11px}.app-screen{padding-top:16px}.home-screen{position:relative}.home-screen .category-bar{margin-bottom:5px}.cat-stage{position:relative;flex:1;min-height:220px;margin:8px 0 0}.pet-cat{position:absolute;bottom:10px;left:-8px;width:71%;max-width:290px;border:0;background:none;padding:0;z-index:2;cursor:pointer}.pet-cat svg{display:block;width:100%;overflow:visible}.pet-body{transform-origin:140px 184px;animation:petBreathe 6s ease-in-out infinite}.pet-tail{transform-origin:225px 155px;animation:tailRest 8s ease-in-out infinite}.pet-cat[data-state="petted"] .pet-body,.pet-cat[data-state="stretch"] .pet-body{animation:petNuzzle 1.2s ease both}.pet-cat[data-state="catching"] .pet-paw{transform:translate(7px,-5px)}.pet-cat[data-state="watching"] .pet-eyes{transform:translate(2px,-1px)}.pet-paw,.pet-eyes{transition:transform .4s}.pet-speech{position:absolute;left:8px;top:17%;max-width:72%;font-size:14px;line-height:1.7;letter-spacing:1px;font-family:serif;color:#80786d;pointer-events:none}.pet-hint{position:absolute;left:10px;bottom:0;font-size:10px;letter-spacing:1px;color:var(--muted)}#yarnCanvas{position:absolute;inset:0;width:100%;height:100%;z-index:3;touch-action:none}.cat-stage .latest-hero{display:none!important}.latest-comment{font-family:serif;font-size:13px;font-weight:400;line-height:1.8;color:#7d7469;margin:12px auto;max-width:300px;min-height:23px}.latest-score{display:none}.home-screen .empty{flex:0;padding:0;font-size:12px}.home-screen .empty p{margin:5px 0}.round-rail-wrap{margin-top:12px;min-height:103px}.rail-label span{font-weight:400;font-size:11px;letter-spacing:2px}.rail-label small{font-size:9px}.home-screen .cell{width:59px;height:59px;flex-basis:59px;border:1px solid #cfc7bb;box-shadow:none;animation:none;will-change:auto}.home-screen .gallery{min-height:68px}.cell img{border-radius:50%}.cell{overflow:hidden}.btn-add-float{width:48px;height:48px;font-size:26px;background:transparent;border:1px solid var(--accent);color:var(--accent);box-shadow:none}.btn-add-float:after{content:'带个圆回来';position:absolute;top:-21px;left:-19px;width:85px;font-size:10px;line-height:1;color:#8c7b6b}.page-dots{bottom:calc(92px + env(safe-area-inset-bottom,0px))}.app-screen{padding-bottom:116px}.calendar-heading strong{font-size:27px;font-weight:400}.app-screen h2{font-family:serif;font-size:24px;font-weight:400;letter-spacing:2px}.achievement-card,.creation-card{box-shadow:none;background:#f9f6ef;border:1px solid var(--line);border-radius:10px}.creation-card b{font-family:serif;font-size:18px;font-weight:400}.creation-card em{font-weight:400}.creation-art{background:#e8e1d5!important}.creation-art i:nth-child(1){background:#b87350!important}.creation-art i:nth-child(2){background:#b5b9a2!important}.creation-art i:nth-child(3){background:#9aa5a6!important}.create-lead{font-size:12px;line-height:1.8}.gift-progress{font-family:serif;padding:28px 8px;font-size:15px;line-height:1.9;color:#847767}.sheet h3{font-family:serif;font-weight:400}.sheet .preview-img{border:1px solid #b9ac99;box-shadow:none;padding:0}.detail-yarn{box-shadow:none;transform:none;border-color:var(--line)}.detail-img{box-shadow:none}.detail-score{font-weight:400;font-size:28px}.detail-verdict{font-weight:400;font-size:12px}.detail-delete{color:#8b6454;background:#ece4dc}.celebration{display:none!important}.calendar-day.collected{box-shadow:none;background:#e2dacd}.cat-stage:after{content:'';position:absolute;bottom:5px;left:8%;right:0;border-bottom:1px solid #ded8cc}.share-preview{max-height:54vh;width:auto;max-width:100%;box-shadow:none}
@keyframes petBreathe{0%,100%{transform:scaleY(1)}50%{transform:scaleY(1.012)}}@keyframes tailRest{0%,100%{transform:rotate(0)}50%{transform:rotate(-3deg)}}@keyframes petNuzzle{0%,100%{transform:rotate(0)}40%{transform:rotate(-3deg) scaleY(.96)}70%{transform:rotate(2deg)}}
@media(max-height:700px){.compact-header{padding-top:12px}.cat-stage{min-height:180px}.round-rail-wrap{min-height:87px}.latest-comment{font-size:11px;margin:5px auto}.pet-speech{top:3%;font-size:12px}.pet-cat{width:63%}.app-screen{padding-bottom:105px}.home-screen .cell{width:49px;height:49px;flex-basis:49px}.home-screen .gallery{min-height:55px}}
@media(prefers-reduced-motion:reduce){.pet-body,.pet-tail,.pet-cat[data-state] .pet-body{animation:none!important}}

.pet-cat{bottom:65px;width:76%;max-width:305px}.pet-speech{top:22%}.home-screen .latest-comment{color:#9a9084;font-size:11px}.detail-score-row>div:last-child{min-width:0}.detail-yarn{flex-basis:58px;width:58px;height:58px}
@media(max-height:700px){.pet-cat{bottom:42px;width:63%}.pet-speech{top:1%}}

/* v22 articulated pet: each limb is driven by the ball, not canned image movement. */
.pet-cat.interactive-rig{max-width:none!important;min-height:0;transform:none!important;padding:0;transition:none;z-index:2}.interactive-rig svg{overflow:visible}.interactive-rig path,.interactive-rig g,.interactive-rig ellipse{transition:none;animation:none}.pet-speech{top:18%;font-size:14px}.pet-hint{bottom:-9px}.cat-stage:after{bottom:0}
.pet-cat.sprite-pet{max-width:none!important;min-height:0;padding:0;transform:none!important;transition:none;z-index:4;pointer-events:none;background:none;border:0;box-shadow:none}
.cat-frames{display:block;width:100%;height:100%;pointer-events:none}.sprite-pet:focus-visible{outline:1px solid var(--accent);outline-offset:5px;border-radius:12px}
.gift-cat{display:block;width:240px;max-width:80%;margin:0 auto 12px;padding:0;background:none;border:0;cursor:pointer}.gift-cat canvas{display:block;width:100%;height:auto}.gift-cat:focus-visible{outline:1px solid var(--accent);outline-offset:4px;border-radius:10px}
.create-screen .gift-progress{padding:15px 8px}.pet-speech{top:12%}.pet-hint{top:27%;bottom:auto}
@media(max-height:700px){.gift-cat{width:185px;margin-bottom:6px}.create-screen .gift-progress{padding:9px 8px}.pet-speech{top:1%}.pet-hint{top:23%}}

/* v25: one playmate, clear photographs, quiet home. */
.pet-hint,.home-screen .latest-comment,.rail-label>span,.create-note,.create-screen>.screen-kicker,.create-screen .gift-progress,.calendar-card{display:none!important}
.home-topline .screen-kicker{font-family:serif;font-size:13px}.rail-label{justify-content:flex-end}.round-rail-wrap{min-height:96px}.home-screen .cell{padding:3px;border:1px solid transparent;background:transparent}.home-screen .cell.selected{border-color:var(--accent)}.cell img{width:100%;height:100%;object-fit:cover}.btn-add-float:after{display:none}.rail-empty{font-size:12px;color:var(--muted)}
.sheet{max-height:90dvh;overflow-y:auto}.studio-mask{position:fixed;inset:0;background:rgba(35,30,25,.32);z-index:120}.studio-panel{position:fixed;z-index:121;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,480px);max-height:94dvh;overflow:auto;background:var(--bg);border-radius:22px 22px 0 0;padding:20px 22px calc(22px + env(safe-area-inset-bottom,0px));box-sizing:border-box}.studio-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.studio-head h3{font-family:serif;font-size:22px;font-weight:400;margin:0}.studio-head button{border:0;background:none;font-size:26px;color:var(--ink);padding:8px}.studio-panel canvas,.studio-panel video{display:block;width:auto;max-width:100%;height:34dvh;margin:0 auto 12px;border-radius:4px}.studio-caption{width:100%;box-sizing:border-box;border:0;border-bottom:1px solid var(--line);background:transparent;padding:10px 0;color:var(--ink);font-size:13px}.studio-picker{display:flex;gap:10px;overflow-x:auto;padding:15px 3px}.studio-choice{position:relative;flex:0 0 54px;width:54px;height:54px;padding:3px;border:1px solid transparent;border-radius:50%;background:none}.studio-choice img{width:100%;height:100%;object-fit:cover;border-radius:50%}.studio-choice.selected{border-color:var(--accent)}.studio-choice b{position:absolute;right:-1px;bottom:0;background:var(--accent);color:white;border-radius:50%;font-size:10px;width:17px;height:17px;line-height:17px}.studio-status{font-size:12px;color:var(--muted);min-height:20px;line-height:1.6}.studio-actions{display:flex;gap:10px;margin-top:12px}.studio-actions button{flex:1}.receipt-photo{display:block;width:145px;height:145px;border-radius:50%;object-fit:cover;margin:24px auto}.receipt-comment{text-align:center;font-family:serif;font-size:20px;margin:14px 0}.receipt-metrics{display:flex;justify-content:center;gap:26px;font-size:12px;color:var(--muted)}.receipt-metrics strong{font-size:24px;font-weight:400;color:var(--ink);display:block;text-align:center;margin-bottom:5px}.receipt-reward{text-align:center;color:var(--accent);font-size:13px;margin:20px 0}.detail-index{font-size:12px;color:var(--muted);margin-top:5px}.studio-panel [hidden]{display:none!important}.calendar-streak{font-size:12px;color:var(--muted);margin-top:14px}
.studio-actions .btn{min-height:44px;line-height:1.4;padding:12px 8px}.studio-panel canvas,.studio-panel video{height:auto;width:100%;max-height:45dvh;object-fit:contain}.studio-panel .studio-head{position:relative}

.studio-timing{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);margin:12px 0}.studio-timing input{flex:1;min-width:60px;accent-color:var(--accent)}.studio-timing output{min-width:36px;color:var(--ink)}

.studio-panel canvas{width:auto;height:40dvh;max-width:100%;max-height:none;touch-action:none}.studio-alignment{margin:10px 0}.studio-alignment>button{font-size:12px;padding:8px 0;background:none;color:var(--accent)}.studio-alignment select{width:100%;padding:8px;border:1px solid var(--line);background:var(--bg);color:var(--ink)}.studio-alignment label{display:flex;align-items:center;gap:10px;font-size:12px;padding-top:10px}.studio-alignment input{flex:1;accent-color:var(--accent)}
