.pet-page{--pet-ink:#f3ecdf;--pet-muted:#c6bfd0;--pet-gold:#e4c68e;max-width:1120px;margin-inline:auto;color:var(--pet-ink)}
.pet-page .panel{border:1px solid #c5b08f29;border-radius:28px;background:linear-gradient(135deg,#252331,#181923);box-shadow:0 18px 60px #00000012;overflow:hidden}
.pet-sanctuary{padding:clamp(18px,3vw,36px);background:radial-gradient(ellipse at 22% 42%,#6f644b29,transparent 65%),linear-gradient(135deg,#262330,#171923)!important;isolation:isolate;overflow:clip!important}
.pet-sanctuary[data-skin=rare]{background:radial-gradient(ellipse at 20% 45%,#8f73ad22,transparent 65%),linear-gradient(135deg,#272433,#181923)!important}
.pet-sanctuary[data-skin=legendary]{background:radial-gradient(ellipse at 20% 45%,#a5916026,transparent 65%),linear-gradient(135deg,#282736,#171923)!important;box-shadow:0 18px 60px #0002,inset 0 1px #e4c68e12}
.pet-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.pet-heading .eyebrow,.pet-welcome .eyebrow,.pet-growth .eyebrow{font-size:10px;letter-spacing:.2em;color:#d7bd90}
.pet-name-row{display:flex;align-items:center;gap:10px;min-width:0}.pet-name-row h1{font-size:clamp(34px,4.8vw,60px);line-height:1.1;font-weight:500;letter-spacing:-.025em;margin:8px 0 0;overflow-wrap:anywhere}.pet-edit-name{width:40px;height:40px;flex:none;border:1px solid #cdbb9626;border-radius:50%;background:#ffffff04;color:#d3c2a6;display:grid;place-items:center;cursor:pointer}.pet-edit-name .icon{width:17px;height:17px}.pet-edit-name:hover{background:#e6c48b13}
.pet-discount{text-align:center;flex:none;padding:12px 16px;border-radius:18px;background:#d4bb8010}.pet-discount b{display:block;font-size:32px;line-height:1.1;font-weight:650;color:var(--pet-gold)}.pet-discount span{display:block;font-size:11px;color:#c8baa2;margin-top:5px}
.pet-layout{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);align-items:start;gap:clamp(20px,4vw,48px)}.pet-visual{position:sticky;top:24px;align-self:start;min-width:0;text-align:center;background:radial-gradient(ellipse at 50% 50%,#33303c80,transparent 65%);border-radius:24px}.pet-stage-label{position:relative;z-index:1;display:inline-block;border-radius:30px;padding:7px 12px;color:#d8cbb5;font-size:11px;border:1px solid #ddc8a524;margin-top:4px}
.pet-model{position:relative;aspect-ratio:1;min-height:0;width:100%;background-image:var(--pet-fallback);background-size:200% 200%;background-position:0 0;filter:drop-shadow(0 14px 20px #0003)}.pet-model[data-mood=happy]{background-position:100% 0}.pet-model[data-mood=sad]{background-position:0 100%}.pet-model[data-mood=offended]{background-position:100% 100%}.pet-model:has([data-avatar-status=ready]){background-image:none}.pet-model .avatar-render{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-width:none!important;aspect-ratio:auto!important;border-radius:0!important;border:0!important;background:none!important;overflow:hidden}.pet-model canvas{width:100%!important;height:100%!important;pointer-events:none}.pet-model [data-avatar-status=error]{display:none}.pet-model .portrait-skeleton{position:absolute;inset:12%;border-radius:45%;background:linear-gradient(110deg,#ffffff03 25%,#ffffff0a 45%,#ffffff03 65%);background-size:200% 100%;animation:pet-placeholder 1.6s ease-in-out infinite}.pet-model [data-avatar-status=ready] .portrait-skeleton{display:none}.pet-dust{position:absolute;top:25%;left:18%;color:#e5d0a8;font-size:23px;opacity:0;pointer-events:none}
.pet-mood{color:#d5cbd6;font-size:13px;line-height:1.5;margin:2px 12px 15px;text-wrap:balance}.pet-info{min-width:0}.pet-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 18px}.pet-metrics>div{padding:13px 16px;background:#ffffff04;border-radius:15px}.pet-metrics dt{font-size:11px;color:#c6becf;margin-bottom:5px}.pet-metrics dd{font-size:27px;line-height:1.2;color:#ebd3aa;margin:0;font-variant-numeric:tabular-nums}.pet-metrics dd small{font-size:11px;color:#c4bacb;margin-left:5px}
.pet-bond>div{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#d3c7d3}.pet-bond b{font-weight:500;color:#d8c49d;white-space:nowrap}.pet-bond progress{display:block;width:100%;height:6px;border:0;overflow:hidden;border-radius:8px;margin:8px 0 20px;accent-color:#d4b77e;background:#ffffff12}.pet-bond progress::-webkit-progress-bar{background:#ffffff12;border-radius:8px}.pet-bond progress::-webkit-progress-value{border-radius:8px;background:linear-gradient(90deg,#b59364,#e5cc97);transition:width .35s ease}
.pet-page .pet-feed-button{min-height:54px;width:100%;display:flex;align-items:center;justify-content:center;gap:10px;font-size:16px;border-radius:15px;background:linear-gradient(125deg,#d8bd86,#ad8752);border:1px solid #edcf9788;color:#211d1f;box-shadow:0 6px 20px #bb93521c;font-weight:650}.pet-feed-button .icon{width:21px;height:21px}.pet-page .pet-feed-button:disabled{background:#d7bf8c0f;border-color:#c4ad7c30;color:#d1c6ae;box-shadow:none;opacity:1;cursor:default}.pet-next-feeding{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 10px;margin:12px 0 16px;font-size:11px;color:#c3baca}.pet-next-feeding time{font-size:15px;font-variant-numeric:tabular-nums;font-weight:550;color:#ead7b1;white-space:nowrap}.pet-next-feeding small{grid-column:1/-1;color:#aaa3b5;font-size:10px}
.pet-food{display:flex;align-items:center;gap:12px;padding:13px 15px;border:1px solid #d3b87920;border-radius:14px;background:#d3b87905;margin:14px 0 22px}.pet-food strong{display:block;font-size:13px;font-weight:600;color:#e7d8bf}.pet-food p{font-size:11px;color:#cec3d0;line-height:1.65;margin:4px 0}.pet-food small{display:block;font-size:11px;line-height:1.6;color:#d6c5a5}.pet-food-symbol{font-size:30px;color:#dbbd86;line-height:1}.pet-food.special{display:block}.pet-food .button{display:flex;align-items:center;justify-content:space-between;font-size:12px;padding:10px 12px;margin-top:12px;width:100%;min-height:42px}.pet-food .icon{width:17px;height:17px}.pet-food.is-low{background:#b27b3b10;border-color:#c7985b48}.pet-food.is-low small{color:#efd3a5}
.pet-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.pet-section-heading h2,.pet-section-heading h3{font-weight:500;margin:5px 0 0}.pet-section-heading h2{font-size:clamp(23px,3vw,32px)}.pet-section-heading h3{font-size:20px}.pet-section-heading>span{font-size:10px;color:#bfb6c9;text-align:right;max-width:160px;line-height:1.5}.pet-customization{border-top:1px solid #e1cead1a;padding-top:20px}.pet-category-tabs{display:grid;grid-template-columns:1fr 1fr 1fr;gap:3px;padding:4px;border-radius:13px;background:#080b142f;margin-bottom:15px}.pet-category-tabs button{min-width:0;min-height:44px;font-size:11px;line-height:1.3;color:#d0c5d4;border:1px solid transparent;border-radius:10px;background:transparent;cursor:pointer;padding:8px 5px}.pet-category-tabs button[aria-selected=true]{border-color:#d8bc824f;color:#f1d9ad;background:#d8bc8210}.pet-outfit-options{min-height:118px}.pet-colors{display:flex;flex-wrap:wrap;gap:10px;padding:6px 3px}.pet-colors button{border-radius:50%;width:42px;height:42px;min-width:42px;border:4px solid #25232e;padding:0;display:grid;place-items:center;background:var(--swatch);color:#26202a;box-shadow:0 0 0 1px #ffffff26;cursor:pointer;transition:box-shadow .18s,transform .18s}.pet-colors button[aria-pressed=true]{box-shadow:0 0 0 2px #e3c891,0 0 18px #e3c89122}.pet-colors button[data-value=black],.pet-colors button[data-value=midnight]{color:#fff1db}.pet-option-name{font-size:11px;color:#d1c1a8;margin:10px 0 0;min-height:18px}.pet-accessories{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pet-accessories button{position:relative;display:flex;align-items:center;gap:8px;min-width:0;text-align:left;background:#11131c5c;border:1px solid #b5afbe24;border-radius:13px;padding:10px;min-height:77px;color:#e9dfd3;cursor:pointer}.pet-accessories button[aria-pressed=true]{border-color:#d8bc8299;background:#d8bc8210}.pet-item-emblem{font-size:24px;color:#dfc38e;flex:none;display:grid;place-items:center;width:30px}.pet-item-emblem[data-item=magic]{color:#a5d7e3;text-shadow:0 0 8px #6bc3de60}.pet-item-emblem[data-item=velvet]{color:#e18b9a}.pet-item-emblem[data-item=flowers]{color:#d4b4de}.pet-accessories b{font-size:11px;font-weight:550;line-height:1.45;display:block}.pet-accessories small{display:block;font-size:9px;line-height:1.4;color:#c4b9cd;margin-top:4px}.pet-item-check{position:absolute;top:4px;right:7px;font-size:10px;color:#e2c88f}.pet-outfit-actions{display:flex;align-items:center;gap:12px;margin-top:16px}.pet-outfit-actions .button{font-size:12px;min-height:44px;padding:10px 15px}.pet-outfit-actions small{font-size:10px;color:#bfb7c8}.pet-outfit-actions .text-button{font-size:11px}.pet-draft-note{display:block;min-height:16px;font-size:10px;color:#dbc6a2;margin-top:8px}
.pet-growth{padding:clamp(18px,3vw,30px);margin-top:20px}.pet-growth-track{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.pet-growth-track>button{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px 8px 12px;border:1px solid #d5c6ae20;border-radius:18px;background:#ffffff02;cursor:pointer;color:#e0d4c5;min-width:0}.pet-stage-seal{display:grid;place-items:center;border-radius:50%;width:38px;height:38px;border:1px solid #c5af8035;color:#cbb898;font-size:19px;margin-bottom:10px}.pet-growth-track b{font-size:12px;font-weight:500;color:#cfc4d4}.pet-growth-track strong{font-size:24px;font-weight:600;color:#dcc18e;margin-top:4px}.pet-growth-track small{font-size:10px;line-height:1.4;color:#c6bacd;margin-top:5px}.pet-stage-preview{display:flex;align-items:center;gap:5px;color:#cbb793;font-size:9px;margin-top:14px}.pet-stage-preview .icon{width:14px;height:14px}.pet-growth-track .is-reached{background:#dcc18e08;border-color:#d7b67c45}.is-reached .pet-stage-seal{color:#e5c98f;background:#d7b67c10}.pet-growth-note{font-size:11px;line-height:1.7;color:#c2b7ca;margin:16px 0 0}
.pet-reminders{padding:18px 22px;margin-top:20px}.pet-reminders label{display:flex;align-items:center;gap:14px;cursor:pointer}.pet-reminders input{width:20px;height:20px;flex:none;accent-color:#d3b47c}.pet-reminders b{display:block;font-size:12px;font-weight:550;color:#ece1d4}.pet-reminders small{display:block;font-size:11px;line-height:1.6;color:#bfb6c9;margin-top:4px}.pet-world-rules{padding:18px 22px;margin-top:16px;font-size:12px;line-height:1.8;color:#cbc0d1}.pet-world-rules summary{cursor:pointer;color:#e1d0ae;font-size:15px}.pet-world-rules summary>span{font-size:10px;color:#bfb2c7;float:right;margin-top:3px}.pet-world-rules p{margin:12px 0}
.pet-welcome{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:35px}.pet-welcome-scene{min-width:0}.pet-welcome h1{font-size:clamp(29px,4vw,44px);line-height:1.15;margin:14px 0}.pet-welcome p{font-size:13px;line-height:1.8;color:#cfc5d5}.pet-welcome small{font-size:11px;line-height:1.6;color:#c0b4c9}.pet-welcome form{display:grid;gap:10px;margin:20px 0 14px}.pet-welcome label{font-size:12px;color:#ded1bf}.pet-welcome input,.pet-dialog input:not([type=hidden]){box-sizing:border-box;width:100%;min-width:0;min-height:48px;background:#11141d;border:1px solid #c4ad7c50;color:#f3e6d2;border-radius:13px;padding:12px 14px;font-size:16px}.pet-welcome .button{min-height:48px;font-size:14px;display:flex;align-items:center;justify-content:center;gap:10px}
.pet-profile-link{display:block;padding:20px!important;margin:18px 0;border:1px solid #d1b98728!important;background:linear-gradient(125deg,#252331,#181923)!important;border-radius:22px!important;color:#e7dfd3}.pet-profile-title{display:flex;align-items:center;gap:14px}.pet-profile-link h3{font-size:24px;line-height:1.2;margin:4px 0;font-weight:500;overflow-wrap:anywhere}.pet-profile-link small{font-size:10px;color:#d6bd92}.pet-profile-link p{font-size:11px;line-height:1.7;color:#c3b9ca;margin:6px 0}.pet-mini-icon{display:grid;place-items:center;width:45px;height:45px;flex:none;border-radius:15px;background:#d2b77c0a;border:1px solid #d2b77c27;color:#d8c197}.pet-mini-icon .icon{width:27px;height:27px}.pet-profile-discount{font-size:23px;color:#dfc18a;margin-left:auto;flex:none}.pet-profile-link .button{font-size:12px;min-height:42px;padding:10px 14px;margin-top:10px;display:flex;align-items:center;justify-content:center;gap:10px}.pet-profile-link .pet-food{margin:12px 0;padding:12px}.pet-profile-link .pet-food strong{font-size:12px}.pet-profile-link .pet-food .text-button{font-size:11px}.pet-invitation{display:flex;align-items:center;gap:15px}.pet-invitation>div{flex:1;min-width:0}.pet-invitation h3{font-size:22px}.pet-invitation>.icon{flex:none}
.pet-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 28px));max-height:calc(100svh - 28px);overflow:auto;background:linear-gradient(130deg,#2c2735,#191b28);border:1px solid #c3aa7a66;border-radius:24px;padding:26px;color:#efe5d4;box-shadow:0 18px 80px #0008}.pet-dialog::backdrop{background:#080a16b8;backdrop-filter:blur(5px)}.pet-dialog h2{font-size:29px;line-height:1.2;margin:10px 0 20px}.pet-dialog .eyebrow{font-size:8px;letter-spacing:.15em;color:#cfb58c}.pet-dialog label{display:block;font-size:12px;color:#d3c4b0;margin-bottom:9px}.pet-dialog p{font-size:11px;line-height:1.6;color:#c6bbd1}.pet-dialog form>div{display:flex;gap:10px;margin-top:18px}.pet-dialog .button{font-size:12px;min-height:44px}.pet-stage-dialog{text-align:center}.pet-stage-dialog .pet-model{width:min(100%,300px);margin:auto}.pet-stage-dialog .button{width:100%;margin-top:10px}
.bottom-nav a[data-tab=pet]{position:relative}.bottom-nav .pet-feed-dot{position:absolute;top:10px;right:calc(50% - 19px);width:7px;height:7px;border:2px solid #1d1924;border-radius:50%;background:#e6c58b;box-shadow:0 0 8px #dcb8755c;pointer-events:none}.bottom-nav a[data-tab=pet]>.icon{stroke-width:1.55}
.pet-page button,.pet-profile-link a{touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform .14s ease,background-color .18s,border-color .18s}.pet-page button:active:not(:disabled){transform:scale(.98)}.pet-page button:focus-visible,.pet-page a:focus-visible{outline:2px solid #f0d6a3;outline-offset:4px}.pet-page [aria-busy=true]{opacity:.6;cursor:wait}.pet-just-fed .pet-dust{animation:pet-joy-spark 1.3s ease-out}.pet-has-left .pet-model{opacity:.23;filter:grayscale(.8)}
@keyframes pet-placeholder{to{background-position:-200% 0}}@keyframes pet-joy-spark{0%{opacity:0;transform:translateY(10px) scale(.6)}30%{opacity:1}100%{opacity:0;transform:translateY(-30px) scale(1.4)}}
@media(max-width:700px){.pet-heading{margin-bottom:16px;gap:10px}.pet-heading .eyebrow{font-size:9px}.pet-name-row h1{font-size:36px}.pet-discount{padding:10px 12px}.pet-discount b{font-size:26px}.pet-discount span{font-size:9px}.pet-layout{display:block}.pet-visual{position:sticky;top:calc(12px + var(--safe-top));z-index:2;margin:0 -8px 16px;background:radial-gradient(ellipse at 50% 40%,#37313ee6,#24232fe6 80%);backdrop-filter:blur(12px);border:1px solid #d9c5a014;box-shadow:0 10px 20px #11131a55}.pet-visual>.pet-model{height:clamp(210px,30svh,290px);aspect-ratio:auto;width:100%}.pet-stage-label{font-size:10px;margin-top:9px;padding:5px 10px}.pet-mood{font-size:11px;margin:0 12px 10px;min-height:17px}.pet-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.pet-metrics>div{padding:10px 7px}.pet-metrics dt{font-size:9px;line-height:1.3;min-height:23px}.pet-metrics dd{font-size:22px}.pet-metrics dd small{display:block;font-size:9px;margin:3px 0 0;line-height:1.3}.pet-food{margin-bottom:20px}.pet-colors{gap:12px}.pet-customization .pet-section-heading h3{font-size:22px}.pet-section-heading>span{font-size:9px}.pet-growth .pet-section-heading{align-items:start}.pet-growth-track{gap:7px}.pet-growth-track>button{padding:13px 6px}.pet-growth-track small{font-size:9px;min-height:25px}.pet-growth-track strong{font-size:23px}.pet-stage-preview{font-size:8px;gap:3px}.pet-world-rules summary>span{float:none;display:block;margin-top:0}.pet-welcome{grid-template-columns:1fr;gap:8px}.pet-welcome-scene{width:100%;max-width:260px;margin:auto}.pet-welcome h1{font-size:32px}.pet-welcome h1 br{display:none}.pet-welcome p{font-size:12px}.pet-reminders{padding:16px}.pet-profile-link .pet-food p{font-size:10px}.pet-profile-link h3{font-size:23px}}
@media(max-width:359px){.pet-sanctuary{padding:16px}.pet-name-row{gap:5px}.pet-name-row h1{font-size:29px}.pet-edit-name{width:34px;height:34px}.pet-discount{padding:8px}.pet-discount b{font-size:23px}.pet-heading .eyebrow{font-size:8px}.pet-metrics dd{font-size:20px}.pet-visual{top:calc(12px + var(--safe-top))}.pet-visual>.pet-model{height:210px}.pet-colors{gap:10px}.pet-colors button{width:40px;height:40px;min-width:40px}.pet-category-tabs button{font-size:10px}.pet-accessories button{padding:9px 7px;gap:5px}.pet-item-emblem{width:22px;font-size:21px}.pet-accessories b{font-size:10px}.pet-accessories small{font-size:8px}.pet-growth-track b{font-size:11px}.pet-stage-preview .icon{width:10px}.pet-profile-title{gap:10px}}
@media(prefers-reduced-motion:reduce){.pet-page *,.pet-profile-link *,.pet-dialog *{animation:none!important;transition:none!important}}
