.pet-page,.pet-page *{box-sizing:border-box}
.pet-page{max-width:1380px;margin:24px auto;padding:0 24px 72px;font-family:system-ui,-apple-system,"Microsoft YaHei",sans-serif;color:#1b2945}
.pet-shell{background:#fff;border:1px solid #e6eaf4;border-radius:26px;box-shadow:0 16px 48px #203c6a12;padding:28px}
.pet-header{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:154px;padding:28px 32px;border-radius:20px;background:linear-gradient(120deg,#415bd3 0%,#6570e9 58%,#8575d4 100%);color:#fff}
.pet-header:after{content:"✦";position:absolute;z-index:-1;right:17%;top:-70px;width:245px;height:245px;display:grid;place-items:center;border:1px solid #ffffff24;border-radius:50%;font-size:102px;color:#ffffff19;box-shadow:0 0 0 34px #ffffff0d,0 0 0 68px #ffffff09}
.pet-header-kicker{display:inline-block;margin-bottom:8px;padding:4px 9px;border:1px solid #ffffff55;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.08em}
.pet-header h1{margin:0;color:#fff;font-size:30px;line-height:1.2}.pet-subtitle{margin-top:9px;color:#edf0ff;font-size:14px}
.pet-header .pet-return{flex-shrink:0;background:#ffffff25;color:#fff;border:1px solid #ffffff60;box-shadow:none}.pet-header .pet-return:hover{background:#ffffff40;color:#fff}
.pet-preview-notice{margin:16px 0 0!important;background:#f5f7ff!important;color:#61708e!important;font-size:13px}.pet-preview-notice strong{color:#465da8}
.pet-tabs{display:flex;flex-wrap:wrap;gap:5px;margin:20px 0 26px;padding:6px;background:#f4f6fb;border:1px solid #ecf0f7;border-radius:15px}
.pet-tabs a{flex:1 1 auto;padding:10px 14px;border-radius:10px;color:#61708e;text-align:center;text-decoration:none;font-size:14px;font-weight:600;transition:background .18s,color .18s,box-shadow .18s}
.pet-tabs a:hover{background:#e8edfc;color:#455dc4}.pet-tabs a.active{background:#fff;color:#455fcf;box-shadow:0 3px 12px #334a9a1a}
.pet-page a:focus-visible,.pet-page button:focus-visible,.pet-page input:focus-visible,.pet-page select:focus-visible,.pet-reveal button:focus-visible{outline:3px solid #91abff;outline-offset:2px}
.pet-page [hidden]{display:none!important}.pet-content h2{margin:0;color:#1c2a48;font-size:22px;line-height:1.3}.pet-section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 18px}
.pet-section-heading p{margin:6px 0 0;color:#8190a8;font-size:13px;line-height:1.5}.pet-section-note{color:#91a0b8;font-size:12px}.pet-count-badge{display:inline-flex;align-items:center;padding:7px 12px;border-radius:999px;background:#f0f3ff;color:#586ed4;font-size:13px;font-weight:700}
.pet-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.pet-card{min-width:0;border:1px solid #e9edf6;border-radius:18px;padding:16px;background:#fff;box-shadow:0 5px 20px #263f7010;transition:transform .18s,border-color .18s,box-shadow .18s}
.pet-card:hover{border-color:#cdd8f7;box-shadow:0 10px 26px #263f701b}.pet-card h3{margin:12px 0 6px;color:#233452;font-size:18px;line-height:1.35}.pet-meta,.pet-small{font-size:13px;line-height:1.7;color:#7a8aa4}
.pet-pill{display:inline-block;padding:4px 9px;border-radius:999px;background:#eff2ff;color:#5d6fcd;font-size:12px;font-weight:700}.pet-active-label{color:#3caa86;font-size:12px;font-weight:700}
.pet-btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;margin:4px 5px 0 0;padding:8px 14px;border:1px solid transparent;border-radius:10px;background:#536be1;color:#fff;text-decoration:none;font-size:14px;font-weight:600;line-height:1.2;cursor:pointer;box-shadow:0 4px 12px #526be12b;transition:transform .16s,background .16s,box-shadow .16s}
.pet-btn:hover{background:#465dd1;color:#fff;transform:translateY(-1px);box-shadow:0 6px 16px #526be140}.pet-btn:active{transform:translateY(0)}.pet-btn.secondary{background:#f0f3ff;color:#5269c4;box-shadow:none}.pet-btn.secondary:hover{background:#e5ebff;color:#425abb}.pet-btn:disabled{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}
.pet-alert{border-radius:14px;padding:15px 18px;background:#f2f6ff;color:#465d86;margin:12px 0;line-height:1.7}.pet-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.pet-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:15px}.pet-actions .pet-btn{font-size:12px;min-height:34px;margin:0;padding:7px 10px}
.pet-input{border:1px solid #dbe4f1;border-radius:9px;padding:9px 12px;min-width:130px;font-size:14px}.pet-text-link{color:#6074d4;text-decoration:none;font-size:13px;font-weight:600}.pet-text-link:hover{color:#394fae}
.pet-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px}.pet-stats>div{padding:16px 18px;border:1px solid #edf0f7;border-radius:16px;background:#fafbff}.pet-stats span,.pet-stats small{display:block;color:#8a98af;font-size:12px}.pet-stats strong{display:block;margin:4px 0;color:#2c3e67;font-size:25px;line-height:1.2}.pet-stats small{margin-top:3px}
.pet-dashboard{display:grid;grid-template-columns:minmax(245px,.85fr) minmax(0,1.6fr);gap:20px}.pet-dashboard-panel{min-width:0;padding:20px;border:1px solid #edf0f7;border-radius:20px;background:#fcfdff}.pet-dashboard-panel>.pet-owned-card{max-width:350px}
.pet-card-top{display:flex;justify-content:space-between;align-items:center;min-height:27px}.pet-owned-visual{display:flex;justify-content:center;margin-top:10px;border-radius:14px;background:radial-gradient(circle at 50% 30%,#fff 0%,#f2f6ff 72%)}.pet-owned-visual .pet-art{width:min(100%,210px)}
.pet-owned-stats{display:flex;gap:9px;flex-wrap:wrap;margin-top:10px;color:#8795ad;font-size:12px}.pet-owned-stats span{padding:5px 8px;background:#f6f8fd;border-radius:8px}.pet-owned-stats strong{color:#4a5e84}.pet-exp-label{display:flex;justify-content:space-between;margin:14px 0 6px;color:#93a0b5;font-size:12px}
.pet-progress{height:8px;background:#edf1f8;border-radius:9px;overflow:hidden}.pet-progress span{display:block;height:100%;background:linear-gradient(90deg,#7186ef,#58c7b1);border-radius:9px;transition:width .3s}
.pet-milestones{display:grid;gap:9px}.pet-milestone{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border:1px solid #edf0f7;border-radius:13px;background:#fff}.pet-milestone>div{display:flex;gap:10px;align-items:center}.pet-milestone strong{font-size:14px;color:#344669}.pet-milestone>div span,.pet-milestone-state{color:#95a1b4;font-size:12px}.pet-milestone-state.claimed{color:#50a88d}.pet-milestone .pet-btn{min-height:31px;margin:0;padding:6px 12px;font-size:12px}
.pet-empty{display:grid;justify-items:center;gap:5px;padding:28px 18px;border:1px dashed #dce4f2;border-radius:16px;background:#fafbff;text-align:center;color:#8290a8}.pet-empty>span{font-size:34px}.pet-empty p{margin:3px 0;font-size:14px}.pet-empty .pet-btn{margin-top:8px}
.pet-catalog-heading{margin-bottom:18px}.pet-catalog-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}.pet-search{display:flex;align-items:center;gap:8px;min-width:220px;flex:1 1 260px;max-width:420px;padding:0 12px;border:1px solid #e2e8f3;border-radius:11px;background:#fff;color:#9caac0}.pet-search>span:first-child{font-size:23px;line-height:1}.pet-search:focus-within{border-color:#8da1ef;box-shadow:0 0 0 3px #6e83e51c}.pet-search input{width:100%;height:40px;border:0;outline:0;background:transparent;color:#2c3c5c;font-size:14px}.pet-search input:focus-visible{outline:0}.pet-search input::placeholder{color:#aab6c9}
.pet-catalog-tools select{height:42px;padding:0 34px 0 12px;border:1px solid #e2e8f3;border-radius:11px;background:#fff;color:#53627e;font-size:13px}.pet-catalog-tools .pet-section-note{margin-left:auto}
.pet-catalog-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}.pet-catalog-card{padding:13px}.pet-catalog-visual{position:relative;overflow:hidden;border-radius:14px;background:radial-gradient(circle at 50% 30%,#fff 0%,#f1f5ff 70%)}.pet-art{position:relative;display:block;width:100%;max-width:230px;aspect-ratio:1;border-radius:14px;background-color:transparent;background-repeat:no-repeat;background-size:400% 300%}.pet-catalog-art{max-width:none}
.pet-art.pet-has-frames{background-size:400% 200%}
.pet-art.pet-has-frames[data-pet-stage="1"]{animation:pet-first-frames 1.2s steps(1,end) infinite}
.pet-art.pet-has-frames[data-pet-stage="2"]{animation:pet-final-frames .8s steps(1,end) infinite}
.pet-art[data-pet-stage="2"]:before,.pet-art[data-pet-stage="2"]:after{position:absolute;z-index:1;pointer-events:none;color:#ffcf58;text-shadow:0 1px 1px #cc8a26,0 0 7px #ffe18b,0 0 14px #ffcb58;line-height:1}
.pet-art[data-pet-stage="2"]:before{content:"✦";top:12%;left:12%;font-size:22px;animation:pet-sparkle 1.8s ease-in-out infinite}
.pet-art[data-pet-stage="2"]:after{content:"✧";right:13%;bottom:18%;font-size:19px;animation:pet-sparkle 2.1s ease-in-out .7s infinite}
.pet-profile-art[data-pet-stage="2"]:before,.pet-rank-art[data-pet-stage="2"]:before{font-size:10px}.pet-profile-art[data-pet-stage="2"]:after,.pet-rank-art[data-pet-stage="2"]:after{font-size:9px}
@keyframes pet-first-frames{0%,100%{background-position-x:0%}25%{background-position-x:33.333333%}50%{background-position-x:66.666667%}75%{background-position-x:100%}}
@keyframes pet-final-frames{0%,100%{background-position-x:0%}25%{background-position-x:33.333333%}50%{background-position-x:66.666667%}75%{background-position-x:100%}}
.pet-art.pet-has-frames[data-pet-number="033"]{background-size:560% 280%;animation-name:pet-compact-frames}
@keyframes pet-compact-frames{0%,100%{background-position-x:7.205529%}25%{background-position-x:37.640312%}50%{background-position-x:68.075094%}75%{background-position-x:98.509877%}}
@keyframes pet-sparkle{0%,100%{opacity:.25;transform:scale(.7) rotate(-12deg)}50%{opacity:1;transform:scale(1.2) rotate(12deg)}}
.pet-catalog-stage{position:absolute;top:10px;left:10px;padding:4px 7px;border-radius:8px;background:#ffffffe6;color:#8a99b4;font-size:11px;font-weight:600}.pet-catalog-title{display:flex;align-items:center;justify-content:space-between;gap:6px}.pet-catalog-title h3{min-width:0;margin:13px 0 7px;overflow-wrap:anywhere}.pet-owned-badge{flex-shrink:0;color:#a0acc0;font-size:11px}.pet-owned-badge.owned{color:#40a987;font-weight:700}
.pet-catalog-meta{display:flex;gap:7px;align-items:center}.pet-rarity,.pet-element{display:inline-flex;align-items:center;padding:4px 8px;border-radius:7px;font-size:11px;font-weight:600}.pet-rarity-common{background:#f0f3f7;color:#718097}.pet-rarity-rare{background:#eaf7f4;color:#359c80}.pet-rarity-epic{background:#f0edff;color:#8265c9}.pet-rarity-legendary{background:#fff4df;color:#c78c31}.pet-element{background:#f4f7fd;color:#8795aa}
.pet-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.pet-duration-rules{display:flex;gap:6px;flex-wrap:wrap;margin:-4px 0 12px}.pet-egg-rarity{color:#6579cc;font-size:12px;font-weight:700}.pet-egg-hint{margin:0 0 18px;color:#98a4b7;font-size:12px}.pet-egg-grid{grid-template-columns:repeat(auto-fill,minmax(220px,270px))}.pet-egg-card{text-align:center}.pet-egg-visual{display:grid;place-items:center;min-height:155px;border-radius:14px;background:radial-gradient(circle at 50% 34%,#fff 0%,#eef3ff 75%)}
.pet-egg{font-size:76px;line-height:1.3;transform-origin:50% 85%}.pet-egg.incubating{animation:pet-rock 1.8s ease-in-out infinite}@keyframes pet-rock{0%,100%{transform:rotate(0)}25%{transform:rotate(-8deg)}75%{transform:rotate(8deg)}}.pet-timer{margin:6px 0 9px;color:#7383a1}.pet-egg-progress{margin:0 0 10px}.pet-egg-action{width:100%;margin:14px 0 0}
.pet-table{width:100%;border-collapse:collapse}.pet-table th,.pet-table td{text-align:left;padding:12px;border-bottom:1px solid #edf1f7}.pet-table-wrap{overflow-x:auto}.pet-rank-pet{display:flex;align-items:center;gap:8px}.pet-rank-art{width:46px;height:46px;flex:0 0 46px;border-radius:9px;background-color:#f2f7ff}
.pet-toast{position:fixed;right:24px;bottom:24px;z-index:20000;background:#263b67;color:#fff;padding:12px 18px;border-radius:11px;box-shadow:0 8px 24px #12213b38}.pet-profile-widget{display:flex;align-items:center;gap:12px;margin:14px 0;padding:12px 16px;border-radius:14px;background:#f1f5ff;color:#263f78}.pet-profile-widget span{font-size:13px;color:#647895}.pet-profile-widget .pet-profile-art{width:54px;height:54px;flex:0 0 54px;border-radius:10px}
.pet-reveal-backdrop{position:fixed;inset:0;z-index:25000;display:flex;align-items:center;justify-content:center;background:#102044ad;padding:20px}.pet-reveal{width:min(380px,100%);background:white;border-radius:24px;padding:26px;text-align:center;box-shadow:0 20px 70px #10204455}.pet-reveal h2{margin:0 0 12px;color:#314fa7}.pet-reveal h3{margin:12px 0 4px}.pet-reveal p{color:#657895}.pet-reveal-art{margin:auto;width:210px;max-width:100%;background-color:#f2f7ff}
@media(max-width:850px){.pet-dashboard{grid-template-columns:1fr}.pet-dashboard-panel>.pet-owned-card{max-width:100%}.pet-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.pet-page{padding:0 12px 48px;margin:12px auto}.pet-shell{padding:14px;border-radius:20px}.pet-header{min-height:132px;padding:22px 18px}.pet-header h1{font-size:25px}.pet-header:after{right:-30px}.pet-header .pet-return{font-size:12px;padding:8px}.pet-tabs{gap:3px;margin:16px 0 22px}.pet-tabs a{padding:9px 8px;font-size:12px}.pet-stats{gap:8px}.pet-stats>div{padding:12px}.pet-stats strong{font-size:21px}.pet-dashboard-panel{padding:14px}.pet-grid,.pet-catalog-grid,.pet-egg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pet-card{padding:12px}.pet-catalog-card{padding:10px}.pet-catalog-title h3{font-size:15px}.pet-catalog-tools .pet-search{min-width:100%;max-width:none}.pet-catalog-tools .pet-section-note{margin-left:0}.pet-egg-visual{min-height:120px}.pet-egg{font-size:60px}}
@media(max-width:350px){.pet-catalog-grid,.pet-egg-grid{grid-template-columns:1fr}.pet-header{align-items:flex-start;flex-direction:column}.pet-header .pet-return{margin-top:0}}
@media(prefers-reduced-motion:reduce){.pet-egg.incubating,.pet-art.pet-has-frames[data-pet-stage="1"],.pet-art.pet-has-frames[data-pet-stage="2"]{animation:none}.pet-art[data-pet-stage="2"]:before,.pet-art[data-pet-stage="2"]:after{animation:none;opacity:.65}.pet-card,.pet-btn,.pet-tabs a,.pet-progress span{transition:none}}
.pet-shop-icon{font-size:66px;line-height:1}.pet-shop-card .pet-catalog-visual{display:grid;place-items:center}.pet-shop-quantity{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.pet-shop-quantity label{display:flex;align-items:center;gap:6px}.pet-shop-quantity input{width:76px}.pet-shop-quantity span{display:flex;gap:4px}.pet-shop-quantity .pet-btn{padding:6px 8px}.pet-shop-admin-input{max-width:120px}.pet-shop-create input,.pet-shop-create select{max-width:220px}

.pet-loading{display:flex;align-items:center;justify-content:center;gap:12px;min-height:180px;color:#64759d;font-size:15px}.pet-loading-spinner{width:22px;height:22px;border:3px solid #dce4f8;border-top-color:#6177d8;border-radius:50%;animation:pet-loading-spin .8s linear infinite}@keyframes pet-loading-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.pet-loading-spinner{animation:none}}

.pet-empty-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.pet-starter-gallery{margin-top:24px}.pet-starter-gallery .pet-section-heading p{margin:5px 0 0}
