/* land.css — اللعبة بالعرض (بعد الدخول). --W و--H = عرض وطول الشاشة بعد اللف، و--fs = حجم الخط من الإعدادات (الخط بس) */
html.land{scrollbar-gutter:auto}
html.land body{overflow:hidden;background:#a9dcff;overscroll-behavior:none}
html.land #app{max-width:none;width:var(--W);height:var(--H);min-height:0;margin:0;overflow:hidden}
/* الموبايل بالطول: اللعبة نفسها بتتلف 90° فاللاعب يلف الموبايل (من غير التدوير التلقائي) */
html.rot,html.rot body{height:auto!important}
html.rot body{position:fixed;top:0;left:0;width:var(--W);max-width:none;height:var(--H)!important;transform:translateX(var(--H)) rotate(90deg);transform-origin:0 0}
.lpage{position:fixed;inset:0;padding:0!important;margin:0;max-width:none!important;font-family:'Lalezar','Reem Kufi',var(--f-display);color:#1f3354;overflow:hidden}
.lpage .lcity.cityp{position:absolute;inset:0;left:0;top:0;bottom:0;transform:none;width:auto;max-width:none;display:block;background:#a9dcff}
.lpage .lcity .chost{position:absolute;inset:0;min-height:0}
.lpage .czb{display:none!important}
/* ---------- الشريط العلوي: صف واحد، حجمه ثابت ---------- */
.ltop{position:absolute;top:10px;inset-inline:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:6;pointer-events:none}
.ltop>*{pointer-events:auto}
.ls{display:flex;align-items:center;gap:10px;flex:1 1 auto;min-width:0}
.lav{width:58px;height:58px;border-radius:50%;background:#fff;border:4px solid #1f4f86;box-shadow:0 4px 0 #1f4f86;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:none}
.lav>*{transform:scale(1.55)}
.lcbox{position:relative;display:flex;height:54px;flex:none;filter:drop-shadow(0 4px 0 #1f4f86)}
.lcn,.lsb{height:100%;border:3px solid #1f4f86;background:linear-gradient(180deg,#6fb8f0,#3d84cf);font-family:inherit;cursor:pointer;color:#fff;display:flex;align-items:center;justify-content:center}
.lcn{width:190px;min-width:0;box-sizing:border-box;padding:0 12px;gap:10px;border-radius:0;border-start-start-radius:14px;border-end-start-radius:14px}

.lsb{width:42px;padding:0;margin-inline-start:-3px;border-start-end-radius:14px;border-end-end-radius:14px}
.lcnt{display:flex;align-items:center;justify-content:center;gap:6px;flex:1 1 0;min-width:0;overflow:hidden;padding:0 3px}
.lnm{font-size:calc(19px * var(--fs));line-height:1.05;-webkit-text-stroke:4px #1f3354;paint-order:stroke fill;white-space:nowrap;color:#fff}
.lnm .cn{-webkit-text-stroke:4px #1f3354;paint-order:stroke fill}
.lnm .cnum,.lnm .num{color:#ffd34d}
/* رقم البلد تحت الاسم وفي النص (من غير ما يغيّر حجم المربع) */
.lnm{display:grid;grid-template-columns:auto;justify-content:center;justify-items:center;align-items:center;row-gap:0;line-height:1.05}
.lnm .cn{text-align:center}
.lnm .cnum{margin:0;padding:0 6px;font-size:.6em;line-height:1.3}
.lnm>:not(.cn):not(.cnum){display:none}
.lsh svg{width:20px;height:20px;display:block}
.lchev{width:22px;height:22px;transition:transform .15s;filter:drop-shadow(0 1.5px 0 #1f3354)}
[dir=rtl] .lchev{transform:scaleX(-1)}
.lchev.o{transform:scaleX(-1)}
[dir=rtl] .lchev.o{transform:none}
.lstats{flex:1 1 auto;min-width:0;display:flex;gap:6px;height:54px}
.lchip{background:rgba(42,31,61,.94);border-radius:14px;border:3px solid #1f3354;padding:1px 8px;color:#fff;text-align:center;display:flex;flex-direction:column;justify-content:center;white-space:nowrap;flex:1 1 0;min-width:0;overflow:hidden;line-height:1.05}
.lchip small{font-size:calc(11px * var(--fs));color:#9fe0ff}
.lchip>b{font-size:calc(17px * var(--fs));font-weight:400}
.lchip .cap{font-size:calc(12px * var(--fs));opacity:.8}
.lchip em.y{font-style:normal;font-size:calc(10px * var(--fs));color:#ffd34d}
.lchip .cbar{height:4px;margin-top:1px}
.le{display:flex;align-items:center;gap:12px;flex:none}
.lgear{width:52px;height:52px;border:0;background:none;padding:0;cursor:pointer;filter:drop-shadow(0 3px 0 rgba(42,31,61,.55))}
.lgear svg{width:100%;height:100%;display:block}
.lmis{position:relative;width:68px;border:0;background:none;display:flex;flex-direction:column;align-items:center;font-family:inherit;padding:0;cursor:pointer}
.lmis svg{width:42px;height:42px;filter:drop-shadow(0 3px 0 rgba(42,31,61,.55))}
.lmis span,.lsbtn span{font-size:calc(15px * var(--fs));color:#fff;-webkit-text-stroke:4px #1f3354;paint-order:stroke fill;line-height:1.05;white-space:nowrap}
.ldot{position:absolute;top:-5px;inset-inline-end:-4px;width:22px;height:22px;border-radius:50%;background:#e8343f;border:2.5px solid #fff;color:#fff;font-style:normal;font-size:14px;line-height:17px;text-align:center;box-sizing:border-box}
.lup{width:132px;height:50px;border-radius:999px;border:4px solid #2a1f3d;background:linear-gradient(180deg,#ffe27a,#ffc93a);color:#2a1f3d;font-family:inherit;font-size:calc(20px * var(--fs));box-shadow:0 5px 0 #2a1f3d;display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;cursor:pointer;padding:0}
.lup svg{width:24px;height:24px;flex:none}
/* قائمة البلاد: عرضها من أول الصورة لآخر زر السهم */
.lmenu2{position:absolute;top:calc(100% + 10px);inset-inline-start:-68px;width:calc(100% + 68px);min-width:260px;border-radius:16px;border:3px solid #163a66;background:#2a6fc4;padding:8px;display:flex;flex-direction:column;gap:6px;box-shadow:0 6px 0 #163a66;filter:none;z-index:8}
.lmt{color:#bcd9f5;font-size:calc(14px * var(--fs));padding:0 4px}
.lmi{min-height:50px;width:100%;border-radius:12px;background:#1c4f8f;border:2px solid #12396a;display:flex;align-items:center;gap:8px;padding:0 10px;color:#fff;font-family:inherit;font-size:calc(17px * var(--fs));cursor:pointer;text-align:start}
.lmi .grow{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lmi.cur{border-color:#ffd34d;cursor:default}.lmi.cur svg{width:18px;height:18px}
.lmi.add{background:transparent;border:2px dashed rgba(255,255,255,.55);justify-content:center}
/* ---------- شريط الأزرار ---------- */
.lside{position:absolute;inset-inline-start:14px;bottom:14px;width:92px;display:flex;flex-direction:column;gap:10px;z-index:6}
.lsbtn{position:relative;height:78px;border-radius:16px;border:3px solid #1f4f86;background:linear-gradient(180deg,#6fb8f0,#3d84cf);box-shadow:0 4px 0 #1f4f86;padding:5px 0 0;display:flex;flex-direction:column;align-items:center;font-family:inherit;cursor:pointer}
.lsbtn>svg{width:42px;height:42px;flex:none}
.lsbtn.larm{flex-direction:row;align-items:center;justify-content:space-between;padding:0 4px}
.la1{display:flex;flex-direction:column;align-items:center;flex:1}
.la1 img{width:46px;height:46px;object-fit:contain}
.larm .lchev{width:18px;height:26px;flex:none}
.larmy{position:absolute;bottom:12px;inset-inline-start:120px;inset-inline-end:14px;height:92px;background:rgba(42,31,61,.88);border-radius:18px;padding:6px;z-index:6}
.larmy .carmy{display:flex;gap:6px;height:100%;padding:0}
.larmy .atile{flex:1 1 0;height:auto;min-width:0}
.larmy .atile .ic{width:48px;height:48px}
.larmy .atile b{font-size:calc(15px * var(--fs))}
.lban{position:absolute;top:80px;left:50%;transform:translateX(-50%);width:min(560px,60%);z-index:5}
/* ---------- العالم ---------- */
.lpage .lworld{position:absolute;inset:0;overflow:hidden;background:#1d4d82}
/* ---------- قالب النوافذ ---------- */
html.land .veil{align-items:center;justify-content:center;flex-direction:column;background:rgba(10,16,30,.55);font-family:'Lalezar','Reem Kufi',var(--f-display)}
html.land .veil>.wicon{position:relative;z-index:2;width:84px;height:84px;margin-bottom:-52px;display:flex;align-items:center;justify-content:center;filter:drop-shadow(0 4px 0 rgba(22,58,102,.9));pointer-events:none;flex:none}
html.land .veil>.wicon>*{width:78px!important;height:78px!important}
html.land .sheet{--panel:#1c4f8f;--panel2:#245ea5;--bg2:#2a6fc4;--line:#12396a;--line2:#12396a;--muted:#cfe4fb;--ink:#fff;
  position:relative;z-index:1;width:min(860px,calc(var(--W) - 170px));max-width:none;max-height:calc(var(--H) - 56px);margin-top:28px;border-radius:22px;border:4px solid #163a66;background:#2a6fc4;box-shadow:0 8px 0 #163a66;padding:0 16px 14px;color:#fff;gap:10px;animation:lpop .2s ease-out;font-size:calc(15px * var(--fs));overscroll-behavior:contain}
html.land:not([data-skin=day]) body{text-shadow:-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000,0 0 2px #000}
html.land:not([data-skin=day]) input,html.land:not([data-skin=day]) textarea,html.land:not([data-skin=day]) select,html.land:not([data-skin=day]) .chip.on,html.land:not([data-skin=day]) .chip.on *,html.land:not([data-skin=day]) .btn.gold,html.land:not([data-skin=day]) .btn.gold *{text-shadow:none}
html.land .sheet.hastb{padding-bottom:0}
html.land .sheet:has(.dfit){height:auto;max-height:calc(var(--H) - 56px)}
html.land .sheet:has(.dfit) .dsheet{flex:none}
html.land .sheet .fsel.langgrid{display:grid;grid-template-columns:repeat(9,auto);justify-content:center;gap:4px 6px}
html.land .sheet:has(.dfit) .chat{flex:none;min-height:0;max-height:calc(var(--H) - 340px)}
html.land .sheet:has(.dfit) .mchat{flex:none;height:auto;min-height:190px;max-height:calc(var(--H) - 340px)}
/* البريد: النافذة بطول الشاشة كلها دائما، وصندوق البريد يملأ ما تحت الأزرار */
html.land .sheet:has(.dfit):has(.mchat){height:calc((var(--H) - 24px) / var(--k,1));max-height:calc((var(--H) - 24px) / var(--k,1));margin-top:0}
html.land .veil:has(.mchat)>.wicon{display:none}   /* أيقونة النافذة كانت تغطي العنوان بعد ما صارت النافذة بطول الشاشة */
html.land .sheet:has(.dfit):has(.mchat)>h3.whd{min-height:50px;padding:8px 72px 6px}
html.land .sheet:has(.dfit):has(.mchat)>h3.whd .wtt{font-size:calc(24px * var(--fs))}
html.land .sheet:has(.dfit):has(.mchat)>h3.whd .wx{top:5px;width:40px;height:40px}
html.land .sheet:has(.dfit):has(.mchat)>.wtb{padding:6px 12px 8px}
html.land .sheet:has(.dfit):has(.mchat) .dsheet{flex:1;min-height:0}
html.land .sheet:has(.dfit) .mchat{flex:1;min-height:0;max-height:none}
@keyframes lpop{from{transform:scale(.94);opacity:0}to{transform:none;opacity:1}}
html.land .sheet>h3.whd{position:sticky;top:0;z-index:4;flex:none;margin:0 -16px;padding:32px 72px 10px;min-height:86px;background:linear-gradient(180deg,#8fd0ff,#4a9be6);border-radius:18px 18px 0 0;display:flex;justify-content:center;align-items:flex-end;text-align:center}
html.land .sheet>h3.whd .wtt{font-family:'Lalezar','Reem Kufi',var(--f-display);font-weight:400;font-size:calc(30px * var(--fs));line-height:1.1;color:#fff;-webkit-text-stroke:6px #1f3354;paint-order:stroke fill}
html.land .sheet>h3.whd .wx{position:absolute;top:12px;inset-inline-end:12px;width:50px;height:50px;border-radius:12px;border:4px solid #2a3346;background:linear-gradient(180deg,#9aa3b2,#6d7686);padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer}
html.land .sheet>h3.whd .wx svg{width:26px;height:26px}
html.land .sheet>.wtb{position:sticky;bottom:0;z-index:4;flex:none;margin:auto -16px 0;padding:10px 12px 12px;background:#2a6fc4;border-top:2px solid #12396a;border-radius:0 0 18px 18px;display:flex;justify-content:center}
html.land .sheet>.wtb>*{display:flex!important;flex-wrap:nowrap;gap:8px;justify-content:center;margin:0!important;width:auto;max-width:100%}
html.land .sheet>.wtb .newsseg .seg{display:contents}
html.land .sheet>.wtb .chip{flex:0 1 auto;min-width:110px;height:46px;min-height:0;padding:0 16px;border-radius:14px;border:3px solid #12396a;background:#1c4f8f;color:#fff;font-family:inherit;font-size:calc(17px * var(--fs));white-space:nowrap;box-shadow:0 3px 0 #12396a}
html.land .sheet>.wtb .chip.on{background:linear-gradient(180deg,#ffe27a,#ffc93a);border-color:#2a1f3d;color:#2a1f3d;box-shadow:0 3px 0 #2a1f3d}
/* المحتوى جوه اللوحة الزرقا: كروت زرقا غامقة والكلام أبيض */
html.land[data-skin] .sheet .card,html.land[data-skin] .sheet .mebar,html.land[data-skin] .sheet .news.event,html.land[data-skin] .sheet .jmsg{background:#1c4f8f;border:2px solid #12396a;box-shadow:none;color:#fff}
html.land[data-skin] .sheet .scr{background:rgba(255,255,255,.1)}
html.land .sheet .hint,html.land .sheet small{color:#cfe4fb}
html.land .sheet .f{color:#e4f1ff}
html.land .sheet b,html.land .sheet .card b{color:inherit}
/* ---------- الإعدادات ---------- */
html.land .sheet.wset{width:min(940px,calc(var(--W) - 150px))}
.lset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.lcol{display:flex;flex-direction:column;gap:10px}
.lrow{min-height:62px;border-radius:14px;background:#1c4f8f;border:2px solid #12396a;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 14px;color:#fff;font-size:calc(19px * var(--fs))}
.lrow.dng{background:#4a1f2e;border-color:#2e1018}
.lrl{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}
.lrl>svg{width:28px;height:28px;flex:none}
.lgift{flex-basis:100%;font-size:calc(12px * var(--fs));color:#ffd34d!important}
.lsw{position:relative;width:64px;height:36px;flex:none;border-radius:99px;border:3px solid #12396a;background:#8b97a8;padding:0;cursor:pointer;display:inline-block}
.lsw.on{background:#4cd964}
.lsw i{position:absolute;top:3px;inset-inline-start:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 2px 0 rgba(0,0,0,.25);transition:inset-inline-start .15s}
.lsw.on i{inset-inline-start:31px}
.lng{width:34px;height:34px;padding:0;border:0;background:none;cursor:pointer;filter:drop-shadow(0 2px 0 rgba(10,30,60,.7))}.lng svg{width:100%;height:100%}
.lbtn{min-height:44px;padding:0 18px;border-radius:12px;border:3px solid #12396a;background:#fff;color:#1f3354;font-family:inherit;font-size:calc(17px * var(--fs));cursor:pointer;display:inline-flex;align-items:center;gap:8px;white-space:nowrap;flex:none}
.lbtn.org{border-color:#8a4a10;background:linear-gradient(180deg,#ffb35a,#f08a1e);color:#fff;box-shadow:0 3px 0 #8a4a10}
.lbtn.red{border-color:#7a1420;background:linear-gradient(180deg,#ff6b6b,#d92a3a);color:#fff;box-shadow:0 3px 0 #7a1420}
.lbtn.org,.lbtn.red{-webkit-text-stroke:3px #5c0d16;paint-order:stroke fill}
.lfs{display:flex;align-items:center;gap:10px}.lfs input{width:150px;accent-color:#ffd34d}
.lfs b{min-width:56px;height:34px;border-radius:10px;background:#fff;color:#1f3354!important;font-weight:400;line-height:34px;text-align:center}
.lset0{text-align:center}
.llinks{margin-top:2px;padding-top:10px;border-top:2px dashed rgba(255,255,255,.35);display:flex;flex-wrap:wrap;justify-content:center;gap:6px 8px}
.llinks a{min-height:32px;padding:0 12px;border-radius:99px;background:rgba(18,57,106,.75);color:#fff;font-size:calc(15px * var(--fs));line-height:32px;text-decoration:none}
.llangs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.lnot{display:flex;flex-direction:column;gap:8px}.lnot #npBox{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}.lnot #npBox>b{grid-column:1/-1}
.lrl>span{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15}.lctl{display:flex;align-items:center;gap:10px}
/* ---------- المهام ---------- */
html.land .sheet.wmis{width:min(600px,calc(var(--W) - 150px))}
.lms{display:flex;flex-direction:column;gap:8px}
.lmr{display:flex;align-items:center;gap:12px;border-radius:14px;background:#1c4f8f;border:2px solid #12396a;padding:8px 10px 8px 14px}
.lmr .grow{flex:1;min-width:0}
.lmr .msb{height:8px;border-radius:99px;background:#12396a;overflow:hidden;margin:4px 0 2px}.lmr .msb i{display:block;height:100%;background:#4cd964;border-radius:99px}
.lmbox{position:relative;width:76px;height:62px;flex:none;border-radius:14px;border:3px solid #12396a;background:linear-gradient(180deg,#6fb8f0,#3d84cf);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.05;font-family:inherit;padding:0}
.lmbox b{font-size:calc(20px * var(--fs));font-weight:400;-webkit-text-stroke:3px #1f3354;paint-order:stroke fill}
.lmbox small{font-size:calc(12px * var(--fs));color:#fff!important}
.lmbox.ready{background:linear-gradient(180deg,#7ee36b,#3cbf55);border-color:#1f6b2e;box-shadow:0 3px 0 #1f6b2e;cursor:pointer}
.lmbox.done{background:linear-gradient(180deg,#b4bcc8,#8b95a5);border-color:#5d6675}.lmbox.done svg{width:34px;height:34px}
.lmbox .ldot{top:-8px;inset-inline-end:-8px}
html.land .sheet .tutc{position:static;width:auto;max-width:none;margin:0;transform:none;box-shadow:none}
html.land .sheet .tutc .tmin{display:none}
/* عمودين جوه النافذة */
.l2c{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.l2c>.lc{display:flex;flex-direction:column;gap:10px;min-width:0}
.lprem .list .row{color:#fff}
html.land .sheet.lone .l2c{grid-template-columns:minmax(0,1fr)}
html.land .sheet .ptabs .chip{min-width:0}
html.land .sheet .hint a{color:#fff;text-decoration:underline}
/* ---------- الجامعة ---------- */
html.land .sheet.wtech.wnar{width:min(620px,calc(var(--W) - 150px))}
.ltech .tsec{display:none}
.ltech .ctw{overflow:visible}
.ltech .ctab,.ltech .ctab tbody{display:block;width:100%}
.ltech .ctab thead{display:none}
.ltech .ctab tbody{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.ltech .ctab tr{display:flex;align-items:center;gap:8px;border-radius:14px;background:#1c4f8f;border:2px solid #12396a;padding:8px 10px}
.ltech .ctab td{display:block;border:0!important;padding:0!important;background:none!important}
.ltech .ctab td.n{flex:1;min-width:0}
.ltech .ctab td.tinf{display:none}
.ltech .ctab .tinf2{display:block;color:#ffd34d!important}
.ltech .ctab td.tn{white-space:nowrap}
.ltech .ctab td.ti .ic{width:36px;height:36px}
.ltech .ctab td.n.tinf{display:none!important}
.ltech .ctab td.act{flex:none}
.ltech .ctab tr{min-width:0;overflow:hidden}
html.land .sheet .tri.stk{position:static;background:none;padding:0}
.ltech .ctab td.act{width:auto!important}
.ltech .ctab td.act .btn{min-width:64px;padding:6px 12px;font-size:calc(14px * var(--fs))}
.ltech .ttab{font-size:calc(13px * var(--fs))}
.ltech .ttab td.n b{font-size:calc(15px * var(--fs))}
/* ---------- سوق السلاح: الوحدات عمودين، وبيانات كل وحدة في سطر واحد جنب الصورة ---------- */
html.land .sheet .tri.t2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html.land .sheet .tri .tb{text-align:center;align-items:center;justify-content:center;background:#1c4f8f;border:2px solid #12396a;border-radius:14px}
html.land .sheet .mkl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
html.land .sheet .mkr{background:#1c4f8f;border:2px solid #12396a;border-radius:14px;padding:6px 8px;min-width:0}
html.land .sheet .mkr .ic{width:40px;height:40px}
html.land .sheet .mkr .mm{display:flex;align-items:baseline;gap:6px;flex-wrap:nowrap;white-space:nowrap;overflow:hidden}
html.land .sheet .mkr .mm b{display:inline;font-size:calc(15px * var(--fs));overflow:hidden;text-overflow:ellipsis}
html.land .sheet .mkr .mm small{font-size:calc(12px * var(--fs))}
html.land .sheet .mkr .qty{width:64px;min-width:0}
html.land .sheet .mkr.fov .mm{flex-wrap:wrap;white-space:normal}
html.land .sheet .mkr .mm small .num{color:#ffd34d}
/* ---------- العالم ---------- */
.lworld .lwmap{position:absolute;inset:calc(var(--mt,72px) * var(--k,1)) 0 calc(var(--nb,96px) * var(--k,1)) 0;margin:0;border-radius:0;height:auto!important;max-height:none!important;aspect-ratio:auto}
.lworld .lwmap svg{width:100%;height:100%;display:block}



.lwq input{height:38px;width:150px;border-radius:99px;border:3px solid #1f4f86;background:#fff;color:#1f3354;padding:0 12px;font-family:inherit;font-size:calc(14px * var(--fs))}
.lwprot{position:absolute;top:82px;left:50%;transform:translateX(-50%);z-index:5;display:flex;flex-direction:column;align-items:center;gap:6px}
.lwprot>button{height:38px;border-radius:99px;background:linear-gradient(180deg,#a3283b,#7a1828);border:3px solid #4a0d17;color:#fff;display:flex;align-items:center;gap:8px;padding:0 16px;font-family:inherit;font-size:calc(15px * var(--fs));white-space:nowrap;box-shadow:0 3px 0 #4a0d17;cursor:pointer}
.lwprot>button svg{width:20px;height:20px}
.lprotd{width:min(520px,60vw)}
.lwme{position:absolute;bottom:16px;inset-inline-end:14px;z-index:5;height:46px;padding:0 16px;border-radius:99px;border:3px solid #1f4f86;background:#fff;color:#1f3354;font-family:inherit;font-size:calc(16px * var(--fs));display:flex;align-items:center;gap:6px;box-shadow:0 3px 0 #1f4f86;cursor:pointer}
.lwme svg{width:18px;height:18px}
.lwar{position:absolute;top:130px;inset-inline-start:14px;z-index:4;width:min(340px,40%)}
.lwrep{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);width:min(560px,60%);z-index:5;max-height:60%;overflow:auto}
.lwrep:empty{display:none}
/* اللوحة الجانبية */
.lwp{position:absolute;top:82px;bottom:74px;inset-inline-end:14px;width:390px;max-width:44%;border-radius:20px;border:4px solid #163a66;background:#2a6fc4;box-shadow:0 6px 0 #163a66;display:flex;flex-direction:column;overflow:hidden;z-index:5;color:#fff;
  --panel:#1c4f8f;--panel2:#245ea5;--line:#12396a;--line2:#12396a;--muted:#cfe4fb;--ink:#fff}
.lwph{display:flex;align-items:center;gap:10px;padding:10px 12px;background:linear-gradient(180deg,#8fd0ff,#4a9be6)}
.lwph b{font-size:calc(19px * var(--fs));color:#fff;-webkit-text-stroke:4px #1f3354;paint-order:stroke fill;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}
.lwb{width:42px;height:42px;flex:none;border-radius:12px;border:3px solid #1f4f86;background:#fff;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer}
.lwb svg{width:22px;height:22px}[dir=rtl] .lwb svg{transform:none}[dir=ltr] .lwb svg{transform:scaleX(-1)}
.lwpb{flex:1;min-height:0;overflow:auto;padding:10px;display:flex;flex-direction:column;gap:8px}
html.land[data-skin] .lwp .card{background:#1c4f8f;border:2px solid #12396a;box-shadow:none;color:#fff}
.lwp .hint,.lwp small{color:#cfe4fb}
.lwm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.lwmb{height:50px;border-radius:14px;border:3px solid #1f4f86;background:linear-gradient(180deg,#6fb8f0,#3d84cf);color:#fff;font-family:inherit;font-size:calc(20px * var(--fs));box-shadow:0 3px 0 #1f4f86;cursor:pointer;-webkit-text-stroke:4px #1f3354;paint-order:stroke fill}
.lwmb.on{background:linear-gradient(180deg,#ff8a5a,#e4572e);border-color:#8a2a10;box-shadow:0 3px 0 #8a2a10}
.lwops{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.lwop{min-height:58px;border-radius:12px;border:2px solid #12396a;background:#1c4f8f;display:flex;align-items:center;gap:6px;padding:4px 8px;color:#fff;font-family:inherit;cursor:pointer;text-align:start}
.lwop.war{border-color:#8a2a10}.lwop.on{border-color:#ffd34d;background:#245ea5}
.lwop .ic{width:34px;height:34px;flex:none}
.lwot{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15;min-width:0}
.lwot b{font-size:calc(14px * var(--fs));font-weight:400}.lwot small{color:#ffd34d!important;font-size:calc(12px * var(--fs))}

/* ---------- حجم الواجهة: كل الأزرار والنوافذ بتتصغّر على قد الشاشة (--k)، والمدينة والخريطة زي ما هم ---------- */
.ltop,.lside,.larmy,.lwp,.lwprot,.lwbot,.lwar,.lban,.lwrep,html.land .veil>.sheet,html.land .veil>.wicon{zoom:var(--k,1)}
html.land .sheet{width:min(860px,calc(var(--W) / var(--k,1) - 120px));max-height:calc(var(--H) / var(--k,1) - 60px)}
html.land .sheet.wset{width:min(940px,calc(var(--W) / var(--k,1) - 100px))}
html.land .sheet.wmis{width:min(600px,calc(var(--W) / var(--k,1) - 100px))}
html.land .sheet.wtech.wnar{width:min(620px,calc(var(--W) / var(--k,1) - 100px))}
.lwbot{position:absolute;bottom:16px;inset-inline-end:14px;z-index:5;display:flex;align-items:center;gap:10px}
.lwbot .lwme{position:static}
.lwq input{height:46px;width:170px;font-size:calc(16px * var(--fs))}
.lwp{bottom:80px}
/* العمليات في العالم: طولها على قد المحتوى */
.lwp{bottom:auto;max-height:calc(var(--H) / var(--k,1) - 190px)}
/* السوق: زرار MAX وخانة العدد مقاسهم ثابت مهما كان الرقم */
html.land .sheet .mkr .mxb{flex:none;width:74px;min-width:74px;max-width:74px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-inline:2px}
html.land .sheet .mkr .mxb span{display:block;overflow:hidden;text-overflow:ellipsis;font-size:calc(11px * var(--fs))}
html.land .sheet .mkr .qty{flex:none;width:72px}
html.land .sheet .mkr .mpx{flex:none}
/* نظرة على المصانع: صف للمدني وصف للعسكري */
html.land .sheet .lfac{display:flex;flex-direction:column;gap:10px}
html.land .sheet .lfac .mkl{grid-template-columns:repeat(3,minmax(0,1fr))}
html.land .sheet .mkr .mxb{font-size:calc(10px * var(--fs));line-height:1.1;white-space:normal}
/* نظرة على المصانع: كل مصنع في سطر واحد (الصورة، الاسم، الإنتاج، تمتلك) */
html.land .sheet .lfac .mkl{grid-template-columns:repeat(2,minmax(0,1fr))}
html.land .sheet .mkr.fov{flex-wrap:nowrap;white-space:nowrap}
html.land .sheet .mkr.fov .mm{display:flex;flex-wrap:nowrap;align-items:baseline;gap:8px;white-space:nowrap;overflow:hidden}
html.land .sheet .mkr.fov .mm b{flex:none}
html.land .sheet .mkr.fov .mm small{overflow:hidden;text-overflow:ellipsis}
html.land .sheet .mkr.fov .fcn{display:flex;align-items:baseline;gap:5px;flex:none;white-space:nowrap}
html.land .sheet .mkr input.qty{width:60px!important;min-width:0!important;flex:none!important}html.land .sheet .mkr .mm b{flex:none;overflow:visible}html.land .sheet .mkr .mm small{min-width:0;overflow:hidden;text-overflow:ellipsis}
html.land .sheet .lfac{display:flex;flex-direction:column;gap:12px;align-items:stretch}
html.land .sheet .lfac>.lfc{min-width:0;display:flex;flex-direction:column}
html.land .sheet .lfac .mkl{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.lpage .czhint{bottom:auto;top:50%;transform:translate(-50%,-50%);z-index:7;zoom:var(--k,1)}
.lpage .cpop{z-index:7}
html.land .sheet .lbx{zoom:.7}   /* مربعات مكافأة الدخول اليومي أصغر 30% */
/* ---------- صف الأزرار تحت (المدينة / الطاقة / الجيش) فوق البحر، والجيش بيفتح الوحدات في نفس الصف بعرض الشاشة ---------- */
.lside{flex-direction:row;width:auto;inset-inline-end:auto;align-items:stretch;gap:8px}
.lside .lsbtn{width:92px;flex:none}
.lside.aon{inset-inline-end:14px}
/* حجم الأزرار ثابت سواء الجيش مفتوح أو مقفول */
.lside .larmy{position:static;flex:1 1 auto;min-width:0;height:auto;display:flex!important;gap:5px;padding:5px;background:rgba(42,31,61,.88);border-radius:16px}
.lside .larmy .atile{flex:1 1 0;min-width:0;height:auto;padding:2px 0}
.lside .larmy .atile .ic{width:38px;height:38px}
.lside .larmy .atile{container-type:inline-size;justify-content:flex-start;padding:2px 0 1px}
.lside .larmy .atile .ic{flex:1 1 0;height:0;min-height:0;width:100%;max-width:none;object-fit:contain}
.lside .larmy .atile b{font-size:calc(13px * var(--fs));font-size:min(calc(22px * var(--fs)),19cqw);height:auto;line-height:1.2}
.lside .larmy .wtip{font-size:calc(17px * var(--fs));padding:5px 16px;background:rgba(14,22,30,.92);border-color:rgba(255,255,255,.4)}
.lside .larmy .wtip b{font-size:inherit;height:auto;line-height:inherit;font-weight:700;direction:ltr;unicode-bidi:isolate;overflow:visible}
/* أرقام كبيرة (7 خانات فأكتر): مختصرة والضغط عليها يظهر الرقم كامل */
.bn{cursor:pointer;unicode-bidi:isolate}
html[dir=rtl] .bn{direction:rtl}
html[dir=ltr] .bn{direction:ltr}
.toast.bnt{font-size:calc(26px * var(--fs,1));font-weight:700;letter-spacing:.04em;direction:ltr;padding:12px 26px}
.toast.bnt{pointer-events:auto}
.toast .bnx{cursor:pointer;font-style:normal;margin-inline-start:16px;padding:0 8px;border-radius:6px;background:rgba(255,255,255,.18)}
/* نوافذ اللعبة (الزرقا): الذهبي والنصوص الخافتة تبان بوضوح */
html.land .sheet{--gold2:#ffd34d}
html.land:not([data-skin=day]) .sheet .rep,html.land:not([data-skin=day]) .sheet .news,html.land:not([data-skin=day]) .sheet .report,html.land:not([data-skin=day]) .sheet .btt,html.land:not([data-skin=day]) .sheet .badge.ok,html.land:not([data-skin=day]) .sheet .badge.gold,html.land:not([data-skin=day]) .sheet .rule span.ok,html.land:not([data-skin=day]) .sheet .btt td.bg,html.land:not([data-skin=day]) .sheet .btt td.be,html.land:not([data-skin=day]) .sheet .bnote.good,html.land:not([data-skin=day]) .sheet .bnote.bad,html.land:not([data-skin=day]) .sheet td.own,html.land:not([data-skin=day]) .sheet .badge.bad,html.land:not([data-skin=day]) .sheet [style*="var(--ok)"],html.land:not([data-skin=day]) .sheet [style*="var(--bad)"],html.land:not([data-skin=day]) .sheet [style*="var(--ember)"]{text-shadow:-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000,0 0 3px #000}
html.land .sheet .hint,html.land .sheet small{color:#fff;text-shadow:-1px -1px 0 #0b1b33,1px -1px 0 #0b1b33,-1px 1px 0 #0b1b33,1px 1px 0 #0b1b33,0 1px 3px #0b1b33}
html.land .sheet .hint{font-size:calc(13.75px * var(--fs))}
html.land .sheet .badge.sgnow{border-color:#ffd34d}
/* نظرة على المصانع: الاسم في سطر والوصف تحته، بنفس ارتفاع المربع */
html.land .sheet .mkr.fov{min-height:0}
html.land .sheet .mkr.fov .mm{display:flex;flex-direction:column;align-items:flex-start;gap:0;line-height:1.1;white-space:nowrap}
html.land .sheet .mkr.fov .mm b,html.land .sheet .mkr.fov .mm small{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.lside .larmy.carmy{display:flex!important;grid-template-columns:none;position:static}

html.land .sheet .mkr.fov .fcw{flex:none;display:flex;flex-direction:column;align-items:flex-end;white-space:nowrap}
html.land .sheet .mkr.fov .fcw small.fpr{color:#ffd86b;font-size:calc(10px * var(--fs));line-height:1.1}

.lwbot{flex-wrap:wrap;justify-content:flex-start;max-width:calc(100vw - 20px);bottom:var(--bb,104px);inset-inline-start:14px;inset-inline-end:auto}
.lwbnd{position:absolute;bottom:var(--pb,156px);inset-inline-start:14px;z-index:6;width:min(300px,calc(100vw - 28px));display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-radius:16px;border:3px solid #1f4f86;background:#fff;color:#1f3354;box-shadow:0 6px 18px rgba(0,0,0,.35);zoom:var(--k,1)}
.lwbnd>b{font-size:calc(15px * var(--fs,1))}
.lwbr{display:flex;justify-content:space-between;align-items:center}
.lwbr .num{font-size:calc(22px * var(--fs,1))}
.lwbnd input[type=range]{width:100%;margin:0}
.lwbm{display:flex;justify-content:space-between;font-size:12px;opacity:.7}
.wmb{cursor:pointer}

/* تقرير العملية في مظهر النهار: الخلفية فاتحة فالكتابة لازم تكون داكنة */
html.land[data-skin=day] .report,html.land[data-skin=day] .report :not(button):not(.btv){color:#1e2a44;-webkit-text-stroke:0;text-shadow:none}

/* ---------- ثيم النوافذ: بيج ذهبي وكروت كريمي (زي صفحة الترتيب) والتبويبات والأزرار ---------- */
html.land .sheet{--panel:#f9f7e8;--panel2:#f1e7c6;--bg2:#efdb9e;--line:#b3a276;--line2:#b3a276;--muted:#6b5f3e;--ink:#1e2a44;--ok:#1f7a45;--bad:#b3261e;--ember:#b3261e;--gold2:#8a6a1d;--gold:#b08a26;--steel:#3d6a96;background:#efdb9e;border-color:#b09855;box-shadow:0 8px 0 #b09855;color:#1e2a44}
html.land .sheet,html.land .sheet *{text-shadow:none!important}
html.land .sheet .btn.war,html.land .sheet .lbtn.org,html.land .sheet .lbtn.red{text-shadow:-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000,0 0 2px #000!important}
html.land .sheet>.wtb{background:#efdb9e;border-top-color:#b3a276}
html.land .sheet>.wtb .chip{background:#fdf6e0;border-color:#b3a276;color:#1e2a44;box-shadow:0 3px 0 #b3a276}
html.land .sheet>.wtb .chip.on{background:linear-gradient(180deg,#f6d77a,#e9bd48);border-color:#8a6a1d;color:#3a2a0a;box-shadow:0 3px 0 #8a6a1d}
html.land[data-skin] .sheet .card,html.land[data-skin] .sheet .mebar,html.land[data-skin] .sheet .jmsg,html.land .sheet .lrow,html.land .sheet .lmr,.ltech .ctab tr,html.land .sheet .tri .tb,html.land .sheet .mkr{background:#f9f7e8;border:2px solid #b3a276;box-shadow:none;color:#1e2a44}
html.land[data-skin] .sheet .news.event{background:#f3e3b0;border:2px solid #b3a276;color:#1e2a44}
html.land .sheet .lrow.dng{background:#f6dcd8;border-color:#b3261e}
html.land[data-skin] .sheet .scr{background:rgba(60,40,0,.07)}
html.land .sheet .hint,html.land .sheet small,html.land .sheet .f{color:#6b5f3e}
html.land .sheet .hint a{color:#8a5a00}
html.land .sheet .badge{background:#0000000d}
html.land .sheet .lprem .list .row{color:#1e2a44}
.ltech .ctab .tinf2,html.land .sheet .mkr .mm small .num,html.land .sheet .mkr.fov .fcw small.fpr,.lgift{color:#8a6a1d!important}
html.land .sheet .report.win{background:#e4f2dc}
html.land .sheet .report.lose{background:#f6dcd8}
html.land .sheet .lfs b{background:#fff}
.lsbtn{border-color:#c9a227;background:linear-gradient(180deg,#2f6b4a,#1c412f);box-shadow:0 4px 0 #153726}

/* ---------- صفحة العالم: الشريط العلوي والسفلي واللوحات بنفس ألوان النوافذ (بيج ذهبي وكروت كريمي) ---------- */
.lpage .lworld{background:#efdb9e}
.lwp{--panel:#f9f7e8;--panel2:#f1e7c6;--bg2:#efdb9e;--line:#b3a276;--line2:#b3a276;--muted:#6b5f3e;--ink:#1e2a44;--ok:#1f7a45;--bad:#b3261e;--ember:#b3261e;--gold2:#8a6a1d;--gold:#b08a26;--steel:#3d6a96;background:#efdb9e;border-color:#b09855;box-shadow:0 6px 0 #b09855;color:#1e2a44}
.lwp,.lwp *{text-shadow:none!important}
.lwp .btn.war{text-shadow:-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000,0 0 2px #000!important}
html.land[data-skin] .lwp .card{background:#f9f7e8;border:2px solid #b3a276;box-shadow:none;color:#1e2a44}
.lwp .hint,.lwp small{color:#6b5f3e}
.lwp .badge{background:#0000000d}
.lwp .report.win{background:#e4f2dc}.lwp .report.lose{background:#f6dcd8}
.lwop{background:#f9f7e8;border-color:#b3a276;color:#1e2a44}.lwop.war{border-color:#b3261e}.lwop.on{border-color:#8a6a1d;background:#f1e7c6}
.lwot small{color:#8a6a1d!important}
.lwbnd{background:#f9f7e8;border-color:#b3a276;color:#1e2a44}
.lwbnd,.lwbnd *{text-shadow:none!important}
.lwme{background:#fdf6e0;border-color:#b3a276;color:#1e2a44}
.lwme,.lwme *{text-shadow:none!important}

/* ---------- مربع الأرض بلون أرض المدينة، ومربع الكاش ذهبي على الأطراف وفضي في النص (متماثل) مع تلألؤ الألماس على الجانبين بس ---------- */
.lchip.lc-land{background:#8be27a;color:#14301a}
.lchip.lc-land,.lchip.lc-land *{text-shadow:none!important}
.lchip.lc-land small,.lchip.lc-land em.y{color:#1d4a1d}
.lchip.lc-land .cbar{background:rgba(20,48,26,.28)}
.lchip.lc-cash{position:relative;color:#2a1f3d}
.lchip.lc-cash>small,.lchip.lc-cash>b,.lchip.lc-cash>em{position:relative;z-index:2}
.lchip.lc-cash,.lchip.lc-cash *{text-shadow:0 1px 0 rgba(255,255,255,.75)!important}
.lchip.lc-cash small{color:#2a1f3d}.lchip.lc-cash em.y{color:#4a3410}
.lc-cash .h{position:absolute;top:0;bottom:0;width:50%;z-index:1;display:block}
.lc-cash .h.l{left:0;background:repeating-linear-gradient(115deg,rgba(255,255,255,0) 0 16px,rgba(255,255,255,.6) 17px 18px,rgba(255,255,255,0) 19px 34px),repeating-linear-gradient(65deg,rgba(120,90,20,0) 0 24px,rgba(120,90,20,.3) 25px 26px,rgba(120,90,20,0) 27px 48px),linear-gradient(90deg,#d9b24a 0%,#f1d77c 28%,#e6e8ee 70%,#fafbfd 100%)}
.lc-cash .h.r{right:0;transform:scaleX(-1);background:repeating-linear-gradient(115deg,rgba(255,255,255,0) 0 16px,rgba(255,255,255,.6) 17px 18px,rgba(255,255,255,0) 19px 34px),repeating-linear-gradient(65deg,rgba(120,90,20,0) 0 24px,rgba(120,90,20,.3) 25px 26px,rgba(120,90,20,0) 27px 48px),linear-gradient(90deg,#d9b24a 0%,#f1d77c 28%,#e6e8ee 70%,#fafbfd 100%)}
.lc-cash .sp{position:absolute;width:12px;height:12px;background:radial-gradient(circle,#fff 0 18%,rgba(255,255,255,0) 60%);filter:drop-shadow(0 0 3px #fff);animation:lctw 2.6s ease-in-out infinite}
.lc-cash .sp:before,.lc-cash .sp:after{content:"";position:absolute;left:50%;top:50%;background:#fff;transform:translate(-50%,-50%);border-radius:2px}
.lc-cash .sp:before{width:2px;height:14px}.lc-cash .sp:after{width:14px;height:2px}
.lc-cash .sp:nth-child(1){left:7px;top:6px}
.lc-cash .sp:nth-child(2){left:16px;bottom:5px;width:9px;height:9px;animation-delay:1.3s}
@keyframes lctw{0%,100%{opacity:.2;transform:scale(.45)}50%{opacity:1;transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.lc-cash .sp{animation:none;opacity:.9}}

/* ---------- المصانع: العسكرية أسود رخامي مطفي، والمدنية رمادي (الشريط العلوي ونظرة المصانع) ---------- */
.lchip.lc-mil,html.land .sheet .tsec.t2.fsec{color:#fff;background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,0) 40%),repeating-linear-gradient(135deg,rgba(255,255,255,.05) 0 2px,rgba(0,0,0,0) 2px 7px),linear-gradient(135deg,#15151a,#26262c 50%,#101014);border-color:#1f3354}
.lchip.lc-civ,html.land .sheet .tsec.t4.fsec{color:#1f2430;background:repeating-linear-gradient(0deg,rgba(255,255,255,.16) 0 1px,rgba(0,0,0,0) 1px 4px),linear-gradient(180deg,#d7dae0,#a9adb6);border-color:#1f3354}
.lchip.lc-civ,.lchip.lc-civ *,html.land .sheet .tsec.t4.fsec{text-shadow:0 1px 0 rgba(255,255,255,.55)!important}
html.land .sheet .tsec.t2.fsec{text-shadow:0 1px 2px #000!important}
.lchip.lc-civ small{color:#1f2430}
/* شريط تقدم الأرض أحمر فاقع */
.lchip.lc-land .cbar i{background:#ff1a1a}
/* نصوص كانت فاتحة وبقت على خلفية كريمي: أغمق */
html.land .sheet .bnote.good,html.land .lwp .bnote.good{color:#14532d;background:#dff0e0}
html.land .sheet .btt td.bm{color:#1f4f9a}html.land .sheet .btt td.be{color:#b3261e}
html.land .sheet .badge.bad{color:#b3261e}
html.land .sheet .badge.mutb{color:#2f5f8f}
html.land .sheet .bubble.cb button.cbr{color:#b3261e}
html.land .sheet .bubble.cb button.cbk{color:#55606e}
html.land .sheet .pplan .save{color:#1f7a45}
/* V67: محاكي المعركة: جدول واحد (الجيش · التكنولوجيا · الحد الأدنى · ينقصك) وجنبه أدوات السحب والتجسس */
.smc{display:grid;grid-template-columns:minmax(0,290px) minmax(0,1fr);gap:16px;align-items:start}
.smside,.smmain{display:flex;flex-direction:column;gap:8px;min-width:0}
.smmain{gap:5px}
.smr{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1.2fr) minmax(0,.75fr) minmax(0,1fr) minmax(0,1fr);gap:6px;align-items:center}
.smr input{width:100%;min-width:0;height:32px;min-height:0;padding:0 6px;text-align:center}
.smr input:disabled{opacity:.5}
.smr .smu{display:flex;align-items:center;gap:6px;min-width:0}
.smr .smu b{min-width:0;font-size:calc(13.5px * var(--fs));line-height:1.15}
.smr .smu .ic{flex:none}
.smr>b,.smr>i,.smr>small{text-align:center;min-width:0}
.smr>i{font-style:normal;opacity:.4}
.smr.smh small{font-weight:700;font-size:calc(12.5px * var(--fs))}
.smr b.ok{color:var(--ok)}.smr b.bad{color:var(--bad)}
.smside .row input{height:38px;min-height:0;min-width:0;text-align:center}
.smside .row b{font-size:calc(13px * var(--fs));line-height:1.2}
.smsrc{display:flex;flex-wrap:wrap;gap:2px 10px}
.smout{display:flex;flex-direction:column;gap:3px}
.smbuy{display:flex;flex-direction:column;align-items:stretch;gap:4px;margin-top:6px}
.smbuy small{text-align:center}
.smtop .chip{min-width:0;min-height:0;height:38px;padding:0 10px}
.smtop .btn{flex:none}
/* V67: لوحة الأرقام (جوه اللعبة الملفوفة) وصندوق الكتابة (معدول مع كيبورد الموبايل) */
.kbpad{position:fixed;left:0;right:0;bottom:0;z-index:95;display:flex;align-items:stretch;gap:5px;height:62px;padding:6px 10px calc(6px + env(safe-area-inset-bottom,0px));background:#12396a;border-top:3px solid #0b2a52;box-shadow:0 -6px 18px rgba(0,0,0,.35);font-family:'Lalezar','Reem Kufi',var(--f-display);touch-action:manipulation;user-select:none;-webkit-user-select:none}
.kbpad button{flex:1 1 0;min-width:0;border:2px solid #0b2a52;border-radius:12px;background:linear-gradient(180deg,#fff,#dfeaf7);color:#12396a;font:inherit;font-size:24px;line-height:1;padding:0;cursor:pointer;box-shadow:0 3px 0 #0b2a52}
.kbpad button:active{transform:translateY(2px);box-shadow:0 1px 0 #0b2a52}
.kbpad .kbc{background:linear-gradient(180deg,#ffe9b0,#ffcf5c);color:#5a3b00}
.kbpad .kbok{flex:1.4 1 0;background:linear-gradient(180deg,#7be08f,#3cbf55);color:#fff}
.kbpad .kbv{flex:2.2 1 0;min-width:0;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#0b2a52;color:#fff;font-size:22px;overflow:hidden;white-space:nowrap}
.kbpad .kbv.dim{opacity:.45}
#kbBox{position:fixed;inset:0;z-index:2147483000;background:rgba(8,16,30,.86);display:flex;flex-direction:column;align-items:stretch;padding:calc(14px + env(safe-area-inset-top,0px)) 14px 14px;font-family:'Reem Kufi',var(--f-display),sans-serif}
#kbBox .kbb{display:flex;flex-direction:column;gap:10px;background:#f9f7e8;border:3px solid #b09855;border-radius:18px;padding:14px;box-shadow:0 6px 0 #b09855}
#kbBox small{color:#6b5f3e;font-size:14px;font-weight:700;min-height:0}
#kbBox small:empty{display:none}
#kbBox input,#kbBox textarea{width:100%;box-sizing:border-box;border:2px solid #b3a276;border-radius:12px;background:#fff;color:#1e2a44;font:inherit;font-size:18px;padding:10px 12px;outline:none;resize:none}
#kbBox .kbr{display:flex;gap:10px}
#kbBox .kbr button{flex:1;height:46px;border-radius:14px;border:3px solid #12396a;font-size:22px;line-height:1;cursor:pointer;color:#fff;background:#8b97a8;box-shadow:0 3px 0 #12396a}
#kbBox #kbOk{flex:2;background:#3cbf55}
