.boot-approach-prompt {
  display: block;
  color: var(--sheet-forest);
  font-size: clamp(10px, 1.7vmin, 13px);
  line-height: 1.25;
}

.boot-workshop {
  min-block-size: 0;
  min-inline-size: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  border: 1px solid #7b6649;
  border-radius: 8px;
  background: #202f27 url("assets/scenes/boots.webp") center 48% / cover;
  overflow: hidden;
}

.boot-activity {
  min-block-size: 0;
  min-inline-size: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.boot-turn-controls {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px 12px;
  min-inline-size: 0;
}

.boot-crew-buttons {
  display: flex;
  align-items: center;
  gap: 5px;
  min-inline-size: 0;
}

.boot-crew-status {
  color: var(--sheet-forest);
  flex: 1;
  text-align: center;
  line-height: 1.15;
  font-size: clamp(10px, 1.75vmin, 13px);
}

.boot-crew-status:empty {
  display: none;
}

.boot-crew-dialog .boot-crew-body {
  display: grid;
  align-content: center;
  gap: clamp(6px, 1.8vmin, 18px);
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--sheet-line);
  background: #fcf1d9;
  border-radius: 8px;
  padding: clamp(8px, 2vmin, 20px);
}

.boot-helper-list {
  display: flex;
  justify-content: center;
  gap: clamp(4px, 1.5vmin, 12px);
}

.boot-helper {
  display: grid;
  gap: 4px;
  justify-items: center;
  align-content: center;
  min-width: 0;
  padding: clamp(4px, 1.25vmin, 8px);
  color: var(--sheet-ink);
  background: var(--sheet-light);
  border: 1px solid var(--sheet-line);
  border-radius: 7px;
  font: inherit;
  line-height: 1.1;
  cursor: pointer;
}

.boot-helper[aria-pressed="true"] {
  background: var(--sheet-forest);
  color: var(--sheet-light);
  border-color: var(--sheet-forest);
}

.boot-helper img {
  width: clamp(38px, 13vmin, 88px);
  aspect-ratio: 1;
  border: 1px solid var(--sheet-line);
  border-radius: 4px;
  object-fit: cover;
  object-position: center 25%;
}

.boot-helper-effect {
  text-align: center;
}

.boot-helper-effect p {
  max-width: 60ch;
  margin-inline: auto;
}

.boot-skill {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  font-size: .9rem;
}

.boot-skill select {
  max-width: 100%;
  color: var(--sheet-ink);
  background: var(--sheet-light);
  border: 1px solid var(--sheet-line);
  border-radius: 4px;
  padding: 4px;
}

@media (max-width: 589px) {
  .boot-turn-controls {
    flex-wrap: wrap;
  }

  .boot-crew-status {
    order: 1;
    flex: 0 0 100%;
    text-align: start;
  }

  .boot-crew-buttons .turn-btn,
  [data-screen="boot"] .turn-bottom .primary-btn {
    min-height: 35px;
    padding-inline: 7px;
    font-size: clamp(10px, 3.1vw, 13px);
  }
}

@media (max-height: 399px) {
  [data-screen="boot-crew"] .boot-helper img {
    width: 38px;
  }

  [data-screen="boot-crew"] .boot-crew-body {
    padding-block: 5px;
  }
}

/* On upright phones, leave the upper part of the illustration visible and
   keep the controls together above the helper bar. */
@media (orientation: portrait) and (min-height: 540px) {
  .boot-activity > :is(.guild-trial, .voyage-game, .festival-game) {
    align-content: end;
    padding: clamp(8px, 2.25vw, 18px);
    gap: clamp(5px, 1.4vw, 10px);
    font-size: clamp(13px, 3.5vw, 16px);
    --board-shade: linear-gradient(to bottom, #171a1510, #171a1530 23%, #161a18db 57%, #151a17 100%);
  }

  .boot-activity > .guild-trial {
    background: var(--board-shade), var(--guild-art) center 34% / cover;
  }
  .boot-activity > .voyage-game::before {
    background: var(--board-shade), var(--voyage-scene) center 34% / cover;
  }
  .boot-activity > .festival-game {
    background: var(--board-shade), var(--festival-scene) center 34% / cover;
  }
  .boot-activity :is(.guild-trial, .voyage-game) button {
    min-height: 44px;
    font-size: clamp(11px, 3.15vw, 14px);
  }
  .boot-activity .guild-trial__allocation li {
    grid-template-columns: minmax(0, 1fr) 44px 20px 44px;
  }
  .boot-activity .guild-trial__allocation small { display: block; margin: 1px 0 0; }
  .boot-activity .guild-trial__head { justify-content: end; }
  .boot-activity .guild-trial__head strong { display: none; }
  .boot-activity .guild-trial__head:not(:has(span:not(:empty))) { display: none; }
  .boot-activity :is(.guild-trial__notice, .voyage-game__notice, .festival-notice) {
    font-size: clamp(12px, 3.2vw, 15px);
    text-shadow: 0 1px 4px #000;
  }
}
