:root{--ink:#2b2118;--paper:#f3e9d2;--paper2:#e6d7b5;--edge:#8a6a42;--accent:#b8463a;--ok:#3f7d3a;--dim:#6f5d45;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}[hidden]{display:none!important}html,body{height:100%;color:var(--ink);-webkit-user-select:none;user-select:none;background:#1d2a36;margin:0;font:15px/1.4 Georgia,Times New Roman,serif;overflow:hidden}button{font:inherit;color:inherit;cursor:pointer}#app,#app canvas{touch-action:none;width:100%;height:100%;display:block;position:fixed;inset:0}#labels{pointer-events:none;position:fixed;inset:0;overflow:hidden}.paper,#topbar,#stockpile,#buildbar,#buildtray,#panel,.start-card,.toast{background:linear-gradient(180deg, var(--paper), var(--paper2));border:2px solid var(--edge);border-radius:10px;box-shadow:0 6px 18px #00000059,inset 0 0 0 1px #ffffff80}#start{z-index:20;background:radial-gradient(circle at 50% 35%,#3b5468,#16212b);place-items:center;display:grid;position:fixed;inset:0}#start[hidden]{display:none}.start-card{text-align:center;width:min(440px,92vw);padding:28px 28px 24px}.start-crest{width:96px;height:96px}.start-card h1{letter-spacing:1px;font-variant:small-caps;margin:4px 0 6px;font-size:38px}.sub{color:var(--dim);margin:0 0 16px}.bar{background:#0000001f;border-radius:6px;height:8px;overflow:hidden}.bar>div{background:var(--accent);width:0;height:100%;transition:width .2s}.status{min-height:1.4em;color:var(--dim);margin:12px 0}.start-actions{flex-direction:column;gap:10px;display:flex}.start-actions button,.actions button,.primary,.secondary{border:2px solid var(--edge);background:#fbf4e2;border-radius:8px;padding:10px 16px;font-weight:700}.primary{color:#fff8ec;background:var(--accent)!important;border-color:#7a2a20!important}button:disabled{opacity:.5;cursor:default}button:not(:disabled):hover{filter:brightness(1.06)}#hud[hidden]{display:none}#topbar{z-index:5;flex-wrap:wrap;align-items:center;gap:14px;padding:6px 10px;display:flex;position:fixed;top:10px;left:10px;right:10px}.res{align-items:center;gap:4px;min-width:64px;font-size:17px;font-weight:700;display:flex}.res img{width:34px;height:34px}.res small{color:var(--dim);margin-left:2px;font-size:13px;font-weight:400}.res.hov{cursor:help;position:relative}.res .pop{z-index:8;min-width:190px;padding:8px 10px;font-size:14px;font-weight:400;display:none;position:absolute;top:calc(100% + 10px);left:-6px}.res.hov:hover .pop{display:block}.pop .row{white-space:nowrap;align-items:center;gap:6px;margin:2px 0;display:flex}.pop .row img{width:24px;height:24px}.pop .row b{margin-left:auto;padding-left:12px}.pop .row.dim{color:var(--dim);font-size:13px}.pop h4{font-variant:small-caps;color:var(--dim);margin:6px 0 2px;font-size:13px}.pop h4:first-child{margin-top:0}#stockpile{right:10px;top:var(--below-top,76px);z-index:5;width:170px;max-height:calc(100vh - var(--below-top,76px) - 110px);padding:6px 8px;position:fixed;overflow-y:auto}#stockpile .sr{align-items:center;gap:6px;padding:1px 0;font-size:14px;display:flex}#stockpile .sr img{width:26px;height:26px}#stockpile .sr b{margin-left:auto}#stockpile .sr.full b,.pop .row.full b,.res.full span{color:#a0702a}#stockpile .sr.full b:after,.pop .row.full b:after{content:" full";font-size:11px;font-weight:400}#stockpile .sr b small{color:var(--dim);font-size:11px;font-weight:400}#panel .hold-pick{grid-template-columns:repeat(2,1fr);gap:4px;margin:6px 0;display:grid}#panel .hold-pick button{border:2px solid var(--edge);opacity:.55;text-align:left;background:#fbf4e2;border-radius:6px;align-items:center;gap:6px;padding:3px 6px;font-size:13px;display:flex}#panel .hold-pick button img{width:24px;height:24px}#panel .hold-pick button.on{opacity:1;background:#f1d9a0;font-weight:700}#stockpile h4{font-variant:small-caps;color:var(--dim);text-align:center;margin:0 0 4px;font-size:13px}.res.low span{color:var(--accent)}.res.clock{white-space:nowrap;cursor:help;font-size:15px}.spacer{flex:1}#realm-name{font-variant:small-caps;color:var(--dim);font-weight:700}@media (max-width:1500px){#faction-btn span{display:none}}.tool{border:2px solid var(--edge);color:var(--ink);background:#fbf4e2;border-radius:8px;align-items:center;gap:6px;padding:3px 10px 3px 4px;font-weight:700;text-decoration:none;display:flex}.tool img{width:30px;height:30px}.tool.icon-only{padding:3px 4px}.tool.text{padding:7px 12px}.tool.active{background:#f1d9a0}#buildbar{z-index:5;gap:6px;max-width:calc(100vw - 20px);padding:6px;display:flex;position:fixed;bottom:10px;left:50%;overflow-x:auto;transform:translate(-50%)}#buildbar[hidden]{display:none}.cbtn{background:#ffffff59;border:2px solid #0000;border-radius:8px;flex-direction:column;align-items:center;gap:1px;width:78px;padding:4px 2px 3px;display:flex;position:relative}.cbtn img{width:44px;height:44px}.cbtn .bname{font-size:12px;font-weight:700}.cbtn .key{color:var(--dim);font-size:11px;position:absolute;top:2px;left:5px}.cbtn.on{border-color:var(--accent);background:#f6deb0}.cbtn.busy:after{content:"";background:var(--accent);border-radius:50%;width:8px;height:8px;position:absolute;top:5px;right:6px}#buildtray{z-index:5;max-width:calc(100vw - 20px);padding:4px 6px 6px;animation:.15s ease-out tray-in;position:fixed;bottom:96px;left:50%;overflow-x:auto;transform:translate(-50%)}#buildtray[hidden]{display:none}.tray-title{font-variant:small-caps;color:var(--dim);padding:0 4px 2px;font-size:13px;font-weight:700}.tray-items{gap:6px;display:flex}@keyframes tray-in{0%{opacity:0;transform:translate(-50%,8px)}}.bbtn{background:#ffffff59;border:2px solid #0000;border-radius:8px;flex-direction:column;align-items:center;gap:1px;width:82px;padding:4px 2px 3px;display:flex;position:relative}.bbtn img{width:52px;height:52px}.bbtn .bname{font-size:12px;font-weight:700}.bbtn .bcost{color:var(--dim);align-items:center;gap:4px;font-size:11px;display:flex}.bbtn .bcost img{width:15px;height:15px}.bbtn .key{color:var(--dim);font-size:11px;position:absolute;top:2px;left:5px}.bbtn.on{border-color:var(--accent);background:#f6deb0}.bbtn.poor .bcost{color:var(--accent)}#panel{right:190px;top:var(--below-top,76px);z-index:6;width:min(300px,100vw - 20px);max-height:calc(100vh - var(--below-top,76px) - 124px);padding:12px 14px;position:fixed;overflow-y:auto}#panel[hidden]{display:none}#panel h2{font-variant:small-caps;align-items:center;gap:8px;margin:0 0 2px;font-size:20px;display:flex}#panel h2 img{width:40px;height:40px}#panel p{margin:6px 0}#panel .muted{color:var(--dim);font-size:13px}#panel .fed{color:var(--dim);align-items:center;gap:6px;font-size:13px;display:flex}#panel .fed img{width:20px;height:20px}#panel .fed.bad{color:var(--accent);font-weight:600}#panel .row{justify-content:space-between;gap:10px;margin:4px 0;display:flex}#panel .meter{background:#0000001f;border-radius:4px;height:8px;margin:4px 0 8px;overflow:hidden}#panel .meter>div{background:var(--ok);height:100%}#panel .actions{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}#panel .actions button{align-items:center;gap:6px;padding:6px 12px;display:flex}#panel .actions button img{width:26px;height:26px}#panel h3{font-variant:small-caps;border-top:1px solid #0000001f;margin:12px 0 4px;padding-top:8px;font-size:15px}#panel .hostile{color:var(--accent)}#panel .fac{align-items:flex-start;gap:8px;margin:6px 0;display:flex}#panel .fac .swatch{border:1px solid #0000004d;border-radius:3px;flex:none;width:14px;height:14px;margin-top:3px}#panel .fac .fac-body{flex:1;min-width:0}#panel .fac button,.fac-new button{flex:none;padding:4px 10px}.fac-new{gap:6px;margin:8px 0;display:flex}.fac-new input{min-width:0;font:inherit;border:2px solid var(--edge);background:#fbf4e2;border-radius:6px;flex:1;padding:4px 8px}#panel .close{color:var(--dim);background:0 0;border:0;padding:2px 6px;font-size:22px;line-height:1;position:absolute;top:6px;right:8px}.stepper{align-items:center;gap:8px;display:inline-flex}.stepper b{text-align:center;min-width:1.2em;font-size:17px}.stepper button{border:2px solid var(--edge);background:#fbf4e2;border-radius:6px;width:30px;height:30px;padding:0;font-size:18px;font-weight:700;line-height:1}.pips{gap:2px;margin:2px 0 6px;display:flex}.pips span{opacity:.18;filter:grayscale();width:26px;height:26px}.pips span.want{opacity:.45}.pips span.on{opacity:1;filter:none}.pips img{width:26px;height:26px}.cost{align-items:center;gap:2px;display:inline-flex}.cost img{vertical-align:middle;width:18px;height:18px}#tip{color:#f3e9d2;z-index:4;pointer-events:none;text-align:center;background:#1d2a36d9;border-radius:999px;max-width:90vw;padding:6px 14px;font-size:14px;position:fixed;top:74px;left:50%;transform:translate(-50%)}#tip:empty{display:none}#toasts{z-index:7;pointer-events:none;flex-direction:column;gap:6px;display:flex;position:fixed;bottom:120px;left:12px}.toast{align-items:center;gap:8px;max-width:360px;padding:7px 12px;font-size:14px;animation:.25s ease-out toast-in;display:flex}.toast img{width:28px;height:28px}.toast.bad{border-color:#7a2a20}.toast.out{opacity:0;transition:opacity .5s}@keyframes toast-in{0%{opacity:0;transform:translate(-20px)}}.float-text{color:#fff8e0;text-shadow:0 1px 2px #000,0 0 6px #0009;white-space:nowrap;font-size:15px;font-weight:700;position:absolute;top:0;left:0}.float-text.food{color:#ffd2a0}.float-text.wood{color:#f0d0a0}.float-text.stone{color:#e6e6f0}.float-text.big{color:#ffe27a;font-size:20px}.realm-label{white-space:nowrap;font-variant:small-caps;background:#f3e9d2eb;border:2px solid;border-radius:6px;padding:1px 8px;font-size:13px;font-weight:700;position:absolute;top:0;left:0}@media (max-width:640px){#topbar{gap:8px;top:6px;left:6px;right:6px}.res{min-width:0;font-size:14px}.res img{width:26px;height:26px}.tool span,#realm-name{display:none}.bbtn{width:66px}.bbtn img{width:40px;height:40px}.cbtn{width:54px}.cbtn img{width:32px;height:32px}.cbtn .bname{font-size:10px}#buildtray{bottom:80px}#panel{max-height:45vh;top:auto;bottom:100px;right:6px}#stockpile{width:96px;padding:4px 6px;top:60px;right:6px}#stockpile .sr span{display:none}#stockpile .sr img{width:20px;height:20px}}#diplo-btn{position:relative}#diplo-btn .badge,#diplo .badge{background:var(--accent);color:#fff8ec;text-align:center;box-sizing:border-box;border-radius:9px;min-width:18px;height:18px;padding:0 5px;font:700 12px/18px Georgia,serif}#diplo-btn .badge{position:absolute;top:-6px;right:-6px}#diplo-btn .badge[hidden]{display:none}#diplo{z-index:7;box-sizing:border-box;background:linear-gradient(180deg, var(--paper), var(--paper2));border:2px solid var(--edge);-webkit-user-select:text;user-select:text;border-radius:10px;flex-direction:column;width:min(820px,100vw - 20px);height:min(640px,100vh - 190px);padding:10px 14px 12px;display:flex;position:fixed;top:74px;left:50%;transform:translate(-50%);box-shadow:0 8px 30px #00000059}#diplo[hidden]{display:none}#diplo header{justify-content:space-between;align-items:center;display:flex}#diplo h2{font-variant:small-caps;align-items:center;gap:8px;margin:0;font-size:22px;display:flex}#diplo h2 img{width:40px;height:40px}#diplo .close{cursor:pointer;color:var(--dim);background:0 0;border:0;font-size:26px;line-height:1}#diplo .cols{flex:1;grid-template-columns:230px 1fr;gap:12px;min-height:0;margin-top:6px;display:grid}#diplo .realms{border-right:1px solid #8a6a4259;flex-direction:column;gap:4px;padding-right:4px;display:flex;overflow-y:auto}#diplo .realm{text-align:left;cursor:pointer;font:inherit;color:inherit;background:#ffffff59;border:2px solid #0000;border-radius:8px;grid-template-rows:auto auto;grid-template-columns:12px 1fr auto;align-items:center;column-gap:8px;padding:6px 8px;display:grid;position:relative}#diplo .realm.on{border-color:var(--edge);background:#fbf4e2}#diplo .realm i,#diplo h3 i{border:1px solid #0000004d;border-radius:3px;grid-row:1/3;width:12px;height:12px;display:inline-block}#diplo .realm .rname{text-overflow:ellipsis;white-space:nowrap;font-weight:700;overflow:hidden}#diplo .realm .chip{grid-column:2;justify-self:start}#diplo .realm .badge{grid-area:1/3/3}#diplo .chip{color:var(--dim);white-space:nowrap;background:#00000014;border-radius:9px;padding:1px 7px;font-size:11px;font-weight:400}#diplo .chip.allied{color:#fff8ec;background:#3f7d3a}#diplo .chip.contact{color:var(--ink);background:#e8cf8f}#diplo .chip.unknown{opacity:.7}#diplo .detail{padding-right:4px;overflow-y:auto}#diplo h3{align-items:center;gap:8px;margin:2px 0;font-size:19px;display:flex}#diplo h4{font-variant:small-caps;color:var(--dim);align-items:center;gap:6px;margin:0 0 4px;font-size:16px;display:flex}#diplo h4 img{width:26px;height:26px}#diplo section{border-top:1px solid #8a6a4259;padding:8px 0}#diplo p{margin:4px 0}#diplo .muted{color:var(--dim);font-size:13px}#diplo .actions{flex-wrap:wrap;gap:8px;margin-top:6px;display:flex}#diplo .actions button{border:2px solid var(--edge);cursor:pointer;color:var(--ink);background:#fbf4e2;border-radius:8px;align-items:center;gap:6px;padding:6px 12px;font:700 14px Georgia,serif;display:flex}#diplo .actions button img{width:22px;height:22px}#diplo .actions button:disabled{opacity:.5;cursor:default}#diplo .cost{align-items:center;gap:2px;font-weight:700;display:inline-flex}#diplo .cost img{width:20px;height:20px}#diplo .offer{background:#ffffff73;border-radius:8px;justify-content:space-between;align-items:center;gap:10px;margin:4px 0;padding:6px 8px;display:flex}#diplo .offer.in{border-left:4px solid var(--accent)}#diplo .offer .actions{flex-shrink:0;margin:0}#diplo .caravan{align-items:center;gap:8px;margin:4px 0;font-size:14px;display:flex}#diplo .caravan>img{width:24px;height:24px}#diplo .caravan .eta{color:var(--dim);margin-left:auto;font-weight:700}#diplo .shares{flex-direction:column;gap:6px;margin:6px 0;display:flex}#diplo .share{grid-template-columns:1fr auto 84px;align-items:center;gap:10px;display:grid}#diplo .switch{border:2px solid var(--edge);cursor:pointer;color:var(--dim);background:#fbf4e2;border-radius:14px;min-width:98px;padding:4px 12px;font:700 13px Georgia,serif}#diplo .switch.on{background:var(--ok);color:#fff8ec;border-color:#2a5a27}#diplo .theirs{color:var(--dim);text-align:right;font-size:12px}#diplo .theirs.on{color:var(--ok);font-weight:700}#diplo .composer{margin-top:6px}#diplo .crow{grid-template-columns:90px 1fr 1fr;align-items:center;gap:8px;margin:3px 0;display:grid}#diplo .crow.head{color:var(--dim);font-variant:small-caps;font-size:12px}#diplo .have{color:var(--dim);font-size:12px;font-weight:400}#diplo .stepper{align-items:center;display:inline-flex}#diplo .stepper button{border:2px solid var(--edge);cursor:pointer;width:26px;height:28px;color:var(--ink);background:#fbf4e2;font-weight:700}#diplo .stepper button:first-child{border-radius:6px 0 0 6px}#diplo .stepper button:last-child{border-radius:0 6px 6px 0}#diplo .stepper input{box-sizing:border-box;border:2px solid var(--edge);text-align:center;-moz-appearance:textfield;background:#fffaf0;border-left:0;border-right:0;width:56px;height:28px;font:700 14px Georgia,serif}#diplo .stepper input::-webkit-inner-spin-button{-webkit-appearance:none}#diplo textarea{box-sizing:border-box;border:2px solid var(--edge);resize:vertical;background:#fffaf0;border-radius:8px;width:100%;margin-top:4px;padding:6px 8px;font:14px Georgia,serif}#diplo .thread{flex-direction:column;gap:4px;max-height:200px;display:flex;overflow-y:auto}#diplo .letter{white-space:pre-wrap;overflow-wrap:anywhere;background:#fffaf0;border:1px solid #8a6a4266;border-radius:8px 8px 8px 2px;align-self:flex-start;max-width:85%;padding:5px 9px}#diplo .letter.mine{background:#f1e1b8;border-radius:8px 8px 2px;align-self:flex-end}#diplo .letter time{color:var(--dim);margin-top:2px;font-size:11px;display:block}@media (max-width:640px){#diplo .cols{grid-template-rows:auto 1fr;grid-template-columns:1fr}#diplo .realms{border-right:0;flex-direction:row;max-height:80px;overflow-x:auto}}#army-btn{position:relative}#army-btn .badge{background:var(--accent);color:#fff8ec;text-align:center;box-sizing:border-box;border-radius:9px;min-width:18px;height:18px;padding:0 5px;font:700 12px/18px Georgia,serif;position:absolute;top:-6px;right:-6px}#army-btn .badge[hidden]{display:none}#army-btn.alarm{animation:1s ease-in-out infinite alternate army-alarm}@keyframes army-alarm{to{box-shadow:0 0 0 3px #c83c288c}}#army{z-index:7;box-sizing:border-box;background:linear-gradient(180deg, var(--paper), var(--paper2));border:2px solid var(--edge);border-radius:10px;flex-direction:column;width:min(820px,100vw - 20px);height:min(640px,100vh - 190px);padding:10px 14px 12px;display:flex;position:fixed;top:74px;left:50%;transform:translate(-50%);box-shadow:0 8px 30px #00000059}#army[hidden]{display:none}#army header{justify-content:space-between;align-items:center;display:flex}#army h2{font-variant:small-caps;align-items:center;gap:8px;margin:0;font-size:22px;display:flex}#army h2 img{width:40px;height:40px}#army h3{align-items:center;gap:6px;margin:12px 0 4px;font-size:16px;display:flex}#army h3 img{width:26px;height:26px}#army .close{cursor:pointer;color:var(--dim);background:0 0;border:0;font-size:26px;line-height:1}#army .cols{flex:1;grid-template-columns:240px 1fr;gap:12px;min-height:0;margin-top:6px;display:grid}#army .realms{border-right:1px solid #8a6a4259;flex-direction:column;gap:4px;padding-right:4px;display:flex;overflow-y:auto}#army .realm{text-align:left;cursor:pointer;font:inherit;color:inherit;background:#ffffff59;border:2px solid #0000;border-radius:8px;grid-template-columns:30px 1fr auto;align-items:center;column-gap:8px;padding:6px 8px;display:grid}#army .realm img{grid-row:1/3;width:28px;height:28px}#army .realm .st{color:var(--dim);grid-column:2/4;font-size:12px}#army .realm.on{border-color:var(--edge);background:#fbf4e2}#army .realm.new{border-style:dashed;border-color:#8a6a4273}#army .detail{padding-right:6px;overflow-y:auto}#army .row{justify-content:space-between;align-items:center;gap:8px;margin:4px 0;display:flex}#army .unit{align-items:center;gap:4px;margin-right:6px;display:inline-flex}#army .unit img,#army .cost img{width:24px;height:24px}#army .stepper{align-items:center;gap:6px;display:inline-flex}#army .stepper button{width:26px;height:26px}#army input.name{font:inherit;background:0 0;border:1px solid #0000;border-radius:4px;width:100%;padding:2px 4px;font-size:18px}#army input.name:hover,#army input.name:focus{border-color:var(--edge);background:#fffaf0}#army select{font:inherit;width:100%;padding:4px}#army .actions{flex-wrap:wrap;gap:6px;margin:6px 0;display:flex}#army .target{border:2px solid var(--accent);background:#fff0dc99;border-radius:8px;margin-bottom:10px;padding:6px 10px}#army .send{border-top:1px solid #8a6a424d;padding:6px 0}#army .reports{margin:0;padding-left:18px;font-size:13px}#army .reports li{margin:3px 0}#army .reports li.good{color:#2d6a2a}#army .reports li.bad{color:#9a2a1e}#army .reports .cost img{vertical-align:middle;width:18px;height:18px}#army .actions button{flex-direction:row;align-items:center;gap:6px;min-height:0;padding:4px 10px;display:inline-flex}#army .actions button img{width:26px;height:26px}#battle-top{z-index:6;min-width:min(520px,92vw);padding:8px 14px;position:fixed;top:76px;left:50%;transform:translate(-50%)}#battle-top .bt-sides{align-items:center;gap:10px;display:flex}#battle-top .bt-name{font-variant:small-caps;white-space:nowrap;text-overflow:ellipsis;max-width:30%;font-weight:700;overflow:hidden}#battle-top .bt-bar{background:#00000026;border-radius:5px;flex:1;height:10px;display:flex;overflow:hidden}#battle-top .bt-bar i{height:100%;transition:width .4s;display:block}#battle-top .bt-line{color:var(--dim);align-items:center;gap:16px;margin-top:4px;font-size:13px;display:flex}#battle-top .bt-line span:first-child{flex:1}#battle-top .bt-leave{padding:2px 10px}#battle-bar{z-index:6;width:min(980px,100vw - 20px);padding:8px 10px;position:fixed;bottom:10px;left:50%;transform:translate(-50%)}#battle-bar .bt-squads{flex-wrap:wrap;gap:6px;display:flex}#battle-bar .sq{border:2px solid var(--edge);background:#fbf4e2;border-radius:8px;align-items:center;gap:4px;padding:3px 8px 3px 6px;display:flex;position:relative}#battle-bar .sq img{width:28px;height:28px}#battle-bar .sq.on{background:#f1d9a0;border-color:#a8731f}#battle-bar .sq.routed{opacity:.55}#battle-bar .sq .key{background:var(--edge);color:#fff;border-radius:4px;padding:0 3px;font-size:10px;position:absolute;top:-6px;left:-4px}#battle-bar .sq-o{color:var(--dim);align-items:center;gap:2px;font-size:11px;display:flex}#battle-bar .sq-o svg{fill:currentColor}.morale{vertical-align:middle;background:#0000002e;border-radius:3px;width:34px;height:5px;display:inline-block;overflow:hidden}.morale i{background:#4f9a46;height:100%;display:block}#battle-bar .bt-controls{flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;display:flex}#battle-bar .grp{border-right:1px solid #0000001f;gap:3px;padding-right:8px;display:flex}#battle-bar .grp:last-of-type{border-right:0}#battle-bar .grp button{border:2px solid var(--edge);background:#fbf4e2;border-radius:6px;align-items:center;gap:3px;padding:3px 8px;font-size:13px;display:flex}#battle-bar .grp button svg{fill:#5a4630}#battle-bar .grp button.on{background:#f1d9a0;border-color:#a8731f}#battle-bar .bt-controls p{flex-basis:100%;margin:2px 0 0;font-size:12px}#battle-bar .bt-hint{margin:6px 0 0;font-size:13px}.squad-label{white-space:nowrap;pointer-events:auto;cursor:pointer;-webkit-user-select:none;user-select:none;background:#fbf4e2eb;border:2px solid #777;border-radius:6px;align-items:center;gap:3px;padding:1px 5px 1px 2px;font-size:12px;display:flex;position:absolute}.squad-label img{width:20px;height:20px}.squad-label.foe{cursor:default;opacity:.85;font-size:11px}.squad-label.sel{background:#f1d9a0;box-shadow:0 0 0 2px #ffe27a}.squad-label.routed{opacity:.5}.squad-label em{color:var(--dim);font-size:10px;font-style:normal}#battle-report{z-index:9;width:min(420px,92vw);padding:14px 18px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}#battle-report h2{font-variant:small-caps;align-items:center;gap:8px;margin:0 0 6px;display:flex}#battle-report h2 img{width:40px;height:40px}#battle-report .row{justify-content:space-between;gap:12px;margin:4px 0;display:flex}#battle-report .actions{justify-content:flex-end;margin-top:12px;display:flex}.battle-marker{pointer-events:auto;cursor:pointer;width:34px;height:34px;animation:1.2s infinite battle-pulse;position:absolute}@keyframes battle-pulse{50%{scale:1.15}}#panel .unit-pick{grid-template-columns:repeat(2,1fr);gap:4px;margin:6px 0;display:grid}#panel .unit-pick button{text-align:left;border:2px solid var(--edge);background:#fbf4e2;border-radius:6px;grid-template-rows:auto auto;grid-template-columns:30px 1fr;align-items:center;column-gap:4px;padding:3px 6px;font-size:12px;display:grid}#panel .unit-pick button img{grid-row:span 2;width:28px;height:28px}#panel .unit-pick button .bcost{color:var(--dim);font-size:11px}#panel .unit-pick button .bcost img{grid-row:auto;width:14px;height:14px}#panel .unit-pick button.on{background:#f1d9a0;border-color:#a8731f}.toast .toast-act{border:2px solid var(--edge);pointer-events:auto;background:#fbf4e2;border-radius:6px;margin-left:8px;padding:2px 10px;font-weight:700}
