.new-content-anchor{position:relative}.new-content-dot{position:absolute;top:-4px;right:-4px;width:12px;height:12px;box-sizing:border-box;border:2px solid #fff9e6;border-radius:50%;background:#e75055;box-shadow:0 1px 3px #5b30252b;pointer-events:none;z-index:2}.settings-actions{--settings-card-paper:var(--cat-paper);--settings-card-fold:var(--cat-gold);--settings-card-blush:#eab8a5;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.settings-actions button,.level-pause button{min-width:0;min-height:44px;padding:10px 12px;border:2px solid var(--cat-edge);border-radius:14px;background:var(--cat-paper);color:var(--cat-ink);font:inherit;font-size:18px;line-height:1.3;cursor:pointer;overflow-wrap:anywhere}.settings-actions button:hover,.level-pause button:hover{box-shadow:inset 0 0 0 1px var(--cat-edge)}.settings-actions button:focus-visible,.level-pause button:focus-visible{outline:3px dashed var(--cat-ink);outline-offset:3px}.settings-actions .settings-card-action{position:relative;grid-column:1 / -1;min-height:80px;display:flex;align-items:center;gap:14px;padding:12px 18px 12px 14px;border-radius:5px 17px 17px 5px;background:var(--cat-gold);box-shadow:3px 3px #5b4a3b16;text-align:left;isolation:isolate}.settings-card-action>span:not(.settings-card-stitch):not(.new-content-dot){flex:1;padding-inline-end:9px}.settings-card-icon{flex:0 0 66px;width:66px;height:54px;overflow:visible}.settings-card-stitch{position:absolute;top:8px;bottom:8px;right:9px;width:0;border-left:1px dashed var(--cat-edge);opacity:.75;pointer-events:none}.settings-actions .settings-card-action:hover{box-shadow:3px 3px #5b4a3b26,inset 0 0 0 1px var(--cat-edge)}.settings-actions .settings-pause-action{background:var(--settings-soft,var(--cat-gold))}.settings-actions .settings-back-action,.settings-actions .settings-action-wide{grid-column:1 / -1}.settings-back-action>span{display:inline-block;margin-inline-end:4px;font-size:.75em;vertical-align:1px}.settings-restart-action>span{font-family:inherit;font-size:1.15em}.cat-system[data-cat-mode=black] .settings-actions{--settings-card-blush:#b98776}.level-pause{position:absolute;inset:0;z-index:65;display:grid;place-items:center;background:#25223555;padding:12px}.level-pause>div{padding:24px;border:3px solid var(--cat-edge);border-radius:24px;background:var(--cat-paper);color:var(--cat-ink);text-align:center;max-width:100%}.level-pause p{margin:0 0 14px;font-size:clamp(22px,4vw,30px)}.level-pause button{background:var(--cat-gold)}@media(max-width:360px){.settings-actions{gap:8px}.settings-actions button{font-size:16px;padding:9px 8px}.settings-actions .settings-card-action{gap:9px;padding:9px 14px 9px 9px}.settings-card-icon{flex-basis:58px;width:58px;height:48px}}@media(max-height:560px){.settings-actions .settings-card-action{min-height:64px;padding-block:7px}.settings-card-icon{height:44px}}@media(prefers-reduced-motion:reduce){.settings-actions button,.level-pause button{transition:none}}.settings-dialog-overlay{--settings-paper: #fffaf0;--settings-ink: #634b3b;--settings-edge: #ad8969;--settings-soft: #f4e5cc;--settings-blush: #ecc1b2;--settings-gold: #f4d88f;--cat-paper: var(--settings-paper);--cat-ink: var(--settings-ink);--cat-edge: var(--settings-edge);--cat-gold: var(--settings-gold);--cat-bg: var(--settings-soft);--cat-muted: #92775f;position:fixed;inset:0;z-index:160;display:grid;place-items:center;padding:max(56px,calc(env(safe-area-inset-top) + 46px)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));box-sizing:border-box;color:var(--settings-ink);background:#3e2d2566;backdrop-filter:blur(5px)}.cat-system[data-cat-mode=black] .settings-dialog-overlay{--settings-paper: #554238;--settings-ink: #fff1d8;--settings-edge: #c5a384;--settings-soft: #6d5445;--settings-blush: #a9746b;--settings-gold: #806748;--cat-muted: #dfc4a8;background:#211b1bb0}.settings-dialog-shell{position:relative;isolation:isolate;width:min(456px,100%);min-width:0;max-height:100%;display:flex}.settings-dialog-ears{position:absolute;top:-47px;left:0;width:100%;height:78px;z-index:0;overflow:visible;pointer-events:none}.settings-dialog{position:relative;z-index:1;width:100%;max-height:min(760px,calc(100dvh - 80px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));min-height:0;display:flex;flex-direction:column;border:3px solid var(--settings-edge);border-radius:34px;background:var(--settings-paper);box-shadow:5px 7px #2e211c26,0 18px 45px #2e211c2e;overflow:hidden}.settings-dialog-header{position:relative;flex:0 0 auto;min-height:68px;display:grid;place-items:center;padding:8px 62px;border-bottom:1px dashed var(--settings-edge)}.settings-dialog-title{margin:0;color:var(--settings-ink);font-size:clamp(27px,6vw,34px);line-height:1.25;font-weight:700;text-align:center}.settings-title-tap{min-height:44px;padding:0 8px;color:inherit;background:transparent;border:0;border-radius:10px;font:inherit;cursor:pointer}.settings-dialog-close{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:44px;height:44px;padding:10px;border:2px solid var(--settings-edge);border-radius:50%;background:var(--settings-soft);color:var(--settings-ink);cursor:pointer}.settings-dialog-close svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round}.settings-dialog-whiskers{position:absolute;top:28px;left:29px;width:20px;height:12px;border-top:2px solid var(--settings-edge);border-bottom:2px solid var(--settings-edge);transform:rotate(10deg);opacity:.7;pointer-events:none}.settings-dialog-whiskers-right{left:auto;right:74px;transform:rotate(-10deg)}.settings-dialog-content{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:10px 24px 24px;scrollbar-width:thin;scrollbar-color:var(--settings-edge) var(--settings-paper)}.settings-dialog-content>canvas{display:block;width:min(240px,100%);height:auto;margin:-12px auto -3px}.settings-dialog-content>.flex{gap:20px}.settings-dialog :is(button,input,select){font-family:inherit}.settings-dialog :is(button,input,select):focus-visible{outline:3px dashed var(--settings-ink);outline-offset:3px}.settings-dialog :is([class~=bg-white],[class~=bg-gray-100]){background-color:var(--settings-soft)}.settings-dialog :is([class~=border-black],[class~=border-gray-300]){border-color:var(--settings-edge)}.cat-system[data-cat-mode=black] .settings-dialog :is([class~=bg-white],[class~=bg-gray-100]){background-color:var(--settings-soft)}.cat-system[data-cat-mode=black] .settings-dialog :is([class~=border-black],[class~=border-gray-300]){border-color:var(--settings-edge)}.settings-developer-state{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:0 0 auto;min-height:50px;padding:4px 20px;border-top:1px dashed var(--settings-edge);color:var(--cat-muted);background:var(--settings-soft);font-size:15px}.settings-developer-state button{min-height:44px;min-width:60px;padding:6px 12px;border:0;border-radius:12px;color:var(--settings-ink);background:transparent;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.settings-dialog-close:hover,.settings-developer-state button:hover{background:var(--settings-gold)}@media(max-width:380px){.settings-dialog-overlay{padding-inline:12px}.settings-dialog{border-radius:28px}.settings-dialog-content{padding-inline:16px}.settings-dialog-whiskers{left:20px;width:16px}.settings-dialog-whiskers-right{left:auto;right:66px}}@media(max-height:560px){.settings-dialog-overlay{padding-top:max(40px,calc(env(safe-area-inset-top) + 30px));padding-bottom:max(10px,env(safe-area-inset-bottom))}.settings-dialog{max-height:calc(100dvh - 52px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border-radius:25px}.settings-dialog-ears{top:-32px;height:60px}.settings-dialog-header{min-height:54px;padding-block:4px}.settings-dialog-title{font-size:27px}.settings-dialog-close{top:5px}.settings-dialog-whiskers{top:22px}.settings-dialog-content>canvas{width:160px;margin-block:-20px -4px}.settings-dialog-content{padding-block:6px 16px}.settings-dialog-content>.flex{gap:14px}}@media(prefers-reduced-motion:reduce){.settings-dialog,.settings-dialog button{animation:none;transition:none}}.ending-stage{--ending-paper: #fffdf6;--ending-ink: #5b3f3d;--ending-edge: #db8796;--ending-soft: #ffd6dc;--ending-accent: #a84861;--ending-button-ink: #fffdf6;position:relative;z-index:10;width:min(940px,100%);height:100%;max-height:740px;min-height:0;padding:12px clamp(8px,2vw,22px);box-sizing:border-box;container:ending-stage / size}.ending-dove{--ending-ink: #365c72;--ending-edge: #79b9cf;--ending-soft: #dff1f6;--ending-accent: #397e9e}.ending-paw{--ending-ink: #713c44;--ending-edge: #d9707d;--ending-soft: #ffd8df;--ending-accent: #b44a5c}.cat-system[data-cat-mode=black] .ending-stage{--ending-paper: #4b5473;--ending-ink: #fff3df;--ending-edge: #f3b6c7;--ending-soft: #7b607e;--ending-accent: #f3b6c7;--ending-button-ink: #413949}.cat-system[data-cat-mode=black] .ending-dove{--ending-edge: #a7d5e5;--ending-soft: #607c97;--ending-accent: #a7d5e5}.cat-system[data-cat-mode=black] .ending-paw{--ending-edge: #f5a7b4;--ending-soft: #886378;--ending-accent: #f5a7b4}.ending-card{position:relative;isolation:isolate;width:min(760px,100%);height:100%;max-height:650px;min-height:0;margin:auto;padding:clamp(62px,18cqh,125px) clamp(24px,9cqw,76px) clamp(32px,9cqh,64px);box-sizing:border-box;display:grid;grid-template-rows:minmax(52px,1fr) auto auto;justify-items:center;gap:clamp(8px,2.2cqh,18px);color:var(--ending-ink);text-align:center}.ending-paw .ending-card{padding-top:clamp(78px,29cqh,186px)}.ending-paw .ending-card{padding-bottom:clamp(48px,14cqh,96px)}.ending-pig .ending-card,.ending-dove .ending-card{padding-bottom:clamp(48px,13cqh,90px)}.ending-card-shape{position:absolute;inset:0;width:100%;height:100%;z-index:-1;overflow:visible;filter:drop-shadow(4px 7px 0 #5b4a3b20)}.ending-illustration{width:min(300px,100%);height:100%;min-height:0;display:flex;justify-content:center;align-items:center}.ending-animal{display:block;width:100%;height:100%;max-height:180px;overflow:visible}.ending-paw .ending-illustration{transform:translateY(clamp(4px,1.4cqh,10px))}.ending-paw .ending-animal{width:74%;max-height:140px}.ending-animal-paw{animation:ending-paw-wiggle 2.4s ease-in-out infinite;transform-origin:50% 75%}.ending-animal-pig{animation:ending-pig-bob 2.6s ease-in-out infinite;transform-origin:50% 75%}@keyframes ending-paw-wiggle{0%,55%,to{transform:rotate(0)}65%{transform:rotate(-9deg) scale(.97)}77%{transform:rotate(8deg)}88%{transform:rotate(-4deg)}}@keyframes ending-pig-bob{0%,to{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-7px) rotate(3deg)}}.ending-copy{min-width:0;width:100%}.ending-stage .ending-card .ending-title{margin:0;color:var(--ending-accent);font-size:clamp(25px,5.6cqw,46px);font-weight:700;line-height:1.15;text-wrap:balance;overflow-wrap:anywhere}.ending-message{max-width:28em;margin:clamp(6px,1.7cqh,14px) auto 0;color:var(--ending-ink);font-size:clamp(16px,3.2cqw,25px);font-weight:700;line-height:1.35;text-wrap:balance;overflow-wrap:anywhere}.ending-actions{width:100%;min-width:0;display:flex;justify-content:center;align-items:stretch;flex-wrap:wrap;gap:clamp(8px,2cqw,14px)}.ending-actions button{flex:1 1 110px;max-width:260px;min-width:0;min-height:44px;padding:10px clamp(12px,2.5cqw,24px);border:3px solid var(--ending-edge);border-radius:22px;font:inherit;font-size:clamp(17px,2.6cqw,23px);font-weight:700;line-height:1.2;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease;overflow-wrap:anywhere}.ending-stage .ending-actions .ending-retry{background:var(--ending-accent);color:var(--ending-button-ink);box-shadow:2px 4px #5b4a3b26}.ending-stage .ending-actions .ending-back{background:var(--ending-paper);color:var(--ending-ink)}.ending-actions button:hover{transform:translateY(-2px) rotate(-1deg);box-shadow:3px 6px #5b4a3b26}.ending-actions button:active{transform:translateY(1px)}.ending-actions button:focus-visible{outline:3px dashed var(--ending-ink);outline-offset:4px}.ending-pig .ending-actions,.ending-dove .ending-actions{width:min(420px,82%);gap:clamp(8px,1.6cqw,12px)}.ending-pig .ending-actions button,.ending-dove .ending-actions button{flex-basis:105px;max-width:202px;border-width:2px;border-radius:18px;padding:9px clamp(10px,1.8cqw,16px);font-size:clamp(16px,2.25cqw,20px)}.ending-paw .ending-actions{width:min(340px,72%);gap:clamp(6px,1.4cqw,10px)}.ending-paw .ending-actions button{flex:1 1 80px;max-width:164px;border-width:2px;border-radius:17px;padding:8px 10px;font-size:clamp(14px,2.1cqw,18px)}@container ending-stage (max-height: 460px) and (min-width: 540px){.ending-card{width:min(900px,100%);grid-template-columns:minmax(100px,.65fr) minmax(0,1.35fr);grid-template-rows:minmax(0,1fr) auto;gap:8px 20px;align-items:center;padding:clamp(36px,19cqh,78px) 9% clamp(22px,9cqh,40px)}.ending-paw .ending-card{padding-top:clamp(48px,28cqh,110px)}.ending-paw .ending-card{padding-bottom:clamp(30px,13cqh,56px)}.ending-pig .ending-card,.ending-dove .ending-card{padding-bottom:clamp(30px,12cqh,52px)}.ending-illustration{grid-column:1;grid-row:1 / 3}.ending-copy{grid-column:2;grid-row:1}.ending-actions{grid-column:2;grid-row:2}.ending-stage .ending-card .ending-title{font-size:clamp(24px,7.5cqh,34px)}.ending-message{margin-top:5px;font-size:clamp(15px,4.6cqh,20px)}.ending-actions button{padding:7px 10px;font-size:clamp(16px,4.6cqh,20px)}.ending-pig .ending-actions,.ending-dove .ending-actions{width:100%}.ending-pig .ending-actions button,.ending-dove .ending-actions button{flex-basis:90px;padding:7px 9px;font-size:clamp(15px,4.2cqh,18px)}}@container ending-stage (max-height: 470px) and (max-width: 539px){.ending-card{gap:7px;padding:16cqh 8% 9cqh}.ending-paw .ending-card{padding-top:27cqh}.ending-paw .ending-card{padding-bottom:14cqh}.ending-pig .ending-card,.ending-dove .ending-card{padding-bottom:13cqh}.ending-stage .ending-card .ending-title{font-size:clamp(23px,6cqw,29px)}.ending-message{margin-top:5px;font-size:clamp(15px,4cqw,18px)}.ending-actions button{padding:7px 9px;font-size:16px}.ending-pig .ending-actions,.ending-dove .ending-actions{width:92%}.ending-pig .ending-actions button,.ending-dove .ending-actions button{flex-basis:100px;padding:7px 8px;font-size:15px}}@container ending-stage (max-height: 280px){.ending-card{gap:5px}.ending-message{font-size:14px;line-height:1.2}.ending-actions{gap:6px}.ending-actions button{border-width:2px;font-size:15px}}@container ending-stage (max-height: 300px) and (max-width: 539px){.ending-card{grid-template-rows:minmax(0,1fr) auto;align-content:center;padding:15cqh 7% 8cqh}.ending-paw .ending-card{padding-top:27cqh}.ending-illustration{position:absolute;top:5cqh;left:calc(50% - 31px);width:62px;height:38px}.ending-paw .ending-illustration{top:14cqh}.ending-pig .ending-card,.ending-dove .ending-card{padding-bottom:12cqh}.ending-copy{align-self:center}.ending-stage .ending-card .ending-title{font-size:clamp(20px,6cqw,26px)}.ending-actions button{flex-basis:90px;font-size:14px}}@media(prefers-reduced-motion:reduce){.ending-animal-paw,.ending-animal-pig{animation:none}.ending-actions button{transition:none}.ending-actions button:hover{transform:none}}@media(max-width:767px){.cat-system .ending-stage{display:flex;align-items:center;justify-content:center;padding:0;overflow:visible}.cat-system .ending-card{width:520px;max-width:none;height:calc(520px * 6 / 7);max-height:none;flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:70px 0 62px}.cat-system .ending-paw .ending-card{padding-top:145px;padding-bottom:66px}.cat-system .ending-illustration{position:static;width:180px;height:94px;flex-shrink:0;transform:none}.cat-system .ending-paw .ending-illustration{height:70px;width:155px}.cat-system .ending-copy{width:min(290px,calc(100vw - 40px))}.cat-system .ending-stage .ending-card .ending-title{font-size:26px}.cat-system .ending-message{font-size:18px;margin-top:8px}.cat-system .ending-actions{width:min(260px,calc(100vw - 44px));gap:10px;flex-wrap:nowrap}.cat-system .ending-actions button{flex:1 1 0;min-height:44px;padding:10px 8px;font-size:17px}}@media(max-width:767px)and (max-height:480px){.cat-system .ending-card{width:390px;height:calc(390px * 6 / 7);padding:45px 0 40px;gap:8px}.cat-system .ending-paw .ending-card{padding-top:105px;padding-bottom:44px}.cat-system .ending-illustration{height:54px}.cat-system .ending-paw .ending-illustration{height:40px}.cat-system .ending-stage .ending-card .ending-title{font-size:21px}.cat-system .ending-message{font-size:15px;margin-top:4px}.cat-system .ending-actions button{font-size:15px}}.gift-detail-overlay{position:fixed;inset:0;display:grid;place-items:center;padding:20px;background:#30282188;z-index:125}.gift-detail{position:relative;width:min(440px,100%);max-height:calc(var(--safe-vh,100dvh) - 40px);overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain;padding:42px 14px 14px;border:3px solid var(--cat-edge,#79634f);border-radius:28px;background:var(--cat-paper,#fff9e6);color:var(--cat-ink,#5b4a3b);animation:gift-detail-pop .38s cubic-bezier(.18,.9,.3,1.2)}.gift-detail-close{position:absolute;right:10px;top:6px;width:40px;height:40px;font-size:27px;border:0;background:none;color:inherit}.gift-detail article{border:0;padding:8px}.gift-detail h3{font-size:24px}@keyframes gift-detail-pop{0%{opacity:0;transform:translateY(20px) scale(.86) rotate(-2deg)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.gift-detail{animation:none}}.finale-reply-overlay{perspective:1100px}.finale-reply-overlay .finale-reply-letter.is-open{animation:finale-reply-pop .68s cubic-bezier(.2,.8,.2,1) both;transform-origin:50% 70%}.finale-reply-letter .finale-reply-card{animation:finale-card-pop .76s .08s cubic-bezier(.2,.8,.2,1) both;transform-origin:50% 70%}.finale-reply-letter .finale-close{z-index:1;width:44px;height:44px;right:4px;top:1px}.finale-reply-letter .finale-done{max-width:100%;font-size:clamp(16px,4.2vw,20px);line-height:1.45}.greeting-card-trigger{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in}.greeting-card-viewer{position:fixed;inset:0;z-index:210;display:flex;align-items:center;justify-content:center;padding:64px 14px 24px;background:#24202bf2;animation:none;font-family:Chewy,ZCOOL KuaiLe,sans-serif}.greeting-card-close{position:absolute;right:14px;top:14px;width:44px;height:44px;border:2px solid #d4b78a;border-radius:50%;color:#fff9e6;font:inherit;font-size:28px;background:#675042}.greeting-card-full{display:flex;flex-direction:column;align-items:center;max-height:100%;overflow:auto;touch-action:pan-y;color:#fff9e6}.greeting-card-full img{display:block;width:100%;max-height:calc(100dvh - 190px);object-fit:contain;border-radius:8px;-webkit-touch-callout:default;user-select:auto}.greeting-card-full p{margin:14px 0 10px;font-size:15px}.greeting-card-save{display:block;padding:10px 22px;min-height:44px;border:2px solid #d4b78a;border-radius:14px;background:#fff1c6;color:#5b4a3b;font-size:18px}@keyframes finale-reply-pop{0%{opacity:0;transform:translateY(52px) scale(.78) rotateX(7deg)}62%{opacity:1;transform:translateY(-4px) scale(1.025) rotateX(0)}82%{transform:translateY(2px) scale(.99)}to{opacity:1;transform:none}}@keyframes finale-card-pop{0%{opacity:0;transform:translateY(36px) scale(.82) rotate(-4deg)}64%{opacity:1;transform:translateY(-3px) scale(1.015) rotate(1deg)}to{opacity:1;transform:rotate(-.6deg)}}@media(max-width:480px){.finale-reply-letter .finale-rewards small{font-size:12px;line-height:1.4}.finale-reply-letter .finale-theme small{line-height:1.6}.finale-reply-letter .card-stamp{font-size:12px}}@media(prefers-reduced-motion:reduce){.finale-reply-overlay .finale-reply-letter.is-open,.finale-reply-letter .finale-reply-card{animation:none}}.house-entry{display:block;position:relative;width:136px;height:122px;margin:12px auto 0;padding:0;background:none;border:0;color:#6f5747;font:inherit;cursor:pointer;transition:transform .2s}.house-entry svg{width:100%;height:100%;display:block}.house-entry span{position:absolute;left:0;right:0;bottom:16px;text-align:center;font-size:15px;white-space:nowrap}.house-entry:hover{transform:translateY(-3px) rotate(-2deg)}.house-entry.is-small{width:114px;height:104px}.house-entry.is-small span{bottom:14px;font-size:13px}.cat-system[data-cat-mode=black] .house-entry{color:#fff1d6}.cat-system[data-cat-mode=black] .house-entry svg>path:first-child{fill:#635d77;stroke:#cebea5}.cat-system[data-cat-mode=black] .house-entry svg>path:nth-child(2){fill:#817993;stroke:#cebea5}.cat-home{position:fixed;inset:0;z-index:140;overflow:hidden;color:var(--cat-ink);background:#a8d8f0}.home-world{position:absolute;inset:0}.home-world canvas{display:block;width:100%;height:100%}.home-heading{position:absolute;top:max(10px,env(safe-area-inset-top));left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));display:flex;justify-content:space-between;align-items:flex-start;gap:8px;pointer-events:none}.home-sign{display:flex;gap:8px;align-items:center;padding:4px 12px 4px 4px;background:var(--cat-paper);border:1.5px solid var(--cat-edge);border-radius:18px;box-shadow:0 3px #79866a16}.home-sign svg{width:42px;height:42px}.home-sign h2{font-size:21px;margin:0}.cat-home button{font:inherit;cursor:pointer;color:var(--cat-ink);border:2px solid var(--cat-edge);background:var(--cat-paper);border-radius:16px;min-height:44px;min-width:44px}.cat-home button:focus-visible{outline:3px solid var(--cat-ink);outline-offset:3px}.cat-home button:hover:not(:disabled){background:var(--cat-gold)}.cat-home button:disabled{opacity:.4;cursor:default}.cat-home .home-close{pointer-events:auto}.home-heading-actions{display:flex;gap:10px;pointer-events:auto}.home-heading-actions button{display:grid;place-items:center;width:48px;height:48px;padding:10px;box-shadow:0 3px #28333f18}.home-heading-actions svg{width:26px;height:26px}.home-camera{position:absolute;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translate(-50%);display:flex;gap:4px;padding:6px;border:2px solid var(--cat-edge);border-radius:22px;background:var(--cat-paper);box-shadow:0 4px #28333f18}.cat-home .home-camera button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:46px;min-height:50px;padding:4px;border:0;border-radius:14px;background:transparent}.home-camera svg{width:23px;height:23px}.home-camera span{font-size:11px;line-height:1.2}.home-speech{position:absolute;bottom:max(96px,calc(env(safe-area-inset-bottom) + 88px));left:50%;transform:translate(-50%);width:max-content;max-width:min(420px,calc(100% - 30px));margin:0;padding:10px 16px;border:1.5px solid var(--cat-edge);border-radius:18px;background:var(--cat-paper);color:var(--cat-ink);font-size:14px;text-align:center;line-height:1.5;pointer-events:none;opacity:0;transition:opacity .2s}.home-speech.is-visible{opacity:1}.home-mode{position:absolute;right:max(12px,env(safe-area-inset-right));bottom:max(9px,env(safe-area-inset-bottom))}.home-unavailable{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(420px,calc(100% - 32px));text-align:center;padding:20px;background:var(--cat-paper);border:1.5px solid var(--cat-edge);border-radius:22px}.home-unavailable h3{font-size:23px}.home-unavailable p{margin:12px 0}.home-unavailable button{padding:0 16px}.furniture-reward{margin:0 0 16px;padding:10px 16px;border:2px solid var(--cat-edge);border-radius:14px;background:var(--cat-paper);color:var(--cat-ink);text-align:center}.furniture-reward p{font-size:13px;margin-top:4px}.visual-preview .cat-home{bottom:60px}@media(max-width:720px){.home-sign h2{font-size:18px}.home-camera{bottom:max(64px,calc(env(safe-area-inset-bottom) + 60px))}.home-speech{bottom:max(140px,calc(env(safe-area-inset-bottom) + 134px))}}@media(max-height:580px){.home-sign h2{font-size:17px}.home-sign svg{width:34px;height:34px}.home-speech{padding:6px 10px;font-size:12px}.home-mode{bottom:12px}.home-camera{padding:4px}.cat-home .home-camera button{min-height:44px}}@media(prefers-reduced-motion:reduce){.house-entry,.home-speech{transition:none}}.cat-system{--cat-bg:#fff9e6;--cat-paper:#fffdf5;--cat-ink:#5b4a3b;--cat-muted:#8c765e;--cat-edge:#b4946e;--cat-gold:#ffec99}.cat-system[data-cat-mode=black]{--cat-bg:#363e59;--cat-paper:#4b5473;--cat-ink:#fff3df;--cat-muted:#ddd2e7;--cat-edge:#b8b3d1;--cat-gold:#756c91;color:var(--cat-ink);background-color:var(--cat-bg)}.cat-mode-switch{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.cat-mode-switch button{display:flex;align-items:center;gap:6px;padding:8px 12px;border:2px solid var(--cat-edge);border-radius:12px;background:var(--cat-paper);color:var(--cat-ink);font:inherit;cursor:pointer}.cat-mode-switch button[aria-pressed=true]{background:var(--cat-gold);box-shadow:inset 0 0 0 1px var(--cat-edge)}.compact-cat-mode{display:flex;align-items:center;gap:5px;min-height:44px;padding:3px 9px;border:1.5px solid var(--cat-edge);border-radius:14px;background:var(--cat-paper);color:var(--cat-ink);font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}.app-frame{height:100dvh}.app-topbar{width:100%;flex-shrink:0;display:flex;flex-direction:column;gap:5px;padding:8px max(10px,env(safe-area-inset-right)) 4px;z-index:60}.app-primary-controls{display:flex;justify-content:flex-end;gap:8px}.app-primary-controls button{min-width:44px;min-height:44px}.app-active-gifts{display:flex;justify-content:flex-start;align-items:center;gap:6px;padding:1px 2px 8px;width:100%;overflow-x:auto}.app-content{position:relative;width:100%;min-height:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden}.app-mode-footer{width:100%;flex-shrink:0;min-height:50px;display:flex;justify-content:flex-end;padding:3px max(10px,env(safe-area-inset-right)) max(3px,env(safe-area-inset-bottom))}.app-frame[data-game-state=start] .app-content{justify-content:center}.start-screen{width:min(760px,100%);height:100%;max-height:820px;min-height:0;padding:8px clamp(14px,4vw,26px) 18px;box-sizing:border-box;container-type:size;container-name:start-screen}.start-layout{position:relative;width:100%;height:100%;min-height:0;display:grid;grid-template-rows:14% 12% minmax(0,1fr)}.start-community{display:flex;justify-self:end;align-self:center;gap:clamp(10px,2cqh,18px);padding:4px 4px 0;z-index:2}.start-community-button{position:relative;width:clamp(54px,12cqh,88px);height:clamp(50px,11cqh,80px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:3px solid #8d6e63;border-radius:5px;color:#5d4037;background:#d4a373;font:inherit;font-size:clamp(10px,1.8cqh,12px);font-weight:700;line-height:1.15;cursor:pointer;box-shadow:3px 4px #5b4a3b16;transform:rotate(3deg);transition:transform .2s}.start-mail{border-color:#2d2d2d;color:#2d2d2d;background:var(--cat-paper);transform:rotate(-3deg)}.start-community-button:hover{transform:translateY(-2px) rotate(0)}.start-community-icon{font-size:clamp(21px,4cqh,30px)}.start-pin{position:absolute;top:-6px;left:calc(50% - 3px);width:6px;height:6px;border-radius:50%;background:#991b1b;box-shadow:0 1px 2px #0003}.start-mail .start-pin{background:#1e40af}.start-cat-slot{--peek-width:clamp(340px,65cqh,460px);--peek-height:calc(var(--peek-width) * 7 / 15);--peek-lift:calc(var(--peek-height) * -.52);position:absolute;left:50%;top:calc(var(--peek-height) * -.38);width:var(--peek-width);height:var(--peek-height);z-index:2;transform:translate(-50%);cursor:pointer;clip-path:inset(22% 34% 62%)}.start-cat-slot.is-jumping{animation:start-cat-peek 1.8s ease-in-out both}.start-cat-slot canvas{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom}.start-card{--start-border:clamp(3px,.7cqh,6px);--start-edge:#765039;--start-ear:var(--cat-paper);--start-ear-inner:#efb99e;grid-row:3;position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:clamp(8px,2.5cqh,20px);padding:clamp(12px,4cqh,32px) clamp(12px,5cqw,40px);border:var(--start-border) solid var(--start-edge);border-radius:clamp(22px,5cqh,42px);background:var(--cat-paper);color:var(--cat-ink);text-align:center;box-shadow:8px 8px #e74c3c26}.start-card-ears{--ear-height:clamp(28px,6cqh,52px);position:absolute;z-index:1;bottom:100%;left:5%;width:90%;height:var(--ear-height);pointer-events:none}.start-card-ear{position:absolute;bottom:calc(var(--start-border) * -1);height:100%;width:auto;aspect-ratio:70 / 56;overflow:visible}.start-card-ear-left{left:0}.start-card-ear-right{right:0;transform:scaleX(-1)}.start-ear-outline{vector-effect:non-scaling-stroke;stroke-width:var(--start-border)}.cat-system[data-cat-mode=black] .start-card{--start-edge:#c6bfdc;--start-ear-inner:#e8c6ae}.start-tape{position:absolute;top:-12px;left:50%;width:clamp(76px,20cqh,128px);height:clamp(20px,4cqh,32px);transform:translate(-50%) rotate(-2deg);background:#fde68acc;border-inline:1px solid #ffffff80;backdrop-filter:blur(2px)}.start-heading h1{margin:0;font-size:clamp(38px,12cqh,88px);font-weight:700;letter-spacing:-.04em;line-height:1.05;text-shadow:3px 3px 0 #e6e6e6}.start-heading p{margin:clamp(4px,1cqh,8px) 0 0;font-size:clamp(14px,3.4cqh,24px);font-weight:700;line-height:1.35}.start-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(6px,2cqh,16px);width:100%;max-width:520px;margin:0 auto}.start-control{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(2px,.8cqh,6px);padding:clamp(6px,1.8cqh,14px) 4px;border:2px dashed #d1d5db;border-radius:12px;background:#f3f4f6;font-weight:700}.start-control-icon{font-size:clamp(22px,6cqh,42px);line-height:1.1}.start-control-label{color:#ea580c;font-size:clamp(13px,2.8cqh,18px);line-height:1.2;overflow-wrap:anywhere}.start-control-blue .start-control-label{color:#3b82f6}.start-control small{color:#6b7280;font-size:clamp(11px,2.2cqh,14px);line-height:1.2}.start-actions{display:flex;justify-content:center;align-items:center;gap:clamp(8px,2cqh,16px)}.start-button{min-width:0;min-height:44px;padding:clamp(8px,1.8cqh,14px) clamp(12px,4cqw,32px);border:0;border-radius:12px;color:#fff;background:#2d2d2d;font:inherit;font-size:clamp(20px,5cqh,34px);font-weight:700;line-height:1.2;cursor:pointer;box-shadow:0 4px 7px #0002;transition:transform .2s,background-color .2s}.start-button:hover{transform:scale(1.03);background:#f97316}.start-actions .house-entry.is-small{flex-shrink:0;width:70px;height:64px;margin:0}.start-actions .house-entry.is-small span{bottom:8px;font-size:10px}.cat-system[data-cat-mode=black] .start-community-button{color:var(--cat-ink);background:var(--cat-gold);border-color:var(--cat-edge)}.cat-system[data-cat-mode=black] .start-control{background:var(--cat-bg);border-color:var(--cat-edge)}@container start-screen (max-height:430px) and (min-width:540px){.start-layout{grid-template-columns:minmax(130px,26%) minmax(0,1fr);grid-template-rows:48% 52%;column-gap:18px}.start-community{grid-column:1;grid-row:1;justify-self:center;align-self:start;padding-top:8px}.start-cat-slot{--peek-width:clamp(250px,70cqh,380px)}.start-card{grid-column:2;grid-row:1 / 3;margin-top:60px;gap:8px;padding:12px 16px}.start-heading h1{font-size:clamp(34px,13cqh,52px)}.start-heading p{font-size:clamp(13px,4cqh,17px)}.start-control{padding:5px 3px;gap:2px}.start-control-icon{font-size:clamp(20px,8cqh,30px)}.start-actions .house-entry.is-small{height:52px;width:62px}.start-actions .house-entry.is-small span{bottom:6px;font-size:9px}}@container start-screen (max-height:400px) and (max-width:539px){.start-card{gap:8px;padding:10px}.start-heading h1{font-size:clamp(32px,11cqh,42px)}.start-control{padding:5px 3px;gap:2px}.start-control-icon{font-size:22px}.start-actions .house-entry.is-small{height:52px;width:62px}.start-actions .house-entry.is-small span{bottom:6px;font-size:9px}}@container start-screen (max-height:330px) and (max-width:539px){.start-layout{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:46px minmax(0,1fr);row-gap:4px}.start-community{grid-column:2;grid-row:1;padding:0 3px;gap:8px}.start-community-button{width:54px;height:44px;font-size:9px}.start-community-icon{font-size:18px}.start-card{grid-column:1 / 3;grid-row:2;padding:8px;gap:6px}.start-heading h1{font-size:32px}.start-heading p{font-size:13px;line-height:1.25}.start-control{padding:4px 2px}.start-control-icon{font-size:20px}.start-control-label{font-size:12px;line-height:1.15}.start-actions .house-entry.is-small{height:44px;width:54px}.start-actions .house-entry.is-small span{bottom:4px}}@container start-screen (max-height:230px) and (min-width:540px){.start-card{margin-top:40px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(0,1fr);align-items:center;gap:4px 8px;padding:6px}.start-heading{grid-column:1 / 3}.start-heading h1{font-size:28px}.start-heading p{margin-top:2px;font-size:12px;line-height:1.25}.start-controls{gap:4px}.start-control{padding:4px 2px;gap:1px}.start-control-icon{font-size:18px}.start-control-label{font-size:11px;line-height:1.1}.start-control small{font-size:10px}.start-actions{flex-direction:column;gap:2px}.start-button{padding:6px 10px;font-size:17px}.start-actions .house-entry.is-small{height:44px;width:54px}.start-actions .house-entry.is-small span{bottom:4px}}@media(prefers-reduced-motion:reduce){.start-community-button,.start-button{transition:none}}@media(min-width:768px){.start-screen{width:min(940px,100%);max-height:860px}@container start-screen (min-height:431px){.start-layout{grid-template-rows:16% minmax(0,1fr) 8%}.start-card{grid-row:2}.start-controls{max-width:620px}.start-cat-slot{--peek-lift:clamp(-78px,-9cqh,-38px)}}}.level-selection{max-height:calc(100% - 44px);margin-top:32px}.level-selection{height:min(670px,calc(100% - 44px));container-type:size}.level-selection-card{min-height:0;height:100%;justify-content:center;padding:clamp(12px,4cqh,38px) clamp(12px,4cqw,42px)}.cat-system .level-selection-card,.cat-system .level-ear{background-color:#fffdf5;border-color:#2d2d2d}.cat-system[data-cat-mode=black] .level-selection-card,.cat-system[data-cat-mode=black] .level-ear{background-color:#626583;border-color:#c6bfdc}.level-tabby-stripes{position:absolute;top:6px;left:50%;transform:translate(-50%);display:flex;gap:clamp(6px,1.4cqw,14px);pointer-events:none}.level-tabby-stripes i{display:block;width:clamp(8px,1.8cqw,16px);height:clamp(12px,3cqh,26px);border-radius:50%;background:#ad8058;transform:rotate(-14deg)}.level-tabby-stripes i:nth-child(2){height:clamp(16px,4cqh,34px);transform:none}.level-tabby-stripes i:nth-child(3){transform:rotate(14deg)}.cat-system[data-cat-mode=black] .level-tabby-stripes i{background:#aaa4bf}.level-selection-title{margin-bottom:clamp(12px,3cqh,24px);flex-shrink:0}.level-selection-title h2{font-size:clamp(24px,6cqh,44px)}.level-selection-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(10px,3cqh,24px) 8px}.level-selection-grid>div{min-width:0;max-width:100%}.level-selection-grid>div>div{max-width:100%;overflow-wrap:anywhere}.level-cat-circle{width:clamp(52px,12cqw,96px);height:clamp(52px,12cqw,96px)}@container (max-width:530px){.level-selection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(5px,1.6cqh,14px) 10px}.level-cat-circle{width:clamp(42px,10cqh,80px);height:clamp(42px,10cqh,80px)}.level-selection-grid>div{gap:4px}}@container (max-height:340px) and (min-width:530px){.level-cat-circle{width:clamp(40px,20cqh,65px);height:clamp(40px,20cqh,65px)}.level-selection-title{margin-bottom:8px}.level-selection-grid{gap:10px 8px}.level-selection-grid>div{gap:3px}}@container (max-width:530px) and (max-height:540px){.level-selection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.level-cat-circle{width:clamp(40px,9cqh,54px);height:clamp(40px,9cqh,54px)}.level-selection-grid>div{gap:3px}.level-selection-grid>div>div>span:first-child{font-size:14px}.level-selection-grid>div>div>span:last-child{font-size:12px;line-height:1.15}}@container (max-height:400px){.level-selection-card{padding:8px;overflow-y:auto;touch-action:pan-y;justify-content:flex-start}.level-selection-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.level-cat-circle{width:40px;height:40px;border-width:2px}.level-selection-title{margin-bottom:6px}.level-selection-title h2{font-size:22px}.level-selection-grid>div{gap:2px}.level-selection-grid>div>div>span:first-child,.level-selection-grid>div>div>span:last-child{font-size:11px;line-height:1.1}}.developer-badge{position:absolute;left:10px;top:12px;max-width:calc(100% - 180px);border:1px dashed var(--cat-edge);border-radius:9px;padding:4px 8px;color:var(--cat-muted);background:var(--cat-paper);font:inherit;font-size:12px}.developer-entry{min-height:44px;padding:10px;border:2px dashed var(--cat-edge);border-radius:12px;background:var(--cat-gold);color:var(--cat-ink);font:inherit}.win-screen{max-height:calc(100% - 40px);overflow-y:auto;flex-shrink:0;margin-top:32px;touch-action:pan-y}.cat-system button:focus-visible{outline:3px solid #c99b58;outline-offset:3px}.finale-overlay{position:fixed;inset:0;z-index:130;background:#1c1917c2;display:flex;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(5px)}.finale-letter{position:relative;width:min(740px,100%);max-height:92dvh;overflow-y:auto;touch-action:pan-y;padding:32px;border:4px solid var(--cat-edge);border-radius:10px;color:var(--cat-ink);background:var(--cat-paper);box-shadow:0 16px 70px #0005;scrollbar-width:thin;scrollbar-color:var(--cat-edge) var(--cat-paper)}.finale-close{position:absolute;right:8px;top:3px;width:36px;height:36px;color:var(--cat-ink);font-size:28px;line-height:1}.gift-cover{text-align:center;padding:25px 0 18px}.gift-note{color:var(--cat-muted);margin-bottom:12px}.gift-cover h2{font-size:clamp(25px,4vw,34px)}.gift-parcel{display:block;width:min(300px,100%);margin:18px auto;transition:transform .2s;color:var(--cat-ink)}.gift-parcel:hover{transform:rotate(-3deg)}.gift-parcel svg{width:100%}.gift-parcel span{display:block;background:var(--cat-gold);border:2px solid var(--cat-edge);border-radius:12px;padding:10px;font-size:21px}.gift-fine-print{margin-top:12px;font-size:13px;color:var(--cat-muted)}.finale-heading{text-align:center;margin:0 12px 18px}.finale-heading h2{font-size:clamp(22px,3.5vw,30px);margin:8px 0 4px}.finale-heading p{color:var(--cat-muted)}.finale-paw{font-size:28px}.keepsake-card{position:relative;background:#fffefa;border:1px solid #dfd0b2;padding:16px 12px 36px;box-shadow:3px 4px #b4946e33;transform:rotate(-.6deg);margin:0 0 22px}.keepsake-card:before,.keepsake-card:after{content:"";position:absolute;width:52px;height:19px;top:-7px;background:#e8d4a4a8;transform:rotate(-18deg);left:14px}.keepsake-card:after{left:auto;right:14px;transform:rotate(18deg)}.keepsake-card img{display:block;width:100%;height:auto}.card-stamp{position:absolute;right:12px;bottom:10px;color:#8d7860;font-size:12px;border-bottom:1px dashed #b4946e}.finale-rewards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px 0;border-top:1px dashed var(--cat-edge);border-bottom:1px dashed var(--cat-edge)}.finale-rewards>div{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px}.finale-rewards span{font-size:16px}.finale-rewards small,.finale-theme small{color:var(--cat-muted);font-size:12px}.finale-theme{text-align:center;padding:20px 0 15px}.finale-theme p{margin-bottom:12px;font-size:20px}.finale-theme small{display:block;margin-top:12px}.finale-done{display:block;padding:11px 24px;margin:5px auto 0;border:2px solid var(--cat-edge);border-radius:12px;background:var(--cat-gold);font-size:20px}.finale-letter.is-open{animation:keepsake-open .45s ease-out;transform-origin:top center}@keyframes keepsake-open{0%{opacity:.4;transform:translateY(-12px) rotateX(-10deg)}to{opacity:1;transform:none}}@media(max-width:480px){.finale-overlay{padding:10px}.finale-letter{padding:25px 16px 18px;max-height:94dvh}.finale-heading{margin:0 0 17px}.finale-rewards{gap:5px}.finale-rewards span{font-size:14px}.finale-rewards small{font-size:10px}.keepsake-card{padding:10px 6px 31px}}@media(prefers-reduced-motion:reduce){.finale-letter.is-open{animation:none}.gift-parcel{transition:none}}.cat-system[data-cat-mode=black] :is([class~=bg-white],[class*="bg-white/"],.bg-gray-100,.bg-gray-200,.bg-gray-50,[class*="bg-[#fff"],[class*="bg-[#f9f"],[class*="bg-[#f7ec"],[class*="bg-[#f5df"]){background-color:var(--cat-paper)}.cat-system[data-cat-mode=black] :is(.bg-yellow-100,.bg-orange-100,.bg-blue-50,[class*="bg-[#ffec"],[class*="bg-[#fff1"]){background-color:var(--cat-gold)}.cat-system[data-cat-mode=black] :is([class*="text-[#2d2d"],[class*="text-[#5b4a"],[class*="text-[#7963"],.text-black,.text-gray-700,.text-gray-600,.text-gray-800){color:var(--cat-ink)}.cat-system[data-cat-mode=black] :is([class*="text-[#9277"],[class*="text-[#8c76"],.text-gray-500){color:var(--cat-muted)}.cat-system[data-cat-mode=black] :is(.border-black,.border-gray-300,.border-gray-200,[class*="border-[#2d2d"],[class*="border-[#7963"],[class*="border-[#dcc"],[class*="border-[#d2b8"],[class*="border-[#d8c"]){border-color:var(--cat-edge)}.cat-system[data-cat-mode=black] .letter-open{background-image:repeating-linear-gradient(to bottom,transparent 0px,transparent 31px,#d8b77926 32px)!important}.cat-system[data-cat-mode=black] :is(.text-blue-500,.text-blue-600,.text-orange-600,.text-orange-700,.text-green-600){color:#f1cd90}.cat-system[data-cat-mode=black] .bg-blue-100{background-color:#514d49}.cat-system[data-cat-mode=black] :is(.bg-blue-500,.bg-blue-600,.bg-yellow-400){background-color:#8c6e48}.cat-system[data-cat-mode=black] :is(.border-blue-400,.border-blue-100,.border-orange-300){border-color:#ae8c5c}.cat-system[data-cat-mode=black] [class*="border-t-[#e6d2"]{border-top-color:#766046}.cat-system[data-cat-mode=black] h1{text-shadow:none!important}.cat-system[data-cat-mode=black] :is([class*="bg-[#fffdf5]"],[class~=bg-white],[class*="bg-white/"]) [class*="text-[#5d4037]"]{color:var(--cat-ink)}.cat-system[data-cat-mode=black] :is([class*="bg-[#fffdf5]"],[class~=bg-white],[class*="bg-white/"]) [class*="text-[#8d6e63]"]{color:var(--cat-muted)}.visual-preview .finale-overlay{bottom:60px}.visual-preview .finale-letter{max-height:100%}.visual-preview .letter-open{max-height:calc(100dvh - 152px)}.preview-content{height:calc(100dvh - 118px)}.preview-mode{position:fixed;bottom:62px;right:10px;height:50px;display:flex;align-items:center}.preview-reset{position:fixed;bottom:60px;left:0;right:0;z-index:135;height:44px;background:var(--cat-paper);color:var(--cat-ink)}.visual-preview:has(.preview-reset) .finale-overlay{bottom:108px}.visual-preview .preview-content>.fixed{bottom:60px}.notice-tabs{flex-shrink:0;overflow-x:auto}.notice-tabs button{flex-shrink:0;white-space:nowrap}.game-hud{position:absolute;top:8px;left:8px;right:8px;display:flex;flex-wrap:wrap;gap:6px;align-items:flex-start;pointer-events:none;z-index:40}.game-hp{background:var(--cat-paper);color:var(--cat-ink);padding:5px 10px;border:2px solid var(--cat-edge);border-radius:12px;flex-shrink:0}.game-hp>div{font-size:clamp(22px,4vw,36px);font-weight:700;display:flex;align-items:center;gap:12px}.game-gift-notice{display:flex;align-items:center;gap:6px;padding:5px 10px;background:var(--cat-paper);color:var(--cat-ink);border:2px solid var(--cat-edge);border-radius:12px;font-size:13px;max-width:100%}.game-feedback{position:absolute;left:12px;bottom:12px;max-width:calc(100% - 24px);padding:8px 14px;background:var(--cat-paper);color:var(--cat-ink);border:2px solid var(--cat-edge);border-radius:14px;pointer-events:none;z-index:40}.game-feedback span{white-space:normal;font-size:clamp(16px,3vw,23px)}.cat-system[data-cat-mode=black] :where(*){color:var(--cat-ink)}.cat-system .letter-open .letter-quote{background-color:#ffe1a4;border-color:#c39655;color:#65472f}.cat-system .letter-open .letter-quote p{color:#65472f;font-style:normal}.gallery-unlock-note{margin:0;padding:10px 18px 0;color:var(--cat-muted);text-align:center;font-size:14px}.gallery-grid{touch-action:pan-y;align-content:start}.gallery-cat-avatar{width:clamp(70px,12vw,112px);height:clamp(70px,12vw,112px);object-fit:contain;margin-bottom:8px}@media(max-width:767px){.cat-system .app-topbar{padding:6px max(12px,env(safe-area-inset-right)) 6px;gap:8px}.cat-system .app-primary-controls{gap:10px}.cat-system .app-primary-controls .original-top-control{width:44px;min-width:44px;min-height:44px;height:44px;border-radius:14px;padding:4px}.cat-system .app-primary-controls .original-top-control svg{width:32px;height:32px}.cat-system .app-active-gifts{gap:12px;padding:4px 0 10px}.cat-system .app-active-gifts button{min-width:48px;min-height:48px}.cat-system .app-mode-footer{padding-inline:16px}.cat-system .start-screen{padding:8px 18px 16px;max-height:none}.cat-system .start-layout{--community-height:72px;--card-gap:40px;grid-template-rows:var(--community-height) minmax(0,1fr);row-gap:var(--card-gap)}.cat-system .start-cat-slot{--peek-width:300px}.cat-system .start-card{grid-column:1;grid-row:2;margin-top:0;z-index:2}.cat-system .start-community{justify-self:center;gap:24px;padding:0}.cat-system .start-community-button{width:88px;height:66px;font-size:12px;border-radius:10px}.cat-system .start-community-icon{font-size:28px}.cat-system .start-card{--start-border:4px;gap:clamp(12px,3cqh,22px);padding:20px 16px;border-width:4px;border-radius:34px}.cat-system .start-heading h1{font-size:clamp(36px,8cqh,54px)}.cat-system .start-heading p{font-size:17px;line-height:1.5;margin-top:8px}.cat-system .start-controls{gap:10px}.cat-system .start-control{padding:12px 4px;gap:8px;border-radius:16px}.cat-system .start-control-icon{font-size:32px}.cat-system .start-control-label{font-size:15px;line-height:1.3}.cat-system .start-actions{flex-direction:column;gap:10px;align-items:center}.cat-system .start-button{min-height:54px;padding:12px 22px;font-size:24px;border-radius:18px}.cat-system .start-actions .house-entry.is-small{width:100px;height:90px}.cat-system .start-actions .house-entry.is-small span{font-size:12px;bottom:10px}.cat-system .level-selection{width:calc(100% - 28px);margin-top:26px;max-height:calc(100% - 34px);height:min(710px,calc(100% - 34px))}.cat-system .level-selection-card{padding:28px 16px 18px;border-radius:32px}.cat-system .level-selection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px}.cat-system .level-cat-circle{width:clamp(54px,10cqh,80px);height:clamp(54px,10cqh,80px)}.cat-system .level-selection-grid>div{gap:6px}.cat-system .level-selection-grid>div>div>span:first-child{font-size:17px}.cat-system .level-selection-grid>div>div>span:last-child{font-size:15px;line-height:1.25}.cat-system .gallery-grid{padding:22px 16px;gap:20px 16px}.cat-system .gallery-grid>button{border-width:3px;border-radius:20px;padding:16px 8px}.cat-system .gallery-cat-avatar{width:104px;height:104px}.cat-system .letter-open{max-height:92dvh;border-width:3px;touch-action:pan-y}.cat-system .letter-inner{padding:28px 16px 30px}.cat-system .letter-content{gap:24px;padding-left:24px}.cat-system .letter-cat-image{max-height:300px}.cat-system .letter-content .leading-loose{font-size:19px;line-height:1.9}.cat-system .letter-quote{padding:22px 16px}.cat-system .settings-dialog-content{padding:18px 20px 26px}.cat-system .settings-actions{gap:14px;margin-bottom:22px}.cat-system .settings-actions button{min-height:54px;font-size:17px}.cat-system .level-intro{padding-inline:14px}.cat-system .level-intro-card{border-width:4px;padding:26px 18px;border-radius:30px}.cat-system .level-intro-card>.flex{gap:16px}.cat-system [aria-label=\732b\54aa\8d60\793c\80cc\5305]>.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.cat-system [aria-label=\732b\54aa\8d60\793c\80cc\5305]>.grid>button{min-height:86px;padding:12px 8px;border-radius:18px;gap:8px}.cat-system [aria-label=\9009\62e9\643a\5e26\9053\5177]>.flex{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.cat-system [aria-label=\9009\62e9\643a\5e26\9053\5177] button{min-width:0;max-width:none;padding:12px 6px;gap:6px}.cat-system .game-hud{top:10px;left:12px;right:12px;gap:10px}.cat-system .game-hp{padding:7px 12px;border-radius:16px}.cat-system .game-hp>div{font-size:27px;gap:10px}.cat-system .game-feedback{bottom:14px;padding:10px 16px}}@media(max-width:767px)and (max-height:720px){.cat-system .start-layout{--community-height:60px;--card-gap:32px}.cat-system .start-community-button{height:56px;width:82px}.cat-system .start-card{gap:12px;padding:16px 12px}.cat-system .start-heading h1{font-size:40px}.cat-system .start-control{padding:8px 3px;gap:5px}.cat-system .start-control-icon{font-size:28px}.cat-system .start-actions .house-entry.is-small{width:90px;height:78px}.cat-system .level-selection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 10px}.cat-system .level-cat-circle{width:clamp(54px,11cqh,72px);height:clamp(54px,11cqh,72px)}}@media(max-width:767px)and (max-height:580px){.cat-system .start-screen{padding:4px 14px 10px}.cat-system .start-layout{--community-height:52px;--card-gap:28px}.cat-system .start-community-button{height:48px;font-size:11px}.cat-system .start-community-icon{font-size:23px}.cat-system .start-card{padding:10px 12px;gap:8px;border-radius:28px}.cat-system .start-heading h1{font-size:34px}.cat-system .start-heading p{font-size:15px;margin-top:4px}.cat-system .start-control{padding:6px 2px;gap:3px}.cat-system .start-control-icon{font-size:24px}.cat-system .start-control-label{font-size:13px}.cat-system .start-button{min-height:48px;padding:8px 16px;font-size:22px}.cat-system .start-actions .house-entry.is-small{width:80px;height:68px}.cat-system .start-actions .house-entry.is-small span{font-size:10px;bottom:7px}.cat-system .level-selection-card{padding:24px 12px 14px}.cat-system .level-selection-grid{gap:10px}.cat-system .level-cat-circle{width:48px;height:48px}.cat-system .level-selection-grid>div{gap:3px}}@media(max-width:767px)and (max-height:480px)and (min-aspect-ratio:4/3){.cat-system .app-topbar{padding-block:4px}.cat-system .start-layout{--community-height:0px;--card-gap:36px;grid-template-columns:minmax(140px,26%) minmax(0,1fr);grid-template-rows:36px minmax(0,1fr);column-gap:16px;row-gap:0}.cat-system .start-community{grid-column:1;grid-row:1;gap:12px}.cat-system .start-community-button{width:62px}.cat-system .start-card{grid-column:2;grid-row:2;padding:10px 14px;gap:8px}.cat-system .start-heading h1{font-size:32px}.cat-system .start-heading p{font-size:14px}.cat-system .start-control{padding:6px 3px}.cat-system .start-actions .house-entry.is-small{width:72px;height:62px}.cat-system .level-selection-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px 16px}}.cat-system[data-cat-mode=black] :is(.text-gray-200,.text-gray-400,.text-gray-500,[class*="text-[#8c76"],[class*="text-[#9277"]){color:var(--cat-muted)}.cat-system[data-cat-mode=black] :is(.text-red-500,.text-red-600,.text-orange-500,.text-orange-800,.text-orange-900){color:#ffd1bb}.cat-system[data-cat-mode=black] :is([class*="text-[#2e7d"],[class*="text-[#bf36"]){color:#e0e9be}.cat-system[data-cat-mode=black] .keepsake-card{background:var(--cat-paper);border-color:var(--cat-edge)}.cat-system[data-cat-mode=black] .card-stamp{color:var(--cat-muted)}.cat-system[data-cat-mode=black] :is(.bg-red-100,.bg-red-200,.bg-orange-200,.bg-gray-300,.bg-yellow-200\/80,[class*="bg-[#d7ccc"],[class*="bg-[#c8e6"],[class*="bg-[#ffccb"],[class*="bg-[#ffecb"]){background-color:var(--cat-gold)}.cat-system[data-cat-mode=black] :is([class*="hover:bg-gray-"],[class*="hover:bg-white/"],[class*="hover:bg-[#eefe"]):hover{background-color:#68627b}.cat-system[data-cat-mode=black] :is([class*="hover:bg-red-"],[class*="hover:bg-orange-"],[class*="hover:bg-[#eefe"]):hover{background-color:#68627b}.cat-system[data-cat-mode=black] [style*=text-shadow],.cat-system[data-cat-mode=black] [style*=textShadow]{text-shadow:none!important}.cat-system[data-cat-mode=black] :is(input,textarea,select){color-scheme:dark;background:var(--cat-bg);color:var(--cat-ink);border-color:var(--cat-edge)}.cat-system[data-cat-mode=black] :is(input,textarea)::placeholder{color:var(--cat-muted);opacity:1}.cat-system[data-cat-mode=black] .app-frame[data-game-state=start],.cat-system.app-frame[data-cat-mode=black][data-game-state=start]{background-color:#454c69;background-image:radial-gradient(ellipse at 20% 15%,#817ba43b,transparent 55%),radial-gradient(ellipse at 85% 75%,#83bac32b,transparent 50%),radial-gradient(circle at 35px 45px,#fff2d5 1.5px,transparent 2px),radial-gradient(circle at 110px 85px,#dce9f8 1px,transparent 1.5px),radial-gradient(circle at 180px 160px,#dfd4f6 1.5px,transparent 2px),radial-gradient(circle at 75px 185px,#fff2d5 1px,transparent 1.5px),radial-gradient(circle at 250px 60px,#dce9f8 1px,transparent 1.5px);background-size:100% 100%,100% 100%,237px 211px,313px 257px,389px 293px,281px 347px,421px 229px}.app-primary-controls .original-top-control{position:relative;display:flex;align-items:center;justify-content:center;min-width:48px;min-height:44px;padding:4px;border:2px solid #79634f;border-radius:12px;background:#fff9e6;color:#79634f;font:inherit;font-size:18px;font-weight:700;cursor:pointer;transition:transform .15s}.app-primary-controls .original-top-control:hover{transform:scale(1.05);background:#fff9e6}.app-primary-controls .original-top-control.bag-control{min-width:48px;padding:4px;background:#fff9e6;border-color:#79634f;color:#79634f;box-shadow:none}.original-new-mail{position:absolute;top:-4px;right:-4px;width:16px;height:16px;border:2px solid #fff;border-radius:50%;background:#ef4444}@media(min-width:768px){.app-primary-controls{gap:12px}.app-primary-controls .original-top-control{min-width:64px;min-height:52px;padding:8px 12px;border-width:2px;font-size:24px}.app-primary-controls .original-top-control.bag-control{min-width:50px;padding:4px}}.cat-system .game-hp .hp-heart-filled{color:#ff6b6b}.cat-system[data-cat-mode=black] .game-hp .hp-heart-empty{color:#79829a}.settings-overlay{z-index:160}.audio-controls{display:flex;flex-direction:column;gap:14px}.audio-master{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:20px;font-weight:700}.audio-master button{padding:8px 14px;min-height:44px;border:2px solid var(--cat-edge);border-radius:12px;background:var(--cat-paper);color:var(--cat-ink)}.audio-volume{display:flex;flex-direction:column;gap:4px;font-size:17px}.audio-volume>span{display:flex;justify-content:space-between;gap:12px}.audio-volume output{color:var(--cat-muted);font-size:15px}.audio-volume input[type=range]{width:100%;height:32px;padding:0;accent-color:#ad7c59;cursor:pointer;touch-action:pan-y}.cat-system[data-cat-mode=black] .audio-volume input[type=range]{accent-color:#dac5a4}@media(prefers-reduced-motion:reduce){.app-primary-controls .original-top-control{transition:none}}@keyframes start-cat-peek{0%,to{transform:translate(-50%);clip-path:inset(22% 34% 62%)}18%,72%{transform:translate(-50%,var(--peek-lift)) rotate(-5deg);clip-path:inset(0)}45%{transform:translate(-50%,calc(var(--peek-lift) - 8px)) rotate(5deg);clip-path:inset(0)}}@media(max-width:767px){.cat-system .win-screen{margin-top:0;max-height:100%;padding-top:16px}.cat-system .win-screen .win-badge{position:static;transform:none;align-self:center;flex-shrink:0;margin:0 0 12px;order:-1}.cat-system[data-cat-mode=black] .start-card{background:#202331;--start-ear:#202331}.cat-system[data-cat-mode=black] :is(.level-selection-card,.level-ear){background:#202331}.cat-system[data-cat-mode=black] .start-button{background:#408ec5}.cat-system[data-cat-mode=black] .start-button:hover{background:#f97316}.cat-system .level-selection-title{margin:10px 0 16px;min-width:0;gap:8px}.cat-system .level-selection-title h2{font-size:clamp(20px,4.8cqh,30px);line-height:1.25}.cat-system .level-selection-title>button{font-size:clamp(22px,5cqh,32px)}.cat-system .level-selection-grid{flex:1;min-height:0;grid-auto-rows:minmax(0,1fr);gap:clamp(8px,2cqh,14px) 16px;align-items:center}.cat-system .level-cat-circle{width:clamp(38px,8.4cqh,70px);height:clamp(38px,8.4cqh,70px);flex-shrink:0}.cat-system .level-selection-grid>div{gap:3px;min-height:0}.cat-system .level-selection-grid>div>div>span:first-child{font-size:clamp(12px,2.5cqh,17px);line-height:1.1}.cat-system .level-selection-grid>div>div>span:last-child{font-size:clamp(11px,2.2cqh,15px);line-height:1.1}}@media(prefers-reduced-motion:reduce){.cat-system .start-cat-slot.is-jumping{animation-duration:.15s}}
