@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
[hidden]{display:none!important}
.page-tabs{display:flex;flex-wrap:wrap;gap:8px;max-width:950px;margin:22px auto 0}
.page-tab{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border:1px solid #e5dced;border-radius:14px;background:#fff;color:#82728f;text-decoration:none;font-weight:750}
.page-tab svg{width:22px;height:22px}
.page-tab>span{font-size:24px;line-height:1}
.page-tab:hover{background:#f1eaf8}
.page-tab[aria-current="page"]{background:#9270cd;border-color:#9270cd;color:#fff;box-shadow:0 3px 10px #795a9920}
.meadow-page{padding-top:24px}
.house-page{max-width:950px;margin:0 auto;padding-top:24px}
.interior-scene{position:relative;overflow:hidden;border-radius:20px}
.interior-butterfly{position:absolute;z-index:2;left:20%;top:40%;width:clamp(32px,9%,90px);pointer-events:none;animation:interior-flight 24s ease-in-out infinite}
.butterfly-window{width:100%;aspect-ratio:1;overflow:hidden}
.butterfly-frames{display:flex;width:800%;animation:butterfly-frames .64s steps(8) infinite}
.butterfly-frames img{display:block;flex:0 0 12.5%;width:12.5%;height:auto;user-select:none}
@keyframes butterfly-frames{to{transform:translateX(-100%)}}
@keyframes interior-flight{0%,100%{left:20%;top:40%;transform:rotate(-8deg)}20%{left:47%;top:18%;transform:rotate(10deg)}40%{left:78%;top:38%;transform:rotate(15deg)}60%{left:56%;top:66%;transform:rotate(-12deg)}80%{left:14%;top:70%;transform:rotate(-16deg)}}
#house-page[hidden] .interior-butterfly,#house-page[hidden] .butterfly-frames,.interior-butterfly[hidden],.interior-butterfly[hidden] .butterfly-frames{animation-play-state:paused}
.house-interior-art{display:block;width:100%;height:auto;border-radius:20px;box-shadow:0 6px 24px #936b4520}
.meadow-heading{margin:0 0 20px}
.meadow-heading h1{font-size:clamp(22px,4vw,32px);margin:0 0 8px;letter-spacing:-.7px}
.meadow-heading p{margin:0;color:#92899c;font-size:12px}
.meadow-art{display:block;width:100%;height:auto;border-radius:20px;box-shadow:0 6px 24px #52683620}
:root{font-family:'Manrope',sans-serif;color:#373145;background:#f7f5fb;font-synthesis:none;font-size:14px;--purple:#9270cd;--muted:#a09baa}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #ac8edf;outline-offset:4px}button{color:inherit}button:disabled{cursor:default;opacity:.4}.site-header{height:92px;max-width:1192px;margin:auto;border-bottom:1px solid #e9e4f0;display:flex;align-items:center;justify-content:space-between;padding:0 12px}.brand{display:flex;align-items:center;color:#403449;font-size:32px;font-weight:800;letter-spacing:-1.6px;text-decoration:none}.brand-icon{width:39px;height:39px;background:#9270cd;color:white;display:inline-flex;align-items:center;justify-content:center;border-radius:13px;margin-right:10px;font-size:35px;transform:rotate(-10deg)}.brand-dot{color:#9a78d0}.header-caption{font-size:10px;letter-spacing:2.2px;color:#aaa3b4;margin-right:60px}.help-button{display:flex;gap:8px;align-items:center;border:0;background:none;font-size:12px;font-weight:650}.help-button>span{border:1.5px solid #8b829a;border-radius:50%;width:19px;height:19px;font-size:12px}main{max-width:1096px;margin:auto;padding:0 18px}.intro{display:flex;align-items:center;justify-content:space-between;padding:42px 6px 34px;min-height:262px}.eyebrow{font-size:9px;letter-spacing:2.2px;font-weight:800;color:#9b80bd;display:flex;align-items:center;gap:8px}.eyebrow>span{width:6px;height:6px;border-radius:50%;background:#a384c7}h1{font-size:40px;line-height:1.23;letter-spacing:-1.6px;font-weight:800;margin:14px 0 13px}h1>span{color:#9976ce}h1 svg{width:42px;height:38px;stroke:#c4aadf;stroke-width:3;stroke-linecap:round;fill:none;margin-left:10px;vertical-align:top}.intro p{font-size:12px;line-height:1.9;color:#92899c;margin:0}.intro-art{position:relative;width:300px;height:190px;margin-right:47px}.intro-art:before{content:'';position:absolute;inset:18px 0 2px;border-radius:50%;background:#eee7f7;transform:rotate(-9deg)}.intro-art .hero-cat{position:absolute;width:145px;bottom:5px;left:22px;transform:rotate(-9deg)}.intro-art .hero-cat.second{left:135px;bottom:12px;transform:rotate(10deg);width:134px}.hero-star{position:absolute;color:#b399d0;font-size:30px;right:0;top:18px}.hero-heart{position:absolute;color:#c1a5d9;font-size:29px;top:2px;left:114px;transform:rotate(15deg)}.hero-dots{position:absolute;left:0;top:27px;color:#ccbddd;font-size:20px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 294px;gap:24px;align-items:start}.game-card,.collection-card{background:#fff;border:1px solid #ece7f2;border-radius:22px;box-shadow:0 5px 20px #49356a03}.game-card{padding:23px 24px 0}.game-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}.field-title{display:flex;align-items:center;gap:9px}h2{font-size:15px;letter-spacing:-.35px;margin:0;font-weight:800}.tiny-paw{color:#b298d0;font-size:23px}.score-pill{display:flex;align-items:center;gap:7px;background:#faf6ed;border:1px solid #f4eddc;border-radius:10px;padding:7px 11px;font-size:11px}.score-pill>span:first-child{color:#d1a553;font-size:20px;line-height:16px}.score-pill strong{color:#9e7d46;font-size:13px}.score-label{color:#b0a18a;font-size:10px}.board-wrap{position:relative}.board{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;background:#f4f0f8;border:1px solid #ebe5f1;border-radius:15px;padding:10px;touch-action:pan-y}.cell{position:relative;aspect-ratio:1.03;border-radius:10px;background:#fcfaff;border:1px solid #ece6f3;display:flex;justify-content:center;align-items:center;padding:3px;transition:background .16s,border-color .16s,transform .16s;min-width:0}.cell:empty:after{content:'';width:5px;height:5px;background:#e8e1ef;border-radius:50%}.cell.occupied{background:#fffcf8;border-color:#eee4db;cursor:grab}.cell.occupied:hover{transform:translateY(-2px);box-shadow:0 4px 8px #79604712}.cell svg{width:85%;height:85%;pointer-events:none;filter:drop-shadow(0 3px 1px #6d493312)}.level{position:absolute;bottom:4px;right:5px;background:#fffef6;color:#b69a72;border:1px solid #efdfc6;border-radius:5px;font-size:8px;min-width:15px;height:15px;display:grid;place-items:center;font-weight:800}.cell.drag-over{background:#e9def7;border:2px dashed #9874cd}.cell.pop{animation:pop .38s ease-out}.board-caption{display:flex;align-items:center;gap:6px;font-size:9px;color:#a69aaa;padding:12px 2px 17px}.status-dot{width:5px;height:5px;background:#b8c7a2;border-radius:50%}#capacity{margin-left:auto;font-size:10px;color:#b8aebf}.generator-panel{background:#f4eefb;border:1px solid #ece2f6;border-radius:13px;display:flex;gap:12px;align-items:center;padding:15px 13px;position:relative}.generator-art{width:45px;height:49px;flex-shrink:0;position:relative}.generator-art svg{width:48px;height:48px;position:absolute;top:-8px}.generator-art:after{content:'♡';position:absolute;bottom:0;left:2px;width:43px;height:24px;background:#baa1da;border:2px solid #a78aca;border-radius:2px 2px 8px 8px;text-align:center;color:#f8f1ff;font-size:17px}.generator-copy h3{font-size:12px;margin:0 0 4px;font-weight:800}.generator-copy p{font-size:9px;color:#a294b1;margin:0}.generate-button{display:flex;align-items:center;justify-content:center;gap:7px;border:0;background:#9672cc;color:white;padding:13px 16px;border-radius:9px;font-size:11px;font-weight:750;box-shadow:0 3px 0 #7c59ae;transition:background .2s,transform .2s;white-space:nowrap}.generator-panel .generate-button{margin-left:auto}.generate-button:hover{background:#8560c0;transform:translateY(-1px)}.generate-button:active{transform:translateY(2px);box-shadow:none}.generate-button>span:first-child{font-size:20px;font-weight:400;line-height:14px}.button-paw{font-size:16px;opacity:.5;margin-left:6px}.game-bottom{display:flex;align-items:center;justify-content:space-between;padding:13px 0;color:#b1a7ba;font-size:9px}.mini-icon{font-size:14px;vertical-align:-1px;margin-right:4px}.icon-button{background:none;border:0;width:28px;height:28px;font-size:19px;color:#a398b0;border-radius:6px}.icon-button:hover{background:#f1eaf8}.icon-button.active{color:#8158bd;background:#f1eaf8}.collection-card{padding:24px 20px 0}.collection-title{display:flex;justify-content:space-between;align-items:center}.collection-title>span{background:#f1ebf9;border-radius:6px;padding:5px 7px;font-size:10px;color:#9d7cc9;font-weight:700}.collection-subtitle{color:#a69bae;font-size:10px;margin:9px 0 17px}.progress-track{height:4px;background:#f2edf8;border-radius:5px;margin-bottom:17px;overflow:hidden}.progress-track>div{background:#ae8ed7;height:100%;border-radius:5px;transition:width .4s}.collection-list{display:grid;gap:5px}.breed-row{display:flex;align-items:center;text-align:left;background:none;width:100%;border:0;border-radius:9px;gap:11px;padding:5px 6px;min-height:43px}.breed-row:hover{background:#f9f5fc}.breed-avatar{width:34px;height:34px;display:grid;place-items:center;background:#faf3e9;border-radius:10px;flex-shrink:0}.breed-avatar svg{width:32px;height:32px}.breed-row.locked .breed-avatar{background:#f5f2f8}.cat-silhouette{opacity:.24;filter:grayscale(1)}.breed-text{display:flex;flex-direction:column;gap:3px}.breed-name{font-size:10px;font-weight:750}.breed-level{font-size:8px;color:#b2a7bb}.breed-row.locked .breed-name{color:#b6adbe;font-weight:500}.breed-symbol{margin-left:auto;font-size:11px;color:#baa1d7}.breed-row.locked .breed-symbol{color:#d1c8db;font-size:12px}.collection-note{display:flex;align-items:center;justify-content:center;gap:11px;border-top:1px solid #f1ecf5;margin-top:15px;padding:14px 0;color:#b9aac8}.collection-note>span{font-size:27px}.collection-note p{font-size:9px;line-height:1.8;margin:0}.instructions{display:flex;align-items:center;justify-content:space-between;margin:27px 0 0;padding:21px 24px;border:1px solid #e9e3f0;border-radius:14px;background:#f4f0f8;gap:16px}.instructions>div{display:flex;align-items:center;gap:12px;flex:1}.step{align-self:flex-start;color:#bda8d5;font-size:10px;letter-spacing:1px;padding-top:4px}.instructions p{display:flex;flex-direction:column;gap:5px;margin:0}.instructions strong{font-size:10px;font-weight:750}.instructions p>span{font-size:9px;color:#a59aaf}.step-art{font-size:29px;color:#bba4d7;margin-left:auto;line-height:30px}.step-arrow{font-size:16px;color:#cfc1dc;padding:0 9px}footer{display:flex;justify-content:space-between;margin:23px 0 24px;font-size:9px;color:#b4a9bf}footer span span{color:#b8a1d4;margin-left:4px}footer button{border:0;background:none;color:#a79ab2;font-size:9px;text-decoration:underline;text-underline-offset:3px}.floating-feedback{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);pointer-events:none;background:#49375eea;color:white;border-radius:12px;padding:13px 20px;opacity:0;font-size:12px;text-align:center;transition:opacity .2s;box-shadow:0 5px 25px #48365f24;z-index:3;width:max-content;max-width:90%}.floating-feedback.show{opacity:1}dialog{border:1px solid #e4d9ef;border-radius:23px;max-width:420px;width:calc(100% - 32px);padding:34px;text-align:center;color:#43354e;background:#fffdff;box-shadow:0 30px 100px #35224430}dialog::backdrop{background:#34224455;backdrop-filter:blur(4px)}.modal-close{position:absolute;right:14px;top:10px;background:none;border:0;font-size:26px;color:#aa98b9}dialog h2{font-size:23px;margin:12px 0}dialog p{font-size:13px;line-height:1.9;color:#9786a4}dialog .generate-button{margin:22px auto 0;min-width:160px}dialog svg{width:110px;height:110px}.modal-eyebrow{color:#a384c7;font-size:10px;letter-spacing:2px;font-weight:800}.help-steps{text-align:left;line-height:1.8;font-size:13px;color:#8b7b99;padding-left:20px}.help-steps li{padding:6px 0}.reset-confirm{background:#fff3f2!important;color:#b27272!important;box-shadow:none!important}.pointer-cat{position:fixed;pointer-events:none;z-index:10;width:78px;height:78px;transform:translate(-50%,-50%);filter:drop-shadow(0 8px 8px #44305130)}@keyframes pop{0%{transform:scale(.65)}60%{transform:scale(1.12)}100%{transform:scale(1)}}@media(min-width:1300px){main{padding-top:6px}.intro{padding-top:46px;padding-bottom:38px}}@media(max-width:950px){.header-caption{display:none}.site-header{margin:0 24px}.game-layout{grid-template-columns:minmax(0,1fr) 250px;gap:15px}.game-card{padding:18px 15px 0}.collection-card{padding:20px 14px 0}.generator-copy p{max-width:110px;line-height:1.5}.generator-panel{gap:7px;padding:12px 8px}.generate-button{padding:12px 9px;font-size:10px}.button-paw{display:none}.board{gap:6px;padding:8px}.intro-art{margin-right:15px}.instructions{padding:18px 15px;gap:8px}.step-arrow{padding:0}.step-art{display:none}.collection-list{gap:0}.breed-row{min-height:39px}}
@media(max-width:700px){.site-header{height:72px;margin:0 18px;padding:0}.brand{font-size:28px}.brand-icon{width:33px;height:33px;font-size:29px}.help-button{font-size:11px}main{padding:0 16px}.intro{padding:28px 2px 26px;min-height:0;position:relative}h1{font-size:32px;letter-spacing:-1.2px}.eyebrow{font-size:8px;letter-spacing:1.5px}.intro p{font-size:11px;max-width:300px}.intro-art{width:145px;height:140px;margin:0;position:absolute;right:-2px;top:23px;opacity:.9;z-index:-1}.intro-art:before{inset:20px 0 14px}.intro-art .hero-cat{width:88px;left:0;bottom:12px}.intro-art .hero-cat.second{width:77px;left:69px;bottom:15px}.hero-heart{left:53px;font-size:19px;top:7px}.hero-star{font-size:18px;top:25px}.hero-dots{display:none}.intro>div:first-child{z-index:1}.game-layout{grid-template-columns:1fr}.game-card{padding:18px 14px 0;border-radius:18px}.game-top{margin-bottom:16px}.board{gap:6px}.generator-panel{padding:15px 10px;gap:9px}.generator-copy p{max-width:none;font-size:9px}.generate-button{font-size:10px;padding:13px 11px}.collection-card{padding:20px 16px 0}.collection-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 0}.breed-row{gap:6px;padding:5px 0;min-height:48px}.breed-avatar{width:30px;height:30px}.breed-avatar svg{width:28px}.breed-name{font-size:9px}.breed-symbol{display:none}.collection-note{padding:11px 0;margin-top:13px}.collection-note p br{display:none}.collection-note p{font-size:10px}.collection-note>span{font-size:21px}.collection-subtitle{margin-bottom:12px}.instructions{gap:10px;padding:17px 11px;align-items:flex-start;margin-top:18px}.instructions>div{gap:5px;align-items:flex-start}.instructions strong{font-size:9px;line-height:1.5}.instructions p>span{font-size:8px;line-height:1.6}.step{font-size:8px}.step-arrow{display:none}.game-bottom{font-size:8px}footer{font-size:8px;gap:10px}.desktop-break{display:none}}
.cell.occupied{touch-action:none;user-select:none;-webkit-user-select:none}
.house-cell{background:#ece0f7;border:2px solid #bba0d7;cursor:pointer;flex-direction:column;padding:0 0 2px;box-shadow:inset 0 0 12px #ffffff70}
.house-cell svg{width:88%;height:82%;filter:drop-shadow(0 3px 2px #876c9120)}
.house-cell:hover{background:#e2d2f2;transform:translateY(-2px)}
.house-cell:active{transform:scale(.94)}
.house-label{font-size:8px;line-height:1;font-weight:800;color:#8a67b2;pointer-events:none}
.house-hint{display:flex;align-items:center;gap:12px;padding:12px 15px;background:#f4eefb;border:1px solid #ece2f6;border-radius:13px;color:#a294b1}
.house-hint>span{font-size:30px;color:#a385c6}.house-hint p{margin:0;font-size:10px;line-height:1.9}.house-hint strong{font-size:12px;color:#69517d}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.game-top{flex-wrap:wrap;gap:10px}.balances{display:flex;align-items:center;gap:6px;margin-left:auto}.coin-pill{display:flex;align-items:center;gap:6px;padding:8px 10px;background:#fff3d3;border:1px solid #f1dba1;border-radius:10px;color:#a77b26;font-size:10px}.coin-pill strong{font-size:13px}.coin-pill>span:first-child{color:#e6b440;text-shadow:0 1px #b98926;font-size:17px;line-height:16px}
.visitors{margin:0 0 17px}.visitors-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 11px}.visitors-heading h3{font-size:13px;margin:0}.visitors-heading>span{font-size:9px;color:#ac9db8}.orders{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.owner-card{min-width:0;border:1px solid #ebe4f2;background:#faf7fd;border-radius:15px;padding:11px;transition:background .2s,border-color .2s}.owner-card.ready{background:#f6f9ee;border-color:#dbe8c4}.owner-heading{display:flex;align-items:center;gap:7px}.owner-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;font-size:25px;flex-shrink:0}.owner-heading h4{font-size:12px;margin:0 0 2px}.owner-heading div>span{font-size:8px;color:#a699b1}.owner-request{display:flex;align-items:center;gap:5px;margin:7px 0 0;min-height:48px}.requested-cat{display:block;width:49px;height:49px;flex-shrink:0}.requested-cat svg{width:100%;height:100%;filter:drop-shadow(0 2px 1px #67482712)}.requested-name{font-size:10px;font-weight:750;overflow-wrap:anywhere}.owner-wish{margin:5px 0 10px;font-size:9px;line-height:1.6;color:#a093ab;min-height:29px}.give-cat{display:flex;justify-content:space-between;align-items:center;gap:5px;width:100%;min-height:38px;padding:9px 10px;border:0;border-radius:9px;background:#8eac65;color:white;font-size:11px;font-weight:750}.give-cat:hover:not(:disabled){background:#7e9d57}.give-cat:disabled{opacity:1;background:#eee8f3;color:#b0a4ba;cursor:default}.order-reward{white-space:nowrap;font-size:10px}.order-reward>span{color:#ffe294}.give-cat:disabled .order-reward>span{color:#cbb77a}.order-status{font-size:9px;line-height:1.6;color:#9a8aa6;margin:9px 2px 0;min-height:15px}.owner-arrive{animation:owner-arrive .45s ease-out}@keyframes owner-arrive{from{opacity:.3;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:950px){.orders{gap:6px}.owner-card{padding:8px}.owner-request{flex-direction:column;gap:0}.owner-wish{display:none}.give-cat{padding:9px 6px;font-size:10px;margin-top:9px}.owner-heading{gap:4px}.owner-avatar{width:27px;height:27px;font-size:21px}.owner-heading h4{font-size:10px}.owner-heading div>span{font-size:7px}.requested-name{font-size:9px}.visitors-heading>span{font-size:8px}}
@media(max-width:700px){.orders{gap:7px}.owner-card{padding:9px 7px}.give-cat{min-height:42px}.balances{gap:4px}.coin-pill,.score-pill{padding:7px}.visitors-heading h3{font-size:12px}.requested-cat{width:45px;height:45px}.order-status{font-size:9px}.game-top .score-label{display:none}}
.board{position:relative;isolation:isolate;border:0;border-radius:28px 35px 26px 32px;background-color:#a8cb72;background-image:url('./meadow.svg');background-size:100% 100%;box-shadow:inset 0 0 30px #527e3428,0 4px 0 #71974d42;padding:14px}
.board .cell,.board .cell.occupied,.board .house-cell{background:transparent;border:0;box-shadow:none;border-radius:50%;z-index:1}
.board .cell:empty:after{content:none}
.board .cell.occupied:before,.board .house-cell:before{content:'';position:absolute;width:67%;height:15%;bottom:8%;border-radius:50%;background:#547b3f24;filter:blur(3px);z-index:-1;pointer-events:none}
.board .cell.occupied:hover,.board .house-cell:hover{background:transparent;box-shadow:none}
.board .cell svg{filter:drop-shadow(0 3px 2px #42632625)}



.board .cell.drag-over{border:0;background:radial-gradient(ellipse,#fffbdab5,transparent 68%)}
.board .cell:focus-visible{outline:2px solid #fff9da;outline-offset:-3px}
.board .house-label{color:#576e3b;text-shadow:0 1px 2px #edffcc}
.board .level{border:0;border-radius:50%;background:#f7ffe2b0;color:#5e7747;bottom:3px;right:8px}
.board .cell.merge-glow:after{content:'';position:absolute;inset:2%;border:3px solid #fff9c1;border-radius:50%;pointer-events:none;animation:merge-ripple .65s ease-out forwards}
.house-hint{background:#f2f7e9;border-color:#e3edcf;color:#8a9974}.house-hint>span{color:#90a873}.house-hint strong{color:#6b8052}
@keyframes merge-ripple{0%{opacity:1;transform:scale(.35);box-shadow:0 0 15px #fff9ad}100%{opacity:0;transform:scale(1.3);box-shadow:0 0 26px #fff9ad00}}
@media(max-width:700px){.intro-art{z-index:0;opacity:.5}.intro>div:first-child{position:relative}}
@media(max-width:380px){.intro-art{opacity:.25}.generator-art{display:none}.breed-name{font-size:8px}.collection-list{gap:2px}.breed-row{gap:3px}h1{font-size:30px}.board{gap:4px;padding:6px}.cell{border-radius:7px}.level{font-size:7px;min-width:12px;height:12px;right:2px;bottom:2px}}@media(prefers-reduced-motion:reduce){.board .cell.merge-glow:after{display:none}*,*:before,*:after{animation:none!important;transition:none!important}}
/* Visitors stand beside the meadow, with wishes overhead and coins at their feet. */
main{max-width:1260px}.game-layout{grid-template-columns:170px minmax(0,1fr) 245px;gap:18px}.visitors{padding:16px 11px;background:#f0e9f6;border:1px solid #e5d8ef;border-radius:22px;margin:0}.visitors-heading{display:block;text-align:center}.visitors-heading>span{display:none}.orders{display:flex;flex-direction:column;gap:17px}.owner-card,.owner-card.ready{border:0;background:none;padding:0;display:flex;flex-direction:column;align-items:center;position:relative}.thought-cloud{background:#fffefa;border:1px solid #e4d8ec;border-radius:43% 47% 40% 46%;width:126px;min-height:86px;padding:5px 12px 10px;display:flex;align-items:center;flex-direction:column;position:relative;box-shadow:0 3px 0 #dfd2e730;margin-bottom:16px}.thought-cloud:after,.thought-cloud:before{content:'';position:absolute;border-radius:50%;background:#fffefa;border:1px solid #e4d8ec}.thought-cloud:before{width:12px;height:10px;bottom:-10px;left:42%}.thought-cloud:after{width:6px;height:5px;bottom:-17px;left:48%}.thought-cloud .requested-cat{width:51px;height:51px}.thought-cloud .requested-name{font-size:10px;text-align:center}.owner-person{position:relative;width:65px;height:83px}.person-head{position:absolute;top:0;left:10px;font-size:39px;line-height:42px;z-index:2}.person-body{position:absolute;left:14px;top:33px;width:38px;height:33px;border-radius:16px 16px 8px 8px;background:var(--outfit);border:2px solid #b3a1bc}.person-body:before,.person-body:after{content:'';position:absolute;top:3px;width:9px;height:28px;background:var(--outfit);border:1px solid #b3a1bc;border-radius:8px}.person-body:before{left:-8px;transform:rotate(15deg)}.person-body:after{right:-8px;transform:rotate(-15deg)}.person-legs{position:absolute;left:19px;top:63px;width:10px;height:18px;border-radius:2px 2px 4px 4px;background:#82778e;box-shadow:18px 0 #82778e}.owner-name{font-size:11px;margin:3px 0 2px}.feet-price{color:#9d772b;background:#fff1c9;border:1px solid #f0dfb0;border-radius:12px;padding:4px 9px;font-size:11px;font-weight:800}.feet-price>span[aria-hidden]{color:#dfb24c}.owner-card .give-cat{width:110px;justify-content:center;min-height:34px;margin:7px 0 0;font-size:11px}.order-status{text-align:center;font-size:9px}.energy-pill{display:flex;align-items:center;flex-wrap:wrap;gap:4px;max-width:113px;background:#eaf2dd;border:1px solid #d5e4bb;border-radius:10px;padding:6px 8px;color:#7a9450;font-size:10px}.energy-pill>span:first-child{font-size:21px;line-height:16px;color:#8fa84f}.energy-pill strong{font-size:13px}.energy-pill small{width:100%;font-size:8px;text-align:center}.house-cell.exhausted{opacity:.5}.fireworks{position:fixed;inset:0;z-index:100;pointer-events:none;overflow:hidden}.firework-burst{position:absolute}.firework-spark{position:absolute;width:7px;height:7px;border-radius:50%;background:var(--spark);box-shadow:0 0 8px var(--spark);opacity:0;animation:firework 1.4s ease-out var(--delay) both}@keyframes firework{0%{opacity:0;transform:translate(0,0) scale(.2)}10%{opacity:1}70%{opacity:.8}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.2)}}
@media(max-width:1050px){.game-layout{grid-template-columns:145px minmax(0,1fr);gap:14px}.collection-card{grid-column:1/-1}.collection-list{grid-template-columns:repeat(4,minmax(0,1fr))}.thought-cloud{width:112px}.game-card{padding:17px 12px 0}}
@media(max-width:700px){main{padding:0 8px}.game-layout{grid-template-columns:88px minmax(0,1fr);gap:7px}.visitors{padding:12px 4px;border-radius:14px}.visitors-heading h3{font-size:10px}.orders{gap:14px}.thought-cloud{width:77px;min-height:70px;padding:4px 3px 7px}.thought-cloud .requested-cat{width:40px;height:40px}.thought-cloud .requested-name{font-size:8px}.owner-person{transform:scale(.8);transform-origin:top center;height:66px}.owner-name{font-size:10px}.feet-price{font-size:9px;padding:3px 5px}.owner-card .give-cat{width:72px;min-height:36px;font-size:10px}.order-status{font-size:8px;line-height:1.5}.game-card{padding:12px 6px 0;border-radius:15px;min-width:0}.game-top{gap:7px;margin-bottom:10px}.field-title{gap:3px}.field-title h2{font-size:12px}.balances{width:100%;margin:0;justify-content:space-between;gap:3px}.coin-pill,.score-pill{padding:5px 4px;font-size:8px;gap:3px}.coin-pill strong,.score-pill strong{font-size:10px}.coin-pill>span:last-child{display:none}.energy-pill{padding:4px 5px;max-width:95px;font-size:8px}.energy-pill strong{font-size:11px}.energy-pill small{font-size:7px}.game-card .board{gap:1px;padding:4px;border-radius:18px}.board .cell{padding:0}.board .cell svg{width:96%;height:96%}.board .house-label{font-size:6px}.game-card .board-caption{font-size:8px;flex-wrap:wrap;gap:3px;padding:9px 0}.game-card .house-hint{padding:8px 5px;gap:5px}.house-hint strong{font-size:9px}.house-hint p{font-size:8px}.game-bottom>span{font-size:7px;max-width:130px}.collection-list{grid-template-columns:repeat(3,minmax(0,1fr))}.collection-card{grid-column:1/-1}.intro{padding-left:7px}.instructions{gap:5px}}
@media(prefers-reduced-motion:reduce){.firework-spark{animation:none!important;opacity:.8;transform:translate(var(--dx),var(--dy))}}
.shop-open{border:1px solid #deceef;background:#f1e7fc;border-radius:10px;padding:8px 11px;color:#8862b7;font-size:11px;font-weight:800;display:flex;align-items:center;gap:5px}.shop-open:hover{background:#e9daf9}.shop-open>span{font-size:19px;line-height:18px}.shop-modal{max-width:580px;padding:30px 24px 17px;max-height:90dvh;overflow-y:auto}.shop-wallet{display:inline-flex;align-items:center;gap:8px;background:#fff3d5;border:1px solid #f0dfac;border-radius:20px;padding:8px 14px;color:#a68a52;font-size:11px;margin:3px 0 20px}.shop-wallet strong{color:#96722e;font-size:14px}.shop-wallet>span{color:#e0b14c}.shop-products{display:grid;grid-template-columns:1fr 1fr;gap:14px}.shop-product{padding:15px 12px 10px;border:1px solid #e8dcef;border-radius:17px;background:#f7f1fc;display:flex;flex-direction:column;align-items:center}.shop-product.energy-product{background:#f2f7e9;border-color:#dfe9ce}.shop-product h3{font-size:13px;margin:7px 0}.shop-product p{font-size:11px;margin:0;line-height:1.8}.shop-detail{font-size:9px;line-height:1.6;color:#a18dad;display:block;margin:10px 0 12px;min-height:30px}.shop-buy{border:0;border-radius:10px;padding:11px 7px;min-height:42px;width:100%;background:#9570c9;color:white;font-size:11px;font-weight:800;box-shadow:0 3px #805aaf}.shop-buy:hover:not(:disabled){background:#825db7}.shop-buy:disabled{background:#e6dfed;color:#a99ab5;box-shadow:none;opacity:1}.energy-product .shop-buy:not(:disabled){background:#91aa67;box-shadow:0 3px #788f50}.shop-hint{font-size:9px;color:#a296ad;min-height:30px;margin-top:10px;line-height:1.5}.shop-footer{font-size:9px!important;margin:14px 0 0!important}.shop-result{display:flex;align-items:center;justify-content:center;gap:10px;min-height:22px;margin:12px 0 0;color:#9a85ad;font-size:12px}.shop-result:empty{display:none}.shop-result>div{display:flex;flex-direction:column;text-align:left;gap:5px}.shop-result strong{color:#775596;font-size:13px}.shop-result span:not(.shop-reveal):not(.shop-energy-reveal){font-size:10px}.shop-reveal{width:65px;height:65px;flex-shrink:0}.shop-reveal svg{width:100%;height:100%;animation:pop .4s ease-out}.shop-energy-reveal{font-size:46px;color:#8da35c}.mystery-box{width:110px;height:100px;position:relative;margin:auto}.box-body{position:absolute;bottom:6px;left:18px;width:76px;height:59px;border-radius:3px 3px 10px 10px;background:#b293d7;border:2px solid #9470bc;color:#fff7da;font-size:34px;font-weight:800;text-align:center;line-height:55px;box-shadow:0 5px 0 #ded1ed}.box-lid{position:absolute;left:13px;top:26px;width:86px;height:18px;background:#cab0e9;border:2px solid #9470bc;border-radius:5px;z-index:1;transform:rotate(-5deg)}.box-bow{position:absolute;left:36px;top:-1px;font-size:41px;color:#d2a94f;z-index:2;line-height:35px}.box-spark{position:absolute;right:-3px;top:5px;font-size:27px;color:#c4a164}.energy-art{width:100px;height:100px;font-size:79px;line-height:78px;color:#aac570;text-shadow:0 3px #7c9951;position:relative;margin:auto}.energy-art>span{position:absolute;bottom:5px;left:22px;background:#fff7d4;border:1px solid #e5d399;border-radius:12px;padding:4px 8px;font-size:14px;line-height:20px;text-shadow:none;color:#a2853f;font-weight:800}
@media(max-width:700px){.shop-open{padding:5px 7px;font-size:9px;margin-left:auto;min-height:30px}.shop-open>span{font-size:15px}.shop-modal{padding:28px 12px 16px}.shop-products{gap:8px}.shop-product{padding:12px 7px 8px}.shop-product h3{font-size:11px}.shop-product p{font-size:10px}.shop-buy{font-size:10px}.shop-detail{font-size:8px}.shop-hint{font-size:8px}.mystery-box{transform:scale(.85);margin:-4px auto}.energy-art{transform:scale(.85);margin:-4px auto}.shop-result strong{font-size:12px}}
.board .box-cell{cursor:pointer;touch-action:manipulation}.board .box-cell svg{width:92%;height:92%;filter:drop-shadow(0 3px 3px #75509830)}.board .box-cell:hover{transform:translateY(-3px)}.board .box-cell.pop{animation:box-fall .55s ease-out}@keyframes box-fall{0%{opacity:0;transform:translateY(-55px) rotate(-12deg) scale(.65)}65%{opacity:1;transform:translateY(3px) rotate(4deg) scale(1.08)}100%{transform:translateY(0) rotate(0) scale(1)}}.lawn-decor{position:absolute;inset:0;pointer-events:none;overflow:hidden;border-radius:inherit;z-index:0}.lawn-decor *{pointer-events:none}.decor-mouse,.decor-bush{position:absolute;display:block}.decor-mouse{width:34px;height:21px;opacity:.88}.decor-mouse svg,.decor-bush svg{width:100%;height:100%}.mouse-one{left:22%;top:14%;animation:mouse-wander 17s ease-in-out infinite}.mouse-two{right:12%;top:54%;transform:scaleX(-1);animation:mouse-wander-reverse 23s ease-in-out infinite}.mouse-three{left:12%;bottom:13%;animation:mouse-wander 21s ease-in-out infinite}.decor-bush{width:75px;height:56px}.bush-one{right:-6px;top:0}.bush-two{left:37%;bottom:-7px;transform:scaleX(-1)}@keyframes mouse-wander{0%,30%,100%{translate:0 0}45%,70%{translate:12px 5px}}@keyframes mouse-wander-reverse{0%,40%,100%{translate:0 0}55%,80%{translate:-13px 3px}}@media(max-width:700px){.decor-mouse{width:21px;height:13px}.decor-bush{width:43px;height:32px}.bush-one{right:-3px}.bush-two{bottom:-4px}}
#lawn-decor-root{position:fixed;inset:0;pointer-events:none;z-index:2;overflow:hidden}.mouse-one{animation:mouse-route-one 24s linear infinite}.mouse-two{animation:mouse-route-two 29s linear infinite}.mouse-three{animation:mouse-route-three 33s linear infinite}@keyframes mouse-route-one{0%,100%{left:2%;top:7%;transform:scaleX(1)}48%{left:94%;top:12%;transform:scaleX(1)}50%{transform:scaleX(-1)}98%{left:2%;top:17%;transform:scaleX(-1)}}@keyframes mouse-route-two{0%,100%{right:2%;top:8%;transform:scaleX(-1) rotate(78deg)}48%{right:4%;top:91%;transform:scaleX(-1) rotate(78deg)}50%{transform:scaleX(1) rotate(-78deg)}98%{right:1%;top:8%;transform:scaleX(1) rotate(-78deg)}}@keyframes mouse-route-three{0%,100%{left:3%;bottom:4%;transform:scaleX(1)}48%{left:93%;bottom:8%;transform:scaleX(1)}50%{transform:scaleX(-1)}98%{left:3%;bottom:13%;transform:scaleX(-1)}}
.shelf-area{border:1px solid #ebdfee;border-radius:14px;background:#fbf6fb;padding:12px;margin-bottom:13px}.shelf-heading{display:flex;justify-content:space-between;align-items:center;gap:6px}.shelf-heading h3{font-size:12px;margin:0}.shelf-heading>span{font-size:9px;color:#a18ead}.shelves{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:9px 0 13px}.shelf{min-width:0}.shelf-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}.shelf-slot{min-width:0;height:63px;border:0;background:transparent;border-radius:50%;display:grid;place-items:center;position:relative;padding:0}.shelf-slot svg{width:95%;height:100%;max-width:61px;pointer-events:none;filter:drop-shadow(0 3px 2px #9d796b20)}.shelf-slot>span{font-size:21px;color:#dac5dc;pointer-events:none}.shelf-slot.occupied{cursor:grab;touch-action:none;user-select:none}.shelf-slot.drag-over{background:radial-gradient(ellipse,#ead9f6,transparent 70%)}.shelf-plank{height:10px;background:#d3a87c;border:1px solid #c69568;border-radius:3px;box-shadow:0 4px 0 #a9775140;position:relative}.shelf-plank:before,.shelf-plank:after{content:'';position:absolute;top:10px;width:6px;height:7px;background:#bf9069}.shelf-plank:before{left:12%}.shelf-plank:after{right:12%}.shelf-area>p{font-size:9px;color:#ac99b3;margin:0;line-height:1.5}.box-quantity-label{display:flex;align-items:center;justify-content:center;gap:8px;font-size:10px;color:#987da8;margin:0 0 10px}.box-quantity-label select{font:inherit;font-size:12px;border:1px solid #d7c6e7;background:white;color:#88699c;border-radius:7px;padding:6px 10px;min-height:34px}.energy-product .shop-buy{margin-top:auto}@media(max-width:700px){.shelf-area{padding:8px 5px}.shelf-heading{flex-direction:column;align-items:flex-start;gap:3px}.shelf-heading h3{font-size:10px}.shelf-heading>span,.shelf-area>p{font-size:8px}.shelves{gap:9px}.shelf-slot{height:43px}.shelf-slot>span{font-size:16px}.shelf-plank{height:7px}.shelf-plank:before,.shelf-plank:after{top:7px;height:5px}}

/* Explicit grid positions keep both mouse cells reserved at every screen size. */
.cell.large-mouse{aspect-ratio:auto;align-self:stretch;min-height:0}
.cell.large-mouse svg{position:absolute;width:94%;height:94%}
.shelf-slot.large-mouse svg{max-width:none;width:96%}
#recover-mouse[hidden]{display:none}

.board{grid-auto-rows:1fr}

/* Mice run only inside clipped side panels and never cross the game board. */
.visitors,.collection-card{position:relative;overflow:hidden}
.visitors>.mouse-lane,.collection-card>.mouse-lane{position:absolute;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none;z-index:0}
.visitors>:not(.mouse-lane),.collection-card>:not(.mouse-lane){position:relative;z-index:1}
.side-mouse{position:absolute;display:block;width:29px;height:18px;opacity:.68;filter:drop-shadow(0 2px 1px #66516b25);animation:side-mouse-run 13s linear infinite}
.side-mouse svg{width:100%;height:100%;display:block}
.side-mouse-one{left:1px;top:-22px}
.side-mouse-two{right:1px;top:-22px;animation-duration:17s;animation-delay:-8s}
@keyframes side-mouse-run{0%{top:-22px;transform:rotate(78deg) scaleX(1)}47%{top:calc(100% + 3px);transform:rotate(78deg) scaleX(1)}50%{top:calc(100% + 3px);transform:rotate(-78deg) scaleX(-1)}97%,100%{top:-22px;transform:rotate(-78deg) scaleX(-1)}}
@media(max-width:700px){.side-mouse{width:21px;height:13px;opacity:.58}.collection-card .side-mouse{display:none}}
@media(prefers-reduced-motion:reduce){.side-mouse{animation:none;top:8px}}

.board .house-image{display:block;width:88%;height:82%;object-fit:contain;border-radius:10px;pointer-events:none;user-select:none}
/* Field artwork fills the board at every screen size. */
.board{background-color:#c6dba4;background-image:url('../img/field.jpg');background-position:center;background-repeat:no-repeat;background-size:cover}
.audio-controls{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}
.audio-controls .audio-toggle{width:auto;padding:5px 8px;font-size:11px;min-height:32px}

/* Thirty mice use JavaScript-generated routes in the screen area outside the board. */
#lawn-decor-root{position:fixed;inset:0;pointer-events:none;z-index:2;overflow:hidden}
.mouse-swarm{position:absolute;inset:0;pointer-events:none}
.screen-mouse{position:fixed;display:block;width:30px;height:19px;opacity:.78;pointer-events:none;will-change:left,top,transform;filter:drop-shadow(0 2px 1px #54405d30)}
.screen-mouse svg{display:block;width:100%;height:100%}

/* Three compact portraits sit directly above the meadow. */
.game-layout{grid-template-columns:minmax(0,1fr) 245px}
.game-card>.visitors{width:100%;margin:0 0 10px;padding:8px;background:#f8f4fb;border-radius:14px}
.visitors .orders{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:10px}
.visitors .owner-person{height:44px;width:50px;transform:none}
.visitors .person-head{left:0;width:100%;text-align:center}
.visitors .thought-cloud{width:100%;max-width:145px;min-height:76px}
.visitors .give-cat{width:100%;max-width:125px}
.visitors .order-status{margin-bottom:0}
@media(max-width:1050px){.game-layout{grid-template-columns:minmax(0,1fr)}.collection-card{grid-column:auto}}
@media(max-width:700px){.game-card>.visitors{padding:10px 6px}.visitors .orders{gap:7px}.visitors .thought-cloud{min-height:70px}.visitors .owner-person{height:37px}.visitors .person-head{font-size:32px;line-height:36px}.visitors .visitors-heading h3{font-size:12px}}
@media(max-width:700px){.screen-mouse{width:21px;height:13px;opacity:.68}}
.visitors .orders{gap:7px;margin-top:6px}
.visitors .owner-person{height:32px;width:38px}
.visitors .person-head{font-size:29px;line-height:32px}
.visitors .thought-cloud{max-width:108px;min-height:58px;padding:3px 5px 6px;margin-bottom:12px}
.visitors .thought-cloud .requested-cat{width:36px;height:36px}
.visitors .thought-cloud .requested-name{font-size:9px}
.visitors .give-cat{max-width:98px;min-height:30px;padding:5px;margin-top:4px}
.visitors .feet-price{font-size:10px;padding:2px 6px}
.visitors .order-status{margin:5px 0 0;min-height:0;font-size:8px}
.visitors .visitors-heading h3{font-size:11px}
.visitors .owner-card{display:grid;grid-template-columns:38px minmax(0,1fr);gap:3px 6px;align-items:center}
.visitors .owner-person{grid-column:1;grid-row:1;justify-self:center}
.visitors .feet-price{grid-column:1;grid-row:2;justify-self:center;font-size:9px;white-space:nowrap;padding:2px 3px}
.visitors .thought-cloud{grid-column:2;grid-row:1 / span 2;max-width:none;min-height:55px;margin:0;padding:2px 4px;border-radius:12px}
.visitors .thought-cloud:before,.visitors .thought-cloud:after{display:none}
.visitors .give-cat{grid-column:1 / -1;grid-row:3;max-width:none;margin-top:2px;min-height:30px}
.visitors .visitors-heading{margin-bottom:4px}
.visitors .order-status{line-height:1.3}
@media(max-width:420px){.visitors .owner-card{grid-template-columns:28px minmax(0,1fr);column-gap:3px}.visitors .owner-person{width:28px}.visitors .person-head{font-size:25px}.visitors .thought-cloud .requested-name{font-size:8px}.visitors .feet-price{font-size:8px}}

/* Invisible play areas follow the mattress, leaving the pillows and house clear. */
.game-card .board{display:block;aspect-ratio:1;padding:0;gap:0;background:#f7dfc5 url('../img/bed-house-headboard.png?v=2') center/100% 100% no-repeat;border-radius:18px;box-shadow:0 4px 14px #936b4520}
.board .cell{position:absolute;width:11%;height:10%;aspect-ratio:auto;margin:-5% 0 0 -5.5%;padding:0}
.board .cell svg{width:100%;height:100%}
.board .cell.drag-over,.shelf-slot.drag-over{outline:none;background:transparent;box-shadow:none}
.pointer-cat{left:0;top:0;will-change:transform;transition:none;animation:none;filter:none}
.pointer-cat>svg{display:block;width:100%;height:100%}
.drag-source>svg{visibility:hidden}
.board .house-cell{left:13.5%;top:8%;width:29%;height:18.5%;margin:0;border-radius:25%;cursor:pointer;-webkit-tap-highlight-color:transparent}
.board .house-cell:before{content:none}
.board .house-cell:hover{transform:none;background:transparent}
.board .house-cell:active{transform:none;background:transparent}
.board .house-cell:focus-visible{outline:3px solid #fff2b8;outline-offset:0}

/* Collection lives in the shelf book; the field keeps its familiar width. */
.game-layout{grid-template-columns:minmax(0,1fr);max-width:950px;margin-inline:auto}
.shelves{grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr);align-items:end;gap:12px}
.collection-book{border:0;background:transparent;padding:0;width:54px;height:70px;align-self:center;transition:transform .2s}
.collection-book:hover{transform:rotate(-6deg) translateY(-3px)}
.collection-book svg{display:block;width:100%;height:100%;filter:drop-shadow(0 3px 2px #795a9930);pointer-events:none}
.collection-modal{width:min(640px,calc(100% - 24px));max-width:640px;max-height:85dvh;overflow-y:auto;padding:36px 24px 20px;text-align:left}
.collection-modal .collection-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px}
.collection-modal .breed-row{text-align:left}
.board-wrap{position:relative}
.board-fullscreen{position:absolute;right:8px;top:8px;z-index:5;display:grid;place-items:center;width:34px;height:34px;border:1px solid #d9c9eb;border-radius:9px;background:#fffdf5;color:#685079;padding:7px;box-shadow:0 2px 8px #49351920}
.board-fullscreen svg{width:18px;height:18px;pointer-events:none}
.board-fullscreen .collapse-icon,.board-fullscreen[aria-pressed="true"] .expand-icon{display:none}
.board-fullscreen[aria-pressed="true"] .collapse-icon{display:block}
.field-expanded-page{overflow:hidden;overscroll-behavior:none}
.field-expanded-page body{position:fixed;top:var(--field-scroll-top);left:0;right:0;overflow:hidden;overscroll-behavior:none}
.board-wrap.field-expanded{position:fixed;inset:0;z-index:1000;width:100%;height:100%;height:100dvh;padding:0;display:flex;align-items:center;justify-content:center;background:#f7f0e7;overflow:hidden;touch-action:none;overscroll-behavior:none}
.game-card .board-wrap.field-expanded .board{position:relative;flex:none;width:100%;height:100%;aspect-ratio:auto;border:0;border-radius:0;box-shadow:none;touch-action:none}
.field-expanded .board .cell{margin:0;translate:-50% -50%}
.field-expanded .board .house-cell{translate:none}
.field-expanded .board-fullscreen{top:max(8px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right))}
.field-expanded-page .pointer-cat{z-index:1001}
@media(max-width:700px){.shelves{grid-template-columns:minmax(0,1fr) 38px minmax(0,1fr);gap:5px}.collection-book{width:38px;height:52px}.collection-modal{padding:35px 14px 16px}.collection-modal .collection-list{gap:5px 8px}}
@media(prefers-reduced-motion:reduce){.collection-book{transition:none}}

.intro{min-height:0;padding:24px 6px}
.coin-pill,.shop-wallet,.feet-price{background:#eaf7fc;border-color:#c5e4f2;color:#437e9c}
.coin-pill strong,.shop-wallet strong{color:#336f8d}
.coin-pill>span:first-child,.shop-wallet>span,.feet-price>span[aria-hidden]{color:#55bce8}

/* Individual owner portraits keep their original proportions. */
.visitors .owner-card{grid-template-columns:minmax(52px,84px) minmax(0,1fr)}
.visitors .owner-person{width:100%;height:110px;overflow:hidden;border-radius:12px;background:white}
.owner-portrait{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:700px){.visitors .owner-card{grid-template-columns:minmax(0,1fr)}.visitors .owner-person{grid-column:1;grid-row:2;width:62px;height:92px}.visitors .thought-cloud{grid-column:1;grid-row:1}.visitors .feet-price{grid-column:1;grid-row:3}.visitors .give-cat{grid-column:1;grid-row:4}}

.visitors .thought-cloud{justify-content:center}
.visitors .thought-cloud .requested-cat{width:48px;height:48px}
.visitors .thought-cloud{width:100%;max-width:120px;height:90px;min-height:90px;justify-self:center;padding:12px 15px 18px;border:0;border-radius:0;background:transparent url('../img/request-cloud.svg') center/100% 100% no-repeat;box-shadow:none;filter:drop-shadow(0 2px 1px #dfd2e730)}
.visitors .thought-cloud:before,.visitors .thought-cloud:after{display:block;position:absolute;background:#fffefa;border:1px solid #e4d8ec;border-radius:50%;width:9px;height:7px;left:0;top:66%;bottom:auto}
.visitors .thought-cloud:after{width:5px;height:4px;left:-7px;top:79%}
@media(max-width:700px){.visitors .thought-cloud:before{left:40%;top:auto;bottom:0}.visitors .thought-cloud:after{left:34%;top:auto;bottom:-6px}}

.visitors .order-status:empty{display:none}
.visitors .owner-card{grid-template-columns:84px minmax(0,108px);justify-content:center;column-gap:0;row-gap:2px}
.visitors .owner-person{grid-column:1;grid-row:1 / span 2;background:transparent;border:0;border-radius:0;box-shadow:none;mix-blend-mode:normal}
.visitors .thought-cloud{grid-column:2;grid-row:1;justify-self:start}
.visitors .feet-price{grid-column:2;grid-row:2;align-self:start}
.visitors .give-cat{grid-row:3}
@media(max-width:700px){
  .visitors .owner-card{grid-template-columns:minmax(0,1fr);row-gap:0}
  .visitors .thought-cloud{grid-column:1;grid-row:1;justify-self:center}
  .visitors .feet-price{grid-column:1;grid-row:2;margin-top:-5px;z-index:1}
  .visitors .owner-person{grid-column:1;grid-row:3;margin-top:2px}
  .visitors .give-cat{grid-column:1;grid-row:4}
  .visitors .thought-cloud:before{left:18%;bottom:0}
  .visitors .thought-cloud:after{left:22%;bottom:-6px}
}

/* Upgrade sprites replace the central house at every scene size. */
.meadow-wallet{display:flex;align-items:center;gap:8px;width:fit-content;margin:0 0 14px;padding:10px 16px;border-radius:12px;background:#eaf7fc;color:#437e9c}
.meadow-scene{position:relative;isolation:isolate;overflow:hidden;border-radius:20px}
.meadow-camera{position:relative}
.left-house-art{position:absolute;left:23%;bottom:9%;width:46%;height:82%;object-fit:contain;object-position:center bottom;pointer-events:none;filter:drop-shadow(-6px 8px 5px #49351940)}
.left-house-select{position:absolute;left:23%;top:11%;width:46%;height:79%;padding:0;border:0;border-radius:20px;background:transparent;box-shadow:none;z-index:2;cursor:pointer}
.left-house-select:hover{background:transparent}
.left-house-select:focus-visible{outline:3px solid #fff1b3;outline-offset:4px}
.house-upgrade-panel{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding:20px;background:white;border:1px solid #ece7f2;border-radius:18px}
.house-upgrade-panel p{margin:6px 0 0;font-size:12px;color:#92899c}
.house-upgrade-panel .house-hint,.house-upgrade-panel .house-result{flex-basis:100%;margin:0}
.house-upgrade-panel .house-result{color:#60824b;font-weight:750}
.house-result:empty{display:none}
@media(max-width:500px){.house-upgrade-panel{padding:15px}.house-upgrade-panel .generate-button{width:100%}}

/* Scene-level smoke covers every edge independently of the camera zoom. */
.house-celebration{position:absolute;inset:0;z-index:3;pointer-events:none}
.house-upgrade-cloud{position:absolute;inset:-5%;background:radial-gradient(ellipse at 20% 25%,#ffb2d8,transparent 65%),radial-gradient(ellipse at 80% 75%,#94ddd9,transparent 65%),linear-gradient(140deg,#b5a0ed,#ffe39c);box-shadow:0 0 12px 7px #c8b6e9;animation:house-cloud-in 175ms ease-out both}
.house-smoke{position:absolute;inset:-8%;filter:blur(5px)}
.house-smoke i{position:absolute;left:var(--left);top:var(--top);width:48%;height:42%;border-radius:48% 58% 45% 55%;background:radial-gradient(ellipse at 40% 35%,#fff8,var(--smoke) 65%);box-shadow:0 0 12px 5px var(--smoke);animation:house-smoke-drift 800ms ease-in-out var(--delay) infinite alternate}
.house-celebration.revealing{animation:house-cloud-out 450ms ease-out both}
@keyframes house-cloud-in{from{opacity:0}75%,to{opacity:1}}
@keyframes house-cloud-out{from{opacity:1}to{opacity:0}}
@keyframes house-smoke-drift{from{transform:translate(-5%,6%) scale(.95)}to{transform:translate(8%,-12%) scale(1.18)}}
@media(prefers-reduced-motion:reduce){.house-celebration.revealing{opacity:0}}

/* Living meadow: local SVG decorations follow gentle looping flight paths. */
.meadow-wildlife{position:absolute;inset:0;z-index:2;overflow:hidden;pointer-events:none}
.meadow-critter{position:absolute;left:var(--x);top:var(--y);width:clamp(16px,3.1vw,38px);animation:meadow-flight var(--duration) ease-in-out var(--delay) infinite;will-change:transform}
.critter-body{display:block;animation:critter-bob 2.1s ease-in-out var(--delay) infinite alternate;filter:drop-shadow(0 2px 2px #49351930)}
.meadow-critter svg{display:block;width:100%;overflow:visible}
.meadow-critter.bee{width:clamp(13px,2.2vw,27px)}
.meadow-critter.bird{width:clamp(22px,4vw,48px);animation-name:meadow-bird-flight}
.meadow-critter.beast{width:clamp(28px,5.5vw,66px)}
.beast .critter-body img{display:block;width:100%;height:auto;user-select:none}
.beast.butterfly .critter-body{animation:beast-hover 1.2s ease-in-out var(--delay) infinite alternate}
.beast.perched{animation:none}
.beast.perched .critter-body{transform-origin:center bottom;animation:beast-hop 3s ease-in-out var(--delay) infinite}
@keyframes beast-hover{from{transform:translateY(0) rotate(-5deg) scaleX(.9)}to{transform:translateY(-7px) rotate(5deg) scaleX(1)}}
@keyframes beast-hop{0%,65%,100%{transform:translateY(0)}75%{transform:translateY(-8px) rotate(-4deg)}85%{transform:translateY(0)}92%{transform:translateY(-4px) rotate(3deg)}}
.critter-wings{transform-origin:30px 24px;animation:critter-flutter .22s ease-in-out infinite alternate}
.bee .critter-wings{animation-duration:.075s}
.bird-wing{transform-origin:39px 28px;animation:bird-flap .55s ease-in-out infinite alternate}
.meadow-fog{position:absolute;inset:-12%;z-index:4;pointer-events:none;background:radial-gradient(ellipse,#f8ffff 15%,#e8f3f6ed 65%,#ecf6f8d9);animation:meadow-fog-in 1s ease-out both}
.meadow-fog i{position:absolute;inset:-10%;border-radius:50%;background:radial-gradient(ellipse at 30% 40%,#fff 0%,#fff0 60%);filter:blur(18px);animation:fog-drift 3s ease-in-out infinite alternate}
.meadow-fog i:nth-child(2){transform:rotate(180deg);animation-delay:-1s}
.meadow-fog i:nth-child(3){top:35%;animation-delay:-2s}
.meadow-fog.clearing{animation:meadow-fog-out 1.8s ease-in both}
#meadow-life-status:empty{display:none}
@keyframes meadow-flight{0%,100%{transform:translate(0,0) rotate(-8deg)}25%{transform:translate(35px,-28px) rotate(12deg)}50%{transform:translate(65px,9px) rotate(-12deg)}75%{transform:translate(-20px,25px) rotate(9deg)}}
@keyframes meadow-bird-flight{0%,100%{transform:translate(-35px,0)}25%{transform:translate(80px,-15px)}49%{transform:translate(120px,25px) scaleX(1)}51%{transform:translate(120px,25px) scaleX(-1)}75%{transform:translate(25px,10px) scaleX(-1)}99%{transform:translate(-35px,0) scaleX(-1)}}
@keyframes critter-bob{to{transform:translateY(-6px) rotate(6deg)}}
@keyframes critter-flutter{from{transform:scaleX(1)}to{transform:scaleX(.3)}}
@keyframes bird-flap{from{transform:rotate(-20deg) scaleY(1)}to{transform:rotate(25deg) scaleY(.35)}}
@keyframes meadow-fog-in{from{opacity:0}to{opacity:1}}
@keyframes meadow-fog-out{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.2) translateY(-5%)}}
@keyframes fog-drift{to{translate:8% -6%}}
#meadow-page[hidden] .meadow-critter,#meadow-page[hidden] .critter-body,#meadow-page[hidden] .critter-wings,#meadow-page[hidden] .bird-wing{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.meadow-critter,.critter-body,.critter-wings,.bird-wing,.meadow-fog i{animation:none}.meadow-fog,.meadow-fog.clearing{animation-duration:.01s}}

/* Position is anchored at the feet; frame swaps and hops share one clock. */
.interior-bird{position:absolute;z-index:2;width:12%;aspect-ratio:1;pointer-events:none;transform:translate(-50%,-90%)}
.interior-bird:before{content:'';position:absolute;left:22%;top:85%;width:58%;height:9%;border-radius:50%;background:#56341d40;filter:blur(2px);transform:scale(var(--shadow-scale,1))}
.interior-bird canvas{display:block;width:100%;height:100%;transform:translateY(var(--bird-lift,0%)) scaleX(var(--bird-facing,1))}


.sound-art{font-size:48px;color:#9570c9;line-height:1.3}.sound-preview{margin:14px 0;border:1px solid #cdb6e6;border-radius:10px;padding:10px;background:#fff;color:#775596;font:inherit;font-size:12px;min-height:42px;width:100%}.sound-preview:hover{background:#eee3f8}.sound-shop-description{font-size:12px;line-height:1.7;color:#927da5}.sound-product .shop-buy{margin-top:auto}

.board .cell.locked-cat{cursor:default;background:radial-gradient(ellipse,#dfd3eac9 20%,#c6b2dc66 60%,transparent 72%)}.board .cell.locked-cat>svg{opacity:.68;filter:saturate(.65)}.cat-lock{position:absolute;right:5%;bottom:8%;font-size:clamp(12px,2vw,20px);pointer-events:none}.locked-level{position:absolute;left:8%;bottom:8%;background:#72568f;color:#fff;border-radius:50%;width:18px;height:18px;font-size:11px;line-height:18px;text-align:center;pointer-events:none}

.kitten-room-scene{isolation:isolate}
.kitten-room-layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.kitten-room-hammer{position:absolute;z-index:2;transform:translate(-50%,-50%);display:flex;align-items:center;gap:5px;min-width:44px;min-height:44px;padding:6px 9px;border:0;border-radius:14px;background:transparent;color:#fff4dc;filter:drop-shadow(0 2px 3px #583217);cursor:pointer}
.kitten-room-hammer>img{display:block;width:40px;height:40px;object-fit:contain;pointer-events:none}
.kitten-room-hammer small{font-size:11px;font-weight:800;white-space:nowrap}
.kitten-room-hammer:hover:not(:disabled){background:transparent;transform:translate(-50%,-50%) scale(1.08)}
.kitten-room-hammer:focus-visible{outline:3px solid #7440b7;outline-offset:3px}
.kitten-room-hammer:disabled{opacity:.55;cursor:wait}
.kitten-room-instructions{font-size:13px;line-height:1.6;color:#82728f;margin:12px 0}
@media(max-width:600px){.kitten-room-hammer{flex-direction:column;gap:1px;padding:3px;min-width:44px;min-height:44px;border-radius:10px}.kitten-room-hammer>img{width:28px;height:28px}.kitten-room-hammer small{font-size:9px}.kitten-room-instructions{font-size:11px}}

.kitten-room-smoke{position:absolute;z-index:3;inset:-8%;pointer-events:none;filter:blur(12px);animation:kitten-room-smoke-fade 1800ms ease-in-out both}
.kitten-room-smoke i{position:absolute;left:var(--x);top:var(--y);width:40%;height:52%;border-radius:48% 58% 45% 55%;background:radial-gradient(ellipse at 40% 35%,#fff9,var(--smoke) 55%,transparent 73%);animation:house-smoke-drift 800ms ease-in-out var(--delay) infinite alternate}
@keyframes kitten-room-smoke-fade{0%{opacity:0;transform:scale(.88)}25%,55%{opacity:.96}100%{opacity:0;transform:scale(1.15)}}
@media(prefers-reduced-motion:reduce){.kitten-room-smoke{animation-duration:700ms}.kitten-room-smoke i{animation:none}@keyframes kitten-room-smoke-fade{0%,100%{opacity:0}40%,60%{opacity:.8}}}

#kitten-room-butterflies{position:absolute;inset:0;z-index:2;pointer-events:none}
.kitten-room-butterfly{position:absolute;width:var(--size);animation:kitten-room-flutter var(--duration) ease-in-out var(--flight-delay) infinite;filter:drop-shadow(0 3px 3px #59322933)}
.kitten-room-butterfly .butterfly-frames{animation-delay:var(--wing-delay)}
@keyframes kitten-room-flutter{0%,100%{left:var(--x1);top:var(--y1);transform:translateY(0) rotate(-12deg)}18%{transform:translateY(-8px) rotate(8deg)}35%{left:var(--x2);top:var(--y2);transform:translateY(3px) rotate(16deg)}52%{transform:translateY(-6px) rotate(-5deg)}70%{left:var(--x3);top:var(--y3);transform:translateY(4px) rotate(-14deg)}85%{transform:translateY(-7px) rotate(6deg)}}
#kitten-room-page[hidden] .kitten-room-butterfly,#kitten-room-page[hidden] .butterfly-frames,#kitten-room-butterflies[hidden] .kitten-room-butterfly,#kitten-room-butterflies[hidden] .butterfly-frames{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.kitten-room-butterfly{animation:none;left:var(--x1);top:var(--y1)}.kitten-room-butterfly .butterfly-frames{animation:none;transform:none}}

.board .cell.hidden-cat>svg.secret-box-art,.board .cell.box-cell>svg.secret-box-art{opacity:.78;filter:saturate(.65) drop-shadow(0 3px 3px #75509824)}

dialog.adopted-modal{width:50vw;height:70dvh;max-width:none;max-height:90dvh;padding:36px 28px 24px;text-align:left;background:#fffdfff2}
dialog.adopted-modal::backdrop{background:transparent;backdrop-filter:none}
.adopted-modal[open]{display:flex;flex-direction:column}
.adopted-modal h2{flex-shrink:0;margin:0 25px 18px 0}
#adopted-list{margin:0;padding:0;list-style:none;overflow:auto;min-height:0;line-height:1.7}
#adopted-list li{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid #e9e1ef}
.adopted-portrait{display:block;flex:0 0 64px;width:64px;height:64px}
.adopted-portrait>svg{display:block;width:100%;height:100%}
.adopted-details{min-width:0;overflow-wrap:anywhere}
#adopted-list .read-letter{display:block;margin-top:6px}
@media(max-width:700px){dialog.adopted-modal{width:calc(100vw - 32px);height:50dvh;padding:32px 20px 20px}}


.letter-text{white-space:pre-line;text-align:left}.read-letter{border:0;border-radius:8px;background:#eee5f7;color:#71528f;padding:5px 9px;cursor:pointer;font:inherit}

/* The closed envelope arrives at half-screen size; the opened letter fills the viewport. */
dialog.letter-modal{box-sizing:border-box;width:50vw;max-width:none;max-height:90dvh;padding:40px 0 12px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:auto}
.letter-close{position:absolute;top:4px;right:8px;z-index:2;width:40px;height:40px;border:1px solid #b7dcf1;border-radius:50%;background:#fff;color:#315e7a;font-size:30px;line-height:1;cursor:pointer;box-shadow:0 2px 12px #24415b25}
.letter-envelope{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;padding:0;border:0;background:transparent;color:#fff;font:inherit;font-size:clamp(14px,2vw,22px);cursor:pointer;text-shadow:0 1px 5px #243a58}
.letter-envelope:focus-visible{outline:none}
.letter-envelope:focus-visible .letter-open-hint{outline:2px solid #b7e5ff;outline-offset:4px;border-radius:4px}
.letter-envelope img{display:block;width:100%;max-height:60dvh;object-fit:contain}
.letter-open-hint{font-size:14px}
.letter-envelope[hidden],.letter-paper[hidden]{display:none}
dialog.letter-modal.is-open{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;padding:0;overflow:hidden;display:grid;place-items:center;background:transparent}
.letter-paper{position:relative;width:min(100vw,109.42dvh);aspect-ratio:1312/1199;animation:letter-unfold .3s ease-out}
.letter-paper>img{display:block;width:100%;height:100%}
.letter-writing{position:absolute;top:12%;left:20%;width:64%;height:44%;overflow:auto;color:#55432f;text-align:center;scrollbar-width:thin}
.letter-writing h2{font-size:clamp(16px,2.7vmin,28px);line-height:1.3;margin:0 0 4%}
.letter-writing p{white-space:pre-line;font-size:clamp(14px,2.1vmin,22px);line-height:1.65;color:inherit;margin:0}
.letter-modal.is-open .letter-close{top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right))}
@keyframes letter-unfold{from{opacity:.4;transform:scale(.65)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.letter-paper{animation:none}}

/* Level-three kittens occupy about 82% of an 11%-wide board cell. */
.letter-box{position:static;justify-self:center;width:72px;height:60px;padding:0;border:0;background:transparent;display:grid;place-items:center;touch-action:manipulation}
.letter-box img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;transform:rotate(-2deg);transform-origin:center;pointer-events:none;filter:drop-shadow(0 2px 2px #72483330)}
.letter-box:hover img{filter:drop-shadow(0 3px 4px #72483350)}
.letter-box:focus-visible{outline:2px solid #fff1b3;outline-offset:3px;border-radius:12px}

.game-toolbar{display:grid;grid-template-columns:auto minmax(72px,1fr) auto;align-items:center;gap:12px;flex:1}
.game-toolbar .balances{margin:0;width:auto;justify-content:flex-start}
.game-toolbar .shop-open{margin:0}
@media(max-width:700px){.game-toolbar{flex-basis:100%;grid-template-columns:auto minmax(48px,1fr) auto;gap:6px}.game-toolbar .letter-box{width:48px;height:44px}.game-toolbar .balances{gap:4px}}

.letter-box.has-unread img{animation:mailbox-shake 2s ease-in-out infinite}
@keyframes mailbox-shake{0%,40%,100%{transform:rotate(-2deg)}5%,15%,25%,35%{transform:translateX(-2px) rotate(-6deg)}10%,20%,30%{transform:translateX(2px) rotate(2deg)}}
@media(prefers-reduced-motion:reduce){.letter-box.has-unread img{animation:none;filter:drop-shadow(0 0 5px #e65f86)}}

.board .cell.opening-box{background:transparent;z-index:3;cursor:default}
.board .cell.opening-box>svg.secret-box-art{opacity:1;filter:none}

.opening-box-frames{position:absolute;inset:0;pointer-events:none}
.opening-box-frames>img{position:absolute;left:0;top:1.923%;width:100%;height:96.154%;object-fit:contain;opacity:0}
