/* Reuse the objective space, keeping the battle and all touch controls clear. */
#game-ui.show-coach .objective { visibility: hidden; }
#game-ui .forest-coach {
  position: absolute;
  top: 15%;
  left: 3%;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 44%;
  padding: 5px 12px 5px 6px;
  border: 1px solid #c9d6ab6b;
  border-radius: 14px;
  color: #fff2cc;
  background: #173d32f2;
  pointer-events: none;
}
#game-ui .forest-coach[hidden] { display: none; }
#game-ui .forest-coach canvas { width: 84px; height: 39px; object-fit: contain; }
.forest-coach b, .forest-coach small { display: block; line-height: 1.45; }
.forest-coach b { font-size: 13px; }
.forest-coach small { font-size: 11px; color: #d1e2c3; }
.forest-coach small:empty, .forest-coach .coach-touch { display: none; }
@media (any-pointer: coarse) {
  .forest-coach .coach-keys { display: none; }
  .forest-coach .coach-touch:not(:empty) { display: block; }
}
#game-ui .coach-focus { outline: 3px solid #f5de96; outline-offset: 3px; }
@media (orientation: portrait) {
  #game-ui .forest-coach { top: 11%; width: auto; max-width: 94%; }
}
@media (orientation: landscape) and (max-height: 540px) {
  #game-ui .forest-coach { top: 4%; left: 34%; max-width: 31%; padding: 3px 6px; gap: 4px; }
  #game-ui .forest-coach canvas { width: 52px; height: 28px; }
  .forest-coach b { font-size: 11px; }
  .forest-coach small { font-size: 10px; }
}
@media (orientation: portrait) and (max-height: 690px) {
  #game-ui .forest-coach { padding: 2px 8px 2px 4px; }
  #game-ui .forest-coach canvas { width: 64px; height: 29px; }
  .forest-coach b { font-size: 12px; }
  .forest-coach small { font-size: 10px; }
}
