.room-screen #room .room-controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.pet-picker-dialog{width:min(calc(100vw - 20px),620px);height:min(calc(100dvh - 24px),900px);max-height:calc(100dvh - 24px);overflow:hidden;padding:18px;background:#fff7e7;flex-direction:column}.pet-picker-dialog[open]{display:flex}.pet-picker-dialog>.avatar-dialog-header{flex-shrink:0;margin:0 0 14px}.pet-picker-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;align-content:start;padding:0 2px 5px;scrollbar-width:thin;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pet-choice{min-width:0;text-align:center;background:#fffaf0;border:1.5px solid #e2c8a6;border-radius:20px;padding:15px}.pet-cat-choice{grid-column:1/-1;background:radial-gradient(ellipse at 50% 32%,#e3ecd7,transparent 65%),#fffaf0}.pet-choice-art{height:100px;display:flex;align-items:center;justify-content:center;font-size:68px}.pet-cat-choice .pet-choice-art{height:160px}.pet-choice-art img{height:100%;width:100%;object-fit:contain}.pet-choice h3{margin:7px 0;font-size:20px}.pet-choice p{margin:5px 0 12px;color:#877057;font-size:14px}.pet-choice button{min-height:48px;padding:10px 15px;font-size:16px}.pet-choice small{display:block;margin-top:9px;color:#877057}.pet-choice button:disabled{background:#e7ecde;border-color:#becdb5;color:#63755d;box-shadow:none;cursor:default}.pet-soon-label{display:inline-block;background:#eee6d8;color:#897863;border-radius:12px;padding:6px 10px;font-size:12px}.pet-coming-soon .pet-choice-art{height:125px;opacity:1}.pet-coming-soon .pet-choice-art img{max-width:150px}@media(max-height:600px){.pet-cat-choice .pet-choice-art{height:100px}.pet-choice-art{height:70px;font-size:54px}.pet-choice{padding:10px}}.pet-available .pet-choice-art{height:145px}.pet-is-active{border-color:#6ba08b;background:radial-gradient(ellipse at 50% 32%,#e3ecd7,transparent 80%),#fffaf0}.pet-available button{width:100%;font-size:14px;padding:9px 4px}.room-screen #room .pet.dog-pet{position:absolute;left:76%;top:auto;bottom:9%;width:clamp(96px,16dvh,135px);height:clamp(110px,18dvh,155px);padding:0;border:0;background:none;box-shadow:none;animation:none;transform:translateX(-50%);transition:left 3.2s linear;overflow:visible;touch-action:manipulation;z-index:4}.dog-figure{position:relative;display:block;width:100%;height:100%;transform-origin:50% 90%;pointer-events:none;animation:cat-breathe 4.5s ease-in-out infinite}.dog-pose{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;filter:drop-shadow(0 4px 2px #633f2829);pointer-events:none}.dog-idle{opacity:1}.dog-pet:is(.dog-walking,.dog-sniffing,.dog-resting) .dog-idle{opacity:0}.dog-walking .dog-walk,.dog-sniffing .dog-sniff,.dog-resting .dog-rest{opacity:1}.dog-right .dog-walk{transform:scaleX(-1)}.dog-walking .dog-figure{animation:cat-step .4s ease-in-out infinite}.dog-sniffing .dog-figure{animation:dog-sniff 1s ease-in-out 3}.dog-petted .dog-figure{animation:hamster-happy-bounce .65s ease-in-out 1}.dog-figure .hamster-heart{top:0;z-index:6}.dog-zzz{position:absolute;right:5%;top:35%;font-size:17px;opacity:0;color:#78928e;letter-spacing:3px}.dog-resting .dog-zzz{animation:cat-dream 2s ease-in-out infinite}@keyframes dog-sniff{50%{transform:rotate(2deg) translateY(2px)}}@media(prefers-reduced-motion:reduce){.room-screen #room .pet.dog-pet{transition:none}.dog-figure,.dog-zzz{animation:none!important}.dog-petted .hamster-heart{opacity:1}}@media(max-height:600px){.pet-available .pet-choice-art{height:100px}.room-screen #room .pet.dog-pet{width:96px;height:110px}}
.room-screen #room .pet.wild-pet{position:absolute;left:76%;top:auto;bottom:8%;width:clamp(102px,17dvh,145px);height:clamp(112px,18dvh,155px);padding:0;border:0;background:none;box-shadow:none;animation:none;transform:translateX(-50%);transition:left 3.4s linear;overflow:visible;touch-action:manipulation;z-index:4}.wild-figure{position:relative;display:block;width:100%;height:100%;transform-origin:50% 90%;pointer-events:none;animation:cat-breathe 4.5s ease-in-out infinite}.wild-pose{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom;opacity:0;filter:drop-shadow(0 4px 2px #633f2829);pointer-events:none}.wild-idle{opacity:1}.wild-pet:is([data-phase=prowl],[data-phase=crouch],[data-phase=rest],[data-phase=wings],[data-phase=pet]) .wild-idle{opacity:0}.wild-pet[data-phase=prowl] .wild-prowl,.wild-pet[data-phase=crouch] .wild-crouch,.wild-pet[data-phase=rest] .wild-rest,.wild-pet[data-phase=wings] .wild-wings,.wild-pet[data-phase=pet] .wild-affection{opacity:1}.wild-right .wild-prowl{transform:scaleX(-1)}.wild-pet[data-phase=prowl] .wild-figure{animation:cat-step .4s ease-in-out infinite}.wild-pet[data-phase=crouch] .wild-figure{animation:wild-crouch 3s ease-in-out 1}.wild-pet[data-phase=wings] .wild-figure{animation:dragon-wings 3s ease-in-out 1}.wild-pet[data-phase=hop] .wild-figure{animation:hamster-happy-bounce .75s ease-in-out 1}.wild-pet[data-phase=sneeze] .wild-figure{animation:dragon-sneeze 1s ease-in-out 1}.wild-petted .wild-figure{animation:hamster-happy-bounce .65s ease-in-out 1}.wild-figure .hamster-heart{top:0;z-index:6}.wild-zzz{position:absolute;right:6%;top:34%;font-size:17px;opacity:0;color:#78928e;letter-spacing:3px}.wild-pet[data-phase=rest] .wild-zzz{animation:cat-dream 2s ease-in-out infinite}.dragon-smoke{position:absolute;left:65%;top:20%;width:50px;height:35px;opacity:0}.dragon-smoke i{position:absolute;width:16px;height:16px;border-radius:50%;background:#c8d4c9;box-shadow:inset 0 2px 2px #fff9;left:0;top:12px}.dragon-smoke i:nth-child(2){width:22px;height:22px;left:12px;top:3px}.dragon-smoke i:nth-child(3){width:27px;height:27px;left:24px;top:-4px}.wild-pet[data-phase=sneeze] .dragon-smoke{animation:dragon-puff 1.6s .35s ease-out 1}@keyframes wild-crouch{45%,65%{transform:scale(1.02,.98)}}@keyframes dragon-wings{40%,65%{transform:scale(1.06,1.025) translateY(-2px)}}@keyframes dragon-sneeze{25%{transform:rotate(-3deg)}45%{transform:rotate(4deg) translateY(2px)}}@keyframes dragon-puff{0%{opacity:0;transform:translate(0,0) scale(.3)}20%{opacity:.85}100%{opacity:0;transform:translate(30px,-24px) scale(1.3)}}@media(prefers-reduced-motion:reduce){.room-screen #room .pet.wild-pet{transition:none}.wild-figure,.wild-zzz,.dragon-smoke{animation:none!important}.wild-petted .hamster-heart{opacity:1}}@media(max-height:600px){.room-screen #room .pet.wild-pet{width:102px;height:112px}}
