#panel[data-panel="coop"] {
  --stamp: var(--coop-exterior, url("art/henhouse-watercolor.webp"));
}
#panel[data-panel="coop"] .panel-scroll {
  touch-action: pan-y;
  scroll-padding-block: 5px;
}
.poultry-sheet {
  color: #354a38;
  font: 14px/1.4 var(--font);
}
.poultry-sheet h3, .poultry-sheet p { margin: 0; }
.poultry-sheet h3 {
  color: #304936;
  font: 700 17px/1.2 var(--book);
}
.poultry-sheet p { margin-top: 3px; color:#55604d; font-size:13px; }
.poultry-head {
  display: flex;
  align-items:center;
  gap:10px;
}
.poultry-flock { min-width:0; }
.poultry-picture {
  flex:none;
  position:relative;
  width:76px;
  aspect-ratio:1.34;
  isolation:isolate;
}
.poultry-picture::before {
  content:"";
  position:absolute;
  bottom:0; left:2%; right:2%; height:28%;
  border-radius:50%;
  background:radial-gradient(ellipse,#bdba8e73,transparent 70%);
}
.poultry-house {
  width:94%; height:90%;
  position:absolute; left:3%; top:0; object-fit:contain;
}
.poultry-adult, .poultry-chick {
  position:absolute;
  width:35%;
  aspect-ratio:1;
  left:11%; bottom:0;
  background:url("art/poultry-poses.webp") 0% 0% / 400% 300% no-repeat;
}
.poultry-adult:nth-of-type(2) { left:46%; bottom:6%; transform:scaleX(-1); }
.poultry-adult:nth-of-type(3) { left:70%; bottom:0; width:30%; }
.poultry-chick { left:58%; width:24%; bottom:0; background-position:0% 100%; }
.poultry-nest-egg {
  position:absolute;
  width:11%; height:16%; left:12%; top:45%;
  object-fit:contain;
}
.poultry-care, .poultry-brood-actions {
  display:flex; gap:6px; align-items:stretch; margin-top:7px;
}
#panel .poultry-care .hs-action, #panel .poultry-brood-actions .hs-action {
  flex:1; min-width:0; min-height:38px; margin:0; padding:5px 4px;
  border-radius:6px; font:650 14px/1.2 var(--font); overflow-wrap:anywhere;
}
#panel .poultry-care [data-farm-act="collect"]:enabled {
  color:#68471f; border-color:#b29c70; background:#f5ead1;
}
.poultry-pantry {
  display:flex; flex-wrap:wrap; align-items:center; gap:3px 12px;
  min-height:30px; margin:4px 0 8px;
}
.poultry-pantry > span {
  display:inline-flex; align-items:center; gap:4px; white-space:nowrap;
  color:#515d46; font-size:13px;
}
.poultry-pantry img { width:16px; height:19px; object-fit:contain; }
.poultry-pantry b { color:#344735; font-weight:700; }
.poultry-brood {
  border-top:1px solid #cdc8ae; padding-top:9px; padding-bottom:2px;
}
.poultry-brood-head { display:flex; align-items:baseline; justify-content:space-between; gap:5px; }
.poultry-capacity { color:#687259; white-space:nowrap; font:12px/1.3 var(--font); }
.poultry-progress {
  display:block; width:100%; height:5px; margin:7px 0 0; border:0;
  border-radius:4px; background:#e2ddc6; accent-color:#84946a; overflow:hidden;
  appearance:none;
}
.poultry-progress::-webkit-progress-bar { background:#e2ddc6; border-radius:4px; }
.poultry-progress::-webkit-progress-value { background:#84946a; border-radius:4px; }
.poultry-progress::-moz-progress-bar { background:#84946a; }
#panel .poultry-brood-actions .poultry-night {
  flex:0 1 auto; min-width:68px; margin-left:auto;
  color:#42553a; background:#edf0dd; border-color:#b2b99b;
}
@media (orientation:portrait) {
  #viewport #panel.inset-menu[data-panel="coop"] {
    top:42%; max-height:calc(100% - 42% - var(--folio-action-bottom) - 43px);
    left:3%; right:3%; width:auto;
  }
}
@media (orientation:landscape) and (max-width:850px), (orientation:landscape) and (max-height:520px) {
  #viewport #panel[data-panel="coop"] {
    width:clamp(218px,34%,300px); right:1.4%; top:12%; max-height:74%;
  }
}
@container (max-width:305px) {
  .poultry-head { gap:7px; }
  .poultry-picture { width:60px; }
  .poultry-sheet h3 { font-size:16px; }
  .poultry-sheet p { margin-top:2px; font-size:12px; }
  .poultry-pantry { gap:2px 8px; margin-block:3px 5px; }
  .poultry-brood { padding-top:6px; }
  #panel .poultry-care .hs-action, #panel .poultry-brood-actions .hs-action {
    font-size:13px; min-height:34px;
  }
}
@media (orientation:portrait) and (max-height:690px) {
  #viewport #panel.inset-menu[data-panel="coop"] {
    max-height:calc(100% - 42% - var(--folio-action-bottom) - 39px);
  }
  .poultry-picture { width:52px; }
  .poultry-care { margin-top:4px; }
  .poultry-pantry { min-height:23px; margin-block:2px 4px; }
  .poultry-brood { padding-top:5px; }
  #panel[data-panel="coop"] .panel-feedback:not(:empty) { line-height:1.2; }
}

.poultry-market { border-top:1px solid #cdc8ae; margin-top:10px; padding-top:9px; }
.poultry-trade-row { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:6px 0; }
.poultry-trade-row + .poultry-trade-row { border-top:1px dotted #d6cfba; }
.poultry-trade-row strong, .poultry-trade-row small { display:block; line-height:1.35; }
.poultry-trade-row strong { color:#354831; font-size:14px; }
.poultry-trade-row small { color:#626850; font-size:12px; }
#panel .poultry-trade-row .hs-action { width:auto; min-height:35px; flex:none; padding:5px 9px; margin:0; font-size:13px; }
