#shisan-pet{position:fixed;z-index:180;width:220px;user-select:none;font:14px/1.5 system-ui,'Microsoft YaHei',sans-serif;color:#425773;filter:drop-shadow(0 10px 12px #263c5920)}
#shisan-pet[hidden],.pet-restore[hidden],#shisan-pet [hidden]{display:none!important}
#shisan-pet .pet-character{all:unset;display:block;width:100%;aspect-ratio:3/4;cursor:grab;touch-action:none;border-radius:35%}
#shisan-pet .pet-character:focus-visible{outline:2px solid #6b96c7;outline-offset:-10px}
#shisan-pet[data-state=drag] .pet-character{cursor:grabbing}
#shisan-pet canvas{display:block;width:100%;height:100%;pointer-events:none}
#shisan-pet .pet-bubble{position:absolute;bottom:calc(100% - 10px);right:0;box-sizing:border-box;max-width:min(240px,85vw);width:min(100%,200px);background:#fffefa;border:1px solid #d8e2ec;padding:11px 14px;border-radius:16px 16px 4px 16px;box-shadow:0 4px 15px #27456610;font-size:13px;pointer-events:none}
#shisan-pet .pet-tools{display:flex;justify-content:center;gap:6px;position:absolute;bottom:0;left:0;right:0}
#shisan-pet .pet-tools button,.pet-restore{border:1px solid #c8d7e7;background:#fffefa;color:#425773;border-radius:18px;min-width:32px;height:30px;cursor:pointer;font-size:15px}
#shisan-pet .pet-tools button:hover,.pet-restore:hover{background:#eaf2fc}
#shisan-pet .pet-settings{position:absolute;right:0;bottom:35px;background:#fffefa;border:1px solid #d8e2ec;padding:16px;border-radius:16px;box-shadow:0 6px 28px #283c5320;box-sizing:border-box;width:min(100%,250px)}
#shisan-pet .pet-settings label{display:block;margin:12px 0}#shisan-pet .pet-settings input[type=range]{width:100%;accent-color:#668db7}
#shisan-pet .pet-settings button{border:1px solid #ccd9e7;background:#f1f6fb;border-radius:8px;padding:8px;color:inherit;cursor:pointer}#shisan-pet .pet-settings a{display:block;margin-top:12px;color:#476c97;font-size:12px}
.pet-restore{position:fixed;right:14px;bottom:20px;z-index:180;padding:0 14px;font:13px system-ui}
.home-hero .hero-art{display:none!important}.home-hero .hero-copy{max-width:100%}
@media(max-width:700px){.pet-restore{bottom:80px}#shisan-pet .pet-bubble{font-size:12px;width:min(100%,160px)}}

/* 一期：保留已有桌宠的 canvas 动作与拖动，新增贴纸层及面板。 */
#shisan-pet .pet-character{position:relative}
#shisan-pet .pet-overlay{position:absolute;inset:0;pointer-events:none;overflow:visible}
#shisan-pet .pet-sticker{position:absolute;max-width:none;height:auto;pointer-events:none;filter:drop-shadow(0 1px 1px #253b2630)}
#shisan-pet .pet-settings{width:350px;max-width:calc(100vw - 16px);z-index:12;max-height:min(72vh,600px);overflow-y:auto;border-color:#c9d8c4;background:rgba(255,253,245,.98);color:#3a5a45;box-shadow:0 10px 28px #29443126}
#shisan-pet .pet-settings strong{font:600 16px 'Songti SC',serif}
#shisan-pet .pet-upgrade{border-top:1px solid #dfe3d4;margin-top:12px;padding-top:12px}
#shisan-pet .pet-vitals{display:grid;gap:5px;font-size:12px;color:#54715a}
#shisan-pet .pet-vitals b{font-family:Georgia,serif;font-variant-numeric:tabular-nums}
#shisan-pet .pet-meter{height:7px;border-radius:10px;background:#e5eadb;overflow:hidden}
#shisan-pet .pet-meter>i{display:block;width:0;height:100%;background:#507c5d;border-radius:inherit;transition:width .2s}
#shisan-pet .pet-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0 10px}
#shisan-pet .pet-settings .pet-tabs button,#shisan-pet .pet-settings .pet-redeem button,#shisan-pet .pet-settings .pet-shop-link{background:#f2f4ea;border:1px solid #cbd9c8;border-radius:999px;color:#456b55;padding:8px;cursor:pointer}
#shisan-pet .pet-settings .pet-tabs button.selected{background:#3f6650;color:white}
#shisan-pet .pet-tab-content{max-height:175px;overflow-y:auto;font-size:12px}
#shisan-pet .pet-tab-content p{color:#758474;font-size:12px}
#shisan-pet .pet-inventory-item,#shisan-pet .pet-shop-item{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #e2e6d9}
#shisan-pet .pet-inventory-item>span,#shisan-pet .pet-shop-item>span{min-width:0;overflow-wrap:anywhere}
#shisan-pet .pet-inventory-item button{padding:5px 9px;font-size:12px;border-color:#b5c8b5;background:#eff5ea;border-radius:12px}
#shisan-pet .pet-inventory-item button:disabled,#shisan-pet button:disabled{cursor:not-allowed;opacity:.5}
#shisan-pet .pet-shop-top{font:600 13px Georgia,'Songti SC',serif;color:#3a6650;margin-bottom:8px}
#shisan-pet .pet-shop-link{width:100%;margin:10px 0 2px}
#shisan-pet .pet-redeem{display:flex;margin-top:12px}#shisan-pet .pet-redeem button{flex:1}
@media(max-width:700px){#shisan-pet .pet-settings{max-height:58vh;width:min(330px,calc(100vw - 16px))}}

#shisan-pet .pet-owned-title{display:flex;align-items:center;gap:7px;min-width:0;overflow-wrap:anywhere}
#shisan-pet .pet-owned-title img{width:31px;height:31px;object-fit:contain;border-radius:8px;background:#f4eee2;flex:none}
#shisan-pet .pet-bond-caption b{color:#416d52}
#shisan-pet .pet-activity-note{font-size:11px;color:#81907d;margin:9px 0 0}
