@font-face{font-family:Sarab;src:url('./fonts/arabic.woff')}@font-face{font-family:Sarab;src:url('./fonts/arabic-bold.woff');font-weight:700}@font-face{font-family:Display;src:url('./fonts/display.woff')}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:Sarab,Tahoma,sans-serif;background:#e7cf9b;color:#294d40;font-size:14px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:disabled{opacity:.42;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #bc8a44;outline-offset:3px}button{transition:background .15s,transform .15s,box-shadow .15s}button:hover:not(:disabled){filter:brightness(1.06)}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}.topbar{height:82px;background:#fcf5e7;display:flex;align-items:center;padding:0 24px;gap:30px;box-shadow:0 3px 20px #573e3022;position:relative;z-index:20;border-bottom:1px solid #fff9df}.brand{min-width:120px;display:flex;flex-direction:column;align-items:center;text-decoration:none;color:#285a46;line-height:1.2}.brand b{font-family:Display,Sarab;font-size:40px}.brand small{font-size:10px;letter-spacing:2px;color:#9c793f}.resources{display:flex;gap:28px;align-items:center;justify-content:center;flex:1}.resource{display:flex;gap:7px;align-items:center;direction:ltr;min-width:88px}.resource strong{display:block;font-size:18px;color:#36543e;line-height:1.25}.resource small{display:block;color:#917a57;font-size:10px}.resource .art-icon{width:34px;height:34px}.resource .rate{font-size:10px;color:#67816b}.time-controls{display:flex;gap:7px;direction:ltr}.time-controls button{border:1px solid #e4d8bd;background:#f5ebd7;color:#526451;border-radius:9px;height:36px;min-width:36px}.time-controls #pause.paused{background:#bd8750;color:white}#stage{height:calc(100% - 82px);position:relative;overflow:hidden}#realm{width:100%;height:100%;display:block;touch-action:none;cursor:grab}.location{position:absolute;right:127px;top:23px;pointer-events:none;text-shadow:0 1px 4px #ffefb3}.location .kicker{font-size:10px;letter-spacing:2px;color:#7d6843}.location h1{font-family:Display,Sarab;font-size:27px;margin:3px 0 2px;color:#31523c}.location>span:last-child{font-size:11px;color:#6e684a}.weather-chip{position:absolute;left:28px;top:24px;background:#fffaeced;border:1px solid #fff6d8;border-radius:13px;box-shadow:0 5px 18px #75582f15;padding:10px 15px;display:flex;align-items:center;gap:11px;text-align:right;color:#345440}.weather-chip>span:first-child{font-size:30px;color:#b58c3d}.weather-chip b{display:block;font-size:13px}.weather-chip small{display:block;font-size:10px;color:#8a7c5d;margin-top:2px}.dock{position:absolute;right:19px;top:22px;display:flex;flex-direction:column;gap:2px;border:1px solid #f8e7bc;background:#fdf4dfed;border-radius:18px;padding:9px 6px;box-shadow:0 12px 35px #74572725;width:79px;max-height:calc(100% - 125px);overflow:auto}.dock button{position:relative;background:transparent;color:#6f674f;display:flex;align-items:center;flex-direction:column;padding:8px 2px 6px;border-radius:10px;min-height:62px}.dock button>span{display:block;height:33px}.dock .art-icon{width:34px;height:34px}.dock button b{font-size:10px;font-weight:400;margin-top:4px}.dock button.active{background:#2d5747;color:#fff2ce}.dock button:hover:not(.active){background:#efddb4}.dock i{display:none;position:absolute;top:6px;right:10px;width:7px;height:7px;background:#bd7544;border-radius:50%;border:1px solid #ffedc5}.dock i.ready{display:block}.bottom-left{position:absolute;left:24px;bottom:50px;display:flex;align-items:flex-end;gap:12px}.mini-wrap{width:180px;background:#294e41;box-shadow:0 6px 24px #3e472631;border-radius:12px;overflow:hidden;border:3px solid #fcf1d1}.mini-wrap canvas{width:174px;height:116px;display:block;cursor:crosshair}.mini-wrap span{display:block;text-align:center;font-size:9px;color:#f6e7bf;padding:4px 2px}.view-tabs{background:#faf2dd;display:flex;border:1px solid #fff5d3;border-radius:10px;padding:4px;box-shadow:0 6px 20px #5e482f22;gap:3px}.view-tabs button{background:transparent;color:#756c4f;padding:10px 20px;border-radius:7px;font-size:13px}.view-tabs button span{display:block;font-size:8px;color:#aa925e}.view-tabs button.active{background:#285340;color:#fff2cc}.view-tabs button.active span{color:#dbc58e}.quest-peek{position:absolute;right:124px;bottom:52px;display:flex;gap:12px;align-items:center;max-width:340px;background:#fcf3dfed;padding:13px 16px;border-radius:14px;text-align:right;color:#385443;box-shadow:0 9px 28px #74572822;border:1px solid #fff4ce}.quest-peek .quest-seal{background:#d4b775;color:#fff4d0;border-radius:50%;width:39px;height:39px;display:grid;place-items:center;font-family:Georgia;font-size:20px}.quest-peek small{display:block;font-size:9px;color:#9a8153}.quest-peek b{display:block;font-size:13px}.quest-peek em{display:block;font-size:9px;color:#8b7d5e;font-style:normal;max-width:210px}.quest-peek>strong{font-size:22px;color:#9c8755}.bottom-status{position:absolute;bottom:0;left:0;right:0;background:#fcf2dbde;display:flex;justify-content:center;align-items:center;gap:13px;height:31px;font-size:9px;color:#776c4c;border-top:1px solid #e6d3a9}.bottom-status i{height:3px;width:3px;background:#ae9867;border-radius:50%}.camera-controls{position:absolute;left:25px;top:111px;display:flex;flex-direction:column;gap:5px}.camera-controls button{height:34px;width:34px;background:#fcf5e5ef;border:1px solid #f3e8ca;border-radius:8px;color:#546348;font-size:22px}.world-tools{position:absolute;top:26px;left:50%;transform:translateX(-50%);display:flex;gap:5px;width:360px;max-width:40%;padding:5px;border-radius:10px;background:#fcf5e7f5;box-shadow:0 5px 20px #5b472522}.world-tools input{width:65%;min-width:0}.world-tools input,.world-tools select{border:0;background:transparent;padding:7px;color:#405a47;font-size:11px}.world-tools select{width:35%}#search-results{position:absolute;top:100%;right:0;left:0;background:#fff8e8;padding:7px;border-radius:9px;max-height:250px;overflow:auto;box-shadow:0 8px 20px #5b472533}#search-results button{display:block;width:100%;text-align:right;background:none;padding:9px;color:#365541;border-bottom:1px solid #e5d8b7}.panel{position:absolute;top:112px;left:74px;bottom:48px;width:360px;max-width:calc(100% - 185px);background:#fffaee;z-index:15;box-shadow:0 16px 60px #3c412333;border-radius:16px;border:1px solid #fff8df;overflow:hidden;display:flex;flex-direction:column}.panel>header{display:flex;justify-content:space-between;align-items:center;padding:18px 22px 14px;border-bottom:1px solid #e8dec5;background:#f5ecd8}.panel h2{font-family:Display,Sarab;font-size:23px;margin:3px 0 0;color:#2e5340}.panel header small{font-size:9px;color:#ad8750;letter-spacing:1px}.panel header button{font-size:25px;background:transparent;color:#927f59}#panel-body{padding:19px;overflow:auto;overscroll-behavior:contain;flex:1;scrollbar-width:thin;scrollbar-color:#c9b68a transparent}.panel.wide{width:490px}.panel p{line-height:1.9;color:#746c53;font-size:12px;margin:8px 0 14px}.panel h3{font-size:14px;color:#325440;margin:14px 0 8px}.muted{color:#988a6b;font-size:10px}.tag{display:inline-block;font-size:9px;padding:4px 8px;border:1px solid #deceb0;border-radius:20px;color:#826f47;background:#f4ead6}.tag.green{background:#e1eddb;color:#3e704d;border-color:#c5dabb}.tag.red{background:#f3ded4;color:#a36049;border-color:#eac6b5}.button{display:inline-flex;justify-content:center;align-items:center;gap:7px;border-radius:8px;background:#2d5945;color:#fff3d2;padding:10px 15px;font-size:12px;min-height:37px}.button.secondary{background:#efe3c8;color:#5b6548;border:1px solid #dfcdaa}.button.danger{background:#965447}.button.full{width:100%}.button.small{padding:7px 10px;min-height:30px;font-size:10px}.button-row{display:flex;gap:7px;margin:13px 0 6px;flex-wrap:wrap}.section-note{background:#f0e7d0;padding:12px;border-right:3px solid #b89958;border-radius:6px;font-size:11px;color:#7c704e;line-height:1.9;margin:10px 0}.costs{display:flex;gap:8px;flex-wrap:wrap;direction:ltr;justify-content:flex-end;margin:9px 0;font-size:11px;color:#7f724e}.costs>span{display:flex;align-items:center;gap:3px}.costs .art-icon{width:19px;height:19px}.costs .short{color:#b55f49}.build-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.build-card{background:#f6ecd6;border:1px solid #e8d7b1;border-radius:10px;padding:10px;text-align:center;color:#36533d}.build-card img{height:82px;width:100%;object-fit:contain;filter:drop-shadow(0 4px 3px #71562b15)}.build-card b{display:block;font-size:11px;margin:6px 0}.build-card small{font-size:9px;color:#967e50}.build-card:hover{box-shadow:0 5px 15px #85643222}.building-hero{width:100%;height:170px;object-fit:contain}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:12px 0}.metric{background:#f2e8d0;border:1px solid #e7d8b5;border-radius:8px;text-align:center;padding:10px 3px}.metric b{display:block;font-size:17px;color:#375840}.metric small{font-size:9px;color:#928159}.card{border:1px solid #e5d8b8;border-radius:10px;padding:13px;margin:10px 0;background:#fbf3e1}.card h3{margin:0 0 6px}.card.done{opacity:.65}.card-title{display:flex;justify-content:space-between;align-items:center;gap:6px}.card .art-icon{width:36px;height:36px}.progress{height:6px;background:#e7d9b9;border-radius:5px;margin:12px 0;overflow:hidden}.progress i{display:block;height:100%;background:#75915c;border-radius:5px}.unit-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e8ddc4;padding:12px 0}.unit-row>.art-icon{width:55px;height:65px}.unit-row>div{flex:1}.unit-row b{font-size:12px;display:block}.unit-row small{font-size:10px;color:#9b865e}.unit-row input{width:60px}.field{display:flex;flex-direction:column;gap:7px;margin:14px 0}.field label{font-size:11px;color:#776b4d}input,select{border:1px solid #deceb0;border-radius:7px;padding:8px;background:#fff9ee;color:#365541;max-width:100%}input[type=range]{padding:0;accent-color:#44704c;width:100%}.steps{display:flex;gap:5px;margin:0 0 20px}.steps span{height:5px;flex:1;background:#e7d9ba;border-radius:4px}.steps span.active{background:#bd9752}.choice{display:block;width:100%;border:1px solid #e0d0ac;border-radius:9px;text-align:right;background:#f8efda;padding:12px;color:#4a6045;margin:8px 0}.choice.active{background:#e0e9d2;border-color:#69875b;box-shadow:inset -3px 0 #52794e}.choice b{display:block;font-size:12px}.choice small{display:block;line-height:1.8;font-size:10px;color:#8d7d57;margin-top:3px}.story-art{height:110px;border-radius:9px;background:linear-gradient(0deg,#1f4b4680,transparent),url('./assets/barood/mahad/world.webp') center 50%/cover;margin-bottom:15px;display:flex;align-items:flex-end;padding:15px;color:white;font-family:Display,Sarab;font-size:24px}.tabs{display:flex;gap:5px;margin:0 0 14px}.tabs button{flex:1;background:#efe4cc;color:#7f704c;border-radius:7px;padding:9px;font-size:11px}.tabs button.active{background:#315b46;color:#fff1cb}.ruler{display:flex;gap:10px;align-items:center;background:#f7edd7;border:1px solid #e3d4b1;border-radius:9px;padding:12px;margin:8px 0;cursor:pointer}.ruler .seal{width:38px;height:45px;border-radius:6px 6px 18px 18px;display:grid;place-items:center;color:#fff4cd;font-family:Display;font-size:22px}.ruler div:nth-child(2){flex:1}.ruler b{font-size:12px;display:block}.ruler small{font-size:10px;color:#8f805a}.ruler strong{font-size:12px;color:#8f7641}.feed-item{padding:10px 0;border-bottom:1px solid #e5d8ba;line-height:1.8;font-size:11px;color:#716b53}.feed-item small{color:#ac935e;display:block;font-size:9px}.placement{position:absolute;left:50%;bottom:130px;transform:translateX(-50%);background:#2b5947;color:#fff2ce;padding:14px 20px;border-radius:12px;display:flex;gap:14px;align-items:center;box-shadow:0 6px 30px #24392d44;z-index:12}.placement span{font-size:11px}.placement button{background:#fff0cf;color:#35533e;padding:7px 15px;border-radius:6px}.placement b{white-space:nowrap}#toasts{position:absolute;top:100px;left:50%;transform:translateX(-50%);z-index:30;width:370px;max-width:70%;pointer-events:none}.toast{background:#2d5547f5;color:#fff2d0;box-shadow:0 10px 25px #4d482333;border:1px solid #769375;padding:12px 18px;border-radius:10px;margin:8px 0;font-size:12px;animation:toastIn .25s}.toast.error{background:#8e5141}.empty{padding:25px 10px;text-align:center;font-size:12px;color:#9c8c69}.weather-list .card{display:flex;gap:12px}.weather-list .symbol{font-size:33px;color:#bc9858}.mission-line{padding:10px;border-radius:7px;background:#e6ecd9;margin:7px 0;font-size:10px;line-height:1.8}.hidden{display:none}@keyframes toastIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1600px){.topbar{padding-inline:40px}.location{right:140px;top:28px}.dock{right:28px}.panel{left:85px;width:380px}.quest-peek{right:140px}}@media(max-width:1000px){.resources{gap:10px}.topbar{gap:15px;padding:0 15px}.resource{min-width:70px}.resource strong{font-size:15px}.resource .art-icon{width:27px;height:27px}.quest-peek{max-width:280px;right:110px}.quest-peek em{max-width:180px}.world-tools{top:104px;left:48%;width:330px}.panel{left:68px;width:330px}.mini-wrap{width:140px}.mini-wrap canvas{width:134px;height:90px}.view-tabs button{padding:10px 14px}}@media(max-width:700px){.topbar{height:103px;align-items:flex-start;padding-top:9px;gap:10px}.brand{min-width:80px}.brand b{font-size:29px}.brand small{font-size:7px}.resources{position:absolute;bottom:8px;left:9px;right:9px;justify-content:space-around;gap:0}.resource{min-width:0;gap:4px}.resource strong{font-size:12px}.resource small{font-size:8px}.resource .art-icon{width:23px;height:23px}.resource .rate{display:none}.time-controls{margin-right:auto}.time-controls button{height:29px;min-width:29px;font-size:11px}#stage{height:calc(100% - 103px)}.dock{top:auto;bottom:30px;right:0;left:0;width:100%;border-radius:0;flex-direction:row;justify-content:space-around;padding:4px 3px;gap:0;max-height:70px;border:0}.dock button{min-height:56px;padding:3px 6px}.dock button>span{height:29px}.dock .art-icon{width:27px;height:27px}.dock button b{font-size:8px}.location{right:18px;top:15px}.location h1{font-size:22px}.location .kicker{font-size:8px}.location>span:last-child{font-size:9px}.weather-chip{top:15px;left:13px;padding:6px 9px;gap:5px}.weather-chip>span:first-child{font-size:23px}.weather-chip b{font-size:10px}.weather-chip small{font-size:8px}.camera-controls{top:85px;left:13px;gap:4px}.camera-controls button{width:29px;height:29px;font-size:19px}.bottom-left{left:12px;bottom:102px;gap:6px}.mini-wrap{width:96px;border-width:2px}.mini-wrap canvas{width:92px;height:61px}.mini-wrap span{font-size:6px}.view-tabs{padding:3px}.view-tabs button{font-size:10px;padding:7px 11px}.view-tabs button span{font-size:6px}.quest-peek{right:14px;bottom:191px;max-width:210px;padding:8px;gap:7px}.quest-peek .quest-seal{width:25px;height:25px;font-size:13px}.quest-peek small{font-size:7px}.quest-peek b{font-size:10px}.quest-peek em{font-size:8px;max-width:140px}.quest-peek>strong{font-size:16px}.bottom-status{font-size:7px;gap:8px}.panel,.panel.wide{top:77px;left:9px;right:9px;bottom:99px;width:auto;max-width:none;border-radius:12px}.panel header{padding:12px 16px}.panel h2{font-size:21px}#panel-body{padding:15px}.world-tools{top:82px;right:56px;left:12px;transform:none;width:auto;max-width:none}.world-tools input,.world-tools select{font-size:10px}.placement{bottom:108px;width:94%;padding:10px;gap:7px;flex-wrap:wrap}.placement span{font-size:9px}#toasts{top:72px;max-width:88%;width:330px}.toast{font-size:11px}.build-card img{height:75px}}
/* Village life module: deliberately small on the map, full controls in the existing panel. */
.village-life{position:absolute;top:28px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:13px;background:#fcf5e7ed;border:1px solid #fff3d1;border-radius:12px;color:#365b47;padding:10px 17px;text-align:right;box-shadow:0 6px 24px #68533318;min-width:218px}.village-life b{display:block;font-size:12px}.village-life small{display:block;font-size:9px;color:#8c7a54;margin-top:3px}.village-life>span:last-child{margin-right:auto;color:#9c8249}.life-dot{width:8px;height:8px;border-radius:50%;background:#739d66;box-shadow:0 0 0 4px #739d6618}.life-panel-art{border-radius:10px;background:linear-gradient(100deg,#1b4a42e0,#365b44b0),url('./assets/cartoon-village-desert.webp') center/cover;padding:26px 20px;color:#ffefc2}.life-panel-art span{display:block;font-size:10px;color:#d7c699}.life-panel-art b{display:block;font-family:Display,Sarab;font-size:26px;margin-top:5px}.role-swatch{display:inline-block;width:9px;height:9px;border-radius:50%;margin-left:8px}.choice.compact{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;margin:5px 0}.choice.compact small{margin:0}.life-explainer{border-top:1px solid #e4d5b5;margin-top:20px;padding-top:15px;font-size:12px}.life-explainer summary{cursor:pointer;color:#325641}.resident-seal{margin:12px auto 20px;width:86px;height:96px;background:var(--role-color);border:5px double #f4d89b;color:#fff0cc;border-radius:18px 18px 36px 36px;display:grid;place-items:center;font-family:Display,Sarab;font-size:44px;box-shadow:0 9px 20px #7a633322}.resident-route{display:grid;gap:9px;background:#f2e8d0;border-radius:10px;padding:18px;text-align:center;font-size:13px}.resident-route span{color:#aa8750}.resident-route+.button{margin-top:14px}@media(max-width:1000px){.village-life{top:100px;min-width:190px;padding:8px 12px}}@media(max-width:700px){.village-life{top:85px;left:auto;right:14px;transform:none;min-width:172px;gap:9px;padding:7px 11px}.village-life b{font-size:10px}.village-life small{font-size:8px}.quest-peek{display:none}}@media(max-height:500px) and (min-width:701px){.village-life{top:18px;min-width:180px}.topbar{height:61px}#stage{height:calc(100% - 61px)}.location{top:16px}.location h1{font-size:22px}.weather-chip{top:14px}.camera-controls{top:93px}.quest-peek{display:none}.mini-wrap{display:none}.panel{top:15px}.dock{top:12px;max-height:calc(100% - 65px)}.dock button{min-height:48px}}
