@font-face{font-family:Vazirmatn;font-style:normal;font-display:swap;font-weight:400;src:url(./vazirmatn-arabic-400-normal-DMZFCm7K.woff2) format("woff2"),url(./vazirmatn-arabic-400-normal-C4W5XURk.woff) format("woff")}@font-face{font-family:Vazirmatn;font-style:normal;font-display:swap;font-weight:600;src:url(./vazirmatn-arabic-600-normal-CPKvAnd1.woff2) format("woff2"),url(./vazirmatn-arabic-600-normal-CWYTfCgi.woff) format("woff")}@font-face{font-family:Vazirmatn;font-style:normal;font-display:swap;font-weight:800;src:url(./vazirmatn-arabic-800-normal-Bwnt96zj.woff2) format("woff2"),url(./vazirmatn-arabic-800-normal-BH12s3-y.woff) format("woff")}:root{font-family:Vazirmatn,sans-serif;color:#f5e5c4;color-scheme:dark;background:#101923;font-synthesis:none;--gold: #f1ca83;--outline: #a98552}*{box-sizing:border-box}body{margin:0;min-width:280px}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:2px solid #fff3ae;outline-offset:-3px}button:disabled{cursor:default}.art-icon{display:block;width:1.45em;height:1.45em;object-fit:contain;flex:none;pointer-events:none}.app{display:flex;flex-direction:column;width:min(100%,560px);min-height:100dvh;margin:0 auto;background:#17242c;box-shadow:0 0 50px #090e14}main{flex:1}.panel{padding-bottom:12px}.ledger,.hourly,.tabs{background:#203339 url(../ui/strip.webp) center / 100% 100% no-repeat}.ledger{display:grid;grid-template-columns:repeat(3,1fr);min-height:52px;padding:max(4px,env(safe-area-inset-top)) 7px 4px;border-bottom:1px solid var(--outline)}.quantity{display:inline-flex;align-items:center;justify-content:center;gap:3px;white-space:nowrap;font-variant-numeric:tabular-nums}.quantity b{font-weight:800}.ledger .quantity{color:#fce4b7;font-size:15px;text-shadow:0 1px 2px #100f10;border-inline-end:1px solid #c593584e}.ledger .quantity:last-child{border-inline-end:0}.ledger .art-icon{width:29px;height:29px}.shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:8px 8px 3px;gap:3px;background:radial-gradient(ellipse at 50% 125%,#3b594c 0,#263b40 46%,#17242c 89%)}.shortcut{display:grid;justify-items:center;align-content:end;border:0;background:transparent;padding:4px 0;font-size:clamp(11px,3.2vw,14px);font-weight:800;color:#ffdfa3;text-shadow:0 2px 3px #111922}.shortcut .art-icon{width:clamp(44px,15vw,72px);height:clamp(44px,15vw,72px);filter:drop-shadow(0 3px 4px #0e171c9e)}.shortcut:active .art-icon{transform:translateY(2px)}.icon-button{border:0;background:transparent;padding:0;display:grid;place-items:center}.district-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:7px 5px 6px}.district-tabs button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:41px;font-size:14px}.district-tabs .art-icon{width:26px;height:25px}.district{display:grid;gap:7px}.building,.unit{width:100%;aspect-ratio:1.85;min-height:156px;overflow:hidden;position:relative;isolation:isolate;border-block:1px solid var(--outline);background:#775f3c;box-shadow:0 2px 6px #10151b}.building-art,.unit-art{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:center bottom;pointer-events:none}.building-overlay{position:absolute;inset:0 0 auto;display:grid;grid-template-columns:minmax(0,27%) minmax(0,46%) minmax(0,27%);align-items:start;padding:7px 7px 14px;direction:ltr;background:linear-gradient(180deg,#121c24f0,#14202c9c 68%,#14202c00)}.upgrade-slot{justify-self:start;width:100%;min-width:0}.upgrade{min-width:min(90px,100%)}.building-title{text-align:center;padding-inline:2px;min-width:0}.building-title h2{margin:0;color:#ffdfa3;font-weight:800;font-size:clamp(14px,4vw,20px);line-height:1.18;text-shadow:0 2px 3px #091018}.building-title>span{font-size:clamp(9px,2.65vw,12px);color:#fff0cb;line-height:1.5;font-weight:600;text-shadow:0 1px 3px #070d18}.building-tools{display:flex;gap:2px;align-items:start;justify-self:end}.hourly{display:grid;justify-items:center;min-width:41px;border:1px solid #a98552;border-radius:4px;padding:1px 3px 2px;font-size:8px;font-weight:600;color:#ffe2a6;line-height:1.1;box-shadow:0 1px 5px #22171599}.hourly .quantity{font-size:11px}.hourly .art-icon{width:16px;height:16px}.help{width:28px;height:31px}.help .art-icon{width:24px;height:24px}.level-flag{position:absolute;bottom:4px;right:7px;width:51px;height:59px;display:grid;place-items:center;pointer-events:none}.level-flag .art-icon{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(0 2px 2px #1a161b8d)}.level-flag b{position:relative;margin-bottom:3px;color:#ffe4a3;text-shadow:0 1px 2px #210e1e;font-size:19px}.shipment-state{position:absolute;bottom:7px;left:7px;border-radius:4px;padding:2px 5px;background:#202a32d9;color:#ffe0ad;font-size:10px}.production-meter{position:absolute;left:50%;bottom:4px;translate:-50% 0;width:min(41%,184px);height:18px;overflow:hidden;padding:5px 12px;background:url(../ui/meter-track.webp) center / 100% 100% no-repeat;direction:ltr;pointer-events:none}.production-fill{display:block;height:100%;border-radius:3px;background:#83b546 url(../ui/meter-fill.webp) left / 100% 100% no-repeat;transition:width .15s linear}.cart{position:absolute;bottom:8%;left:26%;width:clamp(115px,37vw,187px);aspect-ratio:3.4;pointer-events:none;direction:ltr}.cart[data-phase=entering]{animation:enter-cart var(--travel-time) linear var(--travel-delay) both}.cart[data-phase=leaving]{animation:leave-cart var(--travel-time) linear var(--travel-delay) both}@keyframes enter-cart{0%{left:-63%}to{left:26%}}@keyframes leave-cart{0%{left:26%}to{left:105%}}.cart-art{position:absolute;width:63%;bottom:22%;left:0}.wheel{position:absolute;width:19%;bottom:-3%;aspect-ratio:1;transform-origin:center}.wheel-rear{left:2%}.wheel-front{left:33%}.cart-moving .wheel{animation:turn-wheel var(--travel-time) linear var(--travel-delay) both}@keyframes turn-wheel{to{transform:rotate(1080deg)}}.horse{position:absolute;width:51%;aspect-ratio:1.28;bottom:-4%;left:49%;background:url(../scenes/horse-sheet.webp) 0 0 / 800% 100% no-repeat}.cart-moving .horse{animation:walk .9s steps(8) infinite}@keyframes walk{to{background-position:114.285714% 0}}.cart[data-blocked],.cart[data-blocked] .wheel,.cart[data-blocked] .horse{animation-play-state:paused}.cart-load{position:absolute;left:4%;width:50%;bottom:61%;height:42%}.cart-load .art-icon{width:47%;height:102%;position:absolute;bottom:0;opacity:0}.cart-load .loaded{opacity:1}.cart-load .cargo-0{left:2%;transform:rotate(-12deg)}.cart-load .cargo-1{left:22%;bottom:12%}.cart-load .cargo-2{left:53%;transform:rotate(12deg)}@media(prefers-reduced-motion:reduce){.production-fill{transition:none}.cart-moving,.cart-moving .wheel,.cart-moving .horse{animation:none}.cart[data-phase=entering]{left:14%}.cart[data-phase=leaving]{left:79%}}.primary,.secondary{border:1px solid #a98552;border-radius:5px;color:#fff1d2;min-height:37px;padding:4px 5px;font-weight:800;font-size:12px;line-height:1.14;text-shadow:0 1px 2px #170f0b;background:#2e553f url(../ui/green.webp) center / 100% 100% no-repeat}.secondary{background:#283944 url(../ui/stone-panel.webp) center / 100% 100% no-repeat}.primary:active,.secondary:active,.icon-button:active{filter:brightness(1.2)}.primary:disabled,.secondary:disabled{filter:grayscale(.65) brightness(.76)}.price{display:flex;justify-content:center;align-items:center;gap:3px;font-size:11px}.price .art-icon{width:14px;height:13px}.countdown{min-width:64px;display:grid;place-items:center;gap:2px;padding:2px 4px;border:1px solid var(--outline);border-radius:4px;background:#263b34ec;color:#ffe4ab;font-size:10px}.countdown b{font-size:13px}progress{display:block;width:89%;height:6px;accent-color:#9eb86a}.unit{display:grid;align-items:stretch;min-height:238px;background:#4a5441}.unit:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#13202af3,#172732c7 41%,#1a283000 72%);pointer-events:none;z-index:-1}.unit-art{z-index:-2}.unit-locked .unit-art{filter:saturate(.6)}.unit-details{width:60%;justify-self:end;padding:11px 9px 10px 12px;text-align:left}.unit-details h2{color:#ffdfa3;font-size:clamp(15px,5vw,23px);line-height:1.2;margin:0 0 4px;text-shadow:0 2px 4px #151b21}.unit-details p{margin:0 0 5px;color:#fae7bc;font-size:clamp(10px,3.1vw,13px)}.unit-details .lock{color:#ffd99c;border-block:1px solid #d5ab6959;padding:3px 0;font-weight:800}.unit-stock{display:flex;align-items:center;justify-content:flex-end;gap:3px;font-size:10px;margin-top:4px}.train{display:inline-block;min-width:105px}.repeat{display:block;min-height:33px;margin:3px auto 4px 0}.training-amount{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;gap:1px 5px;max-width:136px;margin:1px auto 4px 0;padding:1px 2px;text-align:right;font-size:10px}.training-amount label{grid-column:1 / -1;line-height:1.1;color:#ffe2a8;text-shadow:0 1px 2px #1a1b20}.training-amount input[type=text]{grid-column:2;grid-row:2;max-width:100%;min-width:0;width:34px;height:20px;padding:1px 3px;color:#ffe8ac;border:1px solid #a98552;border-radius:3px;background:#203130 url(../ui/stone-panel.webp) center / 100% 100% no-repeat;text-align:center;font:inherit}.training-amount input[type=range]{grid-column:1;grid-row:2;appearance:none;-webkit-appearance:none;width:100%;min-width:0;height:28px;margin:0;direction:ltr;background:transparent;cursor:pointer}.training-amount input[type=range]:disabled{opacity:.53;cursor:default}.training-amount input[type=range]:focus-visible{outline:1px solid #fff3ae;outline-offset:-2px;border-radius:4px}.training-amount input::-webkit-slider-runnable-track{height:8px;background:url(../ui/meter-fill.webp) 4px center / var(--range-fill) 4px no-repeat,url(../ui/meter-track.webp) center / 100% 100% no-repeat}.training-amount input::-moz-range-track{height:8px;background:url(../ui/meter-fill.webp) 4px center / var(--range-fill) 4px no-repeat,url(../ui/meter-track.webp) center / 100% 100% no-repeat}.training-amount input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:18px;height:18px;margin-top:-5px;border:0;border-radius:50%;background:#527a48 url(../ui/training-thumb.webp) center / contain no-repeat}.training-amount input::-moz-range-thumb{width:18px;height:18px;border:0;border-radius:50%;background:#527a48 url(../ui/training-thumb.webp) center / contain no-repeat}.training-status{display:block;margin:3px 0 0;color:var(--gold);font-size:11px}.unit-details .countdown{width:min(100%,150px);margin-left:0;margin-right:auto}.commander{min-height:158px}.commander .unit-details{padding-top:16px}.commanders-header{display:grid;grid-template-columns:35px minmax(0,1fr) auto;gap:7px;align-items:center;padding:8px;border-bottom:1px solid var(--outline);color:var(--gold);background:#273842 url(../ui/stone-panel.webp) center / 100% 100% no-repeat}.commanders-header h1{font-size:clamp(16px,4.5vw,23px);margin:0}.commanders-header .art-icon{width:32px;height:32px}.commanders-header .secondary{min-height:31px;padding-inline:8px}.commander-ready{display:inline-block;padding:5px 7px;color:#ffe2a8;background:#2b5043e8;border:1px solid var(--outline);border-radius:4px;font-size:12px}.tabs{position:sticky;z-index:3;bottom:0;display:grid;grid-template-columns:repeat(5,1fr);padding-bottom:env(safe-area-inset-bottom);border-top:1px solid var(--outline);box-shadow:0 -7px 18px #101720ac}.tabs button{min-width:0;min-height:55px;padding:4px 0;display:grid;place-content:center;justify-items:center;gap:1px;border:0;border-inline-end:1px solid #bb8b6a48;background:transparent;color:#edd4ab;font-size:11px}.tabs .art-icon{width:28px;height:28px}.tabs button:disabled{opacity:.6}.tabs button[aria-current]{color:#ffe6aa;font-weight:800;background:#3c674d url(../ui/green.webp) center / 100% 100% no-repeat;box-shadow:inset 0 2px #e3b476}.detail,.modal{color:#f9e6be;padding:13px 15px;background:#25343f url(../ui/stone-panel.webp) center / 100% 100% no-repeat}.detail{margin:14px 10px;border:1px solid var(--outline);border-radius:8px}.detail h2{margin:0 0 9px;color:var(--gold)}.detail p{display:flex;justify-content:space-between;gap:7px}.storage-warning{margin:8px 10px;color:#f4af9e;font-size:12px}dialog{width:min(calc(100% - 24px),445px);max-height:86dvh;padding:0;border:1px solid var(--outline);border-radius:9px;background:#27363d;color:inherit;box-shadow:0 14px 70px #08080ad9}dialog::backdrop{background:#080e16a8}.modal-heading{display:flex;align-items:center;gap:8px}.modal-heading .art-icon{width:34px;height:34px}.modal-heading h2{margin:0;color:var(--gold);font-size:18px}.modal p{margin:8px 0;font-size:13px}.modal .close{width:100%;margin-top:10px}.stock-list{padding:0;margin:6px 0;list-style:none}.stock-list li,.guide div{padding:4px 0;border-bottom:1px solid #d5a56b47;display:flex;align-items:center;gap:6px;font-size:13px}.stock-list li .art-icon{width:24px;height:24px}.stock-list li span{flex:1}.stock-list li b,.guide dd{color:#ffe7b4;font-weight:800}.guide{margin:9px 0 2px}.guide div{justify-content:space-between}.guide dd{margin:0}.panel{padding-bottom:48px}.ledger{grid-template-columns:repeat(4,minmax(0,1fr));min-height:51px;padding-inline:5px;background:linear-gradient(180deg,#293d47,#182832);border-bottom:1px solid #9a7649;box-shadow:inset 0 1px #e1b97980,0 2px 6px #10181d}.ledger .quantity{gap:5px;min-width:0;white-space:nowrap;font-size:clamp(11px,3.2vw,15px);border-inline-end:1px solid #bb945146}.ledger .art-icon{width:clamp(21px,6.7vw,29px);height:clamp(21px,6.7vw,29px)}.ledger .quantity:last-child{color:#e8ceff;background:radial-gradient(ellipse at center,#9173b641,transparent 75%)}.bottom-menu{z-index:4;position:sticky;bottom:0;align-self:stretch;background:#182934;box-shadow:0 -3px 14px #10192196}.bottom-menu .tabs{position:relative;z-index:1;background:#243a47 url(../ui/nav-rail.webp) center / 100% 100% no-repeat;border-top:1px solid #c09a5e;box-shadow:inset 0 -1px #997149}.bottom-menu .tabs button{min-height:60px;border-inline-end:1px solid #bc9b6140;font-weight:800}.bottom-menu .tabs button:last-child{border-inline-end:0}.bottom-menu .tabs button[aria-current]{background:linear-gradient(#5373549c,#263f38a8);box-shadow:inset 0 2px #e3b476}.bottom-menu .tabs .art-icon{width:31px;height:31px}.battle-launch{position:absolute;z-index:2;bottom:calc(100% - 4px);left:50%;translate:-50% 0;width:min(112px,33vw);min-height:40px;display:flex;align-items:center;justify-content:center;gap:3px;padding:3px 6px 6px;background:transparent url(../ui/battle-tab.webp) center / 100% 100% no-repeat;border:0;border-radius:12px 12px 0 0;color:#fff0c1;text-shadow:0 1px 3px #12201c;box-shadow:0 -3px 7px #12201b4a;font-size:clamp(10px,3.2vw,13px);font-weight:800}.battle-launch .art-icon{width:23px;height:23px}.battle-launch[aria-current]{filter:brightness(1.16)}.boost{margin-top:3px;min-height:27px;padding:2px 4px;display:flex;align-items:center;gap:3px;font-size:9px}.boost .art-icon{width:13px;height:13px}.commander{min-height:118.5px;aspect-ratio:37 / 15;background:#25333d}.commander:before{content:"";position:absolute;z-index:-3;inset:-8px;opacity:.6;background:var(--commander-art) center / cover no-repeat;filter:blur(7px)}.commander .unit-art{object-fit:contain;object-position:right center;-webkit-mask-image:linear-gradient(90deg,transparent 26%,#000 48%);mask-image:linear-gradient(90deg,transparent 26%,#000 48%)}.commander .unit-details{padding-top:12px}.commander .unit-details .commander-ready{display:block;width:max-content;margin:3px auto 4px 0;padding:3px 5px;font-size:10px}.portal{color:#f5e5c4}.portal-banner{position:relative;min-height:110px;height:clamp(114px,35vw,174px);isolation:isolate;overflow:hidden;border-bottom:1px solid #bc9257}.portal-banner img{position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 54%}.portal-banner:after{position:absolute;z-index:-1;inset:0;content:"";background:linear-gradient(0deg,#16242fe8,#16242f25 62%,transparent)}.portal-banner h1{position:absolute;inset:auto 13px 10px;margin:0;font-size:clamp(23px,7vw,33px);font-weight:800;color:#ffdfa3;text-shadow:0 2px 6px #15212b}.alliance-landing .portal-banner{height:clamp(165px,53vw,268px)}.portal-card{margin:10px 9px 0;padding:11px 12px;border-radius:7px;border:1px solid #98774c;background:#283944;box-shadow:inset 0 1px #d6ba753b,0 2px 5px #12191f96}.portal-card h2,.shop-section h2{display:flex;align-items:center;gap:7px;color:#ffdea3;font-size:17px;margin:0 0 7px}.portal-card h2 .art-icon{width:30px;height:30px}.portal-card p{margin:5px 0;font-size:13px}.portal-card .portal-note,.portal-note{color:#f5d9a8;font-size:11px}.portal-note[role=status]{display:block;margin-top:5px}.field{display:grid;gap:4px;margin:6px 0 8px;font-size:12px;font-weight:600}.field input,.field textarea,.form-row input{min-width:0;width:100%;color:#fff0cc;font:inherit;background:#182a34;border:1px solid #98774d;border-radius:4px;padding:7px 8px}.field textarea{resize:vertical}.portal-card .toggle{min-height:35px;display:flex;justify-content:space-between;align-items:center;gap:9px;color:#ffe8c5;font-size:13px}.toggle input{width:18px;height:18px;accent-color:#9db571}.portal-actions{display:flex;flex-wrap:wrap;gap:5px;padding:7px 9px 0}.portal-actions>button{flex:1 1 auto}.portal-actions.three>button{flex:1 1 20%}.portal-card .portal-actions{padding:0}.decorated{display:flex;align-items:center;justify-content:center;gap:5px}.decorated .art-icon{width:24px;height:24px}.rankings,.alliance-list,.chat-log,.resource-packs{margin:5px 0 8px;padding:0;list-style:none}.rankings li,.alliance-list li{display:flex;align-items:center;gap:9px;padding:7px 0;border-bottom:1px solid #b6915757}.rankings li span,.alliance-list li>div{flex:1}.rankings li b,.rankings li strong{color:#f7d793}.alliance-list li b,.alliance-list li small{display:block}.alliance-list li small{color:#e4c898}.alliance-choice{margin:12px 9px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.alliance-choice button{flex-direction:column;min-height:100px;font-size:14px}.alliance-choice .art-icon{width:53px;height:53px}.form-row{display:flex;gap:5px;align-items:stretch}.form-row input{flex:1}.form-row button{flex:none}.chat-log{max-height:265px;overflow-y:auto;overflow-wrap:anywhere}.chat-log li{background:#21323e;margin:4px 0;padding:4px 6px;border-radius:4px;font-size:12px}.chat-log li b{display:block;color:#e6c084}.shop-section{margin:14px 9px 0}.shop-section>p{margin:-4px 0 7px}.pass-offer{display:flex;align-items:center;gap:9px;background:radial-gradient(ellipse at 87% 45%,#755337,#2c3940 55%)}.pass-offer>.art-icon{width:clamp(88px,30vw,130px);height:clamp(64px,22vw,102px)}.pass-offer>div{flex:1;min-width:0}.pass-offer p{white-space:normal}.pass-offer p b{color:#ffe093}.pass-offer .primary .quantity{display:flex}.gem-packs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.gem-pack{margin:0;text-align:center;display:grid;gap:3px;justify-items:center;padding:6px 3px}.gem-pack>.art-icon{width:80%;height:54px}.gem-pack h3{margin:0;color:#ffdea3;font-size:12px}.gem-pack .primary{min-height:30px;font-size:10px;padding-inline:3px}.resource-packs li{margin:4px 0;display:flex;align-items:center;gap:7px;padding:4px 7px}.resource-packs li>span:not(.quantity){flex:1;font-size:13px}.resource-packs li .primary{min-height:30px}.world-page{isolation:isolate;min-height:min(810px,max(490px,calc(100dvh - 144px)));display:grid;place-items:center;position:relative;overflow:hidden;border-bottom:1px solid #c0985b;background:#192b3b}.world-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.world-page:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#151e2f42,#14263470 64%,#1b2435b8)}.world-content{width:min(94%,424px);text-align:center;padding:25px 5px}.world-cta{min-height:55px;margin:0 auto;padding:5px 15px;font-size:19px}.world-cta .art-icon{width:36px;height:36px}.world-clock{display:grid;justify-items:center;gap:2px;margin:6px auto;padding:5px 11px;width:max-content;max-width:100%;border:1px solid #d5b272;border-radius:6px;background:#1d2b37e8;font-size:12px}.world-clock b{font-size:19px;color:#ffda92}.world-details{width:fit-content;margin:6px auto 0;border-radius:4px;padding:5px 8px;background:#172534df;font-size:12px}.world-prize{margin-top:18px;padding:7px 7px 8px;border-radius:8px;color:#fff1ca;text-shadow:0 2px 4px #0e1821;background:radial-gradient(ellipse at center,#182437b5,transparent 90%)}.world-prize .art-icon{width:79px;height:73px;margin:0 auto 5px;filter:drop-shadow(0 3px 5px #102533)}.world-prize h1{font-size:clamp(19px,5.2vw,26px);margin:0;line-height:1.4}.world-prize p{font-size:clamp(12px,3.8vw,16px);margin:5px 0 0}.panel{padding-bottom:0}.app:not(.app--battle){height:100dvh;min-height:0;overflow:hidden}.app:not(.app--battle)>.ledger{flex:0 0 auto}.app:not(.app--battle) main{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:0}.app:not(.app--battle) .bottom-menu{position:relative;flex:0 0 auto;width:100%}.bottom-menu .tabs button{min-height:58px;display:grid;place-items:center;padding:1px 2px}.bottom-menu .tabs .art-icon{width:min(94%,54px);height:54px}.app.app--capital main{padding-bottom:0}.bottom-menu{background:linear-gradient(180deg,#354f4d,#233d40 42%,#142832)}.bottom-menu .tabs{background:transparent;padding-bottom:env(safe-area-inset-bottom)}.bottom-menu .tabs button{background:transparent}.bottom-menu .tabs button[aria-current]{background:linear-gradient(180deg,#53825b9c,#223e3bb0)}.battle-launches{position:relative;z-index:2;display:flex;justify-content:center;gap:5px;pointer-events:none}.battle-launches .battle-launch{position:static;translate:none;width:min(142px,40vw);font-size:clamp(12px,3.8vw,16px);pointer-events:auto}.company-portraits{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}.company-portraits button{position:relative;min-width:0;min-height:36px;padding:2px}.company-portraits button[aria-pressed=true],.company-strategy button[aria-pressed=true]{outline:1px solid #ffc96e;background-color:#476648}.company-portraits img{width:min(100%,42px);aspect-ratio:1;object-fit:contain;display:block;margin-inline:auto}.company-strategy{display:grid;gap:7px;padding:5px 0}.company-strategy p{margin:0;font-size:12px}.company-strategy label{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.company-strategy input[type=range]{flex:1;accent-color:#e8ba6e}.battle-launches .battle-launch{min-height:45px;width:min(185px,53vw);border:2px solid #e8bf74;border-radius:12px 12px 3px 3px;background:radial-gradient(ellipse at top,#65825a,#274137 58%,#152a26);box-shadow:inset 0 0 0 2px #4c3a21,inset 0 1px 5px #f7d486a3,0 -2px 9px #0e171cba}.battle-launches .battle-launch:before,.battle-launches .battle-launch:after{content:"◆";color:#e7bf73;font-size:9px;margin-inline:5px}.tech-tree{background:linear-gradient(150deg,#153246,#13232c);border:1px solid #8e7349;color:#fff1c8}.tech-tree header{padding:18px 10px 24px;background:#19333b center / cover no-repeat;text-shadow:0 1px 3px #10181f}.tech-tree header h1,.tech-detail h2{margin:0;color:#f9d895;font-size:20px}.tech-tree header p,.tech-detail p{margin:3px 0;font-size:12px}.tech-progress{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:6px;border-block:1px solid #a68d58;font-size:11px}.tech-progress .art-icon,.tech-detail .quantity img{width:19px;height:19px}.tech-progress progress{flex:1;min-width:46px;accent-color:#68cce5}.tech-branch{direction:rtl;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;align-items:center;padding:10px 5px;border-bottom:1px solid #64583e}.tech-root,.tech-node{position:relative;display:grid;min-width:0;justify-items:center;gap:2px;text-align:center}.tech-root{background:linear-gradient(145deg,#2c5565,#1e363d);border:1px solid #cc9f60;border-radius:10px;padding:5px 2px;font-size:10px}.tech-node.secondary{background:#273f46;border:1px solid #c5a366;border-radius:8px;padding:5px 2px;min-height:64px}.tech-node:before{content:"";position:absolute;inset:49% auto auto 100%;width:9px;height:2px;background:#c5a366}.tech-node[data-state=locked]{filter:grayscale(.85);opacity:.63}.tech-node[data-state=done]{background:#405f39}.tech-node[data-state=active]{outline:1px solid #ffdc80}.tech-node .art-icon,.tech-root .art-icon{width:33px;height:33px}.tech-node small{line-height:1.3;font-size:10px}.tech-detail{padding:8px;border-top:1px solid #967b48}.tech-detail div{display:flex;gap:8px;margin-block:5px}.game-tour{position:fixed;inset:0;z-index:20;pointer-events:none}.game-tour>i{position:absolute;background:#070e15da;pointer-events:auto}.tour-focus{position:absolute;outline:2px solid #ffdb86;box-shadow:0 0 12px #f3cb76;border-radius:6px}.tour-note{position:absolute;inset-inline:max(12px,calc((100vw - 460px)/2));padding:10px;pointer-events:auto;border:1px solid #dcb875;border-radius:9px;color:#fbeccb;background:#223b45}.tour-note header{display:flex;justify-content:space-between;gap:6px}.tour-note p{margin:4px 0 7px;font-size:13px}.tour-actions{display:flex;gap:6px;justify-content:space-between}.starter-choice{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:10px;background:#0a1620dd}.starter-card{max-width:470px;width:100%;max-height:90dvh;overflow-y:auto;padding:12px;border:1px solid #d5aa62;border-radius:12px;background:#1d3440}.starter-card h2,.starter-card p{margin:3px 0 8px}.starter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.starter-grid button{min-width:0;display:grid;justify-items:center;padding:6px}.starter-grid img{width:46px;height:46px}.starter-grid small{font-size:10px}.starter-grid button[aria-pressed=true]{outline:2px solid #ffce76}.starter-card>button{width:100%;margin-top:7px}.commander-recovery{padding:8px;border:1px solid #9a8056;border-radius:7px;background:#223b45}.commander-recovery p{margin:0;font-size:13px}.rest-warning{color:#ffce85}.recovery-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px}.recovery-row img{width:35px;height:35px;object-fit:contain}.recovery-row span{flex:1;display:grid;font-size:12px}.recovery-row button{min-height:31px;font-size:11px}.app--battle .panel{padding-bottom:5px}.battle-loading{padding:24px 12px;text-align:center}.army-rank{display:block;margin:3px 0;color:#fce1a6;font-size:11px}.unit-upgrade{display:block;margin:3px auto 0 0;min-height:27px;padding:2px 6px;font-size:10px}.unit:has(.unit-upgrade){min-height:254px}
