@font-face{font-family:NeighborHand;src:url('assets/novoselye-display.ttf') format('truetype');font-weight:800;font-display:swap}@font-face{font-family:NeighborText;src:url('assets/text.ttf') format('truetype');font-weight:400;font-display:swap}@font-face{font-family:NeighborText;src:url('assets/text-bold.ttf') format('truetype');font-weight:700;font-display:swap}
:root{--ink:#46291e;--paper:#fff0c8;--red:#cf533b;--sky:#70aacf;--yellow:#eeb853;--green:#509987;--purple:#8a67a5;--text:'NeighborText',sans-serif;--display:'NeighborHand',sans-serif}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--sky);font:13px var(--text);overflow-x:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #f2b641;outline-offset:5px}a{color:inherit;text-decoration:none}button{touch-action:manipulation}.sky{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:linear-gradient(180deg,#76b1d5,#659dc6)}.sky i{position:absolute;background:#d1d6cf;border-radius:49% 62% 50% 43%;width:480px;height:200px;box-shadow:90px -55px 0 25px #d1d6cf,-60px -45px 0 5px #d1d6cf;opacity:.85;animation:cloud-drift 70s ease-in-out infinite alternate}.sky i:nth-child(1){top:50px;left:-220px;transform:rotate(-18deg)}.sky i:nth-child(2){top:290px;right:-280px;transform:rotate(40deg);animation-delay:-24s}.sky i:nth-child(3){top:750px;left:-300px;transform:rotate(-34deg);animation-delay:-45s}.sky i:nth-child(4){top:1150px;right:-200px;animation-delay:-12s}.sky i:nth-child(5){top:-130px;left:55%;width:600px}.topbar{max-width:1440px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:24px 4% 5px}.brand{display:flex;align-items:center;gap:10px;font:800 21px var(--display);transform:rotate(-3deg)}.brand svg{width:36px;height:39px;fill:var(--paper);stroke:var(--ink);stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}.brand small{display:block;font:10px var(--text);margin-top:3px}.topbar nav{display:flex;gap:12px}.topbar button{background:var(--paper);border:2px solid var(--ink);border-radius:45% 5% 15% 4% / 8% 10% 8% 12%;padding:9px 15px;font-size:10px;box-shadow:2px 3px 0 #46291e}.topbar button:hover{transform:rotate(-3deg)}#sound.on{background:#ead071}main{max-width:1440px;padding:0 4%;margin:auto}.intro{position:relative;text-align:center;padding:28px 0 32px}.eyebrow{font-size:9px;letter-spacing:1.4px;font-weight:700}.intro>.eyebrow{margin:0 0 10px}.intro h1{font:800 clamp(36px,4.55vw,67px)/.97 var(--display);letter-spacing:-2.3px;margin:8px 0 18px;transform:rotate(-1.4deg);text-shadow:2px 2px 0 #fff1ca55}.intro h1>span{font-size:.55em;letter-spacing:0;display:inline-block;margin-bottom:5px}.subtitle{display:flex;align-items:center;gap:18px;justify-content:center}.scribble{display:inline-block;padding:7px 12px 8px;background:var(--paper);font:800 14px var(--display);transform:rotate(-4deg);border:2px solid var(--ink);border-radius:3% 4% 6% 3%;box-shadow:3px 3px 0 #4b2d1f}.subtitle p{font-size:11px;max-width:250px;text-align:left;line-height:1.7;margin:0}.intro-doodle{position:absolute;left:5%;top:40px;transform:rotate(-9deg);font:800 33px var(--display);line-height:1.2}.intro-doodle span,.intro-doodle b{display:block}.intro-doodle b{font-size:23px}.intro-doodle svg{display:block;stroke:var(--ink);fill:none;stroke-width:3;width:80px;height:44px}.tiny-star{position:absolute;right:10%;top:70px;font-size:63px;color:#efc254;transform:rotate(12deg);text-shadow:2px 2px var(--ink)}
.game-shell{position:relative;border:4px solid var(--ink);border-radius:16px 10px 19px 9px / 10px 18px 8px 17px;background:var(--paper);box-shadow:7px 9px 0 #46291e40;overflow:hidden}.game-toolbar{height:64px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 19px;border-bottom:3px solid var(--ink);background:#ffedc1}.episode{font-size:9px;font-weight:700;letter-spacing:.7px;display:flex;align-items:center;gap:8px}.live-dot{width:7px;height:7px;background:var(--red);border-radius:50%;box-shadow:0 0 0 4px #cf533b18}.level-tabs{display:flex;gap:7px}.level-tabs button{font:800 11px var(--display);background:none;border:2px solid transparent;padding:9px 12px;border-radius:3px 8px 3px 5px;transition:transform .15s}.level-tabs button.active{color:var(--paper);background:var(--ink);transform:rotate(-2deg)}.level-tabs button.locked{opacity:.42}.level-tabs button:hover{transform:rotate(2deg)}.level-tabs button span{margin-left:5px}.toolbar-tools{display:flex;gap:8px}.toolbar-tools button{background:#f7d577;border:2px solid var(--ink);border-radius:40% 50% 45% 40%;width:29px;height:29px;font-size:17px;font-weight:700;line-height:1}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 253px}.scene-wrap{position:relative;aspect-ratio:1120/650;min-width:0;background:#fff0c8;overflow:hidden}.canvas-scroll{width:100%;height:100%;overflow:auto;scrollbar-width:thin;scrollbar-color:#9e603d #ffedc1}canvas{display:block;width:100%;height:100%;touch-action:manipulation}.scene-top,.scene-bottom{position:absolute;left:13px;right:13px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}.scene-top{top:11px}.scene-top>span{background:var(--paper);border:1.5px solid var(--ink);border-radius:2px 5px 3px 4px;padding:6px 9px;font-size:7px;font-weight:700;letter-spacing:.8px;transform:rotate(-1deg)}.scene-controls{display:flex;gap:6px;pointer-events:auto}.scene-controls button{background:var(--paper);border:1.5px solid var(--ink);border-radius:3px 6px 2px 4px;height:27px;font-size:8px;font-weight:700;padding:0 9px}.scene-controls button[hidden]{display:none}.scene-bottom{bottom:10px;font-size:8px}.scene-bottom>span{background:var(--paper);padding:5px 9px;border:1.5px solid var(--ink);border-radius:3px;transform:rotate(-1deg)}.scene-bottom>span:empty{display:none}.scene-wrap.zoomed{aspect-ratio:auto;height:572px}.scene-wrap.zoomed canvas{width:986px;height:572px;max-width:none;touch-action:pan-x pan-y}.scene-wrap.zoomed .canvas-scroll{touch-action:pan-x pan-y}.scene-wrap.zoomed:after{content:'↔ Двигай дом, чтобы осмотреться';position:absolute;left:14px;top:46px;font-size:8px;background:#fff0c8d9;padding:5px 8px;pointer-events:none;border-radius:3px}.sidebar{padding:22px 19px 16px;background:#ffefca;border-left:3px solid var(--ink);display:flex;flex-direction:column;background-image:repeating-linear-gradient(0deg,transparent,transparent 25px,#c4ad7230 25px,#c4ad7230 26px)}.side-heading{display:flex;justify-content:space-between;font-size:8px;font-weight:700;letter-spacing:1px}.side-heading>span:last-child{font:800 13px var(--display)}.sidebar h3{font:800 23px/1.1 var(--display);letter-spacing:-.5px;margin:13px 0 9px;text-transform:uppercase;transform:rotate(-1deg)}.sidebar>p{font-size:10px;line-height:1.65;margin:0 0 10px;color:#795c45}.missions{display:grid;gap:4px}.mission{display:flex;gap:9px;padding:8px 0;border-bottom:1px dashed #b28b65;align-items:flex-start;font-size:10px;line-height:1.45;transition:opacity .25s}.mission-icon{min-width:21px;height:22px;border:1.7px solid var(--ink);display:grid;place-items:center;background:#f3d477;transform:rotate(-4deg);border-radius:45% 43% 38% 45%;font:800 12px var(--display)}.mission small{display:block;margin-top:3px;color:#90704e;font-size:8px}.mission.armed .mission-icon{background:#dea7bc}.mission.done .mission-icon{background:#8dbfa2;animation:mission-stamp .35s ease-out}.mission.done{color:#4a7a60}.neighbor-card{display:flex;align-items:center;gap:10px;margin-top:16px}.neighbor-face{width:38px;height:42px;flex-shrink:0;stroke:var(--ink);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.neighbor-card small{display:block;font-size:7px;letter-spacing:.6px;margin-bottom:4px}.neighbor-card b{font-size:9px;font-weight:400}.suspicion{height:7px;border:1.5px solid var(--ink);border-radius:5px;margin:7px 0;background:#ead7a7;overflow:hidden}.suspicion>div{height:100%;width:0;background:var(--red);transition:width .1s}.lives-row{display:flex;align-items:center;justify-content:space-between;font-size:9px;margin-bottom:13px}.lives-row b{font-size:13px;letter-spacing:4px;color:var(--red)}.secondary,.hide-button{border:2px solid var(--ink);border-radius:4px 7px 3px 6px;padding:9px 8px;font-size:10px;background:var(--paper);box-shadow:2px 2px 0 #46291e}.secondary:hover,.hide-button:hover{transform:translate(-1px,-1px)}.hide-button{background:#b3cfb7;margin-top:8px}.hide-button.hiding{background:var(--ink);color:var(--paper)}.side-bottom{margin-top:auto;padding-top:15px;display:flex;justify-content:space-between;align-items:center;font-size:10px}.side-bottom>span{font-weight:700}.side-bottom button{border:0;background:none;padding:3px;font-size:9px}.inventory{display:flex;align-items:center;gap:20px;padding:16px 20px;border-top:3px solid var(--ink);background:#ffedc1}.inventory-label{font:800 12px var(--display);max-width:170px;line-height:1.5;transform:rotate(-2deg)}.inventory-label span{display:block;font:9px/1.6 var(--text);margin-top:4px;color:#826244}.inventory-slots{display:flex;gap:10px}.slot{width:63px;height:65px;border:2px dashed #b08e65;border-radius:5px 8px 6px 10px;background:#f0dfb6;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px;transform:rotate(-2deg);transition:transform .2s,background .2s}.slot:nth-child(2){transform:rotate(3deg)}.slot:nth-child(3){transform:rotate(-3deg)}.slot.has-item{border:2px solid var(--ink);background:#fff6dc;box-shadow:2px 3px 0 #b7905f}.slot.selected{background:#f6cb64;transform:translateY(-5px) rotate(-5deg);outline:2px solid var(--red);outline-offset:3px}.slot.used{opacity:.4;box-shadow:none}.slot svg{height:35px;width:42px;overflow:visible}.slot.empty{font-size:23px;color:#b39363}.slot small{font-size:7px;margin-top:4px}.message{font-size:10px;line-height:1.75;margin-left:auto;max-width:345px;padding-left:18px;border-left:2px dashed #c4a276;min-height:42px;display:flex;align-items:center;color:#79573f}.under-game{display:flex;justify-content:space-between;align-items:center;padding:17px 3px;font-size:9px;font-weight:700;gap:10px}.under-game i{font-style:normal;margin:0 8px}.under-game b{font:800 16px var(--display)}kbd{font:inherit;background:#fff0c8a8;border:1px solid #745339;padding:3px 5px;border-radius:3px}.accessible-actions{font-size:10px;margin-bottom:18px}.accessible-actions summary{cursor:pointer;width:fit-content}.accessible-actions>div{display:flex;flex-wrap:wrap;gap:7px;padding-top:15px}.accessible-actions button{font-size:10px;border:1.5px solid var(--ink);background:var(--paper);border-radius:4px;padding:10px}.event-note{display:flex;align-items:center;position:relative;gap:35px;border:3px solid var(--ink);border-radius:5px 12px 8px 15px;background:var(--paper);padding:28px 35px;margin:26px 0 0;box-shadow:4px 5px 0 #46291e35}.event-note h2{font:800 29px/1.1 var(--display);transform:rotate(-1deg);margin:12px 0}.event-note p{font-size:11px;line-height:1.7;margin:0}.event-details{display:flex;flex-wrap:wrap;gap:8px 17px;margin-top:14px;font-size:10px}.event-details button{border:0;border-bottom:1px solid var(--ink);background:transparent;padding:0;font-size:10px}.event-ticket{background:#dfb4bf;transform:rotate(-6deg);padding:17px 20px;border:2px dashed var(--ink);flex-shrink:0}.event-ticket>span{font-size:8px;letter-spacing:.4px}.event-ticket b{display:block;font:800 22px/1.3 var(--display);margin:8px 0}.event-ticket i{font-size:10px}.event-plant{margin-left:auto;width:79px;height:115px;fill:none;stroke:var(--ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;transform-origin:center bottom;animation:plant-dance 7s ease-in-out infinite}footer{max-width:1440px;padding:25px 4% 30px;margin:auto;display:flex;justify-content:space-between;font-size:8px;letter-spacing:.6px}.overlay{position:absolute;inset:0;z-index:4;display:grid;place-items:center;background:#442a2040;backdrop-filter:blur(1.5px);padding:18px}.overlay[hidden]{display:none}.welcome{position:relative;max-width:100%;width:370px;text-align:center;background:#fff0ce;border:3px solid var(--ink);border-radius:9px 4px 16px 5px;padding:22px 30px;box-shadow:6px 7px 0 #442a2045;transform:rotate(-2deg);animation:paper-in .4s cubic-bezier(.2,.8,.2,1.2)}.welcome:before{content:'';position:absolute;top:-9px;left:41%;width:63px;height:19px;background:#dbb974b3;transform:rotate(5deg)}.welcome-doodle{height:58px}.welcome-doodle svg{height:67px;width:90px;stroke:var(--ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;transform:rotate(4deg)}.welcome-number{font-size:8px;letter-spacing:1.8px;margin-top:6px}.welcome h2{font:800 33px/1.07 var(--display);margin:14px 0 13px;transform:rotate(1deg);letter-spacing:-.7px}.welcome p{font-size:10px;line-height:1.8;color:#79573f;margin:0 0 18px}.primary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 17px;background:var(--red);border:2px solid var(--ink);border-radius:4px 6px 7px 4px;box-shadow:3px 4px 0 var(--ink);color:var(--paper);width:100%;font:800 15px var(--display);transition:transform .15s,box-shadow .15s}.primary:hover{transform:translate(-1px,-2px) rotate(1deg);box-shadow:4px 6px 0 var(--ink)}.primary:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}.primary span{font:24px var(--text)}.welcome-meta{font-size:6px;letter-spacing:.6px;margin-top:18px;line-height:1.7}.welcome-meta i{font-style:normal;margin:0 4px}.stamp{position:absolute;right:-14px;top:24px;background:#a7c9ac;border:2px solid var(--ink);transform:rotate(12deg);padding:7px;font:800 9px var(--display)}.welcome .stars{font-size:26px;letter-spacing:5px;color:#c78325;margin:8px 0 16px;text-shadow:1px 1px var(--ink)}.result-mark{font-size:31px;color:var(--red)}.result-actions{display:grid;gap:11px}.bubble{display:none;position:absolute;z-index:3;padding:12px 16px;border:2.5px solid var(--ink);border-radius:47% 35% 41% 8% / 19% 23% 18% 17%;background:#fff7dc;max-width:280px;font-size:12px;line-height:1.5;pointer-events:none;box-shadow:3px 4px 0 #46291e22;transform:translate(-50%,-100%) rotate(-3deg);animation:bubble-in .25s ease-out}.bubble:after{content:'';position:absolute;left:32%;bottom:-9px;width:12px;height:13px;background:#fff7dc;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:skew(-20deg) rotate(20deg)}dialog{color:var(--ink);background:var(--paper);border:3px solid var(--ink);border-radius:8px 15px 7px 11px;max-width:540px;width:calc(100% - 30px);padding:30px;box-shadow:8px 10px 0 #46291e44}dialog::backdrop{background:#46291e88;backdrop-filter:blur(4px)}dialog h2{font:800 28px var(--display);margin:17px 0}dialog li{font-size:12px;line-height:1.7;margin-bottom:12px}dialog ol{padding-left:20px}dialog p{font-size:10px;line-height:1.8;color:#805e43}.close-dialog{position:absolute;right:10px;top:5px;font-size:29px;border:0;background:transparent;z-index:2}#posterDialog{padding:0;width:min(500px,90vw);max-height:92dvh;overflow:auto;background:#72aacc}#posterDialog img{width:100%;display:block}#posterDialog .close-dialog{position:sticky;top:7px;float:right;margin:7px 7px -43px 0;background:var(--paper);width:34px;height:34px;line-height:25px;border:2px solid var(--ink);border-radius:50%}
@keyframes cloud-drift{to{translate:55px 25px}}@keyframes plant-dance{50%{transform:rotate(5deg)}}@keyframes paper-in{from{opacity:0;transform:translateY(18px) rotate(4deg) scale(.95)}}@keyframes mission-stamp{0%{transform:scale(1.6) rotate(-15deg)}100%{transform:scale(1) rotate(-4deg)}}@keyframes bubble-in{from{opacity:0;translate:0 6px}}
@media(min-width:1450px){.sidebar{padding:26px 22px}.sidebar h3{font-size:25px}.mission{padding:11px 0;font-size:11px}.sidebar>p{font-size:11px}.neighbor-card{margin-top:20px}}@media(max-width:1080px){.play-layout{grid-template-columns:minmax(0,1fr) 213px}.sidebar{padding:15px}.sidebar h3{font-size:19px}.sidebar>p{font-size:9px}.mission{font-size:9px;padding:6px 0}.neighbor-card{margin-top:8px}.lives-row{margin-bottom:7px}.secondary,.hide-button{font-size:9px;padding:8px 6px}.side-bottom{padding-top:10px}.welcome{width:330px;padding:17px 25px}.welcome h2{font-size:29px}.welcome-doodle{height:42px}.welcome-doodle svg{height:50px}.welcome p{margin-bottom:14px}.intro-doodle{left:2%}.tiny-star{right:5%}.message{font-size:9px}.level-tabs button{padding:8px}.event-note h2{font-size:25px}}
@media(max-width:760px){.topbar{padding:16px 4% 0}.brand{font-size:17px;gap:6px}.brand small{font-size:7px}.brand svg{width:28px;height:32px}.topbar nav{gap:7px}.topbar button{padding:7px 9px;font-size:8px;box-shadow:1px 2px 0 var(--ink)}.intro{padding:24px 0 25px}.intro>.eyebrow{font-size:7px;letter-spacing:1px}.intro h1{font-size:44px;line-height:.98;letter-spacing:-1.5px;margin:8px 0 16px}.subtitle{gap:10px;flex-direction:column}.scribble{font-size:12px;padding:6px 11px}.subtitle p{font-size:9px;text-align:center;max-width:280px}.intro-doodle{left:0;top:65px;font-size:17px;transform:rotate(-11deg)}.intro-doodle b{font-size:13px}.intro-doodle svg{width:40px;height:29px}.tiny-star{font-size:30px;right:0;top:75px}.game-shell{border-width:3px;box-shadow:4px 5px 0 #46291e40}.game-toolbar{height:52px;padding:0 10px;border-width:2px;gap:5px}.episode{font-size:7px;letter-spacing:0;gap:5px}.live-dot{width:5px;height:5px;box-shadow:none}.level-tabs{gap:2px}.level-tabs button{font-size:11px;padding:7px 8px}.level-tabs button span{display:none}.toolbar-tools{gap:6px}.toolbar-tools button{width:26px;height:26px;font-size:16px}.play-layout{display:flex;flex-direction:column}.scene-wrap{aspect-ratio:1120/715}.scene-top{left:8px;right:8px;top:7px}.scene-top>span{max-width:145px;font-size:5.5px;line-height:1.7;padding:4px 6px;letter-spacing:.3px}.scene-controls{gap:4px}.scene-controls button{height:25px;font-size:7px;padding:0 6px}.scene-bottom{left:8px;right:8px;bottom:7px;font-size:6px}.scene-bottom>span{padding:4px 6px;border-width:1px}.scene-wrap.zoomed{height:443px}.scene-wrap.zoomed canvas{width:760px;height:441px}.scene-wrap.zoomed:after{left:8px;top:45px;font-size:7px}.sidebar{display:grid;grid-template-columns:1fr 1fr;column-gap:15px;border-left:0;border-top:2px solid var(--ink);padding:16px}.side-heading{grid-column:1/-1;margin-bottom:8px;font-size:7px}.sidebar h3{grid-column:1;font-size:21px;margin:0 0 8px}.sidebar>p{grid-column:1;font-size:9px;margin:0}.missions{grid-column:2;grid-row:2/5;gap:3px}.mission{font-size:9px;padding:6px 0}.mission small{font-size:7px}.mission-icon{min-width:18px;height:19px;font-size:11px}.neighbor-card{grid-column:1;margin-top:10px;gap:7px}.neighbor-face{width:29px;height:36px}.neighbor-card small{font-size:6px}.neighbor-card b{font-size:8px}.suspicion{grid-column:1;margin:7px 0}.lives-row{grid-column:1;margin:0 0 10px;font-size:8px}.secondary{grid-column:2}.hide-button{grid-column:1;grid-row:7;margin-top:0}.side-bottom{grid-column:1/-1;padding-top:14px;font-size:9px}.inventory{padding:14px 12px 11px;flex-wrap:wrap;gap:13px;border-width:2px}.inventory-label{font-size:11px;width:99px}.inventory-label span{font-size:7px}.inventory-slots{gap:7px}.slot{width:51px;height:56px}.slot svg{width:34px;height:28px}.slot small{font-size:6px}.message{width:100%;max-width:none;padding:10px 0 0;border-left:0;border-top:1.5px dashed #b69568;margin:0;font-size:9px;min-height:40px}.under-game{font-size:8px;padding:15px 0 12px;display:block}.under-game>span:last-child{display:none}.under-game i{margin:0 5px}.under-game b{font-size:13px}.accessible-actions{font-size:9px;margin-bottom:10px}.accessible-actions button{font-size:9px}.event-note{padding:20px 16px;gap:17px;margin-top:22px;align-items:flex-start}.event-note h2{font-size:20px;line-height:1.15}.event-note .eyebrow{font-size:6px;letter-spacing:.5px}.event-note p{font-size:9px}.event-ticket{padding:12px 9px;margin-top:7px}.event-ticket>span{font-size:6px}.event-ticket b{font-size:17px}.event-ticket i{font-size:8px}.event-details{gap:6px;font-size:9px}.event-details button{font-size:8px}.event-plant{display:none}footer{font-size:6px;gap:10px;line-height:1.8}.welcome{width:269px;padding:12px 21px 14px;border-width:2px}.welcome-doodle{display:none}.welcome-number{font-size:6px;margin-top:7px}.welcome h2{font-size:25px;margin:11px 0}.welcome p{font-size:8.5px;line-height:1.7;margin-bottom:12px}.primary{font-size:12px;padding:11px 13px;box-shadow:2px 3px 0 var(--ink)}.primary span{font-size:17px}.welcome-meta{font-size:5px;margin-top:13px;letter-spacing:.3px}.bubble{font-size:9px;padding:7px 10px;max-width:180px;border-width:2px}.welcome .stars{font-size:18px;margin:7px 0}.result-mark{font-size:24px}.stamp{font-size:7px;right:-9px;top:10px}.result-actions{gap:9px}dialog{padding:25px}dialog h2{font-size:25px}dialog li{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

@media(max-width:760px){.scene-wrap:not(.zoomed){aspect-ratio:auto;height:270px}.scene-wrap:not(.zoomed) .canvas-scroll{display:flex;align-items:center}.scene-wrap:not(.zoomed) canvas{height:auto;aspect-ratio:1120/650}}

/* Stealth edition: no hints, no object markers. */
.hide-button:disabled,.scene-controls button:disabled{opacity:.48;cursor:default;box-shadow:none}.hide-button{margin-top:5px}.lives-row b{font:700 11px var(--text);letter-spacing:0}.sidebar .hide-button{width:100%}#detectionTime{color:var(--red)}@media(max-width:760px){.sidebar .hide-button{grid-column:1/-1;grid-row:auto}.side-bottom{grid-column:1/-1}.scene-controls button{max-width:120px;line-height:1.4}.scene-top>span{max-width:135px}.sidebar{padding-bottom:14px}.scene-controls{gap:4px}}

/* Mobile is the primary game surface. The house stays large enough to tap. */
.game-toolbar{justify-content:space-between}.scene-top>span:empty{display:none}.neighbor-card b{font-weight:600}.toolbar-tools button{min-width:36px;min-height:36px}.sidebar>h3{margin-top:2px}.inventory-label{white-space:nowrap}.item-picture{display:block;width:44px;height:44px;background-image:url('assets/inventory-v4.webp');background-size:300% 300%;background-position:var(--sprite);border-radius:6px;mix-blend-mode:multiply}.slot small{font-size:8px;text-align:center;line-height:1.15}.slot{width:76px;height:76px}.slot svg{height:39px;width:44px}
@media(max-width:760px){
 html{scroll-padding-top:0}body{overflow-x:hidden}main{padding:0 10px}.topbar{padding:12px 12px 0}.intro{padding:18px 0 23px}.intro h1{font-size:clamp(34px,10.3vw,48px);margin:5px 0 14px}.intro-doodle{top:53px;left:2px}.intro>.eyebrow{font-size:6px}.intro .tiny-star{top:65px}.subtitle{gap:0}.scribble{font-size:12px}.game-shell{border-radius:10px 7px 12px 6px}.game-toolbar{height:47px;padding:0 8px;gap:8px}.level-tabs button{min-width:36px;min-height:36px;padding:7px;font-size:13px}.toolbar-tools{gap:5px}.toolbar-tools button{width:34px;height:34px;min-width:34px;min-height:34px;font-size:20px}.toolbar-tools #help{font-size:17px}.play-layout{display:flex}.scene-wrap:not(.zoomed),.scene-wrap.zoomed{height:clamp(320px,calc(100svh - 245px),530px);aspect-ratio:auto}.scene-wrap .canvas-scroll{height:100%;display:block;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-x}.scene-wrap .canvas-scroll canvas{width:auto!important;max-width:none!important;height:100%!important;aspect-ratio:1120/650;touch-action:pan-x!important}.scene-wrap.overview .canvas-scroll{display:flex;align-items:center}.scene-wrap.overview .canvas-scroll canvas{width:100%!important;height:auto!important;aspect-ratio:1120/650}.scene-wrap.zoomed:after{display:none}.scene-top{left:auto;right:8px;top:7px}.scene-controls #quickHide{display:none}.scene-controls #pause{height:32px;min-width:54px;font-size:10px}.scene-bottom{bottom:4px;left:6px;right:6px;font-size:8px}.scene-bottom>span{padding:3px 6px}.sidebar{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px 9px;padding:8px 10px;border-top:2px solid var(--ink);background:#ffefca}.side-heading{grid-column:3;grid-row:1;justify-content:flex-end;margin:0;align-items:center}.side-heading>span:last-child{font-size:14px}.sidebar h3{grid-column:1/3;grid-row:1;font-size:15px;line-height:1.2;margin:0;align-self:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.missions{display:none}.neighbor-card{grid-column:1/3;grid-row:2;margin:0;gap:5px;align-self:center}.neighbor-face{width:25px;height:28px}.neighbor-card small{display:none}.neighbor-card b{font-size:10px;line-height:1.3}.sidebar .hide-button{grid-column:3;grid-row:2/4;width:100%;min-height:40px;align-self:center;margin:0;font-size:10px;padding:5px;box-shadow:1px 2px 0 var(--ink)}.suspicion{grid-column:1/3;grid-row:3;margin:0;height:7px}.lives-row{grid-column:1/3;grid-row:4;margin:0;font-size:8px}.lives-row b{font-size:10px}.side-bottom{grid-column:3;grid-row:4;padding:0;justify-content:flex-end}.side-bottom #score{display:none}.side-bottom button{padding:3px;font-size:9px}.inventory{display:grid;grid-template-columns:1fr;gap:0;padding:6px 10px;border-top:2px solid var(--ink);position:relative}.inventory-label{display:none}.inventory-slots{justify-content:center;gap:12px}.slot{width:72px;height:68px;transform:none!important;border-radius:6px 10px 7px 8px}.slot.selected{outline-width:2px;outline-offset:1px;transform:translateY(-2px)!important}.slot .item-picture{height:42px;width:42px}.slot small{font-size:8px;margin-top:2px}.slot.empty{font-size:20px}.message{font-size:10px;min-height:27px;line-height:1.3;padding:7px 0 2px;border:0;text-align:center;justify-content:center;color:#684631}.welcome{width:min(310px,90%);padding:20px 20px 23px;transform:rotate(-1deg);border-width:3px}.welcome h2{font-size:29px;margin:10px 0 14px}.welcome p{font-size:11px;line-height:1.6;margin-bottom:20px}.welcome .primary{min-height:49px;font-size:16px}.overlay{padding:12px}.bubble{max-width:190px;font-size:10px}.event-note{margin-top:22px;padding:20px 15px;gap:17px}.event-note h2{font-size:22px}.event-note p,.event-details{font-size:10px}footer{font-size:7px;padding:24px 12px}
 body.in-game{background:#fff0c8}body.in-game .sky,body.in-game .topbar,body.in-game .intro,body.in-game .event-note,body.in-game footer{display:none}body.in-game main{padding:0;max-width:none}body.in-game .game-shell{border-radius:0;border-width:0;box-shadow:none;min-height:100svh;display:flex;flex-direction:column}body.in-game .play-layout{flex:1}body.in-game .scene-wrap:not(.zoomed),body.in-game .scene-wrap.zoomed{height:clamp(320px,calc(100svh - 247px),660px)}body.in-game .sidebar{margin-top:auto}body.in-game .inventory{padding-bottom:max(7px,env(safe-area-inset-bottom))}body.in-game .game-toolbar{flex-shrink:0}
}
@media(max-width:360px){.toolbar-tools button{min-width:29px;width:29px}.level-tabs button{min-width:31px}.game-toolbar{gap:3px}.sidebar h3{font-size:13px}.slot{width:66px}.welcome h2{font-size:26px}}
@media(max-height:500px) and (orientation:landscape){body.in-game .scene-wrap:not(.zoomed){height:calc(100svh - 175px);min-height:210px}body.in-game .sidebar{grid-template-columns:1.5fr 1fr 1fr 1fr;padding:4px 10px}body.in-game .sidebar h3,.side-heading{display:none}body.in-game .neighbor-card{grid-column:1;grid-row:1}body.in-game .suspicion{grid-column:2;grid-row:1;align-self:center}body.in-game .lives-row{grid-column:3;grid-row:1}body.in-game .sidebar .hide-button{grid-column:4;grid-row:1}body.in-game .side-bottom{display:none}body.in-game .slot{height:55px;width:68px}body.in-game .slot .item-picture{width:32px;height:32px}body.in-game .inventory-slots{gap:18px}}
@media(max-width:760px){body.in-game .game-shell{height:100svh;min-height:0}body.in-game .play-layout{min-height:0;flex:1}body.in-game .scene-wrap:not(.zoomed),body.in-game .scene-wrap.zoomed{height:auto;min-height:0;flex:1;aspect-ratio:auto}body.in-game .scene-wrap .canvas-scroll{position:absolute;inset:0;width:100%;height:100%}body.in-game .sidebar{flex-shrink:0;margin-top:0}body.in-game .inventory{flex-shrink:0}}
@media(min-width:361px) and (max-width:760px){.game-toolbar{height:52px}.toolbar-tools button{width:44px;height:44px;min-width:44px;min-height:44px}.level-tabs button{min-width:40px;min-height:44px}.toolbar-tools{gap:3px}}
@media(max-width:760px){.scene-controls #pause{height:40px;min-width:58px;font-size:11px}}

/* Arrival card and a visible pocket bar, still inside the poster's palette. */
.welcome-story,.welcome-tip{text-align:left}.welcome .welcome-tip{padding-top:11px;border-top:1px dashed #ac865c;font-size:10px}.inventory{background:#f2ce73;border-top:3px solid var(--ink);box-shadow:inset 0 5px 0 #fff3be}.inventory-header{display:flex;flex-direction:column;gap:10px;align-items:flex-start}.inventory-label{display:block;font-size:14px;color:#46291f}.restart-all{font:600 10px var(--text);background:#fff0ca;border:1.7px solid var(--ink);border-radius:5px;padding:7px 10px;min-height:32px;white-space:nowrap}.inventory .slot{border-width:2.5px;border-color:#775733;background:#fff1c5;box-shadow:2px 3px 0 #9c7945}.inventory .slot.has-item{background:#fff8df;border-color:var(--ink)}.inventory .slot.selected{background:#f7b4a2;outline:3px solid #c45137}.inventory.found .slot.selected{animation:pocket-found .7s ease-out 2}@keyframes pocket-found{50%{transform:translateY(-5px) rotate(-3deg);box-shadow:0 0 0 5px #c4513728}}.overlay{overflow:auto}.welcome{flex-shrink:0}
@media(max-width:760px){.scene-wrap:not(.zoomed){height:clamp(460px,calc(100svh - 240px),640px)}.welcome{width:min(325px,94%);padding:17px 19px 21px}.welcome h2{font-size:28px;margin:8px 0 14px}.welcome .welcome-story{font-size:11px;line-height:1.55;margin-bottom:12px}.welcome .welcome-tip{font-size:10px;line-height:1.5;margin-bottom:18px}.welcome .primary{font-size:15px;min-height:48px;padding:11px 12px}.inventory{padding:8px 11px 7px;gap:7px}.inventory-header{flex-direction:row;align-items:center;justify-content:space-between;gap:8px}.inventory-label{display:block;width:auto;max-width:none;white-space:nowrap;font-size:12px;line-height:1.2}.restart-all{font-size:10px;min-height:34px;padding:6px 8px}.inventory-slots{gap:15px}.inventory .slot{width:76px;height:72px;border-width:2.5px}.message{min-height:21px;padding:3px 0 0}.inventory .slot .item-picture{width:45px;height:45px}.inventory .slot small{font-size:8px}.overlay{align-items:safe center}.welcome .welcome-doodle{display:none}}
@media(max-width:360px){.inventory-label{font-size:10px}.restart-all{font-size:9px}.inventory .slot{width:69px;height:68px}.welcome .welcome-story{font-size:10.5px}.welcome h2{font-size:26px}.welcome .primary{font-size:14px}}
