@font-face{font-family:'RB';src:url('fonts/roboto_bold.ttf');font-display:swap}
:root{--screen-h:100vh;--gold:#e6b74a;--gold2:#f4d98a;--teal:#0e5a74;--ink:#3a2a12;--parch:#e9e3d2;--red:#9c3222;--green:#3f7a2a;--blue:#1d4e74}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;margin:0;padding:0}
body{font-family:'RB','Segoe UI',system-ui,sans-serif;color:var(--ink);background:#0a0806;
  min-height:var(--screen-h);display:flex;flex-direction:column;align-items:center}
/* Page gestures may scroll; only the world map may pinch or double-tap zoom. */
html.wk-fixed-zoom,html.wk-fixed-zoom body{touch-action:pan-x pan-y}
html.wk-map-zoom,html.wk-map-zoom body{touch-action:auto}
html.wk-fixed-zoom input,html.wk-fixed-zoom select,html.wk-fixed-zoom textarea{font-size:max(16px,1em)!important}
img{display:block;max-width:100%}
a{text-decoration:none;color:inherit}
button{font:inherit;border:0;background:none;cursor:pointer;color:inherit}
input{font:inherit}

/* app column */
body{--w:min(100%,560px);width:100%;min-width:0} /* Width stays stable when the keyboard or orientation changes. */
.hdr,.resbar,.page,.city,.gnav,.intro{width:100%;max-width:var(--w)}
body>*{margin:0 auto}

/* header (teal) */
.hdr{position:sticky;top:0;z-index:10;height:58px;display:flex;align-items:center;gap:8px;padding:0 8px;
  background:#0e5a74 url('img/ui/header_bg.png') repeat;background-size:auto 100%;
  border-bottom:3px solid var(--gold)}
.hbtn{width:46px;height:46px;flex:none;display:flex;align-items:center;justify-content:center}
.hbtn img{width:46px;height:46px;object-fit:contain}
.hbtn.ph{visibility:hidden}
.htitle{flex:1;text-align:center;color:#fff;font-size:1.15rem;font-weight:bold;
  text-shadow:0 2px 3px rgba(0,0,0,.6);letter-spacing:.3px}

/* resource bar */
.resbar{display:flex;gap:2px;padding:6px 9px;align-items:center;box-sizing:border-box;border-radius:11px;
  background:linear-gradient(180deg,rgba(44,35,23,.70),rgba(28,22,14,.66));
  border-top:2px solid rgba(255,255,255,.62);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14), 0 1px 4px rgba(0,0,0,.4);
  backdrop-filter:blur(1px);-webkit-backdrop-filter:blur(1px)}
.ri{flex:1;display:flex;align-items:center;gap:5px;min-width:0;padding:1px 2px}
.ri img{width:30px;height:30px;flex:none;object-fit:contain;padding:3px;border-radius:50%;
  background:radial-gradient(circle at 50% 40%,rgba(30,24,15,.35),rgba(12,10,6,.55));
  border:1.5px solid rgba(200,185,150,.55);box-shadow:inset 0 1px 2px rgba(0,0,0,.5),0 1px 1px rgba(255,255,255,.15)}
.ri div{min-width:0;line-height:1.02}
.ri b{color:#f4ead2;font-size:.82rem;display:block;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 2px rgba(0,0,0,.85)}
.ri i{font-style:normal;font-size:.58rem;color:#bfe6a6;text-shadow:0 1px 1px rgba(0,0,0,.7)}
.ri i.d{color:#9fdcef}
.ri.pts{flex:.62}
.ri.pts b{color:#ffe9a8}

/* generic page (parchment) */
.page{background:url('img/ui/bg_parchment.jpg');background-size:320px;min-height:calc(var(--screen-h) - 56px);
  padding:12px 12px 16px;border-left:3px solid var(--gold);border-right:3px solid var(--gold)}
.ph{color:#5a3d16;margin:10px 2px 6px;font-size:1.05rem}
.ptext{font-size:.9rem;line-height:1.4;color:#4a3618;margin:8px 2px}
.flash{background:#fff6df;border:1px solid var(--gold);border-left:4px solid var(--gold);color:#6a4a12;
  padding:9px 12px;border-radius:8px;margin:10px;font-size:.9rem}

/* ornate buttons */
.obtn{display:block;width:100%;height:52px;line-height:52px;text-align:center;font-weight:bold;
  font-size:1rem;letter-spacing:.4px;background-size:100% 100%;background-repeat:no-repeat;margin-top:10px;color:#fff}
.obtn.red{background-image:url('img/ui/button_red_default.png');text-shadow:0 1px 2px #000}
.obtn.green{background-image:url('img/ui/button_green_default.png');text-shadow:0 1px 2px #1a3a10}
.obtn.blue{background-image:url('img/ui/button_blue_default.png');text-shadow:0 1px 2px #000}
.obtn:disabled{background-image:url('img/ui/button_inactive_default.png');color:#7a6c50;text-shadow:none}
.obtn.sm{height:44px;line-height:44px;font-size:.9rem;margin:0;width:auto;padding:0 18px}
.obtn.mini{height:44px;line-height:44px;font-size:.9rem}
.obtn:active{filter:brightness(1.1)}

/* bottom nav */
.gnav{position:absolute;bottom:0;left:6px;right:6px;width:auto;max-width:none;display:flex;z-index:30;
  background:linear-gradient(#fdfcf8,#eeeadd);border:3px solid #b5aE9c;border-bottom:0;border-radius:14px 14px 0 0;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.9),inset 3px 0 3px rgba(255,255,255,.55),inset -3px 0 3px rgba(120,112,95,.30),0 2px 10px rgba(0,0,0,.40);overflow:hidden}
.gnav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:0;padding:5px 1px 4px;opacity:.92}
.gnav a.on{opacity:1}
.gi{position:relative;width:88px;height:69px;display:flex;align-items:center;justify-content:center;border-radius:10px;
  background:linear-gradient(180deg,#f8f6f0,#e2ddcf);
  border:2px solid #b8b1a0;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.95),inset 2px 0 2px rgba(255,255,255,.5),inset -2px 0 3px rgba(130,125,110,.35),inset 0 -4px 6px rgba(125,118,100,.45),0 2px 3px rgba(70,65,50,.30)}
.gi img{max-width:54px;max-height:52px;object-fit:contain;filter:drop-shadow(0 2px 2px rgba(105,75,25,.55)) drop-shadow(0 1px 1px rgba(105,75,25,.45))}
.gnav a.on .gi{filter:drop-shadow(0 0 6px var(--gold))}
.gl{font-size:.74rem;color:#4a3210;font-weight:bold;margin-top:-15px;position:relative;z-index:2;text-shadow:0 1px 2px rgba(255,248,230,.9),0 -1px 2px rgba(255,248,230,.9),1px 0 2px rgba(255,248,230,.9),-1px 0 2px rgba(255,248,230,.9)}
.gnav a.on .gl{color:#8a5a10}
.gi em{position:absolute;top:-3px;right:-4px;background:var(--red);color:#fff;font-style:normal;font-size:.58rem;
  min-width:15px;height:15px;border-radius:8px;display:flex;align-items:center;justify-content:center;padding:0 3px}

/* intro */
.intro{position:relative;min-height:var(--screen-h);background:#0a0806;display:flex;flex-direction:column;justify-content:flex-end}
.introbg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.96}
.introwrap{position:relative;z-index:2;padding:18px 22px 34px;background:linear-gradient(transparent,rgba(8,6,4,.9) 42%)}
.world{text-align:center;color:var(--gold2);font-weight:bold;letter-spacing:2px;margin-bottom:10px}
.ifrm{display:flex;flex-direction:column;gap:9px}
.ifrm input{padding:13px;border-radius:8px;border:1px solid var(--gold);background:rgba(240,232,210,.95);color:#2a1c08;font-size:1rem}

/* city */
.city{position:relative;overflow:hidden;background:#3a4a2a;min-height:var(--screen-h)}
.scene{position:relative;width:100%;overflow-x:auto;scrollbar-width:none}
.scene::-webkit-scrollbar{display:none}
/* Fill the screen with the original artwork. Pan to reach the edges on tall phones;
   buildings and their hit areas remain in the same proportional coordinate space. */
.zoom{position:relative;width:100%;flex:none}
.cityimg{width:100%;height:auto;display:block}
.tophud{position:absolute;top:0;left:0;right:0;z-index:6}
/* KAYNAK BARI (ana ekran): daha YUKARIDA ve INCE; DAR EKRANDA HICBIR SAYI KIRPILMAZ.
   Olculer ekran genisligine gore clamp() ile kuculur -> "1..." gibi kesik yazi olmaz.
   Cag puani (yildiz) kutusu KUCULMEZ (flex:0 0 auto), her zaman tam gorunur. */
.tophud .resbar{width:auto;max-width:none;margin:-3px 12px 0;padding:3px 6px;border-radius:9px;gap:2px}
.tophud .ri{flex:1 1 0;min-width:0;gap:clamp(2px,1vw,5px);padding:0}
.tophud .ri img{width:clamp(16px,5.2vw,22px);height:clamp(16px,5.2vw,22px);padding:2px;border-width:1px}
.tophud .ri b{font-size:clamp(9.5px,3vw,13px);letter-spacing:-.2px}
.tophud .ri i{font-size:clamp(7px,2vw,9px)}
.tophud .ri.pts{flex:0 0 auto;padding-right:2px}
.tophud .ri.pts b{overflow:visible;text-overflow:clip}
.tophud .ptbtn{color:#3a2a10}
.hot{position:absolute;display:block}
.citywall-gate{left:26%;top:53%;width:36%;height:25%;clip-path:polygon(0% 8%,19% 0%,36% 12%,36% 32%,58% 36%,69% 44%,81% 40%,100% 52%,100% 92%,81% 100%,64% 80%,55% 80%,44% 88%,19% 72%,19% 60%,0% 48%)}
.shield{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:2px;z-index:3}
.slvl,.sbuild{min-width:30px;text-align:center;font-weight:bold;color:#fff;font-size:.8rem;padding:2px 8px;
  background:linear-gradient(#4f9a34,#2f6a1c);border:2px solid #d8c060;border-radius:9px;
  box-shadow:0 2px 4px rgba(0,0,0,.5);clip-path:polygon(0 0,100% 0,100% 72%,50% 100%,0 72%)}
.sbuild{background:linear-gradient(#c8873a,#9c5a20);font-size:.72rem}
.sname{background:rgba(10,8,5,.82);color:var(--gold2);font-size:.58rem;padding:1px 6px;border-radius:7px;white-space:nowrap}
.marcher{position:absolute;left:-60px;display:flex;flex-direction:column;align-items:center;animation:march 14s linear infinite}
@keyframes march{from{left:-60px}to{left:100%}}
.knight{width:44px;height:56px;background-repeat:no-repeat;background-position:center bottom;background-size:contain;
  background-image:url('img/unit/knight_walkright_0.png')}
.mtag{background:rgba(10,8,5,.8);color:#fff;font-size:.6rem;padding:1px 6px;border-radius:7px;margin-top:2px}
.mtag b{color:var(--gold2)}

/* building detail */
.bhero{display:flex;flex-direction:column;align-items:center;margin:6px 0}
.bhero img{width:150px;height:150px;object-fit:contain;filter:drop-shadow(0 6px 8px rgba(0,0,0,.35))}
.lvlpill{margin-top:-6px;background:#7a5a1c;color:#fff;font-size:.8rem;padding:3px 14px;border-radius:12px}
.statrow{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:8px 0}
.stat{display:flex;flex-direction:column;align-items:center;background:rgba(255,255,255,.4);border:1px solid #c9b98a;
  border-radius:8px;padding:8px 12px;min-width:80px}
.stat img{width:26px;height:26px}
.stat b{color:#3a2a12;font-size:.95rem}
.stat i{font-style:normal;font-size:.66rem;color:#7a5a2a}
.upcard{background:rgba(255,255,255,.5);border:1px solid var(--gold);border-radius:10px;padding:12px;margin-top:12px}
.uptitle{font-weight:bold;color:#5a3d16;margin-bottom:8px;text-align:center}
.costs{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-items:center}
.costs span{display:flex;align-items:center;gap:4px;font-weight:bold;font-size:.9rem}
.costs img{width:22px;height:22px}
.costs .no{color:var(--red)}
.tm{color:#6a4a1a}
.progress{margin-top:10px;text-align:center;background:#7a4a1c;color:#fff;border-radius:8px;padding:9px}
.cd{font-variant-numeric:tabular-nums}

/* army / units */
.armysum{text-align:center;background:rgba(255,255,255,.4);border:1px solid #c9b98a;border-radius:8px;padding:8px;margin:4px 0 10px;font-size:.9rem}
.armysum b{color:#5a3d16}
.units{display:flex;flex-direction:column;gap:10px}
.ucard{display:flex;gap:10px;background:rgba(255,255,255,.55);border:1px solid #c9b98a;border-radius:10px;padding:8px}
.uimg{width:78px;flex:none;display:flex;align-items:center;justify-content:center}
.uimg img{max-width:78px;max-height:82px;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}
.ubody{flex:1;min-width:0}
.uhead{display:flex;align-items:center;gap:8px}
.uhead b{color:#3a2a12}
.uqty{background:#7a5a1c;color:#fff;font-size:.7rem;padding:1px 8px;border-radius:8px}
.ustats{font-size:.78rem;color:#5a4426;margin:3px 0}
.ucost{display:flex;flex-wrap:wrap;gap:8px;font-size:.78rem;align-items:center;margin-bottom:6px}
.ucost span{display:flex;align-items:center;gap:3px}
.ucost img{width:18px;height:18px}
.lock{background:rgba(0,0,0,.08);border:1px dashed #a98a5a;color:#7a5626;border-radius:8px;padding:6px;font-size:.76rem;text-align:center}
.trainf{display:flex;gap:8px;align-items:stretch}
.trainf input{width:70px;padding:8px;border-radius:8px;border:1px solid var(--gold);background:#f0e8d2;color:#2a1c08;text-align:center}

.queue{display:flex;flex-direction:column;gap:6px}
.qi{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.5);border:1px solid #c9b98a;border-radius:8px;padding:7px 10px}
.qi img{width:30px;height:32px;object-fit:contain}
.qi span{flex:1;font-size:.85rem;color:#3a2a12}
.qi b{color:#6a4a1a}

/* map */
.targets{display:flex;flex-direction:column;gap:8px}
.tcard{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.55);border:1px solid #c9b98a;border-radius:10px;padding:9px 12px}
.tcard img{width:40px;height:40px;object-fit:contain}
.tinfo{flex:1;min-width:0}
.tinfo b{color:#3a2a12}
.tinfo span{display:block;font-size:.72rem;color:#7a5a2a;margin-top:2px}
.atk{font-size:1.4rem;color:var(--red)}
.battlebox{background:rgba(255,255,255,.55);border:1px solid var(--gold);border-radius:10px;padding:12px}
.btitle{font-weight:bold;color:#5a3d16;text-align:center;margin-bottom:8px;font-size:1.05rem}
.brow{display:flex;align-items:center;gap:10px;padding:6px 0;border-bottom:1px dashed #cbb98a}
.brow img{width:52px;height:56px;object-fit:contain}
.bmid{flex:1}
.bmid b{color:#3a2a12}
.bmid small{display:block;color:#7a5a2a}
.brow input{width:70px;padding:9px;border-radius:8px;border:1px solid var(--gold);background:#f0e8d2;text-align:center;color:#2a1c08}
.bfoot{text-align:center;color:#5a3d16;font-weight:bold;margin:10px 0 2px}

/* reports */
.report{background:rgba(255,255,255,.6);border:1px solid #c9b98a;border-radius:10px;padding:10px;margin-bottom:10px;border-left:5px solid #999}
.report.win{border-left-color:var(--green)}
.report.lose{border-left-color:var(--red)}
.report .rt{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.report .rt b{color:#3a2a12;font-size:.92rem}
.report .rt span{font-size:.7rem;color:#8a6a3a}
.report pre{white-space:pre-wrap;font-family:ui-monospace,monospace;font-size:.78rem;color:#3a2a12;background:rgba(255,255,255,.5);padding:8px;border-radius:6px;margin-top:6px}
.empty{color:#8a6a3a;text-align:center;padding:40px 12px}

/* leaderboard */
.ranks{display:flex;flex-direction:column;gap:6px}
.rank{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.55);border:1px solid #c9b98a;border-radius:8px;padding:8px 12px}
.rank.me{background:#fff3d4;border-color:var(--gold)}
.rank .pos{width:26px;text-align:center;font-weight:bold;color:#7a5a2a}
.rank .medal{width:26px;height:26px;object-fit:contain}
.rank b{flex:1;color:#3a2a12;font-size:.9rem}
.rank .rtag{font-size:.68rem;color:#8a6a3a}
.rank .rp{color:#5a3d16;font-weight:bold;font-size:.88rem}

/* settings */
.setcard{background:rgba(255,255,255,.55);border:1px solid #c9b98a;border-radius:10px;overflow:hidden;margin-bottom:10px}
.setrow{display:flex;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #d8c9a2}
.setrow span{color:#7a5a2a}
.setrow b{color:#3a2a12}

/* cag serisi */
.agebar{display:flex;align-items:center;gap:8px;padding:4px 10px;background:linear-gradient(#241a10,#180f07);
  border-bottom:2px solid #3a2a15;font-size:.66rem;position:sticky;top:98px;z-index:8}
.agename{color:var(--gold2);white-space:nowrap;font-weight:bold}
.ageprog{flex:1;height:8px;background:#0a0704;border:1px solid #4a3620;border-radius:5px;overflow:hidden}
.ageprog i{display:block;height:100%;background:linear-gradient(90deg,#c98a3a,#f0c860)}
.agenext{color:#b9a884;white-space:nowrap}

/* sehir listesi / koloni */
.citylist{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}
.cityrow{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.55);border:1px solid #c9b98a;border-radius:8px;padding:7px 10px}
.cityrow.act{border-color:var(--gold);background:#fff3d4}
.cityrow img{width:34px;height:34px;object-fit:contain}
.cinfo{flex:1;min-width:0}
.cinfo b{color:#3a2a12;font-size:.88rem}
.cinfo span{display:block;font-size:.7rem;color:#7a5a2a}
.cityrow .cur{color:var(--green);font-size:.75rem;font-weight:bold}
.cityrow .obtn.sm{margin:0}

/* minimap */
.minimap{position:relative;width:100%;aspect-ratio:1;background:
  linear-gradient(135deg,#3a5a2a,#2a4420);border:3px solid var(--gold);border-radius:10px;
  background-image:repeating-linear-gradient(0deg,transparent,transparent 9%,rgba(0,0,0,.08) 9%,rgba(0,0,0,.08) 10%),
    repeating-linear-gradient(90deg,transparent,transparent 9%,rgba(0,0,0,.08) 9%,rgba(0,0,0,.08) 10%);
  overflow:hidden;margin-bottom:6px}
.dot{position:absolute;width:12px;height:12px;border-radius:50%;transform:translate(-50%,-50%);
  border:2px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.6)}
.dot.own{background:#f0c860;width:15px;height:15px;z-index:3}
.dot.barb{background:#c0392b}
.dot.foe{background:#2d78c8}
.mlabel{position:absolute;left:6px;bottom:6px;background:rgba(10,8,5,.75);color:var(--gold2);
  font-size:.62rem;padding:2px 7px;border-radius:6px}
.maplegend{text-align:center;font-size:.72rem;color:#5a4426;margin-bottom:6px}
.maplegend .lg{font-size:1rem;vertical-align:middle}
.maplegend .own{color:#e0b040}.maplegend .barb{color:#c0392b}.maplegend .foe{color:#2d78c8}

/* market */
.tradecard{background:rgba(255,255,255,.55);border:1px solid #c9b98a;border-radius:10px;padding:10px;margin-bottom:10px}
.tradecard .th{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.tradecard .th img{width:26px;height:26px}.tradecard .th b{color:#3a2a12}
.tradef{display:flex;gap:8px;align-items:stretch}
.tradef input{flex:1;min-width:0;padding:9px;border-radius:8px;border:1px solid var(--gold);background:#f0e8d2;text-align:center;color:#2a1c08}
.tradef .obtn.sm{flex:none;width:auto;padding:0 16px}
/* quests */
.questc{background:rgba(255,255,255,.55);border:1px solid #c9b98a;border-radius:10px;padding:10px;margin-bottom:10px;border-left:5px solid #b0a070}
.questc.ready{border-left-color:var(--green)}
.questc.done{border-left-color:#8a8a8a;opacity:.7}
.questc .qh{display:flex;justify-content:space-between;align-items:center;gap:8px}
.questc .qh b{color:#3a2a12}
.qrw{display:flex;align-items:center;gap:3px;font-size:.78rem;color:#6a4a1a;white-space:nowrap}
.qrw img{width:16px;height:16px}
.questc p{font-size:.82rem;color:#5a4426;margin:6px 0}
.qtag{font-size:.78rem;color:#8a6a3a}.qtag.ok{color:var(--green);font-weight:bold}
.questc .obtn.sm{width:auto;padding:0 18px}
/* questfab */
/* alliance */
.alcard{background:rgba(255,255,255,.55);border:1px solid var(--gold);border-radius:10px;padding:12px}
.alname{font-size:1.2rem;color:#5a3d16;font-weight:bold;text-align:center;margin-bottom:8px}
.almembers{display:flex;flex-direction:column;gap:4px;margin:8px 0}
.alm{background:rgba(255,255,255,.5);border:1px solid #d8c9a2;border-radius:6px;padding:6px 10px;font-size:.85rem;color:#3a2a12}
.alform{display:flex;flex-direction:column;gap:8px}
.alform input{padding:12px;border-radius:8px;border:1px solid var(--gold);background:#f0e8d2;color:#2a1c08}
.setlinks{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}

/* akademi arastirma */
.research{display:flex;flex-direction:column;gap:8px}
.rescard{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.55);border:1px solid #c9b98a;border-radius:10px;padding:8px 10px}
.rescard.lk{opacity:.6}
.resicon{width:40px;height:40px;object-fit:contain;flex:none}
.resinfo{flex:1;min-width:0}
.resh{display:flex;justify-content:space-between;align-items:center;gap:6px}
.resh b{color:#3a2a12;font-size:.9rem}
.reslvl{font-size:.7rem;background:#1d4e74;color:#fff;padding:1px 8px;border-radius:8px}
.resinfo p{font-size:.76rem;color:#5a4426;margin:3px 0}
.rescost{display:flex;align-items:center;gap:4px;font-size:.82rem;font-weight:bold;color:#6a4a1a}
.rescost img{width:18px;height:18px}
.reqtag{font-size:.74rem;color:#8a6a3a}.reqtag.ok{color:var(--green);font-weight:bold}
.resbtn{flex:none}
.resbtn .obtn.sm{width:auto;padding:0 14px;height:40px;line-height:40px}
/* birim yukseltme */
.unitupg{margin-top:6px;font-size:.76rem;color:#5a4426;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.unitupg .obtn.sm{width:auto;padding:0 12px;height:36px;line-height:36px;margin:0;display:inline-flex;align-items:center;gap:4px}
.ig{width:15px;height:15px;display:inline-block;vertical-align:middle}

/* oyuncu market */
.mtabs{display:flex;gap:6px;margin-bottom:10px}
.mtabs a{flex:1;text-align:center;padding:10px;background:rgba(255,255,255,.4);border:1px solid #c9b98a;border-radius:8px;color:#6a4a1a;font-weight:bold}
.mtabs a.on{background:var(--teal);color:#fff;border-color:var(--gold)}
.ordform{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.ordform label{display:flex;flex-direction:column;gap:3px;font-size:.82rem;color:#5a4426}
.ordform input,.ordform select{padding:10px;border-radius:8px;border:1px solid var(--gold);background:#f0e8d2;color:#2a1c08}
.orders{display:flex;flex-direction:column;gap:6px}
.ordrow{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.5);border:1px solid #c9b98a;border-radius:8px;padding:7px 10px}
.ordrow img{width:26px;height:26px}.oinfo{flex:1}.oinfo b{color:#3a2a12;font-size:.85rem}.oinfo span{display:block;font-size:.72rem;color:#7a5a2a}
.ordrow .obtn.sm{width:auto;padding:0 12px;margin:0}
.mtable{width:100%;border-collapse:collapse;font-size:.8rem;background:rgba(255,255,255,.5);border-radius:8px;overflow:hidden}
.mtable th{background:var(--teal);color:#fff;padding:7px 5px;font-size:.72rem}
.mtable td{padding:6px 5px;border-bottom:1px solid #d8c9a2;text-align:center;color:#3a2a12}
.mtable .sname{color:#1d4e74;font-weight:bold;text-align:left}
.mres{width:20px;height:20px;margin:0 auto}
.buyf{display:flex;gap:3px;align-items:center}
.buyf input{width:56px;padding:5px;border-radius:6px;border:1px solid var(--gold);background:#f0e8d2;text-align:center;font-size:.78rem}
.buyf .obtn.sm{width:auto;padding:0 8px;height:32px;line-height:32px;margin:0;font-size:.78rem}
.mown{color:#8a6a3a;font-size:.72rem}

/* acik dunya harita */
.worldwrap{width:100%;height:72vh;overflow:auto;border:3px solid var(--gold);border-radius:10px;
  background:#5a8a3a;margin-bottom:6px;cursor:grab;position:relative;touch-action:none;scrollbar-width:none;-ms-overflow-style:none}
.worldwrap.grabbing{cursor:grabbing}
.worldwrap::-webkit-scrollbar{display:none}
.world{position:relative;background-image:url('img/map/map_em_0.jpg');background-size:96px 96px;background-repeat:repeat;image-rendering:auto}
.wtile{position:absolute;width:96px;height:96px;pointer-events:none;display:block;z-index:0}
/* Original 128x96 map tiles: preserve their aspect ratio and avoid blurred upscaled cutouts. */
.wcity{position:absolute;transform:translate(-50%,-70%);display:flex;flex-direction:column;align-items:center;z-index:5;width:128px}
.wcity img{width:128px;height:96px;object-fit:contain;image-rendering:auto}
.wcity span{background:rgba(28,32,13,.88);color:#fff;font-size:16px;line-height:1.15;font-weight:700;letter-spacing:0;padding:2px 6px;border:1px solid rgba(220,227,173,.55);border-radius:1px;white-space:nowrap;max-width:154px;overflow:hidden;text-overflow:ellipsis;margin-top:-9px;z-index:1;text-shadow:0 1px 1px rgba(0,0,0,.65)}
.wcity:focus-visible{outline:3px solid #ffe89a;outline-offset:3px}
.wcity.me span{color:#f0c860;border:1px solid var(--gold)}
.wcity.npc span{color:#f0a0a0}
.wcity.foe span{color:#fff}

/* koy iscileri */
.villageinfo{background:rgba(255,255,255,.5);border:1px solid #c9b98a;border-radius:8px;padding:10px;margin:8px 0;font-size:.85rem;color:#4a3618}
.villageinfo b{color:#5a3d16}
.workers{display:flex;flex-direction:column;gap:10px}
.wcard{display:flex;gap:10px;background:rgba(255,255,255,.55);border:1px solid #c9b98a;border-radius:10px;padding:8px}
.wimg{width:64px;height:64px;object-fit:contain;flex:none;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}
.wbody{flex:1;min-width:0}
.wh{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.wh b{color:#3a2a12}
.wcount{background:#7a5a1c;color:#fff;font-size:.7rem;padding:1px 8px;border-radius:8px}
.wlvl{background:#1d4e74;color:#fff;font-size:.7rem;padding:1px 8px;border-radius:8px}
.wprod{display:flex;align-items:center;gap:4px;font-size:.82rem;color:#3a7a2a;font-weight:bold;margin:3px 0}
.wprod img{width:18px;height:18px}
.wcost{font-size:.72rem;color:#7a5a2a;margin-bottom:5px}
.wcost span{display:inline-flex;align-items:center;gap:2px}
.wcost img{width:14px;height:14px}
.wactions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.wproduce{display:flex;gap:5px}
.wproduce input{width:64px;padding:7px;border-radius:7px;border:1px solid var(--gold);background:#f0e8d2;text-align:center}
.wactions .obtn.sm{width:auto;padding:0 12px;height:38px;line-height:38px;margin:0;display:inline-flex;align-items:center;gap:3px}

/* harita yollar */
.world .roads{position:absolute;left:0;top:0;z-index:1;pointer-events:none}

.roadlegend{font-size:.68rem;color:#5a4426;margin-bottom:4px;text-align:center;line-height:1.6}
.roadlegend span{margin:0 4px;white-space:nowrap;font-weight:bold}

/* ordu ozet */
.armylist{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}
.arow{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.5);border:1px solid #c9b98a;border-radius:8px;padding:7px 10px}
.arow img{width:38px;height:40px;object-fit:contain}
.ainfo{flex:1}.ainfo b{color:#3a2a12;font-size:.88rem}.ainfo span{display:block;font-size:.72rem;color:#7a5a2a}
.aqty{background:#7a5a1c;color:#fff;font-size:.78rem;padding:2px 10px;border-radius:8px}
.trainlinks{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}

/* minimap widget (harita sag-alt) */
.worldwrap{position:relative}
.mmwidget{display:block;width:max-content;margin:8px 0 8px auto;background:rgba(20,20,24,.92);
  border:2px solid var(--gold);border-radius:8px;padding:5px}
.mmwidget .mmsvg{display:block;border-radius:4px}
.mmwidget span{display:block;text-align:center;color:var(--gold2);font-size:.6rem;font-weight:bold;padding-top:2px}
/* buyuk minimap */
.minimapbig{display:flex;justify-content:center;margin:6px 0 12px}
.mmbig{width:min(94vw,72vh);height:min(94vw,72vh);max-width:680px;max-height:680px}
.mmbig .mmsvg{width:100%;height:100%;display:block}
.mmwrap{position:relative;border:3px solid var(--gold);border-radius:8px;overflow:hidden;background:#2a2a2e}
.mmsvg{display:block}
.mmlabels{position:absolute;inset:0;pointer-events:none}
.mmlabels .mml{position:absolute;transform:translate(4px,-7px);color:#fff;font-size:.72rem;font-weight:700;line-height:1;text-shadow:0 1px 3px #000,0 0 2px #000;white-space:nowrap}
.mmcols{display:flex;gap:10px}
.mmcol{flex:1;background:rgba(255,255,255,.5);border:1px solid #c9b98a;border-radius:8px;padding:8px}
.mmcol h4{margin:0 0 6px;color:#5a3d16;font-size:.75rem;text-align:center}
.roadgrid{display:grid;grid-template-columns:1fr 1fr;gap:4px;font-size:.72rem;font-weight:bold}
.algrid{display:flex;flex-direction:column;gap:4px}
.alr{display:flex;justify-content:space-between;font-size:.75rem;color:#3a2a12;border-bottom:1px dashed #cbb98a;padding:2px 0}
.rkinfo{flex:1}.rking{display:block;font-size:.66rem;color:#8a6a3a}

/* Minimap alliance drill-down: same parchment panel, touch-size controls. */
.mmcols>.mmcol{min-width:0}
.mmalliances [hidden]{display:none!important}
.mmalliances .mmall-list,.mmall-cities{max-height:210px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b8a77f transparent}
.mmalliances button{font:inherit;cursor:pointer;text-align:left;color:#4a391c;background:transparent;border-radius:0;box-shadow:none}
.mmalliances .mmall-open{width:100%;min-height:40px;gap:6px;border:0;border-bottom:1px dashed #cbb98a;padding:6px 2px;font-size:.75rem;align-items:center}
.mmall-open b,.mmall-city>span,.mmall-title{min-width:0;overflow-wrap:anywhere}
.mmall-open>span{white-space:nowrap}
.mmall-open i,.mmall-city i{font-style:normal;color:#92733a}
.mmalliances .mmall-back{display:block;border:0;min-height:36px;padding:4px 2px;font-size:.75rem;font-weight:bold}
.mmall-back>span{font-size:1.3em}
.mmall-title{font-weight:bold;font-size:.8rem;padding:0 2px 5px;border-bottom:1px solid #cbb98a}
.mmall-city{display:flex;align-items:center;gap:5px;min-height:40px;padding:5px 2px;border-bottom:1px dashed #d6c8a4;color:#4a391c;text-decoration:none;font-size:.78rem;font-weight:bold}
.mmall-city>span{flex:1}.mmall-city small{color:#79632b;font-size:.72rem;white-space:nowrap}
.mmall-open:hover,.mmall-city:hover,.mmall-back:hover{background:rgba(186,153,81,.13)}
.mmall-open:focus-visible,.mmall-city:focus-visible,.mmall-back:focus-visible{outline:2px solid #9f7c32;outline-offset:-2px}

.push-choice{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #ddcda5;cursor:pointer}.push-choice input{width:22px;height:22px;accent-color:#17586e;flex-shrink:0}.push-settings .obtn{display:block;width:100%;box-sizing:border-box;white-space:normal;margin:10px 0;min-height:46px}.push-settings [hidden]{display:none!important}.push-note{font-size:13px;color:#7a694e}.push-settings #push-status{padding:12px;border:1px solid #c8b37d;background:#f2e8cf;border-radius:5px}
/* Inbox hub: four generous controls, two columns on narrow phones. */
.tabs.inbox-tabs.inbox-hub{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:10px 0 20px;padding:0;clear:both}
.tabs.inbox-tabs.inbox-hub>a{box-sizing:border-box;min-height:78px;display:flex;flex-direction:column;gap:6px;padding:10px 6px;border:1px solid #b99b58;border-radius:8px;background:linear-gradient(140deg,#faf3dc,#e4d5ac);color:#624b26;font-size:14px;line-height:1.25;text-decoration:none;box-shadow:inset 0 0 0 2px #fff8e455,0 2px 3px #49341615;overflow-wrap:anywhere}
.tabs.inbox-tabs.inbox-hub>a>img{width:32px;height:32px;flex-shrink:0;object-fit:contain;filter:drop-shadow(0 1px 1px #43311c44)}
.tabs.inbox-tabs.inbox-hub>a.on{background:linear-gradient(140deg,#19566b,#0c3345);border-color:#c99a36;color:#ffe6a2;box-shadow:inset 0 0 0 2px #d9ad4b44,0 2px 4px #16384722}
.tabs.inbox-tabs.inbox-hub>a:focus-visible,.guide-topic>summary:focus-visible{outline:3px solid #24758f;outline-offset:3px}
.inbox-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px;font-size:13px}
.inbox-toolbar .blocklink{float:none;margin:0;padding:8px 0}
.inbox-toolbar>a{min-height:32px;display:inline-flex;align-items:center;color:#20536b}
.guide-intro{display:flex;gap:14px;align-items:center;padding:18px;margin-bottom:16px;border:1px solid #c3a25d;border-radius:9px;background:linear-gradient(120deg,#fffaf0,#f0e4c7)}
.guide-intro>img{width:44px;height:50px;object-fit:contain}.guide-intro h2{margin:0 0 6px;color:#734515;font-size:22px}.guide-intro p{margin:0;color:#705e3e;font:14px/1.6 'Segoe UI',sans-serif}
.guide-topic{margin:10px 0;border:1px solid #cdbb8a;border-radius:8px;background:#fffaf0cc;overflow:hidden}
.guide-topic>summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;padding:14px 12px;min-height:52px;box-sizing:border-box;color:#5c411d;background:linear-gradient(100deg,#f0e5c8,#faf5e6);font-size:16px}
.guide-topic>summary::-webkit-details-marker{display:none}.guide-topic>summary>img{width:38px;height:38px;object-fit:contain;flex-shrink:0}.guide-topic>summary>span:not(.guide-chevron){flex:1;min-width:0}.guide-chevron{color:#a57728;font-size:24px}.guide-topic[open] .guide-chevron{transform:rotate(180deg)}
.guide-body{padding:3px 17px 16px;color:#4f432d;font:15px/1.75 'Segoe UI',sans-serif;overflow-wrap:anywhere}.guide-body p{margin:12px 0}.guide-table{width:100%;border-collapse:collapse;margin:14px 0;font-size:14px}.guide-table th{text-align:left;color:#76521b;background:#eee0bb}.guide-table td,.guide-table th{padding:8px 10px;border-bottom:1px solid #d9cba7}.guide-table td:last-child{font-variant-numeric:tabular-nums;font-weight:700;color:#185367}.guide-body .obtn{margin-top:8px;text-align:center}
@media(max-width:420px){.tabs.inbox-tabs.inbox-hub{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tabs.inbox-tabs.inbox-hub>a{flex-direction:row;min-height:59px;font-size:14px;padding:10px 8px}.guide-intro{padding:14px}.guide-intro h2{font-size:20px}.guide-topic>summary{font-size:15px}.guide-body{padding-left:12px;padding-right:12px}}

/* Alliance selection temporarily overrides the current road filter. */
.mmwrap.alliance-filter .mml{display:none!important}
.mmwrap.alliance-filter .mml.alliance-owned{display:block!important}
.mmwrap.alliance-filter .rline{stroke-opacity:.3!important}
.mmwrap.alliance-filter .rdot{opacity:.2!important}
.mmwrap.alliance-filter .rdot.alliance-owned{opacity:1!important;stroke:#fff;stroke-width:1}

/* minimap etiket filtreleme */
.mml{display:none}
.mml.on{display:block}
.roadbtn{cursor:pointer;user-select:none;padding:2px 4px;border-radius:4px}
.roadbtn.sel{background:rgba(255,255,255,.2);outline:1px solid currentColor}
.mmhint{font-size:.62rem;color:#8a6a3a;margin:6px 0 0;text-align:center}
.rline{transition:stroke-opacity .15s}
.mmsvg.filtering .rline{stroke-opacity:.15}
.mmsvg.filtering .rline.sel{stroke-opacity:1;stroke-width:2.4}
.mmsvg.filtering .rdot{opacity:.3}
.mmsvg.filtering .rdot.sel{opacity:1}

/* ===== v18: birim bilgi ikonu, birim detay, kuyruk butonlari, sekmeler ===== */
.uimg{position:relative}
.uimg .infoi{position:absolute;top:-4px;left:-4px;width:22px;height:22px;z-index:2}
.uimg .infoi img{width:22px;height:22px;display:block}
.obtn.xs{font-size:11px;padding:4px 7px;min-width:0}
.qi{display:flex;align-items:center;gap:8px;padding:6px 8px;background:#efe6d0;border:1px solid #c9b686;border-radius:8px;margin-bottom:6px}
.qi>img{width:38px;height:38px;object-fit:contain}
.qib{flex:1}
.qih{display:flex;justify-content:space-between;align-items:center;font-size:13px}
.qbtns{display:flex;gap:6px;margin-top:5px}
.qbtns form{margin:0}
.ig{width:13px;height:13px;vertical-align:-2px}
/* birim detay sayfasi */
.unitpage .ubig{text-align:center;padding:14px 0}
.unitpage .ubig img{width:150px;height:150px;object-fit:contain}
.infotbl{background:#efe6d0;border:1px solid #c9b686;border-radius:10px;overflow:hidden}
.infotbl .irow{display:flex;justify-content:space-between;padding:9px 12px;border-bottom:1px solid #d8c9a3}
.infotbl .irow:last-child{border-bottom:0}
.infotbl .ik{color:#a23b2e;font-weight:700}
.infotbl .iv{background:#e2d6b8;padding:3px 14px;border-radius:6px;min-width:120px;text-align:center}
.costbox{background:#efe6d0;border:1px solid #c9b686;border-radius:10px;padding:10px 12px}
.costbox .cbh{font-weight:700;margin:4px 0 6px}
.costbox .cbh.red{color:#a23b2e;margin-top:12px}
.cbrow{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.cbrow span{display:inline-flex;align-items:center;gap:3px;font-weight:700}
.cbrow span img{width:18px;height:18px}
.abilbox{background:#efe6d0;border:1px solid #c9b686;border-radius:10px;padding:10px 12px}
.abil{color:#a23b2e;font-weight:700;text-align:center;margin-bottom:8px}
.atktbl{width:100%;border-collapse:collapse}
.atktbl th,.atktbl td{padding:8px 6px;text-align:center;border-bottom:1px solid #d8c9a3;font-size:13px}
.atktbl th{color:#a23b2e}
.atktbl td.al{text-align:left;color:#a23b2e;font-weight:700}
/* sekmeler */
.tabs{display:flex;gap:8px;margin-bottom:12px}
.tabs a{flex:1;text-align:center;padding:9px;border-radius:8px;background:#e2d6b8;color:#6b5836;font-weight:700;border:1px solid #c9b686}
.tabs a.on{background:#0d3a4d;color:#f0c860;border-color:#0d3a4d}

/* ===== v19: bina yukseltme satiri, bonus metni, saldiri maliyeti ===== */
.bbonus{background:#efe6d0;border:1px solid #c9b686;border-radius:8px;padding:6px 12px;margin:4px 0;font-weight:700;color:#6b5836}
.buprow{display:flex;align-items:center;gap:10px;background:#efe6d0;border:1px solid #c9b686;border-radius:10px;padding:8px 10px;margin:8px 0;position:relative}
.buprow .infoi{width:22px;height:22px;flex:0 0 22px}
.buprow .infoi img{width:22px;height:22px}
.buprow .brimg{width:52px;height:52px;object-fit:contain}
.buprow .brbody{flex:1}
.buprow .brh{display:flex;justify-content:space-between;align-items:center}
.buprow .brh b{font-size:15px}
.buprow .brlvl{color:#6b5836;font-size:12px}
.buprow .brcost{display:flex;flex-wrap:wrap;gap:8px;margin-top:3px;font-size:12px}
.buprow .brcost span{display:inline-flex;align-items:center;gap:2px}
.buprow .brcost span img{width:14px;height:14px}
.buprow .brcost span.no{color:#c0392b}
.buprow .brup{margin:0}
.upbtn{background:linear-gradient(#2a6fb0,#194e86);border:2px solid #d8a72e;border-radius:8px;color:#fff;padding:6px 10px;display:flex;flex-direction:column;align-items:center;gap:1px;font-weight:700;font-size:11px;cursor:pointer}
.upbtn img{width:20px;height:20px}
.upbtn:disabled{opacity:.5}
.warcostline{text-align:center;margin:8px 0;font-weight:700;color:#a23b2e}
.warcostline img{width:14px;height:14px;vertical-align:-2px}
.noop{pointer-events:none;opacity:.9}

/* ===== v20: birim egitim satiri (referans yatay format) ===== */
.urow{display:flex;align-items:center;gap:9px;background:#efe6d0;border:1px solid #c9b686;border-radius:10px;padding:8px 10px;margin:8px 0}
.urow .infoi{width:22px;height:22px;flex:0 0 22px;display:block;padding:6px;margin:-6px;box-sizing:content-box;cursor:pointer}
.urow .infoi img{width:22px;height:22px;display:block}
.urow .ursprite{width:54px;height:54px;object-fit:contain;flex:0 0 54px}
.urow .urmid{flex:1;min-width:0}
.urow .urh{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.urow .urh b{font-size:15px}
.urow .urx{color:#2a6fb0;font-weight:700;font-size:13px}
.urow .urlvl{color:#6b5836;font-size:12px}
.urow .urcost{display:flex;flex-wrap:wrap;gap:7px;margin-top:3px;font-size:12px}
.urow .urcost span{display:inline-flex;align-items:center;gap:2px}
.urow .urcost span img{width:14px;height:14px}
.urow .uract{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.qtyf{display:flex;align-items:center;gap:4px;margin:0}
.qtyf input{width:46px;padding:6px 4px;text-align:center;border:1px solid #c9b686;border-radius:6px;background:#fff;font-size:13px}
.plusbtn{width:34px;height:34px;border-radius:8px;border:2px solid #2f8a3e;background:linear-gradient(#54c063,#2f8a3e);color:#fff;font-size:20px;font-weight:700;cursor:pointer;line-height:1}
.urow .upbtn{padding:5px 8px}
.urmax{color:#a23b2e;font-weight:700;font-size:12px}
.urlock{color:#8a7a55;font-weight:700;font-size:12px;text-align:center}

/* ===== v21: fetih + casus ===== */
.conqchk{display:flex;align-items:center;gap:6px;justify-content:center;margin:6px 0;font-size:13px;color:#6b5836}
.conqchk input{width:16px;height:16px}
.spyf{margin-top:10px;border-top:1px solid #d8c9a3;padding-top:10px}
.spyrow{display:flex;align-items:center;gap:8px;background:#eef;border:1px solid #b9c3e0;border-radius:8px;padding:6px 8px}
.spyrow img{width:36px;height:36px;object-fit:contain}
.spyrow span{flex:1;font-size:13px}
.spyrow input{width:56px;padding:5px;text-align:center;border:1px solid #c9b686;border-radius:6px}

/* ===== v22: haberler + surec merkezi ===== */
.newsrow{display:flex;gap:10px;align-items:flex-start;background:#efe6d0;border:1px solid #c9b686;border-radius:8px;padding:9px 11px;margin-bottom:7px}
.newsdot{width:9px;height:9px;border-radius:50%;background:#c0392b;margin-top:5px;flex:0 0 9px}
.newsbody{flex:1}
.newsbody p{margin:0;font-size:14px}
.newsbody span{color:#8a7a55;font-size:11px}
.procrow{display:flex;align-items:center;gap:10px;background:#efe6d0;border:1px solid #c9b686;border-radius:8px;padding:7px 10px;margin-bottom:6px}
.procrow img{width:38px;height:38px;object-fit:contain}
.procrow span{flex:1;font-size:13px}
.procrow b{color:#2a6fb0;font-weight:700}
.pmini{color:#8a7a55;font-size:13px;padding:2px 4px 8px}

/* ===== v22: ittifak/forum/mesaj ===== */
.aldesc{background:#efe6d0;border:1px solid #c9b686;border-radius:8px;padding:8px 10px;margin:6px 0;font-size:14px}
.albadge{background:#d8a72e;color:#3a2d0a;font-size:10px;padding:1px 6px;border-radius:6px;margin-left:6px;font-weight:700}
.alform textarea,.msgform textarea,.msgform input{width:100%;box-sizing:border-box;border:1px solid #c9b686;border-radius:8px;padding:8px;margin:4px 0;font-family:inherit;font-size:14px}
.msgform label{font-weight:700;color:#6b5836;font-size:13px;margin-top:6px;display:block}
.frow{display:flex;justify-content:space-between;align-items:center;background:#efe6d0;border:1px solid #c9b686;border-radius:8px;padding:9px 11px;margin-bottom:6px;text-decoration:none;color:inherit}
.frow small{display:block;color:#8a7a55;font-size:11px}
.fpc{color:#2a6fb0;font-weight:700;font-size:12px}
.postrow,.msgrow{background:#efe6d0;border:1px solid #c9b686;border-radius:8px;padding:9px 11px;margin-bottom:7px}
.posth,.msgh{display:flex;justify-content:space-between;font-size:12px;color:#8a7a55;margin-bottom:3px}
.posth b,.msgh b{color:#3a2d0a}
.msgsub{font-weight:700;margin-bottom:2px}
.postrow p,.msgrow p{margin:0;font-size:14px;white-space:pre-wrap}
.mreply{display:inline-block;margin-top:5px;color:#2a6fb0;font-size:12px;font-weight:700;text-decoration:none}

/* ===== v23: magaza + kampanya ===== */
.storecard{display:flex;align-items:center;gap:10px;background:#efe6d0;border:1px solid #c9b686;border-radius:10px;padding:10px;margin-bottom:8px;flex-wrap:wrap}
.storecard>img{width:44px;height:44px;object-fit:contain}
.stbody{flex:1;min-width:120px}
.stbody small{display:block;color:#6b5836;font-size:12px}
.buyf{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:0}
.buyf select,.buyf input{border:1px solid #c9b686;border-radius:6px;padding:6px}
.buyf input{width:70px}
.camprow{display:flex;align-items:center;gap:10px;background:#efe6d0;border:1px solid #c9b686;border-radius:10px;padding:9px 11px;margin-bottom:7px}
.camprow.lk{opacity:.55}
.camprow.cur{border-color:#c0392b;box-shadow:0 0 0 1px #c0392b}
.campnum{width:30px;height:30px;border-radius:50%;background:#0d3a4d;color:#f0c860;display:flex;align-items:center;justify-content:center;font-weight:700;flex:0 0 30px}
.camprow.done .campnum{background:#2f8a3e}
.campbody{flex:1}
.campbody small{display:block;color:#6b5836;font-size:11px}
.campok{color:#2f8a3e;font-size:22px;font-weight:700}

/* ===== v24: kalan ozellikler ===== */
.kcard{background:#efe6d0;border:1px solid #c9b686;border-radius:12px;padding:14px}
.kbtns{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.kbtns form{margin:0}
.obtn.dark{background:linear-gradient(#555,#333);border-color:#222;color:#fff}
.searchf{display:flex;gap:6px;margin-bottom:12px}
.searchf input{flex:1;border:1px solid #c9b686;border-radius:8px;padding:9px;font-size:14px}
.armbox{background:#efe6d0;border:2px solid #c9b686;border-radius:12px;padding:14px;text-align:center;margin-bottom:10px}
.armbox.on{border-color:#c0392b;background:#f6e2df}
.armbox h2{margin:0 0 6px;color:#a23b2e}
.armon{color:#c0392b;font-weight:700}
.setmenu{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}
.setmenu a{display:flex;align-items:center;gap:8px;background:#efe6d0;border:1px solid #c9b686;border-radius:10px;padding:11px;text-decoration:none;color:#3a2d0a;font-weight:700;font-size:13px}
.setmenu a img{width:26px;height:26px}

/* ===== v25: coklu dunya ===== */
.wsel{width:100%;box-sizing:border-box;padding:11px;border:2px solid #c9b686;border-radius:10px;margin:6px 0;font-size:15px;background:#fff}

/* ===== v26: mutluluk/koruma/rutbe ===== */
.minibar{display:flex;flex-wrap:wrap;gap:8px;padding:4px 10px;font-size:11px;background:#0a2e3d;color:#cfe6ef}
.minibar .hap{color:#8fd18f}
.minibar .protb{color:#f0c860}
.minibar .rankb{color:#e0c8f0;margin-left:auto}

/* ===== v27: haritada kaleye uzaklik ===== */
.wcity .wdist{display:block;font-size:14px;color:#f0c860;font-weight:400;line-height:1.1}

/* ===== v27: canli mesafe HUD ===== */
/* ORIJINAL map_tracker: ekran kenarina yapisik, KALEYI GOSTEREN pusula (donen ok) */
.disthud{position:absolute;top:0;left:0;z-index:24;width:112px;height:42px;
  background:url('img/map/map_tracker.png') center/100% 100% no-repeat;
  display:flex;align-items:center;justify-content:center;padding-right:10px;
  transform-origin:100% 50%;pointer-events:none;will-change:transform,left,top}
.disthud b{color:#fff;font-size:14px;font-weight:bold;white-space:nowrap;text-shadow:0 1px 2px rgba(0,0,0,.85)}

/* ===== v28: elcilik haber ikon + ileti ===== */
.newsico{width:34px;height:34px;object-fit:contain;flex:0 0 34px}
.msgb{color:#8fd1e0;text-decoration:none;font-weight:700;position:relative}
.msgb em{background:#c0392b;color:#fff;border-radius:8px;padding:0 5px;font-size:10px;font-style:normal;margin-left:2px}

/* ===== v29: savas uyarisi ===== */
.waralert{background:#7a1f1f;color:#ffdede;padding:10px 12px;border-radius:8px;margin:8px 10px;font-weight:700;text-align:center;animation:wpulse 1.2s infinite}
.waralert a{color:#ffd24d;text-decoration:underline}
@keyframes wpulse{0%,100%{background:#7a1f1f}50%{background:#a52a2a}}
.kcard.intel{border:1px solid #c9a24a;background:linear-gradient(180deg,#2a2416,#1c1810)}
.obtn[disabled]{opacity:.45;pointer-events:none}
.vscue{font-size:12px;color:#d8c48a;background:#221d12;border-left:3px solid #c9a24a;padding:6px 9px;margin:6px 0 0;border-radius:4px;line-height:1.5}
.helpp{padding-bottom:20px}
.helpsec{background:#1a1710;border:1px solid #3a3220;border-radius:8px;padding:12px 14px;margin:10px 0}
.helpsec h3{margin:0 0 6px;color:#e8d9a8;font-size:15px}
.helpsec p{margin:4px 0;font-size:13px;line-height:1.6;color:#cbb98a}
.rps{display:flex;flex-direction:column;gap:5px;margin:8px 0}
.rps span{background:#221d12;border-left:3px solid #c9a24a;padding:6px 10px;border-radius:4px;font-size:13px;color:#e8d9a8}
.chalbanner{background:linear-gradient(90deg,#4a2d6b,#6b3a8a);color:#fff;padding:8px 12px;border-radius:6px;margin:8px 0;font-size:13px;font-weight:bold;text-align:center;animation:pulse 2s infinite}
.chalbanner.mine{background:linear-gradient(90deg,#2d6b3a,#3a8a4f)}
.chalbanner a{color:#ffe;text-decoration:underline}

@keyframes pulse{0%,100%{opacity:1}50%{opacity:.6}}
.chestrow{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin:14px 0}
.chestrow.big{gap:18px;margin:24px 0}
.chestf{margin:0}
.chest{display:flex;flex-direction:column;align-items:center;gap:6px;background:#1a1710;border:1px solid #3a3220;border-radius:10px;padding:14px 16px;min-width:90px}
.chest.closed{cursor:pointer;transition:transform .15s;border-color:#c9a24a}
.chest.closed:hover{transform:translateY(-4px) scale(1.05);border-color:#e0b040}
.chest.closed:active{transform:scale(.97)}
.chest img{width:52px;height:52px;object-fit:contain}
.chest .chq{font-size:22px;font-weight:bold;color:#e0b040}
.chest.win{border-color:#7fdc7f;background:#1e3a1e;margin:10px auto;max-width:150px}
.chest.gray{opacity:.55}
.chamt{font-size:13px;color:#3a2a12;font-weight:bold}
.bonusres{text-align:center;padding:10px}
.bonusres h2{color:#62400e}
/* PANEL UST BAR (elmas/mesajlar/islemler/ayarlar) */
.ptop{display:flex;gap:6px;align-items:center;padding:8px 18px 4px}
.ptbtn{position:relative;height:56px;display:flex;align-items:center;text-decoration:none;background-repeat:no-repeat;background-size:100% 100%;font-weight:bold;color:#4a3410;white-space:nowrap}
.ptbtn.diamond{flex:1;min-width:0;background:none !important;color:#2a3a6a;font-size:14px;justify-content:flex-start;
  border-style:solid;border-width:7px 32px 7px 50px;border-image-slice:12 54 12 84 fill;border-image-width:7px 32px 7px 50px;border-image-repeat:stretch;border-image-source:url(img/nav/buydiamond.png);
  padding:0 4px 0 2px}
.ptbtn.diamond b{margin-left:0}
.ptbtn.wide{flex:1;min-width:0;font-size:13.5px;color:#4a3410;background:none !important;
  border-style:solid;border-width:7px 12px 7px 50px;border-image-slice:12 18 12 82 fill;border-image-width:7px 12px 7px 50px;border-image-repeat:stretch;
  padding:0 6px 0 2px}
.ptbtn.wide span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ptbtn.inbox{border-image-source:url(img/nav/inbox.png)}
.ptbtn.proc{border-image-source:url(img/nav/process.png)}
.ptbtn.gear{width:54px;height:56px;background-image:url(img/nav/settings.png);flex:0 0 auto}
.ptbtn em{position:absolute;top:-3px;right:4px;background:#c0392b;color:#fff;border-radius:9px;min-width:16px;height:16px;line-height:16px;text-align:center;font-size:10px;font-style:normal;padding:0 3px}
/* koruma kalkani sag-alt */
.protshield{position:absolute;right:8px;bottom:122px;z-index:25;width:128px;height:34px;background:url('img/ui/protectionbar.png') center/100% 100% no-repeat;display:flex;align-items:center;justify-content:flex-start;padding-left:12px}
.protshield b{color:#fff;font-size:13px;font-weight:bold;text-shadow:0 1px 2px rgba(0,0,0,.8)}
a.resbar{text-decoration:none;color:inherit}
/* KRALLIK BILGILERI (kinfo) - 2 kolon, orijinal gibi */
.kinfo{padding:8px 10px 24px;background:#e8ddc4}
.kbox{background:#fdfaf0;border:1px solid #c9a24a;border-radius:6px;margin:8px 0;padding:8px 10px;color:#3a2a12;box-shadow:0 1px 2px rgba(0,0,0,.15)}
.kboxh{font-weight:bold;color:#8a6a2a;border-bottom:2px solid #e0cfa0;padding-bottom:4px;margin-bottom:8px;letter-spacing:.5px;font-size:13px;position:relative;min-height:20px}
.kboxico{width:22px;height:22px;position:absolute;right:0;top:-3px}
.agerow{display:flex;align-items:center;gap:12px}
.agemedal{width:60px;height:60px;flex:0 0 auto;display:flex;align-items:center;justify-content:center}
.agemedal img{width:60px;height:60px;object-fit:contain}
.ageinfo{flex:1;display:flex;flex-direction:column;gap:6px}
.agepill{background:#e4e0d6;border:1px solid #c8c0aa;border-radius:16px;padding:8px 14px;font-weight:bold;color:#4a3a1a;font-size:15px}
.ageinfo span{font-size:13px;color:#5a4a2a;padding-left:4px}
.kmini{font-size:12px;color:#6a5a3a;margin:8px 0 0;line-height:1.4}
.kcols{display:flex;gap:8px;align-items:flex-start}
.kcol{flex:1;min-width:0}
.ecoline{margin:7px 0}
.ecoline b{font-size:13px;display:flex;align-items:center;gap:4px;color:#3a2a10}
.rico{width:18px;height:18px;object-fit:contain}
.ecobox{margin:4px 0 0 6px;background:#f0ead6;border-radius:5px;padding:4px 8px}
.ecobox .inc,.ecobox .dec{display:flex;align-items:center;gap:4px;font-size:12px;padding:1px 0}
.ecobox .inc{color:#2a8a3a}.ecobox .dec{color:#b23a2a}
.ecobox img{width:14px;height:14px}
.graybox{margin:4px 0 0 6px;background:#e9e4d4;border-radius:5px;padding:5px 8px;font-size:12px;color:#4a3e22}
.graybox div{padding:1px 0}
.popgroup{margin:8px 0}
.poph{text-align:center;background:#e4ddc8;border-radius:5px;padding:5px;font-weight:bold;color:#7a5a1a;font-size:13px;margin-bottom:3px}
.stortbl{width:100%;border-collapse:collapse;font-size:13px}
.stortbl th,.stortbl td{padding:5px 8px;text-align:center;border-bottom:1px solid #e0cfa0}
.stortbl th{color:#8a6a2a}.stortbl td.al{text-align:left;font-weight:bold;color:#5a3e12}
.stortbl td.nx{color:#aaa}
/* leaderboard rutbe ikonlari (kaynak: LeaderboardKingsAdapter) */
.rankico{width:40px;height:40px;object-fit:contain;flex:0 0 auto;margin-left:8px}
.rolebadge{width:34px;height:30px;object-fit:contain;flex:0 0 auto}
.rolebadge.lider{width:36px}
.rank .pos{min-width:34px;text-align:center;flex:0 0 auto}
.repico{width:20px;height:20px;object-fit:contain;vertical-align:middle;margin-right:5px}
.mrole{width:20px;height:18px;object-fit:contain;vertical-align:middle;margin-right:2px}
/* SOL YUZEN BUTONLAR (orijinal: kutusuz, ikon + altinda etiket/sayac) */
.fabcol{position:absolute;left:8px;top:135px;display:flex;flex-direction:column;gap:12px;z-index:40}
.fab{display:flex;flex-direction:column;align-items:center;text-decoration:none;position:relative;width:58px}
.fab img{width:48px;height:48px;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(0,0,0,.75))}
.fab b{color:#fff;font-size:11px;font-weight:bold;text-shadow:0 1px 2px #000,0 0 4px #000;margin-top:-2px}
.fab .fabtimer{color:#ffd86a;font-size:10px;font-weight:bold;text-shadow:0 1px 2px #000,0 0 3px #000}
.fab em{position:absolute;top:-3px;right:8px;background:#c0392b;color:#fff;border-radius:9px;min-width:17px;height:17px;line-height:17px;text-align:center;font-size:10px;font-style:normal;font-weight:bold;border:1px solid #fff}
.rescost .tmico{width:13px;height:13px;vertical-align:middle;margin-right:2px}
.reqsm{font-size:10px;color:#b23a2a}
/* SAVAS RAPORU DETAY */
.wreport{padding:8px 10px 20px}
.wrhead{border-radius:8px;padding:10px 12px;margin-bottom:10px;display:flex;flex-direction:column;gap:2px;color:#fff}
.wrhead.win{background:linear-gradient(90deg,#1e5a2a,#2a7a3a)}
.wrhead.lose{background:linear-gradient(90deg,#6b2020,#8a3030)}
.wrhead b{font-size:15px}.wrres{font-weight:bold}.wrhead small{opacity:.85;font-size:11px}
.wsec{background:#fdfaf0;border:1px solid #c9a24a;border-radius:8px;margin:8px 0;padding:8px 10px}
.wsech{display:flex;align-items:center;gap:6px;font-weight:bold;color:#8a6a2a;border-bottom:2px solid #e0cfa0;padding-bottom:5px;margin-bottom:8px}
.wsech img{width:22px;height:22px;object-fit:contain}
.wloot{display:flex;gap:14px;justify-content:center;padding:4px}
.wloot span{display:flex;align-items:center;gap:4px;font-weight:bold;color:#5a3e12}
.wloot img{width:22px;height:22px}
.repsum{font-size:12px;color:#6a5030;padding:2px 0}
.repact{display:flex;gap:6px;justify-content:flex-end;align-items:center;margin-top:4px}
/* savas raporu - yigilmis oyuncu-adli ordu bloklari */
.warmy2{margin:2px 0}
.warmyh{display:flex;align-items:center;gap:6px;font-weight:bold;color:#5a3e12;background:#efe6ce;border-radius:5px;padding:4px 8px;margin-bottom:4px;font-size:13px}
.warmyh img{width:18px;height:18px}
.wu2{display:flex;align-items:center;gap:6px;font-size:12px;padding:4px;border-bottom:1px solid #f0e8d4;color:#3a2a12}
.wu2 img{width:28px;height:28px;object-fit:contain;flex:0 0 auto}
.wu2 .wun{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:bold}
.wu2 .wus{color:#2a6a3a;white-space:nowrap}
.wu2 .wud{color:#b23a2a;white-space:nowrap;min-width:56px;text-align:right}
.wu2 small{color:#8a7a5a;font-weight:normal;font-size:10px}
.wu2 .spear{width:16px;height:16px;opacity:.6}
.wu2.none{color:#aaa;justify-content:center}
/* casus raporu detay */
.wrhead.spy{background:linear-gradient(90deg,#4a3a6b,#5a4a8a)}
.kmini2{font-size:13px;color:#3a2a12;padding:2px}
.spyclass{display:flex;gap:10px;justify-content:space-around;flex-wrap:wrap;padding:6px;background:#f0ead6;border-radius:5px;margin-bottom:6px;font-size:12px;color:#3a2a12}
.spyclass b{color:#7a5a1a}
/* MESAJ KUTUSU - konusma listesi */
.convlist{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.conv{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.55);border:1px solid #c9b98a;border-radius:10px;padding:8px 12px;text-decoration:none;position:relative}
.conv.unread{background:#fff3d4;border-color:var(--gold)}
.convav{width:40px;height:40px;flex:0 0 auto;border-radius:50%;background:linear-gradient(135deg,#8a6a3a,#5a4020);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:bold;font-size:18px}
.convb{flex:1;min-width:0}
.convh{display:flex;justify-content:space-between;align-items:baseline}
.convh b{color:#4a2f10;font-size:14px}.convh span{color:#8a6a3a;font-size:11px}
.convb p{margin:2px 0 0;color:#6a5030;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.convbadge{position:absolute;right:10px;top:10px;background:#c0392b;color:#fff;border-radius:10px;min-width:18px;height:18px;line-height:18px;text-align:center;font-size:11px;font-style:normal;font-weight:bold}
/* CHAT - baloncuklar */
.thread{display:flex;flex-direction:column;min-height:70vh}
.chat{flex:1;display:flex;flex-direction:column;gap:8px;padding:8px 4px}
.bubrow{display:flex}.bubrow.r{justify-content:flex-end}.bubrow.l{justify-content:flex-start}
.bub{max-width:78%;padding:8px 12px;border-radius:14px;position:relative;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.bub b{display:block;font-size:12px;margin-bottom:2px}
.bub p{margin:0;font-size:13px;line-height:1.4;word-wrap:break-word}
.bub span{display:block;text-align:right;font-size:10px;opacity:.7;margin-top:3px}
.bub.me{background:linear-gradient(135deg,#2a7fd0,#1e6bb8);color:#fff;border-bottom-right-radius:4px}
.bub.them{background:linear-gradient(135deg,#a9865a,#8a6a3a);color:#fff;border-bottom-left-radius:4px}
.chatform{display:flex;gap:6px;padding:8px 4px;position:sticky;bottom:64px;background:transparent}
/* Sohbette YENI MESAJ EN USTTE -> yazma alani da listenin ustunde ve yapiskan */
.chatform.top{position:sticky;top:0;bottom:auto;z-index:3;background:#f6ead0;border-radius:14px;box-shadow:0 3px 8px rgba(0,0,0,.15);margin-bottom:8px}
.chatform input{flex:1;border:1px solid #c9b98a;border-radius:20px;padding:9px 14px;font-size:14px}
/* forum */
.postrow{display:flex;gap:8px;background:rgba(255,255,255,.55);border:1px solid #c9b98a;border-radius:10px;padding:8px 10px;margin:6px 0}
.postav{width:36px;height:36px;flex:0 0 auto;border-radius:50%;background:linear-gradient(135deg,#5a7a3a,#3a5a20);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:bold;font-size:16px}
.postmain{flex:1;min-width:0}
.posth{display:flex;align-items:center;gap:6px}
.posth b{color:#4a2f10;font-size:13px}.posth span{color:#8a6a3a;font-size:11px;margin-left:auto}
.postmain p{margin:3px 0 0;color:#3a2a12;font-size:13px;line-height:1.4;word-wrap:break-word}
.frole{width:20px;height:18px;object-fit:contain}
.frow{display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.55);border:1px solid #c9b98a;border-radius:10px;padding:8px 12px;margin:6px 0;text-decoration:none}
.frow b{color:#4a2f10}.frow small{display:block;color:#8a6a3a;font-size:11px}.fpc{color:#7a5a2a;font-size:12px}
/* ittifak ikon navigasyonu (alliance_main.xml) */
.alnav{display:flex;gap:6px;margin:6px 0 10px}
.alnav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;background:rgba(255,255,255,.5);border:1px solid #c9b98a;border-radius:8px;padding:6px 2px;text-decoration:none;color:#5a3d16;font-size:11px;font-weight:bold;position:relative}
.alnav a:active{background:#fff3d4}
.alnav img{width:30px;height:30px;object-fit:contain}
.alnav em{position:absolute;top:2px;right:8px;background:#c0392b;color:#fff;border-radius:8px;min-width:15px;height:15px;line-height:15px;text-align:center;font-size:10px;font-style:normal}
.allogo{width:26px;height:26px;object-fit:contain;vertical-align:middle}
/* harita mesafeler (MapDistances) */
.distbox{background:rgba(255,255,255,.5);border:1px solid #c9b98a;border-radius:8px;padding:8px 10px;margin:8px 0}
.disth{display:flex;align-items:center;gap:6px;font-weight:bold;color:#5a3d16;font-size:13px;margin-bottom:6px}
.disth img{width:20px;height:20px}
.distrow{display:flex;justify-content:space-between;align-items:center;padding:4px 6px;border-bottom:1px solid #e0d4b0;font-size:12px;color:#4a3418}
.distrow.near{background:#eef7e4;border-radius:5px;font-weight:bold}
.distrow b{color:#5a3d16}
/* geri bildirim kategorileri */
.fbcats{display:flex;gap:8px;margin-bottom:10px}
.fbcat{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;background:rgba(255,255,255,.5);border:2px solid #c9b98a;border-radius:8px;padding:8px 4px;cursor:pointer;font-size:12px;color:#5a3d16}
.fbcat input{display:none}
.fbcat img{width:34px;height:34px;object-fit:contain}
.fbcat:has(input:checked){border-color:var(--gold);background:#fff3d4}
/* Askeri: tum ordular + koloni kur */
.armycities{display:flex;flex-direction:column;gap:5px}
.acity{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.5);border:1px solid #c9b98a;border-radius:8px;padding:8px 10px}
.acity span{flex:1;color:#4a2f10;font-weight:bold;font-size:13px}.acity span i{font-weight:normal;color:#8a6a3a;font-size:11px}
.acity b{color:#5a3d16;font-size:13px}
.colonybox{background:#eef7e4;border:1px solid #7ab86a;border-radius:8px;padding:10px 12px;margin:12px 0}
.colh{display:flex;align-items:center;gap:6px;font-weight:bold;color:#2a6a3a;font-size:14px}
.colh img{width:24px;height:24px}
/* ticaret yollari gorunumu */
.troad{background:rgba(255,255,255,.5);border:1px solid #c9b98a;border-radius:8px;margin:8px 0;overflow:hidden}
.troadh{display:flex;align-items:center;gap:6px;padding:8px 10px;border-left:4px solid;background:rgba(0,0,0,.03)}
.troadh b{color:#4a2f10;font-size:14px}.tdot{width:12px;height:12px;border-radius:50%;flex:0 0 auto}
.tctrl{margin-left:auto;font-size:12px;font-weight:bold;color:#2a7a3a}.tctrl.free{color:#8a6a3a}
.troadc{display:flex;flex-wrap:wrap;gap:5px;padding:8px 10px}
.tcity{display:flex;flex-direction:column;background:#f3ecd8;border:1px solid #d8c8a0;border-radius:6px;padding:4px 8px;text-decoration:none;min-width:72px;font-size:11px}
.tcity.me{background:#fff3d4;border-color:var(--gold)}
.tcity b{color:#4a2f10;font-size:12px}.tcity span{color:#8a6a3a}
/* bildirimler sekmesi */
.notifrow{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.5);border:1px solid #c9b98a;border-radius:8px;padding:8px 12px;margin:5px 0;text-decoration:none}
.notifrow img{width:26px;height:26px;object-fit:contain;flex:0 0 auto}
.notifrow .nbody{flex:1;min-width:0}.notifrow b{color:#4a2f10;font-size:13px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notifrow span{color:#8a6a3a;font-size:11px}
/* takviyelerin (view_reinforcements) */
.reinflist{display:flex;flex-direction:column;gap:5px}
.reinfrow{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.5);border:1px solid #c9b98a;border-radius:8px;padding:8px 10px}
.rfinfo{flex:1;min-width:0}.rfinfo b{color:#4a2f10;font-size:13px;display:block}.rfinfo span{color:#8a6a3a;font-size:11px}
/* dil secici */
.langgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.langf{margin:0}
.langbtn{width:100%;display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.55);border:2px solid #c9b98a;border-radius:10px;padding:10px 12px;cursor:pointer;font-size:14px;color:#4a2f10;font-weight:bold}
.langbtn.on{border-color:var(--gold);background:#fff3d4}
.langbtn img{width:32px;height:22px;object-fit:cover;border-radius:3px;border:1px solid #b09850}
/* HARITA: dekor tile + yuzen butonlar (orijinal gibi) */
.mapwrap{position:relative}
.mapfabs{position:absolute;top:10px;right:10px;z-index:30;display:flex;flex-direction:column;gap:8px}
/* ORIJINAL: kutu yok, buyuk belirgin ikonlar (dunya + buyutec) */
/* Harita butonlari: harita olcegi uzaklastigi icin bunlar da KUCULDU */
.mapfab{width:46px;height:46px;display:flex;align-items:center;justify-content:center;background:none;border:0;box-shadow:none;text-decoration:none}
.mapfab:active{transform:scale(.95)}
.mapfab img{width:46px;height:46px;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.5))}
/* HARITA: minimap sag-alt kose + tam ekran */
/* MINIMAP (harita kosesi): harita olcegi uzaklastigi icin minimap de KUCULDU - ekranin
   buyuk kismini kaplamasin. Boyut tek yerden: --mm degiskeni. */
.mapwrap{--mm:112px}
@media(max-width:380px){ .mapwrap{--mm:96px} .mapfab,.mapfab img,.mapfab.fabcenter img{width:40px;height:40px} }
.mmcorner{position:absolute;bottom:10px;right:10px;z-index:30;display:block;width:calc(var(--mm) + 8px);
  background:rgba(90,88,92,.92);border:1px solid #6a686c;border-radius:6px;padding:0 0 3px;
  box-shadow:0 3px 8px rgba(0,0,0,.5);overflow:hidden;opacity:.94}
.mmhead{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(#7a787c,#5a585c);color:#f0eef2;font-weight:bold;font-size:9.5px;letter-spacing:.5px;padding:3px 6px}
.mmhead b{color:#f0a63d;font-size:11px}
.mmcorner svg{width:var(--mm);height:var(--mm);display:block;margin:3px auto 0;background:#242428;border-radius:4px}
/* Harita: diger ekranlarla ayni mobil sutun genisliginde, kenarliksiz tam yukseklik */
.mapfull{width:100%;max-width:var(--w);margin:0 auto;position:relative}
.mapwrap .worldwrap{height:calc(var(--screen-h) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));margin-bottom:0;border:0;border-radius:0}
/* HARITA HEDEF MENUSU (mapattack) */
.mapmenu2{background:#fdfaf0;border:2px solid #c9a24a;border-radius:12px;margin:10px;padding:0;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,.3)}
.mm2head{display:flex;align-items:center;justify-content:center;position:relative;background:linear-gradient(#c9c9c9,#a8a8a8);padding:12px;font-weight:bold;color:#3a3a3a;font-size:16px;letter-spacing:.5px}
.mm2close{position:absolute;right:8px;top:6px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;text-decoration:none;color:#c0392b;font-weight:bold;font-size:20px}
.mm2close img{width:28px;height:28px}
.mm2row{display:flex;align-items:center;gap:12px;margin:10px 12px;background:#efe8d6;border-radius:8px;padding:10px 12px;text-decoration:none;color:#3a2a12}
.mm2row.static{cursor:default}
.mm2img{width:56px;height:56px;object-fit:contain;flex:0 0 auto}
.mm2ico{width:44px;height:44px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;font-size:26px}
.mm2info{flex:1;min-width:0;display:flex;flex-direction:column}
.mm2info b{font-size:15px;color:#3a2a12}.mm2info span{font-size:12px;color:#7a5a2a}
.mm2arw{color:#e0a020;font-size:26px;font-weight:bold}
.mm2acts{display:flex;flex-direction:column;gap:10px;padding:6px 12px 12px}
.mm2btn{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:8px;text-decoration:none;color:#fff;font-weight:bold;font-size:15px;box-shadow:0 2px 4px rgba(0,0,0,.25);border:1px solid rgba(0,0,0,.2)}
.mm2btn img{width:34px;height:34px;object-fit:contain;flex:0 0 auto}
.mm2btn.atk{background:linear-gradient(#a0522d,#7a3a1a)}
.mm2btn.spy{background:linear-gradient(#2a6fb0,#1d5490)}
.mm2btn.rei{background:linear-gradient(#3a8a3a,#2a6a2a)}
.mm2btn:active{transform:scale(.98)}
.etaspan{color:#8a2b1f;font-weight:600}
.etaspan .etalabel{color:#8a2b1f}
.etaspan .etaval{font-variant-numeric:tabular-nums}
.etaspan.etadone{color:#5a7d34}
.srcpick{display:flex;align-items:center;gap:8px;margin:6px 0 10px;background:#efe6d0;border:1px solid #c9b686;border-radius:8px;padding:8px 10px}
.srcpick label{font-size:13px;color:#5a4a2a;font-weight:600;white-space:nowrap}
.srcpick select{flex:1;padding:6px;border:1px solid #c9b686;border-radius:6px;background:#fff;font-size:13px}

/* ORIJINAL ANA EKRAN: bina ustu siyah is-kutulari (yukseltme/egitim) */
.bmarks{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;gap:2px;align-items:center;z-index:3}
.bmark{background:rgba(8,6,4,.78);color:#fff;font-size:11px;font-weight:bold;padding:2px 7px;border-radius:3px;white-space:nowrap;text-shadow:0 1px 1px #000;box-shadow:0 1px 3px rgba(0,0,0,.5)}
.bmark b{color:#ffd86a}
/* ALT HABER SERIDI (orijinal news ticker) */
.ticker{position:absolute;left:0;right:0;width:auto;max-width:none;bottom:86px;z-index:30;display:flex;align-items:stretch;
  background:rgba(12,10,7,.82);border-top:1px solid rgba(255,255,255,.28);border-bottom:1px solid rgba(0,0,0,.4);min-height:30px}
.ticktext{flex:1;min-width:0;display:flex;align-items:center;padding:3px 8px;color:#fff;font-size:12px}
.titem{display:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:100%}
.titem.on{display:block}
.tickarrow{flex:none;width:38px;display:flex;align-items:center;justify-content:center;cursor:pointer;
  background:linear-gradient(#f4ca5e,#c9891e);border-left:1px solid #7a5210}
.tickarrow b{color:#3a2508;font-size:15px;text-shadow:0 1px 0 rgba(255,255,255,.4)}

/* ORIJINAL: bina ustu YESIL ILERLEME BARI (uretim/gelistirme) */
.bprog{display:block;width:96px;height:12px;border:1px solid #123a10;border-radius:3px;background:rgba(10,20,8,.75);overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.6)}
.bprog i{display:block;height:100%;width:0;background:linear-gradient(180deg,#7ee14e,#3f9a1e);transition:width .5s linear}
/* birim kartinda gelistirme satiri */
.upgrow{display:flex;align-items:center;gap:6px;margin-top:4px;flex-wrap:wrap}
.upgbar{position:relative;flex:1;min-width:110px;height:18px;border:1px solid #7a5210;border-radius:4px;background:#3a2c14;overflow:hidden}
.upgbar i{display:block;height:100%;width:0;background:linear-gradient(180deg,#8ae35a,#3f9a1e)}
.upgbar span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:11px;font-weight:bold;text-shadow:0 1px 1px #000}
.urmaxn{font-size:11px;color:#7a6a4a;margin-top:2px}

/* SEFER (haydutlar) */
.banditbox{background:#fdfaf0;border:1px solid #c9a24a;border-radius:8px;padding:10px 12px;margin:8px 0}
.banditloot{display:flex;align-items:center;gap:6px;font-size:15px;color:#5a3e12;justify-content:center;padding:4px}
.banditloot img{width:22px;height:22px}
.banditarmy{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;padding:6px}
.benemy{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:12px;color:#4a3a1a}
.benemy img{width:44px;height:44px;object-fit:contain}
.selarmy{display:flex;flex-direction:column;gap:6px;margin:6px 0}
.selrow{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.55);border:1px solid #c9b98a;border-radius:8px;padding:5px 10px}
.selrow img{width:34px;height:34px;object-fit:contain}
.selrow b{flex:1}
.selrow .shave{color:#7a6a4a;font-size:12px}
.selrow input{width:76px;padding:6px;border:1px solid #b8a26a;border-radius:6px;text-align:center;font:inherit}
.banditmeta{display:flex;justify-content:space-between;align-items:center;margin:10px 0 6px;color:#5a3e12;font-size:13px;font-weight:bold}
.banditmeta .ig{width:16px;height:16px;vertical-align:middle}
/* GOREV (tek kart) */
.questtop{display:flex;justify-content:space-between;align-items:center;margin:6px 0}
.qno{font-weight:bold;color:#5a3e12}
.questtop .qrw{display:flex;align-items:center;gap:4px;font-weight:bold;color:#5a3e12}
.questtop .qrw img{width:18px;height:18px}
.questcard{background:#fdfaf0;border:1px solid #c9a24a;border-radius:8px;padding:14px;text-align:center}
.questcard h3{color:#7a4a10;margin-bottom:6px}
.questcard p{color:#4a3a22;font-size:14px;line-height:1.45;margin-bottom:12px}
/* KOY MAGAZASI bonus bandi */
.vboost{display:flex;align-items:center;gap:8px;border-radius:7px;padding:8px 10px;margin:6px 0;color:#fff;background:linear-gradient(90deg,#2f7a1e,#4aa32e);box-shadow:0 1px 3px rgba(0,0,0,.3)}
.vboost .vbname{flex:1;font-weight:bold;font-size:13px;text-shadow:0 1px 1px rgba(0,0,0,.4)}
.vboost .vbmeta{font-size:11px;opacity:.95}
.vboost .obtn{margin:0}

/* ORIJINAL: yaklasan dusman ordusu ikonu (yanip soner) + ETA */
.incomingalerts{position:absolute;right:14px;top:90px;z-index:36;display:flex;align-items:flex-start;gap:8px}
.waricon{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px}
.waricon img{width:40px;height:40px;object-fit:contain;animation:warpulse 1s ease-in-out infinite;filter:drop-shadow(0 2px 3px rgba(0,0,0,.7))}
.waricon.reinforce img{animation:none}
.waricon.reinforce b{color:#b5f5cb}
.waricon b{background:rgba(8,6,4,.8);color:#ff9a8a;font-size:11px;padding:1px 6px;border-radius:3px}
@keyframes warpulse{0%,100%{transform:scale(1)}50%{transform:scale(1.4)}}
/* ortam animasyonlari */
.fanim{position:absolute;pointer-events:none;z-index:2}
.noanim .fanim,.noanim .marcher,.noanim .kpatrol{display:none}
/* koruma modu aciklama balonu (ORIJINAL siyah tooltip) */
.prottip{display:none;position:absolute;right:8px;bottom:140px;z-index:40;max-width:230px;background:rgba(8,6,4,.92);color:#eee;font-size:12px;line-height:1.45;padding:10px 12px;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.6)}
.prottip b{color:#8ae35a}

/* YENI CAG kutlamasi */
.agepop{position:fixed;inset:0;z-index:90;background:rgba(8,6,4,.72);display:flex;align-items:center;justify-content:center;cursor:pointer}
.agepopin{background:linear-gradient(#fdfaf0,#efe2c2);border:3px solid var(--gold);border-radius:14px;padding:22px 26px;display:flex;flex-direction:column;align-items:center;gap:8px;max-width:300px;text-align:center;box-shadow:0 6px 30px rgba(0,0,0,.6)}
.agepopin img{width:110px;height:110px;object-fit:contain;filter:drop-shadow(0 3px 6px rgba(0,0,0,.4))}
.agepopin b{font-size:20px;color:#8a5a10}
.agepopin span{color:#4a3a1a;font-size:14px;line-height:1.45}
.agepopin i{color:#9a8a6a;font-size:11px;font-style:normal}
/* ELMAS PAKETLERI (orijinal Elmas Satin Al) */
.diapacks{display:flex;flex-direction:column;gap:8px}
.diapack{display:flex;align-items:center;gap:12px;background:linear-gradient(180deg,#fdfcf8,#eee9da);border:1px solid #c2b795;border-radius:10px;padding:8px 14px}
.diapack img{width:52px;height:52px;object-fit:contain}
.diapack b{flex:1;font-size:20px;color:#1d7a8c;text-shadow:0 1px 0 #fff}
.diapack span{font-weight:bold;color:#2a6a3a;background:#e4f2e0;border:1px solid #9ac48e;border-radius:14px;padding:5px 12px;font-size:14px}

/* GUNLUK BONUS: ORIJINAL 9 sandik (3x3) */
.chestrow.grid9{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;justify-items:center;max-width:360px;margin:0 auto}
.chestrow.bonusothers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:480px;margin:14px auto}
.bonusothers .chest{min-width:0;width:100%;padding:8px 4px;gap:8px}
.bonusothers .chest img{width:60px;height:60px;opacity:1;filter:none}
.bonusothers .chamt{overflow-wrap:normal;word-break:normal;line-height:1.3}
.bonusres .chest.win{max-width:230px;padding:12px 8px}
.bonusres .chest.win img{width:84px;height:84px}
.bonusres .chest.win .chamt{font-size:16px;color:#25582b}
.bonusres>.pmini{color:#4a3618}
@media(max-width:360px){.chestrow.bonusothers{grid-template-columns:repeat(2,minmax(0,1fr))}}
.chest.gray img{filter:grayscale(1);opacity:.75}

/* HOSGELDIN TUTORIALI (ORIJINAL PanelTutorial): karartma + kutu + Gorevler'e kayan ok */
.tutpop{position:fixed;inset:0;z-index:95;background:rgba(8,6,4,.78)}
.tutbox{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%);width:86%;max-width:330px;
  background:linear-gradient(#fdfaf0,#efe2c2);border:3px solid var(--gold);border-radius:14px;padding:18px 20px;text-align:center;box-shadow:0 6px 30px rgba(0,0,0,.6)}
.tutbox>b{font-size:19px;color:#8a5a10;display:block;margin-bottom:8px}
.tutbox p{color:#4a3a1a;font-size:13.5px;line-height:1.5;margin-bottom:10px}
.tutarrow{position:absolute;left:96px;top:212px;color:#ffd24d;font-size:34px;transform:rotate(180deg);
  text-shadow:0 2px 4px #000;animation:tutslide .5s ease-in-out infinite alternate}
.tutlabel{position:absolute;left:140px;top:216px;color:#ffd24d;font-weight:bold;font-size:15px;text-shadow:0 1px 3px #000}
@keyframes tutslide{from{margin-left:0}to{margin-left:50px}}
.busynote{background:#fff3d4;border:1px solid #d8b860;border-radius:7px;padding:7px 10px;color:#7a5a1a}

/* ORIJINAL bina baslik karti: sol gorsel + sag aciklama */
.bheadcard{display:flex;align-items:center;gap:12px;background:#f2efe6;border:1px solid #d5cdb8;border-radius:10px;padding:10px 12px;margin:6px 0 10px;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.bheadcard img{width:38%;max-width:170px;height:auto;object-fit:contain;flex:none}
.bhdesc{flex:1;min-width:0}
.bhdesc p{color:#3a2a12;font-size:14px;line-height:1.45;margin:0 0 6px}
.bhdesc b{display:block;color:#4a3a1a;font-size:13.5px;padding:1px 0}
/* market alt butonlari */
.mbot{display:flex;gap:10px;margin-top:14px}
.mbot .obtn{flex:1}

/* volta atan yuruyuscu (ambient) */
.kpatrol{position:absolute;left:17%;width:4.2%;pointer-events:none;z-index:2}

/* haydut kampi isareti */
.wcity.camp span{background:rgba(160,80,10,.92)}
/* minimap gorus alani dikdortgeni (ORIJINAL map_tracker) */
.mmviewbox{position:relative;display:block}
.mmviewbox i{position:absolute;border:1px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.6);pointer-events:none;left:0;top:0;width:20px;height:14px}

/* haydut kamp suresi */
.banditexp{text-align:center;color:#8a5a1a;font-size:12px;margin-bottom:6px}
.banditexp b{color:#b23a2a}

/* ITTIFAK GORUNTULEME (orijinal) */
.avcard{display:flex;align-items:center;gap:12px;background:#f2efe6;border:1px solid #d5cdb8;border-radius:10px;padding:10px 12px;margin:6px 0}
.avflag{width:56px;height:56px;object-fit:contain;flex:none}
.avstat{flex:1}
.avrow{display:flex;align-items:center;gap:8px;padding:3px 0}
.avrow span{color:#6a5a3a;font-size:12px;min-width:56px}
.avrow b{flex:1;background:#e2d6b8;border-radius:6px;padding:3px 12px;font-weight:bold;color:#4a3a1a}
.avtr{width:28px;height:28px;object-fit:contain}
.avabout{background:#fdfaf0;border:1px solid #d8c88a;border-radius:8px;padding:10px 12px;margin:6px 0}
.avabouth{display:flex;align-items:center;justify-content:space-between}
.avabouth b{color:#7a5a1a}
.avmore{width:26px;height:26px;flex:none;border-radius:50%;background:#e8dcb8;border:1px solid #c8b070;display:flex;align-items:center;justify-content:center;cursor:pointer}
.avmore img{width:16px;height:16px}
.avtext{color:#4a3a22;font-size:13px;line-height:1.45;margin-top:4px;max-height:2.9em;overflow:hidden;position:relative}
.avabout.open .avtext{max-height:none}
.avtrophy{position:relative;flex:none;display:inline-flex;align-items:center}
.avtrophy i{position:absolute;right:-2px;top:-4px;color:#c0392b;font-style:normal;font-weight:bold;font-size:12px;text-shadow:0 1px 1px #fff}
.avarrow{flex:none;color:#e0a83a;font-weight:bold;font-size:16px}
.avlink{cursor:pointer;border-radius:6px}
.avlink:active{background:rgba(0,0,0,.05)}
.avmore{width:26px;height:26px;flex:none;border-radius:50%;background:#e8dcb8;border:1px solid #c8b070;color:#7a5a1a;font-size:16px;font-weight:bold;cursor:pointer;line-height:1}
.avrcities a{text-decoration:none}
.avjoin.full{text-align:center;color:#9c3222;font-weight:bold;padding:10px;background:#f2dede;border-radius:8px;margin-top:12px}
.avroads{background:#fdfaf0;border:1px solid #c9a24a;border-radius:8px;padding:8px 12px}
.avroad{padding:6px 0;border-bottom:1px dashed #e0cfa0}
.avroad:last-child{border-bottom:0}
.avrname{font-weight:bold;font-size:13px;margin-bottom:2px}
.avrcities{color:#5a4a2a;font-size:12.5px;font-style:italic;line-height:1.5}
.avjoin{display:block;width:100%;margin-top:12px}
.avjoin.done{text-align:center;color:#2f8a3e;font-weight:bold;padding:10px;background:#e4f2e0;border-radius:8px}

/* ASKERI - Eldeki Yerler */
.mplace{margin:10px 0}
.mpname{color:#1d4e74;font-weight:bold;font-size:15px;margin:4px 2px;border-bottom:1px solid #d8c88a;padding-bottom:6px}
.mprow{display:flex;align-items:center;justify-content:space-between;background:#e0ddd6;border:1px solid #c8c2b0;border-radius:6px;padding:12px 14px;margin:6px 0;color:#3a2a12}
.mprow:active{background:#d4d0c4}
.mprow b{color:#e0a020;font-size:18px}
.mpswitch{margin:4px 0 0}

/* map/distances: sehirlerden mesafeler */
.distlist{background:#fdfaf0;border:1px solid #d8c88a;border-radius:8px;padding:8px 10px;margin:8px 0}
.disth{font-weight:bold;color:#7a5a1a;font-size:13px;margin-bottom:4px}
.distrow{display:flex;align-items:center;gap:8px;padding:3px 0;border-top:1px dashed #e6d6a8;font-size:12.5px}
.distrow .dn{flex:1;color:#3a2a12}
.distrow b{color:#1d4e74}
.distrow i{color:#8a6a2a;font-style:normal;min-width:52px;text-align:right}

/* ORIJINAL savas raporu karti (LogsMilitaryAdapter) */
.wlog{display:block;background:#fdfbf4;border:1px solid #d9c9a0;border-radius:10px;padding:0;margin:9px 0;text-decoration:none;color:#3a2a12;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.12)}
.wrtop{display:flex;align-items:center;gap:7px;padding:8px 10px 6px}
.wridx{font-weight:800;color:#3a2a12;font-size:.9rem}
.wrflag{width:20px;height:20px;object-fit:contain}
.wrtitle{flex:1;font-size:.9rem;font-weight:700;color:#276b48}
.wlog.lost .wrtitle{color:#c0392b}
.wlog .wrap{display:inline-flex;align-items:center;gap:3px;font-weight:800;color:#8a7a4a;font-size:.85rem;background:#f3ecd6;border:1px solid #d9c9a0;border-radius:7px;padding:3px 8px}
.wlog .wrap.pos{color:#276b48}
.wlog .wrap img{width:18px;height:18px}
.wrgrid{display:grid;grid-template-columns:78px 1fr 1fr 1fr;align-items:center;padding:5px 10px}
.wrgrid+.wrgrid{border-top:1px solid #efe6cf}
.wrlbl{color:#c0392b;font-weight:800;font-size:.8rem}
.wrc{display:flex;flex-direction:column;align-items:center;line-height:1.15}
.wrc b{font-size:.92rem;font-weight:800;color:#6b5b39}
.wrc small{font-size:.62rem;color:#6b5b39;margin-top:1px}
.wrc.neg b{color:#c0392b}
.wrc.pos b{color:#276b48}
.wrfoot{display:flex;justify-content:space-between;align-items:center;padding:4px 10px 8px}
.wrfoot>span{font-size:.68rem;color:#6b5b39}

/* akademi arastirma cag puani yildizi */
.resap{color:#2f7a2a;font-weight:700}
.rescost .resap{margin-left:2px}

.urupg{font-size:.62rem;color:#6a5a3a;margin-top:2px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.urupg img{width:13px;height:13px;vertical-align:middle}

/* Instant page replacement: no old-header snapshots or fading click overlays. */
@view-transition { navigation: none; }
.hdr,.gnav,.ptop{view-transition-name:none}
html{background:#0a0806}

#wkload{position:fixed;left:0;top:0;right:0;height:3px;z-index:99999;background:transparent;opacity:0;
  transition:opacity .12s;pointer-events:none}
#wkload.on{opacity:1}
#wkload .wkhg{display:block;height:100%;width:35%;border-radius:0 3px 3px 0;
  background:linear-gradient(90deg,rgba(240,200,96,0) 0%,#f0c860 55%,#fff0b8 100%);
  box-shadow:0 0 8px rgba(240,200,96,.7);animation:wkbar 1s ease-in-out infinite}
@keyframes wkbar{0%{transform:translateX(-100%)}100%{transform:translateX(340%)}}

/* UST NAV responsive: dar ekranlarda yazilar sigsin (orijinal gorunum korunur) */
/* MOBIL: Elmas / Mesajlar / Islemler butonlari ekranin cok buyuk kismini kapliyordu.
   Yukseklik ve ikon (border-image) olculeri kuculdu, yazi tipi ve kenar bosluklari daraldi. */
@media(max-width:460px){
 .ptop{padding:4px 6px 2px;gap:3px}
 .ptbtn{height:40px}
 .ptbtn.diamond{flex:0 0 auto;min-width:54px;font-size:clamp(9.5px,3vw,12px);border-width:5px 12px 5px 32px;border-image-width:5px 12px 5px 32px;padding:0 3px 0 1px}
 .ptbtn.wide{font-size:clamp(8.5px,2.7vw,11.5px);border-width:5px 6px 5px 32px;border-image-width:5px 6px 5px 32px;padding:0 3px 0 1px}
 .ptbtn.gear{width:38px;height:40px}
 .ptbtn em{top:-2px;right:2px;min-width:14px;height:14px;line-height:14px;font-size:9px}
}
@media(max-width:380px){
 .ptbtn{height:36px}
 .ptbtn.wide{font-size:9.5px;border-width:4px 5px 4px 29px;border-image-width:4px 5px 4px 29px}
 .ptbtn.diamond{min-width:52px;font-size:10.5px;border-width:4px 11px 4px 30px;border-image-width:4px 11px 4px 30px}
 .ptbtn.gear{width:34px;height:36px}
}

/* ALT NAV: dar ekranlarda 5 oge (Sıralama dahil) sigsin */
@media(max-width:520px){
 .gnav a{padding:4px 0 3px;min-width:0}
 .gi{width:100%;max-width:88px;height:56px}
 .gi img{max-width:38px;max-height:38px}
 .gl{font-size:.56rem;margin-top:-12px}
}
@media(max-width:380px){ .gi{height:52px} .gi img{max-width:34px;max-height:34px} .gl{font-size:.52rem} }

/* v205: depo limiti asimi kirmizi (uretim eklenmez, sadece gorev/yagma) */
.ri.over b{color:#ff5555;animation:riover 1.1s ease-in-out infinite}
.ri.over img{box-shadow:0 0 0 2px #ff5555 inset,0 0 6px rgba(255,60,60,.5)}
@keyframes riover{0%,100%{opacity:1}50%{opacity:.55}}

/* v206: koloni garnizon linki (Bu sehre gec yerine) */
.mpgarr{display:flex;align-items:center;gap:6px;margin-top:6px;padding:7px 10px;border-radius:8px;
  background:linear-gradient(#3a5a2a,#2c4620);color:#dff0c8;font-size:.8rem;font-weight:600;text-decoration:none;
  border:1px solid #4d7038;box-shadow:0 1px 2px rgba(0,0,0,.3)}
.mpgarr img{width:18px;height:18px;object-fit:contain}

/* v207: kralin yerleri listesi (holding) - ana kale + koloniler */
.holdlist,.distlist.holds{display:flex;flex-direction:column;gap:4px;margin-top:6px}
.holdrow{display:flex;align-items:center;gap:9px;padding:7px 9px;border-radius:8px;background:rgba(0,0,0,.14);
  text-decoration:none;color:#3a2c14;border:1px solid rgba(0,0,0,.08)}
.holdrow img{width:30px;height:30px;object-fit:contain;flex:none}
.holdrow .hn{flex:1;min-width:0;font-weight:600;font-size:.82rem;line-height:1.15}
.holdrow .hn i{font-style:normal;font-weight:400;font-size:.68rem;color:#7a6a48}
.holdrow b{font-size:.78rem;color:#5a4a28}
.holdrow .hatk{color:#b23a2a;font-weight:700}
.holdrow.cur{outline:2px solid #c99a3a;background:rgba(201,154,58,.18)}
.distlist.holds .disth{color:#f0e2c0}

/* v208: koy isci CIKAR (-) butonu (+ ile ayni sayi kutusunu paylasir) */
.minusbtn{width:34px;height:34px;border-radius:8px;border:2px solid #9a3226;background:linear-gradient(#d0574a,#9a3226);color:#fff;font-size:20px;font-weight:700;cursor:pointer;line-height:1}

/* v209: koy - / input / + gorsel sira (DOM: input,+,- ; Enter=+ uret) */
.qtyf .minusbtn{order:-1}
.qtyf input{order:0}
.qtyf .plusbtn{order:1}

/* v210: kusatma silahlari elmasla bitirilemez etiketi */
.qnodia{font-size:.68rem;color:#8a7a58;font-style:italic;padding:4px 6px}

/* v216: Krallik Bilgisi (ViewKingdom) - orijinal profil duzeni */
.vktbl{display:flex;flex-direction:column;gap:6px;margin:6px 0 10px}
.vkrow{display:flex;align-items:center;gap:8px;background:rgba(0,0,0,.06);border:1px solid rgba(0,0,0,.08);
  border-radius:9px;padding:9px 11px}
.vkrow .vkk{flex:0 0 40%;color:#9a3226;font-weight:700;font-size:.82rem}
.vkrow .vkv{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;background:rgba(255,255,255,.55);
  border-radius:7px;padding:5px 8px;font-weight:700;color:#3a2c14;font-size:.85rem}
.vkico{width:18px;height:18px;object-fit:contain;flex:none}
.vkage{width:26px;height:26px;object-fit:contain;flex:none}

/* v217: harita hedef secici (en ustte) - ORIJINAL MapMenu duzeni */
.tgtpick{margin:8px 0 4px;padding:8px;border-radius:10px;background:rgba(0,0,0,.18);border:1px solid rgba(0,0,0,.12)}
.tgtpick .tgth{font-weight:700;font-size:.78rem;color:#f0e2c0;margin-bottom:6px;text-shadow:0 1px 2px rgba(0,0,0,.6)}
.tgtpick .tgth span{font-weight:400;opacity:.75}
.tgtpick .holdrow{margin-bottom:4px;background:rgba(255,255,255,.9)}
.tgtpick .holdrow:last-child{margin-bottom:0}
.tgtpick .holdrow.cur{outline:2px solid #c99a3a;background:#fff6e0}

/* v220: savas raporunda olen koylu */
.wrc.wdead b{color:#b23a2a}

/* v222: ORIJINAL dip renkleri - bizim yerlerimiz MAVI, ittifak uyeleri YESIL */
.wcity.me span{color:#fff;background:#1e73be;border:1px solid #6fc3ff}      /* BIZIM (mavi) */
.wcity.ally span{color:#0a2a0a;background:#3ecf3e;border:1px solid #b6ffb6} /* ITTIFAK (yesil) */
.wcity.ally img{filter:none}
/* minimapte kendi yerlerimiz */
.mmlabels .mml.mine{color:#fff;background:#1e73be;border:1px solid #6fc3ff;font-weight:700}

/* v223: destek birlikleri (baska oyuncularin takviyesi) - "97 (+300) ordu unitesi" */
.mprow .msup{font-style:normal;color:#2f7a2a;font-weight:700}

/* v224: siralama rozetleri (ORIJINAL Badge) + ilk 100 + kendi siran altta */
.lbadge{width:46px;height:46px;object-fit:contain;flex:none;filter:drop-shadow(0 2px 4px rgba(0,0,0,.45))}
.rank.hasbadge{border-color:#c99a3a}
/* rozet SOLDA, sira numarasinin yerinde - profil satirlarinda daha kucuk */
.vkrow .lbadge{width:30px;height:30px}
.ranks.myrank{margin-top:10px;border-top:2px dashed rgba(0,0,0,.25);padding-top:8px}
.ranks.myrank .rank.me{background:linear-gradient(#fff2d0,#f2e0b0);border:2px solid #c99a3a}
.ranks.myrank .rank.me .pos,.ranks.myrank .rank.me .rp{color:#b23a2a;font-weight:800}
.bmini{width:16px;height:16px;object-fit:contain;vertical-align:middle}
.vkrow .badgerow{gap:6px;flex-wrap:wrap}
/* Kingdom profile: original compact information panel and account trophy strip. */
.page.kingdom-profile{display:flex;flex-direction:column;gap:14px;padding:20px 12px 12px;min-height:calc(var(--screen-h) - 88px)}
.kingdom-profile .ph{font-size:.82rem;color:#555;margin:0 0 3px;font-weight:700}
.kingdom-profile .vktbl{gap:5px;margin:0;padding:8px;border:1px solid #babbb6;border-radius:3px;background:rgba(110,110,102,.1)}
.kingdom-profile .vkrow{gap:7px;padding:0;background:none;border:0;border-radius:0;min-height:43px}
.kingdom-profile .vkrow .vkk{flex:0 0 35%;font-size:.84rem;color:#a72e20;overflow-wrap:anywhere}
.kingdom-profile .vkrow .vkv{min-width:0;min-height:43px;align-self:stretch;padding:5px 8px;font-size:.84rem;color:#555;background:linear-gradient(120deg,rgba(219,220,216,.6),rgba(241,241,239,.7));border:1px solid #bfc0ba;border-radius:3px;overflow-wrap:anywhere;flex-wrap:wrap}
.kingdom-profile .vkico{width:32px;height:32px;order:2}
.kingdom-profile .vkico.dot{width:17px;height:17px}
.kingdom-profile .vkage{width:36px;height:36px;margin-left:auto}
.kingdom-profile .vklink{color:#555;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:31px}
.profile-awards{width:100%}
.profile-badges{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap;padding:10px 12px;min-height:66px;border:1px solid #bfc0ba;border-radius:3px;background:rgba(210,211,205,.3)}
.profile-badge{position:relative;display:inline-flex;align-items:center;justify-content:center;width:48px;min-height:48px}
.profile-badge img{width:44px;height:44px;object-fit:contain}
.profile-badge small{position:absolute;right:-2px;bottom:-1px;font-size:10px;background:#eeeade;border:1px solid #aaa18a;border-radius:7px;padding:0 4px;color:#594523}
.profile-badge:focus-visible{outline:2px solid #c29735;outline-offset:3px}
.profile-link{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:7px 12px;gap:10px;text-align:left;border:1px solid #bfc0ba;border-radius:3px;background:linear-gradient(120deg,rgba(220,221,216,.55),rgba(241,241,239,.65));color:#555;font-size:.9rem}
.profile-link span{min-width:0;overflow-wrap:anywhere}
.profile-arrow{width:26px;height:30px;object-fit:contain;flex:none}
.kingdom-profile .holdlist{display:grid;gap:5px;margin:0}
.profile-tools{font-size:.8rem;order:3;color:#666}
.profile-tools summary{cursor:pointer;min-height:30px;padding:6px 0}
.profile-tools .kbtns{margin:0;gap:6px}
.profile-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;order:4;margin-top:auto;padding:10px 8px 0;border-top:2px solid #babbb6}
.profile-actions form{min-width:0}
.profile-actions .obtn{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.2;min-height:50px;height:auto;padding:10px 12px;font-size:.8rem;letter-spacing:0;margin:0;overflow-wrap:anywhere}
.profile-actions .obtn.gold{background-image:url('img/ui/button_gold_default.png');color:#fff5d1;text-shadow:0 1px 2px #241300}
.profile-actions small{display:flex;align-items:center;gap:4px}
@media(max-width:360px){.page.kingdom-profile{padding-left:8px;padding-right:8px}.kingdom-profile .vkrow{gap:4px}.kingdom-profile .vkrow .vkk{flex-basis:34%;font-size:.76rem}.kingdom-profile .vkrow .vkv{font-size:.76rem;padding:4px}.kingdom-profile .vkico{width:26px;height:26px}.profile-actions{gap:7px;padding-left:0;padding-right:0}}
.mtag{color:#b23a2a;font-size:.7rem;margin-left:4px}

/* v226: ORIJINAL ExportActivity - kaynak yer secimi ALT ALTA LISTE (dropdown degil) */
.exlist{margin:8px 0 12px;border-radius:10px;overflow:hidden;border:1px solid rgba(0,0,0,.12);background:rgba(255,255,255,.5)}
.exlist .exh{font-weight:700;font-size:.78rem;color:#9a3226;padding:8px 11px;background:rgba(0,0,0,.06);
  border-bottom:1px solid rgba(0,0,0,.1)}
.exrow{display:flex;align-items:center;gap:10px;padding:9px 11px;text-decoration:none;color:#3a2c14;
  border-bottom:1px dashed rgba(0,0,0,.12)}
.exrow:last-child{border-bottom:0}
.exrow img{width:34px;height:34px;object-fit:contain;flex:none}
.exrow .exinfo{flex:1;min-width:0;line-height:1.25}
.exrow .exinfo b{display:block;font-size:.86rem}
.exrow .exinfo span{display:block;font-size:.7rem;color:#7a6a48}
.exrow .exarw{color:#c99a3a;font-size:1.3rem;font-weight:700;flex:none}
.exrow.cur{background:#fff6e0;outline:2px solid #c99a3a;outline-offset:-2px}
.exrow.cur .exinfo b{color:#8a6a20}

/* v227: minimap sehir etiketlerinde GERCEK moral (ORIJINAL: "Megara %70") */
.mmlabels .mml i{font-style:normal;font-weight:700;display:block;line-height:1}
.mmlabels .mml i.m100{color:#8fe08f}   /* tam yol kontrolu */
.mmlabels .mml i.m80{color:#e0d78f}
.mmlabels .mml i.m70{color:#e0b06f}
.mmlabels .mml i.mlow{color:#e08f8f}   /* dusuk moral = zayif savunma */

/* v228: egitim kuyrugu - birimler TEK TEK gelir */
.qi .qdone{font-style:normal;color:#2f7a2a;font-weight:700;font-size:.7rem;margin-left:5px}
.qi .qnext{font-size:.7rem;color:#7a6a48;margin:2px 0 4px}
.qi .qnext b{color:#8a6a20}

/* v229: profilden haritaya git (?p=map&goto=) - ORIJINAL MapActivity2 "coordinate" davranisi */
.gotohud{position:absolute;left:50%;top:10px;transform:translateX(-50%);z-index:30;
  background:rgba(10,8,5,.88);color:#f0e2c0;border:1px solid var(--gold);border-radius:10px;
  padding:6px 12px;font-size:.78rem;white-space:nowrap;box-shadow:0 3px 10px rgba(0,0,0,.5)}
.gotohud b{color:#fff}
.gotohud small{color:#c9b686;margin-right:6px}
.gotohud a{color:#f0c860;font-weight:700;text-decoration:none;border-left:1px solid rgba(255,255,255,.25);padding-left:8px}
.wcity.goto img{animation:gotopulse 1.2s ease-in-out infinite}
.wcity.goto span{background:#c99a3a;color:#2a2008;border:1px solid #fff;font-weight:700}
@keyframes gotopulse{0%,100%{filter:drop-shadow(0 0 4px #f0c860) drop-shadow(0 3px 3px rgba(0,0,0,.5))}
  50%{filter:drop-shadow(0 0 16px #ffe08a) drop-shadow(0 3px 3px rgba(0,0,0,.5))}}

/* v230: ITTIFAK UYE LISTESI - ORIJINAL ViewMembersAdapter duzeni */
.mlist{display:flex;flex-direction:column;gap:5px;margin-top:6px}
.mrow{display:flex;align-items:center;gap:9px;padding:9px 11px;border-radius:10px;text-decoration:none;
  background:rgba(255,255,255,.72);border:1px solid rgba(0,0,0,.1);color:#3a2c14}
.mrow.me{background:linear-gradient(#fff2d0,#f2e0b0);border:2px solid #c99a3a}
.mrow .mon{flex:none;display:flex}
.mrow.noon{padding-left:14px}   /* yabanci ittifak: online ikonu yok, satir genisler */
.mrow .mon img{width:10px;height:10px;object-fit:contain}
.mrow .minfo{flex:1;min-width:0;line-height:1.25}
.mrow .minfo b{display:block;font-size:.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mrow .mrol{display:flex;align-items:center;gap:4px;font-size:.68rem;color:#8a7a58;font-weight:600}
.mrow .mrol img{width:13px;height:13px;object-fit:contain}
.mrow .mrol.rl{color:#c99a3a}          /* Ittifak Lideri */
.mrow .mrol.ra{color:#b2652a}          /* Lider Yardimcisi */
.mrow .mpts{flex:none;font-weight:800;font-size:.9rem;color:#b23a2a;min-width:56px;text-align:right}
.mrow .mrank{flex:none;position:relative;width:34px;height:34px;display:flex;align-items:center;justify-content:center}
.mrow .mrank img{width:34px;height:34px;object-fit:contain}
.mrow .mrank i{position:absolute;font-style:normal;font-weight:800;font-size:.68rem;color:#6b4e10;
  text-shadow:0 1px 0 rgba(255,255,255,.6)}

/* ---- Casus raporu: sahibe gore gruplu ordu bloklari (ORIJINAL SpiedUnit.user_id) ---- */
.warmy2.spyg{margin-bottom:8px}
.warmy2 .warmyh .gtot{margin-left:auto;font-weight:800;color:#c99a3a}
.warmy2 .warmyh img{width:14px;height:14px;object-fit:contain}
/* ---- Online durumu (profil + siralama) ---- */
.vkico.dot{width:11px;height:11px}
.vkv b.onl{color:#2e8b34}
.vkv b.ofl{color:#8a7a58}
.rkinfo b .rkon{width:9px;height:9px;object-fit:contain;margin-left:5px;vertical-align:middle}

/* ================= HARITA MODAL MENUSU (ORIJINAL mapmenu.xml / bg_modalbox) ================= */
.mmpwrap{position:fixed;inset:0;z-index:60;display:none}
.mmpwrap.on{display:block}
.mmpbg{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.mmpbox{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(86vw,380px)}
.mmpop{background:linear-gradient(#fdf6e6,#f3e7c9);border:3px solid #c99a3a;border-radius:12px;
  box-shadow:0 14px 40px rgba(0,0,0,.5);overflow:hidden;animation:mmpin .16s ease-out}
@keyframes mmpin{from{transform:scale(.92);opacity:0}to{transform:scale(1);opacity:1}}
.mmph{display:flex;align-items:center;justify-content:center;position:relative;
  background:#6f6a60;color:#fff;padding:10px 40px;font-weight:800;font-size:.95rem;letter-spacing:.3px}
.mmpop.own .mmph{background:#3096e5}            /* ORIJINAL: kendi yerimiz -> MAVI baslik */
.mmpx{position:absolute;right:8px;top:50%;transform:translateY(-50%);color:#ffb43c;font-size:1.5rem;
  line-height:1;text-decoration:none;padding:0 6px;font-weight:900}
.mmpb{display:flex;align-items:center;gap:10px;padding:12px 12px 6px}
.mmpimg{width:64px;height:64px;object-fit:contain;flex:none}
.mmprows{flex:1;min-width:0;display:flex;flex-direction:column;gap:7px}
.mmprow{display:flex;align-items:center;gap:6px;background:linear-gradient(#fff,#efe4c8);
  border:1px solid #d8c79a;border-radius:8px;padding:9px 10px;text-decoration:none;color:#4a3d22;font-size:.84rem}
.mmprow span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mmprow b{font-weight:800}
.mmprow i{color:#c99a3a;font-style:normal;font-size:1.15rem;font-weight:900}
.mmprow.off{opacity:.6;pointer-events:none}
.mmpop.own .mmprow b{color:#1f6fb2}
.mmpacts{display:flex;flex-direction:column;gap:8px;padding:8px 12px 14px}
.mmpbtn{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;text-decoration:none;
  color:#fff;font-weight:800;font-size:.86rem;border:2px solid rgba(0,0,0,.25);box-shadow:0 2px 0 rgba(0,0,0,.25)}
.mmpbtn img{width:26px;height:26px;object-fit:contain;flex:none}
.mmpbtn.red{background:linear-gradient(#8e3b2a,#6d2a1c)}
.mmpbtn.blue{background:linear-gradient(#2c6fae,#1d4f80)}
.mmpbtn.green{background:linear-gradient(#3f7a35,#2b5726)}
.mmpbtn:active{transform:translateY(1px);box-shadow:none}
.distlist .distrow img{width:22px;height:22px;object-fit:contain;margin-right:6px}

/* ---- ELCILIK HABERLERI (ORIJINAL embassy_news_row.xml) ---- */
.subtabs{display:flex;gap:6px;margin:6px 0 10px}
.subtabs a{flex:1;text-align:center;padding:8px 6px;border-radius:8px 8px 0 0;background:#e3d5b0;color:#7a6a48;
  text-decoration:none;font-weight:700;font-size:.82rem;border:1px solid #d0bd8e;border-bottom:none}
.subtabs a.on{background:#fdf6e6;color:#4a3d22;border-color:#c99a3a}
.subtabs a b{background:#c0392b;color:#fff;border-radius:9px;padding:0 5px;font-size:.7rem;margin-left:3px}
.newsrow .nlu{color:#2b6cb0;font-weight:700;text-decoration:underline}      /* fail -> profil (MAVI) */
.newsrow .nlp{color:#006400;font-weight:700;text-decoration:underline}      /* yer  -> harita (YESIL) */
.newsrow.atk .newsbody>p{color:#a02c1e}                                      /* saldiri satiri KIRMIZI */
.unews .unbtns{display:flex;gap:10px;margin-top:14px;position:sticky;bottom:8px}
.unews .unbtns>*{flex:1;margin:0}
.unews .unbtns .obtn{width:100%;text-align:center}

/* ---- BIRIMLERI GORUNTULE (ORIJINAL viewarmyunits / viewarmyunits_armyrow) ---- */
.vuhead{background:linear-gradient(#fdf6e6,#f1e3c2);border:2px solid #d8c79a;border-radius:10px;padding:10px 12px;margin-bottom:10px;
  display:flex;flex-direction:column;gap:2px}
.vuhead>b{font-size:1rem;color:#4a3d22}
.vugold{color:#b8860b;font-weight:800;font-size:.86rem}
.vuhap{font-size:.86rem;color:#4a3d22}
.vuhead small{font-size:.7rem;color:#8a7a58}
.vugroup{border:1px solid #d8c79a;border-radius:10px;background:#fffdf6;margin-bottom:10px;overflow:hidden}
.vugroup.me{border-color:#c99a3a}
.vugh{display:flex;align-items:center;gap:8px;background:#ece0c2;padding:8px 10px;border-bottom:1px solid #d8c79a}
.vugroup.me .vugh{background:#f3e2b8}
.vugn{flex:1;min-width:0;color:#4a3d22;text-decoration:none;font-weight:800;font-size:.88rem;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vugn b{color:#8a7a58;font-weight:700}
.vugh form{margin:0}
.vurow{display:flex;align-items:center;gap:9px;padding:8px 10px;border-bottom:1px solid #f0e6cd}
.vurow:last-child{border-bottom:none}
.vurow img{width:38px;height:38px;object-fit:contain;flex:none}
.vuinfo{flex:1;min-width:0;line-height:1.25}
.vuinfo b{display:block;font-size:.85rem;color:#4a3d22}
.vuinfo span{font-size:.7rem;color:#8a7a58}
.vuqty{font-weight:800;color:#4a3d22;font-size:.9rem}
.vufoot{margin-top:12px;position:sticky;bottom:8px}
.vufoot .obtn{width:100%;text-align:center}
.exrow .exarw{color:#c99a3a;font-size:1.2rem;font-weight:900}

.procrow.inc{background:linear-gradient(#fff2ee,#ffe6df)}   /* GELEN hareket (bize dogru) */
.procrow .pmine{display:block;font-size:.68rem;color:#8a7a58;font-style:normal}

/* ---- ORDU SECIMI (ORIJINAL mapattackrow.xml + footer_mapattack.xml) ---- */
.warpick .wprow{display:flex;align-items:center;gap:10px;padding:10px 4px;border-bottom:1px solid #ece0c2}
.wpimg{width:56px;height:56px;object-fit:contain;flex:none}
.wpbody{flex:1;min-width:0}
.wptop{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.wpleft,.wpright{width:64px;flex:none;text-align:center;font-weight:800;font-size:.85rem;
  border-radius:6px;padding:5px 2px}
.wpleft{background:linear-gradient(#f4e8cc,#e6d5ae);border:2px solid #cbb98d;color:#6b5b39;cursor:pointer}
.wpright{background:linear-gradient(#fff,#f6efdd);border:2px solid #cbb98d;color:#4a3d22;-moz-appearance:textfield}
.wpright::-webkit-outer-spin-button,.wpright::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.wprow.full .wpright{border-color:#c99a3a;background:linear-gradient(#fff6e0,#f6e6bd);color:#8a6a1e}
.wpname{flex:1;text-align:center;font-weight:700;font-size:.86rem;color:#4a3d22;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wpbar{width:100%;-webkit-appearance:none;appearance:none;height:22px;background:transparent;margin:0}
.wpbar::-webkit-slider-runnable-track{height:22px;border-radius:11px;border:2px solid #cbb98d;
  background:linear-gradient(#ffd45e,#f0b429)}
.wpbar::-moz-range-track{height:22px;border-radius:11px;border:2px solid #cbb98d;
  background:linear-gradient(#ffd45e,#f0b429)}
.wpbar::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:26px;margin-top:-4px;border-radius:6px;
  background:linear-gradient(#fdfdfd,#dcd6c8);border:2px solid #a8996f;box-shadow:0 1px 2px rgba(0,0,0,.3)}
.wpbar::-moz-range-thumb{width:20px;height:26px;border-radius:6px;
  background:linear-gradient(#fdfdfd,#dcd6c8);border:2px solid #a8996f}
.wpfoot{margin-top:12px;text-align:center}
.wpsep{display:block;width:90%;margin:6px auto 8px;opacity:.7}
.wpline{font-size:.88rem;color:#4a3d22;margin:3px 0}
.wpline b{font-weight:800}
.wpline.warn{color:#a02c1e;font-weight:700}
.wpfoot .obtn.wpgo{width:100%;margin-top:10px;padding:13px;font-size:1rem}
.warpick .conqchk{display:block;margin:8px 0}

.wnet{display:flex;justify-content:space-between;gap:10px;padding:8px 10px;margin-top:6px;
  border-top:1px solid #e6d8b4;font-size:.85rem;color:#4a3d22}
.wnet b{font-weight:800}
.wnet .pos b{color:#2f7a2a}
.wnet .neg b{color:#a02c1e}

/* ---- KAYIP DETAYLARI (ORIJINAL logsmilitarywarreportcasualtydetails) ---- */
.cdsec{margin:14px 0}
.cdh{text-align:center;color:#a02c1e;font-weight:800;font-size:.95rem;letter-spacing:.5px;margin-bottom:8px}
.cdblock{background:linear-gradient(#fdf8ec,#f3ead4);border:1px solid #d8c79a;border-radius:10px;
  margin-bottom:8px;overflow:hidden}
.cdname{text-align:center;font-weight:800;font-size:.88rem;padding:9px 10px;color:#2b6cb0;
  background:linear-gradient(#f0e7d0,#e5d9ba);border-bottom:1px solid #d8c79a}
.cdname a{color:#2b6cb0;text-decoration:none}
.cdname b{color:#6b5b39;font-weight:700}
.cdrow{display:flex;align-items:center;gap:9px;padding:8px 10px;border-bottom:1px solid #f0e6cd}
.cdrow:last-child{border-bottom:none}
.cdrow img{width:36px;height:36px;object-fit:contain;flex:none}
.cdn{flex:1;min-width:0;font-size:.85rem;color:#4a3d22;font-weight:600}
.cdq{font-weight:800;font-size:.85rem;color:#4a3d22}
.cdq.dead{color:#a02c1e}
.cdnone,.cdmsg{padding:10px;text-align:center;font-size:.78rem;color:#8a7a58}
.cdmsg{font-style:italic}
.cdvisit{display:block;width:100%;text-align:center;margin-top:6px}

/* ---- IHRACAT YER LISTESI (ORIJINAL ExportActivity / select_army_row) ---- */
.exrow{display:flex;align-items:center;gap:10px;padding:10px 11px;background:#fffdf6;
  border-bottom:1px solid #e9dcbd}
.exrow:last-child{border-bottom:none}
.exrow.cur{background:linear-gradient(#fff5dc,#f6e7bd)}
.exrow>img{width:34px;height:34px;object-fit:contain;flex:none}
.exinfo{flex:1;min-width:0;line-height:1.3}
.exname{display:block;font-weight:800;font-size:.9rem;color:#4a3d22;text-decoration:none;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.exname:active{color:#c99a3a}
.exinfo span{display:block;font-size:.72rem;color:#8a7a58}
.exgo{flex:none;width:34px;height:34px;line-height:30px;text-align:center;border-radius:8px;
  color:#f0a01e;font-size:1.5rem;font-weight:900;text-decoration:none;
  background:linear-gradient(#fff8e6,#f4e6c4);border:1px solid #e0cd9d}
.exgo:active{background:#f0d89a}
.mpname a{color:inherit;text-decoration:none}
.mpname .mpsub{display:block;font-size:.7rem;color:#8a7a58;font-weight:600}

/* ---- CASUS RAPORU (ORIJINAL LogsMilitarySpyReport) ---- */
.spyhead{display:flex;align-items:center;gap:10px;background:linear-gradient(#f2ead6,#e6dabb);
  border:1px solid #d8c79a;border-radius:10px;padding:10px 12px}
.spyhead>img{width:30px;height:30px;object-fit:contain;flex:none}
.spyht{flex:1;min-width:0;line-height:1.35}
.spyht b{display:block;font-size:.9rem;color:#4a3d22}
.spyht span{font-size:.74rem;color:#6b5b39}
.spydate{text-align:right;font-size:.72rem;color:#6b5b39;margin:5px 2px 10px}
.spytot{font-weight:800;font-size:.95rem;color:#4a3d22;margin:0 2px 8px}
.spyg{margin-bottom:10px}
.spygh{font-weight:800;font-size:.85rem;color:#2b6cb0;padding:6px 2px;border-bottom:1px solid #e6d8b4}
.spygh a{color:#2b6cb0;text-decoration:none}
.spygh b{color:#6b5b39}
.spyu{display:flex;align-items:center;gap:12px;padding:8px 4px;border-bottom:1px solid #f0e6cd}
.spyu:last-child{border-bottom:none}
.spyu img{width:52px;height:52px;object-fit:contain;flex:none}
.spyun{line-height:1.3}
.spyun b{display:block;font-size:.88rem;color:#4a3d22}
.spyun span{font-size:.78rem;color:#6b5b39;font-weight:700}

.mtable thead th a{color:#2b6cb0;text-decoration:none;font-weight:800;white-space:nowrap}
.mtable td.sname a{color:#2b6cb0;text-decoration:none;font-weight:700}

/* ---- Surecler: hangi YERE gidildigi (merkez / sehir / koloni) ---- */
.procrow .pinfo{flex:1;min-width:0;line-height:1.35}
.procrow .pinfo>b{display:block;font-size:.85rem;color:#4a3d22;font-weight:800}
.procrow .ptgt{color:#2b6cb0;text-decoration:none}
.procrow .ptico{width:16px;height:16px;object-fit:contain;vertical-align:-3px;margin-right:3px}
.procrow .psub{display:block;font-size:.7rem;color:#8a7a58;font-style:normal;font-weight:700}
.procrow .pmine{display:block;font-size:.68rem;color:#a2926f;font-style:normal}
.procrow .pmine small{color:#b3a687}

/* Yeni cag hazir rozeti (ORIJINAL: kaynak barinda "1") */
.resbar{position:relative}
.agebadge{position:absolute;right:-4px;top:-5px;background:#c0392b;color:#fff;border-radius:10px;
  min-width:17px;height:17px;line-height:17px;text-align:center;font-size:.68rem;font-weight:800;
  border:1px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.4)}
.agenext{margin-top:8px}
.agenext .obtn{width:100%}

.tabs .tbadge{background:#c0392b;color:#fff;border-radius:9px;padding:0 5px;font-size:.68rem;margin-left:3px}
.procgo{flex:none;width:26px;text-align:center;color:#f0a01e;font-size:1.35rem;font-weight:900;text-decoration:none}
a.report{display:block;text-decoration:none;color:inherit}

/* ---- ITTIFAK: ust kart + navigasyon satirlari (ORIJINAL alliance_view.xml) ---- */
.altop{display:flex;gap:8px;margin:8px 0}
.altv{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;border-radius:9px;
  background:linear-gradient(#f5ead0,#e9dcbb);border:1px solid #d8c79a;color:#7a6a48;font-size:.68rem;
  font-weight:700;text-decoration:none}
.altv b{color:#4a3d22;font-size:.95rem}
.alnav2{margin:10px 0}
.alrow{display:flex;align-items:center;gap:10px;padding:11px 12px;background:#fffdf6;border:1px solid #d8c79a;
  border-bottom:none;text-decoration:none;color:#4a3d22;font-weight:700;font-size:.87rem}
.alnav2 .alrow:first-child{border-radius:10px 10px 0 0}
.alnav2 .alrow:last-child{border-radius:0 0 10px 10px;border-bottom:1px solid #d8c79a}
.alrow img{width:24px;height:24px;object-fit:contain}
.alrow span{flex:1}
.alrow em{background:#c0392b;color:#fff;border-radius:9px;padding:1px 6px;font-size:.7rem;font-style:normal;font-weight:800}
.alrow b{color:#c99a3a;font-size:1.2rem}

.conqchk.warn{background:#fff0ec;border:1px solid #e0b0a4;border-radius:8px;padding:8px 10px;color:#a02c1e;font-size:.8rem}
.blocklink{display:block;text-align:right;font-size:.76rem;color:#2b6cb0;text-decoration:none;margin-bottom:4px}

.convacts{display:flex;gap:6px;justify-content:flex-end;padding:0 8px 8px}
.convacts form{margin:0}
.notifrow{display:flex;gap:10px;align-items:flex-start;padding:10px;border-bottom:1px solid #ece0c2}
.notifrow img{width:26px;height:26px;object-fit:contain;flex:none}
.notifrow .nbody{flex:1;min-width:0}
.notifrow .nbody b{display:block;font-size:.86rem;color:#4a3d22}
.notifrow .nbody p{margin:2px 0;font-size:.76rem;color:#6b5b39}
.notifrow .nbody span{font-size:.7rem;color:#a2926f}

.fbcat{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.fbcat .fbdesc{font-size:.68rem;color:#8a7a58;font-style:normal;line-height:1.3}

/* Pazar tablosunda isimler okunabilir olsun (haritadaki .sname koyu etiketiyle cakisiyordu) */
.mtable td.sname{background:transparent !important;color:#2b6cb0 !important;font-size:.82rem !important;
  padding:6px 8px !important;border-radius:0 !important;white-space:normal !important;font-weight:700}
.mtable td.sname a{color:#2b6cb0;text-decoration:none}
.mtable b.tsell{color:#2f7a2a}
.mtable b.tbuy{color:#a02c1e}

.vkv .vklink{color:#2b6cb0;text-decoration:none;font-weight:800}
.vkv .vklink:active{color:#c99a3a}

/* ORIJINAL addOwnedCities: tum yollarin tum sehirleri; ittifaka ait olan SIYAH KALIN, digerleri ince italik */
.avroads .avrcities{line-height:1.6}
.avc{font-size:.74rem;font-style:italic;color:#9a8a68;font-weight:400;text-decoration:none}
.avc.own{font-size:.9rem;font-style:normal;font-weight:800;color:#1a1408}
.avnocity{margin-top:8px;color:#b23a2a;font-weight:800;font-size:.82rem}

/* Merkeze don butonu: kale ikonu (orijinal map_center) - yerler globunden ayirt edilsin */
.mapfab.fabcenter img{width:46px;height:46px}

/* ORIJINAL minimap sahiplik isaretleri: merkez = gri ev (icon_ck), fethedilen sehir = yesil ev (icon_ct),
   koloni = kucuk mavi kare (holo_blue_light) */
.mmine.mmcol{filter:drop-shadow(0 0 1px rgba(0,0,0,.7))}
.mmine.mmain,.mmine.mmcity{image-rendering:pixelated}


/* ===== KUCUK EKRAN GUVENLIGI (v267) =====
   Hicbir yerde yatay tasma/kirpilma olmasin; sayilar ve etiketler okunur kalsin. */
html,body{overflow-x:hidden}
.rank,.mrow,.mprow,.mplace,.vurow,.urow,.avrow{min-width:0}
.rkinfo,.minfo,.vuinfo,.urmid{min-width:0}
@media(max-width:400px){
  .gl{font-size:.66rem}                       /* alt nav etiketleri */
  .gi{height:52px}
  .gi img{max-width:46px;max-height:44px}
  .ticktext{font-size:11px;padding:3px 6px}
  .tickarrow{width:30px}
  .htitle{font-size:1rem}
  .protshield{width:110px;height:30px;font-size:11px}
  .rank .rp,.mrow .mpts{font-size:.82rem}
  .page{padding-left:8px;padding-right:8px}
}
@media(max-width:340px){
  .gl{font-size:.6rem}
  .htitle{font-size:.92rem}
}
/* Armageddon 4 isaret (ORIJINAL ArmageddonSignsDto) */
.armsigns{display:flex;flex-direction:column;gap:5px;margin-top:8px}
.armsign{display:flex;justify-content:space-between;align-items:center;padding:6px 10px;border-radius:8px;background:rgba(90,20,10,.12);border:1px solid rgba(150,40,20,.3);font-size:.82rem}
.armsign.ok{background:rgba(30,110,40,.15);border-color:rgba(40,140,50,.4)}
.armsign .asl{font-weight:600;color:#7a2a18}
.armsign.ok .asl{color:#2f7a2a}
.armsign .asv{font-weight:800;color:#5a4020}

.qprog{margin:2px 0 10px;color:#6b5a34;font-size:14px}
.qprog b{color:#2f8a3e}

/* Ana ekranda (sahne uzerinde) flash mesaji okunur dursun */
.city .flash, .page.kinfo .flash{position:relative;z-index:5}

/* Responsive layout: phones, landscape and tablets. */
@supports(height:100dvh){:root{--screen-h:100dvh}}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
.hdr{top:env(safe-area-inset-top,0px);height:auto;min-height:58px}
.htitle{min-width:0;overflow-wrap:anywhere;padding:6px 0}
.page{overflow-wrap:anywhere}
.worldwrap{touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch}
input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px;max-width:100%;min-height:44px}
textarea{resize:vertical}
.obtn,.obtn.sm,.obtn.mini,.obtn.xs{height:auto;min-height:44px;line-height:1.25;display:flex;align-items:center;justify-content:center;padding:10px 12px;white-space:normal;overflow-wrap:anywhere}
.obtn{min-height:52px}
.gnav a{min-width:0}
.gnav .gi{width:100%;max-width:88px}
.gl{text-align:center;overflow-wrap:anywhere}
.brbody,.ageinfo,.nbody,.setrow>span{min-width:0}
.buprow,.setrow,.warpick{max-width:100%}
.rescost{flex-wrap:wrap}
.agepop,.tutpop{overflow-y:auto;padding:12px}
.agepopin,.tutbox,.mmpbox{max-height:calc(var(--screen-h) - 24px);overflow-y:auto;overscroll-behavior:contain}
.tutbox{top:50%}
.mmpbox{max-width:calc(100% - 24px)}
.mmpx,.plusbtn{min-width:44px;min-height:44px}
@media(max-width:560px){
 .mapfab{min-width:44px;min-height:44px}
 .ptop{padding-left:8px;padding-right:8px;gap:4px}
 .ptbtn.wide{border-left-width:34px;border-image-width:7px 12px 7px 34px;font-size:12px;padding-right:0}
 .ptbtn.diamond{border-left-width:32px;border-right-width:16px;border-image-width:7px 16px 7px 32px;font-size:12px}
 .ptbtn.gear{width:44px}
 .tophud .ri{gap:2px}
 .tophud .ri img{width:16px;height:16px;padding:1px}
 .tophud .ri b{font-size:11px}
 .urow{gap:6px;padding:8px 6px}
 .urow{display:grid;grid-template-columns:24px 54px minmax(0,1fr)}
 .urow .uract{grid-column:2 / -1;justify-self:end;max-width:100%;flex-wrap:wrap;justify-content:flex-end}
 .urow .uract form{flex:none}
 .urow .upbtn{min-width:44px;min-height:44px;white-space:nowrap}
}
@media(max-width:360px){
 .kcols{flex-direction:column}
 .kcol{width:100%}
 .ptbtn.wide span{font-size:11px}
}

.qib{min-width:0}
.qih{flex-wrap:wrap;gap:4px 8px}
.qih>.cd{white-space:nowrap}
.qbtns{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));align-items:stretch}
.qbtns form{min-width:0;display:flex}
.qbtns .obtn{margin-top:0;gap:4px;font-size:12px}
.qbtns .obtn img{flex:none}
.qbtns .obtn{width:100%;height:100%;overflow-wrap:normal;word-break:normal}
.qbtns .instant-finish{display:grid;grid-template-columns:minmax(0,1fr) max-content;column-gap:8px}
.instant-finish .instant-label{min-width:0;font-size:inherit;color:inherit;overflow-wrap:normal;word-break:normal;line-height:1.3}
.instant-finish .instant-price{display:inline-flex;align-items:center;gap:4px;flex:none;white-space:nowrap;font-size:inherit;color:inherit}
.instant-finish .instant-price .ig{width:20px;height:20px;flex:none}
.instant-finish .instant-amount{flex:none;white-space:nowrap;font-size:inherit;color:inherit;font-variant-numeric:tabular-nums}
.convb p{white-space:normal;overflow-wrap:anywhere}
.convh b{min-width:0}
.convh span{flex:none;margin-left:6px}
.page select,.page textarea,.intro select{font-size:16px}

.questtop{flex-wrap:wrap;gap:8px}
.questtop .qrw{flex-wrap:wrap;white-space:normal;min-width:0}
.tabs{flex-wrap:wrap}
.tabs a{flex:1 1 90px;min-width:0;min-height:44px}
.table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:8px 0}
.table-scroll .mtable{min-width:480px;overflow-wrap:normal}
.mtable td.sname,.mtable th:first-child{min-width:120px;overflow-wrap:anywhere}
.mtable td:not(.sname){white-space:nowrap}
.mtable td .obtn{min-width:80px}
.mtable thead th a{color:#fff}
.tabs a{min-width:min-content;overflow-wrap:break-word}
@media(max-height:600px){.tutarrow,.tutlabel{display:none}}
.tophud .ptbtn.inbox .hud-inbox-count{position:static;flex:0 0 auto;display:inline-block;margin-left:auto;min-width:18px;height:18px;line-height:16px;font-size:11px;padding:0 4px;background:#bf2424;border:1px solid #fff1ce;box-shadow:0 1px 2px #0005}
.tophud .ptbtn.inbox .hud-inbox-count[hidden]{display:none}
.tophud .ptbtn.inbox>span{min-width:0;margin-right:3px}
/* Home HUD follows the original APK panel: one ivory frame and compact gold icons. */
.city{--home-nav-height:clamp(68px,17.4vw,88px);--home-ticker-height:34px}
.tophud .ptop{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) 38px;gap:3px;padding:2px 4px 4px}
.tophud .ptbtn{height:42px;min-width:0;font-size:12px}
.tophud .ptbtn.diamond{border-width:5px 23px 5px 36px;border-image-width:5px 23px 5px 36px;padding:0 2px;color:#3a2a10}
.tophud .ptbtn.wide{border-width:5px 7px 5px 32px;border-image-width:5px 7px 5px 32px;padding:0 1px;font-size:12px}
.tophud .ptbtn.wide span{font-size:inherit}
.tophud .ptbtn.gear{width:38px;height:42px}
.tophud .ptbtn em{top:-1px;right:5px;border:1px solid #fff}
.tophud .resbar{margin:0 4px;padding:3px 4px;min-height:32px;border-radius:2px;background:rgba(31,26,18,.74);border:1px solid #b9ad8e;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.tophud .ri,.tophud .ri.pts{flex:1 1 0;gap:5px;padding:0;min-width:0}
.tophud .ri img{width:24px;height:24px;background:none;border:0;box-shadow:none;padding:0}
.tophud .ri b{font-size:12px;color:#fff4dc;letter-spacing:0;overflow:hidden;text-overflow:ellipsis}
.tophud .ri.over img{box-shadow:0 0 0 1px #ff5555 inset}
/* The body already reserves the iOS home-indicator inset. Keep it outside the city controls. */
.gnav{left:4px;right:4px;height:var(--home-nav-height);padding:5px 7px 3px;border:0;border-radius:0;box-shadow:none;background:transparent;overflow:hidden}
.gnav:before{content:"";position:absolute;inset:0;z-index:-1;background:url('img/ui/panel_bottom_original.png') bottom/100% 153.8462% no-repeat;pointer-events:none}
.gnav a{opacity:1;justify-content:center;padding:0 1px;gap:1px;border-right:1px solid rgba(141,117,78,.16)}
.gnav a:last-child{border-right:0}
.gnav .gi{background:none;border:0;border-radius:0;box-shadow:none;filter:none;width:100%;height:calc(var(--home-nav-height) - 25px);max-width:none}
.gnav .gi img{width:auto;height:calc(var(--home-nav-height) - 12px);max-width:72px;max-height:72px;filter:none;object-fit:contain}
.gnav .gl{color:#53452f;text-shadow:none;margin-top:0;font-size:clamp(10px,2.7vw,12px);line-height:1.15;white-space:nowrap;overflow-wrap:normal}
.gnav a.on{background:rgba(190,141,48,.12)}
.gnav a.on .gl{color:#704b15}
.gnav a.on .gi{filter:none}
.gnav a:focus-visible{outline:2px solid #79531f;outline-offset:-2px}
.city .ticker{left:4px;right:4px;bottom:var(--home-nav-height);height:var(--home-ticker-height);min-height:0;border:0;background:rgba(12,10,7,.72)}
.city .tickarrow{width:40px;background:rgba(0,0,0,.8);border:0}
.city .tickarrow b{color:#efbd00;font-size:28px;text-shadow:0 1px 1px #563e00}
.city .protshield{bottom:calc(var(--home-nav-height) + var(--home-ticker-height) + 9px)}
@media(max-width:360px){
 .tophud .ptop{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) 34px;gap:2px}
 .tophud .ptbtn,.tophud .ptbtn.gear{height:38px}
 .tophud .ptbtn.gear{width:34px}
 .tophud .ptbtn.diamond{border-left-width:29px;border-right-width:18px;border-image-width:5px 18px 5px 29px;font-size:10px}
 .tophud .ptbtn.wide{border-left-width:27px;border-right-width:5px;border-image-width:5px 5px 5px 27px;font-size:10px}
 .tophud .ri,.tophud .ri.pts{gap:3px}
 .tophud .ri img{width:20px;height:20px}
 .tophud .ri b{font-size:10px}
}
/* Keep original artwork colors when the browser applies automatic darkening. */
:root{color-scheme:only light}
.city .amb{color-scheme:only light;forced-color-adjust:none;filter:none;mix-blend-mode:normal}
/* Existing long player names remain intact; map labels can grow to multiple lines. */
.wcity>span{width:max-content;max-width:240px;white-space:normal;overflow:visible;overflow-wrap:anywhere;text-overflow:clip;text-align:center;flex-shrink:0;font-size:18px;line-height:1.15}
.wcity:not(.camp)>span{font-size:12px}
/* The original APK chest artwork is the button, without a surrounding card. */
.chestrow.grid9{max-width:510px;gap:12px;margin:12px auto}
.chestrow.grid9 .chestf{width:100%;min-width:0}
.chest.closed{position:relative;width:100%;min-width:0;aspect-ratio:1;padding:0;overflow:hidden;background:none;border:0;border-radius:0;box-shadow:none}
.chest.closed img{position:absolute;width:130%;max-width:none;height:auto;left:-15%;bottom:-2%;object-fit:contain}
.chest.closed:focus-visible{outline:2px solid #704512;outline-offset:2px}
.chest.closed:hover{transform:translateY(-3px)}
.chest.opened,.chest.win{background:none;border:0;box-shadow:none}
.wcity.me{z-index:7}
.wcity:focus-visible,.wcity:hover{z-index:12}
/* Keep report actions and resource totals readable on narrow screens. */
.repact form{flex:none}
.repact form .obtn{min-width:52px;white-space:nowrap}
.wrgrid{grid-template-columns:64px repeat(3,minmax(82px,1fr));overflow-x:auto}
.wrc b{white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:400px){.wrc b{font-size:12px}}
@media(max-width:480px){
 .wrgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 4px;overflow:visible;padding:6px 8px}
 .wrgrid>.wrlbl{grid-column:1/-1}
 .wrc{min-width:0}
 .wrc b{font-size:clamp(10px,3.1vw,13px);max-width:100%}
 .wrc small{max-width:100%;text-align:center;overflow-wrap:anywhere}
}

/* Keep every active queue with its unit and give actions a stable touch target. */
.production-unit{min-width:0}
.production-unit>.urow{margin-bottom:0}
.production-queue{background:#efe6d0;border:1px solid #bca372;border-top:3px solid #997532;border-radius:0 0 10px 10px;padding:10px;margin:0 0 8px;min-width:0;color:#3a2a12}
.production-queue .qih{font-weight:700;gap:4px 12px}
.production-queue .qih>.cd{font-variant-numeric:tabular-nums;color:#604217}
.production-queue .qnext{color:#64532f;margin:5px 0;font-size:12px}
.production-queue .qbtns{grid-template-columns:minmax(90px,.8fr) minmax(0,1.5fr);gap:8px;margin-top:10px}
.production-queue .qbtns .obtn{min-height:44px;padding:8px 10px;line-height:1.25}
.production-queue .qbtns .instant-label{font-size:12px}
.production-queue .qnodia{align-self:center;font-size:12px;color:#64532f}
.worker-queue .upgbar{height:7px;min-width:0;width:100%;margin:8px 0 2px}
@media(max-width:360px){.production-queue .qbtns{grid-template-columns:1fr}.production-queue .qbtns .obtn{min-height:44px}}

/* Full amounts remain available in titles when narrow HUD cells need K/M/B. */
.tophud .ri div{flex:1;min-width:0}
.tophud .hud-amount{display:block;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.tophud .ptbtn.diamond .hud-amount{flex:1}
.fab .fabtimer.campaign-timer{color:#ff2929;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}

/* Original video reference: 01:00 village, 01:40 workshop, 02:00 unit,
   05:20 alliance and 05:40 market. Reuse the APK marble page artwork;
   its frame stretches with the page instead of repeating the gold header. */
.page{background-color:#f7f7f5;background-image:url('img/ui/bg_page.png');background-position:center top;background-repeat:no-repeat;background-size:100% 100%;border-left:0;border-right:0;color:#35332e}
.page .ph{color:#3e3b35;font-size:.95rem}
.bheadcard{background:rgba(219,219,216,.36);border:1px solid #c9c9c4;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.75);padding:9px 10px;gap:10px}
.bhdesc p{font-size:13px;line-height:1.4;color:#38362f}
.bhdesc b{font-size:12px;color:#46423a}
.bbonus{background:rgba(218,218,214,.4);border-color:#cccac4;border-radius:2px;color:#514b3e;font-size:13px}
.page .urow,.page .buprow{background:transparent;border-color:transparent;border-bottom-color:#deddd7;border-radius:0;box-shadow:none;padding-top:8px;padding-bottom:8px;margin:4px 0}
.page .units{gap:4px}
.page .urow .urh{gap:4px 7px}
.page .urow .urh b,.page .buprow .brh b{font-size:14px}
.page .urow .urlvl,.page .buprow .brlvl{color:#565248}
.page .urow .urcost{gap:5px 7px}
.page .upbtn{background:#14486c url('img/ui/button_blue_default.png') center/100% 100% no-repeat;border:0;border-radius:0;min-width:48px;min-height:44px;padding:7px 10px;color:#fff;text-shadow:0 1px 1px #143041}
.page .plusbtn,.page .minusbtn{background:#205923 url('img/ui/button_green_default.png') center/100% 100% no-repeat;border:0;border-radius:0;min-width:44px;min-height:44px;color:#f4c74b;text-shadow:0 1px 1px #614216;font-size:25px}
.page .minusbtn{background-color:#75311b;background-image:url('img/ui/button_red_default.png')}
.page .qtyf input{border-color:#c5c3bd;border-radius:2px;background:rgba(255,255,255,.8)}
.page .upbtn:focus-visible,.page .plusbtn:focus-visible,.page .minusbtn:focus-visible{outline:2px solid #895e16;outline-offset:2px}
.page .production-queue{background:rgba(224,224,217,.48);border-color:#c9c7be;border-top:2px solid #b1a78f;border-radius:0 0 2px 2px;color:#37342e}
.page .production-queue .qnext,.page .production-queue .qnodia{color:#575144}
.unitpage .ubig img{margin:0 auto}
.unitpage .infotbl,.unitpage .costbox,.unitpage .abilbox{background:rgba(216,216,213,.3);border-color:#cccbc5;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)}
.unitpage .infotbl .irow{align-items:center;gap:8px;border-color:#d8d7d0;padding:6px 8px;font-size:13px}
.unitpage .infotbl .ik{flex:0 1 36%;min-width:0}
.unitpage .infotbl .iv{flex:1;min-width:0;background:rgba(193,193,190,.35);border:1px solid #cecdc7;border-radius:2px;padding:7px 9px}
.unitpage .costbox,.unitpage .abilbox{padding:8px}
.unitpage .costbox .cbh{font-size:13px}
.unitpage .cbrow{background:rgba(195,195,191,.25);border:1px solid #d1d0ca;padding:6px;gap:6px 10px;font-size:13px}
.unitpage .atktbl th,.unitpage .atktbl td{border-color:#d2d0c9}
.avcard,.avabout,.avroads{background:rgba(222,222,217,.33);border-color:#cbc9c1;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)}
.avrow b{background:rgba(195,195,190,.3);border:1px solid #ceccc3;border-radius:2px}
.avroad{border-bottom:1px solid #d7d3c9}
.banditbox{background:rgba(218,218,214,.35);border-color:#c8c6bd;border-radius:2px}
.page .mtable{background:rgba(255,255,255,.3);border-radius:0}
.page .mtable th{background:transparent;color:#494078;border-bottom:1px solid #c8c5ba}
.page .mtable thead th a{color:#494078}
.page .mtable td{border-bottom-color:#dedbd3}
@media(max-width:560px){
 .page .urow .infoi,.page .urow .ursprite{grid-row:1 / 3;align-self:center}
 .page .urow .infoi{grid-column:1}
 .page .urow .ursprite{grid-column:2}
 .page .urow .urmid{grid-column:3;grid-row:1}
 .page .urow .uract{grid-column:3;grid-row:2;justify-self:start;justify-content:flex-start}
}

/* Keep market actions visible alongside the original compact resource columns. */
.page .rescard{border-color:#cccbc5;border-radius:2px;background:rgba(218,218,214,.3)}
@media(max-width:560px){
 .page .table-scroll .mtable{min-width:0;table-layout:fixed;font-size:11px}
 .page .mtable th,.page .mtable td{padding:6px 3px}
 .page .mtable th{font-size:10px}
 .page .mtable th:first-child,.page .mtable td.sname{min-width:0;width:26%;font-size:11px!important}
 .page .mtable td.sname a{overflow-wrap:anywhere}
 .page .mtable td:not(.sname){white-space:normal;overflow-wrap:anywhere}
 .page .mtable td .obtn{min-width:44px;max-width:100%;min-height:44px;padding:3px;font-size:10px}
 .page .mtable .buyf{gap:3px;justify-content:center}
 .page .mtable .buyf input{width:100%;max-width:56px;min-width:0;padding:4px 1px;border-radius:2px;min-height:34px}
}

/* Video 06:20: settings are a light window over the city scene. */
.settings-scene{min-height:var(--screen-h);padding:24px 16px;display:flex;align-items:flex-start;justify-content:center;background:linear-gradient(#0006,#0006),url('img/bg/pan_back.jpg') center/cover fixed}
.settings-dialog{width:100%;max-width:440px;border:3px solid #c8a346;background:#f5f5f2 url('img/ui/bg_page.png') center/100% 100%;box-shadow:0 5px 22px #0008;color:#38352e}
.settings-title{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 6px 0 14px;background:#8b8983;color:#fff}
.settings-title a{display:flex;align-items:center;justify-content:center;width:44px;height:44px;font-size:28px;color:#f4cd53;text-decoration:none}
.settings-content{padding:10px;max-height:calc(var(--screen-h) - 104px);overflow:auto;overscroll-behavior:contain}
.settings-content .setcard{border:1px solid #d0cec7;border-radius:2px;background:#ffffff50;margin-bottom:8px;overflow:hidden}
.settings-content .setrow{gap:8px;padding:8px;align-items:center;flex-wrap:wrap;border-color:#dedbd3}
.settings-content .setrow b{overflow-wrap:anywhere;min-width:0}
.settings-extra{border-bottom:1px solid #d0cec7;margin:0 0 10px}
.settings-extra summary{min-height:44px;padding:10px 4px;cursor:pointer;font-weight:bold;color:#574b35}
.settings-content .setmenu a{min-height:44px}
.settings-content .ph{color:#594432}
@media(max-width:360px){.settings-scene{padding:12px 8px}.settings-content{max-height:calc(var(--screen-h) - 80px)}}

/* Reference barracks: small header, quantity/produce left, upgrade at right. */
.hdr{height:clamp(66px,19.5vw,88px);min-height:66px;padding:5px 6px;border-bottom:0;background-size:auto 100%;background-repeat:repeat-x}
.hdr .hbtn,.hdr .hbtn img{width:clamp(50px,15vw,66px);height:clamp(50px,15vw,66px)}
.hdr .htitle{font-size:14px;letter-spacing:0;line-height:1.15;text-shadow:0 1px 2px #0008}
/* Keep the page texture at its native aspect ratio: its gold strip stays thin. */
.page{background-image:none;border-style:solid;border-width:10px 6px 0;border-image:url('img/ui/bg_page.png') 16 8 1 8 fill stretch}
.training-page>.ph{display:none}
.page .urow.train-card{position:relative;display:grid;grid-template-columns:25% minmax(0,1fr);grid-template-rows:auto auto;gap:8px 10px;min-height:132px;padding:14px 8px;margin:0;border:0;align-content:center}
.page .train-card .infoi{position:absolute;left:8px;top:7px;width:16px;height:16px;padding:12px;margin:-12px;z-index:1}
.page .train-card .infoi img{width:16px;height:16px}
.page .train-card .ursprite{grid-column:1;grid-row:1 / 3;align-self:center;width:100%;height:88px;object-fit:contain}
.page .train-card .urmid{grid-column:2;grid-row:1;min-width:0}
.page .train-card .urh{gap:4px 12px;line-height:1.25}
.page .train-card .urh b,.page .train-card .urx,.page .train-card .urlvl{font-size:11px;color:#45443f;font-weight:700}
.page .train-card .urcost{display:none}
.page .train-card .uract{grid-column:2;grid-row:2;display:flex;justify-self:stretch;justify-content:space-between;align-items:flex-start;gap:8px;flex-wrap:nowrap;width:100%;min-width:0}
.page .train-card .uract form{margin:0;flex:0 0 auto}
.page .train-card .qtyf{position:relative;gap:7px;padding-bottom:20px;touch-action:manipulation}
.page .train-card .qtyf input{width:clamp(42px,13vw,58px);height:38px;min-height:0;padding:3px;border-radius:0;font-size:16px;align-self:flex-start;margin-top:3px}
.page .train-card .qtyf input::placeholder{color:transparent}
.page .train-card .qtyf .urmaxn{position:absolute;left:0;top:44px;margin:0;font-size:11px;color:#45443f;white-space:nowrap}
.page .train-card .plusbtn{width:clamp(46px,15vw,62px);height:48px;min-width:44px;min-height:44px;background-color:transparent;font-size:30px;padding:0}
.page .upbtn{width:clamp(64px,20vw,84px);height:68px;min-width:0;min-height:44px;padding:7px 0 0;gap:0;background-color:transparent;background-size:100% 48px;background-position:center top;color:#45443f;text-shadow:none;justify-content:flex-start}
.page .upbtn img{width:28px;height:28px;object-fit:contain}
.page .upbtn span{margin-top:14px;font-size:11px;line-height:14px}
.page .train-card .urlock,.page .train-card .urmax{font-size:12px}
.page .train-card .upgrow{margin-top:8px}
@media(max-width:360px){.page .urow.train-card{grid-template-columns:23% minmax(0,1fr);gap:7px;padding-left:4px;padding-right:4px}.page .train-card .urh{gap:4px 7px}.page .train-card .qtyf{gap:4px}.page .train-card .uract{gap:5px}}

/* Worker actions share the training layout; retirement stays a separate red action. */
.page .worker-card .qtyf:has(.minusbtn){padding-bottom:54px}
.page .worker-card .qtyf .minusbtn{position:absolute;right:0;top:50px;order:2;width:clamp(46px,15vw,62px);height:44px;min-width:44px;min-height:44px;padding:0;background-color:transparent;font-size:26px}
.page .worker-card .ursprite{height:88px}
.page .structure-card .uract{justify-content:flex-end}
.page .rescard{gap:7px;padding:8px 6px}
.page .resh{flex-wrap:wrap;justify-content:flex-start;gap:3px 6px}
.page .resh b{font-size:12px;flex:1 0 100%}
.page .reslvl{font-size:10px;white-space:nowrap;background:none;color:#565248;padding:0;border-radius:0}
.page .rescost>span{display:inline-flex;align-items:center;gap:2px;white-space:nowrap}

/* Kingdom overview: age above economy/population, limits below economy. */
.page.kinfo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-content:start;padding:18px 10px 24px;color:#45443f}
.kinfo .kcols{display:contents}
.kinfo .kbox{position:relative;min-width:0;max-width:100%;margin:17px 0 0;padding:5px;background:#dddcd640;border:1px solid #c4c2bc;border-radius:3px;box-shadow:none;color:#45443f}
.kinfo .kboxh{position:absolute;left:0;top:-20px;width:100%;min-height:18px;margin:0;padding:0;border:0;letter-spacing:0;font-size:11px;line-height:18px;color:#45443f}
.kinfo .kboxico{width:25px;height:25px;right:0;top:-4px}
.kinfo .kage{grid-column:1 / -1;grid-row:1}
.kinfo .keconomy{grid-column:1;grid-row:2}
.kinfo .kpopulation{grid-column:2;grid-row:2 / 4;align-self:start}
.kinfo .klimits{grid-column:1;grid-row:3}
.kinfo .kstock{grid-column:1 / -1;grid-row:4;margin-top:4px;background:transparent}
.kinfo .kstock summary.kboxh{position:relative;top:auto;left:auto;width:auto;min-height:32px;padding:5px 28px 5px 3px;cursor:pointer}
.kinfo .kstock summary .kboxico{top:3px}
.kinfo .agerow{gap:8px;padding:3px 8px 0}
.kinfo .agemedal,.kinfo .agemedal img{width:72px;height:72px}
.kinfo .ageinfo{gap:6px;min-width:0}
.kinfo .agepill{border-radius:3px;background:#c9c8c44d;border-color:#bab9b4;padding:8px 6px;font-size:12px;color:#803c11}
.kinfo .ageinfo span{font-size:11px;color:#45443f}
.kinfo .kmini{font-size:11px;color:#45443f;margin:6px 0 2px;line-height:1.35}
.kinfo .kage>.kmini{text-align:center;border-top:1px solid #cbc8c1;padding-top:5px}
.kinfo .ecoline{margin:8px 0}
.kinfo .ecoline b,.kinfo .poph{font-size:11px;line-height:1.4;color:#803c11;background:none;padding:0;gap:3px}
.kinfo .rico{width:18px;height:18px;flex:none}
.kinfo .graybox,.kinfo .ecobox{margin:2px 0 0;padding:4px 5px;background:#c7c6c14d;border:1px solid #bdbbb5;border-radius:3px;color:#45443f;font-size:11px;line-height:1.35}
.kinfo .ecobox .inc,.kinfo .ecobox .dec{color:#45443f;font-size:11px}
.kinfo .graybox div{padding:2px 0}
.kinfo .popgroup{margin:10px 0}
.kinfo .popgroup:first-of-type{margin-top:8px}
.kinfo .stortbl{font-size:11px;table-layout:fixed}
.kinfo .stortbl th,.kinfo .stortbl td{padding:3px 2px;border:0;overflow-wrap:anywhere}
.kinfo .stortbl th,.kinfo .stortbl td.al{color:#803c11}
.kinfo .flash{grid-column:1 / -1;grid-row:auto;margin:0}
.kinfo:has(>.flash)>.flash{grid-row:1}
.kinfo:has(>.flash) .kage{grid-row:2}
.kinfo:has(>.flash) .keconomy{grid-row:3}
.kinfo:has(>.flash) .kpopulation{grid-row:3 / 5}
.kinfo:has(>.flash) .klimits{grid-row:4}
.kinfo:has(>.flash) .kstock{grid-row:5}
@media(max-width:360px){.page.kinfo{padding-left:5px;padding-right:5px;gap:6px}.kinfo .kbox{padding:4px}.kinfo .agemedal,.kinfo .agemedal img{width:62px;height:62px}.kinfo .kboxh{font-size:10px}.kinfo .graybox,.kinfo .ecobox{padding:3px}.kinfo .ecoline b{font-size:10px}}

/* The city is one edge-to-edge scene. Keep the full horizontal artwork visible;
   all building links and animations use the same responsive coordinate space. */
@media(max-width:600px) and (orientation:portrait){
 .city{--home-viewport:calc(var(--screen-h) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));min-height:var(--home-viewport);background:url('img/bg/ground.jpg') center/100% auto}
 .city .scene{height:var(--home-viewport);overflow:hidden;display:flex;align-items:center}
 .city .zoom{width:100%;flex:none}
 .city .cityimg{width:100%;height:auto;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 18px,#000 calc(100% - 18px),transparent);mask-image:linear-gradient(to bottom,transparent,#000 18px,#000 calc(100% - 18px),transparent)}
 .city .bmark{font-size:10px;padding:2px 4px}
 .city .bprog{max-width:72px}
}
.market-capacity-detail{font-size:13px;line-height:1.5;margin:0 0 10px;color:#55472e}
.market-capacity-notice{margin:8px 0 12px;padding:10px;border-left:3px solid #b88625;background:#f2ead4;color:#3a2a12;font-size:14px;line-height:1.45}
.market-capacity-notice a{font-weight:bold;text-decoration:underline}

/* Battle resources stay distinct; long localized totals cannot break into digits. */
.wrfoot.wrsummary{display:grid;gap:8px;padding:12px 4px}
.wrsummary .wrloot{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:8px;align-items:center;font-size:clamp(12px,3.4vw,16px)}
.wrsummary .wrloot>span{overflow-wrap:normal}
.wrsummary .wrloot>b{display:flex;justify-content:flex-end;align-items:center;gap:5px;flex-wrap:wrap;white-space:nowrap;overflow-wrap:normal}
.wrsummary .wrresource{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.wrsummary .wrtot{border-top:1px solid #c9b98a;padding-top:8px}

/* Original production rows: one sprite, with progress and actions beside it. */
.page .busynote{margin:6px 0;padding:7px 8px;background:#e6e5df80;border:1px solid #c5c3bc;border-radius:3px;color:#55534b;font-size:11px;line-height:1.4}
.page .production-unit.has-active-queue{position:relative;display:grid;grid-template-columns:25% minmax(0,1fr);gap:6px 10px;padding:16px 8px;margin:0;align-items:center}
.page .has-active-queue>.train-card{display:contents}
.page .has-active-queue>.train-card>.infoi{left:8px;top:12px}
.page .has-active-queue>.train-card>.ursprite{grid-column:1;grid-row:1 / 4;height:100px;align-self:center}
.page .has-active-queue>.train-card>.urmid{grid-column:2;grid-row:1}
.page .has-active-queue>.train-card>.uract{grid-column:2;grid-row:3}
.page .has-active-queue>.production-queue{grid-column:2;grid-row:2;display:block;padding:0;margin:0;background:none;border:0;border-radius:0;box-shadow:none;min-width:0}
.page .production-queue .queue-status{display:flex;flex-wrap:wrap;justify-content:space-between;gap:3px 8px;color:#377626;font-size:11px;line-height:1.4}
.page .production-queue .queue-status .cd{color:#377626;white-space:nowrap}
.page .production-queue .qnext{margin:4px 0;color:#55534b;font-size:11px}
.page .production-queue .upgbar{height:7px;margin:6px 0;border-radius:2px}
.page .production-queue .qbtns{grid-template-columns:minmax(0,.85fr) minmax(0,1.3fr);gap:7px;margin-top:6px}
.page .production-queue .qbtns .obtn{min-height:46px;padding:6px 7px;font-size:11px;line-height:1.2;background-color:transparent}
.page .production-queue .qbtns .instant-finish{grid-template-columns:minmax(0,1fr);gap:3px}
.page .production-queue .instant-label{font-size:11px}
.page .production-queue .instant-price{justify-content:center;font-size:11px}
.page .production-queue .instant-price .ig{width:16px;height:16px}
.page .production-queue .queue-status>span{color:#377626}
.page .worker-upgrade .queue-status{margin:4px 0}
.page .worker-retirement{width:100%;font-size:11px;color:#666259}
.page .worker-retirement summary{cursor:pointer;min-height:32px;padding:8px 0;line-height:1.4}
.page .worker-retirement[open] .qtyf{margin-top:5px}
.page .has-active-queue .urup{display:none}
@media(max-width:360px){
 .page .production-unit.has-active-queue{grid-template-columns:23% minmax(0,1fr);gap:6px 7px;padding-left:4px;padding-right:4px}
 .page .production-queue .qbtns{gap:5px}
 .page .production-queue .qbtns .obtn{padding:6px 4px;font-size:10px}
 .page .production-queue .instant-label{font-size:10px}
}

/* Garrison groups retain the original neutral marble hierarchy. */
.page .vuhead{background:#dddcd640;border:1px solid #c4c2bc;border-radius:3px;padding:10px;color:#45443f}
.page .vugroup,.page .vugroup.me{background:transparent;border:1px solid #c4c2bc;border-radius:3px}
.page .vugh,.page .vugroup.me .vugh{background:#c7c6c14d;border-color:#bdbbb5;padding:7px 9px}
.page .vugn{font-size:12px;color:#45443f}
.page .vugh .obtn{min-height:44px}
.page .vurow{min-height:82px;gap:12px;padding:10px 12px;border-color:#d6d3cb}
.page .vurow img{width:58px;height:64px}
.page .vuinfo b{font-size:13px;color:#45443f}
.page .vuinfo span{font-size:11px;color:#666259}
.page .vuqty{font-size:14px;white-space:nowrap;color:#45443f}

/* City job badges: the active unit above its progress bar, as on the original panel. */
.city .bmarks{width:clamp(76px,22vw,108px);gap:3px;align-items:stretch;min-height:44px;justify-content:center;text-decoration:none}
.city .bmark{display:flex;align-items:center;gap:4px;padding:0;background:none;border-radius:0;box-shadow:none;font-size:clamp(10px,2.7vw,12px);line-height:1.15;text-shadow:0 1px 2px #000,0 0 3px #000}
.city .bmark-icon{width:27px;height:29px;object-fit:contain;flex:none;background:rgba(12,10,5,.65);border:1px solid #706a42}
.city .bmark-label{display:flex;flex-direction:column;gap:1px;min-width:0}
.city .bmark b,.city .bmark-qty{color:#fff;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.city .bprog{width:100%;max-width:none;height:10px;border:1px solid #111;border-radius:0;background:rgba(0,0,0,.8);box-shadow:0 1px 1px #ffffff40}
.city .bprog i{background:linear-gradient(#9df23c,#54c21b)}

/* Temporary store notice; prices remain readable on narrow screens. */
.store-notice{margin:10px 0 14px;padding:11px 14px;background:#fff8de;border:1px solid #d7be79;border-radius:8px;font-size:14px;line-height:1.5;color:#59441b}.store-notice p{margin:0 0 6px}.store-notice a{color:#165d83;font-weight:bold;text-decoration:underline;display:inline-block;padding:4px 0}.diapack>span{white-space:nowrap}@media(max-width:360px){.diapack{gap:8px;padding:8px 10px}.diapack b{font-size:18px}.diapack>span{padding:5px 8px;font-size:13px}.store-notice{font-size:13px}}

/* Compact entry controls retain the game's ornate button artwork. */
.intro .introwrap{width:100%;max-width:none;align-self:stretch;padding:20px clamp(16px,5vw,30px) max(20px,env(safe-area-inset-bottom));background:linear-gradient(transparent,rgba(12,9,6,.75) 28%,rgba(9,7,5,.96))}
.intro .ifrm,.intro .auth-actions{width:100%;max-width:420px;margin-left:auto;margin-right:auto}
.intro .ifrm{gap:8px}
.intro .ifrm input,.intro .ifrm select{width:100%;height:44px;min-height:44px;margin:0;padding:8px 13px;font-size:16px;border:1px solid #947039;border-radius:3px;box-sizing:border-box;color:#f4e4c3;background:linear-gradient(180deg,#302619,#19140e);box-shadow:inset 0 1px 0 #c9974b29,0 2px 6px #0005;color-scheme:dark;caret-color:#f6d88e}
.intro .ifrm input::placeholder{color:#c9b594;opacity:1}
.intro .ifrm select{appearance:none;padding-right:36px;background-image:linear-gradient(45deg,transparent 50%,#d9b56b 50%),linear-gradient(135deg,#d9b56b 50%,transparent 50%),linear-gradient(180deg,#302619,#19140e);background-position:calc(100% - 20px) 19px,calc(100% - 14px) 19px,0 0;background-size:6px 6px,6px 6px,100% 100%;background-repeat:no-repeat}
.intro .ifrm option{background:#211a12;color:#f4e4c3}.intro .ifrm option:disabled{color:#95856d}
.intro .ifrm input:focus,.intro .ifrm select:focus{outline:2px solid #d6af61;outline-offset:2px;border-color:#e0ba70}
.intro .ifrm input:-webkit-autofill,.intro .ifrm input:-webkit-autofill:hover,.intro .ifrm input:-webkit-autofill:focus{box-shadow:0 0 0 1000px #211a12 inset;-webkit-text-fill-color:#f4e4c3;caret-color:#f6d88e;border-color:#947039}
.intro .ifrm input:autofill{box-shadow:0 0 0 1000px #211a12 inset;color:#f4e4c3}
.intro .obtn{min-height:44px;margin-top:4px;padding:8px 10px;font-size:13px;letter-spacing:0}
.auth-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:5px}.auth-actions>*{min-width:0}
.obtn.support-button{flex-direction:column;gap:1px;line-height:1.2}.support-button small{font-size:10px;font-weight:normal;letter-spacing:0}
.store-support{margin:16px auto 4px;max-width:300px}.support-button:focus-visible{outline:3px solid #ffe79a;outline-offset:3px}

.obtn.gold{background-image:url('img/ui/button_gold_default.png');color:#fff5d1;text-shadow:0 1px 2px #241300}.obtn.gold:active{background-image:url('img/ui/button_gold_active.png')}
.store-support:first-child{margin-top:0;margin-bottom:18px}
.checkout-summary{display:flex;align-items:center;gap:10px;padding:12px 0;margin-bottom:14px;border-bottom:1px solid #baa882;flex-wrap:wrap}.checkout-summary img{width:32px;height:32px}.checkout-summary strong{margin-left:auto}.checkout-form{display:grid;gap:12px;margin-top:15px}.checkout-form label{font-size:14px;display:grid;gap:5px}.checkout-form input{width:100%;min-height:44px;padding:9px 10px;border:1px solid #ada58e;border-radius:3px;background:#f4f0e3;color:#3a2a12;font-size:16px}.checkout-form input:focus{outline:2px solid #186078;outline-offset:1px}.store-buy{font-size:13px;min-height:44px;display:flex;align-items:center;padding:6px;color:#155c75}
.diapack form{margin:0}.diapack button.store-buy{border:0;background:transparent;font-weight:700;cursor:pointer;font-family:inherit}.diapack button.store-buy:focus-visible{outline:2px solid #155c75;outline-offset:2px}.bmac-code{display:block;padding:12px;margin:12px 0;background:#eee8d4;border:1px solid #b4a270;border-radius:5px;text-align:center;font-size:clamp(14px,4vw,21px);overflow-wrap:anywhere;user-select:all}

/* Historic crowns and marshal awards: original icon colors and readable details. */
.profile-award-details{border:1px solid #bfc0ba;border-radius:3px;background:rgba(210,211,205,.3);padding:7px 10px;display:grid;gap:8px}
.profile-award-detail{display:flex;align-items:center;gap:12px;min-height:58px;color:#555}
.profile-award-detail>img{width:58px;height:58px;object-fit:contain;flex:none}
.profile-award-detail>div{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.profile-award-detail strong{font-size:.86rem;line-height:1.3}
.profile-award-detail span{font-size:.8rem;line-height:1.35;color:#6b6b66}
.rank.hasbadge.bconq{border:2px solid #d5af34}.rank.bconq .rkinfo>b{color:#b59618}
.rank.hasbadge.bassist{border:2px solid #50be43}.rank.bassist .rkinfo>b{color:#35a728}
.rank.hasbadge.bmar{border:2px solid #ce3431}.rank.bmar .rkinfo>b{color:#b82424}
.rank.hasbadge.boldmar{border:2px solid #a5a8aa}.rank.boldmar .rkinfo>b{color:#74787b}

/* Private conversations fill the viewport like the other parchment pages. */
.page.thread{flex:1;min-height:calc(var(--screen-h) - clamp(66px,19.5vw,88px) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
.thread .chatform{bottom:0;align-items:center;background:#f7f7f5;padding-bottom:max(8px,env(safe-area-inset-bottom,0px))}
.thread .chatform input{min-width:0;width:0;min-height:48px}
.thread .chatform .obtn{flex:0 0 clamp(100px,28%,160px);width:auto;margin-top:0}

/* Small community entry shared by authentication and the settings menu. */
.community-discord img{width:26px;height:26px;flex:none;display:block}
.community-discord:focus-visible{outline:3px solid #e4b760;outline-offset:3px}
.auth-community{display:flex;justify-content:center;margin-top:12px}
.auth-community .community-discord{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:7px 13px;border:1px solid #947039;border-radius:6px;background:linear-gradient(#302619,#19140e);color:#f4e4c3;font-size:13px;font-weight:700;text-decoration:none;box-shadow:inset 0 1px 0 #c9974b29,0 2px 6px #0005}
.auth-community .community-discord:hover{border-color:#e4b760;background:#352919}
.settings-content .community-discord:hover{border-color:#947039;background:#e9debf}

/* Icon-only community shortcuts must not push the login form over the artwork. */
.intro>.auth-community{position:absolute;top:8px;right:8px;z-index:3;margin:0}
.auth-community .community-discord,.settings-title-actions .community-discord{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.auth-community .community-discord:hover{border:0;background:none;opacity:.85}
.community-discord img{width:22px;height:22px}
.settings-title-actions{display:flex;align-items:center}
.intro{min-height:max(var(--screen-h),calc(min(100vw,560px) * 1.5))}


/* Compact language picker above the artwork, shared by login and registration. */
.intro>.auth-language{position:absolute;top:8px;left:12px;z-index:5;color:#f1d6a2;font:13px/1.4 'RB','Segoe UI',sans-serif}
.auth-language>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 11px;list-style:none;cursor:pointer;border:1px solid #b58b435c;border-radius:5px;background:#15130de0;box-shadow:0 2px 8px #0004;user-select:none}
.auth-language>summary::-webkit-details-marker{display:none}.auth-language>summary:hover,.auth-language[open]>summary{border-color:#c99c50;background:#211b12}
.auth-language>summary:focus-visible,.auth-language-option:focus-visible{outline:2px solid #f4d38e;outline-offset:2px}.auth-language summary svg{flex:none;opacity:.9}.language-chevron{margin-left:2px;color:#c9a061}
.auth-language-menu{position:absolute;top:calc(100% + 7px);left:0;width:276px;max-width:calc(100vw - 40px);max-height:70vh;overflow:auto;padding:10px;display:grid;grid-template-columns:1fr 1fr;gap:5px;border:1px solid #a47b3e;border-radius:6px;background:linear-gradient(135deg,#261f16,#110f0b);box-shadow:0 8px 24px #000b}
.auth-language:not([open])>.auth-language-menu{display:none}.auth-language-menu>p{grid-column:1/-1;margin:0 3px 5px;font-size:12px;color:#bfaa85}.auth-language-menu form{min-width:0;margin:0}
.auth-language-option{width:100%;min-height:44px;display:flex;align-items:center;gap:7px;padding:8px 6px;color:#eadfc7;border:1px solid transparent;border-radius:4px;text-align:left;font-size:12px;white-space:nowrap}.auth-language-option img{width:20px;height:14px;object-fit:cover;flex:none}.auth-language-option>span{margin-left:auto;color:#e7bd67}.auth-language-option:hover{background:#473720}.auth-language-option.selected{background:#3a2d1a;border-color:#96703a;color:#ffe2a8}

/* Reinforcement cards: actions must not squeeze troop/name text to zero width. */
.reinfrow{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:start}
.reinfrow .rfinfo{width:100%;min-width:0;overflow-wrap:anywhere}
.reinfrow .rfinfo b,.reinfrow .rfinfo span{display:block;line-height:1.4}
.reinfrow>.obtn{grid-column:1/-1;width:100%;max-width:100%;margin:0;min-height:48px;height:auto;font-size:16px;line-height:1.3;padding:12px 16px;white-space:normal;word-break:normal}

/* Support troop inventory: compact native unit sprites and readable exact counts. */
.reinfrow .rfunits{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:6px;list-style:none;margin:8px 0 0;padding:0}
.reinfrow .rfunit{display:flex;align-items:center;gap:6px;min-width:0;padding:5px;border:1px solid #d8ceb1;border-radius:6px;background:rgba(239,231,205,.45)}
.reinfrow .rfunit img{width:38px;height:44px;object-fit:contain;flex:0 0 38px}
.reinfrow .rfunit>div{min-width:0}
.reinfrow .rfunit .rfunit-name{font-size:11px;line-height:1.25;color:#70532b;overflow-wrap:anywhere}
.reinfrow .rfunit-count{display:block;font-size:13px;line-height:1.4;color:#39270f;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}

/* Inbox counters stay above the label, preserving three columns on small phones. */
.tabs.inbox-tabs{display:flex;gap:7px;clear:both;overflow:visible;padding-top:8px}
.tabs.inbox-tabs>a{position:relative;flex:1 1 0;min-width:0!important;min-height:44px;padding:11px 4px;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.2;overflow:visible}
.tabs.inbox-tabs .inbox-badge{position:absolute;top:-9px;right:5px;min-width:22px;height:22px;padding:0 5px;box-sizing:border-box;border:2px solid #fff3d0;border-radius:14px;background:#c52b27;color:#fff;font:bold 12px/18px Arial,sans-serif;text-shadow:0 1px #76201c;box-shadow:0 1px 3px #32170955;white-space:nowrap}
@media(max-width:380px){.tabs.inbox-tabs{gap:5px}.tabs.inbox-tabs>a{font-size:12px}}

/* Records: original parchment cards and raised gold military/trade tabs. */
.records-header{width:100%;max-width:var(--w);position:sticky;top:env(safe-area-inset-top,0px);z-index:10;background:#07546e url('img/ui/records-weave-native.svg') left top/clamp(35.25px,10.4148vw,47px) clamp(35.25px,10.4148vw,47px) repeat;border-bottom:7px ridge #e8b53d}
.records-header>.hdr{position:static;background:transparent;border:0;max-width:100%;padding:6px 18px 2px}
.records-header>.hdr .htitle{font-size:clamp(16px,4.4vw,19px);line-height:1.2}
.page.records-page{padding-top:5px;border-top-width:0}
.records-header .records-tabs{display:flex;gap:8px;margin:0;padding:4px 18px 0;background:none;border:0;overflow:visible}
.records-header .records-tabs>a{position:relative;flex:1;min-width:0;padding:10px 6px 9px;border:4px ridge #eabb4e;border-bottom:0;border-radius:20px 20px 0 0;background:linear-gradient(#d6d4c7,#b7b5a9);box-shadow:inset 0 0 5px #534d3a;color:#69685e;text-shadow:0 1px #fff9;font-weight:800}
.records-header .records-tabs>a.on{background:#fffdf3 url('img/ui/bg_pagewithtab.png') center bottom;color:#53564a;box-shadow:inset 0 0 4px #574e2f}
.records-tabs .tbadge{position:absolute;right:-3px;top:0;border:2px solid #fff1d3;border-radius:50%;line-height:18px;min-width:22px;height:22px;background:#c33337;color:white;font-size:13px;padding:0 3px}
.records-page .wlog{padding:7px 7px 0;margin:9px 0;border:1px solid #92a685;border-radius:7px;background:linear-gradient(115deg,#ffffff40,#dce4d129);box-shadow:inset 0 0 3px #577d3b65;color:#68675d}
.records-page .wlog.lost{border-color:#be9995;box-shadow:inset 0 0 3px #96473b60;background:linear-gradient(115deg,#ffffff40,#e8ccc929)}
.records-page .wrtop{display:grid;grid-template-columns:42px minmax(0,1fr);gap:0 8px;padding:0;align-items:start}
.records-page .wrflag{width:40px;height:44px;object-fit:contain;grid-row:1/3}
.records-page .wrtitle{padding:5px 0;font-size:16px;line-height:1.25;color:#399e30;overflow-wrap:anywhere}
.records-page .wlog.lost .wrtitle{color:#bd2d29}
.records-page .wlog .wrap{grid-column:2;justify-self:end;gap:7px;min-width:78px;justify-content:flex-end;height:25px;padding:0 4px 0 10px;border:1px solid #bcbcaf;background:#b9bcb033;color:#70665d;font-size:14px;border-radius:7px}
.records-page .wlog .wrap.pos{color:#388c30}.records-page .wlog .wrap img{width:28px;height:28px}
.records-page .wrgrid{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:18px 0 0;padding:4px 0;border:1px solid #b9b9ae;border-radius:7px;background:#a1a29a22;overflow:visible}
.records-page .wrgrid+.wrgrid{margin-top:20px}
.records-page .wrgrid .wrlbl{position:absolute;top:-18px;left:0;grid-column:auto;color:#716b60;font-size:12px;line-height:17px;font-weight:600}
.records-page .wrc{min-width:0}.records-page .wrc b{font-size:15px;color:#737167;overflow-wrap:anywhere}.records-page .wrc small{font-size:12px;color:#65645b;text-align:center;line-height:1.15;padding:0 2px}
.records-page .wrc.neg b{color:#c43a32}.records-page .wrc.pos b{color:#36932b}
.records-page .wrfoot{justify-content:flex-end;padding:3px 0 2px}.records-page .wrfoot>span{font-size:12px;color:#8a877a}
.records-spy,.records-trade{display:grid;grid-template-columns:44px minmax(0,1fr);gap:2px 9px;margin:9px 0;padding:8px 7px 4px;border:1px solid #9bab8c;border-radius:7px;background:#c2cec020;text-decoration:none;box-shadow:inset 0 0 3px #66865f60;color:#716d60}
.records-spy>img{width:43px;height:47px;object-fit:contain}.records-spy b{display:block;padding-top:3px;font-size:16px;color:#3d9e32;overflow-wrap:anywhere}.records-spy p,.records-trade p{font-size:13px;line-height:1.4;margin:5px 0 0;overflow-wrap:anywhere}.records-spy small,.records-trade small{grid-column:1/-1;text-align:right;font-size:12px;color:#8a877b}.records-spy.lose{border-color:#be9995}.records-spy.lose b{color:#bd2d29}
.records-trade{margin:12px 0 22px;border-color:#c4c5b8;box-shadow:none;background:#a4a79d1b;padding:8px 7px 4px;gap:4px 8px;min-height:75px}
.records-trade b{display:block;padding-top:2px;font-size:15px;line-height:1.3;color:#777768;overflow-wrap:anywhere}.records-trade p{color:#b34e44;font-weight:700}.records-resource{position:relative;display:block;width:44px;height:49px}.records-resource>img{width:44px;height:44px;object-fit:contain}.records-resource>img.records-sign{position:absolute;width:21px;height:21px;right:-2px;bottom:0}
.records-delete{text-align:right;margin-top:15px}
@media(min-width:600px){.records-page .wrtitle,.records-spy b{font-size:18px}.records-page .wrc b{font-size:17px}.records-page .wrc small{font-size:14px}.records-trade b{font-size:17px}.records-trade p{font-size:15px}}

/* Player requests 2026-10-11: paper reports and accessible action menus. */
.wreport .cdblock{background:rgba(245,244,235,.6);border:1px solid #b9b6a8;border-radius:5px;overflow:hidden}
.wreport .cdname{background:transparent;border:0;padding:12px 10px 20px;text-align:center;color:#2473a2;background-image:url(img/ui/separator_spear.png);background-position:center bottom;background-repeat:no-repeat;background-size:85% 10px}
.wreport .cdrow{display:grid;grid-template-columns:76px minmax(0,1fr);grid-template-rows:auto auto;gap:2px 16px;padding:10px 14px;min-height:82px;border-bottom:1px solid #ddd8ca}
.wreport .cdrow>img{grid-column:1;grid-row:1/3;width:72px;height:78px;object-fit:contain}
.wreport .cdn{grid-column:2;grid-row:1;align-self:end;font-weight:bold}
.wreport .cdq{grid-column:2;grid-row:2;align-self:start;text-align:left;font-size:15px}
.wreport .wrhead{padding:12px;background:rgba(230,229,220,.65);color:#4a4230;border:1px solid #bab6ab;border-radius:5px}
.wreport .wrhead.win>b{color:#39872c}.wreport .wrhead.lose>b{color:#ae2921}
.wreport .cdh{text-align:center;color:#a63620;font-size:20px}.spy-scroll{max-height:65vh;max-height:65dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid #c6c0af;border-radius:5px}
.spyhead{background:rgba(222,221,212,.55);border:1px solid #b6b2a6;border-radius:5px;padding:12px}.spydate{text-align:right;color:#8a887c;padding:4px 8px}.spyu{padding:12px 16px}.spyu>img{width:80px;height:88px;object-fit:contain}.spyun{flex:1}
.request-transfer .battlebox{border:0;background:none}.request-transfer .btitle,.request-transfer .kmini2{background:rgba(224,223,214,.55);padding:8px}.request-transfer .btitle{color:#a52d22;border-radius:5px 5px 0 0}.request-transfer .arow{display:grid;grid-template-columns:80px 1fr;grid-template-rows:1fr 1fr;column-gap:15px;border:0;background:none}.request-transfer .arow>img{grid-row:1/3;width:76px;height:82px;object-fit:contain}.request-transfer .ainfo{align-self:end}.request-transfer .aqty{grid-column:2;align-self:start;text-align:left;font-size:15px}
.report-entry,.conversation-entry{position:relative}.hold-toggle{position:absolute;right:2px;top:2px;z-index:2;width:30px;height:32px;border:0;border-radius:4px;background:rgba(233,228,210,.88);color:#725826;font-size:23px;cursor:pointer}.report-entry>a .wrtitle{padding-right:22px}.hold-actions{padding:8px;background:#ede8d6;border:1px solid #baad8d;border-radius:4px}.hold-actions[hidden]{display:none!important}.hold-actions:not([hidden]){display:flex;gap:8px;justify-content:flex-end}.hold-actions form{margin:0}.report-entry .wlog,.report-entry .records-spy{margin-bottom:12px}.conversation-entry{margin-bottom:7px}.conversation-entry .conv{padding:16px 35px 16px 10px;background:rgba(230,229,219,.55);border:1px solid #bdb9a8;border-radius:5px;gap:12px}.convav{background:none!important}.convav>img{width:44px;height:44px;object-fit:contain}.convh{flex-wrap:wrap}.convh>b{color:#57503c}.convh>span{font-size:11px}.conv-arrow{font-size:30px;color:#928a70}.convb{min-width:0}.convb p{margin:5px 0 0;color:#827963}.convb b{overflow-wrap:anywhere}
.inbox-hub{display:grid!important;grid-template-columns:1fr 1fr}.inbox-hub>a:nth-child(n+3){font-size:13px;min-height:36px;padding:6px}.inbox-hub>a:nth-child(n+3)>img{width:22px;height:22px}
.thread .bubrow{margin:16px 0}.thread .bub{border-radius:4px;border:1px solid #c2b999;box-shadow:0 1px 3px #0002;max-width:86%;padding:12px}.thread .bub.me{background:#e8e4ee;color:#555063}.thread .bub.them{background:#f4efc4;color:#5a543e}.thread .bub>span{font-size:11px;color:#898578}.thread .chatform{gap:8px;padding:10px 0}.thread .chatform input{min-width:0;flex:1;border:1px solid #b5b0a4;border-radius:5px;background:#fff;padding:12px}
.newsrow{border-bottom:1px solid #c9c5b5;background:rgba(255,255,255,.25);padding:14px 8px;gap:12px}.newsrow .newsico{width:40px;height:40px;object-fit:contain}.newsbody{min-width:0}.newsbody p{line-height:1.5;overflow-wrap:anywhere}.newsbody>span{display:block;text-align:right;color:#8e8a7b}.pinned-headline{border-left:3px solid #c79738;background:#efe6cf70}.headline-label{display:block;font-size:12px;color:#91621a;margin-bottom:4px}
.archive-world{margin:14px 0;border:1px solid #c1b79d;border-radius:6px;padding:14px}.archive-world h2{font-size:18px;text-align:center;color:#756441}.archive-awards{display:grid;gap:12px;margin:14px 0}.archive-awards.conqueror,.archive-awards.old_marshall{grid-template-columns:1fr}.archive-awards.conqueror_assistant{grid-template-columns:repeat(3,minmax(0,1fr))}.archive-award{display:flex;align-items:center;text-align:center;flex-direction:column;gap:5px;min-width:0}.archive-award img{width:70px;height:70px;object-fit:contain}.archive-award b{overflow-wrap:anywhere;color:#337b3e}.archive-award small{font-size:11px;color:#8a7d61}.remember-choice{display:flex;gap:8px;align-items:center;color:#fff1ca;margin:10px 0}.remember-choice input{width:auto!important;margin:0!important}

/* Beta feed and movement layout: dense lists, readable names, no home bounce. */
.mmlabels{pointer-events:none}.mmlabels a.mml{pointer-events:auto;cursor:pointer}
.processes-compact .procrow{min-height:56px;padding:5px 7px;margin:3px 0;gap:7px;border-radius:3px;display:flex;align-items:center}
.processes-compact .procrow>img{width:28px;height:30px;object-fit:contain;flex:none}
.processes-compact .pinfo{min-width:0;flex:1}.processes-compact .pinfo>b{font-size:12px;line-height:1.3;display:block}
.processes-compact .ptgt{display:inline}.processes-compact .ptico,.processes-compact .psub,.processes-compact .pmine{display:none}
.processes-compact .procrow>.cd{font-size:12px;white-space:nowrap}.processes-compact .procgo{font-size:22px;padding:4px}
.processes-compact form .obtn{min-height:26px;height:26px;margin:0 0 4px;font-size:11px;background-size:100% 100%;padding:3px 8px}
.records-page details.wlog{padding:4px 6px;margin:5px 0}.records-page summary.wrtop{cursor:pointer;list-style:none;grid-template-columns:24px minmax(0,1fr) auto;gap:5px;align-items:center}
.records-page summary.wrtop::-webkit-details-marker{display:none}.records-page summary .wrflag{width:24px;height:28px;grid-row:auto}
.records-page summary .wrtitle{font-size:12px;padding:2px 0}.records-page summary .wrap{grid-column:auto;min-width:0;font-size:11px;height:20px;padding:0 3px;gap:3px}.records-page summary .wrap img{width:18px;height:18px}
.records-page .wrgrid{margin-top:17px}.records-page .wrgrid+.wrgrid{margin-top:18px}.records-page .wrc b{font-size:13px;white-space:nowrap}.records-page .wrfoot{justify-content:space-between}
.records-spy{padding:5px;margin:5px 0}.records-spy b{font-size:12px}.records-spy p,.records-spy small{font-size:10px}.newsrow{padding:7px;margin:5px 0}.newsico{width:26px;height:30px}.newsbody p{font-size:12px;line-height:1.35}.newsbody>span{font-size:10px}
@media(max-width:600px){html:has(.city),body:has(.city){height:100dvh;min-height:0;overflow:hidden;overscroll-behavior:none}.city{--home-viewport:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));height:var(--home-viewport);min-height:0;flex:none;overflow:hidden}.city .scene{height:100%;min-height:0}.city .zoom{width:100%}.wpleft{min-width:74px;width:auto;white-space:nowrap;font-size:13px}}

/* Fit the home scene and its navigation into the actual visible mobile area. */
@media(max-width:600px){
 html.wk-home-screen,html.wk-home-screen body{height:var(--city-visible-height,var(--screen-h));min-height:0;overflow:hidden;overscroll-behavior:none}
 html.wk-home-screen body>.managed-content{flex-shrink:0}
 html.wk-home-screen .city{height:0;min-height:0;flex:1 1 auto;--home-viewport:100%}
 html.wk-home-screen .city .scene{height:100%;min-height:0}
}

/* Compact military summaries and kingdom facts retain the game's existing skin. */
.support-detail .vugh{flex-wrap:wrap}
.support-return{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:6px 10px;border:1px solid #bdbbb5;border-radius:4px;background:rgba(199,198,193,.3);color:#a72e20;font-size:12px;font-weight:bold}
.support-return:focus-visible{outline:2px solid #79531f;outline-offset:2px}
.kingdom-profile.profile-compact{gap:9px;padding-top:10px}
.profile-compact .vktbl{gap:4px;padding:6px}
.profile-compact .vkrow{min-height:32px;gap:5px}
.profile-compact .vkrow .vkk{flex-basis:32%;font-size:12px}
.profile-compact .vkrow .vkv{min-height:32px;padding:3px 5px;font-size:12px;gap:4px;flex-wrap:nowrap}
.profile-compact .vkico,.profile-compact .vkage{width:22px;height:22px}
.profile-compact .vkico.dot{width:12px;height:12px}
.profile-compact .vklink{min-height:24px}
.profile-compact .vkrow-rating .vkv{white-space:nowrap}
.profile-compact .vkrow-rating .vkpoints{flex:1.7}
.profile-compact .profile-holdings .holdlist{gap:4px}
.profile-compact .profile-holdings .profile-link{min-height:38px;padding:5px 9px;font-size:13px}
.profile-compact .profile-arrow{width:18px;height:22px}

/* Incoming movements must show the destination holding in the compact list. */
.processes-compact .procrow.inc .pmine{display:block;font-size:12px;line-height:1.35;color:#655536;font-weight:700;overflow-wrap:anywhere;margin-top:3px}
.processes-compact .procrow.inc .pmine small{color:inherit;font-weight:400}

/* Trade movement quantities and compact trade receipts, promoted from beta. */
.processes-compact .procrow.trade-movement{display:flex;align-items:center;gap:10px;position:relative;min-height:65px;margin:0;padding:9px 0 11px;border:0;border-radius:0;background:none;box-shadow:none}
.processes-compact .procrow.trade-movement:after{content:"";position:absolute;left:0;right:0;bottom:0;height:7px;background:url(img/ui/separator_spear.png) center/100% 7px no-repeat}
.processes-compact .procrow.trade-movement>img{width:36px;height:40px;flex:0 0 36px;object-fit:contain}
.processes-compact .trade-movement .pinfo{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.processes-compact .trade-movement .pinfo>b{white-space:normal;font-style:normal;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.processes-compact .trade-movement .actor{color:#23769b;text-decoration:underline}
.processes-compact .trade-movement .pinfo>.cd{position:static;margin-top:3px;font-size:12px;font-weight:600;color:#77776e;font-style:italic}
.records-page .records-trade{grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto;align-content:start;align-items:start;gap:2px 8px;min-height:54px;margin:6px 0 16px;padding:6px 7px;border-radius:4px;background:#d4d4cd38}
.records-page .records-trade .records-resource{grid-row:1/3;align-self:start;width:30px;min-width:30px;height:34px}.records-page .records-trade .records-resource>img:first-child{width:30px;height:30px}.records-page .records-trade .records-resource>img.records-sign{width:15px;height:15px;right:-1px;bottom:0}.records-page .records-trade>div{min-width:0;grid-column:2;grid-row:1}.records-page .records-trade>div>b{padding:0;font-size:12px;line-height:1.25}.records-page .records-trade>div>p{font-size:11px;line-height:1.3;margin:2px 0 0}.records-page .records-trade>small{grid-column:2;grid-row:2;font-size:10px;line-height:1.2;text-align:right}

/* Approved beta promotion; notification hub deliberately excluded. */

.army-overview .mplace{margin:9px 0 13px}
.army-overview .mpname{padding-bottom:3px;margin:3px 2px;font-size:14px}
.army-overview .mprow{min-height:38px;padding:7px 10px;margin:3px 0;font-size:13px}
.compact-source{margin:10px 0 14px;flex-direction:column;align-items:stretch}
.compact-source label{display:block;font-size:12px;margin-bottom:5px;color:#78592d;font-weight:bold}
.compact-source select{width:100%;min-width:0;min-height:42px;font-size:15px;padding:7px;background:#f3ecd6;border:1px solid #c5ab70;border-radius:5px;color:#40341c}
.movement-cancel{margin:0 0 10px;text-align:left}
.compact-action{font:inherit;font-size:13px;font-weight:bold;border:1px solid #b9aa8b;border-radius:4px;background:#eee7d9;color:#a72e20;min-height:36px;padding:6px 12px;cursor:pointer}
.compact-action:focus-visible{outline:2px solid #19566b;outline-offset:2px}
.trade-cargo .pinfo{display:flex;flex-direction:column;gap:4px}
.trade-cargo .pinfo>span{font-size:11px;color:#706850}
.trade-cargo .pinfo>.cd{font-size:12px;color:#19566b}
.support-message{padding:10px 12px;margin:8px 0;border:1px solid #cabb9a;border-radius:5px;background:#f8f3e6;overflow-wrap:anywhere}
.support-message p{margin:0 0 6px;font-size:13px}.support-message small{color:#786b54}
.support-request .fbcats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.support-request .fbcat{display:flex;flex-direction:column;align-items:flex-start;gap:5px;font-size:13px;min-width:0;padding:10px}
.support-request .fbdesc{display:block;font-size:12px;line-height:1.4;font-style:normal;font-weight:normal}
.compact-map-menu{max-width:300px}
.compact-map-menu .mmpacts{display:flex;flex-direction:column;gap:7px;padding:10px 20px 16px}
.compact-map-menu .mmpbtn{min-height:38px;margin:0}
.compact-map-menu .map-score{display:flex;justify-content:space-between;gap:8px;font-size:12px}
.map-score img{width:18px;height:18px;vertical-align:middle;object-fit:contain}
.compact-map-menu .map-score>span{display:flex;align-items:center;gap:3px;white-space:normal;overflow:visible;text-overflow:clip;min-width:0}
.compact-map-menu .map-score>span:first-child{flex:1;flex-wrap:wrap}
.compact-map-menu .map-score>span:last-child{flex:0 0 auto}

/* Unit details: commander header plus unboxed sprite, level and quantity rows. */
.page.units-clean .vugroup,.page.units-clean .vugroup.me{border:0;border-radius:0;background:transparent;overflow:visible;margin:0 0 16px}
.page.units-clean .vugh,.page.units-clean .vugroup.me .vugh{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;border:1px solid #d3d0c9;border-radius:5px;background:#e5e2dc;padding:6px 9px;min-height:42px}
.page.units-clean .vugn{flex:1;min-width:90px;font-size:13px;overflow-wrap:anywhere}
.page.units-clean .unit-return{display:inline-flex;align-items:center;justify-content:center;min-height:32px;max-width:100%;padding:6px 10px;margin:0;border:1px solid #c4c2bd;border-radius:5px;background:#d8d7d2;box-shadow:none;color:#b22c22;font:700 12px/1.25 Arial,sans-serif;text-decoration:none;cursor:pointer}
.page.units-clean .unit-return:focus-visible{outline:2px solid #1c5c75;outline-offset:2px}
.page.units-clean .vugh form{margin:0;flex:0 1 auto}
.page.units-clean .vurow{display:flex;align-items:center;gap:15px;min-height:76px;padding:10px 9px;border:0;background:none;box-shadow:none}
.page.units-clean .vurow img{width:45px;height:56px;object-fit:contain}
.page.units-clean .vuinfo{display:flex;flex:1;flex-direction:column;gap:5px;min-width:0}
.page.units-clean .vuinfo>b{font-size:14px;line-height:1.35}
.page.units-clean .vuinfo>.vuqty{display:block;font-size:14px;font-weight:700;line-height:1.2;color:#45443f}
.page.units-clean .vufoot{position:static;margin-top:8px}
.page.units-clean.support-detail .unit-return{order:2}

/* Incoming movements must show the destination holding in the compact list. */
.processes-compact .procrow.inc .pmine{display:block;font-size:12px;line-height:1.35;color:#655536;font-weight:700;overflow-wrap:anywhere;margin-top:3px}
.processes-compact .procrow.inc .pmine small{color:inherit;font-weight:400}


/* Beta review: calm parchment menus, readable lists and compact map dialog. */
.beta-menu-header .records-tabs{padding-top:8px;gap:8px}
.beta-menu-header .records-tabs>a{min-height:43px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:16px}
.support-request .fbcats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.support-request .fbcat{padding:10px;border-radius:10px;font-size:13px}
.support-request .fbcat img{width:22px;height:22px}.support-request .fbdesc{display:none}
.beta-movements .procrow,.beta-movements .procrow.inc{display:flex;align-items:center;gap:12px;background:none;border:0;border-bottom:1px solid #aaa69370;box-shadow:0 1px #fff9;border-radius:0;padding:15px 0;margin:0;min-height:88px}
.beta-movements .procrow>img{width:47px;height:51px;object-fit:contain;flex:0 0 47px}
.beta-movements .pinfo{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}
.beta-movements .pinfo>b{font-size:14px;line-height:1.5;white-space:normal}
.beta-movements .ptgt{color:#39713a;text-decoration:underline}.beta-movements .actor{color:#23769b;text-decoration:underline}
.beta-movements .movement-route{display:block;font-size:11px;line-height:1.5;color:#77736a}
.beta-movements .pinfo>.cd{position:static;font-size:15px;font-weight:600;color:#77776e;font-style:italic}
.beta-movements .procgo{position:static;flex:0 0 20px;font-size:37px;color:#bd8b2d}
.beta-movements>.ph{font-size:15px;margin:10px 0 0}
.beta-process-detail .movement-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:#e6e1d4;border:1px solid #c5b994;border-radius:9px;color:#47412d}
.beta-process-detail .movement-cancel{margin:0}.beta-process-detail .compact-action{padding:8px 12px;color:#a03529;white-space:nowrap}
.beta-process-detail .battlebox{border:0;background:none;padding:0}.beta-process-detail .btitle{font-size:14px;background:none;margin:10px 0 0;padding:5px 0}
.beta-process-detail .kmini2{background:none;font-size:12px;padding:4px 0}.beta-process-detail .ph{font-size:13px;color:#777264}
.beta-process-detail .vurow{padding:10px 0}.beta-process-detail .vufoot,.vufoot{display:flex;flex-wrap:wrap;gap:10px}.vufoot>*{flex:1;min-width:125px}
.market-simple .mtabs{display:flex;gap:8px}.market-simple .mtabs a{flex:1;min-width:0;padding:12px;font-size:16px}
.market-simple .ptext{font-size:12px;line-height:1.5;margin:8px 0;color:#76705c}
.market-simple .ordform{padding:16px;background:#f4efdfc9;border:1px solid #c8b584;border-radius:14px;display:grid;gap:12px}
.market-simple .ordform label{font-size:13px;line-height:1.7}.market-simple .ordform input,.market-simple .ordform select{min-height:43px;margin:3px 0 0;border-radius:7px;background:#fffdf6;font-size:17px}
.market-simple .ordrow{border:0;border-bottom:1px solid #c8bda1;border-radius:0;padding:12px 0;background:none}.market-simple .ph{font-size:17px}
.mmpbox{width:min(90vw,328px)}
.mmpop.compact-map-menu{width:100%;max-width:none;max-height:calc(100dvh - 110px);overflow:auto;border:6px ridge #d2bf90;border-radius:29px;background:#f4efdf url('img/ui/bg_pagewithtab.png') center/cover;box-shadow:0 9px 24px #0008,inset 0 0 0 3px #fff9}
.compact-map-menu .mmph,.compact-map-menu.own .mmph{background:#0e4658 url('img/ui/records-weave-native.svg') center/40px;color:#fff7dc;border-bottom:3px ridge #d9b457;padding:11px 33px;font-size:17px;text-align:center}
.compact-map-menu .mmpx{right:9px;top:7px;transform:none;padding:0;width:25px;height:25px;color:#f5c46e;font-size:28px;line-height:25px}
.compact-map-menu .mmpb{padding:13px 12px 10px;gap:9px;align-items:center}.compact-map-menu .mmpimg{width:65px;flex:0 0 65px;object-fit:contain}
.compact-map-menu .mmprows{gap:5px;min-width:0}.compact-map-menu .mmprow{min-height:32px;padding:6px 8px;border:1px solid #c7bc9c;border-radius:7px;background:linear-gradient(#fffdf7,#e6dfce);font-size:12px;gap:4px}
.compact-map-menu .map-score{font-size:11px}.compact-map-menu .mmpacts{padding:0 17px 16px;gap:8px}
.compact-map-menu .mmpbtn{min-height:40px;padding:9px 11px;border-radius:7px;border:2px solid #39362399;box-shadow:inset 0 1px 1px #ffffff70,0 2px 1px #84795370;justify-content:center;gap:8px;font-size:14px;text-align:center}
.compact-map-menu .mmpbtn img{width:23px;height:23px}.compact-map-menu .mmpbtn.green{background:linear-gradient(#487d3c,#234d27)}.compact-map-menu .mmpbtn.blue{background:linear-gradient(#327995,#1d4b68)}.compact-map-menu .mmpbtn.red{background:linear-gradient(#b24b3a,#7e2722)}.compact-map-menu .mmpbtn.transfer{background:linear-gradient(#79786d,#4f5049);color:#fff}


/* Beta polish: intrinsic settings width fix and a shared parchment treatment. */
.support-intro{display:flex;align-items:center;gap:13px;margin:3px 0 20px}.support-intro>img{width:44px;height:48px;object-fit:contain}.support-intro h2{font-size:19px;color:#144657;margin:0 0 5px}.support-intro p{font-size:13px;color:#847554;margin:0}
.support-request .fbcats{gap:8px;margin:0 0 20px}.support-request .fbcat{position:relative;flex-direction:row;align-items:center;gap:10px;min-height:56px;padding:10px 13px;border:1px solid #b9a576;border-radius:8px;background:linear-gradient(#fffdf5e6,#e9e0c8b3);box-shadow:inset 0 0 0 2px #fff8,0 2px 3px #735f3120;color:#66512c;font-size:14px}
.support-request .fbcat:last-child{grid-column:1/-1;justify-content:center;min-height:44px}.support-request .fbcat img{width:28px;height:28px}.support-request .fbcat:has(input:checked){background:linear-gradient(#1c6073,#103e50);color:#ffe8a8;border-color:#b89a50;box-shadow:inset 0 0 0 2px #d2b87744,0 2px 4px #183f4930}
.support-request .fbcat input{display:block;position:absolute;opacity:0;width:1px;height:1px}.support-request .fbcat:focus-within{outline:2px solid #1d829d;outline-offset:3px}
.support-fields{padding:16px 18px 10px;border:1px solid #c6b587;border-radius:12px;background:linear-gradient(#f9f4e6b3,#eee4cb66);box-shadow:inset 0 0 0 3px #fff7}
.support-fields label{display:block;color:#6c5630;font-size:13px;margin:0 0 7px}.support-fields input,.support-fields textarea{box-sizing:border-box;width:100%;border:1px solid #c4b082!important;border-radius:6px!important;background:#fffdf6!important;box-shadow:inset 0 2px 3px #55411e12;color:#3f3a2c;padding:12px!important;font-size:14px!important;margin:0 0 16px!important}
.support-fields textarea{min-height:125px;resize:vertical}.support-fields input:focus,.support-fields textarea:focus{outline:2px solid #28768b;outline-offset:1px}.support-fields>.obtn{margin:2px 0 4px}
.support-history-title{font-size:15px;margin:22px 0 10px;color:#665333}.support-message{border:0!important;border-top:1px solid #bdad8377!important;border-radius:0!important;background:none!important;padding:12px 2px!important}.support-message-meta{display:flex;justify-content:space-between;align-items:center;gap:10px}.support-message-meta>b{font-size:11px;color:#17566a;background:#e7e6d9;border-radius:4px;padding:4px 7px}.support-message-meta time{font-size:11px;color:#918363}.support-message p{font-size:14px;color:#4c4533;margin:10px 0 0;overflow-wrap:anywhere}
.beta-movements .procrow,.beta-movements .procrow.inc{position:relative;border:0;box-shadow:none;padding:18px 0 20px}
.beta-movements .procrow:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,transparent,#a89973 12%,#c4b999 50%,#a89973 88%,transparent);box-shadow:0 1px 0 #fff}
.beta-movements .ptgt,.beta-movements .actor{text-decoration:none}.beta-movements .ptgt:hover,.beta-movements .actor:hover{text-decoration:underline}
.beta-process-detail .movement-heading{background:none;border:0;border-bottom:1px solid #b7a77f80;border-radius:0;padding:0 0 12px;margin-bottom:16px;color:#174e61;font-size:16px}
.beta-process-detail .compact-action{border:1px solid #b69d69;border-radius:5px;background:linear-gradient(#fffaf0,#e8dec6);box-shadow:inset 0 0 0 2px #fff6;font-size:12px;padding:9px 14px}
.movement-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 9px}.movement-kind{font-size:18px;font-weight:bold;color:#873d2a}.movement-summary .cd{font-size:20px;color:#626249;font-variant-numeric:tabular-nums}
.detail-route{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-bottom:18px;color:#ad8a3b;font-size:13px}.detail-route a{color:#426c3b;text-decoration:none}.beta-process-detail .armylist{border-top:1px solid #c3b58e66;padding:8px 0 14px}.beta-process-detail .vurow{padding:12px 4px}
.market-polished .market-help{font-size:12px;color:#897652;margin:0 0 12px;text-align:right}.market-help summary{cursor:pointer}.market-help p{line-height:1.5;text-align:left;background:#f5efdc;padding:10px;border-radius:6px}
.market-polished .mtabs.sub{gap:12px;margin:6px 0 20px}.market-polished .mtabs.sub>a{display:flex;justify-content:center;align-items:center;gap:12px;min-height:60px;background:linear-gradient(#fffdf6,#e8dfc6);border:1px solid #b7a16c;box-shadow:inset 0 0 0 2px #fff8,0 2px 2px #65512a22;border-radius:9px;color:#6c542e}.market-polished .mtabs.sub>a.on{background:linear-gradient(#205e70,#133f50);color:#ffe6a5;border-color:#b59a52;box-shadow:inset 0 0 0 2px #d2b87744}.market-polished .mtabs.sub img{height:32px;width:32px;object-fit:contain}
.market-polished .mtable{border-collapse:separate;border-spacing:0 9px;font-size:13px;table-layout:fixed;width:100%}.market-polished .mtable th{color:#7c6943;font-size:11px;border:0;padding:4px}.market-polished .mtable th a{color:inherit}.market-polished .mtable th:first-child{width:22%}.market-polished .mtable th:nth-child(2){width:23%}.market-polished .mtable th:nth-child(3){width:23%}.market-polished .mtable th:nth-child(4){width:17%}.market-polished .mtable th:last-child{width:15%}
.market-polished .mtable td{border-top:1px solid #c7b78d;border-bottom:1px solid #c7b78d;background:linear-gradient(#fffdf3c9,#ede4ccba);padding:14px 5px;color:#53452a;overflow-wrap:anywhere}.market-polished .mtable td:first-child{border-left:1px solid #c7b78d;border-radius:8px 0 0 8px}.market-polished .mtable td:last-child{border-right:1px solid #c7b78d;border-radius:0 8px 8px 0}.market-polished .mtable td small{display:block;font-size:10px;color:#8c7955;margin-top:4px}.market-polished .mtable .sname a{color:#19647f}.market-polished .mtable .obtn{min-width:0;width:100%;padding:5px;min-height:38px;font-size:13px;margin:0}.market-polished .table-scroll{overflow-x:auto}
.market-capacity{display:flex;align-items:center;gap:14px;background:linear-gradient(#f8f2e3,#e8dfc6);border:1px solid #bda97a;border-radius:8px;padding:13px 16px;box-shadow:inset 0 0 0 2px #fff7;margin-bottom:16px}.market-capacity>img{width:30px;height:30px;object-fit:contain}.market-capacity>div{flex:1}.market-capacity span{display:block;font-size:11px;color:#8a7550}.market-capacity b{display:block;font-size:19px;color:#5b4425;margin-top:3px}.market-polished .market-capacity-notice{font-size:12px;line-height:1.5;padding:10px 12px;background:#eae0c4;border-left:3px solid #b39548;border-radius:4px;margin:0 0 12px}
.market-polished .ordform{padding:18px;border-radius:12px;border:1px solid #bfa974;background:linear-gradient(#fbf6e9ba,#e8dfc380);box-shadow:inset 0 0 0 3px #fff8}.market-polished .ordform label{font-size:13px;color:#69522d;margin-bottom:15px}.market-polished .ordform input,.market-polished .ordform select{background:#fffdf5;border:1px solid #baa576;border-radius:5px;box-shadow:inset 0 2px 3px #59432116;font-size:16px;padding:12px;min-height:46px}.market-polished .ordform>.obtn{margin:6px 0 0}.market-polished button:disabled{opacity:.6;filter:grayscale(.8);color:#fff;text-shadow:0 1px #333}.market-polished .ordrow{background:#f3eddd99;border-color:#c0ac7d;box-shadow:inset 0 0 0 2px #fff6}
@media(max-width:420px){.support-intro h2{font-size:17px}.support-request .fbcat{font-size:12px;padding:9px;gap:7px}.support-fields{padding:14px 12px 9px}.market-polished .mtable{font-size:11px}.market-polished .mtable td{padding:12px 3px}.market-polished .mtable td small{font-size:9px}.market-capacity{gap:10px;padding:11px}.market-capacity b{font-size:17px}.market-capacity>img{display:none}}

.market-polished .mtable td.sname{background:linear-gradient(#fffdf3c9,#ede4ccba)!important;border-radius:8px 0 0 8px!important;padding:14px 6px!important;font-size:13px!important}.market-polished .table-scroll .mtable{min-width:0}.market-polished .mtable{background:none;overflow:visible}@media(max-width:420px){.market-polished .mtable td.sname{font-size:11px!important}}

.market-polished .ordform{gap:10px}.market-polished .ordform label{margin:0;line-height:1.4}.market-polished .ordform input,.market-polished .ordform select{margin-top:4px}.support-intro>img{width:40px;height:40px}

/* Settings keeps the live window style, with an inline name form. */
.settings-scene{width:100%;max-width:var(--w);box-sizing:border-box;background-size:100% auto;background-position:center top;background-attachment:scroll;background-repeat:no-repeat;background-color:#292820}
.settings-dialog{box-sizing:border-box}
.settings-name{margin:0 0 12px;padding:10px 2px 12px;border-bottom:1px solid #d0cec7}
.settings-name>label{display:block;margin-bottom:7px;font-weight:bold;color:#594432;font-size:14px}
.settings-name>input[name=newname]{display:block;width:100%;box-sizing:border-box;padding:10px 12px;font:inherit;border:1px solid #b99a54;border-radius:4px;background:#faf7ec;color:#483720;margin:0 0 9px}
.settings-name>.obtn{width:100%;box-sizing:border-box;margin:0 0 8px}
.settings-name>small{display:block;font-size:11px;line-height:1.45;color:#8a7a58}

/* Beta settings: a true dialog above the unchanged game scene. */
body.wk-settings-open{overflow:hidden}
.beta-settings-modal{width:calc(100% - 24px);max-width:460px;max-height:calc(100dvh - 32px);padding:0;margin:auto;border:0;background:transparent;color:#443b2d;overflow:visible}
.beta-settings-modal::backdrop{background:rgba(3,12,17,.67);backdrop-filter:blur(2px)}
.beta-settings-modal .settings-dialog,.settings-scene .settings-dialog{width:100%;max-width:460px;max-height:calc(100dvh - 32px);display:flex;flex-direction:column;overflow:hidden;border:3px solid #d6b568;border-radius:18px;background:#fbf7eb url('img/ui/bg_page.png') center/100% 100%;box-shadow:0 18px 65px #0009,0 0 0 1px #604c26,inset 0 0 0 2px #fff8}
.beta-settings-modal .settings-title,.settings-scene .settings-title{flex:none;min-height:58px;padding:0 8px 0 18px;background:#0d4c63 url('img/ui/records-weave-native.svg') center/47px 47px;border-bottom:3px ridge #e2b951;color:#fff;text-shadow:0 2px 2px #0008}
.settings-title #settings-heading{font-size:19px;letter-spacing:.2px}
.settings-title [data-settings-close]{font-size:30px;border-radius:10px;outline-offset:-3px}
.settings-title [data-settings-close]:hover{background:#ffffff18}
.beta-settings-modal .settings-content,.settings-scene .settings-content{min-height:0;max-height:none;padding:15px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b99a54 transparent}
.settings-content .settings-name{padding:0 0 13px;margin:0 0 8px;border-bottom:1px solid #c9b78880}
.settings-content .settings-name>label{font-size:13px;margin-bottom:6px}
.settings-content .settings-name>input[name=newname]{min-height:44px;border-radius:9px;background:#fffdf6;box-shadow:inset 0 2px 4px #77602b12}
.settings-content .settings-name>small{font-size:11px;line-height:1.5}
.settings-content .setcard{background:transparent;border:0;border-bottom:1px solid #c9b78870;border-radius:0;margin:0}
.settings-content .setrow{padding:8px 2px;min-height:50px;flex-wrap:nowrap}
.settings-content .setrow>span{font-size:15px}
.settings-content .setmenu{gap:9px;margin:12px 0}
.settings-content .setmenu a{border-radius:10px;background:linear-gradient(#fffcf2,#eee3c7);box-shadow:inset 0 1px #fff;min-height:50px}
.settings-content>form:last-child{margin:8px 0 0}
.settings-content>form:last-child>.obtn{width:100%;margin:0;font-size:14px}
.settings-scene{position:fixed;inset:0;width:100%;max-width:none;min-height:0;height:100dvh;box-sizing:border-box;padding:16px 12px;align-items:center;background:linear-gradient(#071017b3,#071017b3),url('img/bg/pan_back.jpg') center top/min(100vw,560px) auto no-repeat;background-color:#080c0e;z-index:100}
@media(max-width:360px){.beta-settings-modal{width:calc(100% - 16px)}.beta-settings-modal .settings-content,.settings-scene .settings-content{padding:11px}.settings-title #settings-heading{font-size:17px}}

/* First beta: compact parchment lists, using the game's existing assets. */
.beta-movements .procrow{min-height:68px;padding:10px 0 12px;gap:10px}
.beta-movements .procrow>img{width:36px;height:40px;flex:0 0 36px;object-fit:contain}
.beta-movements .pinfo>b{font-size:13px;line-height:1.4;font-style:italic}
.beta-movements .pinfo .cd{font-size:12px;font-style:italic;margin-top:5px}
.beta-movements .procgo{font-size:28px;min-width:32px}
.newsrow{border:0;border-radius:0;background:none;box-shadow:none;padding:12px 4px 16px;min-height:72px;background-image:url(img/ui/separator_spear.png);background-position:center bottom;background-size:100% 7px;background-repeat:no-repeat}
.newsrow>img{width:42px;height:46px;object-fit:contain}
.newsrow .newsbody p{font-size:13px;line-height:1.45;margin:0;font-style:normal}
.newsrow .newsbody>span{display:block;text-align:left;font-size:11px;margin-top:4px;font-style:normal}
.incomingalerts .waricon img{width:28px;height:28px;animation:beta-war-pulse 1.4s ease-in-out infinite}
.incomingalerts .waricon.reinforce img{animation:none}
.incomingalerts .waricon b{font-size:9px;padding:1px 4px}
@keyframes beta-war-pulse{50%{transform:scale(1.12)}}
.wcity .map-activity{position:absolute;top:4px;right:4px;display:flex;gap:3px;z-index:4;pointer-events:none;background:#fff8;border-radius:5px;padding:2px}
.wcity .map-activity img{width:35px;height:35px;object-fit:contain;filter:drop-shadow(0 1px 1px #0009)}
.market-polished .mtabs.sub{gap:8px;margin:4px 0 10px}
.market-polished .mtabs.sub>a{min-height:39px;font-size:13px;gap:7px;border-radius:7px}
.market-polished .mtabs.sub img{height:23px;width:23px}
.market-polished .mtable{border-collapse:collapse;border-spacing:0;font-size:12px}
.market-polished .mtable td,.market-polished .mtable td.sname{border:0!important;border-bottom:1px solid #d8d3c7!important;border-radius:0!important;background:none!important;padding:8px 4px!important;font-size:12px!important;box-shadow:none}
.market-polished .mtable th:nth-child(3){width:17%}.market-polished .mtable th:nth-child(4){width:23%}
.market-polished .mtable .obtn{background:none;border:0;box-shadow:none;filter:none;color:#409244;text-shadow:0 1px #fff;font-size:27px;padding:0;min-height:34px;line-height:1}
.market-polished .mtable .obtn:disabled{color:#aaa;opacity:.6}
.market-polished .ordform{padding:12px;border-radius:6px;gap:9px;background:#f8f6ef80;box-shadow:none}
.market-polished .ordform label{font-size:12px}
.market-polished .ordform input,.market-polished .ordform select{min-height:39px;padding:8px;font-size:16px}
.market-polished .ordform>.obtn{min-height:42px;margin:0}
.alcard,.avcard,.avabout{border:1px solid #b9b6a8;border-radius:4px;background:#efeee650;box-shadow:none;padding:10px}
.alname{font-size:16px}.altop{gap:5px}.altv{border:1px solid #c8c5ba;border-radius:3px;background:#e8e6de88;padding:7px;box-shadow:none;font-size:11px}.altv b{font-size:14px}
.alnav2{border:0;background:none;border-radius:0;margin:10px 0}
.alnav2 .alrow{min-height:45px;padding:9px 3px;border:0;border-bottom:1px solid #c9c6bb;border-radius:0;background:none;gap:10px;font-size:12px}
.alnav2 .alrow>img{width:27px;height:27px;object-fit:contain}.alnav2 .alrow>b{font-size:32px;line-height:1;color:#d9a127;text-shadow:1px 1px #fff;width:24px}
.aldesc{text-align:center;font-size:12px;white-space:pre-wrap}
.avroads{border:1px solid #b9b6a8;border-radius:4px;padding:10px;background:#efeee630}.avroad{margin:8px 0}.avrname{font-size:12px}.avrcities{font-size:11px;line-height:1.6}.avc:not(.own){font-style:italic}
.wreport .cdblock{border:0;border-radius:0;background:none;margin-bottom:12px;box-shadow:none}
.wreport .cdname{padding:7px 5px 15px;font-size:12px;background-size:100% 7px}
.wreport .has-units .cdname>b{display:inline}
.wreport .cdrow{grid-template-columns:43px minmax(0,1fr);gap:2px 10px;padding:7px 10px;min-height:57px;border:0}
.wreport .cdrow>img{width:42px;height:48px}.wreport .cdn{font-size:12px}.wreport .cdq{font-size:11px;color:#85847c;font-weight:600}
.wreport .cdh{background:#deddd570;border:1px solid #bab9b0;border-radius:4px;text-align:center;font-size:14px;padding:6px;margin:12px 0 4px}
.records-trade{min-height:65px;padding:9px 10px;gap:9px;border-radius:3px;background:#eae9e050;box-shadow:none}
.records-trade .records-resource{width:30px;min-width:30px}.records-trade .records-resource>img:first-child{width:28px;height:28px}.records-trade>div>b{font-size:12px}.records-trade>div>p{font-size:11px;margin:3px 0;color:#a34328}.records-trade>small{font-size:10px}
@media(max-width:380px){.beta-movements .pinfo>b{font-size:12px}.beta-movements .procrow>img{width:32px;height:36px;flex-basis:32px}.newsrow .newsbody p{font-size:12px}}
.beta-forum-chat{display:flex;flex-direction:column;min-height:calc(100dvh - 130px)}
.beta-forum-chat .postrow{border:0;background:none;padding:4px 0;margin:2px 0;align-items:flex-start}
.beta-forum-chat .postav{display:none}.beta-forum-chat .postmain{flex:0 1 auto;max-width:90%;background:#eeede5bf;border:1px solid #cac6b8;border-radius:3px;padding:6px 8px}
.beta-forum-chat .posth{gap:6px;flex-wrap:wrap}.beta-forum-chat .posth>b{font-size:12px}.beta-forum-chat .posth>span{font-size:9px;color:#8a877d}.beta-forum-chat .postmain>p{font-size:12px;line-height:1.4;margin:3px 0}
.beta-forum-chat .chatform{position:sticky;bottom:0;display:flex;gap:8px;margin-top:auto;padding:9px 0;background:#f8f7f0;border-top:2px ridge #c9c5b9;z-index:3}
.beta-forum-chat .chatform>input:not([type=hidden]){min-width:0;flex:1;font-size:16px}.beta-forum-chat .chatform>button{min-width:75px;font-size:12px;min-height:42px}
.support-conversation{display:flex;flex-direction:column;min-height:calc(100dvh - 130px)}
.support-conversation .support-intro{display:none}.support-chat-head{display:flex;justify-content:space-between;border-bottom:1px solid #bdb7a7;padding:4px 0 12px;font-size:12px;color:#665b89}
.support-chat-log{flex:1;min-height:180px;padding:12px 0}.support-conversation .support-message{margin:10px 0 10px auto;width:fit-content;max-width:86%;padding:8px 10px;border:1px solid #9e93af;border-radius:4px;background:#eeeaf4;box-shadow:none}
.support-conversation .support-message-meta{font-size:10px;gap:9px}.support-conversation .support-message p{font-size:12px;line-height:1.45;margin:5px 0;overflow-wrap:anywhere}
.support-conversation .support-form{margin-top:auto;border-top:2px ridge #c9c5b9;padding-top:8px}
.support-conversation .fbcats{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 6px}.support-conversation .fbcat{padding:5px 7px;min-height:29px;font-size:11px;gap:4px;border-radius:4px;box-shadow:none}.support-conversation .fbcat>img{width:16px;height:16px}.support-conversation .fbdesc{display:none}
.support-conversation .support-fields{padding:0;border:0;background:none;box-shadow:none;display:grid;grid-template-columns:minmax(0,1fr) 80px;gap:6px}
.support-conversation .support-fields>label{font-size:11px;grid-column:1/-1;margin:0}.support-conversation #support-subject{grid-column:1/-1;min-height:34px;font-size:16px;padding:6px}.support-conversation #support-body{grid-column:1;min-height:65px;height:65px;padding:8px;font-size:16px;margin:0}.support-conversation .support-fields>button{grid-column:2;align-self:end;min-width:0;width:80px;min-height:44px;margin:0;font-size:12px}

.beta-movements .procrow:after{height:7px;background:url(img/ui/separator_spear.png) center/100% 7px no-repeat;box-shadow:none}
.beta-movements .ptgt,.beta-movements .actor{text-decoration:underline;text-underline-offset:2px}
.support-conversation .support-message{border:1px solid #9e93af!important;border-radius:4px!important;background:#eeeaf4!important;padding:8px 10px!important}
.support-conversation .support-fields input,.support-conversation .support-fields textarea{font-size:16px!important;padding:8px!important;margin:0!important}

/* Beta reference layouts, 2026-10-14: modest typography, compact feeds. */
.page{font-size:15px}.page .ph{font-size:15px}.beta-menu-header .records-tabs>a{font-size:15px}
.army-overview .mplace{margin:7px 0 10px}.army-overview .mpname{font-size:13px}.army-overview .mprow{font-size:12px;min-height:34px;padding:6px 9px}
.newsrow{min-height:46px;padding:5px 4px 9px;gap:7px;margin:3px 0}.newsrow>img.newsico{width:28px;height:32px}.newsrow .newsbody p{font-size:12px;line-height:1.35}.newsrow .newsbody>span{font-size:10px;margin-top:2px}
.beta-movements .trade-movement{min-height:65px;padding:9px 0 11px}.beta-movements .trade-movement .pinfo>b{font-style:normal;font-size:12px;line-height:1.35}.beta-movements .trade-movement .pinfo{gap:3px}.beta-movements .trade-movement .pinfo>.cd{margin-top:3px}
.beta-alliance .alnav2{margin:8px 0 0}.beta-alliance .alnav2 .alrow{border:0!important;border-radius:0!important;min-height:70px;padding:10px 18px 10px 12px;gap:18px;font-size:15px;color:#45453e;background:none}
.beta-alliance .alnav2 .alrow>img{width:40px;height:44px;object-fit:contain}.beta-alliance .alnav2 .alrow>.alrow-arrow{width:36px;height:42px;margin-left:auto;flex:0 0 36px}
.beta-alliance .alliance-about{border-top:2px ridge #d0cec5;border-bottom:2px ridge #d0cec5;padding:18px 16px 22px}.beta-alliance .alliance-about .ph{margin:8px 0;font-size:15px;color:#45453e}.beta-alliance .aldesc{text-align:center;padding:20px 8px;min-height:90px;border:0;border-radius:0;background:none;box-shadow:none;white-space:pre-wrap;font-size:13px;color:#45453e}
.alliance-actions{display:flex;gap:16px;align-items:center;padding:12px 8px}.alliance-actions>form,.alliance-actions>a{flex:1;min-width:0;margin:0}.alliance-actions .obtn{width:100%;min-width:0;font-size:13px;margin:0}
.beta-thread .thread-participants{display:flex;justify-content:space-between;gap:12px;padding:9px 7px 22px;background:url(img/ui/separator_spear.png) center bottom/100% 7px no-repeat;color:#7459a3;font-size:15px}.thread-participants>span:last-child{color:#151080}
.beta-thread .chat{gap:5px;padding:12px 6px}.beta-thread .bubrow{margin:0}.beta-thread .bub{max-width:82%;padding:7px 8px;border:1px solid #566680;border-radius:4px;box-shadow:none;color:#54544f;background:#eeefff}.beta-thread .bub.them{background:#fbeeff;border-color:#9e6c9c;color:#54544f}.beta-thread .bub p{font:600 14px/1.3 Arial,sans-serif;padding-right:19px}.beta-thread .bub>span{font:600 11px/1.2 Arial,sans-serif;color:#8f908b;opacity:1;margin-top:4px}
.beta-thread .message-actions{position:relative;float:right;margin-left:5px;width:16px}.beta-thread .message-actions>summary{list-style:none;width:16px;height:18px;cursor:pointer}.beta-thread .message-actions>summary::-webkit-details-marker{display:none}.beta-thread .message-actions>summary:after{content:"";display:block;width:10px;height:10px;border-right:3px solid #a7aaa5;border-bottom:3px solid #a7aaa5;transform:rotate(45deg);margin-top:1px}.beta-thread .message-actions>:is(form,.message-action-menu){position:absolute;right:0;top:22px;z-index:4;background:#fff;padding:5px;border:1px solid #aaa;box-shadow:0 2px 5px #0003}.beta-thread .message-actions button{font:13px Arial;padding:5px 14px;cursor:pointer}
.beta-thread .chatform{border-top:3px ridge #c6c5bd;background:#eeede8;padding:7px 8px max(8px,env(safe-area-inset-bottom,0px));gap:12px;align-items:stretch}.beta-thread .chatform input:not([type=hidden]){border:1px solid #bdbfb8;border-radius:0;box-shadow:inset 0 1px 3px #0002;font-size:16px;min-height:48px;padding:8px;background:#fff}.thread-send{border:3px ridge #95ad36;border-radius:3px;background:linear-gradient(#9ddd00 0%,#8fce00 78%,#6a9700 80%);color:#fff;font:700 13px Arial,sans-serif;min-width:84px;min-height:45px;cursor:pointer;align-self:center;padding:10px 12px;box-shadow:0 1px 2px #0003}
@media(max-width:380px){.beta-alliance .alnav2 .alrow{padding-left:8px;padding-right:10px;gap:14px;font-size:14px}.beta-alliance .alnav2 .alrow>.alrow-arrow{width:32px;flex-basis:32px}.beta-thread .thread-participants{font-size:14px}.beta-thread .bub p{font-size:13px}}

/* Compact army selection: retain numeric-input font size and usable slider handles. */
.page .warpick .wprow{padding:6px 2px;gap:8px}.page .warpick .wpimg{width:44px;height:48px}.page .warpick .wptop{margin-bottom:2px;gap:6px}
.page .warpick .wpleft{width:58px;padding:3px 2px;font-size:12px}.page .warpick .wpright{width:58px;min-width:0;min-height:36px;height:36px;margin:0;padding:4px 2px;font-size:16px}.page .warpick .wpname{font-size:13px}
.page .warpick .wpbar{height:32px;min-height:32px;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}.page .warpick .wpbar::-webkit-slider-runnable-track{height:16px}.page .warpick .wpbar::-moz-range-track{height:16px}.page .warpick .wpbar::-webkit-slider-thumb{height:24px;width:22px;margin-top:-6px}.page .warpick .wpbar::-moz-range-thumb{height:24px;width:22px}

/* Final mobile conversation fit: let the flex page account for the beta banner. */
.page.thread.beta-thread{min-height:0;flex:1}.beta-thread .bub{padding:7px 28px 7px 8px}.beta-thread .bub.me{background:#eeefff;color:#54544f}.beta-thread .bub p{padding-right:0}.beta-thread .bub>span{margin-right:-20px}.beta-thread .message-actions{position:absolute;right:8px;top:7px;float:none;display:block;margin:0}

/* Beta: reference alliance summary and readable per-message actions. */
.beta-alliance-summary{display:flex;align-items:center;gap:14px;border:1px solid #b9b6a8;border-radius:3px;background:#deded950;padding:8px;margin-bottom:10px;color:#50504a}.alliance-summary-flag{width:64px;height:64px;object-fit:contain;flex:none}.alliance-summary-grid{display:grid;grid-template-columns:max-content minmax(0,1fr) minmax(54px,.7fr);gap:4px;align-items:stretch;flex:1;min-width:0}.alliance-summary-label{font-size:11px;white-space:nowrap;display:flex;align-items:center;justify-content:flex-end;padding-right:2px}.alliance-summary-points,.alliance-summary-rank,.alliance-summary-members{border:1px solid #bdbdb6;border-radius:3px;background:#d0d0ca70;min-height:34px;display:flex;align-items:center;justify-content:center;font-size:13px;color:#50504a}.alliance-summary-rank{gap:7px}.alliance-summary-rank b{color:#a52019}.alliance-summary-rank img{width:28px;height:28px;object-fit:contain}.alliance-summary-members{grid-column:2/4;position:relative;padding:0 32px;text-decoration:none}.alliance-summary-members img{position:absolute;right:7px;width:22px;height:25px;object-fit:contain}.beta-thread .message-actions>:is(form,.message-action-menu){width:88px;min-width:88px;box-sizing:border-box;padding:3px;border:1px solid #bdb7a7;border-radius:5px;background:#fffdf7;box-shadow:0 3px 9px #0003;z-index:20;white-space:nowrap}.beta-thread .message-actions button{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:36px;padding:7px 12px;border:0;border-radius:3px;background:transparent;color:#9d3025;font:600 13px Arial;white-space:nowrap;word-break:normal;overflow-wrap:normal;cursor:pointer}.beta-thread .message-actions button:hover,.beta-thread .message-actions button:focus-visible{background:#f4e4dc}.beta-thread .bub.them .message-actions>:is(form,.message-action-menu){left:0;right:auto}.beta-thread .bub:has(.message-actions[open]){z-index:25}

/* Beta reference lists: compact trade cards, dedicated members screen, visible forum composer. */
.records-page .records-trade{grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto;align-content:start;align-items:start;gap:2px 8px;min-height:54px;margin:6px 0 16px;padding:6px 7px;border-radius:4px;background:#d4d4cd38}
.records-page .records-trade .records-resource{grid-row:1/3;align-self:start;width:30px;min-width:30px;height:34px}.records-page .records-trade .records-resource>img:first-child{width:30px;height:30px}.records-page .records-trade .records-resource>img.records-sign{width:15px;height:15px;right:-1px;bottom:0}.records-page .records-trade>div{min-width:0;grid-column:2;grid-row:1}.records-page .records-trade>div>b{padding:0;font-size:12px;line-height:1.25}.records-page .records-trade>div>p{font-size:11px;line-height:1.3;margin:2px 0 0}.records-page .records-trade>small{grid-column:2;grid-row:2;font-size:10px;line-height:1.2;text-align:right}
.page.beta-members-page{padding:6px 12px 12px}.beta-members-page .mlist{margin-top:0;gap:4px}.beta-members-page .mrow{min-height:40px;padding:4px 7px;gap:5px;border:1px solid #bfbfb7;border-radius:4px;background:#d6d6d14d}.beta-members-page .mrow.member-rl{border-color:#d5bc65;background:#f7eecb60}.beta-members-page .mrow.member-ra{border-color:#cfae86;background:#eed4ba40}.beta-members-page .mrow .minfo b{font-size:13px;line-height:1.15;color:#5a5a54}.beta-members-page .mrow .mrol{font-size:10px;font-weight:400;line-height:1.15;color:#88877c}.beta-members-page .mrow .mrol img{width:12px;height:12px}.beta-members-page .mrow .mpts{border:1px solid #c4bfb0;border-radius:5px;background:#d4d3ce30;padding:5px 7px;font-size:13px;min-width:76px;color:#99452c}.beta-members-page .mrow .mrank,.beta-members-page .mrow .mrank img{width:32px;height:32px}.beta-members-page .mrow .mrank i{font-size:12px;color:#27241d}
.beta-challenge-page .challenge-threshold{font-size:11px;line-height:1.35;margin:0 0 7px}.beta-challenge-page .challenge-summary{padding:8px;margin:0 0 10px}.beta-challenge-page .challenge-summary .ptext,.beta-challenge-page .challenge-summary .pmini{font-size:11px;line-height:1.35;margin:3px 0}
.page.beta-forum-chat{min-height:0;flex:1;padding-bottom:84px}.beta-forum-chat .chatform{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:calc(var(--w) - 24px);max-width:calc(100% - 24px);margin:0;padding:8px 4px max(8px,env(safe-area-inset-bottom,0px));background:#eeede6;align-items:center;z-index:30}.beta-forum-chat .chatform>input:not([type=hidden]){width:0;min-width:0;flex:1;min-height:44px;border:1px solid #b7b1a2;border-radius:3px;background:white;color:#35332e;padding:10px;font-size:16px}.beta-forum-chat .chatform>button{flex:0 0 78px;min-width:78px;margin:0}

/* Bidirectional management of owned troops and spies. */
.vufoot>.vu-manage{min-width:0;width:100%}.vu-manage>summary{list-style:none;cursor:pointer;box-sizing:border-box;height:auto;min-height:52px;line-height:1.25;padding:15px 12px;overflow-wrap:anywhere}.vu-manage>summary::-webkit-details-marker{display:none}.vu-manage-actions{display:grid;gap:8px;padding:8px;border:1px solid #c8ad65;border-radius:8px;background:#faf7ec}.vu-manage-actions>a{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 10px;border:1px solid #dfd6bf;border-radius:6px;background:#fffdf6;color:#4a3b20;text-decoration:none;box-sizing:border-box}.vu-manage-actions>a>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.vu-direction{font:700 26px/1 Arial,sans-serif;color:#21677b}.vu-manage-actions b{font-size:24px;color:#bc8d25}.vu-manage-actions>a:focus-visible,.vu-manage>summary:focus-visible{outline:3px solid #24758f;outline-offset:2px}

/* Bonus results occupy the original nine chest slots. */
.bonus-page .bonus-message{display:flex;align-items:center;justify-content:center;text-align:center;min-height:3em;margin:0 0 10px}.bonus-page .chestrow.grid9{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}.bonus-page .bonus-revealed .chest{box-sizing:border-box;width:100%;min-width:0;max-width:none;aspect-ratio:1;margin:0;padding:4px;gap:3px;justify-content:center;border:2px solid transparent;border-radius:8px;overflow:hidden}.bonus-page .bonus-revealed .chest img{width:45%;height:45%;min-height:0;object-fit:contain}.bonus-page .bonus-revealed .chamt{font-size:clamp(10px,2.7vw,14px);line-height:1.15;text-align:center;overflow-wrap:anywhere}.bonus-page .bonus-revealed .win{border-color:#b99236;background:#fff0bb;box-shadow:inset 0 0 0 1px #fff9}.bonus-page .bonus-revealed .other{opacity:.7}.bonus-page .bonus-revealed .chest{position:relative;min-height:0}.bonus-won{position:absolute;top:3px;right:3px;max-width:calc(100% - 6px);padding:1px 3px;border-radius:3px;background:#fff7d5;font-size:10px;line-height:1.1;color:#216b32;font-weight:700}

/* Owner-only colony garrison preview, original large layout. */
.compact-map-menu .mmp-colony-contents{border-top:1px solid #c7bc9c;margin-top:3px;padding-top:9px;text-align:left;min-width:0}
.compact-map-menu .mmp-colony-contents h4{margin:0 0 6px;color:#514729;font-size:13px;line-height:1.3;text-align:center}
.compact-map-menu .mmp-colony-list{max-height:180px;max-height:min(180px,30dvh);overflow-y:auto;overscroll-behavior:contain}
.compact-map-menu .mmp-colony-unit{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:7px;min-height:38px;padding:4px 2px;border-bottom:1px solid #d8cfb5;font-size:12px;line-height:1.25}
.compact-map-menu .mmp-colony-unit:last-child{border-bottom:0}
.compact-map-menu .mmp-colony-unit img{width:28px;height:30px;object-fit:contain}
.compact-map-menu .mmp-colony-unit span{overflow-wrap:anywhere;color:#514729}
.compact-map-menu .mmp-colony-unit b{font-variant-numeric:tabular-nums;color:#164b5c;font-size:12px;white-space:nowrap}
.compact-map-menu .mmp-colony-empty{margin:5px 0;font-size:12px;line-height:1.4;text-align:center;color:#71694f}

/* Prevent page-edge bounce without changing layout or normal list scrolling. */
html{overscroll-behavior-y:none}

/* Alliance forum: compact parchment topics and messages, native page scrolling. */
.forum-page .forum-heading{display:flex;align-items:center;gap:8px;margin:4px 0 12px;color:#654b25;font-size:15px;overflow-wrap:anywhere}
.forum-heading>img{width:30px;height:30px;object-fit:contain;flex:none}
.forum-new{margin:0 0 14px}.forum-new>summary{display:flex;width:fit-content;min-height:40px;cursor:pointer;list-style:none}.forum-new>summary::-webkit-details-marker{display:none}
.forum-new .msgform{padding:10px;margin:8px 0 0;border:1px solid #c9b98a;border-radius:5px;background:#f4f0e4b8}
.forum-new input,.forum-new textarea{box-sizing:border-box;width:100%;font-size:16px}
.forum-entry{display:flex;align-items:center;position:relative;margin:7px 0;border:1px solid #c9b98a;border-radius:5px;background:linear-gradient(100deg,#fffef6e8,#eee9d9a6);box-shadow:0 1px 2px #49350c12}
.forum-topic-link{display:flex;align-items:center;gap:9px;flex:1;min-width:0;min-height:62px;padding:8px 10px;color:#4a3518;text-decoration:none}
.forum-topic-icon{width:32px;height:32px;object-fit:contain;flex:none}
.forum-topic-text{display:block;min-width:0;flex:1}.forum-topic-text>b{display:block;font-size:14px;line-height:1.3;overflow-wrap:anywhere}.forum-topic-text>small{display:block;margin-top:4px;color:#897452;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.forum-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:24px;padding:2px 5px;border:1px solid #cfbf95;border-radius:4px;background:#eee7d3;color:#64502a;font-size:11px;flex:none}
.forum-chevron{font-size:23px;color:#b39750;flex:none}
.forum-actions{position:relative;flex:none;align-self:flex-start}.forum-entry>.forum-actions{align-self:center;margin-right:3px}
.forum-actions>summary{display:flex;align-items:center;justify-content:center;width:32px;height:32px;list-style:none;cursor:pointer;color:#9b885e;font-size:22px;line-height:1;border-radius:3px}.forum-actions>summary::-webkit-details-marker{display:none}
.forum-actions[open]{z-index:5}.forum-actions[open]>summary,.forum-actions>summary:hover{background:#d8c9a866;color:#60431d}
.forum-actions>form{position:absolute;right:0;top:100%;z-index:6;min-width:88px;padding:4px;background:#fff9e8;border:1px solid #bba573;border-radius:4px;box-shadow:0 3px 8px #42300e33}
.forum-actions button{display:block;min-height:36px;width:100%;border:0;background:none;color:#9a3a28;font:inherit;font-size:12px;font-weight:bold;cursor:pointer}
.forum-thread .forum-messages{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:3px 0 12px;min-width:0}
.forum-message{position:relative;box-sizing:border-box;max-width:94%;min-width:96px;padding:5px 8px 6px;border:1px solid #d2cbb5;border-radius:4px;background:#fffef4d9;box-shadow:0 1px 2px #59431b12}
.forum-message-head{display:flex;align-items:center;gap:6px;min-height:19px}.forum-author{display:inline-flex;align-items:center;gap:4px;color:#3d758c;font-size:12px;line-height:1.3;min-width:0;overflow-wrap:anywhere}.forum-author>bdi{min-width:0}.forum-author-leader{color:#bc607c}.forum-author-deputy{color:#64814d}
.forum-rank{width:18px;height:17px;object-fit:contain;flex:none}
.forum-message .forum-actions{margin:-5px -7px -4px auto}.forum-message .forum-actions>summary{width:28px;height:27px;font-size:20px}
.forum-message-body{font-size:12px;line-height:1.45;color:#655b47;overflow-wrap:anywhere}.forum-message-body>time{display:inline-block;margin-left:5px;color:#9b917c;font-size:10px;white-space:nowrap}
.forum-thread .chatform{box-sizing:border-box;border-top:1px solid #c2b591;gap:6px;box-shadow:0 -2px 6px #5b472017}
.forum-thread .chatform textarea{box-sizing:border-box;display:block;flex:1;min-width:0;width:0;min-height:44px;max-height:120px;resize:vertical;margin:0;padding:10px 9px;border:1px solid #bba574;border-radius:3px;background:#fffdf4;color:#493a24;font:inherit;font-size:16px;line-height:22px}
.forum-thread .chatform textarea:focus{outline:2px solid #d0a54e;outline-offset:-1px}
.forum-thread .chatform button{min-height:44px;font-size:12px}
@media(max-width:360px){.forum-topic-link{gap:6px;padding:7px}.forum-topic-icon{width:27px;height:27px}.forum-topic-text>b{font-size:13px}.forum-message{max-width:96%}.forum-thread .chatform button{flex-basis:68px}}

/* Alliance footer and forum composer use the existing private-message controls. */
.page.beta-alliance{display:flex;flex-direction:column;flex:1;min-height:0}
.beta-alliance>.alliance-actions{margin-top:auto;padding-top:28px;padding-bottom:max(18px,env(safe-area-inset-bottom,0px))}
.forum-thread .chatform{border-top:3px ridge #c6c5bd;background:#eeede8;padding:7px 8px max(8px,env(safe-area-inset-bottom,0px));gap:12px;align-items:stretch;box-shadow:none}
.forum-thread .chatform input:not([type=hidden]){border:1px solid #bdbfb8;border-radius:0;box-shadow:inset 0 1px 3px #0002;font-size:16px;min-height:48px;padding:8px;background:#fff;flex:1;width:0;min-width:0}
.forum-thread .chatform .thread-send{flex:0 0 auto;min-width:84px;min-height:45px;font:700 13px Arial,sans-serif}

/* Spread alliance navigation through spare height without locking short screens. */
.beta-alliance>.alnav2{flex:1;display:flex;flex-direction:column;justify-content:space-evenly;padding:8px 0}
.beta-alliance>.alliance-actions{padding-top:16px}
.forum-page{padding-top:8px}.forum-page .forum-new{margin-top:0;margin-bottom:10px}
.forum-topic-delete{flex:none;margin:0 5px 0 0}
.forum-topic-delete button{display:flex;align-items:center;justify-content:center;width:44px;min-height:44px;border:0;border-radius:4px;background:transparent;color:#bc3025;font:700 28px/1 Arial,sans-serif;cursor:pointer}
.forum-topic-delete button:hover,.forum-topic-delete button:focus-visible{background:#ecd8cc;outline:2px solid #b8874c;outline-offset:-2px}

/* Compact forum controls, using the game's existing button artwork. */
.forum-page .forum-new>summary.obtn{display:flex;box-sizing:border-box;width:160px;max-width:100%;min-height:42px;margin:2px 0 14px auto;padding:9px 16px;font-size:14px;line-height:1.25}
.forum-page .forum-new>summary.obtn:focus-visible{outline:2px solid #b88628;outline-offset:2px}
.forum-message .forum-actions>form{box-sizing:border-box;min-width:60px;width:max-content;padding:2px;border-radius:4px;box-shadow:0 2px 5px #42300e26}
.forum-message .forum-actions button{box-sizing:border-box;min-height:30px;width:auto;min-width:54px;padding:4px 10px;font-size:12px;line-height:1.2;border-radius:2px}
.forum-message .forum-actions button:hover,.forum-message .forum-actions button:focus-visible{background:#efdfc3;outline:1px solid #bba573}

/* A parchment toolbar anchors the forum list and its compact create action. */
.forum-toolbar{position:relative;box-sizing:border-box;min-height:66px;margin:4px 0 14px;padding:10px 12px;border:1px solid #c5ac70;border-radius:5px;background:linear-gradient(100deg,#ead7a9b3,#fffbedcc 60%,#e9dbb980);box-shadow:inset 0 1px 0 #fff9e7,0 2px 3px #6b4c1912}
.forum-tools-title{position:absolute;left:12px;top:13px;display:flex;align-items:center;gap:7px;max-width:calc(100% - 178px);min-height:36px;color:#705024;font-size:15px;line-height:1.2}
.forum-tools-title .forum-topic-icon{width:30px;height:36px;flex:none}
.forum-page .forum-toolbar .forum-new{margin:0}
.forum-page .forum-toolbar .forum-new>summary.obtn{width:148px;margin:0 0 0 auto;min-height:44px;padding:9px 12px}
.forum-toolbar .forum-new .msgform{margin-top:12px;text-align:left}
@media(max-width:360px){.forum-tools-title{font-size:13px;gap:4px;left:8px;max-width:calc(100% - 157px)}.forum-tools-title .forum-topic-icon{width:25px}.forum-toolbar{padding:10px 8px}.forum-page .forum-toolbar .forum-new>summary.obtn{width:138px;font-size:13px}}

/* 2026-10-18: readable market confirmation and newest-first private messages. */
.page .mtable td.market-buy-cell{width:52px;min-width:52px;padding:5px 3px}
.page .mtable .buyf .market-buy-confirm{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:44px;min-width:44px;max-width:none;height:44px;min-height:44px;padding:0;margin:0;font:700 30px/1 Arial,sans-serif;color:#fff;background:linear-gradient(#428b35,#245d22);border:2px ridge #b8a36b;border-radius:5px;text-shadow:0 1px 1px #143c14;box-shadow:0 1px 3px #0003;cursor:pointer}
.page .mtable .buyf .market-buy-confirm:disabled{opacity:.45;cursor:default}
.page .mtable .buyf .market-buy-confirm:focus-visible{outline:3px solid #d4a537;outline-offset:2px}
.page.thread.beta-thread:has(.thread-compose-bottom){padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
.page.thread.beta-thread .chatform.thread-compose-bottom{position:fixed;left:50%;transform:translateX(-50%);top:auto;bottom:0;z-index:30;box-sizing:border-box;width:calc(var(--w) - 24px);max-width:calc(100% - 24px);flex:none;margin:0;padding:8px 8px max(8px,env(safe-area-inset-bottom,0px));border-top:3px ridge #c6c5bd;border-bottom:0;background:#eeede8;box-shadow:0 -2px 5px #0002}
.page.thread.beta-thread .thread-history{flex:none;align-self:center;margin:12px 0}

/* Keep message navigation sticky while the document scrolls. */
body:has(>.page.thread),body:has(>.beta-inbox-header),body:has(.inbox-toolbar){overflow-x:clip;overflow-y:visible}


/* Movement summaries: readable upright text, actor highlighted, destination understated. */
.beta-movements .pinfo>b{font-style:normal;color:#3a3a32;line-height:1.4}
.beta-movements .ptgt{color:inherit;text-decoration:none}
.beta-movements .actor{color:#175c9b;text-decoration:none}
.beta-movements .pinfo .cd{font-style:normal;font-weight:400;color:#77776e}
.beta-movements .actor:hover,.beta-movements .ptgt:hover{text-decoration:underline}
@supports(height:100dvh){
 @media(max-width:600px){
  html.wk-home-screen,html.wk-home-screen body{height:var(--city-visible-height,100dvh)}
 }
}


/* Translucent minimap surface; roads and markers remain fully legible. */
.mapwrap .mmcorner{background:rgba(30,39,22,.5);border-color:rgba(55,69,30,.75);border-radius:8px;box-shadow:0 1px 4px #0004;opacity:1}
.mapwrap .mmcorner .mmhead{background:transparent}
.mapwrap .mmcorner svg{background:transparent}
.mapwrap .mmcorner svg>rect:first-child{fill:transparent}


/* Compact movement wording, matching the simple linked-name list. */
.beta-movements .pinfo>b{font-size:12px;font-style:normal;line-height:1.35;color:#45453e}
.beta-movements .pinfo .actor{color:#174b9a;text-decoration:underline}
.beta-movements .pinfo .ptgt{color:inherit;text-decoration:none}

/* Member controls expand from the member row without leaving the roster. */
.beta-members-page .member-tools{margin:0;min-width:0}
.beta-members-page .member-tools>summary{list-style:none;cursor:pointer;margin:0;width:100%;box-sizing:border-box}
.beta-members-page .member-tools>summary::-webkit-details-marker{display:none}
.beta-members-page .member-tools>summary:focus-visible{outline:2px solid #b58928;outline-offset:2px}
.beta-members-page .member-tools[open]>summary{border-radius:4px 4px 0 0;border-color:#baa15f}
.beta-members-page .member-menu-arrow{font-size:12px;color:#9a7429;flex:none}
.beta-members-page .member-tools[open] .member-menu-arrow{transform:rotate(180deg)}
.beta-members-page .member-actions{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:stretch;gap:0;border:1px solid #baa15f;border-top:0;border-radius:0 0 4px 4px;background:#fbf7e9;padding:3px 4px}
.beta-members-page .member-actions form{display:flex;min-width:0;margin:0;padding:0}
.beta-members-page .member-actions>*+*{border-left:1px solid #dfd5ba}
.beta-members-page .member-action{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;width:100%;min-height:44px;padding:8px 4px;border:0;border-radius:0;background:transparent;box-shadow:none;font:600 13px/18px Arial,sans-serif;text-align:center;overflow-wrap:anywhere;color:#365c7e;text-decoration:none;cursor:pointer}
.beta-members-page .member-dismiss{color:#a13228}
.beta-members-page .member-action:hover{background:#efe5c8}
.beta-members-page .member-action:focus-visible{outline:2px solid #b58928;outline-offset:-2px}

/* Private messages: a viewport-sized flex layout avoids floating keyboard overlays. */
html:has(body>.page.thread.beta-thread){height:100%;overflow:hidden}
body:has(>.page.thread.beta-thread){position:relative;top:var(--thread-view-top,0px);height:var(--thread-view-height,100dvh);min-height:0;overflow:hidden}
body:has(>.page.thread.beta-thread)>.hdr{position:relative;top:0;flex-shrink:0}
body:has(>.page.thread.beta-thread)>:not(.page){flex-shrink:0}
.page.thread.beta-thread,.page.thread.beta-thread:has(.thread-compose-bottom){flex:1 1 0;min-height:0;overflow:hidden;padding-bottom:0}
.page.thread.beta-thread>.thread-participants,.page.thread.beta-thread>.thread-history{flex-shrink:0}
.page.thread.beta-thread>.chat{flex:1 1 0;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding-bottom:12px;scroll-padding-bottom:12px}
.page.thread.beta-thread>.chat>.bubrow{flex-shrink:0}
.page.thread.beta-thread .chatform.thread-compose-bottom{position:static;inset:auto;transform:none;flex:0 0 auto;width:100%;max-width:none;margin:0;z-index:30}

/* World-ending challenge: prominent framed control on the city screen. */
.beta-challenge-globe{position:absolute;right:12px;top:140px;z-index:38;box-sizing:border-box;width:76px;height:76px;padding:4px;border:3px ridge #d5dce0;border-radius:12px;background:linear-gradient(135deg,#fff6d8,#b3bac0 48%,#f7edcf);box-shadow:0 3px 6px #0008,inset 0 0 0 2px #716344;cursor:pointer;display:block;text-decoration:none;filter:none}
.beta-challenge-globe img{display:block;width:100%;height:100%;object-fit:contain}
.beta-challenge-globe em{position:absolute;right:-5px;top:-7px;background:#b21d18;color:#fff;border:2px solid #f7e4aa;border-radius:50%;font:bold 13px/22px Arial,sans-serif;min-width:22px;text-align:center}
.beta-challenge-globe .world-end-label{position:absolute;top:calc(100% + 5px);left:50%;transform:translateX(-50%);white-space:nowrap;padding:3px 6px;border-radius:4px;background:#332615dd;color:#fff4cc;font:700 12px/1.2 Arial,sans-serif;text-shadow:0 1px #000}
.beta-challenge-globe:focus-visible{outline:3px solid #176f9b;outline-offset:3px}

/* VPS preview: fit the complete city and its percentage-based hotspots together. */
@media(min-width:601px){
 .city{height:var(--city-visible-height,var(--screen-h));min-height:0;background:url('img/bg/ground.jpg') center/100% auto}
 .city .scene{height:100%;overflow:hidden;display:flex;align-items:center}
}

/* Native iOS authentication: fit the viewport, retain inner form scrolling for the keyboard. */
html.wk-native-ios:has(body > .intro){height:100%;overflow:hidden}
html.wk-native-ios body:has(> .intro){height:100vh;height:100dvh;min-height:0;padding:0;overflow:hidden}
html.wk-native-ios body > .intro{height:100%;min-height:0;max-height:100%;flex:1 1 auto;overflow:hidden}
html.wk-native-ios .intro .introwrap{max-height:100%;overflow-y:auto;overscroll-behavior:contain;padding-bottom:max(20px,env(safe-area-inset-bottom,0px));box-sizing:border-box}
html.wk-native-ios .intro .auth-language,html.wk-native-ios .intro .auth-community{top:max(8px,env(safe-area-inset-top,0px))}

/* World 2 selected beta UI */
.message-actions{display:flex;gap:8px;flex-wrap:wrap}.message-actions>a{flex:1;min-width:120px}
.beta-menu-header .inbox-badge{position:static;min-width:18px;padding:1px 5px;font-size:11px;border-radius:12px;background:#b53e2c;color:#fff}
.beta-inbox-header .hdr{padding-right:65px}
.beta-inbox-header .hdr>.hbtn:last-child{position:absolute;right:16px;top:6px}
.beta-support-info{position:absolute;right:87px;top:19px;width:33px;height:33px;display:grid;place-items:center;border:3px ridge #e5b044;border-radius:5px;background:#f4eddb;box-shadow:0 2px 3px #0006}
.beta-support-info img{width:26px;height:26px;object-fit:contain}
.beta-inbox-page .inbox-toolbar{margin:5px 0 8px;font-size:11px}
.beta-inbox-page .message-actions{display:flex;justify-content:flex-end;margin:4px 0}
.beta-inbox-page .message-actions>.compact-action{flex:none;width:auto;min-width:0;padding:8px 12px;color:#175970;font-size:12px}
.beta-inbox-page .conversation-entry{margin:0;border-bottom:1px solid #b8b5a77a}
.beta-inbox-page .conv{margin:0;min-height:78px;border:0;border-radius:0;background:none;box-shadow:none;padding:12px 33px 12px 4px;gap:13px}
.beta-inbox-page .convav{width:43px;height:48px;flex:0 0 43px;background:none;border:0}
.beta-inbox-page .convav img{width:43px;height:48px;object-fit:contain}
.beta-inbox-page .convav svg{width:43px;height:48px;filter:drop-shadow(0 2px 1px #79695155)}
.beta-inbox-page .convh{display:block;font-size:16px;color:#34342d}
.beta-inbox-page .convh>b{font-size:17px;color:#34342d}
.beta-inbox-page .convb p{margin-top:5px;font-size:12px;color:#77766d}
.beta-inbox-page .conv-arrow{font-size:0;width:12px;height:12px;flex:0 0 12px;border-top:5px solid #daa126;border-right:5px solid #daa126;transform:rotate(45deg);margin-right:3px;filter:drop-shadow(0 1px 1px #86602455)}
.beta-inbox-page .convbadge{left:38px;right:auto;top:6px;font-size:10px;min-width:16px;height:16px;line-height:16px}
.beta-inbox-page .hold-toggle{width:20px;height:23px;font-size:16px;opacity:.65}
.beta-support-info{background:linear-gradient(#fff4c9,#e8b548)}.beta-support-info svg{width:26px;height:26px}
.market-polished .market-buy-table{font-size:12px;line-height:1.2}
.market-polished .market-buy-table td,.market-polished .market-buy-table td.sname{padding:1px 3px!important;font-size:12px!important;height:34px;box-sizing:border-box;vertical-align:middle}
.market-polished .market-buy-table td.sname a{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}
.market-polished .market-buy-table td:not(:first-child){text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}
.market-polished .market-buy-table .market-amount{font-weight:800}
.market-polished .market-buy-table .market-price{color:#b64b0a;font-weight:800}
.market-polished .market-buy-table .market-distance{font-size:10px!important;color:#627176}
.market-polished .market-buy-table .buyf{margin:0;display:flex;justify-content:center}
.market-polished .market-buy-table .obtn{display:flex;justify-content:center;align-items:center;width:32px;height:32px;min-height:32px;padding:0;margin:0;color:#32b80b;cursor:pointer}
.market-polished .market-buy-table .market-check{display:block;width:10px;height:18px;border:solid currentColor;border-width:0 5px 5px 0;transform:translateY(-3px) rotate(45deg);box-sizing:border-box}
.market-polished .market-buy-table .obtn:disabled{color:#999;cursor:default}
.market-polished .market-buy-table a:focus-visible,.market-polished .market-buy-table button:focus-visible{outline:2px solid #165a70;outline-offset:1px}
.beta-challenge-globe{position:absolute;right:12px;top:140px;z-index:38;width:48px;height:48px;padding:0;border:0;background:transparent;cursor:pointer;filter:drop-shadow(0 2px 2px #0008)}
.beta-challenge-globe img{width:100%;height:100%;object-fit:contain}.beta-challenge-globe em{position:absolute;right:-2px;top:0;background:#b21d18;color:white;border:2px solid #f7e4aa;border-radius:50%;font:bold 12px/20px sans-serif;min-width:20px;text-align:center}
.beta-challenge-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:calc(100% - 34px);max-width:500px;max-height:calc(100dvh - 48px);padding:8px;border:7px ridge #e7ad3e;background:#f5f4ef url('img/ui/bg_page.png') center/100% 100%;color:#494740;box-shadow:0 8px 30px #0008;overflow:hidden}
.beta-challenge-dialog[open]{display:flex;flex-direction:column}.beta-challenge-dialog::backdrop{background:#0009}.beta-challenge-dialog header{display:flex;align-items:center;gap:12px;flex:none;min-height:64px;padding:8px 12px;background:#cedfe9;border:1px solid #fff;box-sizing:border-box}.beta-challenge-dialog h2{margin:0;flex:1;text-align:center;font:bold 21px/1.25 Arial,sans-serif;color:#fff;text-shadow:0 1px 2px #678}.beta-challenge-dialog [data-challenge-close]{flex:none;background:none;border:0;padding:0 4px;font:bold 48px/1 Arial,sans-serif;color:#f0ac22;text-shadow:1px 2px 1px #9c6b1d;cursor:pointer}.beta-challenge-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:6px 20px;scrollbar-width:thin;scrollbar-color:#aaa #eee}.beta-challenge-card{padding:18px 0;border-bottom:1px solid #c9c8c1;font:600 15px/1.35 Arial,sans-serif;overflow-wrap:anywhere}.beta-challenge-card h3{color:#ab1010;font:bold 17px/1.3 Arial,sans-serif;margin:0 0 14px}.beta-challenge-card p{margin:12px 0}.beta-challenge-ring{--remaining:360deg;position:relative;display:grid;place-items:center;width:140px;height:140px;margin:10px auto 14px;border-radius:50%;background:conic-gradient(#b21012 var(--remaining),#d9d9d6 0)}.beta-challenge-ring:before{content:'';position:absolute;inset:4px;border-radius:50%;background:#f5f4ef url('img/ui/bg_page.png') center/350px 500px}.beta-challenge-ring b{position:relative;color:#b71010;font:bold 22px/1 Arial,sans-serif;font-variant-numeric:tabular-nums}.beta-challenge-details{display:block;padding:16px 0;color:#80601c;font-weight:bold}.beta-challenge-empty{padding:24px 0;line-height:1.5}.beta-challenge-globe:focus-visible,.beta-challenge-dialog button:focus-visible{outline:3px solid #176f9b;outline-offset:2px}
@media(max-width:380px){.beta-challenge-scroll{padding:6px 12px}.beta-challenge-dialog h2{font-size:18px}.beta-challenge-card{font-size:14px}.beta-challenge-card h3{font-size:16px}}
.market-resource-tabs img{width:22px;height:22px;object-fit:contain;vertical-align:middle;margin-right:7px}
.beta-inbox-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}

/* World 2 support: compose first, linked account names side by side. */
.support-conversation{min-height:0;flex:1 0 auto}
.support-conversation .support-form{margin-top:0;border-top:0;padding-top:0;margin-bottom:20px}
.support-conversation .support-chat-log{flex:none;min-height:0}
.support-conversation .support-accounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 6px}
.support-conversation .support-accounts label{display:block;min-width:0;font-size:13px;font-weight:700}
.support-conversation .support-accounts input{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:42px;font-size:16px;padding:8px;margin:6px 0 0}
.support-conversation .support-account-hint{font-size:12px;line-height:1.4;margin:6px 0 14px}
.support-conversation .fbcats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.support-conversation .fbcat{min-width:0;min-height:42px;justify-content:center}
.support-conversation .fbcat span{word-break:normal;overflow-wrap:normal}

.support-conversation .fbcats>.fbcat:last-child{grid-column:auto}

/* World 2 support form: compact categories and full-width composition. */
.support-polished .support-form{padding:0;margin:0;box-shadow:none;background:none}
.support-polished .support-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;line-height:1.4;margin:0 0 10px;color:#51462d}
.support-polished .support-section-title small{font-size:10px;font-weight:400;color:#8b8066}
.support-polished .fbcats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0 0 18px}
.support-polished .fbcats>.fbcat{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-height:65px;box-sizing:border-box;padding:7px 2px;border-radius:8px;font-size:11px;line-height:1.2;grid-column:auto}
.support-polished .fbcats>.fbcat>img{width:22px;height:22px;object-fit:contain}
.support-polished .fbcat span{text-align:center;word-break:normal;overflow-wrap:normal}
.support-polished .fbcat:has(input:focus-visible){outline:2px solid #17637a;outline-offset:2px}
.support-polished .support-account-card{padding:12px;border:1px solid #d0bc87;border-radius:10px;background:#f5efdfe0;margin:0 0 18px}
.support-polished .support-accounts{gap:10px;margin:0}
.support-polished .support-accounts label{font-size:12px;color:#6d5b36}
.support-polished .support-accounts input{border:1px solid #cbbb93;border-radius:7px;background:#fffdf8;color:#423a2c;min-height:42px}
.support-polished .support-account-hint{font-size:11px;font-weight:400;color:#887752;margin:9px 0 0}
.support-polished .support-fields{display:flex;flex-direction:column;gap:8px}
.support-polished .support-fields>label{font-size:13px;font-weight:700;color:#51462d}
.support-polished #support-subject,.support-polished #support-body{box-sizing:border-box;width:100%;border:1px solid #cbbb93;border-radius:8px;background:#fffdf8;color:#423a2c;box-shadow:inset 0 1px 3px #4c35100a}
.support-polished #support-subject{min-height:42px;margin-bottom:8px!important}
.support-polished #support-body{height:110px;min-height:110px;resize:vertical}
.support-polished .support-fields>button{width:100%;min-height:50px;align-self:stretch;font-size:16px;margin:8px 0 0}
.support-polished input:focus,.support-polished textarea:focus{outline:2px solid #24718b;outline-offset:1px}
.support-polished .support-chat-head{margin-top:24px;color:#796743;font-size:13px}
@media(max-width:360px){.support-polished .fbcats{gap:4px}.support-polished .fbcats>.fbcat{font-size:10px}.support-polished .support-account-card{padding:10px}.support-polished .support-accounts{gap:6px}}

.distlist .distrow{font-size:14px;padding:5px 0}
.distlist .distrow img{width:25px;height:25px}
.research .resh{flex-wrap:nowrap;align-items:baseline;column-gap:5px}
.page .research .resh b{flex:0 1 auto;min-width:0}
.beta-inbox-page .notifrow{background:transparent;border:0;border-bottom:1px solid #d8cba9;border-radius:0;align-items:center;padding:4px 2px;gap:6px;margin:0}
.beta-inbox-page .notifrow img{width:18px;height:18px}.beta-inbox-page .nbody b{font-size:12px}.beta-inbox-page .nbody .pmini,.beta-inbox-page .nbody span{margin:0;padding:0;font-size:11px;line-height:1.2}.beta-inbox-page .nbody .pmini{display:inline}.beta-inbox-page .nbody span{margin-left:5px}
.research .research-level{flex:none;white-space:nowrap;font-size:10px;font-weight:600}

/* Personal reserve beside ordinary stock; narrow cells can wrap the badge. */
.tophud .resbar.has-pack-reserve .res-values {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1px 3px;
}
.tophud .has-pack-reserve .pack-balance {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 3px;
  border-radius: 3px;
  background: #332918;
  color: #ffdd91;
  font: 700 10px/1.15 Arial, sans-serif;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tophud .has-pack-reserve .pack-balance::before {
  content: "";
  width: 10px;
  height: 10px;
  background: url("img/ui/bonus_chest_closed.png") center/contain no-repeat;
}
.tophud .resbar.has-pack-reserve .ri.pts { flex: 0 1 auto; }

.advantage-info { padding: 6px 2px 2px; font-size: 14px; line-height: 1.35; }
.advantage-info p { margin: 2px 0 0; }
.diapack.advantage-card {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) auto auto;
  grid-template-areas: "art name price action" "art resources resources action";
  gap: 2px 10px;
}
.advantage-name { grid-area: name; min-width: 0; }
.advantage-name h3 { margin: 0; color: #1d7585; font-size: 18px; line-height: 1.15; }
.advantage-name small { font-size: 12px; color: #65583e; }
.advantage-price { grid-area: price; justify-self: start; }
.advantage-action { grid-area: action; justify-self: end; }
.advantage-card .store-buy:disabled { opacity: .55; cursor: default; }
.advantage-art {
  grid-area: art; width: 52px; height: 52px; position: relative; isolation: isolate;
}
.advantage-art::before,.advantage-art::after {
  content: ""; position: absolute; inset: 0; background: url("img/ui/dia_p5.png") center/100% 100% no-repeat;
}
.advantage-art::before { clip-path: polygon(0 0,54% 0,58% 24%,42% 23%,30% 43%,20% 55%,0 55%); }
.advantage-art::after { clip-path: polygon(24% 50%,63% 52%,93% 35%,86% 68%,77% 72%,69% 81%,60% 94%,58% 87%,44% 84%,35% 79%,29% 75%); }
.advantage-card .advantage-art img { position: absolute; object-fit: contain; }
.advantage-art .cargo-wood { left: 50%; top: 17%; width: 39%; height: 36%; transform: rotate(-9deg); }
.advantage-art .cargo-food { left: 35%; top: 7%; width: 39%; height: 43%; transform: rotate(-12deg); }
.advantage-art .cargo-gold { left: 26%; top: 25%; width: 35%; height: 31%; }
.advantage-resources { grid-area: resources; display: flex; flex-wrap: wrap; gap: 3px 12px; padding: 0; margin: 0; list-style: none; }
.advantage-resources .resource-unit { font-style: normal; }
.advantage-resources li { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 13px; font-weight: bold; }
.advantage-card .advantage-resources img { width: 16px; height: 16px; object-fit: contain; }
@media(max-width:420px) {
  .diapack.advantage-card { grid-template-columns: 34px minmax(0,1fr) auto auto; gap: 3px 5px; padding: 8px; }
  .advantage-art { width: 34px; height: 36px; }
  .advantage-name h3 { font-size: 15px; }
  .advantage-card .advantage-price { font-size: 12px; padding: 4px 6px; white-space: nowrap; }
  .advantage-resources { gap: 2px 6px; }
  .advantage-resources .resource-unit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .advantage-resources li { font-size: 11px; gap: 2px; }
  .advantage-card .advantage-resources img { width: 13px; height: 13px; }
}

@media(max-width:360px) {
  .diapack.advantage-card { grid-template-columns: 28px minmax(0,1fr) auto auto; grid-template-areas: "art name price action" "resources resources resources action"; }
  .advantage-art { width: 28px; height: 28px; }
  .advantage-name h3 { font-size: 14px; }
}

.beta-thread .message-actions>.message-action-menu{width:max-content;min-width:92px}
.beta-thread .message-action-menu form{margin:0}
.beta-thread .bub.them:has(.message-actions[open]){min-width:min(155px,75%)}
.beta-thread .bub.them .message-actions>.message-action-menu{right:0;left:auto}

.store-price-countdown{display:flex;justify-content:center;align-items:baseline;flex-wrap:wrap;gap:6px;margin:6px 0 9px;color:#614d2b;font-size:13px}
.store-price-countdown time{font-weight:bold;font-variant-numeric:tabular-nums}
.diapack.diapack-preview{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(max-content,1fr) auto auto;gap:clamp(4px,1.4vw,10px)}
.store-next-price{display:grid;justify-self:start;gap:2px;padding:4px 7px;border-left:2px solid #c59a4e;border-radius:2px 5px 5px 2px;background:linear-gradient(90deg,#f5ead3,#faf4e833);color:#573d1b;line-height:1.12}
.store-next-price small{font-size:11px;color:#795c32;font-weight:normal}
.store-next-price strong{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:440px){.diapack.diapack-preview{padding:7px 8px}.diapack-preview img{width:32px;height:34px}.diapack-preview>b{font-size:16px}.diapack-preview>span{padding:4px 6px;font-size:12px}.diapack-preview .store-buy{padding-inline:2px}.store-next-price strong{font-size:12px}}
