main{max-width:1040px}.pet-stack{display:flex;flex-direction:column;gap:26px}.pet-panel{border:1px solid var(--line);border-radius:27px;overflow:hidden;background:var(--card)}.pet-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:22px 26px 16px}.pet-heading h2{font-size:22px;margin-top:4px}.pet-heading h2 span{font-size:15px;font-weight:400;color:var(--muted)}.chapter{font-size:12px;letter-spacing:2px;color:var(--muted)}.hamster-panel{border-color:#b7cdbb;box-shadow:0 8px 30px #42654e08}.hamster-panel .room{margin:0 20px;padding:16px 15px 0;border-radius:22px}#hamsterHome{display:block;width:100%;overflow:visible}#hamster{cursor:pointer;outline:none;touch-action:manipulation}#hamster:focus-visible #hamBody{filter:drop-shadow(0 0 5px #e5b477)}.hamster-care{padding:14px 26px 24px}.ham-description{display:flex;align-items:center;justify-content:space-between;gap:16px}.ham-description .status{margin:0;font-size:18px}.ham-buttons{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0 15px}.ham-buttons button{flex:1;padding:10px 14px}#hamPet{background:#ad7e84}#hamRun{background:#938969}.ham-records{display:flex;flex-wrap:wrap;gap:6px 25px;font-size:13px;color:var(--muted)}.care-note{margin-top:9px}.pet-content{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;padding:0 24px 24px;gap:20px}.pet-content .room{padding:10px 10px 0;border-radius:20px}.pet-content .card{border:0;background:none;padding:18px 10px}.plant-scene .plant-wrap{max-width:215px}.fish-scene .aquarium{margin:auto}.pet-content .controls{flex-wrap:wrap}.pet-content .card-title{flex-wrap:wrap}.pet-content .hint{font-size:14px}#plantSparkles{position:absolute;top:25%;width:100%;text-align:center;color:#b69b52;font-size:28px;opacity:0;pointer-events:none}.sparkle-now{animation:plant-stars 2.7s ease-out!important}.water-joy .plant-sway{animation:plant-joy 1.2s ease-in-out 2}.hamster-walking #hamBody{animation:ham-walk .36s ease-in-out infinite}.hamster-eating #frontPaws{animation:ham-nibble .3s ease-in-out infinite}.hamster-eating #hamMouth{animation:chew .25s ease-in-out infinite;transform-origin:0 8px}.hamster-running #hamBody{animation:ham-walk .22s ease-in-out infinite}.hamster-drinking #hamBody{animation:ham-drink .65s ease-in-out infinite}.hamster-idle #hamBody,.hamster-resting #hamBody{animation:ham-breathe 3.8s ease-in-out infinite;transform-origin:0 32px}.hamster-petted #hamPose{animation:ham-pet .7s ease-in-out infinite}.hamster-petted #hamHearts{animation:hearts 1.4s ease-in-out infinite}.bottle-refill{animation:bottle-glow .8s ease-in-out 3}.ham-water-drop{animation:bottle-drop .9s ease-in infinite;fill:#81c4d5}.ham-snack{fill:#d8ad74;stroke:#ac8356;stroke-width:1.4}.night .hamster-panel{border-color:#56726c}.night #hamsterHome>rect{stroke:#91b2b5}.night #hamsterHome{filter:brightness(.86)}.night .chapter{color:#b2c8c4}.night #plantSparkles{color:#e4cf89}.reset{white-space:nowrap;flex-shrink:0}.toast{pointer-events:none}
@keyframes ham-walk{50%{transform:translateY(-3px) rotate(2deg)}}@keyframes ham-nibble{50%{transform:translateY(-5px)}}@keyframes chew{50%{transform:scaleY(.6)}}@keyframes ham-drink{50%{transform:translate(2px,-4px) rotate(-3deg)}}@keyframes ham-breathe{50%{transform:scale(1.025,1.015)}}@keyframes ham-pet{25%{transform:translateY(-6px) rotate(-5deg)}75%{transform:translateY(-3px) rotate(5deg)}}@keyframes hearts{50%{transform:translateY(-9px);opacity:.65}}@keyframes bottle-glow{50%{filter:drop-shadow(0 0 8px #a5e8ed)}}@keyframes bottle-drop{0%{transform:translateY(-15px);opacity:0}25%{opacity:1}100%{transform:translateY(45px);opacity:0}}@keyframes plant-joy{30%{transform:translateY(-4px) rotate(-5deg)}70%{transform:translateY(-2px) rotate(4deg)}}@keyframes plant-stars{15%,60%{opacity:1}100%{opacity:0;transform:translateY(-30px)}}
@media(max-width:650px){main{padding:21px 12px}.pet-stack{gap:18px}.pet-heading{padding:18px 17px 12px}.pet-heading h2{font-size:20px}.pet-heading h2 span{display:block;font-size:13px}.hamster-panel .pet-heading>.tag{display:none}.hamster-panel .room{margin:0 8px;padding:12px 4px 0}.hamster-care{padding:16px}.ham-description{align-items:flex-start}.ham-description .status{font-size:16px}.ham-description>.tag{display:none}.ham-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:15px}.ham-buttons button{font-size:15px;min-height:46px}.ham-records{flex-direction:column;font-size:13px}.pet-content{grid-template-columns:1fr;padding:0 15px 17px;gap:0}.pet-content .card{padding:15px 4px 0}.plant-scene .plant-wrap{max-width:180px}.chapter{letter-spacing:1px}.hamster-room .room-top{padding:0 8px}.intro{font-size:13px}.pet-heading h2{line-height:1.5}.hamster-panel #hamsterHome{min-height:180px}.plant-panel .pet-content{grid-template-columns:.75fr 1fr;gap:8px}.plant-panel .pet-content .card{padding:0}.plant-panel .card-title .tag{font-size:12px}.plant-panel .card-title h2{font-size:17px}.plant-panel .controls{gap:7px}.plant-panel .status{font-size:14px}.plant-panel .last{font-size:12px}.plant-panel .hint{font-size:12px}.plant-panel .room{padding:0}.plant-panel button{width:100%}.plant-panel .tag{padding:2px 6px}}
@media(prefers-reduced-motion:reduce){.hamster-walking #hamBody,.hamster-eating #frontPaws,.hamster-eating #hamMouth,.hamster-running #hamBody,.hamster-drinking #hamBody,.hamster-idle #hamBody,.hamster-resting #hamBody,.hamster-petted #hamPose{animation-duration:2s}}
