/* Readable, quiet exploration UI; the field makes room for combat and loot. */
body {
  font-size: 16px;
}
.brand small,
.location,
.seat-hud > p,
#chapter,
#place-sub,
.bottom-hint {
  display: none;
}
.brand strong {
  font-size: 21px;
}
.location h1 {
  font-size: 32px;
}
.party-name {
  font-size: 15px;
}
.party-job,
.party-note,
.party-name small {
  font-size: 12px;
}
.invite {
  font-size: 14px;
}
.quest-panel h2 {
  font-size: 20px;
}
.quest-panel {
  top: 172px;
}
.in-battle .game-dock [data-open="workshop"],
.in-battle .game-dock [data-open="shop"],
.in-battle .game-dock [data-open="orders"],
.in-town .single-actions [data-action="dash"],
.in-town .single-actions [data-action="skill"],
.in-town .single-actions [data-action="ultimate"],
.in-town .single-actions [data-action="return"],
.in-town .mini-health,
.seat-hud.is-town .seat-bottom [data-action="dash"],
.seat-hud.is-town .seat-bottom [data-action="skill"],
.seat-hud.is-town .seat-bottom [data-action="ultimate"],
.seat-hud.is-town .seat-bottom [data-action="return"] {
  display: none;
}
.quest-panel p {
  font-size: 14px;
  line-height: 1.7;
}
.quest-go {
  font-size: 14px;
}
.in-battle .quest-panel,
.in-battle .party-note {
  display: none;
}
.any-battle #split-objective {
  visibility: hidden;
}
.in-battle .location h1 {
  font-size: 27px;
}
.game-dock button span {
  font-size: 15px;
}
.game-dock button {
  min-width: 90px;
  padding: 12px 16px;
}
.single-actions > button span {
  font-size: 14px;
}
[data-action="ultimate"]:disabled {
  opacity: 0.65;
  cursor: default;
}
[data-action="ultimate"].ready {
  border-color: #b69141;
  background: #fff0af;
  box-shadow: 0 0 18px #edcb6a99;
}
.single-actions > button small,
.mini-health span {
  font-size: 13px;
}
.mini-health b {
  font-size: 14px;
}
.field-strip {
  font-size: 14px;
}
.field-strip button {
  font-size: 14px;
}
.nearby {
  font-size: 15px;
}
.resources {
  display: block;
  padding: 13px 17px;
  min-width: 270px;
}
.resource-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #566749;
}
.resources > .resource-items,
.resource-items {
  display: flex;
  gap: 16px;
  padding: 0;
}
.resource-item {
  display: grid;
  grid-template-columns: 23px minmax(30px, auto);
  column-gap: 5px;
  align-items: center;
  border: 0;
}
.resources .resource-item b,
.resource-item b {
  font:
    700 28px Georgia,
    serif;
  display: inline-block;
  font-variant-numeric: tabular-nums;
}
.resources .resource-item small,
.resource-item small {
  font-size: 14px;
  grid-column: 1 / 3;
  text-align: center;
  color: #687254;
  white-space: nowrap;
}
.resources .res,
.resource-item .res {
  font-size: 24px;
}
.resource-item .res {
  grid-row: auto;
}
.field-strip span,
.field-strip b {
  font-size: 14px;
}
.split-play #wallet {
  display: none;
}
.seat-hud {
  top: 22px;
}
.seat-hud h3 {
  font-size: 20px;
}
.seat-hud p {
  font-size: 14px;
  margin: 5px 0 8px;
}
.seat-resources {
  background: #fffceddd;
  border-radius: 9px;
  padding: 9px 12px;
  display: inline-block;
  margin-bottom: 10px;
  max-width: 100%;
}
.seat-resources .resource-title {
  font-size: 12px;
  margin-bottom: 5px;
}
.seat-resources .resource-items {
  gap: 11px;
}
.seat-resources .resource-item b {
  font-size: 24px;
}
.seat-resources .resource-item small {
  font-size: 12px;
}
.seat-nav button,
.seat-bottom button {
  font-size: 13px;
  min-height: 38px;
}
.seat-bottom small {
  font-size: 13px;
}
.split-overview button {
  font-size: 13px;
}
dialog {
  font-size: 16px;
}
dialog h2 {
  font-size: 28px;
  letter-spacing: 1px;
}
dialog h3 {
  font-size: 19px;
}
dialog p,
dialog label,
.recipe p,
.order-card p,
.shop-item p {
  font-size: 15px;
}
dialog button,
.menu-button,
.recipe-footer button {
  font-size: 16px;
}
.cost,
.recipe small,
.fine {
  font-size: 13px !important;
}
.modal-eyebrow {
  font-size: 12px;
}
.region-card b {
  font-size: 20px;
}
.region-card small,
.region-card em {
  font-size: 14px;
}
.material-grid b {
  font-size: 15px;
}
.material-grid small {
  font-size: 12px;
}
.text-button {
  font-size: 14px;
}
.split-menu p {
  font-size: 14px;
}
.split-menu h2 {
  font-size: 24px;
}
.tavern-entry {
  margin-top: 6px;
}
.in-battle .tavern-entry {
  display: none;
}
.map-home,
.tavern-summary {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stage-grid .region-card {
  min-height: 170px;
}
.stage-grid .region-card > span {
  font:
    700 30px Georgia,
    serif;
  color: #9d9c67;
}
.region-card:disabled {
  opacity: 0.65;
}
.companion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.companion-card {
  border: 1px solid #d4d9bf;
  border-radius: 14px;
  padding: 18px;
  background: #fffdf3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.companion-card.selected {
  border: 2px solid #7d9d67;
  padding: 17px;
  background: #f0f5e6;
}
.companion-portrait {
  width: 100%;
  height: 150px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 18px 18px 25px 25px;
  display: grid;
  place-items: center;
  background: #f1f0da;
  color: white;
  font-size: 32px;
  margin-bottom: 12px;
}
.companion-portrait img {
  width: 100%;
  height: 150px;
  min-height: 0;
  object-fit: contain;
  border-radius: inherit;
}
.companion-card h3 {
  margin: 9px 0 5px;
}
.companion-card > b {
  font-size: 13px;
}
.companion-card p {
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
}
.companion-card small {
  font-size: 13px;
  margin: 0 0 12px;
}
.companion-card button {
  width: 100%;
  padding: 10px 6px;
  font-size: 14px;
  border-radius: 7px;
  border: 1px solid #cbd2b8;
  background: #e7edda;
  color: #405a45;
}
.companion-card button:disabled {
  opacity: 0.55;
}
.rarity {
  font-size: 12px;
  font-weight: 700;
  color: #6d7a61;
}
.rarity-R .rarity {
  color: #4c7fa3;
}
.rarity-SR .rarity {
  color: #93689c;
}
.formation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style-position: inside;
}
.formation-list li {
  padding: 9px 12px;
  border-radius: 8px;
  background: #e8eedb;
  font-size: 14px;
}
.tavern-note,
.unlock-note {
  padding: 12px;
  background: #edf1df;
  border-radius: 8px;
}
@media (max-width: 700px) {
  .companion-grid,
  .stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .companion-card {
    padding: 12px;
  }
  .companion-card.selected {
    padding: 11px;
  }
  .map-home {
    flex-wrap: wrap;
  }
}
.split-menu .companion-grid,
.split-menu .stage-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 701px) and (max-width: 900px) {
  .party-panel {
    top: 235px;
  }
}
@media (max-width: 700px) {
  .brand strong {
    font-size: 16px;
  }
  .location h1,
  .in-battle .location h1 {
    font-size: 26px;
  }
  .resources {
    top: 68px;
    left: 16px;
    right: 16px;
    padding: 10px 12px;
    width: auto;
    min-width: 0;
  }
  .resources .resource-items {
    gap: 8px;
    justify-content: space-around;
  }
  .resource-title {
    font-size: 13px;
    margin-bottom: 5px;
  }
  .resource-item {
    grid-template-columns: 19px minmax(25px, auto);
    column-gap: 2px;
  }
  .resources .resource-item b {
    font-size: 26px;
  }
  .resources .resource-item small {
    font-size: 12px;
  }
  .resources .res {
    font-size: 20px;
  }
  .party-panel {
    top: 174px;
  }
  .quest-panel {
    top: 174px;
    width: 182px;
  }
  .quest-panel h2 {
    font-size: 17px;
  }
  .quest-panel p {
    font-size: 13px;
  }
  .game-dock button {
    padding: 9px 4px;
    min-width: 0;
  }
  .game-dock button span {
    font-size: 14px;
  }
  .single-actions > button span {
    font-size: 12px;
  }
  .single-actions > button {
    min-width: 45px;
  }
  .field-strip {
    font-size: 12px;
  }
  .single-actions .mini-health {
    font-size: 12px;
    width: 200px;
    height: 48px;
    padding: 5px 10px;
    white-space: nowrap;
  }
  .single-actions .mini-health b {
    display: inline-block;
    max-width: 155px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
  }
  .single-actions .mini-health span {
    display: block;
    margin: 1px 0 0;
  }
  .seat-hud {
    padding: 0 8px;
    top: 14px;
  }
  .seat-hud h3 {
    font-size: 15px;
  }
  .seat-hud p {
    font-size: 12px;
  }
  .seat-resources {
    padding: 7px;
    width: 100%;
  }
  .seat-resources .resource-items {
    flex-wrap: wrap;
    gap: 5px;
  }
  .seat-resources .resource-item b {
    font-size: 20px;
  }
  .seat-resources .resource-item small {
    font-size: 11px;
  }
  .seat-nav button,
  .seat-bottom button {
    font-size: 11px;
    padding: 7px 5px;
  }
  .seat-bottom small {
    font-size: 11px;
  }
  .split-menu {
    padding: 20px 13px;
  }
  .split-menu h2 {
    font-size: 20px;
  }
  .split-menu .modal-close {
    margin-right: -6px;
  }
  .split-menu p {
    font-size: 13px;
  }
  .split-overview button {
    font-size: 12px;
    padding: 8px;
  }
}
