/* Existing approved artwork; furniture ownership and prices remain unchanged. */
.home-room{background:#bca180 url('../img/home/room.webp') center/cover no-repeat}
.home-room:before,.home-room .home-window{display:none}
.home-room .decor-sofa{width:34%;left:3%;bottom:10%}
.home-room .decor-sofa>i{display:block;width:100%;aspect-ratio:1;background:url('../img/home/sofa.webp') center/contain no-repeat;font-size:0}
.home-shop [data-home-decor="sofa"]>i{display:block;width:36px;height:40px;background:url('../img/home/sofa.webp') center/contain no-repeat;font-size:0}
/* 第 3 批：床、盆栽、工具櫃換成設計圖（art-batch-03 家具圖集逐件去背）；擁有、價格、解鎖不變。 */
.home-room .home-bed{z-index:2;top:auto;right:1%;bottom:53%;width:31%;aspect-ratio:1;background:url('../img/home/bed.webp') center bottom/contain no-repeat;font-size:0;filter:drop-shadow(0 6px 4px #0004)}
.home-room .decor-plant{top:21%;left:29%;width:21%}
.home-room .decor-toolbox{top:29%;left:3%;width:25%}
.home-room .decor-plant>i,.home-room .decor-toolbox>i{display:block;width:100%;aspect-ratio:1;background:center bottom/contain no-repeat;font-size:0}
.home-room .decor-plant>i{background-image:url('../img/home/plant.webp')}
.home-room .decor-toolbox>i{background-image:url('../img/home/toolbox.webp')}
.home-shop [data-home-decor="plant"]>i,.home-shop [data-home-decor="toolbox"]>i{display:block;width:36px;height:40px;background:center/contain no-repeat;font-size:0}
.home-shop [data-home-decor="plant"]>i{background-image:url('../img/home/plant.webp')}
.home-shop [data-home-decor="toolbox"]>i{background-image:url('../img/home/toolbox.webp')}
/* 第 3 批：產品縮圖、餐點小圖、寄宿柴犬（圖片對照在 js/game-art.js） */
.addon-shelf button.has-thumb{padding-right:50px}
.addon-thumb{position:absolute;top:8px;right:5px;width:44px;height:44px;object-fit:contain;filter:drop-shadow(0 3px 3px #0006);pointer-events:none}
.product-thumb{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 3px 3px #0006)}
.channel-price-list label.has-thumb{grid-template-columns:40px minmax(0,1fr) 84px 54px}
.meal-claim{display:flex;align-items:center;gap:8px;text-align:left}
.meal-claim img{flex:0 0 36px;width:36px;height:36px;object-fit:contain}
.pet-care-dog{display:block;width:128px;height:128px;margin:6px auto -6px;object-fit:contain;filter:drop-shadow(0 6px 5px #0007)}
/* 09-29 美術接圖：團聚餐桌、T.SGD 收藏牆、車庫頂車機（processed/home，512 透明）；擁有、價格、解鎖不變。 */
.home-room .decor-table{top:auto;right:1%;bottom:4%;left:auto;width:34%}
.home-room .decor-tsgd-wall{top:3%;right:auto;left:41%;width:26%;z-index:3}
.home-room .decor-garage-lift{top:auto;right:auto;left:37%;bottom:17%;width:28%;z-index:4}
.home-room .decor-table>i,.home-room .decor-tsgd-wall>i,.home-room .decor-garage-lift>i{display:block;width:100%;aspect-ratio:1;background:center bottom/contain no-repeat;font-size:0}
.home-room .decor-table>i{background-image:url('../img/home/table.webp')}
.home-room .decor-tsgd-wall>i{background-image:url('../img/home/tsgd-wall.webp')}
.home-room .decor-garage-lift>i{background-image:url('../img/home/garage-lift.webp')}
.home-shop [data-home-decor="table"]>i,.home-shop [data-home-decor="tsgd-wall"]>i,.home-shop [data-home-decor="garage-lift"]>i{display:block;width:36px;height:40px;background:center/contain no-repeat;font-size:0}
.home-shop [data-home-decor="table"]>i{background-image:url('../img/home/table.webp')}
.home-shop [data-home-decor="tsgd-wall"]>i{background-image:url('../img/home/tsgd-wall.webp')}
.home-shop [data-home-decor="garage-lift"]>i{background-image:url('../img/home/garage-lift.webp')}
/* 寄宿柴犬逐幀（shiba-1..6）：待機搖尾、走路兩格交替；減少動態時停在單格 */
.pet-care-dog.pet-anim{position:relative;filter:none;display:block;width:128px;height:128px;margin:6px auto -6px}
.pet-care-dog.pet-anim img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 5px #0007);opacity:0}
.pet-care-dog.pet-anim img:first-child{opacity:1}
.pet-anim.pose-walk img{animation:pet-frame .6s steps(1) infinite}
.pet-anim.pose-walk img:nth-child(2){animation-delay:-.3s}
.pet-anim.pose-stand img:first-child{animation:pet-wag 1.4s ease-in-out infinite;transform-origin:50% 90%}
@keyframes pet-frame{0%{opacity:1}50%{opacity:0}}
@keyframes pet-wag{0%,100%{transform:rotate(0)}50%{transform:rotate(-2deg) translateY(-1px)}}
@media (prefers-reduced-motion:reduce){.pet-anim img{animation:none!important}.pet-anim.pose-walk img:nth-child(2){opacity:0}}
/* 09-29：盲點偵測工單的把手內側左右提示燈安裝示意（圖內無字） */
.work-order .install-art{display:block;width:100%;height:auto;aspect-ratio:3/2;margin:8px 0 4px;border-radius:10px;object-fit:cover}

/* 10-05 互動家園第1批：家具可點、故事卡、睡覺變暗＋Z */
.home-room button.home-decor,.home-room button.home-bed,.home-door,.home-pet{cursor:pointer;border:0;padding:0;background-color:transparent;color:inherit;font:inherit}
.home-room button.home-bed{background-color:transparent}
.home-door,.home-pet{position:absolute;z-index:6;display:grid;justify-items:center;font-size:2rem;filter:drop-shadow(0 4px 3px #0006)}
.home-door{left:6px;top:8px}.home-pet{left:62%;bottom:18px;font-size:1.8rem}
.home-door b,.home-pet b{padding:2px 5px;border-radius:4px;background:#141918cc;color:#fff;font-size:.5rem}
.home-card{position:fixed;z-index:70;left:50%;bottom:24px;width:min(92%,440px);padding:12px;border:2px solid #d3b768;border-radius:14px;background:#1d2026f5;color:#fff;transform:translateX(-50%);box-shadow:0 8px 24px #0008}
.home-card[hidden]{display:none}.home-card>b{color:#f2cc69}.home-card p{margin:6px 0;font-size:.7rem;color:#d6e0dc}.home-card .home-card-result{color:#9ee0b8;min-height:1em}
.home-card>div{display:flex;flex-wrap:wrap;gap:6px}.home-card button{flex:1 1 30%;min-height:42px;border:1px solid #d4ad47;border-radius:9px;background:#3b3525;color:#fff}
.home-room.home-sleeping:after{content:"Z z z";position:absolute;inset:0;z-index:20;display:grid;place-items:center;background:#05081acc;color:#cfe3ff;font-size:2rem;font-weight:900;animation:home-z 2.5s ease-in-out}
@keyframes home-z{0%{opacity:0}20%,80%{opacity:1}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.home-room.home-sleeping:after{animation:none}}

/* v444 老闆：家裡人物太小——寬螢幕依房間大小放大，站在地板上 */
@media(min-width:700px){.home-room .home-avatar{zoom:2.3;bottom:3%;left:44%}}
@media(min-width:700px) and (max-height:520px){.home-room .home-avatar{zoom:1.7}}
/* v447 家裡人物放大後，收藏牆／頂車機名牌移到上方、車庫門小字隱藏，不壓到人物 */
.home-room .decor-tsgd-wall>b,.home-room .decor-garage-lift>b{order:-1}
.home-room .home-garage-door b{display:none}

/* The full-screen home page replaced the original 500px panel. Keep the room
   at an illustration-friendly size so percentage-based furniture stays in scale. */
body[data-ui-version="3"] .home-screen .home-room{
  width:min(100%,960px);
  height:clamp(340px,43vw,500px);
  margin-inline:auto;
  background-size:100% 100%;
  box-shadow:0 12px 28px #24384524,inset 0 -25px 35px #29140b1c;
}
body[data-ui-version="3"] .home-room button.home-decor,
body[data-ui-version="3"] .home-room button.home-door,
body[data-ui-version="3"] .home-room button.home-pet{
  min-width:0;min-height:0;margin:0;padding:0;border:0!important;
  background:transparent!important;box-shadow:none!important;
}
body[data-ui-version="3"] .home-room .decor-sofa{left:5%;bottom:12%;width:28%;z-index:3}
body[data-ui-version="3"] .home-room .decor-toolbox{left:2%;top:auto;bottom:2%;width:17%;z-index:5}
body[data-ui-version="3"] .home-room .decor-plant{left:32%;top:auto;bottom:19%;width:15%;z-index:4}
body[data-ui-version="3"] .home-room .decor-tsgd-wall{left:45%;top:4%;width:21%;z-index:2}
body[data-ui-version="3"] .home-room .decor-garage-lift{left:39%;bottom:20%;width:21%;z-index:3}
body[data-ui-version="3"] .home-room .decor-table{right:2%;bottom:4%;width:29%;z-index:5}
body[data-ui-version="3"] .home-room .home-bed{right:3%;bottom:37%;width:25%}
body[data-ui-version="3"] .home-room .home-avatar{left:48%;bottom:4%;zoom:1.9}
body[data-ui-version="3"] .home-room .home-decor>b,
body[data-ui-version="3"] .home-room .home-name{font-size:11px;padding:3px 7px;border-radius:6px}
body[data-ui-version="3"] .home-room .home-decor:focus-visible{outline:3px solid #12a4d4;outline-offset:3px;border-radius:8px}
body[data-ui-version="3"] .home-screen .home-management{max-width:960px;margin:12px auto 0}
body[data-ui-version="3"] .home-screen .home-room-nav{
  display:flex;gap:8px;max-width:960px;margin:0 auto 10px;overflow-x:auto;scrollbar-width:thin;
}
body[data-ui-version="3"] .home-room-nav button{
  flex:1 0 max-content;min-height:40px;padding:7px 14px;border:1px solid #b9cbd0;border-radius:10px;
  background:#fff;color:#254356;font-size:13px;font-weight:800;cursor:pointer;
}
body[data-ui-version="3"] .home-room-nav button[aria-current="page"]{border-color:#bb8a25;background:#fff0c8;color:#553805;box-shadow:inset 0 -3px #d49c33}
body[data-ui-version="3"] .home-room-nav button:disabled{opacity:.55;cursor:not-allowed}
body[data-ui-version="3"] .home-room-nav button:focus-visible{outline:3px solid #139bc8;outline-offset:2px}
body[data-ui-version="3"] .home-screen .home-room-note{max-width:960px;margin:8px auto 0;color:#49616a;font-size:12px}
body[data-ui-version="3"] .home-contractors{max-width:960px;margin:14px auto;padding:16px;border:1px solid #cbd8dc;border-radius:16px;background:#fffaf0;color:#223947}
body[data-ui-version="3"] .home-contractors h3{margin:0 0 4px;font-size:18px}
body[data-ui-version="3"] .home-contractors>p{margin:0 0 12px;font-size:13px;color:#53656c}
body[data-ui-version="3"] .home-trade-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:7px;padding-bottom:8px}
body[data-ui-version="3"] .home-trade-list button{border:1px solid #cbd8dc;border-radius:10px;background:#fff;padding:7px 10px;color:#263f4e;cursor:pointer;text-align:left}
body[data-ui-version="3"] .home-trade-list button small{display:block;font-size:11px;color:#687b82}
body[data-ui-version="3"] .home-trade-list button[aria-pressed="true"]{border-color:#b47b1c;background:#ffe8af;font-weight:700}
body[data-ui-version="3"] .home-trade-dialog{display:flex;gap:14px;align-items:center;margin-top:8px;padding:12px;border-radius:12px;background:#fff;border:1px solid #e6dfd0}
body[data-ui-version="3"] .home-trade-dialog img,body[data-ui-version="3"] .home-trade-dialog>span{width:76px;height:76px;object-fit:contain;flex:none;font-size:44px;text-align:center}
body[data-ui-version="3"] .home-trade-dialog div{min-width:0}
body[data-ui-version="3"] .home-trade-dialog small,body[data-ui-version="3"] .home-trade-dialog b{display:block}
body[data-ui-version="3"] .home-trade-dialog p{margin:5px 0 9px}
body[data-ui-version="3"] .home-trade-dialog button{border:1px solid #b47b1c;border-radius:9px;background:#fff1c9;padding:7px 12px;color:#49331c;cursor:pointer}
body[data-ui-version="3"] .home-screen .home-room-bedroom{background-image:url('../img/home/bedroom-room-v1.webp')}
body[data-ui-version="3"] .home-screen .home-room-kitchen{background-image:url('../img/home/kitchen-room-v1.webp')}
body[data-ui-version="3"] .home-screen .home-room-garage{background-image:url('../img/home/garage-room-v1.webp')}
body[data-ui-version="3"] .home-room-bedroom .home-avatar{left:42%}
body[data-ui-version="3"] .home-room-kitchen .home-avatar{left:38%}
body[data-ui-version="3"] .home-room-kitchen .decor-table{right:7%;bottom:2%;width:35%}
body[data-ui-version="3"] .home-room-garage .home-avatar{left:26%}
body[data-ui-version="3"] .home-room-garage .decor-garage-lift{left:49%;bottom:11%;width:31%}
body[data-ui-version="3"] .home-room-garage .decor-toolbox{left:5%;bottom:2%;width:21%}
@media(max-width:899px){
  body[data-ui-version="3"] .home-screen .home-room{height:clamp(280px,51vw,430px)}
  body[data-ui-version="3"] .home-room .home-avatar{zoom:1.45;left:47%}
}
@media(max-width:600px){
  body[data-ui-version="3"] .home-screen .home-room{height:clamp(265px,68vw,380px)}
  body[data-ui-version="3"] .home-room .home-avatar{zoom:1;left:45%;bottom:5%}
  body[data-ui-version="3"] .home-room .home-decor>b{font-size:9px;padding:2px 4px}
  body[data-ui-version="3"] .home-room .decor-toolbox{width:20%}
  body[data-ui-version="3"] .home-room .decor-table{width:32%}
  body[data-ui-version="3"] .home-screen .home-room-nav{gap:5px}
  body[data-ui-version="3"] .home-room-nav button{min-height:36px;padding:6px 10px;font-size:11px}
}
