@import url('/fonts/fonts.css');
:root {
  --gold: #d4b77a;
  --text: #eeeade;
  --muted: #97a99e;
  --border: #c5d3b61c;
  --panel: #112925ed;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #0b262a;
  color: var(--text);
  font-family: Manrope, Arial, sans-serif;
  font-size: 12px;
  overflow: hidden;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 1px solid var(--border);
  background: #ffffff06;
  transition:
    background 0.2s,
    transform 0.2s;
}
button:hover {
  background: #d1b67c20;
  border-color: #d1b67c66;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #071c1bd9 0%, #071c1b80 31%, transparent 60%),
    linear-gradient(0deg, #061b1f88, transparent 25%);
}
body.playing .vignette {
  background: linear-gradient(0deg, #061b1f88, transparent 13%);
}
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(#102722ee, #10272277);
  z-index: 3;
}
.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: var(--gold);
  font-size: 39px;
}
.brand span {
  font-family: Georgia, serif;
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--text);
}
.brand small {
  display: block;
  font-family: Manrope, Arial, sans-serif;
  font-size: 7px;
  letter-spacing: 3px;
  margin-top: 7px;
  color: var(--gold);
}
.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-right > span {
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-right: 10px;
}
.round {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  font-size: 16px;
}
main {
  position: fixed;
  top: calc(50% + 36px);
  left: 6.5%;
  transform: translateY(-50%);
  width: 550px;
  z-index: 2;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2.8px;
  color: var(--gold);
  font-weight: 700;
}
h1,
h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
}
h1 {
  font-size: 68px;
  line-height: 1.03;
  margin: 20px 0;
}
h1 em {
  font-weight: 400;
  color: #d8c595;
}
h2 {
  font-size: 27px;
  margin: 9px 0 10px;
}
.intro {
  font-size: 13px;
  color: #b5c0b5;
  line-height: 1.9;
  margin: 22px 0 28px;
}
.choose-label {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 1px;
}
.choose-label span {
  color: #c5cec2;
  margin-left: 12px;
  letter-spacing: 2px;
}
.factions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: 14px 0;
}
.faction {
  padding: 15px 4px 12px;
  border-radius: 3px;
  background: #10251ed9;
}
.faction b {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.faction i {
  display: block;
  font-style: normal;
  font-size: 28px;
  height: 41px;
  color: var(--fcolor);
}
.faction.active {
  border-color: var(--gold);
  background: #ccac7420;
  box-shadow: inset 0 -2px var(--gold);
}
.faction-detail {
  min-height: 48px;
  color: #a8b8aa;
  font-size: 11px;
  line-height: 1.8;
}
.faction-detail b {
  color: #d5dfcf;
  font-weight: 500;
}
.start-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.primary {
  background: #d3b779;
  color: #142a23;
  border: 1px solid #d3b779;
  padding: 17px 22px;
  font-weight: 800;
  border-radius: 3px;
}
.primary:hover {
  background: #e4cc98;
}
.primary span {
  margin-left: 30px;
}
.secondary {
  padding: 16px 20px;
  border-radius: 3px;
  background: #142b22b0;
}
.join {
  display: flex;
  gap: 10px;
  margin-top: 13px;
}
.join input {
  width: 135px;
  border: 1px solid var(--border);
  background: #10251eb0;
  border-radius: 3px;
  padding: 11px;
  color: var(--text);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 10px;
}
.join button {
  border: 0;
  font-size: 10px;
  color: #bac4b5;
}
.lobby-foot {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #7d9588;
  margin-top: 28px;
}
.lobby-foot i {
  font-style: normal;
  padding: 0 10px;
  color: var(--gold);
}
.resources {
  display: flex;
  gap: 24px;
  align-items: center;
}
.stock-context {
  border-right: 1px solid var(--border);
  padding-right: 16px;
  min-width: 96px;
}
.stock-context b,
.stock-context small {
  display: block;
}
.stock-context b {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.stock-context small {
  color: var(--muted);
  font-size: 7px;
  margin-top: 3px;
}
.resource {
  display: flex;
  align-items: center;
  gap: 9px;
}
.resource i {
  font-style: normal;
  color: var(--gold);
  font-size: 21px;
}
.resource b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.resource small {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--muted);
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  box-shadow: 0 12px 32px #07151333;
  backdrop-filter: blur(15px);
}
.left-panel {
  position: fixed;
  top: 110px;
  left: 22px;
  width: 244px;
  padding: 20px;
  max-height: calc(100vh - 192px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #667757 transparent;
}
.meta {
  font-size: 10px;
  color: var(--muted);
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 17px 0;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.tabs button {
  width: 50%;
  padding: 10px;
  border: 0;
  color: var(--muted);
}
.tabs .active {
  border-bottom: 2px solid var(--gold);
  color: var(--gold);
}
.build-card {
  display: flex;
  width: 100%;
  align-items: center;
  text-align: left;
  gap: 11px;
  padding: 9px 7px;
  border: 1px solid transparent;
  border-radius: 3px;
  margin: 2px 0;
}
.build-card.selected {
  background: #b99f6530;
  border-color: var(--gold);
}
.build-card > i {
  font-size: 23px;
  font-style: normal;
  color: #c4b184;
  width: 28px;
  text-align: center;
}
.build-card strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
.build-card small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.build-card .arrow {
  margin-left: auto;
  color: #8c9d87;
}
.ability {
  width: 100%;
  padding: 13px 8px;
  margin-top: 16px;
  border-color: #d3b77955;
  color: var(--gold);
  border-radius: 3px;
}
.recall {
  border: 0;
  font-size: 9px;
  color: var(--muted);
  width: 100%;
  padding: 13px 0 0;
}
.right-panel {
  position: fixed;
  right: 22px;
  top: 110px;
  width: 248px;
  /* Platz für die Minikarte darunter lassen; bei wenig Höhe scrollt die Chronik statt verdeckt zu werden */
  max-height: calc(100vh - 110px - 320px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.objective,
.journal {
  padding: 20px;
}
.objective > p {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 20px;
}
.boss-card {
  width: 100%;
  padding: 13px 0;
  text-align: left;
  border: 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 9px;
}
.boss-icon {
  font-size: 24px;
  color: var(--boss);
}
.boss-card strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 400;
}
.boss-card small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 5px;
}
.boss-card .bar {
  grid-column: 2;
  height: 3px;
  background: #ffffff0d;
  margin-top: 2px;
}
.bar span {
  display: block;
  height: 100%;
  background: var(--boss);
}
.journal {
  margin-top: 12px;
}
.journal p {
  font-size: 9px;
  color: #b2c2af;
  line-height: 1.7;
  margin-bottom: 0;
}
.journal time {
  color: #718c7e;
  margin-right: 8px;
}
.world-info {
  position: fixed;
  bottom: 22px;
  left: 22px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
}
.live-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #a6c77b;
  box-shadow: 0 0 10px #9bc17a77;
}
.world-info button {
  border: 0;
  padding: 3px 6px;
  font-size: 10px;
  color: var(--gold);
}
.map-controls {
  position: fixed;
  bottom: 22px;
  right: 22px;
  display: flex;
  background: var(--panel);
  border-radius: 4px;
}
.map-controls button {
  width: 40px;
  height: 39px;
  font-size: 20px;
}
.bottom-hint {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #b8c8b4;
  pointer-events: none;
  text-shadow: 0 2px 3px #000;
}
.selection {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  padding: 19px 22px;
}
.selection h2 {
  margin-top: 3px;
}
.selection p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.selection button {
  padding: 10px 15px;
  margin-right: 8px;
}
.selection .dismiss {
  position: absolute;
  right: 8px;
  top: 8px;
  border: 0;
  padding: 0 5px;
  font-size: 21px;
}
.selection .health {
  height: 4px;
  background: #ffffff13;
  margin: 15px 0;
}
.selection .health span {
  display: block;
  background: var(--gold);
  height: 100%;
}
#toast {
  position: fixed;
  left: 50%;
  top: 102px;
  transform: translate(-50%, -15px);
  opacity: 0;
  pointer-events: none;
  background: #1c362c;
  border: 1px solid #d3b77966;
  border-radius: 5px;
  padding: 14px 24px;
  z-index: 20;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: 90%;
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  background: #152c26;
  color: var(--text);
  border: 1px solid #d3b77955;
  border-radius: 8px;
  max-width: 600px;
  padding: 38px;
  box-shadow: 0 30px 100px #0009;
}
dialog::backdrop {
  background: #061719c9;
  backdrop-filter: blur(6px);
}
dialog p {
  line-height: 1.9;
  font-size: 12px;
  color: #b2c3b4;
}
dialog p b {
  color: var(--text);
}
dialog .close {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 25px;
  border: 0;
}
.muted {
  color: var(--muted);
}
#end h1 {
  font-size: 48px;
}
@media (max-width: 1100px) {
  header {
    padding: 0 20px;
  }
  .resources {
    gap: 13px;
  }
  .brand span {
    font-size: 16px;
  }
  .right-panel {
    width: 215px;
    right: 14px;
  }
  .left-panel {
    width: 217px;
    left: 14px;
    padding: 15px;
  }
  .objective,
  .journal {
    padding: 15px;
  }
  .top-right > span {
    display: none;
  }
  main {
    left: 5%;
    width: 490px;
  }
  h1 {
    font-size: 60px;
  }
  .bottom-hint {
    bottom: 74px;
  }
}
@media (max-height: 780px) {
  main {
    top: calc(50% + 43px);
  }
  h1 {
    font-size: 52px;
    margin: 12px 0;
  }
  .intro {
    margin: 13px 0 19px;
  }
  .faction {
    padding: 10px 3px;
  }
  .lobby-foot {
    margin-top: 17px;
  }
  .journal {
    display: none;
  }
  .build-card {
    padding: 6px;
  }
  .left-panel {
    top: 102px;
  }
  .right-panel {
    top: 102px;
  }
  .ability {
    margin-top: 9px;
  }
}
@media (max-width: 760px) {
  header {
    height: 74px;
    padding: 0 12px;
  }
  .brand span {
    font-size: 13px;
    letter-spacing: 2px;
  }
  .brand {
    font-size: 27px;
    gap: 8px;
  }
  .brand small {
    display: none;
  }
  .resources {
    gap: 9px;
  }
  .resource {
    gap: 3px;
  }
  .resource i {
    font-size: 14px;
  }
  .resource b {
    font-size: 12px;
  }
  .resource small {
    font-size: 6px;
  }
  .top-right {
    gap: 4px;
  }
  .round {
    width: 25px;
    height: 25px;
  }
  main {
    left: 6%;
    width: 88%;
    max-height: calc(100dvh - 92px);
    overflow: auto;
    top: 85px;
    transform: none;
  }
  h1 {
    font-size: 49px;
  }
  .intro {
    font-size: 12px;
  }
  .primary {
    padding: 14px;
  }
  .secondary {
    padding: 12px;
  }
  .primary span {
    margin-left: 8px;
  }
  .left-panel {
    top: 86px;
    left: 8px;
    width: 170px;
    padding: 11px;
    max-height: calc(100dvh - 170px);
  }
  .left-panel h2 {
    font-size: 23px;
  }
  .right-panel {
    top: 86px;
    right: 8px;
    width: 155px;
  }
  .objective {
    padding: 10px;
  }
  .objective h2 {
    font-size: 21px;
  }
  .objective > p {
    display: none;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1.6px;
  }
  .boss-card {
    grid-template-columns: 21px 1fr;
    gap: 5px;
    padding: 11px 0;
  }
  .boss-icon {
    font-size: 18px;
  }
  .boss-card strong {
    font-size: 12px;
  }
  .boss-card small {
    font-size: 8px;
  }
  .build-card {
    gap: 5px;
    padding: 8px 2px;
  }
  .build-card > i {
    width: 21px;
    font-size: 19px;
  }
  .build-card strong {
    font-size: 10px;
  }
  .build-card small {
    font-size: 8px;
  }
  .world-info {
    left: 8px;
    bottom: 12px;
    font-size: 8px;
    padding: 9px;
    gap: 5px;
  }
  .map-controls {
    right: 8px;
    bottom: 12px;
  }
  .map-controls button {
    width: 28px;
    height: 34px;
  }
  .bottom-hint {
    bottom: 58px;
    font-size: 8px;
    width: 90%;
    text-align: center;
  }
  .selection {
    width: 300px;
    bottom: 83px;
  }
  .playing .brand {
    display: none;
  }
}

.naval {
  border-top: 1px solid #c5d3b61c;
  margin-top: 14px;
  padding-top: 13px;
}
.naval-title {
  font-size: 8px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #d4b77a;
}
.naval-title span {
  float: right;
  color: #97a99e;
  letter-spacing: 0;
}
.naval > button {
  width: 100%;
  font-size: 9px;
  padding: 9px 3px;
  margin-top: 7px;
}
.island-links {
  display: flex;
  margin-top: 7px;
}
.island-links button {
  font-size: 8px;
  border: 0;
  padding: 7px 3px;
  width: 50%;
  color: #b2c1a9;
}

.left-panel {
  overflow: hidden;
  max-height: calc(100vh - 185px);
}
.catalog {
  max-height: calc(100vh - 465px);
  min-height: 110px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #526a54 transparent;
}
.tabs button {
  width: 33.333%;
}
.naval {
  margin-top: 0;
  border-top: 0;
}
.ability {
  margin-top: 9px;
  padding: 11px 6px;
  font-size: 10px;
}
#pvpAttack {
  color: #e5a794;
  border-color: #bc847a44;
}
.build-card {
  padding: 8px 4px;
}
.recall {
  padding-top: 10px;
  font-size: 8px;
}
@media (max-width: 760px) {
  .catalog {
    max-height: calc(100dvh - 430px);
  }
  .ability {
    font-size: 8px;
  }
  .left-panel {
    max-height: calc(100dvh - 165px);
  }
}

body #lobby {
  max-height: calc(100dvh - 112px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #587251 transparent;
  padding-right: 10px;
}
.saved-games {
  margin-top: 16px;
}
.saved-games .choose-label {
  font-size: 8px;
}
.saved-games #saveList {
  max-height: 90px;
  overflow: auto;
  margin-top: 6px;
}
.saved-games button {
  display: block;
  width: 100%;
  padding: 10px;
  text-align: left;
  font-size: 10px;
  border-radius: 3px;
  margin-bottom: 4px;
  color: var(--gold);
}
.location-picker {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin: 8px 0 10px;
}
.location-picker select {
  width: 100%;
  margin-top: 5px;
  padding: 8px 4px;
  background: #1c382f;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 3px;
  font:
    10px Manrope,
    Arial;
}
.fleet-list {
  margin: 12px 0;
}
.fleet-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 7px;
  margin-bottom: 5px;
  border-radius: 3px;
}
.fleet-card span {
  display: block;
  font-size: 10px;
  color: var(--gold);
}
.fleet-card small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 5px;
}
.empty-fleet {
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
}
.minimap {
  position: fixed;
  right: 22px;
  bottom: 76px;
  width: 248px;
  height: 220px;
  overflow: hidden;
}
.minimap canvas {
  position: static;
  width: 246px;
  height: 197px;
  cursor: crosshair;
}
.minimap > span {
  display: block;
  text-align: center;
  font-size: 6px;
  letter-spacing: 0.8px;
  color: var(--muted);
  padding: 6px 0;
}
.placement-hint {
  position: fixed;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  background: #1e3c2feb;
  color: #dfd59e;
  border: 1px solid #a6b97866;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 10px;
  pointer-events: none;
}
.placement-hint.invalid {
  color: #efaf98;
  border-color: #d0957966;
}
.selection-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.selection-actions button {
  width: 100%;
  text-align: left;
  margin: 0;
  font-size: 10px;
}
.selection .selection-note {
  font-size: 9px;
  margin-bottom: 0;
}
.selection {
  max-height: calc(100vh - 205px);
  overflow: auto;
}
.world-info #saveStatus {
  font-size: 8px;
  color: #aac48c;
}
.journal {
  max-height: 140px;
  overflow: hidden;
}
@media (max-height: 780px) {
  .minimap {
    width: 182px;
    height: 165px;
  }
  .minimap canvas {
    width: 180px;
    height: 144px;
  }
  .minimap > span {
    font-size: 5px;
  }
}
@media (max-width: 760px) {
  .minimap {
    right: 8px;
    bottom: 62px;
    width: 94px;
    height: 98px;
  }
  .minimap canvas {
    width: 92px;
    height: 81px;
  }
  .minimap > span {
    font-size: 4px;
  }
  .world-info #saveStatus {
    display: none;
  }
  .world-info {
    font-size: 7px;
    gap: 3px;
  }
  .world-info button {
    font-size: 8px;
    padding: 3px;
  }
  .placement-hint {
    bottom: 66px;
    font-size: 8px;
    max-width: 58%;
    left: 41%;
  }
}

.island-links {
  display: flex;
  flex-direction: column;
}
.island-links button {
  text-align: left;
  width: 100%;
}
.island-links small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  margin-top: 4px;
}
.archipelago-summary {
  font-size: 9px;
  color: var(--muted);
}

.build-card .equipment-note {
  white-space: normal;
  font-size: 8px;
  line-height: 1.5;
  margin-top: 4px;
  color: var(--muted);
}

.troop-metric {
  padding: 10px 0;
  color: var(--muted);
  font-size: 9px;
}
.troop-metric > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 1px;
}
.troop-metric strong {
  font-size: 17px;
  color: var(--gold);
  letter-spacing: 0;
}
.troop-metric progress {
  display: block;
  width: 100%;
  height: 7px;
  margin: 7px 0;
  accent-color: #baaa71;
}
.troop-metric b {
  font-size: 10px;
  color: #bacba4;
  font-weight: 500;
}
.troop-metric small {
  display: block;
  font-size: 8px;
  line-height: 1.6;
  margin-top: 3px;
}
.troop-metric.full strong,
.troop-metric.full b {
  color: #eea58a;
}
.unit-commands {
  position: fixed;
  bottom: 83px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 16px;
  width: 440px;
  text-align: center;
}
.unit-commands strong {
  font-size: 12px;
  color: var(--gold);
}
.unit-commands > div {
  display: flex;
  gap: 5px;
  margin: 8px 0;
}
.unit-commands button {
  padding: 9px 7px;
  flex: 1;
  font-size: 10px;
}
.unit-commands button.active {
  background: #cfb77d30;
}
.unit-commands small {
  font-size: 8px;
  color: var(--muted);
}
.production-warning {
  color: #e9ac82 !important;
}
.left-panel {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 185px);
}
.left-panel > .divider {
  margin: 4px 0;
}
.catalog {
  flex: 1;
  min-height: 65px;
  max-height: none;
}
.left-panel > h2 {
  margin-bottom: 5px;
}
.left-panel > .recall {
  padding-top: 8px;
}
.left-panel .tabs {
  flex-shrink: 0;
}
.left-panel .ability {
  flex-shrink: 0;
}
.selection {
  bottom: 205px;
}
@media (max-width: 760px) {
  .unit-commands {
    width: calc(100% - 30px);
    bottom: 70px;
  }
  .troop-metric small {
    font-size: 7px;
  }
  .troop-metric strong {
    font-size: 14px;
  }
  .left-panel {
    height: calc(100dvh - 175px);
  }
}

/* Readable resource status and controls at short viewport heights. */
header .troop-metric {
  display: none;
  width: 160px;
  padding: 8px 0;
  flex-shrink: 0;
}
body.playing header .troop-metric {
  display: block;
}
.troop-metric small {
  font-size: 7px;
}
.troop-metric progress {
  margin: 3px 0;
}
.troop-metric > div {
  gap: 10px;
  font-size: 8px;
}
.resources {
  gap: 18px;
}
.playing .brand small {
  display: none;
}
.playing .brand span {
  font-size: 15px;
  letter-spacing: 2px;
}
.left-panel > .recall {
  flex-shrink: 0;
  min-height: 31px;
  padding: 8px 3px;
  line-height: 1.4;
  font-size: 9px;
  white-space: normal;
}
.left-panel > .ability {
  line-height: 1.4;
}
.left-panel > #settlementRange {
  font-size: 8px;
  color: var(--muted);
  line-height: 1.5;
  margin: 5px 0 8px;
  flex-shrink: 0;
}
.catalog {
  min-height: 30px;
}
.left-panel {
  overflow-y: auto;
}
.solo-options {
  max-width: 340px;
}
.selection {
  bottom: 85px;
  max-height: calc(100dvh - 205px);
}
body:has(.unit-commands:not([hidden])) .selection {
  bottom: 205px;
}
.unit-commands {
  z-index: 2;
}
header .troop-metric #troopDetail {
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .playing .brand span {
    display: none;
  }
  header .troop-metric {
    width: 145px;
  }
  .resources {
    gap: 12px;
  }
  .playing header {
    gap: 12px;
  }
}
@media (max-width: 760px) {
  header .troop-metric {
    width: 110px;
  }
  .troop-metric #troopDetail {
    display: none;
  }
  .troop-metric > div {
    font-size: 6px;
    gap: 4px;
  }
  .troop-metric b {
    font-size: 8px;
  }
  .resources {
    gap: 8px;
  }
  .left-panel > .recall {
    font-size: 8px;
  }
}
button.danger {
  border-color: #b8563a66;
  color: #e8a08a;
}
.upgrade-effect {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.2px;
}
button.danger:hover {
  background: #b8563a22;
  border-color: #b8563a;
}
.stock-context.warn small {
  color: #e8a08a;
}
.stock-context.warn b {
  animation: storage-pulse 1.6s ease-in-out infinite;
}
@keyframes storage-pulse {
  50% {
    opacity: 0.55;
  }
}
