.pet-page{padding-top:36px;max-width:1190px}
.pet-page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:29px}
.pet-page-heading .pet-eyebrow{font-size:11px;letter-spacing:2px;color:#a1695b;margin-bottom:8px}
.pet-page-heading h1{font-size:35px;letter-spacing:-1px;font-weight:600}
.pet-page-heading h1+p{margin-top:10px;font-size:13px;color:var(--muted)}
.pet-sound-tools{display:flex;align-items:center;gap:12px;align-self:flex-end;margin-bottom:7px}
.pet-sound-tools>button{display:flex;gap:7px;align-items:center;font-size:12px;min-height:42px;white-space:nowrap}
.pet-sound-tools .icon{width:18px;height:18px;opacity:.65}
.pet-sound-tools label{width:68px;display:flex}
.pet-sound-tools input{width:68px;accent-color:var(--red);cursor:pointer}
.pet-sound-status{margin:0 0 16px;color:var(--red);font-size:12px;line-height:1.6}
.pet-layout{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:34px;align-items:start}
.pet-main{min-width:0}
.pet-room-scene{position:relative;isolation:isolate;height:460px;overflow:hidden;border-radius:20px;background:linear-gradient(180deg,#f2e9dd 0%,#f5eee5 67%,#ebddcd 67.2%,#f1e5d7 100%);border:1px solid #e7dbce;box-shadow:inset 0 0 45px #e4d4c12b}
.pet-room-scene:after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 0 1px 1px #fff9}
.pet-window-light{position:absolute;left:-48px;top:65px;width:206px;height:224px;opacity:.35;background:linear-gradient(90deg,transparent 48%,#cdbb9f 49%,#cdbb9f 51%,transparent 52%),linear-gradient(0deg,transparent 48%,#cdbb9f 49%,#cdbb9f 51%,transparent 52%),#fffdf5;transform:skewY(-16deg);box-shadow:4px 6px 24px #b49a7133;filter:blur(2px);pointer-events:none}
.pet-room-label{position:absolute;top:17px;left:25px;display:flex;align-items:center;gap:7px;font-size:11px;letter-spacing:1px;color:#897361;z-index:3;max-width:65%}
.pet-room-label [data-pet-room-title]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pet-room-label button{flex-shrink:0;min-height:32px;padding:4px 7px;border-radius:5px;font-size:10px;color:#956957;letter-spacing:0;text-decoration:underline;text-underline-offset:3px}
.pet-room-label button:hover{background:#ffffff70}
.pet-room-label .icon{width:17px;height:17px;opacity:.5}
.pet-scene-tag{position:absolute;right:24px;top:24px;font-size:10px;color:#ad9280;letter-spacing:1px}
.pet-rug{position:absolute;bottom:25px;left:50%;width:72%;height:84px;border-radius:50%;transform:translateX(-50%);background:#d7bcb1;border:5px solid #e0c8bc;box-shadow:0 4px 0 #c4aa9c3b,inset 0 0 0 1px #b99889,inset 0 0 0 7px #d7bcb1,inset 0 0 0 8px #c6a698;opacity:.72}
.pet-talk{position:absolute;top:70px;left:50%;transform:translateX(-50%);z-index:3;font-size:12px;color:#7d6254;white-space:nowrap;max-width:92%;padding:9px 17px;background:#fffdf8e8;border:1px solid #e2d6c7;border-radius:24px;box-shadow:0 3px 13px #785e4907}
.pet-talk:after{content:"";position:absolute;bottom:-6px;left:52%;width:10px;height:10px;transform:rotate(45deg);background:#fffdf8;border-right:1px solid #e2d6c7;border-bottom:1px solid #e2d6c7}
.pet-character{position:absolute;left:50%;bottom:26px;transform:translateX(-50%);width:min(calc(100% - 16px),520px);aspect-ratio:1;padding:0;border:0;background:none;z-index:2;cursor:pointer;touch-action:manipulation}
.pet-character:active:not(:disabled){transform:translateX(-50%)}
.pet-character canvas,.pet-character>.pet-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.pet-character>.pet-poster{inset:auto;left:var(--cat-poster-left);top:var(--cat-poster-top);width:var(--cat-poster-size);height:var(--cat-poster-size)}
.pet-character canvas{opacity:0}
.pet-page[data-ready=true] .pet-character canvas{opacity:1}
.pet-page[data-ready=true] .pet-poster{opacity:0}
.pet-load-label{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);font-size:11px;color:#8a6f5f;background:#fcf8efeb;padding:4px 12px;border-radius:15px;z-index:3;white-space:nowrap}
.pet-pause{position:absolute;bottom:16px;left:18px;z-index:4;display:flex;align-items:center;gap:4px;min-height:34px;font-size:10px;color:#877061;padding:6px 9px;border-radius:20px;background:#fffbf366}
.pet-pause .icon{width:12px;height:12px;opacity:.6}
.pet-scene-hint{position:absolute;right:22px;bottom:25px;z-index:1;font-size:10px;color:#a58a78}
.pet-reaction{position:absolute;left:50%;top:35%;width:100px;margin-left:-50px;pointer-events:none;z-index:4}
.pet-reaction>span{position:absolute;color:#bd776f;font-family:Georgia,serif;font-size:25px;opacity:0;animation:pet-heart-rise 1.4s ease-out}
.pet-reaction>span:nth-child(2){left:42px;animation-delay:.35s;font-size:19px}.pet-reaction>span:nth-child(3){left:75px;animation-delay:.7s;font-size:21px}
@keyframes pet-heart-rise{0%{opacity:0;transform:translateY(15px)}20%{opacity:.8}100%{opacity:0;transform:translateY(-55px)}}
.pet-actions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:16px}
.pet-action{display:flex;align-items:center;flex-direction:column;border-radius:12px;background:#fffdf8;border:1px solid #e7ded3;padding:15px 6px 13px;gap:7px;min-width:0;transition:background .2s,border-color .2s}
.pet-action-icon{display:grid;place-items:center;width:34px;height:34px;background:#f4e9df;border-radius:50%;color:#866a58}
.pet-action-icon>.icon{width:22px;height:22px;opacity:.85}
.pet-action strong{font-size:13px;font-weight:550}.pet-action small{font-size:10px;color:#a19081;white-space:nowrap}
.pet-action:hover{background:#f5eee5;border-color:#cdb9a8}.pet-action[aria-pressed=true]{background:#faeae4;border-color:#b57568;box-shadow:inset 0 0 0 1px #b5756822}
.pet-action-feed{background:#f8ece6;border-color:#e7cec4}.pet-action-feed .pet-action-icon{background:#efcec1}
.pet-vitals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;padding:25px 5px 7px}
.pet-vital>div:first-child{display:flex;align-items:center;gap:5px;font-size:11px;color:#9a8677;margin-bottom:9px}
.pet-vital .icon{width:14px;height:14px;opacity:.5}.pet-vital strong{margin-left:auto;font-size:10px;font-weight:400;color:#887060}
.pet-meter{height:4px;border-radius:2px;background:#eae1d7;overflow:hidden}.pet-meter>span{display:block;height:100%;width:0;background:#c79f70;border-radius:2px;transition:width .5s}
[data-vital=mood] .pet-meter>span{background:#c38f86}[data-vital=bond] .pet-meter>span{background:#ba9eaf}
.pet-aside{padding-top:5px}
.pet-profile{border-bottom:1px solid var(--line);padding:3px 2px 24px}
.pet-profile-mark{display:grid;place-items:center;background:#eee4d7;border-radius:50%;width:42px;height:42px;margin-bottom:17px}
.pet-profile-mark .icon{width:25px;height:25px;opacity:.65}
.pet-name-row{display:flex;align-items:center;gap:9px}.pet-name-row h2{font-size:23px;letter-spacing:.5px;overflow-wrap:anywhere}.pet-name-row button{width:32px;height:32px;display:grid;place-items:center;flex-shrink:0}.pet-name-row .icon{width:14px;height:14px;opacity:.4}
.pet-profile>p{font-size:11px;color:#9b8878;margin-top:5px}
.pet-name-form{position:absolute;z-index:5;top:53px;left:23px;width:300px;max-width:calc(100% - 46px);padding:14px;background:#fffcf7;border:1px solid #e5d5c8;box-shadow:0 8px 24px #63472c18;border-radius:12px;display:grid;gap:9px}.pet-name-form label{font-size:11px;color:#897361}.pet-name-form>div{display:flex;gap:7px}.pet-name-form input{width:100%;min-width:0;flex:1;border:1px solid var(--line);border-radius:5px;background:var(--white);padding:8px;font-size:14px}.pet-name-form button{background:var(--rose);padding:7px 12px;border-radius:5px;font-size:12px;white-space:nowrap}
.pet-parents{display:grid;grid-template-columns:1fr 1fr;margin-top:24px;gap:15px}.pet-parents>div{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:4px 7px;font-size:12px}.pet-parents .avatar{width:27px;height:27px}.pet-parents small{grid-column:1/-1;font-size:10px;color:#aa9687;padding-top:5px}
.pet-diary{padding-top:24px}.pet-diary-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:8px}.pet-diary-title h3{font-size:14px;font-weight:550}.pet-diary-title>span{font-size:10px;color:#aa9687}
.pet-diary-list{margin:0;padding:0;list-style:none}.pet-diary-list>li{display:flex;gap:10px;align-items:flex-start;padding:0 0 20px;position:relative}.pet-diary-list>li:not(:last-child):before{content:"";position:absolute;left:12px;top:25px;bottom:0;border-left:1px solid #e6dcd0}
.pet-diary-symbol{display:grid;place-items:center;width:25px;height:25px;flex-shrink:0;border-radius:50%;background:#f0e6dc;z-index:1}.pet-diary-symbol .icon{width:14px;height:14px;opacity:.6}
.pet-diary-list p{font-size:11px;line-height:1.8;color:#8c7667;padding-top:3px;overflow-wrap:anywhere}.pet-diary-list strong{color:#6c5245;font-weight:550;margin-right:4px}.pet-diary-list time{font-size:9px;color:#b09b89;display:block;margin-top:4px}
.pet-diary-empty{padding:26px 12px 33px;text-align:center;border:1px dashed #e6d8cb;border-radius:9px}.pet-diary-empty>.icon{width:24px;height:24px;margin:0 auto 12px;opacity:.22}.pet-diary-empty p{font-size:12px;color:#937e6f}.pet-diary-empty>span{font-size:10px;color:#b39e8e;display:block;margin-top:6px}
.pet-storage-note{font-size:10px;line-height:1.9;color:#b2a294;margin-top:22px}
.cat-room-link{margin-top:7px;display:flex;align-items:center;gap:4px;color:var(--red);font-size:12px;min-height:32px}
.cat-room-link .icon{width:14px;height:14px}
.mobile-nav{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(min-width:761px) and (max-width:1100px){.site-header{padding:0 26px;gap:18px}.desktop-nav{gap:22px}.brand{font-size:15px}.brand img{width:26px;height:26px}.pet-layout{grid-template-columns:minmax(0,1fr) 230px;gap:23px}.pet-room-scene{height:405px}.pet-character{width:min(85%,320px);bottom:28px}.pet-talk{font-size:11px;top:64px}.pet-scene-hint{display:none}.pet-action small{display:none}.pet-vitals{gap:15px}}
@media(max-width:760px){.pet-page{padding:25px 18px 40px}.pet-page-heading{align-items:flex-start;margin-bottom:21px;gap:12px;position:relative}.pet-page-heading .pet-eyebrow{font-size:9px;letter-spacing:1px;margin-bottom:7px}.pet-page-heading h1{font-size:28px}.pet-page-heading h1+p{font-size:11px;line-height:1.8;max-width:230px;margin-top:9px}.pet-sound-tools{position:absolute;right:0;top:-7px;gap:0}.pet-sound-tools>button{font-size:10px;gap:4px;min-height:34px}.pet-sound-tools .icon{width:16px;height:16px}.pet-sound-tools label{display:none}.pet-layout{grid-template-columns:minmax(0,1fr);gap:30px}.pet-room-scene{height:362px;border-radius:16px}.pet-room-label{top:17px;left:18px;font-size:10px}.pet-scene-tag{right:17px;top:20px;font-size:9px}.pet-character{width:min(91%,310px);bottom:21px}.pet-talk{top:54px;font-size:10px;padding:7px 12px;max-width:94%;white-space:normal;text-align:center;width:max-content;line-height:1.5}.pet-rug{width:83%;height:65px;bottom:23px;border-width:4px}.pet-window-light{width:125px;height:170px;top:55px}.pet-pause{left:11px;bottom:8px;font-size:9px;min-height:31px}.pet-scene-hint{right:15px;bottom:19px;font-size:9px}.pet-actions{gap:7px;margin-top:12px}.pet-action{padding:12px 4px 11px;gap:6px;border-radius:10px}.pet-action strong{font-size:11px}.pet-action small{display:none}.pet-action-icon{width:31px;height:31px}.pet-action-icon>.icon{width:20px;height:20px}.pet-vitals{gap:18px;padding:20px 2px 0}.pet-vital>div:first-child{font-size:10px;gap:4px;flex-wrap:wrap}.pet-vital .icon{width:12px;height:12px}.pet-vital strong{font-size:9px}.pet-aside{padding-top:0;display:grid;grid-template-columns:minmax(0,1fr);gap:0}.pet-profile{display:grid;grid-template-columns:41px minmax(0,1fr);gap:0 12px;padding-bottom:22px}.pet-profile-mark{grid-row:1/3;margin:0;width:40px;height:40px}.pet-name-row h2{font-size:20px}.pet-name-row{gap:4px}.pet-name-row button{height:26px}.pet-profile>p{font-size:10px;grid-column:2;margin-top:0}.pet-parents{grid-column:1/-1;margin-top:21px;gap:25px;padding-left:2px}.pet-parents>div{grid-template-columns:28px auto 1fr;gap:7px}.pet-parents small{grid-column:auto;padding:0;text-align:right;font-size:9px}.pet-name-form{grid-column:1/-1}.pet-diary{padding-top:22px}.pet-diary-empty{padding:20px 12px}.pet-diary-list>li{padding-bottom:15px}.pet-storage-note{margin-top:12px;font-size:9px}.mobile-nav a{font-size:10px}}
@media(max-width:360px){.pet-page{padding-left:14px;padding-right:14px}.pet-page-heading h1{font-size:26px}.pet-room-scene{height:331px}.pet-character{width:280px;bottom:20px}.pet-scene-tag{font-size:8px;letter-spacing:0}.pet-vitals{gap:14px}.pet-vital strong{flex-basis:100%;margin-left:0}.pet-parents{gap:18px}.pet-parents>div{grid-template-columns:28px 1fr}.pet-parents small{grid-column:1/-1;text-align:left}.pet-sound-tools>button span{display:none}}
@media(prefers-reduced-motion:reduce){.pet-reaction>span{animation:none}.pet-meter>span,.pet-action{transition:none}}
/* Leave breathing room between the speech bubble and the cat's face on phones. */
@media(max-width:760px){.pet-room-scene{height:386px}.pet-character{width:min(86%,270px);bottom:25px}}
@media(max-width:360px){.pet-room-scene{height:352px}.pet-character{width:min(89%,250px);bottom:23px}}
@media(max-width:760px){.pet-room-label{top:9px;max-width:calc(100% - 30px)}.pet-scene-tag{display:none}.pet-name-form{top:47px;left:14px;max-width:calc(100% - 28px);margin:0}.pet-name-form input{font-size:16px}}
@media(min-width:761px) and (max-width:1100px){.pet-character{width:min(calc(100% - 12px),455px)}}
@media(max-width:760px){.pet-character{width:min(calc(100% - 8px),384px);bottom:12px}.pet-actions{gap:5px}.pet-action strong{font-size:10px}}
@media(max-width:360px){.pet-character{width:calc(100% - 8px);bottom:12px}}

.pet-action[data-pet-action=grab] .icon{transform:rotate(-45deg)}
@media(max-width:1100px){.pet-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}
