@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{--coast:#72b5a0;--lake:#c3846d;--cream:#f1eddc;--ink:#152620;--muted:#aeb9ac}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#18251d;color:var(--cream);font-family:'DM Sans',sans-serif}button,input{font:inherit}button{cursor:pointer;color:inherit;border:0}button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #f4dc87;outline-offset:3px}button:disabled{opacity:.4;cursor:default}[hidden]{display:none!important}#world{display:block;width:100%;height:100%;touch-action:none}.menu{position:absolute;inset:0;overflow:auto}.menu-shade{position:fixed;inset:0;background:linear-gradient(90deg,rgba(17,35,28,.98),rgba(17,35,28,.96) 30%,rgba(17,35,28,.74) 48%,rgba(17,35,28,.08) 80%);pointer-events:none}.briefing{position:relative;width:500px;max-width:100%;padding:34px 44px 24px}.eyebrow{font-weight:800;font-size:17px;letter-spacing:2px;display:flex;align-items:center;gap:10px}.brand-mark{font-size:30px;color:var(--coast)}.build{font-size:9px;letter-spacing:1.1px;margin-left:auto;color:#b5c5b6;border:1px solid #627363;padding:6px 7px;border-radius:4px}h1{font-family:'Barlow Condensed',Impact,sans-serif;font-size:60px;font-weight:700;line-height:.98;letter-spacing:-1px;margin:25px 0 14px}h1 em{font-style:normal;color:#d2dbb0}.intro{font-size:13px;line-height:1.7;color:#bac5b7;max-width:345px;margin:0}.facts{display:flex;gap:25px;margin:23px 0 25px;padding:15px 0;border-top:1px solid #ffffff13;border-bottom:1px solid #ffffff13;font-size:10px;color:#aebbaa;white-space:nowrap}.facts b{display:block;font-size:19px;color:#f3edda;margin-bottom:4px}.field-label{display:flex;gap:10px;align-items:center;font-size:10px;color:#859782;font-weight:700;letter-spacing:1.5px;margin:18px 0 10px}.field-label span{color:#d0d7c8}.choice-row{display:flex;gap:8px}.faction{flex:1;display:flex;gap:9px;align-items:center;border:1px solid #ffffff20;border-radius:8px;background:#23372d;padding:13px 10px;text-align:left;font-size:11px;transition:.16s}.faction small{display:block;font-size:9px;color:#a9b8a8;margin-top:5px}.check{margin-left:auto;display:none;color:var(--coast)}.faction.selected{border-color:var(--coast);background:#274b3d}.faction[data-team='1'].selected{border-color:var(--lake);background:#493c32}.selected .check{display:block}.faction[data-team='1'] .check{color:var(--lake)}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;flex:none}.coast{background:var(--coast);box-shadow:0 0 12px #41d4c433}.lake{background:var(--lake);box-shadow:0 0 12px #f27b6933}.roles button{flex:1;text-align:left;background:#21362b;border:1px solid #ffffff1c;border-radius:8px;padding:11px 12px}.roles button.selected{background:#344b36;border-color:#b4c78c}.role-icon{font-size:24px;line-height:24px;color:#c0d7a4;display:block;margin-bottom:5px}.roles b{font-size:12px;display:block}.roles small{display:block;font-size:9px;color:#a9b8a8;margin-top:5px}.modes{background:#12271e;padding:4px;border-radius:7px;gap:3px}.modes button{flex:1;font-size:10px;border-radius:5px;background:transparent;color:#aebcab;padding:9px 5px}.modes .selected{background:#415844;color:#f7f1dc}.mode-description{font-size:11px;color:#aab9a7;margin:10px 0 16px;line-height:1.5;min-height:17px}.deploy{width:100%;display:flex;justify-content:space-between;align-items:center;background:#cbd9aa;color:#172b22;border-radius:8px;font-size:14px;font-weight:800;padding:17px 19px;box-shadow:0 4px 0 #0d1c15;transition:.15s}.deploy:hover{background:#e1e8c6;transform:translateY(-1px)}.deploy span{font-size:20px}.sandbox-note{display:flex;align-items:flex-start;gap:8px;margin-top:13px;color:#a7b6a4;font-size:10px;line-height:1.7}.sandbox-note i{width:5px;height:5px;border-radius:50%;background:#bacd91;flex:none;margin-top:6px}.sandbox-note strong{font-weight:500;color:#d5dcc9}.network{margin-top:15px;border-top:1px solid #ffffff15;padding-top:12px;font-size:10px;color:#a6b7a2}.network summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between}.network p{line-height:1.6}.network label{display:block;margin-bottom:6px}.network>div{display:flex;gap:5px}.network input{width:100%;min-width:0;color:#eee8d7;background:#0e241a;border:1px solid #ffffff30;border-radius:5px;padding:8px;font-size:11px}.network button{background:#d3dfb8;color:#183325;padding:8px;border-radius:5px}.controls-hint{font-size:8px;color:#879b84;display:flex;align-items:center;gap:4px;margin-top:18px;white-space:nowrap}kbd{font:8px 'DM Sans',sans-serif;border:1px solid #63735d;padding:2px 4px;border-radius:3px}.controls-hint span{margin:0 3px}.menu-map-note{position:fixed;bottom:34px;right:36px;font-size:9px;letter-spacing:1.6px;text-align:right;text-shadow:0 1px 6px #000;background:#172a20aa;backdrop-filter:blur(10px);border:1px solid #f3edda30;padding:15px 18px;border-radius:9px}.menu-map-note b{display:block;font-size:17px;margin-top:7px;letter-spacing:0}.menu-map-note small{display:block;font-size:9px;margin-top:7px;letter-spacing:0;color:#d0d3ba}.live-dot{display:inline-block;background:var(--coast);width:5px;height:5px;border-radius:50%;margin-right:5px}#game-ui{position:fixed;inset:0;pointer-events:none}#game-ui button,#game-ui .touch-stick{pointer-events:auto}.battle-header{position:absolute;top:18px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:22px;background:#15271ce8;backdrop-filter:blur(8px);border:1px solid #e6e6c72c;border-radius:13px;padding:10px 20px;box-shadow:0 3px 12px #16271e55;min-width:450px}.colony-left,.colony-right{display:flex;align-items:center;gap:11px;font-size:10px;letter-spacing:1px;flex:1}.colony-left{color:var(--coast)}.colony-right{color:var(--lake);justify-content:flex-end}.battle-header b{font:700 30px 'Barlow Condensed',Impact,sans-serif;margin:0 6px}.timer{text-align:center;min-width:90px}.timer>span{font:600 25px 'Barlow Condensed',Impact,sans-serif;letter-spacing:2px}.timer small{display:block;font-size:8px;letter-spacing:1.2px;color:#bdc8b0;margin-top:3px}.objectives{position:absolute;top:91px;left:50%;transform:translateX(-50%);display:flex;gap:8px}.objective{padding:6px 12px;background:#1a2d22d9;border:1px solid #e9edcf35;border-radius:30px;font-size:10px;display:flex;gap:7px;align-items:center;min-width:86px}.objective b{display:flex;align-items:center;justify-content:center;border:1px solid currentColor;border-radius:50%;width:20px;height:20px;font-size:10px}.objective.contested{color:#f2ce6c}.session-info{position:absolute;left:20px;top:22px;font-size:9px;letter-spacing:1px;padding:9px 11px;background:#182b21d9;border:1px solid #ffffff20;border-radius:6px;color:#dbe1c7}.session-info small{display:block;font-size:10px;letter-spacing:0;margin-top:5px;color:#b9c9b3}.menu-button{position:absolute;right:20px;top:20px;width:40px;height:40px;border-radius:8px;background:#162a20e6;border:1px solid #ffffff40;font-size:18px}.minimap-wrap{position:absolute;right:20px;top:76px;padding:6px;background:#14271de8;border:1px solid #d3dab54d;border-radius:8px;box-shadow:0 3px 14px #14251d44}.minimap-wrap canvas{display:block;width:168px;height:105px;border-radius:4px}.minimap-wrap>div{display:flex;justify-content:space-between;font-size:8px;color:#b8c5a7;padding:5px 1px 0}.touch-stick{position:absolute;left:max(28px,env(safe-area-inset-left));bottom:55px;width:136px;height:136px;border-radius:50%;background:#19312533;border:2px solid #ffffff66;box-shadow:inset 0 0 0 16px #d7e8d70d;touch-action:none;user-select:none}.touch-stick:before{content:'';position:absolute;inset:31px;border-radius:50%;border:1px solid #ffffff30}#stick-knob{position:absolute;left:42px;top:42px;width:48px;height:48px;background:#eef1dd80;border:2px solid #fff9;border-radius:50%;box-shadow:0 3px 8px #0003}.attack-button{position:absolute;right:max(28px,env(safe-area-inset-right));bottom:55px;width:136px;height:136px;background:#1b3027ba;border:2px solid #f4f1daaa;border-radius:50%;touch-action:none;user-select:none;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;box-shadow:0 3px 14px #12271d44}.attack-button svg{width:62px;height:62px}.attack-button span{font:700 16px 'Barlow Condensed',sans-serif;letter-spacing:1px}.attack-button.pressed{background:#627958cc;transform:scale(.96)}.player-status{position:absolute;bottom:72px;left:50%;transform:translateX(-50%);text-align:center;background:#142a21b8;border:1px solid #ffffff20;border-radius:12px;padding:10px 20px}.class-label{font-size:10px;letter-spacing:2px;font-weight:700}.health{display:flex;justify-content:center;gap:5px;margin:7px 0}.health i{height:10px;width:10px;border:1px solid #e0ebd880;border-radius:50%;background:#203c2d}.health i.full{background:var(--coast);border-color:#defff9}.player-status.lake .health i.full{background:var(--lake);border-color:#fff0eb}#personal-score{font-size:9px;color:#c2cdb4}.campaign{position:absolute;left:50%;transform:translateX(-50%);bottom:max(18px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:12px;background:#15281fe8;border:1px solid #ffffff28;border-radius:8px;padding:9px 14px;font-size:8px;letter-spacing:1px;white-space:nowrap}.campaign-track{width:150px;height:6px;background:var(--lake);border-radius:4px;overflow:hidden}.campaign-track i{display:block;width:50%;height:100%;background:var(--coast)}.campaign b{font-size:10px;letter-spacing:0}.respawn{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);background:#162a21ed;border:1px solid #e6e4c950;border-radius:13px;padding:20px 25px;text-align:center;box-shadow:0 8px 40px #13271d66}.respawn>span{font-size:10px;letter-spacing:2px}.respawn>b{display:block;font:600 58px 'Barlow Condensed',sans-serif;color:#dce7b5}.respawn small{display:block;font-size:11px;color:#b6c6af}.respawn button{background:#38523c;border:1px solid #b4c5a244;margin:12px 3px 0;padding:9px 11px;border-radius:6px;font-size:10px}.respawn button.selected{border-color:#d9e8b5;background:#506c45}.result{position:absolute;inset:0;background:#13281edb;backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:auto}.result>span{font-size:11px;letter-spacing:3px;color:#cad7b3}.result h2{font:700 64px 'Barlow Condensed',sans-serif;margin:12px 0;color:#d9e5b7}.result p{font-size:12px;color:#c0cdb2;max-width:400px;text-align:center;line-height:1.7;padding:0 20px}.result button{border-radius:7px;padding:13px 24px;margin:5px;background:#d4e2af;color:#233a29;font-weight:700;font-size:12px}.result button:last-child{background:transparent;color:#c1d0b3;font-weight:400}.connection-alert{position:absolute;left:50%;top:150px;transform:translateX(-50%);background:#6c352ee8;border:1px solid #efb4a3;border-radius:8px;padding:12px 16px;font-size:12px;max-width:90%;text-align:center}
@media(max-height:800px) and (min-width:701px){.briefing{padding-top:20px;padding-bottom:15px;width:470px}h1{font-size:49px;margin-top:18px}.facts{margin:15px 0;padding:10px 0}.field-label{margin-top:12px}.roles button{padding:8px 10px}.role-icon{font-size:19px;line-height:20px}.deploy{padding:13px 17px}.network{margin-top:11px}.controls-hint{margin-top:10px}}
@media(max-width:800px){.battle-header{min-width:350px;gap:8px;padding:8px 11px;top:12px}.colony-left,.colony-right{font-size:8px;gap:5px}.battle-header b{font-size:25px}.timer{min-width:70px}.timer>span{font-size:23px}.session-info{top:auto;bottom:15px;left:15px;padding:6px 8px;font-size:7px}.session-info small{font-size:8px}.objectives{top:76px;gap:5px}.objective{min-width:0;padding:5px 8px;font-size:9px}.minimap-wrap{top:68px;right:12px}.minimap-wrap canvas{width:112px;height:70px}.minimap-wrap>div{font-size:6px}.menu-button{right:12px;top:13px;width:35px;height:35px}.touch-stick,.attack-button{width:112px;height:112px;bottom:62px}.touch-stick{left:18px}.attack-button{right:18px}#stick-knob{width:42px;height:42px;left:33px;top:33px}.attack-button svg{width:50px;height:50px}.player-status{bottom:59px;padding:8px 13px}.campaign{bottom:16px;padding:7px 10px;gap:8px}.campaign-track{width:95px}.campaign>span{font-size:6px}.campaign b{font-size:8px}}
@media(max-width:600px){.menu-shade{background:#142b21e8}.briefing{padding:25px 24px;width:100%;max-width:450px;margin:auto}.menu-map-note{display:none}h1{font-size:54px}.facts{margin:20px 0}.controls-hint{display:none}.battle-header{min-width:300px;left:44%;padding:7px 9px}.colony-left>span,.colony-right>span{display:none}.battle-header b{font-size:25px}.objectives{left:42%;top:73px}.minimap-wrap{top:116px}.minimap-wrap canvas{width:91px;height:57px}.session-info{bottom:9px;font-size:6px}.session-info small{font-size:7px}.campaign{bottom:43px;max-width:95%}.campaign-track{width:70px}.player-status{bottom:98px;padding:8px 10px}.player-status #personal-score{font-size:7px}.touch-stick,.attack-button{bottom:78px;width:100px;height:100px}.touch-stick{left:10px}.attack-button{right:10px}#stick-knob{left:29px;top:29px;width:38px;height:38px}.attack-button svg{width:44px;height:44px}.attack-button span{font-size:13px}.touch-stick:before{inset:24px}.class-label{font-size:8px}.result h2{font-size:46px}.respawn{width:280px;top:42%}.objective span{display:none}}
@media(max-height:500px){.briefing{width:450px;padding:18px 26px}.menu-shade{background:linear-gradient(90deg,#142b21fc,#142b21ee 50%,#142b2170)}.menu-map-note{display:none}.touch-stick,.attack-button{bottom:26px;width:96px;height:96px}#stick-knob{left:27px;top:27px;width:38px;height:38px}.attack-button svg{width:42px;height:42px}.campaign{bottom:6px}.player-status{bottom:41px}.minimap-wrap canvas{width:96px;height:60px}.session-info{bottom:8px;left:12px}.battle-header{top:7px}.objectives{top:67px}}

.source-link{display:flex;justify-content:space-between;align-items:center;margin-top:12px;color:#b8c9a5;text-decoration:none;font-size:10px;padding:9px 0;border-top:1px solid #ffffff15}.source-link:hover{color:#e0ebc9}.source-link:focus-visible{outline:3px solid #f4dc87;outline-offset:3px}

/* Five-role deployment and compact, touch-friendly respawn choices. */
.roles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.roles button{min-width:0}.roles button:nth-child(n+4){grid-column:span 1}.roles small{line-height:1.45}.roles [data-availability]{color:#d0dcb9;font-size:8px}.role-rules,.lore{font-size:10px;line-height:1.6;color:#bdcbb4}.role-rules{margin:9px 0 0}.lore{margin-top:12px;border:1px solid #ffffff20;border-radius:7px;padding:9px 11px}.lore summary{cursor:pointer;color:#dbe4c4}.lore h3{font-size:11px;color:#e4ebce}.lore .fiction-label{font-size:9px;color:#e5cf9c}.respawn{width:min(540px,94vw);padding:15px 18px;max-height:80vh;overflow:auto}.respawn>b{font-size:40px}#respawn-roles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.respawn button{margin:0;padding:10px 6px;min-height:54px}.respawn button small{font-size:8px;line-height:1.4;margin-top:4px}#class-status{font-size:10px;line-height:1.5;color:#f3cf9d;margin:8px 0 0}.health{align-items:center;gap:7px;font-size:10px}.health-bar{width:56px;height:7px;background:#203c2d;border:1px solid #e0ebd880;border-radius:3px;overflow:hidden}.health .health-bar i{display:block;border:0;border-radius:0;height:100%;background:var(--coast)}.player-status.lake .health .health-bar i{background:var(--lake)}@media(max-width:380px){.briefing{padding:20px 14px}.roles{gap:5px}.roles button{padding:9px 7px}.faction{padding:10px 7px}.faction small{font-size:8px}}@media(max-height:500px){.respawn{top:48%;padding:10px 14px}.respawn>b{font-size:28px}.respawn button{min-height:45px;padding:7px 5px}}

@media(max-width:600px){.colony-left>span,.colony-right>span{display:inline;font-size:7px;letter-spacing:0}.colony-left,.colony-right{gap:3px}.battle-header b{margin:0 2px}.battle-header{min-width:290px}}

/* Foundation 04: paired thumb zones, recovery feedback, and natural faction accents. */
.controls-hint{display:block;white-space:normal;line-height:1.7;font-size:9px}
.health .health-bar i{width:100%}.health.armor .health-bar i,.player-status.lake .health.armor .health-bar i{background:#c6b388}.health.stamina .health-bar i,.player-status.lake .health.stamina .health-bar i{background:#a8b878}
.player-status{width:290px;bottom:70px;padding:10px 15px}.health{margin:5px 0;justify-content:space-between;font-size:9px}.health-bar{width:96px}.class-label{letter-spacing:1px}#combat-hint{font-size:9px;line-height:1.35;color:#d2c7a4;min-height:24px;margin:6px 0}#personal-score{font-size:8px}
.guard-button,.sprint-button{position:absolute;touch-action:none;user-select:none;border:1px solid #dedac29c;background:#19281fe8;box-shadow:0 3px 10px #0004;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;font-size:12px;font-weight:700;border-radius:14px;min-height:48px}
.guard-button{right:max(47px,env(safe-area-inset-right));bottom:205px;width:98px;height:54px}.sprint-button{left:max(47px,env(safe-area-inset-left));bottom:205px;width:98px;height:54px}.guard-button small,.sprint-button small{font-size:8px;font-weight:500;letter-spacing:.5px}.guard-button.pressed{background:#6c6545}.sprint-button.pressed{background:#536a40;border-color:#d8dfb3}.guard-button.broken{border-color:#b87964;color:#dfad91}.sprint-button.recovering{border-color:#bca06a}.attack-button{background:#19281fcf}#world{cursor:crosshair}
@media(max-width:800px){.guard-button,.sprint-button{bottom:187px;width:92px;height:48px}.guard-button{right:28px}.sprint-button{left:28px}.player-status{width:260px;bottom:58px}.health-bar{width:85px}.session-info{bottom:8px}.campaign{display:none}}
@media(max-width:600px){.player-status{width:180px;bottom:250px;padding:8px 10px}.class-label{font-size:8px;letter-spacing:.3px}.health{font-size:8px}.health-bar{width:64px}#combat-hint{font-size:8px}.guard-button,.sprint-button{bottom:188px;width:78px;font-size:10px}.guard-button{right:20px}.sprint-button{left:20px}.controls-hint{display:block}.session-info{bottom:8px}}
@media(max-height:500px) and (min-width:601px){.battle-header{top:7px;min-width:350px;padding:5px 10px}.objectives{top:62px}.session-info{top:9px;bottom:auto;left:10px;padding:5px 7px;font-size:7px}.session-info small{font-size:8px}.minimap-wrap{top:61px;right:10px;padding:4px}.minimap-wrap canvas{width:80px;height:50px}.touch-stick,.attack-button{bottom:20px;width:96px;height:96px}.touch-stick{left:20px}.attack-button{right:20px}.guard-button,.sprint-button{bottom:128px;width:86px;height:46px;min-height:44px}.guard-button{right:25px}.sprint-button{left:25px}.player-status{bottom:12px;width:260px;padding:7px 12px}.health{margin:3px 0;font-size:8px}.health-bar{height:6px;width:80px}#combat-hint{min-height:12px;margin:4px 0;font-size:8px}#personal-score{font-size:7px}.campaign{display:none}.class-label{font-size:9px}.colony-left>span,.colony-right>span{display:inline}.menu-button{top:8px;right:10px;width:34px;height:34px}.respawn{max-height:88vh}}
@media(max-height:380px) and (min-width:601px){.objectives{top:57px}.objective{padding:3px 7px}.guard-button,.sprint-button{bottom:122px}.player-status{bottom:8px}.minimap-wrap{display:none}}

/* Foundation 06: personal contribution, impact feedback and industrial field notes. */
:root{--coast:#80b6a4;--lake:#cc9677;--cream:#efe9d2}
.menu-shade{background:linear-gradient(90deg,#15271ffb,#15271ff7 30%,#17281fd1 49%,#15271f14 85%)}
.build{border-color:#9c94705c;color:#d0c69d}.brand-mark{color:#d2bd81}.intro{color:#c1cbb7}.faction{box-shadow:inset 0 3px 0 #bba97715}.faction[data-team='0'].selected{box-shadow:inset 0 3px 0 #bba97780}.faction[data-team='1'].selected{box-shadow:inset 0 3px 0 #d49b7680}.menu-map-note{border-radius:4px;border-left:3px solid #bba977;background:#17281fe6}.facts{border-color:#bba97726}
.field-manual{font-size:10px;line-height:1.65;color:#bfc9b5;border:1px solid #bcae7d40;border-radius:7px;margin-top:10px;background:#192b23;padding:9px 11px}.field-manual summary{cursor:pointer;display:flex;justify-content:space-between;font-weight:700;color:#e5d9ac;list-style:none}.field-manual p{margin:10px 0 0}.field-manual b{color:#e4debf}.field-manual[open] summary span{transform:rotate(45deg)}
.personal-points-card{position:absolute;top:86px;left:20px;width:205px;padding:10px 12px;background:#15271ee8;border:1px solid #d4c39350;border-left:3px solid #c7b47f;border-radius:5px;box-shadow:0 4px 16px #14251d33}.personal-points-card>span{display:block;font-size:8px;letter-spacing:1.4px;color:#d2c89f}.personal-points-card>b{display:block;font:700 34px/1.08 'Barlow Condensed',Impact,sans-serif;color:#f5e9bb;margin:4px 0}.personal-points-card>small{display:block;font-size:8px;line-height:1.6;color:#c4c9b0}
.reward-feed{position:absolute;top:198px;left:20px;width:205px;display:flex;flex-direction:column;gap:6px;pointer-events:none}.reward-toast{background:#1c352bea;border:1px solid #c7b47f80;border-radius:5px;padding:8px 10px;animation:reward-enter .18s ease-out;box-shadow:0 4px 12px #0003}.reward-toast>b{display:block;font:700 23px/1 'Barlow Condensed',Impact,sans-serif;color:#f7e5a7}.reward-toast b small{font:700 8px 'DM Sans',sans-serif;letter-spacing:1px}.reward-toast>span{display:block;font-size:9px;line-height:1.4;margin-top:4px;color:#e4e2c6}
.combat-feedback{position:absolute;left:50%;top:138px;transform:translateX(-50%);font:700 13px 'Barlow Condensed',Impact,sans-serif;letter-spacing:1.3px;padding:7px 12px;background:#293a2bf0;border:1px solid #d8c585;border-radius:4px;color:#f5e7b4;white-space:nowrap}.scout-detection{position:absolute;right:20px;top:218px;max-width:200px;text-align:right;color:#f3d080;background:#283126e8;border:1px solid #d2b17060;border-radius:4px;padding:6px 8px;font-size:8px;letter-spacing:.5px}.guard-button small{font-size:7px;letter-spacing:.25px}
.result{overflow:auto;padding:25px 12px;justify-content:flex-start;gap:0}.result>span{margin-top:auto}.result h2{font-size:54px;margin:8px 0}.result-faction-score{font-size:11px;color:#c9d2b8;margin-bottom:15px}.result-contribution{width:min(360px,90vw);padding:15px 20px;border:1px solid #bbac7f66;border-radius:8px;background:#1c3026d9;text-align:center}.result-contribution>span{font-size:9px;letter-spacing:2px;color:#d5c999}.result-total{display:flex;align-items:baseline;justify-content:center;gap:8px;margin:2px 0 10px}.result-total>b{font:700 50px/1.1 'Barlow Condensed',Impact,sans-serif;color:#f3e4af}.result-total>small{font-size:9px;letter-spacing:1px;color:#d2c8a3}.result-breakdown{border-top:1px solid #bcae7d36;padding-top:8px}.result-breakdown>div{display:flex;justify-content:space-between;font-size:11px;padding:5px 0;color:#d2d8c0}.result-breakdown b{color:#f2e4b4}.result-contribution>small{display:block;margin-top:9px;font-size:9px;color:#aebda7}.result p{margin:12px 0 8px;font-size:10px;max-width:370px}.result button{flex-shrink:0}.result button:last-child{margin-bottom:auto}.result button{padding:11px 22px}
@keyframes reward-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.reward-toast{animation:none}}
@media(max-width:800px){.personal-points-card{top:119px;left:12px;width:155px;padding:8px 10px}.personal-points-card>b{font-size:29px}.personal-points-card>span{font-size:7px;letter-spacing:1px}.personal-points-card>small{font-size:7px;line-height:1.6}.reward-feed{top:220px;left:12px;width:155px}.reward-toast{padding:6px 8px}.reward-toast>b{font-size:20px}.reward-toast>span{font-size:8px}.combat-feedback{top:115px;font-size:11px}.scout-detection{right:12px;top:164px;max-width:150px;font-size:7px}}
@media(max-width:600px){.menu-shade{background:#15281ff4}.personal-points-card{top:116px;left:12px;width:148px}.personal-points-card>b{font-size:27px}.reward-feed{top:222px;width:148px}.reward-toast{padding:6px 8px}.combat-feedback{top:82px;max-width:90%;font-size:10px}.scout-detection{top:202px;max-width:156px;font-size:7px}.result h2{font-size:43px}.result-contribution{padding:12px 16px}.result-total>b{font-size:43px}.result{padding:18px 12px}.result-faction-score{font-size:10px}}
@media(max-height:500px) and (min-width:601px){.personal-points-card{top:64px;left:10px;width:143px;padding:6px 8px}.personal-points-card>b{font-size:26px;margin:2px 0}.personal-points-card>span{font-size:6px;letter-spacing:1px}.personal-points-card>small{font-size:7px;line-height:1.4}.reward-feed{top:142px;left:50%;transform:translateX(-50%);width:210px;max-height:111px;overflow:hidden}.reward-toast{padding:6px 9px}.reward-toast>b{font-size:19px}.reward-toast>span{font-size:8px;margin-top:2px}.combat-feedback{top:102px;font-size:11px;padding:5px 10px}.scout-detection{top:140px;right:10px;max-width:140px;font-size:7px;padding:5px 7px}.result{padding:12px;display:grid;grid-template-columns:minmax(210px,300px) minmax(230px,330px);column-gap:30px;align-content:center;justify-content:center;text-align:center}.result>span{grid-column:1;align-self:end;margin-top:0}.result h2{grid-column:1;font-size:40px}.result-faction-score{grid-column:1;font-size:9px;margin-bottom:2px}.result-contribution{grid-column:2;grid-row:1/7;width:100%;padding:12px 16px}.result-total>b{font-size:40px}.result-breakdown>div{padding:4px 0;font-size:10px}.result p{grid-column:1;margin:5px 0;font-size:9px;padding:0}.result button{grid-column:1;justify-self:center;padding:8px 20px;margin:3px}.result button:last-child{margin-bottom:0}}
@media(max-height:380px) and (min-width:601px){.personal-points-card{top:61px}.reward-feed{top:126px;max-height:90px}.combat-feedback{top:94px}.scout-detection{top:53px;max-width:132px}.result-contribution{padding:9px 14px}.result h2{font-size:36px}.result-total>b{font-size:36px}}

/* Foundation 07: blue foundry host, crimson salvage host, and food-run guidance. */
:root{--coast:#78a9de;--lake:#f06a7d;--cream:#f1ead7;--ink:#152331}
.coast{background:#4b80bb;box-shadow:0 0 12px #4b80bb45}.lake{background:#cd344c;box-shadow:0 0 12px #cd344c40}.faction[data-team='0'].selected{border-color:#78a9de;background:#223c59;box-shadow:inset 0 3px 0 #8da9bb85}.faction[data-team='1'].selected{border-color:#eb6176;background:#542736;box-shadow:inset 0 3px 0 #cf735e85}.colony-left{color:#8bb8e8}.colony-right{color:#f57b8b}.health .health-bar i{background:#78a9de}.player-status.lake .health .health-bar i{background:#f06a7d}.player-status.lake{background:#2b1c29ed;border-color:#cd344c99;color:var(--cream);box-shadow:none}.battle-header{background:#14232eee}.minimap-wrap{background:#14252dee}.session-info,.personal-points-card{background:#16252ded}.personal-points-card{border-left-color:#c9b47c}.personal-points-card>small{display:grid;grid-template-columns:1fr 1fr;gap:2px 9px;margin-top:4px;line-height:1.35}.personal-points-card>small>span{display:flex;justify-content:space-between;gap:4px}.personal-points-card>small b{font-weight:600;color:#ebdfb7}.reward-feed{top:211px}.reward-toast{background:#1a3039ee}
.objectives .food-source{border-radius:7px;border-color:#d7bd785f;gap:7px;background:#192b33e8;min-width:124px;padding:6px 9px}.food-source.ready{color:#f2d697}.food-source.empty{color:#aaa791}.food-source .source-name{font-size:9px}.food-source>small{display:flex;flex-direction:column;gap:3px;font-size:7px;letter-spacing:.3px;line-height:1.1}.food-source strong{font-weight:700}.food-source em{font-size:6px;font-style:normal;color:#c1c8b8;white-space:nowrap}
.cargo-status{display:flex;align-items:center;gap:9px;text-align:left;margin:-1px -2px 9px;padding:0 0 9px;border-bottom:1px solid #bba56c55;color:#e6d6a5}.cargo-status>span{display:block;flex:none;width:24px;text-align:center;font:700 27px/1 'DM Sans',sans-serif;transform-origin:center;transition:transform .1s linear}.cargo-status>div{min-width:0;flex:1}.cargo-status b{display:block;font-size:8px;line-height:1.45;letter-spacing:.25px}.cargo-status small{display:block;font-size:7px;line-height:1.55;color:#bfc9bb;margin-top:2px}.cargo-status.carrying{color:#ffdf8d;border-bottom-color:#e2c775}.cargo-status.carrying small{color:#e7dcc0}.cargo-status.cargo-notice b{color:#ffe3a6}.food-mode .player-status{border-color:#c8b58270}.food-mode .class-label{letter-spacing:.5px}.result-contribution>small{line-height:1.65}
@media(max-width:800px){.objectives .food-source{min-width:98px;padding:5px 7px;gap:5px}.food-source .source-name{display:none}.food-source>small{font-size:7px}.food-source em{font-size:6px}.personal-points-card>small{gap:2px 6px;font-size:7px}.reward-feed{top:228px}.cargo-status{gap:7px}.cargo-status b{font-size:8px}.cargo-status small{font-size:7px}}
@media(max-width:600px){.objectives{left:50%;width:calc(100% - 24px);justify-content:center;gap:5px;top:73px}.objectives .food-source{min-width:0;flex:1;max-width:112px;padding:5px 6px;gap:5px}.food-source>small{display:flex;font-size:6px}.food-source em{font-size:5px}.food-source b{flex:none;width:18px;height:18px;font-size:9px}.personal-points-card{top:124px}.minimap-wrap{top:124px}.reward-feed{top:236px}.scout-detection{top:210px}.combat-feedback{top:105px;padding:4px 8px;font-size:9px}.cargo-status{gap:6px;margin-bottom:7px;padding-bottom:7px}.cargo-status>span{width:18px;font-size:23px}.cargo-status b{font-size:7px;letter-spacing:0}.cargo-status small{font-size:6px;line-height:1.5}.food-mode .player-status{bottom:238px}.food-mode #combat-hint{min-height:12px;font-size:7px}.food-mode .class-label{font-size:7px}.personal-points-card>small{grid-template-columns:1fr 1fr;font-size:6px;gap:3px 7px}}
@media(max-height:500px) and (min-width:601px){.objectives{top:62px}.objectives .food-source{min-width:103px;padding:4px 7px}.food-source .source-name{display:none}.food-source>small{font-size:6px;gap:2px}.food-source em{font-size:5px}.personal-points-card{top:64px}.personal-points-card>small{font-size:6px;gap:2px 6px}.reward-feed{top:135px;max-height:78px}.cargo-status{margin:0 -2px 6px;padding-bottom:6px;gap:8px}.cargo-status>span{width:21px;font-size:25px}.cargo-status b{font-size:7px}.cargo-status small{font-size:6px;line-height:1.35;margin-top:2px}.food-mode .player-status{width:284px;bottom:10px}.food-mode #combat-hint{font-size:7px;min-height:10px;margin:3px 0}.food-mode .health{margin:2px 0}.food-mode .class-label{font-size:8px}.combat-feedback{top:101px}.result-contribution{padding:10px 16px}.result-breakdown>div{padding:3px 0}.result-contribution>small{font-size:8px}}
@media(max-height:380px) and (min-width:601px){.objectives{top:57px}.reward-feed{top:123px;max-height:54px}.food-mode .player-status{bottom:6px}.cargo-status{padding-bottom:4px;margin-bottom:4px}.cargo-status small{line-height:1.2}.food-mode #combat-hint{display:none}.combat-feedback{top:92px}.result-total>b{font-size:32px}.result-breakdown>div{padding:2px 0}}
@media(prefers-reduced-motion:reduce){.cargo-status>span{transition:none}}

/* Foundation 08 war awareness: local call sign and a quiet, bounded activity feed. */
.callsign-field{margin:0 0 15px}.callsign-field label{display:flex;justify-content:space-between;align-items:center;font-size:9px;font-weight:700;letter-spacing:1.2px;color:#ced4bb;margin-bottom:6px}.callsign-field label small{font-size:8px;color:#9baa9d;letter-spacing:0;font-weight:400}.callsign-field input{width:100%;padding:10px 12px;color:#eee9d5;background:#14232b;border:1px solid #afbdad52;border-radius:6px;font-size:12px}.callsign-field>small{display:block;font-size:8px;color:#9aab9b;margin-top:5px;line-height:1.4}.war-feed{position:absolute;right:20px;top:250px;width:264px;pointer-events:none}.war-feed>small{display:block;font-size:7px;letter-spacing:1.4px;color:#c0c9b7;margin:0 0 5px 7px;text-shadow:0 1px 2px #14242c}.war-row{border-left:2px solid #6595c4;background:#14232bce;margin-top:4px;padding:6px 8px;border-radius:0 4px 4px 0;line-height:1.45;box-shadow:0 2px 5px #0002}.war-row>b{display:block;font-size:6px;letter-spacing:1px;color:#8eb9e1;margin-bottom:2px}.war-row>span{display:block;font-size:9px;color:#dce2cf;overflow-wrap:anywhere}.war-row.war-enclave{border-left-color:#cc5166}.war-enclave>b{color:#ef8796}.war-major{background:#1b2a32e6}.war-major>span{color:#f1e8ca}
@media(max-width:800px){.war-feed{right:12px;top:200px;width:190px}.war-row{padding:5px 7px;line-height:1.35}.war-row>span{font-size:8px}.war-row>b{font-size:6px}.war-feed>small{font-size:6px}}
@media(max-width:600px){.callsign-field{margin-bottom:13px}.callsign-field input{font-size:16px;padding:9px 11px}.war-feed{right:12px;top:248px;width:calc(50% - 24px);max-width:178px}.war-row{padding:5px 6px;margin-top:3px}.war-row>span{font-size:7px}.war-row>b{font-size:5px;letter-spacing:.7px}.war-row:nth-child(n+4){display:none}}
@media(max-height:500px) and (min-width:601px){.callsign-field{margin-bottom:10px}.callsign-field input{padding:8px 10px}.war-feed{right:112px;top:113px;width:185px}.war-feed>small{margin-bottom:3px}.war-row{padding:4px 6px;margin-top:3px;line-height:1.3}.war-row>b{font-size:5px;margin-bottom:1px}.war-row>span{font-size:7px}.war-row:nth-child(n+4){display:none}.reward-feed{left:10px;transform:none;top:162px;width:143px;max-height:65px}}
@media(max-height:380px) and (min-width:601px){.war-feed{top:103px;width:178px}.war-row{padding:3px 5px}.war-row>span{font-size:6px}.reward-feed{top:151px;max-height:45px}}

/* Foundation 09: explicit supply economy, one-finger abilities, and bounded roster overlays. */
:root{--coast:#87afcc;--lake:#e97986;--cream:#f1e7ce;--ink:#14212b}
.menu-shade{background:linear-gradient(90deg,#13212cfb,#15242cf5 32%,#18262cd5 52%,#18262c18 88%)}
.briefing{width:550px}.roles button{background:#20313a}.roles button.selected{background:#334852;border-color:#b8c8bd}.role-icon{color:#c9b486}.modes{background:#14252c}.modes .selected{background:#435762}.field-manual,.lore{background:#182a32}.field-manual ul{padding-left:17px}.field-manual li{padding:3px 0}.elite-brief{margin:14px 0;padding:12px;border:1px solid #c4a76b6b;border-radius:7px;background:#272e31}.elite-brief>b{font-size:10px;letter-spacing:1px;color:#e3cc95}.elite-brief p{font-size:9px;line-height:1.65;color:#bfc7bf;margin:7px 0}.elite-brief>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;color:#dbc591;font-size:14px}.elite-brief span b{display:block;font-size:10px}.elite-brief small{display:block;font-size:8px;line-height:1.5;margin-top:4px;color:#b9c0b7}.population-setting{display:block;font-size:9px;letter-spacing:1px;margin:14px 0;color:#ded5b4}.population-setting select{display:block;width:100%;margin:6px 0;padding:10px;color:#f1e4c4;background:#1e3039;border:1px solid #a99e7466;border-radius:5px;font:11px 'DM Sans',sans-serif}.population-setting small{display:block;font-size:8px;line-height:1.5;letter-spacing:0;color:#adbcb5}
.battle-header{top:12px;min-width:410px;padding:7px 15px;gap:14px}.objectives{top:100px}.supply-totals{position:absolute;top:80px;left:50%;transform:translateX(-50%);font-size:9px;letter-spacing:.4px;white-space:nowrap;color:#e3d0a0;text-shadow:0 1px 3px #000;background:#14242ccc;padding:3px 10px;border-radius:3px}.objective.food-source{position:relative;overflow:hidden;min-width:126px;min-height:40px}.food-source i{position:absolute;height:3px;bottom:0;left:0;background:currentColor}.food-source.owned-vlc{color:#8cb9dc;border-color:#6389a9}.food-source.owned-enclave{color:#ed91a0;border-color:#b35b69}.food-source.contested{color:#f5d37c;border-color:#e4b866}.food-source.contested i{background:#f5d37c}.food-source.neutral{color:#d1c9a7}
.personal-points-card{top:88px;left:20px;width:210px}.personal-points-card>b{font-size:31px;margin:2px 0}.deployment-balance{font-size:8px;letter-spacing:.3px;color:#d7bf8b;border-top:1px solid #c7b17b44;padding-top:5px}.promotion-status{font-size:7px;line-height:1.5;color:#9eb5b7;margin:4px 0}.promotion-status.earned{color:#f4d98e}.personal-points-card>small{font-size:7px}.reward-feed{top:258px;width:210px;max-height:148px;overflow:hidden}.war-feed{top:256px;right:20px;width:235px}.minimap-wrap{top:76px}.minimap-wrap canvas{width:180px;height:120px}.scout-detection{top:218px}.combat-feedback{top:152px}.roster-button{position:absolute;right:70px;top:20px;height:40px;padding:0 13px;background:#192b34ed;border:1px solid #cbb78460;border-radius:6px;font-size:9px;font-weight:700}.roster-button small{font-size:7px;display:block;color:#a8b6ad;margin-top:2px}
.player-status{width:290px;bottom:73px;background:#17272fe8}.food-mode .player-status{width:300px}.guard-button,.sprint-button{bottom:202px;height:52px;min-height:48px}.guard-button{right:45px;width:102px}.sprint-button{left:45px;width:102px}.guard-button small{font-size:7px}.guard-button.pressed{background:#625b40;border-color:#e5c986}.ability-button{--charge:0deg;position:absolute;right:181px;bottom:92px;width:64px;height:80px;min-width:48px;min-height:48px;padding:5px 2px;border-radius:12px;border:2px solid transparent;background:linear-gradient(#182b35,#182b35) padding-box,conic-gradient(#dfcb91 var(--charge),#354751 0) border-box;box-shadow:0 3px 14px #0005;touch-action:none;user-select:none;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;color:#b1c1bd}.ability-button>span{font-size:24px;line-height:1}.ability-button>b{font-size:8px;letter-spacing:.3px}.ability-button>small{font-size:7px}.ability-button.ready{border-color:transparent;color:#ffe3a3;background:linear-gradient(#384549,#253941) padding-box,conic-gradient(#ead397 var(--charge),#354751 0) border-box}.ability-button.aiming{border-color:#fff1ba;background:#5d6142;color:#fff6d4}.interact-button{position:absolute;left:181px;bottom:105px;width:94px;min-height:52px;overflow:hidden;border:1px solid #93b6a59c;background:#1b3039ed;border-radius:10px;touch-action:none;user-select:none;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px}.interact-button b{font-size:9px}.interact-button small{font-size:7px;color:#b9c9b8}.interact-button i{position:absolute;bottom:0;left:0;height:5px;background:#d5d49a}.interact-button.pressed{background:#405b55}.ability-help,.transit-status{position:absolute;left:50%;transform:translateX(-50%);max-width:430px;text-align:center;line-height:1.5;font-size:10px;background:#1d3039ef;border:1px solid #d6c18288;color:#f0e0b0;border-radius:5px;padding:7px 12px;pointer-events:none}.ability-help{bottom:270px}.transit-status{top:190px;border-color:#a4d8cc;color:#dcf3df}.respawn{z-index:12;width:min(600px,94vw);top:44%;max-height:88vh;background:#172934f5;pointer-events:auto}.respawn>span{font-size:9px}.respawn>small{font-size:10px}.respawn button{background:#29424b}.respawn .elite-choice{background:#443d30;border-color:#c2a46d88;color:#f1d79e}.respawn button.selected{background:#53634b;border-color:#dfd29b}.respawn button:disabled{opacity:.55}#respawn-economy{font-size:10px;line-height:1.5;color:#dfd1a7;margin:7px 0}
.roster-panel{position:absolute;z-index:15;left:50%;top:50%;transform:translate(-50%,-50%);width:min(720px,94vw);max-height:90vh;overflow:auto;pointer-events:auto;background:#152832f7;border:1px solid #c4b27b88;border-radius:12px;box-shadow:0 15px 70px #0008;padding:16px}.roster-panel header{display:flex;justify-content:space-between;align-items:center;gap:12px}.roster-panel header b{font-size:15px;letter-spacing:1px}.roster-panel header small{display:block;font-size:9px;color:#b8c9bd;margin-top:6px}.roster-panel header button{width:48px;height:48px;flex:none;font-size:26px;border:1px solid #94ac9f66;background:#29434b;border-radius:6px}.roster-panel>p{font-size:10px;line-height:1.6;color:#cad1bc}.roster-panel table{width:100%;border-collapse:collapse;font-size:10px;text-align:left}.roster-panel th{color:#e2cea0}.roster-panel td,.roster-panel th{padding:7px 5px;border-bottom:1px solid #b3be9d22}.roster-panel td:nth-child(2){color:#9fc3df}.roster-panel td:nth-child(3){color:#ec9ba8}#leaderboard{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:10px}#leaderboard h3{font-size:10px;letter-spacing:.5px}#leaderboard p{font-size:10px;color:#b7c4ba}.leaderboard-row{display:grid;grid-template-columns:20px minmax(0,1fr) 44px;gap:5px;align-items:center;font-size:10px;min-height:30px;border-bottom:1px solid #b3be9d22}.leaderboard-row span{overflow-wrap:anywhere}.leaderboard-row strong{text-align:right;color:#e2cf98}.leaderboard-row.you{background:#bcae7330}.result{z-index:20}.connection-alert{z-index:30}
@media(max-width:800px){.briefing{width:510px}.personal-points-card{left:12px;width:170px}.reward-feed{left:12px;width:170px}.minimap-wrap{right:12px}.minimap-wrap canvas{width:144px;height:96px}.war-feed{right:12px;width:180px;top:225px}.scout-detection{right:12px;top:202px}.roster-button{right:56px;top:13px;height:35px}.guard-button,.sprint-button{bottom:190px;width:90px;height:50px}.guard-button{right:25px}.sprint-button{left:25px}.ability-button{right:144px;bottom:82px;width:58px;height:72px}.interact-button{left:144px;bottom:96px;width:86px}.player-status,.food-mode .player-status{width:260px;bottom:58px}.ability-help{bottom:250px;max-width:340px}.session-info{bottom:10px;top:auto}.campaign{display:none}}
@media(max-width:600px){.menu-shade{background:#142630f7}.briefing{padding:22px 18px;width:100%}.facts{gap:25px}.battle-header{top:9px;min-width:0;width:calc(100% - 102px);padding:6px 7px;gap:5px;border-radius:9px}.battle-header b{font-size:25px;margin:0 1px}.timer{min-width:70px}.timer>span{font-size:24px}.timer small{font-size:6px;letter-spacing:.35px}.colony-left,.colony-right{gap:3px}.colony-left>span,.colony-right>span{display:none}.menu-button{top:12px;right:10px;width:38px;height:44px}.roster-button{left:10px;right:auto;top:12px;width:38px;height:44px;padding:0;font-size:6px}.roster-button small{font-size:6px}.supply-totals{top:69px;font-size:8px;padding:3px 5px;letter-spacing:0}.objectives{top:90px;width:calc(100% - 24px);gap:5px}.objective.food-source{min-width:0;min-height:37px;padding:5px;gap:4px;max-width:none}.food-source>small{font-size:6px;line-height:1.25}.food-source em{font-size:5px}.food-source b{width:17px;height:17px;font-size:9px}.personal-points-card{top:139px;left:12px;width:calc(50% - 24px);padding:7px 9px}.personal-points-card>b{font-size:27px}.personal-points-card>span{font-size:6px;letter-spacing:.7px}.deployment-balance{font-size:6px;padding-top:4px}.promotion-status{font-size:6px;margin:4px 0}.personal-points-card>small{font-size:5.8px;gap:3px 5px}.minimap-wrap{top:139px;right:12px;width:calc(50% - 24px);padding:5px}.minimap-wrap canvas{width:100%;height:auto;aspect-ratio:1.5}.minimap-wrap>div{font-size:5px}.reward-feed{top:291px;left:12px;width:calc(50% - 24px);max-height:96px}.reward-toast{padding:5px 7px}.reward-toast>b{font-size:18px}.reward-toast>span{font-size:7px}.war-feed{top:292px;right:12px;width:calc(50% - 24px);max-width:none}.war-row{padding:4px 6px}.war-row>span{font-size:6.5px}.war-row:nth-child(n+3){display:none}.scout-detection{top:269px;right:12px;font-size:6px;max-width:calc(50% - 24px);padding:4px 5px}.combat-feedback{top:127px;font-size:8px;padding:3px 8px}.player-status,.food-mode .player-status{width:222px;bottom:246px;padding:8px 11px;border-radius:8px}.health{font-size:7px;margin:3px 0}.health-bar{width:83px;height:5px}.class-label,.food-mode .class-label{font-size:7px;letter-spacing:.4px}#combat-hint,.food-mode #combat-hint{font-size:7px;line-height:1.4;min-height:0;margin:4px 0}#personal-score{font-size:6px}.cargo-status{margin-bottom:6px;padding-bottom:6px}.cargo-status b{font-size:7px}.cargo-status small{font-size:6px}.cargo-status small:last-child{display:none}.guard-button,.sprint-button{bottom:189px;min-height:48px;height:48px}.guard-button{right:20px;width:90px}.sprint-button{left:20px;width:80px}.interact-button{left:110px;bottom:189px;width:94px;min-height:48px}.ability-button{right:146px;bottom:80px;width:56px;height:72px;min-height:48px}.ability-button>b{font-size:7px}.ability-button>small{font-size:6px}.ability-help{bottom:399px;max-width:calc(100% - 24px);width:310px;font-size:8px;padding:6px 8px}.transit-status{top:398px;width:calc(100% - 24px);font-size:9px}.touch-stick,.attack-button{bottom:65px;width:112px;height:112px}.touch-stick{left:18px}.attack-button{right:18px}.session-info{bottom:10px;left:12px;font-size:6px;padding:5px 7px}.session-info small{font-size:7px}.respawn{top:48%;padding:12px;max-height:91vh}.respawn>b{font-size:32px}.respawn button{font-size:9px;min-height:53px;padding:8px 4px}.respawn button small{font-size:6px}.respawn>small{font-size:9px}#respawn-economy{font-size:9px}#leaderboard{grid-template-columns:1fr}.roster-panel{padding:12px}.roster-panel table{font-size:9px}.roster-panel td,.roster-panel th{padding:6px 4px}}
@media(max-height:500px) and (min-width:601px){.battle-header{top:7px;min-width:330px;width:auto;padding:4px 12px}.battle-header b{font-size:25px}.timer>span{font-size:23px}.timer small{font-size:6px}.objectives{top:82px}.supply-totals{top:63px;font-size:7px}.objective.food-source{min-width:99px;min-height:33px;padding:4px 6px}.food-source>small{font-size:6px}.food-source em{font-size:5px}.session-info{top:8px;bottom:auto;left:10px;font-size:6px;padding:4px 6px}.session-info small{font-size:7px}.menu-button{top:8px;right:10px;width:38px;height:44px}.roster-button{right:55px;top:8px;height:44px;min-width:48px;font-size:7px}.personal-points-card{top:57px;left:10px;width:144px;padding:5px 7px}.personal-points-card>b{font-size:24px}.personal-points-card>span{font-size:6px}.deployment-balance{font-size:6px;padding-top:3px}.promotion-status{font-size:5.5px;margin:3px 0}.personal-points-card>small{font-size:5px;gap:2px 5px}.reward-feed{top:187px;left:10px;transform:none;width:144px;max-height:56px}.reward-toast{padding:4px 6px}.reward-toast>b{font-size:16px}.reward-toast>span{font-size:6px}.minimap-wrap{top:59px;right:10px;padding:4px;display:block;width:106px}.minimap-wrap canvas{width:96px;height:64px}.minimap-wrap>div{font-size:5px}.war-feed{top:121px;right:128px;width:190px}.war-row{padding:3px 5px}.war-row>span{font-size:6px}.war-row>b{font-size:5px}.war-row:nth-child(n+3){display:none}.scout-detection{top:150px;right:10px;max-width:106px;font-size:5px;padding:3px 4px}.combat-feedback{top:119px;font-size:8px;padding:3px 7px}.touch-stick,.attack-button{bottom:17px;width:96px;height:96px}.touch-stick{left:20px}.attack-button{right:20px}#stick-knob{left:27px;top:27px;width:38px;height:38px}.attack-button svg{width:45px;height:45px}.attack-button span{font-size:13px}.guard-button,.sprint-button{bottom:124px;width:86px;min-height:48px;height:48px;font-size:9px}.guard-button{right:25px}.sprint-button{left:25px}.guard-button small,.sprint-button small{font-size:6px}.ability-button{right:128px;bottom:28px;width:54px;height:68px}.ability-button>span{font-size:22px}.ability-button>b{font-size:7px}.ability-button>small{font-size:6px}.interact-button{left:128px;bottom:34px;width:83px;min-height:50px}.interact-button b{font-size:8px}.interact-button small{font-size:6px}.player-status,.food-mode .player-status{bottom:9px;width:262px;padding:6px 10px}.class-label,.food-mode .class-label{font-size:7px}.health{font-size:7px;margin:2px 0}.health-bar{width:80px;height:5px}#combat-hint,.food-mode #combat-hint{font-size:6px;line-height:1.35;min-height:0;margin:3px 0}#personal-score{font-size:6px}.cargo-status{padding-bottom:4px;margin-bottom:4px}.cargo-status b{font-size:6px}.cargo-status small{font-size:5.5px;line-height:1.3}.cargo-status small:last-child{display:none}.ability-help{bottom:151px;font-size:8px;padding:5px 8px;max-width:350px}.transit-status{top:166px;font-size:8px;max-width:340px}.respawn{top:50%;max-height:94vh;padding:9px 12px}.respawn>b{font-size:23px}.respawn>span{font-size:8px}.respawn>small{font-size:8px}.respawn button{min-height:43px;padding:5px;font-size:9px}.respawn button small{font-size:6px}#respawn-economy{font-size:8px;margin:4px 0}.roster-panel{max-height:94vh}.campaign{display:none}}
@media(max-height:710px) and (max-width:600px){.player-status,.food-mode .player-status{bottom:236px}.reward-feed,.war-feed{max-height:56px}.war-row:nth-child(n+2){display:none}.ability-help{bottom:385px}.cargo-status{display:none}.transit-status{top:280px}}
@media(prefers-reduced-motion:reduce){.ability-button,.attack-button,.cargo-status>span{transition:none}}

@media(max-width:600px){.roster-button{left:12px;right:auto;top:269px;width:70px;height:44px;font-size:8px}.roster-button small{font-size:6px}.reward-feed{top:321px;max-height:65px}}

/* Foundation 09.1: natural settings, explicit local elite testing, and readable scoring. */
.elite-testing{display:flex;align-items:center;gap:10px;min-height:48px;cursor:pointer}.elite-testing input{width:22px;height:22px;flex:none;accent-color:#dac28c}.elite-testing b{display:block;font-size:10px;letter-spacing:.8px;color:#f0dab0}.elite-testing small{display:block;font-size:9px;margin-top:4px;color:#c3ccb9}.elite-brief .elite-roles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0}.elite-roles button{min-width:0;padding:9px 7px;background:#383a32;border-color:#aa996c70}.elite-roles button.selected{background:#565844;border-color:#ecd392}.elite-roles button small{font-size:8px;line-height:1.4}.elite-roles button b{font-size:10px}.elite-roles .role-icon{font-size:23px;line-height:24px;color:#dbc08a}.roles{flex-wrap:wrap}.role-rules b{color:#d2c39a}.scoring-table{width:100%;border-collapse:collapse;text-align:left;font-size:10px;margin:13px 0}.scoring-table caption{text-align:left;font-size:9px;letter-spacing:1px;color:#dfc894;font-weight:700;margin:9px 0}.scoring-table td,.scoring-table th{padding:7px 5px;border-bottom:1px solid #bbc49d26}.scoring-table th{font-size:8px;font-weight:400;color:#b8c1b1}.scoring-table td:last-child{white-space:nowrap;text-align:right;font-weight:700;color:#ead7a9}.scoring-table th:last-child{text-align:right}.modes button{min-height:49px}.modes button small{display:block;font-size:6.5px;letter-spacing:.5px;color:#bfc7ac;margin-top:5px}.modes button.selected small{color:#efdbab}.minimap-wrap>strong{display:block;font-size:7px;letter-spacing:1px;color:#d9d1a8;margin:0 0 5px;font-weight:600}.menu-map-note small{line-height:1.7}.menu-map-note #menu-scene-name{color:#ead4a5}.respawn{overflow-y:auto}.elite-brief>div{font-size:inherit}.elite-brief .role-icon{display:block}
@media(max-width:600px){.scoring-table{font-size:10px}.elite-roles button{padding:8px 6px;min-height:110px}.elite-roles button small{font-size:7.5px}.minimap-wrap>strong{font-size:6px;letter-spacing:.8px;margin-bottom:3px}.modes button small{font-size:6px;letter-spacing:.3px}}
@media(max-height:500px) and (min-width:601px){.minimap-wrap>strong{font-size:5px;letter-spacing:.5px;margin-bottom:2px}.scout-detection{top:155px}}

/* Primary artillery uses the existing action slot; no extra phone control overlaps. */
.attack-button.aiming{border-color:#f5df9e;background:#655b3ee8;color:#fff2c5}.attack-button.aiming svg{opacity:.68}.attack-button.aiming span{font-size:12px;letter-spacing:.5px}.combat-feedback.body-hit{color:#ffd0b8;border-color:#d87b65;background:#542d2bd9}.combat-feedback.armor-break{color:#fff1bf;border-color:#e7bc65;background:#644527ed}

@media(max-width:600px){.aim-focus .personal-points-card,.aim-focus .minimap-wrap,.aim-focus .war-feed,.aim-focus .reward-feed,.aim-focus .player-status,.aim-focus .objectives,.aim-focus .supply-totals{opacity:.22}.aim-focus .ability-help{background:#182922f2;color:#fff0c2}.aim-focus .battle-header{opacity:.75}}

/* Foundation 0.9.2: the same role anatomy appears in deployment and on the battlefield. */
.role-model{display:block;width:100%;max-width:112px;height:auto;aspect-ratio:1.4;margin:-4px auto 3px;pointer-events:none}.elite-roles .role-model{margin-top:-5px}.roles button{overflow:hidden}.charge-source{font-size:7px;line-height:1.4;margin:5px 0 0;color:#c6d6a2;letter-spacing:.15px}.minimap-wrap>strong{font-size:6.5px;letter-spacing:.5px}
@media(max-width:600px){.role-model{max-width:106px}.charge-source{font-size:6px;margin-top:3px}.minimap-wrap>strong{font-size:5.6px;letter-spacing:.3px}}
@media(max-height:500px) and (min-width:601px){.charge-source{font-size:5.5px;margin-top:3px}.minimap-wrap>strong{font-size:4.8px;letter-spacing:0}}

/* Stage 1: grouped mode choices and a compact global hill clock. */
.mode-scale{margin-top:10px}.mode-scale>b{display:block;font-size:8px;letter-spacing:1px;color:#bdb58f;margin:0 0 6px}.standard-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.modes button{min-width:0}.hill-status{position:absolute;top:82px;left:50%;transform:translateX(-50%);width:430px;max-width:calc(100% - 24px);padding:7px 11px 8px;border:1px solid #cdb57388;border-radius:8px;background:#1c2d2aee;overflow:hidden;color:#e7d7ad;text-align:center}.hill-status>div{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:9px;line-height:1.7}.hill-status strong{font-size:8px;letter-spacing:.3px}.hill-status b:first-child{color:#a6c8e3}.hill-status b:last-child{color:#eea0a3}.hill-status>small{display:block;font-size:7px;margin-top:2px;color:#c8cfb0}.hill-status>i{position:absolute;bottom:0;left:0;height:3px;background:#d8c17f}.hill-status.inside{border-color:#ead48d}.aim-focus .hill-status{opacity:.22}
@media(max-width:600px){.mode-scale>b{font-size:8px}.modes button{min-height:54px;font-size:10px}.hill-status{top:73px;padding:5px 8px 7px}.hill-status>div{font-size:8px;gap:5px;line-height:1.65}.hill-status strong{font-size:6.5px;letter-spacing:0}.hill-status>small{font-size:6.5px}}
@media(max-height:500px) and (min-width:601px){.hill-status{top:62px;width:320px;padding:4px 8px 6px}.hill-status>div{font-size:7px;line-height:1.5}.hill-status strong{font-size:6px;letter-spacing:0}.hill-status>small{font-size:5.5px}}

/* Stage 2: NPC army identification and two simultaneous Frontlines objectives. */
.termite-guide{margin:14px 0;padding:10px;border:1px solid #d6ba7b55;border-radius:8px;background:#71603e28}.termite-guide>b{display:block;font-size:8px;letter-spacing:.7px;color:#e1ce99}.termite-guide>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.termite-guide article{text-align:center;min-width:0}.termite-guide canvas{display:block;width:100%;max-width:100px;height:auto;margin:auto;pointer-events:none}.termite-guide strong{display:block;font-size:10px;color:#e6d8ae}.termite-guide small{display:block;font-size:7px;line-height:1.7;color:#cfc4a0}.termite-status{position:absolute;top:83px;left:50%;transform:translateX(-50%);width:410px;max-width:calc(100% - 24px);padding:9px 12px;background:#332f23ef;border:1px solid #c6ac7180;border-radius:8px;text-align:center;color:#e7d39b;pointer-events:none}.termite-status b{font-size:9px;letter-spacing:.4px}.termite-status small{display:block;margin-top:5px;font-size:8px;color:#c3bc94}.frontlines-mode .hill-status{top:106px}.frontlines-mode .objectives{top:180px}.frontlines-mode .supply-totals{top:80px}.frontlines-mode .objective.food-source{min-width:165px}.aim-focus .termite-status{opacity:.22}
@media(max-width:600px){.termite-guide>b{font-size:7px}.termite-guide small{font-size:6.5px}.termite-status{top:74px;padding:8px}.termite-status b{font-size:8px;letter-spacing:0}.termite-status small{font-size:7px}.frontlines-mode .supply-totals{top:69px;font-size:7px}.frontlines-mode .hill-status{top:88px}.frontlines-mode .objectives{top:155px}.frontlines-mode .objective.food-source{min-width:0;flex:1}.frontlines-mode .personal-points-card,.frontlines-mode .minimap-wrap{top:202px}.frontlines-mode .personal-points-card>small{display:none}.frontlines-mode .roster-button{top:330px}.frontlines-mode .war-feed{top:330px;max-height:54px}.frontlines-mode .war-row:nth-child(n+2){display:none}.frontlines-mode .scout-detection{top:319px}.frontlines-mode .reward-feed{top:381px;max-height:35px}.frontlines-mode .reward-toast>span{display:none}.frontlines-mode .combat-feedback{top:193px}.frontlines-mode .hill-status>small{font-size:5.7px}}
@media(max-height:500px) and (min-width:601px){.termite-status{top:63px;width:300px;padding:6px}.termite-status b{font-size:7px}.termite-status small{font-size:6px}.frontlines-mode .supply-totals{top:60px;font-size:6px}.frontlines-mode .hill-status{top:78px;width:300px}.frontlines-mode .objectives{top:133px;width:300px}.frontlines-mode .objective.food-source{min-width:0;flex:1}.frontlines-mode .war-feed{top:174px;right:128px;width:150px}.frontlines-mode .war-row:nth-child(n+2){display:none}.frontlines-mode .combat-feedback{top:170px}.frontlines-mode .hill-status>small{font-size:5px}}

/* Siege reuses the fixed action controls; work is automatic and Q stays unavailable for the two special lives. */
.siege-deployment{margin:12px 0;padding:12px;border:1px solid #c3aa7480;border-radius:8px;background:#303b31}.siege-deployment>b{font-size:10px;letter-spacing:1px;color:#ead6a1}.siege-deployment>p{font-size:9px;line-height:1.6;color:#cbd0b6}.siege-roles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.siege-roles .role{min-width:0;padding:9px;border:1px solid #a99c6d66;background:#283c39;border-radius:7px}.siege-roles .role.selected{border-color:#e0cc8f;background:#455344}.siege-roles .role small{display:block;font-size:8px;line-height:1.6}.siege-roles .role:disabled{opacity:.45}.siege-choice{background:#514a31!important}.siege-status{position:absolute;top:82px;left:50%;transform:translateX(-50%);width:455px;max-width:calc(100% - 24px);padding:8px;border:1px solid #cdb57688;border-radius:8px;background:#1c2c27f0;color:#e7d8ad;text-align:center}.siege-scoreline{display:flex;justify-content:space-between;gap:8px;font-size:10px;margin-bottom:6px}.siege-scoreline strong{color:#e9c681;white-space:nowrap}.siege-worksites{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.siege-worksites>div{position:relative;overflow:hidden;padding:6px 3px 8px;border:1px solid #aab88a42;background:#34403566;border-radius:4px}.siege-worksites b,.siege-worksites strong,.siege-worksites small{display:block;line-height:1.5}.siege-worksites b{font-size:8px;letter-spacing:.5px}.siege-worksites strong{font-size:9px;color:#f1dda4}.siege-worksites small{font-size:7px;color:#c5cbb0}.siege-worksites i{position:absolute;bottom:0;left:0;height:3px;background:#d2c08a}.siege-status>small{display:block;font-size:7px;color:#bfc8ac;margin-top:6px}.siege-context{position:absolute;left:50%;transform:translateX(-50%);bottom:270px;width:390px;max-width:calc(100% - 24px);padding:7px 10px;border:1px solid #b9bc8388;border-radius:6px;background:#23372fed;color:#e7d9ad;font-size:9px;line-height:1.5;text-align:center;pointer-events:none}.aim-focus .siege-status{opacity:.22}.aim-focus .siege-context{opacity:0}
@media(max-width:600px){.siege-status{top:73px;padding:6px}.siege-scoreline{font-size:8px;margin-bottom:4px}.siege-worksites>div{padding:4px 2px 6px}.siege-worksites b{font-size:7px;letter-spacing:0}.siege-worksites strong{font-size:7.5px}.siege-worksites small{font-size:6px}.siege-status>small{font-size:5.7px;margin-top:4px}.siege-mode .personal-points-card,.siege-mode .minimap-wrap{top:184px}.siege-mode .personal-points-card>small{display:none}.siege-mode .roster-button{top:312px}.siege-mode .war-feed{top:312px;max-height:50px}.siege-mode .war-row:nth-child(n+2){display:none}.siege-mode .reward-feed{top:363px;max-height:33px}.siege-mode .reward-toast>span{display:none}.siege-mode .scout-detection{top:302px}.siege-mode .combat-feedback{top:173px}.siege-context{bottom:399px;font-size:7px;width:330px;padding:6px 8px}.siege-mode .attack-button span{font-size:10px}.siege-mode .battle-header b{font-size:22px}.siege-mode .class-label{font-size:7px}}
@media(max-height:500px) and (min-width:601px){.siege-status{top:62px;width:300px;padding:4px}.siege-scoreline{font-size:7px;margin-bottom:3px}.siege-worksites>div{padding:3px 1px 5px}.siege-worksites b{font-size:6px}.siege-worksites strong{font-size:6.5px}.siege-worksites small{font-size:5.5px}.siege-status>small{font-size:5px;margin-top:3px}.siege-context{bottom:153px;font-size:7px;width:290px;padding:5px}.siege-mode .war-feed{top:179px;width:150px}.siege-mode .war-row:nth-child(n+2){display:none}}

/* Balance pass: reinforcement jobs and rally status remain above the fixed phone controls. */
.siege-status #siege-jobs{color:#d1ceb2;margin-top:4px}.siege-status #siege-rally{color:#c3b18b;margin-top:4px}.siege-status #siege-rally.active{color:#d1edb2;font-weight:700}
@media(max-width:600px){.siege-mode .personal-points-card,.siege-mode .minimap-wrap{top:214px}.siege-mode .roster-button,.siege-mode .war-feed{top:342px}.siege-mode .reward-feed{top:393px}.siege-mode .scout-detection{top:332px}.siege-mode .combat-feedback{top:203px}.siege-context{bottom:365px}}
@media(max-height:500px) and (min-width:601px){.siege-status #siege-jobs,.siege-status #siege-rally{font-size:5px;margin-top:2px}.siege-mode .war-feed{top:205px}}

/* A shared map picker and compact objective strip reuse the existing action controls. */
.map-setting{margin-top:12px}.map-setting select{min-width:210px}#battle-map{font-size:6px;letter-spacing:.7px;opacity:.7}.result-map{color:#d4d7b6;font-size:11px}.larvae-status{position:absolute;top:82px;left:50%;transform:translateX(-50%);width:390px;max-width:calc(100% - 24px);padding:9px;background:#1c2c27ef;border:1px solid #d2c39170;border-radius:8px;display:grid;grid-template-columns:1fr 1fr;gap:6px 16px;text-align:center}.larvae-status b{font-size:8px;letter-spacing:.5px;display:block;margin-bottom:5px}.larvae-status span{display:flex;justify-content:center;gap:4px}.larva-state{font-style:normal;font-size:6px;min-width:31px;border:1px solid #c5bd8e66;border-radius:10px;padding:4px;color:#e5ddaf}.larva-state.carried{color:#ffc58b;border-color:#c19b62}.larva-state.dropped{color:#f0dc8c}.larva-state.captured{opacity:.4;text-decoration:line-through}.larvae-status>small{grid-column:1/-1;color:#c8ccb0;font-size:7px}.aim-focus .larvae-status{opacity:.2}
@media(max-width:600px){#battle-map{font-size:5px}.larvae-status{top:76px;width:calc(100% - 24px);padding:7px}.larvae-status b{font-size:7px}.larvae-mode .personal-points-card,.larvae-mode .minimap-wrap{top:154px}.larvae-mode .roster-button,.larvae-mode .war-feed{top:282px}.larvae-mode .reward-feed{top:333px}.larvae-mode .scout-detection{top:272px}.larvae-mode .combat-feedback{top:143px}.larvae-mode .cargo-status{max-width:180px}.map-setting select{min-width:0;width:100%}}
@media(max-height:500px) and (min-width:601px){.larvae-status{top:68px;width:300px;padding:5px}.larvae-status b{font-size:6px}.larvae-status>small{font-size:6px}.larvae-mode .war-feed{top:151px;max-height:45px}.larvae-mode .war-row:nth-child(n+2){display:none}}

/* The five-item comparison uses the same nursery strip and action controls. */
.larvae-format-setting{margin-top:12px}.larvae-format-setting select{min-width:0;max-width:100%}.larvae-status{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.larvae-status.five-larvae{column-gap:12px}.five-larvae .larva-state{flex:1;min-width:0;max-width:38px;padding:4px 1px}.five-larvae span{gap:3px}

.reinforcement-setting{margin-top:12px}.reinforcement-setting select{min-width:0;max-width:100%}

/* Support roles retain the existing controls and fit the deployment grid. */
.siege-roles{grid-template-columns:repeat(3,minmax(0,1fr))}.siege-roles .role b{font-size:10px}.siege-roles .role-model{margin-top:0}.roles button:disabled{opacity:.5;cursor:not-allowed}.siege-roles .role[hidden],.roles .role[hidden]{display:none}
.siege-roles{grid-template-columns:repeat(2,minmax(0,1fr))}.roster-contribution{border:1px solid #bcae7d55;border-radius:8px;padding:12px;margin:12px 0 18px;background:#1c3026a8}.roster-contribution h3{font-size:12px;letter-spacing:1px;margin:0 0 8px}.roster-contribution>strong{font-size:14px;color:#f0dca5}.roster-contribution>p{font-size:10px;color:#b8c9bd}.result-breakdown>div{gap:12px;text-align:left;align-items:center}.result-breakdown>div>span{min-width:0}.result-breakdown small{display:block;font-size:9px;color:#aabca7;margin-top:2px}.roster-contribution .result-breakdown{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.result-contribution{flex-shrink:0}.result-contribution .result-breakdown{max-height:36vh;overflow-y:auto;overscroll-behavior:contain;padding-right:5px}.result-contribution>small{line-height:1.5}
@media(max-width:600px){.roster-contribution .result-breakdown{grid-template-columns:1fr}.roster-contribution{padding:10px}.result-contribution .result-breakdown{max-height:34vh}.result-breakdown>div{font-size:11px;padding:7px 0}.result-breakdown small{font-size:9px}}

/* All Out War uses the existing controls and a compact, bounded objective strip. */
.alloutwar-status{position:absolute;top:82px;left:50%;transform:translateX(-50%);width:570px;max-width:calc(100% - 24px);background:#192b24ed;border:1px solid #a79c6266;border-radius:8px;padding:9px 12px;text-align:center;font-size:9px;line-height:1.7;color:#d7ddc3;pointer-events:none}.alloutwar-status>small{display:block;color:#d4bc7d;font-size:8px}.alloutwar-status>strong{display:block;color:#f1dda1;font-size:11px}.alloutwar-mode .objectives{top:190px}.alloutwar-mode .supply-totals{display:none}.alloutwar-mode .war-feed{top:265px}.aim-focus .alloutwar-status{opacity:.2}
@media(max-width:600px){.alloutwar-status{top:75px;padding:6px 8px;font-size:6px;line-height:1.7}.alloutwar-status>small{font-size:6px}.alloutwar-status>strong{font-size:8px}.alloutwar-mode .objectives{top:153px}.alloutwar-mode .personal-points-card,.alloutwar-mode .minimap-wrap{top:205px}.alloutwar-mode .roster-button,.alloutwar-mode .war-feed{top:333px}.alloutwar-mode .reward-feed{top:385px}.alloutwar-mode .scout-detection{top:322px}.alloutwar-mode .combat-feedback{top:194px}.alloutwar-mode .cargo-status{max-width:180px}}
@media(max-height:500px) and (min-width:601px){.alloutwar-status{top:65px;font-size:6px;padding:4px 8px;width:450px}.alloutwar-status>small{font-size:5px}.alloutwar-mode .objectives{top:124px}.alloutwar-mode .war-feed{top:195px}}

.builder-palette{position:fixed;z-index:35;right:24px;bottom:180px;width:min(420px,calc(100vw - 24px));box-sizing:border-box;padding:12px;border:1px solid #a69667;background:#142521f5;color:#f4e7bc;border-radius:12px;box-shadow:0 8px 28px #0008;pointer-events:auto;touch-action:none}.builder-palette[hidden]{display:none}.builder-palette header{display:flex;align-items:center;gap:8px;font-size:12px}.builder-palette header span{margin-left:auto;font-size:11px;color:#d2cd9f}.builder-palette header button{width:32px;height:32px;font-size:24px}.builder-palette p{font-size:11px;line-height:1.4;margin:7px 0}.builder-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.builder-choices button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:122px;padding:6px 2px;background:#31453b;border:1px solid #8a966c;border-radius:7px;color:#f5ebc5;touch-action:none}.builder-choices button:disabled{opacity:.48}.builder-choices b{font-size:11px}.builder-choices small{font-size:9px;margin:4px 0}.builder-choices span{font-size:9px;line-height:1.3}.builder-choices canvas{width:48px;height:48px}@media(max-width:600px){.builder-palette{right:12px;bottom:190px;padding:9px}.builder-choices button{min-height:112px}.builder-palette p{font-size:10px}}

/* Independent audio preferences remain available during a battle. */
.audio-settings{color:#e7dfc4;background:#172722ec;border:1px solid #66756770;border-radius:8px;padding:10px 12px;margin:10px 0;font-size:13px}.audio-settings summary{cursor:pointer;font-weight:700}.audio-settings label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.audio-settings input[type=range]{width:130px;max-width:45vw;accent-color:#cbb67b}.game-audio-settings{position:absolute;right:14px;top:100px;z-index:24;min-width:130px;max-width:250px}.game-audio-settings[open]{min-width:240px}#confirm-respawn{min-height:46px;width:100%;margin-top:12px}#respawn-time{font-size:28px}.respawn{max-height:85dvh;overflow-y:auto}@media(max-width:600px){.game-audio-settings{top:103px;right:8px;padding:7px 9px;font-size:11px}.game-audio-settings[open]{max-width:calc(100vw - 32px);min-width:220px}.respawn{max-height:76dvh}#respawn-roles button{min-height:48px}}


/* 0.20.1: settings is an input-owning screen, outside the pointer-transparent HUD. */
body{touch-action:manipulation}
#world,#game-ui{touch-action:none}
.settings-open #game-ui,.settings-open #menu{visibility:hidden}
.settings-overlay{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));background:#0b1513ed;pointer-events:auto;touch-action:pan-y;overscroll-behavior:contain}
.settings-overlay[hidden]{display:none}
.settings-panel{width:480px;max-width:100%;max-height:100%;overflow-y:auto;overscroll-behavior:contain;padding:22px;border:1px solid #6e7964;border-radius:14px;background:#1b2d25;box-shadow:0 18px 80px #0008;color:#e9e4cc}
.settings-panel>header{display:flex;align-items:center;justify-content:space-between;gap:16px}
.settings-panel h2{font-size:24px;margin:0}.settings-panel h3{font-size:15px;margin:0 0 12px}
.settings-panel>header button{width:44px;height:44px;border-radius:8px;font-size:27px;background:#32463a}
.settings-panel p{font-size:12px;line-height:1.6;color:#c3ceba}.settings-link{display:block;width:100%;min-height:44px;margin:18px 0 8px;border:1px solid #7a886a77;border-radius:7px;background:#263d31;color:#e4dec4;font-size:12px}
.audio-settings{pointer-events:auto;touch-action:pan-y}.audio-settings summary{min-height:26px}.audio-settings label{min-height:44px;justify-content:flex-start;flex-wrap:wrap;font-size:13px;line-height:1.4;gap:8px}
.audio-settings input[type=checkbox]{width:22px;height:22px;accent-color:#d7c48c;flex:none}
.audio-settings input[type=range]{width:100%;max-width:none;min-width:0;height:32px;margin:0;flex:1 1 140px;touch-action:auto;cursor:pointer;accent-color:#d7c48c}
.audio-settings output{width:36px;flex:none;font-variant-numeric:tabular-nums;font-size:12px;text-align:right;color:#f3ddb0}
.settings-panel .audio-settings{margin:16px 0;padding:16px}.settings-panel .audio-settings label:has(input[type=range]){display:grid;grid-template-columns:1fr 42px}.settings-panel .audio-settings label:has(input[type=range]) input{grid-column:1;grid-row:2}.settings-panel .audio-settings label:has(input[type=range]) output{grid-column:2;grid-row:2}
.developer-tools{border:1px solid #65725c66;border-radius:8px;padding:12px;background:#14231d}
.developer-tools>summary{cursor:pointer;min-height:44px;font-size:13px;font-weight:700}.developer-tools>summary small{display:block;margin:5px 0 0 16px;font-size:10px;font-weight:400;color:#9fad98}
.developer-tools .facts{margin:12px 0}.developer-tools .facts span{font-size:9px}.developer-tools .facts b{font-size:18px}
.developer-tools .population-setting{display:block}.developer-tools .population-setting select{display:block;width:100%;margin:8px 0;min-height:44px;font-size:12px}.developer-tools .population-setting small{font-size:10px;line-height:1.5}
.developer-tools .elite-testing{margin-top:12px}.developer-tools .elite-testing small{font-size:10px}.developer-tools .elite-testing b{font-size:11px}
.developer-diagnostics{border-top:1px solid #6e796455;margin-top:16px;padding-top:10px;font-size:11px;line-height:1.7}
.developer-diagnostics .session-info,.developer-diagnostics .campaign,.developer-diagnostics .termite-status{position:static;transform:none;display:block;width:auto;max-width:none;margin:10px 0;padding:8px;font-size:11px;text-align:left}
.developer-diagnostics .session-info small,.developer-diagnostics>small{display:block;font-size:10px;line-height:1.7}.developer-diagnostics .campaign-track{margin:8px 0;width:100%}.developer-diagnostics .campaign>span{font-size:10px}
.developer-diagnostics [hidden]{display:none!important}#frame-profile{margin-top:16px;font-size:11px}#frame-profile button{min-height:44px;margin-right:8px;padding:8px;background:#354c3d}
.settings-actions{display:flex;flex-direction:column;gap:8px;margin-top:20px}.settings-actions button{min-height:46px;border-radius:8px;background:#d3c48e;color:#1c2d23;font-weight:700}.settings-actions button:last-child:not(:first-child){background:transparent;color:#becab4;border:1px solid #70815a70;font-size:12px}
.settings-panel :focus-visible,.audio-settings :focus-visible{outline:2px solid #f4d486;outline-offset:3px}
.personal-points-card{width:170px;padding:9px 12px}.personal-points-card>b{font-size:29px}.personal-points-card>small[hidden]{display:none}.promotion-status:empty{display:none}.deployment-balance{font-size:9px}.promotion-status{font-size:9px;line-height:1.5}
#personal-score{display:none}.player-status{padding:10px 14px}.health{font-size:11px;margin:6px 0}.class-label{font-size:11px}
#game-ui.respawning>:not(.respawn):not(.menu-button):not(.result):not(.connection-alert){visibility:hidden}
#game-ui.respawning .respawn{position:fixed;z-index:45;top:70px;bottom:16px;left:50%;transform:translateX(-50%);width:min(540px,calc(100vw - 24px));height:max-content;max-height:calc(100dvh - 86px);background:#162a21fa;pointer-events:auto}
#game-ui.respawning .menu-button{z-index:46}
@media(max-width:600px){
 .settings-overlay{padding:12px}.settings-panel{padding:16px;max-height:calc(100dvh - 24px);border-radius:12px}.settings-panel h2{font-size:22px}.settings-panel .audio-settings{padding:12px}.settings-panel .audio-settings label{font-size:13px}
 #game-ui{--hud-summary-top:136px}.siege-mode#game-ui{--hud-summary-top:190px}.frontlines-mode#game-ui{--hud-summary-top:212px}.larvae-mode#game-ui{--hud-summary-top:170px}.alloutwar-mode#game-ui{--hud-summary-top:205px}
 .battle-header{top:10px;left:12px;right:64px;width:auto;min-width:0;transform:none;padding:6px 8px;gap:6px}.battle-header b{font-size:25px}.timer{min-width:98px}.timer>span{font-size:24px}.timer small{font-size:7px}#battle-map{font-size:6px}
 .menu-button{top:12px;right:12px;width:44px;height:44px}
 #game-ui .personal-points-card{top:var(--hud-summary-top);left:12px;width:144px;padding:8px 10px}.personal-points-card>span{font-size:8px}.personal-points-card>b{font-size:27px;margin:3px 0}.deployment-balance{font-size:8px}.promotion-status{font-size:8px}
 #game-ui .minimap-wrap{top:var(--hud-summary-top);right:12px;width:112px;padding:6px}.minimap-wrap canvas{width:98px;height:65px}.minimap-wrap>strong{font-size:7px;line-height:1.3}
 #game-ui .roster-button{top:calc(var(--hud-summary-top) + 105px);left:12px;right:auto;width:74px;height:44px;font-size:9px}
 #game-ui .war-feed{display:none}#game-ui .reward-feed{top:calc(var(--hud-summary-top) + 110px);left:92px;width:110px;max-height:42px}.reward-toast{padding:4px 6px}.reward-toast>b{font-size:18px}.reward-toast>span,.reward-toast:not(:last-child){display:none}
 #game-ui .scout-detection{top:calc(var(--hud-summary-top) + 100px);right:12px;max-width:118px;font-size:8px}
 #game-ui .player-status{bottom:247px;width:222px;padding:10px 12px}.health{font-size:10px;margin:5px 0}.health-bar{width:92px;height:7px}.class-label,.food-mode .class-label{font-size:10px}.cargo-status b{font-size:9px}.cargo-status small{font-size:8px}
 #game-ui .ability-help{bottom:398px;font-size:10px}#game-ui .siege-context{bottom:397px;font-size:9px}.ability-button>b{font-size:9px}.ability-button>small{font-size:9px}
 .siege-worksites b{font-size:8px}.siege-worksites strong{font-size:9px}.siege-worksites small{font-size:7px}.siege-status #siege-rally{font-size:8px}.siege-scoreline{font-size:9px}
 #game-ui.respawning .respawn{top:66px;bottom:12px;max-height:calc(100dvh - 78px);padding:14px}.respawn>small{font-size:11px}.respawn button small{font-size:8px}
}
/* Foundation 0.22.1: compact phone battlefield, including short landscape viewports. */
html,body{height:100dvh}#world{position:fixed;inset:0;height:100dvh}.minimap-wrap canvas{pointer-events:auto;cursor:pointer;touch-action:manipulation}
.tactical-map{position:fixed;inset:0;z-index:90;display:flex;align-items:center;justify-content:center;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#0b191ce8;touch-action:none}.tactical-map>section{width:min(960px,100%);max-height:100%;padding:14px;background:#152a27;border:1px solid #849e86;border-radius:12px;overflow:auto}.tactical-map header{display:flex;align-items:center;justify-content:space-between;gap:12px}.tactical-map h2{font-size:16px;letter-spacing:2px;margin:0}.tactical-map button{width:48px;height:44px;font-size:27px;border-radius:7px;background:#354e41}.tactical-map canvas{display:block;width:100%;height:min(65dvh,62vw);object-fit:contain;margin:8px 0}.tactical-map p{font-size:11px;color:#c5d4c1;text-align:center;margin:8px 0 0}
@media(max-width:600px),(max-height:600px) and (max-width:1000px){
 #game-ui{--phone-bottom:env(safe-area-inset-bottom,0px);--phone-top:env(safe-area-inset-top,0px);height:100dvh}
 #game-ui .battle-header{top:calc(6px + var(--phone-top));left:60px;right:60px;min-width:0;width:auto;height:43px;padding:3px 6px;transform:none;gap:4px;border-radius:8px;backdrop-filter:none}
 .battle-header b{font-size:22px;margin:0}.colony-left,.colony-right{gap:2px}.colony-left>span,.colony-right>span,.battle-header .dot,#battle-map{display:none}.timer{min-width:72px}.timer>span{font-size:21px;line-height:1}.timer small{font-size:6px;letter-spacing:0;max-width:145px;white-space:nowrap}
 #game-ui .menu-button{top:calc(6px + var(--phone-top));right:8px;left:auto;width:44px;height:43px;padding:0;font-size:9px}
 #game-ui .roster-button{top:calc(6px + var(--phone-top));left:8px;right:auto;width:44px;min-width:0;height:43px;font-size:8px;padding:0}#game-ui .roster-button small{display:none}
 #game-ui .personal-points-card,#game-ui .war-feed,#game-ui .supply-totals{display:none}
 #game-ui .minimap-wrap{top:calc(57px + var(--phone-top));right:8px;left:auto;bottom:auto;width:84px;padding:3px;border-radius:6px;background:#172b28b8;backdrop-filter:none}#game-ui .minimap-wrap>strong{display:none}#game-ui .minimap-wrap canvas{display:block;width:76px;height:51px}
 #game-ui .objectives{top:calc(57px + var(--phone-top));left:8px;right:100px;width:auto;transform:none;gap:4px}.objective.food-source{min-width:0;min-height:26px;padding:3px 4px;flex:1;gap:3px}.food-source b{width:16px;height:16px;font-size:9px;flex:none}.food-source small{min-width:0;font-size:6px}.food-source strong{font-size:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.food-source em{display:none}
 #game-ui .hill-status,#game-ui .larvae-status,#game-ui .alloutwar-status,#game-ui .siege-status{top:calc(57px + var(--phone-top));left:8px;right:100px;transform:none;width:auto;max-width:none;padding:5px 6px;border-radius:6px;font-size:8px;background:#162b23d9;backdrop-filter:none}
 #game-ui.frontlines-mode .hill-status{top:calc(88px + var(--phone-top))}#game-ui.alloutwar-mode .alloutwar-status{top:calc(88px + var(--phone-top))}
 .hill-status>small,.hill-status>div:nth-child(2),.larvae-status>small,.alloutwar-status>small,.alloutwar-status .war-queue,.siege-status>small,.siege-worksites small{display:none}.hill-status>div{font-size:7px}.hill-status strong{font-size:6px}.larvae-status>div,.alloutwar-status>div{font-size:8px;padding:2px}.siege-scoreline{font-size:8px;margin-bottom:3px}.siege-worksites{gap:3px}.siege-worksites>div{padding:3px}.siege-worksites b,.siege-worksites strong{font-size:7px}
 #game-ui .player-status,#game-ui.food-mode .player-status{left:50%;right:auto;transform:translateX(-50%);bottom:calc(8px + var(--phone-bottom));width:126px;padding:5px 7px;border-radius:7px;background:#12241ed9;backdrop-filter:none;pointer-events:none}.class-label,.food-mode .class-label{font-size:7px;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 3px}.health{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:7px;margin:3px 0;line-height:1}.health>span:first-child{white-space:nowrap}.health-bar{width:42px;height:5px;flex:none}.player-status .cargo-status{display:none}
 #game-ui .touch-stick,#game-ui .attack-button{bottom:calc(16px + var(--phone-bottom));width:88px;height:88px}.touch-stick{left:max(14px,env(safe-area-inset-left))}.attack-button{right:max(14px,env(safe-area-inset-right))}.attack-button svg{width:41px;height:41px}.attack-button span{font-size:11px}#stick-knob{width:34px;height:34px;left:25px;top:25px}
 #game-ui .sprint-button,#game-ui .guard-button{bottom:calc(112px + var(--phone-bottom));width:68px;height:44px;min-height:44px;font-size:9px;border-radius:9px}.sprint-button{left:24px}.guard-button{right:24px}.sprint-button small,.guard-button small{font-size:6px;white-space:nowrap}
 #game-ui .ability-button{right:112px;bottom:calc(78px + var(--phone-bottom));width:52px;height:60px;min-height:44px;padding:3px;gap:2px}.ability-button>span{font-size:20px}.ability-button>b,.ability-button>small{font-size:7px}
 #game-ui .interact-button{left:112px;bottom:calc(80px + var(--phone-bottom));width:80px;height:54px;min-height:44px;padding:4px}.interact-button b{font-size:8px}.interact-button small{font-size:6px}
 #game-ui .ability-help,#game-ui .siege-context{bottom:calc(166px + var(--phone-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);padding:5px 8px;font-size:9px;line-height:1.25;pointer-events:none}#game-ui .reward-feed{top:calc(119px + var(--phone-top));left:8px;width:90px;max-height:30px}.reward-toast{padding:3px 5px}.reward-toast>b{font-size:15px}.reward-toast>span,.reward-toast:not(:last-child){display:none}#game-ui .scout-detection{top:calc(116px + var(--phone-top));right:8px;max-width:90px;font-size:7px}#game-ui .combat-feedback{top:calc(135px + var(--phone-top));font-size:8px}#game-ui .transit-status{top:calc(150px + var(--phone-top));font-size:9px}
 #game-ui .builder-palette{left:50%;right:auto;bottom:calc(172px + var(--phone-bottom));transform:translateX(-50%);width:min(330px,calc(100vw - 20px));padding:7px;border-radius:9px}.builder-palette header{height:24px;font-size:10px}.builder-palette header span{font-size:9px}.builder-palette header button{width:32px;height:28px}.builder-palette p,.builder-choices button>span{display:none}.builder-choices{gap:5px;margin-top:5px}.builder-choices button{min-height:66px;padding:4px 2px}.builder-choices canvas{width:25px;height:25px}.builder-choices b{font-size:9px}.builder-choices small{font-size:7px}.builder-palette.placing{opacity:0;pointer-events:none}
 #game-ui .roster-panel{inset:calc(8px + var(--phone-top)) 8px calc(8px + var(--phone-bottom));width:auto;max-width:none;max-height:none;transform:none;padding:12px;overflow:auto}#game-ui.respawning .respawn{top:calc(56px + var(--phone-top));max-height:calc(100dvh - 68px - var(--phone-top) - var(--phone-bottom));bottom:auto}.tactical-map>section{padding:8px}.tactical-map h2{font-size:13px}
}
@media(max-height:600px) and (min-width:601px) and (max-width:1000px){
 #game-ui .battle-header{left:calc(50% - 165px);right:auto;width:330px}#game-ui .roster-button{left:60px}#game-ui .menu-button{left:8px;right:auto}#game-ui .minimap-wrap{top:8px;right:8px}
 #game-ui .objectives,#game-ui .hill-status,#game-ui .larvae-status,#game-ui .alloutwar-status,#game-ui .siege-status{left:calc(50% - 165px);right:auto;width:330px}#game-ui .reward-feed{top:58px;left:8px}#game-ui .scout-detection{top:72px}
 #game-ui .player-status{bottom:calc(8px + var(--phone-bottom));width:170px}.health-bar{width:70px}#game-ui .ability-help,#game-ui .siege-context{bottom:calc(78px + var(--phone-bottom));max-width:340px}#game-ui .builder-palette{bottom:calc(95px + var(--phone-bottom));width:300px}#game-ui .ability-button{right:112px;bottom:calc(26px + var(--phone-bottom))}#game-ui .interact-button{left:112px;bottom:calc(30px + var(--phone-bottom))}
}
@media(max-width:600px),(max-height:600px) and (max-width:1000px){
 .builder-palette header{height:44px}.builder-palette header button{width:44px;height:44px;min-width:44px;min-height:44px}.health{font-size:8px}.class-label,.food-mode .class-label{font-size:8px}.player-status .cargo-status.carrying{display:flex;position:absolute;left:0;bottom:100%;width:100%;padding:4px;margin:0 0 3px;background:#18352be8;border-radius:5px}.player-status .cargo-status.carrying b{display:block;max-width:90px;font-size:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-status .cargo-status.carrying small{display:none}
}

/* Keep the compact tool picker close control readable on either colony theme. */
#game-ui .builder-palette header button{background:#284139;color:#f1dfad;border:1px solid #91aa9180;border-radius:6px}

/* Optional touch comparison keeps the same reachable action targets. */
.touch-control-settings{margin:16px 0;padding:16px;border:1px solid #73856b;border-radius:8px;background:#172722}.touch-control-settings label{display:block;margin:10px 0 6px;font-size:13px}.touch-control-settings select{width:100%;min-height:44px;padding:8px;border:1px solid #97a47b;border-radius:6px;background:#263d31;color:#f2e8cb;font:inherit}.touch-control-settings small{display:block;font-size:11px;line-height:1.5;color:#bfccb6}.streamlined-controls #stick.sprint-zone{outline:3px solid #d2c189;outline-offset:-5px}.streamlined-controls #guard[aria-pressed=true]{box-shadow:0 0 0 3px #e2ce87;background:#52603a}

/* No-dodge comparison: authority stamina, no new combat control. */
.auto-sprint-controls #sprint[hidden]{display:none!important}.movement-stamina{position:absolute;inset:-5px;pointer-events:none;color:#b9caa0}.movement-stamina svg{display:block;width:100%;height:100%;transform:rotate(-90deg);overflow:visible}.movement-stamina circle{fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round}.movement-stamina .stamina-track{stroke:#c4ceb226}.movement-stamina.exhausted{color:#d6aa76}.movement-stamina small{position:absolute;bottom:7px;left:0;width:100%;text-align:center;font-size:9px;font-weight:700;letter-spacing:1px;color:#e5e8d3;text-shadow:0 1px 3px #10251d}.auto-sprint-controls #stick.sprint-zone{outline:none}
.alpha-entry{margin:1rem 0 1.25rem}
.alpha-entry p{margin:.5rem 0 0;font-size:.8rem;line-height:1.45}
.alpha-entry [role=status]{color:#f2dca2}

/* Match the battle controls to the active input device. */
.keyboard-controls,.keyboard-ability-key,.ability-touch-hint{display:none}
body[data-battle-controls="keyboard"] #game-ui :is(#stick,#attack,#guard,#sprint){display:none}
body[data-battle-controls="keyboard"] #game-ui .keyboard-controls{
 position:absolute;left:16px;bottom:16px;display:flex;flex-wrap:wrap;gap:5px 10px;
 max-width:min(330px,38vw);padding:7px 9px;border-radius:7px;
 color:#eee8d2;background:#142a21df;font-size:11px;pointer-events:none
}
.keyboard-controls kbd,.keyboard-ability-key{padding:2px 4px;border:1px solid #ffffff45;border-radius:4px;font:inherit;color:#f3d58d}
body[data-battle-controls="keyboard"] #game-ui #ability{
 right:16px;bottom:16px;width:auto;height:auto;min-height:30px;
 flex-direction:row;gap:7px;padding:5px 8px;pointer-events:none
}
body[data-battle-controls="keyboard"] #game-ui #ability-icon{display:none}
body[data-battle-controls="keyboard"] #game-ui .keyboard-ability-key{display:inline}
body[data-battle-controls="keyboard"] #game-ui #interact{pointer-events:none}
@media(max-width:700px){
 body[data-battle-controls="keyboard"] #game-ui .keyboard-controls,
 body[data-battle-controls="keyboard"] #game-ui #ability{bottom:110px}
}
body[data-battle-controls="touch"] #game-ui{--thumb-row:112px;--thumb-right:max(14px,env(safe-area-inset-right))}
body[data-battle-controls="touch"] #game-ui #guard{
 right:var(--thumb-right);bottom:calc(var(--thumb-row) + var(--phone-bottom,0px));
 width:76px;height:54px;min-height:54px;font-size:11px
}
body[data-battle-controls="touch"] #game-ui #ability{
 right:calc(var(--thumb-right) + 84px);bottom:calc(var(--thumb-row) + var(--phone-bottom,0px));
 width:82px;height:54px;min-height:54px;padding:3px;gap:1px;border-radius:9px
}
body[data-battle-controls="touch"] #game-ui #ability-icon{font-size:15px;line-height:1}
body[data-battle-controls="touch"] #game-ui #ability :is(b,small),body[data-battle-controls="touch"] #game-ui #guard small{font-size:8px;line-height:1.05}
body[data-battle-controls="touch"] #game-ui .ability-touch-hint:not(:empty){display:block;color:#f1dca4;white-space:nowrap}
@media(min-width:701px) and (min-height:601px),(min-width:1001px){body[data-battle-controls="touch"] #game-ui{--thumb-row:165px}}

/* Battle HUD contrast and minimap key. */
#game-ui :is(.battle-header,.personal-points-card,.minimap-wrap,.player-status){
 background-color:#111f28ed;border-color:#c9dce24d;font-variant-numeric:tabular-nums
}
#game-ui .player-status.lake{background-color:#2b1c29ed;border-color:#e389895e}
#game-ui #score-a{color:#80cbff}
#game-ui #score-b{color:#ff847d}
#game-ui .deployment-balance{color:#e5d9ae}
#game-ui .minimap-wrap::after{content:"↗";position:absolute;right:6px;bottom:5px;padding:1px 2px;border-radius:3px;background:#111f28ed;color:#f4e6ba;font-size:11px;line-height:1;pointer-events:none}
#tactical-map-canvas{border:1px solid #adc2c55c;background:#0b1420}
.map-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px;color:#eee8d2;font-size:12px}
.map-legend span{display:inline-flex;align-items:center;gap:6px}
.map-legend span[hidden]{display:none}
.map-legend i{display:inline-block;width:9px;height:9px;background:#67c7ff;border-radius:50%}
.map-legend .map-enclave{background:#ff7067;border-radius:0;transform:rotate(45deg)}
.map-legend .map-termite{background:#f8d36d;border-radius:0;clip-path:polygon(50% 0,100% 100%,0 100%)}
.map-legend .map-you{background:none;border:1px solid #fffde5}
body[data-battle-controls="touch"] #game-ui #stick.sprint-zone{outline:2px solid #ead39b;outline-offset:2px}

.alpha-guides{display:grid;gap:7px;margin-top:12px}
.alpha-guide{background:#182a32;border:1px solid #95a9a74a;border-radius:9px;padding:0 12px 10px}
.alpha-guide:not([open]){padding-bottom:0}
.alpha-guide>summary,.alpha-class>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px}
.alpha-guide>summary{min-height:44px;font-size:14px;font-weight:700;color:#f2e6c8}
.alpha-guide>summary::-webkit-details-marker,.alpha-class>summary::-webkit-details-marker{display:none}
.alpha-guide>summary::after,.alpha-class>summary::after{content:"+";margin-left:auto;color:#e2c788;font-size:18px}
.alpha-guide[open]>summary::after,.alpha-class[open]>summary::after{content:"−"}
.alpha-guide>summary small,.alpha-class>summary span{font-size:11px;font-weight:500;color:#c4d0ce}
.alpha-guide p{color:#d9e2df}
.alpha-mode-guide{display:grid;gap:7px;margin:10px 0 0;padding:0;list-style:none}
.alpha-mode-guide li,.alpha-class{background:#111f28;border-radius:7px;padding:8px 10px}
.alpha-mode-guide h3,.alpha-class-guide h3{margin:0;color:#f1e5c7;font-size:13px}
.alpha-mode-guide h3 small{display:inline-block;margin-left:5px;color:#d9c395;font-weight:500;font-size:11px}
.alpha-class-guide h3{margin:12px 0 5px;color:#dfc99d}
.alpha-class{margin-top:5px;padding:0 10px}
.alpha-class[open]{padding-bottom:10px}
.alpha-class>summary{min-height:42px;font-size:13px;color:#f2e6c8}
.alpha-class .alpha-class-stats{color:#aaddf4;font-variant-numeric:tabular-nums}
.alpha-class .alpha-class-ability{color:#e5d4a9}

/* The round result sits above the fight during the playable finish. */
#game-ui #result.round-outro{
 inset:auto;top:clamp(100px,17vh,148px);left:50%;transform:translateX(-50%);
 display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:4px;
 width:max-content;max-width:calc(100% - 32px);box-sizing:border-box;
 padding:9px 15px;background:#142630ed;border:1px solid #b9bba46a;border-radius:9px;
 box-shadow:0 4px 18px #0e171a60;backdrop-filter:none;pointer-events:none;
}
#game-ui #result.round-outro>span,#game-ui #result.round-outro h2,
#game-ui #result.round-outro .result-faction-score,#game-ui #result.round-outro p,
#game-ui #result.round-outro .result-contribution{grid-column:1;grid-row:auto;margin:0;padding:0}
#game-ui #result.round-outro>span{font-size:10px;letter-spacing:.18em;color:#ebdba5}
#game-ui #result.round-outro h2{font-size:clamp(18px,3vw,28px);line-height:1.1;animation:round-reveal .45s ease-out both}
#game-ui #result.round-outro #result-copy,#game-ui #result.round-outro .result-faction-score{font-size:11px;line-height:1.3}
#game-ui #result.round-outro .result-contribution{display:flex;align-items:center;justify-content:center;gap:6px;border:0;background:none;width:auto}
#game-ui #result.round-outro .result-contribution>span{font-size:9px}
#game-ui #result.round-outro .result-total{margin:0}
#game-ui #result.round-outro .result-total>b{font-size:15px}
#game-ui #result.round-outro .result-total>small{font-size:8px}
#game-ui #result.round-outro .result-breakdown,#game-ui #result.round-outro #result-record,
#game-ui #result.round-outro #result-map,#game-ui #result.round-outro button{display:none}
#game-ui #result.round-outro[data-reveal=over] h2,
#game-ui #result.round-outro:not([data-reveal=score]) :is(.result-faction-score,.result-contribution,#result-copy){display:none}
#game-ui #result.round-outro[data-reveal=score] :is(.result-faction-score,.result-contribution,#result-copy){animation:round-reveal .45s ease-out both}
@keyframes round-reveal{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){#game-ui #result.round-outro *{animation:none!important}}

/* Alpha Service Card, shared by the lobby, roster and battle recap. */
.service-launch{
 display:grid;grid-template-columns:25px minmax(0,1fr) 16px;align-items:center;gap:10px;
 width:100%;min-height:52px;margin:8px 0;padding:7px 12px;text-align:left;
 color:#f1eddc;background:#1b2c32;border:1px solid #9da58e69;border-radius:8px;
}
.service-launch>span:first-child,.service-launch>span:last-child{color:#dcc688;font-size:20px}
.service-launch small,.service-player small{display:block;color:#c5c7b5;font-size:11px}
.service-roster{margin:8px 0;color:#e9e3cc}
.service-roster summary{min-height:38px;align-content:center;cursor:pointer}
.service-roster>div{display:grid;gap:5px;grid-template-columns:repeat(auto-fit,minmax(min(100%,138px),1fr))}
.service-player{
 min-width:0;min-height:44px;padding:5px 9px;text-align:left;background:#1a2c39;
 color:#f1eddc;border:1px solid #759bc3;border-radius:6px;overflow-wrap:anywhere;
}
.service-player[data-team="1"]{background:#32232a;border-color:#b86c75}
.service-dialog{
 box-sizing:border-box;width:min(500px,calc(100% - 24px));max-height:calc(100dvh - 24px);
 max-width:none;padding:0;color:#f1eddc;background:#162624;border:1px solid #aaa079;
 border-radius:12px;overflow:auto;overscroll-behavior:contain;box-shadow:0 18px 44px #0008;
}
.service-dialog::backdrop{background:#0d1418b8}
.service-sheet{padding:clamp(12px,3vw,20px)}
.service-sheet>header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}
.service-sheet>header small,.service-identity small{font-size:10px;letter-spacing:.13em;color:#e0cb93;font-weight:700}
.service-sheet>header h2{margin:1px 0 0;font:700 clamp(26px,6vw,34px)/1.05 'Barlow Condensed',sans-serif}
#close-service{
 flex:none;width:44px;height:44px;border-radius:8px;color:#f1eddc;background:#253734;
 border:1px solid #778277;font-size:24px;line-height:1;
}
.service-face{
 display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:88px;padding:12px;
 border-radius:8px;border:1px solid #857f65;background:#243430;
}
.service-vlc{background:repeating-linear-gradient(120deg,#ffffff06 0 1px,transparent 1px 15px),#21384e;border-color:#8aabcf}
.service-enclave{background:repeating-linear-gradient(30deg,#ffffff06 0 1px,transparent 1px 13px),#492c30;border:1px dashed #c48976}
.service-rank-mark,.service-medal-icon,.service-pins span{display:grid;place-items:center;color:#e2c680;background:#0c181a52;border:1px solid #d5bf7e68;border-radius:6px}
.service-rank-mark{flex:none;width:47px;height:51px}
.service-rank-mark svg{width:34px;height:34px}
.service-identity{flex:1;min-width:130px;overflow-wrap:anywhere}
.service-identity>*{display:block}
.service-identity strong{font:700 28px/1.05 'Barlow Condensed',sans-serif;margin:2px 0}
.service-identity span{font-size:13px}
.service-pins{display:flex;gap:4px}
.service-pins span{width:27px;height:27px}
.service-pins svg,.service-medal-icon svg{width:19px;height:19px}
.service-progress{margin:9px 0 14px;color:#d3d5c4;font-size:13px}
.service-progress p{margin:0 0 3px}
.service-progress progress{display:block;width:100%;height:9px;accent-color:#dfc179}
.service-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.service-options label{min-width:0;font-size:12px;color:#dfddc8}
.service-options select{
 display:block;width:100%;min-height:44px;margin-top:4px;padding:5px 7px;
 border:1px solid #73807a;border-radius:6px;color:#f1eddc;background:#253734;font-size:13px;
}
.service-editor fieldset{min-width:0;padding:0;border:0;margin:12px 0 8px}
.service-editor legend{padding:0;font-size:13px;color:#f1eddc;font-weight:700;margin-bottom:4px}
.service-medal-row{
 display:grid;grid-template-columns:30px minmax(0,1fr) 19px;align-items:center;gap:8px;
 min-height:51px;padding:5px 7px;margin-top:4px;border-radius:6px;background:#1f322f;
}
.service-medal-icon{width:28px;height:29px}
.service-medal-row b,.service-medal-row small{display:block;font-size:13px}
.service-medal-row small,.service-note,.service-medal-detail{font-size:12px;color:#c6cdbd}
.service-medal-row input{width:17px;height:17px;accent-color:#e2c680;margin:0}
.service-save{
 width:100%;min-height:44px;border:1px solid #9a824c;border-radius:6px;
 background:#d9be7f;color:#162624;font-weight:800;
}
.service-save:disabled{background:#32423a;color:#d0d3bd;border-color:#647062}
.service-note{margin:7px 0 0}
.service-report{padding:8px 10px;margin:0 0 12px;border-left:2px solid #dfc179;background:#253530;border-radius:4px}
.service-report h3{margin:0 0 2px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#e2c680}
.service-report strong,.service-report p{font-size:12px}
.service-report p{margin:4px 0 0;color:#d3d5c4}
.service-report .service-unlocks{color:#f0d38d}
:is(.service-launch,.service-player,.service-dialog button,.service-dialog select,.service-dialog input,.result-service):focus-visible{outline:2px solid #ebd397;outline-offset:2px}
#game-ui #result.round-outro[data-reveal=score] :is(#result-service,#result-scoreboard):not([hidden]){
 display:block;pointer-events:auto;min-height:36px;max-width:100%;padding:4px 10px;
 margin:2px 0 0;border:1px solid #b7a16a;border-radius:6px;background:#263a3a;color:#f4e4b5;font-size:11px;
}
#game-ui #result :is(#result-service,#result-scoreboard)[hidden]{display:none}
@media(max-width:390px){.service-options{grid-template-columns:minmax(0,1fr)}}

.service-preview-toolbar{display:flex;justify-content:flex-end;margin:-4px 0 8px}
.service-preview-toggle{
 min-height:44px;padding:4px 10px;color:#f1dd9f;background:#273734;
 border:1px solid #9b9473;border-radius:6px;font-size:13px;font-weight:700;
}
.service-preview-rank{grid-column:1/-1}
.service-rank-mark{align-content:center;gap:2px}
.service-rank-mark svg{width:30px;height:30px}
.service-rank-pips{display:flex;gap:2px}
.service-rank-pips i{width:4px;height:3px;border-radius:1px;background:#d9bd7952}
.service-rank-pips i.filled{background:#e2c680}

/* Rank treatment follows the equipped banner, or the colony on a field-issue card. */
.service-face[data-faction="vlc"]{--service-metal:#d9c088;--service-edge:#7b9fbb;--service-plate:#20394d}
.service-face[data-faction="enclave"]{--service-metal:#dcab82;--service-edge:#b97668;--service-plate:#4e3032}
.service-face[data-faction]{background-color:var(--service-plate);border-color:var(--service-edge)}
.service-face[data-rank="1"]{background-image:linear-gradient(100deg,#0002,transparent 60%)}
.service-face[data-rank="2"]{background-image:repeating-linear-gradient(135deg,#ffffff08 0 1px,transparent 1px 12px)}
.service-face[data-rank="3"]{box-shadow:inset 0 0 0 3px #0003;border-width:2px}
.service-face[data-rank="3"][data-faction="vlc"]{background-image:linear-gradient(105deg,#ffffff10 0 17%,transparent 17%)}
.service-face[data-rank="3"][data-faction="enclave"]{background-image:linear-gradient(110deg,#bd7e5b28 0 20%,transparent 20%)}
.service-face[data-rank="4"]{
 border-width:3px;box-shadow:inset 0 0 0 1px var(--service-metal);
 background-image:repeating-linear-gradient(135deg,#ffffff0a 0 1px,transparent 1px 7px);
}
.service-face[data-rank="4"][data-faction="vlc"]{border-style:double}
.service-face[data-rank="4"][data-faction="enclave"]{border-style:dashed}
.service-face[data-rank="5"]{
 border:2px solid var(--service-metal);box-shadow:inset 0 0 0 2px #181915,inset 0 0 0 3px var(--service-metal);
 background-image:repeating-linear-gradient(130deg,#ffffff10 0 1px,transparent 1px 9px),linear-gradient(95deg,#d9a65d26,transparent 58%,#d9a65d1c);
}
.service-face[data-rank="5"][data-faction="enclave"]{border-radius:13px 5px 12px 4px;background-image:repeating-linear-gradient(44deg,#f6c78314 0 1px,transparent 1px 8px),linear-gradient(120deg,#d9a65d35,transparent 62%)}
.service-rank-mark{position:relative;isolation:isolate;color:var(--service-metal);width:56px;height:72px;border-color:var(--service-edge)}
.service-face[data-faction="vlc"] .service-rank-mark{border-radius:3px 3px 9px 9px}
.service-face[data-faction="enclave"] .service-rank-mark{border-radius:13px 5px 12px 5px;border-style:dashed}
.service-rank-trim{position:absolute;inset:0;display:grid;place-items:center;z-index:-1;pointer-events:none}
.service-rank-mark .service-rank-trim svg{width:100%;height:100%;opacity:.85}
.service-face[data-rank="5"] .service-rank-trim svg{filter:drop-shadow(0 0 3px #f3c27588);opacity:1}
.service-rank-title{color:#ede0ba}
.service-identity .service-equipped-title{margin-top:3px;font-size:12px;color:#f0cb8f}
.service-medal-collection{margin:9px 0}
.service-pin-count{margin:0 0 5px;font-size:12px;color:#dcc894}
.service-medal-group{margin:4px 0}
.service-medal-group summary{
 min-height:44px;align-content:center;padding:0 10px;border-radius:6px;
 background:#243832;color:#f1eddc;cursor:pointer;font-size:13px;font-weight:700;
}
.service-medal-group .service-medal-row small:first-of-type{color:#e0c98e;font-weight:600}

/* Heraldry uses different silhouettes at the same small size. */
.faction .faction-device{display:grid;place-items:center;flex:0 0 clamp(28px,8vw,40px);height:42px}
.faction-device .faction-standard{display:block;width:100%;height:100%}
.faction[data-team="0"]:not(.selected){background:#263848}
.faction[data-team="1"]:not(.selected){background:#3e2b2e}
.faction-heraldry-caption b{color:#e8cb90}
.service-rank-mark>.faction-standard{width:42px;height:44px}
@media(max-width:375px){.faction{gap:5px}.faction .faction-device{height:34px}}

/* Compact player cards share the faction pennants across the HUD and score tables. */
.match-card{
 display:flex;align-items:center;gap:6px;width:100%;min-width:0;padding:2px 4px;
 background:none;color:#f1eddc;border:1px solid transparent;border-radius:5px;text-align:left;
}
button.match-card{min-height:38px;cursor:pointer}
button.match-card:hover,button.match-card:focus-visible{background:#ffffff10;border-color:#dbc987;outline:none}
.match-card-mark{display:block;flex:0 0 22px}
.match-card-mark svg{display:block;width:100%;height:25px}
.match-card-name{display:block;min-width:0}
.match-card-name strong,.match-card-name small{display:block;overflow-wrap:anywhere}
.match-card-name strong{font-size:12px;line-height:1.22}
.match-card-name small{color:#ead49e;font-size:10px;line-height:1.25;margin-top:2px}
.streak-card{
 position:absolute;z-index:8;left:50%;top:clamp(62px,10vh,95px);transform:translateX(-50%);
 width:min(222px,calc(100vw - 88px));padding:4px 8px;background:#16262fee;
 border:1px solid #c7a978;border-radius:8px;pointer-events:none;box-shadow:0 2px 8px #1119;
}
.streak-card[hidden]{display:none}
.streak-card-label{display:block;color:#eed28b;text-transform:uppercase;letter-spacing:.1em;font-size:10px;font-weight:800}
.streak-card .match-card{padding:1px 0}
.streak-card .match-card-name strong{font-size:13px}
.streak-card .match-card-name small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.streak-card .match-card-name{flex:1}
.scoreboard-teams{display:grid;gap:10px}
.scoreboard-team{min-width:0}
.scoreboard-team h3{margin:8px 0 2px;padding:4px 6px;border-left:3px solid #80b6df;font-size:13px}
.scoreboard-team[data-team="1"] h3{border-color:#df7880}
.scoreboard-table{border-collapse:collapse;table-layout:fixed;width:100%;font-variant-numeric:tabular-nums}
.scoreboard-table :is(th,td){padding:3px 4px;border-bottom:1px solid #b5bfac23;text-align:right;font-size:11px}
.scoreboard-table :is(th,td):first-child{text-align:left}
.scoreboard-table th:nth-child(2){width:18%}
.scoreboard-table th:nth-child(n+3){width:14%}
.scoreboard-table tr.you{background:#a2bfb21a}
.scoreboard-link,#close-scoreboard{min-height:40px;color:#f0dfad;background:#283d39;border:1px solid #a7a88a70;border-radius:7px}
.scoreboard-link{padding:6px 11px;margin:7px 0;font-size:12px;font-weight:700}
#scoreboard-lobby{width:100%;text-align:left}
#close-scoreboard{width:44px;font-size:22px;flex:none}
.scoreboard-dialog{width:min(820px,calc(100% - 24px))}
#scoreboard-result{font-size:13px;color:#d7d8c0;margin:0 0 8px}
.roster-classes{margin-top:12px}
.roster-classes summary{cursor:pointer;min-height:36px;align-content:center;color:#ded0a3}
.result-actions{display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap}
.result-actions:has(> button[hidden]+button[hidden]){display:none}
@media(min-width:680px){.scoreboard-dialog .scoreboard-teams{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.streak-card{top:calc(54px + var(--phone-top,0px));width:min(194px,calc(100vw - 100px))}}

.playtest-navigation{display:flex;gap:7px;margin:12px 0 4px}
.playtest-navigation[hidden]{display:none}
.playtest-navigation a{
 flex:1;display:grid;place-items:center;min-height:44px;padding:5px 8px;
 color:#ebead5;background:#243532;border:1px solid #9dafa76b;border-radius:7px;
 font-size:12px;font-weight:700;text-decoration:none;text-align:center;
}
.playtest-navigation a[aria-current="page"]{background:#37483c;border-color:#cab980;color:#f2deac}
.playtest-navigation a:focus-visible,.sandbox-entry a:focus-visible{outline:2px solid #f3d88e;outline-offset:2px}
.sandbox-entry{margin:11px 0;color:#dfdfc9;font-size:13px}
.sandbox-entry p{margin:4px 0 6px;color:#c5c9ba;line-height:1.45}
.sandbox-entry a{color:#ead196;text-underline-offset:3px}
.siege-mobile-summary{display:none}
.match-countdown{position:absolute;z-index:8;top:28%;left:50%;transform:translateX(-50%);width:min(340px,calc(100% - 32px));padding:16px 18px;text-align:center;border:1px solid #c1b58b80;border-radius:12px;background:#14272ce8;pointer-events:none;color:#f3e6bb}
.match-countdown>span{font-size:12px;font-weight:700;letter-spacing:1.5px}
.match-countdown>strong{display:block;font-size:64px;line-height:1.2;color:#f7e5a9;font-variant-numeric:tabular-nums}
.match-countdown>p{margin:6px 0 0;font-size:13px;line-height:1.4}
.starting :is(#stick,#attack,#guard,#ability,#sprint,#interact){pointer-events:none;opacity:.45}
@media(max-width:600px),(max-height:600px) and (max-width:1000px){
 #game-ui .siege-worksites,#game-ui .siege-context{display:none}
 #game-ui .siege-mobile-summary{display:block;font-size:9px;line-height:1.4;white-space:nowrap;color:#e1d7b6}
 #game-ui .siege-status{padding:4px 6px}
 #game-ui .siege-scoreline{margin:0 0 2px;font-size:9px;justify-content:flex-end}
 #game-ui .siege-scoreline>b{display:none}
 #game-ui .match-countdown{top:24%;width:230px;padding:12px 14px}
 #game-ui .match-countdown>span{font-size:10px;letter-spacing:1px}
 #game-ui .match-countdown>strong{font-size:48px}
 #game-ui .match-countdown>p{font-size:12px}
 #device-local-option{margin-bottom:10px}
}
/* Friends playtest: a field desk over the native battlefield, with five clear destinations. */
.friends-playtest{--coast:#83aecd;--lake:#d68c89;--cream:#f2e9d4;font-family:'DM Sans',Segoe UI,sans-serif}
.friends-playtest .menu-shade{background:linear-gradient(90deg,#101b20f7 0%,#132126ed 54%,#13212666 100%)}
.friends-playtest .briefing{width:min(930px,100%);max-width:none;padding:32px 48px 48px;margin:0;min-height:100%;background:linear-gradient(135deg,#17262bed,#162422e6);border-right:1px solid #bba77b40;box-shadow:24px 0 80px #0005}
.friends-playtest .eyebrow{font-size:17px;letter-spacing:3px}.friends-playtest .build{font-size:10px;letter-spacing:.4px}
.friends-header{padding:27px 0 22px;border-bottom:1px solid #bba77b40}.friends-kicker{font-size:10px;letter-spacing:2.6px;color:#bfad7d}.friends-header h1{font-family:'Barlow Condensed',Impact,sans-serif;font-size:66px;line-height:1;margin:13px 0 15px}.friends-header h1 em{color:#d8c48e}.friends-header p{font-size:13px;color:#bdc7c5;margin:0}
.friends-nav{position:sticky;top:0;z-index:4;display:flex;gap:5px;background:#162329f5;padding:13px 0;margin:0 0 22px;border-bottom:1px solid #bba77b40;backdrop-filter:blur(12px)}
.friends-nav button,.friends-nav .settings-link{margin:0;flex:1;font-size:12px;min-height:44px;padding:10px 7px;background:transparent;border:1px solid transparent;border-radius:4px;color:#c0c9c5;text-align:center}.friends-nav button.selected{background:#bfa976;color:#17242a;font-weight:800;border-color:#d4c399}.friends-nav button:hover:not(.selected){background:#314448}
.friends-panel h2{font-family:'Barlow Condensed',Impact,sans-serif;font-size:30px;letter-spacing:.2px;margin:0 0 9px}.friends-lead{font-size:13px;line-height:1.65;color:#b8c6c6;max-width:680px;margin:0 0 22px}.friends-recommendation{border:1px solid #baa57466;border-left:3px solid #cbb57b;background:#9a854314;padding:12px 15px;display:grid;grid-template-columns:1fr 1.5fr;gap:7px;font-size:12px;margin:0 0 22px}.friends-recommendation b{font-size:10px;color:#e4d4aa;letter-spacing:1.2px}.friends-recommendation small{grid-column:1/-1;color:#c0c8bc;font-size:11px}
.friends-setup{display:grid;grid-template-columns:1fr 1fr;gap:23px}.friends-setup .callsign-field{margin:0 0 15px}.friends-playtest input,.friends-playtest select{font:inherit}.friends-setup .factions{display:grid;grid-template-columns:1fr}.friends-setup .faction{min-height:68px;background:#1a2f3b;border-color:#6686a04d;border-radius:4px;padding:12px}.friends-setup .faction[data-team='1']{background:#37252a;border-color:#ba7c7c4d}.friends-setup .faction.selected{border-color:#a5c9e7;background:#274757}.friends-setup .faction[data-team='1'].selected{border-color:#e0b1a0;background:#51333a}.friends-setup .faction small{color:#bcc9cf;font-size:10px}.friends-setup .faction-device{width:49px;flex-basis:49px}.friends-label{display:block;font-size:10px;letter-spacing:1.4px;color:#bdc9c6;margin:0 0 9px}.friends-battle select{display:block;width:100%;min-height:48px;border:1px solid #85988a66;background:#101d22;color:#f2e9d4;border-radius:4px;padding:10px;font-size:12px}.friends-battle p{font-size:12px;color:#c9d2c8;line-height:1.65;margin:12px 0}.friends-battle .friends-performance{font-size:11px;color:#ddc591;padding:9px 11px;border-left:2px solid #b79c63;background:#c6ac5d09}
.friends-role-picker{margin:22px 0 17px;border:1px solid #a7bbaa40;background:#192d30;border-radius:5px;overflow:hidden}.friends-role-picker>summary{list-style:none;display:grid;grid-template-columns:98px 1fr auto;grid-template-rows:1fr 1fr;column-gap:12px;align-items:end;padding:8px 15px 8px 7px;font-size:10px;color:#b8c5c0;cursor:pointer;min-height:89px}.friends-role-picker>summary canvas{grid-column:1;grid-row:1/3;width:98px;height:70px;align-self:center}.friends-role-picker>summary strong{grid-column:2;grid-row:2;align-self:start;font-size:20px;color:#f1e9d1}.friends-role-picker>summary span{grid-column:3;grid-row:1/3;align-self:center;font-size:11px;color:#e0ce9c}.friends-role-picker[open]>summary{border-bottom:1px solid #a7bbaa40}.friends-role-picker>.roles,.friends-role-picker>.siege-deployment{margin:12px}.friends-role-picker .roles{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.friends-role-picker .roles button{background:#14262a;padding:10px;border-radius:4px}.friends-role-picker .roles button.selected{border-color:#ceb77f;background:#3a4439}.friends-role-picker .roles small{font-size:10px}.friends-role-picker .siege-deployment{font-size:12px}.friends-role-picker .siege-roles{grid-template-columns:repeat(2,minmax(0,1fr))}
.friends-deploy-row .deploy{min-height:54px;font-size:15px;border-radius:4px;background:#d0ba85;color:#18262a;box-shadow:0 3px 0 #091318}.friends-deploy-row .deploy:hover{background:#e4d0a0}.friends-progress-note{font-size:11px;line-height:1.7;color:#b5c5bd;margin:12px 0 19px}.friends-options{border-top:1px solid #b8ab7b40;font-size:12px;padding:14px 0}.friends-options>summary{cursor:pointer;color:#d7d4bf;min-height:35px}.friends-options>summary span{float:right;font-size:10px;color:#adbbb6}.friends-options .population-setting{background:#15282b;border:1px solid #73857d50;padding:12px;margin:10px 0;border-radius:4px}.friends-options .population-setting>span{font-size:10px}.friends-options .population-setting select{font-size:12px;min-height:44px}.friends-nest-note{font-size:11px;color:#aebdb5}.friends-playtest .menu-map-note{right:24px;bottom:25px;max-width:calc(100vw - 990px);color:#e9e0c8}
.friends-panel>.alpha-guide{border:0;padding:0;background:none;margin:0}.friends-panel>.alpha-guide>summary{display:none}.friends-panel>.alpha-guide>p{font-size:12px;line-height:1.65;color:#c2ccc4}.friends-panel .alpha-class-guide{display:grid;grid-template-columns:1fr 1fr;gap:10px}.friends-panel .alpha-class-guide>h3{grid-column:1/-1;font-size:11px;text-transform:uppercase;letter-spacing:1.3px;margin:16px 0 5px;color:#d8c38b}.friends-panel .alpha-class{background:#14252a;border:1px solid #b9c6bb30;border-radius:5px;align-self:start;margin:0;padding:13px}.friends-panel .alpha-class>summary{min-height:43px;cursor:pointer}.friends-panel .alpha-class summary strong{font-size:16px}.friends-panel .alpha-class summary span{font-size:11px;line-height:1.5}.friends-panel .alpha-class p{font-size:12px;line-height:1.75}.friends-panel .alpha-class-stats{color:#d4c59d}.friends-panel .alpha-mode-guide{padding-left:20px;display:block}.friends-panel .alpha-mode-guide li{margin:0 0 20px;font-size:12px;line-height:1.75}.friends-panel .alpha-mode-guide h3{font-size:17px}.friends-panel .lore{font-size:12px;line-height:1.8;background:#14252a;margin-top:22px;padding:15px}.friends-panel .lore h3{font-size:14px}
.friends-mode-guide{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:13px}.friends-mode-guide>li{display:flex;flex-direction:column;border:1px solid #aabcaf38;background:#14252a;border-radius:5px;padding:17px}.friends-mode-heading h3{font-size:20px;font-family:'Barlow Condensed',Impact,sans-serif;margin:0 0 7px;color:#f0e4bf}.friends-mode-heading span{font-size:10px;letter-spacing:1px;color:#a9c3c7}.friends-mode-guide p{font-size:12px;line-height:1.75;color:#c3cec6}.friends-mode-guide small{font-size:10px;line-height:1.7;color:#c8b785;display:block;margin-bottom:14px}.friends-mode-guide button{margin-top:auto;min-height:44px;border:1px solid #b8a36d80;background:#baa46c1a;color:#e8d6a7;border-radius:3px;font-size:12px;text-align:left;padding:10px}.friends-mode-guide button:hover{background:#baa46c33}
.friends-playtest #developer-tools,.friends-playtest .friends-legacy{display:none!important}.friends-playtest .settings-panel{border-color:#a3926555}.friends-playtest #friends-how li{padding:14px;background:#14252a;border:1px solid #c5c5a520;border-radius:4px}
@media(min-width:1500px){.friends-playtest .briefing{margin-left:5vw;background:#142228ed}.friends-playtest .menu-shade{background:linear-gradient(90deg,#0e1c21b0,#102029aa 60%,#10202911)}}
@media(max-width:1200px){.friends-playtest .menu-map-note{display:none}}
@media(max-width:700px){.friends-playtest .briefing{padding:20px 20px 30px;margin:0;width:100%;border:0}.friends-playtest .menu-shade{background:#142329ed}.friends-header{padding:22px 0 18px}.friends-header h1{font-size:53px}.friends-header p{font-size:12px}.friends-playtest .eyebrow{font-size:14px;letter-spacing:2px}.friends-playtest .build{font-size:9px;max-width:145px;text-align:center}.friends-nav{gap:2px;margin-bottom:21px;padding:10px 0}.friends-nav button,.friends-nav .settings-link{font-size:11px;padding:8px 4px;min-height:46px;white-space:normal}.friends-panel h2{font-size:28px}.friends-lead{font-size:12px}.friends-recommendation{grid-template-columns:1fr;gap:7px}.friends-recommendation small{grid-column:auto}.friends-setup{grid-template-columns:1fr;gap:21px}.friends-setup .factions{grid-template-columns:1fr 1fr;gap:8px}.friends-setup .faction{padding:10px 8px;gap:6px;min-height:91px;flex-wrap:wrap;font-size:10px}.friends-setup .faction-device{width:34px;flex-basis:34px}.friends-setup .faction small{font-size:9px;line-height:1.4}.friends-setup .faction .check{display:none}.friends-panel .alpha-class-guide,.friends-mode-guide{grid-template-columns:1fr}.friends-role-picker .roles{grid-template-columns:repeat(2,minmax(0,1fr))}.friends-role-picker>summary{grid-template-columns:83px 1fr auto;column-gap:8px}.friends-role-picker>summary canvas{width:83px;height:60px}.friends-role-picker>summary span{font-size:10px}.friends-role-picker>summary strong{font-size:18px}.friends-battle p{font-size:12px}.friends-mode-guide p{font-size:13px}.friends-panel .alpha-class p{font-size:13px}.friends-panel .alpha-class summary strong{font-size:17px}}
@media(prefers-reduced-motion:reduce){.friends-playtest .deploy{transition:none;transform:none}}
/* Keep the first deployment within reach; deeper rules live in the guides. */
.friends-playtest .briefing{padding-top:22px;padding-bottom:28px}
.friends-header{padding:13px 0 14px}.friends-header h1{font-size:46px;margin:7px 0 8px}.friends-header h1 br{display:none}.friends-header h1 em:before{content:' '}.friends-header p{font-size:12px}.friends-kicker{font-size:9px;letter-spacing:2px}
.friends-nav{margin-bottom:15px;padding:10px 0}.friends-panel h2{font-size:27px;margin-bottom:6px}.friends-lead{margin-bottom:14px;font-size:12px;line-height:1.5}
.friends-recommendation{margin-bottom:17px;padding:10px 12px;gap:5px}.friends-recommendation small{font-size:10px}
.friends-setup .factions{grid-template-columns:1fr 1fr}.friends-setup .faction{min-height:87px;gap:7px;padding:9px;font-size:10px}.friends-setup .faction-device{width:35px;flex-basis:35px}.friends-setup .faction small{font-size:9px;line-height:1.4}.friends-setup .faction .check{display:none}.friends-setup .callsign-field{margin-bottom:12px}
.friends-role-picker{margin:17px 0 13px}.friends-role-picker>summary{min-height:78px;padding-top:4px;padding-bottom:4px}.friends-role-picker>summary canvas{width:91px;height:65px}
@media(max-width:700px){.friends-playtest .briefing{padding-top:17px}.friends-header{padding:15px 0 13px}.friends-header h1{font-size:43px;line-height:1;margin:8px 0}.friends-header h1 br{display:block}.friends-header h1 em:before{content:none}.friends-header p{display:none}.friends-kicker{font-size:8px;letter-spacing:1.7px}.friends-nav{margin-bottom:16px}.friends-recommendation{padding:10px 12px;margin-bottom:17px}.friends-setup{gap:16px}.friends-setup .faction{min-height:78px}.friends-role-picker>summary canvas{width:83px;height:60px}.friends-panel h2{font-size:26px}}
/* A framed view of the native world, with the colony histories beside the field desk. */
.friends-playtest .briefing{display:grid;grid-template-columns:minmax(0,740px) minmax(300px,380px);column-gap:30px;align-content:start;width:min(1240px,100%);margin:0 auto;padding:24px 30px 32px;border-left:1px solid #bba77b30}
.friends-playtest .briefing>.eyebrow,.friends-playtest .briefing>.friends-header,.friends-playtest .briefing>.friends-nav,.friends-playtest .briefing>.friends-panel{grid-column:1;min-width:0}
.friends-world{grid-column:2;grid-row:1/8;min-width:0;align-self:start}.friends-world-frame{margin:0;border:1px solid #b8a46d88;background:#101b1d;box-shadow:0 8px 25px #0004;overflow:hidden;border-radius:5px}.friends-world-frame canvas{display:block;width:100%;height:auto;aspect-ratio:12/5;object-fit:cover}.friends-world-frame figcaption{display:flex;align-items:center;justify-content:space-between;padding:12px 13px;border-top:1px solid #b7a57166;color:#e2d2a6;font-size:10px;letter-spacing:1.7px}.friends-world-frame figcaption small{font-size:10px;letter-spacing:0;color:#b8c7c0}
.friends-world .lore{background:#13232a;margin:14px 0 0;border:1px solid #b8a46d40;border-radius:5px;padding:16px;color:#becbc4}.friends-world .lore h2{font-family:'Barlow Condensed',Impact,sans-serif;font-size:25px;line-height:1.15;margin:0 0 12px;color:#eddfba}.friends-world .friends-story-intro{font-size:12px;line-height:1.8;margin:0 0 14px}.friends-history{border-top:1px solid #b8a46d40;padding-top:12px}.friends-history>summary{font-size:12px;line-height:1.6;color:#dfcca2;min-height:43px;cursor:pointer}.friends-history>summary small{display:block;font-size:10px;color:#b6c3bc}.friends-history .fiction-label{font-size:10px;line-height:1.6;color:#bca984;margin:11px 0 16px}.friends-history-colonies{display:grid;gap:20px}.friends-history article h3{font-size:14px;letter-spacing:1px;color:#b8d1e3;margin:0 0 12px;min-height:46px}.friends-history article:last-child h3{color:#e2b0a8}.friends-history article h3 small{display:block;font-size:10px;letter-spacing:0;font-weight:400;color:#c2c9c2;margin-top:4px}.friends-history article h3>span{width:48px;height:39px;float:left;margin:0 10px 4px 0}.friends-history article h3 svg{width:100%;height:100%}.friends-history article p,.friends-history .friends-story-ending{font-size:12px;line-height:1.85;margin:10px 0}.friends-history .friends-story-ending{border-top:1px solid #b8a46d40;padding-top:14px;color:#d1c8aa}
.friends-panel .alpha-class>summary{display:grid;grid-template-columns:100px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;align-items:end;list-style:none;min-height:72px}.friends-panel .alpha-class>summary .guide-class-model{grid-column:1;grid-row:1/3;width:100px;height:72px;align-self:center;display:block}.friends-panel .alpha-class>summary strong{grid-column:2;grid-row:1;font-size:16px}.friends-panel .alpha-class>summary span{grid-column:2;grid-row:2;align-self:start;padding-top:4px;font-size:10px;line-height:1.45}.friends-playtest .menu-map-note{display:none}.friends-options{display:none!important}
@media(min-width:1500px){.friends-playtest .briefing{margin:0 auto;width:1240px}}
@media(max-width:1000px){.friends-playtest .briefing{display:block;width:min(760px,100%);margin:0 auto;padding:20px 25px 28px}.friends-world{margin:13px 0 18px}.friends-world-frame canvas{max-height:210px;width:100%;object-fit:cover}.friends-world .lore{padding:13px 15px;margin-top:10px}.friends-world .friends-story-intro{margin-bottom:11px;font-size:12px;line-height:1.65}.friends-world .lore h2{font-size:23px;margin-bottom:8px}.friends-history-colonies{grid-template-columns:1fr 1fr;gap:24px}.friends-history>summary small{display:inline;margin-left:10px}.friends-history>summary{min-height:30px}.friends-nav{top:0}}
@media(max-width:700px){.friends-playtest .briefing{padding:16px 18px 28px}.friends-world-frame canvas{max-height:155px}.friends-world-frame figcaption{padding:9px 11px;font-size:9px}.friends-world-frame figcaption small{font-size:9px}.friends-world .friends-story-intro{font-size:11px;line-height:1.7}.friends-world .lore h2{font-size:23px}.friends-history-colonies{grid-template-columns:1fr;gap:15px}.friends-history article p,.friends-history .friends-story-ending{font-size:12px;line-height:1.8}.friends-history>summary{font-size:11px}.friends-history>summary small{display:block;margin-left:0}.friends-panel .alpha-class>summary{grid-template-columns:112px minmax(0,1fr);min-height:80px}.friends-panel .alpha-class>summary .guide-class-model{width:112px;height:80px}.friends-header h1{font-size:39px}.friends-header{padding:10px 0}.friends-world{margin-top:7px}}
.friends-panel .alpha-class>summary{position:relative;padding-right:20px}.friends-panel .alpha-class>summary::after{position:absolute;right:0;top:50%;transform:translateY(-50%);margin:0;line-height:1}
.friends-room{border:1px solid #b6a16b80;border-left:3px solid #d5bd80;background:#122b30;padding:15px;margin:0 0 20px;border-radius:5px}.friends-room-heading{display:flex;justify-content:space-between;gap:10px;font-size:10px;letter-spacing:1px;color:#d9c997}.friends-room p{font-size:12px;line-height:1.6;color:#d1ded7}.friends-room small{display:block;font-size:10px;line-height:1.7;color:#adbfba;margin-top:12px}.friends-room.offline{border-color:#94856a;background:#282a25}.friends-room-actions{display:flex;gap:8px}.friends-room-actions button{min-height:45px;flex:1;background:#d1bd87;color:#18262b;border:1px solid #e4d5ac;border-radius:4px;font-weight:700;font-size:12px}.friends-room-actions button:nth-child(2){color:#dbd7bd;background:#253e43}.friends-room-actions button:disabled{opacity:.45}
.friends-watch{position:absolute;left:50%;transform:translateX(-50%);bottom:24px;display:flex;align-items:center;gap:13px;width:min(760px,94vw);padding:14px 17px;background:#142931ed;border:1px solid #c5b27880;border-radius:6px;pointer-events:auto}.friends-watch>div{flex:1;min-width:0}.friends-watch b{display:block;font-size:14px}.friends-watch small{display:block;font-size:10px;line-height:1.5;color:#b5cbc6;margin-top:5px}.friends-watch label{font-size:10px}.friends-watch select{max-width:210px;min-height:44px;padding:8px;background:#172e35;color:#e9e3cc;border:1px solid #a1b7ad80;border-radius:4px;font:inherit;font-size:12px}.friends-watch button{min-height:44px;padding:10px 18px;background:#c9b582;color:#16272b;border-radius:4px}
.watching-friends #stick,.watching-friends #attack,.watching-friends #guard,.watching-friends #sprint,.watching-friends #ability,.watching-friends #interact,.watching-friends #respawn,.watching-friends .player-status,.watching-friends .personal-points-card,.watching-friends #builder-palette,.watching-friends #reward-feed,.watching-friends #charge-source,.watching-friends #ability-help,.watching-friends #roster-button,.watching-friends .result-contribution,.watching-friends .result-actions,.watching-friends #hill-status,.watching-friends #larvae-status,.watching-friends #supply-status,.watching-friends #war-status,.watching-friends #siege-status{display:none!important}
.friends-role-group{margin:12px}.friends-role-group>h3,.friends-respawn-group>h3{font-size:10px;text-transform:uppercase;letter-spacing:1.2px;color:#d7c391;margin:15px 0 9px}.friends-role-group #normal-elite-rules{font-size:11px;line-height:1.6;color:#b8c7bc}#respawn-roles{display:block}.friends-respawn-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.friends-role-group .roles{margin:0}
@media(max-width:700px){.friends-watch{bottom:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px}.friends-watch>div{grid-column:1/-1}.friends-watch label{display:none}.friends-watch select{width:100%;max-width:none;font-size:12px}.friends-watch button{grid-column:2}.friends-room-actions{flex-wrap:wrap}.friends-room-actions button{min-width:100px}.friends-respawn-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.watching-friends #game-ui .keyboard-controls{display:none!important}
/* The match scoreboard ranks class-role ants; personal rewards are a separate view. */
.roster-panel{width:min(1180px,96vw);max-height:86vh;overflow:auto;z-index:25}.roster-panel>header{position:sticky;top:0;z-index:4;background:#14272d;padding-bottom:10px}.roster-panel #roster-economy,.roster-panel #roster-counts{display:none}.scoreboard-teams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:0}.scoreboard-filters{grid-column:1/-1;display:flex;gap:6px;position:sticky;top:0;z-index:3;background:#14272df5;padding:7px 0}.scoreboard-filters button{min-height:40px;padding:8px 14px;background:#233c43;color:#c7d8d0;border:1px solid #91aaa35c;border-radius:4px;font-size:11px}.scoreboard-filters button[aria-pressed="true"]{background:#c8b47e;color:#172a2e;border-color:#e4cf95}.scoreboard-team{min-width:0}.scoreboard-team h3{font-size:12px;letter-spacing:1px;margin:7px 0 12px;color:#c2d9e9}.scoreboard-team[data-team="1"] h3{color:#e0aaa2}.scoreboard-scroll{overflow:auto;max-height:57vh;border:1px solid #8ca39a35;border-radius:4px;outline-offset:2px}.scoreboard-table{width:100%;min-width:540px;border-collapse:collapse;table-layout:auto;font-variant-numeric:tabular-nums}.scoreboard-table thead{position:sticky;top:0;z-index:2;background:#20353d}.scoreboard-table th{font-size:9px;line-height:1.4;white-space:normal;padding:10px 7px;vertical-align:bottom;text-align:right}.scoreboard-table td{padding:8px 7px;font-size:12px;text-align:right;border-top:1px solid #829b8b20;white-space:nowrap}.scoreboard-table th:first-child,.scoreboard-table td:first-child{text-align:left;min-width:170px;width:38%}.scoreboard-table tr.you{background:#b9a66d24}.scoreboard-table .match-card{width:100%;min-width:0}.scoreboard-table .match-card-mark{width:24px;flex:0 0 24px}.scoreboard-table .match-card-name{min-width:0}.scoreboard-table .match-card-name strong{font-size:11px;overflow-wrap:anywhere;white-space:normal}.scoreboard-table .match-card-name small{display:block;font-size:8px;color:#a7bcb3;margin-top:4px;white-space:normal;text-transform:uppercase}.scoreboard-dialog{max-width:1220px;width:96vw}.scoreboard-dialog .service-panel{width:100%;max-width:none}.result-match-scoreboard{width:min(1160px,96vw);max-height:58vh;text-align:left;margin:12px 0}.result-match-scoreboard .scoreboard-scroll{max-height:45vh}.result:has(.result-match-scoreboard:not([hidden])){overflow:auto;justify-content:flex-start;padding:24px 12px}.result:has(.result-match-scoreboard:not([hidden]))>h2{font-size:36px;margin:8px 0}.result:has(.result-match-scoreboard:not([hidden]))>.result-copy{margin:6px}.result .scoreboard-filters button{margin:0;font-weight:600;background:#233c43;color:#c7d8d0}.result .scoreboard-filters button[aria-pressed="true"]{background:#c8b47e;color:#172a2e}.result .scoreboard-filters button:last-child{font-weight:600}.result #result-personal-toggle{min-height:38px;padding:8px 16px;font-size:11px}.watching-friends #roster-button{display:block!important}.watching-friends #roster-personal-toggle{display:none!important}.watching-friends .result-match-scoreboard{display:grid}.scoreboard-team:only-of-type{grid-column:1/-1}
@media(max-width:700px){.scoreboard-teams{grid-template-columns:1fr;gap:12px}.scoreboard-scroll{max-height:52vh}.scoreboard-table{min-width:520px}.scoreboard-filters{gap:4px}.scoreboard-filters button{flex:1;font-size:10px;padding:8px 5px;min-height:42px}.roster-panel{max-height:88vh;padding:13px 10px}.roster-panel>header{top:-1px}.result-match-scoreboard{width:100%;max-height:59vh;overflow:auto}.result-match-scoreboard .scoreboard-scroll{max-height:43vh}.result:has(.result-match-scoreboard:not([hidden])){padding:18px 10px}.result:has(.result-match-scoreboard:not([hidden]))>h2{font-size:29px}.scoreboard-dialog{padding:12px 9px;width:96vw}.scoreboard-table td{font-size:11px}}

.scoreboard-teams[data-team-filter="0"] .scoreboard-team,.scoreboard-teams[data-team-filter="1"] .scoreboard-team{grid-column:1/-1}

.roster-panel .roster-classes{display:none}.result:has(.result-match-scoreboard:not([hidden])){display:flex;flex-direction:column}.result:has(.result-match-scoreboard:not([hidden]))>span{margin-top:0}.result-match-scoreboard{flex-shrink:0;overflow:auto}
/* Play presents two distinct destinations beneath the choices shared by both. */
.friends-ant{margin:15px 0 20px;padding:15px 17px;border:1px solid #a6b9ab45;border-radius:6px;background:#1a2d3280}.friends-ant>h3,.friends-card-heading h3{font-family:'Barlow Condensed',Impact,sans-serif;font-size:24px;line-height:1.2;font-weight:600;letter-spacing:.3px;margin:0;color:#e5d6af}.friends-ant>p{font-size:11px;line-height:1.65;color:#b9ccc2;margin:6px 0 12px}.friends-ant .friends-setup{display:block}.friends-ant .friends-identity{display:grid;grid-template-columns:minmax(130px,1fr) minmax(230px,1.6fr);gap:15px;align-items:end}.friends-ant .callsign-field{margin-bottom:0}.friends-ant .factions{margin:0}.friends-ant .friends-role-picker{margin:12px 0 0}.friends-ant .friends-role-picker>summary{min-height:65px}.friends-ant .friends-class-note{margin:8px 0 0;font-size:10px}.friends-play-options{display:grid;gap:18px}.friends-play-card{border:1px solid #a8bbae60;border-radius:7px;padding:18px;margin:0;min-width:0}.friends-card-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.friends-card-heading>span{font-size:9px;letter-spacing:1px;text-align:right;line-height:1.5}.friends-card-intro{font-size:12px;line-height:1.65;margin:8px 0 13px;color:#c5d5cc}.friends-room{background:#123239;border-left:4px solid #81b9c7}.friends-room .friends-card-heading h3{color:#c0e0e6}.friends-room .friends-card-intro{font-size:12px}.friends-room .friends-room-actions{margin-top:14px}.friends-room .friends-room-actions button:first-child{background:#96ccd5;color:#112c33;border-color:#b8e3e8}.friends-room.offline{background:#232d2c;border-left-color:#a99a76}.friends-solo{background:#2c3025;border-left:4px solid #cbb67c}.friends-solo .friends-card-heading>span{color:#d3c493}.friends-solo .friends-recommendation{background:#b8a06a12;border:0;border-left:2px solid #bda56b70;padding:8px 11px;margin:0 0 15px;gap:4px}.friends-solo .friends-recommendation>b{font-size:9px}.friends-solo .friends-recommendation small{font-size:10px;line-height:1.6}.friends-solo .friends-battle label{font-size:10px}.friends-solo .friends-deploy-row{margin-top:15px}.friends-solo .deploy{font-size:16px;min-height:52px}.friends-solo .friends-performance{margin-bottom:0}
@media(max-width:700px){.friends-ant{padding:12px;margin:12px 0 16px}.friends-ant .friends-identity{display:block}.friends-ant .callsign-field{margin-bottom:12px}.friends-ant .friends-role-picker>summary{min-height:70px}.friends-play-options{gap:15px}.friends-play-card{padding:15px 13px}.friends-card-heading{align-items:flex-start;gap:9px}.friends-card-heading h3{font-size:24px}.friends-card-heading>span{font-size:8px;max-width:88px}.friends-solo .deploy{font-size:15px}.friends-room .friends-room-actions{flex-direction:column}.friends-room .friends-room-actions button{flex:auto;width:100%}}
