:root{color-scheme:light;--paper:#fff4d8;--ink:#4d3627;--leaf:#325c50;--red:#9c482f;--gold:#d7aa61;--sign:"Songti TC","Noto Serif CJK TC","PMingLiU",serif;--hand:"PingFang HK","Microsoft JhengHei",system-ui,sans-serif;--bh:400px;--cell:500px;--floor:70%;font-family:var(--hand);color:var(--ink)}
*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden;overscroll-behavior:none;background:#d8c8a4}button,select,input{font:inherit;color:inherit}button{font-weight:800;cursor:pointer;min-height:44px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:active:not(.lot){transform:translateY(2px)}button:focus-visible{outline:4px solid #346b57;outline-offset:3px}img{-webkit-user-drag:none;user-select:none;pointer-events:none}button[hidden],[hidden]{display:none!important}#game{position:relative;width:100%;height:100vh;height:100dvh;isolation:isolate;background:#c9d7c0;overflow:hidden;user-select:none;-webkit-user-select:none;touch-action:manipulation}
.backdrop,.room-paint,.floor-light,#streetView,#quizView,#interior,#curtain{position:absolute;inset:0}.backdrop{z-index:-3;background-position:center 60%;background-repeat:no-repeat;background-size:cover;transition:opacity .55s ease;will-change:opacity}.backdrop.inactive{opacity:0}#streetView{overflow:hidden;z-index:0}#world{position:absolute;inset:0 auto 0 0;will-change:transform;pointer-events:none}#buildings{position:absolute;inset:0}.lot{position:absolute;bottom:calc(100% - var(--floor));height:var(--bh);width:var(--cell);padding:0 3%;margin:0;border:0;background:transparent;display:flex;align-items:flex-end;justify-content:center;pointer-events:auto;touch-action:manipulation;isolation:isolate;transition:filter .15s;--sign-x:50%;--sign-y:14%;--sign-color:#315747}.lot:active{filter:brightness(1.08)}.lot:focus-visible{outline-offset:-4px}.facade{display:block;position:relative;width:min(96%,calc(var(--bh) * var(--ratio,1)));flex-shrink:0;isolation:isolate;pointer-events:none;line-height:0}.facade:before{content:"";position:absolute;left:2%;right:2%;bottom:-.7%;height:3%;background:#4d382850;filter:blur(4px);border-radius:50%;z-index:-1}.facade img{display:block;width:100%;height:auto;filter:drop-shadow(0 3px 2px #76543833)}.facade .name{position:absolute;left:var(--sign-x);top:var(--sign-y);transform:translate(-50%,-50%);white-space:nowrap;padding:2% 5%;font-family:var(--sign);color:var(--sign-color);font-size:clamp(19px,calc(var(--cell) * .065),44px);text-shadow:0 1px #fde5bf;line-height:1.1;font-weight:900;letter-spacing:.035em;border-radius:5px;background:#f7e5bd;box-shadow:inset 0 0 0 1.5px #b79765;max-width:90%}.lot[data-id=market]{--sign-x:57%;--sign-y:15%;--sign-color:#9a452d}.lot[data-id=cafe]{--sign-y:15%}.lot[data-id=library]{--sign-y:15%}.lot[data-id=park]{--sign-x:62%;--sign-y:32%}.lot:is([data-id=market],[data-id=cafe],[data-id=library],[data-id=park]) .facade .name{background:transparent;box-shadow:none;padding:0}.lot[data-id=park] .facade .name{font-size:clamp(18px,calc(var(--cell) * .054),38px)}.lot .visited-mark{position:absolute;right:1%;bottom:1%;background:#fbefce;color:#376649;border:2px solid #63815a;box-shadow:0 2px 3px #47362455;border-radius:50%;display:grid;place-items:center;width:clamp(25px,3.6vw,45px);aspect-ratio:1;line-height:1}
#walker{position:absolute;z-index:4;left:0;bottom:15%;height:clamp(115px,33vh,330px);width:clamp(116px,33vh,330px);transform:translate3d(-50%,0,0);pointer-events:none;will-change:left}.shadow{position:absolute;z-index:-1;left:13%;right:13%;bottom:1%;height:4%;border-radius:50%;background:#513b2b48;filter:blur(3px)}.pal-art{position:absolute;inset:0;transform-origin:center 97%;pointer-events:none}.pal-art .pal-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:50% 100%}.pal-art[data-dir=left]{scale:-1 1}.pal-art[data-pose=idle]{animation:breathe 3.5s ease-in-out infinite}.pal-art[data-pose=idle] .blink{animation:blink 5.4s steps(1,end) infinite}.pal-art .blink{opacity:0}.pal-art[data-pose=idle] .pal-frame:not(.blink){animation:eyesOpen 5.4s steps(1,end) infinite}@keyframes breathe{50%{transform:scale(1.008,.986)}}@keyframes blink{0%,93%,98%,100%{opacity:0}94%,97%{opacity:1}}@keyframes eyesOpen{0%,93%,98%,100%{opacity:1}94%,97%{opacity:0}}
header{position:absolute;z-index:12;top:max(14px,env(safe-area-inset-top));left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right));display:flex;align-items:center;justify-content:space-between;gap:10px;pointer-events:none}header button{pointer-events:auto}.plaque{background:linear-gradient(165deg,#fff5d8,#eacb96);border:3px solid #234b54;border-radius:8px;box-shadow:0 0 0 1.5px #f3d390,inset 0 0 0 3px #ffefd0,0 4px 5px #513d2a66;color:#294552;font-family:var(--sign);font-size:clamp(22px,3.2vw,39px);padding:.18em .64em .24em;font-weight:900;letter-spacing:.06em;position:relative;white-space:nowrap}.map-fold{font:700 .66em var(--hand);display:inline-block;margin-left:.5em;vertical-align:middle}#headerTools{display:flex;gap:8px;align-items:center}.round-button,.portrait-button{background:#fff1cc;border:2px solid #735139;border-radius:50%;box-shadow:inset 0 0 0 3px #fff8e6,0 3px 0 #735139aa;width:clamp(45px,5.2vw,66px);height:clamp(45px,5.2vw,66px);padding:9px;display:grid;place-items:center}.round-button svg{width:95%;height:95%}.portrait-button{padding:3px;overflow:hidden}.portrait-button img{width:100%;height:100%;object-fit:contain}.round-button[data-muted=true]{opacity:.75}.round-button[data-muted=true]:after{content:"";position:absolute;width:36px;height:3px;background:#974c38;transform:rotate(-45deg)}
#navControls{position:absolute;z-index:6;left:2%;right:2%;bottom:16%;display:flex;justify-content:space-between;pointer-events:none}#navControls button{width:clamp(54px,6.4vw,86px);aspect-ratio:1;border-radius:50%;border:2px solid #775c3b;background:#fff1d5e8;color:#345b4f;box-shadow:inset 0 0 0 3px #fff9e5,0 4px 0 #7453319e;pointer-events:auto;padding:10px}#navControls svg{width:100%;height:100%}#navControls button:disabled{opacity:.48;cursor:default}
#speech{position:absolute;z-index:9;left:5%;right:5%;bottom:max(2.1%,env(safe-area-inset-bottom));min-height:10.6%;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(18deg,#fff2d0,#fff9e7 69%,#f8e8c4);border:2px solid #95734f;border-radius:20px 34px 27px 30px;box-shadow:inset 0 0 0 3px #fffbe9,0 4px 0 #805a3855;padding:clamp(12px,1.9vh,24px) clamp(17px,2.9vw,44px)}#speaker{position:absolute;left:2%;top:-.92em;background:linear-gradient(125deg,#f5cf76,#e7ad4d);border:2px solid #9a7540;border-radius:.9em .7em .9em .8em;padding:.1em .75em;font-size:clamp(16px,1.9vw,27px);box-shadow:0 2px 0 #805b40;font-weight:850}.speech-row{display:flex;align-items:center;gap:15px;min-height:1.6em}#line{font-size:clamp(20px,2.6vw,36px);font-weight:820;line-height:1.33;flex:1}#buttons{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;flex-shrink:0;max-width:48%}#buttons:empty{display:none}#buttons button,.paper-button{border:2px solid #806343;border-radius:11px;background:#fff4d7;color:#4f3c27;box-shadow:0 3px 0 #795a3b;padding:.48em .85em;font-size:clamp(15px,1.6vw,23px);font-weight:850;white-space:nowrap}#buttons button:first-child,.paper-button.primary{color:#fff5db;background:#396e58;border-color:#345b47}#game[data-state=street] #speech{cursor:pointer}#game:not([data-state=street]) #navControls{display:none}
#ambient{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:5}#ambient i{position:absolute;left:calc(8% + var(--n,0)*24%);top:-7%;height:12px;width:7px;transform:rotate(20deg);background:#aebb6b;opacity:.7;border-radius:70% 0 70% 0;animation:leafFall 16s linear infinite;animation-delay:calc(var(--n,0)*-6s)}#ambient i:nth-child(2){--n:1}#ambient i:nth-child(3){--n:2}#ambient i:nth-child(4){--n:3}@keyframes leafFall{0%{transform:translate(0,-10vh) rotate(0);opacity:0}15%{opacity:.65}100%{transform:translate(20vw,75vh) rotate(280deg);opacity:0}}
#quizView{z-index:2;padding:13vh 3vw 20vh;display:flex;justify-content:center;align-items:end}.quiz-row{display:flex;width:100%;height:100%;justify-content:center;align-items:end;gap:1.1vw}.quiz-row .lot{position:relative;height:auto;bottom:auto;--cell:450px;flex:1;max-width:calc(100% / var(--options));min-width:0;padding:0;--bh:56vh}.quiz-row .lot .facade{width:min(100%,calc(var(--bh)*var(--ratio,1)))}.quiz-row .lot .facade .name{font-size:clamp(17px,3vw,40px)}.quiz-row .lot.cue .facade{outline:4px dashed #e2b65f;outline-offset:4px;border-radius:12px}.quiz-row .lot.wrong .facade{animation:shake .32s ease}@keyframes shake{25%{translate:-5px}75%{translate:5px}}.recall-image{width:min(72vw,820px);height:58vh;object-fit:contain;border:5px solid #fff4d7;background:#fff4d7;border-radius:13px;box-shadow:0 5px 12px #30291d55;align-self:center}.recall-image.cutout{border:0;background:none;box-shadow:none}.recall-grid{display:flex;gap:8px;align-items:flex-end;justify-content:center;width:100%}.recall-grid button{width:18%;min-width:62px;border:2px solid #aa8c65;border-radius:9px;background:#fff4d9;padding:5px}.recall-grid img{width:100%;height:14vh;object-fit:contain}
#interior{z-index:1;isolation:isolate;overflow:hidden}.room-paint{z-index:-2;background-position:center 55%;background-size:cover;transition:filter .7s}.floor-light{z-index:-1;background:linear-gradient(0deg,#6a4a3020,transparent 38%)}#roomPal{position:absolute;left:7%;bottom:17%;height:clamp(140px,47vh,440px);width:clamp(125px,32vw,430px);z-index:2;transform-origin:center bottom;transition:transform .6s ease,opacity .25s;pointer-events:none}.room-pal .pal-art .pal-frame{object-position:center bottom}#roomPal.sit{transform:translateY(3%) scale(.94)}#roomPal.arrive{animation:roomArrive .6s ease-out both}@keyframes roomArrive{from{transform:translateX(-42%);opacity:0}to{transform:translateX(0);opacity:1}}
#playfield{position:absolute;z-index:3;left:34%;right:5%;bottom:19%;height:57%;display:flex;align-items:flex-end;justify-content:center;gap:12px;pointer-events:none}#playfield button{pointer-events:auto}.activity-table{position:relative;width:100%;display:flex;align-items:end;justify-content:space-evenly;gap:1.5vw;padding:15px 4% 3%;min-height:30%;isolation:isolate}.activity-table:before{content:"";position:absolute;z-index:-2;left:0;right:0;bottom:3%;height:38%;border:2px solid #8e6747;border-radius:18px 20px 13px 11px;background:linear-gradient(170deg,#ecd1a7,#cda170 90%);box-shadow:0 7px 0 #936847,0 12px 9px #684a3055;transform:skewX(-5deg)}.item{position:relative;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;width:clamp(88px,15vw,220px);min-width:0;border:0;background:none;gap:3px;padding:3px;touch-action:none}.item img{width:100%;height:clamp(76px,21vh,210px);object-fit:contain;filter:drop-shadow(0 4px 3px #342b2050)}.item span{font-size:clamp(16px,1.9vw,25px);background:#fff3d5;border-radius:1em;padding:3px 9px;box-shadow:0 2px 0 #7e5f3b44}.item.shake{animation:shake .32s ease}.drop-target{position:relative;align-self:end;min-width:0;width:clamp(90px,19vw,250px);height:clamp(90px,23vh,240px);display:flex;align-items:center;justify-content:center;pointer-events:auto;flex-shrink:0}.drop-target img{width:100%;height:100%;object-fit:contain}.drop-target.over{outline:4px dashed #e4b452;border-radius:17px}.drop-target .received{position:absolute;bottom:35%;height:50%;width:55%;object-fit:contain;transform:scale(.9);filter:drop-shadow(0 3px 3px #62452d50)}.drop-target[data-kind=mailbox] .received{height:30%;width:42%;bottom:47%}.drop-target[data-kind=bag] .received{height:34%;bottom:48%}.flight{position:fixed;z-index:20;pointer-events:none;object-fit:contain;filter:drop-shadow(0 3px 5px #66563a55)}
.play-direct{pointer-events:auto;border:0;background:transparent;display:grid;place-content:center;position:relative;width:min(100%,60vh);height:85%;padding:0;align-self:flex-end}.play-direct img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 2px #60432d55)}.play-direct .tag,.tap-tag{background:#fff4d8;border:2px solid #8f6d45;border-radius:14px;color:#4e422b;font-size:clamp(18px,2vw,29px);position:absolute;bottom:1%;left:50%;transform:translateX(-50%);padding:4px 12px;box-shadow:0 3px 0 #74533d}.play-direct:disabled .tag{display:none}.park-slide{width:95%;height:80%;align-self:end}.park-slide img{width:100%;height:100%;object-fit:fill}.open-book{position:relative;width:min(100%,600px);height:44vh;perspective:850px;display:flex;align-items:center;border:3px solid #92734e;box-shadow:0 13px 6px #5b463c54;background:#fdf0cc;border-radius:12px 10px 13px 12px;padding:8px;overflow:hidden}.book-half{width:50%;height:93%;display:grid;place-items:center;background:linear-gradient(90deg,#fff9df,#f1e0b4);border:1px solid #b8a16d}.book-half img{height:86%;width:88%;object-fit:contain}.book-page{position:absolute;inset:3% 1.4% 3% 50%;background:#fff1c5;border:1px solid #d3b578;transform-origin:left;animation:pageTurn 1s ease-in-out both;box-shadow:0 2px 4px #6f543d55;pointer-events:none}@keyframes pageTurn{from{transform:rotateY(0)}to{transform:rotateY(-180deg);opacity:.05}}
#roomFx{position:absolute;inset:0;pointer-events:none;z-index:5}#roomFx .drop,#roomFx .bubble,#roomFx .spark,#roomFx .hair-cut{position:absolute;left:var(--x);top:var(--y);width:12px;height:12px;border-radius:50%;background:#cfebf3aa;border:1px solid #fff4e6;box-shadow:0 1px 2px #507b8b33;animation:waterDrop 1.1s ease-out both;animation-delay:var(--delay)}#roomFx .bubble{border:2px solid #e7fcff;background:#def7f855;animation:bubble 1s ease-out both;animation-delay:var(--delay)}#roomFx .spark{background:#ffc85d;border:0;animation:spark .85s ease-out both;animation-delay:var(--delay);clip-path:polygon(50% 0,62% 35%,100% 50%,62% 64%,50% 100%,37% 64%,0 50%,38% 36%)}#roomFx .hair-cut{background:#9a7954;width:9px;height:5px;animation:waterDrop .9s ease-in both;animation-delay:var(--delay)}@keyframes waterDrop{from{transform:translateY(-10px);opacity:0}20%{opacity:1}to{transform:translateY(60px) rotate(35deg);opacity:0}}@keyframes bubble{from{transform:translate(0,13px) scale(.2);opacity:0}40%{opacity:1}to{transform:translate(30px,-40px) scale(1.5);opacity:0}}@keyframes spark{from{transform:scale(.3);opacity:0}25%{opacity:1}to{transform:translateY(-30px) scale(1.3);opacity:0}}.darken{position:absolute;inset:0;background:#25344aa0;animation:darken 1.25s ease both}@keyframes darken{from{opacity:0}to{opacity:1}}.sandcastle{width:130px;height:100px;position:absolute;bottom:26%;right:18%;background:#ddb074;clip-path:polygon(0 100%,0 25%,10% 25%,10% 12%,18% 12%,18% 25%,27% 25%,27% 60%,38% 60%,38% 0,47% 0,47% 18%,57% 18%,57% 0,67% 0,67% 60%,77% 60%,77% 25%,85% 25%,85% 12%,94% 12%,94% 25%,100% 25%,100% 100%);filter:drop-shadow(0 4px 3px #755233);animation:roomArrive .6s ease}.ripples{position:absolute;left:33%;bottom:22%;height:8%;width:44%;border:3px solid #fff8ceaa;border-radius:50%;animation:ripples .75s ease-out 2}@keyframes ripples{from{transform:scale(.7);opacity:.7}to{transform:scale(1.2);opacity:0}}
#curtain{z-index:13;pointer-events:none;opacity:0;background:#322c23;transition:opacity .34s ease}#curtain.covered{opacity:1;pointer-events:auto}
#modal{border:3px solid #8d6a45;border-radius:22px;padding:clamp(16px,2.5vw,32px);background:#fff4d9;color:#473628;box-shadow:0 15px 50px #2c201766;max-width:min(760px,94vw);max-height:91dvh;width:max-content;overscroll-behavior:contain}#modal::backdrop{background:#293f377e;backdrop-filter:blur(4px)}#modal h2{font-family:var(--sign);color:var(--leaf);font-weight:900;font-size:clamp(25px,3vw,37px);margin:0 0 12px;text-align:center}#modal h3{font-size:19px;margin:13px 0 8px}#modal p{margin:10px 0;line-height:1.4}#modal button{margin:3px}#modal .menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.menu-choice{border:2px solid #b29a72;background:#fff9e8;border-radius:13px;padding:9px;display:flex;flex-direction:column;align-items:center;font-size:18px;gap:5px;box-shadow:0 2px 0 #89674466}.menu-choice img{width:100%;height:clamp(56px,13vh,116px);object-fit:contain}.menu-choice.selected,.mode-btn.selected{background:#dcebd2;border-color:#3f7355}.mode-btn{border:2px solid #b89a71;background:#fff7df;border-radius:13px;padding:10px 15px;min-width:100px;text-align:center;font-size:17px;margin:3px}.controls-row{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin:12px 0}.controls-row label{font-weight:800;display:flex;gap:6px;align-items:center}.controls-row select{min-height:40px;border:1px solid #8f704c;background:#fff8e5;border-radius:8px;padding:5px 10px}.cast-list{display:flex;gap:8px}.cast-list .menu-choice{width:clamp(85px,20vw,160px)}.cast-list .menu-choice img{height:clamp(94px,22vh,200px)}.menu-footer{display:flex;justify-content:center;gap:5px;flex-wrap:wrap;margin-top:14px}.place-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;max-height:46vh;overflow:auto}.place-grid label{font-size:16px;display:flex;align-items:center;gap:5px;padding:8px 5px;border:1px solid #dbc5a0;border-radius:7px}.place-grid input{accent-color:#3b725a;width:20px;height:20px;flex:none}.infoLink{font-size:14px;color:#426756}.record-table{border-collapse:collapse;width:100%;font-size:17px}.record-table td,.record-table th{padding:7px 9px;border-bottom:1px solid #d7c3a0}.record-table th{text-align:left}
@media(orientation:portrait){header{top:max(12px,env(safe-area-inset-top));left:10px;right:10px}#headerTools{gap:5px}.round-button,.portrait-button{width:46px;height:46px;padding:7px}.portrait-button{padding:3px}.plaque{font-size:clamp(20px,4.8vw,32px);padding:.26em .45em}.map-fold{display:none}#walker{bottom:23%;width:35vw;height:35vw;min-height:110px}.lot .facade .name{font-size:clamp(20px,5vw,38px)}#navControls{bottom:24%}#speech{left:4%;right:4%;bottom:max(2%,env(safe-area-inset-bottom));min-height:13%;padding:16px 15px 11px}.speech-row{display:block}#line{font-size:clamp(20px,4.3vw,31px)}#buttons{max-width:none;margin-top:8px;justify-content:flex-end}#buttons button{font-size:clamp(15px,3.4vw,21px)}#quizView{padding:13vh 3vw 27vh;align-items:center}.quiz-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:end}.quiz-row .lot{max-width:none;width:100%;--bh:30vh;align-self:end;justify-content:center}.quiz-row .lot .name{font-size:clamp(17px,4.2vw,30px)}.quiz-row[data-count="2"]{align-items:center}.quiz-row[data-count="2"] .lot{--bh:42vh}.recall-image{width:90vw;height:50vh}.recall-grid{flex-wrap:wrap}.recall-grid button{width:36%}#roomPal{left:2%;bottom:24%;height:37vh;width:38vw}#playfield{left:38%;right:2%;bottom:27%;height:42%;gap:5px}.activity-table{padding:10px 0;gap:2px}.item{width:27vw}.item img{height:15vh}.item span{font-size:15px}.drop-target{width:22vw;height:17vh}.play-direct .tag{font-size:16px;white-space:nowrap}.open-book{height:28vh}.place-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-height:520px) and (orientation:landscape){#speech{padding:9px 15px}#speaker{font-size:15px}#line{font-size:19px}#buttons button{font-size:15px;min-height:37px}#navControls button{width:47px}header button{min-height:37px}.round-button,.portrait-button{width:43px;height:43px}.plaque{font-size:21px}.item span{font-size:15px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.lot{padding:0 calc(var(--cell)*.025)}

.backdrop{transform-origin:center;will-change:opacity,transform}.lot[data-id=bus]{--sign-x:36%;--sign-y:10%}.lot[data-id=cinema]{--sign-y:22%}.lot[data-id=hospital]{--sign-y:17%}.lot[data-id=school]{--sign-y:13%}.lot[data-id=post]{--sign-y:12%}.lot[data-id=airport]{--sign-y:15%}.lot[data-id=barber]{--sign-y:19%}.lot[data-id=beach]{--sign-y:17%}.lot[data-id=bank]{--sign-y:18%}.lot[data-id=home]{--sign-y:12%}
#game,#streetView,#quizView,#interior{overflow:clip}#game{contain:paint}.map-fold{width:.95em;height:.95em;vertical-align:middle}.facade .name{background:none;box-shadow:none;font-size:clamp(20px,calc(var(--cell)*.075),49px);padding:0}.lot[data-id=barber]{--sign-y:22%}.lot[data-id=pool]{--sign-y:12%}.lot[data-id=fire]{--sign-y:17%}.lot[data-id=clinic]{--sign-y:20%}.lot[data-id=police]{--sign-y:16%}.lot[data-id=toilet]{--sign-y:12%}.lot[data-id=supermarket]{--sign-y:13%}.lot[data-id=convenience]{--sign-y:13%}.lot[data-id=zoo]{--sign-y:12%}.lot[data-id=bank]{--sign-y:19%}#walker.entering{transition:transform .42s ease-out,opacity .36s ease;transform:translate3d(-50%,-11%,0) scale(.77);opacity:.12}#curtain{background:#e7d4ae}
#pedestrian{position:absolute;bottom:23%;width:clamp(92px,19vh,194px);height:clamp(92px,19vh,194px);transform:translateX(-50%);pointer-events:none;z-index:3;will-change:left}
#furniture{position:absolute;inset:0;pointer-events:none;z-index:1}.activity-table:before{display:none}.activity-table{padding:8px 4% clamp(30px,7vh,72px)}.activity-table .table-art{position:absolute;width:100%;height:80%;bottom:0;left:0;object-fit:fill;z-index:-1;pointer-events:none}.activity-table .item{flex:1 1 0;width:auto}.activity-table .drop-target{width:30%;flex-shrink:0}.activity-table .item span{position:relative;top:-.25em}.activity-table .item img{object-position:center bottom}.seating{position:absolute;left:11%;bottom:16%;height:26%;width:21%;object-fit:contain;object-position:center bottom}.meal-table{position:absolute;left:28%;bottom:16%;height:28%;width:31%;object-fit:contain}.served-meal{position:absolute;left:34%;bottom:35%;width:16%;height:13%;object-fit:contain;transition:opacity .4s,scale .4s;z-index:3}.held-item{position:absolute;left:24%;bottom:33%;height:12%;width:13%;object-fit:contain;z-index:3}.sink-art{position:absolute;left:29%;bottom:16%;width:20%;height:35%;object-fit:contain}.meal-hit{position:absolute;pointer-events:auto!important;left:-6%;width:34%;height:35%;bottom:24%;background:transparent;border:0;cursor:pointer}#game[data-place=cafe] #roomPal.sit{transform:translateY(-2%) scale(.94)}
@media(orientation:portrait){#pedestrian{height:18vw;width:18vw;bottom:32%}.activity-table{padding:8px 0 40px}.activity-table .drop-target{width:29%}.activity-table .item img{height:14vh}.meal-hit{left:-14%;bottom:38%;height:25%;width:62%}.seating{left:6%;bottom:24%;width:26%;height:21%}.meal-table{left:28%;bottom:24%;width:35%;height:22%}.served-meal{left:35%;bottom:38%;height:10%;width:19%}.held-item{left:28%;bottom:40%;height:12%;width:18%}.sink-art{left:33%;bottom:24%;height:25%;width:31%}.lot .facade .name{font-size:clamp(19px,5.3vw,35px)}}
.activity-table{padding-bottom:clamp(90px,14vh,160px)}.activity-table .table-art{height:clamp(105px,16vh,180px)}
@media(orientation:portrait){.activity-table{padding-bottom:clamp(56px,10vh,95px)}.activity-table .table-art{height:clamp(65px,11vh,110px)}}
.activity-table .item span{position:absolute;top:auto;bottom:-1.7em}.activity-table .item{padding-bottom:0}.activity-table .item img{object-position:50% 100%}
#game[data-place=park] #playfield{left:30%;right:7%;bottom:21%;height:59%}.park-slide{display:flex;align-items:end;justify-content:center;width:100%;height:auto;max-width:760px;position:relative}.park-slide img{width:100%;height:auto;max-width:none;max-height:none;object-fit:fill}.park-slide .tag{bottom:-.9em}.slide-rail{clip-path:polygon(0 58%,28% 17%,35% 0,47% 0,47% 38%,39% 40%,33% 19%,1.5% 62%,1.5% 98%,0 98%);object-fit:fill;pointer-events:none}.hair-tool{position:absolute;left:29%;top:40%;width:10%;height:14%;object-fit:contain;transform-origin:20% 90%;animation:trim 1s ease-in-out both}@keyframes trim{0%,100%{transform:rotate(-18deg) translateY(15px);opacity:0}15%,70%{opacity:1}30%,60%{transform:rotate(7deg) translateY(-9px)}45%,85%{transform:rotate(-14deg) translateY(3px)}}#roomPal.boarded{transform:translateX(38%) scale(.83);opacity:.78}#game[data-transition=on] #curtain{pointer-events:auto}
@media(orientation:portrait){#game[data-place=park] #playfield{left:22%;right:3%;bottom:29%;height:48%}.park-slide .tag{font-size:15px}.activity-table .item span{bottom:-1.5em}}
#roomPal.float-swim{transform:translate(90%,-22%) scale(.65);transition:transform 1s ease-out}.float-ring{position:absolute;z-index:2;left:16%;bottom:4%;height:35%;width:68%;object-fit:contain;object-position:bottom;pointer-events:none}.lot:disabled{cursor:default}

/* Street depth: the paving is part of the same moving world as the shops. */
.backdrop{background:none;transform:none;overflow:clip;will-change:opacity}
.back-panorama{position:absolute;display:flex;pointer-events:none;will-change:transform}
.back-panel{width:var(--tile);height:100%;flex:none;background-position:center;background-size:100% 100%;background-repeat:no-repeat}
.back-panel:nth-child(even){transform:scaleX(-1)}
#ground{position:absolute;left:0;right:0;top:calc(var(--floor) - var(--ground-blend));bottom:0;z-index:0;background-position:left bottom;background-size:auto 100%;background-repeat:repeat-x;mask-image:linear-gradient(to bottom,transparent 0%,#000 34%,#000 100%);pointer-events:none}
#buildings{z-index:1}.facade:before{left:1%;right:1%;bottom:-1.5%;height:4.6%;background:radial-gradient(ellipse at center,#49362f6c 0%,#49362f3f 45%,transparent 75%);filter:blur(3px)}.facade img{filter:saturate(.97) contrast(.985)}.pal-art{filter:saturate(.96) contrast(.985)}
.shadow{bottom:1.5%;height:5%;left:11%;right:8%;background:radial-gradient(ellipse at center,#4e382d64,#4e382d3d 42%,transparent 75%);filter:none}
#walker{transform-origin:50% 100%}#walker.entering{transform:translate3d(-50%,calc(-1 * var(--entry-lift)),0) scale(.77);opacity:.06}
.lot[data-id=school]{--sign-y:17%}.lot[data-id=hospital]{--sign-y:19%}.lot[data-id=cinema]{--sign-y:25%}.lot[data-id=barber]{--sign-y:23%}.lot[data-id=police]{--sign-y:17%}
#game[data-state=inside] .item[data-item=tomato] img{height:clamp(50px,13vh,126px)}
#game[data-state=inside] .item:is([data-item=soap],[data-item=wallet],[data-item=card],[data-item=letter],[data-item=coins],[data-item=thermometer]) img{height:clamp(48px,12.2vh,112px)}
#game[data-state=inside] .item:is([data-item=milk],[data-item=water],[data-item=tea],[data-item=helmet],[data-item=binocular],[data-item=popcorn]) img{height:clamp(68px,16vh,160px)}
@media(orientation:portrait){#game[data-state=inside] .item[data-item=tomato] img{height:clamp(43px,10.5vh,115px)}#game[data-state=inside] .item:is([data-item=milk],[data-item=water],[data-item=tea],[data-item=helmet],[data-item=binocular],[data-item=popcorn]) img{height:clamp(55px,12vh,140px)}}
#ground{-webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 34%,#000 100%)}
#ground{filter:saturate(.88) brightness(.985)}
/* Leave a clear, coherent foreground plane in rooms with furniture in the background. */
#interior[data-floor]:not([data-floor=""]) .room-paint{bottom:17%;background-size:100% 100%;background-position:center top}
#interior[data-floor]:not([data-floor=""]) .floor-light{top:56%;background-image:var(--room-floor);background-size:auto 100%;background-repeat:repeat-x;background-position:center bottom;mask-image:linear-gradient(to bottom,transparent,#000 29%,#000);-webkit-mask-image:linear-gradient(to bottom,transparent,#000 29%,#000);transition:filter .7s}
#game[data-place=school] .item img{height:clamp(65px,17.5vh,170px)}
.back-panel{filter:saturate(.93) contrast(.97)}
@media(orientation:portrait){#interior[data-floor]:not([data-floor=""]) .room-paint{bottom:19%;background-size:cover}#interior[data-floor]:not([data-floor=""]) .floor-light{top:53%}#game[data-place=school] .item img{height:clamp(60px,13.5vh,135px)}}
.activity-table:after{content:"";position:absolute;z-index:-2;left:3%;right:3%;bottom:-.4%;height:5%;border-radius:50%;background:radial-gradient(ellipse at center,#4d352b64,#4d352b32 48%,transparent 75%);pointer-events:none}
.activity-table .table-art{filter:drop-shadow(0 3px 2px #533f3040) saturate(.94)}
#interior[data-floor]:not([data-floor=""]) .floor-light{box-shadow:inset 0 -8vh 14vh #a7815620}

/* Shop signs sit inside the painted plaques, without a second label pasted on top. */
.facade{container-type:inline-size;width:min(96%,calc(var(--bh)*var(--ratio,1)*var(--building-scale,1)))}
.lot .facade .name,.quiz-row .lot .facade .name{
 position:absolute;left:var(--sign-x);top:var(--sign-y);width:var(--sign-w);height:var(--sign-h);
 max-width:none;padding:0;display:flex;align-items:center;justify-content:center;
 background:none;box-shadow:none;border:0;border-radius:0;
 font-size:var(--sign-font,30px);font-family:var(--sign);font-weight:950;line-height:1;
 letter-spacing:.025em;color:#294f47;text-shadow:0 1px 0 #fff1c8;white-space:nowrap;overflow:visible;
}
.lot[data-id=market] .facade .name,.lot[data-id=cafe] .facade .name,.lot[data-id=bakery] .facade .name,.lot[data-id=cinema] .facade .name{color:#8d4431}
.quiz-row .lot .facade{width:min(100%,calc(var(--bh)*var(--ratio,1)))}
#walker{height:clamp(106px,28.5vh,292px);width:clamp(106px,28.5vh,292px)}
@media(orientation:portrait){#walker{height:32vw;width:32vw}}

/* Child-friendly tabletop proportions. Small items have a large touch area,
   without inflating a card or coin to the size of a backpack. */
#roomPal{left:3%;bottom:17%;height:clamp(130px,42vh,395px);width:clamp(130px,34vw,395px)}
#playfield{left:36%;right:5%;bottom:17%;height:48%;align-items:flex-end;gap:0}
.activity-table{--table-rise:clamp(85px,15vh,148px);height:100%;width:100%;max-width:740px;min-height:0;padding:0 4% var(--table-rise);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;justify-items:center;gap:clamp(10px,1.2vw,18px);isolation:isolate}
.activity-table[data-layout=table-receiver]{grid-template-columns:repeat(2,minmax(0,1fr)) minmax(0,1.22fr)}
.activity-table .table-art{height:calc(var(--table-rise) + 12px);bottom:0;width:100%;object-fit:fill;filter:drop-shadow(0 3px 2px #513a2b55) saturate(.95)}
.activity-table .item{display:flex;align-self:end;justify-content:flex-end;position:relative;width:100%;height:clamp(90px,20vh,215px);padding:0 3px 0;min-width:60px;touch-action:none}
#game[data-state=inside] .activity-table .item[data-item] img{width:100%;height:clamp(30px,var(--visual-height,12vh),180px);object-fit:contain;object-position:center bottom;filter:drop-shadow(0 3px 2px #3d302b32)}
.activity-table .item span{top:auto;bottom:auto;position:absolute;left:50%;top:calc(100% + .35vh);transform:translateX(-50%);white-space:normal;max-width:110%;min-width:max-content;font-size:clamp(15px,1.65vw,24px);line-height:1.1;padding:.24em .45em;background:#fff5dc;color:#513e2d;border:1px solid #bd9a6e;box-shadow:0 2px 0 #8a654648;z-index:1}
.activity-table .item:active{transform:translateY(0)}.activity-table .item:active img{filter:brightness(1.1) drop-shadow(0 2px 2px #60423040)}
.activity-table .drop-target{width:100%;height:clamp(88px,18vh,185px);align-self:end;min-width:0}
.activity-table .receiver-art{object-fit:contain;object-position:center bottom;filter:drop-shadow(0 3px 2px #3d302b44)}
.activity-table .received{z-index:2;object-fit:contain;clip-path:inset(0 0 23% 0)}
.activity-table[data-layout=floor-receiver]{grid-template-columns:repeat(2,minmax(0,1fr)) minmax(0,1.15fr);padding-left:3%;padding-right:2%}
.activity-table[data-layout=floor-receiver] .table-art{width:65%}
.activity-table[data-layout=floor-receiver] .drop-target{position:absolute;right:0;bottom:-2%;width:35%;height:clamp(120px,27vh,275px)}
.activity-table[data-layout=floor-receiver] .drop-target[data-kind=mailbox]{width:24%;height:clamp(125px,30vh,300px);right:4%}
.activity-table[data-layout=floor-receiver]::after{right:35%}
.activity-table[data-layout=ground]{--table-rise:0px;align-items:end;padding:0 4% 1.4%}
.activity-table[data-layout=ground]::after{display:none}
.activity-table[data-layout=ground] .item{height:clamp(130px,25vh,250px)}
.activity-table[data-layout=ground] .item span{top:calc(100% + .15vh)}
.activity-table[data-layout=ground] .item img{filter:drop-shadow(0 4px 3px #543c2755)}
.scene-prop{position:absolute;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 3px 2px #49332236);pointer-events:none}
.worn-prop{position:absolute;object-fit:contain;z-index:4;pointer-events:none;filter:drop-shadow(0 2px 1px #4d352936)}
#roomPal.action-seated{bottom:23%;left:5%;height:36vh;width:34vw;transform:none}
#roomPal.action-seated .shadow,#roomPal.action-sleep .shadow,#roomPal.action-swim .shadow{opacity:0}
#roomPal.action-sleep{left:49%;bottom:31%;height:34vh;width:40%;animation:sleepBreathing 3s ease-in-out infinite;transform-origin:50% 80%}
@keyframes sleepBreathing{50%{scale:1 .98}}
#roomPal.action-swim{left:40%;bottom:39%;height:25vh;width:27%;transform:none;transition:none}
#roomPal.action-swim .pal-art{transform:translateY(6%)}
#roomPal.action-swim .swim-ring{z-index:4}
#roomPal .luggage{object-position:center bottom}
#game[data-act] #playfield{z-index:6}
#game[data-act=eat] #playfield,#game[data-act=read] #playfield{inset:0;display:block;pointer-events:none}
#game[data-act=eat] .food-hit{position:absolute;left:44%;bottom:35%;width:34%;height:17%;background:transparent;min-height:75px;pointer-events:auto}
#game[data-act=eat] .food-hit .tap-tag{bottom:-1.25em;white-space:nowrap;font-size:clamp(18px,2.1vw,25px)}
#game[data-act=read] .book-ready{position:absolute;width:45%;height:38%;left:45%;bottom:21%}
#game[data-act=read] .book-ready .tag{white-space:nowrap}
#game[data-act=read] .open-book{position:absolute;left:45%;bottom:20%;width:45%;height:38%}
.water-stream{position:absolute;left:58.7%;top:46%;height:13%;width:1.25%;border-radius:45%;background:linear-gradient(100deg,#afe0e3aa,#efffff,#93c8d5b0);transform-origin:center top;animation:waterFlow .42s linear infinite;opacity:.8}
.water-stream.running{width:1.6%;opacity:1}
@keyframes waterFlow{0%{scale:.8 .85}50%{scale:1 1}100%{scale:.8 .85}}
.movie-light{position:absolute;left:35%;top:19%;width:32%;height:26%;display:flex;align-items:end;justify-content:center;overflow:hidden;background:#f2dfab;box-shadow:0 0 18px #fae8b7a8;border:3px solid #855a3d;border-radius:4px;animation:movieGlow 1.5s infinite alternate}
.movie-light img:first-child{width:62%;height:94%;object-fit:contain;animation:moviePan 2s ease-in-out infinite alternate}
.movie-light img:last-child{position:absolute;left:6%;bottom:0;height:52%;width:32%;object-fit:contain;animation:moviePan 2.5s ease-in-out infinite alternate}
@keyframes movieGlow{50%{filter:brightness(.92)}}@keyframes moviePan{to{transform:translateX(20px)}}
.binocular-view{position:absolute;left:36%;top:14%;right:6%;height:53%;display:flex;align-items:center;gap:0;filter:drop-shadow(0 5px 9px #35282066)}
.binocular-view i{display:block;width:52%;height:78%;border:10px solid #342d22;border-radius:50%;background-size:320% auto;background-position:60% 45%;box-shadow:inset 0 0 15px #3a332788}
.binocular-view i+i{margin-left:-5%;background-position:65% 44%}
.temp-reading{position:absolute;left:43%;bottom:43%;padding:10px 18px;background:#e5f2d8;color:#345846;font-weight:900;font-size:clamp(26px,4.4vw,50px);letter-spacing:.04em;border:3px solid #437161;border-radius:12px;box-shadow:0 4px 8px #57413144}
@media(orientation:portrait){
 #roomPal{left:1%;bottom:43%;width:40vw;height:30vh}
 #playfield{left:6%;right:6%;bottom:23%;height:33%}
 .activity-table{--table-rise:clamp(78px,12vh,126px);padding-left:4%;padding-right:4%;gap:6px}
 .activity-table .item{height:clamp(85px,18vh,165px)}
 #game[data-state=inside] .activity-table .item[data-item] img{height:clamp(28px,calc(var(--visual-height,12vh)*.75),140px)}
 .activity-table .item span{font-size:clamp(13px,3.5vw,19px);max-width:120%;min-width:0;white-space:nowrap}
 .activity-table .drop-target{height:clamp(90px,14vh,145px)}
 .activity-table[data-layout=floor-receiver] .drop-target{height:clamp(100px,21vh,230px)}
 .activity-table[data-layout=floor-receiver] .drop-target[data-kind=mailbox]{height:clamp(110px,24vh,260px)}
 .activity-table[data-layout=ground] .item{height:clamp(110px,20vh,220px)}
 #game[data-act] #roomPal{bottom:25%;left:1%;width:45vw;height:32vh}
 #game[data-act] #roomPal.action-seated{bottom:30%;left:2%;width:44vw;height:27vh}
 #game[data-act=rest] #roomPal.action-sleep{left:43%;bottom:34%;width:48%;height:27vh}
 #game[data-act=swim] #roomPal.action-swim{left:38%;bottom:43%;height:18vh;width:40%}
 #game[data-act=eat] .food-hit{bottom:35%;left:43%;width:46%;height:16%}
 #game[data-act=eat] .food-hit .tap-tag{font-size:17px}
 #game[data-act=read] .book-ready,#game[data-act=read] .open-book{left:42%;bottom:24%;width:54%;height:30%}
 .movie-light{top:23%;left:24%;height:20%;width:56%}
 .binocular-view{left:11%;right:6%;top:15%;height:39%}
 #game[data-place=park] #roomPal{bottom:27%;left:0%;height:27vh;width:38vw}
 #game[data-place=park] #playfield{left:28%;right:3%;bottom:26%;height:46%}
}
@media(max-height:520px) and (orientation:landscape){
 #roomPal{height:37vh;width:35vw}.activity-table{--table-rise:13vh}.activity-table .item span{font-size:13px}.activity-table .drop-target{height:19vh}
}
/* Final proportion/placement pass. */
#game .lot .facade .name{left:var(--sign-x);top:var(--sign-y);width:var(--sign-w);height:var(--sign-h);font-size:var(--sign-font,30px);background:transparent;box-shadow:none;padding:0}
.activity-table{--table-rise:clamp(100px,18.5vh,185px);max-width:min(100%,calc(var(--table-rise)*3.75))}
.activity-table[data-layout=ground]{--table-rise:0px;max-width:100%}
#roomPal.action-wash{left:22%;bottom:17%;width:34vw;height:40vh}
#roomPal.action-swim{bottom:47%}
#game[data-act=eat] .food-hit{left:31%;width:34%;bottom:34%}
#roomPal.action-sleep{filter:drop-shadow(0 2px 1px #583e302a)}
#game[data-state=inside] #roomActor[data-pose=stand]{animation:breathe 4s ease-in-out infinite}
@media(orientation:portrait){
 .activity-table{--table-rise:clamp(92px,13.5vh,148px);max-width:min(100%,calc(var(--table-rise)*3.9))}
 .activity-table[data-layout=ground]{--table-rise:0px;max-width:100%}
 #game[data-act=wash] #roomPal.action-wash{left:14%;bottom:24%;width:41vw;height:32vh}
 #game[data-act=eat] .food-hit{left:31%;bottom:33%;width:38%}
 #game[data-act=swim] #roomPal.action-swim{bottom:48%}
}
@media(max-height:520px) and (orientation:landscape){.activity-table{--table-rise:15vh}.activity-table[data-layout=ground]{--table-rise:0px}}
#roomPal.action-wash{transition:left .44s ease,bottom .44s ease,height .44s ease,width .44s ease,transform .44s ease}
#game[data-act=bank] #playfield{inset:0;display:block;pointer-events:none}
#game[data-act=bank] .atm-hit{position:absolute;left:59%;bottom:25%;width:16%;min-width:85px;min-height:52px;font-size:clamp(19px,2.6vw,32px);pointer-events:auto;z-index:8;box-shadow:0 4px 0 #4d342b66}
@media(orientation:portrait){#game[data-act=bank] .atm-hit{left:57%;bottom:26%;width:24%;font-size:21px}}
