:root{--bg:#101918;--card:#1a2522;--line:#334039;--text:#e5ebde;--muted:#a0b0a2;--lime:#ceef88;--gold:#e2c17a}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 10% 10%,#20302866,transparent 60%),var(--bg);color:var(--text);font:13px Arial,sans-serif}button,a,summary{touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer;min-height:44px}button:disabled{opacity:.38;cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid var(--lime);outline-offset:3px}header{height:77px;border-bottom:1px solid var(--line);padding:0 3.5%;display:flex;align-items:center;justify-content:space-between;background:#101b18}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--text);font-size:21px;letter-spacing:2px;font-weight:800}.brand small{display:block;font-size:8px;letter-spacing:3.5px;font-weight:400;margin-top:5px;color:var(--muted)}.crest{font-size:43px;color:var(--lime)}.headerActions{display:flex;gap:18px;align-items:center}.headerActions button{border:1px solid var(--line);border-radius:4px;background:#202d26;padding:0 13px;font-size:11px}.live{font-size:9px;letter-spacing:1px;color:var(--lime)}main{max-width:1600px;margin:auto;padding:27px 3.5% 18px}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.eyebrow{font-size:8px;letter-spacing:1.7px;color:var(--lime);font-weight:700}h1{font-size:38px;letter-spacing:-1.4px;margin:10px 0 7px}h1 em{font-style:normal;color:var(--lime)}.intro p{font-size:11px;color:var(--muted);margin:6px 0}.waveTitle{text-align:right}.waveTitle>small{font-size:8px;letter-spacing:2px;color:var(--muted)}.waveTitle>b{display:block;font-size:18px;margin:9px 0}.waveTitle b span{font-size:31px}.waveTitle i{font-style:normal;font-size:18px;font-weight:400;color:var(--muted)}#progress{display:flex;gap:4px}#progress i{width:13px;height:4px;background:#3c493c}#progress .done{background:var(--lime)}.resources{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);background:var(--card);border-radius:6px;margin-bottom:20px}.resources>div{display:flex;align-items:center;gap:15px;padding:16px 22px;border-right:1px solid var(--line)}.resources>div:last-child{border:0}.icon{font-size:24px;color:var(--lime)}.gold{color:var(--gold)}.wood{color:#bca17a}.resources small{font-size:7px;color:var(--muted);letter-spacing:1.5px;display:block;margin-bottom:5px}.resources b{font-size:24px}.rate{font-size:8px;color:var(--muted);margin-left:auto}.health{height:4px;width:42px;background:#41503d;margin-left:auto}.health i{height:4px;display:block;background:var(--lime)}.layout{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:20px}.battlefield{min-width:0}.maphead{height:39px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;background:var(--card);border:1px solid var(--line);border-radius:6px 6px 0 0;font-size:8px;letter-spacing:1.1px}#status{color:var(--lime)}.dot{display:inline-block;background:var(--lime);width:5px;height:5px;border-radius:50%;margin-right:5px}.mapwrap{position:relative;height:570px;overflow:hidden;background:#344835}canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}.mapbadge{position:absolute;left:16px;top:16px;background:#14241ce3;border:1px solid #6d805d88;border-radius:3px;padding:10px 12px;pointer-events:none;max-width:76%}.mapbadge span{font-size:8px;letter-spacing:1.6px;color:#dbe6cc}.mapbadge small{display:block;font-size:10px;color:#bdcbb1;margin-top:6px;line-height:1.5}.compass{position:absolute;right:20px;top:16px;font-size:13px;text-align:center;color:#dae1c6;pointer-events:none}.zoom{position:absolute;right:12px;bottom:16px;display:flex;flex-direction:column;gap:5px}.zoom button{background:#17271ee8;border:1px solid #778467;color:var(--lime);width:39px;font-size:20px;border-radius:3px}.selectedCard{position:absolute;left:16px;bottom:16px;background:#13231de8;border-left:2px solid var(--lime);padding:11px 14px;max-width:75%;pointer-events:none}.selectedCard small{display:block;color:#b9c8b0;font-size:9px;margin-top:5px}.mapfoot{display:flex;justify-content:space-between;padding:11px 14px;background:#17231e;border:1px solid var(--line);font-size:7px;letter-spacing:1px;color:#adbaab}.enemyLegend{color:#e99a7a;margin-left:15px}.commandbar{display:flex;gap:7px;background:#17221e;padding:11px;border:1px solid var(--line);border-top:0;border-radius:0 0 6px 6px}.commandbar button{border:1px solid #465440;background:#26352a;padding:7px 13px;border-radius:3px;font-size:10px;flex:1;white-space:nowrap}.commandbar .active{background:#3c5131;border-color:#abc87b;color:#d3eea1}.commandbar kbd{font-size:7px;color:#a4b098;margin-left:8px;padding:2px;border:1px solid #536149;border-radius:2px}.commandbar #speed{flex:0 0 44px}.report{margin-top:20px}.report .eyebrow span{float:right;color:var(--muted);font-size:7px}#log{font-size:10px;color:var(--muted);line-height:1.7;margin-top:10px}#log p{padding-left:10px;border-left:2px solid #354c36;margin:6px 0}#log p:first-child{color:#d6e0cb;border-color:var(--lime)}aside{display:flex;flex-direction:column;gap:14px}.panel{background:var(--card);border:1px solid var(--line);border-radius:6px;padding:16px}.paneltitle{display:flex;align-items:center;justify-content:space-between;gap:5px}h2{font-size:15px;margin:0;letter-spacing:-.3px}.paneltitle small{font-size:6px;letter-spacing:.8px;color:#95a38f}.muted{color:var(--muted);font-size:9px;line-height:1.7;margin:9px 0 13px}.build{display:flex;align-items:center;gap:9px;width:100%;padding:10px 8px;margin:6px 0;background:#243127;border:1px solid #3c493b;border-radius:4px;text-align:left}.build:hover,.build.selected{border-color:var(--lime);background:#33432c}.symbol{background:#3b4d35;color:var(--lime);font-size:22px;width:29px;height:32px;line-height:32px;text-align:center;border-radius:3px}.build b{display:block;font-size:10px}.build small{display:block;color:var(--muted);font-size:8px;margin-top:5px}.cost{font-size:8px;color:var(--gold);margin-left:auto;text-align:right;line-height:1.8}.command{display:flex;justify-content:space-between;text-align:left;width:100%;border:0;border-bottom:1px solid var(--line);padding:14px 0;background:none;gap:7px}.command:last-child{border:0;padding-bottom:2px}.command b{font-size:10px}.command small{display:block;color:var(--muted);font-size:8px;margin-top:7px}.command>span:last-child{color:var(--gold);font-size:8px;line-height:1.8;text-align:right}.night{padding:18px;background:linear-gradient(130deg,#34412a,#1b2c22);border:1px solid #6a7c4f;border-radius:6px}.night h2{font-size:22px;margin:13px 0 9px}.night p{font-size:10px;color:#c1cfb2;line-height:1.7}.raidstats{display:flex;justify-content:space-between;margin:18px 0}.raidstats span{font-size:7px;color:#a4b597;letter-spacing:1px}.raidstats b{display:block;color:#d8e8c0;font-size:17px;letter-spacing:0;margin-top:7px}.primary{display:block;width:100%;background:var(--lime);color:#213519;border:0;border-radius:4px;padding:13px 15px;font-weight:700;text-align:left;font-size:12px}.primary span{float:right}.nightnote{display:block;font-size:8px;color:#a8b998;text-align:center;margin-top:10px}.tips{font-size:7px;letter-spacing:1px;color:var(--lime);padding:2px 6px}.tips p{font-size:10px;color:var(--muted);line-height:1.6;letter-spacing:0}#cancel{background:none;border:0;color:var(--lime);font-size:10px}#banner{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);width:77%;padding:20px;text-align:center;line-height:1.6;background:#14251ff5;border:1px solid var(--lime);border-radius:5px;box-shadow:0 10px 50px #0008;pointer-events:none}.plots{font-size:10px;color:var(--muted);margin-top:10px}.plots button{min-width:50px;margin:3px;border:1px solid #526445;border-radius:3px;background:#2c3c2d;font-size:9px}.plots p{line-height:1.5}footer{display:flex;justify-content:space-between;margin-top:26px;padding-top:17px;border-top:1px solid var(--line);font-size:7px;letter-spacing:1px;color:#8fa18e}dialog{background:#192b23;color:var(--text);border:1px solid #73855b;border-radius:9px;padding:28px;max-width:500px;width:90%;font-size:12px;line-height:1.8;max-height:90dvh;overflow:auto}dialog::backdrop{background:#07150ed9;backdrop-filter:blur(6px)}dialog h2{font-size:26px;margin:10px 0 14px}dialog p,dialog li{color:#c7d4bf}dialog ol{padding-left:18px}dialog li{margin:9px 0}dialog>small,.small{display:block;font-size:10px;color:var(--muted);line-height:1.7;margin-top:15px}.dialogtitle{display:flex;justify-content:space-between;align-items:center}.dialogtitle button{border:0;background:none;font-size:25px}.settingsGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.settingsGrid button,.settingsGrid a,.danger,.plain{padding:12px;border:1px solid #526347;border-radius:4px;background:#2a3d2d;color:#e2eccc;text-align:center;text-decoration:none;font-size:11px}.setting{display:flex;align-items:center;justify-content:space-between;margin:22px 0;font-size:11px}.setting select{background:#293c2c;color:var(--text);border:1px solid #6f805a;padding:10px;border-radius:3px}.danger{width:100%;border-color:#9e775f;color:#f0c2a6}.plain{width:100%;margin-top:10px}
@media(min-width:1550px){.mapwrap{height:650px}}@media(max-width:1050px){.layout{grid-template-columns:minmax(0,1fr) 263px;gap:13px}.resources>div{padding:14px;gap:10px}.rate{display:none}.commandbar{flex-wrap:wrap}.commandbar button{font-size:9px}.commandbar kbd{display:none}.mapwrap{height:550px}}@media(max-width:730px){header{height:65px;padding:0 4%}.brand{font-size:15px;letter-spacing:1px;gap:7px}.brand small{font-size:6px;letter-spacing:2px}.crest{font-size:31px}.headerActions{gap:7px}.headerActions button{font-size:10px;padding:0 9px}.headerActions #menu span,.live{display:none}main{padding:22px 3.5% 15px}.intro{margin-bottom:18px}h1{font-size:27px;letter-spacing:-1px}.eyebrow{font-size:6px;letter-spacing:1px}.intro p{font-size:9px}.waveTitle>small{font-size:6px}.waveTitle>b{font-size:12px}.waveTitle b span{font-size:25px}.waveTitle i{font-size:13px}#progress{gap:3px}#progress i{width:7px}.resources{grid-template-columns:repeat(2,1fr);margin-bottom:15px}.resources>div{padding:12px 16px}.resources>div:nth-child(2){border-right:0}.resources>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.resources b{font-size:22px}.resources small{font-size:6px}.layout{grid-template-columns:1fr}.mapwrap{height:460px}.maphead{font-size:7px;padding:0 11px}.mapbadge{left:10px;top:10px;padding:9px;max-width:79%}.mapbadge span{font-size:6px}.mapbadge small{font-size:8px}.compass{right:13px;top:13px}.selectedCard{left:10px;bottom:13px;max-width:76%;padding:9px}.selectedCard small{font-size:8px}.commandbar{gap:6px;padding:9px}.commandbar button{min-height:44px;padding:6px 9px;font-size:9px;flex:1 1 28%}.commandbar #pause{flex:1 1 50%}.mapfoot>span:last-child{display:none}.report{margin:18px 0 9px}aside{gap:12px}#buildings{display:grid;grid-template-columns:1fr 1fr;gap:7px}.build{margin:0;padding:10px 8px}.build small{font-size:7px}.cost{font-size:7px}.panel{padding:15px}.paneltitle small{font-size:7px}.night h2{font-size:24px}.night p{font-size:11px}.command b{font-size:12px}.command small{font-size:9px}.command>span:last-child{font-size:10px}footer{font-size:6px;gap:20px;line-height:1.7}.settingsGrid{grid-template-columns:1fr}.settingsGrid a{display:flex;align-items:center;justify-content:center}}@media(max-width:360px){h1{font-size:24px}.brand{font-size:13px}.headerActions button{font-size:9px;padding:0 7px}.mapwrap{height:410px}}@media(display-mode:standalone){header{padding-top:env(safe-area-inset-top);height:calc(65px + env(safe-area-inset-top))}body{padding-bottom:env(safe-area-inset-bottom)}}

.landbutton{width:100%;text-align:left;padding:11px;background:#344b30;border:1px solid #92ac68;border-radius:4px;color:#d9edb9;font-size:11px}.landbutton span{float:right;font-size:9px}.landpanel>small{display:block;margin-top:10px}.landGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.landGrid button{background:#30442c;border:1px dashed #8b9d67;border-radius:4px;font-size:10px;min-height:62px}.landGrid button.owned{background:#b6d180;color:#223722;border:1px solid #cdeb99}.landGrid button:disabled{opacity:.45}.landGrid small{display:block;font-size:8px;margin-top:4px}.purchaseNotice{background:#24392b;border:1px solid #71865a;border-radius:5px;padding:14px;font-size:10px;line-height:1.7}.purchaseNotice p{font-size:10px}.queueitem{padding:6px 0;border-top:1px solid #3c4b37}.queueitem span{float:right;color:var(--lime)}

[hidden]{display:none!important}.viewtabs{display:flex;gap:7px;margin-bottom:13px}.viewtabs button{background:#1e3024;border:1px solid #495b40;padding:9px 16px;border-radius:4px;font-size:11px}.viewtabs .active{background:#c6e589;color:#263c21;border-color:#d5efaa}.onlineStatus{font-size:8px;letter-spacing:1px;color:#a4bd86;margin:10px 0 22px}.onlineError{color:#edb08c;font-size:10px;margin-bottom:16px}#onlineNotice{color:#dece9d;font-size:11px;line-height:1.7;margin:8px 0 16px}.cityNote{padding:13px 15px;font-size:10px;line-height:1.7;color:#b8c6aa;border:1px solid #4a5e3d;background:#233528;border-radius:0 0 5px 5px}.capitalStats{display:flex;justify-content:space-between;align-items:center;margin:18px 0;gap:12px}.capitalStats>b{font-size:12px;color:#c8e68e}.capitalStats span{font-size:8px;color:#a7b699}.capitalStats strong{font-size:22px;display:block;color:#e4e9cb;margin-top:6px}.cityBuildGrid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.cityBuildGrid button{background:#2f432d;border:1px solid #586c46;border-radius:3px;padding:10px 7px;font-size:10px}.cityBuildGrid small{font-size:7px;display:block;color:#c5d4b1;margin-top:5px;line-height:1.6}#capitalOrders .panel{margin-bottom:14px}#onlineJob{font-size:10px;color:#d5dfbd;margin-top:12px}#worldPane>.panel{margin-top:16px}.worldhero{padding:28px;background:linear-gradient(130deg,#3a4d30,#172b20);border:1px solid #687e4e;border-radius:6px}.worldhero h2{font-size:34px;margin:15px 0}.worldhero p{color:#becfac;font-size:11px}.worldhero button{max-width:170px}.worldrow{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #3d5039;padding:15px 0;gap:15px}.worldrow b{font-size:12px}.worldrow small{display:block;color:#aaba9b;font-size:9px;margin-top:7px;line-height:1.6}.worldrow button{background:#3a4f30;border:1px solid #758c53;border-radius:4px;padding:9px 14px;font-size:10px}dialog input{display:block;width:100%;padding:13px;border:1px solid #788e5c;background:#223a2a;color:#e5ebd2;border-radius:4px;margin:9px 0 16px}.primary{text-decoration:none}.layout:has(#worldPane:not([hidden])){grid-template-columns:minmax(0,1fr) 292px}@media(max-width:730px){.viewtabs{gap:5px}.viewtabs button{font-size:9px;padding:8px;flex:1}.layout:has(#worldPane:not([hidden])){grid-template-columns:1fr}.worldhero h2{font-size:29px}.worldrow{gap:10px}.worldrow button{padding:7px 9px}.cityBuildGrid small{font-size:9px}.onlineStatus{font-size:7px;margin-bottom:18px}}
.waveTitle>b{white-space:nowrap}.intro>div:first-child{min-width:0;padding-right:12px}@media(max-width:730px){.waveTitle{min-width:105px}.waveTitle>b{font-size:11px}.waveTitle b span{font-size:23px}}
.capitalStats{display:grid;grid-template-columns:1fr;gap:13px}.capitalStats span{display:flex;align-items:center;justify-content:space-between;gap:8px}.capitalStats strong{font-size:21px;margin-top:0}.capitalStats>b{font-size:13px}
#rewardPlayer{display:block;width:100%;padding:11px;margin-top:9px;border:1px solid #738454;background:#2a402b;color:#e7efcf;border-radius:4px}
.adventureInventory{display:flex;align-items:center;gap:20px;background:#1c2c23;border:1px solid #43553d;border-radius:5px;margin:0 0 17px;padding:12px 16px}.adventureInventory>div{font-size:8px;letter-spacing:1px;color:#afc29d}.adventureInventory b{font-size:17px;color:#e4e9c8;margin-left:9px;letter-spacing:0}.adventureInventory button{margin-left:auto;background:#354b2e;color:#def0b4;border:1px solid #829c5c;border-radius:4px;padding:7px 13px;font-size:10px}.heroCard{display:flex;gap:12px;padding:12px 0;border-top:1px solid #42543a}.heroPortrait{flex:0 0 57px;width:57px}.heroPortrait svg{width:100%;display:block}.heroCard>div:last-child{flex:1}.heroCard b{display:block;font-size:11px;color:#e1e9ce}.heroCard small{font-size:9px;color:#b9cba9;display:block;margin-top:5px;line-height:1.6}.heroLevel{display:block;font-size:8px;letter-spacing:.7px;margin:7px 0;color:#d3d690}.heroCard button{background:#374d2f;border:1px solid #8a9c67;border-radius:3px;padding:5px 12px;font-size:9px;min-height:34px}.boostChoice{display:block;font-size:10px;padding:12px;margin:12px 0;background:#2e402b;border:1px solid #657d47;border-radius:4px;line-height:1.7;color:#d2dfba}.boostChoice input{accent-color:#c8e78d;vertical-align:middle;margin-right:7px}.boostChoice small{display:block;font-size:8px;color:#b4c79d;margin-top:5px}.heroSummary{font-size:9px;color:#d1e69e;line-height:1.7;margin:13px 0}.lootGrid{display:flex;flex-wrap:wrap;gap:6px}.lootGrid>div{font-size:10px;color:#eadca6;background:#31412b;padding:7px 9px;border-radius:3px}.nodeList{margin-top:10px}.nodeList button{width:100%;display:flex;gap:8px;align-items:center;text-align:left;padding:10px 8px;border:1px solid #46583c;border-radius:3px;background:#283b29;margin:6px 0}.nodeList button.selected{border-color:#d1ed87;background:#3c5030}.nodeList span{color:#decc8d;font-size:17px}.nodeList b{font-size:9px}.nodeList small{margin-left:auto;font-size:6px;color:#b5c8a3;white-space:nowrap}#mapSidebar{display:flex;flex-direction:column;gap:14px}#heroPanel{margin-bottom:14px}@media(max-width:730px){.viewtabs{display:grid;grid-template-columns:1fr 1fr}.adventureInventory{flex-wrap:wrap;gap:12px;padding:12px}.adventureInventory>div{font-size:7px}.adventureInventory b{font-size:15px}.adventureInventory button{flex:1 1 100%;margin-left:0}.heroPortrait{flex-basis:64px}.heroCard b{font-size:13px}.heroCard small{font-size:10px}.heroCard button{font-size:11px;min-height:40px}.nodeList b{font-size:11px}.nodeList small{font-size:8px}.boostChoice{font-size:11px}.boostChoice small{font-size:9px}}
/* Daylight interface and bright, readable command controls. */
:root{--bg:#ecf0da;--card:#fbf9e9;--line:#becba6;--text:#263e2b;--muted:#5c7153;--lime:#729d35;--gold:#96651c}body{background:linear-gradient(135deg,#f5f4df,#e5edd0);color:var(--text)}header{background:#f9f8e9;border-color:#c6d0af}.brand{color:#25452d}.crest{color:#769c35}.headerActions button{background:#3e663a;color:#fff8d9;border-color:#718e53}.live{color:#517e2f}.heading p,.intro p{color:#60734e}.viewtabs button{background:#e5ebce;color:#3e5a2d;border-color:#a8bb85}.viewtabs .active{background:#87ae47;color:#fffdf0;border-color:#638d2d}h1 em{color:#628e2b}.resources{background:#fcfae9;box-shadow:0 4px 15px #78915712}.resources small,.rate{color:#60754f}.resources .icon{color:#769d35}.resources .gold{color:#ac7b21}.resources .wood{color:#9a783c}.resources b{color:#2c492e}.health{background:#dce6c4}.health i{background:#82ab3d}.adventureInventory{background:#e0ecc6;border-color:#b1c68c}.adventureInventory>div{color:#57703d}.adventureInventory b{color:#2e5228}.adventureInventory button{background:#5f8f36;color:#fffbe2;border-color:#719849}.maphead{background:#dfeaca;color:#3d5b2d;border-color:#b4c795}#status{color:#527c2b}.mapwrap{background:#8bb967}.mapfoot{background:#e5ecd2;color:#577443;border-color:#b5c997}.mapbadge{background:#fbf5dcf2;border-color:#a4bb82}.mapbadge span{color:#3a642e}.mapbadge small{color:#58743e}.compass{color:#244c2c;font-weight:bold}.selectedCard{background:#fff7dfeb;border-color:#6c9435}.selectedCard small{color:#58713e}.selectedCard .eyebrow{color:#477227}.zoom button{background:#fbf8e8f2;color:#46732d;border-color:#9bb97b}.panel{background:#fbf9e9;box-shadow:0 4px 15px #7891570c}.panel h2{color:#2b4d2e}.paneltitle small{color:#6e8256}.muted{color:#62774f}.eyebrow{color:#638d2f}.build{background:#eaf0d7;border-color:#bfce9d;color:#2d4b2a}.build:hover,.build.selected{background:#e1eebc;border-color:#79a13b}.symbol{background:#d0e2a6;color:#5b7d2d}.build small{color:#637d4b}.cost,.command>span:last-child{color:#976f25}.command small{color:#657c51}.command{color:#304d2d;border-color:#cad5b3}.night{background:linear-gradient(135deg,#497744,#2d5639);border-color:#7b9e5d}.night h2{color:#fff5d4}.night .eyebrow{color:#e2ec9b}.night p{color:#e0ebc8}.primary{background:#81ad43;color:#fffdea;border:1px solid #5d8b31}.primary:hover{background:#6f9e32}.plain,.settingsGrid button,.settingsGrid a{background:#ecf0d7;color:#355b2e;border-color:#a6bf82}.capitalStats>b,.capitalStats strong{color:#37602e}.capitalStats span{color:#6c7d51}.cityBuildGrid button{background:#e4eccb;color:#36592a;border-color:#adc38b}.cityBuildGrid small{color:#6d8153}.queueitem,#onlineJob{color:#4b7033;border-color:#b7c996}.heroCard{border-color:#c9d5b0}.heroCard b{color:#304f2c}.heroCard small{color:#647e4d}.heroLevel{color:#8d742d}.heroCard button{background:#7a9f3f;color:#fff9dc;border-color:#698b35}.boostChoice{background:#ebedcc;border-color:#c4cc8d;color:#5b6c33}.boostChoice small{color:#6e7b48}.nodeList button{background:#e6edd1;border-color:#b7c995;color:#3a5d2f}.nodeList button.selected{background:#dcebb4;border-color:#729e38}.nodeList span{color:#a57d2d}.nodeList small{color:#6c8050}.heroSummary{color:#547b32}.lootGrid>div{background:#eee2ac;color:#745c24}.worldhero{background:linear-gradient(130deg,#80aa49,#427842);border-color:#7ba252}.worldhero .eyebrow{color:#ecf5cd}.worldhero h2{color:#fff9de}.worldhero p{color:#f0f2d4}.worldrow{border-color:#cad5b1}.worldrow small{color:#687f50}.worldrow button{background:#80a746;color:#fff9dd;border-color:#70933b}.cityNote{background:#e8edd0;color:#5a7647;border-color:#c0ce9d}.onlineStatus{color:#658639}.onlineError{color:#ac5639}#onlineNotice{color:#7f642a}.plots{color:#687d51}.plots button{background:#e4edcd;color:#486e35;border-color:#afc58b}.commandbar{background:#dae8c0;border-color:#afc38e}.commandbar button{background:#edf2da;color:#385f2c;border-color:#a8c080}.commandbar .active{background:#8ab54c;color:#fffde6;border-color:#699532}.commandbar kbd{color:#5a7842;border-color:#acbf8b}.tips{color:#72943b}.tips p,#log{color:#617950}#log p{border-color:#bdcc9f}#log p:first-child{color:#3c672e;border-color:#87aa48}footer{color:#6b8053;border-color:#bdcc9f}dialog{background:#faf6e3;color:#35502e;border-color:#aabe83}dialog p,dialog li{color:#597046}dialog::backdrop{background:#1c3a2588}.small,dialog>small{color:#6f8158}.purchaseNotice{background:#e8edcc;border-color:#b4c78a;color:#4e6c37}.setting select,dialog input,#rewardPlayer{background:#fffceb;color:#37572e;border-color:#a8bd80}.danger{background:#f1e4cc;color:#a15d37;border-color:#c99e6b}.landbutton{background:#84a94b;color:#fffae2;border-color:#6c9637}.landGrid button{background:#e7edce;color:#476936;border-color:#a0b877}.landGrid button.owned{background:#88af49;color:#fffbea}.armySetup{background:#e4edce;border:1px solid #b3c78c;border-radius:5px;padding:13px;margin:13px 0}.armySetup label{display:block;font-size:10px;color:#4c6b37;margin-top:11px}.armySetup input,.armySetup select{display:block;width:100%;padding:10px;margin-top:6px;background:#fffced;border:1px solid #a7be7f;border-radius:4px;color:#3d612e;font:inherit;min-height:42px}.largeAttack{font-size:15px;padding:16px;background:#b96534;border-color:#9b5128;color:#fff6d6}.largeAttack:hover{background:#a65329}.viewtabs button:focus-visible,button:focus-visible{outline-color:#e2a942}

.battleForecast{padding:14px;border:1px solid #c8b779;background:#fff8dd;color:#4a442b;border-radius:9px;margin:12px 0}.battleForecast b,.battleForecast small,.missionReport b,.missionReport small,.missionReport span{display:block}.battleForecast small{margin-top:7px;line-height:1.5}.battleForecast.favorable{background:#e6f5da;border-color:#88b777;color:#294d28}.battleForecast.dangerous{background:#ffe9df;border-color:#d2886a;color:#7b3327}.armyPresets{display:flex;gap:6px;margin-bottom:14px}.armyPresets button{flex:1;padding:10px 5px;font-size:11px}.missionReport{padding:12px 0;border-bottom:1px solid #93a77b55;font-size:12px}.missionReport small{font-size:10px;opacity:.75;margin:6px 0}.missionReport span{line-height:1.5}
.mobileMapCommand{display:none}@media(max-width:730px){.mobileMapCommand{display:flex;position:fixed;bottom:calc(10px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:calc(100% - 20px);max-width:560px;align-items:center;gap:9px;padding:8px;background:#fff9e6f5;border:1px solid #9ab374;border-radius:7px;box-shadow:0 5px 25px #26442133;z-index:20}.mobileMapCommand>span{flex:1;font-size:9px;color:#4a6b32;line-height:1.5}.mobileMapCommand button{border:1px solid #789a48;background:#e1ebc5;color:#385b29;border-radius:4px;padding:8px 11px;font-size:11px}.mobileMapCommand #quickAttack{background:#bb6734;color:#fff9df;border-color:#a2592b;font-weight:bold}}
#progressPrefix{font-size:17px}@media(max-width:730px){#progressPrefix{font-size:11px}.waveTitle i{font-size:11px}}
/* Full-screen game HUD: small controls top-right, information and panels at bottom. */
:root{--hudHeight:145px}.hudMode{height:100dvh;overflow:hidden}.hudMode header{position:fixed;z-index:40;left:12px;top:12px;width:auto;height:auto;padding:0;background:#fff9e2ed;border:1px solid #b7c796;border-radius:5px;pointer-events:none}.hudMode .brand{padding:9px 12px;font-size:14px;gap:8px;pointer-events:auto}.hudMode .brand small{font-size:6px;letter-spacing:2px}.hudMode .crest{font-size:28px}.hudMode .headerActions,.hudMode .viewtabs,.hudMode .intro,.hudMode #onlineStatus,.hudMode .maphead,.hudMode .mapfoot,.hudMode #cityNote,.hudMode #mapNote,.hudMode #skirmishNote,.hudMode footer,.hudMode .zoom,.hudMode .compass,.hudMode .report,.hudMode .plots,.hudMode #quickMapCommand{display:none!important}.hudMode main{width:100%;max-width:none;height:100dvh;padding:0;margin:0}.hudMode .layout,.hudMode .layout:has(#worldPane:not([hidden])){display:block;height:100%;width:100%;padding:0;margin:0}.hudMode .battlefield{display:block!important;position:absolute;inset:0;width:100%;height:100%;z-index:0}.hudMode .mapwrap{height:100dvh!important;width:100%;aspect-ratio:auto}.hudMode canvas{height:100%;width:100%}.hudMode .mapbadge{top:auto;left:14px;bottom:calc(var(--hudHeight) + 54px);max-width:430px;background:#fff8e2ed;padding:9px 12px;z-index:2}.hudMode .selectedCard{left:14px;bottom:calc(var(--hudHeight) + 12px);padding:9px 12px;background:#fff8e2ed;max-width:430px}.hudMode .selectedCard small{display:none}.hudMode #banner{position:fixed;z-index:47;left:50%;top:auto;bottom:calc(var(--hudHeight) + 12px);transform:translateX(-50%);width:min(560px,90vw);background:#fff4d8f5;color:#5e5126;border-color:#cba868;padding:12px}.hudMode #hudIcons{position:fixed;right:14px;top:14px;display:grid;grid-template-columns:repeat(4,40px);gap:5px;padding:6px;background:#fff9e2e8;border:1px solid #b0c58d;border-radius:8px;z-index:45;box-shadow:0 4px 18px #38512c22}.hudMode #hudIcons button{height:40px;width:40px;min-height:40px;border:1px solid #a2bd76;border-radius:5px;background:#e8efcd;color:#3a652b;font-size:22px;line-height:1;padding:0}.hudMode #hudIcons button.active{background:#78a83d;border-color:#56862a;color:#fff8d8;box-shadow:inset 0 0 0 1px #d0e8a1}.hudMode #hudBottom{position:fixed;bottom:0;left:0;right:0;z-index:35;padding:8px 14px calc(8px + env(safe-area-inset-bottom));background:#fcf7e4f5;border-top:1px solid #a6bc80;box-shadow:0 -5px 20px #24492518}.hudSummary{display:flex;gap:14px;align-items:center;min-height:28px;font-size:10px;color:#4b6e35}.hudSummary #hudViewTitle{font-weight:700;letter-spacing:.7px}.hudSummary #hudStatus{margin-left:auto;color:#69824d}.hudSummary a{color:#557e2d;font-weight:700;text-decoration:none;padding:4px}.hudSummary button{min-height:28px;height:28px;width:28px;font-size:22px;background:#e3ebc8;color:#567736;border:1px solid #abc081;border-radius:4px}.hudMode #hudBottom .resources{display:grid;grid-template-columns:repeat(4,1fr);margin:5px 0 0;border-radius:4px;box-shadow:none}.hudMode #hudBottom .resources>div{padding:8px 14px;gap:9px;border-bottom:0;min-width:0}.hudMode #hudBottom .resources small{font-size:7px;letter-spacing:1px;margin-bottom:3px}.hudMode #hudBottom .resources b{font-size:20px}.hudMode #hudBottom .resources .icon{font-size:19px}.hudMode #hudBottom .resources .rate{font-size:7px}.hudMode #hudBottom .health{width:35px}.hudMode #hudBottom .adventureInventory{display:flex;justify-content:flex-start;gap:22px;padding:6px 0 0;margin:0;border:0;box-shadow:none;background:none;border-radius:0}.hudMode #hudBottom .adventureInventory>div{font-size:7px}.hudMode #hudBottom .adventureInventory b{font-size:13px;margin-left:6px}.hudMode #openMap{display:none!important}.hudMode #onlineNotice{font-size:10px;color:#91663b;margin:4px 0 0;line-height:1.4;max-height:30px;overflow:auto}.hudMode #onlineNotice:empty{display:none}.hudMode #hudTargetButton{background:none;color:#755c2c;border:0;border-top:1px solid #d2d9b8;padding:5px 0 2px;min-height:27px;font-size:10px;width:100%;text-align:left}.hudMode #capitalSidebar,.hudMode #mapSidebar,.hudMode #worldPane,.hudMode #skirmishSidebar{display:none!important;position:fixed;z-index:32;bottom:calc(var(--hudHeight) + 8px);left:50%;transform:translateX(-50%);width:min(850px,calc(100% - 28px));max-height:min(47dvh,470px);overflow:auto;overscroll-behavior:contain;background:#fcf8e8f5;border:1px solid #a9bd83;border-radius:9px;padding:12px;box-shadow:0 0 35px #23412744}.hudMode[data-hud-panel="city"] #capitalSidebar,.hudMode[data-hud-panel="heroes"] #capitalSidebar,.hudMode[data-hud-panel="army"] #mapSidebar,.hudMode[data-hud-panel="shop"] #mapSidebar,.hudMode[data-hud-panel="world"] #worldPane,.hudMode[data-hud-panel="practice"] #skirmishSidebar{display:block!important}.hudMode[data-hud-panel="city"] #heroPanel{display:none}.hudMode[data-hud-panel="heroes"] #capitalSidebar>*:not(#heroPanel){display:none!important}.hudMode[data-hud-panel="shop"] #mapSidebar>*:not(#merchantPanel){display:none!important}.hudMode[data-hud-panel="army"] #merchantPanel{display:none!important}.hudMode #capitalSidebar .panel,.hudMode #mapSidebar .panel,.hudMode #skirmishSidebar .panel,.hudMode #worldPane>.panel{margin:0 0 10px;border-color:#c3cea9;box-shadow:none}.hudMode .heroCard{display:inline-flex;vertical-align:top;width:32%;gap:8px;padding:12px 8px}.hudMode .heroCard .heroPortrait{flex-basis:52px}.hudMode #nodeList{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.hudMode .nodeList button{margin:0}.hudMode #armyPanel{display:grid;grid-template-columns:1fr 1fr;gap:6px 18px}.hudMode #armyPanel>.eyebrow,.hudMode #armyPanel>h2,.hudMode #armyPanel>#nodeDescription,.hudMode #armyPanel>#nodeLoot{grid-column:1}.hudMode #armyPanel>.armySetup{grid-column:2;grid-row:1 / span 6;margin:0}.hudMode .largeAttack{grid-column:1/-1}.hudMode .commandbar{position:fixed;bottom:calc(var(--hudHeight) + 8px);left:50%;transform:translateX(-50%);z-index:30;width:min(760px,calc(100% - 28px));border-radius:6px}.hudMode dialog{position:fixed;top:auto;bottom:calc(var(--hudHeight) + 12px);left:50%;right:auto;transform:translateX(-50%);margin:0;width:min(600px,calc(100vw - 28px));max-height:55dvh;padding:20px;z-index:70}.hudMode .worldhero{padding:18px}.hudMode .worldhero h2{font-size:25px;margin:10px 0}.hudMode[data-hud-panel]:not([data-hud-panel=""]) .mapbadge,.hudMode[data-hud-panel]:not([data-hud-panel=""]) .selectedCard{display:none}.hudMode #capitalOrders .panel{margin-bottom:10px}
@media(max-width:730px){.hudMode header{top:10px;left:10px;max-width:155px}.hudMode .brand{font-size:10px;padding:7px;gap:5px;letter-spacing:.7px}.hudMode .crest{font-size:23px}.hudMode .brand small{font-size:5px;letter-spacing:1px}.hudMode #hudIcons{top:10px;right:10px;grid-template-columns:repeat(4,35px);gap:4px;padding:5px}.hudMode #hudIcons button{height:35px;width:35px;min-height:35px;font-size:20px}.hudMode #hudBottom{padding:6px 9px calc(6px + env(safe-area-inset-bottom))}.hudSummary{gap:7px;flex-wrap:wrap;font-size:8px;min-height:24px}.hudSummary #hudViewTitle{letter-spacing:.3px;max-width:60%}.hudSummary #hudStatus{font-size:7px;margin-left:auto}.hudSummary a{font-size:9px}.hudMode #hudBottom .resources>div{padding:7px 6px;gap:5px;border-right:1px solid #c5d0ad}.hudMode #hudBottom .resources>div:last-child{border:0}.hudMode #hudBottom .resources .icon{font-size:14px}.hudMode #hudBottom .resources small{font-size:5px;letter-spacing:.5px}.hudMode #hudBottom .resources b{font-size:15px}.hudMode #hudBottom .rate,.hudMode #hudBottom .health{display:none}.hudMode #hudBottom .adventureInventory{gap:14px;padding-top:6px;flex-wrap:nowrap}.hudMode #hudBottom .adventureInventory>div{font-size:6px;letter-spacing:.3px}.hudMode #hudBottom .adventureInventory b{font-size:11px;margin-left:4px}.hudMode #hudTargetButton{font-size:9px;line-height:1.4;padding:6px 0;min-height:31px}.hudMode .mapbadge{left:10px;bottom:calc(var(--hudHeight) + 46px);max-width:calc(100% - 20px);padding:7px 9px}.hudMode .mapbadge span{font-size:6px}.hudMode .mapbadge small{font-size:8px;margin-top:4px}.hudMode .selectedCard{left:10px;bottom:calc(var(--hudHeight) + 8px);max-width:calc(100% - 20px);padding:8px}.hudMode #capitalSidebar,.hudMode #mapSidebar,.hudMode #worldPane,.hudMode #skirmishSidebar{width:calc(100% - 18px);max-height:49dvh;padding:8px;bottom:calc(var(--hudHeight) + 5px)}.hudMode .heroCard{display:flex;width:100%;padding:10px 3px}.hudMode #nodeList{grid-template-columns:1fr 1fr}.hudMode #armyPanel{display:block}.hudMode #armyPanel>.armySetup{margin:10px 0}.hudMode dialog{max-height:58dvh;bottom:calc(var(--hudHeight) + 7px);padding:18px}.hudMode .worldrow{gap:6px}.hudMode .panel{padding:12px}.hudMode #banner{font-size:11px;padding:10px}.hudMode .commandbar{flex-wrap:wrap}.hudMode .commandbar button{min-height:34px}}
.hudMode #battlePanel{display:none;position:fixed;z-index:33;bottom:calc(var(--hudHeight) + 8px);left:50%;transform:translateX(-50%);width:min(850px,calc(100% - 28px));max-height:45dvh;overflow:auto;background:#fcf8e8f5;border:1px solid #a9bd83;border-radius:9px;padding:16px;box-shadow:0 0 35px #23412744}.hudMode[data-hud-panel="battle"] #battlePanel{display:block!important}.hudMode #battlePanel .plain{width:auto;margin:0}.hudMode #captureWater{background:#5ba9bd;color:#fffcea;border-color:#3c869b}.biomeLabel{font-size:10px;color:#5a7940}
.hudMode[data-game-view="battle"] .mapbadge,.hudMode[data-game-view="battle"] .selectedCard{display:none!important}
.hudMode #chatPanel{display:none;position:fixed;z-index:34;bottom:calc(var(--hudHeight) + 8px);left:50%;transform:translateX(-50%);width:min(780px,calc(100% - 24px));height:40dvh;background:#fff9e9f7;border:1px solid #acbf85;border-radius:8px;padding:12px;box-shadow:0 0 30px #23452733}.hudMode[data-hud-panel="chat"] #chatPanel{display:flex!important;flex-direction:column}.chatTabs{display:flex;gap:8px;align-items:center}.chatTabs button,.chatCompose button{background:#dce9b7;color:#3d652c;border:1px solid #a3bd79;border-radius:4px;padding:7px 13px;min-height:35px}.chatTabs .active{background:#729d39;color:#fff6d3}.chatTabs span{margin-left:auto;font-size:8px;color:#75874b}.chatCompose{display:flex;gap:7px}.chatCompose input{flex:1;min-width:0;background:#fffdec;border:1px solid #acbf82;border-radius:4px;padding:10px;color:#37542c;font:inherit}.chatMessage{padding:9px 3px;border-bottom:1px solid #bdcea144;display:flex;align-items:baseline;gap:9px;font-size:11px}.chatMessage b{color:#426833}.chatMessage span{flex:1;color:#3e5331;overflow-wrap:anywhere}.chatMessage small{color:#8b956f;font-size:8px}.chatMessage button{min-height:22px;background:none;border:0;color:#a16d48}.hudMode #chatMessages{flex:1;overflow:auto;margin:10px 0}.hudMode #chatError{margin:4px 0}.hudMode #kingDragonControls{padding:10px;border:1px solid #bdc98d;background:#ecedcc;border-radius:4px;margin-bottom:14px}.hudMode #kingDragonControls select,.hudMode #royalTroopAmount{width:100%;padding:8px;background:#fffbe6;color:#476132;border:1px solid #acbd7e;border-radius:3px;margin-top:5px}.hudMode #royalVisitsPanel{padding:10px;border:1px solid #c9d19d;border-radius:4px;background:#eef1d2;margin-top:12px}.hudMode #royalVisitsPanel h3{margin:0;font-size:12px}@media(max-width:730px){.chatMessage{flex-wrap:wrap;gap:4px}.chatMessage span{flex-basis:100%}.chatCompose{flex-wrap:wrap}.chatCompose input{flex-basis:70%}.chatTabs span{font-size:6px}.hudMode #chatPanel{height:43dvh}}
/* A compact, optional guide stays within the existing phone HUD. */
#commanderGuide{border-bottom:1px solid #b9c991;padding:3px 0 6px;color:#35522d}#commanderGuide summary{cursor:pointer;display:flex;align-items:center;gap:12px;min-height:36px;list-style:none}#commanderGuide summary::-webkit-details-marker{display:none}#commanderGuide summary>span{font-size:9px;letter-spacing:1px;color:#748448;white-space:nowrap}#commanderGuide summary>b{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#commanderGuide summary:after{content:'＋';margin-left:auto}#commanderGuide[open] summary:after{content:'−'}.guideContent{max-height:27dvh;overflow:auto;padding:3px 4px 12px}.guideContent h3{font-size:16px;margin:6px 0}.guideContent p{font-size:12px;line-height:1.6;margin:8px 0}.guideContent button{min-height:44px;background:#48672f;color:#fffbe6;border:1px solid #6c843c;border-radius:5px;padding:9px 15px;cursor:pointer}.guideContent button:disabled{opacity:.55}.guideContent small{font-size:10px;color:#607044;line-height:1.6;display:block}.guideChecklist{font-size:10px!important;color:#687644}#commanderGuide :focus-visible{outline:2px solid #517f37;outline-offset:3px}@media(max-width:730px){#commanderGuide summary{gap:6px;min-height:32px}#commanderGuide summary>span{font-size:7px;letter-spacing:.3px}#commanderGuide summary>b{font-size:10px;max-width:64vw}.guideContent h3{font-size:14px}}
.hudMode #hudIcons{grid-template-columns:repeat(4,61px);gap:4px}.hudMode #hudIcons button{width:61px;height:49px;min-height:44px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px}.hudMode #hudIcons button>span{font-size:20px}.hudMode #hudIcons button>small{font:9px Arial;letter-spacing:.1px;color:inherit}.realmNavigation{display:flex;gap:8px;align-items:center;padding:5px 0;flex-wrap:wrap}.realmNavigation label{font-size:10px;display:flex;align-items:center;gap:7px}.realmNavigation select,#resourceFilter{font:12px Arial;padding:8px;background:#fff9e5;color:#35522d;border:1px solid #afbe8c;border-radius:4px;min-height:40px}.realmNavigation button{font:11px Arial;background:#e8efcd;color:#3a652b;border:1px solid #a2bd76;min-height:40px;border-radius:4px;padding:6px 12px}#resourceFilter{width:100%;margin:8px 0}#nodeList [hidden]{display:none!important}#invitePlayers input{display:block;width:100%;box-sizing:border-box;background:#fffce8;color:#304d2b;border:1px solid #a7ba82;border-radius:4px;padding:12px;margin:16px 0;font-size:13px}#invitePlayers p{line-height:1.6}#invitePlayers .primary{width:100%;min-height:44px}#invitePlayers .plain{min-height:44px}#realmNavigation[hidden]{display:none!important}@media(max-width:730px){.hudMode #hudIcons{grid-template-columns:repeat(4,47px);gap:3px;padding:4px;max-height:46dvh;overflow-y:auto}.hudMode #hudIcons button{width:47px;height:44px;min-height:44px;gap:3px}.hudMode #hudIcons button>span{font-size:17px}.hudMode #hudIcons button>small{font-size:7px}.hudMode header{max-width:125px}.realmNavigation{gap:4px;padding:2px 0}.realmNavigation label{font-size:0;flex:1}.realmNavigation select{width:100%;font-size:10px;min-height:36px;padding:5px}.realmNavigation button{font-size:9px;min-height:36px;padding:5px 8px}.realmNavigation button:last-child{display:none}}
/* Engraved brass and carved walnut command medallions. */
.hudMode #hudIcons{grid-template-columns:repeat(4,76px);padding:13px 10px 10px;gap:7px;background:radial-gradient(ellipse at 50% 0,#68492455,transparent 65%),repeating-linear-gradient(94deg,#231c17 0,#34261c 3px,#261d18 6px,#392a1d 9px);border:2px solid #aa8150;outline:1px solid #352716;outline-offset:3px;border-radius:16px 16px 22px 22px;box-shadow:0 10px 30px #0a140b88,inset 0 0 0 3px #19170fb3,inset 0 0 22px #0009}.hudMode #hudIcons:before{content:'ROYAL COMMAND';grid-column:1/-1;text-align:center;font:10px Georgia;letter-spacing:2.8px;color:#e8cc91;text-shadow:0 2px #000}.hudMode #hudIcons button{width:76px;height:76px;min-height:60px;gap:0;border:1px solid #80633b;border-radius:10px;background:radial-gradient(ellipse at 50% 10%,#73644480,#211e18 80%);box-shadow:inset 0 1px #dbc28a55,inset 0 -3px #090d0b88,0 3px 4px #0006;color:#f3dca4;position:relative;transition:transform .15s,box-shadow .15s}.hudMode #hudIcons button:hover{transform:translateY(-2px);box-shadow:inset 0 0 20px #bf913333,0 4px 10px #0009}.hudMode #hudIcons button.active{background:radial-gradient(ellipse at 50% 15%,#a17a39,#543b1c 55%,#2c2116);border-color:#e3bd73;box-shadow:0 0 14px #d09a3d44,inset 0 0 0 1px #f4d59955;color:#fff0c5}.hudMode #hudIcons button>span{height:51px;display:flex;align-items:center;justify-content:center}.hudMode #hudIcons svg{height:51px;width:51px;filter:drop-shadow(0 3px 2px #0008)}.medallionPlate{fill:#28342b;stroke:#ba9258;stroke-width:1.4}.medallionRim{fill:none;stroke:#715e39;stroke-width:1}.medallionIcon{fill:none;stroke:#f3d79b;stroke-width:2.4;stroke-linejoin:round;stroke-linecap:round}.medallionStud{fill:#f9d499;stroke:#97713d;stroke-width:1}.hudMode #hudIcons button>small{font:10px Georgia;letter-spacing:.25px;color:#f1dca9;text-shadow:0 1px 2px #000}.hudMode #hudIcons button[data-hud="music"]>span{font-size:32px;color:#eccb81}.cityInteriorBar{display:flex;gap:8px;justify-content:center;padding:4px}.cityInteriorBar[hidden]{display:none!important}.cityInteriorBar button,.enterCityButton{background:linear-gradient(#806637,#3a3c27)!important;border:1px solid #bea16b!important;border-radius:5px;color:#ffedbe!important;min-height:42px;padding:9px 16px;font:12px Georgia;box-shadow:inset 0 1px #f4dfaa44}.regimentList{display:grid;gap:10px}.regimentCard{display:grid;grid-template-columns:64px 1fr;align-items:center;gap:12px;padding:13px;background:radial-gradient(ellipse at top left,#574c31,#202b24);color:#f5dfaa;border:1px solid #9e8152;border-radius:9px;box-shadow:inset 0 0 0 3px #10231844}.regimentCard svg{width:64px;height:64px}.regimentCard h3{font:19px Georgia;margin:0 0 5px}.regimentCard b{display:block;font-size:22px;color:#ffe3a7}.regimentCard small{display:block;font-size:11px;color:#c7c7a6;margin-top:5px}.regimentCard button{grid-column:1/-1;min-height:42px;background:linear-gradient(#b79453,#6c542e);color:#fff8dc;border:1px solid #d1b77c;border-radius:4px;font:12px Georgia}.regimentCard button:disabled{opacity:.45}.musterSummary{font:14px Georgia;line-height:1.7;color:#425c32}.hudMode #armyRoster{max-height:65dvh;width:min(640px,calc(100vw - 28px))}@media(max-width:730px){.hudMode #hudIcons{grid-template-columns:repeat(4,49px);gap:4px;padding:8px 6px;max-height:45dvh;border-radius:12px;right:8px}.hudMode #hudIcons:before{font-size:8px;letter-spacing:1.8px}.hudMode #hudIcons button{height:60px;width:49px;min-height:60px;border-radius:7px}.hudMode #hudIcons button>span,.hudMode #hudIcons svg{width:39px;height:39px}.hudMode #hudIcons button>small{font-size:7px;letter-spacing:0}.cityInteriorBar{gap:5px}.cityInteriorBar button{font-size:10px;padding:7px 12px}.regimentCard{grid-template-columns:50px 1fr}.regimentCard svg{width:50px;height:50px}.regimentCard h3{font-size:16px}.regimentCard b{font-size:18px}}

.hudMode .commandToggle{position:fixed;right:14px;top:12px;z-index:60;width:88px;min-height:64px;display:flex;align-items:center;justify-content:center;gap:1px;flex-direction:column;background:radial-gradient(ellipse at top,#665033,#241e17);color:#f8df9d;border:2px solid #b49457;outline:1px solid #4e3b23;border-radius:12px;box-shadow:0 5px 17px #0007;font:11px Georgia;cursor:pointer}.commandToggle svg{width:37px;height:37px}.commandToggle:focus-visible{outline:3px solid #fff0b9;outline-offset:4px}.hudMode #hudIcons{top:88px;max-height:calc(100dvh - var(--hudHeight) - 105px);overflow-y:auto;transition:opacity .18s,transform .18s}.hudMode[data-commands-expanded="false"] #hudIcons{display:none!important}.hudMode[data-commands-expanded="false"] #commanderGuide,.hudMode[data-commands-expanded="false"] .cityInteriorBar,.hudMode[data-commands-expanded="false"] #realmNavigation{display:none!important}.hudMode[data-game-view="battle"] #hudBottom .resources,.hudMode[data-game-view="battle"] #adventureInventory,.hudMode[data-game-view="battle"] #commanderGuide,.hudMode[data-game-view="battle"] #onlineNotice{display:none!important}.hudMode[data-game-view="battle"] #hudBottom{padding-top:7px;padding-bottom:calc(5px + env(safe-area-inset-bottom))}.hudMode[data-game-view="battle"] #hudViewTitle{max-width:72%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:730px){.hudMode .commandToggle{right:10px;top:10px;width:68px;min-height:58px;font-size:9px}.commandToggle svg{height:32px;width:32px}.hudMode #hudIcons{top:78px;max-height:calc(100dvh - var(--hudHeight) - 90px)}}
.hudMode #campaignDialog{width:min(760px,calc(100vw - 24px));max-height:66dvh}.missionCard{padding:16px;margin:10px 0;border:1px solid #a99464;border-radius:7px;background:linear-gradient(120deg,#f8efd4,#e8e4c7)}.missionCard h3,.warEventCard h3{font:19px Georgia;color:#473e29;margin:8px 0}.missionCard p,.warEventCard p{font-size:12px;line-height:1.6}.missionCard small{display:block;font-size:10px;line-height:1.6;color:#6a6547}.missionCard button,.warEventCard button{background:linear-gradient(#796039,#3a3f2a);color:#ffeabd;border:1px solid #aa8a51;border-radius:4px;min-height:42px;padding:9px 16px;margin-top:10px}.missionCard button:disabled{opacity:.4}.warEventCard{padding:18px;background:#e3d5af;border:1px solid #a98a4b;border-radius:8px}.rallyChoice{display:flex;gap:10px;align-items:center;font-size:12px;padding:12px;background:#e5dfc1;border-radius:4px}.rallyChoice input{width:20px;height:20px}
.hudMode #tradePostDialog{max-height:68dvh;width:min(780px,calc(100vw - 24px))}.tradePackageGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tradePackage{background:radial-gradient(ellipse at top,#5e573c,#263b2a);border:1px solid #b29a64;border-radius:10px;color:#f4e6bd;padding:18px;box-shadow:inset 0 0 0 3px #11231d55}.tradePackage small{font-size:9px;letter-spacing:1.4px;color:#bfae7e}.tradePackage h3{font:22px Georgia;margin:12px 0;color:#ffe0a0}.tradePackage b{font-size:13px;line-height:1.6}.tradePackage p{font-size:11px;line-height:1.6;min-height:40px;color:#cfccb4}.tradePackage button{background:linear-gradient(#bd9a58,#75572c);border:1px solid #dfc68c;border-radius:5px;padding:10px;color:#fff5da;min-height:44px;width:100%;font:12px Georgia}.tradePackage button:disabled{opacity:.45}@media(max-width:550px){.tradePackageGrid{grid-template-columns:1fr}.tradePackage{padding:14px}}
/* Kingdom information has an independent retractable drawer. */
.hudMode #hudBottom .resources,.hudMode #hudBottom #adventureInventory{display:none!important}.hudMode:not([data-game-view="battle"]) #hudBottom .hudSummary{display:none}.hudMode[data-commands-expanded="false"]:not([data-game-view="battle"]) #hudTargetButton{display:none!important}.hudMode[data-commands-expanded="false"]:not([data-game-view="battle"]) #hudBottom{padding:0;border:0;box-shadow:none;background:transparent}.hudMode .kingdomStatusToggle{position:fixed;z-index:55;left:14px;bottom:calc(var(--hudHeight) + 12px);width:124px;min-height:62px;background:radial-gradient(ellipse at top,#635033,#241e17);color:#f8df9d;border:2px solid #b49457;border-radius:12px;box-shadow:0 4px 16px #0007;display:flex;align-items:center;justify-content:center;gap:6px;padding:7px;cursor:pointer;font:11px Georgia}.kingdomStatusToggle svg{width:34px;height:34px;flex-shrink:0}.kingdomStatusToggle:focus-visible{outline:3px solid #fff0b9;outline-offset:3px}.kingdomStatusPanel{position:fixed;z-index:54;left:14px;bottom:calc(var(--hudHeight) + 86px);width:min(730px,calc(100vw - 28px));max-height:calc(100dvh - var(--hudHeight) - 175px);overflow:auto;box-sizing:border-box;padding:20px;background:linear-gradient(130deg,#fff5d9f7,#e9e2c5fa);color:#3b4b32;border:2px solid #ab8d54;border-radius:12px;box-shadow:0 12px 35px #0a170c66}.kingdomStatusPanel[hidden]{display:none!important}.statusPanelHeading{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #c9b988;padding-bottom:10px}.statusPanelHeading h2{font:24px Georgia;margin:0}.statusPanelHeading button{width:42px;height:42px;font-size:22px;background:#443d29;color:#f3db9f;border:1px solid #b99b60;border-radius:6px}.kingdomIdentity{display:flex;gap:14px;align-items:center;padding:15px 0;flex-wrap:wrap}.statusAvatar,.kingdomIdentity>svg{width:72px;height:80px;flex-shrink:0;background:linear-gradient(#645b3d,#2c412f);border:1px solid #a58a53;border-radius:8px;overflow:hidden}.statusAvatar svg{width:100%;height:100%}.kingdomIdentity h3{font:22px Georgia;margin:0 0 6px}.kingdomIdentity b,.kingdomIdentity small{display:block;line-height:1.6}.kingdomIdentity small{font-size:11px;color:#77704d}.kingdomIdentity a{color:#375d30;font-weight:bold;padding:10px}.kingdomStatGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.kingdomStatGrid>div{padding:12px;border:1px solid #c6b784;background:#f7edcf;border-radius:6px;overflow-wrap:anywhere}.kingdomStatGrid small{display:block;font-size:9px;letter-spacing:.7px;color:#7b7151;margin-bottom:6px}.kingdomStatGrid b{font-size:15px;color:#3b5134}.statusClan{padding:12px 0;border-bottom:1px solid #c9b988;margin-bottom:16px}.statusClan small{font-size:9px;letter-spacing:1px;color:#7b7151}.statusClan h3{font:20px Georgia;margin:5px 0}.statusClan p{font-size:12px;line-height:1.6}.kingdomStatusPanel label{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font:13px Georgia}.kingdomStatusPanel select{background:#fff6dc;color:#3d4d31;border:1px solid #a89964;border-radius:5px;min-height:42px;padding:9px;font-size:12px}.kingdomStatusPanel #statusPlanTitle{font:19px Georgia;margin-bottom:6px}.statusPlanNote,.statusCurrentOrder{font-size:11px;line-height:1.6;color:#746d4e}.statusResourceTable{width:100%;border-collapse:collapse;margin:12px 0;font-size:12px}.statusResourceTable th,.statusResourceTable td{padding:10px 7px;border-bottom:1px solid #d2c69b;text-align:right}.statusResourceTable th:first-child{text-align:left}.statusResourceTable thead{background:#e6dbb9;color:#635a3e;font-size:10px}.statusResourceTable tbody th{font-weight:500}.statusShortfall{color:#a0462c;font-weight:bold}.statusReady{color:#427334}.statusActions{display:flex;flex-wrap:wrap;gap:8px}.statusActions button{padding:9px 12px;min-height:42px;background:linear-gradient(#79613a,#3e462d);color:#ffebbb;border:1px solid #aa8d54;border-radius:5px;font:12px Georgia}@media(max-width:600px){.hudMode .kingdomStatusToggle{left:10px;width:106px;min-height:52px;font-size:10px;padding:5px;bottom:calc(var(--hudHeight) + 9px)}.kingdomStatusToggle svg{width:28px;height:28px}.kingdomStatusPanel{left:10px;width:calc(100vw - 20px);padding:14px;bottom:calc(var(--hudHeight) + 71px);max-height:calc(100dvh - var(--hudHeight) - 155px)}.kingdomStatGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.kingdomStatGrid>div{padding:10px}.kingdomStatGrid b{font-size:13px}.statusResourceTable{font-size:10px}.statusResourceTable th,.statusResourceTable td{padding:9px 4px}.statusPanelHeading h2{font-size:21px}.kingdomIdentity h3{font-size:19px}.statusAvatar{width:58px;height:68px}}
.hudMode[data-kingdom-status-expanded="false"] .selectedCard,.hudMode[data-kingdom-status-expanded="false"] .mapbadge{display:none!important}
