/* Animal welfare center: existing artwork, server-owned progress, compact local controls. */
body #sceneCenter>.garden-center-dashboard{position:relative;z-index:5;display:flex;flex:1;flex-direction:column;gap:10px;min-height:0;width:min(540px,calc(100% - 24px));margin:4px auto;padding:10px;background:rgba(255,255,255,.76);border:1px solid #fff;border-radius:16px;overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
body .garden-center-native{display:flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:8px 12px;border:1px solid #fff;border-radius:10px;color:#263b32;background:rgba(255,255,255,.65);font:inherit;line-height:1.35;cursor:pointer;touch-action:manipulation}
body .garden-center-native:disabled{opacity:.5;cursor:default}
body .garden-center-native:focus-visible{outline:3px solid #537b68;outline-offset:2px}
body #centerSpecies{display:grid;grid-template-columns:1fr 1fr;gap:8px}
body #centerSpecies button{min-height:58px;padding:4px 10px}
body #centerSpecies .animal-sprite{width:52px;height:46px;flex:none}
body #centerSpecies [aria-pressed=true]{background:#e1ecdf;border-color:#557c68;box-shadow:inset 0 0 0 1px #557c68}
body .garden-center-dashboard article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:center;min-width:0;border-top:1px solid #94b19d66;padding-top:8px}
body .garden-center-dashboard article>h3{grid-column:1;margin:0;font-size:16px;line-height:1.4}
body .garden-center-dashboard article>p{grid-column:1;margin:0;font-size:12px;line-height:1.4}
body .garden-center-dashboard article>button{grid-column:2;grid-row:1/span 3;max-width:180px}
body .garden-center-dashboard article>button>img{width:36px;height:36px;object-fit:contain;flex:none}
body .garden-center-dashboard article>button>span{font-size:13px}
body #centerPetSection{display:flex;flex-direction:column;align-items:stretch;gap:6px}
body #centerPetSection>h3{margin:0;font-size:16px}
body #centerPetAnimals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
body #centerPetAnimals button{min-width:0;padding:4px;flex-direction:column;gap:2px}
body #centerPetAnimals .animal-sprite{width:100%;height:60px;min-width:0;flex:none}
body #centerPetAnimals button>span{font-size:10px;line-height:1.2;overflow-wrap:anywhere}
body #centerPetAnimals .garden-center-owned-pet{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:8px}
body #centerPetAnimals .garden-center-owned-pet .animal-sprite{width:96px;height:80px}
body #gardenCenterQuiz{position:fixed;inset:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));height:fit-content;width:min(540px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom)));margin:auto;padding:12px;border:1px solid #fff;border-radius:16px;background:#eff3e9;color:#263b32;overflow:hidden}
body #gardenCenterQuiz[open]{display:flex;flex-direction:column;gap:10px}
body #gardenCenterQuiz::backdrop{background:#17241fd1}
body #gardenCenterQuiz>header{display:flex;align-items:center;gap:10px;flex:none}
body #gardenCenterQuiz h2{flex:1;margin:0;font-size:18px;line-height:1.35}
body #centerQuizProgress{white-space:nowrap;font-size:14px}
body #centerQuizClose{width:44px;flex:none;padding:8px}
body #centerQuizClose img{width:24px;height:24px}
body #centerQuizBody{display:flex;flex-direction:column;gap:10px;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:2px}
body #centerQuizPrompt{margin:0;font-size:16px;line-height:1.6}
body #centerQuizChoices{display:flex;flex-direction:column;gap:8px}
body #centerQuizChoices button{justify-content:flex-start;text-align:left;font-size:15px;line-height:1.5}
body #centerQuizFeedback{margin:0;font-size:12px;line-height:1.5;min-height:1.5em}
@media(max-height:700px) and (max-aspect-ratio:13/10){body #sceneCenter>.garden-center-dashboard{gap:6px;padding:8px}body #centerSpecies button{min-height:48px}body #centerSpecies .animal-sprite{height:40px}body #centerPetAnimals .animal-sprite{height:48px}body .garden-center-dashboard article>button{padding:5px 8px}body .garden-center-dashboard article>button>img{width:30px;height:30px}}
@media(max-height:480px) and (min-aspect-ratio:4/3){body #sceneCenter>.garden-center-dashboard{grid-column:2;grid-row:1/-1;width:100%;height:100%;margin:0;padding:8px;gap:6px}body #centerSpecies button{min-height:44px}body #centerSpecies .animal-sprite{height:36px}body #centerPetAnimals .animal-sprite{height:48px}}
/* The owned animal opens its care panel; no new house destination shortcut. */
body #housePetAnimal{position:fixed;left:var(--garden-door-x,50vw);top:var(--garden-door-y,75dvh);transform:translate(-50%,-50%);z-index:17;width:112px;height:112px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;pointer-events:none}
body #housePetAnimal[hidden]{display:none!important}
body #housePetButton.garden-center-native{width:96px;height:92px;min-height:44px;max-height:none;padding:0;border:0;background:transparent;border-radius:0;box-shadow:none;pointer-events:auto}
body #housePetButton>.animal-sprite{width:100%;height:100%}
body #housePetSummary{margin:0;padding:1px 5px;border-radius:5px;background:#ffffffb8;font-size:11px;line-height:16px;color:#263b32;white-space:nowrap}
body #housePetButton.is-interacting>.animal-sprite{animation:garden-pet-interact .35s ease-out}
@keyframes garden-pet-interact{0%,100%{transform:translateY(0)}45%{transform:translateY(-6px)}}
@media(prefers-reduced-motion:reduce){body #housePetButton.is-interacting>.animal-sprite{animation:none}}

body #centerAdoptArt .animal-sprite{width:44px;height:36px}
body #centerPetAnimals .animal-sprite{height:86px}
body #centerPetAnimals button>b{font-size:12px}
body #centerPetAnimals button>span{font-size:11px}
body #centerClinicOpen>img{width:36px;height:36px;object-fit:contain}
body #gardenPetDetail,body #gardenPetClinic{position:fixed;inset:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));height:fit-content;width:min(540px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom)));margin:auto;padding:12px;border:1px solid #fff;border-radius:16px;background:#eff3e9;color:#263b32;overflow:hidden}
body #gardenPetDetail[open],body #gardenPetClinic[open]{display:flex;flex-direction:column;gap:8px}
body #gardenPetDetail::backdrop,body #gardenPetClinic::backdrop{background:#17241fd1}
body #gardenPetDetail>header,body #gardenPetClinic>header{display:flex;align-items:center;gap:8px;flex:none}
body #gardenPetDetail h2,body #gardenPetClinic h2{flex:1;margin:0;font-size:18px;line-height:1.35}
body #gardenPetDetail>header button,body #gardenPetClinic>header button{width:44px;flex:none;padding:8px}
body #gardenPetDetail>header img,body #gardenPetClinic>header img{width:24px;height:24px}
body .garden-pet-body{display:flex;flex-direction:column;align-items:center;gap:8px;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:2px}
body .garden-pet-body>p{margin:0;font-size:13px;line-height:1.4}
body #petDetailArt .animal-sprite,body #petClinicArt .animal-sprite{width:150px;height:120px;display:block}
body .garden-pet-stats{display:grid;grid-template-columns:auto minmax(80px,1fr) 30px;align-items:center;gap:7px 8px;width:100%;font-size:13px}
body .garden-pet-stats meter{width:100%;height:22px}
body .garden-pet-stats output{text-align:right;font-variant-numeric:tabular-nums}
body .garden-pet-care,body .garden-pet-clinic-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}
body .garden-pet-care button,body .garden-pet-clinic-actions button{width:100%;min-width:0;min-height:72px;flex-direction:column;gap:3px;padding:6px;font-size:12px}
body .garden-pet-care img,body .garden-pet-care .sprite,body .garden-pet-clinic-actions img{width:36px;height:36px;object-fit:contain}
body .garden-pet-clinic-actions>div{display:flex;flex-direction:column;align-items:center;gap:4px}
body #gardenPetReturnVisual{position:fixed;inset:var(--garden-appbar-height) 0 var(--garden-safe-bottom);z-index:45;pointer-events:none;overflow:hidden}
body #gardenPetReturnVisual[hidden]{display:none!important}
body #gardenPetReturnVisual>.garden-pet-return-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.94}
body #gardenPetReturnAnimal{position:absolute;left:50%;top:65%;width:150px;height:150px;transform:translate(-50%,-50%)}
body #gardenPetReturnAnimal .animal-sprite{width:100%;height:100%}
body #gardenPetReturnVisual.is-returning #gardenPetReturnAnimal{animation:garden-center-return .7s ease-in both}
body #gardenPetReturnVisual.is-lifespan>.garden-pet-return-backdrop{display:none}
@keyframes garden-center-return{from{transform:translate(-50%,-30%) scale(1);opacity:1}to{transform:translate(-50%,-80%) scale(.45);opacity:0}}
@media(prefers-reduced-motion:reduce){body #gardenPetReturnVisual.is-returning #gardenPetReturnAnimal{animation:none}}
body #centerPetSection>.garden-center-native{align-self:center;min-width:136px}
body #fieldCropBook{width:44px;height:44px;min-height:44px;padding:8px;flex:none}
body #fieldCropBook img{width:26px;height:26px}
body #gardenCropBook{position:fixed;inset:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));height:fit-content;width:min(540px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom)));margin:auto;padding:12px;border:1px solid #fff;border-radius:16px;background:#eff3e9;color:#263b32;overflow:hidden}
body #gardenCropBook[open]{display:flex;flex-direction:column;gap:8px}
body #gardenCropBook::backdrop{background:#17241fd1}
body #gardenCropBook>header{display:flex;align-items:center;gap:8px;flex:none}
body #gardenCropBook h2{flex:1;margin:0;font-size:18px}
body #cropBookClose{width:44px;min-height:44px;padding:8px;flex:none}
body #cropBookClose img{width:24px;height:24px}
body #cropBookCount,body #cropBookPage{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
body #cropBookSeasons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;flex:none}
body #cropBookSeasons button{padding:4px;min-width:0}
body #cropBookSeasons [aria-pressed=true]{background:#dce9d8;border-color:#557c68}
body #cropBookRows{display:flex;flex-direction:column;gap:8px;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
body .garden-crop-book-row{display:grid;grid-template-columns:74px repeat(6,minmax(0,1fr));gap:4px;align-items:center;min-height:70px}
body .garden-crop-book-label{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:0}
body .garden-crop-book-label canvas{width:48px;height:48px}
body .garden-crop-book-label strong{font-size:10px;line-height:1.2;overflow-wrap:anywhere;text-align:center}
body .garden-crop-book-quality{display:grid;place-items:center;min-width:0;min-height:34px;border-radius:6px;background:#e0e6dd;color:#647260;font-size:10px}
body .garden-crop-book-quality.discovered{background:#c9e0bc;color:#27422c;font-weight:700}
body .garden-crop-book-pages{display:flex;justify-content:center;align-items:center;gap:18px;flex:none}
body .garden-crop-book-pages button{width:44px;padding:4px;font-size:24px}
