.boot-loading{position:fixed;inset:0;z-index:30;background:#201c16 url(/assets/ui/loading/brass-meridian.webp) center / cover no-repeat;color:#efd7a1;font:clamp(16px,2vw,27px)/1.15 var(--game-font, "Pixel Operator"),monospace;text-shadow:1px 2px #150f0b}.boot-loading-content{position:absolute;inset-inline:0;top:51%;display:grid;justify-items:center;gap:clamp(12px,2.2vh,22px);padding-inline:20px}.boot-loading-title{margin:0;font-size:clamp(40px,min(8.4vw,15vh),140px);line-height:.9;text-shadow:2px 3px #150f0b}.boot-loading [hidden]{display:none}.boot-loading-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:clamp(6px,1.4vh,12px) 12px;width:min(100%,clamp(220px,42vw,650px))}.boot-loading-progress label{grid-column:1 / -1;text-align:center}.boot-loading-progress progress{width:100%;height:clamp(8px,1.25vw,17px);appearance:none;border:1px solid #846d47;background:#15130f;color:#e5c174}.boot-loading-progress progress::-webkit-progress-bar{background:#15130f}.boot-loading-progress progress::-webkit-progress-value{background:#e5c174}.boot-loading-progress progress::-moz-progress-bar{background:#e5c174}.boot-loading-progress output{min-width:4ch;text-align:right}.boot-loading-error{margin:0;text-align:center}.boot-loading-error button{padding:6px 12px;border:2px solid transparent;border-image:url(/assets/runtime/ui/walnut/button.png) 8 12 8 12 fill / 6px 8px / 0 stretch;background:#30261d;color:inherit;font:inherit}@media(min-aspect-ratio:7/3){.boot-loading{background-size:auto 100%}}.dialog:has(.diplomacy-menu){width:min(1080px,100%);padding:24px;font-family:var(--game-font);font-size:20px}.diplomacy-menu h2{color:var(--popup-ink);font-size:30px}.diplomacy-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:24px}.diplomacy-menu button{padding:12px 18px;font:700 20px/1.1 var(--game-font);min-height:46px}.diplomacy-menu button[aria-pressed=true]{outline:2px solid #d6bb7e;outline-offset:-4px}.diplomacy-factions{display:flex;flex-direction:column;gap:12px;align-self:start}.diplomacy-factions button{display:flex;align-items:center;text-align:left;gap:8px;padding:14px 18px}.diplomacy-content{min-width:0;display:grid;gap:18px}.diplomacy-content header{display:flex;align-items:center;justify-content:space-between;gap:16px;color:#d2c19b}.diplomacy-content h3{margin:0;font-size:28px;color:#f4d68e}.diplomacy-attitude{display:flex;flex-wrap:wrap;gap:28px;margin:0}.diplomacy-attitude div{display:flex;gap:10px}.diplomacy-attitude dd{margin:0;color:#f4d68e}.diplomacy-menu :is(p,label,legend,summary,select,input,li){font-family:var(--game-font);font-size:20px;line-height:1.2;color:var(--popup-ink)}.diplomacy-menu p{margin:0}.diplomacy-menu fieldset{min-width:0;margin:0;padding:14px;border:1px solid var(--popup-edge);background:var(--popup-inset);border-radius:0}.diplomacy-menu legend{padding:0 6px;color:#e9cf8f}.diplomacy-menu label{margin:0;display:grid;gap:6px}.diplomacy-menu :is(input[type=number],select){width:100%;min-width:0;padding:8px;border:1px solid var(--popup-edge);border-radius:0;background:var(--popup-inset);box-shadow:inset 0 1px #100e0b;color:var(--popup-ink)}.diplomacy-menu input[type=checkbox]{appearance:auto;accent-color:#b9944d;width:18px;height:18px;padding:0;margin:0;box-shadow:none}#diplomacy-deal{display:grid;gap:16px}.diplomacy-treaty-options{display:flex;flex-wrap:wrap;gap:14px}.diplomacy-menu .diplomacy-treaty-options label,.diplomacy-menu .diplomacy-techs label{display:flex;align-items:center;gap:8px;font-size:19px}.diplomacy-deal-sides,.diplomacy-offer-sides{display:grid;grid-template-columns:1fr 1fr;gap:18px}.diplomacy-deal-sides>fieldset{display:grid;align-content:start;gap:12px}.diplomacy-techs{max-height:200px;overflow:auto;display:grid;gap:9px}.diplomacy-techs label:has(:disabled){color:#938a72}.diplomacy-menu .diplomacy-muted{color:#b4a88b;font-size:18px}.diplomacy-deal-options{display:grid;grid-template-columns:120px 1fr;gap:18px}.diplomacy-inline{display:flex;flex-wrap:wrap;gap:10px}.diplomacy-inline button{flex:1 1 130px}.diplomacy-treaties ul{list-style:none;padding:0;margin:10px 0;display:grid;gap:6px}.diplomacy-treaties li{display:flex;justify-content:space-between;gap:12px}.diplomacy-treaties li span{color:#c0af88}.diplomacy-offer{display:grid;gap:12px;padding:16px;border:1px solid var(--popup-edge);background:var(--popup-inset);border-radius:0}.diplomacy-offer ul{list-style:none;margin:6px 0;padding:0;display:grid;gap:4px}.diplomacy-offer-sides>div>span{color:#e9cf8f}.diplomacy-history ol{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}.diplomacy-history li{display:flex;gap:14px;color:#bfb192;font-size:18px}.diplomacy-history time{flex:0 0 42px;color:#e2c582}.diplomacy-menu summary{cursor:pointer;color:#d7bd83}.diplomacy-menu #diplomacy-evaluation:empty,.diplomacy-menu #diplomacy-result:empty,.diplomacy-menu #diplomacy-confirmation:empty{display:none}#diplomacy-confirmation{display:flex;flex-wrap:wrap;gap:10px}#diplomacy-confirmation p{flex-basis:100%;color:#edbf86}@media(max-width:700px){.dialog:has(.diplomacy-menu){padding:16px}.diplomacy-layout{grid-template-columns:1fr;gap:18px}.diplomacy-factions{flex-direction:row;overflow:auto;gap:8px}.diplomacy-factions button{flex:0 0 150px}.diplomacy-deal-sides{gap:10px}.diplomacy-menu fieldset{padding:10px}.diplomacy-attitude{gap:12px}.diplomacy-menu :is(p,label,legend,summary,select,input,li){font-size:18px}}@media(max-width:430px){.diplomacy-deal-sides{grid-template-columns:1fr}.diplomacy-attitude{font-size:17px}.diplomacy-content h3{font-size:24px}}.time-controls button#diplomacy-menu{width:148px;padding:0 12px;white-space:nowrap}.dialog:has(.campaign-report){width:min(720px,100%)}.campaign-report{font-family:var(--game-font)}.campaign-civilization{margin:0 0 18px;color:var(--popup-muted);font-size:20px;line-height:24px}.campaign-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}.campaign-stat{min-width:0;padding:13px 14px 15px;border:1px solid #66553a;background:var(--popup-inset);box-shadow:inset 0 1px #100e0b}.campaign-stat dt{color:var(--popup-muted);font-size:16px;line-height:20px;min-height:40px}.campaign-stat dd{margin:8px 0 0;color:#f3db9c;font-size:31px;line-height:32px;font-variant-numeric:tabular-nums}@media(max-width:540px){.campaign-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.campaign-stat{padding:10px}.campaign-stat dd{font-size:27px;line-height:28px}}.action-tooltip{position:fixed;z-index:100;pointer-events:none;box-sizing:border-box;width:min(300px,calc(100vw - 16px));padding:10px 12px;font:17px/20px var(--game-font);white-space:pre-line}.action-tooltip[hidden]{display:none}.icon.military-action-icon{background-size:200% 100%;background-repeat:no-repeat;image-rendering:auto}.levy-action-icon{background-position:0 0}.garrison-action-icon{background-position:100% 0}.site-dialog{font-family:var(--game-font)}.site-dialog .site-portrait{display:block;width:120px;height:110px;object-fit:contain;margin:8px auto 14px}.site-dialog .site-costs{color:var(--popup-muted)}.site-dialog #site-error:empty{display:none}.site-dialog #site-error{color:#e89d8e}.quest-dialog{font-family:Pixel Operator,monospace}.quest-dialogue{line-height:1.4}.quest-progress{color:#f2d675}.quest-reward{color:#ffe7a0;font-weight:700}.quest-benefit{color:var(--popup-muted)}.quest-dialog[data-quest-kind="7"] .quest-benefit{color:var(--science-color)}:root{font-family:var(--game-font);color:#f5e7c5;background:#101416;font-synthesis:none;--panel: #1a2225;--muted: #b7b29a;--gold: #c7a66a;--hud-scale: .36;--top-scale: .5;--bar-height: 66px;--slate: url(/assets/runtime/ui/slate.webp);--science-color: #6be2ce;--popup-ink: #f2e6c9;--popup-muted: #b8a88b;--popup-edge: #8b7952;--popup-surface: #30261d;--popup-inset: #241c16;--popup-frame-art: url(/assets/runtime/ui/city-panel-walnut.png);--popup-button-art: url(/assets/runtime/ui/walnut/button.png);--popup-close-art: url(/assets/runtime/ui/walnut/close.png)}*{box-sizing:border-box}.science-text{color:var(--science-color)}body{margin:0;overflow:hidden}button,input,select,textarea,option,optgroup,output,kbd,code,pre,samp{font:inherit}::placeholder{font-family:inherit}button{cursor:pointer;color:inherit;border:1px solid #a68d5b;background:#1d272a}button:hover{background-color:#303b3b}button:active{background-color:#121a1c}button:disabled{opacity:.5;cursor:default}button:focus-visible,canvas:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ffe2a0;outline-offset:-4px}[hidden]{display:none!important}.icon{--icon-size: 24px;width:var(--icon-size);height:var(--icon-size);display:inline-block;flex-shrink:0;vertical-align:middle;image-rendering:pixelated}.atlas-icon{background-image:url(/assets/runtime/puny-world/overworld.png);background-repeat:no-repeat;background-size:calc(var(--icon-size) * 27) calc(var(--icon-size) * 65);background-position:calc(var(--tile-x) * var(--icon-size) * -1) calc(var(--tile-y) * var(--icon-size) * -1)}.character-icon,.palace-icon,.defense-icon{object-fit:contain}.text-icon{display:inline-flex;align-items:center;justify-content:center;font:600 20px/1 var(--game-font);color:#d6b879}.control-symbol{position:relative;color:#d6b879}.control-symbol:before{content:"";position:absolute;inset:3px;background:currentColor}.symbol-play:before{inset:2px 3px 2px 5px;clip-path:polygon(0 0,100% 50%,0 100%)}.symbol-pause:before{inset:3px 4px;background:linear-gradient(to right,currentColor 0 31.25%,transparent 31.25% 68.75%,currentColor 68.75% 100%)}.symbol-check:before{clip-path:polygon(0 40%,20% 40%,40% 65%,80% 10%,100% 10%,100% 35%,40% 100%,0 60%)}.symbol-minus:before{inset:calc(50% - 1px) 4px auto;height:3px}.symbol-compass:before{background:none;border:2px solid currentColor;border-radius:50%}.symbol-compass:after{content:"";position:absolute;inset:0;background:linear-gradient(to right,transparent 46%,currentColor 46% 54%,transparent 54%),linear-gradient(to bottom,transparent 46%,currentColor 46% 54%,transparent 54%)}.symbol-dot:before{inset:9px;border-radius:50%}.retinue-icon{background:url(/assets/runtime/ui/retinue-icon.webp) center / 100% 100% no-repeat;width:40px;height:40px;image-rendering:auto}.game-area{width:100%;height:100dvh;position:relative;isolation:isolate}#world{display:block;width:100%;height:100%;outline:0;image-rendering:pixelated;cursor:crosshair;touch-action:none}.building-activity,.dialog,.leader-skills,.gold-flow-tooltip,.action-tooltip,.army-warning-tooltip,#tile-tooltip,.build-panel,.build-status,.network-status{color:var(--popup-ink);background:var(--popup-surface);background-clip:padding-box;border:solid transparent;border-width:10px 12px;border-image:var(--popup-frame-art) 5 6 5 6 fill / 10px 12px / 0 stretch;border-radius:0;box-shadow:4px 6px #0c111280;font-family:var(--game-font);line-height:20px;text-shadow:none;image-rendering:pixelated;scrollbar-width:thin;scrollbar-color:var(--popup-edge) var(--popup-inset)}.building-activity{position:absolute;z-index:4;width:324px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 72px);padding:14px 14px 16px;overflow:auto;overscroll-behavior:contain;-webkit-user-select:none;user-select:none}.building-activity h2,.dialog h2{margin:0 0 16px;padding:0 36px 12px 0;border-bottom:2px solid var(--popup-edge);font-weight:700;color:var(--popup-ink);line-height:24px}.building-activity h2{font-size:22px}.activity-governor,.activity-upgrades{position:relative}.building-activity label{display:flex;align-items:center;gap:12px;min-height:32px;font-size:14px;cursor:pointer;color:var(--popup-ink)}.building-activity label:hover{color:#fff5db}.building-activity input[type=checkbox]{appearance:none;display:grid;place-items:center;flex:none;width:20px;height:20px;margin:0;border:2px solid var(--popup-edge);border-radius:0;background:var(--popup-inset);box-shadow:inset 2px 2px #130f0d;cursor:pointer}.building-activity input[type=checkbox]:after{content:"";width:8px;height:8px;background:#e4e8b6;opacity:0}.building-activity input[type=checkbox]:checked{background:#6c5631;border-color:#c7ad70}.building-activity input[type=checkbox]:checked:after{opacity:1}.building-activity button,.dialog button,.leader-skills button,.build-actions button{border:solid transparent;border-width:6px 8px;border-radius:0;border-image:var(--popup-button-art) 8 12 8 12 fill / 6px 8px / 0 stretch;background:var(--popup-surface);background-clip:padding-box;box-shadow:none;color:var(--popup-ink);font-family:var(--game-font);text-shadow:none;image-rendering:pixelated}:is(.building-activity,.dialog,.leader-skills,.build-actions) button:hover:not(:disabled){filter:brightness(1.2)}:is(.building-activity,.dialog,.leader-skills,.build-actions) button:active:not(:disabled){filter:brightness(.85)}:is(.building-activity,.dialog,.leader-skills,.build-actions) button:disabled{opacity:.55;color:var(--popup-muted);cursor:not-allowed}.building-activity :is(button,input,select):focus-visible,.dialog :is(button,input,select):focus-visible{outline:2px solid #f6dfa4;outline-offset:3px}.building-activity .activity-close,.dialog .close-dialog{position:absolute;z-index:1;top:10px;right:10px;display:grid;place-items:center;width:28px;height:28px;padding:0}.building-activity .activity-close,.dialog .close-dialog,.leader-skills [data-leader-close],#close-build{border:0;border-image:none;border-radius:0;background:var(--popup-close-art) center / 100% 100% no-repeat;box-shadow:none;color:transparent;font-size:0;line-height:0;image-rendering:pixelated}.dialog .close-dialog .icon{display:none}.building-activity.is-blacksmith{width:300px}.activity-upgrades{display:grid;gap:12px}.activity-upgrade{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-height:48px;padding:6px 8px;text-align:left}.activity-upgrade>*{pointer-events:none}.upgrade-label{font-size:18px;line-height:20px}.activity-upgrades .upgrade-price{grid-row:1}.upgrade-price{grid-column:2;grid-row:1;display:flex;flex:none;align-items:center;gap:4px;color:#e4ca89;font-size:18px;font-variant-numeric:tabular-nums;white-space:nowrap}.upgrade-price .icon{--icon-size: 16px}.activity-upgrade:disabled .upgrade-price{color:#a6ad91}.activity-upgrade.is-max{border-color:#748554}.activity-upgrade.is-max .upgrade-price{color:#c2d69c;font-size:12px}.activity-immigrants,.activity-retinue{width:100%;margin-top:12px}.settlement-upgrade-options{display:grid;gap:6px;margin:6px 0 8px}.activity-settlement{width:100%}.activity-retinue .upgrade-price{grid-row:1}.activity-message{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.activity-message.is-error{position:static;display:block;width:auto;height:auto;overflow:visible;clip-path:none;margin-top:8px;color:#f2a58d;font-size:12px;line-height:16px}.dialog-backdrop{position:fixed;inset:0;display:grid;place-items:center;background:#100d0bb3;padding:24px;z-index:10}.dialog{position:relative;width:min(472px,100%);max-height:calc(100dvh - 64px);overflow:auto;overscroll-behavior:contain;padding:24px;font-size:15px}.dialog h2{font-size:24px;line-height:28px;padding-bottom:16px;overflow-wrap:anywhere}.dialog p{margin:16px 0 0;color:var(--popup-muted);font-size:14px;line-height:22px}.dialog p:empty{display:none}.dialog strong{color:var(--popup-ink)}.dialog button{padding:10px 12px;font-size:15px;min-height:40px}.dialog .close-dialog{min-height:28px}.dialog label{display:block;margin-bottom:8px;color:var(--popup-muted)}.dialog input{width:100%;min-width:0;background:var(--popup-inset);border:2px solid var(--popup-edge);border-radius:0;box-shadow:inset 2px 2px #130f0d;color:var(--popup-ink);padding:10px;font-size:15px}#new-world-form{display:block}.world-style-picker{border:0;padding:0;margin:0 0 20px;min-width:0}.world-style-picker legend{color:var(--popup-muted);margin-bottom:10px}.world-style-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.dialog .world-style{position:relative;margin:0;cursor:pointer}.dialog .world-style input{position:absolute;opacity:0;width:1px;height:1px;padding:0}.world-style-card{display:flex;flex-direction:column;align-items:center;height:100%;min-height:155px;padding:10px 7px;border:1px solid #526052;border-radius:8px;background:#102022;text-align:center;transition:border-color .15s,background .15s}.world-style-card svg{width:64px;max-width:100%;height:44px;margin-bottom:8px;fill:#a4b36b}.world-style-card strong{font-size:14px}.world-style-card small{font-size:11px;line-height:1.5;margin-top:6px;color:var(--popup-muted)}.world-style input:checked+.world-style-card{border-color:#d1bc7f;background:#30412c;box-shadow:inset 0 0 0 1px #d1bc7f}.world-style input:focus-visible+.world-style-card{outline:2px solid #f0deb4;outline-offset:3px}.world-style:hover .world-style-card{border-color:#d1bc7f}#new-landform{width:100%;margin:0 0 16px;padding:9px;color:var(--popup-ink);background:#102022;border:2px solid #73816d;font:inherit}.world-seed-row{display:flex;gap:10px}.world-seed-row input{flex:1}.world-seed-row button{flex:0 0 auto}.dialog .primary,.building-activity .research-start{color:#ffe2a0}.dialog-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.dialog-actions button{flex:1 1 140px}.dialog-actions button:has(.upgrade-price){display:flex;align-items:center;justify-content:space-between;gap:12px}.diplomacy-stats{display:flex;flex-wrap:wrap;gap:12px 20px;color:#c5d0b4;font-size:14px}.controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin:0;gap:10px 16px;font-size:14px;line-height:20px}.controls dt{color:var(--popup-ink)}.controls dd{margin:0;color:var(--popup-muted)}@media(max-width:420px){.dialog{padding:16px}.dialog h2{font-size:22px}.dialog-actions{gap:10px}}@media(pointer:coarse){.building-activity .activity-close,.dialog .close-dialog{top:8px;right:8px;width:44px;height:44px;min-height:44px}.building-activity h2,.dialog h2{min-height:44px;padding-right:48px}}.activity-stack{position:relative;display:grid;gap:10px}.activity-note{margin:2px 0 0;color:var(--popup-muted);font-size:12px;line-height:16px}.activity-note:empty{display:none}.building-activity.is-village h2{margin-bottom:8px}.activity-village{gap:8px}.activity-village .activity-upgrade{min-height:46px;padding:8px;gap:3px 8px}.activity-village .village-status{color:#e7e8da;margin:0 0 2px}.village-trade-summary{padding:8px 0;border-top:2px solid #53634e;border-bottom:2px solid #53634e;font-size:14px;line-height:18px}.village-trade-summary p{margin:0 0 6px}.village-trade-demand strong{color:#f0dba0}.village-trade-pending{margin:0;padding:8px 0;border-top:2px solid #53634e;border-bottom:2px solid #53634e;font-size:14px;line-height:18px;opacity:.7}.village-trade-availability{display:block;color:var(--popup-muted)}.village-trade-summary .village-trade-rate-label{margin-top:8px;color:var(--popup-muted)}.village-trade-summary dl{margin:0}.village-trade-summary dl>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;color:var(--popup-muted)}.village-trade-summary dt,.village-trade-summary dd{margin:0}.village-trade-summary dd{white-space:nowrap;font-variant-numeric:tabular-nums}.village-trade-summary .is-current{color:#d6e5a8}.village-trade-summary .village-trade-unreachable{margin:6px 0 0;color:#dbc19d}.activity-village .village-war{min-height:40px;color:#efb49a}.building-activity.is-archery{width:300px}.building-activity .composition-row{display:grid;grid-template-columns:56px minmax(0,1fr) 26px;gap:8px;font-size:14px;min-height:36px}.activity-composition{margin-top:12px;gap:4px}.activity-composition h3{margin:0;font-size:16px}.building-activity .activity-composition .composition-row{grid-template-columns:96px minmax(0,1fr) 36px;min-height:28px}@media(pointer:coarse){.building-activity .activity-composition .composition-row{min-height:36px}.activity-composition .composition-row input{height:32px}}.activity-composition input:disabled{opacity:.5;cursor:not-allowed}.composition-row input{appearance:none;width:100%;height:24px;min-width:0;margin:0;background:transparent;cursor:pointer}.composition-row input::-webkit-slider-runnable-track{height:8px;border:2px solid var(--popup-edge);background:var(--popup-inset)}.composition-row input::-moz-range-track{height:4px;border:2px solid var(--popup-edge);background:var(--popup-inset)}.composition-row input::-webkit-slider-thumb{appearance:none;width:16px;height:20px;margin-top:-8px;border:2px solid #dfcca0;border-bottom-color:#764;border-right-color:#764;border-radius:0;background:#ad9663;box-shadow:2px 2px #0b1618}.composition-row input::-moz-range-thumb{width:12px;height:16px;border:2px solid #dfcca0;border-bottom-color:#764;border-right-color:#764;border-radius:0;background:#ad9663;box-shadow:2px 2px #0b1618}.composition-row output{color:var(--popup-ink);text-align:right;font-variant-numeric:tabular-nums}.building-activity.is-foundry{width:360px}.activity-militaryAcademy .composition-row{grid-template-columns:64px minmax(0,1fr)}.activity-militaryAcademy select{width:100%;min-width:0;padding:6px;font:inherit;color:var(--popup-ink);background:var(--popup-inset);border:1px solid var(--popup-edge)}.activity-foundry .composition-row{grid-template-columns:65px minmax(0,1fr)}.activity-foundry select{width:100%;min-width:0;padding:6px;font:inherit;color:var(--popup-ink);background:var(--popup-inset);border:1px solid var(--popup-edge)}.activity-foundry [data-convert-cannon]{display:grid;width:100%;grid-template-columns:28px minmax(0,1fr);gap:10px;align-items:center}.activity-foundry [data-convert-cannon] .upgrade-label{grid-column:2}.activity-foundry [data-convert-cannon] .icon{--icon-size: 28px;grid-column:1;grid-row:1}:root{--hud-scale: 1;--top-scale: 1;--bar-height: 46px;--forged-panel: url(/assets/runtime/ui/forged/panel-frame-hud.webp)}.game-area{overflow:clip;container:game-area / size}.game-hud{--game-hud-scale: var(--desktop-hud-scale, 1);position:absolute;top:0;left:0;z-index:3;pointer-events:none;width:calc(100% / var(--game-hud-scale));height:calc(100% / var(--game-hud-scale));transform:scale(var(--game-hud-scale));transform-origin:top left;container:game-area / size}.game-hud .leader-skills{pointer-events:auto}@media(pointer:coarse){.game-hud{--game-hud-scale: var(--touch-hud-scale, 1);--hud-safe-left: calc(env(safe-area-inset-left, 0px) / var(--game-hud-scale));--hud-safe-right: calc(env(safe-area-inset-right, 0px) / var(--game-hud-scale));--hud-safe-bottom: calc(env(safe-area-inset-bottom, 0px) / var(--game-hud-scale))}.game-hud:has(.leader-skills:not([hidden])){z-index:7}}.leader-action-feedback{position:absolute;z-index:1;display:flex;flex-direction:column;align-items:center;gap:2px;transform:translate(-50%,-100%);pointer-events:none;-webkit-user-select:none;user-select:none}.leader-action-feedback .hotbar-art{width:40px;height:40px;max-width:none;flex:none;filter:drop-shadow(0 1px 2px #000);animation:leader-action-flash .18s ease-out}.leader-action-label{padding:2px 6px;border-radius:3px;background:#081319b3;color:#fff0c8;font:bold 14px/1.15 var(--game-font);white-space:nowrap;text-align:center;text-shadow:1px 1px 2px #000}@keyframes leader-action-flash{0%{transform:scale(1.2);filter:brightness(1.8) drop-shadow(0 0 5px #ffe3a0)}to{transform:scale(1);filter:drop-shadow(0 1px 2px #000)}}.resource-bar{position:absolute;z-index:3;top:0;left:0;display:flex;justify-content:space-between;width:100%;height:48px;transform:none;background:none;font-variant-numeric:tabular-nums;-webkit-user-select:none;user-select:none;pointer-events:none;align-items:flex-start;overflow:visible}.resources{display:flex;align-items:stretch;flex:none;width:max-content;height:47px;pointer-events:auto;overflow:hidden}.resource{position:relative;flex:none;height:41px}.resource.food,.resource.gold{width:142px}.resource.population{width:168px}.resource.culture{position:relative;inset:auto;width:134px;background:none}.resource-icon{position:absolute;left:12px;top:7px;width:28px;height:28px;object-fit:contain;pointer-events:none}.resource:after{content:"";position:absolute;top:4px;right:0;width:1px;height:calc(100% - 8px);background:linear-gradient(#d2a25a22,#d2a25a99,#69421f44)}.resource:last-child:after{display:none}.resource-values{position:absolute;display:flex;align-items:center;white-space:nowrap;inset:0 12px 0 50px;background:none;gap:5px}.resource strong{font-size:calc(22px * var(--value-fit, 1));letter-spacing:0;line-height:1}.resource.population .resource-values>span{font-size:calc(21px * var(--value-fit, 1))}#culture-next{display:none}#food-yield,#gold-yield,#culture-rate{font-size:calc(14px * var(--value-fit, 1));line-height:1;color:#bbd58b}#food-yield.negative,#gold-yield.negative,#culture-rate.negative,#gold.negative{color:#e79886}.time-controls{display:flex;align-items:stretch;position:absolute;top:2px;right:3px;height:44px;gap:5px;pointer-events:auto;padding:0}.game-area.observing :is(.resources,.research-toolbar,#pause-spending,#diplomacy-menu,.hotbar,.special-actions,#leader-xp,.leader-skills){display:none}#observer-status{margin:6px;padding:6px 10px;border-radius:3px;background:#101b20d9;color:#f2e4ba;font:18px/1 var(--game-font)}.resources,.research-toolbar,.time-controls button,.time-controls button:is(#speed,#diplomacy-menu){border:3px solid transparent;border-radius:9px;border-image:none;background:linear-gradient(#24313355,#02080999) padding-box,var(--slate) center / 500px 90px padding-box,linear-gradient(135deg,#e8c17a,#8c602f 24%,#d2a25a 45%,#69421f 70%,#d6ad65) border-box;box-shadow:inset 0 0 0 1px #050908,inset 0 2px 2px #d3b47340,inset 0 -2px 3px #000b,0 0 0 1px #0b0d0c,0 2px 3px #000b;color:#f2e4ba;font-family:var(--game-font);image-rendering:auto}.time-controls button,.time-controls button#speed{display:flex;align-items:center;justify-content:center;width:63px;height:44px;padding:0;font-size:21px;text-shadow:1px 2px #000}.time-controls button#menu{display:flex;gap:12px;width:126px}.time-controls button#pause-spending{width:160px;gap:6px;font-size:20px;white-space:nowrap}#pause-spending .symbol-check{--icon-size: 16px;border:1px solid #ad9059;border-radius:2px;background:#101b20}#pause-spending[aria-pressed=false] .symbol-check:before{visibility:hidden}#pause-spending[aria-pressed=true] .symbol-check{color:#ffe3a3;background:#6c5026}.time-controls button#pause-spending[aria-pressed=true]{color:#ffe3a3;box-shadow:inset 0 0 0 1px #d6b666,inset 0 0 12px #af792b66,0 2px 3px #000b}.menu-glyph{display:block;flex:none;width:17px;height:14px;background:linear-gradient(to bottom,currentColor 0 3px,transparent 3px 6px,currentColor 6px 9px,transparent 9px 12px,currentColor 12px 14px);color:#d6b879}.time-controls .text-icon,.speed-value{width:auto;height:auto;background:none;font-size:23px}.time-controls button:hover{filter:brightness(1.25)}.time-controls button:active:not(:disabled){filter:brightness(.85)}#paused{position:absolute;top:52px;left:50%;right:auto;transform:translate(-50%);border:0;padding:4px 12px;background:#101b20b3;border-radius:3px;color:#d4c29e;font-size:12px;pointer-events:none}.selection-panel{z-index:2;position:absolute;inset:55px 5px auto auto;width:250px;height:130px;padding:15px;display:flex;align-items:center;gap:10px;background:var(--forged-panel) center / 100% 100% no-repeat;transform:scale(var(--hud-scale));transform-origin:top right;pointer-events:auto}.selection-panel.empty{visibility:hidden}.portrait{display:flex;align-items:center;justify-content:center;position:relative;inset:auto;width:62px;height:90px;flex:0 0 62px;border:3px ridge #9a7b48;border-radius:4px;background:#071214;box-shadow:inset 0 0 8px #000;overflow:hidden}.portrait:after{display:none}.portrait .icon,.portrait .character-icon{--icon-size: 54px;max-width:100%;height:76px;object-fit:contain}.selection-copy{position:relative;inset:auto;width:auto;height:auto;flex:1;min-width:0}.selection-name{position:static;inset:auto;height:auto;padding:0;margin:0 0 6px;background:none;font-size:17px;line-height:1.15;text-shadow:1px 1px #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selection-stats{display:flex;position:static;width:auto;height:auto;padding:0;flex-direction:column;gap:3px;align-items:flex-start;background:none;font-size:13px;line-height:1.1;color:#e8dcc0}.selection-stats>span{display:flex;gap:6px;white-space:nowrap}.stat-label{color:#d2b77b}.health-track{position:relative;inset:auto;width:94px;height:12px;margin:6px 0 0;border:2px ridge #b0995a;border-radius:2px;background:#16220e}.health-fill{position:absolute;inset:1px;background:#17200e}.health-fill i{display:block;height:100%;background:linear-gradient(#d6e78b,#96bb4a 24%,#88ae38 65%,#b4cd55)}.health-fill:after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(to right,transparent 0,transparent calc(20% - 1px),#14210c calc(20% - 1px),#14210c 20%)}.hud{position:absolute;z-index:2;inset:auto auto 0 0;width:calc(100% / var(--hud-scale));height:290px;transform:scale(var(--hud-scale));transform-origin:bottom left;pointer-events:none}.minimap-panel{position:absolute;bottom:0;left:0;width:274px;height:274px;background:none;transform:none;pointer-events:none}#minimap{position:absolute;left:45px;top:36px;width:184px;height:184px;border-radius:50%;clip-path:circle(50%);pointer-events:auto;background:#000;image-rendering:pixelated;cursor:crosshair}.minimap-frame{position:absolute;inset:0;background:url(/assets/runtime/ui/forged/minimap-frame.webp) center / 100% 100% no-repeat;pointer-events:none}.minimap-north{position:absolute;top:26px;left:126px;width:22px;text-align:center;color:#fff2ce;font-size:19px;text-shadow:1px 2px #000;pointer-events:none}.minimap-control{position:absolute;bottom:37px;z-index:1;pointer-events:auto;width:36px;height:36px;border:3px ridge #b18d52;border-radius:50%;background:radial-gradient(#1d2b2e,#050a0c);box-shadow:0 0 0 2px #080f10;color:#eed8a3;font:23px/1 var(--game-font)}#minimap-zoom-in{left:24px}#minimap-zoom-out{right:24px}.hotbar{position:absolute;left:266px;right:246px;bottom:14px;height:80px;background:#0b1518;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:7px;padding:0 10px;pointer-events:auto}.hotbar:before{content:"";position:absolute;z-index:-1;inset:-72px -62px -18px;background:url(/assets/runtime/ui/forged/hotbar-frame.png) center / 107.6% 210.2% no-repeat;pointer-events:none}.action-slot{container-type:inline-size;position:relative;min-width:0;height:80px;padding:0;border:0;border-radius:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:var(--forged-panel) center / 100% 100% no-repeat;color:#f3e9d0;box-shadow:inset 0 0 12px #0008}.action-slot:disabled{opacity:1;cursor:default}.action-slot:hover:not(:disabled),.action-slot:focus-visible{filter:brightness(1.2)}.action-slot kbd{position:absolute;z-index:3;top:5px;left:7px;padding:0;border:0;background:none;color:#eee0bf;font:20px/1 var(--game-font);text-shadow:1px 2px #000;box-shadow:none}.hotbar-art{display:block;width:min(40px,calc(100% - 10px));aspect-ratio:1;flex:none;background:url(/assets/runtime/ui/forged/retinue-actions-pixel.webp) 0 0 / 200% 100% no-repeat;image-rendering:pixelated;pointer-events:none}.hotbar-stance{background-position:100% 0}.hotbar-auxiliary{background:none}.hotbar-auxiliary .icon{width:100%;height:100%}.hotbar-formation{background:none;color:#dcc17e}.hotbar-formation .icon{width:100%;height:100%}.action-slot[data-hotbar-action=formation][aria-pressed=true]{box-shadow:inset 0 0 15px #b99c4055,inset 0 0 0 2px #e8cb7e}.action-slot.research-locked .hotbar-art,.action-slot.research-locked .hotbar-label{opacity:.35}.hotbar-lock{position:absolute;top:7px;right:6px;width:11px;height:13px;color:#c0ad81}.hotbar-lock[hidden]{display:none}.hotbar-label{display:flex;align-items:center;justify-content:center;max-width:calc(100% - 8px);min-height:1.05em;font:10px/1.05 var(--game-font);font-size:min(10px,calc(15cqi - 1.3px));text-align:center;white-space:nowrap;text-shadow:1px 2px #000;pointer-events:none}@property --hotbar-cooldown-sweep{syntax: "<angle>"; inherits: false; initial-value: 0deg;}.action-slot.cooling:before,.action-slot.cooling:after{content:"";position:absolute;inset:5px;border-radius:2px;pointer-events:none}.action-slot.cooling:before{z-index:2;border:1px solid #ffe6a1;background:#ffd66a55;box-shadow:inset 0 0 12px #ffdb7180,0 0 8px #efbe55;animation:hotbar-press .18s ease-out forwards}.action-slot.cooling:after{z-index:1;background:conic-gradient(from 0deg,transparent var(--hotbar-cooldown-sweep),#020609b3 0);animation:hotbar-cooldown 1s linear forwards}@keyframes hotbar-press{0%{opacity:1}to{opacity:0}}@keyframes hotbar-cooldown{0%{--hotbar-cooldown-sweep: 0deg}to{--hotbar-cooldown-sweep: 360deg}}.special-actions{position:absolute;bottom:11px;right:6px;width:240px;height:202px;padding:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:5px;pointer-events:auto;background:var(--forged-panel) center / 100% 100% no-repeat}.special-actions button{position:relative;min-width:0;padding:4px;border:0;border-radius:5px;background:var(--forged-panel) center / 100% 100% no-repeat;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:0;text-shadow:1px 2px #000}.special-actions button>*{pointer-events:none}.special-actions .action-label{font-size:17px;line-height:1.1;padding-bottom:8px;white-space:nowrap}.special-actions button:hover:not(:disabled),.special-actions button:focus-visible{filter:brightness(1.2)}.special-actions button.active{box-shadow:inset 0 0 0 2px #ffd85b,inset 0 0 12px #f1ae2980,0 0 5px #edb735}.command-art{display:block;width:46px;height:46px;flex:0 0 46px;background-image:url(/assets/runtime/ui/forged/action-symbols.webp);background-repeat:no-repeat;background-size:200% 200%}.command-build,.command-fortify,.command-clear{background-image:url(/assets/runtime/ui/forged/action-symbols-pixel.webp);background-size:300% 100%;image-rendering:pixelated}.command-build{background-position:0 0}.command-fortify{background-position:50% 0}.command-clear{background-position:100% 0}.command-forbid{background-position:100% 100%}.build-panel{position:absolute;right:6px;bottom:218px;width:min(372px,calc(100cqw / var(--hud-scale) - 12px));height:auto;max-height:calc((100cqh - 64px) / var(--hud-scale) - 218px);padding:36px 12px 12px;transform:none;pointer-events:auto;display:flex;flex-direction:column}.build-panel.is-building-menu{padding-bottom:32px}#close-build{position:absolute;right:12px;top:9px;width:28px;height:28px;padding:0}.build-actions{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:5px;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ad8a55 #111c20}.build-actions button{container-type:inline-size;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;min-height:68px;min-width:0;padding:19px 7px 7px;gap:0}.build-actions .action-label{flex-shrink:0;font:clamp(14px,18cqi,18px)/1.1 var(--game-font);text-wrap:balance;white-space:normal;overflow-wrap:anywhere;max-width:100%}:is(.special-actions,.build-actions) kbd{position:absolute;top:5px;right:7px;color:#e5c389;font:13px/1 var(--game-font)}.build-actions button.active{outline:2px solid #d6b666;outline-offset:-5px}.build-actions button:disabled{opacity:.48}.build-status{position:absolute;z-index:3;top:56px;left:12px;width:auto;max-width:min(620px,calc(100% - 280px));height:auto;padding:7px 10px;font-size:12px;line-height:1.4;pointer-events:none}.build-status:empty{display:none}.build-status:not(:empty){margin:0}#tile-tooltip{position:absolute;z-index:3;padding:7px 11px;font-size:12px;line-height:1.4;pointer-events:none;inset:90px auto auto 12px;max-width:min(620px,calc(100% - 280px))}@container game-area (max-width: 1500px){:is(.hud,.selection-panel,.leader-skills){--hud-scale: .9}}@container game-area (max-width: 1250px){:is(.hud,.selection-panel,.leader-skills){--hud-scale: .8}.resources{transform:scale(.85);transform-origin:top left}.time-controls{transform:scale(.85);transform-origin:top right}.selection-panel{top:46px}}@container game-area (max-width: 1000px){:is(.hud,.selection-panel,.leader-skills){--hud-scale: .7}.resources,.time-controls{transform:scale(.74)}}@container game-area (max-width: 880px){.resources,.time-controls{transform:scale(.65)}}@container game-area (max-width: 760px){:is(.hud,.selection-panel,.leader-skills){--hud-scale: .65}.selection-panel{top:36px}.hud{height:420px}.minimap-panel{width:210px;height:210px;left:4px;bottom:0}#minimap{left:34px;top:28px;width:142px;height:142px}.minimap-north{top:17px;left:95px;font-size:17px}.minimap-control{width:30px;height:30px;bottom:26px;font-size:20px}#minimap-zoom-in{left:15px}#minimap-zoom-out{right:15px}.special-actions{right:6px;bottom:9px;width:218px;height:190px}.hotbar{left:10px;right:10px;bottom:214px;height:80px;gap:5px}.hotbar:before{inset:-66px -40px -18px}.action-slot{height:80px}.action-slot kbd{font-size:14px;left:4px}.hotbar-art{width:30px}.build-panel{bottom:310px;max-height:calc((100cqh - 52px) / var(--hud-scale) - 310px)}.build-status{top:38px;max-width:calc(100% - 184px);font-size:11px;left:6px}#tile-tooltip{top:124px;max-width:calc(100% - 12px);left:6px}}@container game-area (max-width: 770px){.resources{transform:scale(.6)}.time-controls{top:32px;transform:scale(.65)}.selection-panel{top:67px}.build-status{top:34px;max-width:calc(100% - 180px)}#paused{position:absolute;top:38px;left:8px;transform:none;font-size:11px}}@media(pointer:fine){@container game-area (max-width: 510px){.time-controls button#menu{width:78px;gap:6px}.time-controls button#pause-spending{width:124px;white-space:normal}.time-controls button:is(#pause,#speed){width:56px}.build-status{top:126px}#paused{top:102px}}}@container game-area (max-width: 360px){:is(.hud,.selection-panel,.leader-skills){--hud-scale: .58}.resources{transform:scale(.51)}}#tile-tooltip .icon{--icon-size: 17px}.special-actions :is([data-action=clear],[data-action=forbid],[data-action=cancel]){touch-action:none}.portrait .character-icon{transform:scale(2);image-rendering:pixelated}.selection-hint{margin-top:5px;max-width:220px;color:#d8c796;font:14px/1.15 Pixel Operator,monospace}.leader-xp{position:absolute;left:276px;right:256px;bottom:112px;height:30px;display:flex;align-items:center;gap:7px;pointer-events:auto;color:#f9e9bd}.leader-xp button{padding:0;font:bold 21px/1 var(--game-font);color:inherit}.leader-xp-open{display:flex;align-items:center;gap:7px;flex:1;min-width:0;height:100%;background:none;border:0;box-shadow:none}.leader-level-badge,.leader-xp-points{position:relative;flex:0 0 38px;height:38px;display:grid;place-items:center;background:#132026;border:3px ridge #e2b55e;border-radius:3px;box-shadow:0 0 0 2px #17140e,inset 0 0 0 2px #65502d;text-shadow:1px 2px #000}.leader-xp-track{position:relative;display:block;flex:1;height:27px;min-width:0;border:3px ridge #c69b4d;border-radius:3px;background:#091218;box-shadow:0 0 0 2px #070f12,inset 0 1px 4px #000;overflow:hidden}.leader-xp-fill{position:absolute;inset:3px auto 3px 3px;max-width:calc(100% - 6px);background:linear-gradient(#677fff,#375afb 45%,#3044cb);box-shadow:inset 0 1px #9eb7ff,0 0 7px #5576ff66;transition:width .25s ease-out}.leader-xp-text{position:absolute;inset:0 8px;display:flex;align-items:center;justify-content:flex-end;color:#fff0c6;font-size:18px;text-shadow:1px 1px #050913,-1px -1px #050913;white-space:nowrap}.leader-xp-points{flex-basis:38px;font-size:21px}.leader-xp-points.has-points{color:#21180b;background:#e8b942;border-color:#ffe292;text-shadow:1px 1px #ffe397;box-shadow:0 0 0 2px #49351b,inset 0 0 0 2px #b17925,0 0 9px #efb73680}.leader-xp button:hover{filter:brightness(1.2)}.leader-xp button:focus-visible{outline:2px solid #fff1be;outline-offset:4px}.leader-skills{position:absolute;z-index:5;right:calc(246px * var(--hud-scale));bottom:max(150px,calc(200px * var(--hud-scale)));width:520px;max-width:calc(100% - 24px);max-height:calc(100cqh - 70px - 200px * var(--hud-scale));padding:18px;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;font:20px/1.1 var(--game-font)}.leader-skills button{font-family:var(--game-font);color:inherit;text-shadow:inherit}.leader-skills button:focus-visible{outline:2px solid #fff1be;outline-offset:2px}.leader-skills-header{display:flex;flex:0 0 auto;align-items:center;gap:16px;padding-bottom:12px;border-bottom:2px solid var(--popup-edge)}.leader-skills-header h2{flex:1;margin:0;font:bold 30px/1 var(--game-font);color:var(--popup-ink)}.leader-skills-level{font-size:23px;font-weight:700;white-space:nowrap}.leader-skills [data-leader-close]{flex:0 0 36px;width:36px;height:36px;padding:0}.leader-skills-bonuses{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid var(--popup-edge);font-size:15px;white-space:nowrap}.leader-skills-points{color:#e4ca89;padding:5px;font-size:18px}.leader-skills-list{display:grid;grid-auto-rows:max-content;align-content:start;gap:8px;margin:12px 0;padding:2px;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--popup-edge) var(--popup-inset)}.leader-skills-list:not(.leader-advanced-skills){flex:0 0 auto}.leader-skill-row{display:grid;grid-template-columns:38px minmax(0,1fr) 55px 44px;align-items:center;gap:10px;padding:10px;min-height:66px;border:1px solid #66553a;border-radius:0;background:var(--popup-inset);text-align:left;box-shadow:inset 0 1px #100e0b}.leader-skill-row.is-pending{border-color:#e1bc68}.leader-skill-icon{display:block;width:36px;height:40px;filter:drop-shadow(1px 2px #000)}.leader-skill-copy{min-width:0;display:flex;flex-direction:column;gap:4px}.leader-skill-copy strong{font-size:23px;line-height:1}.leader-skill-ranks{display:flex;flex-direction:column;align-items:center;gap:7px;font:bold 19px/1 var(--game-font)}.leader-skill-pips{display:flex;gap:3px}.leader-skill-pips i{display:block;width:13px;height:13px;border:2px solid #100e0b;background:#4c4030;box-shadow:inset 1px 1px #7a6849}.leader-skill-pips i.earned{background:#e2b341;box-shadow:inset 1px 1px #ffe493}.leader-skill-pips.expanded{display:grid;grid-template-columns:repeat(5,9px);gap:2px}.leader-skill-pips.expanded i{width:9px;height:9px}.leader-skills [data-leader-learn]{width:44px;min-width:44px;height:44px;padding:0;font:bold 32px/1 var(--game-font)}.leader-skills [data-leader-learn]:hover:not(:disabled){filter:brightness(1.25)}.leader-skills [data-leader-learn]:disabled{opacity:.4;cursor:default}.leader-skills [data-leader-learn][aria-busy=true]{opacity:.8}.leader-skill-status{flex-shrink:0;margin:4px 0 0;font-size:16px;color:#f2bcb0}.leader-skill-status:empty{display:none}.leader-advanced-heading{flex:0 0 auto;color:#d5bb83;font-size:17px;border-top:1px solid #75603d;padding-top:9px}.leader-skills-list{flex:0 0 auto;overflow:visible}.leader-advanced-skills{margin-bottom:0}.leader-skill-row.is-locked .leader-skill-icon{opacity:.4}@container game-area (max-width: 1000px){.leader-skills{width:480px;padding:14px}}@container game-area (max-width: 760px){.leader-xp{left:20px;right:20px;bottom:312px}.leader-skills{right:12px;bottom:calc(352px * var(--hud-scale));width:380px;max-height:calc(100cqh - 90px - 352px * var(--hud-scale));padding:10px}.leader-skills-header{gap:10px;padding-bottom:8px}.leader-skills-header h2{font-size:26px}.leader-skills-level{font-size:20px}.leader-skills-bonuses{gap:5px;font-size:13px}.leader-skills-points{font-size:15px}.leader-skill-row{grid-template-columns:26px minmax(0,1fr) 35px 44px;gap:5px;padding:7px}.leader-skill-icon{width:25px;height:29px}.leader-skill-copy strong{font-size:20px}.leader-skill-ranks{font-size:17px}.leader-skill-pips{gap:2px}.leader-skill-pips i{width:9px;height:9px}.leader-skill-pips.expanded{grid-template-columns:repeat(5,5px)}.leader-skill-pips.expanded i{width:5px;height:7px;border-width:1px}}@container game-area (max-height: 600px){.leader-skills{z-index:20;inset:46px auto 8px 50%;transform:translate(-50%);width:min(560px,calc(100% - 120px));max-height:calc(100cqh - 54px);padding:10px}.leader-skills-header{padding-bottom:6px}.leader-skills-header h2{font-size:24px}.leader-skills-level{font-size:19px}.leader-skills-bonuses{padding:5px 0;font-size:13px}.leader-skills-points{padding:3px 5px;font-size:15px}.leader-skills-list{gap:6px;margin:7px 0}.leader-skills-list:not(.leader-advanced-skills){grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}.leader-skills-list:not(.leader-advanced-skills) .leader-skill-row{grid-template-columns:minmax(0,1fr) 44px;padding:6px;gap:4px;min-height:92px}.leader-skills-list:not(.leader-advanced-skills) .leader-skill-icon,.leader-skills-list:not(.leader-advanced-skills) .leader-skill-pips{display:none}.leader-skills-list:not(.leader-advanced-skills) .leader-skill-copy strong{font-size:19px}.leader-skills-list:not(.leader-advanced-skills) .leader-skill-ranks{grid-column:1;align-items:flex-start;font-size:15px}.leader-skills-list:not(.leader-advanced-skills) [data-leader-learn]{grid-column:2;grid-row:1 / span 2}.leader-advanced-heading{padding-top:5px;font-size:15px}.leader-advanced-skills{margin-bottom:0}.leader-advanced-skills .leader-skill-row{min-height:76px;padding:7px}.leader-advanced-skills .leader-skill-copy strong{font-size:20px}}@media(prefers-reduced-motion:reduce){.leader-xp-fill{transition:none}}.research-toolbar{position:absolute;left:604px;top:2px;display:flex;align-items:center;gap:8px;width:clamp(218px,calc(100% - 1194px),334px);height:44px;padding:3px 8px;pointer-events:auto}.research-toolbar-icon{width:28px;height:28px;flex:none;object-fit:contain;image-rendering:pixelated}.research-toolbar-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--science-color);font-size:23px;font-weight:700;line-height:1}.research-toolbar-eta{flex:none;white-space:nowrap;font-size:17px;line-height:1;color:var(--science-color)}@container game-area (max-width: 1250px){.research-toolbar{left:512px;width:clamp(220px,calc(100% - 880px),290px);height:37px;padding:3px 7px;gap:6px}.research-toolbar-icon{width:23px;height:23px}.research-toolbar-name{font-size:21px}.research-toolbar-eta{font-size:16px}}@container game-area (max-width: 1000px){.research-toolbar-icon{display:none}}@media(pointer:fine){@container game-area (max-width: 1411px){.research-toolbar{top:50px}}@container game-area (max-width: 1250px){.research-toolbar{top:44px}.selection-panel{top:88px}}@container game-area (max-width: 880px){.research-toolbar{left:auto;right:4px;top:36px;height:29px;padding:3px 5px;gap:4px}.research-toolbar-name{font-size:19px}.research-toolbar-eta{font-size:14px}.selection-panel{top:76px}}@container game-area (max-width: 770px){.research-toolbar{left:5px;right:auto;top:68px;width:min(250px,calc(100% - 10px))}.selection-panel{top:106px}}}.resource.gold{pointer-events:auto}.resource.gold:focus-visible{outline:2px solid #e6c479;outline-offset:-4px;border-radius:3px}.gold-flow-tooltip{position:fixed;z-index:8;width:304px;max-width:calc(100vw - 16px);padding:12px 14px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;pointer-events:auto;font:15px/18px var(--game-font);font-variant-numeric:tabular-nums;-webkit-user-select:none;user-select:none}.gold-flow-tooltip[hidden]{display:none}.gold-flow-header{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding-bottom:8px;border-bottom:1px solid var(--popup-edge)}.gold-flow-header strong{color:#efd392;font-size:19px;font-weight:600}.gold-flow-header span{color:var(--popup-muted);font-size:12px}.gold-flow-section{margin-top:9px}.gold-flow-heading{display:flex;justify-content:space-between;gap:12px;font-size:15px}.gold-flow-heading>span{color:#ddd4b8}.gold-flow-heading strong{font-weight:600}.gold-flow-rows{margin:4px 0 0}.gold-flow-rows:empty{display:none}.gold-flow-row{display:flex;justify-content:space-between;gap:14px;padding:1px 0 1px 8px;font-size:14px;line-height:17px}.gold-flow-row dt{min-width:0;color:var(--popup-muted)}.gold-flow-row dd{margin:0;flex:none}.gold-flow-row[data-category=science] dt{color:var(--science-color)}.gold-flow-section.is-income dd,.gold-flow-section.is-income strong,.gold-flow-net .is-positive{color:#a7ce8c}.gold-flow-section.is-outlay dd,.gold-flow-section.is-outlay strong,.gold-flow-net .is-negative{color:#e5aa87}.gold-flow-net{display:flex;justify-content:space-between;gap:12px;margin-top:10px;padding-top:8px;border-top:1px solid var(--popup-edge);color:#efd392;font-size:17px}.gold-flow-net strong{font-weight:600}@media(max-width:600px){.gold-flow-tooltip{width:278px;padding:10px 12px}.gold-flow-header span{font-size:11px}}.army-warnings{position:absolute;inset:0;z-index:6;pointer-events:none}.army-warnings[hidden],.army-warning-tooltip[hidden]{display:none}.army-warning{position:absolute;transform:translate(-50%,-50%);width:36px;height:36px;display:grid;place-items:center;padding:0;margin:0;border-radius:50%;background:var(--faction-color);border:2px solid #fff5d3;box-shadow:0 0 0 2px #101515,inset 0 -4px #0005,0 3px 8px #0008;color:#fff;font:700 34px/32px var(--game-font);text-shadow:2px 2px #101515;cursor:help;pointer-events:auto;touch-action:manipulation}.army-warning-sign{animation:army-warning-flash .7s ease-in-out infinite}.army-warning[data-kind=attack]{animation:army-warning-flash .8s ease-in-out infinite}.army-warning[data-kind=attack] .army-warning-sign{animation:none}.army-warning:hover,.army-warning:active{background:var(--faction-color);border-color:#fff5d3}.army-warning:focus-visible{outline:2px solid white;outline-offset:4px}.army-warning-bearing{display:none;position:absolute;top:50%;left:50%;width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:8px solid #fff5d3;transform-origin:0 0;transform:rotate(var(--bearing)) translate(22px,-5px);filter:drop-shadow(1px 1px 1px #000)}.army-warning[data-edge=true] .army-warning-bearing{display:block}.army-warning-tooltip{position:absolute;box-sizing:border-box;width:300px;padding:9px 12px;font:17px/20px var(--game-font);text-align:center;pointer-events:none;z-index:1}.army-warning-sign.town-icon{width:26px;height:26px;background:var(--town-icon) center / contain no-repeat;image-rendering:pixelated}@keyframes army-warning-flash{0%,to{opacity:1}50%{opacity:.25}}@media(prefers-reduced-motion:reduce){.army-warning-sign,.army-warning[data-kind=attack]{animation:none}}.offensive-placement{position:absolute;z-index:12;top:72px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:18px;padding:8px 12px;border:1px solid #b69b58;border-radius:6px;background:#211c15ed;color:#fff1c1;font-family:var(--game-font)}.offensive-placement[hidden]{display:none}img[data-research=officerCorps]{object-fit:cover;object-position:right}.offensive-placement button{min-height:32px}.offensive-placement strong{white-space:nowrap}.hotbar-offensive{background-image:url(/assets/runtime/ui/forged/retinue-actions-pixel.webp);background-size:200% 100%;background-position:100% 0}.game-area.placing-offensive #world{cursor:crosshair}.action-slot[data-hotbar-action=offensive][aria-pressed=true]{box-shadow:inset 0 0 15px #b99c4055,inset 0 0 0 2px #e8cb7e}.building-activity.is-marketplace{width:394px}.marketplace-destination>span{color:var(--popup-muted)}.marketplace-destination select{min-width:0;flex:1;min-height:36px;padding:4px 8px;border:2px solid var(--popup-edge);border-radius:0;background:var(--popup-inset);color:var(--popup-ink);font-family:var(--game-font)}.marketplace-apply.activity-upgrade{display:block;width:100%;min-height:39px;margin-top:8px;padding:2px 4px;text-align:center}.marketplace-heading{display:flex;justify-content:space-between;gap:8px;margin-top:15px;font-size:15px}.marketplace-heading [data-market-eta]{color:var(--popup-muted);white-space:nowrap}.marketplace-status,.marketplace-route{display:inline-block;margin:3px 6px 8px 0;font-size:14px}.marketplace-status{color:var(--popup-muted)}.marketplace-route{color:#ecd59d}.marketplace-yields{width:100%;border-collapse:collapse;font-size:15px}.marketplace-yields th,.marketplace-yields td{padding:5px}.marketplace-yields th:first-child{text-align:left;font-weight:400}.marketplace-yields th:not(:first-child),.marketplace-yields td{text-align:right;white-space:nowrap}.marketplace-yields thead{color:var(--popup-muted);border-bottom:1px solid var(--popup-edge)}.marketplace-yields .icon{--icon-size: 15px}.marketplace-yields .science-icon{width:15px;height:15px}.marketplace-yields td:nth-child(2){color:#ecd59d}.marketplace-yields :is(th,td):nth-child(3){color:var(--science-color)}.marketplace-yields tbody{background:#21191266}.marketplace-yields .marketplace-last{border-top:1px solid var(--popup-edge)}.building-activity.is-shipyard{width:560px;max-width:calc(100vw - 24px);padding:18px}.activity-shipyard{width:100%;min-width:0;font-family:var(--game-font)}.activity-shipyard p{margin:10px 0;font-size:17px}.activity-shipyard fieldset{margin:0;padding:10px;min-width:0;border:1px solid #66553a;background:var(--popup-inset)}.activity-shipyard legend{padding:0 6px;color:var(--popup-ink);font-size:17px}.activity-shipyard button{font:17px/1.1 var(--game-font);cursor:pointer}.naval-classes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.naval-classes button{display:grid;justify-items:center;gap:6px;padding:8px 4px}.naval-classes img{width:72px;height:64px;object-fit:contain}.activity-shipyard button[aria-pressed=true]{outline:2px solid #d6bb7e;outline-offset:-4px}.naval-weapons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.naval-weapons [hidden]{display:none}.naval-weapon-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.naval-weapon-options button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:80px;padding:5px 2px;font-size:16px}.naval-weapon-options img{width:44px;height:38px;object-fit:contain}.naval-marines{margin-top:14px!important}.naval-marines>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.naval-marines button{min-height:36px;padding:7px}.activity-shipyard .activity-upgrade{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;margin-top:12px;text-align:left}.naval-status{color:#e7ca8c}.naval-hotbar-icon{width:42px;height:42px;object-fit:contain}@media(max-width:450px){.building-activity.is-shipyard{padding:12px}.naval-weapons{grid-template-columns:1fr}.naval-classes img{width:56px;height:52px}}.activity-achievements{display:flex;flex-direction:column;flex:1;min-height:0;gap:8px}.achievement-balance{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 20px;padding:8px 10px;border:1px solid #66553a;background:var(--popup-inset);font-size:17px}.achievement-balance>span:first-child{display:flex;align-items:center;gap:7px}.achievement-available{color:#f4d485}.achievement-invested{color:var(--popup-muted)}.achievement-currency{width:20px;height:20px;object-fit:contain;vertical-align:middle}.achievement-purchase-controls{display:flex;flex-direction:column;align-items:stretch;gap:8px}.building-activity.is-library.is-forum .achievement-node{top:calc(var(--achievement-row) * 33.333333% + 4.666667%);height:24%}.building-activity.is-forum .research-tree-scroll{overflow-y:auto}.building-activity.is-forum .achievement-board{min-height:300px}.building-activity.is-library.is-forum .research-detail{min-height:92px}@media(max-width:600px){.achievement-balance{font-size:15px}.achievement-invested{font-size:13px}.building-activity.is-library.is-forum .research-detail{grid-template-columns:minmax(0,1fr);gap:10px}.building-activity.is-forum .achievement-purchase-controls{gap:4px}}.building-activity.is-library.is-forum .achievement-buy{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;padding:8px 12px;font:16px/18px var(--game-font);white-space:normal}.building-activity.is-library.is-forum .achievement-buy:disabled{opacity:.55;cursor:default}.building-activity.is-library{isolation:isolate;display:flex;flex-direction:column;width:1340px;height:min(700px,calc(100dvh - 104px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 104px);padding:22px 26px;overflow:hidden;font-family:var(--game-font)}.building-activity.is-library h2{flex:none;margin:0 0 12px;padding:0 40px 12px 0;color:var(--popup-ink);font-size:24px;line-height:26px;text-align:left}.building-activity.is-library .activity-close{top:18px;right:22px}.activity-research{--research-selection: var(--science-color);display:flex;flex-direction:column;gap:8px;flex:1;min-height:0}.research-funding{flex:none;display:grid;grid-template-columns:245px minmax(80px,1fr);align-items:center;gap:20px;padding:5px 10px;border:1px solid #6d5938;background:var(--popup-inset)}.building-activity.is-library .research-funding label{min-height:22px;gap:10px;font-size:16px;white-space:nowrap}.research-allocation-value{color:var(--science-color);font-size:18px;min-width:38px;text-align:right;margin-left:auto}.research-funding input[type=range]{--allocation: 10%;width:100%;min-width:0;height:20px;margin:0;appearance:none;background:transparent;cursor:pointer}.research-funding input[type=range]::-webkit-slider-runnable-track{height:6px;background:linear-gradient(to right,var(--science-color) 0 var(--allocation),#17120e var(--allocation) 100%);border:1px solid var(--popup-edge);border-radius:2px}.research-funding input[type=range]::-webkit-slider-thumb{appearance:none;width:14px;height:20px;margin-top:-8px;border:2px ridge var(--science-color);border-radius:2px;background:var(--science-color);box-shadow:0 1px 3px #000}.research-funding input[type=range]::-moz-range-track{height:6px;background:#17120e;border:1px solid var(--popup-edge)}.research-funding input[type=range]::-moz-range-progress{height:6px;background:var(--science-color)}.research-funding input[type=range]::-moz-range-thumb{width:12px;height:18px;border:2px ridge var(--science-color);border-radius:2px;background:var(--science-color)}.research-queue{flex:none;min-height:25px;display:flex;align-items:center;gap:10px;overflow:hidden}.research-queue-label{color:#d9bd84;font-size:14px;flex:none}.research-queue-list{display:flex;gap:6px;align-items:center;min-width:0;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#80663f var(--popup-inset)}.research-queue-list:not(:has(>:not([hidden]))){display:none}.building-activity.is-library .research-queue-chip{flex:none;padding:5px 9px;font:13px/16px var(--game-font);white-space:nowrap}.building-activity.is-library .research-queue-chip.is-selected{outline:1px solid #d6bb7e;outline-offset:-3px}.research-tree-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9b8151 var(--popup-inset);border-top:1px solid #66553a;border-bottom:1px solid #66553a;touch-action:pan-x pan-y}.research-tree-scroll::-webkit-scrollbar{width:9px;height:9px}.research-tree-scroll::-webkit-scrollbar-track{background:var(--popup-inset)}.research-tree-scroll::-webkit-scrollbar-thumb{background:#806c44;border:2px solid var(--popup-inset);border-radius:4px}.research-board{position:relative}.research-connections{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.research-edge{fill:none;stroke:#8b7952;stroke-width:1.6}.research-edge-line{opacity:.72}.research-edge .research-edge-halo{stroke:#30261d;stroke-width:5px;stroke-linecap:round}.research-edge path{vector-effect:non-scaling-stroke;stroke-linejoin:round}.research-edge.is-open{stroke:#b3a772}.research-edge.is-selected{stroke:#f0d187;stroke-width:2}.research-edge.is-open .research-edge-line{opacity:.85}.research-edge.is-selected .research-edge-line{opacity:1}.building-activity.is-library .research-node{position:absolute;width:var(--research-card-width);height:var(--research-card-height);display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:8px;padding:5px 9px;text-align:left;cursor:pointer}.building-activity.is-library .research-node.is-selected{outline:2px solid var(--research-selection, #d6bb7e);outline-offset:-4px}.building-activity.is-library .research-node.is-current:not(.is-selected){outline:1px solid var(--research-selection, #c3b481);outline-offset:-4px}.building-activity.is-library .research-node.is-priority:not(.is-selected):not(.is-current){outline:1px solid var(--popup-edge);outline-offset:-4px}.building-activity.is-library .research-node:focus-visible{outline-offset:-4px}.research-node-frame{position:relative;display:block;width:40px;height:40px;padding:2px;border:1px solid #8a734b;background:#1a1510;box-shadow:inset 1px 1px #000}.research-node-icon{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.research-node-copy{display:grid;gap:2px;min-width:0}.research-node-copy strong{color:#efe0bd;font-size:17px;line-height:17px;font-weight:600}.research-node-meta{display:flex;align-items:center;gap:7px;min-width:0}.research-node-price{display:flex;align-items:center;gap:4px;color:#e4ca89;font-size:12px;line-height:13px;font-variant-numeric:tabular-nums}.research-cost-number{color:var(--science-color)}.research-node-price .science-icon{width:14px;height:14px}.research-node.is-complete .research-node-frame{border-color:#93a56b}.research-node.is-locked .research-node-icon{opacity:.65}.research-node.is-locked .research-node-copy strong{color:#c3c0ae}.research-node-progress{position:absolute;left:8px;right:8px;bottom:2px;height:2px;background:#17120e}.research-node-progress>span{display:block;height:2px;background:var(--science-color)}.building-activity.is-library .research-detail{flex:none;display:grid;grid-template-columns:46px minmax(0,1fr) 230px;gap:13px;align-items:center;min-height:92px;padding:10px 12px;border:1px solid #66553a;border-radius:0;background:var(--popup-inset)}.research-detail-icon{width:46px;height:46px;padding:3px;object-fit:contain;image-rendering:pixelated;border:1px solid #9d8050;background:#1a1510}.research-detail-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.research-tech{margin:0;color:#f0d6a0;font-size:20px;line-height:1.05;font-weight:600}.research-detail-controls{display:flex;flex-direction:column;gap:8px;min-width:0}.research-priority-actions{display:flex;gap:6px}.building-activity.is-library .research-priority-actions button{flex:1;min-height:34px;padding:6px 8px;font:14px/16px var(--game-font);white-space:normal}.research-progress{width:100%;height:7px;border:1px solid var(--popup-edge);border-radius:0;overflow:hidden;appearance:none;background:#17120e;accent-color:var(--science-color)}.research-progress::-webkit-progress-bar{background:#17120e}.research-progress::-webkit-progress-value{background:var(--science-color)}.research-progress::-moz-progress-bar{background:var(--science-color)}.research-status{display:flex;justify-content:space-between;gap:4px 8px;color:var(--science-color);font-size:12px;line-height:14px;font-variant-numeric:tabular-nums}.research-activity{display:flex;align-items:center;gap:5px}.research-activity .science-icon{width:13px;height:13px}@media(max-width:900px){.building-activity.is-library .research-detail{grid-template-columns:minmax(0,1fr) 200px;gap:12px;min-height:92px}.research-detail-icon{display:none}}@media(max-height:620px)and (min-width:601px){.building-activity.is-library{padding:16px 22px;height:calc(100dvh - 86px);max-height:calc(100dvh - 86px)}.building-activity.is-library h2{font-size:20px;line-height:22px;margin-bottom:5px;padding-bottom:5px}.building-activity.is-library .activity-close{top:16px;right:22px}.activity-research{gap:5px}.research-funding{padding:3px 8px}.research-queue{min-height:22px}.research-node-copy strong{font-size:12px;line-height:11px}.research-node-copy{gap:0}.research-node-price{font-size:10px;line-height:11px}.research-node-price .science-icon{width:12px;height:12px}.building-activity.is-library .research-node{padding:2px 8px;grid-template-columns:26px 1fr}.research-node-frame{width:26px;height:26px}.building-activity.is-library .research-detail{min-height:90px;padding:7px 10px}.research-tech{font-size:18px}.research-detail-controls{gap:5px}}@media(max-width:600px){.building-activity.is-library{height:min(724px,calc(100dvh - 92px));max-height:calc(100dvh - 92px);max-width:calc(100vw - 12px);padding:20px 14px}.building-activity.is-library .activity-close{right:15px;top:20px}.research-funding{grid-template-columns:1fr;gap:2px;padding:5px 8px}.building-activity.is-library .research-funding label{font-size:14px}.research-queue{gap:6px}.research-queue-label{font-size:12px}.building-activity.is-library .research-detail{grid-template-columns:1fr;min-height:120px;gap:9px;padding:9px 10px}.research-tech{font-size:19px}.research-detail-controls{gap:6px}.research-priority-actions{max-width:100%}.research-detail-copy{gap:4px}}.resource-activity{width:310px}.resource-activity .resource-message{margin:0;color:var(--popup-ink);font:14px/18px var(--game-font)}.resource-activity .resource-message:empty{display:none}.resource-activity .resource-count{grid-column:1 / -1}.frontend-account.menu-sheet{padding:18px 22px;container-type:inline-size}.frontend-account>header{margin-bottom:10px}.frontend .frontend-account h1{font-size:32px}.frontend .frontend-account .account-plate{width:100%;height:44px;aspect-ratio:auto;padding:0 12px 2px 15%;justify-content:center;font:700 clamp(16px,6.6cqi,22px)/1 var(--game-font);letter-spacing:0;text-align:center}.frontend .frontend-account .account-plate>span:not([aria-hidden]){min-width:0;max-width:100%;white-space:normal}.frontend .account-plate:focus-visible{outline:2px solid #f7dfa0;outline-offset:5px}.account-divider{height:1px;margin:15px 0 12px;background:#786440}.account-form{display:grid;gap:6px}.account-form label{font-size:18px;line-height:1.1}.account-form input+label{margin-top:5px}.account-form input{padding:6px 9px}.account-form input:user-invalid{border-color:#eb9a77}.account-form input::placeholder{color:#a69b80}.account-form .frontend-hint{margin:0;font-size:15px}.frontend .account-form .account-submit{margin-top:14px}.frontend .account-link,.frontend .account-link:hover{min-height:32px;padding:3px 0;border:0;border-radius:0;background:none;box-shadow:none;color:#ebca83;font:19px/1.2 var(--game-font);text-decoration:underline;text-underline-offset:3px;cursor:pointer}.frontend .account-link:hover{color:#fff0bb}.account-forgot{justify-self:end}.account-navigation{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin-top:12px;font-size:18px}.account-notice{margin:14px 0 0;padding:9px 10px;border-left:2px solid #d3a24f;background:#14120fbf;color:#f0c977;font-size:18px;line-height:1.25;overflow-wrap:anywhere}.account-notice:empty{display:none}.frontend .frontend-account .account-guest{margin-top:14px}.frontend-main>.menu-account{max-width:100%;overflow-wrap:anywhere;text-shadow:1px 1px #17130b}.frontend.is-compact .frontend-account .account-plate{height:44px;aspect-ratio:auto;padding:0 12px 2px 15%;font-size:clamp(16px,6.6cqi,22px)}.frontend.is-creating-account .frontend-account{visibility:hidden}.frontend .account-dialog{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:22px;border:1px solid #9b7a49;border-radius:8px;background:#221b13;color:#f4e6c3;box-shadow:0 10px 35px #0009;font:20px/1.25 var(--game-font)}.account-dialog::backdrop{background:#0b0906b8}.frontend .account-dialog h2{margin:0;font:700 24px/1.15 var(--game-font)}.account-dialog p{margin:12px 0 18px}.account-dialog-actions{display:flex;flex-wrap:wrap;gap:14px;justify-content:flex-end}.frontend .account-dialog .menu-button{min-height:40px;height:auto;padding:7px 14px 7px 33px;font:700 19px/1.1 var(--game-font);white-space:normal}.frontend .account-dialog .menu-button:focus-visible{outline:2px solid #f7dfa0;outline-offset:4px}.account-dialog-progress{display:flex;align-items:center;justify-content:center;min-height:64px;gap:10px;text-align:center}.frontend-feedback-backdrop{position:absolute;inset:0;z-index:10;display:grid;place-items:center;padding:20px;background:#0b0d0bcb;pointer-events:auto}.frontend-feedback-backdrop[hidden]{display:none}.frontend .feedback-dialog.menu-sheet{position:static;width:min(560px,100%);max-height:calc(100dvh - 40px);margin:0;padding:24px;overflow:auto}.frontend .feedback-dialog>header{display:flex;align-items:center;gap:16px;margin-bottom:20px}.frontend .feedback-dialog h1{font-size:32px}.feedback-form.frontend-form{gap:12px}.feedback-form label{font-size:22px}.frontend .feedback-form textarea{display:block;width:100%;min-height:150px;resize:vertical;border:2px solid #7c6a45;border-radius:4px;background:#13120f;color:#eedfba;padding:10px 12px;font:22px/1.25 var(--game-font)}.frontend .feedback-form textarea:focus-visible{outline:2px solid #f7dfa0;outline-offset:3px}.feedback-form textarea[readonly]{opacity:.75}.feedback-identity{margin:0;color:#b9b195;font:18px/1.25 var(--game-font)}.feedback-status{margin:0;color:#f0c977;white-space:pre-wrap;overflow-wrap:anywhere;font:20px/1.25 var(--game-font)}.feedback-status:empty{display:none}.frontend .feedback-dialog .feedback-plate{height:44px;justify-content:center;padding:0 14px 2px 32px;font-size:21px;text-align:center}.frontend .feedback-dialog .feedback-close{flex:none}.feedback-send{justify-self:start}@media(max-width:480px){.frontend-feedback-backdrop{padding:14px}.frontend .feedback-dialog.menu-sheet{max-height:calc(100dvh - 28px);padding:18px}.frontend .feedback-dialog h1{font-size:28px}.frontend .feedback-dialog>header{gap:12px}}.movement-guide{--step-time: .8s;--guide-time: calc(4 * var(--step-time));display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px 20px;width:min(100%,386px);margin:16px auto 22px;padding:12px 15px;border:1px solid #655537;background:#16140ee6;color:#eadbb9;font:18px/1 var(--game-font),monospace}.movement-guide figcaption{grid-column:1 / -1}.movement-guide-keys{display:grid;grid-template-columns:repeat(3,clamp(22px,6vw,31px));justify-items:stretch;gap:4px}.movement-guide-keys kbd{display:grid;place-items:center;aspect-ratio:1;color:#e3d3ad;background:#332b20;border:1px solid #806d48;box-shadow:0 2px #0e0c08;font:700 17px/1 var(--game-font),monospace;animation:guide-key var(--guide-time) steps(1,end) infinite;animation-delay:var(--direction-offset, 0s)}.movement-guide-keys [data-guide-key=w]{grid-column:2;grid-row:1}.movement-guide-keys [data-guide-key=a]{grid-column:1;grid-row:2}.movement-guide-keys [data-guide-key=s]{grid-column:2;grid-row:2}.movement-guide-keys [data-guide-key=d]{grid-column:3;grid-row:2}.movement-guide [data-guide-key=a]{--direction-offset: calc(-3 * var(--step-time));--walk-row: -64px}.movement-guide [data-guide-key=s]{--direction-offset: calc(-2 * var(--step-time));--walk-row: -128px}.movement-guide [data-guide-key=d]{--direction-offset: calc(-1 * var(--step-time));--walk-row: -192px}.movement-guide-field{--guide-x: min(20%, 47px);--guide-y: 20px;position:relative;height:104px;overflow:hidden;background:#7f9e46 url(/assets/ui/loading/leader-clearing.webp) center / cover;border:1px solid #8b7952;image-rendering:pixelated}.movement-guide-leader{--guide-center-x: calc(50% - 32px) ;--guide-center-y: calc(50% - 29px) ;--guide-left: calc(var(--guide-center-x) - var(--guide-x));--guide-right: calc(var(--guide-center-x) + var(--guide-x));--guide-top: calc(var(--guide-center-y) - var(--guide-y));--guide-bottom: calc(var(--guide-center-y) + var(--guide-y));position:absolute;left:var(--guide-center-x);top:var(--guide-center-y);width:64px;height:64px;animation:guide-route var(--guide-time) linear infinite}.movement-guide-leader span{position:absolute;inset:0;background:url(/assets/ui/loading/leader-walk.webp) 0 var(--walk-row, 0px) / 256px 256px no-repeat;visibility:hidden;animation:guide-direction var(--guide-time) steps(1,end) infinite,guide-walk .4s steps(4) infinite;animation-delay:var(--direction-offset, 0s),0s}@keyframes guide-key{0%{color:#2b200f;background:#f1c66f;border-color:#ffe1a4;box-shadow:0 2px #8f632e}25%,to{color:#e3d3ad;background:#332b20;border-color:#806d48;box-shadow:0 2px #0e0c08}}@keyframes guide-direction{0%{visibility:visible}25%,to{visibility:hidden}}@keyframes guide-walk{0%{background-position:0 var(--walk-row, 0px)}to{background-position:-256px var(--walk-row, 0px)}}@keyframes guide-route{0%,to{left:var(--guide-right);top:var(--guide-bottom)}25%{left:var(--guide-right);top:var(--guide-top)}50%{left:var(--guide-left);top:var(--guide-top)}75%{left:var(--guide-left);top:var(--guide-bottom)}}@media(max-height:520px){.movement-guide{margin-block:10px}.movement-guide-field{--guide-y: 12px;height:72px}}@media(prefers-reduced-motion:reduce){.movement-guide :is(kbd,.movement-guide-leader,.movement-guide-leader span){animation:none}.movement-guide-leader [data-guide-key=s]{visibility:visible}}.frontend{position:fixed;z-index:20;inset:0;overflow:hidden;background:#262420;font-family:var(--game-font);color:#ebdbb5;overscroll-behavior:contain;container:frontend / size}.frontend *,.frontend *:before,.frontend *:after{box-sizing:border-box}.menu-back{position:absolute;inset:0;pointer-events:none}.menu-back img{display:block;width:100%;height:100%;object-fit:cover;-webkit-user-select:none;user-select:none}.menu-front{position:relative;z-index:2}.frontend:not(.is-world-generation)>.menu-front{display:flex;flex-direction:column;height:100%;overflow:auto;padding:clamp(12px,2.6dvh,28px) clamp(14px,2.4vw,32px);scrollbar-gutter:stable both-edges;scrollbar-width:thin;scrollbar-color:#a88a51 #141311}.menu-front>.frontend-panel{flex:none;margin:auto}.frontend:has(>.menu-front>:is(.frontend-main,.frontend-game-menu)){padding:0}.frontend>.menu-front:has(>:is(.frontend-main,.frontend-game-menu)){padding:3cqh 3cqw;scrollbar-gutter:auto}:is(.frontend-main,.frontend-game-menu){--menu-unit:calc(min(88cqw,64cqh) / 600);--menu-row:calc(52 * var(--menu-unit));--menu-label:calc(36 * var(--menu-unit));display:grid;justify-items:center;gap:calc(20 * var(--menu-unit));width:calc(600 * var(--menu-unit));max-width:100%}.frontend .menu-title{display:grid;place-items:center;width:100%;aspect-ratio:1040/272;background:url(/assets/ui/main-menu/title-plaque.webp) center/100% 100% no-repeat;color:#8d130b;text-shadow:0 var(--menu-unit) #ffe6a6,0 calc(-1 * var(--menu-unit)) #5b120a}.menu-title span{font-size:calc(137 * var(--menu-unit));line-height:1;letter-spacing:.015em;white-space:nowrap}:is(.frontend-main,.frontend-game-menu) .menu-buttons{display:grid;width:73.333%;grid-auto-rows:minmax(var(--menu-row),auto);gap:calc(10 * var(--menu-unit))}.frontend .menu-button{position:relative;isolation:isolate;display:flex;align-items:center;min-width:0;min-height:0;height:66px;margin:0;padding:0 14px 3px 34px;border:0;background:none;box-shadow:none;color:#f2e4ba;font:700 40px/1 var(--game-font);letter-spacing:.5px;text-align:left;white-space:nowrap;overflow:visible;cursor:pointer;text-shadow:2px 2px 0 #18150d,0 0 8px #0009}.frontend :is(.frontend-main,.frontend-game-menu) .menu-button{--plate-unit:min(.6px,var(--menu-unit));height:auto;padding:calc(2 * var(--menu-unit)) calc(10 * var(--menu-unit)) calc(4 * var(--menu-unit)) 20%;font-size:var(--menu-label);letter-spacing:.008em;white-space:normal}.frontend :is(.frontend-main,.frontend-game-menu) .menu-button[data-view=login]{font-size:calc(25.5 * var(--menu-unit))}.frontend .menu-button:hover:not(:disabled),.menu-buttons:not(:hover) .menu-button:focus-visible{color:#fff7dc;text-shadow:2px 2px 0 #5a3206,0 0 10px #8a4b0a99;background:none;--menu-button-lit:1}.frontend .menu-button:focus-visible{--menu-button-lit:1}:is(.frontend-main,.frontend-game-menu) .menu-buttons:not(:hover):not(:has(:focus-visible)) .menu-button:first-child:not(:disabled){color:#fff7dc;text-shadow:2px 2px 0 #5a3206,0 0 10px #8a4b0a99;--menu-button-lit:1}.frontend .menu-button:active:not(:disabled)>span:not([aria-hidden]){transform:translateY(1px)}.frontend .menu-button:disabled{opacity:1;cursor:default;color:#9b957f;text-shadow:2px 2px 0 #14120c}.frontend .menu-button:disabled>.menu-plate{filter:saturate(.45) brightness(.78)}:is(.frontend-main,.frontend-game-menu)>:is(.frontend-hint,.frontend-status){margin:0;font-size:calc(17 * var(--menu-unit));text-align:center;text-shadow:1px 1px #17130b}.frontend .frontend-main>.menu-account{min-height:calc(32 * var(--menu-unit));padding-block:calc(3 * var(--menu-unit));font-size:calc(19 * var(--menu-unit))}@container frontend (max-aspect-ratio:3/4){:is(.frontend-main,.frontend-game-menu){--menu-row:max(calc(52 * var(--menu-unit)),11cqw)}:is(.frontend-main,.frontend-game-menu) .menu-buttons{width:82%}}@media(pointer:coarse)and (orientation:landscape){:is(.frontend-main,.frontend-game-menu){--menu-row:11cqh;--menu-label:4.75cqh}}.menu-sheet{width:382px;max-width:100%;max-height:100%;overflow:auto;padding:20px 20px 22px;background:linear-gradient(#2e2d29f5,#1c1b18f5);border:3px solid #b48a45;border-radius:8px;box-shadow:inset 0 0 0 2px #4b3a1c,inset 0 3px 0 2px #e6c47a26,0 10px 24px #000c;font-size:21px;scrollbar-width:thin;scrollbar-color:#a88a51 #141311}.menu-sheet .frontend-hint{margin:6px 0}.menu-sheet .frontend-form{gap:12px}.frontend-servers.menu-sheet,.frontend-lobby.menu-sheet{width:900px}.frontend-controls.menu-sheet{width:620px}.frontend-scenarios.menu-sheet{width:1210px;height:610px;overflow:hidden;display:flex;flex-direction:column}.frontend-scenarios>header{flex:none}.scenario-browser{display:grid;grid-template-columns:340px minmax(0,1fr);flex:1;min-height:0;gap:28px}.scenario-list.menu-buttons{display:flex;flex-direction:column;align-items:stretch;gap:14px;overflow:auto;min-height:0;padding:9px 15px 14px 9px;border-right:1px solid #7e6a47;scrollbar-width:thin;scrollbar-color:#a88a51 #141311;overscroll-behavior:contain}.frontend .scenario-choice.menu-button{flex:none;min-height:66px;height:auto;padding:15px 12px 16px 34px;font-size:29px;white-space:normal;line-height:1}.scenario-list:not(:hover):not(:has(:focus-visible)) .is-selected{color:#fff7dc;text-shadow:2px 2px 0 #5a3206,0 0 10px #8a4b0a99;--menu-button-lit:1}.menu-plate{--plate-scale:var(--plate-unit,.6px);position:absolute;inset:-5px;z-index:-1;display:grid;grid-template-rows:1fr calc(47 * var(--plate-scale)) 1fr;pointer-events:none}:is(.frontend-main,.frontend-game-menu) .menu-plate{inset:calc(-6 * var(--menu-unit)) calc(-8 * var(--menu-unit))}.menu-plate>span{position:relative}.menu-plate>span:before,.menu-plate>span:after{content:"";position:absolute;inset:0;border:solid transparent;border-width:var(--plate-top,0px) calc(22 * var(--plate-scale)) var(--plate-bottom,0px) calc(64 * var(--plate-scale));border-image:url(/assets/runtime/ui/main-menu/button.png) var(--plate-slice) fill}.menu-plate>span:after{border-image-source:url(/assets/runtime/ui/main-menu/button-active.png);opacity:var(--menu-button-lit,0);transition:opacity .12s}.menu-plate>span:first-child{--plate-slice:21 22 63 64;--plate-top:calc(21 * var(--plate-scale));margin-bottom:-1px}.menu-plate>span:nth-child(2){--plate-slice:21 22 17 64;z-index:1}.menu-plate>span:last-child{--plate-slice:67 22 17 64;--plate-bottom:calc(17 * var(--plate-scale));margin-top:-1px}.scenario-information{display:grid;grid-template-columns:minmax(0,1fr) 240px;grid-template-rows:auto minmax(0,1fr) auto;gap:14px 24px;min-height:0;overflow:auto;padding:0 9px 8px 0;scrollbar-width:thin;scrollbar-color:#a88a51 #141311}.scenario-heading{grid-column:1/-1}.frontend .scenario-heading h2{margin:0 0 5px;font-size:35px;color:#f4d68e}.scenario-heading>span{font-size:19px;color:#b9b195}.scenario-world{grid-column:1;grid-row:2/4;min-width:0;min-height:0;margin:0;display:flex;flex-direction:column;justify-content:center;padding:14px;border:1px solid #7e6a47;background:#101611;box-shadow:inset 0 0 18px #0008}.scenario-world img{display:block;width:100%;max-height:300px;object-fit:contain;image-rendering:pixelated}.scenario-world figcaption{margin-top:10px;color:#aaa184;text-align:center;font-size:17px}.scenario-copy{grid-column:2;grid-row:2;align-self:start}.scenario-description{margin:0;font-size:21px;line-height:1.25;color:#e8d3a6}.frontend .scenario-start.menu-button{grid-column:2;grid-row:3;justify-content:center;width:100%;height:54px;margin:5px 0;padding:0 8px 3px 30px;font-size:27px;text-align:center;white-space:normal}.frontend-panel>*{min-width:0}.frontend-panel>header{display:flex;align-items:flex-start;gap:14px;margin-bottom:20px}.frontend h1{flex:1;min-width:0;margin:0;color:#f4d68e;font-size:34px;line-height:1.05;font-weight:700;text-shadow:2px 2px 0 #120f08;overflow-wrap:anywhere}.frontend h2{font-size:24px;line-height:1.2;margin:16px 0 10px;color:#e8d3a6;overflow-wrap:anywhere}.menu-sheet button{min-width:0;white-space:normal;overflow-wrap:anywhere;border:2px solid #c29a52;border-radius:6px;background:linear-gradient(#4b5442,#2f3529);box-shadow:inset 0 1px #e9cf8f40,inset 0 -2px #0007,0 2px #0008;color:#f0e2b8;padding:10px 15px;font:700 21px/1.2 var(--game-font);text-align:left;min-height:44px;cursor:pointer;text-shadow:1px 1px 0 #111}.menu-sheet button:hover:not(:disabled){border-color:#f0c36c;background:linear-gradient(#5b6650,#394031)}.menu-sheet button:disabled{opacity:.45;cursor:default}.menu-sheet .primary{background:linear-gradient(#e7aa3c,#b2701c);border-color:#ffd88a #8a5414 #8a5414 #ffd88a;color:#fff6da;text-shadow:1px 1px 0 #5a3206}.menu-sheet .primary:hover:not(:disabled){background:linear-gradient(#f3bc52,#c07c22);border-color:#ffe3a6}.frontend button:focus-visible,.frontend :is(input,select,summary,a):focus-visible{outline:2px solid #f7dfa0;outline-offset:3px}.frontend .frontend-back{flex:none;padding:6px 12px;font-size:17px;min-height:34px}.frontend-form{display:grid;gap:15px}.frontend-form label{display:grid;gap:7px;font-size:19px}.frontend input,.frontend select{width:100%;min-width:0;border:2px solid #7c6a45;border-radius:4px;background:#13120f;color:#eedfba;padding:8px 10px;font:19px/1.3 var(--game-font)}.frontend select{padding-right:28px}.frontend input[type=range]{padding:0;border:0;background:none;accent-color:#d3a24f}.frontend-bandits{padding-bottom:15px;border-bottom:1px solid #5b5036}.frontend-slider-heading,.frontend-slider-scale{display:flex;justify-content:space-between;gap:12px}.frontend-slider-heading output{color:#f4d68e;white-space:nowrap;font-variant-numeric:tabular-nums}.frontend-bandits input[type=range]{display:block;width:100%;height:28px;margin:5px 0 0;cursor:pointer}.frontend-bandits input:disabled{opacity:.45;cursor:default}.frontend-slider-scale{font-size:15px;color:#b9b195}.frontend-bandits .frontend-hint{margin:7px 0 0}.frontend-check{display:flex!important;align-items:center;gap:10px}.frontend input[type=checkbox]{appearance:none;display:grid;place-items:center;width:22px;height:22px;padding:0;flex:none;border:2px solid #c29a52;cursor:pointer}.frontend input[type=checkbox]:checked:after{content:"";width:14px;height:14px;background:#f0cf82;clip-path:polygon(0 40%,20% 40%,40% 65%,80% 10%,100% 10%,100% 35%,40% 100%,0 60%)}.frontend-hint{font-size:16px;line-height:1.4;color:#b9b195;margin:12px 0;overflow-wrap:anywhere}.frontend-status{font-size:17px;line-height:1.4;color:#f0c977;margin:18px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.frontend-status:empty{display:none}.frontend :is(a,summary){color:#e0c084}.frontend details{border-top:1px solid #5b5036;padding-top:12px}.frontend summary{cursor:pointer;margin-bottom:12px;font-size:19px}.frontend details label+label{margin-top:12px}.server-toolbar,.lobby-tabs,.lobby-bottom{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}.server-table-wrap{overflow:auto;margin:16px 0 22px;border:1px solid #6d5c3b}.frontend table{border-collapse:collapse;width:100%;font-size:18px;text-align:left}.frontend th{font-size:16px;color:#b8ab87;font-weight:400;background:#15140f}.frontend th,.frontend td{padding:9px 12px;border-bottom:1px solid #3d3a30;white-space:nowrap}.frontend td:first-child{width:50%;white-space:normal}.frontend td button{border:0;background:none;box-shadow:none;padding:0;min-height:28px;font-size:19px;width:100%}.frontend tr.is-selected{background:#69593455}.server-create{grid-template-columns:repeat(2,minmax(0,1fr))}.server-create>h2,.server-create>details,.server-create>button,.server-create>label:nth-of-type(3){grid-column:1/-1}.lobby-tabs{justify-content:flex-start;border-bottom:1px solid #6c5839;padding-bottom:14px}.lobby-tabs button{font-size:18px;min-height:36px;padding:7px 16px}.lobby-tabs .is-active{border-color:#ffd88a;background:linear-gradient(#e7aa3c,#b2701c)}.lobby-players{display:grid;gap:10px;margin:20px 0}.lobby-player{display:flex;align-items:center;gap:13px;padding:14px;border:1px solid #7e6a47;border-radius:6px;background:#15140f}.faction-swatch{display:block;width:24px;height:32px;background:var(--faction);border:2px solid #dcc188;flex:none}.lobby-player>div{display:grid;gap:4px;min-width:0}.lobby-player strong{font-size:23px;font-weight:700;overflow-wrap:anywhere}.lobby-player span:not(.faction-swatch){font-size:16px;color:#b9b195}.lobby-profile{grid-template-columns:1.3fr 1fr}.lobby-profile button{grid-column:1/-1;font-size:18px}.lobby-bottom{margin-top:22px;font-size:17px}.lobby-bottom>span{overflow-wrap:anywhere}dl.frontend-controls{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px 18px;font-size:18px;line-height:1.35;margin:0}dl.frontend-controls dt{color:#f0c977;min-width:0;overflow-wrap:anywhere}dl.frontend-controls dd{margin:0;color:#cfc7aa;min-width:0;overflow-wrap:anywhere}.fame-list{display:grid;gap:10px;margin:0;padding:0;list-style:none}.fame-list li{display:grid;gap:4px;padding:10px 12px;border:1px solid #6d5c3b;border-left:4px solid #8e8a7a;border-radius:4px;background:#15140fcc}.fame-list .fame-victory{border-left-color:#e7aa3c}.fame-list strong{font-size:22px;color:#f4d68e}.fame-list span{font-size:16px;color:#cfc7aa}.fame-list .fame-seed{color:#8f8a76;font-size:15px;overflow-wrap:anywhere}.save-form{padding-bottom:18px;border-bottom:1px solid #6d5c3b}.save-list{display:grid;gap:12px;list-style:none;padding:0;margin:18px 0 0}.save-list li{display:grid;gap:5px;min-width:0;padding:12px;border:1px solid #6d5c3b;background:#15140fcc}.save-list li.is-autosave{border-left:4px solid #b48a45}.save-list strong{font-size:24px;color:#f4d68e;overflow-wrap:anywhere}.save-list span{font-size:17px;color:#cfc7aa;overflow-wrap:anywhere}.save-list .save-seed{color:#aaa184;font-size:16px}.frontend .menu-button:is(.save-button,.frontend-back){height:44px;justify-content:center;padding:0 14px 2px 32px;font-size:21px;text-align:center}.save-list .save-button{justify-self:start;min-width:130px;margin-top:7px}.credits-list{display:grid;gap:4px;margin:0}.credits-list dt{margin-top:10px;color:#f4d68e;font-size:19px}.credits-list dt:first-child{margin-top:0}.credits-list dd{margin:0;color:#cfc7aa;font-size:17px}section.frontend-loading>button{display:block;margin:16px auto 0;text-align:center}div.frontend-loading{display:grid;justify-items:center;gap:12px;padding:0}.frontend-loading-spinner{display:block;width:64px;height:64px;background:url(/assets/runtime/ui/loading/spinner.webp) 0 0/1024px 64px no-repeat;image-rendering:pixelated;animation:frontend-spinner 1s steps(16) infinite}.frontend-loading-percent{font:22px/1 var(--game-font);color:#e8d3a6}.frontend-loading-title{text-align:center}.frontend-progress{display:block;appearance:none;width:min(280px,65vw);height:12px;border:1px solid #846d47;background:#15130f}.frontend-progress::-webkit-progress-bar{background:#15130f}.frontend-progress::-webkit-progress-value{background:#e5c174}.frontend-progress::-moz-progress-bar{background:#e5c174}.frontend-progress:not([value]){display:none}@keyframes frontend-spinner{to{background-position:-1024px 0}}@media(prefers-reduced-motion:reduce){.frontend-loading-spinner{animation:none}}.frontend-error-actions{display:flex;flex-wrap:wrap;gap:14px}.game-area.frontend-active :is(.resource-bar,.hud,.selection-panel,#paused,#build-status,#tile-tooltip,#leader-action-feedback){visibility:hidden}.game-area.frontend-active #world{cursor:default}.frontend.in-game:not(.is-world-generation){background:#100d0b80;-webkit-backdrop-filter:sepia(1);backdrop-filter:sepia(1);animation:frontend-menu-fade .28s ease-out}.frontend.in-game>.menu-back{display:none}@keyframes frontend-menu-fade{0%{background-color:transparent;-webkit-backdrop-filter:sepia(0);backdrop-filter:sepia(0)}}.is-compact .menu-sheet{max-width:min(100%,560px);font-size:18px}.is-compact .frontend-scenarios.menu-sheet{max-width:min(100%,900px);height:100%;min-height:450px;padding:16px}.is-compact .scenario-browser{grid-template-columns:minmax(130px,32%) minmax(0,1fr);gap:15px}.is-compact .scenario-list.menu-buttons{padding:9px 12px 9px 5px;gap:12px}.frontend.is-compact .scenario-choice.menu-button{aspect-ratio:auto;min-height:58px;padding:12px 8px 12px 31px;font-size:clamp(18px,3.4vw,26px)}.is-compact .scenario-information{display:flex;flex-direction:column;gap:14px;padding-right:2px}.is-compact .scenario-heading h2{font-size:28px}.is-compact .scenario-heading>span{font-size:16px}.is-compact .scenario-world{flex:none;min-height:110px;padding:8px}.is-compact .scenario-world img{max-height:230px}.is-compact .scenario-description{font-size:18px}.frontend.is-compact .scenario-start.menu-button{aspect-ratio:auto;min-height:50px;font-size:22px;margin-top:auto}.is-compact .server-create,.is-compact .lobby-profile{grid-template-columns:1fr}.is-compact .server-create>*{grid-column:1!important}.is-compact dl.frontend-controls{grid-template-columns:105px minmax(0,1fr);font-size:16px;gap:10px}.is-compact .frontend table{table-layout:fixed}.is-compact .frontend th,.is-compact .frontend td{white-space:normal;overflow-wrap:anywhere;padding:8px 4px;font-size:14px}@media(prefers-reduced-motion:reduce){.frontend,.frontend *{animation:none!important;transition:none!important}}.network-status{position:absolute;z-index:6;top:54px;right:270px;max-width:320px;padding:6px 10px;font:14px/1.3 var(--game-font);pointer-events:none}.game-area.frontend-active #network-status{visibility:hidden}@container game-area (max-width:720px){.network-status{top:66px;right:auto;left:10px;max-width:160px;font-size:12px}}.is-world-generation{overflow:hidden;background:#161411}.is-world-generation>.menu-back{display:none}.is-world-generation>.menu-front{position:absolute;inset:0 auto auto 0;width:1672px;height:941px;transform-origin:0 0;transform:translate(var(--worldgen-x),var(--worldgen-y)) scale(var(--worldgen-scale))}.frontend-single{position:absolute;inset:0;width:1672px;height:941px;background:url(/assets/ui/world-generation/backdrop.webp) center/100% 100% no-repeat;color:#fff2c9;font-size:30px;text-shadow:1px 2px 1px #16130c}.frontend-single>.worldgen-heading{position:absolute;inset:0 0 auto;height:90px;display:block;margin:0}.worldgen-brand{position:absolute;left:133px;top:12px;font-size:56px;line-height:1;font-weight:700;color:#850900;text-shadow:1px 1px #e6a64b}.frontend .worldgen-heading h1{position:absolute;left:358px;top:6px;width:952px;text-align:center;font-size:70px;line-height:1;color:#850900;text-shadow:2px 2px #efb758;letter-spacing:1px;white-space:nowrap}.worldgen-form{position:absolute;inset:0}.worldgen-form fieldset{position:absolute;margin:0;padding:0;border:0;min-width:0}.worldgen-form legend{position:absolute;left:0;top:0;width:100%;padding:0;text-align:center;text-transform:uppercase;font-weight:700;font-size:34px;line-height:36px;letter-spacing:1px}.worldgen-size{left:94px;top:103px;width:411px;height:228px}.worldgen-barbarians{left:1168px;top:103px;width:410px;height:228px}.worldgen-radio-list{position:absolute;top:48px;left:116px;display:grid;grid-auto-rows:30px}.worldgen-barbarians .worldgen-radio-list{left:86px}.worldgen-radio{position:relative;display:flex;align-items:center;gap:23px;width:max-content;max-width:100%;font-size:32px;line-height:30px;cursor:pointer;white-space:nowrap}.frontend .worldgen-radio input{appearance:none;position:relative;flex:none;width:27px;height:27px;margin:0;padding:0;border:0;border-radius:50%;background:url(/assets/ui/world-generation/backdrop.webp) -114px -884px/1672px 941px no-repeat;cursor:pointer;transition:filter .12s,box-shadow .12s}.worldgen-radio span{transition:color .12s,text-shadow .12s}.worldgen-radio input:checked{filter:brightness(1.9) saturate(1.9);box-shadow:0 0 3px 2px #fff1a2,0 0 10px 3px #f79c00}.worldgen-radio:has(input:checked)>span{color:#ffdd64;font-weight:700;text-shadow:1px 2px #3d2407,0 0 6px #b47b1555}.worldgen-radio:hover input:not(:disabled){filter:brightness(1.5)}.worldgen-radio input:disabled,.worldgen-form fieldset:disabled{opacity:.5;cursor:default}.worldgen-map{position:absolute;left:524px;top:94px;width:624px;height:239px;overflow:hidden}.worldgen-map-art{display:block;width:100%;height:100%;background:url(/assets/ui/world-generation/backdrop.webp) 50% 13.3903%/267.9487% 393.7238% no-repeat;transition:filter .12s}.worldgen-map[data-landmass=pangaea] .worldgen-map-art{background-size:1211.5942% 1254.6667%;background-position:20.2738% 44.1109%}.worldgen-map[data-landmass=archipelago] .worldgen-map-art{background-size:1211.5942% 1254.6667%;background-position:80.1825% 44.1109%}.worldgen-map[data-landmass=pangaea][data-water="80"] .worldgen-map-art{background-position-x:10.691%}.worldgen-map[data-landmass=pangaea][data-water="60"] .worldgen-map-art{background-position-x:29.8566%}.worldgen-map[data-landmass=archipelago][data-water="80"] .worldgen-map-art{background-position-x:70.5997%}.worldgen-map[data-landmass=archipelago][data-water="60"] .worldgen-map-art{background-position-x:89.7653%}.worldgen-map[data-landmass=continents][data-water="80"] .worldgen-map-art{background-size:1211.5942% 1254.6667%;background-position:40.7432% 44.1109%}.worldgen-map[data-landmass=continents][data-water="60"] .worldgen-map-art{background-size:1211.5942% 1254.6667%;background-position:59.7784% 44.1109%}.worldgen-land{left:94px;top:337px;width:1484px;height:197px}.worldgen-land>legend{left:466px;width:552px;top:0;font-size:31px;line-height:37px;letter-spacing:.7px}.worldgen-land-choices{position:absolute;left:70px;right:66px;top:45px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.worldgen-water-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.worldgen-tile{position:relative;display:block;min-width:0;cursor:pointer;text-align:center;font-size:26px;line-height:30px;white-space:nowrap}.frontend .worldgen-tile input{position:absolute;inset:0;z-index:1;opacity:0;width:100%;height:100%;margin:0;padding:0;border:0;cursor:pointer}.worldgen-thumb{display:block;height:75px;border-radius:4px;background-image:url(/assets/ui/world-generation/backdrop.webp);background-repeat:no-repeat;transition:box-shadow .12s,filter .12s}.worldgen-tile:has(input:checked) .worldgen-thumb{outline:2px solid #fff1a2;outline-offset:-3px;box-shadow:inset 0 0 0 3px #ffb900,0 0 4px 2px #ffc400,0 0 11px #ffb000}.worldgen-tile:has(input:focus-visible) .worldgen-thumb{outline:3px solid #fff2a0;outline-offset:3px}.worldgen-tile:hover .worldgen-thumb{filter:brightness(1.14);box-shadow:0 0 8px 2px #ffc55799}.worldgen-tile:has(input:checked)>span:last-child{color:#ffdc63;font-weight:700}.worldgen-land-group h3{font-size:27px;font-weight:400;line-height:30px;margin:5px 0 0;text-align:center;white-space:nowrap}.worldgen-land-group h3 label{cursor:pointer}.worldgen-land .worldgen-thumb{background-size:1211.5942% 1254.6667%;background-position-y:44.1109%}.worldgen-land .worldgen-tile:has(input:checked):after{content:"";position:absolute;inset:0;z-index:2;border:3px solid #ffd447;border-radius:4px;box-shadow:inset 0 0 3px #fff3a7,0 0 6px 2px #ffba00;pointer-events:none}.worldgen-land-group:nth-child(1) .worldgen-tile:nth-child(1) .worldgen-thumb{background-position-x:10.691%}.worldgen-land-group:nth-child(1) .worldgen-tile:nth-child(2) .worldgen-thumb{background-position-x:20.2738%}.worldgen-land-group:nth-child(1) .worldgen-tile:nth-child(3) .worldgen-thumb{background-position-x:29.8566%}.worldgen-land-group:nth-child(2) .worldgen-tile:nth-child(1) .worldgen-thumb{background-position-x:40.7432%}.worldgen-land-group:nth-child(2) .worldgen-tile:nth-child(2) .worldgen-thumb{background-position-x:50.1956%}.worldgen-land-group:nth-child(2) .worldgen-tile:nth-child(3) .worldgen-thumb{background-position-x:59.7784%}.worldgen-land-group:nth-child(3) .worldgen-tile:nth-child(1) .worldgen-thumb{background-position-x:70.5997%}.worldgen-land-group:nth-child(3) .worldgen-tile:nth-child(2) .worldgen-thumb{background-position-x:80.1825%}.worldgen-land-group:nth-child(3) .worldgen-tile:nth-child(3) .worldgen-thumb{background-position-x:89.7653%}.worldgen-form:before{content:"";position:absolute;left:85px;right:85px;top:539px;height:291px;background:#30271e}.worldgen-form .worldgen-environment{top:548px;width:482px;height:277px;border:1px solid transparent;border-image:url(/assets/runtime/ui/forged/panel-frame.png) 110 fill / 12px}.worldgen-climate{left:322px}.worldgen-temperature{left:868px}.worldgen-region-preview{position:absolute;left:18px;top:37px;width:448px;height:132px;background-image:url(/assets/ui/world-generation/backdrop.webp);background-size:373.2143% 712.8788%;background-repeat:no-repeat;transition:filter .12s}.worldgen-climate .worldgen-region-preview{background-position:9.3137% 72.3115%}.worldgen-temperature .worldgen-region-preview{background-position:50.0817% 72.3115%}.worldgen-form[data-climate="0"] .worldgen-climate .worldgen-region-preview{filter:sepia(.65) saturate(1.25)}.worldgen-form[data-climate="2"] .worldgen-climate .worldgen-region-preview{filter:hue-rotate(20deg) saturate(1.35)}.worldgen-form[data-temperature="0"] .worldgen-temperature .worldgen-region-preview{filter:sepia(.4) saturate(1.2)}.worldgen-form[data-temperature="2"] .worldgen-temperature .worldgen-region-preview{filter:saturate(.5) brightness(1.22)}.worldgen-environment-choices{position:absolute;left:39px;right:32px;top:175px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:21px}.worldgen-environment .worldgen-thumb{height:65px;margin-bottom:2px;background-size:1359.3496% 1425.7576%;background-position-y:82.5143%}.worldgen-climate .worldgen-tile:nth-child(1) .worldgen-thumb{background-position-x:8.7153%}.worldgen-climate .worldgen-tile:nth-child(2) .worldgen-thumb{background-position-x:18.0116%}.worldgen-climate .worldgen-tile:nth-child(3) .worldgen-thumb{background-position-x:27.3079%}.worldgen-temperature .worldgen-tile:nth-child(1) .worldgen-thumb{background-position-x:40.9942%}.worldgen-temperature .worldgen-tile:nth-child(2) .worldgen-thumb{background-position-x:50.2905%}.worldgen-temperature .worldgen-tile:nth-child(3) .worldgen-thumb{background-position-x:59.5868%}.worldgen-footer{position:absolute;left:0;right:0;top:879px;height:39px}.frontend .worldgen-footer>.menu-button{position:absolute;height:39px;padding:0;justify-content:center;text-align:center;font-size:35px;line-height:39px}.frontend .worldgen-back{left:112px;width:225px}.frontend .worldgen-generate{left:1245px;width:326px}.frontend:not(.is-compact) .worldgen-footer .menu-plate{display:none}.frontend:not(.is-compact) .worldgen-footer>.menu-button:after{content:"";position:absolute;inset:-7px;z-index:-1;background:url(/assets/ui/world-generation/backdrop.webp) var(--worldgen-plate-position)/1672px 941px no-repeat;filter:brightness(1.2) saturate(1.25);opacity:var(--menu-button-lit,0);transition:opacity .12s}.worldgen-back{--worldgen-plate-position:-105px -872px}.worldgen-generate{--worldgen-plate-position:-1238px -872px}.worldgen-advanced-start{position:absolute;left:600px;top:0;width:472px;display:flex;align-items:center;justify-content:center;gap:14px;font-size:28px;line-height:39px;white-space:nowrap;cursor:pointer}.frontend .worldgen-advanced-start input[type=range]{flex:none;width:120px;height:24px;margin:0;padding:0;border:0;background:none;accent-color:#f0b43c;cursor:pointer}.worldgen-advanced-start output{min-width:118px;color:#ffdd64;font-weight:700;text-shadow:1px 2px #3d2407}.frontend-single>.frontend-status{position:absolute;bottom:10px;left:370px;max-width:245px;margin:0;font-size:18px}.frontend.is-compact.is-world-generation{padding:12px;overflow:auto;background:#211f1a}.is-compact.is-world-generation>.menu-front{position:static;width:auto;height:auto;transform:none}.is-compact .frontend-single{position:static;display:flex;flex-direction:column;gap:14px;width:100%;height:auto;max-width:560px;background:none;margin:0 auto}.is-compact .frontend-single>.worldgen-heading{position:relative;inset:auto;display:block;height:92px;flex:none;background:url(/assets/ui/world-generation/backdrop.webp) 4.058% 0/572.603% 1057.303% no-repeat}.is-compact .worldgen-brand{display:none}.frontend.is-compact .worldgen-heading h1{left:12px;right:12px;top:27px;width:auto;font-size:clamp(29px,7vw,40px);letter-spacing:0;color:#850900}.is-compact .worldgen-form{position:static;display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}.is-compact .worldgen-form:before{display:none}.is-compact .worldgen-form fieldset{position:relative;inset:auto;width:auto;height:auto;padding:40px 14px 18px;background:#2c2a24;border:10px solid transparent;border-image:url(/assets/runtime/ui/forged/panel-frame.png) 110 fill / 10px;box-shadow:0 3px 8px #0008}.is-compact .worldgen-form legend{font-size:clamp(19px,4.6vw,27px);line-height:32px;top:2px;letter-spacing:0}.is-compact .worldgen-radio-list{position:static;display:grid;gap:8px;grid-auto-rows:34px}.is-compact .worldgen-radio{font-size:clamp(18px,4.6vw,26px);line-height:34px;gap:9px}.frontend.is-compact .worldgen-radio input{width:27px;height:27px}.is-compact .worldgen-map{position:relative;inset:auto;width:100%;height:auto;aspect-ratio:624/239;grid-column:1/-1;grid-row:1}.is-compact .worldgen-land{grid-column:1/-1}.is-compact .worldgen-land>legend{left:0;width:100%;font-size:clamp(17px,4.8vw,26px)}.is-compact .worldgen-land-choices{position:static;display:grid;grid-template-columns:1fr;gap:16px}.is-compact .worldgen-land-group h3{margin:6px 0 0;font-size:24px;line-height:28px}.is-compact .worldgen-water-choices{gap:8px}.is-compact .worldgen-land .worldgen-thumb{height:auto;aspect-ratio:138/75}.is-compact .worldgen-form .worldgen-environment{grid-column:1/-1;padding:40px 10px 14px}.is-compact .worldgen-region-preview{position:relative;inset:auto;width:100%;height:auto;aspect-ratio:448/132;margin-bottom:12px}.is-compact .worldgen-environment-choices{position:static;gap:12px}.is-compact .worldgen-environment .worldgen-thumb{height:auto;aspect-ratio:123/66;margin-bottom:4px}.is-compact .worldgen-environment .worldgen-tile{font-size:clamp(18px,5vw,26px);line-height:30px}.is-compact .worldgen-footer{position:relative;inset:auto;height:auto;grid-column:1/-1;display:grid;grid-template-columns:1fr 1.5fr;gap:16px;padding:12px 6px}.frontend.is-compact .worldgen-footer>.menu-button{position:relative;inset:auto;width:100%;height:48px;padding:0 8px 2px 31px;font-size:clamp(20px,5vw,30px);line-height:1;white-space:normal}.is-compact .worldgen-advanced-start{position:static;grid-column:1/-1;grid-row:2;justify-self:center;width:auto;min-height:44px;font-size:26px;gap:14px}.is-compact .frontend-single>.frontend-status{position:static;max-width:none;margin:0;text-align:center}@media(max-width:360px){.is-compact .worldgen-form{grid-template-columns:1fr}.is-compact .worldgen-radio-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 4px}.is-compact .worldgen-form .worldgen-barbarians .worldgen-radio-list{grid-template-columns:1fr}.is-compact .worldgen-size .worldgen-radio{font-size:22px}}.mobile-controls{display:none}@media(pointer:coarse){html,body,#app,.game-area{overscroll-behavior:none}#world,.mobile-controls{touch-action:none}.mobile-controls:not([hidden]){display:block;position:absolute;inset:0;z-index:3;pointer-events:none;-webkit-user-select:none;user-select:none}.mobile-stick{position:absolute;left:max(16px,var(--hud-safe-left,env(safe-area-inset-left)));bottom:82px;width:112px;height:112px;border:2px solid #c6ad776b;border-radius:50%;background:#111d25a6;box-shadow:inset 0 0 16px #0007;pointer-events:auto}.mobile-stick-cross:before,.mobile-stick-cross:after{content:"";position:absolute;background:#b8b4a133;left:24px;top:55px;width:64px;height:1px}.mobile-stick-cross:after{transform:rotate(90deg)}.mobile-stick-knob{position:absolute;left:34px;top:34px;width:40px;height:40px;border:2px ridge #bba36c;border-radius:50%;background:#2a3a40de;box-shadow:0 2px 6px #0007;pointer-events:none}.mobile-center,.mobile-turns button{min-width:44px;min-height:44px;border:2px ridge #b59963;border-radius:7px;background:#14252adc;color:#f3e5bc;pointer-events:auto;font:18px/1 var(--game-font)}.mobile-center{position:absolute;left:138px;bottom:85px;padding:0 9px}.mobile-turns{position:absolute;left:138px;bottom:136px;display:flex;width:98px;justify-content:space-between;pointer-events:auto}.mobile-turns[hidden]{display:none}.mobile-turns button{font-size:30px}.mobile-rotate-hint{display:none}.hud{--hud-scale: 1;transform:none;width:100%;height:100%}.hotbar{left:auto;right:112px;width:calc(100% - 170px);transform:scale(.7);transform-origin:bottom right;bottom:max(8px,var(--hud-safe-bottom,env(safe-area-inset-bottom)));height:58px;padding:0;gap:4px;grid-template-columns:repeat(5,minmax(0,1fr));background:none}.hotbar:before,.action-slot:not([data-hotbar-action]),.action-slot kbd{display:none}.action-slot{height:58px;min-width:44px}.hotbar-art{width:27px;height:27px}.hotbar-label{font-size:12px}.special-actions{transform:scale(.7);transform-origin:bottom right;width:142px;height:118px;right:4px;bottom:max(4px,var(--hud-safe-bottom,env(safe-area-inset-bottom)));padding:5px;gap:3px}.special-actions button{min-height:50px;justify-content:center}.special-actions .command-art{width:23px;height:23px;flex-basis:23px}.special-actions .action-label{font-size:18px;padding:0}.build-panel,.build-panel.is-building-menu{transform:scale(.7);transform-origin:bottom right;right:5px;bottom:88px;width:min(354px,calc((100cqw - 10px) / .7));max-height:calc((100cqh - 144px) / .7);padding:38px 8px 14px}.build-actions{gap:3px}.build-actions button{min-height:68px;padding-top:19px}#close-build{min-width:44px;min-height:36px;top:1px}.game-area:has(.build-panel:not([hidden])) .selection-panel{visibility:hidden}.minimap-panel{width:112px;height:112px;left:2px;top:48px;bottom:auto}#minimap{left:19px;top:15px;width:75px;height:75px}.minimap-north{left:48px;top:7px;font-size:11px;width:16px}.minimap-control{bottom:9px;width:32px;height:32px;font-size:20px}#minimap-zoom-in{left:0}#minimap-zoom-out{right:0}.resource-bar{height:44px}.research-toolbar{left:362px;right:auto;top:3px;width:min(260px,calc(100% - 818px));height:37px}.research-toolbar-name{font-size:20px}.research-toolbar-eta{font-size:15px}.resources{transform:none;height:44px}.resource{height:38px}.resource.food,.resource.gold{width:83px}.resource.population{width:98px}.resource.culture{width:75px}.resource-icon{left:5px;top:10px;width:18px;height:18px}.resource-values{inset:0 4px 0 27px;gap:2px}.resource strong{font-size:calc(16px * var(--value-fit,1))}.resource.population .resource-values>span{font-size:15px}#food-yield,#gold-yield,#culture-rate{font-size:12px}.time-controls{top:0;right:max(4px,var(--hud-safe-right,env(safe-area-inset-right)));height:44px;transform:none;gap:2px}.time-controls button,.time-controls button#speed{min-width:44px;width:44px;height:44px}#speed .speed-value{font-size:18px}.time-controls button#menu{width:88px;min-width:88px;gap:6px;font-size:16px}.time-controls button#diplomacy-menu{width:128px;padding:0 6px;font-size:17px}.time-controls button#pause-spending{width:132px;gap:4px;font-size:17px}#menu .text-icon{display:none}.selection-panel{top:49px;right:4px;width:194px;height:88px;padding:9px;transform:none;gap:6px}.portrait{width:40px;flex-basis:40px;height:60px}.selection-name{font-size:15px;margin-bottom:3px}.selection-stats{font-size:12px;gap:1px}.health-track{margin-top:3px}.leader-xp{left:208px;right:112px;bottom:61px;height:25px;gap:4px}.leader-level-badge,.leader-xp-points{height:38px;flex-basis:38px}.leader-xp-text{font-size:14px}.leader-skills{inset:46px auto 8px 50%;transform:translate(-50%);width:min(560px,calc(100% - 24px));max-height:calc(100cqh - 54px);font-size:17px;padding:10px}.leader-skills [data-leader-close]{width:44px;height:44px;flex-basis:44px}.build-status{top:46px;left:124px;max-width:calc(100% - 330px);font-size:14px}#tile-tooltip{display:none}.dialog{max-height:calc(100dvh - 16px);overflow-y:auto}.building-activity{max-height:calc(100cqh - 72px);overflow-y:auto}.frontend{padding:12px}.frontend button,.dialog button{min-height:44px}}@media(pointer:coarse){@container game-area (max-height: 380px){.minimap-panel{width:90px;height:90px}#minimap{left:15px;top:12px;width:61px;height:61px}.minimap-north{left:37px;top:4px}.minimap-control{bottom:2px}.mobile-stick{width:96px;height:96px}.mobile-stick-knob{left:26px;top:26px}.mobile-stick-cross:before,.mobile-stick-cross:after{left:16px;top:47px}}}@media(pointer:coarse)and (orientation:landscape){@container game-area (max-width: 1020px){.research-toolbar{left:124px;top:50px;width:210px}}@container game-area (max-width: 800px){.time-controls{top:45px}.research-toolbar{top:94px;width:min(210px,calc(100% - 326px))}.selection-panel{top:94px}}}@media(pointer:coarse){@container game-area (max-width: 480px){.time-controls button#pause-spending{width:clamp(80px,calc(100cqw - 240px),132px);gap:3px;font-size:16px;white-space:normal}#pause-spending .symbol-check{--icon-size: 14px}.time-controls button#menu{width:50px;min-width:50px}.time-controls #menu .menu-glyph{display:none}.time-controls button#diplomacy-menu{width:86px;padding:0 2px;font-size:14px}}}@media(pointer:coarse)and (orientation:portrait){.mobile-rotate-hint{display:block;position:absolute;top:100px;left:50%;width:180px;transform:translate(-50%);padding:7px;text-align:center;background:#101e24c9;border-radius:6px;color:#ead8ad;font:17px/1.1 var(--game-font)}.resource.culture{display:none}.research-toolbar{left:116px;top:94px;width:calc(100% - 122px)}.time-controls{top:45px}.leader-xp{left:144px;right:15px;bottom:138px}.selection-panel{top:139px}.hotbar{left:auto;right:110px;width:calc(100% - 156px)}.hotbar-label{display:none}}.leader-respawn{position:absolute;z-index:7;inset:0;display:grid;place-content:center;justify-items:center;gap:12px;pointer-events:auto;-webkit-backdrop-filter:grayscale(1) blur(2px);backdrop-filter:grayscale(1) blur(2px);background:#241c1659;color:#f2e6c9;text-shadow:1px 2px 3px #000;font:26px/1.2 var(--game-font)}.leader-respawn[hidden]{display:none}.respawn-dots{display:inline-block;width:1.2em;overflow:hidden;vertical-align:bottom;animation:respawn-dots 1.3s steps(4,end) infinite}@keyframes respawn-dots{0%{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 -33% 0 0)}}:root{--command-button-art: url(/assets/runtime/ui/reference-buttons/primary.png);--compact-button-art: url(/assets/runtime/ui/reference-buttons/compact.png);--button-ink: #e7d7af;--button-key: #bc8e3d;--command-width: 404px}.game-area :is(.building-activity,.leader-skills,.build-actions) button,.dialog button,.game-area :is(.action-slot,.minimap-control,.leader-xp-points,.mobile-center,.mobile-turns button,.offensive-placement button),.game-area .leader-level-badge{border:3px solid transparent;border-image:var(--compact-button-art) 4 fill / 3px / 0 stretch;border-radius:0;background:#172122;background-clip:padding-box;box-shadow:0 2px 3px #0008;color:var(--button-ink);font-family:var(--game-font);text-shadow:0 1px #080e0f;image-rendering:auto}.game-area :is(.building-activity,.leader-skills,.build-actions) button:hover:not(:disabled),.dialog button:hover:not(:disabled),.game-area :is(.action-slot,.minimap-control,.leader-xp-points,.mobile-center,.mobile-turns button,.offensive-placement button):hover:not(:disabled){filter:brightness(1.18)}.game-area :is(.building-activity,.leader-skills,.build-actions) button:active:not(:disabled),.dialog button:active:not(:disabled),.game-area :is(.action-slot,.minimap-control,.leader-xp-points,.mobile-center,.mobile-turns button,.offensive-placement button):active:not(:disabled){filter:brightness(.82)}.game-area :is(.building-activity,.leader-skills,.build-actions) button:focus-visible,.dialog button:focus-visible,.game-area :is(.action-slot,.minimap-control,.leader-xp-points,.mobile-center,.mobile-turns button,.offensive-placement button):focus-visible{outline:2px solid #efd091;outline-offset:-4px}.game-area .special-actions{right:10px;bottom:22px;width:var(--command-width);height:60px;padding:0;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:4px;background:none}.game-area .special-actions button{min-height:0;padding:4px 3px;justify-content:center;border:5px solid transparent;border-image:var(--command-button-art) 9 fill / 5px / 0 stretch;border-radius:0;background:#172122;background-clip:padding-box;box-shadow:0 3px 4px #0009;color:var(--button-ink);font-family:var(--game-font);text-shadow:0 1px #080e0f;image-rendering:auto}.game-area .special-actions .action-label{padding:0;font-size:18px;line-height:1}.game-area .special-actions button.active{filter:brightness(1.15);box-shadow:inset 0 0 12px #b18a3933,0 3px 4px #0009}.game-area .build-actions button.active{filter:brightness(1.3);box-shadow:inset 0 0 12px #b18a3933,0 0 0 1px #d0a352;outline:0}.game-area .special-actions button:active:not(:disabled){filter:brightness(.82)}.game-area .special-actions button:focus-visible{outline:2px solid #efd091;outline-offset:-5px}.game-area .build-panel,.game-area .build-panel.is-building-menu{right:16px;bottom:104px;width:min(300px,calc(100cqw / var(--hud-scale) - 24px));max-height:calc((100cqh - 64px) / var(--hud-scale) - 104px);padding:28px 9px 10px;border:4px solid transparent;border-image:var(--command-button-art) 9 fill / 4px / 0 stretch;background:#131e20;background-clip:padding-box;box-shadow:3px 5px 5px #0009;image-rendering:auto}.game-area .build-actions{gap:3px 4px}.game-area .build-actions button{min-height:36px;padding:1px 5px;border-width:3px;border-image-width:3px}.game-area .build-actions .action-label{max-width:100%;font-size:16px;line-height:14px;overflow-wrap:normal}.game-area :is(.special-actions,.build-actions) kbd{top:2px;right:4px;color:var(--button-key);font-size:12px;line-height:1}.game-area #close-build,.game-area .building-activity .activity-close,.dialog .close-dialog,.game-area .leader-skills [data-leader-close]{border:2px solid transparent;border-image:var(--compact-button-art) 4 fill / 2px / 0 stretch;background:#172122;background-clip:padding-box;color:#d7b56b;font:22px/1 var(--game-font);box-shadow:none;image-rendering:auto}.game-area #close-build{display:grid;place-items:center;right:5px;top:3px;width:22px;height:22px}.dialog .close-dialog .icon{display:inline-flex}.game-area .leader-xp-points.has-points{color:#fff0c3;filter:brightness(1.4);box-shadow:inset 0 0 10px #be913b55,0 0 6px #d3a64e80}@media(pointer:fine){@container game-area (width > 760px){.game-area .hotbar{right:calc(var(--command-width) + 86px)}.game-area .leader-xp{right:calc(var(--command-width) + 96px)}}@container game-area (760px < width <= 900px){.game-area .hotbar{right:10px}.game-area .special-actions{bottom:114px}.game-area .build-panel,.game-area .build-panel.is-building-menu{bottom:196px;max-height:calc((100cqh - 64px) / var(--hud-scale) - 196px)}}@container game-area (max-width: 760px){.game-area .hotbar{bottom:214px}.game-area .leader-xp{bottom:312px}.game-area .build-panel,.game-area .build-panel.is-building-menu{bottom:360px;max-height:calc((100cqh - 52px) / var(--hud-scale) - 360px)}}}@media(pointer:coarse){.game-area .special-actions{transform:none;right:max(6px,var(--hud-safe-right, env(safe-area-inset-right)));bottom:max(6px,var(--hud-safe-bottom, env(safe-area-inset-bottom)));width:min(var(--command-width),calc(100cqw - 12px));height:52px}.game-area .special-actions button{min-height:44px}.game-area .special-actions .action-label{font-size:17px}.game-area .hotbar{right:8px;bottom:max(68px,calc(62px + var(--hud-safe-bottom, env(safe-area-inset-bottom))));width:calc((100% - 256px) / .7);grid-template-columns:repeat(6,minmax(0,1fr))}.game-area .leader-xp{left:248px;right:8px;bottom:122px}.game-area .build-panel,.game-area .build-panel.is-building-menu{--build-panel-top: 58px;--build-panel-bottom: max(158px, calc(152px + var(--hud-safe-bottom, env(safe-area-inset-bottom))));transform:none;right:max(6px,var(--hud-safe-right, env(safe-area-inset-right)));bottom:var(--build-panel-bottom);width:min(336px,calc(100cqw - 12px));max-height:calc(100cqh - var(--build-panel-top) - var(--build-panel-bottom));padding:46px 8px 10px}.game-area .build-actions button{min-height:44px;padding:4px 14px 4px 4px}.game-area #close-build{min-width:44px;min-height:44px;right:2px;top:0}}@media(pointer:coarse)and (orientation:landscape){@container game-area (max-width: 800px){.game-area .build-panel,.game-area .build-panel.is-building-menu{--build-panel-top: 96px;--build-panel-bottom: 150px}}}@media(pointer:coarse)and (orientation:portrait){.game-area .hotbar{right:8px;width:calc((100% - 16px) / .7);bottom:206px}.game-area .leader-xp{left:16px;right:8px;bottom:258px}.game-area .build-panel,.game-area .build-panel.is-building-menu{--build-panel-top: 140px;--build-panel-bottom: 296px}}
