.pet-sanctuary{position:relative;color:#274b4e;padding:34px 24px 28px;background:#edf0dc;isolation:isolate;border:1px solid #c5ad75;box-shadow:inset 0 0 0 4px #fff9;border-radius:18px;min-height:760px;text-align:center;font-family:'Microsoft Yahei',serif}.pet-sanctuary header{padding:25px 0 14px;text-shadow:0 1px #fff9}.pet-sanctuary h3{font-size:27px;margin:8px 0;color:#174c50;letter-spacing:4px}.pet-sanctuary header small{color:#a87e38;letter-spacing:2px}.pet-sanctuary header p{font-size:12px;margin:7px 0}.pet-sanctuary header b{display:inline-block;background:#173e43e8;color:#ffe8ad;padding:7px 16px;border-radius:20px;font-size:13px}.pet-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.pet-choice{min-width:0;position:relative;display:flex;align-items:center;flex-direction:column;border:1px solid #bf9a58!important;background:linear-gradient(#fff5dbe8,#eae6cdeb),url('pets/v34/growth-panel.png') center/cover!important;box-shadow:inset 0 0 15px #bb975428,0 3px 9px #27555a18;border-radius:13px;padding:8px 6px;color:#234d4c!important}.pet-choice canvas{width:100%;height:115px;object-fit:contain}.pet-choice strong{font-size:16px;margin-top:4px}.pet-choice small{font-size:11px;margin:5px 0;color:#577471}.pet-choice span{font-size:12px;color:#825723;font-weight:bold}.pet-choice em{font-style:normal;font-size:10px;color:#faf2d4;background:#33675f;padding:4px 10px;border-radius:12px;margin:7px 0 1px}.pet-sanctuary footer{font-size:11px;padding:12px 0;line-height:1.7}.pet-detail-open>header,.pet-detail-open>.pet-gallery,.pet-detail-open>footer{display:none}.pet-detail-open{padding:0!important;min-height:0!important;background:none!important}.pet-nurture{aspect-ratio:2/3;width:100%;position:relative;background:url('pets/v34/growth-panel.png') center/100% 100%;color:#355552;min-height:590px;text-align:center;border-radius:15px;overflow:hidden}.pet-nurture h3{position:absolute;top:5%;left:15%;width:70%;margin:0;font-size:24px;text-shadow:0 1px 4px #fffa}.pet-back{position:absolute;z-index:2;left:5%;top:3%;width:auto!important;padding:4px 8px!important;background:#184a4edb!important;border:1px solid #c8a769!important;color:#fff2c7!important;border-radius:10px;font-size:11px}.pet-preview-controls{position:absolute;top:10%;left:20%;width:60%;display:flex;justify-content:center;gap:5px}.pet-preview-controls button{padding:3px 8px!important;width:auto!important;min-height:0!important;font-size:11px;border:1px solid #c9b176!important;border-radius:12px;background:#fff0cbcc!important;color:#285755!important}.pet-preview-controls .selected{background:#285755!important;color:#ffe8bc!important}/* The display plinth is at 36–40% of the growth-panel artwork. Pin the preview floor to it. */
.pet-big-preview{position:absolute;left:15%;top:auto;bottom:60%;width:70%;height:32%;object-fit:contain;pointer-events:none}.pet-growth-stats,.pet-growth-rules{position:absolute;top:50%;width:41%;height:28%;padding:12px 6px;box-sizing:border-box;font-size:11px;line-height:1.7;overflow:auto}.pet-growth-stats{left:5%}.pet-growth-rules{right:5%}.pet-growth-stats b,.pet-growth-rules b{display:block;font-size:14px;color:#21524e}.pet-growth-stats strong{display:block;color:#ad8334;letter-spacing:1px;margin:7px 0}.pet-growth-stats p,.pet-growth-rules p{margin:5px 0!important;font-size:11px!important;line-height:1.6!important}.pet-growth-rules small{font-size:10px;line-height:1.4}.pet-growth-actions{position:absolute;bottom:11%;left:7%;width:86%;display:flex;gap:5px;flex-wrap:wrap;justify-content:center}.pet-growth-actions button{flex:1;min-width:85px;width:auto!important;padding:7px 4px!important;font-size:11px!important;background:linear-gradient(#f0d69a,#b58c44)!important;color:#27494a!important;border:1px solid #a57f3e!important;border-radius:8px;font-weight:bold;line-height:1.3}.pet-growth-actions button:disabled{opacity:.5;cursor:not-allowed}.pet-detail-balance{position:absolute;bottom:5%;left:5%;width:90%;font-size:11px!important;color:#f8e2af!important;margin:0!important;text-shadow:0 1px 2px #1e4b46}.pet-detail-balance span{display:block;color:#ffe0d1}.profile-drawer .pet-sanctuary{margin-top:6px}.profile-drawer .pet-nurture{min-height:630px}
@media(max-width:400px){.pet-sanctuary{padding:25px 16px;min-height:710px}.pet-nurture h3{font-size:21px}.pet-gallery{gap:8px}.pet-choice canvas{height:100px}.pet-nurture{min-height:620px}.pet-growth-actions button{font-size:10px!important}}
.pet-sanctuary>header{position:relative!important;inset:auto!important;display:block!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;background:none!important;z-index:auto!important;text-align:center!important;transform:none!important;border:0!important;box-shadow:none!important}.pet-sanctuary>header:before,.pet-sanctuary>header:after{display:none!important;content:none!important}.pet-growth-stats strong{font-size:17px!important;line-height:1.4}

.pet-choice canvas{height:140px}.pet-choice strong{font-size:18px}.pet-choice small,.pet-choice span{font-size:13px}.pet-choice em{font-size:12px}

.pet-sanctuary.pet-detail-open>header{display:none!important}

/* Fixed-ratio scenery stays proportional as the pet list grows. */
.pet-sanctuary::before{content:'';position:absolute;inset:0 0 auto;aspect-ratio:3/2;z-index:-1;border-radius:inherit;background:linear-gradient(180deg,#edf0dc00 52%,#edf0dc 100%),url('pets/shop-v2/sanctuary-garden.png') center top/cover no-repeat;pointer-events:none}.pet-sanctuary>header{padding-top:18px!important}.pet-sanctuary header p{color:#315955;text-shadow:0 1px 2px #ffffffe0}.pet-sanctuary .pet-gallery{margin-bottom:0}
