.chick-room-art { display: block; width: 100%; height: 100%; }
.pet-art-board { position: absolute; left: 50%; top: 50%; aspect-ratio: 780 / 660; transform: translate(-50%, -50%); }
.pet-stage {
  position: relative;
  overflow: hidden;
  border: 2px solid #e9dbc0;
  border-radius: 32px;
  background: #fff4da;
  isolation: isolate;
  min-width: 0;
}
.pet-name { position: absolute; top: 25px; left: 28px; z-index: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pet-name b { font-size: 19px; letter-spacing: 2px; }
.pet-name-dot { width: 8px; height: 8px; border-radius: 50%; background: #93a974; }
.pet-mood { color: #9b896f; font-size: 12px; margin-left: 4px; }
.pet-time { position: absolute; right: 26px; top: 25px; font-size: 12px; border: 1px solid #ddcea9; border-radius: 20px; padding: 5px 14px; color: #9a825c; }
.pet-speech { position: absolute; left: 10%; right: 10%; bottom: 25px; min-height: 48px; padding: 13px 18px; text-align: center; background: #fffdf3d9; border: 1px solid #e8d9b5; border-radius: 18px; font-size: 15px; color: #7b664a; line-height: 1.6; pointer-events: none; }
.pet-touchpoints { position: absolute; inset: 0; pointer-events: none; }
#pet-home .pet-touchpoint { position: absolute; display: block; padding: 0; border: 2px dashed #c6a35b90; border-radius: 38%; background: transparent; box-shadow: 0 0 0 5px #fff5cd30; color: #785e38; touch-action: none; pointer-events: auto; cursor: pointer; transition: border-color .2s; transform: none; }
#pet-home .pet-touchpoint[hidden] { display: none; }
#pet-home .pet-touchpoint:hover { border-color: #b88e48; background: #fff2c30a; }
#pet-home .pet-touchpoint:focus-visible { outline: 3px solid #839451; outline-offset: 5px; }
.pet-touchpoint span { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 600; letter-spacing: 1px; padding: 7px 12px; border: 1px solid #dbca9c; border-radius: 20px; background: #fff8df; box-shadow: 0 3px 8px #795e3220; }
#pet-home .pet-touchpoint[data-care="curtain"] { border-radius: 45% 45% 14px 14px; cursor: ew-resize; }
#pet-home .pet-touchpoint[data-care="blanket"] { cursor: ns-resize; }
.pet-night .pet-touchpoint span { background: #eee9d9; color: #5b6178; border-color: #b3b7c7; }
.pet-care-steps { display: flex; flex-wrap: wrap; gap: 7px 9px; padding: 0; margin: 2px 0 12px; list-style: none; }
.pet-care-steps li { display: flex; align-items: center; gap: 4px; color: var(--activity-muted); font-size: 10px; white-space: nowrap; }
.pet-care-steps i { display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid var(--activity-line); border-radius: 50%; font-size: 9px; font-style: normal; }
.pet-care-steps li[aria-current] { color: var(--activity-ink); font-weight: 700; }
.pet-care-steps li[aria-current] i { background: var(--activity-accent); border-color: transparent; color: #fff; }
.pet-care-steps li[data-complete="true"] i { color: var(--activity-accent); }
#pet-home .activity-action-card { padding: 17px 18px; margin-top: 16px; }
.room-wall { fill: #fff4da; transition: fill 1.2s; }
.room-floor { fill: #f0dfb9; transition: fill 1.2s; }
.window-sky { fill: #c1e2e3; transition: fill 1.2s; }
.window-night { opacity: 0; }
.window-night, .window-day { transition: opacity 1s; }
.lamp-shade { fill: #ffedbd; transition: fill 1.2s; }
.lamp-glow { transition: opacity 1.5s; }
.curtain { transition: transform .65s ease-in-out; }
.curtain-left { transform: translateX(calc(var(--curtain-open, 1) * -67px)); }
.curtain-right { transform: translateX(calc(var(--curtain-open, 1) * 67px)); }
.morning-light { opacity: calc(var(--curtain-open, 1) * .22); transition: opacity .65s; }
.pet-night .morning-light { opacity: 0; }
.pet-dragging .curtain, .pet-dragging .pet-blanket, .pet-dragging .morning-light { transition: none; }
.chick-character { transform-origin: 0px 45px; animation: chick-breathe 3s ease-in-out infinite; }
.chick-face { transition: transform .7s; }
.wing-left { transform-origin: -77px -25px; transition: transform .7s ease-in-out; }
.wing-right { transform-origin: 77px -25px; transition: transform .7s ease-in-out; }
.eyes-open { transform-origin: 0 -56px; animation: chick-blink 5s infinite; }
.eyes-closed, .yawn-mouth, .sleep-z, .morning-rays { opacity: 0; }
.pet-blanket { transform: translate(calc(85px - var(--blanket-cover, 0) * 85px), calc(45px - var(--blanket-cover, 0) * 45px)) scale(calc(.65 + var(--blanket-cover, 0) * .35), calc(.45 + var(--blanket-cover, 0) * .55)); transform-origin: 365px 485px; transition: transform .65s ease-in-out; }
.sleep-z { animation: chick-dream 3s ease-in-out infinite; }
.care-prop { opacity: 0; }
.prop-water { opacity: 1; }
#pet-home[data-task="meal"] .prop-water, #pet-home[data-task="brush"] .prop-water { opacity: 0; }
#pet-home[data-task="meal"] .prop-meal, #pet-home[data-task="brush"] .prop-brush { opacity: 1; }
[data-pose="dozing"] .chick-character, [data-pose="calm"] .chick-character, [data-pose="sleeping"] .chick-character { animation: chick-sleep 3.5s ease-in-out infinite; }
[data-pose="dozing"] .eyes-open, [data-pose="sleeping"] .eyes-open, [data-pose="yawn"] .eyes-open, [data-pose="stretch"] .eyes-open, [data-pose="calm"] .eyes-open, [data-pose="nuzzle"] .eyes-open { opacity: 0; animation: none; }
[data-pose="dozing"] .eyes-closed, [data-pose="sleeping"] .eyes-closed, [data-pose="yawn"] .eyes-closed, [data-pose="stretch"] .eyes-closed, [data-pose="calm"] .eyes-closed, [data-pose="nuzzle"] .eyes-closed { opacity: 1; }
[data-pose="sleepy"] .eyes-open, [data-pose="peek"] .eyes-open { transform: scaleY(.5); animation: none; }
[data-pose="peek"] .chick-character { animation: chick-peek .65s ease-out both; }
[data-pose="snug"] .chick-character { transform: translateY(8px); animation: none; }
[data-pose="yawn"] .yawn-mouth { opacity: 1; }
[data-pose="yawn"] .beak { opacity: 0; }
[data-pose="yawn"] .chick-character { animation: chick-yawn 1.4s ease-in-out both; }
[data-pose="stretch"] .wing-left { transform: rotate(78deg); }
[data-pose="stretch"] .wing-right { transform: rotate(-78deg); }
[data-pose="stretch"] .chick-character { animation: chick-stretch 1.7s ease-in-out both; }
[data-pose="stretch"] .morning-rays { opacity: 1; }
[data-pose="nuzzle"] .chick-character { animation: chick-nuzzle 1.1s ease-in-out both; }
.pet-cuddle-hand, .pet-care-heart, .pet-pat-ripple { opacity: 0; pointer-events: none; }
[data-pose="nuzzle"] .pet-cuddle-hand { animation: chick-hand 1.1s ease-in-out both; }
[data-pose="nuzzle"] .pet-care-heart { animation: chick-heart 1.1s ease-out both; }
.pet-reacting[data-pose="yawn"] .pet-pat-ripple { animation: chick-touch .75s ease-out both; }
.pet-reacting[data-pose="calm"] .pet-pat-ripple { transform: translate(80px, 60px); animation: chick-touch .9s ease-out both; }
[data-pose="sleeping"] .sleep-z { opacity: 1; }
.pet-night { --activity-ink: #ece5d3 !important; --activity-muted: #b4b5c5 !important; --activity-paper: #444960 !important; --activity-line: #5b6075 !important; --activity-accent: #8490b0 !important; background: #353c52 !important; }
.pet-night .pet-stage { background: #b6b8cc; border-color: #7e829c; }
.pet-night .room-wall { fill: #b6b8cc; }
.pet-night .room-floor { fill: #a3a8be; }
.pet-night .window-sky { fill: #44536f; }
.pet-night .window-day { opacity: 0; }
.pet-night .window-night { opacity: 1; }
.pet-night .pet-name { color: #383e54; }
.pet-night .pet-mood { color: #42495e; }
.pet-night .pet-time { color: #42495e; border-color: #79819a; }
#pet-home.pet-night .activity-task[aria-pressed="true"] { background: #5b637f; border-color: #8a93b2; box-shadow: inset 3px 0 #adb5cd; }
.pet-night .activity-task-icon { background: #525870; color: #d2cbba; }
.pet-night .activity-house-mark { color: #c6ceac; }
.pet-night .pet-speech { background: #e2e2eddc; border-color: #c0c0cf; color: #62667c; }
.pet-night .activity-back:hover { background: #555d74; }
.pet-lights-out .room-wall { fill: #929bb6; }
.pet-lights-out .room-floor { fill: #828eaa; }
.pet-lights-out .pet-stage { background: #929bb6; }
.pet-lights-out .lamp-glow { opacity: 0; }
.pet-lights-out .lamp-shade { fill: #c5bdba; }
.pet-lights-out .wall-picture, .pet-lights-out .pet-rug { opacity: .65; }
@keyframes chick-breathe { 0%,100% { transform: scale(1, 1); } 50% { transform: scale(1.012, .984); } }
@keyframes chick-sleep { 0%,100% { transform: translateY(12px) scale(1, .96); } 50% { transform: translateY(10px) scale(1.013, .98); } }
@keyframes chick-yawn { 0%,100% { transform: scale(1); } 50% { transform: translateY(-5px) scale(.97, 1.045); } }
@keyframes chick-stretch { 0%,100% { transform: translateY(-5px) scale(1, 1.04); } 50% { transform: translateY(-14px) scale(.96, 1.08); } }
@keyframes chick-peek { from { transform: translateY(12px); } to { transform: translateY(3px) rotate(-3deg); } }
@keyframes chick-nuzzle { 0%,100% { transform: translateX(-4px) rotate(-2deg); } 50% { transform: translateX(-15px) rotate(-7deg); } }
@keyframes chick-hand { 0% { opacity: 0; transform: translateX(-12px); } 20%,80% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; transform: translateX(-5px); } }
@keyframes chick-heart { 0% { opacity: 0; translate: 0 8px; } 35%,70% { opacity: 1; } 100% { opacity: 0; translate: 0 -12px; } }
@keyframes chick-touch { 0%,100% { opacity: 0; stroke-width: 2; } 35% { opacity: .7; stroke-width: 5; } }
@keyframes chick-blink { 0%,43%,48%,100% { transform: scaleY(1); } 45%,46% { transform: scaleY(.08); } }
@keyframes chick-dream { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-height: 760px), (max-width: 1100px) {
  .pet-speech { bottom: 18px; font-size: 14px; }
  .pet-care-steps { gap: 6px; margin-bottom: 8px; }
  #pet-home .activity-task-list { gap: 6px; }
  #pet-home .activity-task { min-height: 50px; padding: 5px 13px; }
  #pet-home .activity-task-copy b { font-size: 15px; margin-bottom: 1px; }
  #pet-home .activity-task-icon { width: 34px; height: 34px; }
  #pet-home .activity-action-card { padding: 13px 18px; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #pet-home *, #pet-home { animation: none !important; transition: none !important; }
  [data-pose="sleeping"] .chick-character, [data-pose="calm"] .chick-character, [data-pose="dozing"] .chick-character { transform: translateY(12px) scale(1, .96); }
  [data-pose="nuzzle"] .pet-cuddle-hand, [data-pose="nuzzle"] .pet-care-heart { opacity: 1; }
  [data-pose="nuzzle"] .chick-character { transform: translateX(-12px) rotate(-6deg); }
}
