/* The finger controls. See touch.js for what they're for. */

#touch-controls {
  max-width: 960px;
  margin: 12px auto 0;
  font-family: system-ui, sans-serif;
}

.pick-row, .act-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.pick {
  flex: 1 1 120px;
  max-width: 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e8eef7;
  font-size: 14px;
  font-weight: 600;
  cursor: grab;
  /* Stops the browser trying to scroll the page when you drag a card. */
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.pick.on {
  background: rgba(255, 209, 102, 0.18);
  border-color: #ffd166;
}

.pick.broke { opacity: 0.42; }

.pick .blob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 8px currentColor;
}

.pick .pname { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .pcost { color: #ffd166; font-variant-numeric: tabular-nums; }

.act {
  flex: 1 1 130px;
  max-width: 200px;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #223047;
  color: #e8eef7;
  font: 600 14px system-ui, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}

.act.on { background: #ffd166; color: #1a1206; border-color: #ffd166; }
.act:disabled { opacity: 0.35; cursor: default; }

/* The tower that follows your finger while you're dragging. It must never
   swallow the pointer, or the drop would land on the ghost instead of the
   map — hence pointer-events: none. */
.ghost {
  position: fixed;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 300;
  display: none;
  opacity: 0.9;
}
