@charset "UTF-8";
.language-switch{display:flex;justify-content:center;gap:6px;margin:12px 0;flex-wrap:wrap}
.language-switch button{min-width:92px;min-height:44px;padding:8px 14px;border:1px solid #bda16a;border-radius:4px;color:#e9dfc8;background:#16383b;font:600 14px/1.2 system-ui,sans-serif;letter-spacing:0}
.language-switch button.active{color:#173a3c;background:#e9cc85;border-color:#e9cc85}
.language-switch button:focus-visible{outline:3px solid #fff2b8;outline-offset:3px}
html:lang(en){--r14-serif:Georgia,"Times New Roman",serif;--r15-serif:Georgia,"Times New Roman",serif}
html:lang(en) #startup-screen .startup-content h1{font-family:Georgia,serif;font-size:clamp(36px,5.7vw,76px);letter-spacing:.025em;line-height:1.05}
html:lang(en) #startup-screen .startup-tagline{letter-spacing:.06em}
html:lang(en) #startup-screen .r8-kicker{letter-spacing:.08em}
html:lang(en) #app .command-button{font-size:20px;letter-spacing:.025em}
html:lang(en) #app .launch-button{font-size:19px;white-space:nowrap}
html:lang(en) #startup-screen #enter-continent{white-space:nowrap;gap:12px;font-size:19px}
html:lang(en) #startup-screen #enter-continent .command-seal{flex-shrink:0}
html:lang(en) .r8-wordmark{letter-spacing:0}
html:lang(en) .brand b{font-size:21px;letter-spacing:0}
html:lang(en) .brand small{letter-spacing:0}
html:lang(en) .faction-name{letter-spacing:0;overflow:hidden;text-overflow:ellipsis}
html:lang(en) .boss-dossier-trait{line-height:1.5}
html:lang(en) .battle-phase,html:lang(en) .battle-clock small{letter-spacing:0}
html:lang(en) .selection-screen:after{letter-spacing:0}
html:lang(en) .launch-note small{letter-spacing:0;line-height:1.4}
html:lang(en) .command-button{letter-spacing:.035em}
html:lang(en) .mode-buttons button{letter-spacing:0}
html:lang(en) .race-trait,html:lang(en) .trait-copy{line-height:1.5}
html:lang(en) body[data-page="prepare"] .race-card-trait{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:2.6em;line-height:1.3;bottom:8px;overflow:hidden;text-overflow:clip}
html:lang(en) body[data-page="prepare"] .race-card-name{bottom:44px}
html:lang(en) #battle-screen .map-controls{width:max-content;max-width:calc(100% - 110px)}
html:lang(en) #battle-screen .map-controls button{width:auto;min-width:44px;flex:0 0 auto;padding-inline:7px;letter-spacing:0}
html:lang(en) #ranked-screen .boss-dossier{height:auto;min-height:230px}
html:lang(en) #ranked-screen .boss-dossier > div{position:relative;inset:auto;padding:22px;min-height:100%}
.music-toggle[aria-pressed="false"]:after,.sfx-toggle[aria-pressed="false"]:after{display:none}
@media(min-width:901px){
  html:lang(en) #ranked-screen .boss-dossier{min-height:300px}
  html:lang(en) #ranked-screen .boss-dossier > div{margin:98px 12px 12px;padding:16px;background:#102c3ae8;min-height:0;border-radius:3px}
}
@media(max-width:900px){
  html:lang(en) #ranked-screen .boss-dossier{min-height:154px}
  html:lang(en) #ranked-screen .boss-dossier > div{margin-left:35%;padding:13px 9px}
}
@media(max-width:580px) and (orientation:portrait){
  #battle-screen .tactics-drawer{bottom:calc(180px + var(--r3-safe-bottom))}
  html:lang(en) #battle-screen .map-controls #map-zoom{display:none}
  html:lang(en) #ranked-screen .boss-dossier > div{margin-left:40%;padding:16px 12px}
}
@media(max-width:700px){
  html:lang(en) .brand b{font-size:17px}
  html:lang(en) .brand small{font-size:9px}
  html:lang(en) .commander-change{font-size:12px}
  html:lang(en) .mode-buttons button{font-size:11px}
  html:lang(en) .battle-status .battle-clock small{max-width:180px;white-space:normal;font-size:9px}
  html:lang(en) .battle-scoreboard .faction-name{font-size:10px}
  html:lang(en) .map-controls button{font-size:11px;padding-inline:6px}
  html:lang(en) .selected-building-info{white-space:normal;font-size:10px;line-height:1.3}
}
@media(max-height:440px) and (orientation:landscape){
  .startup-content .language-switch{margin:3px 0}
  .startup-content .language-switch button{min-height:44px;padding:5px 12px}
  html:lang(en) #startup-screen .startup-content h1{font-size:38px}
  #pause-overlay .language-switch{margin:3px 0}
}
@media(max-width:360px){
  #battle-screen .battle-status{
    display:grid;
    grid-template-columns:minmax(66px,1fr) minmax(48px,.75fr) minmax(80px,1.3fr) 44px;
    gap:6px;
    padding-inline:max(8px,var(--r3-safe-left)) max(8px,var(--r3-safe-right));
  }
  #battle-screen .battle-status .status-stat,
  #battle-screen .battle-status .battle-clock{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:1px;
    min-width:0;
  }
  #battle-screen .battle-status .status-stat>span{font-size:11px}
  #battle-screen .battle-status .battle-clock>b{font-size:18px;line-height:1.1}
  #battle-screen .battle-status .battle-clock small{
    max-width:100%;
    margin:0;
    font-size:9px;
    line-height:1.15;
    white-space:normal;
  }
  #battle-screen .battle-status .battle-utilities{margin:0;justify-content:flex-end}
}
