:root{font-family:Georgia,serif;background:#f5eee7}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{overscroll-behavior:none}#scene{--wall-x: 0px;--wall-y: 0px;--table-x: 0px;--table-y: 0px;--grain-x: 0px;--grain-y: 0px;--table-skew: 0deg;--anchor-x: 0px;--anchor-y: 0px;position:relative;width:100%;height:100%;height:100dvh;overflow:hidden;touch-action:none;cursor:grab;background:#f6eee7;isolation:isolate}#scene.dragging{cursor:grabbing}.wall,.wall-light,.table-edge,.tabletop{position:absolute;pointer-events:none;will-change:transform}.wall{inset:-8%;background:radial-gradient(ellipse 65% 80% at 53% 33%,#fffaf4,#f8f0e9 65%,#eee3da),#f7efe8;transform:translate(var(--wall-x),var(--wall-y))}.wall:after{content:"";position:absolute;inset:0;opacity:.26;background-image:url(/wall-brush.svg);background-size:560px 560px;mix-blend-mode:multiply}.wall-light{inset:0;background:radial-gradient(ellipse 95% 60% at 54% 49%,rgba(255,255,255,.32),transparent 75%)}.table-edge{z-index:1;top:calc(43% + var(--table-y));left:-15%;width:130%;height:2.4%;background:linear-gradient(to bottom,rgba(100,48,17,.24),rgba(199,121,56,.2) 33%,transparent 95%);filter:blur(7px);transform:translate(var(--wall-x))}.tabletop{z-index:2;top:calc(43.5% + var(--table-y));left:-13%;width:126%;height:75%;overflow:hidden;clip-path:polygon(5% 0,95% 0,100% 100%,0 100%);background:#bd6d2f;transform:translate(var(--table-x)) skew(var(--table-skew));transform-origin:center top;box-shadow:inset 0 25px 38px #6c341121}.wood{position:absolute;inset:-6% -7%;background:url(/wood-table.png) center top / 100% 100% no-repeat;transform:translate(var(--grain-x),var(--grain-y)) scale(1.03);transform-origin:center 30%}.table-light{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(255,218,165,.16),transparent 38%,rgba(100,39,4,.04) 100%),radial-gradient(ellipse 70% 75% at 52% 32%,rgba(255,234,190,.12),transparent 80%)}#catAnchor{position:absolute;z-index:3;left:50%;top:82%;width:0;height:0;transform:translate(var(--anchor-x),var(--anchor-y));pointer-events:none}#catCanvas{position:absolute;display:block;width:min(96vw,82vh,1120px);height:auto;aspect-ratio:1122 / 1052;transform:translate(-50%,-100%);filter:drop-shadow(0 13px 10px rgba(77,34,12,.16))}#hand{position:fixed;z-index:8;width:clamp(95px,14vw,170px);aspect-ratio:1254 / 1024;background:url(/hand.png) center/contain no-repeat;pointer-events:none;opacity:0;transition:opacity .12s ease;transform-origin:52% 54%}.brand{position:absolute;z-index:5;left:22px;bottom:19px;color:#66341ac2;font:500 16px Georgia,serif;letter-spacing:.08em;pointer-events:none;text-shadow:0 1px 1px #ffe3bb}#sound{position:absolute;z-index:6;right:16px;top:16px;width:40px;height:40px;border-radius:50%;border:1px solid rgba(148,89,50,.25);background:#fff8eeb3;color:#854a27;font:23px Georgia,serif;cursor:pointer}#scene.petting{cursor:none}@media(max-width:600px){.tabletop{top:calc(35% + var(--table-y));height:80%;left:-22%;width:144%}.table-edge{top:calc(34.5% + var(--table-y))}#catAnchor{top:75%}#catCanvas{width:min(122vw,70vh)}.brand{font-size:13px}}:root{font-family:Georgia,serif;color:#655448;background:#eee8dd}html,body{height:100%;overflow:auto}body{margin:0;background:radial-gradient(ellipse at 50% 20%,#f8f4ec,#e7dfd4);transition:background .5s ease}body:has(.app-shell.night){background:radial-gradient(ellipse at 50% 20%,#505360,#292b37)}.app-shell{--ink:#6d5748;--hud:#f7f1e8;--rim:#fbf6ee;--rim-shadow:#d2c5b6;width:min(1380px,calc(100% - 32px));margin:15px auto 0;display:flex;flex-direction:column;gap:8px;min-height:calc(100dvh - 30px)}.game-frame{padding:9px;border:1px solid #fffaf2;border-radius:34px;background:linear-gradient(145deg,#fffaf4,#d5c7b8 70%,#f8f2ea);box-shadow:0 24px 50px #58443326,inset 0 2px 3px #fff;flex:1;min-height:0}#scene{height:clamp(460px,calc(100dvh - 155px),780px);border-radius:26px;background:#f6f1e9;box-shadow:inset 0 0 0 1px #8268532b,inset 0 15px 30px #7b695612;cursor:none;--cam-yaw:0deg;--cam-pitch:0deg;--cat-lean:0deg;--pose-ratio:1122 / 1052}#scene.dragging,#scene.petting{cursor:none}.wall{inset:-7%;background:radial-gradient(ellipse 78% 75% at 47% 35%,#fffdf8,#f6f0e8 66%,#e6dbd0)}.wall:after{opacity:.32;background-image:url(/wall-plaster.svg);background-size:460px 460px;mix-blend-mode:multiply}.wall-light{background:radial-gradient(ellipse 85% 68% at 50% 14%,rgba(255,255,255,.46),transparent 72%)}.table-edge{top:calc(46% + var(--table-y));left:-8%;width:116%;height:4%;filter:blur(8px);background:linear-gradient(to bottom,rgba(87,47,27,.21),transparent);transform:translate(var(--table-x))}.tabletop{top:calc(46.5% + var(--table-y));left:-9%;width:118%;height:54%;clip-path:none;border-radius:35% 35% 5% 5%/4% 4% 8% 8%;overflow:hidden;background:#bd733c;box-shadow:0 -8px 18px #81401b29,inset 0 9px 14px #ffe6b45c,inset 0 -42px 30px #5e290f47;transform:translate(var(--table-x)) perspective(1100px) rotateX(var(--cam-pitch)) rotateY(var(--cam-yaw));transform-origin:center 10%}.tabletop:after{content:"";position:absolute;left:0;right:0;bottom:0;height:11%;background:linear-gradient(to bottom,#e7a05338,#73371945 35%,#5e2b1461);box-shadow:inset 0 3px 3px #5a2d1740;border-radius:50% 50% 0 0/19% 19% 0 0}.wood{background-size:100% 100%;filter:saturate(.78) brightness(1.11)}.table-light{background:radial-gradient(ellipse at 48% 20%,rgba(255,231,185,.27),transparent 70%),linear-gradient(to bottom,transparent 65%,rgba(71,31,14,.13))}#catAnchor{top:94%;z-index:3;transform:translate(var(--anchor-x),var(--anchor-y)) rotate(var(--cat-lean));transform-origin:center bottom;transition:opacity .28s ease}#catCanvas{width:min(77vw,76vh,960px);aspect-ratio:var(--pose-ratio);height:auto;filter:drop-shadow(0 15px 12px rgba(81,43,23,.2))}#scene[data-pose=sleep] #catCanvas{width:min(80vw,76vh,980px)}#contactShadow{position:fixed;z-index:7;width:76px;height:54px;border-radius:50%;background:radial-gradient(ellipse,rgba(77,39,22,.22),transparent 72%);pointer-events:none;opacity:0;transform:translate(-50%,-50%);transition:opacity .18s ease}#hand{z-index:40;width:clamp(118px,15vw,190px);background-image:url(/hand.png);transition:opacity .2s ease,background-image .1s ease;filter:drop-shadow(0 7px 5px rgba(74,42,25,.18))}#hand.curl{background-image:url(/hand-curl.png)}#finger{position:fixed;z-index:8;width:38px;height:85px;border-radius:21px 21px 15px 15px;background:linear-gradient(95deg,#d38e68,#f8c7a4 39%,#e4a47d 80%,#b97553);box-shadow:inset 2px 0 4px #ad6d4f,2px 6px 7px #41251a2e;border:1px solid #b87957;pointer-events:none;opacity:0;transform:translate(-50%,-65%) rotate(14deg);transition:opacity .14s ease}#finger span{position:absolute;top:6px;left:9px;width:19px;height:24px;border-radius:10px 10px 7px 7px;background:linear-gradient(#f6d0ba,#efd1c2);box-shadow:inset 0 -2px 2px #a65e4f38}#foodSprite{position:fixed;z-index:9;width:32px;height:25px;border-radius:50% 50% 43% 43%;background:radial-gradient(circle at 37% 35%,#b37a41 0 13%,#774626 55%,#4d2c1a);border:2px solid #80502e;box-shadow:0 6px 12px #37221638;pointer-events:none;opacity:0;transform:translate(-50%,-50%)}#hearts{position:absolute;inset:0;z-index:6;pointer-events:none}.heart{position:absolute;color:#f49c9c;font-size:26px;animation:heartFloat 1.5s ease-out forwards;text-shadow:0 0 9px #fff4dd}@keyframes heartFloat{to{transform:translateY(-85px) scale(1.3);opacity:0}}.scene-name{position:absolute;left:25px;top:20px;z-index:5;padding:7px 15px;border-radius:100px;background:#fffaf299;color:#8f684b;font-size:13px;letter-spacing:.12em;box-shadow:0 2px 9px #412b1c0f;pointer-events:none}.hud{position:relative;z-index:10;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;min-height:116px;padding:11px 22px 15px;border:1px solid #e8ded2;border-radius:26px;background:linear-gradient(#fffaf2,#f1e9dd);box-shadow:0 12px 28px #5844331a,inset 0 1px 2px #fff;color:var(--ink)}.hud-left,.hud-right{display:flex;align-items:center;gap:14px}.hud-left{justify-content:flex-start}.hud-right{justify-content:flex-end}.hud-center{display:flex;align-items:center;flex-direction:column;gap:3px;min-width:190px;font-size:12px}.hud-title{font-size:17px;letter-spacing:.12em;color:#835c40}.hud a{color:#7c6c62;text-decoration:none}.hud a:hover{text-decoration:underline}.pending-link{color:#b6aaa0}.donate{border:0;background:#e7e0d8;color:#a39a90;border-radius:15px;padding:5px 11px;font:11px Georgia,serif}.character-slots{display:flex;gap:5px}.character-slots span{display:block;width:35px;height:35px;border-radius:50%;border:2px solid #d3c9be;background:#dcd5cc;box-shadow:inset 0 3px 5px #493a311f,0 1px #fff}.character-slots .active-slot{background:url(/ryzhik.png) center 26%/115% auto,#eec692;border-color:#bf8d5e}.hud-button,.round-button{border:1px solid #cdbfb0;background:linear-gradient(#fffdf8,#eee4d7);box-shadow:inset 0 1px 1px #fff,0 3px 5px #46332514;color:#806954;cursor:pointer;transition:transform .18s,background .25s,box-shadow .18s}.hud-button:hover,.round-button:hover{transform:translateY(-2px);box-shadow:0 6px 9px #46332521}.hud-button{padding:10px 14px;border-radius:15px;font:13px Georgia,serif}.round-button{display:grid;place-items:center;width:40px;height:40px;border-radius:50%}.round-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#sound.muted{opacity:.5}#sound{position:static;top:auto;right:auto;font-size:inherit}.menu-wrap{position:relative}.pop-menu{position:absolute;z-index:20;bottom:calc(100% + 9px);left:0;border:1px solid #d7c8b7;background:#fff9f0;border-radius:16px;padding:10px;box-shadow:0 10px 25px #3f2e2524;opacity:0;visibility:hidden;transform:translateY(7px);transition:opacity .18s,transform .18s,visibility .18s}.menu-wrap:hover .pop-menu,.menu-wrap.open .pop-menu,.menu-wrap:focus-within .pop-menu{opacity:1;visibility:visible;transform:translateY(0)}.styles-menu{display:flex;gap:7px}.styles-menu span{width:22px;height:22px;border-radius:50%;background:#403e3d;box-shadow:inset 0 2px 3px #171717}.food-menu{min-width:150px;display:flex;flex-direction:column;gap:5px}.food-menu button,.food-menu span{border:0;border-radius:10px;padding:8px;text-align:left;background:#f3e7d7;color:#6b4c34;font:13px Georgia,serif}.food-menu button{cursor:grab}.food-menu span{color:#aaa19a;background:#eeeae5}#mouseCursor{position:fixed;z-index:30;left:0;top:0;width:36px;height:44px;background:url(/mouse-cursor.svg) center/contain no-repeat;pointer-events:none;opacity:0;transform:translate(-25%,-14%);transition:opacity .16s ease}body.pointer-mouse #mouseCursor{opacity:1}body.pointer-mouse.pet-cursor #mouseCursor{opacity:0}.app-shell.night{--ink:#d7d0c7;--hud:#332f37;background:transparent}.night .game-frame{background:linear-gradient(145deg,#494454,#292936);border-color:#66606a}.night #scene{background:#313848}.night .wall{background:radial-gradient(ellipse at 68% 24%,#667284,#354151 60%,#252d3b)}.night .wall-light{background:radial-gradient(ellipse at 68% 10%,rgba(197,215,237,.25),transparent 70%)}.night .tabletop{filter:brightness(.56) saturate(.75)}.night #catCanvas{filter:brightness(.73) saturate(.77) drop-shadow(0 15px 12px rgba(8,10,15,.4))}.night .hud{background:linear-gradient(#494450,#37343d);border-color:#59515b;color:#ddd4ce}.night .hud-title,.night .hud a{color:#e4cdb7}.night .round-button,.night .hud-button{background:linear-gradient(#605a65,#47434c);border-color:#716a73;color:#efe7db}.night .scene-name{background:#272a358c;color:#e2d2bf}.night .future-slot{filter:brightness(.65)}@media(max-width:700px){body{overflow:auto}.app-shell{width:100%;margin:0;min-height:100dvh;gap:0}.game-frame{padding:5px;border-radius:0 0 24px 24px;border-width:0 0 1px;flex:none}#scene{height:min(69dvh,660px);min-height:390px;border-radius:0 0 19px 19px}.tabletop{top:calc(43% + var(--table-y));height:58%;left:-18%;width:136%}.table-edge{top:calc(42.5% + var(--table-y))}#catAnchor{top:90%}#catCanvas{width:min(107vw,67vh)}#scene[data-pose=sleep] #catCanvas{width:min(115vw,70vh)}.hud{grid-template-columns:1fr auto;gap:8px;min-height:210px;padding:13px;border:0;border-radius:20px 20px 0 0}.hud-left{grid-column:1;grid-row:1;flex-wrap:wrap;gap:8px}.hud-right{grid-column:2;grid-row:1;gap:6px}.hud-center{grid-column:1/-1;grid-row:2;min-width:0}.character-slots{gap:3px}.character-slots span{width:26px;height:26px}.hud-button{padding:7px 10px}.round-button{width:35px;height:35px}.round-button svg{width:21px;height:21px}.scene-name{left:10px;top:10px}.food-menu{left:auto;right:0}.styles-menu{bottom:calc(100% + 7px)}}@media(max-width:390px){.character-slots span{width:23px;height:23px}.hud-right{gap:3px}.round-button{width:32px;height:32px}.hud{padding:10px;gap:4px}}@media(max-width:700px){.app-shell.landscape-layout{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:4px;height:100dvh;min-height:0}.app-shell.landscape-layout .game-frame{height:100%;min-height:0;border-radius:0 14px 14px 0}.app-shell.landscape-layout #scene{height:calc(100dvh - 10px);min-height:0;border-radius:0 11px 11px 0}.app-shell.landscape-layout #catAnchor{top:83%}.app-shell.landscape-layout #catCanvas{width:min(76vw,62vh)}.app-shell.landscape-layout .hud{height:100%;min-height:0;display:flex;flex-direction:column;justify-content:space-between;gap:7px;padding:9px 5px;border-radius:14px 0 0 14px}.app-shell.landscape-layout .hud-left,.app-shell.landscape-layout .hud-right{justify-content:center;flex-wrap:wrap;gap:4px}.app-shell.landscape-layout .hud-center{order:3;font-size:10px}.app-shell.landscape-layout .hud-title{font-size:12px}.app-shell.landscape-layout .character-slots{justify-content:center;flex-wrap:wrap;gap:2px}.app-shell.landscape-layout .donate{font-size:9px}.app-shell.landscape-layout .styles-menu{left:auto;right:0}}@media(max-height:500px)and (min-width:701px){body{overflow:hidden}.app-shell{display:grid;grid-template-columns:minmax(0,1fr) 175px;gap:6px;width:calc(100% - 12px);height:calc(100dvh - 12px);min-height:0;margin:6px auto}.game-frame{height:100%;min-height:0;padding:6px;border-radius:21px}#scene{height:100%;min-height:0;border-radius:16px}#catAnchor{top:94%}#catCanvas{width:min(54vw,78vh)}.hud{height:100%;min-height:0;display:flex;flex-direction:column;justify-content:space-between;gap:5px;padding:9px;border-radius:18px}.hud-left,.hud-right{justify-content:center;flex-wrap:wrap;gap:6px}.hud-center{min-width:0;order:3}.hud-title{font-size:14px}.character-slots{justify-content:center;flex-wrap:wrap;gap:3px}.character-slots span{width:25px;height:25px}}@media(max-width:700px){#scene #catCanvas,#scene[data-pose=sleep] #catCanvas{width:min(94vw,64vh)}.app-shell.landscape-layout #scene #catCanvas{width:min(68vw,62vh)}}#hand{--contact: 0;width:clamp(104px,10vw,144px);transform-origin:10% 37%;-webkit-mask-image:linear-gradient(133deg,#000 0 73%,transparent 96%);mask-image:linear-gradient(133deg,#000 0 73%,transparent 96%);filter:drop-shadow(1px 1px 2px rgba(73,38,22,.12))}#hand:before{position:absolute;content:"";inset:0;background:url(/hand-curl.png) center / contain no-repeat;opacity:var(--contact);-webkit-mask-image:radial-gradient(ellipse 18% 21% at 8% 37%,#0005,#000);mask-image:radial-gradient(ellipse 18% 21% at 8% 37%,#0005,#000)}#hand{background-image:none}#hand:after{position:absolute;content:"";inset:0;background:url(/hand.png) center / contain no-repeat;opacity:calc(1 - var(--contact))}#catCanvas{top:var(--sole-offset, 0px);filter:none}.night #catCanvas{filter:brightness(.73) saturate(.77)}#catAnchor:before{position:absolute;content:"";width:var(--shadow-width, 0px);height:32px;transform:translate(-50%,-42%);background:radial-gradient(ellipse at center,#5b301c50,#79401d20 55%,transparent 74%)}.night #catAnchor:before{filter:brightness(.42)}.food-wrap.open .food-menu{transition:none}.app-shell:has(#scene[data-renderer=surface])~#hand{-webkit-mask-image:linear-gradient(133deg,#000 0 67%,transparent 94%);mask-image:linear-gradient(133deg,#000 0 67%,transparent 94%)}.app-shell:has(#scene[data-renderer=surface])~#finger{width:27px;height:63px;border:0;border-radius:54% 53% 44% 46%;background:radial-gradient(ellipse at 42% 21%,#f9d1b4 8%,#e8af89 43%,#c18a65 77%);box-shadow:inset -2px 1px 3px #c58a6b80,2px 2px 4px #58352130;-webkit-mask-image:linear-gradient(#000 0 64%,transparent 96%);mask-image:linear-gradient(#000 0 64%,transparent 96%);transform:translate(-62%,-60%) rotate(24deg)}.app-shell:has(#scene[data-renderer=surface])~#finger span{top:5px;left:6px;width:15px;height:18px}#hand.kinetic-hand{position:absolute;inset:0;left:0!important;top:0!important;width:100%;height:100%;z-index:11;aspect-ratio:auto;transform:none!important;-webkit-mask-image:none!important;mask-image:none!important;filter:none;transition:none;pointer-events:none}#hand.kinetic-hand:before,#hand.kinetic-hand:after{display:none}#hand.kinetic-hand canvas{display:block}#foodSprite{z-index:12;width:19px;height:16px;border-width:1px}#scene{--gold: 0}.wall-light:after{position:absolute;inset:0;content:"";pointer-events:none;opacity:var(--gold);background:radial-gradient(ellipse at 3% 0%,#ffdc9d 0%,#ffc570a0 21%,transparent 65%),conic-gradient(from 110deg at -13% -18%,transparent,#ffe2a95c 18deg,#ffd18020 34deg,transparent 68deg),linear-gradient(122deg,transparent 23%,#954f2525 54%,#4d2f24a0 100%)}.night .wall-light:after{background:radial-gradient(ellipse at 7% 3%,#edbe769f 0%,#dc8e4f63 26%,transparent 65%),linear-gradient(133deg,transparent 20%,#30284845 69%,#1b1c35bd 100%)}.table-light:after{position:absolute;inset:0;content:"";pointer-events:none;opacity:var(--gold);background:radial-gradient(ellipse 43% 42% at 18% 45%,#ffcf6799,#ffb84445 54%,transparent 82%),linear-gradient(105deg,transparent 27%,#91461617 46%,#50291975 100%)}#catAnchor:after{position:absolute;content:"";top:-2px;width:var(--shadow-width, 0px);height:50px;transform:translate(-36%,-49%) skew(-24deg);opacity:var(--gold);background:radial-gradient(ellipse,#5029136e,#6b36183e 45%,transparent 72%);z-index:-1}@media(min-width:701px)and (min-height:501px){.app-shell{width:min(calc(100% - 32px),clamp(610px,calc((100dvh - 155px)*1.3 + 20px),1034px))}#scene #catCanvas,#scene[data-pose=sleep] #catCanvas{width:min(81vw,clamp(410px,calc((100dvh - 155px)*.98),764px))}#scene #catAnchor{top:97%}}
