/* v0.9.6 — one artwork source for world, wardrobe and reward administration. */
.skin-image{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}
.skin-sprite{display:block;height:100%;width:auto;aspect-ratio:var(--sprite-ratio);background-image:var(--sprite);background-size:400% 100%;background-position:0 0;background-repeat:no-repeat;flex:none;pointer-events:none}
.world-art{background-image:url('assets/estate-v097/world.webp')}
#world[data-castle] .world-building[data-building="castle"]{background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
.castle-visual{position:absolute;left:0;right:0;bottom:39px;height:410px;pointer-events:none;filter:drop-shadow(0 9px 5px #37482922);transform-origin:50% 94%}
.castle-visual[data-skin="classic"]{left:20px;right:20px;height:385px}
.castle-visual[data-skin="supreme"]{left:-32px;right:-32px;height:455px}
.world-building[data-building="castle"] .building-sign{position:relative;z-index:2;font-size:16px}
#world.rebuilding .world-building[data-building="castle"]{animation:none}
.rebuilding .castle-visual{animation:castle-assemble 3s ease both}
.rebuilding .castle-visual:after{content:'✦  ✧  ✦';position:absolute;inset:20% 0 0;display:grid;place-items:center;color:#fff2b7;font-size:62px;text-shadow:0 0 16px #ffe3a1;animation:build-glitter 3s ease both}
@keyframes castle-assemble{0%{opacity:.25;transform:translateY(15px) scale(.82);filter:brightness(1.8)}45%{opacity:.75;transform:translateY(-5px) scale(1.025);filter:brightness(1.4)}100%{opacity:1;transform:none;filter:drop-shadow(0 9px 5px #37482922)}}
@keyframes build-glitter{0%,100%{opacity:0}30%,65%{opacity:1;transform:translateY(-15px)}85%{opacity:.3;transform:translateY(-65px)}}
.world-kennel{width:160px;left:200px;top:415px}.world-kennel #kennel-art{height:155px}.world-kennel .skin-image{height:155px;width:160px}.world-kennel span{font-size:10px}
#character{display:flex;align-items:flex-end;justify-content:center}#character .human-sprite{height:97px}#player.walking .human-sprite{animation:sprite-walk .72s steps(4,end) infinite}
#pet-guard{width:74px;height:78px}#pet-guard .pet-facing{display:flex;align-items:flex-end;justify-content:center}#pet-guard .skin-sprite{position:static;top:auto;left:auto;transform:none;font-size:inherit;border:0;border-radius:0;padding:0;color:inherit;background-color:transparent;background-image:var(--sprite);background-size:400% 100%;background-repeat:no-repeat;height:78px;width:auto;animation:sprite-walk .8s steps(4,end) infinite}
#pet-guard .pet-ground-shadow{left:19px;width:38px;height:8px;bottom:0}
@keyframes sprite-walk{from{background-position:0 0}to{background-position:133.333333% 0}}
.dressing-art{height:210px;background:radial-gradient(ellipse at 50% 75%,#ead6a066,transparent 65%),linear-gradient(145deg,#fff9ea,#ece8da);overflow:hidden;box-shadow:inset 0 0 0 1px #b9a57722}
.dressing-art .skin-image{height:200px;width:100%;filter:drop-shadow(0 6px 3px #5f45221a)}.dressing-art .skin-sprite{height:195px}.dressing-art[data-look]{background:radial-gradient(ellipse at 50% 75%,#ead6a066,transparent 65%),linear-gradient(145deg,#fff9ea,#ece8da)}.dressing-cards .item-card{padding:14px;display:flex;flex-direction:column;align-items:stretch}.dressing-cards .item-card h3{margin:12px 0 5px}.dressing-cards .detail{min-height:38px}.dressing-cards .tag{align-self:center}.collection-card>.skin-sprite{height:160px;margin:auto}.collection-card>.skin-image{height:160px}
.reward-skin-preview{width:92px;height:106px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:radial-gradient(ellipse,#f7ecd3,transparent);border-radius:10px}.reward-skin-preview .skin-image{height:100px}.reward-skin-preview .skin-sprite{height:100px}.recommendation-choice:has(.reward-skin-preview){align-items:center;padding:12px;gap:12px}.exclusive-reward .reward-skin-preview{background:linear-gradient(135deg,#d8e4ec,#f4e4b3)}
@media(max-height:550px){.dressing-art{height:150px}.dressing-art .skin-image{height:145px}.dressing-art .skin-sprite{height:140px}}

/* Manor v0.9.7. Sprite phases follow distance traveled. */
#character .human-sprite{height:106px;background-size:400% 200%;background-position:var(--walk-x,0%) var(--walk-y,0%)}
#player.walking .human-sprite{animation:none}
.human-sprite{background-size:400% 200%}
#player:before{content:'';position:absolute;bottom:0;left:17px;width:30px;height:7px;border-radius:50%;background:#25351f35;z-index:-1}
#character{position:absolute;bottom:0;left:0;width:100%;height:106px}
.world-feeder{width:138px;height:150px}.world-feeder .feeder-art{width:138px;height:150px;filter:drop-shadow(0 4px 2px #2e351c30)}
.top-actions #daily-checkin-entry{background:linear-gradient(#fff2c9,#ebcf8b);color:#654a21}
.top-actions{gap:5px}.top-actions>button{min-width:54px}
@media(max-width:1100px){.top-actions{gap:3px}.top-actions>button{min-width:45px;padding:7px 5px}.top-actions>button strong{font-size:10px}}
@media(max-height:550px){.top-actions>button{min-width:39px;padding:4px}.top-actions>button .icon{width:22px;height:22px}.top-actions{gap:2px}}

.plot.locked>.tile-top{fill:#68924933;stroke:#e8efb477;stroke-width:1}
.plot.locked>path:first-child{fill:#557b3a22;stroke:#53753433}
.plot-lock{opacity:.5}
.crop-icon .estate-icon{filter:drop-shadow(0 3px 2px #31271744)}
.animal-unit.ranch>.estate-icon{width:87px;height:78px}
.animal-unit.fish>.estate-icon{opacity:.9}
/* Atlas cell clipping must override the map's overflow-visible SVG rule. */
svg.estate-icon{overflow:hidden!important}

.land-upgrade-intro{background:linear-gradient(120deg,#264d3c,#55745a);color:#fff8dc;padding:20px;border-radius:16px}.land-upgrade-intro small{letter-spacing:2px;color:#dfca8e}.land-upgrade-intro h2{font-size:21px;margin:10px 0}.land-upgrade-intro p{margin:0;font-size:12px;line-height:1.7}.land-preview{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin:20px 0}.land-preview-cell{min-height:55px;border:2px solid #b49462;border-radius:8px;background:linear-gradient(145deg,#aa8052,#78502e);color:#fff5df;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.land-preview-cell small{font-size:10px}.land-preview-cell.black{background:linear-gradient(145deg,#54483e,#242620);border-color:#786e59}.land-preview-cell.red{background:linear-gradient(145deg,#b66241,#6d2e22);border-color:#d58d63}.land-preview-cell.locked{background:#e3e8d5;color:#78816a;border-color:#c7cfb7}.land-preview-cell.next{border-color:#edb83f;box-shadow:0 0 0 2px #edb83f66}.land-preview-cell.next small{background:#f4cc61;color:#563c19;border-radius:4px;padding:1px 4px}.land-upgrade-summary{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:16px;background:#eee6d1;border-radius:12px}.land-upgrade-summary small{flex-basis:100%;color:#79735e}.tool-button[data-tool="land-upgrade"]{border-left:1px solid #ac976a66;background:#f4e3b966}
@media(max-height:550px){.toolbar .tool-button{min-width:48px;padding:5px 6px}.land-preview{gap:4px}.land-preview-cell{min-height:46px}.land-upgrade-intro{padding:14px}}
#modal-content .land-upgrade-intro p{color:#f1ecd5}

.land-preview-cell.gold{background:linear-gradient(145deg,#f8d879,#b48023);color:#503914;border-color:#ffe6a0}.land-upgrade-intro h2{font-size:19px}
.model-portrait{display:block;width:100%;height:100%;min-height:80px;overflow:hidden;border-radius:12px;background:linear-gradient(145deg,#32463f,#142e2a);color:#e4c67d;position:relative}.model-portrait>canvas{display:block;height:100%;width:100%;object-fit:contain}.model-portrait>small{position:absolute;left:0;right:0;top:45%;font-size:10px;text-align:center}.dressing-art .model-portrait{border-radius:10px}.reward-skin-preview:has(.model-portrait){height:145px;width:110px}.reward-skin-preview .model-portrait{height:145px}#character .model-portrait{height:106px;width:80px;background:transparent}
