/* v0.9.2 — enclosure, kennel and readily accessible trading. */
#habitat-layer{position:absolute;inset:0;pointer-events:none;z-index:1}#habitat-zones{width:2048px;height:1152px;overflow:visible;pointer-events:none}#habitat-zones [data-habitat]{pointer-events:all;cursor:pointer}#habitat-zones [data-habitat]{outline:none;-webkit-tap-highlight-color:transparent}
#animal-layer{position:absolute;inset:0;pointer-events:none;z-index:2}#animal-layer .animal-unit{pointer-events:auto}#animal-layer .empty,#animal-layer .locked-slot{display:none}
.animal-unit.ranch,.animal-unit.fish{width:90px;height:88px;transition:left .5s linear,top .5s linear}
.animal-unit.ranch>.livestock-art,.animal-unit.ranch>.icon{width:86px;height:76px;transform:scaleX(var(--animal-facing,1));animation:livestock-step .8s ease-in-out infinite}
.animal-unit.fish>.icon,.animal-unit.fish>.livestock-art{width:70px;height:57px;transform:scaleX(var(--animal-facing,1));filter:drop-shadow(0 5px 2px #126b7860);animation:fish-fin 1.7s ease-in-out infinite}
.animal-unit small{font-size:10px;padding:2px 5px;white-space:nowrap}.animal-unit .unit-meter{width:48px}.animal-unit .trial-label{font-size:8px}
@keyframes livestock-step{0%,100%{transform:scaleX(var(--animal-facing,1)) rotate(-1deg)}50%{transform:scaleX(var(--animal-facing,1)) rotate(1deg)}}
@keyframes fish-fin{0%,100%{transform:scaleX(var(--animal-facing,1)) rotate(-4deg)}50%{transform:scaleX(var(--animal-facing,1)) rotate(4deg)}}
.world-kennel{position:absolute;left:210px;top:420px;width:150px;background:none;pointer-events:auto}.world-kennel .kennel-art{width:150px;height:145px}.world-kennel span{white-space:nowrap;background:#31594b;color:#fff3c9;padding:6px 10px;border:2px solid #e5c589;border-radius:9px;font-size:12px;font-weight:bold}.kennel-art{display:block;width:100%;height:110px}.world-feeder{width:110px}.world-feeder .feeder-art{width:110px;height:120px}.world-feeder span{font-size:10px}
#trade-order-form{padding:22px;margin:20px 0;border:1px solid #d9c28f;border-radius:17px;background:linear-gradient(145deg,#fffaf0,#f4e6c6);box-shadow:0 4px 14px #69502d0c}#trade-order-form h3{margin:0 0 7px;color:#395f4d}#trade-order-form .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}#trade-order-form label{display:flex;flex-direction:column;gap:9px;font-size:12px;font-weight:bold;color:#776343}.currency-input{display:flex;align-items:center;background:#fffdf6;border:2px solid #d8c49c;border-radius:12px;overflow:hidden}.currency-input:focus-within{border-color:#67937b;box-shadow:0 0 0 3px #67937b22}.currency-input input{width:100%;min-width:0;padding:14px 12px;background:transparent;border:0;outline:0;font-size:20px;color:#345c48;font-variant-numeric:tabular-nums}.currency-input span{padding:8px 12px;font-size:12px;color:#8c7957;border-left:1px solid #e9ddc5}.currency-input input::-webkit-inner-spin-button{appearance:none}#trade-order-form>.primary{width:100%;min-height:44px;border-radius:11px}.market-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px;background:#365f4e;color:#fff1cc;border-radius:16px}.market-banner h2{font-size:19px}
.top-actions{gap:5px}.top-actions button{width:65px}.top-actions strong{font-size:12px}.top-actions button>span{width:49px;height:48px}
@media(max-width:1100px){.profile{width:205px}.balances{gap:5px}.balance{width:112px}.top-actions button{width:49px}.top-actions button>span{width:37px;height:36px}.top-actions strong{font-size:10px}.top-actions{gap:2px}}
@media(max-height:550px){.profile{width:175px}.profile-copy{width:110px}.balances .balance{width:100px}.top-actions button{width:44px}.top-actions button>span{width:31px;height:31px}.top-actions strong{font-size:9px}.top-actions{gap:1px}#trade-order-form{padding:14px}.currency-input input{font-size:17px;padding:10px}#trade-order-form .form-grid{gap:10px}}
@media(max-width:600px){#trade-order-form .form-grid{grid-template-columns:1fr}.hud-top{gap:3px}.top-actions button{width:40px}.balance{width:90px}}

#buildings{position:absolute;inset:0;z-index:3;pointer-events:none}#buildings button{pointer-events:auto}.animal-unit.selected{z-index:5}.animal-unit:not(.selected) .unit-meter{opacity:.6}

.balance .balance-action{display:flex;align-items:center;justify-content:center;width:auto;min-width:32px;height:25px;border-radius:8px;font-size:11px;line-height:1;padding:0 5px;flex-shrink:0;background:#527a48;color:#fff6da;box-shadow:inset 0 1px 0 #ffffff40}.world-kennel{padding:0;border:0}.world-kennel span{display:block;font-size:10px;padding:5px 4px;white-space:normal}

/* Habitat selection uses the action toolbar, without outlines over the scenery. */
#habitat-zones [data-habitat]:focus,#habitat-zones [data-habitat]:focus-visible{outline:none}
#animal-layer .animal-unit,#animal-layer .animal-unit.selected,#animal-layer .animal-unit:focus,#animal-layer .animal-unit:focus-visible{outline:none;border:0;background:transparent;box-shadow:none;-webkit-tap-highlight-color:transparent}
#animal-layer .animal-unit:focus-visible small{color:#fff8df;background:#365e49}

.dressing-art{height:130px;display:grid;place-items:center;background:radial-gradient(ellipse,#fff5cf,#e3eacb);border-radius:15px;margin-bottom:13px}.dressing-art>.icon,.dressing-art>.pet-art{height:110px;width:130px}.dressing-art[data-look="rose"],.dressing-art[data-look="dress"]{background:#f5dae1}.dressing-art[data-look="obsidian"],.dressing-art[data-look="suit"]{background:#cedce4}.dressing-art[data-look="rose"]>.icon{filter:hue-rotate(285deg)}.dressing-art[data-look="obsidian"]>.icon{filter:saturate(.5) brightness(.7)}.dressing-cards .secondary{margin-top:8px;width:100%}#gift-collection-form select{width:100%;padding:13px;border:2px solid #d9c28f;border-radius:10px;background:#fff9e9;color:#345d4a}.top-actions button{width:58px}@media(max-width:1100px){.top-actions button{width:43px}.top-actions strong{font-size:9px}}@media(max-height:550px){.top-actions button{width:38px}}

.dressing-art>svg{max-width:140px;height:115px}#character[data-outfit] .person-body{filter:none}
