@import url(https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@700;800&display=swap);:root{--ink:#421351;--plum:#6b2680;--pink:#ff72b6;--cream:#fff8ec}*{box-sizing:border-box}body{min-height:100vh;margin:0;display:grid;place-items:center;overflow-x:hidden;padding:38px 16px;font-family:Nunito,"Trebuchet MS",sans-serif;color:var(--ink);background:radial-gradient(circle at 18% 18%,rgba(255,255,255,.32) 0 2px,transparent 3px),radial-gradient(circle at 82% 28%,rgba(255,225,109,.75) 0 3px,transparent 4px),radial-gradient(circle at 30% 82%,rgba(255,255,255,.26) 0 2px,transparent 3px),linear-gradient(150deg,#7b3fb1 0,#3a175d 45%,#220e42 100%);background-size:110px 110px,160px 160px,135px 135px,auto}.sky-sparkles::after,.sky-sparkles::before{content:"✦";position:fixed;color:#ffe87e;font-size:clamp(1.2rem, 3vw, 2.1rem);text-shadow:22vw 15vh #fff,70vw 7vh #ffb8e1,84vw 63vh #fff,10vw 72vh #ffcf68;animation:2.8s ease-in-out infinite alternate twinkle}.sky-sparkles::before{top:11vh;left:9vw}.sky-sparkles::after{right:13vw;bottom:17vh;animation-delay:-1.4s}#virtual-pet-container{position:relative;width:min(410px,94vw);padding:25px 27px 23px;border:5px solid #ffb6d8;border-radius:48px 48px 65px 65px;background:radial-gradient(circle at 9px 9px,rgba(255,255,255,.28) 0 4px,transparent 4.5px) 0 0/28px 28px,linear-gradient(145deg,#ff9dcb,#ef69ae 70%,#d84c9c);box-shadow:0 17px 0 #8b2b76,0 26px 45px rgba(15,3,34,.5),inset 0 3px 0 rgba(255,255,255,.72),inset 0 -8px 15px rgba(137,27,105,.15);isolation:isolate}#virtual-pet-container::after,#virtual-pet-container::before{content:"";position:absolute;top:166px;width:102px;height:175px;z-index:-1;border:4px solid #c456c1;background:radial-gradient(circle at 55% 28%,#fff5a2 0 8px,transparent 9px),radial-gradient(circle at 48% 53%,#cb7cff 0 13px,transparent 14px),linear-gradient(145deg,#ffd1ed,#e98edc);box-shadow:inset 0 0 0 5px rgba(255,255,255,.3),0 10px 16px rgba(22,4,48,.25)}#virtual-pet-container::before{left:-76px;border-radius:80% 20% 58% 42%;transform:rotate(-17deg)}#virtual-pet-container::after{right:-76px;border-radius:20% 80% 42% 58%;transform:rotate(17deg)}.antenna{position:absolute;width:6px;height:40px;left:50%;top:-39px;border-radius:9px;background:#ffadd3;transform:translateX(-50%)}.antenna span{position:absolute;width:23px;height:23px;left:-8px;top:-13px;border:4px solid #ffd3e8;border-radius:50%;background:#ff78b8;box-shadow:0 0 16px #ff9bd0}.game-title{text-align:center;color:#fff;text-shadow:0 3px 0 rgba(98,23,94,.42)}.eyebrow{display:block;font:800 .64rem/1 Nunito,sans-serif;letter-spacing:.19em;color:#6c215e;text-shadow:none}h1{margin:4px 0 16px;letter-spacing:.01em}#stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:12px}.stat{display:grid;grid-template-columns:25px 1fr 18px;align-items:center;gap:4px;padding:7px 5px;border:2px solid rgba(104,29,102,.28);border-radius:13px;background:rgba(255,248,251,.82);box-shadow:inset 0 2px #fff;font-size:.61rem}.stat-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:9px;background:#fff;font-size:.9rem}.stat-copy{display:grid;gap:3px;min-width:0;text-transform:uppercase}.stat strong{font-size:.74rem}.meter{height:5px;overflow:hidden;border-radius:9px;background:#dbc9df}.meter i{display:block;height:100%;width:50%;border-radius:inherit;background:linear-gradient(90deg,#65d9ac,#ffe367);transition:width .45s,background .35s}.stat.warning .meter i{background:linear-gradient(90deg,#ffbb58,#ff6b8b)}.stat.danger{animation:.7s ease-in-out infinite alternate statPulse}#screen{position:relative;min-height:300px;overflow:hidden;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;border:7px solid #712c7e;border-radius:31px;background:linear-gradient(#a8e9f7 0 61%,#9fdb8c 61%);box-shadow:inset 0 0 0 3px #d7fbff,inset 0 -12px 25px rgba(53,110,61,.2),0 5px 0 #b7448d}.screen-gloss{position:absolute;z-index:5;inset:5px auto auto 12px;width:38%;height:7px;border-radius:20px;background:rgba(255,255,255,.46);pointer-events:none}.room,.room>*{position:absolute;pointer-events:none}.room{inset:0}.cloud{width:55px;height:15px;top:45px;border-radius:20px;background:rgba(255,255,255,.75)}.cloud::after,.cloud::before{content:"";position:absolute;border-radius:50%;background:inherit}.cloud::before{width:26px;height:26px;left:9px;bottom:4px}.cloud::after{width:19px;height:19px;right:7px;bottom:3px}.cloud-one{left:22px}.cloud-two{right:19px;top:76px;transform:scale(.72)}.hill{bottom:33px;width:260px;height:100px;border-radius:50% 50% 0 0}.hill-back{left:-105px;background:#83ca8b}.hill-front{right:-130px;bottom:23px;background:#69bd83}.flower{z-index:2;bottom:45px;color:#fff1a2;font-size:20px;text-shadow:0 2px #e49067}.flower-one{left:23px;transform:rotate(-12deg)}.flower-two{right:27px;bottom:68px;color:#ffd1eb;transform:scale(.8) rotate(10deg)}#pet-character{position:relative;z-index:3;width:208px;height:217px;display:grid;place-items:end center;transform-origin:50% 100%}#pet-character img{display:none;width:210px;height:210px;object-fit:contain;filter:drop-shadow(0 7px 3px rgba(68,39,77,.2))}#pet-character.hatched img{display:block;animation:.65s cubic-bezier(.2,1.7,.5,1) hatchIn}.egg{width:116px;height:142px;margin-bottom:17px;border:5px solid #874493;border-radius:52% 48% 48% 52%/62% 62% 38% 38%;background:radial-gradient(circle at 40% 40%,#ff8ec6 0 8px,transparent 9px),radial-gradient(circle at 64% 61%,#9d66d5 0 11px,transparent 12px),linear-gradient(145deg,#fff4cb,#f1d890);box-shadow:inset 10px 7px rgba(255,255,255,.45),0 9px 0 rgba(96,47,99,.17);animation:2.3s ease-in-out infinite eggWiggle}.egg span{display:block;width:23px;height:10px;margin:28px 0 0 24px;border-radius:50%;background:rgba(255,255,255,.8);transform:rotate(-32deg)}#pet-character.hatched .egg{display:none}#pet-character.care{animation:.55s happyBounce}#pet-character.tired{filter:saturate(.72);animation:2s ease-in-out infinite sleepySway}#pet-character.sad img{filter:grayscale(.15) saturate(.75) drop-shadow(0 7px 3px rgba(68,39,77,.2));transform:translateY(5px) rotate(-2deg)}.message-bubble{position:relative;z-index:6;width:88%;min-height:38px;margin:-4px 0 12px;display:grid;place-items:center;padding:7px 13px;border:2px solid rgba(76,32,83,.22);border-radius:16px;background:rgba(255,255,255,.9);box-shadow:0 3px 0 rgba(66,19,81,.15)}#message{margin:0;text-align:center;font-size:.75rem;line-height:1.25}#effect{position:absolute;z-index:8;top:82px;left:50%;pointer-events:none;font-size:1.45rem;opacity:0}#effect.pop{animation:1s ease-out effectPop}.pet-info{display:flex;justify-content:space-between;margin:12px 8px 9px;color:#7b286f;font-size:.68rem;font-weight:800;letter-spacing:.13em}.online-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#65ce8a;box-shadow:0 0 0 3px rgba(101,206,138,.22)}#controls{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}button{min-height:58px;display:grid;grid-template-columns:30px 1fr;place-items:center;padding:8px 10px;border:3px solid #762a75;border-radius:18px;color:#57205f;background:linear-gradient(#fff,#ffeaf5);box-shadow:0 5px 0 #9c377f,inset 0 2px #fff;font-family:inherit;cursor:pointer;transition:transform .15s,box-shadow .15s,filter .15s}button span{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#f7d7f2;font-size:1.15rem}button b{font-size:.78rem}button:focus-visible,button:hover{outline:0;filter:brightness(1.04);transform:translateY(-2px);box-shadow:0 7px 0 #9c377f,inset 0 2px #fff}button:active{transform:translateY(4px);box-shadow:0 1px 0 #9c377f}.tip{margin:14px 0 0;text-align:center;color:#7b286f;font-size:.64rem}@keyframes twinkle{to{opacity:.38;transform:scale(.75) rotate(15deg)}}@keyframes eggWiggle{0%,100%,75%{transform:rotate(0)}82%{transform:rotate(-5deg)}90%{transform:rotate(5deg)}}@keyframes hatchIn{from{opacity:0;transform:scale(.25) rotate(-12deg)}to{opacity:1;transform:scale(1)}}@keyframes happyBounce{35%{transform:translateY(-15px) rotate(3deg)}70%{transform:translateY(0) rotate(-2deg)}}@keyframes sleepySway{50%{transform:rotate(2deg) translateY(3px)}}@keyframes effectPop{0%{opacity:0;transform:translate(-50%,20px) scale(.5)}25%{opacity:1}100%{opacity:0;transform:translate(-50%,-42px) scale(1.35)}}@keyframes statPulse{to{transform:translateY(-2px);background:#fff0f1}}@media (max-width:520px){body{padding:28px 10px;overflow-y:auto}#virtual-pet-container{padding:21px 17px 20px}#virtual-pet-container::after,#virtual-pet-container::before{display:none}.stat{grid-template-columns:23px 1fr}.stat strong{display:none}#screen{min-height:286px}}@media (prefers-reduced-motion:reduce){*,::after,::before{animation-duration:NaNs!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}