.husbandry-banner,.husbandry-scene{background-size:cover;background-position:center;image-rendering:pixelated;border:2px solid #576552;border-radius:8px;position:relative;overflow:hidden}.husbandry-banner{min-height:160px;display:flex;align-items:end;margin:14px 0}.husbandry-banner>div{padding:12px 18px;background:#12221ee0;border-radius:0 8px 0 0}.husbandry-banner span{font-size:10px;letter-spacing:2px;color:#ddbd7c}.husbandry-banner h3{margin:2px 0}.husbandry-pens{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:12px}.husbandry-pen{margin:0}.husbandry-pen header{display:flex;justify-content:space-between;align-items:center;gap:8px}.husbandry-scene{height:150px;margin:10px 0;background-position:center 65%}.husbandry-scene>span{position:absolute;bottom:8px;animation:husbandry-bob 3s steps(2,end) infinite}.husbandry-animal-art{image-rendering:pixelated;vertical-align:middle}.husbandry-status{font-weight:700;color:#cce5bb}.husbandry-products{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;padding:12px;background:#13251f;border-radius:7px}.husbandry-products>b{width:100%}.husbandry-products span{display:flex;align-items:center;font-size:12px;gap:4px}.husbandry-locked{opacity:.65}.husbandry-panel select,.husbandry-panel input[type=number]{max-width:100%}.bard-song-settings .bard-song-slot{padding:12px 0;border-top:1px solid #4b5a4d}.bard-song-settings button{display:inline-flex;align-items:center;gap:8px;max-width:100%}.bard-song-settings select{width:100%}.bard-husbandry-splash{margin:-16px;overflow:hidden}.bard-husbandry-splash .splash-hero{display:block;width:100%;height:auto;image-rendering:pixelated}.bard-husbandry-splash .splash-copy{padding:18px}.bard-husbandry-splash small{letter-spacing:1.5px;color:#e4c484;font-size:10px}.bard-husbandry-splash h2{margin:5px 0}.bard-husbandry-splash .splash-copy>div:not(.grid){display:flex;gap:12px;align-items:center;margin:14px 0}.bard-husbandry-splash p{font-size:13px;line-height:1.5;margin:3px 0}.bard-husbandry-splash .splash-copy img{flex:0 0 32px}.bard-husbandry-splash .grid{margin-top:18px}.modal:has(.bard-husbandry-splash){max-width:560px;padding:16px;overflow-x:hidden}.bard-husbandry-splash button{white-space:normal}@keyframes husbandry-bob{50%{transform:translateY(-1px)}}@media(prefers-reduced-motion:reduce){.husbandry-scene>span{animation:none}}body.reduced-motion .husbandry-scene>span{animation:none}@media(max-width:500px){.husbandry-banner{min-height:130px}.husbandry-pens{display:block}.husbandry-pen{margin-bottom:12px}.bard-husbandry-splash .splash-copy{padding:14px}.bard-husbandry-splash .grid{grid-template-columns:1fr}}

.husbandry-pens{align-items:start}.husbandry-pens>.card{margin:0}
html[data-desktop-client] .main:has(>.husbandry-panel)>.card{grid-column:1/-1;align-self:start;margin:0 0 16px}
html[data-desktop-client] .main>.husbandry-panel{grid-column:1/-1;min-width:0}
@media(min-width:960px){html[data-desktop-client] .husbandry-pens{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}}

@media(min-width:1100px){html[data-desktop-client] .husbandry-pen:only-child{display:grid;grid-template-columns:minmax(280px,1fr) minmax(320px,1fr);gap:12px 24px}html[data-desktop-client] .husbandry-pen:only-child>header{grid-column:1/-1}html[data-desktop-client] .husbandry-pen:only-child .husbandry-scene{height:240px}}
/* Prepared compact homestead: overview tiles, full-width management on demand. */
.husbandry-pen-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:12px;align-items:start}
.husbandry-pen-grid>.husbandry-pen-tile{margin:0;padding:14px;min-width:0}
.husbandry-pen-tile>header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.husbandry-pen-tile h3{font-size:16px;margin:0}.husbandry-pen-tile .husbandry-scene{height:126px;margin:10px 0}
.husbandry-pen-tile .husbandry-status{font-size:12px;margin:8px 0}.husbandry-tile-summary{margin:8px 0}
.husbandry-tile-actions{display:grid;grid-template-columns:1fr auto;gap:8px}.husbandry-tile-actions button{min-height:44px;padding:8px 10px;font-size:12px}
.husbandry-grid-heading{margin:0 0 14px}.husbandry-unlocks{margin-top:16px}.husbandry-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.husbandry-expanded{width:100%;min-width:0}.husbandry-expanded>.husbandry-pen{margin:0}.husbandry-expanded .husbandry-controls details{padding:10px 0}
.husbandry-expanded .husbandry-controls select,.husbandry-expanded .husbandry-controls input[type=number]{width:100%}
::view-transition-group(husbandry-pen){animation-duration:320ms;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
::view-transition-old(husbandry-pen),::view-transition-new(husbandry-pen){height:100%;object-fit:cover;object-position:top}
@media(max-width:540px){.husbandry-pen-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.husbandry-pen-grid>.husbandry-pen-tile{padding:10px}.husbandry-pen-tile>header{align-items:start;flex-direction:column;gap:5px}.husbandry-pen-tile h3{font-size:14px}.husbandry-pen-tile .husbandry-scene{height:105px}.husbandry-pen-tile .husbandry-scene>span:nth-child(n+3){display:none}.husbandry-tile-actions{grid-template-columns:1fr}.husbandry-detail-heading{align-items:start;flex-direction:column}}
@media(max-width:340px){.husbandry-pen-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){::view-transition-group(husbandry-pen),::view-transition-old(husbandry-pen),::view-transition-new(husbandry-pen){animation:none!important}}

.husbandry-equipment-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px;margin:14px 0}.husbandry-equipment-slot{display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px;padding:14px 8px;border:2px solid #587262;border-radius:9px;background:#172522}.husbandry-equipment-slot.empty{border-style:dashed;border-color:#495758;color:#a9b7b4}.husbandry-slot-icon{display:grid;place-items:center;width:48px;height:48px;background:#101b1b;border-radius:6px;font-size:26px}.husbandry-equipment-slot small{line-height:1.4}

.interface-help{display:inline-grid;place-items:center;flex:0 0 36px;width:36px;min-height:36px;padding:4px;font-size:20px}.recipe-card{min-width:0}.recipe-card h3{min-width:0;overflow-wrap:anywhere}.recipe-ingredients{display:flex;flex-wrap:wrap;gap:8px 12px;margin:12px 0}.recipe-ingredient{display:inline-flex;align-items:center;gap:4px;max-width:100%;flex-wrap:wrap}.recipe-metrics{line-height:1.6;font-size:12px}.recipe-details{margin:10px 0}.husbandry-equipment{margin:16px 0}.husbandry-equipment .row{align-items:center}.husbandry-equipment-slots{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.husbandry-equipment-slot{min-width:0;min-height:116px;white-space:normal;overflow-wrap:anywhere;cursor:pointer}.husbandry-equipment-slot b{font-size:13px}.husbandry-equipment-slot small{font-size:11px}.husbandry-yields{display:grid;gap:10px;margin:14px 0;font-size:12px}.husbandry-yields>div{display:grid;gap:6px}.husbandry-yields>div>span{display:flex;flex-wrap:wrap;gap:8px 12px}.husbandry-yields span>span{display:inline-flex;align-items:center;gap:4px}.component-choice{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #354544}.component-choice>span{min-width:0;overflow-wrap:anywhere}.component-choice small{display:block;margin:4px 0}.component-choice button{flex-shrink:0}.hall-top h2{display:inline-block;margin-right:12px}

/* BEGIN HOMESTEAD SPLASH */
.modal:has(.homestead-splash){width:min(560px,calc(100vw - 24px));max-width:560px;max-height:calc(100dvh - 24px);padding:0;overflow:auto;border:1px solid #b69a59;background:#192a24}.homestead-splash{overflow:hidden;border-radius:12px;animation:homestead-splash-arrive .2s ease-out}.homestead-splash-hero{display:block;width:100%;height:auto;image-rendering:pixelated}.homestead-splash-copy{padding:20px}.homestead-splash-kicker{color:#dfc587;font-size:10px;letter-spacing:1.6px}.homestead-splash h2{font-size:clamp(23px,5.5vw,29px);line-height:1.2;margin:8px 0 5px;color:#f4ebd5}.homestead-splash p{font-size:13px;line-height:1.5;margin:0;color:#b9c8ba}.homestead-splash .homestead-splash-subtitle{color:#e1d5b5;margin-bottom:18px}.homestead-splash-feature{display:flex;gap:13px;align-items:flex-start;margin:15px 0}.homestead-splash-feature>img,.homestead-splash-feature>span{flex:0 0 32px;width:32px;height:32px;object-fit:contain;image-rendering:pixelated}.homestead-splash-feature strong{color:#e4eadb;font-size:14px}.homestead-splash-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}.homestead-splash-actions button{min-height:46px;white-space:normal}@keyframes homestead-splash-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(max-width:420px){.homestead-splash-copy{padding:16px}.homestead-splash-actions{grid-template-columns:1fr}.homestead-splash-feature{gap:10px}.homestead-splash h2{font-size:24px}}@media(prefers-reduced-motion:reduce){.homestead-splash{animation:none}}body.reduced-motion .homestead-splash{animation:none}
/* END HOMESTEAD SPLASH */

.husbandry-tile-actions>button:last-child:nth-child(3){grid-column:1/-1}
