/* v2.89: hierarchy and pacing polish only; no new gameplay systems. */

.objective-panel .objective-main small {
  font-weight: 900;
  letter-spacing: .05em;
}

.objective-panel .objective-main b {
  font-weight: 900;
}

/* Existing commands keep the same rules; only their visual priority changes. */
.compact-command-buttons {
  display: grid;
  gap: 6px;
}

.compact-command-buttons .mini-command.attack {
  order: 10;
  min-height: 34px;
  font-weight: 900;
  border-width: 2px;
}

.compact-command-buttons .mini-command:not(.attack):not(.ruler):not(.patrol) {
  order: 20;
  font-weight: 800;
}

.compact-command-buttons .mini-command.ruler {
  order: 30;
  margin-top: 3px;
  font-weight: 900;
}

.compact-command-buttons .mini-command.patrol {
  order: 40;
  margin-top: 3px;
  opacity: .82;
}

.compact-command-buttons .mini-command:disabled {
  opacity: .42;
}

/* On a settled battle, returning to the campaign is the primary continuation. */
.battle-screen.battle-settled-v284 .battle-buttons > [data-action="close-battle"] {
  flex: 1.35 1 0;
  font-weight: 900;
}

.battle-screen.battle-settled-v284 .battle-buttons > [data-action="tab-after-battle"] {
  flex: .75 1 0;
}

/* A decided campaign must sit above ordinary event/phase surfaces. */
.result-overlay {
  z-index: 10000 !important;
}

@media (max-width: 520px) {
  .compact-command-buttons {
    gap: 5px;
  }

  .compact-command-buttons .mini-command.attack {
    min-height: 32px;
  }
}
