/* 보석 목표·추억·가격 확인. 움직임이나 색상만으로 상태를 전달하지 않는다. */
.pet-goal-card{padding:1.15rem;border:1px solid #d7e4d7;border-radius:1.1rem;background:#f6faf1;min-width:0}
.pet-goal-card h3{margin:0 0 .55rem}.pet-goal-card p{margin:.55rem 0;line-height:1.6}.pet-goal-card progress,.pet-growth progress{display:block;width:100%;height:.65rem;margin:.7rem 0;accent-color:#527755}
.pet-home-card{flex-wrap:wrap}.pet-home-card>.pet-goal-card{grid-column:1/-1;width:100%;box-sizing:border-box}.pet-goal-card.compact{padding:.85rem;margin-top:.4rem}.pet-goal-card .row{gap:.5rem;flex-wrap:wrap}.pet-goal-card .row span{white-space:nowrap}
.pet-growth{padding:.85rem 1rem;margin:.75rem 0;border-radius:1rem;background:#f6f0e8}.pet-growth p{line-height:1.5}.pet-care-progress{padding:.65rem .8rem;border-radius:.8rem;background:#f2f6f2;font-size:.9rem;line-height:1.6}
.pet-goal-selected{outline:2px solid #699767;outline-offset:2px}.pet-collection-count{font-weight:700;white-space:nowrap}.pet-shop-item>.button+.button{margin-top:.6rem}.pet-shop-item .button{white-space:normal}
.pet-star-cushion{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);width:165px;height:48px;background:#edca71;color:#fff3ce;border:3px solid #c7a047;border-radius:50%;font-size:34px;line-height:38px;text-align:center}.pet-garden{position:absolute;left:12px;bottom:18px;font-size:29px;letter-spacing:-6px}
.pet-spend-summary{padding:.8rem 0}.pet-spend-icon{font-size:2.5rem}.pet-spend-summary h3{margin:.5rem 0}.pet-spend-summary p{line-height:1.6}.pet-spend-summary dl{margin:1rem 0;padding:1rem;background:#f3f6ee;border-radius:1rem}.pet-spend-summary dl>div{display:flex;justify-content:space-between;gap:1rem;padding:.45rem 0}.pet-spend-summary dt{font-weight:500}.pet-spend-summary dd{margin:0;font-weight:800;white-space:nowrap}.pet-spend-summary dl>div:last-child{border-top:1px solid #d6dfce;margin-top:.3rem;padding-top:.8rem}
@media(max-width:600px){.pet-goal-card{padding:1rem}.pet-goal-card .actions{align-items:stretch}.pet-goal-card .actions>*{flex:1;min-width:120px;text-align:center}.pet-spend-summary dl{padding:.8rem}.pet-spend-summary dt{font-size:.95rem}}

/* 입체 펫 방: 캔버스가 실패해도 이름·돌봄·잔액은 같은 문서에서 사용할 수 있다. */
.pet-page-subtitle{color:#718076;font-size:.95rem;line-height:1.65;margin:.65rem 0 0}
.pet-room-grid{grid-template-columns:minmax(0,1.45fr) minmax(300px,.95fr);gap:26px}
.pet-stage-column,.pet-room-sidebar{min-width:0}
.pet-stage{position:relative;min-width:0;overflow:hidden;border:1px solid #dedfd3;border-radius:28px;background:#faf8f2;box-shadow:0 16px 48px #5b665b0c}
.pet-stage-top{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:20px 22px 0;position:relative;z-index:2}
.pet-room-label{font-size:.83rem;font-weight:700;color:#667760;letter-spacing:.025em}.pet-room-label>span{color:#b99d61;margin-right:4px}
.pet-scene-badge{padding:6px 10px;border-radius:20px;font-size:.7rem;color:#6c7768;background:#edf0e5;white-space:nowrap}
.pet-stage-viewport{height:clamp(400px,39vw,540px);position:relative;background:radial-gradient(ellipse at 40% 32%,#fff9ed,#eae9dc 90%);isolation:isolate;margin-top:14px;overflow:hidden}
.pet-stage-canvas{display:block;width:100%;height:100%;touch-action:pan-y;cursor:grab;outline:none}.pet-stage-canvas:active{cursor:grabbing}
.pet-stage-canvas[hidden],.pet-stage-fallback[hidden]{display:none}
.pet-stage-fallback{position:absolute;inset:0}
.pet-stage-fallback .pet-room-scene{height:100%;border-radius:0}
.pet-stage-fallback .pet-character{width:245px;bottom:80px}
.pet-stage-fallback .pet-window{top:50px;right:12%}
.pet-scene-bubble{position:absolute;bottom:47px;left:50%;transform:translateX(-50%);max-width:88%;width:max-content;padding:11px 17px;border-radius:18px;background:#fffdf5ef;border:1px solid #ebe4d3;box-shadow:0 4px 16px #6959430c;color:#6a6d5c;text-align:center;font-size:.83rem;line-height:1.5;pointer-events:none;overflow-wrap:anywhere}
.pet-scene-hint{position:absolute;bottom:17px;left:12px;right:12px;text-align:center;font-size:.7rem;color:#626d62;pointer-events:none}
.pet-scene-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px 10px;flex-wrap:wrap}
.pet-camera-controls{display:flex;gap:5px;align-items:center}
.scene-button{font-family:inherit;font-size:.8rem;font-weight:700;line-height:1.3;border:1px solid #e0e2d6;border-radius:12px;padding:9px 12px;min-height:42px;min-width:40px;color:#4e6256;background:#fffef8;cursor:pointer;transition:background .15s}
.scene-button:hover:not(:disabled){background:#eaf0e3}.scene-button:disabled{cursor:default;opacity:.5}.scene-button:focus-visible,.scene-text-button:focus-visible{outline:3px solid #ac8046;outline-offset:3px}
.pet-hello-button{background:#e4edde;border-color:#cedbc5;color:#3f654d}
.pet-scene-options{display:flex;gap:4px 15px;flex-wrap:wrap;padding:0 20px 6px}
.scene-text-button{font:inherit;font-size:.72rem;min-height:36px;border:0;background:none;color:#667765;padding:4px 0;cursor:pointer;text-underline-offset:3px}
.scene-text-button:hover{text-decoration:underline}.scene-text-button:disabled{opacity:.5;cursor:default}
.pet-scene-status{margin:0;padding:0 20px 17px;font-size:.73rem;color:#7d8174;line-height:1.6}
.pet-memory-strip{display:flex;align-items:center;gap:14px;margin:16px 0 0;padding:17px 20px;border-radius:19px;border:1px solid #e8e3d8;background:#f8f3e9}
.pet-memory-strip>span{font-size:2.1rem;color:#b79791;font-weight:500;line-height:1}.pet-memory-strip strong{font-size:.92rem;color:#625f53}.pet-memory-strip p{margin:5px 0 0;color:#848171;font-size:.76rem;line-height:1.6}.pet-memory-strip progress{margin-left:auto;width:82px;height:6px;accent-color:#bfa78c;flex-shrink:0}
.pet-room-recent{color:#7c8174;font-size:.75rem;margin:12px 8px;line-height:1.6}
.pet-care-card{border-radius:23px;padding:24px}.pet-care-card h2{font-size:1.3rem;letter-spacing:-.03em;margin:0 0 16px}.pet-care-card .eyebrow{font-size:.73rem;color:#839178;margin-bottom:8px}
.pet-care-grid{gap:9px}.pet-care-grid .pet-care{background:#f5f8ee;border:1px solid #e0e7d7;border-radius:16px;min-height:109px;padding:16px 5px;gap:8px;box-shadow:none}
.pet-care-grid .pet-care:hover:not(:disabled){background:#eaf2df;border-color:#a6bd99}.pet-care-grid .pet-care>span{font-size:1.9rem;line-height:1.2}.pet-care-grid .pet-care strong{font-size:.8rem}.pet-care-grid .pet-care small{font-size:.68rem;color:#75856b}
.pet-paid-care .pet-care{background:#faf6ee;border-color:#e9e2d5}.pet-paid-care .pet-care small{color:#9c8564;font-size:.64rem}
.pet-care-divider{display:flex;align-items:center;gap:10px;margin:21px 0 14px;color:#93917d;font-size:.72rem}.pet-care-divider:after{content:'';height:1px;background:#eae6dc;flex:1}
.pet-care-card .pet-care-progress{margin-bottom:18px;background:#f4f2e9;border:1px solid #e8e4d8;color:#7a7e65;font-size:.77rem;line-height:1.65}
.pet-care-card>.small{font-size:.72rem;line-height:1.8;margin-top:18px}
.pet-kind-note{font-size:.78rem;text-align:center;color:#8a8a79;line-height:1.8;padding:0 10px;margin:0}
.pet-customization{border-radius:20px;padding:20px 24px}.pet-customization summary{cursor:pointer;font-weight:700;color:#677261}.pet-customization summary>span{font-size:.73rem;font-weight:400;color:#959582;margin-left:12px}.pet-customization[open]>summary{margin-bottom:18px}.pet-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:16px}
.pet-adoption-layout .pet-adoption{margin-top:0;border-radius:24px}.pet-adoption-layout .pet-choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.pet-adoption-layout .pet-choice .pet-art{max-width:95px}.pet-adoption-layout .pet-choice strong{font-size:.85rem}.pet-adoption-layout .pet-selected{font-size:.7rem}
@media(max-width:900px){.pet-room-grid{grid-template-columns:minmax(0,1fr)}.pet-stage-viewport{height:470px}.pet-room-sidebar{display:grid;grid-template-columns:1.2fr 1fr;align-items:start;gap:18px}.pet-room-sidebar>.pet-kind-note{grid-column:1/-1}.pet-adoption-layout .pet-choices{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:600px){.pet-page-top{gap:12px}.pet-page-subtitle{font-size:.81rem}.pet-room-grid{gap:18px}.pet-stage{border-radius:22px}.pet-stage-top{padding:15px 14px 0}.pet-stage-viewport{height:380px;margin-top:12px}.pet-room-label{font-size:.75rem}.pet-scene-badge{font-size:.64rem}.pet-scene-toolbar{gap:8px;padding:12px 12px 6px}.pet-camera-controls{gap:4px}.scene-button{padding:9px 10px;font-size:.74rem}.pet-hello-button{flex:1}.pet-scene-options{padding:0 14px 6px;gap:12px}.pet-scene-status{padding:0 14px 13px;font-size:.68rem}.pet-scene-bubble{font-size:.76rem;bottom:42px;padding:10px 12px}.pet-scene-hint{font-size:.63rem;bottom:15px}.pet-memory-strip{padding:14px;gap:10px}.pet-memory-strip progress{width:58px}.pet-memory-strip p{font-size:.7rem}.pet-room-sidebar{display:flex;flex-direction:column;gap:16px}.pet-room-sidebar>*{width:100%;box-sizing:border-box}.pet-care-card{padding:20px!important}.pet-care-card h2{font-size:1.25rem}.pet-care-grid .pet-care strong{font-size:.8rem}.pet-edit-grid{grid-template-columns:1fr}.pet-customization{padding:18px}.pet-adoption-layout .pet-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.pet-adoption-layout .pet-adoption{padding:20px}}
@media(prefers-reduced-motion:reduce){.scene-button{transition:none}}

/* 성장 미리보기·직접 돌봄·기억 산책은 별도의 성적이나 재화를 만들지 않는다. */
.pet-growth-preview{padding:14px 20px;margin:0 12px 14px;background:#edf2e6;border-radius:16px}.pet-growth-preview[hidden]{display:none}.pet-growth-preview p{margin:0 0 10px}.pet-growth-preview p:first-child{font-size:.85rem;font-weight:700}.pet-growth-preview .small{margin:10px 0 0;font-size:.72rem}
.care-play-board{position:relative;min-height:260px;background:radial-gradient(ellipse at 50% 35%,#fffaf0,#e9efdf);border:1px solid #dfe5d5;border-radius:22px;overflow:hidden;padding:12px}
.care-play-friend{width:155px;margin:0 auto 0;transform-origin:50% 85%}.care-play-friend .pet-art{width:100%;display:block}
.care-play-targets{display:flex;justify-content:space-around;align-items:center;gap:12px;position:relative;z-index:1}
.care-target{display:grid;gap:7px;justify-items:center;align-content:center;min-width:76px;min-height:76px;border:2px solid #98b68b;border-radius:18px;background:#fffdf6;color:#315840;padding:10px;box-shadow:0 5px 0 #b9c8af4d}
.care-target>span{font-size:1.7rem;line-height:1}.care-target small{font-size:.75rem}.care-target:not(:disabled){outline:2px solid #f3d28a;outline-offset:3px}.care-target:focus-visible{outline:4px solid #ac6a20;outline-offset:3px}.care-target:disabled{cursor:default;opacity:.65}.care-target.done{background:#deebd3;opacity:1;border-color:#98b68b}
.care-play-message{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:3.5rem;margin:12px 0;font-size:.9rem}.care-play-message strong{white-space:nowrap}
.care-play-pet .care-play-friend{width:180px}.care-play-pet .care-play-targets{position:absolute;inset:20px 12px;align-items:flex-start}.care-play-pet .care-target:nth-child(2){align-self:flex-end}.care-play-pet .care-target:nth-child(3){align-self:center}.care-play-pet .care-target{min-width:68px;background:#fffdf6e8}
.care-play-pet[data-step="1"] .care-play-friend,.care-play-pet[data-step="2"] .care-play-friend,.care-play-pet[data-step="3"] .care-play-friend{animation:care-nuzzle .8s ease-in-out 1}
.care-play-feed[data-step="1"] .care-play-friend,.care-play-feed[data-step="2"] .care-play-friend{transform:rotate(-3deg)}.care-play-feed[data-step="3"] .care-play-friend{animation:care-nuzzle .8s ease-in-out 1}
.care-play-play[data-step="1"] .care-play-friend{transform:translateX(-35px) rotate(-8deg)}.care-play-play[data-step="2"] .care-play-friend{transform:translateX(35px) rotate(8deg)}.care-play-play[data-step="3"] .care-play-friend{animation:care-nuzzle .8s ease-in-out 1}
@keyframes care-nuzzle{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-10px) rotate(-5deg)}65%{transform:translateY(-3px) rotate(5deg)}}
.pet-practice-trail{position:relative;overflow:hidden;border:1px solid #d8e4ce;background:linear-gradient(160deg,#edf4e5,#fbf5e5);border-radius:24px;margin:0 0 20px;padding:20px 24px 12px;isolation:isolate}
.pet-practice-companion{position:relative;width:100px;margin-left:calc(var(--walk-progress) * (100% - 100px));transition:margin-left .7s ease;z-index:1}.pet-practice-companion .pet-art{width:100%;display:block}
.pet-practice-stops{list-style:none;display:flex;justify-content:space-around;gap:12px;margin:0 0 18px;padding:10px 0;position:relative}.pet-practice-stops:before{content:'';position:absolute;top:32px;left:12%;right:12%;height:5px;background:#d3ddbc;border-radius:5px;z-index:-1}
.pet-practice-stops li{display:grid;gap:8px;justify-items:center;flex:1}.pet-practice-stops li>span{display:grid;place-items:center;min-width:44px;height:44px;border:2px solid #c7d6b4;border-radius:50%;background:#fffdf5;color:#687852}.pet-practice-stops .done>span{background:#476947;color:white;border-color:#476947}.pet-practice-stops strong{font-size:.8rem}.pet-practice-trail>p{margin:8px 0;text-align:center}.pet-practice-trail>.small{font-size:.76rem}
.review-home{flex-wrap:wrap}
.review-prepared-audio audio{display:block;width:100%;max-width:420px;margin:8px 0 16px}.review-prepared-audio p{margin-bottom:6px}
.learning-observations{border-top:1px solid var(--line);padding-top:16px;margin-top:18px}.learning-observations ul{padding-left:20px}.learning-observations li{margin-bottom:12px}.learning-observations li p{margin:5px 0}
@media(max-width:600px){.pet-growth-preview{padding:12px;margin:0 10px 12px}.care-play-board{min-height:240px;padding:10px}.care-target{min-width:65px;min-height:76px;padding:8px}.care-target small{font-size:.68rem}.care-play-message{font-size:.82rem}.pet-practice-trail{padding:16px 12px 12px}.pet-practice-stops{gap:5px}.pet-practice-stops strong{font-size:.72rem}.pet-practice-companion{width:85px;margin-left:calc(var(--walk-progress) * (100% - 85px))}}
@media(prefers-reduced-motion:reduce){.care-play-board .care-play-friend{animation:none!important;transform:none!important}.pet-practice-companion{transition:none}}
@media(max-width:600px){.pet-practice-hero{margin-bottom:14px;gap:12px}.pet-practice-hero h1{font-size:1.65rem}.pet-practice-hero .muted{font-size:.8rem}.pet-practice-trail{display:grid;grid-template-columns:56px minmax(0,1fr);gap:0 10px;padding:10px 12px}.pet-practice-companion{width:56px;margin:0;align-self:center}.pet-practice-stops{margin:0;padding:0;align-items:center}.pet-practice-stops:before{top:22px}.pet-practice-stops strong{font-size:.65rem}.pet-practice-stops li>span{min-width:36px;height:36px}.pet-practice-trail>p{grid-column:1/-1;font-size:.76rem;margin:5px 0 0}.pet-practice-trail>.small{font-size:.67rem}}

/* 색상 선택과 보유 의상 */
.pet-style fieldset{border:0;padding:0;margin:16px 0}.pet-style legend{font-weight:700;margin-bottom:12px}.pet-colors{display:flex;flex-wrap:wrap;gap:10px}.pet-color{display:grid;justify-items:center;gap:7px;border:2px solid transparent;background:#f4f6ef;border-radius:14px;padding:10px 12px;min-height:70px;min-width:75px;font:inherit;color:inherit;cursor:pointer}.pet-color[aria-pressed=true],.pet-outfit-choice[aria-pressed=true]{border-color:#4d7c69;background:#e8f0df}.pet-color:disabled,.pet-outfit-choice:disabled{opacity:.55;cursor:default}.pet-swatch{width:30px;height:30px}.pet-swatch circle{stroke:#0002;stroke-width:1}.pet-wardrobe{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,180px));gap:12px;margin:12px 0}.pet-outfit-choice{font:inherit;display:grid;gap:5px;justify-items:center;border:2px solid #dae2d5;border-radius:16px;background:#fffdf6;padding:10px;color:inherit;cursor:pointer}.pet-outfit-choice .pet-art{width:110px;height:112px}.pet-outfit-choice span{font-size:12px}.pet-item-art .pet-art{width:125px;height:130px}.pet-shop-item:has(.pet-art) .pet-item-art{height:140px}
@media(max-width:650px){.pet-colors{gap:8px}.pet-color{min-width:72px;padding:9px}.pet-wardrobe{grid-template-columns:repeat(2,minmax(0,1fr))}}
