@font-face{font-family:"Chiqui Play";src:url("assets/fonts/BalsamiqSans-Regular.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"Chiqui Play";src:url("assets/fonts/BalsamiqSans-Bold.ttf") format("truetype");font-weight:700;font-display:swap}
:root {
  --ink:#543c25;--cream:#fff0cf;--green:#60845c;--serif:'Chiqui Play','Comic Sans MS',cursive;
  --sans:'Chiqui Play','Comic Sans MS',cursive;--dock-clearance:0px;--safe-top:max(16px,env(safe-area-inset-top));--safe-bottom:max(14px,env(safe-area-inset-bottom));
  --dev-menu-height:calc(36px + env(safe-area-inset-top,0px));color-scheme:light
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none}
body{font:14px/1.4 var(--sans);color:var(--ink);background:#455d3b}
button,a,canvas{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
button{border:0;padding:0;font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;background:none}
button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #fff5b9;outline-offset:4px}
[hidden]{display:none!important}
svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.icon-library{position:absolute;width:0;height:0;overflow:hidden}
.preview-workspace{position:fixed;inset:var(--dev-menu-height) 0 0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center;background:#202629}
.game-world{position:relative;min-width:0;min-height:0;overflow:hidden;width:100%;height:100%}
.play-area,.scene{position:absolute;inset:0;width:100%;height:100%}
.device-preview .game-world{transform:scale(var(--preview-scale,1));border-radius:26px;outline:5px solid #41494d;box-shadow:0 12px 50px #0008}
.scene{isolation:isolate;background:#c9b78f url('assets/room.png') center center/cover no-repeat;transition:background-image .25s}
.scene.garden{background-image:url('assets/garden.png')}
.scene.asleep::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:#2d355b44;box-shadow:inset 0 0 150px #1d2d5966}
#game{position:absolute;top:0;left:0;display:block;width:100%;height:calc(100% - var(--dock-clearance));touch-action:none;outline-offset:-4px;z-index:1}
.world-vignette{position:absolute;inset:0;pointer-events:none;z-index:2;box-shadow:inset 0 0 80px #483a3028;background:linear-gradient(#30392425,transparent 19%,transparent 78%,#27372222)}
.hud-icon{display:block;flex-shrink:0;width:54px;height:54px;overflow:hidden;stroke:none;filter:drop-shadow(0 2px 1px #61401e36)}
.icon-food{background-position:0 0}.icon-water{background-position:33.333333% 0}.icon-ball{background-position:66.666667% 0}.icon-heart{background-position:100% 0}
.icon-bed{background-position:0 50%}.icon-wash{background-position:33.333333% 50%}.icon-potty{background-position:66.666667% 50%}.icon-chest{background-position:100% 50%}
.icon-coin{background-position:0 100%}.icon-home{background-position:33.333333% 100%}.icon-garden{background-position:66.666667% 100%}.icon-settings{background-position:100% 100%}
.pet-card{position:absolute;top:var(--safe-top);left:18px;z-index:5;display:flex;align-items:center;gap:10px;width:221px;padding:8px 14px 8px 7px;border:2px solid #ae8050;border-radius:37px 20px 23px 37px;background:radial-gradient(ellipse at 40% 10%,#fff9df,#f3d9a9 87%);box-shadow:0 4px 0 #775330,0 7px 15px #2e291d2f,inset 0 0 0 3px #fff4d0;transform:rotate(-1deg)}
.portrait{width:54px;height:54px;flex-shrink:0;position:relative;overflow:hidden;border:2px solid #c79f66;border-radius:50%;background:radial-gradient(#e6c99d,#d5b27f);box-shadow:inset 0 0 6px #83583555}
.portrait canvas{width:64px;height:64px;position:absolute;bottom:0;left:-5px}
.pet-copy{min-width:0;flex:1;padding:1px 0 2px}
.name-button{display:flex;align-items:center;gap:6px;max-width:100%;font:bold 22px/1.1 var(--serif);text-shadow:0 1px #fffae5}
#pet-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:107px}.rename-mark{font:12px var(--sans);color:#a38358}
.pet-age-line{display:flex;gap:7px;font-size:9px;color:#8b6842;white-space:nowrap;margin:3px 0 5px}
#life-stage{font-weight:700}
.xp-track{height:6px;border:1px solid #a78858;border-radius:8px;background:#d8bf91;overflow:hidden;box-shadow:inset 0 1px 2px #6a4c2920}
#xp-bar{height:100%;background:linear-gradient(#b9cf73,#88a453);border-radius:8px;transition:width .4s}
.level-medal{position:absolute;right:-9px;bottom:-9px;width:32px;height:32px;color:#c48c32;filter:drop-shadow(0 2px 0 #8f6329)}
.level-medal>span{font-size:42px;position:absolute;inset:-12px 0 0 -5px;text-shadow:0 1px #ffe7a7}
.level-medal strong{position:relative;font-size:11px;color:#67431e;line-height:31px}
.world-tools{position:absolute;right:17px;top:var(--safe-top);display:flex;align-items:flex-start;gap:9px;z-index:5}
.store-button{width:62px;height:68px;padding-top:6px;display:grid;place-items:center;transition:transform .16s}
.store-button img{width:62px;height:62px;object-fit:contain}.store-button:hover{transform:rotate(-5deg)}
.store-picture svg{width:100%;height:68px;fill:none;stroke:none}
.toy-chest{position:relative;width:69px;height:110px;margin-right:4px;transition:transform .16s}
.toy-chest>.hud-icon{position:absolute;top:0;left:0;width:68px;height:62px}.toy-chest:hover{transform:rotate(-6deg)}
.coin-count,.gem-count{display:flex;align-items:center;justify-content:center;gap:2px;position:absolute;left:0;right:0;bottom:21px;padding:2px 5px 2px 2px;border-radius:20px;border:2px solid #ad7f42;background:#fff0bd;box-shadow:0 2px 0 #79562c;font-size:11px;font-weight:800}
.gem-count{bottom:0;border-color:#65959b;background:#e4f7f6;box-shadow:0 2px 0 #426b78;padding:0 5px;height:20px;min-height:20px;line-height:1}.gem-count>span:first-child{font-size:14px}
.coin-count .hud-icon{width:20px;height:20px;margin-top:-2px}
.wood-button{display:grid;place-items:center;position:relative;width:42px;height:43px;border:2px solid #a87843;border-radius:16px 14px 17px 13px;background:linear-gradient(135deg,#ffedbb,#e2b97f);color:#795531;box-shadow:0 3px 0 #77522d,inset 0 0 0 2px #ffedb6;transition:transform .15s}
.wood-button:hover{transform:translateY(-2px) rotate(4deg)}.wood-button:active{transform:translateY(3px);box-shadow:inset 0 0 0 2px #ffe7ad}
.wood-button svg{width:21px;height:21px}.wood-button>span:not(.hud-icon):not(.mute-slash){font-size:30px;line-height:1}
.settings-button{border:0;background:none;box-shadow:none;width:47px;height:47px;margin-top:-2px}.settings-button .hud-icon{width:47px;height:47px}
.pet-tag{position:absolute;top:calc(var(--safe-top) + 88px);left:22px;z-index:4;display:flex;align-items:center;gap:7px;max-width:230px;padding:5px 11px;border:1px solid #bc9d69;border-radius:18px;background:#fff1cadb;box-shadow:0 2px 0 #785c3340;color:#6f5938;font-size:10px;font-weight:700;pointer-events:none}
.live-dot{width:6px;height:6px;background:#83a75f;border-radius:50%;box-shadow:0 0 0 2px #a9bf7638}
.room-tabs{position:absolute;right:18px;top:38%;display:flex;flex-direction:column;gap:13px;z-index:5}
.room-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;width:65px;height:75px;position:relative;border:2px solid #b18a52;border-radius:24px 19px 23px 18px;background:linear-gradient(135deg,#fff3d5d9,#ebd5a5eb);box-shadow:0 3px 0 #795b36,inset 0 0 0 3px #fff2cfad;transform:rotate(3deg);transition:.15s}
.room-tab .hud-icon{width:49px;height:49px}.room-tab>span:last-child{font-size:10px;font-weight:bold;margin-top:-3px}
.room-tab.active{border-color:#edf4b9;background:linear-gradient(135deg,#dce6a4ee,#b8c987ed);box-shadow:0 3px 0 #5c783d,inset 0 0 0 2px #f8ffd0;transform:rotate(-4deg)}
.room-tab:hover{transform:scale(1.07)}.room-label{position:absolute;right:20px;top:calc(38% + 182px);z-index:3;color:#fff7d4;font-size:8px;letter-spacing:1.2px;text-shadow:0 1px 4px #42331a;writing-mode:vertical-rl;pointer-events:none;opacity:.8}
.speech{position:absolute;z-index:4;max-width:min(350px,calc(100% - 24px));width:max-content;padding:10px 17px;border:2px solid #bc985e;border-radius:22px 24px 21px 5px;background:#fff6daf5;box-shadow:0 3px 0 #83643b55,0 5px 12px #2d3b2226;color:#6b5734;font-size:12px;font-weight:700;text-align:center;transform:translate(-50%,-8px);opacity:0;pointer-events:none;transition:opacity .18s,transform .18s}
.speech.show{opacity:1;transform:translate(-50%,0)}
.scene-hint{position:absolute;z-index:5;bottom:calc(var(--safe-bottom) + 108px);left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;max-width:calc(100% - 28px);padding:6px 14px;border:1px solid #c6ab73;border-radius:18px;background:#fff2cddd;color:#6a5a35;font-size:10px;text-align:center;box-shadow:0 2px 0 #6a512438;pointer-events:none}
#hint-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#stop-play{pointer-events:auto;flex-shrink:0;border-left:1px solid #bda579;padding-left:10px;font-size:11px;color:#a15a35}
.exit-sign{position:absolute;bottom:calc(var(--safe-bottom) + 17px);left:18px;z-index:5;display:flex;align-items:center;gap:4px;color:#fff3d3;text-shadow:0 2px 3px #392c19;text-decoration:none;font-size:24px}
.exit-sign span{font-size:10px;font-weight:700}.sound-button{position:absolute;right:19px;bottom:calc(var(--safe-bottom) + 16px);z-index:5}
.mute-slash{position:absolute;width:26px;height:2px;background:#8b5736;transform:rotate(-45deg);box-shadow:0 1px #ffdeb0}
.loading{position:absolute;inset:0;z-index:20;background:#d9d5ad;display:flex;align-items:center;justify-content:center;gap:12px;font:22px var(--serif)}
.loading svg{fill:#6e8962;stroke:none;width:30px;height:30px}.loading.hidden{display:none}
.toast{position:absolute;bottom:calc(var(--safe-bottom) + 153px);left:50%;transform:translate(-50%,12px);padding:11px 20px;border:2px solid #d5b77e;border-radius:18px;background:#fff1cefa;color:#75532e;font-size:12px;z-index:50;opacity:0;pointer-events:none;transition:.2s;max-width:calc(100% - 24px);text-align:center;box-shadow:0 4px 0 #7d5d3e66}
.toast.show{opacity:1;transform:translate(-50%,0)}
dialog{color:var(--ink);border:3px solid #aa7d46;border-radius:30px 26px 28px 23px;background:radial-gradient(ellipse at top,#fff8e3,#f1ddaf);width:440px;max-width:min(calc(100% - 28px),calc(var(--stage-width,100vw) - 24px));padding:20px 23px 25px;box-shadow:0 7px 0 #684b2d,inset 0 0 0 4px #fff1cd,0 20px 100px #253f3a55;max-height:min(85dvh,calc(var(--stage-height,100dvh) - 28px));overflow:auto}
dialog::backdrop{background:#1e302855;backdrop-filter:blur(3px)}
.store-modal{width:610px;padding:16px 18px 20px;overflow:hidden;display:flex;flex-direction:column;container-type:inline-size;container-name:chiqui-shop}
.store-modal:not([open]){display:none}.store-modal .modal-top{flex-shrink:0}.store-modal #modal-body{min-height:0;display:flex;flex-direction:column;overflow:hidden}
.store-header h2{margin:5px 0 10px;font-size:30px}.store-wallet{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 12px}.store-wallet>span{background:#fff5d9;border:1px solid #cbb27e;border-radius:15px;padding:5px 12px;font-size:17px}.store-wallet small{font-size:12px}
.store-tabs{display:flex;gap:5px;border-bottom:2px solid #d7bf8e;padding-bottom:7px;flex-shrink:0}.store-tabs button{flex:1;min-height:42px;border:1px solid #b3a474;border-radius:14px;background:#f7edce;font-size:17px}.store-tabs [aria-selected=true]{background:#819e58;color:white;border-color:#667d42;box-shadow:0 3px 0 #596f38}
.store-message{min-height:0;font-size:14px;margin:8px 0;color:#4c6b38}.store-message:empty{margin:4px 0}.store-content{overflow-y:auto;min-height:0;overscroll-behavior:contain;padding:2px 2px 4px;scrollbar-width:thin;scrollbar-color:#b8aa75 #f5e8c6}
.store-categories{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 14px}.store-categories button{border:1px solid #c0a573;border-radius:16px;padding:7px 11px;min-height:36px;background:#fff4d7;font-size:14px}.store-categories [aria-pressed=true]{background:#e1b46a;border-color:#a77935;color:#513b23}
.store-list{display:flex;flex-direction:column;gap:10px}.store-card{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 10px;border:1px solid #d2b786;border-radius:18px;background:#fff7dfb8;min-height:100px}.store-picture{font-size:39px;text-align:center;line-height:1.2}.store-copy h3{margin:0 0 4px;font-size:18px;line-height:1.15}.store-copy p{font-size:13px;margin:0;line-height:1.3}.store-copy small{display:block;margin-top:5px;font-size:12px;color:#687b41}.store-actions{display:flex;flex-direction:column;gap:6px;align-items:stretch}.store-actions button{border-radius:12px;padding:9px 10px;min-height:40px;max-width:106px;background:#88a35f;color:#fffdf0;box-shadow:0 2px 0 #627740;font-size:14px;line-height:1.15}.store-actions .store-use{background:#e5bc75;color:#604322;box-shadow:0 2px 0 #b18a4e}.store-actions button:disabled{background:#e3d9b9;box-shadow:none;color:#6b634b;opacity:1}
.store-test-note{font-size:13px;margin:8px 0 15px}.store-pack-group{margin-bottom:20px}.store-pack-group h3{margin:8px 0 10px;font-size:20px}.store-packs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.store-pack{display:flex;flex-direction:column;align-items:center;padding:14px 3px 10px;border:1px solid #c7b17b;border-radius:18px;background:#fff5d8;box-shadow:0 3px 0 #ccb68a;min-height:145px}.store-pack>span:first-child{font-size:30px}.store-pack strong{font-size:21px;margin-top:7px}.store-pack>span{font-size:13px}.store-pack b{font-size:16px;background:#e5bf7c;border-radius:10px;padding:5px 10px;margin-top:12px}.store-checkout{text-align:center;padding:8px 4px}.store-checkout-icon{font-size:54px}.store-checkout h3{font-size:27px;margin:10px 0}.store-checkout .store-price{font-size:28px;margin:8px 0}.store-price small{font-size:13px}.store-checkout p{font-size:15px}
@media(max-width:600px){.store-card{grid-template-columns:39px minmax(0,1fr) 83px;gap:8px;padding:12px 8px}.store-picture{font-size:30px}.store-copy h3{font-size:16px}.store-copy p{font-size:12px}.store-actions button{font-size:13px;padding:9px 5px}.store-modal{padding:14px 13px 18px}.store-header h2{font-size:27px}.store-packs{gap:6px}.store-pack strong{font-size:19px}.store-pack b{padding:5px 8px}}
@container chiqui-shop (max-width:420px){.store-card{grid-template-columns:39px minmax(0,1fr) 83px;gap:8px;padding:12px 8px}.store-picture{font-size:30px}.store-copy h3{font-size:16px}.store-copy p{font-size:12px}.store-actions button{font-size:13px;padding:9px 5px}.store-header h2{font-size:27px}.store-packs{gap:6px}.store-pack strong{font-size:19px}.store-pack b{padding:5px 8px}}
.modal-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.eyebrow{font-size:9px;font-weight:800;letter-spacing:1.4px;color:#9b7b4b;margin:0 0 8px}.modal-top .eyebrow{margin:0;font-size:8px}
.icon-button{position:relative;display:grid;place-items:center;width:31px;height:31px;border:1px solid #bd9b66;border-radius:50%;background:#f1d8aa;flex-shrink:0}.icon-button svg{width:16px;height:16px}
#modal-body h2{font:bold 29px/1.1 var(--serif);letter-spacing:-.5px;margin:15px 0;color:#69472b}
#modal-body p{color:#8a704a;font-size:12px;line-height:1.7}#modal-body .modal-intro{margin-bottom:18px}
.modal-primary,.modal-secondary{border:2px solid #68824f;border-radius:16px 13px 17px 12px;background:linear-gradient(#9bb16e,#7f9857);color:#fff8dc;box-shadow:0 3px 0 #4d6338,inset 0 0 0 2px #c7d29a66;padding:10px 15px;font-size:12px;font-weight:bold;width:100%;margin-top:13px}
.modal-secondary{border-color:#b79460;background:linear-gradient(#f9e6ba,#e4c697);color:#765333;box-shadow:0 3px 0 #967044,inset 0 0 0 2px #fff4ce66}
.modal-danger{color:#aa6148;font-size:10px;padding:10px;width:100%;margin-top:14px}
.name-input{font:22px var(--serif);border:2px solid #bda174;border-radius:13px;padding:12px 15px;background:#fffae9;color:var(--ink);width:100%;margin-top:10px}
.setting-line{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px dashed #ccb589;padding:12px 0;font-size:12px;color:#927246}.setting-line strong{font-weight:700;color:#76532e;text-align:right}
.help-list{display:flex;flex-direction:column;gap:14px;margin:22px 0}.help-item{display:flex;gap:13px}.help-item>.hud-icon{width:38px;height:38px;margin-top:2px}.help-item strong{font-size:12px}.help-item p{margin:3px 0 0!important;font-size:11px!important}
.toy-card{display:flex;align-items:center;gap:13px;padding:13px;border-radius:19px;border:2px solid #c6a576;background:#f9eac8;margin:12px 0}.toy-picture{width:50px;height:50px;flex-shrink:0}.toy-picture .hud-icon{width:50px;height:50px}.toy-disc{display:block;width:50px;height:50px;background:url('assets/frisbee-spin-v2.png') 3% 12%/470% 600% no-repeat}
.toy-copy{flex:1}.toy-copy strong{font-weight:bold;font-size:13px}.toy-copy p{margin:3px 0 0!important;font-size:10px!important}
.toy-buy{border:1px solid #b49865;background:#e8d5a7;border-radius:10px;padding:7px 10px;font-size:10px;white-space:nowrap}.toy-buy.active{background:#859c5d;color:#fff9dc;border-color:#6b824b}
.confirm-box{background:#ecd0a5;padding:14px;border-radius:12px;font-size:12px;color:#a28060}.import-label{display:block;text-align:center;cursor:pointer}.import-label input{display:none}
.keys{font-size:10px!important;padding:12px;background:#ebdab3;border-radius:12px;line-height:1.8!important}
.journal-level{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin:16px 0 8px}.journal-track{height:9px;overflow:hidden;border:1px solid #b59867;border-radius:9px;background:#d7c396}.journal-track>div{height:100%;background:#8fa55c}
.moments-grid{display:grid;gap:9px;margin:20px 0}.moment{display:flex;align-items:center;gap:10px;padding:12px;border:1px dashed #bfa273;border-radius:15px;background:#fff5d86b}.moment-icon{display:grid;place-items:center;color:#a17e45;width:28px;height:28px;flex-shrink:0}.moment-icon svg{width:22px;height:22px}.moment-info{flex:1}.moment h3{font-size:12px;margin:0 0 3px}.moment p{font-size:10px!important;margin:0!important}.moment-count{font-size:10px;white-space:nowrap}.moment.done{background:#dce2ac77}.moment.done .moment-count svg{width:19px;height:19px;color:#768d4f}

/* A face that fits the portrait, and friendly, easy-to-read storybook lettering. */
.portrait canvas{width:100%;height:100%;left:0;top:0;bottom:auto}
body{font-size:15px}.name-button{font-family:var(--sans);font-size:23px}
.modal-top .eyebrow{font-size:14px;letter-spacing:0;font-weight:700;color:#98764d}
#modal-body h2{font-size:32px;letter-spacing:0;margin:14px 0 12px}
#modal-body p{font-size:15px;line-height:1.5}.modal-primary,.modal-secondary{font-size:16px;min-height:46px}
.setting-line{font-size:15px}.help-item strong{font-size:16px}.help-item p{font-size:14px!important}
.moment h3{font-size:16px}.moment p{font-size:13px!important}.moment-count{font-size:13px}
.journal-level{font-size:15px}.journal-track{height:12px}.eyebrow{font-size:13px;letter-spacing:0}
.toy-copy strong{font-size:16px}.toy-copy p{font-size:13px!important}.toy-buy{font-size:13px;min-height:42px}
.pet-age-line{font-size:11px}.speech{font-size:14px}.scene-hint{display:none}
.scene.playing .scene-hint,.scene.showering .scene-hint{display:flex;bottom:90px;font-size:13px}
.toast{bottom:145px;font-size:14px}.keys{font-size:12px!important}

/* All five needs stay in sight: one picture and a short, chunky bar each. */
.need-hud{position:absolute;top:var(--safe-top);left:50%;transform:translateX(-50%);z-index:5;display:flex;justify-content:center;gap:12px;pointer-events:none}
.need{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:48px;min-height:66px}
.need>.hud-icon{width:43px;height:43px;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;opacity:var(--need-opacity,.34);filter:grayscale(var(--need-gray,1)) brightness(.96) drop-shadow(1px 0 white) drop-shadow(-1px 0 white) drop-shadow(0 1px white) drop-shadow(0 -1px white);transition:filter 1s,opacity 1s}
.need>.hud-icon image{opacity:1;filter:none}
.need>img.hud-icon{object-fit:contain}
.need-track{display:block;width:34px;height:12px;border:2px solid white;border-radius:9px;background:#e4d3ad;overflow:hidden;box-shadow:inset 0 2px 2px #72542b24,0 1px 3px #66472c88;opacity:var(--need-opacity,.34);transition:opacity 1s}
.need-track>span{display:block;height:100%;border-radius:8px;background:linear-gradient(#bdd17b,#7ea153);transition:width .5s}
.need[data-need=water] .need-track>span{background:linear-gradient(#a6dfdb,#5bafbc)}
.need[data-need=happiness] .need-track>span{background:linear-gradient(#efb8a5,#d77b72)}
.need[data-need=energy] .need-track>span{background:linear-gradient(#d5bee3,#a289bf)}
.need[data-need=cleanliness] .need-track>span{background:linear-gradient(#cbdc9f,#97ac65)}

/* Invisible accessible hit areas sit on the bowls, bed, and shower tray. */
.room-stations{position:absolute;inset:0;pointer-events:none;z-index:3}
.station-hit{position:absolute;height:44px;min-width:48px;border-radius:50%;transform:translate(-50%,-50%);pointer-events:auto;cursor:pointer}
.station-hit:focus-visible{outline:3px dashed #fff1a0;outline-offset:4px;background:#fff1a02b}
.floor-toy{position:absolute;left:50%;top:94%;width:54px;height:54px;transform:translate(-50%,-50%);pointer-events:auto;border-radius:50%;filter:drop-shadow(0 5px 2px #5f49233b)}
.floor-toy .hud-icon{width:54px;height:54px}.floor-toy:hover{filter:drop-shadow(0 0 10px #fff0a6)}
.room-stations.throwing .station-hit{pointer-events:none}

/* The developer file menu is separate from the child's play space. */
.dev-menubar{position:fixed;inset:0 0 auto;height:var(--dev-menu-height);padding:env(safe-area-inset-top,0px) max(12px,env(safe-area-inset-right,0px)) 0 max(12px,env(safe-area-inset-left,0px));z-index:100;display:flex;align-items:center;gap:18px;background:#2e3538;border-bottom:1px solid #ffffff14;color:#e6ece8;font:14px/1.2 var(--sans);user-select:none}
.dev-outfit{display:flex;align-items:center;gap:6px;white-space:nowrap}.dev-outfit select{max-width:110px;border:1px solid #64726c;border-radius:5px;background:#3b4740;color:#f7f5dc;font:inherit;padding:3px 5px}.setting-line select{font:inherit;min-height:40px;max-width:180px;border:1px solid #ad8d58;border-radius:10px;padding:5px 9px;background:#fff0cd;color:var(--ink)}
.native-touch{--dev-menu-height:0px}.native-touch .dev-menubar{display:none}
.dev-brand{font-weight:700;white-space:nowrap}.dev-brand>span{margin-left:5px;font-size:11px;font-weight:400;color:#aebbb4}
.dev-menu{position:relative;align-self:stretch;display:flex;align-items:center}.dev-menu-button{height:28px;padding:0 12px;border-radius:5px;color:#e6ece8;font-size:14px}
.dev-menu-button:hover,.dev-menu-button[aria-expanded=true]{background:#ffffff13}
.dev-dropdown{position:absolute;top:calc(100% + 4px);left:0;width:240px;padding:5px;border:1px solid #596364;border-radius:8px;background:#333d40;box-shadow:0 8px 24px #0006;z-index:110}
.dev-dropdown>button{display:grid;grid-template-columns:18px 1fr auto;align-items:center;gap:8px;width:100%;min-height:44px;padding:0 10px;border-radius:5px;text-align:left;font-size:15px;color:#edf3ef}
.dev-dropdown>button:hover,.dev-dropdown>button:focus-visible{background:#536a60;outline:none}.dev-dropdown small{color:#afbbb7;font-size:12px}
.view-check{color:#b7d7a8;visibility:hidden}.dev-dropdown [aria-checked=true] .view-check{visibility:visible}
.preview-status{margin-left:auto;display:flex;gap:12px;align-items:center;font-size:12px;color:#c6d4cc;white-space:nowrap}#preview-size{font-size:11px;color:#93a49f;font-variant-numeric:tabular-nums}

.game-world.touch-layout{--safe-top:12px;--safe-bottom:max(12px,env(safe-area-inset-bottom,0px));--dock-clearance:0px}
.touch-layout .pet-card{top:var(--safe-top);left:14px;width:176px;height:64px;padding:6px 12px 6px 5px;gap:7px;border-radius:29px 18px 21px 29px;transform:none}
.touch-layout .portrait{width:46px;height:46px}.touch-layout .name-button{font-size:20px;gap:4px}.touch-layout #pet-name{max-width:79px}.touch-layout .rename-mark{font-size:10px}
.touch-layout .floor-toy{left:72%}
.touch-layout .pet-age-line{font-size:10px;gap:5px;margin:2px 0 5px}.touch-layout .xp-track{height:5px}.touch-layout .level-medal{right:-9px;bottom:-7px;transform:none}
.touch-layout .world-tools{top:var(--safe-top);right:12px;gap:8px;align-items:flex-start}
.touch-layout .store-button{width:48px;height:48px;padding-top:4px}.touch-layout .store-button img{width:44px;height:44px}
.touch-layout .toy-chest{width:50px;height:86px;margin:0}.touch-layout .toy-chest>.hud-icon{width:50px;height:44px}
.touch-layout .coin-count{font-size:11px;padding:0 3px 0 0}.touch-layout .coin-count .hud-icon{width:16px;height:16px}
.touch-layout .settings-button{width:44px;height:44px;margin:0}.touch-layout .settings-button .hud-icon{width:44px;height:44px}
.touch-layout #help-btn,.touch-layout #fullscreen-btn,.touch-layout .pet-tag,.touch-layout .room-label,.touch-layout .exit-sign,.touch-layout .sound-button{display:none}
.touch-layout .need-hud{top:98px;left:50%;right:auto;gap:12px;width:calc(100% - 40px);max-width:330px;transform:translateX(-50%)}
.touch-layout .room-tabs{top:auto;bottom:var(--safe-bottom);left:14px;right:auto;gap:2px;flex-direction:row;width:180px;height:50px;padding:2px;border:1px solid #af8b54;border-radius:25px;background:#fff0d4e8;box-shadow:0 2px 0 #76522a44;z-index:5}
.touch-layout .room-tab{flex:1;flex-direction:row;gap:5px;width:auto;height:44px;border:0;border-radius:22px;background:none;box-shadow:none;transform:none}
.touch-layout .room-tab .hud-icon{width:24px;height:26px}.touch-layout .room-tab>span:last-child{margin:0;font-size:13px}
.touch-layout .room-tab.active{background:#d5dfa3;box-shadow:inset 0 0 0 1px #a8bc7c;color:#4e6433}
.touch-layout .speech{font-size:14px;padding:8px 12px;border-radius:18px 20px 17px 4px}
.touch-layout .toast{bottom:140px;width:max-content;font-size:14px;padding:9px 14px}.touch-layout .scene-hint{max-width:calc(100% - 24px);padding:6px 12px}
.touch-layout #stop-play{font-size:14px;padding-left:8px}
[data-layout=tablet].touch-layout{--safe-top:18px;--safe-bottom:max(18px,env(safe-area-inset-bottom,0px))}
[data-layout=tablet] .pet-card{left:20px;width:210px;height:76px}[data-layout=tablet] .portrait{width:54px;height:54px}[data-layout=tablet] .name-button{font-size:23px}[data-layout=tablet] #pet-name{max-width:95px}
[data-layout=tablet] .world-tools{top:calc(var(--safe-top) + 88px);right:20px;gap:14px}[data-layout=tablet] .toy-chest{width:57px;height:90px}[data-layout=tablet] .toy-chest>.hud-icon{width:57px;height:48px}
[data-layout=tablet] .pet-card{top:calc(var(--safe-top) + 88px)}
[data-layout=tablet] .need-hud{top:var(--safe-top);max-width:400px;gap:24px}[data-layout=tablet] .need>.hud-icon{width:50px;height:50px}[data-layout=tablet] .need-track{width:38px;height:13px}
[data-layout=tablet] .room-tabs{left:20px;width:200px}

@media(max-width:1000px){[data-layout=pc] .need-hud{top:108px}}
@media(max-width:420px){.dev-menubar{gap:10px}.preview-status{gap:7px}.dev-brand>span{display:none}.dev-dropdown{left:-40px}}
.touch-layout.short-touch{--safe-top:8px;--safe-bottom:8px}
.short-touch .pet-card{top:8px;left:10px;height:54px;width:164px}.short-touch .portrait{width:39px;height:39px}.short-touch .world-tools{top:8px;right:10px}
.short-touch .need-hud{top:12px;max-width:280px;gap:8px}.short-touch .need>.hud-icon{width:34px;height:34px}.short-touch .room-tabs{left:10px;height:46px}.short-touch .room-tab{height:40px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.subscription-plans{display:grid;gap:12px}.subscription-plan{padding:16px;border:2px solid #c7ae79;border-radius:18px;background:#fff6dc}.subscription-plan h3{margin:0 0 8px;font-size:23px}.subscription-plan p{margin:6px 0}.subscription-plan button{margin-top:10px}.subscription-plan.featured{border-color:#8aa562;background:#f4f3d6}.subscription-plan strong{font-size:22px}.subscription-note{font-size:13px}
#ad-modal{padding:15px;width:410px;background:#17222b;color:white;border-color:white;max-height:min(90dvh,calc(var(--stage-height,100dvh) - 20px));overflow:hidden}#ad-modal .ad-top{display:flex;align-items:center;gap:8px;min-height:42px;margin-bottom:10px}#ad-title{font-size:14px;margin-right:auto}#ad-countdown{font-size:12px;color:#d8e8eb}#ad-modal>img{display:block;width:100%;height:min(64dvh,calc(var(--stage-height,100dvh) - 150px));object-fit:contain;background:#0d141b;border-radius:10px}#ad-modal>p{font-size:12px;margin:10px 0 0;text-align:center;color:#beced3}#ad-close{display:grid;place-items:center;width:38px;height:38px;font-size:32px;line-height:1;color:#263e39;background:white;border-radius:50%;animation:ad-close-pop .75s ease-in-out infinite alternate}#ad-modal::backdrop{background:#101c24d9;backdrop-filter:blur(5px)}@keyframes ad-close-pop{from{transform:scale(.9);box-shadow:0 0 0 0 #9bd7ad88}to{transform:scale(1);box-shadow:0 0 0 5px #9bd7ad22}}

/* Wallet above its two labelled tools; labels never overlap the artwork. */
.world-tools,.touch-layout .world-tools,[data-layout=tablet] .world-tools{display:grid;grid-template-columns:56px 56px 44px;grid-template-rows:22px 74px;column-gap:8px;row-gap:4px;align-items:start;right:12px}
.world-tools>.coin-count,.world-tools>.gem-count{position:static;display:flex;height:21px;min-height:21px;margin:0;padding:0 3px;border:2px solid white;font-size:10px;line-height:1;gap:2px;box-shadow:0 1px 2px #503e3477}
.world-tools>.coin-count{grid-column:1;grid-row:1}.world-tools>.gem-count{grid-column:2;grid-row:1}.world-tools>.coin-count .hud-icon{width:14px;height:14px;margin:0}.world-tools>.gem-count>span:first-child{font-size:13px}
.store-button,.toy-chest,.touch-layout .store-button,.touch-layout .toy-chest,[data-layout=tablet] .toy-chest{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:56px;height:74px;margin:0;padding:0;gap:3px;transform:none}
.store-button{grid-column:1;grid-row:2}.toy-chest{grid-column:2;grid-row:2}.tool-icon{display:grid;place-items:center;width:52px;height:52px;border:0;background:none;box-shadow:none}
.tool-icon img,.tool-icon .hud-icon{overflow:visible;filter:drop-shadow(1px 0 white) drop-shadow(-1px 0 white) drop-shadow(0 1px white) drop-shadow(0 -1px white) drop-shadow(0 2px 2px #61401e66)}
.tool-icon img,.touch-layout .store-button img{width:46px;height:46px;object-fit:contain}.tool-icon .hud-icon,.touch-layout .toy-chest .tool-icon .hud-icon,[data-layout=tablet] .toy-chest .tool-icon .hud-icon{position:static;width:46px;height:46px}
.store-button strong,.toy-chest strong{font-size:13px;line-height:17px;color:#62482f;background:#fff4d7;border:1px solid white;border-radius:8px;padding:0 7px}
.world-tools>.settings-button{grid-column:3;grid-row:2}.touch-layout .need-hud{top:118px}[data-layout=tablet] .need-hud{top:12px;max-width:330px;gap:12px}[data-layout=tablet] .need>.hud-icon{width:43px;height:43px}[data-layout=tablet] .need-track{width:34px;height:12px}
[data-layout=tablet] .pet-card{top:100px;left:14px;width:176px;height:64px;gap:7px;padding:6px 12px 6px 5px}[data-layout=tablet] .portrait{width:46px;height:46px}[data-layout=tablet] .name-button{font-size:20px}[data-layout=tablet] #pet-name{max-width:79px}[data-layout=tablet] .world-tools{top:100px}
.need.empty>.hud-icon,.need.empty>.need-track{animation:empty-need 6.2s ease-in-out infinite}@keyframes empty-need{0%,18%,100%{transform:scale(1)}9%{transform:scale(1.13)}}
@media(prefers-reduced-motion:reduce){.need.empty>.hud-icon,.need.empty>.need-track{animation:none;box-shadow:0 0 5px #fff3b8}}
.dev-menu-heading{padding:10px 10px 5px;color:#c3d0c5;font-size:11px;border-top:1px solid #ffffff22;margin-top:5px}.room-stations.care-in-progress .station-hit{pointer-events:none}

/* Wide screens share one header row; the phone keeps its compact layout. */
.top-hud{display:contents}
[data-layout=pc] .top-hud,[data-layout=tablet] .top-hud{position:absolute;top:var(--safe-top);left:18px;right:18px;z-index:5;display:grid;grid-template-columns:221px minmax(0,1fr) max-content;gap:16px;align-items:start;pointer-events:none}
[data-layout=pc] .top-hud>.pet-card,[data-layout=tablet] .top-hud>.pet-card{position:relative;top:auto;left:auto;margin-top:15px;transform:none;pointer-events:auto}
[data-layout=pc] .top-hud>.need-hud,[data-layout=tablet] .top-hud>.need-hud{position:relative;top:auto;left:auto;right:auto;transform:none;width:auto;max-width:none;min-width:0;margin-top:30px;gap:12px;align-self:start}
[data-layout=pc] .top-hud>.world-tools,[data-layout=tablet] .top-hud>.world-tools{position:relative;top:auto;right:auto;grid-template-columns:56px 56px 42px 42px 44px;grid-template-rows:22px 74px;pointer-events:auto}
[data-layout=pc] .top-hud .settings-button{grid-column:5;grid-row:2;margin-top:4px}
[data-layout=pc] .top-hud #help-btn{grid-column:3;grid-row:2;margin-top:4px}
[data-layout=pc] .top-hud #fullscreen-btn{grid-column:4;grid-row:2;margin-top:4px}
[data-layout=pc] .pet-tag{top:calc(var(--safe-top) + 108px)}
[data-layout=tablet] .top-hud{grid-template-columns:176px minmax(0,1fr) max-content;gap:14px;left:14px;right:14px}
[data-layout=tablet] .top-hud>.pet-card{margin-top:21px}
[data-layout=tablet] .top-hud>.world-tools{grid-template-columns:56px 56px 44px}
[data-layout=tablet] .top-hud .settings-button{grid-column:3;grid-row:2;margin-top:4px}
[data-layout=tablet] .top-hud>.need-hud{gap:10px}
.world-map-symbol{font-size:35px;line-height:1}.touch-layout .world-map-symbol{font-size:24px}.touch-layout .room-tabs{width:250px}.room-label{top:calc(38% + 270px)}
