/* Scoped house presentation; shared cards and detail-page coins stay unchanged. */
#house-view .room-grid{border:0;grid-auto-rows:auto}
#house-view .house-room{min-width:0;min-height:200px;border:0;padding:16px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-decoration:none;color:var(--f-ink);text-align:center;box-shadow:none}
#house-view .room-grid > .occupied-room.room-pink{background:#fdecec}
#house-view .room-grid > .occupied-room.room-gold{background:#fff1c2}
#house-view .room-grid > .occupied-room.room-tan{background:#eee2cf}
#house-view .house-room h2{width:100%;min-width:0;margin:0;font-size:16px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
#house-view .house-status{font-size:12px;color:var(--f-muted)}
#house-view .house-coin{display:block;flex:none;position:relative;width:96px;height:96px;border-radius:50%;overflow:hidden;background:radial-gradient(circle at 35% 30%,#fff1c2,#f3c64f 45%,#c99324);box-shadow:inset 0 0 0 4px #d9a93a,inset 0 0 0 6px #fff0b5,inset 0 0 0 8px #b8831c}
#house-view .house-coin img{display:block;width:100%;height:100%;object-fit:contain;padding:10px}
#house-view .empty-room{border:1px dashed var(--f-muted);background:transparent;font:inherit;font-size:12px}
#house-view .unavailable-room p{font-size:12px;overflow-wrap:anywhere;margin:0}
#house-view .house-discovery{width:100%;background:transparent;border:1px solid var(--f-ink)}
#house-view .house-room:focus-visible{outline:3px solid var(--f-red);outline-offset:2px}
#house-view .house-tabs{margin:20px 0 0}
#house-view .house-tabs .ant-tabs-nav{margin:0}
#house-view .house-tabs .ant-tabs-nav-list{width:100%}
#house-view .house-tabs .ant-tabs-tab{flex:1;justify-content:center;margin:0;padding:6px 8px}
#house-view .house-tabs [role="tab"]{font-family:Inter,system-ui,sans-serif;font-weight:600}
#house-view .house-tabs .ant-tabs-nav:before{border-bottom-color:#E6E1D8}
#house-view .house-tabs [role="tab"]{min-height:24px;background:transparent;border:0}
#house-view .house-tabs .ant-tabs-content-holder{display:none}
#house-view .house-tabs .ant-tabs-ink-bar{background:#cf0404}
#house-view .house-tabs .ant-tabs-tab-active [role="tab"]{color:#cf0404}
#house-view .house-tabs [role="tab"]:focus-visible{outline:3px solid #cf0404;outline-offset:3px}
#house-view .button-dark,#house-view button[aria-pressed="true"]{background:#5C5751;border-color:#5C5751;color:#fff}
#house-view .adopted-room{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;min-width:0;min-height:200px;padding:16px 8px;color:var(--f-ink);text-align:center;background:#F6F4EF;box-shadow:none}
#house-view .adopted-room .adoption-room-head{order:1;display:flex;flex-direction:column;align-items:center;width:100%;min-width:0}
#house-view .adopted-room .adoption-room-head h2{order:0;width:100%;min-width:0;margin:0;font-size:16px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
#house-view .adopted-room .adoption-room-head .house-status{order:1}
#house-view .adopted-room .adoption-room-head .meta{order:2;margin:2px 0 0}
#house-view .adopted-room>.coin-stage{order:0;display:grid;place-items:center;width:100%;margin:0;padding:0;background:transparent}
#house-view .adopted-room .pet-coin{width:96px;max-width:96px}
#house-view .adopted-room>.coin-stage .coin-hint{font-size:10px}
#house-view .adopted-room .adoption-record-details{order:2;width:100%;box-sizing:border-box;padding:14px 0 0;border-top:1px solid #c8d1c3;text-align:left;font-size:13px}
#house-view .adopted-room .adoption-stamp-footer{order:3;display:flex;justify-content:flex-end;align-items:flex-end;width:100%;min-height:0}
#house-view .adopted-room .adoption-stamp-footer .cc-house-stamps{flex-direction:column;align-items:center;gap:4px;margin:0}
#house-view .adopted-room .adoption-stamp-footer .cc-house-stamp{flex:none}
#house-view .adopted-room .privacy-note{display:block}
#my-pets-adopted .adopted-room-grid{padding:0;border:0;background:transparent}
#my-pets-adopted .cc-slots{max-width:100%}
/* ---- Illustrated house artwork (house-art.js) ---- */
#house-view .ha-roof{position:relative;padding-top:34px;margin-top:12px}
#house-view .ha-roof-shape{position:relative;height:118px;background:#cf0404;border-radius:50% 50% 14px 14px/90% 90% 14px 14px;border:3px solid #9e2a1f;overflow:hidden}
#house-view .ha-shingles{position:absolute;left:0;right:0;height:22px;background:radial-gradient(circle at 12px 0,#f7c3cb 11px,transparent 12px) 0 0/24px 22px repeat-x}
#house-view .ha-row1{bottom:22px}#house-view .ha-row2{bottom:0;background-position:12px 0}
#house-view .ha-attic{position:absolute;left:50%;top:16px;width:44px;height:44px;margin-left:-22px;border-radius:50%;background:#bfe1f5;border:4px solid #fff8ec;display:grid;place-items:center}
#house-view .ha-paw{position:relative;display:block;width:22px;height:20px}
#house-view .ha-paw i{position:absolute;width:6px;height:7px;border-radius:50%;background:#cf0404;top:0}
#house-view .ha-paw i:nth-child(1){left:0;top:5px}#house-view .ha-paw i:nth-child(2){left:5px}#house-view .ha-paw i:nth-child(3){left:11px}#house-view .ha-paw i:nth-child(4){left:16px;top:5px}
#house-view .ha-paw b{position:absolute;left:5px;bottom:0;width:12px;height:10px;border-radius:50% 50% 45% 45%;background:#cf0404}
#house-view .ha-chimney{position:absolute;right:22%;top:6px;width:26px;height:46px;background:#f3c64f;border:3px solid #946300;border-radius:4px 4px 0 0}
#house-view .ha-heart{position:absolute;left:4px;top:-20px;width:14px;height:14px;background:#f29bb0;transform:rotate(45deg);animation:ha-float 3s ease-in-out infinite}
#house-view .ha-heart:before,#house-view .ha-heart:after{content:"";position:absolute;width:14px;height:14px;border-radius:50%;background:inherit}
#house-view .ha-heart:before{left:-7px}#house-view .ha-heart:after{top:-7px}
@keyframes ha-float{0%{opacity:0;transform:translateY(8px) rotate(45deg)}40%{opacity:1}100%{opacity:0;transform:translateY(-18px) rotate(45deg)}}
#house-view .house-body{background:#FFF8EC;border:3px solid #c8a27a;border-top:0;padding:12px}
#house-view .house-body .room-grid{background:transparent;padding:0}
#house-view .ha-window{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:132px;max-width:100%;min-height:132px;padding:14px 10px 8px;box-sizing:border-box;border:4px solid #c8a27a;border-radius:66px 66px 6px 6px;background:#fff8ec;overflow:visible;gap:4px}
#house-view .ha-sky{position:absolute;inset:0;border-radius:62px 62px 2px 2px;background:linear-gradient(#a9d6f2,#dff0fb)}
#house-view .ha-curtain{position:absolute;top:0;bottom:12px;width:22px;background:#f7c3cb;clip-path:polygon(0 0,100% 0,40% 55%,70% 100%,0 100%)}
#house-view .ha-left{left:0;border-radius:62px 0 0 0}
#house-view .ha-right{right:0;transform:scaleX(-1);border-radius:62px 0 0 0}
#house-view .ha-window-discovery .ha-curtain{background:#f3c64f}
#house-view .ha-window-discovery .ha-sky{background:radial-gradient(circle at 50% 45%,#fff6c8,#ffe48a)}
#house-view .ha-window-content{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
#house-view .ha-window .house-coin{animation:none}
#house-view .house-remaining{position:absolute;right:-18px;top:-22px;max-width:110px;font-size:10px;font-weight:600;background:#fff8ec;border:1px solid #c8a27a;border-radius:99px;padding:2px 6px;z-index:3}
#house-view .house-care-coins{display:flex;gap:5px;justify-content:center}
#house-view .house-care-coin{position:relative;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#fff1c2;border:1px solid #b48b38}
#house-view .house-care-coin img{width:19px;height:19px;object-fit:contain}
#house-view .house-care-coin.is-done{background:#e0efdb;border-color:#37733e}
#house-view .house-care-coin i{position:absolute;right:-3px;bottom:-3px;border-radius:50%;width:12px;height:12px;background:#286234;color:white;font:700 10px/12px system-ui}
#house-view .house-care-coin.is-unknown{background:#eee9df;border-style:dashed;opacity:.6}
#house-view .empty-room{border:0;background:transparent;cursor:pointer}
#house-view .empty-room>span:last-child{margin-top:6px;font-family:var(--f-head);font-size:16px;line-height:1.3;font-weight:400;overflow-wrap:anywhere}
#house-view .ha-flowerbox{position:absolute;left:-8px;right:-8px;bottom:-14px;height:14px;background:#a8743f;border:2px solid #7a5128;border-radius:3px;z-index:2}
#house-view .ha-flowerbox i{position:absolute;top:-10px;width:10px;height:10px;border-radius:50%;background:#f29bb0;box-shadow:0 0 0 2px #fff8ec}
#house-view .ha-flowerbox .f1{left:10%}#house-view .ha-flowerbox .f2{left:28%;background:#f3c64f}#house-view .ha-flowerbox .f3{left:46%;background:#cf0404}#house-view .ha-flowerbox .f4{left:64%;background:#f3c64f}#house-view .ha-flowerbox .f5{left:82%}
#house-view .ha-plus{position:relative;display:block;width:56px;height:56px;border-radius:50%;background:#fff;border:2px solid #1F1D1A}
#house-view .ha-plus:before,#house-view .ha-plus:after{content:"";position:absolute;left:50%;top:50%;background:#1F1D1A;border-radius:2px}
#house-view .ha-plus:before{width:24px;height:4px;margin:-2px 0 0 -12px}#house-view .ha-plus:after{width:4px;height:24px;margin:-12px 0 0 -2px}
#house-view .house-room:has(.ha-window){padding-bottom:12px}
#house-view .house-room:has(.ha-window) h2{margin-top:12px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
#house-view .house-room:focus-visible{outline:3px solid #cf0404;outline-offset:2px;border-radius:12px}
#house-view .ha-door-wrap{display:flex;justify-content:center;padding-top:16px}
#house-view .ha-door{position:relative;width:64px;height:92px;background:#cf0404;border:3px solid #9e2a1f;border-bottom:0;border-radius:32px 32px 0 0}
#house-view .ha-door-heart{position:absolute;left:50%;top:22px;width:14px;height:14px;margin-left:-7px;background:#fff;transform:rotate(45deg)}
#house-view .ha-door-heart:before,#house-view .ha-door-heart:after{content:"";position:absolute;width:14px;height:14px;border-radius:50%;background:inherit}
#house-view .ha-door-heart:before{left:-7px}#house-view .ha-door-heart:after{top:-7px}
#house-view .ha-knob{position:absolute;right:9px;top:52px;width:9px;height:9px;border-radius:50%;background:#f3c64f;border:1px solid #946300}
#house-view .ha-yard{position:relative;height:72px;margin:0 -8px 24px;background:#8cc58a;border-radius:50% 50% 24px 24px/40px 40px 24px 24px}
#house-view .ha-mat{position:absolute;left:50%;top:0;width:84px;height:12px;margin-left:-42px;background:#f7c3cb;border-radius:0 0 8px 8px}
#house-view .ha-print{position:absolute;opacity:.55;transform:scale(.7)}
#house-view .ha-print .ha-paw i,#house-view .ha-print .ha-paw b{background:#3f6b3d}
#house-view .ha-print1{left:58%;top:22px}#house-view .ha-print2{left:66%;top:40px}
#house-view .ha-dot{position:absolute;width:7px;height:7px;border-radius:50%;background:#f29bb0}
#house-view .ha-dot.d1{left:10%;top:20px}#house-view .ha-dot.d2{left:20%;top:44px;background:#f3c64f}#house-view .ha-dot.d3{left:32%;top:28px;background:#fff8ec}
#house-view .ha-dot.d4{left:80%;top:22px;background:#f3c64f}#house-view .ha-dot.d5{left:88%;top:46px}#house-view .ha-dot.d6{left:40%;top:52px}
@media(max-width:360px){#house-view .room-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#house-view .ha-heart,#house-view .ha-window .house-coin{animation:none}#house-view .ha-heart{opacity:1}}
/* ---- Refinement pass: reference illustration ---- */
/* 4px in flow + the house's 20px translation matches Adopted's 24px gap.
   Keep the translation: it overlaps the yard without separating the doorway. */
#house-view .ha-roof{padding-top:4px;margin:0}
#house-view .ha-roof-shape{height:84px;margin:0 14px;border:0;background:#c8261c;border-radius:50% 50% 0 0/100% 100% 0 0}
#house-view .ha-shingles{left:12%;right:12%;height:8px;background:radial-gradient(circle at 9px -3px,transparent 7px,#f4a7b3 7.5px 9px,transparent 9.5px) 0 0/18px 8px repeat-x}
#house-view .ha-row1{top:34px;bottom:auto;left:22%;right:22%}
#house-view .ha-row2{top:56px;bottom:auto;left:8%;right:8%;background-position:9px 0}
#house-view .ha-eave{height:12px;background:#9e2a1f;border-radius:8px;box-shadow:0 2px 0 #7d1f17}
#house-view .ha-attic{top:-2px;width:34px;height:34px;margin-left:-17px;background:#fff8ec;border:3px solid #fff8ec;box-shadow:0 0 0 1px #e8d5bd}
#house-view .ha-attic .ha-paw{transform:scale(.8)}
#house-view .ha-roof-shape{overflow:visible}
#house-view .ha-chimney{right:16%;top:8px;width:26px;height:50px;border:0;border-radius:0;background:#e9bf4e;box-shadow:inset -4px 0 0 #d4a73a}
#house-view .ha-chimney:before{content:"";position:absolute;left:-4px;right:-4px;top:-6px;height:8px;background:#c9993a;border-radius:2px}
#house-view .ha-heart{top:-30px;left:6px}
#house-view .house-body{margin:0 22px;background:#FFF8EC;border:1px solid #d9c2a0;border-top:0;padding:16px 8px 0}
#house-view .house-body .room-grid{gap:8px 6px}
#house-view .house-body .room-grid>.house-room:not(.empty-room){background:transparent}
#house-view .house-body .room-grid>.house-room{justify-content:flex-start;min-height:190px;gap:6px}
#house-view .house-body .room-grid>.occupied-room h2{overflow:visible;max-height:none}
#my-pets-active .house-room{padding:6px 2px;background:transparent}
#house-view .ha-window{width:118px;min-height:140px;padding:12px 4px 18px;border:2px solid #d9c2a0;box-shadow:inset 0 0 0 4px #fff8ec;border-radius:59px 59px 4px 4px;justify-content:center}
#house-view .ha-sky{inset:5px 5px 14px;border-radius:54px 54px 0 0}
#house-view .ha-curtain{top:5px;bottom:14px;width:16px;background:#f2c0c6;clip-path:polygon(0 0,100% 0,100% 30%,45% 62%,85% 100%,0 100%)}
#house-view .ha-left{left:5px;border-radius:54px 0 0 0}
#house-view .ha-right{right:5px}
#house-view .ha-tie{position:absolute;left:0;top:58%;width:12px;height:4px;border-radius:3px;background:#e1b23f}
#house-view .ha-window-discovery .ha-curtain{background:#f0c56a}
#house-view .ha-window-discovery .ha-tie{background:#c9993a}
#house-view .ha-window-content{position:static;z-index:auto}
#house-view .ha-window-content>*{position:relative;z-index:1}
#house-view .ha-window .house-coin{width:96px;height:96px}
#house-view .ha-window-content>.house-remaining{position:absolute;right:-6px;top:4px;z-index:3;max-width:92px;white-space:normal;font-size:10px;line-height:1.3;padding:2px 7px;background:#c8261c;color:#fff;border:2px solid #fff8ec}
#house-view .ha-flowerbox{left:-6px;right:-6px;bottom:-4px;height:12px;background:#9a5b35;border:0;border-radius:2px}
#house-view .ha-flowerbox i{top:-7px;width:9px;height:9px;box-shadow:none}
#house-view .ha-window-discovery .ha-flowerbox{background:#c8a27a}
#house-view .ha-window-discovery .ha-flowerbox i{display:none}
#house-view .ha-plus{width:52px;height:52px;border:0;border-radius:0;background:transparent}
#house-view .house-room:has(.ha-window) h2{margin-top:6px}
#house-view .ha-door-wrap{padding-top:20px}
#house-view .ha-door{width:58px;height:84px;border:3px solid #fff8ec;border-bottom:0;box-shadow:0 0 0 1px #d9c2a0;background:#c8261c;border-radius:29px 29px 0 0}
#house-view .ha-door-heart{top:20px;width:12px;height:12px;margin-left:-6px;background:transparent;border:2px solid #fff;border-top:0;border-left:0;box-sizing:border-box}
#house-view .ha-door-heart:before,#house-view .ha-door-heart:after{width:12px;height:12px;box-sizing:border-box;background:transparent;border:2px solid #fff}
#house-view .ha-door-heart:before{left:-6px;top:0;border-right-color:transparent;border-bottom-color:transparent;transform:rotate(-45deg)}
#house-view .ha-door-heart:after{top:-6px;left:0;border-right-color:transparent;border-bottom-color:transparent;transform:rotate(45deg)}
#house-view .ha-yard{margin:-2px 0 24px;height:84px;background:#8fae6c;border-radius:50% 50% 0 0/20px 20px 0 0}
#house-view .ha-print{left:50%!important;margin-left:-11px}
#house-view .ha-print1{top:26px}#house-view .ha-print2{top:50px}
@media(max-width:360px){#house-view .house-body{margin:0 12px}}
@media(prefers-reduced-motion:reduce){#house-view .ha-heart,#house-view .ha-window .house-coin{animation:none}}
#house-view .ha-door-svg{position:absolute;left:50%;top:20px;margin-left:-9px;display:block}
#house-view .ha-mat{text-align:center;color:#fff;font:700 9px/12px Inter,system-ui,sans-serif;letter-spacing:.05em}
/* Move only the house, keeping the yard fixed and behind its lower corners. */
#house-view .ha-house{position:relative;z-index:1;transform:translateY(20px)}
#house-view .ha-yard{z-index:0}
#house-view .house-capacity{font-size:13px;color:var(--f-muted);line-height:1.5}
/* Decorative empty pasture (CareHouseArt.pasture) */
#house-view .ha-pasture{display:block;width:100%;max-width:640px;margin:0 auto;box-sizing:border-box;overflow:hidden;border-radius:18px;border:2px solid #d9c2a0;background:#dff0fb;line-height:0}
#house-view .ha-pasture-svg{display:block;width:100%;height:auto;max-height:420px}
