#town-pet-choice{position:absolute;inset:0;z-index:23;display:flex;align-items:center;justify-content:center;background:#15231ddd;padding:18px;box-sizing:border-box}
#town-pet-choice[hidden]{display:none}
#town-pet-choice section{width:min(790px,100%);max-height:100%;overflow:auto;box-sizing:border-box;padding:22px;background:#f0d7aa;color:#493126;border:8px solid #a96c36;border-image:var(--px-plaque-normal) 6 4 4 fill/12px 8px 8px stretch;box-shadow:0 12px 40px #0008;text-align:center}
#town-explorer #town-pet-choice h2{font-size:25px;line-height:1.3;margin:0 0 8px}
#town-pet-choice p{line-height:1.4;margin:8px 0 16px}
.pet-choice-tabs,.pet-choice-actions{display:flex;justify-content:center;gap:12px}
#town-explorer #town-pet-choice button{white-space:normal;line-height:1.25}
.pet-choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}
#town-explorer .pet-choice-grid button{min-width:0;display:flex;flex-direction:column;padding:8px 4px;gap:7px;background:#e3bf8f;border:3px solid #ac7b4b;border-image:none;text-align:center}
.pet-choice-grid canvas{display:block;width:100%;max-width:140px;height:auto;image-rendering:pixelated}
.pet-choice-grid strong{font-size:16px}
#town-explorer #town-pet-choice button[aria-pressed=true]{background:#f9e5b8;outline:3px solid #55794a;outline-offset:-3px}
#town-explorer #town-pet-choice button:disabled{opacity:.5;cursor:default}
.pet-choice-summary{font-weight:bold;min-height:22px}
#town-explorer .pet-choice-actions button{padding:9px 18px}
@media(max-width:650px){#town-pet-choice{padding:8px}#town-pet-choice section{padding:14px}.pet-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pet-choice-grid canvas{max-width:105px}.pet-choice-tabs,.pet-choice-actions{gap:8px}#town-explorer #town-pet-choice h2{font-size:21px}.pet-choice-grid strong{font-size:15px}}
