.cats-page{--cat-ink:#493d34;--cat-green:#526a46;--cat-border:#e1e3d5}
.cat-art{display:block;width:100%;height:100%}.garden-cat{transform-origin:50% 92.5%}.garden-cat.is-resting::after{display:none}
.cat-account-summary{display:flex;gap:12px 22px;align-items:baseline;flex-wrap:wrap;padding:16px 0 0;font-size:13px;color:#7a7c68}.cat-account-summary strong{font-size:20px;color:#536b47}.cat-account-summary a{color:#697f52;text-decoration:underline}.cat-account-summary button{font:inherit;cursor:pointer}.cat-food-choice{display:flex;align-items:center;gap:7px;font-size:12px;color:#7c7e6e}.cat-food-choice select{font:inherit;padding:9px;border:1px solid #cdd2bd;border-radius:4px;background:#fffdf6;color:#536448}.cat-buttons button:disabled,.cat-care button:disabled{cursor:default;opacity:.48}.cat-card.is-adopted b::after{content:' ♥';color:#b38a76}.cat-care{border-top:1px solid #e4e2d4;margin-top:17px;padding-top:17px}.cat-care-intro{font-size:12px;color:#8b8877;line-height:1.9;margin:10px 0 0}.cat-care-summary{display:flex;justify-content:space-between;gap:15px;align-items:center}.cat-care-summary strong{font-size:14px;color:#536448}.cat-care-summary p{font-size:12px;color:#8b8877;margin:7px 0}.cat-care button{font:inherit;font-size:12px;padding:9px 12px;border:1px solid #cdd2bd;border-radius:4px;background:#fffef7;color:#536448;cursor:pointer}.cat-food-shop{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}.cat-food-shop>div{padding:12px;background:#fffdf6;border:1px solid #e3e0d1}.cat-food-shop strong,.cat-food-shop span{display:block}.cat-food-shop strong{font-size:14px;color:#536448}.cat-food-shop span{font-size:11px;color:#8b8877;margin:7px 0 10px}.cat-adoption-form{display:flex;align-items:center;flex-wrap:wrap;gap:9px;font-size:12px;color:#7a7c68}.cat-adoption-form input{font:inherit;border:1px solid #d3d7c7;border-radius:4px;padding:9px;width:150px;background:#fffef8;color:#536448}.cat-care-message{font-size:12px;line-height:1.8;color:#927a51;min-height:22px;margin:10px 0 0}@media(max-width:700px){.cat-food-shop{grid-template-columns:1fr;gap:7px}.cat-food-shop>div{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 8px}.cat-food-shop span{grid-column:1;margin:0}.cat-food-shop button{grid-column:2;grid-row:1/3}.cat-care-summary{align-items:start;flex-wrap:wrap}.cat-adoption-form label{flex-basis:100%}.cat-account-summary{gap:6px 12px;font-size:12px}}
.cats-page .cat-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:24px 0 22px}.cat-heading h1{font-size:32px;line-height:1.45;margin:0 0 9px;color:#2c4436}.cat-heading p{margin:0;color:#73796a;line-height:1.9;font-size:14px}.cat-heading a{font-size:13px;color:#536b47;white-space:nowrap}
.cat-scene-scroll{overflow-x:auto;overscroll-behavior-x:contain;border:1px solid #d9d9c7;border-radius:7px;background:#e5c994;scrollbar-color:#a69b76 #f2ead5;scrollbar-width:thin}.cat-garden{position:relative;width:100%;min-width:900px;aspect-ratio:12/7;isolation:isolate;overflow:hidden;background:#e0c18e;color:var(--cat-ink)}.cat-garden .courtyard-art{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;image-rendering:pixelated;pointer-events:none}
.garden-place{position:absolute;border:0;background:transparent;padding:0;z-index:2;cursor:pointer;border-radius:12px;font:inherit;color:#493c2f}.garden-place:focus-visible{outline:3px dashed #fff1c2;outline-offset:3px;background:#fff5cf25}.garden-place span{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);padding:7px 12px;background:#fff9e8ed;border:1px solid #c9b993;border-radius:5px;white-space:nowrap;font-size:12px;box-shadow:0 3px 9px #4c3b271a;opacity:0;pointer-events:none}.garden-place:hover span,.garden-place:focus-visible span{opacity:1}
.place-nests{left:11%;top:26%;width:20%;height:17%}.place-bench{left:41%;top:24%;width:19%;height:15%}.place-tree{left:70%;top:17%;width:17%;height:29%}.place-food{left:23%;top:68%;width:17%;height:12%}.place-water{left:40%;top:70%;width:6%;height:9%}.place-basket{left:4%;top:64%;width:15%;height:16%}.place-litter{left:79%;top:65%;width:18%;height:17%}.place-litter.is-clean::after{content:'✦　✧　✦';position:absolute;inset:0;color:#fffce0;font-size:26px;text-shadow:0 1px 3px #85713f;animation:cat-sparkle 1.8s both;pointer-events:none}
.garden-cat{position:absolute;left:0;top:0;width:6.666667%;aspect-ratio:1;border:0;background:none;padding:0;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;border-radius:50%;will-change:left,top}.garden-cat::after{content:'';position:absolute;width:48%;height:7%;left:27%;bottom:4%;border-radius:50%;background:#594d362b;z-index:-1}.garden-cat:focus-visible{outline:2px dashed #fff5d6;outline-offset:2px}.garden-cat:hover .cat-name,.garden-cat:focus-visible .cat-name{opacity:1}.garden-cat.is-selected::after{box-shadow:0 0 0 1px #f9e6ac6b}.cat-facing{display:block;width:100%;height:100%;transform-origin:center}.cat-sprite{display:block;width:100%;height:100%;image-rendering:pixelated}.cat-name{position:absolute;bottom:-11px;left:50%;transform:translateX(-50%);font-size:11px;white-space:nowrap;color:#594d35;background:#fff7dfde;padding:1px 6px;border-radius:3px;opacity:0}.cat-bubble{position:absolute;left:50%;bottom:90%;transform:translateX(-50%);white-space:nowrap;background:#fffbee;border:1px solid #c7b68c;border-radius:8px;padding:4px 9px;font-size:12px;line-height:1.5;color:#7c6450;box-shadow:0 2px 3px #6a513b15;pointer-events:none}
.cat-wand{position:absolute;z-index:1000;width:42px;height:65px;pointer-events:none;transform:translate(-10px,-40px);image-rendering:pixelated}.cat-wand svg{width:100%;height:100%}.cat-ball{position:absolute;left:66.7%;top:59.5%;width:2.1%;aspect-ratio:1;border-radius:50%;background:repeating-linear-gradient(45deg,#ca702f 0 2px,#e3a44e 2px 4px);border:2px solid #9c5c2f;box-shadow:0 4px 0 #594a3820;z-index:400;pointer-events:none}.cat-ball.is-rolling{animation:cat-ball-roll 6s .7s both}.cat-scroll-hint{display:none;color:#8a836d;font-size:12px;margin:9px 0}
.cats-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:18px 0 14px}.cat-buttons{display:flex;flex-wrap:wrap;gap:9px}.cat-buttons button,.cat-action-buttons button{font:inherit;font-size:13px;padding:10px 15px;border:1px solid #cdd2bd;border-radius:4px;background:#fffdf6;color:#536448;cursor:pointer}.cat-buttons button:first-child{background:#536b47;border-color:#536b47;color:#fff}.cat-buttons button:hover,.cat-action-buttons button:hover{background:#eff2e5;color:#334b2a}.cat-buttons button:first-child:hover{background:#435a38;color:#fff}.cat-buttons button[aria-pressed=true]{border-color:#9f824d;background:#f3e8c9;color:#66512b}.cat-buttons button:focus-visible,.cat-action-buttons button:focus-visible,.cat-card:focus-visible{outline:3px solid #bd9b5a;outline-offset:3px}.cat-status{flex-basis:100%;font-size:13px;line-height:1.8;color:#7a7b68;min-height:24px;margin:1px 0 0}
.cat-companions{border-top:1px solid var(--cat-border);padding-top:24px}.cat-roster-heading{font-size:21px;margin:0 0 5px;color:#374c3d}.cat-roster-intro{font-size:13px;color:#858374;margin:0 0 16px}.cat-roster{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.cat-card{font:inherit;display:flex;align-items:center;flex-direction:column;border:1px solid #e1e5d8;background:#fffdf8;padding:5px 6px 13px;border-radius:5px;cursor:pointer;color:#493d34}.cat-card:hover,.cat-card[aria-pressed=true]{background:#f1f4e7;border-color:#a8b993}.cat-portrait{width:72px;height:72px}.cat-card b{font-size:14px;margin:0 0 3px}.cat-card small{font-size:11px;color:#858476}.cat-detail{margin-top:18px;background:#faf9f3;border-left:3px solid #aebc98;padding:16px 20px}.cat-detail-title{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}.cat-detail-title strong{font-size:17px;color:#4f6144}.cat-description{font-size:13px;color:#7a7c6d;line-height:1.8;margin:0}.cat-action-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}.cat-action-buttons button{font-size:12px;padding:8px 12px;background:#fffef9;border-color:#dedfd1}.cat-preview-note{font-size:12px;color:#969587;margin:18px 0 28px;line-height:1.9}.cat-preview-note a{color:#788368}.cat-paused .cat-ball{animation-play-state:paused}
@keyframes cat-ball-roll{0%{left:66.7%;top:59.5%;transform:rotate(0)}40%{left:57%;top:66%;transform:rotate(-240deg)}100%{left:77%;top:75%;transform:rotate(420deg)}}@keyframes cat-sparkle{0%{opacity:0;transform:translateY(10px)}25%{opacity:1}100%{opacity:0;transform:translateY(-22px)}}
@media(max-width:700px){.cats-page .cat-heading{align-items:start;gap:10px;margin-top:20px}.cat-heading h1{font-size:25px;max-width:250px}.cat-heading a{font-size:11px;margin-top:6px}.cat-heading p{font-size:13px}.cat-garden{min-width:900px}.cat-scroll-hint{display:block}.cat-roster{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.cat-buttons{gap:7px}.cat-buttons button{font-size:12px;padding:10px 11px}.cat-detail{padding:14px 12px}.cat-detail-title{gap:5px}.cat-detail-title strong{flex-basis:100%}.cat-action-buttons{gap:6px}.cat-action-buttons button{padding:9px 11px}.cat-status{font-size:12px}.cat-companions{padding-top:20px}}
@media(prefers-reduced-motion:reduce){.cat-ball.is-rolling,.place-litter.is-clean::after{animation:none}.cat-name{transition:none}}

.cat-buttons #feedSelected{background:#536b47;border-color:#536b47;color:white}.cat-buttons #feedSelected:hover{background:#435a38}
