#pet.home-pet{mix-blend-mode:normal;filter:none;transform:none;animation:none;isolation:isolate;overflow:visible}
#pet.home-pet:hover{transform:none}
.home-pet model-viewer,.home-pet>img{position:absolute;inset:0;width:100%;height:100%;background:transparent;--poster-color:transparent;pointer-events:none}
.home-pet model-viewer{visibility:hidden}
.home-pet.home-loaded model-viewer{visibility:visible}
.home-pet.home-loaded>img{display:none}
.home-pet.home-failed model-viewer{display:none}
.home-pet-toolbar{padding:12px 18px;background:#fafbf5;border-top:1px solid #e8e9df;display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:#68775d;font-size:12px}
.home-pet-toolbar label{margin-right:auto;display:flex;gap:7px;align-items:center}
.home-pet-toolbar select,.home-pet-toolbar button{border:1px solid #dce4d2;background:white;border-radius:10px;padding:9px 11px;min-height:44px;color:#526847;font:inherit}
.home-pet-toolbar button[aria-pressed=true]{background:#e4eddb;border-color:#adc19c}
#homepetstatus{flex-basis:100%;font-size:11px;margin:2px 0;color:#87927b}
@media(max-width:560px){#pet.home-pet{width:78%;left:14%;height:270px;bottom:43px}.home-pet-toolbar{padding:10px 12px}.home-pet-toolbar label{font-size:11px}}

.sleep-routine{padding:12px 18px;background:#f5f6ef;border-top:1px solid #e4e8dc;color:#708065;font-size:12px}.sleep-routine>div{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.sleep-routine label{display:flex;align-items:center;gap:7px;min-height:44px}.sleep-routine select,.sleep-routine button{background:white;border:1px solid #dce3d1;border-radius:10px;padding:10px;min-height:44px;color:#52694a;font:inherit}.sleep-routine details{font-size:11px;line-height:1.8;margin-top:12px}.sleep-routine summary{cursor:pointer}.sleep-routine a{color:#657f53}#sleepstatus{margin:6px 0 12px}.home-sleeping:after{content:'z z Z';position:absolute;right:4%;top:12%;font-size:15px;color:#839276;letter-spacing:3px;pointer-events:none}

#home .actions{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px}#home .actions>button{min-width:0;min-height:64px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:8px 3px;border:1px solid #dce4d2;border-radius:11px;background:#fafcf5;font-size:12px;line-height:1.4}#home .actions>button small{display:none}#home .actions>button[aria-pressed=true]{background:#e4eddb;border-color:#adc19c}#home .roam-setting{padding:3px 16px 10px;border:0}#home .actions>button:focus-visible{outline:3px solid #92ab7f}@media(max-width:850px){#home .actions{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}#home .actions>button{min-height:60px;font-size:11px;padding:7px 2px}}

.pet-vitals{margin:10px 12px;padding:14px 16px;border:1px solid #e2e9d9;border-radius:16px;background:#fbfcf6;color:#536b48}.pet-vitals-heading{display:flex;gap:10px;align-items:center;justify-content:space-between;font-size:13px}.pet-mood{border-radius:20px;background:#e9f1df;padding:5px 10px;font-size:12px;white-space:nowrap}.pet-vitals dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px 10px;margin:14px 0}.pet-vitals dt{font-size:11px;color:#8a967f}.pet-vitals dd{margin:5px 0 0;font-size:13px}.pet-vitals small{font-size:10px;color:#909a87}.pet-absence{font-size:12px;line-height:1.7;color:#967644;margin:8px 0}.pet-comfort{min-height:44px;padding:10px 15px;margin:0 0 10px;border:1px solid #ddc89c;border-radius:13px;background:#fff5dc;color:#83632e;font:inherit;font-size:12px}.pet-vitals[data-anxious=true] .pet-mood{background:#fff0cb;color:#8c6a2d}.pet-vitals [hidden]{display:none}@media(max-width:600px){.pet-vitals{margin:8px;padding:12px}.pet-vitals dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px}.pet-vitals-heading{font-size:12px}.pet-vitals dd{font-size:12px}}
.coin-shop-open{border:1px solid #d9c7a6;border-radius:20px;padding:7px 12px;background:#fff4d9;color:#695532;font:inherit;cursor:pointer}.coin-shop{width:min(580px,calc(100% - 24px));max-height:85dvh;padding:22px;border:1px solid #dbd2bd;border-radius:24px;background:#fbf8ef;color:#344334;box-shadow:0 18px 65px #23351d40}.coin-shop::backdrop{background:#24342270}.coin-shop header{display:flex;align-items:center;justify-content:space-between}.coin-shop h2{margin:0;font-size:22px}.coin-shop button{padding:9px 14px;border:1px solid #d6d8c5;border-radius:14px;background:#edf0e2;color:inherit;cursor:pointer;font:inherit}.coin-shop button:disabled{opacity:.5;cursor:default}.coin-shop nav{display:flex;gap:8px;flex-wrap:wrap}.coin-shop [aria-pressed=true],.coin-shop .shop-yes{background:#536a48;color:white}.shop-wallet{font-weight:bold;color:#8b6938}.shop-help,.shop-products small{font-size:13px;line-height:1.6}.shop-message{min-height:24px;font-size:14px}.shop-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.shop-products article{display:flex;flex-direction:column;gap:9px;padding:14px;border:1px solid #dedecf;border-radius:17px;background:#fffdf7}.shop-products button{margin-top:auto}.shop-confirm{position:sticky;bottom:0;background:#fff3d6;border:1px solid #dac99e;border-radius:16px;padding:16px;margin-top:16px;box-shadow:0 -4px 18px #554b2822}.shop-confirm button{margin-right:8px}@media(max-width:420px){.coin-shop{padding:16px}.coin-shop nav button{padding:9px 10px}.coin-shop-open{font-size:12px;padding:6px 8px}}
.coin-shop nav button{width:auto;flex:1;justify-content:center;margin:0;text-align:center}.coin-shop header{height:auto;min-height:54px;padding-bottom:12px;margin-bottom:12px}.pet-vet,.pet-prevent{min-height:40px;border:1px solid #dbd9c1;border-radius:12px;background:#f4f0df;color:#6b6548;padding:8px 12px;margin:0 8px 10px 0;font:inherit;font-size:12px}.pet-medical{font-size:12px;line-height:1.7;color:#7c856f}

/* Pet name and tools live in the header, outside the rendered room. */
#home .roomtop{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:12px;align-items:center}
#home .roomtop>.roomtag{grid-column:1;grid-row:1}
#home .roomtop>.petlabel{position:static;inset:auto;transform:none;max-width:none;min-width:0;grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:7px;padding:5px 0;border:0;border-radius:0;background:none;white-space:normal;pointer-events:auto;font-size:12px}
#home .roomtop>.petlabel small{font-size:10px;margin:0;color:#8c9281}
#home .roomtop .petlabel .decor-open{margin:0;min-height:36px}
#home .roomtop .coin-shop-open{min-height:36px;font-size:12px}
#home .roomtop>.home-companion-label{grid-column:3;grid-row:1}
#home .roomtop>.member-walk{grid-column:4;grid-row:1}
@media(max-width:1050px){#home .roomtop{grid-template-columns:minmax(0,1fr) auto}#home .roomtop>.roomtag{grid-column:1;grid-row:1}#home .roomtop>.member-walk{grid-column:2;grid-row:1}#home .roomtop>.petlabel{grid-column:1;grid-row:2}#home .roomtop>.home-companion-label{grid-column:2;grid-row:2}}
@media(max-width:560px){#home .roomtop{gap:6px 9px}#home .roomtop>.petlabel{grid-column:1/-1;grid-row:2;font-size:11px}#home .roomtop>.home-companion-label{grid-column:1/-1;grid-row:3}#home .roomtop .petlabel .decor-open,#home .roomtop .coin-shop-open{min-height:40px;padding:6px 12px}#home .roomtop>.petlabel small{display:none}}

#home .roomtop>.petlabel>#petname,#home .roomtop>.petlabel>.online{display:none}

.room-damage{position:absolute;inset:10% 8%;z-index:30;border-radius:18px;overflow:auto;background:#fffaf0;box-shadow:0 10px 40px #392d3955;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:14px;padding:16px}.room-damage[hidden]{display:none}.room-damage-art{width:100%;aspect-ratio:1;background-image:url('assets/room-mischief-atlas.webp');background-size:300% 500%;background-repeat:no-repeat;border-radius:12px}.room-damage p{font-size:15px;line-height:1.6}.room-damage small{display:block;color:#786958;line-height:1.5}.room-damage button{margin-top:12px;padding:10px 16px;border:0;border-radius:20px;background:#788d64;color:white;cursor:pointer}@media(max-width:560px){.room-damage{inset:5%;grid-template-columns:1fr;gap:8px;padding:12px}.room-damage-art{width:150px;max-width:100%;justify-self:center}.room-damage p{margin:7px 0}}

.room-damage{scrollbar-width:none}.room-damage::-webkit-scrollbar{display:none;width:0;height:0}
.room-damage .damage-loss{display:block;font-size:23px;color:#ad6143;margin:12px 0}.room-damage .damage-level{font-size:12px;color:#8b7762;margin:8px 0}
