:root {
  --paper: #f6e9d3;
  --wash: #fff7e6;
  --ink: #493b3a;
  --label: #705446;
  --edge: #d6b995;
  --surface: #fff8e8;
  --primary: #a54c3e;
}
.scene {
  background: #f5ba91 url(./harbor.webp) center/cover;
  touch-action: none;
  cursor: crosshair;
}
.scene canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}
.signal-flags {
  position: absolute;
  right: 2%;
  top: 3%;
  border-radius: 2px 9px 9px 2px;
  padding: 3px 8px;
  color: #573e36;
  background: #fff0be;
  border: 1px solid #c69460;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 1px 2px 2px #80573b44;
  pointer-events: none;
}

.berths {
  position: absolute;
  inset: 4%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: #fff2d6;
  border: 2px solid #b58b62;
  border-radius: 14px;
  box-shadow: 0 8px 18px #563d3188;
}
.berths[hidden] {
  display: none;
}
.berths h3 {
  margin: 0;
}
.berth-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 92%;
  gap: 7px;
  overflow-y: auto;
}
.berth-list button {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 50px;
  border: 1px dashed #92765c;
  border-radius: 10px;
  background: #f5e3be;
  font-weight: 750;
  color: #473929;
}
.fleet-portrait {
  width: 92px;
  height: 62px;
  position: relative;
  margin-top: 2px;
}
.fleet-portrait img {
  position: absolute;
  object-fit: fill;
  pointer-events: none;
}
.berth-list small {
  font-weight: 500;
}

.cargo-swap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cargo-swap img {
  width: 36px;
  height: 23px;
  object-fit: contain;
}
.cargo-swap[hidden] {
  display: none;
}

.berths > button {
  min-height: 44px;
  padding: 6px 14px;
  flex-shrink: 0;
  border-radius: 9px;
  border: 1px solid var(--edge);
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
}
