@import"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=IM+Fell+English:ital@0;1&family=Marcellus&display=swap";:root{font-family:DM Sans,sans-serif;color:#e9e3d3;background:#10181f;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;font-optical-sizing:auto;font-weight:400;--gold:#d8bd7c;--muted:#8b9585;--line:rgba(226,211,177,.13);--panel:#1a242c;--panel-deep:#151e25;--cream:#e9e3d3}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(ellipse at 45% -20%,#2c3842 0,#151e27 42%,#10181f 76%)}button{font:inherit;color:inherit}.game-shell{max-width:1600px;min-height:100vh;margin:0 auto;padding:0 44px;display:flex;flex-direction:column}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;color:var(--gold);text-decoration:none}.brand-mark{width:42px;height:42px;display:block}.brand-mark svg{width:100%;height:100%}.brand strong{display:block;font-family:Marcellus,serif;font-size:14px;letter-spacing:2.3px;font-weight:400}.brand small{display:block;font-size:8px;letter-spacing:3px;color:#9b9a83;margin-top:3px}.top-actions{display:flex;align-items:center;gap:12px}.chapter-pill{border:1px solid var(--line);border-radius:3px;padding:9px 14px;font-size:9px;letter-spacing:1.5px;color:#aeb19e}.chapter-pill i{display:inline-block;width:4px;height:4px;margin:0 9px 2px;border-radius:50%;background:var(--gold)}.icon-button{width:29px;height:29px;border:1px solid var(--line);background:transparent;border-radius:50%;color:#b6b5a4;cursor:pointer}.icon-button:hover,.icon-button.is-on{color:var(--gold);border-color:#bda76e}.game-layout{display:grid;grid-template-columns:minmax(550px,1fr) 320px;gap:26px;padding:30px 0 22px;flex:1;align-items:stretch}.battle-column{min-width:0}.scenario-heading{display:flex;justify-content:space-between;align-items:center;margin:0 2px 18px}.eyebrow{font-size:9px;letter-spacing:2.1px;color:#b39e68;font-weight:600}.scenario-heading h1{font-family:IM Fell English,serif;font-weight:400;font-size:31px;line-height:1.1;margin:7px 0 5px;color:#f0e7d1}.scenario-heading p{font-size:12px;color:#a0a395;margin:0}.turn-badge{display:flex;gap:10px;align-items:center;padding:10px 13px;border:1px solid var(--line);border-radius:3px;color:#a9ad9d;font-size:8px;letter-spacing:1px}.turn-badge strong{font-family:Marcellus,serif;display:block;font-size:17px;color:var(--gold);font-weight:400;letter-spacing:1px}.turn-sun{color:var(--gold);font-size:20px}.map-frame{border:1px solid rgba(222,202,157,.22);background:#131c25;border-radius:5px;overflow:hidden;box-shadow:0 14px 45px #090d1065}.map-toolbar{height:42px;padding:0 14px;display:flex;align-items:center;gap:13px;background:linear-gradient(90deg,#1f2b35,#1a242d);border-bottom:1px solid rgba(222,202,157,.15);color:#afb49e}.map-coords{font-size:9px;letter-spacing:1.5px}.weather{font-size:8px;letter-spacing:1.3px;color:#8e9a88;margin-left:auto}.weather-sun{color:var(--gold);font-size:14px}.toolbar-sep{padding:0 4px;color:#887b56}.map-action{background:none;border:0;color:#aab09c;font-size:23px;line-height:1;cursor:pointer;margin-left:3px}.map-wrap{position:relative;background:#334638;overflow:auto}.battle-map{display:block;width:100%;height:auto;min-height:400px;filter:drop-shadow(0 4px 7px #19221b22)}.hex-cell{cursor:pointer;outline:none}.hex-fill{fill:#768366;stroke:#d7c9a8;stroke-width:1.15;stroke-opacity:.72;transition:fill .18s,filter .18s}.plain .hex-fill{fill:#829071}.forest .hex-fill{fill:#637660}.hill .hex-fill{fill:#89836a}.water .hex-fill{fill:#668984}.village .hex-fill{fill:#a18d67}.keep .hex-fill{fill:#8a8469}.hex-grain{fill:none;stroke:#faf1d9;stroke-opacity:.12;stroke-width:1}.terrain-art{filter:url(#soft-shadow);stroke:#efe3c4;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.forest-art{fill:#344a39;stroke:#acb38b}.forest-art path:nth-child(2){fill:#405840}.forest-art path:nth-child(3){stroke:#b49769}.hill-art{fill:#786d53;stroke:#c0ad7c}.water-art{stroke:#b3d0ba;opacity:.8}.village-art{fill:#795e45;stroke:#e0c691}.keep-art{fill:#625d4b;stroke:#e4d0a4}.grass-art{stroke:#d6d5a4;opacity:.68}.hex-cell:hover .hex-fill{filter:brightness(1.12)}.hex-cell:focus-visible .hex-fill{stroke:#fff2c4;stroke-width:3}.hex-cell.reachable .hex-fill{stroke:#e4dcad;stroke-width:2;stroke-opacity:1}.move-dot{fill:#f2df9c;stroke:#645d3f;stroke-width:1.4;opacity:.95}.hex-cell.selected .hex-fill{stroke:#f4d58b;stroke-width:3}.hex-cell.attackable .hex-fill{stroke:#db9278;stroke-width:2.6;stroke-opacity:1}.attack-ring{fill:none;stroke:#c66452;stroke-width:2;stroke-dasharray:4 4;opacity:.9}.hp-track{fill:#232c34;stroke:#f1e8cf;stroke-width:.6}.hp-fill{fill:#7eac76}.hp-fill.enemies{fill:#d18464}.unit-glyph{filter:url(#soft-shadow);pointer-events:none}.map-compass{position:absolute;right:15px;top:13px;width:38px;height:48px;border:1px solid #eeebd366;border-radius:20px;background:#19242e88;color:#f3e9d1;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:8px;line-height:1}.map-compass b{color:#e7cb87;font-size:13px;margin:2px}.map-compass i{font-style:normal;font-size:7px;opacity:.7}.map-legend{height:34px;display:flex;align-items:center;gap:18px;padding:0 13px;background:#1a242c;color:#b0b2a2;font-size:8px;letter-spacing:1px}.legend-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px}.legend-dot.allies{background:#80a68b}.legend-dot.enemies{background:#c97860}.legend-tip{margin-left:auto;color:#8e9685}.battle-bottom{display:grid;grid-template-columns:1.12fr .88fr;gap:11px;margin-top:13px}.objective-card,.event-card{min-height:75px;padding:12px 13px;border:1px solid var(--line);border-radius:4px;background:linear-gradient(120deg,#1a242d,#161f28);display:flex;align-items:center;gap:11px}.objective-icon{font-size:21px;color:var(--gold)}.objective-card b{font-size:8px;letter-spacing:1.5px;color:#c8b272}.objective-card p{font-family:IM Fell English,serif;font-size:14px;margin:5px 0 0;color:#e0dbcb}.objective-progress{margin-left:auto;font-family:Marcellus,serif;font-size:20px;color:#dece9b;text-align:center}.objective-progress small{display:block;font:7px DM Sans,sans-serif;letter-spacing:1px;color:#8c9586}.event-card{display:block;position:relative;padding:11px 13px}.event-spark{position:absolute;left:12px;top:9px;color:#c6a965}.event-card p{font-family:IM Fell English,serif;font-size:13px;font-style:italic;line-height:1.35;color:#d5d1bf;margin:0 0 6px 18px}.event-quote{display:block;text-align:right;color:#858e80;font-size:7px;letter-spacing:1.3px}.sidebar{background:linear-gradient(180deg,#202a33,#1b232b 56%,#161e25);border:1px solid rgba(226,211,177,.15);border-radius:5px;display:flex;flex-direction:column;min-height:640px;box-shadow:0 14px 45px #090d1035;overflow:hidden}.side-top{padding:18px 18px 8px}.gold-display{display:flex;align-items:center;gap:9px;color:var(--gold)}.gold-display>span:nth-child(2){font-size:8px;letter-spacing:1.4px;color:#9da18f}.gold-display strong{display:block;font-family:Marcellus,serif;font-size:21px;color:#eadba8;font-weight:400;letter-spacing:.5px;margin-top:3px}.gold-display strong small{font-family:DM Sans,sans-serif;font-size:9px;color:#b6b59d}.income{margin-left:auto;font-size:8px;letter-spacing:.8px;color:#8c9a83}.side-divider{height:1px;background:var(--line);margin:15px 0}.section-title,.recruit-heading{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.3px;color:#c7b677;margin-bottom:8px}.section-title span+span,.recruit-heading span+span{color:#838e7f;font-size:7px}.roster{display:flex;flex-direction:column;gap:4px}.roster-row{display:flex;align-items:center;gap:9px;padding:7px 8px;border:1px solid transparent;border-radius:3px;cursor:pointer;transition:.16s}.roster-row:hover{background:#ffffff08}.roster-row.active{background:#d5c08912;border-color:#c8ae6c49}.roster-mark{width:8px;height:8px;border-radius:50%;background:#8bb191;box-shadow:0 0 0 3px #8bb1911c}.roster-mark.enemies{background:#cf8165}.roster-name{font-size:10px;color:#e0ddcf;flex:1}.roster-name small{display:block;margin-top:2px;font-size:8px;color:#879183}.roster-hp{font-size:12px;color:#cfdbbd;text-align:right}.roster-hp small{font-size:8px;color:#899183;padding-left:3px}.empty-roster{font-size:10px;color:#cf8672;padding:10px 0}.enemy-title{margin-top:16px;margin-bottom:7px}.enemy-summary{display:flex;align-items:center;gap:5px;min-height:22px}.threat-token{height:20px;min-width:20px;padding:2px 5px;border:1px solid #9b67534f;border-radius:2px;color:#c88469;font-size:11px;text-align:center;background:#703e3522}.enemy-summary small{font-size:8px;color:#91998a;margin-left:5px}.recruit-heading{margin:18px 0 7px}.recruit-button{width:100%;height:48px;display:flex;align-items:center;gap:9px;text-align:left;padding:6px 8px;background:#ffffff05;border:1px solid #ddd1ae1b;border-radius:3px;margin-bottom:6px;cursor:pointer;transition:.16s}.recruit-button:hover:not(:disabled){background:#d2bf8520;border-color:#c7ad685c}.recruit-button:disabled{opacity:.42;cursor:not-allowed}.recruit-icon{width:30px;height:30px;border-radius:3px;background:#b5995c1c;color:#d2b875;display:grid;place-items:center}.recruit-icon.scout{background:#789c7b1b;color:#9cba93}.recruit-copy{flex:1}.recruit-copy b{display:block;font-size:10px;font-weight:600;color:#dedacc}.recruit-copy small{display:block;font-size:8px;color:#929888;margin-top:3px}.recruit-cost{display:flex;align-items:center;gap:3px;color:#d8c488;font-size:10px}.recruit-note{margin:2px 1px 0;font-size:8px;color:#7e8a7c}.selected-card{padding:13px 18px 12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#0c141b40}.unit-card-head{display:flex;align-items:center;gap:10px}.unit-portrait{width:38px;height:38px;border:1px solid #d2bd7b6b;color:#e1c77f;background:#b69b561a;display:grid;place-items:center;border-radius:4px}.unit-portrait.enemies{border-color:#c778605e;color:#d68a6d;background:#ad64501a}.unit-card-head small{font-size:7px;letter-spacing:1px;color:#a9a48d}.unit-card-head h2{font-family:IM Fell English,serif;font-weight:400;font-size:16px;margin:3px 0 0;color:#eee5d0}.unit-health{margin:13px 0 10px}.health-label{display:flex;justify-content:space-between;align-items:center;color:#99a18f;font-size:7px;letter-spacing:1.2px}.health-label b{font-size:10px;letter-spacing:0;color:#ddd7c5}.health-label small{font-size:8px;color:#91998c;font-weight:400}.health-track{height:4px;background:#0e1419;border-radius:4px;margin-top:6px;overflow:hidden}.health-track i{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,#87a875,#b3bc7b)}.unit-stats{display:flex;gap:16px}.unit-stats span{display:flex;align-items:center;gap:5px;color:#a2a493;font-size:7px;letter-spacing:.7px}.unit-stats svg{color:#c5ae70}.unit-stats b{color:#ddd8c4;font-size:9px;letter-spacing:0}.action-state{margin-top:10px;color:#919888;font-size:7px;letter-spacing:.65px;display:flex;align-items:center;gap:4px;flex-wrap:wrap}.state-dot{width:5px;height:5px;background:#a8bd88;border-radius:50%;margin-left:5px}.state-dot.spent{background:#686f62}.selection-hint{font-size:10px;color:#9aa18e;line-height:1.5;padding:8px 0}.side-footer{padding:12px 18px 16px;margin-top:auto}.log-heading{display:flex;justify-content:space-between;align-items:center;color:#9ba08e;font-size:7px;letter-spacing:1.1px}.log-heading button{background:none;border:0;color:#a5a895;font-size:18px;line-height:12px;cursor:pointer}.battle-log{height:48px;overflow:hidden;margin:6px 0 9px}.battle-log p{font-size:8px;line-height:1.4;color:#969b8b;margin:4px 0;display:flex;gap:6px}.battle-log p i{font-style:normal;color:#bda66e}.end-turn{width:100%;height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 13px;background:linear-gradient(105deg,#b99c5d,#9f854f);border:1px solid #d1bd7a;color:#161e25;border-radius:3px;cursor:pointer;font-size:9px;font-weight:700;letter-spacing:1.3px;box-shadow:0 3px 9px #0b131955;transition:.16s}.end-turn span{display:flex;align-items:center;gap:8px}.end-turn:hover:not(:disabled){filter:brightness(1.1);transform:translateY(-1px)}.end-turn:disabled{opacity:.5;cursor:wait}.end-turn b{font-size:16px;font-weight:400}.footer{height:35px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;color:#737f72;font-size:7px;letter-spacing:1.1px}.footer i{font-style:normal;color:#bcaa70}.result-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:5;background:#080c11cc;display:grid;place-items:center;padding:20px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.result-modal{width:min(440px,100%);padding:39px 36px 34px;text-align:center;border:1px solid #d3bc7666;border-radius:5px;background:radial-gradient(ellipse at 50% 0,#2d3944,#17222b 67%);box-shadow:0 24px 100px #0009}.result-symbol{font-size:34px;color:#e0c780;margin-bottom:16px}.result-modal h2{font:400 35px IM Fell English,serif;color:#f0e6ce;margin:10px 0}.result-modal p{color:#aeb09f;font-size:13px;line-height:1.5;margin:0 auto 24px;max-width:330px}.toast{position:fixed;z-index:10;bottom:24px;left:50%;transform:translate(-50%,12px);padding:11px 16px;border:1px solid #cfb77566;border-radius:4px;background:#121b23ef;color:#e2dcc7;font-size:11px;opacity:0;pointer-events:none;transition:.2s;box-shadow:0 10px 30px #0005;max-width:min(600px,90vw);text-align:center}.toast.visible{opacity:1;transform:translate(-50%)}@media(max-width:1100px){.game-shell{padding:0 22px}.game-layout{grid-template-columns:minmax(480px,1fr) 292px;gap:17px}.side-top,.selected-card,.side-footer{padding-left:14px;padding-right:14px}.map-legend{gap:10px;font-size:7px}.legend-tip{display:none}}@media(max-width:830px){.game-shell{padding:0 15px}.topbar{height:66px}.game-layout{grid-template-columns:1fr;padding-top:22px}.sidebar{min-height:0;display:grid;grid-template-columns:1fr 1fr;align-items:stretch}.side-top{grid-row:span 2}.selected-card{border-bottom:0}.side-footer{padding-top:10px}.footer{font-size:6px}.battle-map{min-width:700px}.map-wrap{max-height:65vh}.chapter-pill{display:none}}@media(max-width:560px){.game-shell{padding:0 10px}.topbar{height:58px}.brand-mark{width:34px;height:34px}.brand strong{font-size:11px;letter-spacing:1.5px}.brand small{font-size:7px}.top-actions{gap:7px}.game-layout{padding-top:17px}.scenario-heading h1{font-size:25px}.scenario-heading p{font-size:10px;max-width:235px}.turn-badge{padding:8px}.battle-bottom{grid-template-columns:1fr}.event-card{min-height:62px}.sidebar{grid-template-columns:1fr}.side-top{grid-row:auto}.selected-card{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.footer span:nth-child(2){display:none}.footer{justify-content:space-between}.map-toolbar{padding:0 9px}.weather{font-size:7px}.map-action{font-size:20px}.map-legend{gap:8px;font-size:6px;padding:0 8px}.legend-dot{margin-right:3px}.battle-map{min-width:660px}}.game-shell{padding-inline:clamp(8px,2.5vw,38px)}.game-layout{grid-template-columns:minmax(0,1fr) clamp(255px,28vw,330px);gap:clamp(10px,1.8vw,24px)}.sidebar{min-width:0;min-height:0;align-self:start;position:sticky;top:10px;max-height:calc(100dvh - 94px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#69795e #172029}.side-footer{position:sticky;bottom:0;margin-top:auto;background:linear-gradient(180deg,#1b232bef,#131c24f7 24%);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.map-wrap{overflow:hidden;background:#a9c7a2}.battle-map{width:100%;height:auto;min-height:0;aspect-ratio:850/580;filter:none}.hex-fill{stroke:#46624a;stroke-width:1.5;stroke-opacity:.9;filter:url(#soft-shadow)}.plain .hex-fill{fill:#a8bd7b}.forest .hex-fill{fill:#6f9b68}.hill .hex-fill{fill:#bdab70}.water .hex-fill{fill:#66b4b6}.village .hex-fill{fill:#d8b969}.keep .hex-fill{fill:#c7a45d}.hex-facet{pointer-events:none}.hex-facet.light{fill:#fff4cf;fill-opacity:.12}.hex-facet.shade{fill:#314932;fill-opacity:.09}.terrain-art{stroke-width:2;filter:url(#soft-shadow)}.forest-art{fill:#315d43;stroke:#eef0ad}.forest-art path:nth-child(2){fill:#42724a}.forest-art path:nth-child(3){stroke:#c3a45d}.hill-art{fill:#8c7449;stroke:#f5df9d}.water-art{stroke:#e7f5d3;stroke-width:2.6}.village-art{fill:#936943;stroke:#f6e1a4}.keep-art{fill:#72563f;stroke:#ffdf98}.hex-cell.reachable .hex-fill{stroke:#fff6c7;stroke-width:3}.hex-cell.selected .hex-fill{stroke:#ffe49a;stroke-width:4}.hex-cell.attackable .hex-fill{stroke:#b94136;stroke-width:4;stroke-opacity:1}.attack-ring{fill:#d93c3335;stroke:#bd3832;stroke-width:4;stroke-dasharray:0;opacity:1;filter:drop-shadow(0 0 3px #fff2cc)}.unit-glyph{filter:url(#soft-shadow);pointer-events:none}.unit-base{stroke:#fff5df;stroke-width:3}.hp-track{fill:#1c2c3a;stroke:#fff5df;stroke-width:1}.hp-fill.allies{fill:#35b578}.hp-fill.enemies{fill:#e55540}.map-guide{min-height:36px;display:flex;align-items:center;gap:8px;padding:6px 12px;background:#21303d;color:#f1e9ce;font-size:10px;line-height:1.35;border-top:1px solid #131f2b}.map-guide.ready{background:#f0d47b;color:#352f20;font-weight:700}.guide-mark{width:22px;height:22px;flex:0 0 22px;display:grid;place-items:center;border-radius:50%;background:#ffffff18;color:#f4d57d;font-size:14px}.map-guide.ready .guide-mark{background:#9a3e35;color:#fff3dd}.map-legend{gap:12px;letter-spacing:.7px}.map-legend>span{white-space:nowrap}.map-compass{border-color:#f5edd177;background:#273948c9;box-shadow:0 2px 6px #1e2b3655}.battle-bottom{grid-template-columns:1fr .8fr}.objective-card,.event-card{min-height:68px}.objective-card p{font-size:13px}.recruit-button{background:#ffffff0a;border-color:#d9d0aa35}.recruit-button:disabled{opacity:.6}.roster-row.active{background:#d5c08920;border-color:#e0c87980}.roster-mark{box-shadow:0 0 0 3px #8bb19130}.roster-mark.enemies{box-shadow:0 0 0 3px #cf816530}@media(max-width:1100px){.game-shell{padding-inline:16px}.game-layout{grid-template-columns:minmax(0,1fr) minmax(250px,31%);gap:14px}.sidebar{max-height:calc(100dvh - 78px)}.side-top,.selected-card,.side-footer{padding-inline:13px}}@media(max-width:830px){.game-shell{padding-inline:8px}.topbar{height:58px}.game-layout{grid-template-columns:minmax(0,1fr) minmax(156px,36%);gap:8px;padding-top:14px;align-items:start}.sidebar{display:flex;min-height:0;max-height:calc(100dvh - 76px);grid-template-columns:unset;overflow-y:auto;position:sticky;top:8px;border-radius:4px}.side-top{grid-row:auto;padding:9px 8px 7px}.gold-display{gap:5px}.gold-display>svg{width:15px;height:15px}.gold-display>span:nth-child(2){font-size:7px}.gold-display strong{font-size:17px}.income{font-size:6px}.side-divider{margin:8px 0}.section-title,.recruit-heading{font-size:7px;letter-spacing:.65px;margin-bottom:5px}.section-title span+span,.recruit-heading span+span{font-size:6px}.roster{gap:2px}.roster-row{gap:5px;padding:5px 4px}.roster-mark{width:6px;height:6px;flex:0 0 6px}.roster-name{font-size:8px;line-height:1.2;overflow-wrap:anywhere}.roster-name small{font-size:6px;margin-top:2px}.roster-hp{font-size:9px}.roster-hp small{font-size:6px;padding-left:2px}.enemy-title{margin-top:9px}.enemy-summary{gap:3px;flex-wrap:wrap}.threat-token{height:17px;min-width:17px;font-size:9px;padding:1px 4px}.enemy-summary small{font-size:6px;margin-left:2px}.recruit-heading{margin:11px 0 5px}.recruit-button{height:38px;gap:5px;padding:4px;margin-bottom:4px}.recruit-icon{width:24px;height:24px;flex:0 0 24px}.recruit-icon svg{width:16px;height:16px}.recruit-copy b{font-size:8px}.recruit-copy small{font-size:6px;margin-top:2px}.recruit-cost{font-size:8px;gap:1px}.recruit-cost svg{width:12px;height:12px}.recruit-note{font-size:6px}.selected-card{padding:9px 8px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.unit-card-head{gap:6px}.unit-portrait{width:29px;height:29px;flex:0 0 29px}.unit-portrait svg{width:18px;height:18px}.unit-card-head small{font-size:5.5px;letter-spacing:.4px}.unit-card-head h2{font-size:12px;line-height:1.1;overflow-wrap:anywhere}.unit-health{margin:8px 0 7px}.health-label{font-size:6px;letter-spacing:.5px}.health-label b{font-size:8px}.health-label small{font-size:6px}.health-track{margin-top:4px;height:4px}.unit-stats{gap:6px;flex-wrap:wrap}.unit-stats span{font-size:6px;gap:3px}.unit-stats svg{width:13px;height:13px}.unit-stats b{font-size:7px}.action-state{margin-top:6px;font-size:5.5px;letter-spacing:0;gap:2px}.state-dot{width:4px;height:4px;margin-left:2px}.side-footer{padding:8px 8px 9px}.log-heading{font-size:5.5px;letter-spacing:.6px}.log-heading button{font-size:15px}.battle-log{height:33px;margin:4px 0 6px}.battle-log p{font-size:6px;line-height:1.25;margin:3px 0}.end-turn{height:36px;padding:0 8px;font-size:7px;letter-spacing:.6px}.end-turn span{gap:4px}.end-turn svg{width:14px;height:14px}.scenario-heading{margin-bottom:10px}.scenario-heading h1{font-size:23px}.scenario-heading p{font-size:9px;max-width:205px}.eyebrow{font-size:7px;letter-spacing:1px}.turn-badge{padding:6px 8px;gap:6px}.turn-sun{font-size:15px}.turn-badge strong{font-size:14px}.map-toolbar{height:34px;padding:0 8px}.map-coords{font-size:7px;letter-spacing:.8px}.weather{display:none}.map-action{font-size:18px}.map-guide{font-size:8px;min-height:34px;padding:5px 7px;gap:5px}.guide-mark{width:18px;height:18px;flex-basis:18px;font-size:11px}.map-legend{height:26px;gap:7px;padding:0 7px;font-size:6px}.legend-dot{width:6px;height:6px;margin-right:2px}.map-compass{width:25px;height:32px;right:6px;top:6px;font-size:6px}.map-compass b{font-size:9px;margin:1px}.map-compass i{font-size:5px}.battle-bottom{grid-template-columns:1fr;margin-top:7px;gap:0}.objective-card{min-height:53px;padding:8px;gap:7px}.objective-icon{font-size:16px}.objective-card b{font-size:6px;letter-spacing:.7px}.objective-card p{font-size:11px;margin-top:3px}.objective-progress{font-size:15px}.objective-progress small{font-size:5px}.event-card{display:none}.footer{height:26px;font-size:5px}.footer span:nth-child(2){display:none}}@media(max-width:560px){.game-layout{grid-template-columns:minmax(0,1fr) minmax(148px,36%);gap:7px;padding-top:12px}.game-shell{padding-inline:6px}.topbar{height:54px}.brand-mark{width:30px;height:30px}.brand{gap:7px}.brand strong{font-size:9px;letter-spacing:1px}.brand small{font-size:6px;letter-spacing:1.8px}.top-actions{gap:5px}.icon-button{width:25px;height:25px}.scenario-heading h1{font-size:20px}.scenario-heading p{display:none}.turn-badge{padding:5px 6px}.map-guide{font-size:7px}.map-legend{gap:5px;font-size:5px;padding:0 5px}.objective-card p{font-size:10px}.sidebar{max-height:calc(100dvh - 68px)}.side-top{padding:8px 6px 6px}.selected-card,.side-footer{padding-inline:6px}.unit-card-head h2{font-size:11px}.recruit-copy small{font-size:5.5px}}@media(max-width:380px){.game-layout{grid-template-columns:minmax(0,1fr) minmax(138px,40%);gap:5px}.map-legend>span{font-size:4.6px;letter-spacing:0}.roster-name,.recruit-cost{font-size:7px}}@media(max-width:830px){.battle-map{min-width:0!important;width:100%}}.hex-cell.reachable .hex-fill{stroke:#fff0b4;stroke-width:2.4}.attack-target{width:100%;height:36px;margin-top:9px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid #e99171;border-radius:3px;background:linear-gradient(110deg,#bd5144,#973c36);color:#fff3dc;font-size:8px;font-weight:700;letter-spacing:.75px;cursor:pointer;box-shadow:0 3px 8px #101a2255}.attack-target:hover{filter:brightness(1.12);transform:translateY(-1px)}@media(max-width:830px){.attack-target{height:31px;margin-top:7px;font-size:6.5px;letter-spacing:.3px;gap:3px}.attack-target svg{width:12px;height:12px}}.roster-complete{min-width:12px;text-align:center;color:#88c997;font-size:12px;font-weight:700}.roster-row.complete .roster-mark{background:#4bb779;box-shadow:0 0 0 3px #4bb77930}.roster-row.complete .roster-name{color:#b9d4b8}.action-state.complete{color:#9bd49d;font-weight:700}.action-state.complete b{display:inline-grid;place-items:center;width:14px;height:14px;border-radius:50%;background:#367d51;color:#f5f3dc;font-size:10px}.turn-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.next-unit{height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;border:1px solid #cfbd8c66;border-radius:3px;background:#ffffff08;color:#e3d6ac;cursor:pointer;font-size:8px;font-weight:700;letter-spacing:.7px}.next-unit b{font-size:15px;font-weight:400;color:#f0d98e}.next-unit:hover:not(:disabled){background:#d7c27a1c;border-color:#d6c27d}.next-unit:disabled{opacity:.45;cursor:wait}.turn-actions .end-turn{height:42px}.village-art,.keep-art{stroke-linejoin:round;stroke-linecap:round}.village-art{stroke:#fff0bf;stroke-width:1.4}.keep-art{stroke:#fff1c2;stroke-width:1.6}@media(max-width:560px)and (orientation:portrait){html,body,#app{width:100%;height:100%;min-height:0;overflow:hidden}.game-shell{height:100dvh;min-height:100dvh;max-height:100dvh;display:grid;grid-template-rows:44px minmax(0,1fr);overflow:hidden;padding:0 7px}.topbar{height:44px;min-height:44px;border-bottom:1px solid var(--line)}.brand{gap:6px}.brand-mark{width:27px;height:27px}.brand strong{font-size:9px;letter-spacing:.9px}.brand small{font-size:5.5px;letter-spacing:1.6px;margin-top:1px}.top-actions{gap:5px}.icon-button{width:24px;height:24px;font-size:12px}.game-layout{height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,1fr);gap:4px;padding:4px 0 0;overflow:hidden;align-items:stretch;align-content:start}.battle-column{display:contents}.scenario-heading{grid-row:1;margin:0 2px 1px;min-height:31px}.eyebrow{font-size:6px;letter-spacing:1px}.scenario-heading h1{font-size:17px;line-height:1;margin:3px 0 0}.scenario-heading p{display:none}.turn-badge{padding:3px 6px;gap:4px;font-size:6px}.turn-sun,.turn-badge strong{font-size:12px}.map-frame{grid-row:2;min-width:0;border-radius:4px}.map-toolbar{height:27px;padding:0 7px;gap:5px}.map-coords{font-size:6px;letter-spacing:.7px}.map-action{font-size:16px;margin:0}.map-wrap{height:auto;max-height:none;overflow:hidden}.battle-map{display:block;width:100%;height:auto;min-width:0!important;min-height:0;aspect-ratio:850/580}.map-compass{width:20px;height:26px;right:4px;top:4px;font-size:5px}.map-compass b{font-size:7px;margin:1px}.map-compass i{font-size:4px}.map-guide{min-height:29px;padding:3px 6px;font-size:7px;line-height:1.15;gap:5px}.guide-mark{width:16px;height:16px;flex-basis:16px;font-size:9px}.map-legend{height:21px;padding:0 6px;gap:12px;font-size:5.5px;letter-spacing:.3px;justify-content:center}.legend-dot{width:7px;height:7px;margin-right:3px}.battle-bottom{grid-row:3;display:block;margin:3px 0 0}.objective-card{min-height:36px;padding:4px 8px;gap:7px;border-radius:3px}.objective-icon{font-size:14px}.objective-card b{font-size:5px;letter-spacing:.7px}.objective-card p{font-size:9px;margin:1px 0 0}.objective-progress{font-size:13px}.objective-progress small{font-size:5px}.event-card{display:none}.sidebar{grid-row:4;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:"top" "selected" "actions";gap:3px;min-height:0;height:100%;max-height:none;align-self:stretch;position:static;overflow:hidden;padding:4px 0 0;border:0;border-radius:0;background:none;box-shadow:none}.side-top{grid-area:top;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto auto auto;grid-template-areas:"gold gold" "roster roster" "recruit recruit" "threats threats";gap:3px;min-height:0;padding:0}.side-divider,.section-title,.enemy-title,.recruit-heading,.recruit-note{display:none}.gold-display{grid-area:gold;min-height:25px;padding:2px 7px;border:1px solid #e2d3b126;border-radius:3px;background:#1d2934;gap:5px}.gold-display>svg{width:14px;height:14px}.gold-display>span:nth-child(2){font-size:6px;letter-spacing:.6px}.gold-display strong{display:inline;margin:0 0 0 5px;font-size:13px}.gold-display strong small{font-size:7px}.income{font-size:5px}.roster{grid-area:roster;display:flex;flex-direction:row;flex-wrap:wrap;gap:3px;min-height:0;align-content:start}.roster:before{content:"SUA COMPANHIA";flex:0 0 100%;color:#c7b677;font-size:6px;letter-spacing:.8px;padding:1px 2px}.roster-row{flex:1 1 30%;min-width:100px;min-height:28px;gap:4px;padding:3px 5px;background:#1b2631;border:1px solid #d8c89a22;border-radius:3px;overflow:hidden}.roster-row.active{background:#a88e482b;border-color:#e0c8799c}.roster-mark{width:7px;height:7px;flex:0 0 7px;box-shadow:none}.roster-mark.enemies{background:#e56f55;box-shadow:none}.roster-name{font-size:8px;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.roster-name small{display:none}.roster-complete{min-width:10px;font-size:10px}.roster-hp{font-size:8px;white-space:nowrap}.roster-hp small{font-size:6px;padding-left:1px}.enemy-summary{grid-area:threats;display:flex;align-items:center;gap:4px;min-height:20px;padding:1px 5px;border:1px solid #bd72512b;border-radius:3px;background:#392b273d}.threat-token{height:15px;min-width:15px;padding:0 3px;font-size:8px;color:#f09a75;background:#803f342e;border-color:#db8e6c55}.enemy-summary small{display:block;margin-left:3px;font-size:6px;color:#d3a38c}.recruit-panel{grid-area:recruit;min-width:0}.recruit-menu-trigger{min-height:31px;padding:3px 7px}.recruit-trigger-copy b{font-size:7px}.recruit-trigger-copy small{font-size:5.5px}.selected-card{grid-area:selected;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"head health" "stats action" "attack attack";align-items:center;column-gap:8px;row-gap:2px;min-height:0;overflow:hidden;padding:5px 7px;border:1px solid #d9c99130;border-radius:3px;background:#18232c}.unit-card-head{grid-area:head;gap:6px;min-width:0}.unit-portrait{width:26px;height:26px;flex:0 0 26px}.unit-portrait svg{width:16px;height:16px}.unit-card-head>div{min-width:0}.unit-card-head small{font-size:5px;letter-spacing:.4px}.unit-card-head h2{font-size:11px;line-height:1.05;margin:1px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.unit-health{grid-area:health;min-width:90px;margin:0 2px}.health-label{font-size:5px;letter-spacing:.4px}.health-label b{font-size:8px}.health-label small{font-size:6px}.health-track{height:3px;margin-top:3px}.unit-stats{grid-area:stats;gap:8px;flex-wrap:nowrap}.unit-stats span{font-size:5px;gap:2px;white-space:nowrap}.unit-stats svg{width:12px;height:12px}.unit-stats b{font-size:6px}.action-state{grid-area:action;justify-content:end;margin:0;font-size:5px;letter-spacing:0;gap:2px;white-space:nowrap}.state-dot{width:4px;height:4px;margin-left:2px}.attack-target{grid-area:attack;height:25px;margin:1px 0 0;font-size:7px;letter-spacing:.3px}.side-footer{grid-area:actions;display:flex;flex-direction:column;justify-content:end;min-height:0;margin:0;padding:0 0 3px;background:none;-webkit-backdrop-filter:none;backdrop-filter:none}.log-heading{display:none}.battle-log{display:block;height:24px;max-height:24px;overflow:hidden;margin:0 0 3px}.battle-log p{font-size:6px;line-height:1.15;margin:1px 0;gap:4px}.turn-actions{grid-template-columns:1fr 1fr;gap:5px}.next-unit,.turn-actions .end-turn{height:33px;min-width:0;padding:0 7px;font-size:6.5px;letter-spacing:.3px}.next-unit b,.end-turn b{font-size:13px}.end-turn span{gap:3px}.end-turn svg{width:13px;height:13px}.footer{display:none}.toast{bottom:8px;padding:8px 10px;font-size:9px}}@media(max-width:560px)and (orientation:portrait)and (max-height:740px){.game-shell{grid-template-rows:40px minmax(0,1fr)}.topbar{height:40px;min-height:40px}.scenario-heading{display:none}.game-layout{grid-template-rows:auto auto auto minmax(0,1fr);gap:3px;padding-top:3px}.map-toolbar{height:24px}.map-guide{min-height:25px;font-size:6px}.map-legend{height:18px;font-size:5px}.sidebar{gap:2px;padding-top:2px}.gold-display{min-height:22px}.income{display:none}.roster-row{min-height:24px;padding:2px 4px}.roster:before{font-size:5px;padding:0}.recruit-button{height:27px;padding:2px 4px}.recruit-icon{width:19px;height:19px;flex-basis:19px}.selected-card{grid-template-areas:"head head" "action action" "attack attack";grid-template-columns:1fr;row-gap:1px;padding:3px 6px}.unit-card-head{gap:5px}.unit-portrait{width:22px;height:22px;flex-basis:22px}.unit-card-head small{font-size:4.5px}.unit-card-head h2{font-size:10px}.unit-health,.unit-stats{display:none}.action-state{justify-content:start;font-size:5px}.attack-target{height:22px}.enemy-summary,.battle-log{display:none}.side-footer{padding-bottom:1px}.next-unit,.turn-actions .end-turn{height:29px;font-size:6px}}.move-trace{fill:#f9e5a322;stroke:#fff6d5;stroke-width:3;stroke-dasharray:5 5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;filter:drop-shadow(0 0 2px #6b552d)}.hex-cell.reachable .hex-fill{stroke:#806c39;stroke-width:2.2}.hex-cell.selected .hex-fill{stroke:#fff0a5;stroke-width:5;filter:drop-shadow(0 0 3px #8c6b32)}.legend-range{display:inline-block;width:13px;height:8px;margin:0 4px 0 0;border:1.5px dashed #fff0b4;border-radius:2px;vertical-align:middle}.selection-ring{pointer-events:none}.selection-aura-glow{fill:none;stroke:url(#excellent-aura);stroke-width:12;stroke-linejoin:round;opacity:.48;filter:blur(3px);animation:excellent-breathe 1.4s ease-in-out infinite alternate}.selection-orbit{fill:none;stroke:url(#excellent-aura);stroke-width:4.5;stroke-dasharray:9 7;stroke-linecap:round;stroke-linejoin:round;animation:orbit-dash 1.8s linear infinite,excellent-glow 2.2s ease-in-out infinite}.orbit-beacon{fill:#f4ffbd;stroke:#36ff83;stroke-width:2.2;filter:drop-shadow(0 0 5px #52ff75) drop-shadow(0 0 8px #20eaff);animation:excellent-pulse .8s ease-in-out infinite alternate}.orbit-beacon-secondary{fill:#25f3ff;stroke:#f3ff6b;stroke-width:1.8;animation-delay:.4s}@keyframes orbit-dash{to{stroke-dashoffset:-30}}@keyframes excellent-glow{0%,to{opacity:.95;filter:drop-shadow(0 0 3px #20ff5e)}50%{opacity:1;filter:drop-shadow(0 0 6px #00edff)}}@keyframes excellent-breathe{0%{opacity:.35}to{opacity:.8}}@keyframes excellent-pulse{to{opacity:.62;filter:drop-shadow(0 0 2px #44ff9b)}}@media(prefers-reduced-motion:reduce){.selection-aura-glow,.selection-orbit{animation:none}.orbit-beacon{display:none}}.attack-in-progress .battle-map,.attack-in-progress .sidebar button,.attack-in-progress .roster-row{pointer-events:none}.attack-melee{transform-box:fill-box;transform-origin:center;animation:melee-lunge .72s cubic-bezier(.2,.75,.25,1) both}.attack-melee .unit-figure{transform-box:fill-box;transform-origin:center;animation:melee-swing .72s ease-in-out both}.attack-archer .unit-figure{transform-box:fill-box;transform-origin:60% 60%;animation:archer-draw .72s ease-in-out both}.attack-mage .unit-figure{transform-box:fill-box;transform-origin:60% 60%;animation:mage-cast .72s ease-in-out both}.melee-slash{fill:none;stroke:#fff5bd;stroke-width:8;stroke-linecap:round;filter:drop-shadow(0 0 5px #f17b47);animation:slash-flash .72s ease-out both}.melee-spark{fill:none;stroke:#ffe89a;stroke-width:3;stroke-linecap:round;filter:drop-shadow(0 0 4px #ef6b45);animation:impact-rays .72s ease-out both}.impact-flash{fill:#fff3b2;opacity:0;filter:drop-shadow(0 0 9px #f15b40);animation:impact-flash .36s ease-out .38s both}.attack-projectile{pointer-events:none;overflow:visible}.arrow-projectile path{fill:none;stroke:#fff0bd;stroke-width:4.5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 4px #e66b39)}.arrow-impact .impact-rays{fill:none;stroke:#fff2b3;stroke-width:3;stroke-linecap:round;filter:drop-shadow(0 0 5px #e66b39);animation:impact-rays .36s ease-out .42s both}.magic-trail{fill:url(#magic-aura);opacity:.88}.magic-orb{fill:#93f5ff;stroke:#f6ffff;stroke-width:2;filter:drop-shadow(0 0 8px #3ecfff)}.magic-spark{fill:none;stroke:#e9ffff;stroke-width:2;stroke-linecap:round;filter:drop-shadow(0 0 5px #3c95ff);animation:mage-spark .5s linear infinite}.magic-impact .magic-burst{fill:url(#magic-aura);stroke:#f3ffff;stroke-width:2;filter:drop-shadow(0 0 10px #49dafa);animation:magic-burst .46s ease-out .54s both}.magic-impact .magic-rune{fill:none;stroke:#b7faff;stroke-width:2;stroke-dasharray:4 5;filter:drop-shadow(0 0 5px #398dfa);animation:rune-burst .48s ease-out .54s both}.magic-impact .impact-rays{fill:none;stroke:#e1ffff;stroke-width:2.5;stroke-linecap:round;filter:drop-shadow(0 0 5px #398dfa);animation:impact-rays .4s ease-out .56s both}@keyframes melee-lunge{0%,to{transform:translate(0) scale(1)}30%,48%{transform:translate(var(--lunge-x),var(--lunge-y)) scale(1.08)}72%{transform:translate(0) scale(.98)}}@keyframes melee-swing{0%,to{rotate:0deg}28%{rotate:-9deg}48%{rotate:14deg}75%{rotate:-2deg}}@keyframes archer-draw{0%,to{transform:translate(0) rotate(0)}22%{transform:translate(-2px) rotate(-4deg)}48%{transform:translate(2px) rotate(6deg)}72%{transform:translate(0) rotate(-2deg)}}@keyframes mage-cast{0%,to{transform:translateY(0) scale(1)}25%{transform:translateY(-3px) scale(1.04)}55%{transform:translateY(1px) scale(.98)}78%{transform:translateY(-1px)}}@keyframes slash-flash{0%,14%{opacity:0;stroke-dasharray:0 100}28%{opacity:1;stroke-dasharray:75 0}62%{opacity:.9}to{opacity:0;stroke-dasharray:75 0}}@keyframes impact-flash{0%{opacity:0;transform:scale(.25)}30%{opacity:1;transform:scale(1.25)}to{opacity:0;transform:scale(2.2)}}@keyframes impact-rays{0%{opacity:0;transform:scale(.35)}35%{opacity:1;transform:scale(1.1)}to{opacity:0;transform:scale(1.65)}}@keyframes mage-spark{to{rotate:90deg}}@keyframes magic-burst{0%{opacity:0;transform:scale(.2)}40%{opacity:1;transform:scale(1.25)}to{opacity:0;transform:scale(2.3)}}@keyframes rune-burst{0%{opacity:0;transform:scale(.4) rotate(-30deg)}40%{opacity:1}to{opacity:0;transform:scale(1.6) rotate(45deg)}}@media(prefers-reduced-motion:reduce){.attack-melee,.attack-melee .unit-figure,.attack-archer .unit-figure,.attack-mage .unit-figure,.melee-slash,.melee-spark,.impact-flash,.arrow-impact .impact-rays,.magic-spark,.magic-impact .magic-burst,.magic-impact .magic-rune,.magic-impact .impact-rays{animation:none!important}.attack-projectile{display:none}}.recruit-copy{min-width:0}.recruit-button.builder .recruit-icon{color:#f0ce73;background:#d5a44824}.roster-row.building .roster-mark{background:#f0c863;box-shadow:0 0 0 3px #f0c86330}.roster-row.building .roster-name small,.roster-row.building .roster-complete{color:#f3d27b}.construction-site{pointer-events:none;filter:drop-shadow(0 1px 2px #342b17)}.construction-site path{stroke:#ffefb3}.construction-progress-badge{fill:#40351f;stroke:#ffe08b;stroke-width:1.8}.construction-progress-text{fill:#fff3c3;font:700 8px DM Sans,sans-serif}.built-structure{pointer-events:none;filter:drop-shadow(0 1px 2px #121a21)}.built-house,.built-fortress{stroke-linejoin:round;stroke-linecap:round}.building-state{color:#f2d17c;font-weight:700}.building-state b{display:inline-grid;place-items:center;width:14px;height:14px;border:1px solid #f2d17c;border-radius:50%;font-size:9px}.construction-actions{grid-area:build;display:flex;gap:5px;min-width:0;margin-top:4px}.build-button{flex:1;min-width:0;min-height:38px;display:flex;align-items:center;gap:6px;padding:4px 7px;border:1px solid #d6c27b5c;border-radius:3px;background:linear-gradient(110deg,#263745,#212d39);color:#f4e5b5;text-align:left;cursor:pointer}.build-button:hover:not(:disabled){background:#2b4964;border-color:#eed17f}.build-button:disabled{opacity:.38;cursor:not-allowed}.build-icon{width:25px;height:25px;flex:0 0 25px;display:grid;place-items:center;border:1px solid #ebcf7a55;border-radius:3px;background:#e3c66518;color:#f5d47e;font-size:19px}.build-button b,.build-button small{display:block;white-space:nowrap}.build-button b{font-size:7px;letter-spacing:.3px}.build-button small{margin-top:3px;color:#b6ba9a;font-size:7px}.build-hint{grid-area:hint;color:#9ba48a;font-size:7px;line-height:1.3;margin:3px 0 0}.map-guide{align-items:flex-start}@media(max-width:560px)and (orientation:portrait){.side-top{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto auto auto auto;grid-template-areas:"gold gold gold" "roster roster roster" "recruit recruit recruit" "threats threats threats"}.selected-card{grid-template-areas:"head health" "stats action" "attack attack" "build build" "hint hint"}.construction-actions{margin-top:2px;gap:3px}.build-button{min-height:26px;padding:2px 4px;gap:3px}.build-icon{width:18px;height:18px;flex-basis:18px;font-size:14px}.build-button b{font-size:5.5px}.build-button small{font-size:5px;margin-top:1px}}@media(max-width:560px)and (orientation:portrait)and (max-height:740px){.selected-card{grid-template-areas:"head head" "action action" "attack attack" "build build" "hint hint"}.build-button{min-height:22px}.build-icon{width:16px;height:16px;flex-basis:16px}}@media(max-width:560px)and (orientation:portrait){.map-guide>span:last-child{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}}@media(max-width:560px)and (orientation:portrait){.sidebar{grid-template-rows:auto minmax(min-content,1fr) auto;gap:5px;overflow:visible}.selected-card{min-height:min-content;overflow:visible;align-content:start;grid-auto-rows:min-content;row-gap:4px;padding:5px 7px 7px}.attack-target{height:29px;min-width:0;margin:3px 0 0;padding:0 7px;gap:5px;font-size:7px}.attack-target span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-footer{min-height:45px;padding:0 0 2px}.turn-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:4px;border:1px solid #d9c99135;border-radius:4px;background:#131c25}.next-unit,.turn-actions .end-turn{width:100%;height:34px;min-height:34px;min-width:0;padding:0 5px;justify-content:center;gap:4px;font-size:6.3px;letter-spacing:.15px;white-space:nowrap;overflow:hidden}.next-unit span{min-width:0;overflow:hidden;text-overflow:ellipsis}.next-unit b,.end-turn b{flex:0 0 auto;font-size:12px}.end-turn span{min-width:0;overflow:hidden;justify-content:center;gap:3px}}@media(max-width:560px)and (orientation:portrait)and (max-height:740px){.selected-card{row-gap:2px;padding:3px 6px 5px}.attack-target{height:25px;margin-top:2px}.side-footer{min-height:41px}.turn-actions{gap:5px;padding:3px}.next-unit,.turn-actions .end-turn{height:31px;min-height:31px;font-size:6px}}.roster-level{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:18px;padding:0 3px;border:1px solid #d5bd7144;border-radius:3px;background:#d3b55a12;color:#e5ce88;font:700 8px Marcellus,serif;letter-spacing:.2px}.roster-row.complete .roster-level{border-color:#64bd8255;color:#a9d5ae}.unit-card-title{min-width:0;flex:1}.unit-progression{display:grid;grid-template-columns:auto minmax(28px,1fr) auto;align-items:center;gap:5px;margin-top:4px;color:#cfbd7d}.unit-progression>span{font-size:8px;font-weight:700;letter-spacing:.55px;white-space:nowrap}.unit-progression>small{color:#b8b59b;font-size:7px;white-space:nowrap}.experience-track{height:4px;overflow:hidden;border:1px solid #d5c57d33;border-radius:4px;background:#0c141a}.experience-track i{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#3bc889,#d5da68);box-shadow:0 0 5px #6bdf8580;transition:width .35s ease-out}@media(max-width:560px){.roster-level{min-width:16px;height:14px;padding:0 2px;font-size:6px}.unit-progression{gap:3px;margin-top:2px}.unit-progression>span{font-size:6px}.unit-progression>small{font-size:6px}.experience-track{height:3px}}.recruit-panel{min-width:0}.recruit-menu-trigger,.build-menu-trigger{width:100%;min-width:0;min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 9px;border:1px solid #d9c99145;border-radius:4px;background:linear-gradient(110deg,#24313c,#1c2731);color:#ead9a6;text-align:left;cursor:pointer}.recruit-menu-trigger:hover:not(:disabled),.build-menu-trigger:hover:not(:disabled){background:#2d3c49;border-color:#d8c27a99}.recruit-menu-trigger:disabled,.build-menu-trigger:disabled{opacity:.48;cursor:not-allowed}.recruit-trigger-icon{width:26px;height:26px;flex:0 0 26px;display:grid;place-items:center;border:1px solid #e4ca7750;border-radius:3px;background:#d4b35c19;color:#f0d180}.recruit-trigger-copy{min-width:0;flex:1}.recruit-trigger-copy b,.recruit-trigger-copy small{display:block}.recruit-trigger-copy b{font-size:8px;letter-spacing:.6px}.recruit-trigger-copy small{margin-top:3px;color:#a6ad94;font-size:6.5px}.recruit-trigger-arrow,.build-menu-trigger>b{font-size:17px;font-weight:400;color:#f0d98e}.build-menu-trigger{grid-area:build;min-height:29px;margin-top:2px;padding:3px 7px;font-size:7px;font-weight:700;letter-spacing:.4px}.build-menu-trigger span{display:flex;align-items:center;gap:5px}.command-menu-backdrop{position:fixed;z-index:20;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom));background:#060b0fdc;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);animation:command-backdrop-in .16s ease-out both}.command-menu{width:min(430px,100%);max-height:min(90dvh,580px);overflow:auto;padding:18px;border:1px solid #dbc57d77;border-radius:7px;background:radial-gradient(ellipse at 50% 0,#2c3b48,#15202a 70%);box-shadow:0 24px 80px #0009;animation:command-menu-in .18s ease-out both}.command-menu-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.command-menu-head small{color:#d1b96e;font-size:8px;letter-spacing:1.3px}.command-menu-head h2{margin:4px 0 0;color:#f2e8d0;font:400 22px IM Fell English,serif}.command-menu-close{width:30px;height:30px;flex:0 0 30px;border:1px solid #d8c9914d;border-radius:50%;background:#ffffff08;color:#ead9a6;font-size:22px;line-height:1;cursor:pointer}.command-menu-hint{margin:10px 0 14px;color:#a9b09b;font-size:10px;line-height:1.45}.command-options{display:grid;grid-auto-flow:row;gap:8px}.command-menu .recruit-button,.command-menu .build-button{grid-area:auto;width:100%;min-width:0;min-height:56px;margin:0;padding:7px 9px;gap:10px;border:1px solid #d9ceaa3d;border-radius:4px;background:#ffffff08}.command-menu .recruit-button:hover:not(:disabled),.command-menu .build-button:hover:not(:disabled){background:#d4c0781b;border-color:#e0ca7b99}.command-menu .recruit-icon,.command-menu .build-icon{width:34px;height:34px;flex:0 0 34px;font-size:21px}.command-menu .recruit-copy b,.command-menu .build-button b{font-size:11px;letter-spacing:.15px}.command-menu .recruit-copy small,.command-menu .build-button small{display:block;margin-top:4px;color:#aeb49e;font-size:8px}.command-menu .recruit-cost{gap:4px;font-size:10px}.command-menu .recruit-cost svg{width:15px;height:15px}.menu-build-button{flex:0 1 auto}.menu-build-button .option-arrow{margin-left:auto;color:#e6cd81;font-size:19px}@keyframes command-backdrop-in{0%{opacity:0}to{opacity:1}}@keyframes command-menu-in{0%{opacity:0;transform:translateY(7px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:560px){.command-menu{padding:15px;max-height:min(84dvh,540px)}.command-menu-head h2{font-size:20px}.command-menu .recruit-button,.command-menu .build-button{min-height:58px}}@media(prefers-reduced-motion:reduce){.command-menu-backdrop,.command-menu{animation:none}}.shallows .hex-fill{fill:#8bc8b9}.shallows-art{fill:#d1cf9e;stroke:#f5f2d2}.shallows-art path:first-child{stroke:#f1ffe2;opacity:.95}.shallows-art path:nth-child(2){stroke:#fff6d1}.water .hex-fill{fill:#4f9fae}.unit-portrait{border-color:color-mix(in srgb,var(--unit-faction,#d2bd7b) 55%,transparent);color:var(--unit-faction,#e1c77f)}.lobby-button,.lobby-return{min-height:30px;padding:0 10px;border:1px solid #ddc77b66;border-radius:3px;background:#d5bf7114;color:#ead9a6;font-size:8px;font-weight:700;letter-spacing:.7px;cursor:pointer}.lobby-button:hover,.lobby-return:hover{background:#d5bf712b;border-color:#e7d18c}.lobby-return{margin-top:10px;background:#ffffff08}.lobby-shell{min-height:100dvh;overflow-y:auto;padding:18px clamp(14px,4vw,54px) 24px;background:radial-gradient(ellipse at 50% 0,#314250,#16212b 55%,#0e161e);color:#eee5d0}.lobby-header{width:min(100%,1100px);height:48px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e2d4a326}.lobby-version{color:#919a87;font-size:8px;letter-spacing:1.3px}.lobby-content{width:min(100%,860px);margin:clamp(18px,4vh,40px) auto 0;display:grid;gap:17px}.lobby-intro{text-align:center}.lobby-intro .eyebrow{color:#d1b96e}.lobby-intro h1{margin:6px 0;color:#f0e6ce;font:400 clamp(26px,4vw,40px) "IM Fell English",serif}.lobby-intro p{margin:0;color:#aeb49e;font-size:11px;line-height:1.4}.lobby-section-heading{display:flex;align-items:center;justify-content:space-between;margin:0 2px 8px}.lobby-section-heading h2,.difficulty-field legend{margin:0;color:#d0bd7a;font-size:8px;letter-spacing:1.2px;font-weight:700}.lobby-section-heading small{color:#848f7d;font-size:7px;letter-spacing:.8px}.faction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.faction-card{position:relative;min-width:0;min-height:90px;display:grid;grid-template-columns:40px minmax(0,1fr) 18px;grid-template-rows:auto 1fr;grid-template-areas:"emblem copy check" "emblem roster roster";align-items:center;gap:5px 10px;padding:9px 11px;border:1px solid #d8d1b029;border-radius:5px;background:linear-gradient(125deg,#ffffff0a,#ffffff03);color:#eee5d0;text-align:left;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}.faction-card:hover{background:#ffffff10;border-color:#e1d0945d;transform:translateY(-1px)}.faction-card.chosen{border-color:color-mix(in srgb,var(--faction-color) 78%,white 8%);background:linear-gradient(115deg,color-mix(in srgb,var(--faction-color) 15%,#1c2731),#ffffff05);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--faction-color) 19%,transparent)}.faction-emblem{grid-area:emblem;width:38px;height:38px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--faction-color) 48%,transparent);border-radius:50%;background:color-mix(in srgb,var(--faction-color) 12%,transparent);color:var(--faction-color)}.faction-emblem svg{width:25px;height:25px}.faction-copy{grid-area:copy;min-width:0}.faction-copy b,.faction-copy small{display:block}.faction-copy b{font:400 17px IM Fell English,serif}.faction-copy small{margin-top:2px;color:#a8ad9a;font-size:8px}.faction-check{grid-area:check;width:16px;height:16px;display:grid;place-items:center;border:1px solid #d8c47c55;border-radius:50%;color:#fff0a5;font-size:10px}.faction-card.chosen .faction-check{background:#c5a95744;border-color:#edd98b}.faction-roster{grid-area:roster;display:flex;flex-wrap:wrap;gap:4px}.faction-roster i{padding:3px 5px;border:1px solid #e3d8b51f;border-radius:2px;color:#d3d0be;font-size:7px;font-style:normal;white-space:nowrap}.faction-card.chosen .faction-roster i{border-color:color-mix(in srgb,var(--faction-color) 22%,transparent)}.match-setup{display:grid;grid-template-columns:minmax(180px,.78fr) minmax(0,1.6fr);align-items:end;gap:13px;padding:12px;border:1px solid #d8d1b025;border-radius:5px;background:#0c141b40}.lobby-field,.difficulty-field{min-width:0;display:grid;gap:7px;margin:0;padding:0;border:0}.lobby-field>span{color:#d0bd7a;font-size:8px;font-weight:700;letter-spacing:1.2px}.lobby-field select{width:100%;height:38px;padding:0 10px;border:1px solid #d8c9914a;border-radius:3px;background:#202d38;color:#eee5d0;font-size:11px}.difficulty-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.difficulty-choice{min-width:0;min-height:43px;padding:5px;border:1px solid #d8d1b026;border-radius:3px;background:#ffffff05;color:#dcd8c6;text-align:left;cursor:pointer}.difficulty-choice b,.difficulty-choice small{display:block}.difficulty-choice b{font-size:9px}.difficulty-choice small{margin-top:3px;color:#929b88;font-size:7px;line-height:1.15}.difficulty-choice.chosen{border-color:#d5bd71a6;background:#cfb45c17;color:#fff0b5}.lobby-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px;border:1px solid #dec87849;border-radius:5px;background:linear-gradient(100deg,#cbb05b12,#ffffff06)}.match-preview{display:flex;align-items:center;gap:10px;min-width:0}.match-preview-emblems{display:flex;align-items:center;gap:5px;color:var(--faction-color);flex:0 0 auto}.match-preview-emblems>svg,.match-preview-emblems>b>svg{width:26px;height:26px;stroke:currentColor}.match-preview-emblems>i{color:#b9a866;font-size:8px;font-style:normal}.match-preview-emblems>b{color:var(--faction-color);font-weight:400}.match-preview>span:last-child{min-width:0}.match-preview strong,.match-preview small{display:block}.match-preview strong{font:400 15px IM Fell English,serif;white-space:nowrap}.match-preview strong i{color:#b7aa78;font-size:11px;font-style:normal}.match-preview small{margin-top:3px;color:#a2a792;font-size:8px}.start-match{height:43px;min-width:180px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 14px;border:1px solid #ead28a;border-radius:3px;background:linear-gradient(105deg,#c4a65a,#947b47);color:#172027;font-size:9px;font-weight:800;letter-spacing:1px;cursor:pointer;box-shadow:0 4px 12px #060a0d55}.start-match:hover{filter:brightness(1.1);transform:translateY(-1px)}.start-match b{font-size:17px;font-weight:400}@media(max-width:700px){.lobby-shell{padding-inline:12px}.lobby-content{gap:13px;margin-top:15px}.faction-card{min-height:86px;grid-template-columns:32px minmax(0,1fr) 16px;gap:4px 7px;padding:7px}.faction-emblem{width:31px;height:31px}.faction-emblem svg{width:21px;height:21px}.faction-copy b{font-size:15px}.faction-roster{gap:3px}.faction-roster i{font-size:6px;padding:3px 4px}.match-setup{gap:8px;padding:9px}.match-preview strong{font-size:13px}.start-match{min-width:145px}}@media(max-width:560px)and (orientation:portrait){.lobby-shell{height:100dvh;min-height:100dvh;padding:8px 10px max(10px,env(safe-area-inset-bottom))}.lobby-header{height:38px;flex:0 0 38px}.lobby-header .brand-mark{width:27px;height:27px}.lobby-header .brand strong{font-size:9px}.lobby-version{font-size:6px;letter-spacing:.8px}.lobby-content{gap:10px;margin-top:11px}.lobby-intro h1{font-size:26px;margin:4px 0}.lobby-intro p{max-width:350px;margin:auto;font-size:9px}.lobby-section-heading{margin-bottom:5px}.faction-grid{gap:6px}.faction-card{min-height:78px;grid-template-columns:29px minmax(0,1fr) 14px;gap:3px 6px;padding:6px}.faction-emblem{width:28px;height:28px}.faction-emblem svg{width:19px;height:19px}.faction-copy b{font-size:14px}.faction-copy small{font-size:7px}.faction-check{width:13px;height:13px;font-size:8px}.faction-roster{gap:2px}.faction-roster i{padding:2px 3px;font-size:5.5px}.match-setup{grid-template-columns:minmax(0,.8fr) minmax(0,1.5fr);gap:7px;padding:8px}.lobby-field,.difficulty-field{gap:5px}.lobby-field>span,.difficulty-field legend{font-size:7px}.lobby-field select{height:33px;padding:0 6px;font-size:9px}.difficulty-options{gap:3px}.difficulty-choice{min-height:38px;padding:4px}.difficulty-choice b{font-size:8px}.difficulty-choice small{font-size:5.5px}.lobby-footer{gap:8px;padding:8px}.match-preview{gap:5px}.match-preview-emblems{gap:2px}.match-preview-emblems>svg,.match-preview-emblems>b>svg{width:20px;height:20px}.match-preview strong{font-size:11px}.match-preview small{font-size:6px}.start-match{height:37px;min-width:125px;padding:0 8px;gap:5px;font-size:7px;letter-spacing:.5px}}@media(max-width:370px){.faction-roster i:nth-child(2){display:none}.match-setup{grid-template-columns:1fr}.difficulty-choice small{font-size:6px}.lobby-footer{align-items:stretch;flex-direction:column}.start-match{width:100%}}.opponent-field{grid-column:1/-1}.campaign-world-content{width:min(100%,1040px);margin:clamp(12px,2vh,24px) auto 0;display:grid;gap:12px}.campaign-world-content .lobby-intro{padding:0 10px}.campaign-world-content .lobby-intro h1{font-size:clamp(25px,3vw,34px)}.campaign-world-content .lobby-intro p{max-width:720px;margin:0 auto}.campaign-world-frame{overflow:hidden;border:1px solid #d8c99147;border-radius:8px;background:#19282a;box-shadow:0 14px 40px #060b0f66}.campaign-world-map{display:block;width:100%;height:auto}.territory-fill{fill:var(--territory-color);fill-opacity:.28;stroke:none}.territory-border{fill:none;stroke:var(--territory-color);stroke-opacity:.92;stroke-width:3;stroke-dasharray:9 7;stroke-linejoin:round}.active-territory .territory-fill{fill-opacity:.42}.active-territory .territory-border{stroke:#f6df9b;stroke-width:4;stroke-dasharray:0;filter:drop-shadow(0 0 4px var(--territory-color))}.territory-name{fill:#1f2b35;font:700 20px Marcellus,serif;letter-spacing:1.3px;text-anchor:middle;paint-order:stroke;stroke:#e7d8b4;stroke-width:4px;stroke-linejoin:round}.territory-subtitle{fill:#2c3944;font:700 11px DM Sans,sans-serif;letter-spacing:1px;text-anchor:middle;paint-order:stroke;stroke:#e7d8b4;stroke-width:3px;stroke-linejoin:round}.contested-vale{fill:#f7e5ae0c;stroke:#7c6740;stroke-width:3;stroke-dasharray:8 6}.contested-vale.active{stroke:#f2d88c;stroke-width:5;filter:drop-shadow(0 0 6px #e6bf64)}.vale-label{fill:#4e4430;font:700 17px Marcellus,serif;letter-spacing:1.2px;paint-order:stroke;stroke:#ded0ac;stroke-width:4px}.vale-subtitle{fill:#635a43;font:700 10px DM Sans,sans-serif;letter-spacing:1.4px;paint-order:stroke;stroke:#ded0ac;stroke-width:3px}.campaign-route{fill:none;stroke:#f5dc91;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:4 11;filter:drop-shadow(0 1px 2px #152029);opacity:.95}.world-capital circle{fill:#1a2733;stroke:#f4dc91;stroke-width:3}.world-capital path{fill:#d2b669;stroke:#fff2c5;stroke-width:1.5}.capital-label,.pin-label{fill:#fff0c5;font:700 13px DM Sans,sans-serif;letter-spacing:1px;text-anchor:middle;paint-order:stroke;stroke:#14202a;stroke-width:4px;stroke-linejoin:round}.pin-outer{fill:#15202a;stroke:#b6a878;stroke-width:3}.pin-inner{fill:#596351;stroke:#f0dfaf;stroke-width:2}.pin-mark{fill:#f2e8ca;font:700 17px DM Sans,sans-serif;text-anchor:middle}.world-mission-pin.completed .pin-outer{fill:#496846;stroke:#f2dc91}.world-mission-pin.completed .pin-inner{fill:#73925c}.world-mission-pin.current .pin-outer{fill:#caa64e;stroke:#fff1b5;stroke-width:4}.world-mission-pin.current .pin-inner{fill:#876d35}.world-mission-pin.current .pin-mark{fill:#fff4c5}.world-mission-pin.locked{opacity:.66}.mission-pulse{fill:#f6d978;fill-opacity:.19;stroke:#ffe89a;stroke-width:2;animation:world-pulse 1.8s ease-out infinite}@keyframes world-pulse{0%{r:22;opacity:.95}to{r:38;opacity:0}}.world-compass circle{fill:#142432;fill-opacity:.82;stroke:#cfbd8b;stroke-width:2}.world-compass path{fill:#e0c778;stroke:#f7e9bc;stroke-width:1}.world-compass text{fill:#f4e8c2;font:700 13px DM Sans,sans-serif;text-anchor:middle}.map-caption{fill:#f1e5c4;font:700 11px DM Sans,sans-serif;letter-spacing:1.5px}.world-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:7px 15px;padding:2px 4px;color:#d2d1bd;font-size:9px;letter-spacing:.65px}.world-legend span{display:flex;align-items:center;gap:5px}.world-legend i{width:10px;height:10px;border:1px solid color-mix(in srgb,var(--territory-color) 75%,white);border-radius:50%;background:var(--territory-color);box-shadow:0 0 0 2px color-mix(in srgb,var(--territory-color) 22%,transparent)}.world-legend .legend-route{height:3px;width:18px;border:0;border-radius:0;background:#f5dc91;box-shadow:none}.campaign-chapter-card{padding:17px 19px;border:1px solid #dec87849;border-radius:6px;background:linear-gradient(115deg,#b99c5d18,#ffffff07)}.chapter-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#cabb88;font-size:8px;font-weight:700;letter-spacing:1px}.campaign-chapter-card h2{margin:8px 0;color:#f0e6ce;font:400 25px IM Fell English,serif}.chapter-story{max-width:900px;margin:0;color:#c4c4b3;font:italic 14px/1.5 IM Fell English,serif}.chapter-details{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:13px 0;color:#b7b9a7;font-size:10px}.chapter-details span{padding:8px 10px;border:1px solid #d8d1b01b;border-radius:3px;background:#0c141b40}.chapter-details b{display:block;margin-bottom:3px;color:#cfba76;font-size:7px;letter-spacing:1px}.campaign-chapter-card .start-match{width:min(100%,420px);margin:0 auto}.campaign-world-note{margin:0;text-align:center;color:#97a08e;font-size:9px;line-height:1.5}@media(max-width:560px){.campaign-world-content{gap:8px;margin-top:10px}.campaign-world-content .lobby-intro p{font-size:9px}.world-legend{gap:7px 9px;font-size:8px}.world-legend i{width:9px;height:9px}.campaign-chapter-card{padding:11px 10px}.chapter-card-top{font-size:6px;letter-spacing:.55px}.campaign-chapter-card h2{font-size:21px;margin:6px 0}.chapter-story{font-size:12px;line-height:1.35}.chapter-details{grid-template-columns:1fr;gap:5px;margin:8px 0}.chapter-details span{padding:6px 8px;font-size:9px}}.world-legend .chapter-done,.world-legend .chapter-current,.world-legend .chapter-locked{display:grid;place-items:center;width:13px;height:13px;border:1px solid #d9c783;border-radius:50%;background:#496846;color:#fff1b0;font-size:8px;font-weight:800;font-style:normal;box-shadow:none}.world-legend .chapter-current{background:#caa64e;color:#fff5c5}.world-legend .chapter-locked{background:#596351;color:#e8e0ca}.battle-shell{border-inline:10px ridge #71674f;background:linear-gradient(90deg,#131b20eb,#253031c9 48%,#121b20eb),repeating-linear-gradient(7deg,#4a504d 0,#4a504d 2px,#28333c 3px,#28333c 7px);box-shadow:inset 0 0 0 2px #b59b5e,inset 0 0 0 6px #171d20,0 0 55px #000b}.battle-shell .topbar{border-bottom:3px ridge #847452;background:linear-gradient(#354247,#1c282d);box-shadow:0 2px #101b20}.battle-shell .scenario-heading h1{color:#f3dfae;text-shadow:0 2px 2px #000}.battle-shell .map-frame{position:relative;padding:7px;border:3px ridge #b49a61;border-radius:2px;background:repeating-linear-gradient(115deg,#535b57 0,#535b57 3px,#3c4c5a 4px,#3c4c5a 7px,#444d4d 8px,#444d4d 10px);box-shadow:0 0 0 2px #141d20,0 0 0 4px #786b4e,inset 0 0 0 2px #202c2d,0 12px 28px #0008;overflow:visible}.battle-shell .map-wrap{border:2px solid #283b36;box-shadow:0 0 0 1px #b5a06a,inset 0 0 18px #14261d;background:#52684e}.battle-shell .map-toolbar{background:linear-gradient(#384754,#1f272e 52%,#192728);border:1px solid #b19963;color:#e6d9ae;text-shadow:0 1px #000}.battle-shell .map-coords{color:#e7d6a1;font-family:Marcellus,serif;letter-spacing:1.4px}.frame-corner{position:absolute;z-index:3;display:grid;place-items:center;width:21px;height:21px;color:#eed698;font-size:14px;border:2px outset #c1aa72;background:radial-gradient(#789488,#293d3e 50%,#b59a60 54%,#5e503c 76%);box-shadow:0 2px 3px #0008;pointer-events:none}.frame-corner.nw{left:-5px;top:-5px}.frame-corner.ne{right:-5px;top:-5px}.frame-corner.sw{left:-5px;bottom:-5px}.frame-corner.se{right:-5px;bottom:-5px}.battle-shell .sidebar{border:5px ridge #8f805d;border-radius:1px;background:linear-gradient(110deg,#243538f0,#19262beb),repeating-linear-gradient(32deg,#56615b 0,#56615b 1px,#323f3e 2px,#323f3e 6px);box-shadow:0 0 0 1px #151e20,inset 0 0 0 1px #b69f65,0 8px 20px #0005}.battle-shell .selected-card{background:linear-gradient(120deg,#37465366,#0c171c88);border-block:2px groove #a08c5b}.battle-shell .side-footer{background:linear-gradient(#283b3c,#17282c)}.battle-shell .end-turn,.battle-shell .command-toggle{border:3px ridge #cfb678;border-radius:1px;background:linear-gradient(#66796b,#2b3e4e 48%,#152634);color:#f0dfab;text-shadow:0 1px 2px #000;box-shadow:inset 0 0 0 1px #162727,0 3px 5px #0005}.battle-shell .map-guide{background:linear-gradient(#202e3b,#1e2f2e);border-top:2px groove #a79561;color:#dfddbc}.battle-shell .map-guide.ready{background:#725637;color:#fff1c8}.battle-shell .map-legend{background:#1c2b2d;border-top:1px solid #64715f;color:#bfc9b3}.battle-shell .objective-card{border:2px ridge #8b805e;border-radius:1px;background:linear-gradient(100deg,#2d3944,#243135)}.battle-shell .legend-dot.allies{background:#2876b3}.battle-shell .legend-dot.enemies{background:#bc443c}.battle-map .hex-fill{stroke:#3e6149;stroke-width:.8;stroke-opacity:.25;filter:none}.battle-map .plain .hex-fill{fill:#92aa70}.battle-map .forest .hex-fill{fill:#6d8a60}.battle-map .hill .hex-fill{fill:#a9a67b}.battle-map .water .hex-fill{fill:url(#river-depth);stroke:none}.battle-map .shallows .hex-fill{fill:#82aaa0;stroke:none}.battle-map .village .hex-fill{fill:#b4ab77}.battle-map .keep .hex-fill{fill:#728789;stroke:#efd48a;stroke-width:2.2;stroke-opacity:.96;filter:drop-shadow(0 0 5px #efc77d99)}.battle-map .keep-art{filter:drop-shadow(0 5px 3px #1b2829cc)}.battle-map .hex-facet{opacity:.25}.battlefield-detail{pointer-events:none;stroke-linejoin:round;stroke-linecap:round}.battle-map .hex-cell.reachable .hex-fill{filter:none;stroke:#f2da94;stroke-width:1.4;stroke-opacity:.7}.battle-map .hex-cell.selected .hex-fill{stroke:#f9e5a1;stroke-width:2.4;stroke-opacity:1}.battle-map .hex-cell.attackable .hex-fill{stroke:#e78e6f;stroke-width:3;stroke-opacity:1}.biome-bells-under-roots .plain .hex-fill{fill:#7d8b71}.biome-bells-under-roots .forest .hex-fill{fill:#5e7364}.biome-bells-under-roots .shallows .hex-fill{fill:#6b8b7e}.biome-arvoden-banner .plain .hex-fill{fill:#929681}.biome-arvoden-banner .forest .hex-fill{fill:#69756c}.biome-arvoden-banner .hill .hex-fill{fill:#989580}@media(max-width:560px)and (orientation:portrait){.battle-shell{border-inline:3px ridge #8f805d;padding-inline:4px;box-shadow:inset 0 0 0 1px #b59b5e}.battle-shell .map-frame{padding:3px;border-width:2px;margin-inline:1px;box-shadow:0 0 0 1px #141d20}.frame-corner{width:12px;height:12px;font-size:8px;border-width:1px}.frame-corner.nw,.frame-corner.sw{left:-3px}.frame-corner.ne,.frame-corner.se{right:-3px}.frame-corner.nw,.frame-corner.ne{top:-3px}.frame-corner.sw,.frame-corner.se{bottom:-3px}.battle-shell .sidebar{border-width:2px;padding:3px;box-shadow:none}.battle-shell .map-toolbar{height:25px}.battle-shell .map-coords{letter-spacing:.6px}.battle-shell .selected-card{border-width:1px}.battle-shell .end-turn,.battle-shell .command-toggle{border-width:2px}}.city-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:grid;place-items:center;padding:20px;background:#071017ed;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.city-screen{width:min(1120px,100%);height:min(920px,95dvh);display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto;border:7px ridge #a58e61;outline:2px solid #1b2528;box-shadow:0 25px 100px #000b,inset 0 0 0 2px #d3ba7a;background:#1d2a2d;color:#f3e7c8;overflow:hidden}.city-header{display:flex;align-items:center;gap:20px;padding:13px 22px;background:linear-gradient(#364551,#202d30);border-bottom:3px ridge #b3a06b}.city-header small{display:block;color:#c5bb93;font-size:9px;letter-spacing:1.8px}.city-header h2{font:400 clamp(20px,2.8vw,32px) "IM Fell English",serif;margin:5px 0 0;color:#f0dfb3;text-shadow:0 2px #121f25}.city-treasury{display:flex;align-items:center;gap:8px;margin-left:auto;color:#f0d586;font-size:25px;white-space:nowrap}.city-treasury strong{font-family:Marcellus,serif}.city-treasury small{font-size:8px}.city-close{width:38px;height:38px;flex-shrink:0;border:2px ridge #a89467;background:#263c3d;font-size:26px;color:#eedcaf;cursor:pointer}.city-scene{min-height:0;position:relative;background:#273a3e;overflow:hidden;display:grid;place-items:center}.city-panorama{width:100%;height:100%;display:block;object-fit:contain}.city-motto{position:absolute;top:10px;left:0;right:0;margin:0;text-align:center;font:italic 15px IM Fell English,serif;color:#fff0cc;text-shadow:0 2px 4px #17252e;pointer-events:none}.city-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-block:3px ridge #9f8d60;background:#1b2b2e}.city-tabs button{min-height:44px;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-right:1px solid #887d56;background:linear-gradient(#32404b,#263638);color:#c8cab3;cursor:pointer;font-size:12px}.city-tabs button span{color:#e6c47c;font-size:22px}.city-tabs button.active{background:linear-gradient(#88764b,#4e503b);color:#fff0c6;box-shadow:inset 0 0 0 1px #e3c682}.city-detail{display:grid;grid-template-columns:88px 1fr 235px;align-items:center;gap:16px;padding:15px 22px;background:radial-gradient(ellipse at 35% 0,#374653,#202f32 80%)}.city-unit-preview{height:94px;border:2px ridge #a9905c;background:radial-gradient(#75816a,#263b3e);box-shadow:inset 0 0 12px #112127}.city-unit-preview svg{height:100%;width:100%;overflow:visible}.city-unit-copy small{color:#c5b682;font-size:9px;letter-spacing:1px}.city-unit-copy h3{font:26px IM Fell English,serif;margin:5px 0;color:#f6e6bc}.city-unit-copy p{font-size:12px;margin:4px 0;color:#d1dccb}.city-unit-copy .city-upgrade-note{font-size:11px;color:#b7c0a5;line-height:1.4}.city-purchases{display:grid;gap:8px}.city-purchases button{min-height:41px;padding:9px 12px;border:3px ridge #c3a768;background:linear-gradient(#667e63,#2b3d4d);color:#fff0c0;display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:10px;font-weight:700;letter-spacing:.6px;cursor:pointer}.city-purchases button+button{background:linear-gradient(#67647c,#35374e)}.city-purchases button:disabled{opacity:.42;cursor:not-allowed}.city-purchases b{white-space:nowrap;color:#ffe092;font-size:13px}.city-purchases button:hover:not(:disabled){filter:brightness(1.18)}.city-status{min-height:37px;display:flex;align-items:center;padding:8px 22px;background:#15262b;border-top:1px solid #7d785b;font-size:11px;line-height:1.4;color:#cecdb4}.city-screen button:focus-visible{outline:2px solid #fff0b4;outline-offset:-4px}@media(max-width:560px){.city-backdrop{padding:0}.city-screen{height:100dvh;width:100%;border-width:4px;grid-template-rows:auto minmax(0,1fr) auto auto auto}.city-header{padding:10px 9px;gap:7px}.city-header small{font-size:6px;letter-spacing:.7px}.city-header h2{font-size:20px;line-height:1.08;max-width:230px}.city-treasury{gap:4px;font-size:18px}.city-treasury small{display:none}.city-close{width:30px;height:32px;font-size:23px}.city-motto{font-size:11px;top:13px;padding:0 15px}.city-panorama{min-height:0}.city-tabs button{font-size:9px;flex-direction:column;gap:1px;min-height:48px;padding:4px 0}.city-tabs button span{font-size:19px}.city-detail{grid-template-columns:63px 1fr;padding:11px 10px;gap:9px}.city-unit-preview{height:79px}.city-unit-copy h3{font-size:21px;margin:3px 0}.city-unit-copy small{font-size:7px;letter-spacing:.3px}.city-unit-copy p{font-size:10px}.city-unit-copy .city-upgrade-note{font-size:9px;line-height:1.3}.city-purchases{grid-column:1/-1;grid-template-columns:1fr 1fr;gap:7px}.city-purchases button{min-height:45px;font-size:8px;padding:7px}.city-purchases b{font-size:12px}.city-status{min-height:47px;font-size:10px;padding:7px 10px}}@media(max-height:580px)and (orientation:landscape){.city-backdrop{padding:4px}.city-screen{height:98dvh}.city-header{padding:4px 12px}.city-header h2{font-size:21px}.city-detail{padding:5px 12px;grid-template-columns:55px 1fr 220px}.city-unit-preview{height:57px}.city-unit-copy h3{font-size:19px}.city-purchases{grid-template-columns:1fr 1fr}.city-purchases button{padding:4px;font-size:8px}.city-tabs button{min-height:30px}.city-status{min-height:28px;padding:4px 12px}.city-motto{display:none}}.unit-rank-badge text{fill:#fff3d3;font:700 9px DM Sans,sans-serif;paint-order:stroke;stroke:#233640;stroke-width:.5px}.unit-specialization-badge rect{fill:#193c3c;stroke:#a9ffca;stroke-width:1}.unit-specialization-badge text{fill:#d9ffaf;font:800 8px DM Sans,sans-serif}.excellent-equipment{filter:drop-shadow(0 0 var(--equipment-glow) var(--equipment-color));animation:equipment-shimmer 3.4s ease-in-out infinite}.excellence-sparks{fill:none;stroke:#d6fff1;stroke-width:1.4;pointer-events:none;filter:drop-shadow(0 0 2px #63ffcd)}.excellence-sparks path{animation:equipment-spark 2.8s ease-in-out infinite;transform-box:fill-box;transform-origin:center}@keyframes equipment-shimmer{0%,to{filter:drop-shadow(0 0 var(--equipment-glow) var(--equipment-color))}50%{filter:drop-shadow(0 0 calc(var(--equipment-glow) * 1.65) var(--equipment-color)) brightness(1.08)}}@keyframes equipment-spark{0%,to{opacity:.22;transform:scale(.65)}50%{opacity:.95;transform:scale(1.12)}}.unit-excellent-label{color:#9fffe0!important;text-shadow:0 0 5px #60dbb36b}.city-recruit-rarity{color:#a7efd4!important;font-size:10px!important}@media(prefers-reduced-motion:reduce){.excellent-equipment,.excellence-sparks path{animation:none}}.unit-portrait svg.unit-portrait-art{width:100%;height:100%;overflow:visible}.enemy-acting-hex{fill:#ffab5120;stroke:#ffc66d;stroke-width:4;stroke-dasharray:12 5;pointer-events:none;filter:drop-shadow(0 0 3px #f19450)}.battle-shell .map-guide.enemy-turn-guide{background:linear-gradient(90deg,#633e30,#382c29);border-top-color:#d1a06c;color:#ffe6b4;font-weight:600;line-height:1.4;min-height:46px}@media(max-width:560px)and (orientation:portrait){.battle-shell .map-guide.enemy-turn-guide{font-size:9px;min-height:43px;padding:5px 7px}}.sound-toggle{flex-shrink:0;font-size:18px;min-width:32px;min-height:32px}.sound-toggle.is-on{background:#66877430;box-shadow:0 0 8px #b9d09825}.sound-toggle:focus-visible{outline:2px solid #f0d386;outline-offset:3px}.campaign-objective{display:flex;align-items:center;gap:10px;width:100%;padding:0;border:0;background:none;text-align:left;cursor:pointer;color:#e9dfc5;min-height:34px}.campaign-objective>span:nth-child(2){flex:1;min-width:0}.campaign-next-objective{display:block;font-size:13px;line-height:1.25;margin-top:3px}.journal-hint{font-size:9px;color:#cbb97d;white-space:nowrap}.campaign-objective:focus-visible{outline:2px solid #ead28b;outline-offset:4px}.campaign-objective:disabled{cursor:default}.campaign-map-marker path{fill:#392f1d;stroke:#ffe095;stroke-width:2.2;filter:drop-shadow(0 1px 2px #0009)}.campaign-map-marker text{fill:#ffeab2;text-anchor:middle;font:700 15px Georgia,serif}.campaign-map-marker.is-done path{fill:#284661;stroke:#b1dfac}.campaign-map-marker.is-done text{fill:#c4f0bd}.campaign-story-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:150;display:grid;place-items:center;padding:18px;background:#070c11ce;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.campaign-story-card{width:min(100%,480px);max-height:calc(100dvh - 36px);overflow:auto;border:2px ridge #bda46b;border-radius:8px;padding:24px 28px;background:radial-gradient(ellipse at top,#2f3b46,#121e27 70%);box-shadow:0 20px 90px #0009;color:#eee4cb}.story-sigil{font-size:36px;text-align:center;color:#dbc482}.campaign-story-card>.eyebrow{text-align:center;font-size:8px;letter-spacing:1.4px}.campaign-story-card h2{text-align:center;font:400 29px IM Fell English,Georgia,serif;margin:9px 0 18px}.story-dialogue{border-left:2px solid #b59a5960;padding-left:15px}.story-dialogue p{font:italic 18px/1.3 IM Fell English,Georgia,serif;margin:0 0 14px}.story-dialogue p span{display:block;font:600 9px/1.7 DM Sans,sans-serif;text-transform:uppercase;letter-spacing:1.2px;color:#b6ad8d}.story-objectives{border-top:1px solid #bca26045;padding-top:9px;margin-top:18px}.story-objectives p{display:flex;gap:9px;align-items:center;font-size:12px;margin:8px 0}.story-objectives b{color:#e6cb83}.story-objectives .is-done{color:#accb9e}.story-objectives small{font-size:10px;color:#d8b395}.story-tactic{font-size:11px;line-height:1.4;color:#b4bdac;margin:12px 0 18px}.campaign-story-card .start-match{width:100%;min-height:42px;justify-content:center}@media(max-width:560px){.campaign-story-backdrop{padding:12px}.campaign-story-card{padding:16px 20px;max-height:calc(100dvh - 24px)}.story-sigil{font-size:26px}.campaign-story-card h2{font-size:25px;margin:7px 0 14px}.story-dialogue p{font-size:17px;margin-bottom:11px}.story-objectives{margin-top:13px}.campaign-next-objective{font-size:11px}.journal-hint{font-size:8px}.campaign-objective{gap:7px}.campaign-objective .objective-icon{font-size:21px}}@media(max-height:600px){.story-sigil{display:none}.campaign-story-card{padding:12px 18px}.campaign-story-card h2{font-size:22px;margin:5px 0 9px}.story-dialogue p{font-size:15px;margin-bottom:6px}.story-objectives{margin-top:9px;padding-top:4px}.story-tactic{margin:8px 0}.campaign-story-card .start-match{min-height:36px}}.leader-standard{pointer-events:none;filter:drop-shadow(0 1px 1px #1119)}.leader-standard-cloth{transform-box:fill-box;transform-origin:right center;animation:standard-breeze 3.5s ease-in-out infinite}@keyframes standard-breeze{0%,to{transform:skewY(-3deg)}50%{transform:skewY(4deg)}}.city-panorama-portrait{display:none}.city-scene{background:radial-gradient(ellipse at center,#586b57,#1b2b2b)}.city-motto{top:7px;opacity:.9}@media(max-width:560px)and (orientation:portrait){.city-panorama-wide{display:none}.city-panorama-portrait{display:block}.city-motto{font-size:11px;top:7px}.city-header{padding:8px 9px}.city-detail{padding:8px 10px}.city-status{min-height:38px;padding:6px 10px}}@media(prefers-reduced-motion:reduce){.leader-standard-cloth{animation:none}}.neutral-mark{fill:#fff8da;font:700 11px Georgia,serif}.neutral-encounter-badge path{fill:#6f5325;stroke:#ffe1a0;stroke-width:1.8}.neutral-encounter-badge text{fill:#fff4ca;font:700 18px Georgia,serif}.hp-fill.neutral{fill:#e7bd62}.legend-dot.neutrals{background:#d6ad50}.neutral-hex{cursor:help}.lore-button{display:flex;align-items:center;gap:3px;color:#f1d38a;font-size:22px;flex-shrink:0}.lore-button small{font:600 10px DM Sans,sans-serif}.map-legend{flex-wrap:wrap}.encounter-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:160;display:grid;place-items:center;padding:16px;background:#080e13d9;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.encounter-card{width:min(430px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:22px 26px;border:2px ridge #bea56a;border-radius:8px;background:radial-gradient(ellipse at top,#4a4c36,#14202a 75%);box-shadow:0 20px 70px #0009;color:#efe5cc;text-align:center}.encounter-portrait{height:90px}.encounter-portrait svg{height:100%;width:110px;overflow:visible}.encounter-card .eyebrow{font-size:9px;letter-spacing:1.4px}.encounter-card h2{font:400 27px IM Fell English,Georgia,serif;margin:9px 0 12px}.encounter-description{font-size:13px;line-height:1.5;color:#ddd9c4}.encounter-note{font-size:11px;line-height:1.4;color:#b8bea6;margin:12px 0}.encounter-odds,.encounter-dice{display:flex;justify-content:center;align-items:center;gap:15px;padding:12px;border:1px solid #c3a46a55;border-radius:6px;background:#0e192277}.encounter-odds strong,.encounter-dice b{font:32px Marcellus,Georgia,serif;color:#f0d182}.encounter-odds span,.encounter-dice span{font-size:12px;line-height:1.6;text-align:left}.encounter-dice.joined b{color:#b8e5ad}.encounter-dice.hostile b{color:#efa997}.encounter-card blockquote{margin:17px 0;padding:14px;border-left:2px solid #c4a35e;background:#0b141c55;text-align:left;font:italic 18px/1.4 IM Fell English,Georgia,serif}.encounter-card blockquote small{display:block;font:700 9px/2 DM Sans,sans-serif;color:#c9b47c;letter-spacing:1px}.encounter-actions{display:flex;gap:8px;margin-top:16px}.encounter-actions button{flex:1;min-height:42px;padding:8px 10px;border:2px ridge #b59c65;background:linear-gradient(#657658,#273d50);color:#fff0c7;cursor:pointer;font-size:11px;letter-spacing:.4px}.encounter-actions button:disabled{opacity:.4;cursor:default}.encounter-actions button:focus-visible{outline:2px solid #fff0bb;outline-offset:3px}.encounter-actions button+button{background:#1d2c39}.lore-journal-sigil{font-size:46px;color:#e5c781}.lore-pagination button:first-child,.lore-pagination button:last-child{flex:0 0 40px}.lore-pagination button{font-size:10px}@media(max-width:560px){.encounter-backdrop{padding:12px}.encounter-card{padding:18px 20px;max-height:calc(100dvh - 24px)}.encounter-card h2{font-size:25px}.encounter-portrait{height:76px}.encounter-actions button{font-size:10px}.map-toolbar .lore-button{margin-left:auto}}@media(max-height:600px){.encounter-card{padding:12px 16px}.encounter-portrait{height:48px}.encounter-card h2{font-size:22px;margin:6px 0}.encounter-description{margin:8px 0;font-size:12px}.encounter-note{margin:8px 0;font-size:10px}.encounter-card blockquote{margin:10px 0;padding:9px;font-size:16px}.encounter-odds,.encounter-dice{padding:7px}.encounter-actions{margin-top:10px}}.shroud-overlay,.fog-overlay{pointer-events:none}.shroud-fill{fill:#111a2b;stroke:#71839a;stroke-width:1.2;filter:drop-shadow(0 2px 4px #0009)}.shroud-gate{fill:#24334b;stroke:#a7b4c2;stroke-width:1.5;opacity:.83}.shroud-star{fill:#f4e4ab;filter:drop-shadow(0 0 3px #e6d287)}.fog-overlay{fill:#111a20;fill-opacity:.76;stroke:#1a2429;stroke-width:1}.built-tower{filter:drop-shadow(0 3px 3px #0d1720)}.built-tower path:first-child{filter:brightness(1.08)}.city-unit-options,.city-rank-options{display:flex;gap:5px;margin-bottom:5px;flex-wrap:wrap}.city-unit-options button,.city-rank-options button{border:1px solid #918364;background:#1b3032;color:#d8ddca;padding:6px 9px;min-height:32px;font-size:11px;cursor:pointer;border-radius:3px}.city-unit-options button[aria-pressed=true]{background:#625d3e;border-color:#e6c77a;color:#fff0c6}.city-rank-options button[aria-pressed=true]{background:#2b455c;border-color:#a9cfb8;color:#edffe8}.city-unit-preview{height:118px}.city-unit-copy h3{font-size:23px}@media(max-width:560px){.city-unit-options button,.city-rank-options button{font-size:9px;padding:4px 7px;min-height:30px}.city-unit-options,.city-rank-options{gap:4px;margin-bottom:4px}.city-unit-copy h3{font-size:18px}.city-unit-preview{height:94px}.city-detail{gap:6px;padding:8px}.city-upgrade-note{display:none}.city-status{max-height:60px;overflow:hidden}}.battlefield-detail{pointer-events:none}.water-glints{animation:water-glimmer 4s ease-in-out infinite}@keyframes water-glimmer{0%,to{opacity:.45}50%{opacity:1}}.city-humans .city-scene{background:#566763}.city-orcs .city-scene{background:#4b382f}.city-undead .city-scene{background:#24353f}.city-elves .city-scene{background:#27445e}@media(prefers-reduced-motion:reduce){.water-glints{animation:none}}.campaign-illustration{margin:0 0 15px;overflow:hidden;border:1px solid #b7a16b80;border-radius:4px;background:#193337;box-shadow:0 6px 22px #071a1c55}.campaign-illustration svg{display:block;width:100%;height:auto;max-height:228px;object-fit:cover}.campaign-story-card{width:min(100%,620px);padding:18px 24px}.campaign-story-card h2{margin:7px 0 13px}.campaign-story-card .story-dialogue p{margin-bottom:10px}.story-ash{animation:story-ash-pulse 4.5s ease-in-out infinite}.story-banner{transform-box:fill-box;transform-origin:left center;animation:story-cloth 6s ease-in-out infinite}@keyframes story-ash-pulse{0%,to{opacity:.18}50%{opacity:.62}}@keyframes story-cloth{0%,to{transform:skewY(-1deg)}50%{transform:skewY(1.5deg)}}.result-modal .campaign-illustration{margin-bottom:12px}.result-modal:has(.campaign-illustration) .result-symbol{display:none}@media(max-width:560px){.campaign-story-backdrop{padding:8px}.campaign-story-card{padding:12px 14px;max-height:calc(100dvh - 16px)}.campaign-illustration{margin-bottom:11px}.campaign-illustration svg{max-height:clamp(105px,21dvh,175px)}.campaign-story-card h2{font-size:24px;margin:6px 0 10px}.campaign-story-card .story-dialogue p{font-size:16px;margin-bottom:8px}.campaign-story-card .story-objectives{margin-top:10px;padding-top:6px}.campaign-story-card .story-objectives p{font-size:11px;margin:6px 0}.campaign-story-card .story-tactic{font-size:10px;margin:9px 0 11px}.campaign-story-card>.eyebrow{font-size:7px;letter-spacing:1px}}@media(max-height:540px)and (orientation:landscape){.campaign-story-card{width:min(96vw,880px);display:grid;grid-template-columns:minmax(180px,.9fr) minmax(260px,1.1fr);gap:5px 18px;padding:12px 18px}.campaign-story-card>.campaign-illustration{grid-column:1;grid-row:1/7;align-self:center;margin:0}.campaign-story-card>.campaign-illustration svg{max-height:290px}.campaign-story-card>:not(.campaign-illustration){grid-column:2}.campaign-story-card h2{font-size:20px;margin:2px 0 5px}.campaign-story-card .story-dialogue p{font-size:14px;margin-bottom:5px}.campaign-story-card .story-objectives{margin:2px 0;padding-top:3px}.campaign-story-card .story-objectives p{font-size:10px;margin:4px 0}.campaign-story-card .story-tactic{font-size:9px;margin:3px 0}}@media(prefers-reduced-motion:reduce){.story-ash,.story-banner{animation:none}}.encounter-outcomes{display:flex;gap:6px;justify-content:center;margin:12px 0}.encounter-outcomes>span{flex:1;padding:10px 5px;border:1px solid #b9a57555;border-radius:5px;background:#101d28}.encounter-outcomes b{display:block;font-size:11px;color:#d9d1b0}.encounter-outcomes small{display:block;font-size:10px;margin-top:5px;color:#b6bda8}.encounter-outcomes>span:first-child b{color:#b4dfad}.encounter-outcomes>span:last-child b{color:#efad97}.encounter-die{position:relative;width:75px;height:83px;flex-shrink:0;display:grid;place-items:center;filter:drop-shadow(0 5px 6px #0006)}.encounter-die svg{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.encounter-die b{position:relative;font:700 25px Georgia,serif;color:#ffe2a0!important}.encounter-roll{min-height:150px;display:grid;justify-items:center;align-content:center;gap:10px;perspective:500px}.encounter-roll p{font-size:12px;color:#dcd5b5;margin:0}.encounter-die.spinning{animation:encounter-tumble 1.35s cubic-bezier(.15,.65,.3,1) both}.encounter-die.landed{animation:encounter-land .24s ease-out}.encounter-dice.hostile .encounter-die svg>path:first-child{stroke:#efa18d}.encounter-dice.joined .encounter-die svg>path:first-child{stroke:#b1e8b5}.encounter-dice.remained .encounter-die svg>path:first-child{stroke:#e3ce86}@keyframes encounter-tumble{0%{transform:translateY(-16px) rotate(-30deg) rotateY(0)}35%{transform:translateY(5px) rotate(140deg) rotateY(360deg)}70%{transform:translateY(-7px) rotate(310deg) rotateY(650deg)}to{transform:translateY(0) rotate(360deg) rotateY(720deg)}}@keyframes encounter-land{0%{transform:scale(1.12)}70%{transform:scale(.96)}to{transform:scale(1)}}@media(prefers-reduced-motion:reduce){.encounter-die.spinning,.encounter-die.landed{animation:none}}@media(max-height:600px){.encounter-die{width:55px;height:61px}.encounter-die b{font-size:21px}.encounter-roll{min-height:110px}.encounter-outcomes>span{padding:7px 4px}}.battle-day-label{display:block;font:600 9px/1.25 DM Sans,sans-serif;letter-spacing:0;text-align:center;color:#dbcba0}.turn-sun{text-align:center}.time-night .battle-surround{filter:brightness(.55) saturate(.72)}.time-dusk .battle-surround{filter:brightness(.82) sepia(.2)}.time-dawn .battle-surround{filter:sepia(.18)}.city-screen.time-night .city-motto{color:#d8e3ee}.city-scene:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;pointer-events:none}.city-screen.time-dusk .city-scene:before{background:linear-gradient(#8c483363,#26243b55)}.city-screen.time-night .city-scene:before{background:linear-gradient(#07132bba,#11243aab)}.city-screen.time-dawn .city-scene:before{background:linear-gradient(#e5b78622,#46556a30)}.city-panorama{position:relative;z-index:1}.city-motto{z-index:2}@media(max-height:720px){.city-screen{grid-template-rows:auto minmax(215px,1fr) auto auto auto}.city-detail{padding-block:7px}.city-unit-preview{height:85px}.city-unit-copy .city-recruit-rarity,.city-unit-copy .city-upgrade-note{display:none}.city-unit-copy h3{margin-block:2px}.city-status{min-height:30px}}.city-fire{transform-box:fill-box;transform-origin:50% 100%;animation:city-fire-dance 1.3s ease-in-out infinite alternate}.city-flag-cloth{transform-box:fill-box;transform-origin:left center;animation:city-cloth-wave 3.2s ease-in-out infinite}.city-floating-light{animation:city-orb-float 3.8s ease-in-out infinite}.city-clouds{animation:city-cloud-drift 24s ease-in-out infinite alternate}.city-star{animation:city-star-shimmer 4s ease-in-out infinite alternate}.city-water-ring{transform-box:fill-box;transform-origin:center;animation:city-water-ripple 2.7s ease-out infinite}@keyframes city-fire-dance{0%{transform:scale(.93,.94) skew(-3deg);opacity:.85}40%{transform:scale(1.03,1.1) skew(2deg);opacity:1}to{transform:scale(.96,1.02) skew(-1deg);opacity:.92}}@keyframes city-cloth-wave{0%,to{transform:skewY(-3deg) scaleX(.97)}50%{transform:skewY(4deg) scaleX(1.02)}}@keyframes city-orb-float{0%,to{transform:translateY(0)}50%{transform:translateY(-6px)}}@keyframes city-cloud-drift{0%{transform:translate(-12px)}to{transform:translate(18px)}}@keyframes city-star-shimmer{0%{opacity:.25}to{opacity:.8}}@keyframes city-water-ripple{0%{transform:scale(.4);opacity:.7}to{transform:scale(1.25);opacity:0}}@media(max-width:560px){.battle-day-label{font-size:7px}}@media(prefers-reduced-motion:reduce){.city-fire,.city-flag-cloth,.city-floating-light,.city-clouds,.city-star,.city-water-ring{animation:none!important}}.unit-biography-button{width:100%;margin:5px 0;padding:5px 8px;border:1px solid #ba9f68;background:#283d3d;color:#f1dcab;font-size:9px;text-align:left;cursor:pointer}.grave-marker{cursor:pointer;filter:drop-shadow(0 2px 2px #172827)}.grave-marker:hover,.grave-marker:focus-visible{filter:drop-shadow(0 0 5px #f5d99e)}.memorial-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:170;display:grid;place-items:center;padding:14px;background:#080e13d9;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.memorial-card{width:min(100%,430px);max-height:calc(100dvh - 28px);overflow:auto;padding:22px;border:2px ridge #bda46d;border-radius:8px;background:radial-gradient(ellipse at top,#374653,#1a2b2b 72%);color:#eae1c8;text-align:center;box-shadow:0 16px 60px #000b}.memorial-art{font-size:38px;color:#d8bd82}.memorial-card>small{color:#c9b785;font-size:9px;letter-spacing:1.3px}.memorial-card h2{font:28px IM Fell English,Georgia,serif;margin:8px 0 2px}.memorial-card p{font:15px/1.5 IM Fell English,Georgia,serif}.memorial-card .memorial-role{font:10px DM Sans,sans-serif;color:#c8d0b6;text-transform:uppercase;margin:0 0 18px}.memorial-card .memorial-mood{color:#f0bb94;font:12px DM Sans,sans-serif}.memorial-card .memorial-tip{font:11px/1.4 DM Sans,sans-serif;color:#bbc7ac}.memorial-actions{display:flex;gap:8px;margin-top:16px}.memorial-actions button{flex:1;min-height:41px;border:2px ridge #c3aa75;background:#304e69;color:#f6e9c2;cursor:pointer}.memorial-actions button:last-child{background:#263f3d}@media(max-width:560px){.memorial-card{padding:17px}.memorial-card h2{font-size:24px}}.bond-line-glow{fill:none;stroke-width:7;opacity:.28;filter:blur(4px);stroke-linecap:round}.bond-line{fill:none;stroke-width:2.2;opacity:.84;stroke-linecap:round}.bond-endpoint{fill:#e2fff3;opacity:.42;filter:drop-shadow(0 0 5px #e7ffdc)}.bond-traveler{fill:#fffbe0;opacity:.9;filter:drop-shadow(0 0 4px #e9fff6) drop-shadow(0 0 7px #fff1c8)}.memorial-story{text-align:left;margin:16px 0 20px}.memorial-story p{margin:0 0 13px;font:17px/1.48 IM Fell English,Georgia,serif;color:#f0e7d0}.memorial-story p:last-child{margin-bottom:0;padding-top:11px;border-top:1px solid #d5c69339;color:#d7dfc8}.mourning-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:180;display:grid;place-items:center;padding:14px;background:#080f12da;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.mourning-card{width:min(100%,440px);max-height:calc(100dvh - 28px);overflow:auto;padding:22px 24px;text-align:center;border:3px ridge #b99e72;border-radius:8px;background:radial-gradient(ellipse at 50% 0,#323f4b,#182727 75%);color:#f3e5c8;box-shadow:0 15px 65px #000c}.mourning-card.fury{border-color:#bd7559;background:radial-gradient(ellipse at 50% 0,#62453d,#1e2929 75%)}.mourning-sigil{font-size:43px;color:#e5c98b}.mourning-card.fury .mourning-sigil{color:#f0a574}.mourning-card>small{font:700 9px DM Sans,sans-serif;letter-spacing:1.7px;color:#c8b994}.mourning-card h2{font:29px IM Fell English,Georgia,serif;margin:10px 0 14px}.mourning-card>p{font:17px/1.45 IM Fell English,Georgia,serif}.mourning-consequence{display:grid;gap:4px;margin:16px 0 10px;padding:11px;border-top:1px solid #c5ae77;border-bottom:1px solid #c5ae77}.mourning-consequence b{font:19px IM Fell English,Georgia,serif}.mourning-consequence span{font:700 11px DM Sans,sans-serif;color:#e6bc91}.mourning-card.despair .mourning-consequence span{color:#b8cce6}.mourning-card .mourning-hint{font:11px/1.4 DM Sans,sans-serif;color:#c9cbb9}.mourning-card button{width:100%;min-height:42px;margin-top:8px;border:2px ridge #c9ab76;background:#394d5e;color:#fff0ce;cursor:pointer}.mourning-card.fury button{background:#735344}@media(max-width:560px){.mourning-card{padding:17px 18px}.mourning-card h2{font-size:24px}.mourning-card>p{font-size:15px}}@media(prefers-reduced-motion:reduce){.bond-traveler{display:none}}@media(max-width:560px)and (orientation:portrait){.selected-card{grid-template-columns:minmax(0,1fr) minmax(90px,auto);grid-template-areas:"head health" "stats action" "bio bio" "attack attack" "build build" "hint hint";grid-auto-rows:min-content;min-width:0}.selected-card .unit-biography-button{grid-area:bio;min-width:0;min-height:25px;margin:2px 0 0;padding:4px 7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7px}.selected-card .build-menu-trigger{grid-area:build}.selected-card .build-hint{grid-area:hint}.unit-card-head,.unit-card-head>div{min-width:0}.unit-progression{min-width:0;grid-template-columns:auto minmax(12px,1fr) auto}.unit-progression>span,.unit-progression>small{overflow:hidden;text-overflow:ellipsis}.turn-actions>*{min-width:0}}@media(max-width:560px)and (orientation:portrait)and (max-height:740px){.sidebar{grid-template-rows:max-content max-content minmax(0,1fr)}.side-top{min-height:max-content;grid-template-columns:minmax(0,1fr);grid-template-rows:max-content max-content max-content;grid-template-areas:"gold" "roster" "recruit"}.roster:before{display:none}.roster-row{flex:1 1 0;min-width:0}.roster-name{font-size:6px}.recruit-menu-trigger{height:31px;min-height:31px}.unit-progression{display:none}.unit-card-head{height:23px;overflow:hidden}.unit-card-head small{display:none}.selected-card{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "bio" "action" "attack" "build" "hint";padding-bottom:2px}.selected-card .unit-biography-button{min-height:23px;margin-top:1px;padding:3px 6px}.unit-card-head{max-width:100%}.selected-card:has(.attack-target) .unit-biography-button,.selected-card:has(.build-menu-trigger) .unit-biography-button,.selected-card:has(.build-menu-trigger) .build-hint,.selected-card:has(.build-menu-trigger) .action-state{display:none}}@media(max-width:560px)and (orientation:portrait){.battle-shell .sidebar{display:flex;flex-direction:column;gap:3px;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:none}.battle-shell .side-top,.battle-shell .selected-card,.battle-shell .side-footer{flex:0 0 auto;min-width:0;width:100%}.battle-shell .roster{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.battle-shell .roster-row{flex:0 0 max(30%,96px)}.battle-shell .side-footer{position:static;min-height:0;margin-top:auto;padding:2px 0 0;justify-content:flex-end}.battle-shell .turn-actions{flex:0 0 auto;align-items:stretch;min-height:0}.battle-shell .turn-actions .next-unit,.battle-shell .turn-actions .end-turn{height:34px;min-height:34px;line-height:1;flex:0 0 auto}.battle-shell .selected-card{overflow:visible}.battle-shell .selected-card:has(.attack-target) .unit-biography-button,.battle-shell .selected-card:has(.build-menu-trigger) .unit-biography-button,.battle-shell .selected-card:has(.build-menu-trigger) .build-hint,.battle-shell .selected-card:has(.build-menu-trigger) .action-state{display:none}}@media(max-width:560px)and (orientation:portrait)and (max-height:740px){.battle-shell .side-top{grid-template-columns:minmax(0,1fr);grid-template-rows:max-content max-content;grid-template-areas:"gold" "recruit";gap:3px}.battle-shell .roster,.battle-shell .enemy-summary{display:none}.battle-shell .recruit-menu-trigger{height:31px;min-height:31px}.battle-shell .side-footer{padding-top:0}.battle-shell .turn-actions .next-unit,.battle-shell .turn-actions .end-turn{height:31px;min-height:31px}}.city-screen .city-scene{background:#172024}.city-screen .city-scene:before{display:none}.campaign-map-marker.is-pending{opacity:.45}.map-navigation{position:absolute;left:9px;bottom:9px;display:flex;gap:3px;z-index:4}.map-navigation button{width:29px;height:27px;border:1px solid #c2aa70;background:#182835e8;color:#f2dfad;font-size:17px;cursor:pointer;box-shadow:0 2px 4px #0007}.map-navigation button:disabled{opacity:.35;cursor:default}.map-overview{font-size:20px}.map-wrap{touch-action:none}@media(min-width:561px){.city-backdrop{padding:12px}.city-screen{width:100%;height:calc(100dvh - 24px);max-height:1040px}.city-scene{display:flex;align-items:stretch;justify-content:center}.city-panorama-wide{width:auto;height:100%;max-width:100%;aspect-ratio:1000/480;flex:none;border-inline:4px ridge #b6a071}.city-wing{display:block;width:0;min-width:0;height:100%;flex:1}.city-wing-right{transform:scaleX(-1)}}@media(max-width:560px){.city-wing{display:none}}.player-moving{pointer-events:none}.player-moving .hex-cell{cursor:wait}@media(max-width:560px){.battle-map{aspect-ratio:850/638}}.opening-screen{position:fixed;top:0;right:0;bottom:0;left:0;overflow:hidden;background:#080f1b;isolation:isolate;transition:opacity .18s;color:#f2dfb4}.opening-art{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:-2}.opening-screen:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;background:linear-gradient(#060d1e55,transparent 45%,#060c1cd9);pointer-events:none}.opening-copy{position:absolute;top:10%;left:0;right:0;text-align:center;text-shadow:0 3px 20px #020810}.opening-copy>p:first-child{font-size:10px;letter-spacing:4px}.opening-copy h1{font:400 clamp(45px,8vw,86px)/.98 "IM Fell English",Georgia,serif;margin:20px 0;color:#fff0c9}.opening-copy h1 span{color:#e3bf77}.opening-rule{color:#e1c381;font-size:22px}.opening-mystery{font:italic 17px/1.6 Georgia,serif;color:#d4d5c4}.opening-enter{position:absolute;bottom:9%;left:50%;transform:translate(-50%);white-space:nowrap;border:1px solid #d7b46c88;background:#11222bd9;color:#f4dfaf;border-radius:4px;padding:17px 25px;letter-spacing:2px;font-size:11px;cursor:pointer;box-shadow:0 0 32px #d9bd6333}.opening-enter span{margin-left:15px}.opening-enter:focus-visible{outline:2px solid #fff0be;outline-offset:5px}.opening-status{position:absolute;bottom:4%;left:0;right:0;text-align:center;font:italic 12px Georgia,serif;color:#cfccb5}.opening-ember{animation:intro-embers 6s ease-in-out infinite}.opening-standard{transform-origin:616px 410px;animation:intro-banner 5s ease-in-out infinite}.opening-screen.is-playing .opening-art{animation:intro-reveal 4s ease-out both}.opening-screen.is-leaving{opacity:0;pointer-events:none}@keyframes intro-embers{50%{opacity:.15;transform:translateY(-18px)}}@keyframes intro-banner{50%{transform:skewY(1deg)}}@keyframes intro-reveal{0%{filter:brightness(.8)}to{filter:brightness(1.12)}}@media(prefers-reduced-motion:reduce){.opening-ember,.opening-standard,.opening-screen.is-playing .opening-art{animation:none}}@media(max-width:560px)and (orientation:portrait){.battle-shell .roster:before{display:none}.battle-shell .roster-row{flex:1 0 max(30%,96px)}.battle-shell .turn-actions .next-unit,.battle-shell .turn-actions .end-turn{font-size:9px;letter-spacing:.3px;line-height:1.5}.battle-shell .turn-actions .next-unit span,.battle-shell .turn-actions .end-turn span{line-height:1.5;overflow:visible}}.castle-building{cursor:pointer;outline:none}.castle-ring{fill:#f6dc8c;fill-opacity:0;stroke:#f6dc8c;stroke-opacity:0;stroke-width:2;stroke-dasharray:5 7;transition:fill-opacity .2s,stroke-opacity .2s}.castle-building.is-selected .castle-ring{fill-opacity:.2;stroke-opacity:.95}.castle-building:hover .castle-ring,.castle-building:focus-visible .castle-ring{fill-opacity:.1;stroke-opacity:.6}.castle-label rect{fill:#101c22;fill-opacity:.6;stroke:#b9a773;stroke-opacity:.5;stroke-width:1}.castle-label.is-selected rect{fill:#24303a;fill-opacity:.95;stroke:#f6dc8c;stroke-opacity:1;stroke-width:1.6}.castle-label-name{font-family:IM Fell English,Georgia,serif;fill:#f6ecd0}.castle-label-type{font-family:DM Sans,sans-serif;font-weight:700;letter-spacing:.6px;fill:#e2cf8f}.castle-tier circle{fill:#665235;stroke:#f4d68c;stroke-width:1.5}.castle-tier text{fill:#fff0bb;font-family:Georgia,serif;font-weight:700}@media(prefers-reduced-motion:reduce){.castle-ring{transition:none}}.castle-smoke{animation:castle-smoke-rise 6s ease-in-out infinite}@keyframes castle-smoke-rise{0%{transform:translateY(5px);opacity:.15}35%{opacity:.85}to{transform:translate(10px,-14px);opacity:.1}}@media(prefers-reduced-motion:reduce){.castle-smoke{animation:none}}.city-scene[data-layout=tall] .city-panorama-wide,.city-scene[data-layout=tall] .city-wing{display:none}.city-scene[data-layout=tall] .city-panorama-portrait{display:block;width:100%;height:100%;flex:1}.city-scene[data-layout=wide] .city-panorama-portrait{display:none}.city-scene[data-layout=wide] .city-panorama-wide{display:block}.castle-hour rect{fill:#152732;fill-opacity:.93;stroke:#b8aa77;stroke-opacity:.7;stroke-width:1}.castle-hour text{font-family:DM Sans,sans-serif;fill:#e9dfbc}.grave-marker.grave-idle{cursor:inherit;filter:drop-shadow(0 2px 2px #172827)}.heal-fx{pointer-events:none}.heal-pool{fill:#7dffb0;opacity:0;transform-box:fill-box;transform-origin:center;animation:heal-pool .95s ease-out both}.heal-ring{fill:none;stroke:#b8ffd0;stroke-width:3;opacity:0;transform-box:fill-box;transform-origin:center;animation:heal-ring .7s ease-out both}.heal-spark{fill:none;stroke:#d8ffe4;stroke-width:2.6;stroke-linecap:round;opacity:0;animation:heal-spark .85s ease-out both;filter:drop-shadow(0 0 3px #52f08d)}.heal-number{fill:#e9ffe9;stroke:#1d3347;stroke-width:3;paint-order:stroke;font:900 22px Georgia,serif;opacity:0;transform-box:fill-box;transform-origin:center;animation:heal-number .95s ease-out .1s both}@keyframes heal-pool{0%{opacity:0;transform:scale(.4)}25%{opacity:.55}to{opacity:0;transform:scale(1.35)}}@keyframes heal-ring{0%{opacity:.95;transform:scale(.35)}to{opacity:0;transform:scale(1.5)}}@keyframes heal-spark{0%{opacity:0;transform:translateY(8px)}25%{opacity:1}to{opacity:0;transform:translateY(-34px)}}@keyframes heal-number{0%{opacity:0;transform:translateY(10px) scale(.7)}25%{opacity:1;transform:translateY(0) scale(1.15)}70%{opacity:1;transform:translateY(-10px) scale(1)}to{opacity:0;transform:translateY(-20px)}}@media(prefers-reduced-motion:reduce){.heal-pool,.heal-ring,.heal-spark{animation:none;opacity:0}.heal-number{animation:none;opacity:1}}.save-status{margin:4px 0;font-size:.875rem;line-height:1.35;color:#c8c5b0}.saved-game-panel{margin:12px 0}.saved-game-panel .start-match{min-height:44px}.saved-game-panel p{margin:6px 0}.selected-card .attack-target{height:auto;min-height:30px;flex-wrap:wrap;row-gap:1px;padding-block:4px}.attack-target .attack-main{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attack-target .attack-forecast,.attack-target .attack-hint{flex:0 0 100%;text-align:center;font-size:.92em;font-weight:600;letter-spacing:.2px;line-height:1.25;white-space:normal;opacity:.96}.attack-target .attack-hint{opacity:.7;font-weight:500}@media(max-width:560px){.attack-target .attack-hint{display:none}}.forecast-badge rect{fill:#2b1512;fill-opacity:.92;stroke:#f0a887;stroke-width:1.4}.forecast-badge text{fill:#ffe9d3;font:700 11px Georgia,serif;letter-spacing:.2px}.float-text{font:900 19px Georgia,serif;stroke:#2a0d0d;stroke-width:3.2;paint-order:stroke;opacity:0;transform-box:fill-box;transform-origin:center;animation:float-rise 1.3s ease-out both;pointer-events:none}.float-text.damage{fill:#ffd9c9}.float-text.miss{fill:#e9eddc;font-size:14px;font-style:italic}@keyframes float-rise{0%{opacity:0;transform:translateY(8px) scale(.7)}12%{opacity:1;transform:translateY(0) scale(1.18)}25%{transform:scale(1)}72%{opacity:1}to{opacity:0;transform:translateY(-26px)}}.hp-fill.low{fill:#f0643d;animation:low-pulse 1.1s ease-in-out infinite}.low-hp-badge circle{fill:#d63c2f;stroke:#fff1dc;stroke-width:1.5;animation:low-pulse 1.1s ease-in-out infinite}.low-hp-badge text{fill:#fff;font:900 11px Georgia,serif}@keyframes low-pulse{50%{opacity:.55}}.roster-row.hurt{border-color:#e0705a66}.roster-hp.low{color:#ff9a7f;font-weight:700}@media(prefers-reduced-motion:reduce){.float-text{animation:none;opacity:1}.hp-fill.low,.low-hp-badge circle{animation:none}}.side-footer .save-status{margin:2px 0;font-size:7px;letter-spacing:.3px;line-height:1.3;opacity:.7}.map-guide[hidden]{display:none}.coach-tip{display:flex;gap:8px;align-items:center;min-height:36px;padding:5px 8px;background:linear-gradient(#3a3320,#2b2616);border-top:2px groove #e3c677;color:#f6ecd0;animation:coach-in .3s ease-out both}.coach-tip p{margin:0;flex:1;min-width:0;font-size:9px;line-height:1.3}.coach-tip b{color:#f0cf7b;letter-spacing:.6px;font-size:.88em}.coach-actions{display:flex;flex-direction:column;gap:3px;flex:0 0 auto}.coach-actions button{min-width:56px;padding:3px 7px;border:1px solid #e3c677;border-radius:3px;background:#b9993f;color:#1a1710;font-size:7.5px;font-weight:800;letter-spacing:.5px;cursor:pointer}.coach-actions #tip-skip{background:transparent;color:#e9d9ac;border-color:#e3c67766;font-weight:600}@keyframes coach-in{0%{opacity:0}to{opacity:1}}@media(min-width:830px){.coach-tip p{font-size:12px}.coach-actions button{font-size:9px;padding:5px 10px}}@media(prefers-reduced-motion:reduce){.coach-tip{animation:none}}.result-modal{max-height:calc(100dvh - 24px);overflow-y:auto}.crossroads{display:flex;flex-direction:column;gap:7px;margin:0 0 14px;text-align:left}.result-modal .crossroads-prompt{margin:0 0 4px;max-width:none;font-size:12px;line-height:1.4;color:#d5d1bf;font-style:italic}.crossroad-option{display:block;width:100%;padding:9px 12px;border:1px solid #d2bd7b55;border-radius:4px;background:#ffffff08;color:#eee5d0;cursor:pointer;text-align:left}.crossroad-option:hover,.crossroad-option:focus-visible{background:#d5c08920;border-color:#e0c780}.crossroad-option b{display:block;font-size:12px;font-weight:600}.crossroad-option small{display:block;margin-top:3px;font-size:10px;color:#a9ad9a}.result-modal .crossroads-chosen{margin:0 auto 14px;font-size:11px;color:#b9d0a8}.crossroads.epilogue{border-top:1px solid #d2bd7b33;padding-top:10px}.crossroads.epilogue b{font-size:8px;letter-spacing:1.5px;color:#c8b272;text-align:center}.result-modal .crossroads.epilogue p{margin:0;max-width:none;font-size:11px;line-height:1.4;font-style:italic}@media(max-width:480px){.result-modal{padding:22px 18px 20px}.result-modal h2{font-size:27px}.result-modal .campaign-illustration{max-height:120px}}@media(max-height:700px){.result-modal .campaign-illustration{display:none}.result-modal:has(.campaign-illustration) .result-symbol{display:block;font-size:24px;margin-bottom:4px}.result-modal p{margin-bottom:12px;font-size:12px}}.lobby-shell .save-status{margin:10px auto 0;max-width:520px;font-size:11px;letter-spacing:.4px;line-height:1.5;color:#8196a3;text-align:center}.gold-chip{margin-left:auto;display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 8px;border:1px solid #d8bd7c40;border-radius:11px;background:#0c141d99;color:var(--gold);white-space:nowrap}.gold-chip svg{flex:0 0 auto}.gold-chip b{font:400 14px/1 Marcellus,serif;color:#eadba8;letter-spacing:.3px}.gold-chip small{font-size:9px;color:#9fb0a0;letter-spacing:.2px}.gold-chip+.weather{margin-left:14px}@media(max-width:830px){.gold-chip{height:20px;padding:0 6px;gap:4px;margin-right:2px}.gold-chip b{font-size:12px}.gold-chip small{font-size:8px}}.gold-chip.in-top{margin-left:0}.gold-chip.in-bar{display:none}@media(max-width:830px){.gold-chip.in-top{display:none}.gold-chip.in-bar{display:inline-flex}}.side-top{padding-top:12px}@media(min-height:561px){.city-status{box-sizing:border-box;height:58px;min-height:58px;max-height:58px;overflow:hidden}}@media(min-height:561px)and (min-width:831px){.city-status{height:48px;min-height:48px;max-height:48px}}.room-content{text-align:center;justify-items:center}.room-card{width:min(100%,460px);display:grid;gap:12px;padding:16px;border:1px solid #ddc77b44;border-radius:4px;background:#0a121a99}.room-code{font:400 clamp(34px,11vw,52px) "IM Fell English",serif;letter-spacing:.22em;padding-left:.22em;color:#f0e0a8}.room-link{width:100%;height:36px;padding:0 8px;border:1px solid #ddc77b44;border-radius:3px;background:#0b1620;color:#cfd6c4;font-size:11px;text-align:center}.room-actions{display:flex;gap:8px;justify-content:center}.room-actions .start-match{flex:1;min-width:0;justify-content:center}.room-status{margin:0;min-height:1.4em;font-size:11px;color:#9fb3c0}.room-enter{width:min(100%,340px);justify-content:center}.room-shell .faction-grid{width:100%}.online-tag{color:#9fc7ea}.online-tag.is-off{color:#e1b27a}.room-shell .lobby-return{margin-top:0}.desync-note{margin:8px 0;color:#e8b9a4;font-size:12px}.room-join-row{display:flex;gap:6px}.room-join-row input{flex:1;min-width:0;height:33px;padding:0 8px;border:1px solid #ddc77b44;border-radius:3px;background:#0b1620;color:#eee5d0;font-size:12px;letter-spacing:.25em;text-transform:uppercase}.room-join-row .lobby-button{min-height:33px}.room-field{grid-column:span 2}.unit-glyph:not(.attacker-attacking) .unit-figure{transform-box:fill-box;transform-origin:50% 100%;animation-duration:var(--idle-t,3.4s);animation-delay:var(--idle-d,0s);animation-iteration-count:infinite;animation-timing-function:ease-in-out}.unit-glyph:not(.attacker-attacking) .idle-melee{animation-name:idle-breathe}.unit-glyph:not(.attacker-attacking) .idle-leader{animation-name:idle-command}.unit-glyph:not(.attacker-attacking) .idle-ranged{animation-name:idle-sway}.unit-glyph:not(.attacker-attacking) .idle-scout{animation-name:idle-stamp}.unit-glyph:not(.attacker-attacking) .idle-mage{animation-name:idle-float}.unit-glyph:not(.attacker-attacking) .idle-builder{animation-name:idle-work}.unit-glyph:not(.attacker-attacking) .idle-f-undead.idle-melee,.unit-glyph:not(.attacker-attacking) .idle-f-undead.idle-ranged{animation-name:idle-creak}.unit-glyph.unit-done .unit-figure{animation-play-state:paused}@keyframes idle-breathe{0%,to{transform:scale(1)}50%{transform:scale(1.015,1.04) translateY(-.5px)}}@keyframes idle-command{0%,to{transform:scale(1) rotate(0)}35%{transform:scale(1.012,1.045) rotate(-.8deg)}70%{transform:scale(1.008,1.02) rotate(.8deg)}}@keyframes idle-sway{0%,to{transform:rotate(-2.2deg) translateY(0)}50%{transform:rotate(2.2deg) translateY(-1px)}}@keyframes idle-stamp{0%,to{transform:translateY(0) rotate(0)}18%{transform:translateY(-2.5px) rotate(-1.6deg)}32%{transform:translateY(0) rotate(0)}58%{transform:translateY(-1px) rotate(1deg)}78%{transform:translateY(0) rotate(0)}}@keyframes idle-float{0%,to{transform:translateY(1px) scale(1)}50%{transform:translateY(-5px) scale(1.02)}}@keyframes idle-work{0%,55%,to{transform:rotate(0)}62%{transform:rotate(-3.5deg) translateY(1px)}70%{transform:rotate(1.5deg)}80%{transform:rotate(-2.5deg) translateY(1px)}90%{transform:rotate(0)}}@keyframes idle-creak{0%,to{transform:rotate(-1.2deg) scale(1)}30%{transform:rotate(1.4deg) scale(1.01,.99)}34%{transform:rotate(.6deg) scaleY(1.01)}70%{transform:rotate(-1.8deg) scale(1.012,1.03)}}@media(prefers-reduced-motion:reduce){.unit-glyph .unit-figure{animation:none!important}}.unit-glyph:not(.attacker-attacking) .part{transform-box:fill-box;transform-origin:50% 100%;animation-duration:calc(var(--idle-t,3s) * 1.7);animation-delay:var(--idle-d,0s);animation-iteration-count:infinite;animation-timing-function:ease-in-out}.unit-glyph:not(.attacker-attacking) .part-sword{animation-name:part-blade}.unit-glyph:not(.attacker-attacking) .part-dagger,.unit-glyph:not(.attacker-attacking) .part-dagger-left{animation-name:part-flick}.unit-glyph:not(.attacker-attacking) .part-dagger-left{animation-delay:calc(var(--idle-d,0s) - .5s)}.unit-glyph:not(.attacker-attacking) .part-shield{animation-name:part-guard;transform-origin:50% 50%}.unit-glyph:not(.attacker-attacking) .part-bow{animation-name:part-draw;transform-origin:0 50%}.unit-glyph:not(.attacker-attacking) .part-arrow{animation-name:part-nock;transform-origin:100% 50%}.unit-glyph:not(.attacker-attacking) .part-tool{animation-name:part-chop;animation-duration:calc(var(--idle-t,3s) * 1.1)}.unit-glyph:not(.attacker-attacking) .part-staff{animation-name:part-sway}.unit-glyph:not(.attacker-attacking) .part-orb{animation-name:part-glow;transform-origin:50% 50%;animation-duration:calc(var(--idle-t,3s) * .9)}.unit-glyph:not(.attacker-attacking) .part-tail{animation-name:part-swish;animation-duration:calc(var(--idle-t,3s) * .7);transform-origin:100% 15%}.unit-glyph:not(.attacker-attacking) .part-horse{animation-name:part-rear;animation-duration:calc(var(--idle-t,3s) * 4);transform-origin:18% 100%}.unit-glyph:not(.attacker-attacking) .part-neigh{animation-name:part-neigh;animation-duration:calc(var(--idle-t,3s) * 4);transform-origin:50% 50%}.part-neigh{opacity:0}.unit-glyph:not(.attacker-attacking) .part-wtail{animation-name:part-swish;animation-duration:calc(var(--idle-t,3s) * .6);transform-origin:0 50%}.unit-glyph:not(.attacker-attacking) .part-legs{animation-name:part-twitch;animation-duration:calc(var(--idle-t,3s) * .5);transform-origin:50% 50%}.unit-glyph:not(.attacker-attacking) .part-head-a{animation-name:part-sway;animation-duration:calc(var(--idle-t,3s) * 1.1);transform-origin:50% 100%}.unit-glyph:not(.attacker-attacking) .part-head-b{animation-name:part-sway;animation-duration:calc(var(--idle-t,3s) * 1.4);animation-delay:calc(var(--idle-d,0s) - .9s);transform-origin:50% 100%}.unit-glyph:not(.attacker-attacking) .part-head-c{animation-name:part-sway;animation-duration:calc(var(--idle-t,3s) * .9);animation-delay:calc(var(--idle-d,0s) - 1.7s);transform-origin:50% 100%}@keyframes part-twitch{0%,to{transform:scaleY(1)}50%{transform:scaleY(.94) translateY(1px)}}.unit-glyph.unit-done .part,.unit-glyph.attacker-attacking .part{animation-play-state:paused}@keyframes part-blade{0%,58%,to{transform:rotate(0)}68%{transform:rotate(-16deg)}80%{transform:rotate(12deg)}90%{transform:rotate(-4deg)}}@keyframes part-flick{0%,60%,to{transform:rotate(0)}70%{transform:rotate(-20deg)}82%{transform:rotate(14deg)}92%{transform:rotate(-4deg)}}@keyframes part-guard{0%,to{transform:translateY(0) rotate(0)}50%{transform:translateY(-1.5px) rotate(2deg)}}@keyframes part-draw{0%,38%,to{transform:scaleX(1)}58%{transform:scaleX(.82)}64%{transform:scaleX(.82)}68%{transform:scaleX(1.06)}78%{transform:scaleX(1)}}@keyframes part-nock{0%,38%,to{transform:translate(0)}58%{transform:translate(-6px)}64%{transform:translate(-6px)}69%{transform:translate(5px);opacity:.25}70%{transform:translate(-9px);opacity:0}78%{transform:translate(0);opacity:1}}@keyframes part-chop{0%,40%,to{transform:rotate(0)}52%{transform:rotate(-22deg)}60%{transform:rotate(14deg) translateY(1px)}68%{transform:rotate(-14deg)}76%{transform:rotate(10deg)}86%{transform:rotate(0)}}@keyframes part-sway{0%,to{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}@keyframes part-glow{0%,to{transform:scale(1);filter:drop-shadow(0 0 1px #b8ffff)}50%{transform:scale(1.28);filter:drop-shadow(0 0 7px #b8ffff)}}@keyframes part-swish{0%,to{transform:rotate(-12deg)}50%{transform:rotate(14deg)}}@keyframes part-rear{0%,64%,to{transform:rotate(0) translateY(0)}72%{transform:rotate(-11deg) translateY(-2px)}78%{transform:rotate(-8deg) translateY(-1px)}84%{transform:rotate(-12deg) translateY(-2px)}92%{transform:rotate(0) translateY(0)}}@keyframes part-neigh{0%,70%,to{opacity:0;transform:scale(.6)}74%,86%{opacity:1;transform:scale(1)}90%{opacity:0;transform:scale(1.2)}}@media(prefers-reduced-motion:reduce){.unit-glyph .part{animation:none!important}}.adv-shell{min-height:100dvh;display:grid;grid-template-rows:auto auto auto;align-content:start;gap:8px;padding:8px 10px max(10px,env(safe-area-inset-bottom));background:radial-gradient(ellipse at 50% 0,#27465f,#132131 60%,#0a131c);color:#eee5d0;position:relative;overflow:hidden}.adv-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.adv-brand strong{display:block;font:400 17px IM Fell English,serif;letter-spacing:.6px;color:#f0e0a8}.adv-brand small{font-size:9px;letter-spacing:1.2px;color:#9fb3c0}.adv-res{display:flex;gap:6px}.adv-chip{font-size:13px;padding:4px 9px;border:1px solid #ddc77b55;border-radius:3px;background:#0b1620aa}.adv-chip.gold{color:#f2c94c}.adv-chip.gem{color:#7ff0ff}.adv-map-frame{position:relative;border:2px solid #b99a4c;border-radius:6px;background:#0a1219;overflow:hidden;box-shadow:0 0 0 1px #3b2d12,0 0 0 4px #0b1620,0 0 0 5px #8a6f33,0 8px 22px #000a}.adv-map{width:100%;height:auto;display:block;touch-action:manipulation}.adv-world{transition:transform .24s linear}.adv-hero-move{transition:transform .19s linear}.adv-tile{cursor:pointer}.adv-tile:hover{fill:#fff3}.adv-reach-fill{fill:#fff3c8;fill-opacity:.1;pointer-events:none}.adv-reach-edge{fill:none;stroke:#ffe9a8;stroke-width:2.2;stroke-linecap:round;stroke-dasharray:6 5;opacity:.8;pointer-events:none;animation:adv-edge 2.4s linear infinite}@keyframes adv-edge{to{stroke-dashoffset:-22}}.adv-cost-badge{pointer-events:none}.adv-cost-badge circle{fill:#1a1306;fill-opacity:.82;stroke:#ffe9a8;stroke-width:1.4}.adv-cost-badge text{font:700 10px DM Sans,sans-serif;fill:#feb}.adv-hero{animation:adv-bob 1.8s ease-in-out infinite}.adv-hero-ring{animation:adv-ring 2.2s ease-in-out infinite;transform-box:fill-box;transform-origin:center}.adv-ripple{animation:adv-ripple 4.6s ease-in-out infinite}.adv-foam{animation:adv-foam 3.2s ease-in-out infinite}.adv-cloud{animation:adv-cloud 14s ease-in-out infinite alternate}.adv-flag{animation:adv-wave 1.4s ease-in-out infinite;transform-box:fill-box;transform-origin:left center}.adv-flame{animation:adv-flame .9s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:50% 100%}.adv-sparkle{animation:adv-sparkle 2.2s ease-in-out infinite;transform-box:fill-box;transform-origin:center;opacity:0}.adv-vignette{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;background:radial-gradient(ellipse at 50% 50%,transparent 58%,#050b11aa 100%),linear-gradient(#0000 80%,#05101a55)}.adv-compass{position:absolute;left:6px;top:6px;width:38px;height:38px;pointer-events:none;filter:drop-shadow(0 2px 3px #000a)}.adv-zoom{position:absolute;right:6px;top:6px;display:flex;align-items:center;gap:5px;min-height:34px;padding:0 10px;border:1px solid #ddc77b;border-radius:17px;background:#0b1620d9;color:#f0e0a8;font:700 10px DM Sans,sans-serif;letter-spacing:.8px;cursor:pointer}.adv-zoom span{font-size:9px}.adv-zoom:active{background:#1d3347}@keyframes adv-pulse{0%,to{fill-opacity:.12}50%{fill-opacity:.42}}@keyframes adv-bob{0%,to{transform:translateY(0)}50%{transform:translateY(-2.5px)}}@keyframes adv-ring{0%,to{transform:scale(1);opacity:.9}50%{transform:scale(1.12);opacity:.45}}@keyframes adv-ripple{0%,to{opacity:.15;transform:translate(-2px)}50%{opacity:.65;transform:translate(2px)}}@keyframes adv-foam{0%,to{stroke-dashoffset:0;opacity:.45}50%{stroke-dashoffset:12;opacity:.9}}@keyframes adv-cloud{0%{transform:translate(-6px)}to{transform:translate(8px)}}@keyframes adv-wave{0%,to{transform:skewY(0) scaleX(1)}50%{transform:skewY(-6deg) scaleX(.9)}}@keyframes adv-flame{0%{transform:scale(1)}to{transform:scale(.88,1.14)}}@keyframes adv-sparkle{0%,to{opacity:0;transform:scale(.3) rotate(0)}45%{opacity:1;transform:scale(1) rotate(45deg)}70%{opacity:0}}@media(prefers-reduced-motion:reduce){.adv-world,.adv-hero-move{transition:none}.adv-hero,.adv-hero-ring,.adv-ripple,.adv-foam,.adv-cloud,.adv-flag,.adv-flame,.adv-reach-edge,.adv-rival-ring{animation:none}.adv-sparkle{animation:none;opacity:.8}}.adv-panel{display:grid;gap:6px}.adv-notice{margin:0;min-height:2.6em;font-size:13px;line-height:1.35;color:#f2ead2;background:#0b1620cc;border:1px solid #ddc77b33;border-radius:3px;padding:7px 9px}.adv-meta{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#9fb3c0}.adv-pips{display:flex;gap:3px}.adv-pips i{width:9px;height:9px;border-radius:50%;border:1px solid #ddc77b88;background:#0b1620}.adv-pips i.on{background:radial-gradient(circle at 35% 30%,#fff3b0,#d79a1c);border-color:#f0d78a}.adv-legend-reach{display:inline-block;width:12px;height:12px;border:2px dashed #f0d78a;vertical-align:middle}.adv-buttons{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}.adv-buttons button{min-height:40px;font-size:10px;letter-spacing:.6px}.adv-buttons button:disabled{opacity:.45}.adv-army{list-style:none;margin:0;padding:6px;display:grid;gap:4px;position:absolute;left:6px;right:6px;bottom:6px;max-height:74%;overflow:auto;z-index:2;background:#0b1620f0;border:1px solid #ddc77b99;border-radius:5px;box-shadow:0 6px 18px #000b}.adv-army li{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:6px 8px;border:1px solid #ddc77b33;border-radius:3px;background:#0b1620aa;font-size:12px}.adv-army li span{font-size:10px;color:#9fb3c0}.adv-army li em{font-style:normal;color:#b7d98c;font-size:11px}.adv-help{margin:0;font-size:10px;color:#7f94a2;line-height:1.4}.adv-over{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:#05090ecc;padding:16px}.adv-over-card{max-width:420px;width:100%;text-align:center;padding:20px;border:1px solid #ddc77b;border-radius:4px;background:linear-gradient(180deg,#1d2f3e,#101a24)}.adv-over-symbol{font-size:30px;color:#f0d78a}.adv-over h2{font:400 26px IM Fell English,serif;margin:6px 0;color:#f0e0a8}.adv-over p{font-size:13px;line-height:1.4;color:#d7d2bd}.adv-over-stats{font-size:11px!important;color:#9fb3c0!important}@media(min-width:700px){.adv-shell{max-width:980px;margin:0 auto}.adv-map-frame{max-width:560px;width:100%;justify-self:center}}@media(orientation:landscape)and (max-height:520px){.adv-shell{grid-template-columns:minmax(0,1fr) minmax(220px,300px);grid-template-rows:auto 1fr;column-gap:10px;align-content:start}.adv-top{grid-column:1/-1}.adv-map-frame{grid-row:2;grid-column:1;justify-self:center;width:100%;max-width:calc((100dvh - 76px) * 7 / 6)}.adv-panel{grid-row:2;grid-column:2;align-self:start}.adv-help{display:none}}@media(max-width:560px)and (orientation:portrait){.adv-notice{font-size:12px}.adv-buttons button{font-size:9px}}.objective-toggle,.next-short,.rl-short{display:none}@media(max-width:560px)and (orientation:portrait){.battle-shell .battle-bottom{position:relative;display:block;margin:2px 0 0}.battle-shell .objective-toggle{display:flex;align-items:center;gap:6px;width:100%;height:24px;padding:0 9px;border:1px solid #d9c99124;border-radius:3px;background:#17212a;color:#b9b49a;font-size:9px;cursor:pointer;text-align:left}.battle-shell .objective-toggle .objective-flag{color:#d9bd68;font-size:11px}.battle-shell .objective-toggle b{font-size:8px;letter-spacing:1.1px;color:#c7b677}.battle-shell .objective-toggle em{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal;color:#9da093}.battle-shell .objective-toggle i{font-style:normal;color:#c7b677;font-size:11px}.battle-shell .battle-bottom .objective-card{display:none}.battle-shell .battle-bottom.is-open .objective-card{display:flex;position:absolute;top:calc(100% + 3px);left:0;right:0;z-index:40;min-height:44px;background:linear-gradient(100deg,#2d3944,#243135);box-shadow:0 10px 24px #000a}.battle-shell .battle-bottom.is-open .objective-toggle{border-color:#d9c99166;color:#e8dcae}.battle-shell .game-layout{grid-template-rows:auto auto auto minmax(0,1fr)}.battle-shell .scenario-heading{grid-row:1}.battle-shell .map-frame{grid-row:2}.battle-shell .battle-bottom{grid-row:3}.battle-shell .sidebar{grid-row:4}.battle-shell .battle-map{max-height:max(190px,calc(100dvh - 330px))}.battle-shell .objective-toggle .objective-turn{flex:0 0 auto;padding:1px 5px;border:1px solid #d9c99133;border-radius:3px;font-size:8px;letter-spacing:.5px;color:#d9cfa8;font-style:normal}.battle-shell .sidebar{display:grid;grid-template-columns:minmax(52px,.55fr) minmax(0,1fr) minmax(0,1.5fr);grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"roster roster roster" "selected selected selected" "next recruit end";gap:4px 5px;height:100%;min-height:0;overflow:hidden;padding:3px 0 max(5px,env(safe-area-inset-bottom))}.battle-shell .sidebar .side-top,.battle-shell .sidebar .side-footer,.battle-shell .sidebar .turn-actions{display:contents}.battle-shell .sidebar .gold-display,.battle-shell .sidebar .enemy-summary,.battle-shell .sidebar .save-status,.battle-shell .sidebar .battle-log,.battle-shell .sidebar .log-heading{display:none}.battle-shell .sidebar .roster{grid-area:roster;min-height:min-content}.battle-shell .sidebar .selected-card{grid-area:selected;min-height:0;max-height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;align-self:start}.battle-shell .sidebar .recruit-panel{grid-area:recruit;display:flex;min-height:min-content}.battle-shell .sidebar .turn-actions .next-unit{grid-area:next}.battle-shell .sidebar .turn-actions .end-turn{grid-area:end}.battle-shell .sidebar .turn-actions .next-unit,.battle-shell .sidebar .recruit-menu-trigger,.battle-shell .sidebar .turn-actions .end-turn{height:42px;min-height:42px;width:100%;border-radius:5px;line-height:1.1;white-space:nowrap;flex-direction:row;justify-content:center;align-items:center;gap:5px;padding:0 5px;overflow:hidden}.battle-shell .sidebar .turn-actions .next-unit,.battle-shell .sidebar .recruit-menu-trigger,.battle-shell .sidebar .turn-actions .end-turn{border-radius:3px;font-family:Marcellus,serif;font-weight:400;letter-spacing:1px;text-transform:uppercase}.battle-shell .sidebar .turn-actions .end-turn{background:linear-gradient(180deg,#cdb06a,#a68a4f 55%,#8c7444);border:2px ridge #e3cc8e;color:#1b150b;box-shadow:0 3px 8px #060a0d66,inset 0 0 0 1px #00000026,inset 0 1px #fff3c955;font-size:12px;text-shadow:0 1px 0 #f6e4ae66}.battle-shell .sidebar .turn-actions .end-turn span{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;line-height:1;overflow:hidden}.battle-shell .sidebar .turn-actions .end-turn span:before,.battle-shell .sidebar .turn-actions .end-turn span:after{content:"";flex:0 0 5px;width:5px;height:5px;transform:rotate(45deg);background:#4a3a1c;opacity:.55}.battle-shell .sidebar .turn-actions .end-turn span:before{order:-2}.battle-shell .sidebar .turn-actions .end-turn svg{width:16px;height:16px;flex:0 0 16px;order:-1}.battle-shell .sidebar .turn-actions .end-turn b{display:none}.battle-shell .sidebar .turn-actions .end-turn:disabled{opacity:.5;box-shadow:none}.battle-shell .sidebar .turn-actions .end-turn.is-ready:not(:disabled){animation:dock-ready 1.8s ease-in-out infinite}.battle-shell .sidebar .recruit-menu-trigger{background:linear-gradient(180deg,#2f3c47,#222d36 60%,#1b252d);border:2px ridge #a8925e;color:#ecdcae;box-shadow:0 3px 8px #060a0d66,inset 0 1px #ffffff14}.battle-shell .sidebar .recruit-trigger-icon{display:flex;flex:0 0 auto;width:auto;height:auto;padding:0;border:0;background:none;color:#e6c869;filter:drop-shadow(0 0 3px #e6c86955)}.battle-shell .sidebar .recruit-trigger-icon svg{width:16px;height:16px}.battle-shell .sidebar .recruit-trigger-copy{flex:0 1 auto;min-width:0;text-align:left}.battle-shell .sidebar .recruit-trigger-copy b{font-family:Marcellus,serif;font-size:11.5px;font-weight:400;letter-spacing:1px;color:#ecdcae}.battle-shell .sidebar .recruit-trigger-copy small,.battle-shell .sidebar .recruit-trigger-arrow,.battle-shell .sidebar .rl-long{display:none}.battle-shell .sidebar .rl-short{display:inline}.battle-shell .sidebar .recruit-menu-trigger:disabled{opacity:.5}.battle-shell .sidebar .turn-actions .next-unit{gap:6px;background:linear-gradient(180deg,#26313b,#1b242c);border:1px solid #a8925e88;color:#cdbf95;font-size:9.5px;letter-spacing:.6px;box-shadow:0 2px 6px #060a0d55}.battle-shell .sidebar .turn-actions .next-unit b{display:none}.battle-shell .sidebar .turn-actions .next-unit .next-short:after{content:"›";margin-left:5px;font-size:15px;line-height:0;color:#d9c07a;vertical-align:-1px}.battle-shell .sidebar .turn-actions .next-unit .next-long{display:none}.battle-shell .sidebar .turn-actions .next-unit .next-short{display:inline;font-size:9.5px;line-height:1}}@media(max-width:380px)and (orientation:portrait){.battle-shell .sidebar .turn-actions .end-turn,.battle-shell .sidebar .turn-actions .end-turn span{font-size:10.5px;letter-spacing:.5px;gap:4px}.battle-shell .sidebar .recruit-trigger-copy b{font-size:10.5px;letter-spacing:.6px}.battle-shell .sidebar .turn-actions .next-unit .next-short{font-size:8px}}@media(max-width:560px)and (orientation:portrait)and (max-height:799px){.battle-shell .scenario-heading{display:none}}@media(max-width:560px)and (orientation:portrait)and (min-height:800px){.battle-shell .objective-toggle .objective-turn{display:none}}@media(max-width:560px)and (orientation:portrait)and (max-height:700px){.battle-shell .sidebar .turn-actions .next-unit,.battle-shell .sidebar .recruit-menu-trigger,.battle-shell .sidebar .turn-actions .end-turn{height:38px;min-height:38px}}@keyframes dock-ready{0%,to{box-shadow:0 3px 8px #060a0d66,inset 0 0 0 1px #00000026,inset 0 1px #fff3c955}50%{box-shadow:0 0 0 1px #e3cc8e88,0 0 14px #e6c86977,inset 0 0 0 1px #00000026,inset 0 1px #fff3c955}}@media(prefers-reduced-motion:reduce){.battle-shell .sidebar .turn-actions .end-turn.is-ready{animation:none!important}}.excellent-aura{pointer-events:none}.excellent-aura .aura-ground{fill:#ffc94a40}.excellent-aura .aura-ring-shadow{fill:none;stroke:#2a1d05;stroke-width:4.5;opacity:.45}.excellent-aura .aura-ring{fill:none;stroke:#ffd970;stroke-width:2.8;stroke-dasharray:8 4;stroke-linecap:round;filter:drop-shadow(0 0 3px #ffbf3a);transform-box:fill-box;transform-origin:center;animation:aura-ring-turn 10s linear infinite}.excellent-aura .aura-glow{fill:#ffc23a}.excellent-aura .a1{opacity:.2}.excellent-aura .a2{opacity:.26}.excellent-aura .a3{opacity:.34}.excellent-aura .aura-rays{fill:#ffe27a;stroke:#b07a12;stroke-width:.7;opacity:.9;filter:drop-shadow(0 0 2px #ffcf4a);animation:aura-rays-turn 14s linear infinite,aura-breathe 2.6s ease-in-out infinite alternate}.excellent-crest path{fill:#ffd45e;stroke:#6b4a10;stroke-width:.9;stroke-linejoin:round}.excellent-crest circle{fill:#fff3c4;stroke:#6b4a10;stroke-width:.5}.excellent-crest{filter:drop-shadow(0 0 2.5px #ffc94a);animation:crest-bob 2.4s ease-in-out infinite;transform-box:fill-box;transform-origin:center}.excellence-sparks.sparks-gold{stroke:#fff1b3;stroke-width:1.2;opacity:.6;filter:drop-shadow(0 0 1.5px #ffc53d)}.unit-glyph.unit-done .excellent-aura{opacity:.55}@keyframes aura-ring-turn{to{transform:rotate(360deg)}}@keyframes aura-rays-turn{to{transform:rotate(360deg)}}@keyframes aura-breathe{0%{opacity:.5}to{opacity:.9}}@keyframes crest-bob{0%,to{transform:translateY(0)}50%{transform:translateY(-1.2px)}}@keyframes gold-sheen{0%{background-position:-160% 0}55%,to{background-position:260% 0}}.roster-row.excellent{border-color:#e2c26c88!important;background:linear-gradient(100deg,#0000 30%,#ffe7a024,#0000 60%) no-repeat,linear-gradient(90deg,#4a3a17 0,#2a2a22 38%,#1b2631 80%)!important;background-size:250% 100%,100% 100%!important;box-shadow:inset 3px 0 #ffd970,0 0 8px #ffc94a26;animation:gold-sheen 4.5s ease-in-out infinite}.roster-row.excellent .roster-name{color:#ffe7a6}.roster-row.excellent .roster-name:before{content:"♛ ";color:#ffd45e}.roster-row.excellent .roster-level{border-color:#ffd970!important;color:#ffe7a6!important;background:#5b441666!important}.roster-row.excellent.active{border-color:#ffe9a6!important}.unit-portrait.excellent{position:relative;border:1.5px solid #ffd970!important;background:radial-gradient(circle at 50% 45%,#7a5a1c,#2a2418 72%)!important;box-shadow:0 0 0 1px #6b4a10,0 0 12px #ffc94a88}.unit-portrait.excellent:after{content:"♛";position:absolute;top:-3px;right:-5px;font-size:11px;line-height:1;color:#ffd45e;text-shadow:0 0 4px #ffb92e,0 1px 0 #3a2a08}.selected-card:has(.unit-portrait.excellent){border-color:#e2c26c99!important;background:linear-gradient(100deg,#0000 30%,#ffe7a01c,#0000 60%) no-repeat,linear-gradient(160deg,#3a3018,#1b232b 55%)!important;background-size:250% 100%,100% 100%!important;box-shadow:inset 0 0 0 1px #ffd97022,0 0 14px #ffc94a1f;animation:gold-sheen 5s ease-in-out infinite}.selected-card:has(.unit-portrait.excellent) h2{color:#ffe7a6;text-shadow:0 0 8px #ffc94a55}.unit-excellent-label{color:#ffd970!important;text-shadow:0 0 5px #ffb92e80}@media(prefers-reduced-motion:reduce){.excellent-aura *,.excellent-crest,.roster-row.excellent,.selected-card:has(.unit-portrait.excellent){animation:none!important}}.excellent-sheen{pointer-events:none;mix-blend-mode:screen}.excellent-sheen .sheen-pulse{fill:#ffd86a;opacity:0;animation:sheen-pulse 2.4s ease-in-out infinite}.excellent-sheen .sheen-band{fill:#fffbe6;opacity:.5;animation:sheen-sweep 3.2s cubic-bezier(.45,0,.3,1) infinite}.excellent-sheen .sheen-band.thin{opacity:.35}@keyframes sheen-pulse{0%,to{opacity:.03}50%{opacity:.2}}@keyframes sheen-sweep{0%{transform:translate(0)}55%,to{transform:translate(150px)}}.excellent-equipment{animation:equipment-shimmer 2.4s ease-in-out infinite}.angel-halo{fill:none;stroke:#ffe48a;stroke-width:2.4;filter:drop-shadow(0 0 3px #ffd34d)}.unit-glyph:not(.attacker-attacking) .idle-angel{animation-name:angel-float}.part-wings .angel-wing{transform-box:fill-box;transform-origin:100% 40%;animation:angel-flap 2.2s ease-in-out infinite}.part-halo{animation:crest-bob 2.6s ease-in-out infinite}@keyframes angel-float{0%,to{transform:translateY(0)}50%{transform:translateY(-2.5px)}}@keyframes angel-flap{0%,to{transform:rotate(0)}50%{transform:rotate(-7deg)}}@media(prefers-reduced-motion:reduce){.excellent-sheen *,.idle-angel,.part-wings .angel-wing,.part-halo{animation:none!important}.excellent-sheen .sheen-pulse{opacity:.12}}.city-angel-note{color:#ffe7a6!important;font-size:11px}.gold-chip .crystal-mark{font-style:normal;color:#8eeaff;font-size:11px;margin-left:4px;text-shadow:0 0 4px #4fd8ff88}.gold-chip .crystal-count{color:#d4f6ff}.city-crystals{display:inline-flex;align-items:center;gap:4px;margin-left:10px;color:#8eeaff}.city-crystals strong{color:#d4f6ff}.city-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.city-tabs [data-city-role=sky] span{color:#fff0b8;text-shadow:0 0 6px #ffd45e}.city-tabs [data-city-role=sky].active{background:linear-gradient(#8f7d4c,#4c5a6a)}.city-purchases .city-crystal-info{background:linear-gradient(#2c4a58,#1d2e3a)!important;color:#bfefff;opacity:1!important;cursor:default}.city-purchases .city-crystal-info b{color:#8eeaff;font-size:10px}.sky-sanctuary .sky-glow{fill:#fff2b8;opacity:.09}.sky-sanctuary .sky-cloud{fill:#fff}.sky-sanctuary .sky-door{animation:sky-door 3s ease-in-out infinite}.sky-sanctuary .sky-falls{opacity:.55;stroke-dasharray:6 5;animation:sky-falls 1.2s linear infinite}.sky-float{animation:sky-float 5s ease-in-out infinite}.sky-building .castle-ring{stroke:#fff0b8}.time-night .sky-sanctuary{filter:brightness(.62) saturate(.8)}.time-night .sky-sanctuary .sky-door{filter:brightness(1.6)}.time-dusk .sky-sanctuary,.time-dawn .sky-sanctuary{filter:brightness(.9) sepia(.15)}@keyframes sky-float{0%,to{transform:translateY(0)}50%{transform:translateY(-6px)}}@keyframes sky-door{0%,to{fill-opacity:.75}50%{fill-opacity:1}}@keyframes sky-falls{to{stroke-dashoffset:-11}}@media(prefers-reduced-motion:reduce){.sky-float,.sky-sanctuary *{animation:none!important}}.adv-rival{pointer-events:none}.adv-rival-ring{animation:adv-rival-pulse 1.4s ease-in-out infinite}@keyframes adv-rival-pulse{0%,to{stroke-opacity:.95}50%{stroke-opacity:.35}}.adv-rival-step{pointer-events:none}.adv-rival-line{display:flex;align-items:center;gap:6px;margin:0 0 6px;font-size:11px;color:#e9c9b8;letter-spacing:.2px}.adv-rival-line b{color:#ffb39e;font-weight:700}.adv-rival-line span:not(.adv-rival-dot){color:#a9a596}.adv-rival-dot{width:8px;height:8px;border-radius:50%;background:#c8382e;box-shadow:0 0 6px #ff6a4d}.adv-rival-line.beaten{color:#9fd3a6}
