*{box-sizing:border-box;touch-action:manipulation}html,body,#root{width:100%;height:100%;margin:0;overflow:hidden}body{color:#fff;background:#080b18;font-family:Arial,Tahoma,sans-serif}.app{background:#12172b;max-width:1280px;height:100dvh;margin:auto;position:relative}button{font:inherit;color:#fff;cursor:pointer;border:0}header{z-index:5;background:#0b1025;border-bottom:1px solid #ffffff18;justify-content:space-around;align-items:center;height:68px;display:flex;position:relative}header div{flex-direction:column;gap:4px;display:flex}header small{color:#9da9cb;font-size:10px}header button{background:#ffffff12;border-radius:10px;padding:9px 13px}.layout{top:68px;bottom:132px;display:flex;position:absolute;inset-inline:0}.world{direction:ltr;background:#1d2745;border:8px solid #10172b;width:76%;position:relative;overflow:hidden}.room{color:#ffffff70;background:linear-gradient(145deg,#604b39,#4d392f);border:5px solid #15203c;padding:8px;font-size:12px;position:absolute;box-shadow:inset 0 0 50px #0004}.room b{letter-spacing:1px}.kitchen{width:35%;height:52%;top:0;left:0}.living{background:linear-gradient(145deg,#554333,#40342f);width:65%;height:67%;top:0;left:35%}.bedroom{background:linear-gradient(145deg,#4c3c45,#3b3140);width:38%;height:48%;top:52%;left:0}.hall{background:linear-gradient(90deg,#49382e,#594334);border-top:5px solid #15203c;position:absolute;inset:67% 0 0 38%}.prop{text-align:center;color:#c8a77a;text-shadow:0 3px #0004;font-size:36px;position:absolute}.prop small{color:#fff9;font-size:9px;display:block}.fridge{color:#87989e;background:linear-gradient(90deg,#c9d7db,#eef4f3);border-radius:8px;width:55px;height:95px;padding-top:20px;top:15%;left:8%}.counter{color:#96704e;top:13%;left:42%}.sofa{color:#8f5c4b;font-size:60px;top:33%;right:12%}.table{color:#8a6548;font-size:65px;top:50%;left:14%}.desk{color:#98704e;font-size:60px;top:15%;right:10%}.toybox{color:#b4793d;font-size:65px;bottom:12%;left:12%}.dad{z-index:2;text-align:center;position:absolute;top:27%;right:17%}.dad span{font-size:62px;transition:all .2s;display:block}.dad span.wake{filter:drop-shadow(0 0 12px #ff795e);animation:.18s infinite shake}.dad small{color:#fff;font-weight:700}.cat{z-index:2;font-size:38px;position:absolute;top:39%;left:30%}.door{color:#b97b3c;font-size:70px;position:absolute;top:-30px;left:18%}.dropzone{color:#ffe477;border:3px dashed #ffe477;border-radius:50%;justify-content:center;align-items:center;width:110px;height:70px;font-size:24px;animation:1.3s infinite glow;display:flex;position:absolute;top:76%;left:45%;box-shadow:0 0 25px #ffe47744}.dropzone small{font-size:9px;position:absolute;top:72px}.objective{z-index:4;position:absolute;transform:translate(-50%,-50%)}.objective i{filter:drop-shadow(0 0 12px #ffe96d);font-size:44px;font-style:normal}.objective span{color:#ffe96d;font-size:32px;animation:.7s infinite bob;position:absolute;top:-35px;left:12px}.player{z-index:7;text-align:center;filter:drop-shadow(0 7px 5px #0008);width:48px;transition:left 40ms linear,top 40ms linear;position:absolute;transform:translate(-50%,-50%)}.player .head{font-size:36px;line-height:30px}.player .body{color:#ffd859;background:#4779cf;border-radius:9px 9px 13px 13px;width:31px;height:35px;margin:auto;padding-top:7px;font-size:15px}.player>i{font-size:25px;font-style:normal;position:absolute;top:9px;left:-17px}.toast{z-index:9;white-space:nowrap;background:#111a37e8;border:1px solid #ffffff28;border-radius:20px;padding:10px 18px;font-size:13px;position:absolute;bottom:8%;left:50%;transform:translate(-50%)}@keyframes bob{50%{transform:translateY(-8px)}}@keyframes glow{50%{box-shadow:0 0 38px #ffe47799}}@keyframes shake{50%{transform:translate(4px)rotate(4deg)}}aside{background:#0c1229;width:24%;padding:18px;overflow:auto}aside h2{color:#ffe05e;margin:0 0 16px;font-size:18px}.tasks{flex-direction:column;gap:7px;display:flex}.tasks>div{background:#ffffff08;border:1px solid #ffffff08;border-radius:10px;align-items:center;gap:8px;padding:10px;font-size:11px;display:flex}.tasks>div span{background:#2b3553;border-radius:50%;place-items:center;width:20px;height:20px;display:grid}.tasks .active{color:#ffe98d;background:#ffc94b16;border-color:#ffc94b55}.tasks .active span{background:#d59c28}.tasks .complete{opacity:.45}.tasks .complete span{background:#388b5b}aside h3{justify-content:space-between;margin:18px 0 6px;font-size:12px;display:flex}.noise{background:#303750;border-radius:10px;height:17px;overflow:hidden}.noise i{background:linear-gradient(90deg,#42d56a,#ffd24d 60%,#ff4e4e);height:100%;transition:all .2s;display:block}.sleep{background:#244b3d;border-radius:8px;margin-top:9px;padding:9px;font-size:11px}.sleep.danger{background:#8d303b;animation:.3s infinite shake}aside p{color:#aeb8d4;font-size:10px;line-height:1.6}footer{background:#080d20;border-top:1px solid #ffffff14;justify-content:space-around;align-items:center;width:100%;height:132px;display:flex;position:absolute;bottom:0}.dpad{flex-direction:column;align-items:center;width:120px;display:flex}.dpad div{gap:36px;display:flex}.dpad button{background:#34405f;border-radius:50%;width:39px;height:39px;box-shadow:inset 0 0 0 2px #ffffff10}.interact,.quiet{border-radius:50%;width:84px;height:84px;font-size:29px;box-shadow:inset 0 0 0 3px #ffffff20,0 8px 16px #0007}.interact{background:#ec7447}.quiet{background:#5367d6}.interact small,.quiet small{font-size:10px;display:block}.overlay{z-index:20;text-align:center;background:radial-gradient(circle at 50% 35%,#34458d,#080b1e 70%);flex-direction:column;justify-content:center;align-items:center;padding:25px;display:flex;position:absolute;inset:0}.logo{gap:5px;font-size:75px;display:flex}.menu h1{color:#ffe35e;margin:10px;font-size:54px}.menu h2{max-width:450px;font-size:17px;font-weight:400}.overlay button{background:#f47746;border-radius:28px;margin:18px;padding:14px 42px;font-size:20px;font-weight:700;box-shadow:0 8px 22px #0005}.features{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.features span{background:#ffffff0c;border:1px solid #ffffff18;border-radius:15px;padding:8px 12px;font-size:11px}.card{background:#1c2753;border:2px solid #ffffff1c;border-radius:26px;min-width:300px;padding:28px;box-shadow:0 25px 60px #0008}.big{font-size:70px}.card h1{color:#ffe35e}.card p{color:#bdc7e3;font-size:13px}.winStars{font-size:35px}.haunted .room{background:linear-gradient(145deg,#403342,#28243b)}.pirate .room{background:linear-gradient(145deg,#75522e,#50391f)}.space .room{background:linear-gradient(145deg,#35435a,#222b45)}.dino .room{background:linear-gradient(145deg,#52623b,#35472f)}@media (width<=700px){header{height:56px;font-size:12px}.layout{top:56px;bottom:116px}.world{border-width:4px;width:72%}.room{border-width:3px}.prop{font-size:24px}.fridge{width:38px;height:65px;padding-top:10px}.sofa,.desk,.toybox{font-size:38px}.table{font-size:45px}.dad{top:29%;right:10%}.dad span{font-size:45px}.player{width:40px}.player .head{font-size:30px}.player .body{width:26px;height:30px}.objective i{font-size:34px}.dropzone{width:75px;height:52px;left:43%}aside{width:28%;padding:7px}aside h2{font-size:13px}.tasks>div{gap:4px;padding:6px;font-size:8px}.tasks>div span{width:15px;height:15px;font-size:8px}aside p{display:none}footer{height:116px}.dpad{transform:scale(.88)}.interact,.quiet{width:70px;height:70px}.menu h1{font-size:40px}.logo{font-size:55px}}.scene3d{z-index:0;pointer-events:none;position:absolute;inset:0;overflow:hidden}.scene3d canvas{touch-action:none;display:block;width:100%!important;height:100%!important}.world>.room,.world>.hall{opacity:.12;pointer-events:none}.world>.player,.world>.objective,.world>.dropzone,.world>.toast,.world>.cat{z-index:5}footer{padding-bottom:max(10px,env(safe-area-inset-bottom))}header{padding-top:max(8px,env(safe-area-inset-top))}@media (width<=900px){.scene3d{filter:saturate(.95)}}.world>.player{display:none}@media (orientation:portrait) and (width<=700px){.world{min-height:62vh}.hud{font-size:.88rem}.controls{transform-origin:bottom;transform:scale(.92)}}@media (orientation:landscape) and (height<=560px){header{min-height:48px}.world{height:calc(100dvh - 96px);min-height:0}footer{z-index:20;pointer-events:none;background:0 0;position:absolute;inset:auto 0 0}footer button,.controls,.dpad{pointer-events:auto}.hud{max-width:46vw}}.joystick{touch-action:none;pointer-events:auto;background:#ffffff17;border:2px solid #ffffff3d;border-radius:50%;width:112px;height:112px;position:relative;box-shadow:inset 0 0 22px #00000047}.joystick:after{content:"✦";width:50px;height:50px;transform:translate(var(--jx,0px),var(--jy,0px));background:#ffffff2e;border:1px solid #ffffff59;border-radius:50%;place-items:center;font-size:24px;transition:transform 40ms linear;display:grid;position:absolute;top:29px;left:29px}@media (width<=480px){.joystick{width:96px;height:96px}.joystick:after{width:44px;height:44px;top:24px;left:24px}}.sceneFallback{text-align:center;z-index:1;background:linear-gradient(#111a32,#202b48);place-content:center;gap:8px;padding:24px;display:grid;position:absolute;inset:0}.sceneFallback b{font-size:1.1rem}.sceneFallback span{opacity:.82;max-width:32ch}.quiet.active{filter:brightness(1.2);transform:scale(.96)}.interact:disabled{opacity:.42;filter:saturate(.45);transform:none}.interact.ready{animation:1.15s ease-in-out infinite actionPulse}@keyframes actionPulse{50%{transform:scale(1.055);box-shadow:0 0 0 8px #ffd75e14}}.objectiveArrow{z-index:12;text-shadow:0 2px 8px #000;pointer-events:none;background:#ffd75e2e;border:1px solid #ffd75e8c;border-radius:50%;place-items:center;width:42px;height:42px;margin-left:-21px;font-size:26px;display:grid;position:absolute;bottom:126px;left:50%}.sceneLoading{white-space:nowrap;color:#fff;direction:rtl;background:#0a1020d1;border:1px solid #ffffff2e;border-radius:14px;padding:10px 14px;font:700 14px system-ui}.runStats{opacity:.68;margin:.35rem 0;font-size:.82rem}.tutorialTip{z-index:25;text-align:center;pointer-events:none;background:#0c1223e6;border:1px solid #ffd75e6b;border-radius:16px;max-width:min(86%,360px);padding:10px 14px;font-weight:800;position:absolute;bottom:150px;left:50%;transform:translate(-50%)}.progressSummary{background:#ffffff12;border-radius:14px;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px;margin:10px auto 16px;padding:9px 14px;display:flex}.resetProgress{opacity:.62;background:0 0!important;border:1px solid #ffffff2e!important;margin-top:8px!important;padding:7px 10px!important;font-size:.78rem!important}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}@media (orientation:landscape) and (height<=520px){header{padding-top:max(6px,env(safe-area-inset-top));min-height:48px}footer{padding-bottom:max(6px,env(safe-area-inset-bottom))}.joystick{width:82px;height:82px}.joystick:after{width:38px;height:38px;top:20px;left:20px}.tutorialTip{bottom:98px}aside{font-size:.82rem}}.funInteract{left:50%;bottom:max(18px,env(safe-area-inset-bottom));z-index:35;min-width:72px;position:absolute;transform:translate(-50%);background:#463069eb!important;border:1px solid #debfff8c!important}.funInteract small{font-size:.68rem;display:block}.dadBubble{z-index:24;color:#252536;pointer-events:none;background:#ffffffeb;border-radius:14px 14px 3px;padding:7px 11px;font-weight:900;animation:1.3s infinite actionPulse;position:absolute;top:38%;right:19%}@media (width<=600px){.funInteract{bottom:112px}.dadBubble{top:34%;right:8%}}.badgePop{z-index:45;color:#30230b;pointer-events:none;background:#ffcd46f0;border-radius:999px;padding:10px 18px;font-weight:1000;animation:.75s ease-in-out 2 actionPulse;position:absolute;top:18%;left:50%;transform:translate(-50%);box-shadow:0 8px 30px #0000004d}.missionProgress{background:#ffffff1a;border-radius:999px;height:6px;margin:5px 0 2px;overflow:hidden}.missionProgress i{border-radius:inherit;background:currentColor;height:100%;transition:width .25s;display:block}.dangerMode .world:after{content:"";pointer-events:none;z-index:8;position:absolute;inset:0;box-shadow:inset 0 0 60px #b4191e2e}.streak{font-weight:900}.transition .card{animation:.65s ease-in-out actionPulse}@media (orientation:landscape) and (height<=650px){.app{width:100vw;max-width:none;height:100dvh;overflow:hidden}header{height:48px;min-height:0;padding:0 max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left));z-index:15;background:linear-gradient(#070c20e0,#070c202e);border:0;justify-content:center;gap:clamp(12px,4vw,48px);position:absolute;top:0;left:0;right:0}header div{right:max(14px,env(safe-area-inset-right));background:#0a122bd6;border:1px solid #6d9cff70;border-radius:12px;padding:5px 12px;position:absolute;top:6px}header button{left:max(14px,env(safe-area-inset-left));position:absolute;top:7px}.layout{display:block;position:absolute;inset:0}.world{border:0;width:100%;height:100dvh;min-height:0;position:absolute;inset:0}aside{left:max(8px,env(safe-area-inset-left));z-index:12;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:#080f25d4;border:1px solid #6d9cff50;border-radius:14px;width:clamp(185px,23vw,280px);max-height:calc(100dvh - 140px);padding:10px;position:absolute;top:56px;overflow:auto}aside h2{margin:0 0 7px;font-size:clamp(12px,1.6vw,16px)}.tasks{gap:4px}.tasks>div{padding:6px;font-size:clamp(10px,1.15vw,13px)}aside h3{margin:9px 0 4px}.noise{height:9px}.sleep{margin-top:5px;padding:5px}footer{height:120px;padding:0 max(18px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));pointer-events:none;z-index:20;background:0 0;border:0;justify-content:flex-end;gap:18px;position:absolute;inset:auto 0 0}footer .joystick{left:max(20px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));pointer-events:auto;width:100px;height:100px;position:absolute}footer .joystick:after{width:44px;height:44px;top:26px;left:26px}footer .interact,footer .quiet{pointer-events:auto;width:78px;height:78px}.tutorialTip{max-width:300px;bottom:clamp(90px,19vh,120px)}.funInteract{bottom:100px;left:auto;right:210px;transform:none}.objectiveArrow{bottom:105px}.overlay{padding:12px}.menu h1{font-size:32px}.logo{font-size:36px}.menu h2{font-size:13px}.overlay button{margin:8px;padding:9px 22px;font-size:15px}.card{padding:16px}.big{font-size:36px}}@media (orientation:portrait) and (width<=800px){.app:after{content:"📱 ↻\\A لف الموبايل بالعرض علشان تلعب";white-space:pre-line;z-index:100;color:#fff;text-align:center;pointer-events:auto;background:#0b1330;place-content:center;padding:24px;font-size:clamp(20px,5vw,28px);font-weight:800;line-height:2;display:grid;position:fixed;inset:0}}.tutorialTip{pointer-events:auto;max-width:min(84vw,350px);padding-inline:38px 20px}.tutorialClose{touch-action:manipulation;background:#ffffff24;border-radius:50%;place-items:center;width:30px;height:30px;font-size:23px;line-height:1;display:grid;position:absolute;top:4px;left:5px}.tutorialClose:focus-visible{outline-offset:2px;outline:2px solid #ffe477}.character-lab-link{color:#fff;background:#293e6b;border:1px solid #96b5ff80;border-radius:99px;justify-content:center;align-items:center;margin:-4px 0 14px;padding:10px 18px;font-size:14px;font-weight:700;text-decoration:none;display:inline-flex;box-shadow:0 7px 20px #0004}.character-lab-link:hover,.character-lab-link:focus-visible{outline-offset:2px;background:#385586;outline:2px solid #fbd56a}
