.pet-demo { margin: 0 0 68px; }
.pet-demo-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:28px; margin-bottom:28px; }
.pet-demo-kicker { display:block; font-size:10px; color:var(--pink-dark); letter-spacing:.17em; margin-bottom:13px; }
.pet-demo-heading h2 { margin:0; font-family:var(--serif); font-weight:400; font-size:clamp(32px,3.7vw,49px); line-height:1.4; }
.pet-demo-heading>p { color:var(--muted); font-size:13px; margin:0 0 7px; line-height:1.9; }
.pet-demo-layout { display:grid; grid-template-columns:1.15fr 1fr; border:1px solid var(--line); background:#fffafb; }
.pet-room { min-width:0; border-right:1px solid var(--line); background:radial-gradient(ellipse at 50% 48%,#fffefa 0%,#ffeff4 62%,#f6dfe8 100%); position:relative; overflow:hidden; }
.pet-room-top { display:flex; justify-content:space-between; gap:16px; padding:21px 25px 0; position:relative; z-index:1; font-size:9px; color:#986579; letter-spacing:.16em; }
.pet-room-status { display:flex; align-items:center; gap:6px; letter-spacing:.08em; white-space:nowrap; }
.pet-room-status::before { content:""; width:5px; height:5px; border-radius:50%; background:#b45a7b; }
.pet-scene { height:357px; position:relative; isolation:isolate; }
.pet-scene::before { content:""; position:absolute; width:58%; height:40px; left:21%; bottom:24px; border:1px solid #d3a9b851; border-radius:50%; background:#fff8fab0; }
.pet-room-ornament { position:absolute; pointer-events:none; color:#c67b93; font-family:var(--serif); opacity:.55; }
.pet-room-ornament.one { left:12%; top:125px; font-size:40px; transform:rotate(-12deg); }
.pet-room-ornament.two { right:13%; top:96px; font-size:24px; }
.pet-room-ornament.three { right:11%; bottom:52px; font-size:12px; letter-spacing:.15em; writing-mode:vertical-rl; }
.pet-bubble { position:absolute; z-index:3; top:25px; left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100% - 42px); margin:0; padding:11px 18px; text-align:center; font-size:13px; line-height:1.65; background:#fffdfae8; border:1px solid #dfb6c5; box-shadow:0 4px 15px #7d435709; border-radius:17px 17px 17px 4px; color:#714454; }
.pet-actor { --pet-size:256px; position:absolute; left:50%; top:92px; width:var(--pet-size); height:var(--pet-size); padding:0; border:0; background:transparent; border-radius:38%; transform:translateX(-50%); cursor:grab; touch-action:none; -webkit-tap-highlight-color:transparent; user-select:none; }
.pet-actor:active { cursor:grabbing; }
.pet-actor:focus-visible { outline:2px dashed #bd6485; outline-offset:-15px; }
.pet-sprite { display:block; width:100%; height:100%; background-size:300% 200%; background-repeat:no-repeat; animation:pet-breathe 3.8s ease-in-out infinite; transform-origin:50% 90%; pointer-events:none; }
.pet-actor[data-action="touch"] .pet-sprite { animation:pet-hello 1.25s ease-in-out; }
.pet-actor[data-action="jump"] .pet-sprite { animation:pet-jump .8s ease-in-out 2; }
.pet-actor[data-action="gesture"] .pet-sprite { animation:pet-gesture 1.7s ease-in-out; }
.pet-actor[data-action="sleep"] .pet-sprite { animation:pet-breathe 5s ease-in-out infinite; }
.pet-actor[data-action="walk"] .pet-sprite { animation:none; }
.pet-demo.is-paused .pet-sprite { animation-play-state:paused; }
.pet-demo.is-loading .pet-sprite { opacity:.3; }
.pet-sleep-sign { display:none; position:absolute; right:15%; top:95px; font-family:var(--serif); font-size:23px; color:#b87591; transform:rotate(12deg); pointer-events:none; }
.pet-room.is-sleeping .pet-sleep-sign { display:block; }
.pet-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:9px; padding:0 18px 16px; }
.pet-actions button { min-height:39px; padding:8px 17px; border:1px solid #d8abbc; border-radius:24px; background:#fffafbbf; color:#774357; font-size:12px; transition:background .18s,transform .18s; }
.pet-actions button:first-child { background:#a82c55; color:#fff; border-color:#a82c55; }
.pet-actions button:hover { background:#f7d5e1; transform:translateY(-2px); }
.pet-actions button:first-child:hover { background:#8c2145; }
.pet-room-help { margin:0; padding:0 20px 20px; text-align:center; font-size:10px; color:#9b7182; line-height:1.7; }
.pet-wardrobe { padding:27px 27px 20px; min-width:0; }
.pet-wardrobe-title { display:flex; align-items:baseline; justify-content:space-between; gap:14px; margin-bottom:17px; }
.pet-wardrobe-title h3 { font-family:var(--serif); font-weight:400; font-size:24px; margin:0; }
.pet-wardrobe-title>span { color:var(--muted); font-size:10px; letter-spacing:.12em; }
.pet-collections { display:flex; gap:0; border-bottom:1px solid var(--line); margin-bottom:18px; }
.pet-collections button { flex:1; padding:10px 3px; font-size:12px; color:var(--muted); border:0; border-bottom:2px solid transparent; background:none; white-space:nowrap; }
.pet-collections button[aria-selected="true"] { color:var(--pink-dark); border-bottom-color:var(--pink-dark); }
.pet-outfits { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.pet-outfit { border:1px solid #ebdce2; border-radius:3px; min-width:0; padding:4px 9px 11px; position:relative; background:#fff; color:var(--ink); text-align:center; transition:background .2s,border-color .2s; }
.pet-outfit:hover { border-color:#b75b7d; background:#fff6f9; }
.pet-outfit[aria-pressed="true"] { border-color:#ba6685; background:#fff0f5; box-shadow:inset 0 0 0 1px #ba6685; }
.pet-outfit[aria-pressed="true"]::after { content:"♥"; position:absolute; right:9px; top:6px; color:#a82c55; font-size:12px; }
.pet-outfit img { width:100%; height:101px; object-fit:contain; pointer-events:none; }
.pet-outfit span { font-size:12px; }
.pet-selected { display:flex; justify-content:space-between; gap:10px; align-items:baseline; padding-top:16px; font-size:11px; color:var(--pink-dark); }
.pet-selected small { font-size:10px; color:var(--muted); text-align:right; }
.pet-demo-note { display:flex; justify-content:space-between; gap:12px; margin:13px 0 0; font-size:10px; color:var(--muted); letter-spacing:.025em; }
@keyframes pet-breathe { 0%,100% { transform:translateY(0) scale(1); } 50% { transform:translateY(-3px) scale(1.004); } }
@keyframes pet-hello { 0%,100% { transform:rotate(0); } 22%,66% { transform:rotate(-3deg); } 44%,85% { transform:rotate(3deg); } }
@keyframes pet-jump { 0%,100% { transform:translateY(0) scale(1); } 15% { transform:scale(1.035,.96); } 45% { transform:translateY(-32px) scale(.99,1.02); } 75% { transform:translateY(0) scale(1.035,.98); } }
@keyframes pet-gesture { 0%,100% { transform:rotate(0) scale(1); } 30% { transform:rotate(-2deg) scale(1.025); } 70% { transform:rotate(2deg) scale(1.01); } }
@media(max-width:1000px) { .pet-demo-layout { grid-template-columns:1fr 1fr; } .pet-wardrobe { padding:22px 19px 18px; } .pet-room-top { padding-left:18px; padding-right:18px; } .pet-room-top>span:first-child { letter-spacing:.08em; } .pet-actions { gap:6px; padding-left:10px; padding-right:10px; } .pet-actions button { padding:8px 12px; } .pet-selected { flex-direction:column; gap:2px; } }
@media(max-width:760px) { .pet-demo { margin-bottom:40px; } .pet-demo-heading { flex-direction:column; align-items:flex-start; gap:12px; margin-bottom:23px; } .pet-demo-heading h2 { font-size:34px; } .pet-demo-heading>p { font-size:12px; margin:0; } .pet-demo-layout { grid-template-columns:1fr; } .pet-room { border-right:0; border-bottom:1px solid var(--line); } .pet-scene { height:344px; } .pet-actor { --pet-size:240px; top:96px; } .pet-room-top { padding:20px 20px 0; } .pet-wardrobe { padding:24px 20px 20px; } .pet-outfits { grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; } .pet-outfit { padding:4px 2px 9px; } .pet-outfit img { height:75px; } .pet-outfit span { font-size:10px; } .pet-outfit[aria-pressed="true"]::after { font-size:9px; top:4px; right:5px; } .pet-selected { flex-direction:row; gap:10px; } .pet-demo-note { flex-direction:column; gap:3px; } .pet-room-ornament.one { left:8%; } .pet-room-ornament.two { right:8%; } .pet-bubble { font-size:12px; padding:10px 15px; } }
@media(max-width:370px) { .pet-wardrobe { padding-left:13px; padding-right:13px; } .pet-wardrobe-title h3 { font-size:22px; } .pet-outfit span { font-size:9px; } .pet-outfit img { height:67px; } .pet-selected { flex-direction:column; gap:3px; } .pet-actor { --pet-size:220px; } .pet-scene { height:327px; } }
@media(prefers-reduced-motion:reduce) { .pet-sprite { animation:none!important; } .pet-actions button { transition:none; } }
